(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,d=parseInt(o.dataset.rowIndex||0,10),c=o.querySelectorAll(".col"),l=100;d%2!==0?c.forEach((u,f)=>{const s=c.length-f-1;setTimeout(()=>{u.classList.add("fade-in")},l*s)}):c.forEach((u,f)=>{setTimeout(()=>{u.classList.add("fade-in")},l*f)}),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(c,l,u,f){o(c,l,function(s,h,g){var p="addEventListener"in s,v=p?s.removeEventListener.bind(s,h,u,f):s.removeListener.bind(s,u);p?s.addEventListener(h,u,f):s.addListener(u),e.push([s,h,g,u,v])})}function t(c,l,u){o(c,l,function(f,s,h){e=e.filter(function(g){return g[0]===f&&g[1]===s&&g[2]===h&&(!u||g[3]===u)?(g[4](),!1):!0})})}function r(c,l,u){var f,s=!0;return typeof CustomEvent=="function"?f=new CustomEvent(l,{bubbles:s,detail:u}):(f=document.createEvent("CustomEvent"),f.initCustomEvent(l,s,!1,u)),c.dispatchEvent(f),f}function o(c,l,u){oe(c,function(f){f&&oe(l,function(s){s.split(" ").forEach(function(h){var g=h.split(".");u(f,g[0],g[1])})})})}function d(){e.forEach(function(c){c[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,c){t.bind(n,Je(d).join(" "),function(l){c.apply(c,Pt(l.detail)?l.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,c=0,l,u=!0,f=0;function s(){if(!u){if(c=e?be((o()-d)/e,1):1,t&&t(c),c>=1&&(n(),d=o(),r&&++f>=r))return g();l=Kt(s)}}function h(m){m||v(),d=o()-(m?c*e:0),u=!1,l=Kt(s)}function g(){u=!0}function p(){d=o(),c=0,t&&t(c)}function v(){l&&cancelAnimationFrame(l),c=0,l=0,u=!0}function a(m){e=m}function i(){return u}return{start:h,rewind:p,pause:g,cancel:v,set:a,isPaused:i}}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||{},c=bn(),l=[];function u(){var v=t.mediaQuery==="min";Ue(o).sort(function(a,i){return v?+a-+i:+i-+a}).forEach(function(a){s(o[a],"("+(v?"min":"max")+"-width:"+a+"px)")}),s(d,Xt),h()}function f(v){v&&c.destroy()}function s(v,a){var i=matchMedia(a);c.bind(i,"change",h),l.push([v,i])}function h(){var v=r.is(ut),a=t.direction,i=l.reduce(function(m,y){return ye(m,y[1].matches?y[0]:{})},{});Qt(t),p(i),t.destroy?e.destroy(t.destroy==="completely"):v?(f(!0),e.mount()):a!==t.direction&&e.refresh()}function g(v){matchMedia(Xt).matches&&(v?ye(t,d):Qt(t,Ue(d)))}function p(v,a,i){ye(t,v),a&&ye(Object.getPrototypeOf(t),v),(i||!r.is(xe))&&e.emit(te,t)}return{setup:u,destroy:f,reduce:g,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,c,l){l=l||t.direction;var u=l===tn&&!c?1:l===bt?0:-1;return qt[d]&&qt[d][u]||d.replace(/width|left|right/i,function(f,s){var h=qt[f.toLowerCase()][u]||f;return s>0?h.charAt(0).toUpperCase()+h.slice(1):h})}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,c=e.root,l=t.i18n,u={},f=[],s=[],h=[],g,p,v;function a(){b(),T(),y()}function i(){o(J,m),o(J,a),o(te,y),d(document,jn+" keydown",function(L){v=L.type==="keydown"},{capture:!0}),d(c,"focusin",function(){pe(c,Hn,!!v)})}function m(L){var I=Yt.concat("style");ge(f),me(c,s),me(g,h),ue([g,p],I),ue(c,L?I:["style",Xe])}function y(){me(c,s),me(g,h),s=M(wt),h=M(sn),le(c,s),le(g,h),B(c,re,t.label),B(c,Vt,t.labelledby)}function b(){g=q("."+sn),p=et(g,"."+fr),je(g&&p,"A track/list element is missing."),st(f,mn(p,"."+Et+":not(."+In+")")),Ae({arrows:Gt,pagination:Lt,prev:$n,next:Pn,bar:vr,toggle:gr},function(L,I){u[I]=q("."+L)}),Ye(u,{root:c,track:g,list:p,slides:f})}function T(){var L=c.id||Wn(tt),I=t.role;c.id=L,g.id=g.id||L+"-track",p.id=p.id||L+"-list",!ie(c,ve)&&c.tagName!=="SECTION"&&I&&B(c,ve,I),B(c,Xe,l.carousel),B(p,ve,"presentation")}function q(L){var I=yn(c,L);return I&&Lr(I,"."+wt)===c?I:void 0}function M(L){return[L+"--"+t.type,L+"--"+t.direction,t.drag&&L+"--draggable",t.isNavigation&&L+"--nav",L===wt&&Ce]}return Ye(u,{setup:a,mount:i,destroy:m})}var Ne="slide",He="loop",ot="fade";function Ar(e,n,t,r){var o=Q(e),d=o.on,c=o.emit,l=o.bind,u=e.Components,f=e.root,s=e.options,h=s.isNavigation,g=s.updateOnMove,p=s.i18n,v=s.pagination,a=s.slideFocus,i=u.Direction.resolve,m=ie(r,"style"),y=ie(r,re),b=t>-1,T=et(r,"."+pr),q;function M(){b||(r.id=f.id+"-slide"+jt(n+1),B(r,ve,v?"tabpanel":"group"),B(r,Xe,p.slide),B(r,re,y||xt(p.slideLabel,[n+1,e.length]))),L()}function L(){l(r,"click",W(c,En,D)),l(r,"keydown",W(c,Tn,D)),d([nt,Cn,Oe],k),d(Ln,O),g&&d(Ee,P)}function I(){q=!0,o.destroy(),me(r,Er),ue(r,Yt),B(r,"style",m),B(r,re,y||"")}function O(){var H=e.splides.map(function(C){var N=C.splide.Components.Slides.getAt(n);return N?N.slide.id:""}).join(" ");B(r,re,xt(p.slideX,(b?t:n)+1)),B(r,rt,H),B(r,ve,a?"button":""),a&&ue(r,Xe)}function P(){q||k()}function k(){if(!q){var H=e.index;E(),S(),pe(r,Dn,n===H-1),pe(r,On,n===H+1)}}function E(){var H=A();H!==Jt(r,Ce)&&(pe(r,Ce,H),B(r,_n,h&&H||""),c(H?zn:Xn,D))}function S(){var H=j(),C=!H&&(!A()||b);if(e.state.is([De,Ke])||B(r,xn,C||""),B(Ht(r,s.focusableNodes||""),$e,C?-1:""),a&&B(r,$e,C?-1:0),H!==Jt(r,It)&&(pe(r,It,H),c(H?Kn:Qn,D)),!H&&document.activeElement===r){var N=u.Slides.getAt(e.index);N&&vn(N.slide)}}function w(H,C,N){ae(N&&T||r,H,C)}function A(){var H=e.index;return H===n||s.cloneStatus&&H===t}function j(){if(e.is(ot))return A();var H=ne(u.Elements.track),C=ne(r),N=i("left",!0),F=i("right",!0);return ft(H[N])<=We(C[N])&&ft(C[F])<=We(H[F])}function _(H,C){var N=ee(H-n);return!b&&(s.rewind||e.is(He))&&(N=be(N,e.length-N)),N<=C}var D={index:n,slideIndex:t,slide:r,container:T,isClone:b,mount:M,destroy:I,update:k,style:w,isWithin:_};return D}function Tr(e,n,t){var r=Q(e),o=r.on,d=r.emit,c=r.bind,l=n.Elements,u=l.slides,f=l.list,s=[];function h(){g(),o(J,p),o(J,g)}function g(){u.forEach(function(k,E){a(k,E,-1)})}function p(){q(function(k){k.destroy()}),ge(s)}function v(){q(function(k){k.update()})}function a(k,E,S){var w=Ar(e,E,S,k);w.mount(),s.push(w),s.sort(function(A,j){return A.index-j.index})}function i(k){return k?M(function(E){return!E.isClone}):s}function m(k){var E=n.Controller,S=E.toIndex(k),w=E.hasFocus()?1:t.perPage;return M(function(A){return ct(A.index,S,S+w-1)})}function y(k){return M(k)[0]}function b(k,E){oe(k,function(S){if(he(S)&&(S=gn(S)),pn(S)){var w=u[E];w?Ot(S,w):Ze(f,S),le(S,t.classes.slide),I(S,W(d,ze))}}),d(J)}function T(k){Te(M(k).map(function(E){return E.slide})),d(J)}function q(k,E){i(E).forEach(k)}function M(k){return s.filter(fn(k)?k:function(E){return he(k)?Ve(E.slide,k):Dt(Je(k),E.index)})}function L(k,E,S){q(function(w){w.style(k,E,S)})}function I(k,E){var S=Ht(k,"img"),w=S.length;w?S.forEach(function(A){c(A,"load error",function(){--w||E()})}):E()}function O(k){return k?u.length:s.length}function P(){return s.length>t.perPage}return{mount:h,destroy:p,update:v,register:a,get:i,getIn:m,getAt:y,add:b,remove:T,forEach:q,filter:M,style:L,getLength:O,isEnough:P}}function Cr(e,n,t){var r=Q(e),o=r.on,d=r.bind,c=r.emit,l=n.Slides,u=n.Direction.resolve,f=n.Elements,s=f.root,h=f.track,g=f.list,p=l.getAt,v=l.style,a,i,m;function y(){b(),d(window,"resize load",cr(W(c,ze))),o([te,J],b),o(ze,T)}function b(){a=t.direction===bt,ae(s,"maxWidth",we(t.width)),ae(h,u("paddingLeft"),q(!1)),ae(h,u("paddingRight"),q(!0)),T(!0)}function T(D){var H=ne(s);(D||i.width!==H.width||i.height!==H.height)&&(ae(h,"height",M()),v(u("marginRight"),we(t.gap)),v("width",I()),v("height",O(),!0),i=H,c(Bt),m!==(m=_())&&(pe(s,Rn,m),c(tr,m)))}function q(D){var H=t.padding,C=u(D?"right":"left");return H&&we(H[C]||(Fe(H)?0:H))||"0px"}function M(){var D="";return a&&(D=L(),je(D,"height or heightRatio is missing."),D="calc("+D+" - "+q(!1)+" - "+q(!0)+")"),D}function L(){return we(t.height||ne(g).width*t.heightRatio)}function I(){return t.autoWidth?null:we(t.fixedWidth)||(a?"":P())}function O(){return we(t.fixedHeight)||(a?t.autoHeight?null:P():L())}function P(){var D=we(t.gap);return"calc((100%"+(D&&" + "+D)+")/"+(t.perPage||1)+(D&&" - "+D)+")"}function k(){return ne(g)[u("width")]}function E(D,H){var C=p(D||0);return C?ne(C.slide)[u("width")]+(H?0:A()):0}function S(D,H){var C=p(D);if(C){var N=ne(C.slide)[u("right")],F=ne(g)[u("left")];return ee(N-F)+(H?0:A())}return 0}function w(D){return S(e.length-1)-S(0)+E(0,D)}function A(){var D=p(0);return D&&parseFloat(ae(D.slide,u("marginRight")))||0}function j(D){return parseFloat(ae(h,u("padding"+(D?"Right":"Left"))))||0}function _(){return e.is(ot)||w(!0)>k()}return{mount:y,resize:T,listSize:k,slideSize:E,sliderSize:w,totalSize:S,getPadding:j,isOverflow:_}}var kr=2;function Mr(e,n,t){var r=Q(e),o=r.on,d=n.Elements,c=n.Slides,l=n.Direction.resolve,u=[],f;function s(){o(J,h),o([te,ze],p),(f=i())&&(v(f),n.Layout.resize(!0))}function h(){g(),s()}function g(){Te(u),ge(u),r.destroy()}function p(){var m=i();f!==m&&(fF)&&(k(),I(P(w(),C>F),!0)),c(De),d(Ee,N,F,C),b.start(N,function(){c(Pe),d(nt,N,F,C),V&&V()})}function L(C){I(S(C,!0))}function I(C,N){if(!e.is(ot)){var F=N?C:O(C);ae(m,"transform","translate"+v("X")+"("+F+"px)"),C!==F&&d(Cn)}}function O(C){if(e.is(He)){var N=E(C),F=N>n.Controller.getEnd(),V=N<0;(V||F)&&(C=P(C,F))}return C}function P(C,N){var F=C-_(N),V=g();return C-=a(V*(We(ee(F)/V)||1))*(N?1:-1),C}function k(){I(w(),!0),b.cancel()}function E(C){for(var N=n.Slides.get(),F=0,V=1/0,Y=0;Y=0:N<=m[v("scrollWidth")]-ne(y)[v("width")]}function H(C,N){N=Qe(N)?w():N;var F=C!==!0&&a(N)a(_(!0));return F||V}return{mount:T,move:M,jump:L,translate:I,shift:P,cancel:k,toIndex:E,toPosition:S,getPosition:w,getLimit:_,exceededLimit:H,reposition:q}}function xr(e,n,t){var r=Q(e),o=r.on,d=r.emit,c=n.Move,l=c.getPosition,u=c.getLimit,f=c.toPosition,s=n.Slides,h=s.isEnough,g=s.getLength,p=t.omitEnd,v=e.is(He),a=e.is(Ne),i=W(w,!1),m=W(w,!0),y=t.start||0,b,T=y,q,M,L;function I(){O(),o([te,J,pt],O),o(Bt,P)}function O(){q=g(!0),M=t.perMove,L=t.perPage,b=D();var x=Me(y,0,p?b:q-1);x!==y&&(y=x,c.reposition())}function P(){b!==D()&&d(pt)}function k(x,U,K){if(!z()){var G=S(x),Z=_(G);Z>-1&&(U||Z!==y)&&(F(Z),c.move(G,Z,T,K))}}function E(x,U,K,G){n.Scroll.scroll(x,U,K,function(){var Z=_(c.toIndex(l()));F(p?be(Z,b):Z),G&&G()})}function S(x){var U=y;if(he(x)){var K=x.match(/([+\-<>])(\d+)?/)||[],G=K[1],Z=K[2];G==="+"||G==="-"?U=A(y+ +(""+G+(+Z||1)),y):G===">"?U=Z?H(+Z):i(!0):G==="<"&&(U=m(!0))}else U=v?x:Me(x,0,b);return U}function w(x,U){var K=M||(Y()?1:L),G=A(y+K*(x?-1:1),y,!(M||Y()));return G===-1&&a&&!hn(l(),u(!x),1)?x?0:b:U?G:_(G)}function A(x,U,K){if(h()||Y()){var G=j(x);G!==x&&(U=x,x=G,K=!1),x<0||x>b?!M&&(ct(0,x,U,!0)||ct(b,U,x,!0))?x=H(C(x)):v?x=K?x<0?-(q%L||L):q:x:t.rewind?x=x<0?b:0:x=-1:K&&x!==U&&(x=H(C(U)+(x0;)if(f(q-1,!0)!==f(x,!0)){x++;break}return Me(x,0,q-1)}function H(x){return Me(Y()?x:L*x,0,b)}function C(x){return Y()?be(x,b):ft((x>=b?q-1:x)/L)}function N(x){var U=c.toIndex(x);return a?Me(U,0,b):U}function F(x){x!==y&&(T=y,y=x)}function V(x){return x?T:y}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:i,getPrev:m,getAdjacent:w,getEnd:D,setIndex:F,getIndex:V,toIndex:H,toPage:C,toDest:N,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,c=r.emit,l=t.classes,u=t.i18n,f=n.Elements,s=n.Controller,h=f.arrows,g=f.track,p=h,v=f.prev,a=f.next,i,m,y={};function b(){q(),o(te,T)}function T(){M(),b()}function q(){var E=t.arrows;E&&!(v&&a)&&O(),v&&a&&(Ye(y,{prev:v,next:a}),Ge(p,E?"":"none"),le(p,m=Gt+"--"+t.direction),E&&(L(),k(),B([v,a],rt,g.id),c(nr,v,a)))}function M(){r.destroy(),me(p,m),i?(Te(h?[v,a]:p),v=a=null):ue([v,a],Yt)}function L(){o([ke,nt,J,Oe,pt],k),d(a,"click",W(I,">")),d(v,"click",W(I,"<"))}function I(E){s.go(E,!0)}function O(){p=h||Ie("div",l.arrows),v=P(!0),a=P(!1),i=!0,Ze(p,[v,a]),!h&&Ot(p,g)}function P(E){var S=' `,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 c=n[o.page].getAttribute("data-date");o.button.textContent=c||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(l=>{const u=l.innerHTML;l.remove();const f=document.createElement("div");f.classList.add("splide__slide");let s="";s+=`
`,s+=`${l.getAttribute(`,l.getAttribute("data-background-type")==="Video"&&(s+=``),s+="
",s+='
',s+=`
`,s+=u,s+=`
${l.getAttribute("data-name")}
`,s+="
",s+="
",f.innerHTML=s,o.appendChild(f)}),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 c=new se(d,{type:"loop",heightRatio:.5,pagination:!0,arrows:!1,autoplay:!0,interval:8e3,pauseOnHover:!1,pauseOnFocus:!1});c.on("pagination:mounted",l=>{l.list.classList.add("splide__pagination--custom"),l.items.forEach(u=>{const f=n[u.page],s=f.getAttribute("data-slide-icon"),h=f.getAttribute("data-name");if(s){const g=document.createElement("img");g.src=s,g.alt=f.getAttribute("data-name"),g.classList.add("home-hero-slide-icon"),g.width=40,u.button.appendChild(g)}if(h){const g=document.createElement("span");g.textContent=h,g.classList.add("home-hero-slide-title"),u.button.appendChild(g)}})}),c.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 c=Math.floor(Math.random()*(d+1));[o[d],o[c]]=[o[c],o[d]]}o.forEach((d,c)=>{setTimeout(()=>{d.classList.add("loaded")},c*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 c=Math.floor(Math.random()*(d+1));[o[d],o[c]]=[o[c],o[d]]}o.forEach((d,c)=>{setTimeout(()=>{d.classList.add("loaded")},c*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 c=r.querySelector(".splide");c&&c.splide&&c.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"),c=300;d.forEach((u,f)=>{setTimeout(()=>{u.classList.add("fade-in")},c*(f+1))});const l=o.querySelector(".landing-intro__main");l&&setTimeout(()=>{l.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()})();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(u=>!u.matches(".b6628, .b484")),o=document.createElement("div");o.classList.add("top-badges-wrapper"),n.prepend(o),r.slice(0,2).forEach(u=>o.appendChild(u));const d=n.querySelectorAll(".ribbon-wrapper"),c={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.

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

    Buy More, Save More

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

    Reward Points

    Buy this product and get ${q}${a(1,parseFloat(T),parseFloat(y),parseFloat(m),q)} points on this order.

    View Rewards

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

    ${q}

    `).join("");i.forEach(q=>{const M=q.closest(".catalog-single");if(!M)return;const L=M.querySelector(".product-points");L&&(L.insertAdjacentHTML("beforeend",`
    Top Brand

    ${m}

    ${T}
    `),q.remove())})};document.addEventListener("DOMContentLoaded",()=>{e(),n(),t(),r(),d(),c(),s(),g(),setTimeout(()=>{d()},1e3)});const p={pricing:!1,inventory:!1},v=()=>{p.pricing&&p.inventory&&setTimeout(()=>{o()},200)};document.addEventListener("live-pricing-done",()=>{p.pricing=!0,v(),f(),h(),setTimeout(()=>{l()},200)}),document.addEventListener("live-inventory-done",()=>{p.inventory=!0,v(),setTimeout(()=>{u()},200)}),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 c=()=>{let f='
    ';const s=d.querySelector('[data-type="col"]');s&&(f+=`

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${i}

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

    Uploaded: ${o.name}

    `,(u.endsWith(".png")||u.endsWith(".jpg")||u.endsWith(".jpeg")||u.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",c=o.innerHTML,l=c.indexOf(d);if(l!==-1){const p=c.substring(0,l),v=c.substring(l);o.innerHTML=`${p}
    ${v}
    `}const u=document.querySelector(".custom-configurator-data ul");if(!u)return;const f=u?t(u):[];let s='
    ',h="";f.forEach(p=>{var v;switch(p.text){case"Type":h=p.children[0].text;break;case"Title":s+=`

    ${p.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",s+="

    Select all that apply.

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

    Upload Your Logo

    ",s+=`

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

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

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

    Choose Your ${p.text}

    `,s+=`",s+="
    ";break}}}),s+="
    ",document.querySelector(".product-main-row").insertAdjacentHTML("afterend",s);const g=document.querySelectorAll(".product-main-row");g.length>1&&(g[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(c=>{const l={text:c.childNodes[0].nodeValue.trim()},u=c.querySelector("ul");u&&(l.children=e(u)),d.push(l)}),d},n=(o,d,c)=>{const l=new FormData;l.append("file",o),$.ajax({method:"post",url:"/ajax/upload-file",data:l,processData:!1,contentType:!1}).then(u=>{if(u.status==="success"){const{filepath:f}=u.data;c.value=f;const s=new FileReader;s.readAsDataURL(o),s.onloadend=()=>{d.innerHTML=`

    Uploaded: ${o.name}

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

    Switch Here To Save

    ';const P=document.createElement("p");P.className="comparison-message";const k=parseFloat(b)>0;if(a.pageYield&&i.pageYield){const E=t(a.pageYield),w=(t(i.pageYield)-E)/E*100,A=w.toFixed(0),j=w>0;j&&k?P.innerHTML=`Print ${A}% more and save ${T}${b} when you switch to our brand`:j?P.innerHTML=`Print ${A}% more when you switch to our brand`:k?P.innerHTML=`Save ${T}${b} when you switch to our brand`:P.innerHTML="Save when you switch to our brand"}else k?P.innerHTML=`Save ${T}${b} when you switch to our brand`:P.innerHTML="Save when you switch to our brand";if(O.appendChild(P),i.pageYield){const E=t(i.pageYield),S=typeof i.pageYield=="object",w=i.price/E*100,A=w<2?w.toFixed(2):w.toFixed(0),j=S?"avg. ":"",_=document.createElement("p");_.className="comparison-price",_.innerHTML=`Alternatives from ${j}${A}${q} per page `,O.appendChild(_)}else{const E=document.createElement("p");E.className="comparison-price",E.innerHTML='View alternatives ',O.appendChild(E)}return L.appendChild(O),M},h=(a,i,m,y="append",b={})=>{if(!i)return 0;let T;if(typeof m=="string")T=document.querySelectorAll(m);else if(m instanceof NodeList||m instanceof HTMLCollection)T=m;else if(m instanceof HTMLElement)T=[m];else return 0;if(!T||T.length===0)return 0;let q=0;return T.forEach(M=>{const L=a(i,...Object.values(b));if(L){switch(y){case"prepend":M.insertBefore(L,M.firstChild);break;case"before":M.parentNode.insertBefore(L,M);break;case"after":M.parentNode.insertBefore(L,M.nextSibling);break;case"append":default:M.appendChild(L);break}q+=1}}),q},g=[{ink:"1000402",toner:"1000424"}],p="EUR",v=!0;document.addEventListener("live-pricing-done",()=>{setTimeout(()=>{if(document.querySelector(".ink-toner-price-per-page")||document.querySelector(".ink-toner-yield-card"))return;const a=u(g);if(a&&(h(o,a,".product-shopping-actions .has-price","after",{currency:p}),h(d,a,".product-points-wrapper","before"),a.type==="original")){const i=f();i&&h(s,a,".ink-toner-yield-card","before",{compatibleProduct:i,currency:p,useModal:v})}},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,c=d.querySelectorAll(".eco-grid-sustainability-goal");c.forEach((u,f)=>{setTimeout(()=>{u.classList.add("fade-in")},100*f)});const l=d.querySelector(".goals-achievements-achievements-outer");if(l){const u=l.querySelectorAll("p");u.forEach((s,h)=>{setTimeout(()=>{s.classList.add("fade-in")},100*(c.length+h))}),l.querySelectorAll(".list-check li").forEach((s,h)=>{setTimeout(()=>{s.classList.add("fade-in")},100*(c.length+u.length+h))})}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 v=o.querySelector(".actioncontent");v&&o.querySelector(".shopping-actions").insertAdjacentElement("beforeend",v);const a=o.querySelector(".delete");a&&a.insertAdjacentHTML("beforeend","Remove From Quicklist")}const d=document.createElement("div"),c=o.querySelector(".inputquantity");function l(){const p=parseInt(c.value,10)||0;c.value=p+1,c.dispatchEvent(new Event("change",{bubbles:!0}))}function u(){const p=parseInt(c.value,10)||0;p>0&&(c.value=p-1,c.dispatchEvent(new Event("change",{bubbles:!0})))}if(c){d.classList.add("quantity-wrapper"),c.insertAdjacentElement("beforebegin",d),d.appendChild(c);const p=document.createElement("button");p.classList.add("plus-btn"),p.innerHTML='',d.insertAdjacentElement("beforeend",p);const v=document.createElement("button");v.classList.add("minus-btn"),v.innerHTML='',d.insertAdjacentElement("afterbegin",v),p.addEventListener("click",l),v.addEventListener("click",u)}const f=document.createElement("div");f.classList.add("product-stock-and-actions"),o.querySelector(".shopping-actions").appendChild(f);const s=o.querySelector(".quicklist-groups-btn-wrapper");s&&f.insertAdjacentElement("beforeend",s);const h=o.querySelector(".live-inventory-v2-wrapper");h&&n?f.insertAdjacentElement("beforeend",h):h&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",h);const g=o.querySelector(".product-compare-action");g&&f.insertAdjacentElement("beforeend",g)}),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 c=o.querySelector(".has-price");if(!c)return;let l=o.querySelector(".total-price");l||(l=document.createElement("span"),l.classList.add("total-price"),c.insertAdjacentElement("afterend",l));const u=()=>{const f=c.textContent.trim(),s=parseFloat(f.replace(/[^0-9.-]+/g,""))||0,h=parseInt(d.value,10)||0,g=s*h;g>0?l.textContent=`€${g.toFixed(2)}`:l.textContent="€0.00"};d.addEventListener("change",u),d.addEventListener("input",u),u()})},!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()})();