(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,u=parseInt(o.dataset.rowIndex||0,10),c=o.querySelectorAll(".col"),l=100;u%2!==0?c.forEach((i,s)=>{const a=c.length-s-1;setTimeout(()=>{i.classList.add("fade-in")},l*a)}):c.forEach((i,s)=>{setTimeout(()=>{i.classList.add("fade-in")},l*s)}),n.unobserve(o)}})},{threshold:.2,rootMargin:"0px 0px -100px 0px"});document.querySelectorAll(".standard-col-fadein").forEach((t,r)=>{t.dataset.rowIndex=r,n.observe(t)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()})();document.querySelectorAll(".footer-menu").forEach(n=>{n.querySelector("h4").addEventListener("click",()=>{n.classList.toggle("active")})});(()=>{if(!document.querySelector(".ex-loggedin"))return;document.querySelector(".header-full .widgetlogo .logo img").src!=="https://eu.evocdn.io/dealer/1102/content/media/My_Theme/2025/igate-logo-white.png"&&document.querySelector(".header-full .widgetlogo").classList.add("white-bg")})();function Fn(e,n){for(var t=0;t-1}function ct(e,n){return e.push.apply(e,Je(n)),e}function me(e,n,t){e&&oe(n,function(r){r&&e.classList[t?"add":"remove"](r)})}function le(e,n){me(e,he(n)?n.split(" "):n,!0)}function Ze(e,n){oe(n,e.appendChild.bind(e))}function Dt(e,n){oe(e,function(t){var r=(n||t).parentNode;r&&r.insertBefore(t,n)})}function Fe(e,n){return mn(e)&&(e.msMatchesSelector||e.matches).call(e,n)}function pn(e,n){var t=e?Se(e.children):[];return n?t.filter(function(r){return Fe(r,n)}):t}function et(e,n){return n?pn(e,n)[0]:e.firstElementChild}var Ue=Object.keys;function we(e,n,t){return e&&(t?Ue(e).reverse():Ue(e)).forEach(function(r){r!=="__proto__"&&n(e[r],r)}),e}function Ye(e){return Se(arguments,1).forEach(function(n){we(n,function(t,r){e[r]=n[r]})}),e}function ye(e){return Se(arguments,1).forEach(function(n){we(n,function(t,r){Pt(t)?e[r]=t.slice():Be(t)?e[r]=ye({},Be(e[r])?e[r]:{},t):e[r]=t})}),e}function Qt(e,n){oe(n||Ue(e),function(t){delete e[t]})}function ue(e,n){oe(e,function(t){oe(n,function(r){t&&t.removeAttribute(r)})})}function j(e,n,t){Be(n)?we(n,function(r,o){j(e,o,r)}):oe(e,function(r){$t(t)||t===""?ue(r,n):r.setAttribute(n,String(t))})}function xe(e,n,t){var r=document.createElement(e);return n&&(he(n)?le(r,n):j(r,n)),t&&Ze(t,r),r}function ae(e,n,t){if(Qe(t))return getComputedStyle(e)[n];$t(t)||(e.style[n]=""+t)}function Ge(e,n){ae(e,"display",n)}function vn(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function ie(e,n){return e.getAttribute(n)}function Jt(e,n){return e&&e.classList.contains(n)}function ne(e){return e.getBoundingClientRect()}function Te(e){oe(e,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function gn(e){return et(new DOMParser().parseFromString(e,"text/html").body)}function fe(e,n){e.preventDefault(),n&&(e.stopPropagation(),e.stopImmediatePropagation())}function yn(e,n){return e&&e.querySelector(n)}function Rt(e,n){return n?Se(e.querySelectorAll(n)):[]}function pe(e,n){me(e,n,!1)}function _t(e){return e.timeStamp}function qe(e){return he(e)?e:e?e+"px":""}var tt="splide",Ht="data-"+tt;function je(e,n){if(!e)throw new Error("["+tt+"] "+(n||""))}var be=Math.min,dt=Math.max,ft=Math.floor,We=Math.ceil,ee=Math.abs;function hn(e,n,t){return ee(e-n)0)-+(e<0)}function It(e,n){return oe(n,function(t){e=e.replace("%s",""+t)}),e}function jt(e){return e<10?"0"+e:""+e}var Zt={};function Wn(e){return""+e+jt(Zt[e]=(Zt[e]||0)+1)}function bn(){var e=[];function n(c,l,i,s){o(c,l,function(a,g,p){var f="addEventListener"in a,v=f?a.removeEventListener.bind(a,g,i,s):a.removeListener.bind(a,i);f?a.addEventListener(g,i,s):a.addListener(i),e.push([a,g,p,i,v])})}function t(c,l,i){o(c,l,function(s,a,g){e=e.filter(function(p){return p[0]===s&&p[1]===a&&p[2]===g&&(!i||p[3]===i)?(p[4](),!1):!0})})}function r(c,l,i){var s,a=!0;return typeof CustomEvent=="function"?s=new CustomEvent(l,{bubbles:a,detail:i}):(s=document.createEvent("CustomEvent"),s.initCustomEvent(l,a,!1,i)),c.dispatchEvent(s),s}function o(c,l,i){oe(c,function(s){s&&oe(l,function(a){a.split(" ").forEach(function(g){var p=g.split(".");i(s,p[0],p[1])})})})}function u(){e.forEach(function(c){c[4]()}),ge(e)}return{bind:n,unbind:t,dispatch:r,destroy:u}}var ke="mounted",en="ready",Ee="move",nt="moved",En="click",zn="active",Xn="inactive",Kn="visible",Qn="hidden",J="refresh",te="updated",ze="resize",Vt="resized",Jn="drag",Zn="dragging",er="dragged",Bt="scroll",De="scrolled",tr="overflow",Sn="destroy",nr="arrows:mounted",rr="arrows:updated",or="pagination:mounted",ar="pagination:updated",Ln="navigation:mounted",An="autoplay:play",ir="autoplay:playing",qn="autoplay:pause",wn="lazyload:loaded",Tn="sk",Cn="sh",mt="ei";function Q(e){var n=e?e.event.bus:document.createDocumentFragment(),t=bn();function r(u,c){t.bind(n,Je(u).join(" "),function(l){c.apply(c,Pt(l.detail)?l.detail:[])})}function o(u){t.dispatch(n,u,Se(arguments,1))}return e&&e.event.on(Sn,t.destroy),Ye(t,{bus:n,on:r,off:W(t.unbind,n),emit:o})}function vt(e,n,t,r){var o=Date.now,u,c=0,l,i=!0,s=0;function a(){if(!i){if(c=e?be((o()-u)/e,1):1,t&&t(c),c>=1&&(n(),u=o(),r&&++s>=r))return p();l=Kt(a)}}function g(y){y||v(),u=o()-(y?c*e:0),i=!1,l=Kt(a)}function p(){i=!0}function f(){u=o(),c=0,t&&t(c)}function v(){l&&cancelAnimationFrame(l),c=0,l=0,i=!0}function d(y){e=y}function m(){return i}return{start:g,rewind:f,pause:p,cancel:v,set:d,isPaused:m}}function cr(e){var n=e;function t(o){n=o}function r(o){return Ot(Je(o),n)}return{set:t,is:r}}function sr(e,n){var t=vt(0,e,null,1);return function(){t.isPaused()&&t.start()}}function lr(e,n,t){var r=e.state,o=t.breakpoints||{},u=t.reducedMotion||{},c=bn(),l=[];function i(){var v=t.mediaQuery==="min";Ue(o).sort(function(d,m){return v?+d-+m:+m-+d}).forEach(function(d){a(o[d],"("+(v?"min":"max")+"-width:"+d+"px)")}),a(u,Xt),g()}function s(v){v&&c.destroy()}function a(v,d){var m=matchMedia(d);c.bind(m,"change",g),l.push([v,m])}function g(){var v=r.is(ut),d=t.direction,m=l.reduce(function(y,h){return ye(y,h[1].matches?h[0]:{})},{});Qt(t),f(m),t.destroy?e.destroy(t.destroy==="completely"):v?(s(!0),e.mount()):d!==t.direction&&e.refresh()}function p(v){matchMedia(Xt).matches&&(v?ye(t,u):Qt(t,Ue(u)))}function f(v,d,m){ye(t,v),d&&ye(Object.getPrototypeOf(t),v),(m||!r.is(Ie))&&e.emit(te,t)}return{setup:i,destroy:s,reduce:p,set:f}}var gt="Arrow",yt=gt+"Left",ht=gt+"Right",kn=gt+"Up",_n=gt+"Down",tn="rtl",bt="ttb",At={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[kn,ht],ArrowRight:[_n,yt]};function ur(e,n,t){function r(u,c,l){l=l||t.direction;var i=l===tn&&!c?1:l===bt?0:-1;return At[u]&&At[u][i]||u.replace(/width|left|right/i,function(s,a){var g=At[s.toLowerCase()][i]||s;return a>0?g.charAt(0).toUpperCase()+g.slice(1):g})}function o(u){return u*(t.direction===tn?1:-1)}return{resolve:r,orient:o}}var ve="role",Ne="tabindex",dr="disabled",se="aria-",rt=se+"controls",Mn=se+"current",nn=se+"selected",re=se+"label",Ft=se+"labelledby",In=se+"hidden",Ut=se+"orientation",Xe=se+"roledescription",rn=se+"live",on=se+"busy",an=se+"atomic",Yt=[ve,Ne,dr,rt,Mn,re,Ft,In,Ut,Xe],de=tt+"__",Le="is-",qt=tt,cn=de+"track",fr=de+"list",Et=de+"slide",xn=Et+"--clone",mr=Et+"__container",Gt=de+"arrows",St=de+"arrow",Nn=St+"--prev",Pn=St+"--next",Lt=de+"pagination",$n=Lt+"__page",pr=de+"progress",vr=pr+"__bar",gr=de+"toggle",yr=de+"spinner",hr=de+"sr",br=Le+"initialized",Ce=Le+"active",On=Le+"prev",Dn=Le+"next",xt=Le+"visible",Nt=Le+"loading",Rn=Le+"focus-in",Hn=Le+"overflow",Er=[Ce,xt,On,Dn,Nt,Rn,Hn],Sr={slide:Et,clone:xn,arrows:Gt,arrow:St,prev:Nn,next:Pn,pagination:Lt,page:$n,spinner:yr};function Lr(e,n){if(fn(e.closest))return e.closest(n);for(var t=e;t&&t.nodeType===1&&!Fe(t,n);)t=t.parentElement;return t}var Ar=5,sn=200,jn="touchstart mousedown",wt="touchmove mousemove",Tt="touchend touchcancel mouseup click";function qr(e,n,t){var r=Q(e),o=r.on,u=r.bind,c=e.root,l=t.i18n,i={},s=[],a=[],g=[],p,f,v;function d(){E(),I(),h()}function m(){o(J,y),o(J,d),o(te,h),u(document,jn+" keydown",function(L){v=L.type==="keydown"},{capture:!0}),u(c,"focusin",function(){me(c,Rn,!!v)})}function y(L){var O=Yt.concat("style");ge(s),pe(c,a),pe(p,g),ue([p,f],O),ue(c,L?O:["style",Xe])}function h(){pe(c,a),pe(p,g),a=k(qt),g=k(cn),le(c,a),le(p,g),j(c,re,t.label),j(c,Ft,t.labelledby)}function E(){p=T("."+cn),f=et(p,"."+fr),je(p&&f,"A track/list element is missing."),ct(s,pn(f,"."+Et+":not(."+xn+")")),we({arrows:Gt,pagination:Lt,prev:Nn,next:Pn,bar:vr,toggle:gr},function(L,O){i[O]=T("."+L)}),Ye(i,{root:c,track:p,list:f,slides:s})}function I(){var L=c.id||Wn(tt),O=t.role;c.id=L,p.id=p.id||L+"-track",f.id=f.id||L+"-list",!ie(c,ve)&&c.tagName!=="SECTION"&&O&&j(c,ve,O),j(c,Xe,l.carousel),j(f,ve,"presentation")}function T(L){var O=yn(c,L);return O&&Lr(O,"."+qt)===c?O:void 0}function k(L){return[L+"--"+t.type,L+"--"+t.direction,t.drag&&L+"--draggable",t.isNavigation&&L+"--nav",L===qt&&Ce]}return Ye(i,{setup:d,mount:m,destroy:y})}var $e="slide",Re="loop",ot="fade";function wr(e,n,t,r){var o=Q(e),u=o.on,c=o.emit,l=o.bind,i=e.Components,s=e.root,a=e.options,g=a.isNavigation,p=a.updateOnMove,f=a.i18n,v=a.pagination,d=a.slideFocus,m=i.Direction.resolve,y=ie(r,"style"),h=ie(r,re),E=t>-1,I=et(r,"."+mr),T;function k(){E||(r.id=s.id+"-slide"+jt(n+1),j(r,ve,v?"tabpanel":"group"),j(r,Xe,f.slide),j(r,re,h||It(f.slideLabel,[n+1,e.length]))),L()}function L(){l(r,"click",W(c,En,R)),l(r,"keydown",W(c,Tn,R)),u([nt,Cn,De],w),u(Ln,H),p&&u(Ee,N)}function O(){T=!0,o.destroy(),pe(r,Er),ue(r,Yt),j(r,"style",y),j(r,re,h||"")}function H(){var P=e.splides.map(function(S){var x=S.splide.Components.Slides.getAt(n);return x?x.slide.id:""}).join(" ");j(r,re,It(f.slideX,(E?t:n)+1)),j(r,rt,P),j(r,ve,d?"button":""),d&&ue(r,Xe)}function N(){T||w()}function w(){if(!T){var P=e.index;b(),A(),me(r,On,n===P-1),me(r,Dn,n===P+1)}}function b(){var P=_();P!==Jt(r,Ce)&&(me(r,Ce,P),j(r,Mn,g&&P||""),c(P?zn:Xn,R))}function A(){var P=V(),S=!P&&(!_()||E);if(e.state.is([Oe,Ke])||j(r,In,S||""),j(Rt(r,a.focusableNodes||""),Ne,S?-1:""),d&&j(r,Ne,S?-1:0),P!==Jt(r,xt)&&(me(r,xt,P),c(P?Kn:Qn,R)),!P&&document.activeElement===r){var x=i.Slides.getAt(e.index);x&&vn(x.slide)}}function q(P,S,x){ae(x&&I||r,P,S)}function _(){var P=e.index;return P===n||a.cloneStatus&&P===t}function V(){if(e.is(ot))return _();var P=ne(i.Elements.track),S=ne(r),x=m("left",!0),B=m("right",!0);return ft(P[x])<=We(S[x])&&ft(S[B])<=We(P[B])}function M(P,S){var x=ee(P-n);return!E&&(a.rewind||e.is(Re))&&(x=be(x,e.length-x)),x<=S}var R={index:n,slideIndex:t,slide:r,container:I,isClone:E,mount:k,destroy:O,update:w,style:q,isWithin:M};return R}function Tr(e,n,t){var r=Q(e),o=r.on,u=r.emit,c=r.bind,l=n.Elements,i=l.slides,s=l.list,a=[];function g(){p(),o(J,f),o(J,p)}function p(){i.forEach(function(w,b){d(w,b,-1)})}function f(){T(function(w){w.destroy()}),ge(a)}function v(){T(function(w){w.update()})}function d(w,b,A){var q=wr(e,b,A,w);q.mount(),a.push(q),a.sort(function(_,V){return _.index-V.index})}function m(w){return w?k(function(b){return!b.isClone}):a}function y(w){var b=n.Controller,A=b.toIndex(w),q=b.hasFocus()?1:t.perPage;return k(function(_){return st(_.index,A,A+q-1)})}function h(w){return k(w)[0]}function E(w,b){oe(w,function(A){if(he(A)&&(A=gn(A)),mn(A)){var q=i[b];q?Dt(A,q):Ze(s,A),le(A,t.classes.slide),O(A,W(u,ze))}}),u(J)}function I(w){Te(k(w).map(function(b){return b.slide})),u(J)}function T(w,b){m(b).forEach(w)}function k(w){return a.filter(fn(w)?w:function(b){return he(w)?Fe(b.slide,w):Ot(Je(w),b.index)})}function L(w,b,A){T(function(q){q.style(w,b,A)})}function O(w,b){var A=Rt(w,"img"),q=A.length;q?A.forEach(function(_){c(_,"load error",function(){--q||b()})}):b()}function H(w){return w?i.length:a.length}function N(){return a.length>t.perPage}return{mount:g,destroy:f,update:v,register:d,get:m,getIn:y,getAt:h,add:E,remove:I,forEach:T,filter:k,style:L,getLength:H,isEnough:N}}function Cr(e,n,t){var r=Q(e),o=r.on,u=r.bind,c=r.emit,l=n.Slides,i=n.Direction.resolve,s=n.Elements,a=s.root,g=s.track,p=s.list,f=l.getAt,v=l.style,d,m,y;function h(){E(),u(window,"resize load",sr(W(c,ze))),o([te,J],E),o(ze,I)}function E(){d=t.direction===bt,ae(a,"maxWidth",qe(t.width)),ae(g,i("paddingLeft"),T(!1)),ae(g,i("paddingRight"),T(!0)),I(!0)}function I(R){var P=ne(a);(R||m.width!==P.width||m.height!==P.height)&&(ae(g,"height",k()),v(i("marginRight"),qe(t.gap)),v("width",O()),v("height",H(),!0),m=P,c(Vt),y!==(y=M())&&(me(a,Hn,y),c(tr,y)))}function T(R){var P=t.padding,S=i(R?"right":"left");return P&&qe(P[S]||(Be(P)?0:P))||"0px"}function k(){var R="";return d&&(R=L(),je(R,"height or heightRatio is missing."),R="calc("+R+" - "+T(!1)+" - "+T(!0)+")"),R}function L(){return qe(t.height||ne(p).width*t.heightRatio)}function O(){return t.autoWidth?null:qe(t.fixedWidth)||(d?"":N())}function H(){return qe(t.fixedHeight)||(d?t.autoHeight?null:N():L())}function N(){var R=qe(t.gap);return"calc((100%"+(R&&" + "+R)+")/"+(t.perPage||1)+(R&&" - "+R)+")"}function w(){return ne(p)[i("width")]}function b(R,P){var S=f(R||0);return S?ne(S.slide)[i("width")]+(P?0:_()):0}function A(R,P){var S=f(R);if(S){var x=ne(S.slide)[i("right")],B=ne(p)[i("left")];return ee(x-B)+(P?0:_())}return 0}function q(R){return A(e.length-1)-A(0)+b(0,R)}function _(){var R=f(0);return R&&parseFloat(ae(R.slide,i("marginRight")))||0}function V(R){return parseFloat(ae(g,i("padding"+(R?"Right":"Left"))))||0}function M(){return e.is(ot)||q(!0)>w()}return{mount:h,resize:I,listSize:w,slideSize:b,sliderSize:q,totalSize:A,getPadding:V,isOverflow:M}}var kr=2;function _r(e,n,t){var r=Q(e),o=r.on,u=n.Elements,c=n.Slides,l=n.Direction.resolve,i=[],s;function a(){o(J,g),o([te,ze],f),(s=m())&&(v(s),n.Layout.resize(!0))}function g(){p(),a()}function p(){Te(i),ge(i),r.destroy()}function f(){var y=m();s!==y&&(sB)&&(w(),O(N(q(),S>B),!0)),c(Oe),u(Ee,x,B,S),E.start(x,function(){c(Pe),u(nt,x,B,S),F&&F()})}function L(S){O(A(S,!0))}function O(S,x){if(!e.is(ot)){var B=x?S:H(S);ae(y,"transform","translate"+v("X")+"("+B+"px)"),S!==B&&u(Cn)}}function H(S){if(e.is(Re)){var x=b(S),B=x>n.Controller.getEnd(),F=x<0;(F||B)&&(S=N(S,B))}return S}function N(S,x){var B=S-M(x),F=p();return S-=d(F*(We(ee(B)/F)||1))*(x?1:-1),S}function w(){O(q(),!0),E.cancel()}function b(S){for(var x=n.Slides.get(),B=0,F=1/0,Y=0;Y=0:x<=y[v("scrollWidth")]-ne(h)[v("width")]}function P(S,x){x=Qe(x)?q():x;var B=S!==!0&&d(x)d(M(!0));return B||F}return{mount:I,move:k,jump:L,translate:O,shift:N,cancel:w,toIndex:b,toPosition:A,getPosition:q,getLimit:M,exceededLimit:P,reposition:T}}function Ir(e,n,t){var r=Q(e),o=r.on,u=r.emit,c=n.Move,l=c.getPosition,i=c.getLimit,s=c.toPosition,a=n.Slides,g=a.isEnough,p=a.getLength,f=t.omitEnd,v=e.is(Re),d=e.is($e),m=W(q,!1),y=W(q,!0),h=t.start||0,E,I=h,T,k,L;function O(){H(),o([te,J,mt],H),o(Vt,N)}function H(){T=p(!0),k=t.perMove,L=t.perPage,E=R();var C=_e(h,0,f?E:T-1);C!==h&&(h=C,c.reposition())}function N(){E!==R()&&u(mt)}function w(C,U,K){if(!z()){var G=A(C),Z=M(G);Z>-1&&(U||Z!==h)&&(B(Z),c.move(G,Z,I,K))}}function b(C,U,K,G){n.Scroll.scroll(C,U,K,function(){var Z=M(c.toIndex(l()));B(f?be(Z,E):Z),G&&G()})}function A(C){var U=h;if(he(C)){var K=C.match(/([+\-<>])(\d+)?/)||[],G=K[1],Z=K[2];G==="+"||G==="-"?U=_(h+ +(""+G+(+Z||1)),h):G===">"?U=Z?P(+Z):m(!0):G==="<"&&(U=y(!0))}else U=v?C:_e(C,0,E);return U}function q(C,U){var K=k||(Y()?1:L),G=_(h+K*(C?-1:1),h,!(k||Y()));return G===-1&&d&&!hn(l(),i(!C),1)?C?0:E:U?G:M(G)}function _(C,U,K){if(g()||Y()){var G=V(C);G!==C&&(U=C,C=G,K=!1),C<0||C>E?!k&&(st(0,C,U,!0)||st(E,U,C,!0))?C=P(S(C)):v?C=K?C<0?-(T%L||L):T:C:t.rewind?C=C<0?E:0:C=-1:K&&C!==U&&(C=P(S(U)+(C0;)if(s(T-1,!0)!==s(C,!0)){C++;break}return _e(C,0,T-1)}function P(C){return _e(Y()?C:L*C,0,E)}function S(C){return Y()?be(C,E):ft((C>=E?T-1:C)/L)}function x(C){var U=c.toIndex(C);return d?_e(U,0,E):U}function B(C){C!==h&&(I=h,h=C)}function F(C){return C?I:h}function Y(){return!Qe(t.focus)||t.isNavigation}function z(){return e.state.is([Oe,Ke])&&!!t.waitForTransition}return{mount:O,go:w,scroll:b,getNext:m,getPrev:y,getAdjacent:q,getEnd:R,setIndex:B,getIndex:F,toIndex:P,toPage:S,toDest:x,hasFocus:Y,isBusy:z}}var xr="http://www.w3.org/2000/svg",Nr="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",at=40;function Pr(e,n,t){var r=Q(e),o=r.on,u=r.bind,c=r.emit,l=t.classes,i=t.i18n,s=n.Elements,a=n.Controller,g=s.arrows,p=s.track,f=g,v=s.prev,d=s.next,m,y,h={};function E(){T(),o(te,I)}function I(){k(),E()}function T(){var b=t.arrows;b&&!(v&&d)&&H(),v&&d&&(Ye(h,{prev:v,next:d}),Ge(f,b?"":"none"),le(f,y=Gt+"--"+t.direction),b&&(L(),w(),j([v,d],rt,p.id),c(nr,v,d)))}function k(){r.destroy(),pe(f,y),m?(Te(g?[v,d]:f),v=d=null):ue([v,d],Yt)}function L(){o([ke,nt,J,De,mt],w),u(d,"click",W(O,">")),u(v,"click",W(O,"<"))}function O(b){a.go(b,!0)}function H(){f=g||xe("div",l.arrows),v=N(!0),d=N(!1),m=!0,Ze(f,[v,d]),!g&&Dt(f,p)}function N(b){var A=' `,r=document.createElement("div");r.innerHTML=t.trim();const o=r.firstChild;return document.body.appendChild(o),o}function un(){let e=null;for(let o=0;o{uo(n,"true",so),o.remove()}),setTimeout(()=>{o.modal("show")},100)}else r.remove()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",un):un();document.querySelectorAll(".accordion-title").forEach(e=>{e.addEventListener("click",n=>{n.target.parentElement.classList.toggle("accordion-open")})});(()=>{const e=document.querySelector(".timeline-carousel");if(!e)return;const n=document.querySelectorAll(".timeline-slide");n.forEach(r=>{e.querySelector(".splide__list").appendChild(r)});const t=new ce(e.querySelector(".splide"),{type:"slide",perPage:4,focus:0,gap:"40px",pagination:!0,arrows:!0,breakpoints:{1300:{perPage:4},1024:{perPage:3},768:{perPage:2},550:{perPage:1}}});t.on("pagination:mounted",r=>{r.list.classList.add("splide__pagination--custom"),r.items.forEach(o=>{const c=n[o.page].getAttribute("data-date");o.button.textContent=c||String(o.page+1)})}),t.mount()})();document.querySelectorAll(".team-card-readmore-wrapper").forEach(e=>{var n;(n=e.querySelector("button"))==null||n.addEventListener("click",()=>{var t;(t=e.querySelector(".team-card-readmore"))==null||t.classList.toggle("isOpen"),e.querySelector("button").innerText=e.querySelector(".team-card-readmore").classList.contains("isOpen")?"Read Less":"Read More"})});(()=>{var n;const e=document.querySelector(".meet-the-team-grid");e&&(document.querySelectorAll(".meet-the-team-grid .col").forEach(t=>{e.querySelector(".row").appendChild(t)}),(n=document.querySelectorAll(".meet-the-team-grid"))==null||n.forEach((t,r)=>{r>0&&t.remove()}))})();(()=>{if(!document.querySelector(".home-hero-slide"))return;const n=document.querySelectorAll(".home-hero-slide");if(!n)return;const t=document.createElement("div");t.classList.add("home-hero-wrapper","splide"),t.setAttribute("aria-label","Hero Slider");const r=document.createElement("div");r.classList.add("splide__track");const o=document.createElement("div");o.classList.add("splide__list"),n.forEach(l=>{const i=l.innerHTML;l.remove();const s=document.createElement("div");s.classList.add("splide__slide");let a="";a+=`
`,a+=`${l.getAttribute(`,l.getAttribute("data-background-type")==="Video"&&(a+=``),a+="
",a+='
',a+=`
`,a+=i,a+=`
${l.getAttribute("data-name")}
`,a+="
",a+="
",s.innerHTML=a,o.appendChild(s)}),r.appendChild(o),t.appendChild(r),t.insertAdjacentHTML("beforeend",`
    `),document.querySelector(".zonetop").prepend(t);const u=document.querySelector(".home-hero-wrapper");if(!u)return;const c=new ce(u,{type:"loop",heightRatio:.5,pagination:!0,arrows:!1,autoplay:!0,interval:8e3,pauseOnHover:!1,pauseOnFocus:!1});c.on("pagination:mounted",l=>{l.list.classList.add("splide__pagination--custom"),l.items.forEach(i=>{const s=n[i.page],a=s.getAttribute("data-slide-icon"),g=s.getAttribute("data-name");if(a){const p=document.createElement("img");p.src=a,p.alt=s.getAttribute("data-name"),p.classList.add("home-hero-slide-icon"),p.width=40,i.button.appendChild(p)}if(g){const p=document.createElement("span");p.textContent=g,p.classList.add("home-hero-slide-title"),i.button.appendChild(p)}})}),c.mount()})();document.querySelectorAll(".custom-logo-slider").forEach(e=>{e.querySelectorAll("[data-logo]").forEach(t=>{const r=t.getAttribute("data-logo");r?t.insertAdjacentHTML("afterbegin",`Logo`):t.remove()});const n=e.querySelector(".splide");n&&new ce(n,{type:"loop",perPage:7,perMove:1,pagination:!1,arrows:!1,autoplay:!0,interval:2e3,pauseOnHover:!1,pauseOnFocus:!1,breakpoints:{1440:{perPage:6},1200:{perPage:5},992:{perPage:4},768:{perPage:3},576:{perPage:2},480:{perPage:1}}}).mount()}),document.querySelectorAll(".custom-logo-slider").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){console.log("Logo slider in view");const o=Array.from(r.target.querySelectorAll("img"));for(let u=o.length-1;u>0;u--){const c=Math.floor(Math.random()*(u+1));[o[u],o[c]]=[o[c],o[u]]}o.forEach((u,c)=>{setTimeout(()=>{u.classList.add("loaded")},c*10)}),n.unobserve(r.target)}})},{threshold:.1});n.observe(e)});document.querySelectorAll(".logo-grid").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=Array.from(r.target.querySelectorAll(".logo-grid__image"));for(let u=o.length-1;u>0;u-=1){const c=Math.floor(Math.random()*(u+1));[o[u],o[c]]=[o[c],o[u]]}o.forEach((u,c)=>{setTimeout(()=>{u.classList.add("loaded")},c*100)}),n.unobserve(r.target)}})},{threshold:.1,rootMargin:"0px 0px -50px 0px"});n.observe(e)});$(document).ready(()=>{const e=$("#aboutUsVideoModal iframe").attr("src");$("#aboutUsVideoModal").on("show.bs.modal",()=>{$("#aboutUsVideoModal iframe").attr("src",e)}),$("#aboutUsVideoModal").on("hide.bs.modal",()=>{$("#aboutUsVideoModal iframe").attr("src","")})});document.querySelectorAll(".team-slider").forEach(e=>{const n=e.querySelector(".splide");if(!n)return;const t={type:"loop",pagination:!1,arrows:!0,autoplay:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!1,perPage:5,perMove:1,breakpoints:{1200:{perPage:4},992:{perPage:3},768:{perPage:2},576:{perPage:1}}};new ce(n,t).mount()});(()=>{const e=document.querySelector(".testimonials-sticky");if(!e)return;document.body.insertAdjacentHTML("beforeend",` `);const t=document.createElement("button");t.classList.add("testimonials-sticky-button"),t.setAttribute("data-toggle","modal"),t.setAttribute("data-target","#testimonialsModal"),t.innerHTML='Testimonials',document.body.appendChild(t);const r=document.getElementById("testimonialsModal"),o=r.querySelector(".modal-body"),u=e.querySelector(".testimonial-carousel");o.appendChild(u),$(r).on("shown.bs.modal",()=>{const c=r.querySelector(".splide");c&&c.splide&&c.splide.refresh()})})();document.querySelectorAll(".testimonial-carousel .splide").forEach(e=>{const n=e.closest("#testimonialsModal")!==null,t={type:"loop",focus:0,perMove:1,pagination:!0,arrows:!0,autoplay:!0,interval:6e3,pauseOnHover:!0,pauseOnFocus:!0,gap:"38px"},r={1800:{perPage:3},1200:{perPage:2},768:{perPage:1}},o={1470:{perPage:1},1080:{perPage:2},720:{perPage:1}};new ce(e,{...t,perPage:n?3:2,breakpoints:n?r:o}).mount()});document.querySelectorAll(".delivery-map").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting&&(console.log("Map is in view!"),e.classList.add("map-active"),n.unobserve(r.target))})},{threshold:.4});n.observe(e)});document.querySelectorAll(".eco-grid").forEach(e=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target;o.classList.add("section-loaded"),n.unobserve(o)}})},{threshold:.1});n.observe(e)});document.querySelectorAll(".contact-cta-imagegrid").forEach(e=>{const n=e.querySelectorAll(".image-group");setInterval(()=>{const r=Math.floor(Math.random()*n.length);n.forEach((o,u)=>{u===r&&o.classList.toggle("image-swap")})},4e3);const t=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&(o.target.classList.add("loaded"),t.unobserve(e))})},{threshold:.3});t.observe(e)});(()=>{const e=()=>{const n=new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=r.target,u=o.querySelectorAll(".landing-intro__feature"),c=300;u.forEach((i,s)=>{setTimeout(()=>{i.classList.add("fade-in")},c*(s+1))});const l=o.querySelector(".landing-intro__main");l&&setTimeout(()=>{l.classList.add("fade-in")},50),n.unobserve(o)}})},{threshold:.1,rootMargin:"0px 0px -50px 0px"});document.querySelectorAll(".landing-intro__content").forEach(t=>{n.observe(t)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()})();(()=>{const e=document.querySelector(".custom-grid-tools");if(!e)return;const n=document.querySelector(".tools-actions");n&&e.appendChild(n)})();(()=>{const e=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(u=>{if(u.querySelector(".quantity-input-wrapper"))return;const c=u.querySelector(".inputquantity");if(!c||c.getAttribute("type")==="number")return;const l=document.createElement("div");l.classList.add("quantity-input-wrapper"),l.innerHTML=` `,u.querySelector(".buttons.group").insertAdjacentElement("afterbegin",l),l.appendChild(c);const i=u.querySelector(".quantity-input-increment"),s=u.querySelector(".quantity-input-decrement");i.addEventListener("click",()=>{Number.isNaN(c.value)?c.value=1:c.value=parseInt(c.value,10)+1}),s.addEventListener("click",()=>{Number.isNaN(c.value)||parseInt(c.value,10)<=1?c.value=1:c.value=parseInt(c.value,10)-1}),u.classList.add("quantity-spinner")})},n=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(u=>{if(u.querySelector(".product-actions-wrapper"))return;const c=document.createElement("div");c.classList.add("product-actions-wrapper");const l=u.querySelector(".footer");if(l)l.appendChild(c);else return;const i=u.querySelector(".addtoquicklist-wrapper");i&&c.appendChild(i);const s=u.querySelector(".product-compare-action");s&&c.appendChild(s)})},t=()=>{if(!document.querySelector(".ex-loggedout"))return;const u=document.createElement("div");u.classList.add("product-login-buttons"),u.innerHTML=` Sign In Create Account `,document.querySelectorAll(".catalog-grid .product").forEach(c=>{if(c.querySelector(".product-login-buttons"))return;const l=c.querySelector(".footer-wrapper-price");l&&!l.children.length&&l.appendChild(u.cloneNode(!0))})},r=()=>{document.querySelectorAll(".catalog-grid .product, .relationship-carousel .product").forEach(u=>{var l;const c=u.querySelector(".live-inventory-v2-wrapper");c&&((l=u.querySelector(".footer-wrapper-price"))==null||l.appendChild(c))})},o=()=>{e(),n(),t(),r()};document.addEventListener("DOMContentLoaded",()=>{o()}),document.addEventListener("product-loadmore-success",u=>{console.log("More products loaded",u.detail),o()},!1)})();(()=>{if(!document.querySelector(".ex-product"))return;const e=()=>{const i=document.querySelector(".desktop .product-summary");if(!i)return;const s=document.createElement("div");s.classList.add("product-summary-actions"),i.appendChild(s);const a=document.createElement("div");a.classList.add("product-summary-inner"),s.appendChild(a);const g=i.querySelector(".product-configurable-wrapper"),p=i.querySelector(".product-points-wrapper"),f=i.querySelector(".product-links-wrapper");g&&a.appendChild(g),p&&a.appendChild(p),f&&a.appendChild(f);const v=document.querySelector(".desktop .productaddtocart_container");v&&s.appendChild(v)},n=()=>{document.querySelectorAll(".pdp-minibanner").forEach(i=>{var s,a;(a=(s=i.closest(".catalog-single"))==null?void 0:s.querySelector(".product-summary-inner"))==null||a.insertAdjacentElement("afterbegin",i)})},t=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(i=>{if(i.querySelector(".product-actions-wrapper"))return;const s=document.createElement("div");s.classList.add("product-actions-wrapper"),i.appendChild(s);const a=i.querySelector(".product-shopping-actions-addtoquicklist");a&&s.appendChild(a);const g=i.querySelector(".product-compare-action");g&&s.appendChild(g)})},r=()=>{document.querySelectorAll(".custom-product-text").forEach(i=>{var s,a;(a=(s=i.closest(".catalog-single"))==null?void 0:s.querySelector(".product-shopping-actions > .product-shopping-actions-row:first-child"))==null||a.insertAdjacentElement("afterend",i)}),document.querySelectorAll(".prod-desc-link").forEach(i=>{i.addEventListener("click",s=>{var g;s.preventDefault();const a=(g=i.closest(".catalog-single"))==null?void 0:g.querySelector(".productdescription_container");a&&a.scrollIntoView({behavior:"smooth"})})}),document.querySelectorAll(".prod-spec-link").forEach(i=>{i.addEventListener("click",s=>{var g;s.preventDefault();const a=(g=i.closest(".catalog-single"))==null?void 0:g.querySelector(".productspecs_container");a&&a.scrollIntoView({behavior:"smooth"})})})},o=()=>{document.querySelectorAll(".catalog-single .product-shopping-actions").forEach(i=>{const s=i.querySelector(".save.with-value"),a=i.querySelector(".live-inventory-v2-wrapper"),g=i.querySelector(".product-shopping-actions-row:first-child");if((s||a)&&g){const p=document.createElement("div");p.classList.add("stock-sale-wrapper"),a&&p.appendChild(a),s&&p.appendChild(s),g.insertAdjacentElement("afterbegin",p)}})},u=()=>{document.querySelectorAll(".page-content .panel-collapse").forEach(i=>{const s=i.querySelector(".panel-body"),a=i.getBoundingClientRect().height;((s==null?void 0:s.getBoundingClientRect().height)||0)>a?i.classList.add("accordion-read-more"):i.classList.remove("accordion-read-more"),i.querySelector(".show-more-btn-wrapper")||(i.insertAdjacentHTML("beforeend",`
    See
    `),i.querySelector(".show-more-btn-wrapper").addEventListener("click",()=>{i.classList.toggle("show-more")}))})},c=()=>{document.querySelectorAll(".catalog-single .product-summary").forEach(i=>{var a;i.querySelector(".product-indicators .non-returnable")||(a=i.querySelector(".custom-product-text .is-returnable"))==null||a.classList.remove("hide")})},l=()=>{const i=document.querySelector(".pdp-lead-time");if(!i)return;const s=document.querySelector(".product-shopping-actions"),a=(s==null?void 0:s.getAttribute("data-leadtime"))||0,g={"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"},p=typeof window.leadTimeData=="object"?window.leadTimeData:g;let f=p[0],v=!1;const d=document.querySelector(".product-shopping-actions .live-inventory-v2-shipping.out-stock");if(d&&d.textContent.includes("Low Stock")){v=!0,f=p["out-of-stock"]||"Low Stock - Contact us for ETA",i.innerHTML=f;return}a!==0&&(!v&&a&&Object.keys(p).forEach(m=>{m===a&&(f=p[m])}),i.innerHTML=f)};document.addEventListener("DOMContentLoaded",()=>{e(),n(),t(),r(),u(),c(),setTimeout(()=>{u()},1e3)}),document.addEventListener("live-pricing-done",()=>{o(),setTimeout(()=>{l()},200)}),window.addEventListener("resize",()=>{u()})})();(()=>{const e=()=>{const o=document.querySelector(".mobile-configurator-ghost"),u=document.querySelector(".custom-configurator:not(.mobile-configurator-ghost)");if(!o||!u)return;const c=()=>{let s='
    ';const a=u.querySelector('[data-type="col"]');a&&(s+=`

    Choose Your Colour

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

    Choose Your Logo Placement

    Tap to select/deselect placement options.

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

    Upload Your Logo

    📁 Tap to upload your logo

    JPG, PNG, WEBP, PSD, AI, PDF

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

    ${m}

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

    Uploaded: ${o.name}

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

    ${f.children[0].text}

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

    Choose Your Colour

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

    Choose Your Logo Placement

    ",a+="

    Select all that apply.

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

    Upload Your Logo

    ",a+=`

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

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

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

    Choose Your ${f.text}

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

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

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

    Uploaded: ${o.name}

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

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

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

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

    Switch Here To Save

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