(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,d=parseInt(o.dataset.rowIndex||0,10),i=o.querySelectorAll(".col"),c=100;d%2!==0?i.forEach((l,s)=>{const a=i.length-s-1;setTimeout(()=>{l.classList.add("fade-in")},c*a)}):i.forEach((l,s)=>{setTimeout(()=>{l.classList.add("fade-in")},c*s)}),n.unobserve(o)}})},{threshold:.2,rootMargin:"0px 0px -100px 0px"});document.querySelectorAll(".standard-col-fadein").forEach((t,r)=>{t.dataset.rowIndex=r,n.observe(t)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()})();document.querySelectorAll(".footer-menu").forEach(n=>{n.querySelector("h4").addEventListener("click",()=>{n.classList.toggle("active")})});(()=>{if(!document.querySelector(".ex-loggedin"))return;document.querySelector(".header-full .widgetlogo .logo img").src!=="https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/igate-logo-white.png"&&document.querySelector(".header-full .widgetlogo").classList.add("white-bg")})();(()=>{const e=()=>{document.querySelectorAll(".live-inventory-v2-shipping.in-stock").forEach(n=>{if(n.dataset.originalStock)return;const t=parseInt(n.textContent.replace(/,/g,""),10);if(!Number.isNaN(t)&&t>=100){const r=t>=500?500:Math.floor(t/100)*100;n.dataset.originalStock=t,n.textContent=`${r.toLocaleString()}+ In Stock`}n.classList.add("stock-consolidated")})};document.addEventListener("live-inventory-done",e)})();(()=>{const e=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(n=>{var r;const t=n.querySelector(".live-inventory-v2-wrapper");t&&((r=n.querySelector(".footer-wrapper-price"))==null||r.appendChild(t))})};document.addEventListener("live-inventory-done",e)})();(()=>{const e=document.querySelector(".custom-breadcrumbs .breadcrumbs_container");if(!e)return;if(document.querySelector(".ex-product")){e.classList.add("has-trustindex");const t=document.createElement("a");t.classList.add("trustindex-image"),t.href="https://uk.trustpilot.com/review/igate.ie",t.target="_blank",t.rel="noopener noreferrer nofollow",t.innerHTML='View Our Reviews',e.appendChild(t)}})();function Vn(e,n){for(var t=0;t-1}function st(e,n){return e.push.apply(e,Je(n)),e}function pe(e,n,t){e&&oe(n,function(r){r&&e.classList[t?"add":"remove"](r)})}function le(e,n){pe(e,he(n)?n.split(" "):n,!0)}function Ze(e,n){oe(n,e.appendChild.bind(e))}function Ot(e,n){oe(e,function(t){var r=(n||t).parentNode;r&&r.insertBefore(t,n)})}function Ve(e,n){return pn(e)&&(e.msMatchesSelector||e.matches).call(e,n)}function mn(e,n){var t=e?Se(e.children):[];return n?t.filter(function(r){return Ve(r,n)}):t}function et(e,n){return n?mn(e,n)[0]:e.firstElementChild}var Ue=Object.keys;function Ae(e,n,t){return e&&(t?Ue(e).reverse():Ue(e)).forEach(function(r){r!=="__proto__"&&n(e[r],r)}),e}function Ye(e){return Se(arguments,1).forEach(function(n){Ae(n,function(t,r){e[r]=n[r]})}),e}function ye(e){return Se(arguments,1).forEach(function(n){Ae(n,function(t,r){Pt(t)?e[r]=t.slice():Fe(t)?e[r]=ye({},Fe(e[r])?e[r]:{},t):e[r]=t})}),e}function Qt(e,n){oe(n||Ue(e),function(t){delete e[t]})}function ue(e,n){oe(e,function(t){oe(n,function(r){t&&t.removeAttribute(r)})})}function B(e,n,t){Fe(n)?Ae(n,function(r,o){B(e,o,r)}):oe(e,function(r){Nt(t)||t===""?ue(r,n):r.setAttribute(n,String(t))})}function Ie(e,n,t){var r=document.createElement(e);return n&&(he(n)?le(r,n):B(r,n)),t&&Ze(t,r),r}function ae(e,n,t){if(Qe(t))return getComputedStyle(e)[n];Nt(t)||(e.style[n]=""+t)}function Ge(e,n){ae(e,"display",n)}function vn(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function ie(e,n){return e.getAttribute(n)}function Jt(e,n){return e&&e.classList.contains(n)}function ne(e){return e.getBoundingClientRect()}function Te(e){oe(e,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function gn(e){return et(new DOMParser().parseFromString(e,"text/html").body)}function fe(e,n){e.preventDefault(),n&&(e.stopPropagation(),e.stopImmediatePropagation())}function yn(e,n){return e&&e.querySelector(n)}function Ht(e,n){return n?Se(e.querySelectorAll(n)):[]}function me(e,n){pe(e,n,!1)}function Mt(e){return e.timeStamp}function we(e){return he(e)?e:e?e+"px":""}var tt="splide",Rt="data-"+tt;function je(e,n){if(!e)throw new Error("["+tt+"] "+(n||""))}var be=Math.min,dt=Math.max,ft=Math.floor,We=Math.ceil,ee=Math.abs;function hn(e,n,t){return ee(e-n)0)-+(e<0)}function xt(e,n){return oe(n,function(t){e=e.replace("%s",""+t)}),e}function jt(e){return e<10?"0"+e:""+e}var Zt={};function Wn(e){return""+e+jt(Zt[e]=(Zt[e]||0)+1)}function bn(){var e=[];function n(i,c,l,s){o(i,c,function(a,y,b){var p="addEventListener"in a,g=p?a.removeEventListener.bind(a,y,l,s):a.removeListener.bind(a,l);p?a.addEventListener(y,l,s):a.addListener(l),e.push([a,y,b,l,g])})}function t(i,c,l){o(i,c,function(s,a,y){e=e.filter(function(b){return b[0]===s&&b[1]===a&&b[2]===y&&(!l||b[3]===l)?(b[4](),!1):!0})})}function r(i,c,l){var s,a=!0;return typeof CustomEvent=="function"?s=new CustomEvent(c,{bubbles:a,detail:l}):(s=document.createEvent("CustomEvent"),s.initCustomEvent(c,a,!1,l)),i.dispatchEvent(s),s}function o(i,c,l){oe(i,function(s){s&&oe(c,function(a){a.split(" ").forEach(function(y){var b=y.split(".");l(s,b[0],b[1])})})})}function d(){e.forEach(function(i){i[4]()}),ge(e)}return{bind:n,unbind:t,dispatch:r,destroy:d}}var ke="mounted",en="ready",Ee="move",nt="moved",En="click",zn="active",Xn="inactive",Kn="visible",Qn="hidden",J="refresh",te="updated",ze="resize",Bt="resized",Jn="drag",Zn="dragging",er="dragged",Ft="scroll",Oe="scrolled",tr="overflow",Sn="destroy",nr="arrows:mounted",rr="arrows:updated",or="pagination:mounted",ar="pagination:updated",Ln="navigation:mounted",qn="autoplay:play",ir="autoplay:playing",wn="autoplay:pause",An="lazyload:loaded",Tn="sk",Cn="sh",pt="ei";function Q(e){var n=e?e.event.bus:document.createDocumentFragment(),t=bn();function r(d,i){t.bind(n,Je(d).join(" "),function(c){i.apply(i,Pt(c.detail)?c.detail:[])})}function o(d){t.dispatch(n,d,Se(arguments,1))}return e&&e.event.on(Sn,t.destroy),Ye(t,{bus:n,on:r,off:W(t.unbind,n),emit:o})}function vt(e,n,t,r){var o=Date.now,d,i=0,c,l=!0,s=0;function a(){if(!l){if(i=e?be((o()-d)/e,1):1,t&&t(i),i>=1&&(n(),d=o(),r&&++s>=r))return b();c=Kt(a)}}function y(f){f||g(),d=o()-(f?i*e:0),l=!1,c=Kt(a)}function b(){l=!0}function p(){d=o(),i=0,t&&t(i)}function g(){c&&cancelAnimationFrame(c),i=0,c=0,l=!0}function u(f){e=f}function m(){return l}return{start:y,rewind:p,pause:b,cancel:g,set:u,isPaused:m}}function sr(e){var n=e;function t(o){n=o}function r(o){return Dt(Je(o),n)}return{set:t,is:r}}function cr(e,n){var t=vt(0,e,null,1);return function(){t.isPaused()&&t.start()}}function lr(e,n,t){var r=e.state,o=t.breakpoints||{},d=t.reducedMotion||{},i=bn(),c=[];function l(){var g=t.mediaQuery==="min";Ue(o).sort(function(u,m){return g?+u-+m:+m-+u}).forEach(function(u){a(o[u],"("+(g?"min":"max")+"-width:"+u+"px)")}),a(d,Xt),y()}function s(g){g&&i.destroy()}function a(g,u){var m=matchMedia(u);i.bind(m,"change",y),c.push([g,m])}function y(){var g=r.is(ut),u=t.direction,m=c.reduce(function(f,v){return ye(f,v[1].matches?v[0]:{})},{});Qt(t),p(m),t.destroy?e.destroy(t.destroy==="completely"):g?(s(!0),e.mount()):u!==t.direction&&e.refresh()}function b(g){matchMedia(Xt).matches&&(g?ye(t,d):Qt(t,Ue(d)))}function p(g,u,m){ye(t,g),u&&ye(Object.getPrototypeOf(t),g),(m||!r.is(xe))&&e.emit(te,t)}return{setup:l,destroy:s,reduce:b,set:p}}var gt="Arrow",yt=gt+"Left",ht=gt+"Right",kn=gt+"Up",Mn=gt+"Down",tn="rtl",bt="ttb",qt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[kn,ht],ArrowRight:[Mn,yt]};function ur(e,n,t){function r(d,i,c){c=c||t.direction;var l=c===tn&&!i?1:c===bt?0:-1;return qt[d]&&qt[d][l]||d.replace(/width|left|right/i,function(s,a){var y=qt[s.toLowerCase()][l]||s;return a>0?y.charAt(0).toUpperCase()+y.slice(1):y})}function o(d){return d*(t.direction===tn?1:-1)}return{resolve:r,orient:o}}var ve="role",$e="tabindex",dr="disabled",ce="aria-",rt=ce+"controls",_n=ce+"current",nn=ce+"selected",re=ce+"label",Vt=ce+"labelledby",xn=ce+"hidden",Ut=ce+"orientation",Xe=ce+"roledescription",rn=ce+"live",on=ce+"busy",an=ce+"atomic",Yt=[ve,$e,dr,rt,_n,re,Vt,xn,Ut,Xe],de=tt+"__",Le="is-",wt=tt,sn=de+"track",fr=de+"list",Et=de+"slide",In=Et+"--clone",pr=Et+"__container",Gt=de+"arrows",St=de+"arrow",$n=St+"--prev",Pn=St+"--next",Lt=de+"pagination",Nn=Lt+"__page",mr=de+"progress",vr=mr+"__bar",gr=de+"toggle",yr=de+"spinner",hr=de+"sr",br=Le+"initialized",Ce=Le+"active",Dn=Le+"prev",On=Le+"next",It=Le+"visible",$t=Le+"loading",Hn=Le+"focus-in",Rn=Le+"overflow",Er=[Ce,It,Dn,On,$t,Hn,Rn],Sr={slide:Et,clone:In,arrows:Gt,arrow:St,prev:$n,next:Pn,pagination:Lt,page:Nn,spinner:yr};function Lr(e,n){if(fn(e.closest))return e.closest(n);for(var t=e;t&&t.nodeType===1&&!Ve(t,n);)t=t.parentElement;return t}var qr=5,cn=200,jn="touchstart mousedown",At="touchmove mousemove",Tt="touchend touchcancel mouseup click";function wr(e,n,t){var r=Q(e),o=r.on,d=r.bind,i=e.root,c=t.i18n,l={},s=[],a=[],y=[],b,p,g;function u(){h(),C(),v()}function m(){o(J,f),o(J,u),o(te,v),d(document,jn+" keydown",function(S){g=S.type==="keydown"},{capture:!0}),d(i,"focusin",function(){pe(i,Hn,!!g)})}function f(S){var I=Yt.concat("style");ge(s),me(i,a),me(b,y),ue([b,p],I),ue(i,S?I:["style",Xe])}function v(){me(i,a),me(b,y),a=A(wt),y=A(sn),le(i,a),le(b,y),B(i,re,t.label),B(i,Vt,t.labelledby)}function h(){b=q("."+sn),p=et(b,"."+fr),je(b&&p,"A track/list element is missing."),st(s,mn(p,"."+Et+":not(."+In+")")),Ae({arrows:Gt,pagination:Lt,prev:$n,next:Pn,bar:vr,toggle:gr},function(S,I){l[I]=q("."+S)}),Ye(l,{root:i,track:b,list:p,slides:s})}function C(){var S=i.id||Wn(tt),I=t.role;i.id=S,b.id=b.id||S+"-track",p.id=p.id||S+"-list",!ie(i,ve)&&i.tagName!=="SECTION"&&I&&B(i,ve,I),B(i,Xe,c.carousel),B(p,ve,"presentation")}function q(S){var I=yn(i,S);return I&&Lr(I,"."+wt)===i?I:void 0}function A(S){return[S+"--"+t.type,S+"--"+t.direction,t.drag&&S+"--draggable",t.isNavigation&&S+"--nav",S===wt&&Ce]}return Ye(l,{setup:u,mount:m,destroy:f})}var Ne="slide",He="loop",ot="fade";function Ar(e,n,t,r){var o=Q(e),d=o.on,i=o.emit,c=o.bind,l=e.Components,s=e.root,a=e.options,y=a.isNavigation,b=a.updateOnMove,p=a.i18n,g=a.pagination,u=a.slideFocus,m=l.Direction.resolve,f=ie(r,"style"),v=ie(r,re),h=t>-1,C=et(r,"."+pr),q;function A(){h||(r.id=s.id+"-slide"+jt(n+1),B(r,ve,g?"tabpanel":"group"),B(r,Xe,p.slide),B(r,re,v||xt(p.slideLabel,[n+1,e.length]))),S()}function S(){c(r,"click",W(i,En,x)),c(r,"keydown",W(i,Tn,x)),d([nt,Cn,Oe],k),d(Ln,D),b&&d(Ee,O)}function I(){q=!0,o.destroy(),me(r,Er),ue(r,Yt),B(r,"style",f),B(r,re,v||"")}function D(){var P=e.splides.map(function(w){var H=w.splide.Components.Slides.getAt(n);return H?H.slide.id:""}).join(" ");B(r,re,xt(p.slideX,(h?t:n)+1)),B(r,rt,P),B(r,ve,u?"button":""),u&&ue(r,Xe)}function O(){q||k()}function k(){if(!q){var P=e.index;E(),L(),pe(r,Dn,n===P-1),pe(r,On,n===P+1)}}function E(){var P=M();P!==Jt(r,Ce)&&(pe(r,Ce,P),B(r,_n,y&&P||""),i(P?zn:Xn,x))}function L(){var P=j(),w=!P&&(!M()||h);if(e.state.is([De,Ke])||B(r,xn,w||""),B(Ht(r,a.focusableNodes||""),$e,w?-1:""),u&&B(r,$e,w?-1:0),P!==Jt(r,It)&&(pe(r,It,P),i(P?Kn:Qn,x)),!P&&document.activeElement===r){var H=l.Slides.getAt(e.index);H&&vn(H.slide)}}function T(P,w,H){ae(H&&C||r,P,w)}function M(){var P=e.index;return P===n||a.cloneStatus&&P===t}function j(){if(e.is(ot))return M();var P=ne(l.Elements.track),w=ne(r),H=m("left",!0),F=m("right",!0);return ft(P[H])<=We(w[H])&&ft(w[F])<=We(P[F])}function _(P,w){var H=ee(P-n);return!h&&(a.rewind||e.is(He))&&(H=be(H,e.length-H)),H<=w}var x={index:n,slideIndex:t,slide:r,container:C,isClone:h,mount:A,destroy:I,update:k,style:T,isWithin:_};return x}function Tr(e,n,t){var r=Q(e),o=r.on,d=r.emit,i=r.bind,c=n.Elements,l=c.slides,s=c.list,a=[];function y(){b(),o(J,p),o(J,b)}function b(){l.forEach(function(k,E){u(k,E,-1)})}function p(){q(function(k){k.destroy()}),ge(a)}function g(){q(function(k){k.update()})}function u(k,E,L){var T=Ar(e,E,L,k);T.mount(),a.push(T),a.sort(function(M,j){return M.index-j.index})}function m(k){return k?A(function(E){return!E.isClone}):a}function f(k){var E=n.Controller,L=E.toIndex(k),T=E.hasFocus()?1:t.perPage;return A(function(M){return ct(M.index,L,L+T-1)})}function v(k){return A(k)[0]}function h(k,E){oe(k,function(L){if(he(L)&&(L=gn(L)),pn(L)){var T=l[E];T?Ot(L,T):Ze(s,L),le(L,t.classes.slide),I(L,W(d,ze))}}),d(J)}function C(k){Te(A(k).map(function(E){return E.slide})),d(J)}function q(k,E){m(E).forEach(k)}function A(k){return a.filter(fn(k)?k:function(E){return he(k)?Ve(E.slide,k):Dt(Je(k),E.index)})}function S(k,E,L){q(function(T){T.style(k,E,L)})}function I(k,E){var L=Ht(k,"img"),T=L.length;T?L.forEach(function(M){i(M,"load error",function(){--T||E()})}):E()}function D(k){return k?l.length:a.length}function O(){return a.length>t.perPage}return{mount:y,destroy:p,update:g,register:u,get:m,getIn:f,getAt:v,add:h,remove:C,forEach:q,filter:A,style:S,getLength:D,isEnough:O}}function Cr(e,n,t){var r=Q(e),o=r.on,d=r.bind,i=r.emit,c=n.Slides,l=n.Direction.resolve,s=n.Elements,a=s.root,y=s.track,b=s.list,p=c.getAt,g=c.style,u,m,f;function v(){h(),d(window,"resize load",cr(W(i,ze))),o([te,J],h),o(ze,C)}function h(){u=t.direction===bt,ae(a,"maxWidth",we(t.width)),ae(y,l("paddingLeft"),q(!1)),ae(y,l("paddingRight"),q(!0)),C(!0)}function C(x){var P=ne(a);(x||m.width!==P.width||m.height!==P.height)&&(ae(y,"height",A()),g(l("marginRight"),we(t.gap)),g("width",I()),g("height",D(),!0),m=P,i(Bt),f!==(f=_())&&(pe(a,Rn,f),i(tr,f)))}function q(x){var P=t.padding,w=l(x?"right":"left");return P&&we(P[w]||(Fe(P)?0:P))||"0px"}function A(){var x="";return u&&(x=S(),je(x,"height or heightRatio is missing."),x="calc("+x+" - "+q(!1)+" - "+q(!0)+")"),x}function S(){return we(t.height||ne(b).width*t.heightRatio)}function I(){return t.autoWidth?null:we(t.fixedWidth)||(u?"":O())}function D(){return we(t.fixedHeight)||(u?t.autoHeight?null:O():S())}function O(){var x=we(t.gap);return"calc((100%"+(x&&" + "+x)+")/"+(t.perPage||1)+(x&&" - "+x)+")"}function k(){return ne(b)[l("width")]}function E(x,P){var w=p(x||0);return w?ne(w.slide)[l("width")]+(P?0:M()):0}function L(x,P){var w=p(x);if(w){var H=ne(w.slide)[l("right")],F=ne(b)[l("left")];return ee(H-F)+(P?0:M())}return 0}function T(x){return L(e.length-1)-L(0)+E(0,x)}function M(){var x=p(0);return x&&parseFloat(ae(x.slide,l("marginRight")))||0}function j(x){return parseFloat(ae(y,l("padding"+(x?"Right":"Left"))))||0}function _(){return e.is(ot)||T(!0)>k()}return{mount:v,resize:C,listSize:k,slideSize:E,sliderSize:T,totalSize:L,getPadding:j,isOverflow:_}}var kr=2;function Mr(e,n,t){var r=Q(e),o=r.on,d=n.Elements,i=n.Slides,c=n.Direction.resolve,l=[],s;function a(){o(J,y),o([te,ze],p),(s=m())&&(g(s),n.Layout.resize(!0))}function y(){b(),a()}function b(){Te(l),ge(l),r.destroy()}function p(){var f=m();s!==f&&(sF)&&(k(),I(O(T(),w>F),!0)),i(De),d(Ee,H,F,w),h.start(H,function(){i(Pe),d(nt,H,F,w),V&&V()})}function S(w){I(L(w,!0))}function I(w,H){if(!e.is(ot)){var F=H?w:D(w);ae(f,"transform","translate"+g("X")+"("+F+"px)"),w!==F&&d(Cn)}}function D(w){if(e.is(He)){var H=E(w),F=H>n.Controller.getEnd(),V=H<0;(V||F)&&(w=O(w,F))}return w}function O(w,H){var F=w-_(H),V=b();return w-=u(V*(We(ee(F)/V)||1))*(H?1:-1),w}function k(){I(T(),!0),h.cancel()}function E(w){for(var H=n.Slides.get(),F=0,V=1/0,Y=0;Y=0:H<=f[g("scrollWidth")]-ne(v)[g("width")]}function P(w,H){H=Qe(H)?T():H;var F=w!==!0&&u(H)u(_(!0));return F||V}return{mount:C,move:A,jump:S,translate:I,shift:O,cancel:k,toIndex:E,toPosition:L,getPosition:T,getLimit:_,exceededLimit:P,reposition:q}}function xr(e,n,t){var r=Q(e),o=r.on,d=r.emit,i=n.Move,c=i.getPosition,l=i.getLimit,s=i.toPosition,a=n.Slides,y=a.isEnough,b=a.getLength,p=t.omitEnd,g=e.is(He),u=e.is(Ne),m=W(T,!1),f=W(T,!0),v=t.start||0,h,C=v,q,A,S;function I(){D(),o([te,J,pt],D),o(Bt,O)}function D(){q=b(!0),A=t.perMove,S=t.perPage,h=x();var N=Me(v,0,p?h:q-1);N!==v&&(v=N,i.reposition())}function O(){h!==x()&&d(pt)}function k(N,U,K){if(!z()){var G=L(N),Z=_(G);Z>-1&&(U||Z!==v)&&(F(Z),i.move(G,Z,C,K))}}function E(N,U,K,G){n.Scroll.scroll(N,U,K,function(){var Z=_(i.toIndex(c()));F(p?be(Z,h):Z),G&&G()})}function L(N){var U=v;if(he(N)){var K=N.match(/([+\-<>])(\d+)?/)||[],G=K[1],Z=K[2];G==="+"||G==="-"?U=M(v+ +(""+G+(+Z||1)),v):G===">"?U=Z?P(+Z):m(!0):G==="<"&&(U=f(!0))}else U=g?N:Me(N,0,h);return U}function T(N,U){var K=A||(Y()?1:S),G=M(v+K*(N?-1:1),v,!(A||Y()));return G===-1&&u&&!hn(c(),l(!N),1)?N?0:h:U?G:_(G)}function M(N,U,K){if(y()||Y()){var G=j(N);G!==N&&(U=N,N=G,K=!1),N<0||N>h?!A&&(ct(0,N,U,!0)||ct(h,U,N,!0))?N=P(w(N)):g?N=K?N<0?-(q%S||S):q:N:t.rewind?N=N<0?h:0:N=-1:K&&N!==U&&(N=P(w(U)+(N0;)if(s(q-1,!0)!==s(N,!0)){N++;break}return Me(N,0,q-1)}function P(N){return Me(Y()?N:S*N,0,h)}function w(N){return Y()?be(N,h):ft((N>=h?q-1:N)/S)}function H(N){var U=i.toIndex(N);return u?Me(U,0,h):U}function F(N){N!==v&&(C=v,v=N)}function V(N){return N?C:v}function Y(){return!Qe(t.focus)||t.isNavigation}function z(){return e.state.is([De,Ke])&&!!t.waitForTransition}return{mount:I,go:k,scroll:E,getNext:m,getPrev:f,getAdjacent:T,getEnd:x,setIndex:F,getIndex:V,toIndex:P,toPage:w,toDest:H,hasFocus:Y,isBusy:z}}var Ir="http://www.w3.org/2000/svg",$r="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",at=40;function Pr(e,n,t){var r=Q(e),o=r.on,d=r.bind,i=r.emit,c=t.classes,l=t.i18n,s=n.Elements,a=n.Controller,y=s.arrows,b=s.track,p=y,g=s.prev,u=s.next,m,f,v={};function h(){q(),o(te,C)}function C(){A(),h()}function q(){var E=t.arrows;E&&!(g&&u)&&D(),g&&u&&(Ye(v,{prev:g,next:u}),Ge(p,E?"":"none"),le(p,f=Gt+"--"+t.direction),E&&(S(),k(),B([g,u],rt,b.id),i(nr,g,u)))}function A(){r.destroy(),me(p,f),m?(Te(y?[g,u]:p),g=u=null):ue([g,u],Yt)}function S(){o([ke,nt,J,Oe,pt],k),d(u,"click",W(I,">")),d(g,"click",W(I,"<"))}function I(E){a.go(E,!0)}function D(){p=y||Ie("div",c.arrows),g=O(!0),u=O(!1),m=!0,Ze(p,[g,u]),!y&&Ot(p,b)}function O(E){var L=' `,r=document.createElement("div");r.innerHTML=t.trim();const o=r.firstChild;return document.body.appendChild(o),o}function un(){let e=null;for(let o=0;o{uo(n,"true",co),o.remove()}),setTimeout(()=>{o.modal("show")},100)}else r.remove()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",un):un();document.querySelectorAll(".accordion-title").forEach(e=>{e.addEventListener("click",n=>{n.target.parentElement.classList.toggle("accordion-open")})});(()=>{const e=document.querySelector(".timeline-carousel");if(!e)return;const n=document.querySelectorAll(".timeline-slide");n.forEach(r=>{e.querySelector(".splide__list").appendChild(r)});const t=new se(e.querySelector(".splide"),{type:"slide",perPage:4,focus:0,gap:"40px",pagination:!0,arrows:!0,breakpoints:{1300:{perPage:4},1024:{perPage:3},768:{perPage:2},550:{perPage:1}}});t.on("pagination:mounted",r=>{r.list.classList.add("splide__pagination--custom"),r.items.forEach(o=>{const i=n[o.page].getAttribute("data-date");o.button.textContent=i||String(o.page+1)})}),t.mount()})();document.querySelectorAll(".team-card-readmore-wrapper").forEach(e=>{var n;(n=e.querySelector("button"))==null||n.addEventListener("click",()=>{var t;(t=e.querySelector(".team-card-readmore"))==null||t.classList.toggle("isOpen"),e.querySelector("button").innerText=e.querySelector(".team-card-readmore").classList.contains("isOpen")?"Read Less":"Read More"})});(()=>{var n;const e=document.querySelector(".meet-the-team-grid");e&&(document.querySelectorAll(".meet-the-team-grid .col").forEach(t=>{e.querySelector(".row").appendChild(t)}),(n=document.querySelectorAll(".meet-the-team-grid"))==null||n.forEach((t,r)=>{r>0&&t.remove()}))})();(()=>{if(!document.querySelector(".home-hero-slide"))return;const n=document.querySelectorAll(".home-hero-slide");if(!n)return;const t=document.createElement("div");t.classList.add("home-hero-wrapper","splide"),t.setAttribute("aria-label","Hero Slider");const r=document.createElement("div");r.classList.add("splide__track");const o=document.createElement("div");o.classList.add("splide__list"),n.forEach(c=>{const l=c.innerHTML;c.remove();const s=document.createElement("div");s.classList.add("splide__slide");let a="";a+=`
`,a+=`${c.getAttribute(`,c.getAttribute("data-background-type")==="Video"&&(a+=``),a+="
",a+='
',a+=`
`,a+=l,a+=`
${c.getAttribute("data-name")}
`,a+="
",a+="
",s.innerHTML=a,o.appendChild(s)}),r.appendChild(o),t.appendChild(r),t.insertAdjacentHTML("beforeend",`
    `),document.querySelector(".zonetop").prepend(t);const d=document.querySelector(".home-hero-wrapper");if(!d)return;const i=new se(d,{type:"loop",heightRatio:.5,pagination:!0,arrows:!1,autoplay:!0,interval:8e3,pauseOnHover:!1,pauseOnFocus:!1});i.on("pagination:mounted",c=>{c.list.classList.add("splide__pagination--custom"),c.items.forEach(l=>{const s=n[l.page],a=s.getAttribute("data-slide-icon"),y=s.getAttribute("data-name");if(a){const b=document.createElement("img");b.src=a,b.alt=s.getAttribute("data-name"),b.classList.add("home-hero-slide-icon"),b.width=40,l.button.appendChild(b)}if(y){const b=document.createElement("span");b.textContent=y,b.classList.add("home-hero-slide-title"),l.button.appendChild(b)}})}),i.mount()})();document.querySelectorAll(".custom-logo-slider").forEach(e=>{e.querySelectorAll("[data-logo]").forEach(t=>{const r=t.getAttribute("data-logo");r?t.insertAdjacentHTML("afterbegin",`Logo`):t.remove()});const n=e.querySelector(".splide");n&&new se(n,{type:"loop",perPage:7,perMove:1,pagination:!1,arrows:!1,autoplay:!0,interval:2e3,pauseOnHover:!1,pauseOnFocus:!1,breakpoints:{1440:{perPage:6},1200:{perPage:5},992:{perPage:4},768:{perPage:3},576:{perPage:2},480:{perPage:1}}}).mount()}),document.querySelectorAll(".custom-logo-slider").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){console.log("Logo slider in view");const o=Array.from(r.target.querySelectorAll("img"));for(let d=o.length-1;d>0;d--){const i=Math.floor(Math.random()*(d+1));[o[d],o[i]]=[o[i],o[d]]}o.forEach((d,i)=>{setTimeout(()=>{d.classList.add("loaded")},i*10)}),n.unobserve(r.target)}})},{threshold:.1});n.observe(e)});document.querySelectorAll(".logo-grid").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=Array.from(r.target.querySelectorAll(".logo-grid__image"));for(let d=o.length-1;d>0;d-=1){const i=Math.floor(Math.random()*(d+1));[o[d],o[i]]=[o[i],o[d]]}o.forEach((d,i)=>{setTimeout(()=>{d.classList.add("loaded")},i*100)}),n.unobserve(r.target)}})},{threshold:.1,rootMargin:"0px 0px -50px 0px"});n.observe(e)});$(document).ready(()=>{const e=$("#aboutUsVideoModal iframe").attr("src");$("#aboutUsVideoModal").on("show.bs.modal",()=>{$("#aboutUsVideoModal iframe").attr("src",e)}),$("#aboutUsVideoModal").on("hide.bs.modal",()=>{$("#aboutUsVideoModal iframe").attr("src","")})});document.querySelectorAll(".team-slider").forEach(e=>{const n=e.querySelector(".splide");if(!n)return;const t={type:"loop",pagination:!1,arrows:!0,autoplay:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!1,perPage:5,perMove:1,breakpoints:{1200:{perPage:4},992:{perPage:3},768:{perPage:2},576:{perPage:1}}};new se(n,t).mount()});(()=>{const e=document.querySelector(".testimonials-sticky");if(!e)return;document.body.insertAdjacentHTML("beforeend",` `);const t=document.createElement("button");t.classList.add("testimonials-sticky-button"),t.setAttribute("data-toggle","modal"),t.setAttribute("data-target","#testimonialsModal"),t.innerHTML='Testimonials',document.body.appendChild(t);const r=document.getElementById("testimonialsModal"),o=r.querySelector(".modal-body"),d=e.querySelector(".testimonial-carousel");o.appendChild(d),$(r).on("shown.bs.modal",()=>{const i=r.querySelector(".splide");i&&i.splide&&i.splide.refresh()})})();document.querySelectorAll(".testimonial-carousel .splide").forEach(e=>{const n=e.closest("#testimonialsModal")!==null,t={type:"loop",focus:0,perMove:1,pagination:!0,arrows:!0,autoplay:!0,interval:6e3,pauseOnHover:!0,pauseOnFocus:!0,gap:"38px"},r={1800:{perPage:3},1200:{perPage:2},768:{perPage:1}},o={1470:{perPage:1},1080:{perPage:2},720:{perPage:1}};new se(e,{...t,perPage:n?3:2,breakpoints:n?r:o}).mount()});document.querySelectorAll(".delivery-map").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting&&(console.log("Map is in view!"),e.classList.add("map-active"),n.unobserve(r.target))})},{threshold:.4});n.observe(e)});document.querySelectorAll(".eco-grid").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target;o.classList.add("section-loaded"),n.unobserve(o)}})},{threshold:.1});n.observe(e)});document.querySelectorAll(".contact-cta-imagegrid").forEach(e=>{const n=e.querySelectorAll(".image-group");setInterval(()=>{const r=Math.floor(Math.random()*n.length);n.forEach((o,d)=>{d===r&&o.classList.toggle("image-swap")})},4e3);const t=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&(o.target.classList.add("loaded"),t.unobserve(e))})},{threshold:.3});t.observe(e)});(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,d=o.querySelectorAll(".landing-intro__feature"),i=300;d.forEach((l,s)=>{setTimeout(()=>{l.classList.add("fade-in")},i*(s+1))});const c=o.querySelector(".landing-intro__main");c&&setTimeout(()=>{c.classList.add("fade-in")},50),n.unobserve(o)}})},{threshold:.1,rootMargin:"0px 0px -50px 0px"});document.querySelectorAll(".landing-intro__content").forEach(t=>{n.observe(t)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()})();(()=>{if(!document.querySelector(".switch-save-form"))return;let n=0;const t=s=>{const a=new FormData;a.append("file",s),$.ajax({method:"post",url:"/ajax/upload-file",data:a,processData:!1,contentType:!1}).then(y=>{if(y.status!=="success")return;const{filepath:b}=y.data,p=new FileReader;p.readAsDataURL(s),p.onloadend=()=>{var g;document.querySelectorAll(".switch-save-form .file-list").forEach(u=>{var f;n+=1,u.insertAdjacentHTML("beforeend",`
    `),u.querySelector(".file-wrap")&&((f=u.querySelector(".files-title.hide"))==null||f.classList.remove("hide"))}),document.querySelectorAll(".switch-save-form .file-drop .no-file-label").forEach(u=>{u.classList.add("hide")}),(g=document.getElementById(`fileDelete-${n}`))==null||g.addEventListener("click",u=>{var f,v,h;const m=u.target.closest(".file-list");u.target.closest(".file-wrap").remove(),m.querySelector(".file-wrap")||((f=m.querySelector(".files-title"))==null||f.classList.add("hide"),(h=(v=m.closest(".file-drop"))==null?void 0:v.querySelector(".no-file-label"))==null||h.classList.remove("hide"))})}})},r=s=>{var y;const a=s.target.closest(".file-drop");(y=a==null?void 0:a.querySelector("input.file-upload-button"))==null||y.click()},o=s=>{var a;(a=s.target.files)!=null&&a[0]&&t(s.target.files[0])},d=s=>{var a;s.preventDefault(),s.currentTarget.classList.remove("is-drag-over"),(a=s.dataTransfer.files)!=null&&a[0]&&t(s.dataTransfer.files[0])},i=s=>{s.preventDefault(),s.currentTarget.classList.add("is-drag-over")},c=s=>{s.currentTarget.classList.remove("is-drag-over")};(()=>{document.querySelectorAll(".switch-save-form .file-drop").forEach(s=>{var a;s.addEventListener("drop",d),s.addEventListener("dragover",i),s.addEventListener("dragleave",c),(a=s.querySelector("a.file-upload-button"))==null||a.addEventListener("click",r)}),document.querySelectorAll(".switch-save-form input.file-upload-button").forEach(s=>{s.addEventListener("change",o)})})()})();const mo=e=>{document.querySelectorAll(".badges-wrapper").forEach(n=>{if(n.getAttribute("data-custom-badges")||n.closest(".orderpads-wrapper"))return;const r=[...n.querySelectorAll(".ribbon-wrapper")].filter(l=>!l.matches(".b6628, .b484")),o=document.createElement("div");o.classList.add("top-badges-wrapper"),n.prepend(o),r.slice(0,2).forEach(l=>o.appendChild(l));const d=n.querySelectorAll(".ribbon-wrapper"),i={b4728:"

    This is one of our bestselling products, known for its quality and value.

    ",b1551:"

    Using eco-friendly materials or energy-efficient performance to reduce environmental impact.

    ",b6628:"

    One of our top 250 products
    Trusted, popular, and proven.

    "},c=(l,s)=>{if(!n.closest(".productimage_container"))return;const a=!!l.closest(".top-badges-wrapper"),y=l.querySelector(".ribbon"),b=(y==null?void 0:y.style.backgroundColor)||"",p=(y==null?void 0:y.style.color)||"",g=document.createElement("div");g.classList.add("badge-hover-panel"),g.setAttribute("data-hover-position",a?"down":"right"),g.innerHTML=s,b&&(g.style.backgroundColor=b),p&&(g.style.color=p),l.appendChild(g)};d.forEach(l=>{var a;const s=l.getAttribute("title");if(s&&n.closest(".productimage_container")){const y=document.createElement("span");y.classList.add("badge-title"),y.textContent=s,(a=l.querySelector(".ribbon span"))==null||a.after(y)}if(l.matches(".b6628")&&c(l,i.b6628),l.matches(".b4728")){const y=l.querySelector(".ribbon span");if(y){const b=y.textContent.trim().split(" "),p=b.pop();y.innerHTML=`${b.join(" ")} ${p}`}c(l,i.b4728)}l.matches(".b1551")&&c(l,i.b1551),l.matches(".b1550"),l.matches(".b484")}),n.setAttribute("data-custom-badges","true")})};(()=>{const e=document.querySelector(".custom-grid-tools");if(!e)return;const n=document.querySelector(".tools-actions");n&&e.appendChild(n)})();(()=>{const e=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(o=>{if(o.querySelector(".quantity-input-wrapper"))return;const d=o.querySelector(".inputquantity");if(!d||d.getAttribute("type")==="number")return;const i=document.createElement("div");i.classList.add("quantity-input-wrapper"),i.innerHTML=` `,o.querySelector(".buttons.group").insertAdjacentElement("afterbegin",i),i.appendChild(d);const c=o.querySelector(".quantity-input-increment"),l=o.querySelector(".quantity-input-decrement");c.addEventListener("click",()=>{Number.isNaN(d.value)?d.value=1:d.value=parseInt(d.value,10)+1}),l.addEventListener("click",()=>{Number.isNaN(d.value)||parseInt(d.value,10)<=1?d.value=1:d.value=parseInt(d.value,10)-1}),o.classList.add("quantity-spinner")})},n=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(o=>{if(o.querySelector(".product-actions-wrapper"))return;const d=document.createElement("div");d.classList.add("product-actions-wrapper");const i=o.querySelector(".footer");if(i)i.appendChild(d);else return;const c=o.querySelector(".addtoquicklist-wrapper");c&&d.appendChild(c);const l=o.querySelector(".product-compare-action");l&&d.appendChild(l)})},t=()=>{if(!document.querySelector(".ex-loggedout"))return;const o=document.createElement("div");o.classList.add("product-login-buttons"),o.innerHTML=` Sign In Create Account `,document.querySelectorAll(".catalog-grid .product").forEach(d=>{if(d.querySelector(".product-login-buttons"))return;const i=d.querySelector(".footer-wrapper-price");i&&!i.children.length&&i.appendChild(o.cloneNode(!0))})},r=()=>{e(),n(),t(),mo()};document.addEventListener("DOMContentLoaded",()=>{r()}),document.addEventListener("product-loadmore-success",o=>{console.log("More products loaded",o.detail),r()},!1)})();const vo=(e=1)=>{if(!document.querySelector(".product-shopping-actions.supplier_1001"))return null;const t=new Date,r=new Intl.DateTimeFormat("en-IE",{timeZone:"Europe/Dublin",hour:"numeric",minute:"numeric",weekday:"short",year:"numeric",month:"2-digit",day:"2-digit",hour12:!1}).formatToParts(t),o=Object.fromEntries(r.map(({type:E,value:L})=>[E,L])),i={Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6,Sun:0}[o.weekday],c=parseInt(o.hour,10),l=parseInt(o.minute,10),s=c*60+l,b=16*60+0,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Set(window.IE_BANK_HOLIDAYS||[]),u=new Intl.DateTimeFormat("en-IE",{timeZone:"Europe/Dublin",year:"numeric",month:"2-digit",day:"2-digit"}),m=E=>{const L=Object.fromEntries(u.formatToParts(E).map(({type:T,value:M})=>[T,M]));return`${L.year}-${L.month}-${L.day}`},f=E=>{const L=E.getDay();return L===0||L===6||g.has(m(E))},v=E=>{const L=new Date(E);for(L.setDate(L.getDate()+1);f(L);)L.setDate(L.getDate()+1);return L},h=(E,L)=>{let T=new Date(E);for(let M=0;M{const L=["th","st","nd","rd"],T=E%100;return E+(L[(T-20)%10]||L[T]||L[0])},A=E=>`${C[E.getDay()]} ${q(E.getDate())} ${p[E.getMonth()]}`,S=i===0||i===6,I=g.has(m(t)),D=b-s,O=D>0;let k="";if(!S&&!I&&O){const E=h(t,e),L=Math.floor(D/60),T=D%60,M=L>0?`${L}h${T>0?` ${T}m`:""}`.trim():`${T}m`;k=`Expected delivery ${A(E)}
    Order within ${M}`}else{const E=h(t,e+1);k=`Expected delivery ${A(E)}`}return`
    ${k} Available on in-stock items only
    `};(()=>{if(!document.querySelector(".ex-product"))return;const e=()=>{const f=document.querySelector(".desktop .product-summary");if(!f)return;const v=document.createElement("div");v.classList.add("product-summary-actions"),f.appendChild(v);const h=document.createElement("div");h.classList.add("product-summary-inner"),v.appendChild(h);const C=f.querySelector(".product-configurable-wrapper"),q=f.querySelector(".product-points-wrapper"),A=f.querySelector(".product-links-wrapper");C&&h.appendChild(C),q&&h.appendChild(q),A&&h.appendChild(A);const S=document.querySelector(".desktop .productaddtocart_container");S&&v.appendChild(S)},n=()=>{document.querySelectorAll(".pdp-minibanner").forEach(f=>{var v,h;(h=(v=f.closest(".catalog-single"))==null?void 0:v.querySelector(".product-summary-inner"))==null||h.insertAdjacentElement("afterbegin",f)})},t=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(f=>{if(f.querySelector(".product-actions-wrapper"))return;const v=document.createElement("div");v.classList.add("product-actions-wrapper"),f.appendChild(v);const h=f.querySelector(".product-shopping-actions-addtoquicklist");h&&v.appendChild(h);const C=f.querySelector(".product-compare-action");C&&v.appendChild(C)})},r=()=>{document.querySelectorAll(".custom-product-text").forEach(f=>{var C,q;const v=f.closest(".catalog-single");if(!v)return;const h=v.querySelector(".product-shopping-actions-tierpricing");h?(C=h.closest(".product-shopping-actions-row"))==null||C.insertAdjacentElement("afterend",f):(q=v.querySelector(".product-shopping-actions > .product-shopping-actions-row:first-child"))==null||q.insertAdjacentElement("afterend",f)}),document.querySelectorAll(".prod-desc-link").forEach(f=>{f.addEventListener("click",v=>{var C;v.preventDefault();const h=(C=f.closest(".catalog-single"))==null?void 0:C.querySelector(".productdescription_container");h&&h.scrollIntoView({behavior:"smooth"})})}),document.querySelectorAll(".prod-spec-link").forEach(f=>{f.addEventListener("click",v=>{var C;v.preventDefault();const h=(C=f.closest(".catalog-single"))==null?void 0:C.querySelector(".productspecs_container");h&&h.scrollIntoView({behavior:"smooth"})})})},o=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(f=>{const v=f.querySelector(".save.with-value"),h=f.querySelector(".live-inventory-v2-wrapper"),C=f.querySelector(".product-shopping-actions-row:first-child");if((v||h)&&C){const q=document.createElement("div");q.classList.add("stock-sale-wrapper"),h&&q.appendChild(h),v&&q.appendChild(v),C.insertAdjacentElement("afterbegin",q)}})},d=()=>{document.querySelectorAll(".page-content .panel-collapse").forEach(f=>{const v=f.querySelector(".panel-body"),h=f.getBoundingClientRect().height;((v==null?void 0:v.getBoundingClientRect().height)||0)>h?f.classList.add("accordion-read-more"):f.classList.remove("accordion-read-more"),f.querySelector(".show-more-btn-wrapper")||(f.insertAdjacentHTML("beforeend",`
    See
    `),f.querySelector(".show-more-btn-wrapper").addEventListener("click",()=>{f.classList.toggle("show-more")}))})},i=()=>{document.querySelectorAll(".catalog-single .product-summary").forEach(f=>{var h;f.querySelector(".product-indicators .non-returnable")||(h=f.querySelector(".custom-product-text .is-returnable"))==null||h.classList.remove("hide")})},c=()=>{const f=document.querySelector(".pdp-lead-time");if(!f)return;const v=document.querySelector(".product-shopping-actions"),h=(v==null?void 0:v.getAttribute("data-leadtime"))||0,C={"out-of-stock":"Low Stock - Contact us for ETA",0:"Contact us for ETA",1:"1 - 2 working days delivery",2:"2 - 3 working days delivery",5:"5 working days delivery",7:"7 working days delivery",10:"10 working days delivery"},q=typeof window.leadTimeData=="object"?window.leadTimeData:C;let A=q[0],S=!1;const I=document.querySelector(".product-shopping-actions .live-inventory-v2-shipping.out-stock");if(I&&I.textContent.includes("Low Stock")){S=!0,A=q["out-of-stock"]||"Low Stock - Contact us for ETA",f.innerHTML=A;return}h!==0&&(!S&&h&&Object.keys(q).forEach(D=>{D===h&&(A=q[D])}),f.innerHTML=A)},l=()=>{const f=document.querySelectorAll(".pdp-delivery-timer.hide");if(!f.length)return;const v=document.querySelector(".product-shopping-actions"),h=parseInt(v==null?void 0:v.getAttribute("data-leadtime"),10);if(!Number.isInteger(h)||h<1||h>7)return;const C=vo(h);C&&f.forEach(q=>{var A;q.classList.remove("hide"),q.insertAdjacentHTML("afterbegin",C),(A=q.nextElementSibling)==null||A.classList.add("hide")})},s=()=>{document.querySelectorAll(".product-shopping-actions").forEach(f=>{const v=f.querySelector(".product-shopping-actions-tierpricing");if(!v)return;const h=v.getAttribute("data-tierpricing");if(!h||f.querySelector(".custom-quantity-breaks-wrapper"))return;const q=JSON.parse(h);if(!q||!q.length)return;const A=f.querySelector(".product-shopping-actions-prices .has-price").textContent,S=parseFloat(A.replace(/[^0-9.]/g,"")),I=[...q].sort((x,P)=>x.quantity-P.quantity),D=x=>Math.round((1-parseFloat(String(x).replace(/[^0-9.]/g,""))/S)*100),O=(x,P,w)=>`
    ${x}
    ${P}
    ${w?`-${w}%`:""}
    `;let k=`

    Buy More, Save More

    Quantity
    Price
    Savings
    `;k+=O(`1 - ${I[0].quantity-1}`,A,0),I.forEach((x,P)=>{const H=P===I.length-1?`${x.quantity}+`:`${x.quantity} - ${I[P+1].quantity-1}`,F=D(parseFloat(String(x.price).replace(/[^0-9.]/g,"")));k+=O(H,x.price,F)}),k+="
    ",v.insertAdjacentHTML("afterbegin",k);const E=f.querySelector(".inputquantity");if(!E)return;const L=v.querySelectorAll(".custom-quantity-break:not(.custom-quantity-break-header)"),T=x=>{let P=0;I.forEach((w,H)=>{x>=w.quantity&&(P=H+1)}),L.forEach((w,H)=>{w.classList.toggle("is-active",H===P)})},M=f.querySelector(".product-shopping-actions-prices .has-price"),j=x=>{if(!M)return;let P=A;I.forEach(w=>{x>=w.quantity&&(P=w.price)}),M.textContent=P},_=()=>{const x=parseInt(E.value,10);!x||x<1||(T(x),j(x))};E.addEventListener("change",_),E.addEventListener("input",_),f.querySelectorAll(".incr-btn").forEach(x=>{x.addEventListener("click",()=>setTimeout(_,0))})})},a=()=>{const f=document.querySelectorAll(".product-description");if(!f.length)return;const v=[];if(f.forEach(C=>{let q=null;if(C.querySelectorAll("h6").forEach(S=>{S.textContent.trim()==="Ask iGate Questions"&&(q=S)}),!q)return;const A=q.nextElementSibling;!A||A.tagName!=="UL"||(q.style.display="none",A.style.display="none",v.length||A.querySelectorAll(":scope > li").forEach(S=>{const I=S.querySelector("strong"),D=S.querySelector("ul > li");I&&v.push({question:I.textContent.trim(),answer:D?D.innerHTML.trim():""})}))}),!v.length)return;const h=document.querySelectorAll(".productimage_container .main-image");h.length&&h.forEach(C=>{const q=C.parentElement;let A=q.nextElementSibling;if((!A||!A.classList.contains("below-main-image"))&&(A=document.createElement("div"),A.classList.add("below-main-image"),q.insertAdjacentElement("afterend",A)),A.querySelector(".ask-igate-widget"))return;const S=document.createElement("div");S.classList.add("ask-igate-widget");const I=v.map((D,O)=>` `).join("");S.innerHTML=`
    Ask iGate
    ${I}
    `,A.appendChild(S),S.querySelectorAll(".ask-igate-pill[data-index]").forEach(D=>{D.addEventListener("click",()=>{const O=D.getAttribute("data-index"),k=S.querySelector(`.ask-igate-answer[data-answer="${O}"]`),E=!k.hidden;S.querySelectorAll(".ask-igate-answer").forEach(L=>{L.hidden=!0}),S.querySelectorAll(".ask-igate-pill[data-index]").forEach(L=>{L.setAttribute("aria-expanded","false")}),E||(k.hidden=!1,D.setAttribute("aria-expanded","true"))})}),S.querySelector(".ask-igate-pill--chat").addEventListener("click",()=>{typeof zE<"u"?zE("webWidget","open"):typeof $zopim<"u"&&$zopim.livechat.window.show()})})},y=()=>{var L;const f=(T,M,j,_,x)=>{const P=w=>Number.isInteger(w)?String(w):w.toFixed(2).replace(/\.?0+$/,"");return` Price€${parseFloat(M).toFixed(2)} Quantity${T} Rewards${P(j)} per €${P(_)} Total points${x} `};console.log("Earn Points");const v=document.querySelector(".product-shopping-actions");if(!v)return;const h=parseFloat(v.getAttribute("data-rewardsrate"))||0,C=parseFloat(v.getAttribute("data-rewardsratevalue"))||0,q=parseFloat(v.getAttribute("data-rewardsrateminvalue"))||0,A=parseFloat((L=v.querySelector(".product-shopping-actions-prices .has-price"))==null?void 0:L.getAttribute("data-value"))||0;if(!h||!C||!A||A
    Points

    Reward Points

    Buy this product and get ${S}${f(1,parseFloat(A),parseFloat(C),parseFloat(h),S)} points on this order.

    View Rewards

    `,document.querySelectorAll(".product-shopping-actions-prices .badge-rewards-wrapper").forEach(T=>{T.style.display="none"}),document.querySelectorAll(".productimage_container .main-image").forEach(T=>{if(T.querySelector(".custom-earn-points"))return;const j=T.parentElement;let _=j.nextElementSibling;(!_||!_.classList.contains("below-main-image"))&&(_=document.createElement("div"),_.classList.add("below-main-image"),j.insertAdjacentElement("afterend",_)),_.querySelector(".custom-earn-points")||_.appendChild(D.cloneNode(!0))});const O=parseFloat(h),k=parseFloat(C),E=(T,M)=>{const j=Math.floor(M*T*k/O);document.querySelectorAll(".earn-points-value").forEach(_=>{_.textContent=j}),document.querySelectorAll(".earn-points-tooltip-bubble").forEach(_=>{_.innerHTML=f(T,M,k,O,j)})};document.querySelectorAll(".product-shopping-actions").forEach(T=>{const M=T.querySelector(".inputquantity");if(!M)return;const j=T.querySelector(".product-shopping-actions-prices .has-price"),_=()=>{const x=parseInt(M.value,10);if(!x||x<1)return;const P=parseFloat(String((j==null?void 0:j.textContent)||A).replace(/[^0-9.]/g,""));E(x,P)};M.addEventListener("change",_),M.addEventListener("input",_),T.querySelectorAll(".incr-btn").forEach(x=>{x.addEventListener("click",()=>setTimeout(_,0))})})},b=()=>{const f=($evodata.products.view.brand||"").toLowerCase(),v=document.querySelectorAll(".additional-brand-info");if(!f||!v.length||!window.additionalbrandinfo)return;const h=Object.keys(window.additionalbrandinfo).find(S=>S.toLowerCase()===f);if(!h)return;const C=window.additionalbrandinfo[h],q=C==null?void 0:C.text;if(!Array.isArray(q)||q.length===0)return;const A=q.map(S=>`

    ${S}

    `).join("");v.forEach(S=>{const I=S.closest(".catalog-single");if(!I)return;const D=I.querySelector(".product-points");D&&(D.insertAdjacentHTML("beforeend",`
    Top Brand

    ${h}

    ${A}
    `),S.remove())})},p={pricing:!1,inventory:!1};let g=0,u=0;const m=()=>{p.pricing&&p.inventory&&setTimeout(()=>{o()},200)};document.addEventListener("DOMContentLoaded",()=>{e(),n(),t(),r(),d(),i(),a(),b(),setTimeout(()=>{d()},1e3),document.querySelector(".has-live-pricing")||(s(),y(),setTimeout(()=>{c()},200),p.pricing=!0,m(),g+=1),document.querySelector(".has-live-inventory")||(l(),p.inventory=!0,m(),u+=1)}),document.addEventListener("live-pricing-done",()=>{g>0||(p.pricing=!0,m(),s(),y(),setTimeout(()=>{c()},200),g+=1)}),document.addEventListener("live-inventory-done",()=>{u>0||(p.inventory=!0,m(),setTimeout(()=>{l()},200),u+=1)}),window.addEventListener("resize",()=>{d()})})();(()=>{const e=()=>{const o=document.querySelector(".mobile-configurator-ghost"),d=document.querySelector(".custom-configurator:not(.mobile-configurator-ghost)");if(!o||!d)return;const i=()=>{let s='
    ';const a=d.querySelector('[data-type="col"]');a&&(s+=`

    Choose Your Colour

    `,a.querySelectorAll('input[type="radio"]').forEach(p=>{const g=p.parentElement.querySelector(".label-colour"),u=p.parentElement.getAttribute("data-colour");let m="";if(g){const f=g.getAttribute("style");f?m=f:g.style.background&&(m=`background: ${g.style.background};`)}s+=`
    `}),s+="
    ");const y=d.querySelector('[data-type="place"]');y&&(s+=`

    Choose Your Logo Placement

    Tap to select/deselect placement options.

    `,y.querySelectorAll('input[type="checkbox"]').forEach(p=>{const g=y.querySelector(`label[for="${p.id}"]`),u=g?g.querySelector("img"):null;s+=`
    `}),s+="
    "),d.querySelector('[data-type="file"]')&&(s+=`

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

    `),d.querySelectorAll("select").forEach(p=>{var f;const g=p.closest(".custom-configurator-section"),u=g.getAttribute("data-type"),m=((f=g.querySelector("h4"))==null?void 0:f.textContent)||"Select Option";s+=`

    ${m}

    "}),s+="
    ",o.querySelector(".mobile-configurator-message").insertAdjacentHTML("afterend",s)},c=()=>{o.querySelectorAll(".mobile-sync-colour").forEach(a=>{a.addEventListener("click",()=>{const y=a.getAttribute("data-sync-value"),b=d.querySelector(`input[type="radio"][value="${y}"]`);b&&(b.checked=!0,b.dispatchEvent(new Event("change",{bubbles:!0}))),o.querySelectorAll(".mobile-sync-colour").forEach(p=>{p.classList.remove("mobile-selected")}),a.classList.add("mobile-selected")})}),o.querySelectorAll(".mobile-sync-placement").forEach(a=>{a.addEventListener("click",()=>{const y=a.getAttribute("data-sync-value"),b=d.querySelector(`input[type="checkbox"][value="${y}"]`);b&&(b.checked=!b.checked,b.dispatchEvent(new Event("change",{bubbles:!0}))),a.classList.toggle("mobile-selected")})});const s=o.querySelector(".mobile-sync-file");s&&s.addEventListener("click",()=>{const a=d.querySelector("#logo-upload-input");a&&a.click()}),o.querySelectorAll(".mobile-sync-dropdown").forEach(a=>{a.addEventListener("change",()=>{const y=a.value,b=a.getAttribute("data-sync-select"),p=d.querySelector(`select[name="${b}"]`);p&&(p.value=y,p.dispatchEvent(new Event("change",{bubbles:!0})))})})},l=()=>{d.addEventListener("change",()=>{setTimeout(()=>{const s=d.querySelector('input[type="radio"]:checked');if(o.querySelectorAll(".mobile-sync-colour").forEach(a=>{a.classList.remove("mobile-selected")}),s){const a=o.querySelector(`.mobile-sync-colour[data-sync-value="${s.value}"]`);a&&a.classList.add("mobile-selected")}o.querySelectorAll(".mobile-sync-placement").forEach(a=>a.classList.remove("mobile-selected")),d.querySelectorAll('input[type="checkbox"]:checked').forEach(a=>{const y=o.querySelector(`.mobile-sync-placement[data-sync-value="${a.value}"]`);y&&y.classList.add("mobile-selected")}),d.querySelectorAll("select").forEach(a=>{if(a.value){const y=a.name,b=o.querySelector(`[data-sync-select="${y}"]`);b&&(b.value=a.value)}})},10)})};i(),c(),l()},n=()=>{let o=document.querySelectorAll(".custom-configurator-summary");if(!o.length){const c=document.createElement("div");c.classList.add("custom-configurator-summary"),document.querySelectorAll(".product-shopping-actions-addtocart").forEach(l=>{var s,a,y;l.insertAdjacentElement("beforebegin",c.cloneNode(!0)),(s=l.querySelector(".live-inventory-v2-add-to-cart-wrapper"))==null||s.classList.add("custom-configurator-add-to-cart-wrapper"),(a=l.querySelector(".live-inventory-v2-add-to-cart-wrapper"))==null||a.insertAdjacentHTML("afterbegin",` `),(y=l.querySelector(".custom-configurator-add-to-cart"))==null||y.addEventListener("click",()=>{var b;l.closest(".product-shopping-actions-row").querySelector(".unselected")?(l.closest(".product-shopping-actions-row").querySelector(".custom-configurator-summary").classList.add("show-incomplete"),l.closest(".product-shopping-actions-row").querySelector(".custom-configurator-summary").classList.add("shake-horizontal"),setTimeout(()=>{l.closest(".product-shopping-actions-row").querySelector(".custom-configurator-summary").classList.remove("shake-horizontal")},500)):(b=l.querySelector(".btn-add-to-cart"))==null||b.click()})}),o=document.querySelectorAll(".custom-configurator-summary")}o.forEach(c=>{c.innerHTML=""});const d=[];document.querySelectorAll(".custom-configurator-section:not(.mobile-sync-section)").forEach(c=>{var a,y,b;const l=c.getAttribute("data-type");let s="";switch(l){case"col":s=((a=c.querySelector("input:checked"))==null?void 0:a.value)||"",o.forEach(p=>{var g;p.insertAdjacentHTML("beforeend",`
    ${s||"Select colour"}
    `)});break;case"place":s=Array.from(c.querySelectorAll("input:checked")).map(p=>p.value).join("|"),o.forEach(p=>{let g=0;c.querySelectorAll("input:checked").forEach(u=>{const m=u.value;p.insertAdjacentHTML("beforeend",`
    ${m}
    ${m}
    `),g+=1}),g===0&&p.insertAdjacentHTML("beforeend",`
    No placement selected
    Select placement
    `)});break;case"file":s=((y=c.querySelector("a"))==null?void 0:y.href)||"",o.forEach(p=>{const g=c.querySelector(".uploaded a");if(g){const u=g.href.split(".").pop().toLowerCase(),f={pdf:"https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/icons/file-pdf.svg",psd:"https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/icons/file-psd.svg",ai:"https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/icons/file-ai.svg"}[u]||g.href;p.insertAdjacentHTML("beforeend",`
    ${g.innerText}
    Logo Added
    `)}else p.insertAdjacentHTML("beforeend",`
    No logo uploaded
    Upload logo
    `)});break;default:s=((b=c.querySelector("select"))==null?void 0:b.value)||"",o.forEach(p=>{p.insertAdjacentHTML("beforeend",`
    ${s}
    ${s||"No selection"}
    `)});break}d.push({[l]:s})}),document.querySelectorAll(".lineref").forEach(c=>{c.setAttribute("value",JSON.stringify(d))}),document.querySelectorAll(".product-shopping-actions-addtocart").forEach(c=>{var l;(l=c.closest(".product-shopping-actions-row"))!=null&&l.querySelector(".unselected")?c.classList.remove("show-add-to-cart"):c.classList.add("show-add-to-cart")})},t=o=>{const d=[];return o.querySelectorAll(":scope > li").forEach(i=>{const c={text:i.childNodes[0].nodeValue.trim()},l=i.querySelector("ul");l&&(c.children=t(l)),d.push(c)}),d},r=(o,d)=>{const i=new FormData;i.append("file",o),$.ajax({method:"post",url:"/ajax/upload-file",data:i,processData:!1,contentType:!1}).then(c=>{if(c.status==="success"){const{filepath:l}=c.data,s=new FileReader;s.readAsDataURL(o),s.onloadend=function(){return function(){d.innerHTML=`

    Uploaded: ${o.name}

    `,(l.endsWith(".png")||l.endsWith(".jpg")||l.endsWith(".jpeg")||l.endsWith(".webp"))&&d.insertAdjacentHTML("beforeend",` ${o.name} `),n()}}()}})};(()=>{if(!document.querySelector(".ex-product"))return;const o=document.querySelector(".product-description custom-html");if(!o)return;const d="Custom Configurator",i=o.innerHTML,c=i.indexOf(d);if(c!==-1){const p=i.substring(0,c),g=i.substring(c);o.innerHTML=`${p}
    ${g}
    `}const l=document.querySelector(".custom-configurator-data ul");if(!l)return;const s=l?t(l):[];let a='
    ',y="";s.forEach(p=>{var g;switch(p.text){case"Type":y=p.children[0].text;break;case"Title":a+=`

    ${p.children[0].text}

    `;break;case"Colour":a+='
    ',a+="

    Choose Your Colour

    ",a+='
    ',p.children.forEach(u=>{let m="";u.children?m=u.children[0].text:m=(window.customConfiguratorColour||{})[u.text.toLowerCase()]||"",a+=`
    `,a+=``,a+=``,a+=`
    `,a+="
    "}),a+="
    ",a+="
    ";break;case"Logo Placement":{const u=window.customConfiguratorPlacement||{};a+='
    ',a+="

    Choose Your Logo Placement

    ",a+="

    Select all that apply.

    ",a+='
    ',p.children.forEach(m=>{var q;const f=m.text.toLowerCase(),v=u[y.toLowerCase()]||{},h=u.globalFallback||"",C=((q=v.positions)==null?void 0:q[f])||v.fallback||h;a+=`
    `,a+=``,a+=``,a+="
    "}),a+="
    ",a+="
    ";break}case"Logo Upload":{a+='
    ',a+="

    Upload Your Logo

    ",a+=`

    Drag 'n' drop your file here, or click to select file.

    JPG, JPEG, PNG, WEBP, PSD, AI, PDF

    `,a+="
    ",setTimeout(()=>{const u=document.getElementById("logo-upload-box"),m=document.getElementById("logo-upload-input");u.addEventListener("dragover",f=>{f.preventDefault(),u.classList.add("dragging")}),u.addEventListener("dragleave",()=>{u.classList.remove("dragging")}),u.addEventListener("drop",f=>{if(f.preventDefault(),u.classList.remove("dragging"),f.dataTransfer&&f.dataTransfer.files.length>0){const v=f.dataTransfer.files[0];r(v,u)}else console.error("No files were dropped or e.dataTransfer is undefined.")}),u.addEventListener("click",()=>{m.click()}),m.addEventListener("change",f=>{const v=f.target.files[0];v&&r(v,u)})},0);break}default:{const u=p.text.toLowerCase().substring(0,6).replace(/\s+/g,"");a+=`
    `,a+=`

    Choose Your ${p.text}

    `,a+=`",a+="
    ";break}}}),a+="
    ",document.querySelector(".product-main-row").insertAdjacentHTML("afterend",a);const b=document.querySelectorAll(".product-main-row");b.length>1&&(b[1].insertAdjacentHTML("afterend",`

    Configure your workwear options below. Your selections will be synchronized.

    `),e()),document.querySelectorAll(".custom-configurator-section:not(.mobile-sync-section)").forEach(p=>{p.addEventListener("change",()=>{n()})}),document.querySelectorAll(".product-shopping-actions-addtocart").forEach(p=>{p.insertAdjacentHTML("beforeend",'')}),n()})()})();(()=>{const e=o=>{const d=[];return o.querySelectorAll(":scope > li").forEach(i=>{const c={text:i.childNodes[0].nodeValue.trim()},l=i.querySelector("ul");l&&(c.children=e(l)),d.push(c)}),d},n=(o,d,i)=>{const c=new FormData;c.append("file",o),$.ajax({method:"post",url:"/ajax/upload-file",data:c,processData:!1,contentType:!1}).then(l=>{if(l.status==="success"){const{filepath:s}=l.data;i.value=s;const a=new FileReader;a.readAsDataURL(o),a.onloadend=()=>{d.innerHTML=`

    Uploaded: ${o.name}

    `,(s.endsWith(".png")||s.endsWith(".jpg")||s.endsWith(".jpeg")||s.endsWith(".webp"))&&d.insertAdjacentHTML("beforeend",` ${o.name} `)}}})};let t=0;const r=(o,d)=>{o.forEach(i=>{var s,a;t+=1;const c=i.text.toLowerCase().replace(/\s+/g,"-"),l=`evoform-field-${c}-${t}`;switch(i.text){case"Type":d.insertAdjacentHTML("beforeend",` `);break;case"Price":document.querySelectorAll(".product-title").forEach(y=>{y.querySelector(".custom-product-price")||y.insertAdjacentHTML("beforeend",`
    ${i.children[0].text}
    `)});break;case"Title":break;case"Logo Upload":{const y=`${l}-box`,b=`${l}-input`;d.insertAdjacentHTML("beforeend",`

    Drag 'n' drop your file here, or click to select file.

    JPG, JPEG, PNG, WEBP, PSD, AI, PDF

    `),setTimeout(()=>{const p=document.getElementById(y),g=document.getElementById(b),u=document.getElementById(l);p.addEventListener("dragover",m=>{m.preventDefault(),p.classList.add("dragging")}),p.addEventListener("dragleave",()=>{p.classList.remove("dragging")}),p.addEventListener("drop",m=>{m.preventDefault(),p.classList.remove("dragging"),m.dataTransfer&&m.dataTransfer.files.length>0&&n(m.dataTransfer.files[0],p,u)}),p.addEventListener("click",()=>{g.click()}),g.addEventListener("change",m=>{m.target.files[0]&&n(m.target.files[0],p,u)})},0);break}case"Logo Placement":if(i.children&&i.children.length>0){let y=`
    `;i.children.forEach(b=>{t+=1;const p=`evoform-field-${b.text.toLowerCase().replace(/\s+/g,"-")}-${t}`;y+=`
    `}),y+="
    ",d.insertAdjacentHTML("beforeend",y)}break;case"Colour":{if(i.children&&i.children.length>0){const y=window.customConfiguratorColour||{};let b=`
    `;i.children.forEach(p=>{t+=1;const g=p.text.toLowerCase(),u=`evoform-field-colour-${g}-${t}`;let m="";p.children?m=p.children[0].text:m=y[g]||"",b+=`
    `}),b+="
    ",d.insertAdjacentHTML("beforeend",b)}break}default:if(i.children&&i.children.length>0){let y=`
    ",d.insertAdjacentHTML("beforeend",y)}else d.insertAdjacentHTML("beforeend",`
    `);break}})};document.addEventListener("DOMContentLoaded",()=>{if(!document.querySelector(".ex-product")||!document.body.classList.contains("ex-l-4936"))return;const o=document.querySelector(".workwear-bundle-form");if(!o)return;document.querySelectorAll(".product-summary-actions").forEach(p=>{p.className="workwear-bundle-form-wrapper",p.innerHTML="",p.insertAdjacentElement("beforeend",o.cloneNode(!0))}),document.querySelectorAll(".productaddtocart_container.mobile-widget-wrapper").forEach(p=>{p.classList.add("workwear-bundle-form-wrapper"),p.innerHTML="",p.insertAdjacentElement("beforeend",o.cloneNode(!0))}),document.querySelectorAll(".product-details-wrapper").forEach(p=>{p.style.display="none"});const d=document.querySelector(".product-title-wrapper"),i=document.querySelector(".productimage_container");d&&i&&i.insertAdjacentElement("afterbegin",d),(()=>{if(!document.body.classList.contains("ex-loggedin"))return;const{name:p}=EvoXLayer().user||"",{email:g}=EvoXLayer().user||"",{phone:u}=EvoXLayer().user||"",{company:m}=EvoXLayer().user||"";document.querySelector('.desktop input[name="name"]').value=p,document.querySelector('.desktop input[name="email"]').value=g,document.querySelector('.desktop input[name="phone number"]').value=u,document.querySelector('.desktop input[name="company name"]').value=m,document.querySelector('.mobile input[name="name"]').value=p,document.querySelector('.mobile input[name="email"]').value=g,document.querySelector('.mobile input[name="phone number"]').value=u,document.querySelector('.mobile input[name="company name"]').value=m})();const c=document.querySelector(".product-description custom-html");if(!c)return;const l="Workwear Bundle Options",s=c.innerHTML,a=s.indexOf(l);if(a!==-1){const p=s.substring(0,a),g=s.substring(a);c.innerHTML=`${p}
    ${g}
    `}const y=document.querySelector(".custom-configurator-data ul");if(!y)return;const b=e(y);document.querySelectorAll(".workwear-bundle-form-wrapper .custom-contact-form-fields-right").forEach(p=>{r(b,p)})})})();(()=>{if(!document.querySelector(".ex-product"))return;const e=document.querySelector(".product-shopping-actions"),n=(u,m)=>u?typeof u=="number"?u:typeof u=="object"&&u[m]?u[m]:!1:!1,t=u=>{if(!u)return!1;if(typeof u=="number")return u;if(typeof u=="object"){const m=Object.values(u).filter(v=>typeof v=="number");if(m.length===0)return!1;const f=m.reduce((v,h)=>v+h,0);return Math.round(f/m.length)}return!1},r=()=>{const u=document.createElement("div");return u.className="modal fade ink-toner-comparison-modal",u.id="inkTonerComparisonModal",u.setAttribute("tabindex","-1"),u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby","inkTonerComparisonModalLabel"),u.innerHTML=` `,u},o=(u,m="GBP")=>{if(!u.price||!u.pageYield)return null;const f=t(u.pageYield);if(!f)return null;const v=typeof u.pageYield=="object",h=u.price/f*100,C=h<2?h.toFixed(2):h.toFixed(0);let q="p";m==="EUR"&&(q="c"),m==="USD"&&(q="¢");const A=v?"avg. ":"",S=document.createElement("div");return S.className="ink-toner-price-per-page",S.innerHTML=`${A}${C}${q} per page`,S},d=u=>{if(!u.colours||!u.pageYield||!u.category)return null;const m='',f=document.createElement("div");f.className="ink-toner-yield-card";const v=document.createElement("h4");v.className="yield-card-title",v.textContent=`This ${u.category} cartridge yields:`,f.appendChild(v);const h=document.createElement("div");return h.className="yield-colors-container",u.colours.forEach(C=>{const q=document.createElement("div");q.className="yield-color-item",q.setAttribute("data-color",C);const A=n(u.pageYield,C),S=A?A.toLocaleString():"N/A";q.innerHTML=`${m}${S} pages`,h.appendChild(q)}),f.appendChild(h),f},i=(u,m,f,v)=>{const h=L=>L?L.outerHTML:"",C=d(m),q={...f,colours:m.colours,category:m.category},A=d(q),S=o(m,v),I=o(f,v),D=` `,O=` `,k=u.querySelector(".comparison-original .comparison-product-content"),E=u.querySelector(".comparison-compatible .comparison-product-content");if(k&&(k.innerHTML=D,m.addToCartElement)){const L=m.addToCartElement.querySelector(".btn-add-to-cart");if(L){const T=document.createElement("div");T.className="modal-add-to-cart-wrapper buttons group";const M=document.createElement("div");M.className="quantity-input-wrapper",M.innerHTML=` `;const j=L.cloneNode(!0);T.appendChild(M),T.appendChild(j),k.appendChild(T);const _=M.querySelector(".inputquantity"),x=M.querySelector(".quantity-input-decrement"),P=M.querySelector(".quantity-input-increment");_.addEventListener("input",()=>{const w=Math.max(1,parseInt(_.value,10)||1);_.value=w}),x.addEventListener("click",()=>{const w=parseInt(_.value,10)||1,H=Math.max(1,w-1);_.value=H}),P.addEventListener("click",()=>{const H=(parseInt(_.value,10)||1)+1;_.value=H})}}if(E&&(E.innerHTML=O,f.addToCartElement)){const L=f.addToCartElement.querySelector(".btn-add-to-cart");if(L){const T=document.createElement("div");T.className="modal-add-to-cart-wrapper buttons group";const M=document.createElement("div");M.className="quantity-input-wrapper",M.innerHTML=` `;const j=L.cloneNode(!0);T.appendChild(M),T.appendChild(j),E.appendChild(T);const _=M.querySelector(".inputquantity"),x=M.querySelector(".quantity-input-decrement"),P=M.querySelector(".quantity-input-increment");_.addEventListener("input",()=>{const w=Math.max(1,parseInt(_.value,10)||1);_.value=w}),x.addEventListener("click",()=>{const w=parseInt(_.value,10)||1,H=Math.max(1,w-1);_.value=H}),P.addEventListener("click",()=>{const H=(parseInt(_.value,10)||1)+1;_.value=H})}}},c=(u,m,f="GBP")=>{let v=document.getElementById("inkTonerComparisonModal");v||(v=r(),document.body.appendChild(v)),i(v,u,m,f),window.$&&window.$.fn.modal&&window.$(v).modal("show")},l=u=>{const m=()=>{let E="";if(e&&e.classList.length>0){const L=Array.from(e.classList).find(T=>T.startsWith("category_"));if(L){const T=L.replace("category_","");u.forEach(M=>{Object.entries(M).forEach(([j,_])=>{_===T&&(E=j)})})}}return E||!1},f=()=>{const E=document.querySelector(".attr_100249");if(!E)return!1;const L=E.querySelector("p");if(!L)return!1;const T=L.textContent.trim().toLowerCase();return T==="compatible"?"compatible":T==="original"?"original":!1},v=()=>{const E=document.querySelector(".attr_100920")||document.querySelector(".attr_101467");if(!E)return!1;const L=E.querySelector("p");if(!L)return!1;const T=L.textContent.trim(),M=/(\d[\d,]*)\s*(Black|Colour|CMY|Tri-Colour|Cyan|Magenta|Yellow)/gi,j=[...T.matchAll(M)];if(j.length>1){const w={};let H=!1;if(j.forEach(F=>{const V=parseInt(F[1].replace(/,/g,""),10),Y=F[2].toLowerCase();Number.isNaN(V)||(H=!0,Y==="black"?w.black=V:Y==="colour"||Y==="cmy"||Y==="tri-colour"?(w.cyan=V,w.magenta=V,w.yellow=V):Y==="cyan"?w.cyan=V:Y==="magenta"?w.magenta=V:Y==="yellow"&&(w.yellow=V))}),H)return w}const _=T.match(/(\d[\d,]*)\s*x\s*(\d+)/i);if(_){const w=parseInt(_[1].replace(/,/g,""),10),H=parseInt(_[2],10);if(!Number.isNaN(w)&&H===3)return{cyan:w,magenta:w,yellow:w}}const x=T.match(/[\d,]+/);if(!x)return!1;const P=parseInt(x[0].replace(/,/g,""),10);return Number.isNaN(P)?!1:P},h=()=>{const E=document.querySelector(".attr_100242");if(!E)return!1;const L=E.querySelector("p");if(!L)return!1;const T=L.textContent.trim().toLowerCase(),M=[];return T.includes("multipack")||T.includes("black/colour cartridge")?["black","cyan","magenta","yellow"]:T.includes("colour cartridge")?["cyan","magenta","yellow"]:(T.includes("black")&&M.push("black"),T.includes("cyan")&&M.push("cyan"),T.includes("magenta")&&M.push("magenta"),T.includes("yellow")&&M.push("yellow"),M.length>0?M:!1)},C=()=>{if(!e)return!1;const E=e.querySelector(".has-price");if(!E)return!1;const T=E.textContent.trim().match(/[\d.,]+/);if(!T)return!1;const M=parseFloat(T[0].replace(/,/g,""));return Number.isNaN(M)?!1:M},q=()=>{const E=document.querySelector(".product-summary");return E&&E.getAttribute("data-item-image")||!1},A=()=>{const E=document.querySelector(".product-summary");return E&&E.getAttribute("data-item-name")||!1},S=()=>{const E=e.querySelector(".live-inventory-v2-wrapper");return E?E.outerHTML:!1},I=()=>{const E=e.querySelector(".product-shopping-actions-prices");return E?E.innerHTML:!1},D=()=>{const E=document.querySelector(".product-summary");if(!E)return!1;const L=E.querySelector(".product-points");return L?L.innerHTML:!1},O=()=>e.querySelector(".product-shopping-actions-addtocart")||!1,k=m();return k?{category:k,type:f(),pageYield:v(),colours:h(),price:C(),image:q(),name:A(),inventoryHtml:S(),pricingHtml:I(),productPointsHtml:D(),addToCartElement:O()}:!1},s=()=>{const u=document.querySelector(".relationship-carousel-recommendations");if(!u)return!1;const m=u.querySelector(".tileparent");if(!m)return!1;const f=()=>{const _=m.querySelector(".imgthumbnail img");return _?_.getAttribute("src"):!1},v=()=>{const _=m.querySelector(".price-label.has-price");if(!_)return!1;const x=_.getAttribute("data-value");if(!x)return!1;const P=parseFloat(x);return Number.isNaN(P)?!1:P},h=()=>{const _=m.querySelector(".product-points");if(!_)return!1;const x=_.querySelectorAll("li");if(!x||x.length===0)return!1;const P=Array.from(x).find(w=>{const H=w.textContent.trim();return H.toLowerCase().includes("page yield:")||H.toLowerCase().includes("print yield:")});if(P){const w=P.textContent.trim(),H=/(\d[\d,]*)\s*(Black|Colour|CMY|Tri-Colour|Cyan|Magenta|Yellow)/gi,F=[...w.matchAll(H)];if(F.length>1){const z={};let N=!1;if(F.forEach(U=>{const K=parseInt(U[1].replace(/,/g,""),10),G=U[2].toLowerCase();Number.isNaN(K)||(N=!0,G==="black"?z.black=K:G==="colour"||G==="cmy"||G==="tri-colour"?(z.cyan=K,z.magenta=K,z.yellow=K):G==="cyan"?z.cyan=K:G==="magenta"?z.magenta=K:G==="yellow"&&(z.yellow=K))}),N)return z}const V=w.match(/(\d[\d,]*)\s*x\s*(\d+)/i);if(V){const z=parseInt(V[1].replace(/,/g,""),10),N=parseInt(V[2],10);if(!Number.isNaN(z)&&N===3)return{cyan:z,magenta:z,yellow:z}}const Y=w.match(/[\d,]+/);if(Y){const z=parseInt(Y[0].replace(/,/g,""),10);return Number.isNaN(z)?!1:z}}return!1},C=()=>{const _=m.querySelector(".product-tile-image");return _?_.getAttribute("href"):!1},q=()=>{const _=m.querySelector(".product-name a");return _?_.textContent.trim():!1},A=()=>{const _=m.querySelector(".footer-wrapper-price");return _?_.innerHTML:!1},S=()=>{const _=m.querySelector(".product-points");return _?_.innerHTML:!1},I=()=>m.querySelector(".buttons.group")||!1,D=f(),O=v(),k=h(),E=C(),L=q(),T=A(),M=S(),j=I();return O?{image:D,price:O,pageYield:k||!1,url:E||!1,name:L,pricingHtml:T,productPointsHtml:M,addToCartElement:j}:!1},a=(u,m,f="GBP",v=!1)=>{if(!u.price||!m.price)return null;const h=(u.price-m.price).toFixed(2);let C="£";f==="EUR"?C="€":f==="USD"&&(C="$");let q="p";f==="EUR"&&(q="c"),f==="USD"&&(q="¢");let A;v?(A=document.createElement("div"),A.className="ink-toner-compatible-comparison",A.style.cursor="pointer",A.addEventListener("click",()=>{c(u,m,f)})):m.url?(A=document.createElement("a"),A.href=m.url,A.className="ink-toner-compatible-comparison"):(A=document.createElement("div"),A.className="ink-toner-compatible-comparison"),A.style.setProperty("--b","6px"),A.style.setProperty("--m","2"),A.innerHTML=` `;const S=document.createElement("div");S.className="comparison-inner",A.appendChild(S);const I=document.createElement("div");I.className="comparison-image",m.image&&(I.innerHTML=`Compatible Product`),S.appendChild(I);const D=document.createElement("div");D.className="comparison-content",D.innerHTML='

    Switch Here To Save

    ';const O=document.createElement("p");O.className="comparison-message";const k=parseFloat(h)>0;if(u.pageYield&&m.pageYield){const E=t(u.pageYield),T=(t(m.pageYield)-E)/E*100,M=T.toFixed(0),j=T>0;j&&k?O.innerHTML=`Print ${M}% more and save ${C}${h} when you switch to our brand`:j?O.innerHTML=`Print ${M}% more when you switch to our brand`:k?O.innerHTML=`Save ${C}${h} when you switch to our brand`:O.innerHTML="Save when you switch to our brand"}else k?O.innerHTML=`Save ${C}${h} when you switch to our brand`:O.innerHTML="Save when you switch to our brand";if(D.appendChild(O),m.pageYield){const E=t(m.pageYield),L=typeof m.pageYield=="object",T=m.price/E*100,M=T<2?T.toFixed(2):T.toFixed(0),j=L?"avg. ":"",_=document.createElement("p");_.className="comparison-price",_.innerHTML=`Alternatives from ${j}${M}${q} per page `,D.appendChild(_)}else{const E=document.createElement("p");E.className="comparison-price",E.innerHTML='View alternatives ',D.appendChild(E)}return S.appendChild(D),A},y=(u,m,f,v="append",h={})=>{if(!m)return 0;let C;if(typeof f=="string")C=document.querySelectorAll(f);else if(f instanceof NodeList||f instanceof HTMLCollection)C=f;else if(f instanceof HTMLElement)C=[f];else return 0;if(!C||C.length===0)return 0;let q=0;return C.forEach(A=>{const S=u(m,...Object.values(h));if(S){switch(v){case"prepend":A.insertBefore(S,A.firstChild);break;case"before":A.parentNode.insertBefore(S,A);break;case"after":A.parentNode.insertBefore(S,A.nextSibling);break;case"append":default:A.appendChild(S);break}q+=1}}),q},b=[{ink:"1000402",toner:"1000424"}],p="EUR",g=!0;document.addEventListener("live-pricing-done",()=>{setTimeout(()=>{if(document.querySelector(".ink-toner-price-per-page")||document.querySelector(".ink-toner-yield-card"))return;const u=l(b);if(u&&(y(o,u,".product-shopping-actions .has-price","after",{currency:p}),y(d,u,".product-points-wrapper","before"),u.type==="original")){const m=s();m&&y(a,u,".ink-toner-yield-card","before",{compatibleProduct:m,currency:p,useModal:g})}},200)})})();document.querySelectorAll('.customertools[data-static="true"]').forEach(e=>{e.querySelector(".nav-pills").insertAdjacentHTML("afterbegin",` `)}),document.querySelectorAll(".sidebar-mobiletools a").forEach(e=>{e.addEventListener("click",()=>{document.querySelector('.customertools[data-static="false"]').classList.toggle("open")})});(()=>{if(!document.querySelector(".ex-emptysearchresults"))return;const n=new URLSearchParams(window.location.search).get("query");n&&document.querySelectorAll(".no-search-searchterm").forEach(t=>{t.textContent=`'${n}'`}),document.querySelectorAll(".no-search-searchbar").forEach(t=>{t.appendChild(document.querySelector(".header-full .search-form").cloneNode(!0))})})();(()=>{var t;if(!document.querySelector(".ex-cart"))return;document.addEventListener("cart-load-success",()=>{setTimeout(()=>{var r,o;(r=document.querySelector(".desktop .cart-topbuttons"))==null||r.prepend(document.querySelector(".desktop .clear-cart")),(o=document.querySelector(".mobile .cart-topbuttons"))==null||o.prepend(document.querySelector(".mobile .clear-cart"))},200)},!1),document.addEventListener("cart-total-update",()=>{setTimeout(()=>{var r,o;(r=document.querySelector(".desktop .cart-topbuttons"))==null||r.prepend(document.querySelector(".desktop .clear-cart")),(o=document.querySelector(".mobile .cart-topbuttons"))==null||o.prepend(document.querySelector(".mobile .clear-cart"))},200)},!1);const n=document.querySelector(".desktop .cart-banner");n&&((t=document.querySelector(".desktop .carttotals_container"))==null||t.append(n))})();(()=>{if(!document.querySelector(".ex-blog"))return;const n=document.querySelector(".custom-grid-tools .tools-actions");if(!n)return;const t=document.querySelector(".listgrid");t&&(n.appendChild(t),n.querySelector(".listview")&&(n.querySelector(".listview").className="listview",n.querySelector(".listview").innerHTML="List"),n.querySelector(".gridview")&&(n.querySelector(".gridview").className="gridview",n.querySelector(".gridview").innerHTML="Grid"))})();window.categoryIcons&&document.querySelectorAll(".blogarchive-category").forEach(e=>{const n=e.querySelector(".blogarchive-category-name");if(!n)return;const t=n.innerText;if(window.categoryIcons[t]){const r=e.querySelector(".blogarchive-category-icon img");r&&(r.src=window.categoryIcons[t])}});(()=>{var t;if(!document.querySelector(".ex-rewards"))return;const e=document.querySelector(".reward-title"),n=document.querySelector(".rewards-hero-points");e&&n&&(e.classList.remove("col-md-12"),n.appendChild(e)),(t=document.querySelector(".custom-grid-tools .tools-actions"))==null||t.insertAdjacentElement("beforeend",document.querySelector(".sortby"))})();(()=>{const e=()=>{const n=new IntersectionObserver(r=>{r.forEach(o=>{if(o.isIntersecting){const d=o.target,i=d.querySelectorAll(".eco-grid-sustainability-goal");i.forEach((l,s)=>{setTimeout(()=>{l.classList.add("fade-in")},100*s)});const c=d.querySelector(".goals-achievements-achievements-outer");if(c){const l=c.querySelectorAll("p");l.forEach((a,y)=>{setTimeout(()=>{a.classList.add("fade-in")},100*(i.length+y))}),c.querySelectorAll(".list-check li").forEach((a,y)=>{setTimeout(()=>{a.classList.add("fade-in")},100*(i.length+l.length+y))})}n.unobserve(d)}})},{threshold:.2,rootMargin:"0px 0px -100px 0px"}),t=document.querySelector(".goals-achievements");t&&n.observe(t)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()})();window.hdLoaded?console.log("layout.js already loaded"):(window.hdLoaded=!0,(()=>{if(!document.querySelector(".orderpads-wrapper"))return;const n=document.querySelector(".myaccount.quicklistsedit");if(n){n.insertAdjacentHTML("afterbegin",`
    `);const o=document.querySelector(".listtools-top .sortby");document.querySelector(".quicklists-header-right").insertAdjacentElement("afterbegin",o),document.querySelector(".quicklists-header-right").insertAdjacentElement("afterbegin",document.querySelector(".gridtopleft .itemsfound")),document.querySelector(".quicklists-header-left").insertAdjacentElement("afterbegin",document.querySelector(".breadcrumb")),document.querySelector(".listtools-top").insertAdjacentElement("afterbegin",document.querySelector(".quicklist-title"))}document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent").forEach(o=>{if(n){const p=o.querySelector(".btn-update-default-qty");p&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",p);const g=o.querySelector(".actioncontent");g&&o.querySelector(".shopping-actions").insertAdjacentElement("beforeend",g);const u=o.querySelector(".delete");u&&u.insertAdjacentHTML("beforeend","Remove From Quicklist")}const d=document.createElement("div"),i=o.querySelector(".inputquantity");function c(){const p=parseInt(i.value,10)||0;i.value=p+1,i.dispatchEvent(new Event("change",{bubbles:!0}))}function l(){const p=parseInt(i.value,10)||0;p>0&&(i.value=p-1,i.dispatchEvent(new Event("change",{bubbles:!0})))}if(i){d.classList.add("quantity-wrapper"),i.insertAdjacentElement("beforebegin",d),d.appendChild(i);const p=document.createElement("button");p.classList.add("plus-btn"),p.innerHTML='',d.insertAdjacentElement("beforeend",p);const g=document.createElement("button");g.classList.add("minus-btn"),g.innerHTML='',d.insertAdjacentElement("afterbegin",g),p.addEventListener("click",c),g.addEventListener("click",l)}const s=document.createElement("div");s.classList.add("product-stock-and-actions"),o.querySelector(".shopping-actions").appendChild(s);const a=o.querySelector(".quicklist-groups-btn-wrapper");a&&s.insertAdjacentElement("beforeend",a);const y=o.querySelector(".live-inventory-v2-wrapper");y&&n?s.insertAdjacentElement("beforeend",y):y&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",y);const b=o.querySelector(".product-compare-action");b&&s.insertAdjacentElement("beforeend",b)}),document.addEventListener("live-inventory-done",()=>{console.log("live inventory has just finished running"),document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent").forEach(o=>{const d=o.querySelector(".inputquantity");if(!d){o.querySelector(".quantity-wrapper")&&(o.querySelector(".quantity-wrapper").style.display="none");return}const i=o.querySelector(".has-price");if(!i)return;let c=o.querySelector(".total-price");c||(c=document.createElement("span"),c.classList.add("total-price"),i.insertAdjacentElement("afterend",c));const l=()=>{const s=i.textContent.trim(),a=parseFloat(s.replace(/[^0-9.-]+/g,""))||0,y=parseInt(d.value,10)||0,b=a*y;b>0?c.textContent=`€${b.toFixed(2)}`:c.textContent="€0.00"};d.addEventListener("change",l),d.addEventListener("input",l),l()})},!1);const t=document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent"),r=document.createElement("div");r.classList.add("quicklists-banner"),r.innerHTML='
    Winter Banner
    ',t.length>=4?t[3].insertAdjacentElement("afterend",r):t.length>0&&t[t.length-1].insertAdjacentElement("afterend",r)})());(()=>{const e=document.querySelector(".inktoner-brands-slider");e&&new se(e,{type:"loop",perPage:5,perMove:1,gap:15,pagination:!1,arrows:!0,autoplay:!0,interval:6e3,breakpoints:{1469:{perPage:4},1080:{perPage:3},600:{perPage:2},410:{perPage:1}}}).mount()})();