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

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

    ",b1551:"

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

    ",b6628:"

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

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

    Buy More, Save More

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

    Reward Points

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

    View Rewards

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

    ${S}

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

    ${h}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${m}

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

    Uploaded: ${o.name}

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

    ${p.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",a+="

    Select all that apply.

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

    Upload Your Logo

    ",a+=`

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

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

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

    Choose Your ${p.text}

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

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

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

    Uploaded: ${o.name}

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

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

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

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

    Switch Here To Save

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