(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,i=parseInt(o.dataset.rowIndex||0,10),s=o.querySelectorAll(".col"),d=100;i%2!==0?s.forEach((l,u)=>{const a=s.length-u-1;setTimeout(()=>{l.classList.add("fade-in")},d*a)}):s.forEach((l,u)=>{setTimeout(()=>{l.classList.add("fade-in")},d*u)}),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,ye(n)?n.split(" "):n,!0)}function Ze(e,n){oe(n,e.appendChild.bind(e))}function Dt(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?Ee(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 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){Pt(t)?e[r]=t.slice():Fe(t)?e[r]=he({},Fe(e[r])?e[r]:{},t):e[r]=t})}),e}function Kt(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&&(ye(n)?le(r,n):B(r,n)),t&&Ze(t,r),r}function ae(e,n,t){if(Ke(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 hn(e,n){return e&&e.querySelector(n)}function Rt(e,n){return n?Ee(e.querySelectorAll(n)):[]}function me(e,n){pe(e,n,!1)}function Mt(e){return e.timeStamp}function qe(e){return ye(e)?e:e?e+"px":""}var tt="splide",Ht="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 yn(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 Zt={};function Wn(e){return""+e+jt(Zt[e]=(Zt[e]||0)+1)}function bn(){var e=[];function n(s,d,l,u){o(s,d,function(a,y,m){var p="addEventListener"in a,g=p?a.removeEventListener.bind(a,y,l,u):a.removeListener.bind(a,l);p?a.addEventListener(y,l,u):a.addListener(l),e.push([a,y,m,l,g])})}function t(s,d,l){o(s,d,function(u,a,y){e=e.filter(function(m){return m[0]===u&&m[1]===a&&m[2]===y&&(!l||m[3]===l)?(m[4](),!1):!0})})}function r(s,d,l){var u,a=!0;return typeof CustomEvent=="function"?u=new CustomEvent(d,{bubbles:a,detail:l}):(u=document.createEvent("CustomEvent"),u.initCustomEvent(d,a,!1,l)),s.dispatchEvent(u),u}function o(s,d,l){oe(s,function(u){u&&oe(d,function(a){a.split(" ").forEach(function(y){var m=y.split(".");l(u,m[0],m[1])})})})}function i(){e.forEach(function(s){s[4]()}),ge(e)}return{bind:n,unbind:t,dispatch:r,destroy:i}}var ke="mounted",en="ready",Se="move",nt="moved",Sn="click",zn="active",Xn="inactive",Qn="visible",Kn="hidden",J="refresh",te="updated",ze="resize",Bt="resized",Jn="drag",Zn="dragging",er="dragged",Ft="scroll",De="scrolled",tr="overflow",En="destroy",nr="arrows:mounted",rr="arrows:updated",or="pagination:mounted",ar="pagination:updated",wn="navigation:mounted",Ln="autoplay:play",ir="autoplay:playing",qn="autoplay:pause",An="lazyload:loaded",Tn="sk",Cn="sh",pt="ei";function K(e){var n=e?e.event.bus:document.createDocumentFragment(),t=bn();function r(i,s){t.bind(n,Je(i).join(" "),function(d){s.apply(s,Pt(d.detail)?d.detail:[])})}function o(i){t.dispatch(n,i,Ee(arguments,1))}return e&&e.event.on(En,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,s=0,d,l=!0,u=0;function a(){if(!l){if(s=e?be((o()-i)/e,1):1,t&&t(s),s>=1&&(n(),i=o(),r&&++u>=r))return m();d=Qt(a)}}function y(v){v||g(),i=o()-(v?s*e:0),l=!1,d=Qt(a)}function m(){l=!0}function p(){i=o(),s=0,t&&t(s)}function g(){d&&cancelAnimationFrame(d),s=0,d=0,l=!0}function f(v){e=v}function c(){return l}return{start:y,rewind:p,pause:m,cancel:g,set:f,isPaused:c}}function sr(e){var n=e;function t(o){n=o}function r(o){return Ot(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||{},i=t.reducedMotion||{},s=bn(),d=[];function l(){var g=t.mediaQuery==="min";Ue(o).sort(function(f,c){return g?+f-+c:+c-+f}).forEach(function(f){a(o[f],"("+(g?"min":"max")+"-width:"+f+"px)")}),a(i,Xt),y()}function u(g){g&&s.destroy()}function a(g,f){var c=matchMedia(f);s.bind(c,"change",y),d.push([g,c])}function y(){var g=r.is(ut),f=t.direction,c=d.reduce(function(v,h){return he(v,h[1].matches?h[0]:{})},{});Kt(t),p(c),t.destroy?e.destroy(t.destroy==="completely"):g?(u(!0),e.mount()):f!==t.direction&&e.refresh()}function m(g){matchMedia(Xt).matches&&(g?he(t,i):Kt(t,Ue(i)))}function p(g,f,c){he(t,g),f&&he(Object.getPrototypeOf(t),g),(c||!r.is(_e))&&e.emit(te,t)}return{setup:l,destroy:u,reduce:m,set:p}}var gt="Arrow",ht=gt+"Left",yt=gt+"Right",kn=gt+"Up",Mn=gt+"Down",tn="rtl",bt="ttb",Lt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[kn,yt],ArrowRight:[Mn,ht]};function ur(e,n,t){function r(i,s,d){d=d||t.direction;var l=d===tn&&!s?1:d===bt?0:-1;return Lt[i]&&Lt[i][l]||i.replace(/width|left|right/i,function(u,a){var y=Lt[u.toLowerCase()][l]||u;return a>0?y.charAt(0).toUpperCase()+y.slice(1):y})}function o(i){return i*(t.direction===tn?1:-1)}return{resolve:r,orient:o}}var ve="role",$e="tabindex",dr="disabled",ce="aria-",rt=ce+"controls",xn=ce+"current",nn=ce+"selected",re=ce+"label",Vt=ce+"labelledby",_n=ce+"hidden",Ut=ce+"orientation",Xe=ce+"roledescription",rn=ce+"live",on=ce+"busy",an=ce+"atomic",Yt=[ve,$e,dr,rt,xn,re,Vt,_n,Ut,Xe],de=tt+"__",we="is-",qt=tt,sn=de+"track",fr=de+"list",St=de+"slide",In=St+"--clone",pr=St+"__container",Gt=de+"arrows",Et=de+"arrow",$n=Et+"--prev",Pn=Et+"--next",wt=de+"pagination",Nn=wt+"__page",mr=de+"progress",vr=mr+"__bar",gr=de+"toggle",hr=de+"spinner",yr=de+"sr",br=we+"initialized",Ce=we+"active",On=we+"prev",Dn=we+"next",It=we+"visible",$t=we+"loading",Rn=we+"focus-in",Hn=we+"overflow",Sr=[Ce,It,On,Dn,$t,Rn,Hn],Er={slide:St,clone:In,arrows:Gt,arrow:Et,prev:$n,next:Pn,pagination:wt,page:Nn,spinner:hr};function wr(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 Lr=5,cn=200,jn="touchstart mousedown",At="touchmove mousemove",Tt="touchend touchcancel mouseup click";function qr(e,n,t){var r=K(e),o=r.on,i=r.bind,s=e.root,d=t.i18n,l={},u=[],a=[],y=[],m,p,g;function f(){b(),A(),h()}function c(){o(J,v),o(J,f),o(te,h),i(document,jn+" keydown",function(E){g=E.type==="keydown"},{capture:!0}),i(s,"focusin",function(){pe(s,Rn,!!g)})}function v(E){var _=Yt.concat("style");ge(u),me(s,a),me(m,y),ue([m,p],_),ue(s,E?_:["style",Xe])}function h(){me(s,a),me(m,y),a=L(qt),y=L(sn),le(s,a),le(m,y),B(s,re,t.label),B(s,Vt,t.labelledby)}function b(){m=w("."+sn),p=et(m,"."+fr),je(m&&p,"A track/list element is missing."),st(u,mn(p,"."+St+":not(."+In+")")),Ae({arrows:Gt,pagination:wt,prev:$n,next:Pn,bar:vr,toggle:gr},function(E,_){l[_]=w("."+E)}),Ye(l,{root:s,track:m,list:p,slides:u})}function A(){var E=s.id||Wn(tt),_=t.role;s.id=E,m.id=m.id||E+"-track",p.id=p.id||E+"-list",!ie(s,ve)&&s.tagName!=="SECTION"&&_&&B(s,ve,_),B(s,Xe,d.carousel),B(p,ve,"presentation")}function w(E){var _=hn(s,E);return _&&wr(_,"."+qt)===s?_:void 0}function L(E){return[E+"--"+t.type,E+"--"+t.direction,t.drag&&E+"--draggable",t.isNavigation&&E+"--nav",E===qt&&Ce]}return Ye(l,{setup:f,mount:c,destroy:v})}var Ne="slide",Re="loop",ot="fade";function Ar(e,n,t,r){var o=K(e),i=o.on,s=o.emit,d=o.bind,l=e.Components,u=e.root,a=e.options,y=a.isNavigation,m=a.updateOnMove,p=a.i18n,g=a.pagination,f=a.slideFocus,c=l.Direction.resolve,v=ie(r,"style"),h=ie(r,re),b=t>-1,A=et(r,"."+pr),w;function L(){b||(r.id=u.id+"-slide"+jt(n+1),B(r,ve,g?"tabpanel":"group"),B(r,Xe,p.slide),B(r,re,h||_t(p.slideLabel,[n+1,e.length]))),E()}function E(){d(r,"click",W(s,Sn,N)),d(r,"keydown",W(s,Tn,N)),i([nt,Cn,De],M),i(wn,R),m&&i(Se,O)}function _(){w=!0,o.destroy(),me(r,Sr),ue(r,Yt),B(r,"style",v),B(r,re,h||"")}function R(){var P=e.splides.map(function(q){var D=q.splide.Components.Slides.getAt(n);return D?D.slide.id:""}).join(" ");B(r,re,_t(p.slideX,(b?t:n)+1)),B(r,rt,P),B(r,ve,f?"button":""),f&&ue(r,Xe)}function O(){w||M()}function M(){if(!w){var P=e.index;S(),T(),pe(r,On,n===P-1),pe(r,Dn,n===P+1)}}function S(){var P=x();P!==Jt(r,Ce)&&(pe(r,Ce,P),B(r,xn,y&&P||""),s(P?zn:Xn,N))}function T(){var P=H(),q=!P&&(!x()||b);if(e.state.is([Oe,Qe])||B(r,_n,q||""),B(Rt(r,a.focusableNodes||""),$e,q?-1:""),f&&B(r,$e,q?-1:0),P!==Jt(r,It)&&(pe(r,It,P),s(P?Qn:Kn,N)),!P&&document.activeElement===r){var D=l.Slides.getAt(e.index);D&&vn(D.slide)}}function k(P,q,D){ae(D&&A||r,P,q)}function x(){var P=e.index;return P===n||a.cloneStatus&&P===t}function H(){if(e.is(ot))return x();var P=ne(l.Elements.track),q=ne(r),D=c("left",!0),F=c("right",!0);return ft(P[D])<=We(q[D])&&ft(q[F])<=We(P[F])}function C(P,q){var D=ee(P-n);return!b&&(a.rewind||e.is(Re))&&(D=be(D,e.length-D)),D<=q}var N={index:n,slideIndex:t,slide:r,container:A,isClone:b,mount:L,destroy:_,update:M,style:k,isWithin:C};return N}function Tr(e,n,t){var r=K(e),o=r.on,i=r.emit,s=r.bind,d=n.Elements,l=d.slides,u=d.list,a=[];function y(){m(),o(J,p),o(J,m)}function m(){l.forEach(function(M,S){f(M,S,-1)})}function p(){w(function(M){M.destroy()}),ge(a)}function g(){w(function(M){M.update()})}function f(M,S,T){var k=Ar(e,S,T,M);k.mount(),a.push(k),a.sort(function(x,H){return x.index-H.index})}function c(M){return M?L(function(S){return!S.isClone}):a}function v(M){var S=n.Controller,T=S.toIndex(M),k=S.hasFocus()?1:t.perPage;return L(function(x){return ct(x.index,T,T+k-1)})}function h(M){return L(M)[0]}function b(M,S){oe(M,function(T){if(ye(T)&&(T=gn(T)),pn(T)){var k=l[S];k?Dt(T,k):Ze(u,T),le(T,t.classes.slide),_(T,W(i,ze))}}),i(J)}function A(M){Te(L(M).map(function(S){return S.slide})),i(J)}function w(M,S){c(S).forEach(M)}function L(M){return a.filter(fn(M)?M:function(S){return ye(M)?Ve(S.slide,M):Ot(Je(M),S.index)})}function E(M,S,T){w(function(k){k.style(M,S,T)})}function _(M,S){var T=Rt(M,"img"),k=T.length;k?T.forEach(function(x){s(x,"load error",function(){--k||S()})}):S()}function R(M){return M?l.length:a.length}function O(){return a.length>t.perPage}return{mount:y,destroy:p,update:g,register:f,get:c,getIn:v,getAt:h,add:b,remove:A,forEach:w,filter:L,style:E,getLength:R,isEnough:O}}function Cr(e,n,t){var r=K(e),o=r.on,i=r.bind,s=r.emit,d=n.Slides,l=n.Direction.resolve,u=n.Elements,a=u.root,y=u.track,m=u.list,p=d.getAt,g=d.style,f,c,v;function h(){b(),i(window,"resize load",cr(W(s,ze))),o([te,J],b),o(ze,A)}function b(){f=t.direction===bt,ae(a,"maxWidth",qe(t.width)),ae(y,l("paddingLeft"),w(!1)),ae(y,l("paddingRight"),w(!0)),A(!0)}function A(N){var P=ne(a);(N||c.width!==P.width||c.height!==P.height)&&(ae(y,"height",L()),g(l("marginRight"),qe(t.gap)),g("width",_()),g("height",R(),!0),c=P,s(Bt),v!==(v=C())&&(pe(a,Hn,v),s(tr,v)))}function w(N){var P=t.padding,q=l(N?"right":"left");return P&&qe(P[q]||(Fe(P)?0:P))||"0px"}function L(){var N="";return f&&(N=E(),je(N,"height or heightRatio is missing."),N="calc("+N+" - "+w(!1)+" - "+w(!0)+")"),N}function E(){return qe(t.height||ne(m).width*t.heightRatio)}function _(){return t.autoWidth?null:qe(t.fixedWidth)||(f?"":O())}function R(){return qe(t.fixedHeight)||(f?t.autoHeight?null:O():E())}function O(){var N=qe(t.gap);return"calc((100%"+(N&&" + "+N)+")/"+(t.perPage||1)+(N&&" - "+N)+")"}function M(){return ne(m)[l("width")]}function S(N,P){var q=p(N||0);return q?ne(q.slide)[l("width")]+(P?0:x()):0}function T(N,P){var q=p(N);if(q){var D=ne(q.slide)[l("right")],F=ne(m)[l("left")];return ee(D-F)+(P?0:x())}return 0}function k(N){return T(e.length-1)-T(0)+S(0,N)}function x(){var N=p(0);return N&&parseFloat(ae(N.slide,l("marginRight")))||0}function H(N){return parseFloat(ae(y,l("padding"+(N?"Right":"Left"))))||0}function C(){return e.is(ot)||k(!0)>M()}return{mount:h,resize:A,listSize:M,slideSize:S,sliderSize:k,totalSize:T,getPadding:H,isOverflow:C}}var kr=2;function Mr(e,n,t){var r=K(e),o=r.on,i=n.Elements,s=n.Slides,d=n.Direction.resolve,l=[],u;function a(){o(J,y),o([te,ze],p),(u=c())&&(g(u),n.Layout.resize(!0))}function y(){m(),a()}function m(){Te(l),ge(l),r.destroy()}function p(){var v=c();u!==v&&(uF)&&(M(),_(O(k(),q>F),!0)),s(Oe),i(Se,D,F,q),b.start(D,function(){s(Pe),i(nt,D,F,q),V&&V()})}function E(q){_(T(q,!0))}function _(q,D){if(!e.is(ot)){var F=D?q:R(q);ae(v,"transform","translate"+g("X")+"("+F+"px)"),q!==F&&i(Cn)}}function R(q){if(e.is(Re)){var D=S(q),F=D>n.Controller.getEnd(),V=D<0;(V||F)&&(q=O(q,F))}return q}function O(q,D){var F=q-C(D),V=m();return q-=f(V*(We(ee(F)/V)||1))*(D?1:-1),q}function M(){_(k(),!0),b.cancel()}function S(q){for(var D=n.Slides.get(),F=0,V=1/0,Y=0;Y=0:D<=v[g("scrollWidth")]-ne(h)[g("width")]}function P(q,D){D=Ke(D)?k():D;var F=q!==!0&&f(D)f(C(!0));return F||V}return{mount:A,move:L,jump:E,translate:_,shift:O,cancel:M,toIndex:S,toPosition:T,getPosition:k,getLimit:C,exceededLimit:P,reposition:w}}function _r(e,n,t){var r=K(e),o=r.on,i=r.emit,s=n.Move,d=s.getPosition,l=s.getLimit,u=s.toPosition,a=n.Slides,y=a.isEnough,m=a.getLength,p=t.omitEnd,g=e.is(Re),f=e.is(Ne),c=W(k,!1),v=W(k,!0),h=t.start||0,b,A=h,w,L,E;function _(){R(),o([te,J,pt],R),o(Bt,O)}function R(){w=m(!0),L=t.perMove,E=t.perPage,b=N();var I=Me(h,0,p?b:w-1);I!==h&&(h=I,s.reposition())}function O(){b!==N()&&i(pt)}function M(I,U,Q){if(!z()){var G=T(I),Z=C(G);Z>-1&&(U||Z!==h)&&(F(Z),s.move(G,Z,A,Q))}}function S(I,U,Q,G){n.Scroll.scroll(I,U,Q,function(){var Z=C(s.toIndex(d()));F(p?be(Z,b):Z),G&&G()})}function T(I){var U=h;if(ye(I)){var Q=I.match(/([+\-<>])(\d+)?/)||[],G=Q[1],Z=Q[2];G==="+"||G==="-"?U=x(h+ +(""+G+(+Z||1)),h):G===">"?U=Z?P(+Z):c(!0):G==="<"&&(U=v(!0))}else U=g?I:Me(I,0,b);return U}function k(I,U){var Q=L||(Y()?1:E),G=x(h+Q*(I?-1:1),h,!(L||Y()));return G===-1&&f&&!yn(d(),l(!I),1)?I?0:b:U?G:C(G)}function x(I,U,Q){if(y()||Y()){var G=H(I);G!==I&&(U=I,I=G,Q=!1),I<0||I>b?!L&&(ct(0,I,U,!0)||ct(b,U,I,!0))?I=P(q(I)):g?I=Q?I<0?-(w%E||E):w:I:t.rewind?I=I<0?b:0:I=-1:Q&&I!==U&&(I=P(q(U)+(I0;)if(u(w-1,!0)!==u(I,!0)){I++;break}return Me(I,0,w-1)}function P(I){return Me(Y()?I:E*I,0,b)}function q(I){return Y()?be(I,b):ft((I>=b?w-1:I)/E)}function D(I){var U=s.toIndex(I);return f?Me(U,0,b):U}function F(I){I!==h&&(A=h,h=I)}function V(I){return I?A:h}function Y(){return!Ke(t.focus)||t.isNavigation}function z(){return e.state.is([Oe,Qe])&&!!t.waitForTransition}return{mount:_,go:M,scroll:S,getNext:c,getPrev:v,getAdjacent:k,getEnd:N,setIndex:F,getIndex:V,toIndex:P,toPage:q,toDest:D,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=K(e),o=r.on,i=r.bind,s=r.emit,d=t.classes,l=t.i18n,u=n.Elements,a=n.Controller,y=u.arrows,m=u.track,p=y,g=u.prev,f=u.next,c,v,h={};function b(){w(),o(te,A)}function A(){L(),b()}function w(){var S=t.arrows;S&&!(g&&f)&&R(),g&&f&&(Ye(h,{prev:g,next:f}),Ge(p,S?"":"none"),le(p,v=Gt+"--"+t.direction),S&&(E(),M(),B([g,f],rt,m.id),s(nr,g,f)))}function L(){r.destroy(),me(p,v),c?(Te(y?[g,f]:p),g=f=null):ue([g,f],Yt)}function E(){o([ke,nt,J,De,pt],M),i(f,"click",W(_,">")),i(g,"click",W(_,"<"))}function _(S){a.go(S,!0)}function R(){p=y||Ie("div",d.arrows),g=O(!0),f=O(!1),c=!0,Ze(p,[g,f]),!y&&Dt(p,m)}function O(S){var T=' `,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 s=n[o.page].getAttribute("data-date");o.button.textContent=s||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(d=>{const l=d.innerHTML;d.remove();const u=document.createElement("div");u.classList.add("splide__slide");let a="";a+=`
`,a+=`${d.getAttribute(`,d.getAttribute("data-background-type")==="Video"&&(a+=``),a+="
",a+='
',a+=`
`,a+=l,a+=`
${d.getAttribute("data-name")}
`,a+="
",a+="
",u.innerHTML=a,o.appendChild(u)}),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 s=new se(i,{type:"loop",heightRatio:.5,pagination:!0,arrows:!1,autoplay:!0,interval:8e3,pauseOnHover:!1,pauseOnFocus:!1});s.on("pagination:mounted",d=>{d.list.classList.add("splide__pagination--custom"),d.items.forEach(l=>{const u=n[l.page],a=u.getAttribute("data-slide-icon"),y=u.getAttribute("data-name");if(a){const m=document.createElement("img");m.src=a,m.alt=u.getAttribute("data-name"),m.classList.add("home-hero-slide-icon"),m.width=40,l.button.appendChild(m)}if(y){const m=document.createElement("span");m.textContent=y,m.classList.add("home-hero-slide-title"),l.button.appendChild(m)}})}),s.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 s=Math.floor(Math.random()*(i+1));[o[i],o[s]]=[o[s],o[i]]}o.forEach((i,s)=>{setTimeout(()=>{i.classList.add("loaded")},s*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 s=Math.floor(Math.random()*(i+1));[o[i],o[s]]=[o[s],o[i]]}o.forEach((i,s)=>{setTimeout(()=>{i.classList.add("loaded")},s*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 s=r.querySelector(".splide");s&&s.splide&&s.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"),s=300;i.forEach((l,u)=>{setTimeout(()=>{l.classList.add("fade-in")},s*(u+1))});const d=o.querySelector(".landing-intro__main");d&&setTimeout(()=>{d.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=u=>{const a=new FormData;a.append("file",u),$.ajax({method:"post",url:"/ajax/upload-file",data:a,processData:!1,contentType:!1}).then(y=>{if(y.status!=="success")return;const{filepath:m}=y.data,p=new FileReader;p.readAsDataURL(u),p.onloadend=()=>{var g;document.querySelectorAll(".switch-save-form .file-list").forEach(f=>{var v;n+=1,f.insertAdjacentHTML("beforeend",`
    `),f.querySelector(".file-wrap")&&((v=f.querySelector(".files-title.hide"))==null||v.classList.remove("hide"))}),document.querySelectorAll(".switch-save-form .file-drop .no-file-label").forEach(f=>{f.classList.add("hide")}),(g=document.getElementById(`fileDelete-${n}`))==null||g.addEventListener("click",f=>{var v,h,b;const c=f.target.closest(".file-list");f.target.closest(".file-wrap").remove(),c.querySelector(".file-wrap")||((v=c.querySelector(".files-title"))==null||v.classList.add("hide"),(b=(h=c.closest(".file-drop"))==null?void 0:h.querySelector(".no-file-label"))==null||b.classList.remove("hide"))})}})},r=u=>{var y;const a=u.target.closest(".file-drop");(y=a==null?void 0:a.querySelector("input.file-upload-button"))==null||y.click()},o=u=>{var a;(a=u.target.files)!=null&&a[0]&&t(u.target.files[0])},i=u=>{var a;u.preventDefault(),u.currentTarget.classList.remove("is-drag-over"),(a=u.dataTransfer.files)!=null&&a[0]&&t(u.dataTransfer.files[0])},s=u=>{u.preventDefault(),u.currentTarget.classList.add("is-drag-over")},d=u=>{u.currentTarget.classList.remove("is-drag-over")};(()=>{document.querySelectorAll(".switch-save-form .file-drop").forEach(u=>{var a;u.addEventListener("drop",i),u.addEventListener("dragover",s),u.addEventListener("dragleave",d),(a=u.querySelector("a.file-upload-button"))==null||a.addEventListener("click",r)}),document.querySelectorAll(".switch-save-form input.file-upload-button").forEach(u=>{u.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 u=localStorage.getItem(n);if(!u)return null;const a=Number(u);return Number.isFinite(a)?a:null}catch{return null}},i=()=>{try{localStorage.setItem(n,String(Date.now()+t*r))}catch{}},s=o();if(s&&Date.now(){if(!window.jQuery||!window.jQuery.fn.modal)return;window.jQuery(e).one("shown.bs.modal",i).modal("show")},l=()=>{window.setTimeout(d,600)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l()})();(()=>{const n="add-to-cart-toast-host",t="/cart",r="/checkout";let o=null,i=null;const s=m=>String(m??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),d=m=>{const p=Number(m);return Number.isFinite(p)?`€${p.toFixed(2)}`:""},l=()=>{let m=document.querySelector(`.${n}`);return m||(m=document.createElement("div"),m.className=n,document.body.appendChild(m)),m},u=()=>{o&&(window.clearTimeout(o),o=null)},a=()=>{if(u(),!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 p=m.name||"Item added",g=m.image||"",f=d(m.price),c=l();u(),i==null||i.remove(),c.insertAdjacentHTML("beforeend",`

    Added To Basket

    ${g?`
    `:""}

    ${s(p)}

    ${f?`

    ${f}

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

    "},d=(l,u)=>{if(!n.closest(".productimage_container"))return;const a=!!l.closest(".top-badges-wrapper"),y=l.querySelector(".ribbon"),m=(y==null?void 0:y.style.backgroundColor)||"",p=(y==null?void 0:y.style.color)||"",g=document.createElement("div");g.classList.add("badge-hover-panel"),g.setAttribute("data-hover-position",a?"down":"right"),g.innerHTML=u,m&&(g.style.backgroundColor=m),p&&(g.style.color=p),l.appendChild(g)};i.forEach(l=>{var a;const u=l.getAttribute("title");if(u&&n.closest(".productimage_container")){const y=document.createElement("span");y.classList.add("badge-title"),y.textContent=u,(a=l.querySelector(".ribbon span"))==null||a.after(y)}if(l.matches(".b6628")&&d(l,s.b6628),l.matches(".b4728")){const y=l.querySelector(".ribbon span");if(y){const m=y.textContent.trim().split(" "),p=m.pop();y.innerHTML=`${m.join(" ")} ${p}`}d(l,s.b4728)}l.matches(".b1551")&&d(l,s.b1551),l.matches(".b1550"),l.matches(".b484")}),n.setAttribute("data-custom-badges","true")})};(()=>{const e=document.querySelector(".custom-grid-tools");if(!e)return;const n=document.querySelector(".tools-actions");n&&e.appendChild(n)})();(()=>{const e=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(o=>{if(o.querySelector(".quantity-input-wrapper"))return;const i=o.querySelector(".inputquantity");if(!i||i.getAttribute("type")==="number")return;const s=document.createElement("div");s.classList.add("quantity-input-wrapper"),s.innerHTML=` `,o.querySelector(".buttons.group").insertAdjacentElement("afterbegin",s),s.appendChild(i);const d=o.querySelector(".quantity-input-increment"),l=o.querySelector(".quantity-input-decrement");d.addEventListener("click",()=>{Number.isNaN(i.value)?i.value=1:i.value=parseInt(i.value,10)+1}),l.addEventListener("click",()=>{Number.isNaN(i.value)||parseInt(i.value,10)<=1?i.value=1:i.value=parseInt(i.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 i=document.createElement("div");i.classList.add("product-actions-wrapper");const s=o.querySelector(".footer");if(s)s.appendChild(i);else return;const d=o.querySelector(".addtoquicklist-wrapper");d&&i.appendChild(d);const l=o.querySelector(".product-compare-action");l&&i.appendChild(l)})},t=()=>{if(!document.querySelector(".ex-loggedout"))return;const o=document.createElement("div");o.classList.add("product-login-buttons"),o.innerHTML=` Sign In Create Account `,document.querySelectorAll(".catalog-grid .product").forEach(i=>{if(i.querySelector(".product-login-buttons"))return;const s=i.querySelector(".footer-wrapper-price");s&&!s.children.length&&s.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)})();(()=>{if(!document.querySelector(".ex-product"))return;const e=()=>{const c=document.querySelector(".desktop .product-summary");if(!c)return;const v=document.createElement("div");v.classList.add("product-summary-actions"),c.appendChild(v);const h=document.createElement("div");h.classList.add("product-summary-inner"),v.appendChild(h);const b=c.querySelector(".product-configurable-wrapper"),A=c.querySelector(".product-points-wrapper"),w=c.querySelector(".product-links-wrapper");b&&h.appendChild(b),A&&h.appendChild(A),w&&h.appendChild(w);const L=document.querySelector(".desktop .productaddtocart_container");L&&v.appendChild(L)},n=()=>{document.querySelectorAll(".pdp-minibanner").forEach(c=>{var v,h;(h=(v=c.closest(".catalog-single"))==null?void 0:v.querySelector(".product-summary-inner"))==null||h.insertAdjacentElement("afterbegin",c)})},t=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(c=>{if(c.querySelector(".product-actions-wrapper"))return;const v=document.createElement("div");v.classList.add("product-actions-wrapper"),c.appendChild(v);const h=c.querySelector(".product-shopping-actions-addtoquicklist");h&&v.appendChild(h);const b=c.querySelector(".product-compare-action");b&&v.appendChild(b)})},r=()=>{document.querySelectorAll(".custom-product-text").forEach(c=>{var b,A;const v=c.closest(".catalog-single");if(!v)return;const h=v.querySelector(".product-shopping-actions-tierpricing");h?(b=h.closest(".product-shopping-actions-row"))==null||b.insertAdjacentElement("afterend",c):(A=v.querySelector(".product-shopping-actions > .product-shopping-actions-row:first-child"))==null||A.insertAdjacentElement("afterend",c)}),document.querySelectorAll(".prod-desc-link").forEach(c=>{c.addEventListener("click",v=>{var b;v.preventDefault();const h=(b=c.closest(".catalog-single"))==null?void 0:b.querySelector(".productdescription_container");h&&h.scrollIntoView({behavior:"smooth"})})}),document.querySelectorAll(".prod-spec-link").forEach(c=>{c.addEventListener("click",v=>{var b;v.preventDefault();const h=(b=c.closest(".catalog-single"))==null?void 0:b.querySelector(".productspecs_container");h&&h.scrollIntoView({behavior:"smooth"})})})},o=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(c=>{const v=c.querySelector(".save.with-value"),h=c.querySelector(".live-inventory-v2-wrapper"),b=c.querySelector(".product-shopping-actions-row:first-child");if((v||h)&&b){const A=document.createElement("div");A.classList.add("stock-sale-wrapper"),h&&A.appendChild(h),v&&A.appendChild(v),b.insertAdjacentElement("afterbegin",A)}})},i=()=>{document.querySelectorAll(".page-content .panel-collapse").forEach(c=>{const v=c.querySelector(".panel-body"),h=c.getBoundingClientRect().height;((v==null?void 0:v.getBoundingClientRect().height)||0)>h?c.classList.add("accordion-read-more"):c.classList.remove("accordion-read-more"),c.querySelector(".show-more-btn-wrapper")||(c.insertAdjacentHTML("beforeend",`
    See
    `),c.querySelector(".show-more-btn-wrapper").addEventListener("click",()=>{c.classList.toggle("show-more")}))})},s=()=>{document.querySelectorAll(".catalog-single .product-summary").forEach(c=>{var h;c.querySelector(".product-indicators .non-returnable")||(h=c.querySelector(".custom-product-text .is-returnable"))==null||h.classList.remove("hide")})},d=()=>{const c=document.querySelector(".pdp-lead-time");if(!c)return;const v=document.querySelector(".product-shopping-actions"),h=(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"},A=typeof window.leadTimeData=="object"?window.leadTimeData:b;let w=A[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=A["out-of-stock"]||"Low Stock - Contact us for ETA",c.innerHTML=w;return}h!==0&&(!L&&h&&Object.keys(A).forEach(_=>{_===h&&(w=A[_])}),c.innerHTML=w)},l=()=>{document.querySelectorAll(".product-shopping-actions").forEach(c=>{const v=c.querySelector(".product-shopping-actions-tierpricing");if(!v)return;const h=v.getAttribute("data-tierpricing");if(!h||c.querySelector(".custom-quantity-breaks-wrapper"))return;const A=JSON.parse(h);if(!A||!A.length)return;const w=c.querySelector(".product-shopping-actions-prices .has-price").textContent,L=parseFloat(w.replace(/[^0-9.]/g,"")),E=[...A].sort((C,N)=>C.quantity-N.quantity),_=C=>Math.round((1-parseFloat(String(C).replace(/[^0-9.]/g,""))/L)*100),R=(C,N,P)=>`
    ${C}
    ${N}
    ${P?`-${P}%`:""}
    `;let O=`

    Buy More, Save More

    Quantity
    Price
    Savings
    `;O+=R(`1 - ${E[0].quantity-1}`,w,0),E.forEach((C,N)=>{const q=N===E.length-1?`${C.quantity}+`:`${C.quantity} - ${E[N+1].quantity-1}`,D=_(parseFloat(String(C.price).replace(/[^0-9.]/g,"")));O+=R(q,C.price,D)}),O+="
    ",v.insertAdjacentHTML("afterbegin",O);const M=c.querySelector(".inputquantity");if(!M)return;const S=v.querySelectorAll(".custom-quantity-break:not(.custom-quantity-break-header)"),T=C=>{let N=0;E.forEach((P,q)=>{C>=P.quantity&&(N=q+1)}),S.forEach((P,q)=>{P.classList.toggle("is-active",q===N)})},k=c.querySelector(".product-shopping-actions-prices .has-price"),x=C=>{if(!k)return;let N=w;E.forEach(P=>{C>=P.quantity&&(N=P.price)}),k.textContent=N},H=()=>{const C=parseInt(M.value,10);!C||C<1||(T(C),x(C))};M.addEventListener("change",H),M.addEventListener("input",H),c.querySelectorAll(".incr-btn").forEach(C=>{C.addEventListener("click",()=>setTimeout(H,0))})})},u=()=>{const c=document.querySelectorAll(".product-description");if(!c.length)return;const v=[];if(c.forEach(b=>{let A=null;if(b.querySelectorAll("h6").forEach(L=>{L.textContent.trim()==="Ask iGate Questions"&&(A=L)}),!A)return;const w=A.nextElementSibling;!w||w.tagName!=="UL"||(A.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 h=document.querySelectorAll(".productimage_container .main-image");h.length&&h.forEach(b=>{const A=b.parentElement;let w=A.nextElementSibling;if((!w||!w.classList.contains("below-main-image"))&&(w=document.createElement("div"),w.classList.add("below-main-image"),A.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"),O=L.querySelector(`.ask-igate-answer[data-answer="${R}"]`),M=!O.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")}),M||(O.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()})})},a=()=>{var S;const c=(T,k,x,H,C)=>{const N=P=>Number.isInteger(P)?String(P):P.toFixed(2).replace(/\.?0+$/,"");return` Price€${parseFloat(k).toFixed(2)} Quantity${T} Rewards${N(x)} per €${N(H)} Total points${C} `};console.log("Earn Points");const v=document.querySelector(".product-shopping-actions");if(!v)return;const h=parseFloat(v.getAttribute("data-rewardsrate"))||0,b=parseFloat(v.getAttribute("data-rewardsratevalue"))||0,A=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(!h||!b||!w||w
    Points

    Reward Points

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

    View Rewards

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

    ${h}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${c}

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

    Uploaded: ${o.name}

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

    ${p.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",a+="

    Select all that apply.

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

    Upload Your Logo

    ",a+=`

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

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

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

    Choose Your ${p.text}

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

    Uploaded: ${o.name}

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

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

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

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

    Switch Here To Save

    ';const O=document.createElement("p");O.className="comparison-message";const M=parseFloat(b)>0;if(f.pageYield&&c.pageYield){const S=t(f.pageYield),k=(t(c.pageYield)-S)/S*100,x=k.toFixed(0),H=k>0;H&&M?O.innerHTML=`Print ${x}% more and save ${A}${b} when you switch to our brand`:H?O.innerHTML=`Print ${x}% more when you switch to our brand`:M?O.innerHTML=`Save ${A}${b} when you switch to our brand`:O.innerHTML="Save when you switch to our brand"}else M?O.innerHTML=`Save ${A}${b} when you switch to our brand`:O.innerHTML="Save when you switch to our brand";if(R.appendChild(O),c.pageYield){const S=t(c.pageYield),T=typeof c.pageYield=="object",k=c.price/S*100,x=k<2?k.toFixed(2):k.toFixed(0),H=T?"avg. ":"",C=document.createElement("p");C.className="comparison-price",C.innerHTML=`Alternatives from ${H}${x}${w} per page `,R.appendChild(C)}else{const S=document.createElement("p");S.className="comparison-price",S.innerHTML='View alternatives ',R.appendChild(S)}return E.appendChild(R),L},y=(f,c,v,h="append",b={})=>{if(!c)return 0;let A;if(typeof v=="string")A=document.querySelectorAll(v);else if(v instanceof NodeList||v instanceof HTMLCollection)A=v;else if(v instanceof HTMLElement)A=[v];else return 0;if(!A||A.length===0)return 0;let w=0;return A.forEach(L=>{const E=f(c,...Object.values(b));if(E){switch(h){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"}],p="EUR",g=!0;document.addEventListener("live-pricing-done",()=>{setTimeout(()=>{if(document.querySelector(".ink-toner-price-per-page")||document.querySelector(".ink-toner-yield-card"))return;const f=l(m);if(f&&(y(o,f,".product-shopping-actions .has-price","after",{currency:p}),y(i,f,".product-points-wrapper","before"),f.type==="original")){const c=u();c&&y(a,f,".ink-toner-yield-card","before",{compatibleProduct:c,currency:p,useModal:g})}},200)})})();document.querySelectorAll('.customertools[data-static="true"]').forEach(e=>{e.querySelector(".nav-pills").insertAdjacentHTML("afterbegin",` `)}),document.querySelectorAll(".sidebar-mobiletools a").forEach(e=>{e.addEventListener("click",()=>{document.querySelector('.customertools[data-static="false"]').classList.toggle("open")})});(()=>{if(!document.querySelector(".ex-emptysearchresults"))return;const n=new URLSearchParams(window.location.search).get("query");n&&document.querySelectorAll(".no-search-searchterm").forEach(t=>{t.textContent=`'${n}'`}),document.querySelectorAll(".no-search-searchbar").forEach(t=>{t.appendChild(document.querySelector(".header-full .search-form").cloneNode(!0))})})();(()=>{var t;if(!document.querySelector(".ex-cart"))return;document.addEventListener("cart-load-success",()=>{setTimeout(()=>{var r,o;(r=document.querySelector(".desktop .cart-topbuttons"))==null||r.prepend(document.querySelector(".desktop .clear-cart")),(o=document.querySelector(".mobile .cart-topbuttons"))==null||o.prepend(document.querySelector(".mobile .clear-cart"))},200)},!1),document.addEventListener("cart-total-update",()=>{setTimeout(()=>{var r,o;(r=document.querySelector(".desktop .cart-topbuttons"))==null||r.prepend(document.querySelector(".desktop .clear-cart")),(o=document.querySelector(".mobile .cart-topbuttons"))==null||o.prepend(document.querySelector(".mobile .clear-cart"))},200)},!1);const n=document.querySelector(".desktop .cart-banner");n&&((t=document.querySelector(".desktop .carttotals_container"))==null||t.append(n))})();(()=>{if(!document.querySelector(".ex-blog"))return;const n=document.querySelector(".custom-grid-tools .tools-actions");if(!n)return;const t=document.querySelector(".listgrid");t&&(n.appendChild(t),n.querySelector(".listview")&&(n.querySelector(".listview").className="listview",n.querySelector(".listview").innerHTML="List"),n.querySelector(".gridview")&&(n.querySelector(".gridview").className="gridview",n.querySelector(".gridview").innerHTML="Grid"))})();window.categoryIcons&&document.querySelectorAll(".blogarchive-category").forEach(e=>{const n=e.querySelector(".blogarchive-category-name");if(!n)return;const t=n.innerText;if(window.categoryIcons[t]){const r=e.querySelector(".blogarchive-category-icon img");r&&(r.src=window.categoryIcons[t])}});(()=>{var t;if(!document.querySelector(".ex-rewards"))return;const e=document.querySelector(".reward-title"),n=document.querySelector(".rewards-hero-points");e&&n&&(e.classList.remove("col-md-12"),n.appendChild(e)),(t=document.querySelector(".custom-grid-tools .tools-actions"))==null||t.insertAdjacentElement("beforeend",document.querySelector(".sortby"))})();(()=>{const e=()=>{const n=new IntersectionObserver(r=>{r.forEach(o=>{if(o.isIntersecting){const i=o.target,s=i.querySelectorAll(".eco-grid-sustainability-goal");s.forEach((l,u)=>{setTimeout(()=>{l.classList.add("fade-in")},100*u)});const d=i.querySelector(".goals-achievements-achievements-outer");if(d){const l=d.querySelectorAll("p");l.forEach((a,y)=>{setTimeout(()=>{a.classList.add("fade-in")},100*(s.length+y))}),d.querySelectorAll(".list-check li").forEach((a,y)=>{setTimeout(()=>{a.classList.add("fade-in")},100*(s.length+l.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 p=o.querySelector(".btn-update-default-qty");p&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",p);const g=o.querySelector(".actioncontent");g&&o.querySelector(".shopping-actions").insertAdjacentElement("beforeend",g);const f=o.querySelector(".delete");f&&f.insertAdjacentHTML("beforeend","Remove From Quicklist")}const i=document.createElement("div"),s=o.querySelector(".inputquantity");function d(){const p=parseInt(s.value,10)||0;s.value=p+1,s.dispatchEvent(new Event("change",{bubbles:!0}))}function l(){const p=parseInt(s.value,10)||0;p>0&&(s.value=p-1,s.dispatchEvent(new Event("change",{bubbles:!0})))}if(s){i.classList.add("quantity-wrapper"),s.insertAdjacentElement("beforebegin",i),i.appendChild(s);const p=document.createElement("button");p.classList.add("plus-btn"),p.innerHTML='',i.insertAdjacentElement("beforeend",p);const g=document.createElement("button");g.classList.add("minus-btn"),g.innerHTML='',i.insertAdjacentElement("afterbegin",g),p.addEventListener("click",d),g.addEventListener("click",l)}const u=document.createElement("div");u.classList.add("product-stock-and-actions"),o.querySelector(".shopping-actions").appendChild(u);const a=o.querySelector(".quicklist-groups-btn-wrapper");a&&u.insertAdjacentElement("beforeend",a);const y=o.querySelector(".live-inventory-v2-wrapper");y&&n?u.insertAdjacentElement("beforeend",y):y&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",y);const m=o.querySelector(".product-compare-action");m&&u.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 s=o.querySelector(".has-price");if(!s)return;let d=o.querySelector(".total-price");d||(d=document.createElement("span"),d.classList.add("total-price"),s.insertAdjacentElement("afterend",d));const l=()=>{const u=s.textContent.trim(),a=parseFloat(u.replace(/[^0-9.-]+/g,""))||0,y=parseInt(i.value,10)||0,m=a*y;m>0?d.textContent=`€${m.toFixed(2)}`:d.textContent="€0.00"};i.addEventListener("change",l),i.addEventListener("input",l),l()})},!1);const t=document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent"),r=document.createElement("div");r.classList.add("quicklists-banner"),r.innerHTML='
    Winter Banner
    ',t.length>=4?t[3].insertAdjacentElement("afterend",r):t.length>0&&t[t.length-1].insertAdjacentElement("afterend",r)})());(()=>{const e=document.querySelector(".inktoner-brands-slider");e&&new se(e,{type:"loop",perPage:5,perMove:1,gap:15,pagination:!1,arrows:!0,autoplay:!0,interval:6e3,breakpoints:{1469:{perPage:4},1080:{perPage:3},600:{perPage:2},410:{perPage:1}}}).mount()})();(()=>{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 s=()=>{const d=r.classList.contains("is-expanded");r.classList.remove("is-expanded");const l=r.scrollHeight>r.clientHeight+1;d&&l&&r.classList.add("is-expanded"),i.hidden=!l,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(s.timer),s.timer=window.setTimeout(s,100)}),window.requestAnimationFrame(s)},t=(r=0)=>{const o=e.querySelector(".intro-filters-search"),i=e.querySelector(".intro-filters-categories"),s=document.querySelector(".filterswrapper .search-with-in"),d=document.querySelector(".filtername-categories .filter-options:not(.swatch-grid)");if(s&&o&&!o.children.length&&o.appendChild(s.cloneNode(!0)),d&&i&&!i.querySelector(".filter-options")){const l=d.cloneNode(!0);l.classList.remove("hide"),l.querySelectorAll(".hide").forEach(a=>a.classList.remove("hide"));const u=document.createElement("div");u.innerHTML=``,new URLSearchParams(window.location.search).get("z")||u.querySelector("a").classList.add("active"),l.insertBefore(u,l.firstChild),i.appendChild(l),n(l,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"),p=document.createElement("div");p.className="thank-you-check",p.setAttribute("aria-hidden","true"),p.textContent="✓",e.prepend(p),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 p=document.querySelector(m);return p?(p.classList.remove("thank-you-source","hidden"),p):null},r=m=>(Array.isArray(window.dataLayer)?window.dataLayer:[]).find(g=>g&&m(g))||null,o=()=>r(m=>m.transactionTotal!=null),i=m=>{if(!m)return null;const p=Number((Number(m.transactionTotal)-Number(m.transactionShipping||0)-Number(m.transactionTax||0)).toFixed(2));return Math.max(0,Math.floor(p))},s=o(),d=i(s),l=r(m=>typeof m.email=="string"),u=t(".thank-you-top.thank-you-source");if(u){n.prepend(u);const m=document.querySelector(".thank-you-contact-form.thank-you-source"),p=u.querySelector(".thank-you-top-form");if(m&&p){m.classList.remove("thank-you-source","hidden");const g=m.closest("form")||m;g.classList.remove("hidden","hide"),p.append(g);const f=g.querySelector('#thankYouContactEmail, input[type="email"]');f&&(l!=null&&l.email)&&(f.value=l.email);const c=g.querySelector("#thankYouRewardPoints");c&&d!=null&&(c.value=d);const v=g.querySelector("#thankYouOrderRef");v&&(s!=null&&s.transactionRef)&&(v.value=s.transactionRef)}}const a=t(".thank-you-rewards.thank-you-source");a&&(n.append(a),d!=null&&a.querySelectorAll(".thank-you-rewards-count").forEach(m=>{m.textContent=d}),(y=a.querySelector(".thank-you-rewards-cta"))==null||y.addEventListener("click",m=>{m.preventDefault();const p=document.querySelector(".thank-you-top-form");p&&(p.scrollIntoView({behavior:"smooth",block:"center"}),p.classList.add("is-highlighted"),window.setTimeout(()=>p.classList.remove("is-highlighted"),2e3))}))})();