(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,i=parseInt(o.dataset.rowIndex||0,10),a=o.querySelectorAll(".col"),c=100;i%2!==0?a.forEach((p,l)=>{const u=a.length-l-1;setTimeout(()=>{p.classList.add("fade-in")},c*u)}):a.forEach((p,l)=>{setTimeout(()=>{p.classList.add("fade-in")},c*l)}),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;const e=["https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/igate-logo-white.png","https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/igate-logo-light.png"],n=document.querySelector(".header-full .widgetlogo .logo img").src;e.includes(n)||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 Un(e,n){for(var t=0;t-1}function st(e,n){return e.push.apply(e,Je(n)),e}function fe(e,n,t){e&&oe(n,function(r){r&&e.classList[t?"add":"remove"](r)})}function le(e,n){fe(e,ye(n)?n.split(" "):n,!0)}function Ze(e,n){oe(n,e.appendChild.bind(e))}function Rt(e,n){oe(e,function(t){var r=(n||t).parentNode;r&&r.insertBefore(t,n)})}function Ve(e,n){return mn(e)&&(e.msMatchesSelector||e.matches).call(e,n)}function vn(e,n){var t=e?Ee(e.children):[];return n?t.filter(function(r){return Ve(r,n)}):t}function et(e,n){return n?vn(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 Ee(arguments,1).forEach(function(n){Ae(n,function(t,r){e[r]=n[r]})}),e}function he(e){return Ee(arguments,1).forEach(function(n){Ae(n,function(t,r){Nt(t)?e[r]=t.slice():Fe(t)?e[r]=he({},Fe(e[r])?e[r]:{},t):e[r]=t})}),e}function Jt(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 j(e,n,t){Fe(n)?Ae(n,function(r,o){j(e,o,r)}):oe(e,function(r){Dt(t)||t===""?ue(r,n):r.setAttribute(n,String(t))})}function $e(e,n,t){var r=document.createElement(e);return n&&(ye(n)?le(r,n):j(r,n)),t&&Ze(t,r),r}function ae(e,n,t){if(Xe(t))return getComputedStyle(e)[n];Dt(t)||(e.style[n]=""+t)}function Ge(e,n){ae(e,"display",n)}function gn(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function ie(e,n){return e.getAttribute(n)}function Zt(e,n){return e&&e.classList.contains(n)}function ne(e){return e.getBoundingClientRect()}function Ce(e){oe(e,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function hn(e){return et(new DOMParser().parseFromString(e,"text/html").body)}function pe(e,n){e.preventDefault(),n&&(e.stopPropagation(),e.stopImmediatePropagation())}function yn(e,n){return e&&e.querySelector(n)}function Ht(e,n){return n?Ee(e.querySelectorAll(n)):[]}function me(e,n){fe(e,n,!1)}function Mt(e){return e.timeStamp}function qe(e){return ye(e)?e:e?e+"px":""}var tt="splide",Bt="data-"+tt;function Be(e,n){if(!e)throw new Error("["+tt+"] "+(n||""))}var be=Math.min,dt=Math.max,pt=Math.floor,We=Math.ceil,ee=Math.abs;function bn(e,n,t){return ee(e-n)0)-+(e<0)}function $t(e,n){return oe(n,function(t){e=e.replace("%s",""+t)}),e}function jt(e){return e<10?"0"+e:""+e}var en={};function zn(e){return""+e+jt(en[e]=(en[e]||0)+1)}function Sn(){var e=[];function n(a,c,p,l){o(a,c,function(u,y,m){var f="addEventListener"in u,h=f?u.removeEventListener.bind(u,y,p,l):u.removeListener.bind(u,p);f?u.addEventListener(y,p,l):u.addListener(p),e.push([u,y,m,p,h])})}function t(a,c,p){o(a,c,function(l,u,y){e=e.filter(function(m){return m[0]===l&&m[1]===u&&m[2]===y&&(!p||m[3]===p)?(m[4](),!1):!0})})}function r(a,c,p){var l,u=!0;return typeof CustomEvent=="function"?l=new CustomEvent(c,{bubbles:u,detail:p}):(l=document.createEvent("CustomEvent"),l.initCustomEvent(c,u,!1,p)),a.dispatchEvent(l),l}function o(a,c,p){oe(a,function(l){l&&oe(c,function(u){u.split(" ").forEach(function(y){var m=y.split(".");p(l,m[0],m[1])})})})}function i(){e.forEach(function(a){a[4]()}),ge(e)}return{bind:n,unbind:t,dispatch:r,destroy:i}}var ke="mounted",tn="ready",Se="move",nt="moved",En="click",Qn="active",Kn="inactive",Xn="visible",Jn="hidden",J="refresh",te="updated",ze="resize",Ft="resized",Zn="drag",er="dragging",tr="dragged",Vt="scroll",Oe="scrolled",nr="overflow",wn="destroy",rr="arrows:mounted",or="arrows:updated",ar="pagination:mounted",ir="pagination:updated",Ln="navigation:mounted",qn="autoplay:play",sr="autoplay:playing",An="autoplay:pause",Cn="lazyload:loaded",Tn="sk",kn="sh",ft="ei";function X(e){var n=e?e.event.bus:document.createDocumentFragment(),t=Sn();function r(i,a){t.bind(n,Je(i).join(" "),function(c){a.apply(a,Nt(c.detail)?c.detail:[])})}function o(i){t.dispatch(n,i,Ee(arguments,1))}return e&&e.event.on(wn,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,i,a=0,c,p=!0,l=0;function u(){if(!p){if(a=e?be((o()-i)/e,1):1,t&&t(a),a>=1&&(n(),i=o(),r&&++l>=r))return m();c=Xt(u)}}function y(v){v||h(),i=o()-(v?a*e:0),p=!1,c=Xt(u)}function m(){p=!0}function f(){i=o(),a=0,t&&t(a)}function h(){c&&cancelAnimationFrame(c),a=0,c=0,p=!0}function d(v){e=v}function s(){return p}return{start:y,rewind:f,pause:m,cancel:h,set:d,isPaused:s}}function cr(e){var n=e;function t(o){n=o}function r(o){return Ot(Je(o),n)}return{set:t,is:r}}function lr(e,n){var t=vt(0,e,null,1);return function(){t.isPaused()&&t.start()}}function ur(e,n,t){var r=e.state,o=t.breakpoints||{},i=t.reducedMotion||{},a=Sn(),c=[];function p(){var h=t.mediaQuery==="min";Ue(o).sort(function(d,s){return h?+d-+s:+s-+d}).forEach(function(d){u(o[d],"("+(h?"min":"max")+"-width:"+d+"px)")}),u(i,Kt),y()}function l(h){h&&a.destroy()}function u(h,d){var s=matchMedia(d);a.bind(s,"change",y),c.push([h,s])}function y(){var h=r.is(ut),d=t.direction,s=c.reduce(function(v,g){return he(v,g[1].matches?g[0]:{})},{});Jt(t),f(s),t.destroy?e.destroy(t.destroy==="completely"):h?(l(!0),e.mount()):d!==t.direction&&e.refresh()}function m(h){matchMedia(Kt).matches&&(h?he(t,i):Jt(t,Ue(i)))}function f(h,d,s){he(t,h),d&&he(Object.getPrototypeOf(t),h),(s||!r.is(_e))&&e.emit(te,t)}return{setup:p,destroy:l,reduce:m,set:f}}var gt="Arrow",ht=gt+"Left",yt=gt+"Right",xn=gt+"Up",Mn=gt+"Down",nn="rtl",bt="ttb",Lt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[xn,yt],ArrowRight:[Mn,ht]};function dr(e,n,t){function r(i,a,c){c=c||t.direction;var p=c===nn&&!a?1:c===bt?0:-1;return Lt[i]&&Lt[i][p]||i.replace(/width|left|right/i,function(l,u){var y=Lt[l.toLowerCase()][p]||l;return u>0?y.charAt(0).toUpperCase()+y.slice(1):y})}function o(i){return i*(t.direction===nn?1:-1)}return{resolve:r,orient:o}}var ve="role",Ie="tabindex",pr="disabled",ce="aria-",rt=ce+"controls",_n=ce+"current",rn=ce+"selected",re=ce+"label",Ut=ce+"labelledby",$n=ce+"hidden",Yt=ce+"orientation",Qe=ce+"roledescription",on=ce+"live",an=ce+"busy",sn=ce+"atomic",Gt=[ve,Ie,pr,rt,_n,re,Ut,$n,Yt,Qe],de=tt+"__",we="is-",qt=tt,cn=de+"track",fr=de+"list",St=de+"slide",In=St+"--clone",mr=St+"__container",Wt=de+"arrows",Et=de+"arrow",Pn=Et+"--prev",Nn=Et+"--next",wt=de+"pagination",Dn=wt+"__page",vr=de+"progress",gr=vr+"__bar",hr=de+"toggle",yr=de+"spinner",br=de+"sr",Sr=we+"initialized",Te=we+"active",On=we+"prev",Rn=we+"next",It=we+"visible",Pt=we+"loading",Hn=we+"focus-in",Bn=we+"overflow",Er=[Te,It,On,Rn,Pt,Hn,Bn],wr={slide:St,clone:In,arrows:Wt,arrow:Et,prev:Pn,next:Nn,pagination:wt,page:Dn,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,ln=200,jn="touchstart mousedown",At="touchmove mousemove",Ct="touchend touchcancel mouseup click";function Ar(e,n,t){var r=X(e),o=r.on,i=r.bind,a=e.root,c=t.i18n,p={},l=[],u=[],y=[],m,f,h;function d(){b(),q(),g()}function s(){o(J,v),o(J,d),o(te,g),i(document,jn+" keydown",function(E){h=E.type==="keydown"},{capture:!0}),i(a,"focusin",function(){fe(a,Hn,!!h)})}function v(E){var _=Gt.concat("style");ge(l),me(a,u),me(m,y),ue([m,f],_),ue(a,E?_:["style",Qe])}function g(){me(a,u),me(m,y),u=L(qt),y=L(cn),le(a,u),le(m,y),j(a,re,t.label),j(a,Ut,t.labelledby)}function b(){m=w("."+cn),f=et(m,"."+fr),Be(m&&f,"A track/list element is missing."),st(l,vn(f,"."+St+":not(."+In+")")),Ae({arrows:Wt,pagination:wt,prev:Pn,next:Nn,bar:gr,toggle:hr},function(E,_){p[_]=w("."+E)}),Ye(p,{root:a,track:m,list:f,slides:l})}function q(){var E=a.id||zn(tt),_=t.role;a.id=E,m.id=m.id||E+"-track",f.id=f.id||E+"-list",!ie(a,ve)&&a.tagName!=="SECTION"&&_&&j(a,ve,_),j(a,Qe,c.carousel),j(f,ve,"presentation")}function w(E){var _=yn(a,E);return _&&Lr(_,"."+qt)===a?_:void 0}function L(E){return[E+"--"+t.type,E+"--"+t.direction,t.drag&&E+"--draggable",t.isNavigation&&E+"--nav",E===qt&&Te]}return Ye(p,{setup:d,mount:s,destroy:v})}var Ne="slide",Re="loop",ot="fade";function Cr(e,n,t,r){var o=X(e),i=o.on,a=o.emit,c=o.bind,p=e.Components,l=e.root,u=e.options,y=u.isNavigation,m=u.updateOnMove,f=u.i18n,h=u.pagination,d=u.slideFocus,s=p.Direction.resolve,v=ie(r,"style"),g=ie(r,re),b=t>-1,q=et(r,"."+mr),w;function L(){b||(r.id=l.id+"-slide"+jt(n+1),j(r,ve,h?"tabpanel":"group"),j(r,Qe,f.slide),j(r,re,g||$t(f.slideLabel,[n+1,e.length]))),E()}function E(){c(r,"click",W(a,En,D)),c(r,"keydown",W(a,Tn,D)),i([nt,kn,Oe],x),i(Ln,R),m&&i(Se,N)}function _(){w=!0,o.destroy(),me(r,Er),ue(r,Gt),j(r,"style",v),j(r,re,g||"")}function R(){var P=e.splides.map(function(A){var O=A.splide.Components.Slides.getAt(n);return O?O.slide.id:""}).join(" ");j(r,re,$t(f.slideX,(b?t:n)+1)),j(r,rt,P),j(r,ve,d?"button":""),d&&ue(r,Qe)}function N(){w||x()}function x(){if(!w){var P=e.index;S(),C(),fe(r,On,n===P-1),fe(r,Rn,n===P+1)}}function S(){var P=M();P!==Zt(r,Te)&&(fe(r,Te,P),j(r,_n,y&&P||""),a(P?Qn:Kn,D))}function C(){var P=H(),A=!P&&(!M()||b);if(e.state.is([De,Ke])||j(r,$n,A||""),j(Ht(r,u.focusableNodes||""),Ie,A?-1:""),d&&j(r,Ie,A?-1:0),P!==Zt(r,It)&&(fe(r,It,P),a(P?Xn:Jn,D)),!P&&document.activeElement===r){var O=p.Slides.getAt(e.index);O&&gn(O.slide)}}function k(P,A,O){ae(O&&q||r,P,A)}function M(){var P=e.index;return P===n||u.cloneStatus&&P===t}function H(){if(e.is(ot))return M();var P=ne(p.Elements.track),A=ne(r),O=s("left",!0),F=s("right",!0);return pt(P[O])<=We(A[O])&&pt(A[F])<=We(P[F])}function T(P,A){var O=ee(P-n);return!b&&(u.rewind||e.is(Re))&&(O=be(O,e.length-O)),O<=A}var D={index:n,slideIndex:t,slide:r,container:q,isClone:b,mount:L,destroy:_,update:x,style:k,isWithin:T};return D}function Tr(e,n,t){var r=X(e),o=r.on,i=r.emit,a=r.bind,c=n.Elements,p=c.slides,l=c.list,u=[];function y(){m(),o(J,f),o(J,m)}function m(){p.forEach(function(x,S){d(x,S,-1)})}function f(){w(function(x){x.destroy()}),ge(u)}function h(){w(function(x){x.update()})}function d(x,S,C){var k=Cr(e,S,C,x);k.mount(),u.push(k),u.sort(function(M,H){return M.index-H.index})}function s(x){return x?L(function(S){return!S.isClone}):u}function v(x){var S=n.Controller,C=S.toIndex(x),k=S.hasFocus()?1:t.perPage;return L(function(M){return ct(M.index,C,C+k-1)})}function g(x){return L(x)[0]}function b(x,S){oe(x,function(C){if(ye(C)&&(C=hn(C)),mn(C)){var k=p[S];k?Rt(C,k):Ze(l,C),le(C,t.classes.slide),_(C,W(i,ze))}}),i(J)}function q(x){Ce(L(x).map(function(S){return S.slide})),i(J)}function w(x,S){s(S).forEach(x)}function L(x){return u.filter(fn(x)?x:function(S){return ye(x)?Ve(S.slide,x):Ot(Je(x),S.index)})}function E(x,S,C){w(function(k){k.style(x,S,C)})}function _(x,S){var C=Ht(x,"img"),k=C.length;k?C.forEach(function(M){a(M,"load error",function(){--k||S()})}):S()}function R(x){return x?p.length:u.length}function N(){return u.length>t.perPage}return{mount:y,destroy:f,update:h,register:d,get:s,getIn:v,getAt:g,add:b,remove:q,forEach:w,filter:L,style:E,getLength:R,isEnough:N}}function kr(e,n,t){var r=X(e),o=r.on,i=r.bind,a=r.emit,c=n.Slides,p=n.Direction.resolve,l=n.Elements,u=l.root,y=l.track,m=l.list,f=c.getAt,h=c.style,d,s,v;function g(){b(),i(window,"resize load",lr(W(a,ze))),o([te,J],b),o(ze,q)}function b(){d=t.direction===bt,ae(u,"maxWidth",qe(t.width)),ae(y,p("paddingLeft"),w(!1)),ae(y,p("paddingRight"),w(!0)),q(!0)}function q(D){var P=ne(u);(D||s.width!==P.width||s.height!==P.height)&&(ae(y,"height",L()),h(p("marginRight"),qe(t.gap)),h("width",_()),h("height",R(),!0),s=P,a(Ft),v!==(v=T())&&(fe(u,Bn,v),a(nr,v)))}function w(D){var P=t.padding,A=p(D?"right":"left");return P&&qe(P[A]||(Fe(P)?0:P))||"0px"}function L(){var D="";return d&&(D=E(),Be(D,"height or heightRatio is missing."),D="calc("+D+" - "+w(!1)+" - "+w(!0)+")"),D}function E(){return qe(t.height||ne(m).width*t.heightRatio)}function _(){return t.autoWidth?null:qe(t.fixedWidth)||(d?"":N())}function R(){return qe(t.fixedHeight)||(d?t.autoHeight?null:N():E())}function N(){var D=qe(t.gap);return"calc((100%"+(D&&" + "+D)+")/"+(t.perPage||1)+(D&&" - "+D)+")"}function x(){return ne(m)[p("width")]}function S(D,P){var A=f(D||0);return A?ne(A.slide)[p("width")]+(P?0:M()):0}function C(D,P){var A=f(D);if(A){var O=ne(A.slide)[p("right")],F=ne(m)[p("left")];return ee(O-F)+(P?0:M())}return 0}function k(D){return C(e.length-1)-C(0)+S(0,D)}function M(){var D=f(0);return D&&parseFloat(ae(D.slide,p("marginRight")))||0}function H(D){return parseFloat(ae(y,p("padding"+(D?"Right":"Left"))))||0}function T(){return e.is(ot)||k(!0)>x()}return{mount:g,resize:q,listSize:x,slideSize:S,sliderSize:k,totalSize:C,getPadding:H,isOverflow:T}}var xr=2;function Mr(e,n,t){var r=X(e),o=r.on,i=n.Elements,a=n.Slides,c=n.Direction.resolve,p=[],l;function u(){o(J,y),o([te,ze],f),(l=s())&&(h(l),n.Layout.resize(!0))}function y(){m(),u()}function m(){Ce(p),ge(p),r.destroy()}function f(){var v=s();l!==v&&(lF)&&(x(),_(N(k(),A>F),!0)),a(De),i(Se,O,F,A),b.start(O,function(){a(Pe),i(nt,O,F,A),V&&V()})}function E(A){_(C(A,!0))}function _(A,O){if(!e.is(ot)){var F=O?A:R(A);ae(v,"transform","translate"+h("X")+"("+F+"px)"),A!==F&&i(kn)}}function R(A){if(e.is(Re)){var O=S(A),F=O>n.Controller.getEnd(),V=O<0;(V||F)&&(A=N(A,F))}return A}function N(A,O){var F=A-T(O),V=m();return A-=d(V*(We(ee(F)/V)||1))*(O?1:-1),A}function x(){_(k(),!0),b.cancel()}function S(A){for(var O=n.Slides.get(),F=0,V=1/0,Y=0;Y=0:O<=v[h("scrollWidth")]-ne(g)[h("width")]}function P(A,O){O=Xe(O)?k():O;var F=A!==!0&&d(O)d(T(!0));return F||V}return{mount:q,move:L,jump:E,translate:_,shift:N,cancel:x,toIndex:S,toPosition:C,getPosition:k,getLimit:T,exceededLimit:P,reposition:w}}function $r(e,n,t){var r=X(e),o=r.on,i=r.emit,a=n.Move,c=a.getPosition,p=a.getLimit,l=a.toPosition,u=n.Slides,y=u.isEnough,m=u.getLength,f=t.omitEnd,h=e.is(Re),d=e.is(Ne),s=W(k,!1),v=W(k,!0),g=t.start||0,b,q=g,w,L,E;function _(){R(),o([te,J,ft],R),o(Ft,N)}function R(){w=m(!0),L=t.perMove,E=t.perPage,b=D();var I=xe(g,0,f?b:w-1);I!==g&&(g=I,a.reposition())}function N(){b!==D()&&i(ft)}function x(I,U,K){if(!z()){var G=C(I),Z=T(G);Z>-1&&(U||Z!==g)&&(F(Z),a.move(G,Z,q,K))}}function S(I,U,K,G){n.Scroll.scroll(I,U,K,function(){var Z=T(a.toIndex(c()));F(f?be(Z,b):Z),G&&G()})}function C(I){var U=g;if(ye(I)){var K=I.match(/([+\-<>])(\d+)?/)||[],G=K[1],Z=K[2];G==="+"||G==="-"?U=M(g+ +(""+G+(+Z||1)),g):G===">"?U=Z?P(+Z):s(!0):G==="<"&&(U=v(!0))}else U=h?I:xe(I,0,b);return U}function k(I,U){var K=L||(Y()?1:E),G=M(g+K*(I?-1:1),g,!(L||Y()));return G===-1&&d&&!bn(c(),p(!I),1)?I?0:b:U?G:T(G)}function M(I,U,K){if(y()||Y()){var G=H(I);G!==I&&(U=I,I=G,K=!1),I<0||I>b?!L&&(ct(0,I,U,!0)||ct(b,U,I,!0))?I=P(A(I)):h?I=K?I<0?-(w%E||E):w:I:t.rewind?I=I<0?b:0:I=-1:K&&I!==U&&(I=P(A(U)+(I0;)if(l(w-1,!0)!==l(I,!0)){I++;break}return xe(I,0,w-1)}function P(I){return xe(Y()?I:E*I,0,b)}function A(I){return Y()?be(I,b):pt((I>=b?w-1:I)/E)}function O(I){var U=a.toIndex(I);return d?xe(U,0,b):U}function F(I){I!==g&&(q=g,g=I)}function V(I){return I?q:g}function Y(){return!Xe(t.focus)||t.isNavigation}function z(){return e.state.is([De,Ke])&&!!t.waitForTransition}return{mount:_,go:x,scroll:S,getNext:s,getPrev:v,getAdjacent:k,getEnd:D,setIndex:F,getIndex:V,toIndex:P,toPage:A,toDest:O,hasFocus:Y,isBusy:z}}var Ir="http://www.w3.org/2000/svg",Pr="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 Nr(e,n,t){var r=X(e),o=r.on,i=r.bind,a=r.emit,c=t.classes,p=t.i18n,l=n.Elements,u=n.Controller,y=l.arrows,m=l.track,f=y,h=l.prev,d=l.next,s,v,g={};function b(){w(),o(te,q)}function q(){L(),b()}function w(){var S=t.arrows;S&&!(h&&d)&&R(),h&&d&&(Ye(g,{prev:h,next:d}),Ge(f,S?"":"none"),le(f,v=Wt+"--"+t.direction),S&&(E(),x(),j([h,d],rt,m.id),a(rr,h,d)))}function L(){r.destroy(),me(f,v),s?(Ce(y?[h,d]:f),h=d=null):ue([h,d],Gt)}function E(){o([ke,nt,J,Oe,ft],x),i(d,"click",W(_,">")),i(h,"click",W(_,"<"))}function _(S){u.go(S,!0)}function R(){f=y||$e("div",c.arrows),h=N(!0),d=N(!1),s=!0,Ze(f,[h,d]),!y&&Rt(f,m)}function N(S){var C=' `,r=document.createElement("div");r.innerHTML=t.trim();const o=r.firstChild;return document.body.appendChild(o),o}function dn(){let e=null;for(let o=0;o{po(n,"true",lo),o.remove()}),setTimeout(()=>{o.modal("show")},100)}else r.remove()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",dn):dn();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 a=n[o.page].getAttribute("data-date");o.button.textContent=a||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 p=c.innerHTML;c.remove();const l=document.createElement("div");l.classList.add("splide__slide");let u="";u+=`
`,u+=`${c.getAttribute(`,c.getAttribute("data-background-type")==="Video"&&(u+=``),u+="
",u+='
',u+=`
`,u+=p,u+=`
${c.getAttribute("data-name")}
`,u+="
",u+="
",l.innerHTML=u,o.appendChild(l)}),r.appendChild(o),t.appendChild(r),t.insertAdjacentHTML("beforeend",`
    `),document.querySelector(".zonetop").prepend(t);const i=document.querySelector(".home-hero-wrapper");if(!i)return;const a=new se(i,{type:"loop",heightRatio:.5,pagination:!0,arrows:!1,autoplay:!0,interval:8e3,pauseOnHover:!1,pauseOnFocus:!1});a.on("pagination:mounted",c=>{c.list.classList.add("splide__pagination--custom"),c.items.forEach(p=>{const l=n[p.page],u=l.getAttribute("data-slide-icon"),y=l.getAttribute("data-name");if(u){const m=document.createElement("img");m.src=u,m.alt=l.getAttribute("data-name"),m.classList.add("home-hero-slide-icon"),m.width=40,p.button.appendChild(m)}if(y){const m=document.createElement("span");m.textContent=y,m.classList.add("home-hero-slide-title"),p.button.appendChild(m)}})}),a.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 i=o.length-1;i>0;i--){const a=Math.floor(Math.random()*(i+1));[o[i],o[a]]=[o[a],o[i]]}o.forEach((i,a)=>{setTimeout(()=>{i.classList.add("loaded")},a*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 i=o.length-1;i>0;i-=1){const a=Math.floor(Math.random()*(i+1));[o[i],o[a]]=[o[a],o[i]]}o.forEach((i,a)=>{setTimeout(()=>{i.classList.add("loaded")},a*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"),i=e.querySelector(".testimonial-carousel");o.appendChild(i),$(r).on("shown.bs.modal",()=>{const a=r.querySelector(".splide");a&&a.splide&&a.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,i)=>{i===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,i=o.querySelectorAll(".landing-intro__feature"),a=300;i.forEach((p,l)=>{setTimeout(()=>{p.classList.add("fade-in")},a*(l+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=l=>{const u=new FormData;u.append("file",l),$.ajax({method:"post",url:"/ajax/upload-file",data:u,processData:!1,contentType:!1}).then(y=>{if(y.status!=="success")return;const{filepath:m}=y.data,f=new FileReader;f.readAsDataURL(l),f.onloadend=()=>{var h;document.querySelectorAll(".switch-save-form .file-list").forEach(d=>{var v;n+=1,d.insertAdjacentHTML("beforeend",`
    `),d.querySelector(".file-wrap")&&((v=d.querySelector(".files-title.hide"))==null||v.classList.remove("hide"))}),document.querySelectorAll(".switch-save-form .file-drop .no-file-label").forEach(d=>{d.classList.add("hide")}),(h=document.getElementById(`fileDelete-${n}`))==null||h.addEventListener("click",d=>{var v,g,b;const s=d.target.closest(".file-list");d.target.closest(".file-wrap").remove(),s.querySelector(".file-wrap")||((v=s.querySelector(".files-title"))==null||v.classList.add("hide"),(b=(g=s.closest(".file-drop"))==null?void 0:g.querySelector(".no-file-label"))==null||b.classList.remove("hide"))})}})},r=l=>{var y;const u=l.target.closest(".file-drop");(y=u==null?void 0:u.querySelector("input.file-upload-button"))==null||y.click()},o=l=>{var u;(u=l.target.files)!=null&&u[0]&&t(l.target.files[0])},i=l=>{var u;l.preventDefault(),l.currentTarget.classList.remove("is-drag-over"),(u=l.dataTransfer.files)!=null&&u[0]&&t(l.dataTransfer.files[0])},a=l=>{l.preventDefault(),l.currentTarget.classList.add("is-drag-over")},c=l=>{l.currentTarget.classList.remove("is-drag-over")};(()=>{document.querySelectorAll(".switch-save-form .file-drop").forEach(l=>{var u;l.addEventListener("drop",i),l.addEventListener("dragover",a),l.addEventListener("dragleave",c),(u=l.querySelector("a.file-upload-button"))==null||u.addEventListener("click",r)}),document.querySelectorAll(".switch-save-form input.file-upload-button").forEach(l=>{l.addEventListener("change",o)})})()})();(()=>{if(window.guestPricingPopupEnabled!==!0||!document.querySelector(".ex-loggedin"))return;const e=document.querySelector("#guestPricingModal");if(!e)return;const n="guestPricingPopup",t=14,r=24*60*60*1e3,o=()=>{try{const l=localStorage.getItem(n);if(!l)return null;const u=Number(l);return Number.isFinite(u)?u:null}catch{return null}},i=()=>{try{localStorage.setItem(n,String(Date.now()+t*r))}catch{}},a=o();if(a&&Date.now(){if(!window.jQuery||!window.jQuery.fn.modal)return;window.jQuery(e).one("shown.bs.modal",i).modal("show")},p=()=>{window.setTimeout(c,600)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",p):p()})();const vo="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='10.9995'%20height='11.8139'%20viewBox='0%200%2010.9995%2011.8139'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M10.6937%209.8575C11.1269%2010.3312%2011.0959%2011.0699%2010.6257%2011.5055C10.1531%2011.9423%209.41925%2011.9112%208.98488%2011.4375L5.50034%207.63073L2.01461%2011.4375C1.57904%2011.9124%200.845143%2011.9411%200.373792%2011.5055C-0.0963776%2011.0699%20-0.127402%2010.3313%200.305764%209.8575L3.92275%205.90756L0.305764%201.95644C-0.127426%201.48389%20-0.0963776%200.744017%200.373792%200.30844C0.846348%20-0.128318%201.58145%20-0.0972928%202.01461%200.376468L5.50034%204.1844L8.98488%200.376468C9.42045%20-0.0972928%2010.1555%20-0.127113%2010.6257%200.30844C11.0959%200.743994%2011.1269%201.48386%2010.6937%201.95644L7.07674%205.90756L10.6937%209.8575Z'%20fill='%230E1D29'/%3e%3c/g%3e%3c/svg%3e",kt="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='15.999'%20height='14.5675'%20viewBox='0%200%2015.999%2014.5675'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='15-Checked'%3e%3cpath%20id='Vector'%20d='M6.37501%2013.1075C6.31393%2013.1075%206.2539%2013.0915%206.20089%2013.0611C6.14788%2013.0308%206.10372%2012.9871%206.0728%2012.9344C4.90842%2010.9507%201.8042%206.72688%201.77301%206.68444C1.72314%206.61665%201.69934%206.53318%201.70594%206.44928C1.71255%206.36538%201.74913%206.28667%201.809%206.22752L2.76354%205.28423C2.82184%205.22662%202.89848%205.19127%202.98014%205.18432C3.06181%205.17738%203.14332%205.19927%203.21051%205.2462L6.30209%207.40486C8.37083%204.7521%2010.2925%202.91934%2011.5567%201.83787C12.98%200.620544%2013.886%200.0725042%2013.9239%200.0499365C13.9784%200.0172596%2014.0407%20-1.01774e-06%2014.1042%207.09588e-10H15.6485C15.7196%20-4.51914e-06%2015.7889%200.0215835%2015.8474%200.0619019C15.9059%200.10222%2015.9508%200.159365%2015.976%200.225759C16.0013%200.292153%2016.0058%200.364662%2015.9889%200.433671C15.9721%200.50268%2015.9346%200.56493%2015.8816%200.612169C11.4961%204.51822%206.72716%2012.8468%206.6795%2012.9305C6.64908%2012.9839%206.60514%2013.0283%206.55209%2013.0594C6.49904%2013.0905%206.43876%2013.107%206.37729%2013.1074L6.37501%2013.1075Z'%20fill='%23D72C23'/%3e%3cpath%20id='Vector_2'%20d='M6.30777%2014.5675C2.82966%2014.5675%200%2011.7378%200%208.2597C0%204.78157%202.82966%201.95194%206.30777%201.95194C7.00515%201.95117%207.69782%202.06627%208.35748%202.29256C8.44538%202.32276%208.51768%202.38665%208.55848%202.47017C8.59928%202.55368%208.60523%202.64998%208.57502%202.73789C8.54482%202.82579%208.48093%202.89809%208.39741%202.93889C8.3139%202.97969%208.2176%202.98564%208.12969%202.95543C7.54323%202.75432%206.92743%202.65205%206.30745%202.6528C3.21577%202.6528%200.700548%205.16806%200.700548%208.2597C0.700548%2011.3514%203.21577%2013.8666%206.30745%2013.8666C9.39913%2013.8666%2011.9144%2011.3514%2011.9144%208.2597C11.9145%207.88035%2011.8763%207.50195%2011.8006%207.13023C11.7914%207.08513%2011.7911%207.03866%2011.7999%206.99347C11.8086%206.94827%2011.8262%206.90525%2011.8516%206.86684C11.8769%206.82843%2011.9096%206.7954%2011.9478%206.76963C11.9859%206.74386%2012.0288%206.72585%2012.0739%206.71663C12.119%206.70742%2012.1654%206.70717%2012.2106%206.71592C12.2558%206.72466%2012.2988%206.74222%2012.3372%206.7676C12.3756%206.79297%2012.4087%206.82566%2012.4345%206.8638C12.4602%206.90194%2012.4782%206.94478%2012.4874%206.98988C12.5726%207.40779%2012.6155%207.83321%2012.6154%208.2597C12.6155%2011.7378%209.78587%2014.5675%206.30777%2014.5675Z'%20fill='%23D72C23'/%3e%3c/g%3e%3c/svg%3e",go="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='17.9748'%20height='9.3704'%20viewBox='0%200%2017.9748%209.3704'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Layer%202'%3e%3cpath%20id='Vector'%20d='M12.8094%200.19002C12.7492%200.24974%2012.7014%200.320789%2012.6688%200.399072C12.6362%200.477354%2012.6194%200.561319%2012.6194%200.646123C12.6194%200.730927%2012.6362%200.814892%2012.6688%200.893175C12.7014%200.971457%2012.7492%201.04251%2012.8094%201.10223L15.7645%204.05726H0.642398C0.472024%204.05726%200.308627%204.12494%200.188154%204.24541C0.067681%204.36589%200%204.52928%200%204.69966C0%204.87003%200.067681%205.03343%200.188154%205.1539C0.308627%205.27437%200.472024%205.34205%200.642398%205.34205H15.7516L12.8094%208.27781C12.6898%208.39818%2012.6226%208.56099%2012.6226%208.73071C12.6226%208.90042%2012.6898%209.06324%2012.8094%209.1836C12.9298%209.30324%2013.0926%209.3704%2013.2623%209.3704C13.432%209.3704%2013.5948%209.30324%2013.7152%209.1836L17.8009%205.09794C17.8558%205.04518%2017.8996%204.98185%2017.9295%204.91175C17.9594%204.84165%2017.9748%204.76623%2017.9748%204.69002C17.9748%204.61381%2017.9594%204.53839%2017.9295%204.46829C17.8996%204.39819%2017.8558%204.33486%2017.8009%204.2821L13.7216%200.19002C13.6619%200.129809%2013.5909%200.0820187%2013.5126%200.049405C13.4343%200.0167913%2013.3503%200%2013.2655%200C13.1807%200%2013.0968%200.0167913%2013.0185%200.049405C12.9402%200.0820187%2012.8691%200.129809%2012.8094%200.19002Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e";(()=>{const e="https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/10off-popup-logo.png",n="https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/10off-popup-hero.png",t="voucherPopupDismissedUntil",i="/request-account",a=()=>document.body.classList.contains("ex-loggedout")&&!document.body.classList.contains("ex-loggedin"),c=d=>d===!0||d===1||typeof d=="string"&&/^(true|1)$/i.test(d.trim()),p=d=>d?(Array.isArray(d)?d:String(d).split(/[,\s]+/)).map(v=>String(v).trim().replace(/^\./,"")).filter(Boolean):[],l=d=>d.every(s=>document.getElementsByClassName(s).length>0),u=d=>{try{const s=new URL(String(d||i).trim(),window.location.origin);return/^https?:$/.test(s.protocol)?s.href:i}catch{return i}},y=()=>{try{return Number(window.localStorage.getItem(t))||0}catch{return 0}},m=d=>{const s=Number(d);if(s>0)try{window.localStorage.setItem(t,String(Date.now()+s*864e5))}catch{}},f=d=>{const s=document.createElement("aside");return s.className="voucher-popup",s.setAttribute("role","dialog"),s.setAttribute("aria-labelledby","voucher-popup-title"),s.setAttribute("aria-hidden","true"),s.innerHTML=`

    10% OFF

    your first order

    Request your iGate account to claim your welcome offer.

    • Earn rewards every time you order
    • Quick and easy reordering
    • Fast delivery across Ireland
    `,s.querySelector(".voucher-popup-cta").setAttribute("href",d),s},h=({preview:d=!1}={})=>{var E;const s=d?{buttonUrl:(E=window.voucherPopup)==null?void 0:E.buttonUrl}:window.voucherPopup;if(!a()||!s||typeof s!="object"||!d&&!c(s.enabled))return;const v=d?[]:p(s.requiredClasses);if(!l(v)||!d&&y()>Date.now())return;const g=f(u(s.buttonUrl)),b=()=>{d||m(s.dismissDays),g.remove(),document.removeEventListener("keydown",q)},q=_=>{_.key==="Escape"&&document.body.contains(g)&&b()};g.querySelector(".voucher-popup-close").addEventListener("click",b),g.querySelector(".voucher-popup-cta").addEventListener("click",b),g.querySelector(".voucher-popup-signin").addEventListener("click",_=>{var N;const R=document.getElementById("loginModal");b(),R&&((N=window.jQuery)!=null&&N.fn.modal)&&(_.preventDefault(),window.jQuery(R).modal("show"))});const w=()=>{!a()||!l(v)||!d&&y()>Date.now()||document.querySelector(".voucher-popup")||(document.body.appendChild(g),document.addEventListener("keydown",q),window.requestAnimationFrame(()=>{g.setAttribute("aria-hidden","false"),g.classList.add("is-open")}))};if(d){w();return}const L=()=>window.setTimeout(w,5e3);document.readyState==="complete"?L():window.addEventListener("load",L,{once:!0})};window.previewVoucherPopup=()=>h({preview:!0}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>h(),{once:!0}):h()})();(()=>{const n="add-to-cart-toast-host",t="/cart",r="/checkout";let o=null,i=null;const a=m=>String(m??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),c=m=>{const f=Number(m);return Number.isFinite(f)?`€${f.toFixed(2)}`:""},p=()=>{let m=document.querySelector(`.${n}`);return m||(m=document.createElement("div"),m.className=n,document.body.appendChild(m)),m},l=()=>{o&&(window.clearTimeout(o),o=null)},u=()=>{if(l(),!i)return;const m=i;i=null,m.classList.remove("is-visible"),m.classList.add("is-leaving"),window.setTimeout(()=>{m.remove()},220)},y=(m={})=>{const f=m.name||"Item added",h=m.image||"",d=c(m.price),s=p();l(),i==null||i.remove(),s.insertAdjacentHTML("beforeend",`

    Added To Basket

    ${h?`
    `:""}

    ${a(f)}

    ${d?`

    ${d}

    `:""}
    `),i=s.querySelector(".add-to-cart-toast"),i.querySelector(".add-to-cart-toast-close").addEventListener("click",u);const v=i.querySelector(".add-to-cart-toast-image img");v==null||v.addEventListener("error",()=>{var q;(q=i.querySelector(".add-to-cart-toast-image"))==null||q.remove()}),requestAnimationFrame(()=>{i==null||i.classList.add("is-visible")});const g=i.querySelector(".add-to-cart-toast-timer-bar"),b=()=>u();g&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?g.addEventListener("animationend",b,{once:!0}):o=window.setTimeout(b,8e3)};document.addEventListener("cart-add-success",m=>{y(m.detail||{})})})();const ho=e=>{document.querySelectorAll(".badges-wrapper").forEach(n=>{if(n.getAttribute("data-custom-badges")||n.closest(".orderpads-wrapper"))return;const t=n.querySelectorAll(".ribbon-wrapper");if(n.closest(".productimage_container")){const a=[...t].filter(p=>!p.matches(".b6628, .b484")),c=document.createElement("div");c.classList.add("top-badges-wrapper"),n.prepend(c),a.slice(0,2).forEach(p=>c.appendChild(p))}const r=n.querySelectorAll(".ribbon-wrapper"),o={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.

    "},i=(a,c)=>{if(!n.closest(".productimage_container"))return;const p=!!a.closest(".top-badges-wrapper"),l=a.querySelector(".ribbon"),u=(l==null?void 0:l.style.backgroundColor)||"",y=(l==null?void 0:l.style.color)||"",m=document.createElement("div");m.classList.add("badge-hover-panel"),m.setAttribute("data-hover-position",p?"down":"right"),m.innerHTML=c,u&&(m.style.backgroundColor=u),y&&(m.style.color=y),a.appendChild(m)};r.forEach(a=>{var p;const c=a.getAttribute("title");if(c&&n.closest(".productimage_container")){const l=document.createElement("span");l.classList.add("badge-title"),l.textContent=c,(p=a.querySelector(".ribbon span"))==null||p.after(l)}if(a.matches(".b6628")&&i(a,o.b6628),a.matches(".b4728")){const l=a.querySelector(".ribbon span");if(l){const u=l.textContent.trim().split(" "),y=u.pop();l.innerHTML=`${u.join(" ")} ${y}`}i(a,o.b4728)}a.matches(".b1551")&&i(a,o.b1551),a.matches(".b1550"),a.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=()=>{const n=document.body.classList.contains("ex-searchresult");if(!n&&!document.body.classList.contains("ex-category"))return;const t=document.querySelector(".catalog-grid .productsgrid_container");if(!(t!=null&&t.querySelector(".productgridwidget")))return;const r=t.closest(".catalog-grid"),o=r.querySelector(".filter-container"),i=t.querySelector(".gridtools .listtoolstop");if(!o||!i)return;const a=i.closest(".gridtools");a.classList.add("category-plp-tools"),o.before(a);const c=()=>{const p=n?"category":"brand",l=r.querySelector(`.filterswrapper .filtername-${p} .filter-options:not(.swatch-grid)`),u=Array.from((l==null?void 0:l.querySelectorAll("a"))||[]).filter(d=>d.textContent.trim()).slice(0,5);let y=i.querySelector(".brand-shortcuts");if(!u.length){y==null||y.remove();return}y||(y=document.createElement("nav"),y.className="brand-shortcuts",y.setAttribute("aria-label",`Filter by ${p}`),i.prepend(y));const m=document.createElement("a"),f=new URL(window.location.href),h=n?f.searchParams.get("query"):null;f.search="",f.hash="",h&&f.searchParams.set("query",h),m.href=`${f.pathname}${f.search}`,m.textContent="All products",y.replaceChildren(m,...u.map(d=>{const s=d.cloneNode(!1);s.removeAttribute("id");const v=d.textContent.replace(/\s+/g," ").trim(),g=v.match(/^(.*?)\s*(\([\d,]+\))$/);if(s.textContent=g?`${g[1].trim()} `:v,g){const b=document.createElement("span");b.className="brand-count",b.textContent=g[2],s.appendChild(b)}return s}))};document.addEventListener("search-load_filters",c),c()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()})();(()=>{const e=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(i=>{if(i.querySelector(".quantity-input-wrapper"))return;const a=i.querySelector(".inputquantity");if(!a||a.getAttribute("type")==="number")return;const c=document.createElement("div");c.classList.add("quantity-input-wrapper"),c.innerHTML=` `,i.querySelector(".buttons.group").insertAdjacentElement("afterbegin",c),c.appendChild(a);const p=i.querySelector(".quantity-input-increment"),l=i.querySelector(".quantity-input-decrement");p.addEventListener("click",()=>{Number.isNaN(a.value)?a.value=1:a.value=parseInt(a.value,10)+1}),l.addEventListener("click",()=>{Number.isNaN(a.value)||parseInt(a.value,10)<=1?a.value=1:a.value=parseInt(a.value,10)-1}),i.classList.add("quantity-spinner")})},n=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(i=>{if(i.querySelector(".product-actions-wrapper"))return;const a=document.createElement("div");a.classList.add("product-actions-wrapper");const c=i.querySelector(".footer");if(c)c.appendChild(a);else return;const p=i.querySelector(".addtoquicklist-wrapper");p&&a.appendChild(p);const l=i.querySelector(".product-compare-action");l&&a.appendChild(l)})},t=()=>{if(!document.querySelector(".ex-loggedout"))return;const i=document.createElement("div");i.classList.add("product-login-buttons"),i.innerHTML=` Sign In Create Account `,document.querySelectorAll(".catalog-grid .product").forEach(a=>{if(a.querySelector(".product-login-buttons"))return;const c=a.querySelector(".footer-wrapper-price");c&&!c.children.length&&c.appendChild(i.cloneNode(!0))})},r=()=>{document.querySelectorAll(".catalog-grid .productgridwidget .tileparent > .tile").forEach(i=>{var m;const a=i.querySelector(".imgthumbnail"),c=i.querySelector(".footer-wrapper-price .uom"),l=(((m=(c==null?void 0:c.querySelector(".uomvalue"))||c)==null?void 0:m.textContent.trim())||"").match(/^(?:\/\s*)?(?:Pack\s+of\s+)?(\d[\d,]*(?:\.\d+)?)$/i),u=l?Number(l[1].replace(/,/g,"")):0;let y=a==null?void 0:a.querySelector(".product-pack-label");if(!a||!Number.isFinite(u)||u<=1){y==null||y.remove();return}y||(y=document.createElement("span"),y.className="product-pack-label",a.appendChild(y)),y.textContent=`Pack of ${l[1]}`})},o=()=>{e(),n(),t(),r(),ho()};document.addEventListener("live-pricing-done",r),document.readyState!=="loading"&&r(),document.addEventListener("DOMContentLoaded",()=>{o()}),document.addEventListener("product-loadmore-success",i=>{console.log("More products loaded",i.detail),o()},!1)})();(()=>{if(!document.querySelector(".ex-product"))return;const e=()=>{const s=document.querySelector(".desktop .product-summary");if(!s)return;const v=document.createElement("div");v.classList.add("product-summary-actions"),s.appendChild(v);const g=document.createElement("div");g.classList.add("product-summary-inner"),v.appendChild(g);const b=s.querySelector(".product-configurable-wrapper"),q=s.querySelector(".product-points-wrapper"),w=s.querySelector(".product-links-wrapper");b&&g.appendChild(b),q&&g.appendChild(q),w&&g.appendChild(w);const L=document.querySelector(".desktop .productaddtocart_container");L&&v.appendChild(L)},n=()=>{document.querySelectorAll(".pdp-minibanner").forEach(s=>{var v,g;(g=(v=s.closest(".catalog-single"))==null?void 0:v.querySelector(".product-summary-inner"))==null||g.insertAdjacentElement("afterbegin",s)})},t=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(s=>{if(s.querySelector(".product-actions-wrapper"))return;const v=document.createElement("div");v.classList.add("product-actions-wrapper"),s.appendChild(v);const g=s.querySelector(".product-shopping-actions-addtoquicklist");g&&v.appendChild(g);const b=s.querySelector(".product-compare-action");b&&v.appendChild(b)})},r=()=>{document.querySelectorAll(".custom-product-text").forEach(s=>{var b,q;const v=s.closest(".catalog-single");if(!v)return;const g=v.querySelector(".product-shopping-actions-tierpricing");g?(b=g.closest(".product-shopping-actions-row"))==null||b.insertAdjacentElement("afterend",s):(q=v.querySelector(".product-shopping-actions > .product-shopping-actions-row:first-child"))==null||q.insertAdjacentElement("afterend",s)}),document.querySelectorAll(".prod-desc-link").forEach(s=>{s.addEventListener("click",v=>{var b;v.preventDefault();const g=(b=s.closest(".catalog-single"))==null?void 0:b.querySelector(".productdescription_container");g&&g.scrollIntoView({behavior:"smooth"})})}),document.querySelectorAll(".prod-spec-link").forEach(s=>{s.addEventListener("click",v=>{var b;v.preventDefault();const g=(b=s.closest(".catalog-single"))==null?void 0:b.querySelector(".productspecs_container");g&&g.scrollIntoView({behavior:"smooth"})})})},o=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(s=>{const v=s.querySelector(".save.with-value"),g=s.querySelector(".live-inventory-v2-wrapper"),b=s.querySelector(".product-shopping-actions-row:first-child");if((v||g)&&b){const q=document.createElement("div");q.classList.add("stock-sale-wrapper"),g&&q.appendChild(g),v&&q.appendChild(v),b.insertAdjacentElement("afterbegin",q)}})},i=()=>{document.querySelectorAll(".page-content .panel-collapse").forEach(s=>{const v=s.querySelector(".panel-body"),g=s.getBoundingClientRect().height;((v==null?void 0:v.getBoundingClientRect().height)||0)>g?s.classList.add("accordion-read-more"):s.classList.remove("accordion-read-more"),s.querySelector(".show-more-btn-wrapper")||(s.insertAdjacentHTML("beforeend",`
    See
    `),s.querySelector(".show-more-btn-wrapper").addEventListener("click",()=>{s.classList.toggle("show-more")}))})},a=()=>{document.querySelectorAll(".catalog-single .product-summary").forEach(s=>{var g;s.querySelector(".product-indicators .non-returnable")||(g=s.querySelector(".custom-product-text .is-returnable"))==null||g.classList.remove("hide")})},c=()=>{const s=document.querySelector(".pdp-lead-time");if(!s)return;const v=document.querySelector(".product-shopping-actions"),g=(v==null?void 0:v.getAttribute("data-leadtime"))||0,b={"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:b;let w=q[0],L=!1;const E=document.querySelector(".product-shopping-actions .live-inventory-v2-shipping.out-stock");if(E&&E.textContent.includes("Out of Stock")){L=!0,w=q["out-of-stock"]||"Low Stock - Contact us for ETA",s.innerHTML=w;return}g!==0&&(!L&&g&&Object.keys(q).forEach(_=>{_===g&&(w=q[_])}),s.innerHTML=w)},p=()=>{document.querySelectorAll(".product-shopping-actions").forEach(s=>{const v=s.querySelector(".product-shopping-actions-tierpricing");if(!v)return;const g=v.getAttribute("data-tierpricing");if(!g||s.querySelector(".custom-quantity-breaks-wrapper"))return;const q=JSON.parse(g);if(!q||!q.length)return;const w=s.querySelector(".product-shopping-actions-prices .has-price").textContent,L=parseFloat(w.replace(/[^0-9.]/g,"")),E=[...q].sort((T,D)=>T.quantity-D.quantity),_=T=>Math.round((1-parseFloat(String(T).replace(/[^0-9.]/g,""))/L)*100),R=(T,D,P)=>`
    ${T}
    ${D}
    ${P?`-${P}%`:""}
    `;let N=`

    Buy More, Save More

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

    Reward Points

    Buy this product and get ${L}${s(1,parseFloat(w),parseFloat(b),parseFloat(g),L)} points on this order.

    View Rewards

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

    ${L}

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

    ${g}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${s}

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

    Uploaded: ${o.name}

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

    ${f.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",u+="

    Select all that apply.

    ",u+='
    ',f.children.forEach(s=>{var w;const v=s.text.toLowerCase(),g=d[y.toLowerCase()]||{},b=d.globalFallback||"",q=((w=g.positions)==null?void 0:w[v])||g.fallback||b;u+=`
    `,u+=``,u+=``,u+="
    "}),u+="
    ",u+="
    ";break}case"Logo Upload":{u+='
    ',u+="

    Upload Your Logo

    ",u+=`

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

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

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

    Choose Your ${f.text}

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

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

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

    Uploaded: ${o.name}

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

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

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

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

    Switch Here To Save

    ';const N=document.createElement("p");N.className="comparison-message";const x=parseFloat(b)>0;if(d.pageYield&&s.pageYield){const S=t(d.pageYield),k=(t(s.pageYield)-S)/S*100,M=k.toFixed(0),H=k>0;H&&x?N.innerHTML=`Print ${M}% more and save ${q}${b} when you switch to our brand`:H?N.innerHTML=`Print ${M}% more when you switch to our brand`:x?N.innerHTML=`Save ${q}${b} when you switch to our brand`:N.innerHTML="Save when you switch to our brand"}else x?N.innerHTML=`Save ${q}${b} when you switch to our brand`:N.innerHTML="Save when you switch to our brand";if(R.appendChild(N),s.pageYield){const S=t(s.pageYield),C=typeof s.pageYield=="object",k=s.price/S*100,M=k<2?k.toFixed(2):k.toFixed(0),H=C?"avg. ":"",T=document.createElement("p");T.className="comparison-price",T.innerHTML=`Alternatives from ${H}${M}${w} per page `,R.appendChild(T)}else{const S=document.createElement("p");S.className="comparison-price",S.innerHTML='View alternatives ',R.appendChild(S)}return E.appendChild(R),L},y=(d,s,v,g="append",b={})=>{if(!s)return 0;let q;if(typeof v=="string")q=document.querySelectorAll(v);else if(v instanceof NodeList||v instanceof HTMLCollection)q=v;else if(v instanceof HTMLElement)q=[v];else return 0;if(!q||q.length===0)return 0;let w=0;return q.forEach(L=>{const E=d(s,...Object.values(b));if(E){switch(g){case"prepend":L.insertBefore(E,L.firstChild);break;case"before":L.parentNode.insertBefore(E,L);break;case"after":L.parentNode.insertBefore(E,L.nextSibling);break;case"append":default:L.appendChild(E);break}w+=1}}),w},m=[{ink:"1000402",toner:"1000424"}],f="EUR",h=!0;document.addEventListener("live-pricing-done",()=>{setTimeout(()=>{if(document.querySelector(".ink-toner-price-per-page")||document.querySelector(".ink-toner-yield-card"))return;const d=p(m);if(d&&(y(o,d,".product-shopping-actions .has-price","after",{currency:f}),y(i,d,".product-points-wrapper","before"),d.type==="original")){const s=l();s&&y(u,d,".ink-toner-yield-card","before",{compatibleProduct:s,currency:f,useModal:h})}},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 i=o.target,a=i.querySelectorAll(".eco-grid-sustainability-goal");a.forEach((p,l)=>{setTimeout(()=>{p.classList.add("fade-in")},100*l)});const c=i.querySelector(".goals-achievements-achievements-outer");if(c){const p=c.querySelectorAll("p");p.forEach((u,y)=>{setTimeout(()=>{u.classList.add("fade-in")},100*(a.length+y))}),c.querySelectorAll(".list-check li").forEach((u,y)=>{setTimeout(()=>{u.classList.add("fade-in")},100*(a.length+p.length+y))})}n.unobserve(i)}})},{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 f=o.querySelector(".btn-update-default-qty");f&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",f);const h=o.querySelector(".actioncontent");h&&o.querySelector(".shopping-actions").insertAdjacentElement("beforeend",h);const d=o.querySelector(".delete");d&&d.insertAdjacentHTML("beforeend","Remove From Quicklist")}const i=document.createElement("div"),a=o.querySelector(".inputquantity");function c(){const f=parseInt(a.value,10)||0;a.value=f+1,a.dispatchEvent(new Event("change",{bubbles:!0}))}function p(){const f=parseInt(a.value,10)||0;f>0&&(a.value=f-1,a.dispatchEvent(new Event("change",{bubbles:!0})))}if(a){i.classList.add("quantity-wrapper"),a.insertAdjacentElement("beforebegin",i),i.appendChild(a);const f=document.createElement("button");f.classList.add("plus-btn"),f.innerHTML='',i.insertAdjacentElement("beforeend",f);const h=document.createElement("button");h.classList.add("minus-btn"),h.innerHTML='',i.insertAdjacentElement("afterbegin",h),f.addEventListener("click",c),h.addEventListener("click",p)}const l=document.createElement("div");l.classList.add("product-stock-and-actions"),o.querySelector(".shopping-actions").appendChild(l);const u=o.querySelector(".quicklist-groups-btn-wrapper");u&&l.insertAdjacentElement("beforeend",u);const y=o.querySelector(".live-inventory-v2-wrapper");y&&n?l.insertAdjacentElement("beforeend",y):y&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",y);const m=o.querySelector(".product-compare-action");m&&l.insertAdjacentElement("beforeend",m)}),document.addEventListener("live-inventory-done",()=>{console.log("live inventory has just finished running"),document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent").forEach(o=>{const i=o.querySelector(".inputquantity");if(!i){o.querySelector(".quantity-wrapper")&&(o.querySelector(".quantity-wrapper").style.display="none");return}const a=o.querySelector(".has-price");if(!a)return;let c=o.querySelector(".total-price");c||(c=document.createElement("span"),c.classList.add("total-price"),a.insertAdjacentElement("afterend",c));const p=()=>{const l=a.textContent.trim(),u=parseFloat(l.replace(/[^0-9.-]+/g,""))||0,y=parseInt(i.value,10)||0,m=u*y;m>0?c.textContent=`€${m.toFixed(2)}`:c.textContent="€0.00"};i.addEventListener("change",p),i.addEventListener("input",p),p()})},!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()})();(()=>{const e=document.querySelector(".intro-filters");if(!e)return;const n=(r,o)=>{let i=o.querySelector(".intro-filters-more");i||(i=document.createElement("button"),i.type="button",i.className="intro-filters-more",i.hidden=!0,o.appendChild(i));const a=()=>{const c=r.classList.contains("is-expanded");r.classList.remove("is-expanded");const p=r.scrollHeight>r.clientHeight+1;c&&p&&r.classList.add("is-expanded"),i.hidden=!p,i.textContent=r.classList.contains("is-expanded")?"Less":"See more"};i.addEventListener("click",()=>{r.classList.toggle("is-expanded"),i.textContent=r.classList.contains("is-expanded")?"Less":"See more"}),window.addEventListener("resize",()=>{window.clearTimeout(a.timer),a.timer=window.setTimeout(a,100)}),window.requestAnimationFrame(a)},t=(r=0)=>{const o=e.querySelector(".intro-filters-search"),i=e.querySelector(".intro-filters-categories"),a=document.querySelector(".filterswrapper .search-with-in"),c=document.querySelector(".filtername-categories .filter-options:not(.swatch-grid)");if(a&&o&&!o.children.length&&o.appendChild(a.cloneNode(!0)),c&&i&&!i.querySelector(".filter-options")){const p=c.cloneNode(!0);p.classList.remove("hide"),p.querySelectorAll(".hide").forEach(u=>u.classList.remove("hide"));const l=document.createElement("div");l.innerHTML=``,new URLSearchParams(window.location.search).get("z")||l.querySelector("a").classList.add("active"),p.insertBefore(l,p.firstChild),i.appendChild(p),n(p,i)}o!=null&&o.children.length&&(i!=null&&i.querySelector(".filter-options"))||r>=20||window.setTimeout(()=>t(r+1),500)};t()})();(()=>{var y;if(!document.querySelector(".ex-thankyou"))return;const e=document.querySelector("#thankYou");if(e&&!e.querySelector(".thank-you-check")){const m=e.querySelector("h1"),f=document.createElement("div");f.className="thank-you-check",f.setAttribute("aria-hidden","true"),f.textContent="✓",e.prepend(f),m&&(m.textContent=m.textContent.replace(/!+\s*$/,"").trim())}if(!document.querySelector(".ex-loggedout")||document.querySelector(".ex-loggedin"))return;const n=document.querySelector(".page-content");if(!n)return;const t=m=>{const f=document.querySelector(m);return f?(f.classList.remove("thank-you-source","hidden"),f):null},r=m=>(Array.isArray(window.dataLayer)?window.dataLayer:[]).find(h=>h&&m(h))||null,o=()=>r(m=>m.transactionTotal!=null),i=m=>{if(!m)return null;const f=Number((Number(m.transactionTotal)-Number(m.transactionShipping||0)-Number(m.transactionTax||0)).toFixed(2));return Math.max(0,Math.floor(f))},a=o(),c=i(a),p=r(m=>typeof m.email=="string"),l=t(".thank-you-top.thank-you-source");if(l){n.prepend(l);const m=document.querySelector(".thank-you-contact-form.thank-you-source"),f=l.querySelector(".thank-you-top-form");if(m&&f){m.classList.remove("thank-you-source","hidden");const h=m.closest("form")||m;h.classList.remove("hidden","hide"),f.append(h);const d=h.querySelector('#thankYouContactEmail, input[type="email"]');d&&(p!=null&&p.email)&&(d.value=p.email);const s=h.querySelector("#thankYouRewardPoints");s&&c!=null&&(s.value=c);const v=h.querySelector("#thankYouOrderRef");v&&(a!=null&&a.transactionRef)&&(v.value=a.transactionRef)}}const u=t(".thank-you-rewards.thank-you-source");u&&(n.append(u),c!=null&&u.querySelectorAll(".thank-you-rewards-count").forEach(m=>{m.textContent=c}),(y=u.querySelector(".thank-you-rewards-cta"))==null||y.addEventListener("click",m=>{m.preventDefault();const f=document.querySelector(".thank-you-top-form");f&&(f.scrollIntoView({behavior:"smooth",block:"center"}),f.classList.add("is-highlighted"),window.setTimeout(()=>f.classList.remove("is-highlighted"),2e3))}))})();(()=>{const e=()=>{document.querySelectorAll(".seo-landing-page [data-seo-tabs]").forEach(n=>{if(n.dataset.seoTabsReady)return;const t=Array.from(n.querySelectorAll('[role="tab"]')),r=Array.from(n.querySelectorAll('[role="tabpanel"]'));if(!t.length||!r.length)return;n.dataset.seoTabsReady="true";const o=(i,a=!1)=>{t.forEach(c=>{const p=c===i;c.setAttribute("aria-selected",String(p)),c.tabIndex=p?0:-1}),r.forEach(c=>{c.hidden=c.id!==i.getAttribute("aria-controls")}),a&&i.focus()};t.forEach((i,a)=>{i.addEventListener("click",()=>o(i)),i.addEventListener("keydown",c=>{let p;c.key==="ArrowRight"&&(p=(a+1)%t.length),c.key==="ArrowLeft"&&(p=(a-1+t.length)%t.length),c.key==="Home"&&(p=0),c.key==="End"&&(p=t.length-1),p!==void 0&&(c.preventDefault(),o(t[p],!0))})}),o(t.find(i=>i.getAttribute("aria-selected")==="true")||t[0])})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()})();