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

    10% OFF

    your first order

    Request your iGate account to claim your welcome offer.

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

    Added To Basket

    ${v?`
    `:""}

    ${i(p)}

    ${d?`

    ${d}

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

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

    ",b1551:"

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

    ",b6628:"

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

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

    Buy More, Save More

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

    Reward Points

    Buy this product and get ${S}${f(1,parseFloat(k),parseFloat(b),parseFloat(y),S)} points on this order.

    View Rewards

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

    ${S}

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

    ${y}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${f}

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

    Uploaded: ${o.name}

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

    ${p.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",u+="

    Select all that apply.

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

    Upload Your Logo

    ",u+=`

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

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

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

    Choose Your ${p.text}

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

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

    `),e()),document.querySelectorAll(".custom-configurator-section:not(.mobile-sync-section)").forEach(p=>{p.addEventListener("change",()=>{t()})}),document.querySelectorAll(".product-shopping-actions-addtocart").forEach(p=>{p.insertAdjacentHTML("beforeend",'')}),t()})()})();(()=>{const e=o=>{const a=[];return o.querySelectorAll(":scope > li").forEach(i=>{const s={text:i.childNodes[0].nodeValue.trim()},c=i.querySelector("ul");c&&(s.children=e(c)),a.push(s)}),a},t=(o,a,i)=>{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:l}=c.data;i.value=l;const u=new FileReader;u.readAsDataURL(o),u.onloadend=()=>{a.innerHTML=`

    Uploaded: ${o.name}

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

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

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

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

    Switch Here To Save

    ';const I=document.createElement("p");I.className="comparison-message";const C=parseFloat(b)>0;if(d.pageYield&&f.pageYield){const E=n(d.pageYield),q=(n(f.pageYield)-E)/E*100,_=q.toFixed(0),O=q>0;O&&C?I.innerHTML=`Print ${_}% more and save ${A}${b} when you switch to our brand`:O?I.innerHTML=`Print ${_}% more when you switch to our brand`:C?I.innerHTML=`Save ${A}${b} when you switch to our brand`:I.innerHTML="Save when you switch to our brand"}else C?I.innerHTML=`Save ${A}${b} when you switch to our brand`:I.innerHTML="Save when you switch to our brand";if(M.appendChild(I),f.pageYield){const E=n(f.pageYield),L=typeof f.pageYield=="object",q=f.price/E*100,_=q<2?q.toFixed(2):q.toFixed(0),O=L?"avg. ":"",N=document.createElement("p");N.className="comparison-price",N.innerHTML=`Alternatives from ${O}${_}${k} per page `,M.appendChild(N)}else{const E=document.createElement("p");E.className="comparison-price",E.innerHTML='View alternatives ',M.appendChild(E)}return w.appendChild(M),S},h=(d,f,g,y="append",b={})=>{if(!f)return 0;let A;if(typeof g=="string")A=document.querySelectorAll(g);else if(g instanceof NodeList||g instanceof HTMLCollection)A=g;else if(g instanceof HTMLElement)A=[g];else return 0;if(!A||A.length===0)return 0;let k=0;return A.forEach(S=>{const w=d(f,...Object.values(b));if(w){switch(y){case"prepend":S.insertBefore(w,S.firstChild);break;case"before":S.parentNode.insertBefore(w,S);break;case"after":S.parentNode.insertBefore(w,S.nextSibling);break;case"append":default:S.appendChild(w);break}k+=1}}),k},m=[{ink:"1000402",toner:"1000424"}],p="EUR",v=!0;document.addEventListener("live-pricing-done",()=>{setTimeout(()=>{if(document.querySelector(".ink-toner-price-per-page")||document.querySelector(".ink-toner-yield-card"))return;const d=c(m);if(d&&(h(o,d,".product-shopping-actions .has-price","after",{currency:p}),h(a,d,".product-points-wrapper","before"),d.type==="original")){const f=l();f&&h(u,d,".ink-toner-yield-card","before",{compatibleProduct:f,currency:p,useModal:v})}},200)})})();document.querySelectorAll('.customertools[data-static="true"]').forEach(e=>{e.querySelector(".nav-pills").insertAdjacentHTML("afterbegin",` `)}),document.querySelectorAll(".sidebar-mobiletools a").forEach(e=>{e.addEventListener("click",()=>{document.querySelector('.customertools[data-static="false"]').classList.toggle("open")})});(()=>{if(!document.querySelector(".ex-emptysearchresults"))return;const t=new URLSearchParams(window.location.search).get("query");t&&document.querySelectorAll(".no-search-searchterm").forEach(n=>{n.textContent=`'${t}'`}),document.querySelectorAll(".no-search-searchbar").forEach(n=>{n.appendChild(document.querySelector(".header-full .search-form").cloneNode(!0))})})();(()=>{var n;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 t=document.querySelector(".desktop .cart-banner");t&&((n=document.querySelector(".desktop .carttotals_container"))==null||n.append(t))})();(()=>{if(!document.querySelector(".ex-blog"))return;const t=document.querySelector(".custom-grid-tools .tools-actions");if(!t)return;const n=document.querySelector(".listgrid");n&&(t.appendChild(n),t.querySelector(".listview")&&(t.querySelector(".listview").className="listview",t.querySelector(".listview").innerHTML="List"),t.querySelector(".gridview")&&(t.querySelector(".gridview").className="gridview",t.querySelector(".gridview").innerHTML="Grid"))})();window.categoryIcons&&document.querySelectorAll(".blogarchive-category").forEach(e=>{const t=e.querySelector(".blogarchive-category-name");if(!t)return;const n=t.innerText;if(window.categoryIcons[n]){const r=e.querySelector(".blogarchive-category-icon img");r&&(r.src=window.categoryIcons[n])}});(()=>{var n;if(!document.querySelector(".ex-rewards"))return;const e=document.querySelector(".reward-title"),t=document.querySelector(".rewards-hero-points");e&&t&&(e.classList.remove("col-md-12"),t.appendChild(e)),(n=document.querySelector(".custom-grid-tools .tools-actions"))==null||n.insertAdjacentElement("beforeend",document.querySelector(".sortby"))})();(()=>{const e=()=>{const t=new IntersectionObserver(r=>{r.forEach(o=>{if(o.isIntersecting){const a=o.target,i=a.querySelectorAll(".eco-grid-sustainability-goal");i.forEach((c,l)=>{setTimeout(()=>{c.classList.add("fade-in")},100*l)});const s=a.querySelector(".goals-achievements-achievements-outer");if(s){const c=s.querySelectorAll("p");c.forEach((u,h)=>{setTimeout(()=>{u.classList.add("fade-in")},100*(i.length+h))}),s.querySelectorAll(".list-check li").forEach((u,h)=>{setTimeout(()=>{u.classList.add("fade-in")},100*(i.length+c.length+h))})}t.unobserve(a)}})},{threshold:.2,rootMargin:"0px 0px -100px 0px"}),n=document.querySelector(".goals-achievements");n&&t.observe(n)};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 t=document.querySelector(".myaccount.quicklistsedit");if(t){t.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(t){const p=o.querySelector(".btn-update-default-qty");p&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",p);const v=o.querySelector(".actioncontent");v&&o.querySelector(".shopping-actions").insertAdjacentElement("beforeend",v);const d=o.querySelector(".delete");d&&d.insertAdjacentHTML("beforeend","Remove From Quicklist")}const a=document.createElement("div"),i=o.querySelector(".inputquantity");function s(){const p=parseInt(i.value,10)||0;i.value=p+1,i.dispatchEvent(new Event("change",{bubbles:!0}))}function c(){const p=parseInt(i.value,10)||0;p>0&&(i.value=p-1,i.dispatchEvent(new Event("change",{bubbles:!0})))}if(i){a.classList.add("quantity-wrapper"),i.insertAdjacentElement("beforebegin",a),a.appendChild(i);const p=document.createElement("button");p.classList.add("plus-btn"),p.innerHTML='',a.insertAdjacentElement("beforeend",p);const v=document.createElement("button");v.classList.add("minus-btn"),v.innerHTML='',a.insertAdjacentElement("afterbegin",v),p.addEventListener("click",s),v.addEventListener("click",c)}const l=document.createElement("div");l.classList.add("product-stock-and-actions"),o.querySelector(".shopping-actions").appendChild(l);const u=o.querySelector(".quicklist-groups-btn-wrapper");u&&l.insertAdjacentElement("beforeend",u);const h=o.querySelector(".live-inventory-v2-wrapper");h&&t?l.insertAdjacentElement("beforeend",h):h&&o.querySelector(".buttons.group").insertAdjacentElement("beforeend",h);const m=o.querySelector(".product-compare-action");m&&l.insertAdjacentElement("beforeend",m)}),document.addEventListener("live-inventory-done",()=>{console.log("live inventory has just finished running"),document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent").forEach(o=>{const a=o.querySelector(".inputquantity");if(!a){o.querySelector(".quantity-wrapper")&&(o.querySelector(".quantity-wrapper").style.display="none");return}const i=o.querySelector(".has-price");if(!i)return;let s=o.querySelector(".total-price");s||(s=document.createElement("span"),s.classList.add("total-price"),i.insertAdjacentElement("afterend",s));const c=()=>{const l=i.textContent.trim(),u=parseFloat(l.replace(/[^0-9.-]+/g,""))||0,h=parseInt(a.value,10)||0,m=u*h;m>0?s.textContent=`€${m.toFixed(2)}`:s.textContent="€0.00"};a.addEventListener("change",c),a.addEventListener("input",c),c()})},!1);const n=document.querySelectorAll(".orderpads-wrapper .productgridwidget .tileparent"),r=document.createElement("div");r.classList.add("quicklists-banner"),r.innerHTML='
    Winter Banner
    ',n.length>=4?n[3].insertAdjacentElement("afterend",r):n.length>0&&n[n.length-1].insertAdjacentElement("afterend",r)})());(()=>{const e=document.querySelector(".inktoner-brands-slider");e&&new se(e,{type:"loop",perPage:5,perMove:1,gap:15,pagination:!1,arrows:!0,autoplay:!0,interval:6e3,breakpoints:{1469:{perPage:4},1080:{perPage:3},600:{perPage:2},410:{perPage:1}}}).mount()})();(()=>{const e=document.querySelector(".intro-filters");if(!e)return;const t=(r,o)=>{let a=o.querySelector(".intro-filters-more");a||(a=document.createElement("button"),a.type="button",a.className="intro-filters-more",a.hidden=!0,o.appendChild(a));const i=()=>{const s=r.classList.contains("is-expanded");r.classList.remove("is-expanded");const c=r.scrollHeight>r.clientHeight+1;s&&c&&r.classList.add("is-expanded"),a.hidden=!c,a.textContent=r.classList.contains("is-expanded")?"Less":"See more"};a.addEventListener("click",()=>{r.classList.toggle("is-expanded"),a.textContent=r.classList.contains("is-expanded")?"Less":"See more"}),window.addEventListener("resize",()=>{window.clearTimeout(i.timer),i.timer=window.setTimeout(i,100)}),window.requestAnimationFrame(i)},n=(r=0)=>{const o=e.querySelector(".intro-filters-search"),a=e.querySelector(".intro-filters-categories"),i=document.querySelector(".filterswrapper .search-with-in"),s=document.querySelector(".filtername-categories .filter-options:not(.swatch-grid)");if(i&&o&&!o.children.length&&o.appendChild(i.cloneNode(!0)),s&&a&&!a.querySelector(".filter-options")){const c=s.cloneNode(!0);c.classList.remove("hide"),c.querySelectorAll(".hide").forEach(u=>u.classList.remove("hide"));const l=document.createElement("div");l.innerHTML=``,new URLSearchParams(window.location.search).get("z")||l.querySelector("a").classList.add("active"),c.insertBefore(l,c.firstChild),a.appendChild(c),t(c,a)}o!=null&&o.children.length&&(a!=null&&a.querySelector(".filter-options"))||r>=20||window.setTimeout(()=>n(r+1),500)};n()})();(()=>{var h;if(!document.querySelector(".ex-thankyou"))return;const e=document.querySelector("#thankYou");if(e&&!e.querySelector(".thank-you-check")){const m=e.querySelector("h1"),p=document.createElement("div");p.className="thank-you-check",p.setAttribute("aria-hidden","true"),p.textContent="✓",e.prepend(p),m&&(m.textContent=m.textContent.replace(/!+\s*$/,"").trim())}if(!document.querySelector(".ex-loggedout")||document.querySelector(".ex-loggedin"))return;const t=document.querySelector(".page-content");if(!t)return;const n=m=>{const p=document.querySelector(m);return p?(p.classList.remove("thank-you-source","hidden"),p):null},r=m=>(Array.isArray(window.dataLayer)?window.dataLayer:[]).find(v=>v&&m(v))||null,o=()=>r(m=>m.transactionTotal!=null),a=m=>{if(!m)return null;const p=Number((Number(m.transactionTotal)-Number(m.transactionShipping||0)-Number(m.transactionTax||0)).toFixed(2));return Math.max(0,Math.floor(p))},i=o(),s=a(i),c=r(m=>typeof m.email=="string"),l=n(".thank-you-top.thank-you-source");if(l){t.prepend(l);const m=document.querySelector(".thank-you-contact-form.thank-you-source"),p=l.querySelector(".thank-you-top-form");if(m&&p){m.classList.remove("thank-you-source","hidden");const v=m.closest("form")||m;v.classList.remove("hidden","hide"),p.append(v);const d=v.querySelector('#thankYouContactEmail, input[type="email"]');d&&(c!=null&&c.email)&&(d.value=c.email);const f=v.querySelector("#thankYouRewardPoints");f&&s!=null&&(f.value=s);const g=v.querySelector("#thankYouOrderRef");g&&(i!=null&&i.transactionRef)&&(g.value=i.transactionRef)}}const u=n(".thank-you-rewards.thank-you-source");u&&(t.append(u),s!=null&&u.querySelectorAll(".thank-you-rewards-count").forEach(m=>{m.textContent=s}),(h=u.querySelector(".thank-you-rewards-cta"))==null||h.addEventListener("click",m=>{m.preventDefault();const p=document.querySelector(".thank-you-top-form");p&&(p.scrollIntoView({behavior:"smooth",block:"center"}),p.classList.add("is-highlighted"),window.setTimeout(()=>p.classList.remove("is-highlighted"),2e3))}))})();function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _e={},$t,jn;function ka(){return jn||(jn=1,$t=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),$t}var Dt={},ye={},Vn;function Pe(){if(Vn)return ye;Vn=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return ye.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},ye.getSymbolTotalCodewords=function(r){return t[r]},ye.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},ye.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},ye.isKanjiModeEnabled=function(){return typeof e<"u"},ye.toSJIS=function(r){return e(r)},ye}var Bt={},Yn;function qn(){return Yn||(Yn=1,function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}}(Bt)),Bt}var Ot,Gn;function Ma(){if(Gn)return Ot;Gn=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Ot=e,Ot}var Ht,zn;function Ia(){if(zn)return Ht;zn=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,o){const a=t*this.size+n;this.data[a]=r,o&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},Ht=e,Ht}var Ft={},Wn;function Pa(){return Wn||(Wn=1,function(e){const t=Pe().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,s=[a-7];for(let c=1;c=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const a=o.size;let i=0,s=0,c=0,l=null,u=null;for(let h=0;h=5&&(i+=t.N1+(s-5)),l=p,s=1),p=o.get(m,h),p===u?c++:(c>=5&&(i+=t.N1+(c-5)),u=p,c=1)}s>=5&&(i+=t.N1+(s-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){const a=o.size;let i=0;for(let s=0;s=10&&(s===1488||s===93)&&i++,c=c<<1&2047|o.get(u,l),u>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){let a=0;const i=o.data.length;for(let c=0;c=0;){const i=a[0];for(let c=0;c0){const s=new Uint8Array(this.degree);return s.set(a,i),s}return a},Yt=t,Yt}var Gt={},zt={},Wt={},tr;function Wr(){return tr||(tr=1,Wt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Wt}var le={},nr;function Kr(){if(nr)return le;nr=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r ]))+`;le.KANJI=new RegExp(n,"g"),le.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),le.BYTE=new RegExp(r,"g"),le.NUMERIC=new RegExp(e,"g"),le.ALPHANUMERIC=new RegExp(t,"g");const o=new RegExp("^"+n+"$"),a=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return le.testKanji=function(c){return o.test(c)},le.testNumeric=function(c){return a.test(c)},le.testAlphanumeric=function(c){return i.test(c)},le}var rr;function Ne(){return rr||(rr=1,function(e){const t=Wr(),n=Kr();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}}(zt)),zt}var or;function Da(){return or||(or=1,function(e){const t=Pe(),n=zr(),r=qn(),o=Ne(),a=Wr(),i=7973,s=t.getBCHDigit(i);function c(m,p,v){for(let d=1;d<=40;d++)if(p<=e.getCapacity(d,v,m))return d}function l(m,p){return o.getCharCountIndicator(m,p)+4}function u(m,p){let v=0;return m.forEach(function(d){const f=l(d.mode,p);v+=f+d.getBitsLength()}),v}function h(m,p){for(let v=1;v<=40;v++)if(u(m,v)<=e.getCapacity(v,p,o.MIXED))return v}e.from=function(p,v){return a.isValid(p)?parseInt(p,10):v},e.getCapacity=function(p,v,d){if(!a.isValid(p))throw new Error("Invalid QR Code version");typeof d>"u"&&(d=o.BYTE);const f=t.getSymbolTotalCodewords(p),g=n.getTotalCodewordsCount(p,v),y=(f-g)*8;if(d===o.MIXED)return y;const b=y-l(d,p);switch(d){case o.NUMERIC:return Math.floor(b/10*3);case o.ALPHANUMERIC:return Math.floor(b/11*2);case o.KANJI:return Math.floor(b/13);case o.BYTE:default:return Math.floor(b/8)}},e.getBestVersionForData=function(p,v){let d;const f=r.from(v,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,f);if(p.length===0)return 1;d=p[0]}else d=p;return c(d.mode,d.getLength(),f)},e.getEncodedBits=function(p){if(!a.isValid(p)||p<7)throw new Error("Invalid QR Code version");let v=p<<12;for(;t.getBCHDigit(v)-s>=0;)v^=i<=0;)c^=t<0&&(a=this.data.substr(o),i=parseInt(a,10),r.put(i,s*3+1))},Jt=t,Jt}var Xt,sr;function Ha(){if(sr)return Xt;sr=1;const e=Ne(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(o){let a;for(a=0;a+2<=this.data.length;a+=2){let i=t.indexOf(this.data[a])*45;i+=t.indexOf(this.data[a+1]),o.put(i,11)}this.data.length%2&&o.put(t.indexOf(this.data[a]),6)},Xt=n,Xt}var Zt,cr;function Fa(){if(cr)return Zt;cr=1;const e=Ne();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(r){return r*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let r=0,o=this.data.length;r=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+` Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),r.put(a,13)}},en=n,en}var tn={exports:{}},ur;function ja(){return ur||(ur=1,function(e){var t={single_source_shortest_paths:function(n,r,o){var a={},i={};i[r]=0;var s=t.PriorityQueue.make();s.push(r,0);for(var c,l,u,h,m,p,v,d,f;!s.empty();){c=s.pop(),l=c.value,h=c.cost,m=n[l]||{};for(u in m)m.hasOwnProperty(u)&&(p=m[u],v=h+p,d=i[u],f=typeof i[u]>"u",(f||d>v)&&(i[u]=v,s.push(u,v),a[u]=l))}if(typeof o<"u"&&typeof i[o]>"u"){var g=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(g)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],a=r;a;)o.push(a),n[a],a=n[a];return o.reverse(),o},find_path:function(n,r,o){var a=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t}(tn)),tn.exports}var dr;function Va(){return dr||(dr=1,function(e){const t=Ne(),n=Oa(),r=Ha(),o=Fa(),a=Ua(),i=Kr(),s=Pe(),c=ja();function l(g){return unescape(encodeURIComponent(g)).length}function u(g,y,b){const A=[];let k;for(;(k=g.exec(b))!==null;)A.push({data:k[0],index:k.index,mode:y,length:k[0].length});return A}function h(g){const y=u(i.NUMERIC,t.NUMERIC,g),b=u(i.ALPHANUMERIC,t.ALPHANUMERIC,g);let A,k;return s.isKanjiModeEnabled()?(A=u(i.BYTE,t.BYTE,g),k=u(i.KANJI,t.KANJI,g)):(A=u(i.BYTE_KANJI,t.BYTE,g),k=[]),y.concat(b,A,k).sort(function(w,T){return w.index-T.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function m(g,y){switch(y){case t.NUMERIC:return n.getBitsLength(g);case t.ALPHANUMERIC:return r.getBitsLength(g);case t.KANJI:return a.getBitsLength(g);case t.BYTE:return o.getBitsLength(g)}}function p(g){return g.reduce(function(y,b){const A=y.length-1>=0?y[y.length-1]:null;return A&&A.mode===b.mode?(y[y.length-1].data+=b.data,y):(y.push(b),y)},[])}function v(g){const y=[];for(let b=0;b=0&&L<=6&&(q===0||q===6)||q>=0&&q<=6&&(L===0||L===6)||L>=2&&L<=4&&q>=2&&q<=4?S.set(C+L,E+q,!0,!0):S.set(C+L,E+q,!1,!0))}}function v(S){const w=S.size;for(let T=8;T>L&1)===1,S.set(I,C,E,!0),S.set(C,I,E,!0)}function g(S,w,T){const M=S.size,I=u.getEncodedBits(w,T);let C,E;for(C=0;C<15;C++)E=(I>>C&1)===1,C<6?S.set(C,8,E,!0):C<8?S.set(C+1,8,E,!0):S.set(M-15+C,8,E,!0),C<8?S.set(8,M-C-1,E,!0):C<9?S.set(8,15-C-1+1,E,!0):S.set(8,15-C-1,E,!0);S.set(M-8,8,1,!0)}function y(S,w){const T=S.size;let M=-1,I=T-1,C=7,E=0;for(let L=T-1;L>0;L-=2)for(L===6&&L--;;){for(let q=0;q<2;q++)if(!S.isReserved(I,L-q)){let _=!1;E>>C&1)===1),S.set(I,L-q,_),C--,C===-1&&(E++,C=7)}if(I+=M,I<0||T<=I){I-=M,M=-M;break}}}function b(S,w,T){const M=new n;T.forEach(function(q){M.put(q.mode.bit,4),M.put(q.getLength(),h.getCharCountIndicator(q.mode,S)),q.write(M)});const I=e.getSymbolTotalCodewords(S),C=s.getTotalCodewordsCount(S,w),E=(I-C)*8;for(M.getLengthInBits()+4<=E&&M.put(0,4);M.getLengthInBits()%8!==0;)M.putBit(0);const L=(E-M.getLengthInBits())/8;for(let q=0;q=7&&f(q,w),y(q,E),isNaN(M)&&(M=i.getBestMask(q,g.bind(null,q,T))),i.applyMask(M,q),g(q,T,M),{modules:q,version:w,errorCorrectionLevel:T,maskPattern:M,segments:I}}return Dt.create=function(w,T){if(typeof w>"u"||w==="")throw new Error("No input text");let M=t.M,I,C;return typeof T<"u"&&(M=t.from(T.errorCorrectionLevel,t.M),I=l.from(T.version),C=i.from(T.maskPattern),T.toSJISFunc&&e.setToSJISFunction(T.toSJISFunc)),k(w,I,M,C)},Dt}var nn={},rn={},pr;function Qr(){return pr||(pr=1,function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:a,scale:a?4:i,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const a=e.getScale(r,o);return Math.floor((r+o.margin*2)*a)},e.qrToImageData=function(r,o,a){const i=o.modules.size,s=o.modules.data,c=e.getScale(i,a),l=Math.floor((i+a.margin*2)*c),u=a.margin*c,h=[a.color.light,a.color.dark];for(let m=0;m=u&&p>=u&&m"u"&&(!i||!i.getContext)&&(c=i,i=void 0),i||(l=r()),c=t.getOptions(c);const u=t.getImageWidth(a.modules.size,c),h=l.getContext("2d"),m=h.createImageData(u,u);return t.qrToImageData(m.data,a,c),n(h,l,u),h.putImageData(m,0,0),l},e.renderToDataURL=function(a,i,s){let c=s;typeof c>"u"&&(!i||!i.getContext)&&(c=i,i=void 0),c||(c={});const l=e.render(a,i,c),u=c.type||"image/png",h=c.rendererOpts||{};return l.toDataURL(u,h.quality)}}(nn)),nn}var on={},gr;function za(){if(gr)return on;gr=1;const e=Qr();function t(o,a){const i=o.a/255,s=a+'="'+o.hex+'"';return i<1?s+" "+a+'-opacity="'+i.toFixed(2).slice(1)+'"':s}function n(o,a,i){let s=o+a;return typeof i<"u"&&(s+=" "+i),s}function r(o,a,i){let s="",c=0,l=!1,u=0;for(let h=0;h0&&m>0&&o[h-1]||(s+=l?n("M",m+i,.5+p+i):n("m",c,0),c=0,l=!1),m+1':"",p="',v='viewBox="0 0 '+h+" "+h+'"',f=''+m+p+` `;return typeof s=="function"&&s(null,f),f},on}var hr;function Wa(){if(hr)return _e;hr=1;const e=ka(),t=Ya(),n=Ga(),r=za();function o(a,i,s,c,l){const u=[].slice.call(arguments,1),h=u.length,m=typeof u[h-1]=="function";if(!m&&!e())throw new Error("Callback required as last argument");if(m){if(h<2)throw new Error("Too few arguments provided");h===2?(l=s,s=i,i=c=void 0):h===3&&(i.getContext&&typeof l>"u"?(l=c,c=void 0):(l=c,c=s,s=i,i=void 0))}else{if(h<1)throw new Error("Too few arguments provided");return h===1?(s=i,i=c=void 0):h===2&&!i.getContext&&(c=s,s=i,i=void 0),new Promise(function(p,v){try{const d=t.create(s,c);p(a(d,i,c))}catch(d){v(d)}})}try{const p=t.create(s,c);l(null,a(p,i,c))}catch(p){l(p)}}return _e.create=t.create,_e.toCanvas=o.bind(null,n.render),_e.toDataURL=o.bind(null,n.renderToDataURL),_e.toString=o.bind(null,function(a,i,s){return r.render(a,s)}),_e}var Ka=Wa();const Qa=Ta(Ka);(()=>{const e=document.querySelector('.refer-a-friend-account-form input[name="referral code"]');if(!e)return;const t=new URLSearchParams(window.location.search).get("ref");t&&!e.value&&(e.value=t)})();(()=>{const e=()=>{var a,i;const t=document.querySelectorAll(".refer-a-friend-share");if(!t.length||!document.body.classList.contains("ex-loggedin"))return;const n=typeof EvoXLayer=="function"?(i=(a=EvoXLayer())==null?void 0:a.user)==null?void 0:i.user_id:null;if(!Number.isSafeInteger(n)||n<=0)return;const r=new URL("/refer-a-friend",window.location.origin);r.searchParams.set("ref",n);const o=r.href;t.forEach(s=>{if(s.dataset.referralReady)return;const c=s.querySelector(".refer-a-friend-share-field input");if(!c)return;const l=s.querySelector(".refer-a-friend-share-qr img"),u=s.querySelector(".refer-a-friend-share-copy"),h=s.querySelector(".refer-a-friend-share-send"),m=s.querySelector(".refer-a-friend-share-guidance"),p=d=>{m&&(m.textContent=d)};c.value=o,u&&(u.disabled=!1),h&&(h.disabled=!1),m==null||m.setAttribute("role","status");const v=async()=>{try{await navigator.clipboard.writeText(o),p("Link copied. Send it to your friend.")}catch{c.focus(),c.select(),p("Copy the selected link and send it to your friend.")}};u==null||u.addEventListener("click",v),h==null||h.addEventListener("click",async()=>{if(typeof navigator.share!="function"){await v();return}try{await navigator.share({title:"Share iGate with a friend",url:o})}catch(d){d.name!=="AbortError"&&await v()}}),s.dataset.referralReady="true",l&&(l.removeAttribute("src"),l.alt="Your personal iGate referral QR code",Qa.toDataURL(o,{width:392,margin:4,errorCorrectionLevel:"M",color:{dark:"#0e1d29",light:"#ffffff"}}).then(d=>{l.src=d}).catch(()=>{p("The QR code is unavailable. You can still copy your referral link.")}))})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()})();(()=>{const e=()=>{document.querySelectorAll(".seo-landing-page [data-seo-tabs]").forEach(t=>{if(t.dataset.seoTabsReady)return;const n=Array.from(t.querySelectorAll('[role="tab"]')),r=Array.from(t.querySelectorAll('[role="tabpanel"]'));if(!n.length||!r.length)return;t.dataset.seoTabsReady="true";const o=(a,i=!1)=>{n.forEach(s=>{const c=s===a;s.setAttribute("aria-selected",String(c)),s.tabIndex=c?0:-1}),r.forEach(s=>{s.hidden=s.id!==a.getAttribute("aria-controls")}),i&&a.focus()};n.forEach((a,i)=>{a.addEventListener("click",()=>o(a)),a.addEventListener("keydown",s=>{let c;s.key==="ArrowRight"&&(c=(i+1)%n.length),s.key==="ArrowLeft"&&(c=(i-1+n.length)%n.length),s.key==="Home"&&(c=0),s.key==="End"&&(c=n.length-1),c!==void 0&&(s.preventDefault(),o(n[c],!0))})}),o(n.find(a=>a.getAttribute("aria-selected")==="true")||n[0])})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()})();