(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,f=parseInt(o.dataset.rowIndex||0,10),s=o.querySelectorAll(".col"),c=100;f%2!==0?s.forEach((u,m)=>{const l=s.length-m-1;setTimeout(()=>{u.classList.add("fade-in")},c*l)}):s.forEach((u,m)=>{setTimeout(()=>{u.classList.add("fade-in")},c*m)}),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.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 Fn(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 Fe(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 Fe(r,n)}):t}function et(e,n){return n?mn(e,n)[0]:e.firstElementChild}var Ye=Object.keys;function qe(e,n,t){return e&&(t?Ye(e).reverse():Ye(e)).forEach(function(r){r!=="__proto__"&&n(e[r],r)}),e}function Ue(e){return Se(arguments,1).forEach(function(n){qe(n,function(t,r){e[r]=n[r]})}),e}function ye(e){return Se(arguments,1).forEach(function(n){qe(n,function(t,r){Pt(t)?e[r]=t.slice():Ve(t)?e[r]=ye({},Ve(e[r])?e[r]:{},t):e[r]=t})}),e}function Qt(e,n){oe(n||Ye(e),function(t){delete e[t]})}function ue(e,n){oe(e,function(t){oe(n,function(r){t&&t.removeAttribute(r)})})}function j(e,n,t){Ve(n)?qe(n,function(r,o){j(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):j(r,n)),t&&Ze(t,r),r}function ae(e,n,t){if(Qe(t))return getComputedStyle(e)[n];Nt(t)||(e.style[n]=""+t)}function Ge(e,n){ae(e,"display",n)}function vn(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function ie(e,n){return e.getAttribute(n)}function Jt(e,n){return e&&e.classList.contains(n)}function ne(e){return e.getBoundingClientRect()}function Te(e){oe(e,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function gn(e){return et(new DOMParser().parseFromString(e,"text/html").body)}function fe(e,n){e.preventDefault(),n&&(e.stopPropagation(),e.stopImmediatePropagation())}function yn(e,n){return e&&e.querySelector(n)}function Ht(e,n){return n?Se(e.querySelectorAll(n)):[]}function me(e,n){pe(e,n,!1)}function Mt(e){return e.timeStamp}function Ae(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(s,c,u,m){o(s,c,function(l,y,g){var i="addEventListener"in l,d=i?l.removeEventListener.bind(l,y,u,m):l.removeListener.bind(l,u);i?l.addEventListener(y,u,m):l.addListener(u),e.push([l,y,g,u,d])})}function t(s,c,u){o(s,c,function(m,l,y){e=e.filter(function(g){return g[0]===m&&g[1]===l&&g[2]===y&&(!u||g[3]===u)?(g[4](),!1):!0})})}function r(s,c,u){var m,l=!0;return typeof CustomEvent=="function"?m=new CustomEvent(c,{bubbles:l,detail:u}):(m=document.createEvent("CustomEvent"),m.initCustomEvent(c,l,!1,u)),s.dispatchEvent(m),m}function o(s,c,u){oe(s,function(m){m&&oe(c,function(l){l.split(" ").forEach(function(y){var g=y.split(".");u(m,g[0],g[1])})})})}function f(){e.forEach(function(s){s[4]()}),ge(e)}return{bind:n,unbind:t,dispatch:r,destroy:f}}var ke="mounted",en="ready",Ee="move",nt="moved",En="click",zn="active",Xn="inactive",Kn="visible",Qn="hidden",J="refresh",te="updated",ze="resize",Bt="resized",Jn="drag",Zn="dragging",er="dragged",Vt="scroll",Oe="scrolled",tr="overflow",Sn="destroy",nr="arrows:mounted",rr="arrows:updated",or="pagination:mounted",ar="pagination:updated",Ln="navigation:mounted",wn="autoplay:play",ir="autoplay:playing",An="autoplay:pause",qn="lazyload:loaded",Tn="sk",Cn="sh",pt="ei";function Q(e){var n=e?e.event.bus:document.createDocumentFragment(),t=bn();function r(f,s){t.bind(n,Je(f).join(" "),function(c){s.apply(s,Pt(c.detail)?c.detail:[])})}function o(f){t.dispatch(n,f,Se(arguments,1))}return e&&e.event.on(Sn,t.destroy),Ue(t,{bus:n,on:r,off:W(t.unbind,n),emit:o})}function vt(e,n,t,r){var o=Date.now,f,s=0,c,u=!0,m=0;function l(){if(!u){if(s=e?be((o()-f)/e,1):1,t&&t(s),s>=1&&(n(),f=o(),r&&++m>=r))return g();c=Kt(l)}}function y(v){v||d(),f=o()-(v?s*e:0),u=!1,c=Kt(l)}function g(){u=!0}function i(){f=o(),s=0,t&&t(s)}function d(){c&&cancelAnimationFrame(c),s=0,c=0,u=!0}function a(v){e=v}function p(){return u}return{start:y,rewind:i,pause:g,cancel:d,set:a,isPaused:p}}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||{},f=t.reducedMotion||{},s=bn(),c=[];function u(){var d=t.mediaQuery==="min";Ye(o).sort(function(a,p){return d?+a-+p:+p-+a}).forEach(function(a){l(o[a],"("+(d?"min":"max")+"-width:"+a+"px)")}),l(f,Xt),y()}function m(d){d&&s.destroy()}function l(d,a){var p=matchMedia(a);s.bind(p,"change",y),c.push([d,p])}function y(){var d=r.is(ut),a=t.direction,p=c.reduce(function(v,h){return ye(v,h[1].matches?h[0]:{})},{});Qt(t),i(p),t.destroy?e.destroy(t.destroy==="completely"):d?(m(!0),e.mount()):a!==t.direction&&e.refresh()}function g(d){matchMedia(Xt).matches&&(d?ye(t,f):Qt(t,Ye(f)))}function i(d,a,p){ye(t,d),a&&ye(Object.getPrototypeOf(t),d),(p||!r.is(xe))&&e.emit(te,t)}return{setup:u,destroy:m,reduce:g,set:i}}var gt="Arrow",yt=gt+"Left",ht=gt+"Right",kn=gt+"Up",Mn=gt+"Down",tn="rtl",bt="ttb",wt={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(f,s,c){c=c||t.direction;var u=c===tn&&!s?1:c===bt?0:-1;return wt[f]&&wt[f][u]||f.replace(/width|left|right/i,function(m,l){var y=wt[m.toLowerCase()][u]||m;return l>0?y.charAt(0).toUpperCase()+y.slice(1):y})}function o(f){return f*(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",Ft=ce+"labelledby",xn=ce+"hidden",Yt=ce+"orientation",Xe=ce+"roledescription",rn=ce+"live",on=ce+"busy",an=ce+"atomic",Ut=[ve,$e,dr,rt,_n,re,Ft,xn,Yt,Xe],de=tt+"__",Le="is-",At=tt,sn=de+"track",fr=de+"list",Et=de+"slide",In=Et+"--clone",pr=Et+"__container",Gt=de+"arrows",St=de+"arrow",$n=St+"--prev",Pn=St+"--next",Lt=de+"pagination",Nn=Lt+"__page",mr=de+"progress",vr=mr+"__bar",gr=de+"toggle",yr=de+"spinner",hr=de+"sr",br=Le+"initialized",Ce=Le+"active",Dn=Le+"prev",On=Le+"next",It=Le+"visible",$t=Le+"loading",Hn=Le+"focus-in",Rn=Le+"overflow",Er=[Ce,It,Dn,On,$t,Hn,Rn],Sr={slide:Et,clone:In,arrows:Gt,arrow:St,prev:$n,next:Pn,pagination:Lt,page:Nn,spinner:yr};function Lr(e,n){if(fn(e.closest))return e.closest(n);for(var t=e;t&&t.nodeType===1&&!Fe(t,n);)t=t.parentElement;return t}var wr=5,cn=200,jn="touchstart mousedown",qt="touchmove mousemove",Tt="touchend touchcancel mouseup click";function Ar(e,n,t){var r=Q(e),o=r.on,f=r.bind,s=e.root,c=t.i18n,u={},m=[],l=[],y=[],g,i,d;function a(){b(),k(),h()}function p(){o(J,v),o(J,a),o(te,h),f(document,jn+" keydown",function(L){d=L.type==="keydown"},{capture:!0}),f(s,"focusin",function(){pe(s,Hn,!!d)})}function v(L){var x=Ut.concat("style");ge(m),me(s,l),me(g,y),ue([g,i],x),ue(s,L?x:["style",Xe])}function h(){me(s,l),me(g,y),l=C(At),y=C(sn),le(s,l),le(g,y),j(s,re,t.label),j(s,Ft,t.labelledby)}function b(){g=A("."+sn),i=et(g,"."+fr),je(g&&i,"A track/list element is missing."),st(m,mn(i,"."+Et+":not(."+In+")")),qe({arrows:Gt,pagination:Lt,prev:$n,next:Pn,bar:vr,toggle:gr},function(L,x){u[x]=A("."+L)}),Ue(u,{root:s,track:g,list:i,slides:m})}function k(){var L=s.id||Wn(tt),x=t.role;s.id=L,g.id=g.id||L+"-track",i.id=i.id||L+"-list",!ie(s,ve)&&s.tagName!=="SECTION"&&x&&j(s,ve,x),j(s,Xe,c.carousel),j(i,ve,"presentation")}function A(L){var x=yn(s,L);return x&&Lr(x,"."+At)===s?x:void 0}function C(L){return[L+"--"+t.type,L+"--"+t.direction,t.drag&&L+"--draggable",t.isNavigation&&L+"--nav",L===At&&Ce]}return Ue(u,{setup:a,mount:p,destroy:v})}var Ne="slide",He="loop",ot="fade";function qr(e,n,t,r){var o=Q(e),f=o.on,s=o.emit,c=o.bind,u=e.Components,m=e.root,l=e.options,y=l.isNavigation,g=l.updateOnMove,i=l.i18n,d=l.pagination,a=l.slideFocus,p=u.Direction.resolve,v=ie(r,"style"),h=ie(r,re),b=t>-1,k=et(r,"."+pr),A;function C(){b||(r.id=m.id+"-slide"+jt(n+1),j(r,ve,d?"tabpanel":"group"),j(r,Xe,i.slide),j(r,re,h||xt(i.slideLabel,[n+1,e.length]))),L()}function L(){c(r,"click",W(s,En,R)),c(r,"keydown",W(s,Tn,R)),f([nt,Cn,Oe],w),f(Ln,O),g&&f(Ee,N)}function x(){A=!0,o.destroy(),me(r,Er),ue(r,Ut),j(r,"style",v),j(r,re,h||"")}function O(){var D=e.splides.map(function(q){var P=q.splide.Components.Slides.getAt(n);return P?P.slide.id:""}).join(" ");j(r,re,xt(i.slideX,(b?t:n)+1)),j(r,rt,D),j(r,ve,a?"button":""),a&&ue(r,Xe)}function N(){A||w()}function w(){if(!A){var D=e.index;E(),S(),pe(r,Dn,n===D-1),pe(r,On,n===D+1)}}function E(){var D=M();D!==Jt(r,Ce)&&(pe(r,Ce,D),j(r,_n,y&&D||""),s(D?zn:Xn,R))}function S(){var D=B(),q=!D&&(!M()||b);if(e.state.is([De,Ke])||j(r,xn,q||""),j(Ht(r,l.focusableNodes||""),$e,q?-1:""),a&&j(r,$e,q?-1:0),D!==Jt(r,It)&&(pe(r,It,D),s(D?Kn:Qn,R)),!D&&document.activeElement===r){var P=u.Slides.getAt(e.index);P&&vn(P.slide)}}function T(D,q,P){ae(P&&k||r,D,q)}function M(){var D=e.index;return D===n||l.cloneStatus&&D===t}function B(){if(e.is(ot))return M();var D=ne(u.Elements.track),q=ne(r),P=p("left",!0),V=p("right",!0);return ft(D[P])<=We(q[P])&&ft(q[V])<=We(D[V])}function I(D,q){var P=ee(D-n);return!b&&(l.rewind||e.is(He))&&(P=be(P,e.length-P)),P<=q}var R={index:n,slideIndex:t,slide:r,container:k,isClone:b,mount:C,destroy:x,update:w,style:T,isWithin:I};return R}function Tr(e,n,t){var r=Q(e),o=r.on,f=r.emit,s=r.bind,c=n.Elements,u=c.slides,m=c.list,l=[];function y(){g(),o(J,i),o(J,g)}function g(){u.forEach(function(w,E){a(w,E,-1)})}function i(){A(function(w){w.destroy()}),ge(l)}function d(){A(function(w){w.update()})}function a(w,E,S){var T=qr(e,E,S,w);T.mount(),l.push(T),l.sort(function(M,B){return M.index-B.index})}function p(w){return w?C(function(E){return!E.isClone}):l}function v(w){var E=n.Controller,S=E.toIndex(w),T=E.hasFocus()?1:t.perPage;return C(function(M){return ct(M.index,S,S+T-1)})}function h(w){return C(w)[0]}function b(w,E){oe(w,function(S){if(he(S)&&(S=gn(S)),pn(S)){var T=u[E];T?Ot(S,T):Ze(m,S),le(S,t.classes.slide),x(S,W(f,ze))}}),f(J)}function k(w){Te(C(w).map(function(E){return E.slide})),f(J)}function A(w,E){p(E).forEach(w)}function C(w){return l.filter(fn(w)?w:function(E){return he(w)?Fe(E.slide,w):Dt(Je(w),E.index)})}function L(w,E,S){A(function(T){T.style(w,E,S)})}function x(w,E){var S=Ht(w,"img"),T=S.length;T?S.forEach(function(M){s(M,"load error",function(){--T||E()})}):E()}function O(w){return w?u.length:l.length}function N(){return l.length>t.perPage}return{mount:y,destroy:i,update:d,register:a,get:p,getIn:v,getAt:h,add:b,remove:k,forEach:A,filter:C,style:L,getLength:O,isEnough:N}}function Cr(e,n,t){var r=Q(e),o=r.on,f=r.bind,s=r.emit,c=n.Slides,u=n.Direction.resolve,m=n.Elements,l=m.root,y=m.track,g=m.list,i=c.getAt,d=c.style,a,p,v;function h(){b(),f(window,"resize load",cr(W(s,ze))),o([te,J],b),o(ze,k)}function b(){a=t.direction===bt,ae(l,"maxWidth",Ae(t.width)),ae(y,u("paddingLeft"),A(!1)),ae(y,u("paddingRight"),A(!0)),k(!0)}function k(R){var D=ne(l);(R||p.width!==D.width||p.height!==D.height)&&(ae(y,"height",C()),d(u("marginRight"),Ae(t.gap)),d("width",x()),d("height",O(),!0),p=D,s(Bt),v!==(v=I())&&(pe(l,Rn,v),s(tr,v)))}function A(R){var D=t.padding,q=u(R?"right":"left");return D&&Ae(D[q]||(Ve(D)?0:D))||"0px"}function C(){var R="";return a&&(R=L(),je(R,"height or heightRatio is missing."),R="calc("+R+" - "+A(!1)+" - "+A(!0)+")"),R}function L(){return Ae(t.height||ne(g).width*t.heightRatio)}function x(){return t.autoWidth?null:Ae(t.fixedWidth)||(a?"":N())}function O(){return Ae(t.fixedHeight)||(a?t.autoHeight?null:N():L())}function N(){var R=Ae(t.gap);return"calc((100%"+(R&&" + "+R)+")/"+(t.perPage||1)+(R&&" - "+R)+")"}function w(){return ne(g)[u("width")]}function E(R,D){var q=i(R||0);return q?ne(q.slide)[u("width")]+(D?0:M()):0}function S(R,D){var q=i(R);if(q){var P=ne(q.slide)[u("right")],V=ne(g)[u("left")];return ee(P-V)+(D?0:M())}return 0}function T(R){return S(e.length-1)-S(0)+E(0,R)}function M(){var R=i(0);return R&&parseFloat(ae(R.slide,u("marginRight")))||0}function B(R){return parseFloat(ae(y,u("padding"+(R?"Right":"Left"))))||0}function I(){return e.is(ot)||T(!0)>w()}return{mount:h,resize:k,listSize:w,slideSize:E,sliderSize:T,totalSize:S,getPadding:B,isOverflow:I}}var kr=2;function Mr(e,n,t){var r=Q(e),o=r.on,f=n.Elements,s=n.Slides,c=n.Direction.resolve,u=[],m;function l(){o(J,y),o([te,ze],i),(m=p())&&(d(m),n.Layout.resize(!0))}function y(){g(),l()}function g(){Te(u),ge(u),r.destroy()}function i(){var v=p();m!==v&&(mV)&&(w(),x(N(T(),q>V),!0)),s(De),f(Ee,P,V,q),b.start(P,function(){s(Pe),f(nt,P,V,q),F&&F()})}function L(q){x(S(q,!0))}function x(q,P){if(!e.is(ot)){var V=P?q:O(q);ae(v,"transform","translate"+d("X")+"("+V+"px)"),q!==V&&f(Cn)}}function O(q){if(e.is(He)){var P=E(q),V=P>n.Controller.getEnd(),F=P<0;(F||V)&&(q=N(q,V))}return q}function N(q,P){var V=q-I(P),F=g();return q-=a(F*(We(ee(V)/F)||1))*(P?1:-1),q}function w(){x(T(),!0),b.cancel()}function E(q){for(var P=n.Slides.get(),V=0,F=1/0,U=0;U=0:P<=v[d("scrollWidth")]-ne(h)[d("width")]}function D(q,P){P=Qe(P)?T():P;var V=q!==!0&&a(P)a(I(!0));return V||F}return{mount:k,move:C,jump:L,translate:x,shift:N,cancel:w,toIndex:E,toPosition:S,getPosition:T,getLimit:I,exceededLimit:D,reposition:A}}function xr(e,n,t){var r=Q(e),o=r.on,f=r.emit,s=n.Move,c=s.getPosition,u=s.getLimit,m=s.toPosition,l=n.Slides,y=l.isEnough,g=l.getLength,i=t.omitEnd,d=e.is(He),a=e.is(Ne),p=W(T,!1),v=W(T,!0),h=t.start||0,b,k=h,A,C,L;function x(){O(),o([te,J,pt],O),o(Bt,N)}function O(){A=g(!0),C=t.perMove,L=t.perPage,b=R();var _=Me(h,0,i?b:A-1);_!==h&&(h=_,s.reposition())}function N(){b!==R()&&f(pt)}function w(_,Y,K){if(!z()){var G=S(_),Z=I(G);Z>-1&&(Y||Z!==h)&&(V(Z),s.move(G,Z,k,K))}}function E(_,Y,K,G){n.Scroll.scroll(_,Y,K,function(){var Z=I(s.toIndex(c()));V(i?be(Z,b):Z),G&&G()})}function S(_){var Y=h;if(he(_)){var K=_.match(/([+\-<>])(\d+)?/)||[],G=K[1],Z=K[2];G==="+"||G==="-"?Y=M(h+ +(""+G+(+Z||1)),h):G===">"?Y=Z?D(+Z):p(!0):G==="<"&&(Y=v(!0))}else Y=d?_:Me(_,0,b);return Y}function T(_,Y){var K=C||(U()?1:L),G=M(h+K*(_?-1:1),h,!(C||U()));return G===-1&&a&&!hn(c(),u(!_),1)?_?0:b:Y?G:I(G)}function M(_,Y,K){if(y()||U()){var G=B(_);G!==_&&(Y=_,_=G,K=!1),_<0||_>b?!C&&(ct(0,_,Y,!0)||ct(b,Y,_,!0))?_=D(q(_)):d?_=K?_<0?-(A%L||L):A:_:t.rewind?_=_<0?b:0:_=-1:K&&_!==Y&&(_=D(q(Y)+(_0;)if(m(A-1,!0)!==m(_,!0)){_++;break}return Me(_,0,A-1)}function D(_){return Me(U()?_:L*_,0,b)}function q(_){return U()?be(_,b):ft((_>=b?A-1:_)/L)}function P(_){var Y=s.toIndex(_);return a?Me(Y,0,b):Y}function V(_){_!==h&&(k=h,h=_)}function F(_){return _?k:h}function U(){return!Qe(t.focus)||t.isNavigation}function z(){return e.state.is([De,Ke])&&!!t.waitForTransition}return{mount:x,go:w,scroll:E,getNext:p,getPrev:v,getAdjacent:T,getEnd:R,setIndex:V,getIndex:F,toIndex:D,toPage:q,toDest:P,hasFocus:U,isBusy:z}}var Ir="http://www.w3.org/2000/svg",$r="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",at=40;function Pr(e,n,t){var r=Q(e),o=r.on,f=r.bind,s=r.emit,c=t.classes,u=t.i18n,m=n.Elements,l=n.Controller,y=m.arrows,g=m.track,i=y,d=m.prev,a=m.next,p,v,h={};function b(){A(),o(te,k)}function k(){C(),b()}function A(){var E=t.arrows;E&&!(d&&a)&&O(),d&&a&&(Ue(h,{prev:d,next:a}),Ge(i,E?"":"none"),le(i,v=Gt+"--"+t.direction),E&&(L(),w(),j([d,a],rt,g.id),s(nr,d,a)))}function C(){r.destroy(),me(i,v),p?(Te(y?[d,a]:i),d=a=null):ue([d,a],Ut)}function L(){o([ke,nt,J,Oe,pt],w),f(a,"click",W(x,">")),f(d,"click",W(x,"<"))}function x(E){l.go(E,!0)}function O(){i=y||Ie("div",c.arrows),d=N(!0),a=N(!1),p=!0,Ze(i,[d,a]),!y&&Ot(i,g)}function N(E){var S=' `,r=document.createElement("div");r.innerHTML=t.trim();const o=r.firstChild;return document.body.appendChild(o),o}function un(){let e=null;for(let o=0;o{uo(n,"true",co),o.remove()}),setTimeout(()=>{o.modal("show")},100)}else r.remove()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",un):un();document.querySelectorAll(".accordion-title").forEach(e=>{e.addEventListener("click",n=>{n.target.parentElement.classList.toggle("accordion-open")})});(()=>{const e=document.querySelector(".timeline-carousel");if(!e)return;const n=document.querySelectorAll(".timeline-slide");n.forEach(r=>{e.querySelector(".splide__list").appendChild(r)});const t=new se(e.querySelector(".splide"),{type:"slide",perPage:4,focus:0,gap:"40px",pagination:!0,arrows:!0,breakpoints:{1300:{perPage:4},1024:{perPage:3},768:{perPage:2},550:{perPage:1}}});t.on("pagination:mounted",r=>{r.list.classList.add("splide__pagination--custom"),r.items.forEach(o=>{const 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(c=>{const u=c.innerHTML;c.remove();const m=document.createElement("div");m.classList.add("splide__slide");let l="";l+=`
`,l+=`${c.getAttribute(`,c.getAttribute("data-background-type")==="Video"&&(l+=``),l+="
",l+='
',l+=`
`,l+=u,l+=`
${c.getAttribute("data-name")}
`,l+="
",l+="
",m.innerHTML=l,o.appendChild(m)}),r.appendChild(o),t.appendChild(r),t.insertAdjacentHTML("beforeend",`
    `),document.querySelector(".zonetop").prepend(t);const f=document.querySelector(".home-hero-wrapper");if(!f)return;const s=new se(f,{type:"loop",heightRatio:.5,pagination:!0,arrows:!1,autoplay:!0,interval:8e3,pauseOnHover:!1,pauseOnFocus:!1});s.on("pagination:mounted",c=>{c.list.classList.add("splide__pagination--custom"),c.items.forEach(u=>{const m=n[u.page],l=m.getAttribute("data-slide-icon"),y=m.getAttribute("data-name");if(l){const g=document.createElement("img");g.src=l,g.alt=m.getAttribute("data-name"),g.classList.add("home-hero-slide-icon"),g.width=40,u.button.appendChild(g)}if(y){const g=document.createElement("span");g.textContent=y,g.classList.add("home-hero-slide-title"),u.button.appendChild(g)}})}),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 f=o.length-1;f>0;f--){const s=Math.floor(Math.random()*(f+1));[o[f],o[s]]=[o[s],o[f]]}o.forEach((f,s)=>{setTimeout(()=>{f.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 f=o.length-1;f>0;f-=1){const s=Math.floor(Math.random()*(f+1));[o[f],o[s]]=[o[s],o[f]]}o.forEach((f,s)=>{setTimeout(()=>{f.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"),f=e.querySelector(".testimonial-carousel");o.appendChild(f),$(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,f)=>{f===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,f=o.querySelectorAll(".landing-intro__feature"),s=300;f.forEach((u,m)=>{setTimeout(()=>{u.classList.add("fade-in")},s*(m+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()})();const mo=e=>{document.querySelectorAll(".badges-wrapper").forEach(n=>{if(n.getAttribute("data-custom-badges"))return;const r=[...n.querySelectorAll(".ribbon-wrapper")].filter(u=>!u.matches(".b6628, .b484")),o=document.createElement("div");o.classList.add("top-badges-wrapper"),n.prepend(o),r.slice(0,2).forEach(u=>o.appendChild(u));const f=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.

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

    Buy More, Save More

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

    Buy this product and get ${h} points on this order.

    View Rewards

    `,document.querySelectorAll(".product-shopping-actions-prices .badge-rewards-wrapper").forEach(C=>{C.style.display="none"}),document.querySelectorAll(".productimage_container .main-image").forEach(C=>{const L=C.parentElement;let x=L.nextElementSibling;(!x||!x.classList.contains("below-main-image"))&&(x=document.createElement("div"),x.classList.add("below-main-image"),L.insertAdjacentElement("afterend",x)),x.querySelector(".custom-earn-points")||x.appendChild(k.cloneNode(!0))})},g=()=>{const i=($evodata.products.view.brand||"").toLowerCase(),d=document.querySelectorAll(".additional-brand-info");if(!i||!d.length||!window.additionalbrandinfo)return;const a=Object.keys(window.additionalbrandinfo).find(b=>b.toLowerCase()===i);if(!a)return;const p=window.additionalbrandinfo[a],v=p==null?void 0:p.text;if(!Array.isArray(v)||v.length===0)return;const h=v.map(b=>`

    ${b}

    `).join("");d.forEach(b=>{const k=b.closest(".catalog-single");if(!k)return;const A=k.querySelector(".product-points");A&&(A.insertAdjacentHTML("beforeend",`
    Top Brand

    ${a}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${p}

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

    Uploaded: ${o.name}

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

    ${i.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",l+="

    Select all that apply.

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

    Upload Your Logo

    ",l+=`

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

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

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

    Choose Your ${i.text}

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

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

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

    Uploaded: ${o.name}

    `,(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".webp"))&&f.insertAdjacentHTML("beforeend",` ${o.name} `)}}})};let t=0;const r=(o,f)=>{o.forEach(s=>{var m,l;t+=1;const c=s.text.toLowerCase().replace(/\s+/g,"-"),u=`evoform-field-${c}-${t}`;switch(s.text){case"Type":f.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=`${u}-box`,g=`${u}-input`;f.insertAdjacentHTML("beforeend",`

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

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

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

    Switch Here To Save

    ';const N=document.createElement("p");N.className="comparison-message";const w=parseFloat(b)>0;if(a.pageYield&&p.pageYield){const E=t(a.pageYield),T=(t(p.pageYield)-E)/E*100,M=T.toFixed(0),B=T>0;B&&w?N.innerHTML=`Print ${M}% more and save ${k}${b} when you switch to our brand`:B?N.innerHTML=`Print ${M}% more when you switch to our brand`:w?N.innerHTML=`Save ${k}${b} when you switch to our brand`:N.innerHTML="Save when you switch to our brand"}else w?N.innerHTML=`Save ${k}${b} when you switch to our brand`:N.innerHTML="Save when you switch to our brand";if(O.appendChild(N),p.pageYield){const E=t(p.pageYield),S=typeof p.pageYield=="object",T=p.price/E*100,M=T<2?T.toFixed(2):T.toFixed(0),B=S?"avg. ":"",I=document.createElement("p");I.className="comparison-price",I.innerHTML=`Alternatives from ${B}${M}${A} per page `,O.appendChild(I)}else{const E=document.createElement("p");E.className="comparison-price",E.innerHTML='View alternatives ',O.appendChild(E)}return L.appendChild(O),C},y=(a,p,v,h="append",b={})=>{if(!p)return 0;let k;if(typeof v=="string")k=document.querySelectorAll(v);else if(v instanceof NodeList||v instanceof HTMLCollection)k=v;else if(v instanceof HTMLElement)k=[v];else return 0;if(!k||k.length===0)return 0;let A=0;return k.forEach(C=>{const L=a(p,...Object.values(b));if(L){switch(h){case"prepend":C.insertBefore(L,C.firstChild);break;case"before":C.parentNode.insertBefore(L,C);break;case"after":C.parentNode.insertBefore(L,C.nextSibling);break;case"append":default:C.appendChild(L);break}A+=1}}),A},g=[{ink:"1000402",toner:"1000424"}],i="EUR",d=!0;document.addEventListener("live-pricing-done",()=>{setTimeout(()=>{if(document.querySelector(".ink-toner-price-per-page")||document.querySelector(".ink-toner-yield-card"))return;const a=u(g);if(a&&(y(o,a,".product-shopping-actions .has-price","after",{currency:i}),y(f,a,".product-points-wrapper","before"),a.type==="original")){const p=m();p&&y(l,a,".ink-toner-yield-card","before",{compatibleProduct:p,currency:i,useModal:d})}},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 f=o.target,s=f.querySelectorAll(".eco-grid-sustainability-goal");s.forEach((u,m)=>{setTimeout(()=>{u.classList.add("fade-in")},100*m)});const c=f.querySelector(".goals-achievements-achievements-outer");if(c){const u=c.querySelectorAll("p");u.forEach((l,y)=>{setTimeout(()=>{l.classList.add("fade-in")},100*(s.length+y))}),c.querySelectorAll(".list-check li").forEach((l,y)=>{setTimeout(()=>{l.classList.add("fade-in")},100*(s.length+u.length+y))})}n.unobserve(f)}})},{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 i=o.querySelector(".btn-update-default-qty");i&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",i);const d=o.querySelector(".actioncontent");d&&o.querySelector(".shopping-actions").insertAdjacentElement("beforeend",d);const a=o.querySelector(".delete");a&&a.insertAdjacentHTML("beforeend","Remove From Quicklist")}const f=document.createElement("div"),s=o.querySelector(".inputquantity");function c(){const i=parseInt(s.value,10)||0;s.value=i+1,s.dispatchEvent(new Event("change",{bubbles:!0}))}function u(){const i=parseInt(s.value,10)||0;i>0&&(s.value=i-1,s.dispatchEvent(new Event("change",{bubbles:!0})))}if(s){f.classList.add("quantity-wrapper"),s.insertAdjacentElement("beforebegin",f),f.appendChild(s);const i=document.createElement("button");i.classList.add("plus-btn"),i.innerHTML='',f.insertAdjacentElement("beforeend",i);const d=document.createElement("button");d.classList.add("minus-btn"),d.innerHTML='',f.insertAdjacentElement("afterbegin",d),i.addEventListener("click",c),d.addEventListener("click",u)}const m=document.createElement("div");m.classList.add("product-stock-and-actions"),o.querySelector(".shopping-actions").appendChild(m);const l=o.querySelector(".quicklist-groups-btn-wrapper");l&&m.insertAdjacentElement("beforeend",l);const y=o.querySelector(".live-inventory-v2-wrapper");y&&n?m.insertAdjacentElement("beforeend",y):y&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",y);const g=o.querySelector(".product-compare-action");g&&m.insertAdjacentElement("beforeend",g)}),document.addEventListener("live-inventory-done",()=>{console.log("live inventory has just finished running"),document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent").forEach(o=>{const f=o.querySelector(".inputquantity");if(!f){o.querySelector(".quantity-wrapper")&&(o.querySelector(".quantity-wrapper").style.display="none");return}const s=o.querySelector(".has-price");if(!s)return;let c=o.querySelector(".total-price");c||(c=document.createElement("span"),c.classList.add("total-price"),s.insertAdjacentElement("afterend",c));const u=()=>{const m=s.textContent.trim(),l=parseFloat(m.replace(/[^0-9.-]+/g,""))||0,y=parseInt(f.value,10)||0,g=l*y;g>0?c.textContent=`€${g.toFixed(2)}`:c.textContent="€0.00"};f.addEventListener("change",u),f.addEventListener("input",u),u()})},!1);const t=document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent"),r=document.createElement("div");r.classList.add("quicklists-banner"),r.innerHTML='
    Winter Banner
    ',t.length>=4?t[3].insertAdjacentElement("afterend",r):t.length>0&&t[t.length-1].insertAdjacentElement("afterend",r)})());(()=>{const e=document.querySelector(".inktoner-brands-slider");e&&new se(e,{type:"loop",perPage:5,perMove:1,gap:15,pagination:!1,arrows:!0,autoplay:!0,interval:6e3,breakpoints:{1469:{perPage:4},1080:{perPage:3},600:{perPage:2},410:{perPage:1}}}).mount()})();