PageSourceSearch

https://www.flexcut.com/_resources/themes/flexcut/dist/assets/app-Cwsj0qDO.js?m=1790016608

js flexcut.com collected 2026-10-01 14:48:01 UTC 76,257 bytes, 1 lines download raw bytes

1var Qt=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports);import{$ as l,s as ht,O as Mt,j as Jt,M as Zt}from"./vendor-C-R2slnD.js";var pi=Qt((vi,De)=>{(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))t(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&t(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function t(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/*! lazysizes - v4.1.6 */(function(e,i){var n=i(e,e.document);e.lazySizes=n,typeof De=="object"&&De.exports&&(De.exports=n)})(window,function(e,i){if(i.getElementsByClassName){var n,t,s=i.documentElement,o=e.Date,r=e.HTMLPictureElement,a="addEventListener",c="getAttribute",g=e[a],h=e.setTimeout,d=e.requestAnimationFrame||h,u=e.requestIdleCallback,f=/^picture$/i,S=["load","error","lazyincluded","_lazyloaded"],v={},C=Array.prototype.forEach,x=function(p,m){return v[m]||(v[m]=new RegExp("(\\s|^)"+m+"(\\s|$)")),v[m].test(p[c]("class")||"")&&v[m]},G=function(p,m){x(p,m)||p.setAttribute("class",(p[c]("class")||"").trim()+" "+m)},X=function(p,m){var b;(b=x(p,m))&&p.setAttribute("class",(p[c]("class")||"").replace(b," "))},R=function(p,m,b){var F=b?a:"removeEventListener";
1b&&R(p,m),S.forEach(function(H){p[F](H,m)})},M=function(p,m,b,F,H){var w=i.createEvent("Event");return b||(b={}),b.instance=n,w.initEvent(m,!F,!H),w.detail=b,p.dispatchEvent(w),w},te=function(p,m){var b;!r&&(b=e.picturefill||t.pf)?(m&&m.src&&!p[c]("srcset")&&p.setAttribute("srcset",m.src),b({reevaluate:!0,elements:[p]})):m&&m.src&&(p.src=m.src)},E=function(p,m){return(getComputedStyle(p,null)||{})[m]},L=function(p,m,b){for(b=b||p.offsetWidth;b<t.minSize&&m&&!p._lazysizesWidth;)b=m.offsetWidth,m=m.parentNode;return b},N=function(){var p,m,b=[],F=[],H=b,w=function(){var _=H;for(H=b.length?F:b,p=!0,m=!1;_.length;)_.shift()();p=!1},k=function(_,q){p&&!q?_.apply(this,arguments):(H.push(_),m||(m=!0,(i.hidden?h:d)(w)))};return k._lsFlush=w,k}(),j=function(p,m){return m?function(){N(p)}:function(){var b=this,F=arguments;N(function(){p.apply(b,F)})}},K=function(p){var m,b=0,F=t.throttleDelay,H=t.ricTimeout,w=function(){m=!1,b=o.now(),p()},k=u&&H>49?function(){u(w,{timeout:H}),H!==t.ricTimeout&&(H=t.ricTimeout)}:j(function(){h(w)},!0);return function(_){var q;(_=_===!0)&&(H=33),m||(m=!0,q=F-(o.now()-b),q<0&&(q=0),_||q<9?k():h(k,q))}},D=function(p){var m,b,F=99,H=function(){m=null,p()},w=function(){var k=o.now()-b;k<F?h(w,F-k):(u||H)(H)};return function(){b=o.now(),m||(m=h(w,F))}};(function(){var p,m={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};t=e.lazySizesConfig||e.lazysizesConfig||{};for(p in m)p in t||(t[p]=m[p]);e.lazySizesConfig=t,h(function(){t.init&&le()})})();var ne=function(){var p,m,b,F,H,w,k,_,q,P,A,Z,Ee=/^img$/i,ge=/^iframe$/i,Fe="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),Vt=0,xe=0,$=0,ve=-1,Ae=function(y){$--,y&&y.target&&R(y.target,Ae),(!y||$<0||!y.target)&&($=0)},ct=function(y){return Z==null&&(Z=E(i.body,"visibility")=="hidden"),Z||E(y.parentNode,"visibility")!="hidden"&&E(y,"visibility")!="hidden"},Ut=function(y,T){var z,B=y,W=ct(y);for(_-=T,A+=T,q-=T,P+=T;W&&(B=B.offsetParent)&&B!=i.body&&B!=s;)(W=(E(B,"opacity")||1)>0)&&E(B,"overflow")!="visible"&&(z=B.getBoundingClientRect(),W=P>z.left&&q<z.right&&A>z.top-1&&_<z.bottom+1);return W},dt=function(){var y,T,z,B,W,V,oe,re,ce,de,ue,Ne,ee=n.elements;if((F=t.loadMode)&&$<8&&(y=ee.length)){for(T=0,ve++,de=!t.expand||t.expand<1?s.clientHeight>500&&s.clientWidth>500?500:370:t.expand,ue=de*t.expFactor,Ne=t.hFac,Z=null,xe<ue&&$<1&&ve>2&&F>2&&!i.hidden?(xe=ue,ve=0):xe=F>1&&ve>1&&$<6?de:Vt;T<y;T++)if(ee[T]&&!ee[T]._lazyRace)if(Fe)if((re=ee[T][c]("data-expand"))&&(V=1*re)||(V=xe),ce!==V&&(w=innerWidth+V*Ne,k=innerHeight+V,oe=-1*V,ce=V),z=ee[T].getBoundingClientRect(),(A=z.bottom)>=oe&&(_=z.top)<=k&&(P=z.right)>=oe*Ne&&(q=z.left)<=w&&(A||P||q||_)&&(t.loadHidden||ct(ee[T]))&&(m&&$<3&&!re&&(F<3||ve<4)||Ut(ee[T],V))){if(Te(ee[T]),W=!0,$>9)break}else!W&&m&&!B&&$<4&&ve<4&&F>2&&(p[0]||t.preloadAfterLoad)&&(p[0]||!re&&(A||P||q||_||ee[T][c](t.sizesAttr)!="auto"))&&(B=p[0]||ee[T]);else Te(ee[T]);B&&!W&&Te(B)}},Q=K(dt),ut=function(y){G(y.target,t.loadedClass),X(y.target,t.loadingClass),R(y.target,ft),M(y.target,"lazyloaded")},Gt=j(ut),ft=function(y){Gt({target:y.target})},Yt=function(y,T){try{y.contentWindow.location.replace(T)}catch{y.src=T}},Xt=function(y){var T,z=y[c](t.srcsetAttr);(T=t.customMedia[y[c]("data-media")||y[c]("media")])&&y.setAttribute("media",T),z&&y.setAttribute("srcset",z)},Kt=j(function(y,T,z,B,W){var V,oe,re,ce,de,ue;(de=M(y,"lazybeforeunveil",T)).defaultPrevented||(B&&(z?G(y,t.autosizesClass):y.setAttribute("sizes",B)),oe=y[c](t.srcsetAttr),V=y[c](t.srcAttr),W&&(re=y.parentNode,ce=re&&f.test(re.nodeName||"")),ue=T.firesLoad||"src"in y&&(oe||V||ce),de={target:y},ue&&(R(y,Ae,!0),clearTimeout(b),b=h(Ae,2500),G(y,t.loadingClass),R(y,ft,!0)),ce&&C.call(re.getElementsByTagName("source"),Xt),oe?y.setAttribute("srcset",oe):V&&!ce&&(ge.test(y.nodeName)?Yt(y,V):y.src=V),W&&(oe||ce)&&te(y,{src:V})),y._lazyRace&&delete y._lazyRace,X(y,t.lazyClass),N(function(){(!ue||y.c
1omplete&&y.naturalWidth>1)&&(ue?Ae(de):$--,ut(de))},!0)}),Te=function(y){var T,z=Ee.test(y.nodeName),B=z&&(y[c](t.sizesAttr)||y[c]("sizes")),W=B=="auto";(!W&&m||!z||!y[c]("src")&&!y.srcset||y.complete||x(y,t.errorClass)||!x(y,t.lazyClass))&&(T=M(y,"lazyunveilread").detail,W&&ie.updateElem(y,!0,y.offsetWidth),y._lazyRace=!0,$++,Kt(y,T,W,B,z))},He=function(){if(!m){if(o.now()-H<999)return void h(He,999);var y=D(function(){t.loadMode=3,Q()});m=!0,t.loadMode=3,Q(),g("scroll",function(){t.loadMode==3&&(t.loadMode=2),y()},!0)}};return{_:function(){H=o.now(),n.elements=i.getElementsByClassName(t.lazyClass),p=i.getElementsByClassName(t.lazyClass+" "+t.preloadClass),g("scroll",Q,!0),g("resize",Q,!0),e.MutationObserver?new MutationObserver(Q).observe(s,{childList:!0,subtree:!0,attributes:!0}):(s[a]("DOMNodeInserted",Q,!0),s[a]("DOMAttrModified",Q,!0),setInterval(Q,999)),g("hashchange",Q,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(y){i[a](y,Q,!0)}),/d$|^c/.test(i.readyState)?He():(g("load",He),i[a]("DOMContentLoaded",Q),h(He,2e4)),n.elements.length?(dt(),N._lsFlush()):Q()},checkElems:Q,unveil:Te}}(),ie=function(){var p,m=j(function(w,k,_,q){var P,A,Z;if(w._lazysizesWidth=q,q+="px",w.setAttribute("sizes",q),f.test(k.nodeName||""))for(P=k.getElementsByTagName("source"),A=0,Z=P.length;A<Z;A++)P[A].setAttribute("sizes",q);_.detail.dataAttr||te(w,_.detail)}),b=function(w,k,_){var q,P=w.parentNode;P&&(_=L(w,P,_),q=M(w,"lazybeforesizes",{width:_,dataAttr:!!k}),q.defaultPrevented||(_=q.detail.width)&&_!==w._lazysizesWidth&&m(w,P,q,_))},F=function(){var w,k=p.length;if(k)for(w=0;w<k;w++)b(p[w])},H=D(F);return{_:function(){p=i.getElementsByClassName(t.autosizesClass),g("resize",H)},checkElems:H,updateElem:b}}(),le=function(){le.i||(le.i=!0,ie._(),ne._())};return n={cfg:t,autoSizer:ie,loader:ne,init:le,uP:te,aC:G,rC:X,hC:x,fire:M,gW:L,rAF:N}}});(function(e){e.rotate=function(i,n){var t=this;t.$el=e(i),t.el=i,t.$el.data("rotate",t);var s=0,o=0,r,a,c=0,g,h=!1,d=[];t.init=function(){t.options=e.extend({},e.rotate.defaultOptions,n),t.options.pause_mouse_over&&e(t.$el).mouseover(function(){g=!0}).mouseout(function(){g=!1});var u,f;if(t.options.easingSpeed>0?(t.options.easingSpeed,u=t.options.easingSpeed,t.options.easingStyle,f=t.options.easingStyle):(t.options.easingInSpeed,u=t.options.easingOutSpeed,t.options.easingInStyle,f=t.options.easingOutStyle),t.$el.find(".rotatee").each(function(){e(this).hasClass("video")?(e(this).hide(),e(this).find("video").get(0).play()):e(this).hide(),s++}),o=1,t.$el.find(".rotatee:first").fadeIn({duration:u,easing:f,progress:function(){t.checkheight()}}),s>1){if(t.options.buttonContainer.length>0?r=e(t.options.buttonContainer):(r=e("<div class='button_container'></div>"),t.$el.append(r)),t.options.pauseButtonOn){var S=e("<div class='rotate_action'><a href='javascript: void(0);' class='rotate_pause'></a></div>");r.append(S),S.bind("click",function(){t.setPlayPause()})}if(t.options.buttonStyle=="arrow"||t.options.buttonStyle=="both"){if(t.options.next_button_class&&t.options.prev_button_class)var v=e(t.options.next_button_class),C=e(t.options.prev_button_class);else{var v=e("<div class='rotate_next'>"+t.options.next_text+"</div>");r.prepend(v);var C=e("<div class='rotate_prev'>"+t.options.prev_text+"</div>");r.prepend(C)}v.bind("click",function(){var E=o;o>=s?E=1:E++,t.goto(E,"LEFT")}),C.bind("click",function(){var E=o;o>1?E--:E=s,t.goto(E,"RIGHT")})}if(t.options.buttonStyle=="list"||t.options.buttonStyle=="both"){var x=0,G=e("<div class='button_list_container'></div>");t.$el.find(".rotatee").each(function(){var E=x+1;if(e(this).attr("title")){var L=e(this).attr("title");e(this).removeAttr("title")}else if(e(this).data("buttonimage")){var N=e("<img>");if(N.attr("src",e(this).data("buttonimage")).addClass("default"),e(this).data("title"))var L=e(this).data("title");else var L=""}else if(e(this).data("group"))var L=e(this).data("group");else var L="";if(e(this).data("buttonimageselected")){var j=e("<img>");j.attr("src",e(this).data("buttonimageselected")).addClass("selected").hide()}else var j=null;var K="";if(e(this).data("buttonclass")&&(K=e(this).data("buttonclass")),e(this).data("buttonimage")){if(x==0){j&&(N.hide(),j.show());var D=e("<div id='button_rotate_"+E+"' class='button_list_item active "+K+"' data-sli
1de='"+E+"'></div>").append(N).append(j)}else{j&&(N.show(),j.hide());var D=e("<div id='button_rotate_"+E+"' class='button_list_item "+K+"' data-slide='"+E+"'></div>").append(N).append(j)}L!=""&&D.append("<h3>"+L+"</h3>"),G.append(D),D.bind(t.options.triggerEvent,function(){e(this).hasClass("active")||t.goto(e(this).data("slide"))})}else if(e(this).data("group")){var ne=!1;for(index=0;index<d.length;index++)d[index]==e(this).data("group")&&(ne=!0);if(ne){var ie=G.find('*[data-group="'+L+'"]');ie.attr("data-groupmembers",ie.attr("data-groupmembers")+","+E)}else{if(x==0)var D=e("<div id='button_rotate_"+E+"' class='button_list_item active "+K+"' data-slide='"+E+"' data-group='"+L+"' data-groupmembers='"+E+"'>"+L+"</div>");else var D=e("<div id='button_rotate_"+E+"' class='button_list_item "+K+"' data-slide='"+E+"' data-group='"+L+"' data-groupmembers='"+E+"'>"+L+"</div>");d[x]=e(this).data("group"),G.append(D),D.bind(t.options.triggerEvent,function(){e(this).hasClass("active")||t.goto(e(this).data("slide"))})}}else{if(x==0)var D=e("<div id='button_rotate_"+E+"' class='button_list_item active "+K+"' data-slide='"+E+"'>"+L+"</div>");else var D=e("<div id='button_rotate_"+E+"' class='button_list_item "+K+"' data-slide='"+E+"'>"+L+"</div>");G.append(D),D.bind(t.options.triggerEvent,function(){e(this).hasClass("active")||t.goto(e(this).data("slide"))})}x++}),r.append(G)}if(t.options.buttonStyle=="slider"){r.addClass("slider"),c=t.$el.width()/s;var X=e("<div class='slider_button_container'></div>"),R=e("<div class='slider_marker'></div>");R.css({width:c,position:"absolute"});for(var x=0;x<s;x++){var M=x+1,te=e("<div class='slider_button' data-slide='"+M+"'></div>");te.css({width:c,position:"absolute",top:0,left:x*c}),te.bind("click",function(){t.goto(e(this).data("slide"))}),X.append(te)}X.append(R),r.append(X)}t.options.timer>0&&t.setTimer()}e(window).resize(function(){if(t.options.buttonStyle=="slider"){c=t.$el.width()/s;var E=t.$el.find(".slider_marker");E.css({width:c});var L=0;t.$el.find(".slider_button").each(function(){e(this).css({width:c,left:L*c}),L++}),E.stop().animate({left:"+"+c*(o-1)+"px"},t.options.easingSpeed,t.options.easingStyle)}t.checkheight()}),t.options.BeforeAnimate_Callback!=null&&t.options.BeforeAnimate_Callback(1,"LEFT",t.$el),t.options.AfterAnimate_Callback!=null&&t.options.AfterAnimate_Callback(1,t.$el)},t.goto=function(u,f){t.options.timer>0&&t.setTimer(),t.options.BeforeAnimate_Callback!=null&&t.options.BeforeAnimate_Callback(u,f,t.$el);var S,v,C,x;if(t.options.easingSpeed>0?(S=t.options.easingSpeed,v=t.options.easingSpeed,C=t.options.easingStyle,x=t.options.easingStyle):(S=t.options.easingInSpeed,v=t.options.easingOutSpeed,C=t.options.easingInStyle,x=t.options.easingOutStyle),t.options.buttonStyle=="list"||t.options.buttonStyle=="both")t.clearActiveButtons(),t.markActiveButton(u);else if(t.options.buttonStyle=="slider"){var G=t.$el.find(".slider_marker");G.stop().animate({left:"+"+c*(u-1)+"px"},S,C)}var X=o;o=u;var R=t.$el.find(".rotatee:nth-child("+X+")"),M=t.$el.find(".rotatee:nth-child("+o+")");e("#"+R.attr("id")+"-child").removeClass("selected"),e("#"+M.attr("id")+"-child").addClass("selected"),t.options.transitionStyle=="fade"?(R.stop().fadeOut(S,C),M.stop().fadeIn({duration:v,easing:x,progress:function(){t.checkheight()},complete:function(){t.options.AfterAnimate_Callback!=null&&t.options.AfterAnimate_Callback(u,t.$el)}})):t.options.transitionStyle=="slide"&&(f=="LEFT"?(R.css({display:"block",left:0}),R.stop().animate({left:"-="+M.outerWidth()+"px"},v,x),M.css({display:"block",left:M.outerWidth(!0)+"px"}),M.stop().animate({left:"-="+M.outerWidth(!0)+"px"},S,C)):(R.css({display:"block",left:0}),R.stop().animate({left:"+="+M.width()+"px"},v,x),M.css({display:"block",left:-M.width()+"px"}),M.stop().animate({left:"+="+M.width()+"px"},S,C)))},t.markActiveButton=function(u){r.find(".button_list_item").each(function(){if(e(this).attr("data-groupmembers")){var f=e(this).attr("data-groupmembers").split(","),S=!1;for(index=0;index<f.length;index++)f[index]==u&&(S=!0);S?e(this).addClass("active"):e(this).removeClass("active")}else e(this).find(".selected").length>0?e(this).data("slide")==u?(e(this).find(".selected").show(),e(this).find(".default").hide()):(e(this).find(".selected").hide(),e(this).find(".default").show()):e(this).data("slide")==u?e(this).addClass("active"):e(this).removeClass("active")})},t.clearActiveButtons=function(u){r.find(".active").each(function(){e(this).removeClass("active")})},t.setTimer=function(){window.clearInterval(a),o==s-1&&t.options.loop==!1||(a=window.setInterval(function(){var u=!0;if(t.options.pause_mouse_over&&g&&(u=!1),u&&!h){var f=o;o>=s?f=1:f++,t.goto(f,"LEFT")}},t.options.timer))},t.checkheight=function(){var u=0;t.options.useWindowHeight?u=e(window).height():t.options.ElementForHeightSelector!=""?u=t.$el.find(t.options.ElementForHeightSelector).outerHeight(!0):u=t.$el.find(".rotatee:visible").outerHeight(!0),t.$el.stop(),t.$el.animate({height:u},500,function(){})},t.setPlayPause=function(){var u=t.$el.find(".rotate_action a");h?(h=!1,u.addClass("rotate_pause"),u.removeClass("rotate_play")):(h=!0,u.addClass("rotate_play"),u.removeClass("rotate_pause"),t.setTimer())},t.init()},e.rotate.defaultOptions={buttonStyle:"none",transitionStyle:"fade",next_text:"",next_button_class:"",prev_text:"",prev_button_class:"",easingSpeed:1e3,easingStyle:"swing",easingInSpeed:1e3,easingInStyle:"swing",easingOutSpeed:1e3,easingOutStyle:"swing",loop:!0,timer:7e3,pause_mouse_over:!1,pauseButtonOn:!1,buttonContainer:"",useW
1indowHeight:!1,triggerEvent:"click",BeforeAnimate_Callback:null,AfterAnimate_Callback:null,ElementForHeightSelector:""},e.fn.rotate=function(i){return this.each(function(){new e.rotate(this,i)})}})(l);(function(e){e.tabs=function(i,n){var t=this;t.$el=e(i),t.el=i,t.$el.data("tabs",t);var s="",o=0,r;t.init=function(){if(t.options=e.extend({},e.tabs.defaultOptions,n),s=window.location.hash.substring(1),o=t.$el.find(".tabs .tab").length,o>=1)if(t.options.Type=="Horizontal"){t.$el.addClass("horizontal");var a=e("<div>").attr({class:"buttons"}),c=e("<div>").attr({class:"buttons-container"});a.prepend(c),t.$el.prepend(a);var g=0,h=0;t.$el.find(".tabs > div").each(function(){e(this).outerHeight()>g&&(g=e(this).outerHeight(),t.$el.css({"min-height":e(this).outerHeight()})),e(this).css({display:"none"}),e(this).addClass("tab");var u=e(this).data("hash").split("/"),f="",S;u.length>1?f=u[1]:f=e(this).data("hash"),e(this).data("imageurl")&&(S=e("<img />").attr("src",e(this).data("imageurl")));var v=e("<div>").attr({id:"tabbutton-"+f,class:"button "+e(this).attr("id"),title:e(this).attr("id")}).html(e(this).attr("title"));S!=""&&v.prepend(S),c.append(v);var C=e("<div>").attr({id:"title-"+e(this).attr("id"),class:"titletab"}).html(e(this).attr("title"));e(this).prepend(C),C.hide(),e(this).attr("title",""),v.mousedown(function(){e(this).parent().hasClass("responsive")||(t.resetTabs(),t.selectTab(e(this)))}),h+=v.outerWidth(!0),c.height(v.outerHeight(!0))}),r=e("<div>").attr({class:"button-slide-next"}),t.$el.append(r),r.hide(),r.on("click",function(){t.responsiveTabs()})}else t.options.Type=="Vertical"&&(t.$el.addClass("vertical"),t.$el.find(".tabs > div").each(function(){e(this).css({display:"none"}),e(this).addClass("tab");var u=e(this).data("hash").split("/"),f="",S;u.length>1?f=u[1]:f=e(this).data("hash"),e(this).data("imageurl")&&(S=e("<img />").attr("src",e(this).data("imageurl")));var v=e("<div>").attr({id:"tabbutton-"+f,class:"button open "+e(this).attr("id"),title:e(this).attr("id")}).html("<span>"+e(this).attr("title")+"<span>");S!=""&&v.prepend(S),v.insertBefore(e(this)),e(this).attr("title",""),v.mousedown(function(){var C=e("#"+e(this).attr("title")).css("display");C=="block"?(e("#"+e(this).attr("title")).css({display:"none"}),e(this).addClass("open"),e(this).removeClass("close")):(e("#"+e(this).attr("title")).css({display:"block"}),e(this).addClass("close"),e(this).removeClass("open")),window.location.hash=e("#"+e(this).attr("title")).data("hash")})}));if(s){var d=s.split("/");"tab-"+d[0]==t.$el.attr("id")?d.length>1?(e("#tab-"+d[0]+" #tabitem-"+d[1]).css({display:"block"}),e("#tabbutton-"+d[1]).addClass("selected"),e("#tabbutton-"+d[1]).addClass("close"),e("#tabbutton-"+d[1]).removeClass("open")):(e("#tabitem-"+s).css({display:"block"}),e("#tabbutton-"+s).addClass("selected"),e("#tabbutton-"+s).addClass("close"),e("#tabbutton-"+s).removeClass("open")):(t.$el.find(".tabs div:first").css({display:"block"}),t.$el.find(".buttons-container div.button:first").addClass("selected"))}else t.$el.find(".tabs div.tab:first").css({display:"block"}),t.$el.find(".tabs div.button:first").addClass("selected"),t.$el.find(".buttons-container div.button:first").addClass("selected"),t.$el.find(".tabs div.button:first").addClass("close"),t.$el.find(".tabs div.button:first").removeClass("open");t.ResizeCheck(),e(window).resize(function(){t.ResizeCheck()}),t.options=e.extend({},e.tabs.defaultOptions,n)},t.ResizeCheck=function(){if(t.options.Type=="Horizontal"&&t.options.ResizeCheck){var a=600,c=t.$el.find(".buttons-container");a>=e(window).width()?t.$el.hasClass("responsive")||(t.responsiveTabs(),t.$el.addClass("responsive"),r.show()):(t.$el.removeClass("responsive"),r.hide(),c.show(),c.find("> div").each(function(){if(e(this).hasClass("selected")){var g=e(this).attr("id").split("-");e("#tabbutton-"+g[1]).show(),e("#tabitem-"+g[1]).show()}else{var g=e(this).attr("id").split("-");e("#tabbutton-"+g[1]).show(),e("#tabitem-"+g[1]).hide()}}))}},t.responsiveTabs=function(){t.$el.addClass("responsive");var a=t.$el.find(".buttons-container"),c=a.find("> div.selected"),g;c.next().length>0?g=c.next():g=a.find(">
1 div:first-child"),g.siblings().hide(),g.show(),g.css({"z-index":1}),t.resetTabs(),t.selectTab(g)},t.selectTab=function(a){e("#"+a.attr("title")).css({display:"block"}),a.addClass("selected"),window.location.hash=e("#"+a.attr("title")).data("hash")},t.resetTabs=function(){t.$el.find(".tabs > div").each(function(){e(this).css({display:"none"})}),t.$el.find(".button").each(function(){e(this).hasClass("selected")&&e(this).removeClass("selected")})},t.init()},e.tabs.defaultOptions={TriggerWidth:600,Type:"Horizontal",ResizeCheck:!1},e.fn.tabs=function(i){return this.each(function(){new e.tabs(this,i)})}})(l);(function(e){e.slider=function(i,n){var t=this;t.$el=e(i),t.el=i,t.$el.data("slider",t);var s=0,o=1,r,a,c=0,g=0,h,d,u=0;t.init=function(){t.options=e.extend({},e.slider.defaultOptions,n),t.$el.data("slides_visible")&&(t.options.slides_visible=t.$el.data("slides_visible")),r=t.$el.find(".slides"),a=t.$el.find(".slider"),a.css({position:"absolute",top:0,left:0,width:"100%",height:"100%"});var f=r.find(".slide:nth-child(1)").outerWidth();t.options.slide_width=f,r.find(".slide").each(function(){e(this).css({position:"absolute",left:t.options.slide_width*s}),s++}),u=s,Math.ceil(s/t.options.slides_visible),o=1,a.data("current",{current_slide_container:o}),c=(s-t.options.slides_visible)*t.options.slide_width,t.options.style=="default"&&s>t.options.slides_visible?(h=e("<div class='arrow right'></div>"),d=e("<div class='arrow left'></div>"),r.after(h),r.before(d),h.after(e("<div class='clear'></div>")),h.bind("click",function(){t.goto("next")}),d.bind("click",function(){t.goto("prev")}),t.checkButtons()):r.after(e("<div class='clear'></div>")),t.options.style=="centerselect"&&(t.options.startslide=="center"?t.gotoSlide(Math.ceil(s/2)):t.gotoSlide(1),t.$el.find(".slide").each(function(v){e(this).bind("click",function(C){e(this).hasClass("selected")||C.preventDefault(),t.gotoSlide(v+1)})})),t.checkheight();var S=0;t.$el.find(".slide").each(function(){e(this).outerHeight()>S&&(S=e(this).outerHeight())}),t.options.arrow_height&&t.$el.find(".arrow").css({height:S}),t.options.style=="centerselect"&&s<t.options.slides_visible&&t.centerSlider(Math.floor(s/2)),e.mobile&&(t.$el.on("swipeleft",function(v){t.goto("next")}),t.$el.on("swiperight",function(v){t.goto("prev")})),e(window).resize(function(){t.refactorLayout();var v=0;t.$el.find(".slide").each(function(){e(this).outerHeight()>v&&(v=e(this).outerHeight())}),t.$el.find(".slides").css({height:v}),t.options.arrow_height&&t.$el.find(".arrow").css({height:v})})},t.centerSlider=function(f){var S=r.width()/2-t.options.slide_width,v=1;t.$el.find(".slide").each(function(){if(v==f)var C=S;else if(v<f)var C=S-t.options.slide_width*(f-v);else if(v>f)var C=S-t.options.slide_width*(f-v);e(this).finish(),e(this).stop().animate({left:C+"px"},t.options.easingSpeed,t.options.easingStyle,function(){t.checkheight()}),v++})},t.gotoSlide=function(f){var S=r.width()/2-t.options.slide_width/2,v=1;t.$el.find(".slide").each(function(){if(v==f){e(this).addClass("selected");var C=S}else if(v<f){e(this).removeClass("selected");var C=S-t.options.slide_width*(f-v)}else if(v>f){e(this).removeClass("selected");var C=S-t.options.slide_width*(f-v)}e(this).finish(),e(this).stop().animate({left:C+"px"},t.options.easingSpeed,t.options.easingStyle,function(){t.checkheight()}),v++})},t.goto=function(f){t.options.loop?f=="next"?(u<s?u++:u=1,r.find(".slide").each(function(){e(this).finish(),e(this).stop().animate({left:"-="+t.options.slide_width+"px"},t.options.easingSpeed,t.options.easingStyle,function(){e(this).position().left<0&&e(this).css({left:t.options.slide_width*(s-1)}),t.checkheight()})})):f=="prev"&&(r.find(".slide:nth-child("+u+")").each(function(){e(this).finish(),e(this).css({left:"-"+t.options.slide_width+"px"})}),r.find(".slide").each(function(){e(this).finish(),e(this).stop().animate({left:"+="+t.options.slide_width+"px"},t.options.easingSpeed,t.options.easingStyle,function(){t.checkheight()})}),u>1?u--:u=s):f=="next"?(a.finish(),Math.abs(a.position().left)<c&&a.stop().animate({left:"-="+t.options.slide_width+"px"},t.options.easingSpeed,t.options.easingStyle,function(){t.checkButtons(),t.checkheight()})):f=="prev"&&(a.finish(),Math.abs(a.position().left)>g&&a.stop().animate({left:"+="+t.options.slide_width+"px"},t.options.easingSpeed,t.options.easingStyle,function(){t.checkButtons(),t.checkheight()}))},t.checkButtons=function(){t.options.loop||s>t.options.slides_visible&&(Math.abs(a.position().left)>=c?h.addClass("disable"):h.removeClass("disable"),Math.abs(a.position().left)<=g?d.addClass("disable"):d.removeClass("disable"))},t.refactorLayout=function(){var f=r.find(".slide:nth-child(1)").outerWidth(),S=0;t.options.slide_width=f,r.find(".slide").each(function(){e(this).css({left:t.options.slide_width*S}),S++}
1),S<t.options.slides_visible&&t.centerSlider(Math.floor(S/2))},t.checkheight=function(){var f=0;t.$el.find(".slide").each(function(){e(this).outerHeight()>f&&(f=e(this).outerHeight())}),t.$el.find(".slides").stop(),t.$el.find(".slides").animate({height:f},500,function(){})},t.init()},e.slider.defaultOptions={style:"default",slide_width:261,easingSpeed:1e3,easingStyle:"swing",slides_visible:5,loop:!1,arrow_height:!0,startslide:"center"},e.fn.slider=function(i){return this.each(function(){new e.slider(this,i)})}})(l);(function(){pt();var e=document.querySelectorAll(".qtoggle");for(var i of e)(function(r){const a=$e(r.parentElement);function c(){je(a,a.scrollHeight),r.setAttribute("aria-expanded",!0),r.classList.add("open")}function g(){je(a,0),r.setAttribute("aria-expanded",!1),r.classList.remove("open")}function h(){if(window.location.hash==="#"+r.id){for(var d of e)je($e(d.parentElement),0),d.classList.remove("open");setTimeout(function(){c(),We(r.getBoundingClientRect().top+window.pageYOffset)},100)}}h(),window.addEventListener("hashchange",h),r.addEventListener("click",function(d){d.target.classList.contains("open")?g():(history.pushState({},"",window.location.pathname+"#"+r.id),c())})})(i);var n=document.querySelectorAll(".qscroll");for(var t of n)t.addEventListener("click",function(r){var a=r.target.getAttribute("data-answer"),c=Rt(r.target.parentElement,a);We(c.getBoundingClientRect().top+window.pageYOffset),window.location.hash=a});var s=document.querySelectorAll(".top");for(var o of s)o.addEventListener("click",function(){We(0)});window.addEventListener("resize",function(){pt()})})();function pt(){var e=document.querySelectorAll(".faq-answer.toggle");for(var i of e)i.parentElement.querySelector(".qtoggle").classList.contains("open")?i.style.height="unset":i.style.height="0"}function je(e,i){var n=i>e.offsetHeight?1:-1,t=setInterval(function(){var s=e.offsetHeight+30*n;s=s>0?s:0,e.style.height=s+"px",e.offsetHeight<=i&&n===-1?(e.style.height="0px",clearInterval(t)):e.offsetHeight>=i&&n===1&&(e.style.height=i+"px",clearInterval(t))},20)}function $e(e){if(!e)return;let i=e.querySelector(".faq-answer");return i||$e(e.parentElement)}function We(e){var i=window.getComputedStyle(document.querySelector("html")).getPropertyValue("scroll-behavior"),n=document.querySelector("#header");if(n||(n=document.querySelector(".header")),n){var t=window.getComputedStyle(n).getPropertyValue("position");if(["absolute","sticky","fixed"].indexOf(t)!=-1){var s=n.offsetHeight;e-=s}}e=e>0?e:0;var o=window.matchMedia("(prefers-reduced-motion: reduce)");if(i!="smooth"&&!o.matches){document.querySelector("html").style["scroll-behavior"]="auto";var r=e>window.pageYOffset?1:-1,a=setInterval(function(){var c=Math.abs(window.pageYOffset-e)/3+30,g=window.pageYOffset+c*r;window.scrollTo(0,g),(window.pageYOffset<=e&&r===-1||window.pageYOffset>=e&&r===1||document.body.scrollHeight<=Math.ceil(window.pageYOffset+window.innerHeight))&&(window.scrollTo(0,e),Ce(a,i))},20);window.addEventListener("wheel",function(){Ce(a,i)}),window.addEventListener("touchmove",function(){Ce(a,i)})}else window.scrollTo(0,e)}function Ce(e,i){clearInterval(e),document.querySelector("html").style["scroll-behavior"]=i}function Rt(e,i){if(!e)return;let n=e.querySelector("#"+i);return n||Rt(e.parentElement,i)}(function(e){e(window).on("load",function(){e(".clm-products-slider").slick({infinite:!0,slidesToShow:2,slidesToScroll:2,arrows:!1,dots:!0,responsive:[{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]})})})(l);const Ve=document.querySelector("form#dealer-resources-download-form button.download-selected");function rt(){if(!Ve)return;document.querySelectorAll('form#dealer-resources-download-form input[type="checkbox"]:checked').length?Ve.disabled=!1:Ve.disabled=!0}rt();function mt(e){const i=e.querySelector('input[type="checkbox"]');if(i){const n=i.checked;i.checked=!n}rt()}function zt(){document.querySelectorAll("tr.dealer-resources-file").forEach(e=>{e.addEventListener("click",function(){mt(e)})}),document.querySelectorAll(".dealer-image").forEach(e=>{e.addEventListener("click",function(){mt(e)})})}zt();const Ue=document.querySelector("form.dealer-text-search div.field.text-with-button");(()=>{if(Ue){let e=function(){!i||!n||(i.value?n.classList.remove("desktop-hide"):n.classList.add("desktop-hide"))};const i=Ue.querySelector('input[type="text"]');if(!i)return;let n=document.querySelector("form.dealer-text-search div.field.text-with-button .clear-button");
1n||(n=document.createElement("div"),n.className="clear-button",Ue.appendChild(n)),n.addEventListener("click",()=>{i&&(i.value="",e(),i.focus())}),e(),i.addEventListener("input",()=>{e()})}})();const gt=document.querySelector("form#Form_DealerResourceCategoryTitleFilterForm"),vt=document.querySelector("#Form_DealerResourceCategoryTitleFilterForm_Search"),Ge=document.querySelector("form.product-category-filter-form"),yt=document.querySelector("#Form_DealerResourceCategoryFilterForm_Search");!gt||!vt||!Ge||!yt||gt.addEventListener("submit",function(e){e.preventDefault(),yt.value=vt.value,Ge.dispatchEvent(new Event("submit")),Ge.scrollIntoView({behavior:"smooth"})});(function(e){e(document).ready(function(){e("select.dealer-dropdown").on("change",function(){e(".loading").show(),e(this).parents().filter("form").submit()}),e(".dealer-action").on("click",function(){e(".loading").show()}),e(".dealer-map-link").on("click",function(){var i=e(this).data("marker")-1;google.maps.event.trigger(gmarkers[i],"click")})})})(l);l(".clm-gallery-summary-slider").slick({slidesToShow:5,slidesToScroll:5,infinite:!0,arrows:!0,dots:!1,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}}]}).on("beforeChange",function(e,i,n,t){i.$slider[0].classList.add("interacted-with")});const se=document.querySelector("#gallery-modal");function Ot(){document.querySelectorAll(".gallery-grid-item").forEach(i=>{const n=i.querySelector(".gallery-item"),t=i.querySelectorAll(".gallery-modal-thumbnail-item");n&&n.addEventListener("click",s);function s(o){if(o.preventDefault(),!n||!se)return;se==null||se.classList.remove("hidden");const r=se.querySelector(".artist-name"),a=se.querySelector(".artist-location"),c=se.querySelector(".gallery-submission-description"),g=se.querySelector(".gallery-submission-slider"),h=se.querySelector(".gallery-submission-slider-thumbnails");if(r&&(r.innerText=n.dataset.artistname||""),a&&(a.innerText=n.dataset.location||""),c){let d=n.dataset.description||"";d&&(d=d.replace(/(<([^>]+)>)/ig,"")),c.innerText=d}if(g&&h){g.innerHTML="",g.classList.remove("slick-slider"),g.classList.remove("slick-initialized"),h.innerHTML="",h.classList.remove("slick-slider"),h.classList.remove("slick-initialized");const d=document.createElement("img");d.src=n.href,d.alt="Gallery Submission Image",g.appendChild(d),h.appendChild(d.cloneNode()),t.forEach(u=>{const f=document.createElement("img");f.src=u.dataset.src||"",f.alt="Gallery Submission Thumbnail",g.appendChild(f),h.appendChild(f.cloneNode())})}$t()}})}function $t(){l(".gallery-submission-slider").slick({lazyLoad:"progressive",slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,asNavFor:".gallery-submission-slider-thumbnails"}),ei(l(".gallery-submission-slider-thumbnails"))}function ei(e){e.slick({lazyLoad:"progressive",slidesToShow:4,slidesToScroll:1,asNavFor:".gallery-submission-slider",focusOnSelect:!0,infinite:!1,responsive:[{breakpoint:600,settings:{slidesToShow:2}}]})}const St=document.querySelector('button[name="action_ProcessUserGallerySearchForm"]'),Pe=document.querySelector("#Form_UserGallerySearchForm_PreviousSearchTerms"),bt=document.querySelectorAll(".gallery-clear-filter"),Ct=document.querySelector(".gallery-clear-filter.clear-all-btn");bt&&Pe&&St&&Ct&&bt.forEach(e=>{e.addEventListener("click",()=>{const i=e.dataset.value;i&&(Pe.value=Pe.value.replace(new RegExp(`${i},?`),"").replace(/,$/,""),Pe.value?St.click():Ct.click())})});var qe=l('input[type="file"]#Form_TheUserGallerySubmissionForm_Images'),Me=l('input[type="submit"]#Form_TheUserGallerySubmissionForm_action_processTheUserGallerySubmissionForm');l(qe).change(function(){parseInt(qe.get(0).files.length)>3?(alert("You can only upload a maximum of 3 files"),l(Me).attr("disabled",!0)):l(Me).attr("disabled",!1);for(var e=0,i=0;i<qe.get(0).files.length;++i)e+=qe.get(0).files[i].size;e>16777216?(alert("The total size of your files must be less than 16MB"),l(Me).attr("disabled",!0)):l(Me).attr("disabled",!1)});Ot();(function(e){e(window).on("load",function(){var i=e(".grid").masonry({columnWidth:".grid-sizer",gutter:".gutter-sizer",itemSelector:".grid-item",percentPosition:!0}),n=2;e(".gallery-load-more-button").click(function(){var t=document.location.href.split("").reverse()[0]==="/"?document.location.href:document.location.href+"/";try{e(".gallery-load-more-button").hide(),e(".gallery-load-more-button + img").show(),e.ajax({url:t+"loadMoreGallerySubmissions/"+n,type:"GET"}).done(function(s){e(".gallery-load-more-button").show(),e(".gallery-load-more-button + img").hide();var o=e(s);i.append(o).masonry("appended",o),Ot(),setTimeout(function(){i.masonry("layout")},1e3),n++,(s.match(/<a/g)||[]).length<15&&(e(".gallery-load-more-button").remove(),e(".gallerypage .btn-container").append('<h2 class="text-center">No more submissions</h2>'))})}catch(s){console.log("Error:"+s)}})})})(l);const wt=document.querySelector("#header"),Be=document.querySelector("#header-nav"),kt=document.querySelector("#header-extra-nav"),et=document.querySelector("#header-nav-responsive-bg"),Ie=document.querySelector("#hamburger");l(Ie).on("click",It);l(et).on("click",It);function It(){l(Ie).hasClass("is-active")?(Be.classList.remove("is-open"),wt.classList.remove("nav-open"),l(kt).removeClass("is-open"),l(Ie).removeClass("is-active"),l(et).removeClass("is-active")):(window.innerWidth<1025?(Be.classList.add("is-open"),wt.classList.add("nav-open")):l(kt).addClass("is-open"),l(Ie).addClass("is-active"),l(et).addClass("is-active"))}l("#header-nav-responsive-bg").on("click",function(e){l("button.hamburger").removeClass("is-active"),l(this).hide(),l(".header .header-bottom").hasClass("transparent-flag")&&l(".header .header-bottom").addClass("transparent"),l(".header").hasClass("fixed")||(l(".header .toggled-color-logo").hide(),l(".header .toggled-white-logo").show())});l("#header-nav .hassuper > span.arrow").on("click",function(e){window.innerWidth<=1024&&(e.preventDefault(),l(this).parent().hasClass("is-open")?(l(this).parent().find(".super").removeClass("is-open"),l(this).parent().removeClass("is-open").addClass("is-closed")):(l(this).parent().find(".super").addClass("is-open"),l(this).parent().removeClass("is-closed").addClass("is-open")))});l("#header-nav .hasdrop > span.arrow").on("click",function(e){window.innerWidth<=1024&&(e.preventDefault(),l(this).parent().hasClass("is-open")?(l(this).parent().find("ul").hide(),l(this).parent().removeClass("is-open").addClass("is-closed")):(l(this).parent().find("ul").show(),l(this).parent().removeClass("is-closed").addClass("is-open")))});l(window).resize(function(){l(window).outerWidth()>1024?(l("#header-nav-responsive-bg").css("display","none"),Be.classList.add("is-open"),l("#header-nav .super, #header-nav .hasdrop ul").css("display",""),l("#header-nav li.hassuper.is-open, #header-nav li.hasdrop.is-open").removeClass("is-open")):l("#hamburger").hasClass("is-active")?l("#header-nav-responsive-bg").show():Be.classList.remove("is-open")});var ti=l("#header-nav li.hasdrop, #header-nav li.hassuper");ti.each(function(){var e=l(this).children("a"),i='<button class="visuallyhidden" aria-haspopup="true">show submenu for “'+e.text()+"”</button>";e.after(i),l(this).children("button").click(function(n){var t=l(this).parent();t.hasClass("open")?(t.removeClass("open"),t.attr("aria-expanded","fal
1se"),t.children("a").attr("aria-expanded","false"),t.children("button").attr("aria-expanded","false")):(t.addClass("open"),t.attr("aria-expanded","true"),t.children("a").attr("aria-expanded","true"),t.children("button").attr("aria-expanded","true")),n.preventDefault()})});l("button.hamburger").click(function(){l(this).hasClass("is-active")&&l(".header-nav a").first().focus()});Dt();l(window).on("scroll",function(){Dt()});function Dt(){l(window).scrollTop()>0?l(".header").hasClass("fixed")||l(".header").addClass("fixed"):l(".header").removeClass("fixed")}l(window).on("load",function(){l(".notifcation-close").on("click",function(e){var i=l(this).closest(".notification"),n=l.ajax({url:l(this).data("path"),type:"GET"});n.done(function(t){i.slideUp(800)}),n.fail(function(t,s){console.log("Error: "+s)})})});l(window).on("load",function(){var e=document.querySelectorAll(".parallax-woodchips-right img");e.forEach(function(n){new ht(n,{orientation:"up right",delay:.6,transition:"cubic-bezier(0,0,0,1)"})});var i=document.querySelectorAll(".parallax-woodchips-left img");i.forEach(function(n){new ht(n,{orientation:"up left",delay:.6,transition:"cubic-bezier(0,0,0,1)"})})});const we=document.querySelector("#popup");if(we){const e=we.dataset.popupid||"";setTimeout(()=>ii(e),Number(we.dataset.popuptime))}function ii(e){we&&Mt.show([{src:we,type:"inline"}],{on:{destroy:function(){ni(e)}}})}function ni(e,i){fetch(`popup/ClosePopup/${e}`,{headers:{"x-requested-with":"XMLHttpRequest"}}).then(n=>n.text()).then(()=>{}).catch(n=>{console.error("Error:",n)})}(function(e){e(document).ready(function(){var i=e("form.shoppingcart-controls"),n=e("form.shoppingcart-controls input.checkbox"),t=e("form.shoppingcart-controls input.checkbox:checked"),s=e(".view-all-button");e(t).length===0&&e(s).find("i").css("color","#71123D"),e(n).on("change",function(){e(s).find("i").css("color","#707070"),i.submit()}),e(s).click(function(){e(s).find("i").css("color","#71123D"),e(n).attr("checked",!1),i.submit()})})})(l);l(function(){var e={url:function(i){return"/home/searchjson"},getValue:function(i){return i.text},ajaxSettings:{dataType:"json",method:"POST",data:{dataType:"json"}},preparePostData:function(i){return i.phrase=l("#SearchForm_SiteSearchForm_Search").val(),i},template:{type:"links",fields:{link:"website-link"}},requestDelay:400};l("#SearchForm_SiteSearchForm_Search").easyAutocomplete(e),l(".modal-link").on("click",function(){l(l(this).data("modalid")).show(),l(l(this).data("modalid")+" input.text").focus()}),l(".modal-window .bg").on("click",function(){l(this).parent().hide()}),document.addEventListener("keyup",function(i){i.key==="Escape"&&l(".modal-window .bg").parent().hide()}),document.querySelectorAll(".search-modal-close-btn").forEach(i=>{i.addEventListener("click",function(){l(".modal-window .bg").parent().hide()})}),l(".modal-window a.close-link").hide()});(function(e){e(document).ready(function(){e("#Form_AddToCartForm input[name=ProductQuantity]").change(function(){Et()}),e("#Form_AddToCartForm .field.dropdown select, #Form_AddToCartForm input[type=checkbox]").on("input",function(){Et()});var i=e(".shoppingcart-checkoutordersummary"),n=e(i).html();e("select[name=ShippingServiceCode]").length>0&&e("select[name=ShippingServiceCode]").val()!=""&&Lt(e("select[name=ShippingServiceCode]")),e("select[name=ShippingServiceCode]").change(function(){e("select[name=ShippingServiceCode]").val()!=""?Lt(e(this)):e(i).html(n)}),e("input[type=radio][name=ShippingAddress]:checked").length<=0&&e("#Form_CheckoutShippingForm_ShippingAddress li:first-child input[type=radio][name=ShippingAddress]").prop("checked",!0),_t(e("input[type=radio][name=ShippingAddress]:checked")),e("input[type=radio][name=ShippingAddress]").on("change",function(){_t(e(this))}),e("#Form_CheckoutPaymentForm_SameAsShipping").click(function(){e(this).is(":checked")?e("#Form_CheckoutPaymentForm").find(".cart-SameAsShipping:input").each(function(){e(this).val(e(this).data("value"))}):e("#Form_CheckoutPaymentForm").find(".cart-SameAsShipping:input").each(function(){e(this).val("")}
1),e("#Form_CheckoutPaymentForm_State_Holder").hide(),e("#Form_CheckoutPaymentForm_ProvinceRegion_Holder").hide(),e("#Form_CheckoutPaymentForm_Country").val()=="US"?e("#Form_CheckoutPaymentForm_State_Holder").show():e("#Form_CheckoutPaymentForm_ProvinceRegion_Holder").show()}),e("#Form_CheckoutPaymentForm_State_Holder").hide(),e("#Form_CheckoutPaymentForm_ProvinceRegion_Holder").hide(),e("#Form_CheckoutPaymentForm_Country").val()=="US"?e("#Form_CheckoutPaymentForm_State_Holder").show():e("#Form_CheckoutPaymentForm_ProvinceRegion_Holder").show(),e("#Form_CheckoutPaymentForm_Country").on("change",function(){e("#Form_CheckoutPaymentForm_Country").val()=="US"?(e("#Form_CheckoutPaymentForm_State_Holder").show(),e("#Form_CheckoutPaymentForm_ProvinceRegion_Holder").hide()):(e("#Form_CheckoutPaymentForm_State_Holder").hide(),e("#Form_CheckoutPaymentForm_ProvinceRegion_Holder").show())}),e("#Form_CheckoutShippingForm_State_Holder").hide(),e("#Form_CheckoutShippingForm_ProvinceRegion_Holder").hide(),e("#Form_CheckoutShippingForm_Country").val()=="US"?e("#Form_CheckoutShippingForm_State_Holder").show():e("#Form_CheckoutShippingForm_ProvinceRegion_Holder").show(),e("#Form_CheckoutShippingForm_Country").on("change",function(){e("#Form_CheckoutShippingForm_Country").val()=="US"?(e("#Form_CheckoutShippingForm_State_Holder").show(),e("#Form_CheckoutShippingForm_ProvinceRegion_Holder").hide()):(e("#Form_CheckoutShippingForm_State_Holder").hide(),e("#Form_CheckoutShippingForm_ProvinceRegion_Holder").show())}),e("#Form_CustomerShippingAddressForm_State_Holder").hide(),e("#Form_CustomerShippingAddressForm_ProvinceRegion_Holder").hide(),e("#Form_CustomerShippingAddressForm_Country").val()=="US"?e("#Form_CustomerShippingAddressForm_State_Holder").show():e("#Form_CustomerShippingAddressForm_ProvinceRegion_Holder").show(),e("#Form_CustomerShippingAddressForm_Country").on("change",function(){e("#Form_CheckoutShippingForm_Country").val()=="US"?(e("#Form_CustomerShippingAddressForm_State_Holder").show(),e("#Form_CustomerShippingAddressForm_ProvinceRegion_Holder").hide()):(e("#Form_CustomerShippingAddressForm_State_Holder").hide(),e("#Form_CustomerShippingAddressForm_ProvinceRegion_Holder").show())}),e(".account-address-remove").on("click",function(t){var s=confirm("Are you sure you wish to remove this address?");s||t.preventDefault()}),e("#Form_CustomerRegistrationForm_Password_Holder .showOnClickContainer").hide(),e("#Form_CustomerRegistrationForm_Password_Holder a").on("click",function(t){e("#Form_CustomerRegistrationForm_Password_Holder .showOnClickContainer").show()}),e(".payment-btn").on("click",function(){e(".pay-credit").toggle()}),e(".modal-window .bg").on("click",function(){e(this).parent().hide()}),e(".modal-window a.close-link").hide()})})(l);function _t(e){if(e.length>0)switch(e.val()){case"0":l("#Form_CheckoutShippingForm_ShippingAddressFields_Holder").show();break;default:l("#Form_CheckoutShippingForm_ShippingAddressFields_Holder").hide();break}else l("#Form_CheckoutShippingForm_ShippingAddressFields_Holder").show()}function Lt(e){var i=parseFloat(l('input[name="'+e.val()+'-RATE"]').val());l("#checkout-shipping-js-update").html("+ $"+i.toFixed(2));var n=parseFloat(l("#checkout-total-js-update").data("total"))+i;l("#checkout-total-js-update").html("$"+n.toFixed(2))}function Et(){var e="";l("#Form_AddToCartForm .field.dropdown select").each(function(){e+='"'+l(this).parent().parent().find("label").html()+'":"'+l(this).val()+'",'}),l("#Form_AddToCartForm input[type=checkbox]").each(function(){this.checked&&(e+='"'+l(this).parent().parent().find("label").html()+'":"'+l(this).val()+'",')}),e="{"+e.substring(0,e.length-1)+"}";var i=window.location.pathname,n=i.replace("/product/","/product-price/");l.ajax({url:n,data:{ProductQuantity:l("#Form_AddToCartForm input[name=ProductQuantity]").val(),ProductAttributes:e}}).done(function(t){var s=l.parseJSON(t);if(s.Price){var o=parseFloat(s.Price);l("#js-product-detail-price").html("$"+o.toFixed(2))}var r=o*l("#Form_AddToCartForm input[name=ProductQuantity]").val();l("#js-product-qty-total").html("$"+r.toFixed(2)),s.Table&&(l("#js-product-detail-number").html(s.Table.UniqueID),s.Table.NonCancellableReturnable==1?l("#js-product-detail-cancel").html("<em>(Non-Cancellable/Non-Returnable)</em>"):l("#js-product-detail-cancel").html(""))})}var I=function(e){return e.Configuration=function(n){var t={data:"list-required",url:"list-required",dataType:"json",listLocation:function(d){return d},xmlElementName:"",getValue:function(d){return d},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(d,u){return d=t.getValue(d),u=t.getValue(u),d<u?-1:d>
1u?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(d,u){return d.search(u)>-1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!1,ajaxSettings:{},preparePostData:function(d,u){return d},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},s=["ajaxSettings","template"];this.get=function(d){return t[d]},this.equals=function(d,u){return!!(g(d)&&t[d]===u)},this.checkDataUrlProperties=function(){return!(t.url==="list-required"&&t.data==="list-required")},this.checkRequiredProperties=function(){for(var d in t)if(t[d]==="required")return logger.error("Option "+d+" must be defined"),!1;return!0},this.printPropertiesThatDoesntExist=function(d,u){h(d,u)},o(),r(),t.loggerEnabled===!0&&h(console,n),c(),a();function o(){if(n.dataType==="xml"&&(n.getValue||(n.getValue=function(C){return l(C).text()}),n.list||(n.list={}),n.list.sort||(n.list.sort={}),n.list.sort.method=function(C,x){return C=n.getValue(C),x=n.getValue(x),C<x?-1:C>x?1:0},n.list.match||(n.list.match={}),n.list.match.method=function(C,x){return C.search(x)>-1}),n.categories!==void 0&&n.categories instanceof Array){for(var d=[],u=0,f=n.categories.length;u<f;u+=1){var S=n.categories[u];for(var v in t.categories[0])S[v]===void 0&&(S[v]=t.categories[0][v]);d.push(S)}n.categories=d}}function r(){t=d(t,n);function d(u,f){var S=u||{};for(var v in u)f[v]!==void 0&&f[v]!==null&&(typeof f[v]!="object"||f[v]instanceof Array?S[v]=f[v]:d(u[v],f[v]));return f.data!==void 0&&f.data!==null&&typeof f.data=="object"&&(S.data=f.data),S}}function a(){if(t.url!=="list-required"&&typeof t.url!="function"){var d=t.url;t.url=function(){return d}}if(t.ajaxSettings.url!==void 0&&typeof t.ajaxSettings.url!="function"){var d=t.ajaxSettings.url;t.ajaxSettings.url=function(){return d}}if(typeof t.listLocation=="string"){var u=t.listLocation;t.dataType.toUpperCase()==="XML"?t.listLocation=function(S){return l(S).find(u)}:t.listLocation=function(S){return S[u]}}if(typeof t.getValue=="string"){var f=t.getValue;t.getValue=function(S){return S[f]}}n.categories!==void 0&&(t.categoriesAssigned=!0)}function c(){n.ajaxSettings!==void 0&&typeof n.ajaxSettings=="object"?t.ajaxSettings=n.ajaxSettings:t.ajaxSettings={}}function g(d){return t[d]!==void 0&&t[d]!==null}function h(d,u){f(t,u);function f(S,v){for(var C in v)S[C]===void 0&&d.log("Property '"+C+"' does not exist in EasyAutocomplete options API."),typeof S[C]=="object"&&l.inArray(C,s)===-1&&f(S[C],v[C])}}},e}(I||{}),I=function(e){return e.Logger=function(){this.error=function(n){console.log("ERROR: "+n)},this.warning=function(n){console.log("WARNING: "+n)}},e}(I||{}),I=function(e){return e.Constans=function(){var n={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(t){return n[t]}},e}(I||{}),I=function(e){return e.ListBuilderService=function(n,t){this.init=function(r){var a=[],c={};return c.data=n.get("listLocation")(r),c.getValue=n.get("getValue"),c.maxListSize=n.get("list").maxNumberOfElements,a.push(c),a},this.updateCategories=function(r,a){if(n.get("categoriesAssigned")){r=[];for(var c=0;c<n.get("categories").length;c+=1){var g=s(n.get("categories")[c],a);r.push(g)}}return r},this.convertXml=function(r){if(n.get("dataType").toUpperCase()==="XML")for(var a=0;a<r.length;a+=1)r[a].data=o(r[a]);return r},this.processData=function(r,a){for(var c=0,g=r.length;c<g;c+=1)r[c].data=t(n,r[c],a);return r},this.checkIfDataExists=function(r){for(var a=0,c=r.length;a<c;a+=1)if(r[a].data!==void 0&&r[a].data instanceof Array&&r[a].data.length>0)return!0;return!1};function s(r,a){var c={};if(n.get("dataType").toUpperCase()==="XML"?c=h():c=d(),r.header!==void 0&&(c.header=r.header),r.maxNumberOfElements!==void 0&&(c.maxNumberOfElements=r.maxNumberOfElements),n.get("list").maxNumberOfElements!==void 0&&(c.maxListSize=n.get("list").maxNumberOfElements),r.getValue!==void 0)if(typeof r.getValue=="string"){var g=r.getValue;c.getValue=function(u){return u[g]}}else typeof r.getValue=="function"&&(c.getValue=r.getValue);else c.getValue=n.get("getValue");return c;function h(){var u={},f;return r.xmlElementName!==void 0&&(u.xmlElementName=r.xmlElementName),r.listLocation!==void 0?f=r.listLocation:n.get("listLocation")!==void 0&&(f=n.get("listLocation")),f!==void 0?typeof f=="string"?u.data=l(a).find(f):typeof f=="function"&&(u.data=f(a)):u.data=a,u}function d(){var u={};
1return r.listLocation!==void 0?typeof r.listLocation=="string"?u.data=a[r.listLocation]:typeof r.listLocation=="function"&&(u.data=r.listLocation(a)):u.data=a,u}}function o(r){var a=[];return r.xmlElementName===void 0&&(r.xmlElementName=n.get("xmlElementName")),l(r.data).find(r.xmlElementName).each(function(){a.push(this)}),a}},e}(I||{}),I=function(e){return e.proccess=function(n,t,s){e.proccess.match=c;var o=t.data,r=s;return o=a(o,r),o=g(o),o=h(o),o;function a(d,u){var f=[],S="";if(n.get("list").match.enabled)for(var v=0,C=d.length;v<C;v+=1)S=n.get("getValue")(d[v]),c(S,u)&&f.push(d[v]);else f=d;return f}function c(d,u){return n.get("list").match.caseSensitive||(typeof d=="string"&&(d=d.toLowerCase()),u=u.toLowerCase()),!!n.get("list").match.method(d,u)}function g(d){return t.maxNumberOfElements!==void 0&&d.length>t.maxNumberOfElements&&(d=d.slice(0,t.maxNumberOfElements)),d}function h(d){return n.get("list").sort.enabled&&d.sort(n.get("list").sort.method),d}},e}(I||{}),I=function(e){return e.Template=function(n){var t={basic:{type:"basic",method:function(a){return a},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(a){return a+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(a){return a},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(a){return a},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(a){return a},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}},s=function(a){var c=a.fields,g;return a.type==="description"?(g=t.description.method,typeof c.description=="string"?g=function(h,d){return h+" - <span>"+d[c.description]+"</span>"}:typeof c.description=="function"&&(g=function(h,d){return h+" - <span>"+c.description(d)+"</span>"}),g):a.type==="iconRight"?(typeof c.iconSrc=="string"?g=function(h,d){return h+"<img class='eac-icon' src='"+d[c.iconSrc]+"' />"}:typeof c.iconSrc=="function"&&(g=function(h,d){return h+"<img class='eac-icon' src='"+c.iconSrc(d)+"' />"}),g):a.type==="iconLeft"?(typeof c.iconSrc=="string"?g=function(h,d){return"<img class='eac-icon' src='"+d[c.iconSrc]+"' />"+h}:typeof c.iconSrc=="function"&&(g=function(h,d){return"<img class='eac-icon' src='"+c.iconSrc(d)+"' />"+h}),g):a.type==="links"?(typeof c.link=="string"?g=function(h,d){return"<a href='"+d[c.link]+"' >"+h+"</a>"}:typeof c.link=="function"&&(g=function(h,d){return"<a href='"+c.link(d)+"' >"+h+"</a>"}),g):a.type==="custom"?a.method:t.basic.method},o=function(a){return!a||!a.type?t.basic.method:a.type&&t[a.type]?s(a):t.basic.method},r=function(a){var c=function(){return""};return!a||!a.type?c:a.type&&t[a.type]?function(){var g=t[a.type].cssClass;return function(){return g}}():c};this.getTemplateClass=r(n),this.build=o(n)},e}(I||{}),I=function(e){return e.main=function(n,t){var s=new e.Constans,o=new e.Configuration(t),r=new e.Logger,a=new e.Template(t.template),c=new e.ListBuilderService(o,e.proccess),g=o.equals,h=n,d="",u=[],f=-1,S;e.consts=s,this.getConstants=function(){return s},this.getConfiguration=function(){return o},this.getContainer=function(){return d},this.getSelectedItemIndex=function(){return f},this.getItems=function(){return u},this.getItemData=function(L){return u.length<L||u[L]===void 0?-1:u[L]}
1,this.getSelectedItemData=function(){return this.getItemData(f)},this.build=function(){C()},this.init=function(){v()};function v(){if(h.length===0){r.error("Input field doesn't exist.");return}if(!o.checkDataUrlProperties()){r.error("One of options variables 'data' or 'url' must be defined.");return}if(!o.checkRequiredProperties()){r.error("Will not work without mentioned properties.");return}C(),G()}function C(){h.parent().hasClass(s.getValue("WRAPPER_CSS_CLASS"))&&(D(),j()),L(),K(),d=l("#"+x()),o.get("placeholder")&&h.attr("placeholder",o.get("placeholder"));function L(){var p=l("<div>"),m=s.getValue("WRAPPER_CSS_CLASS");o.get("theme")&&o.get("theme")!==""&&(m+=" eac-"+o.get("theme")),o.get("cssClasses")&&o.get("cssClasses")!==""&&(m+=" "+o.get("cssClasses")),a.getTemplateClass()!==""&&(m+=" "+a.getTemplateClass()),p.addClass(m),h.wrap(p),o.get("adjustWidth")===!0&&N()}function N(){var p=h.outerWidth();h.parent().css("width",p)}function j(){h.unwrap()}function K(){var p=l("<div>").addClass(s.getValue("CONTAINER_CLASS"));p.attr("id",x()).prepend(l("<ul>")),function(){p.on("show.eac",function(){switch(o.get("list").showAnimation.type){case"slide":var m=o.get("list").showAnimation.time,b=o.get("list").showAnimation.callback;p.find("ul").slideDown(m,b);break;case"fade":var m=o.get("list").showAnimation.time,b=o.get("list").showAnimation.callback;p.find("ul").fadeIn(m);break;default:p.find("ul").show();break}o.get("list").onShowListEvent()}).on("hide.eac",function(){switch(o.get("list").hideAnimation.type){case"slide":var m=o.get("list").hideAnimation.time,b=o.get("list").hideAnimation.callback;p.find("ul").slideUp(m,b);break;case"fade":var m=o.get("list").hideAnimation.time,b=o.get("list").hideAnimation.callback;p.find("ul").fadeOut(m,b);break;default:p.find("ul").hide();break}o.get("list").onHideListEvent()}).on("selectElement.eac",function(){p.find("ul li").removeClass("selected"),p.find("ul li").eq(f).addClass("selected"),o.get("list").onSelectItemEvent()}).on("loadElements.eac",function(m,b,F){var H="",w=p.find("ul");w.empty().detach(),u=[];for(var k=0,_=0,q=b.length;_<q;_+=1){var P=b[_].data;if(P.length!==0){b[_].header!==void 0&&b[_].header.length>0&&w.append("<div class='eac-category' >"+b[_].header+"</div>");for(var A=0,Z=P.length;A<Z&&k<b[_].maxListSize;A+=1)H=l("<li><div class='eac-item'></div></li>"),function(){var Ee=A,ge=k,Fe=b[_].getValue(P[Ee]);H.find(" > div").on("click",function(){h.val(Fe).trigger("change"),f=ge,M(ge),o.get("list").onClickEvent(),o.get("list").onChooseEvent()}).mouseover(function(){f=ge,M(ge),o.get("list").onMouseOverEvent()}).mouseout(function(){o.get("list").onMouseOutEvent()}).html(a.build(ne(Fe,F),P[Ee]))}(),w.append(H),u.push(P[A]),k+=1}}p.append(w),o.get("list").onLoadEvent()})}(),h.after(p)}function D(){h.next("."+s.getValue("CONTAINER_CLASS")).remove()}function ne(p,m){return o.get("highlightPhrase")&&m!==""?le(p,m):p}function ie(p){return p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function le(p,m){var b=ie(m);return(p+"").replace(new RegExp("("+b+")","gi"),"<b>$1</b>")}}function x(){var L=h.attr("id");return L=s.getValue("CONTAINER_ID")+L,L}function G(){L();function L(){g("autocompleteOff",!0)&&le(),N(),j(),K(),D(),ne(),ie()}function N(){h.focusout(function(){var p=h.val(),m;o.get("list").match.caseSensitive||(p=p.toLowerCase());for(var b=0,F=u.length;b<F;b+=1)if(m=o.get("getValue")(u[b]),o.get("list").match.caseSensitive||(m=m.toLowerCase()),m===p){f=b,M(f);return}})}function j(){h.off("keyup").keyup(function(p){switch(p.keyCode){case 27:R(),E();break;case 38:p.preventDefault(),u.length>0&&f>0&&(f-=1,h.val(o.get("getValue")(u[f])),M(f));break;case 40:p.preventDefault(),u.length>0&&f<u.length-1&&(f+=1,h.val(o.get("getValue")(u[f])),M(f));break;default:if(p.keyCode>40||p.keyCode===8){var m=h.val();o.get("list").hideOnEmptyPhrase===!0&&p.keyCode===8&&m===""?R():o.get("requestDelay")>0?(S!==void 0&&clearTimeout(S),S=setTimeout(function(){b(m)},o.get("requestDelay"))):b(m)}break}function b(F){if(F.length<o.get("minCharNumber"))return;if(o.get("data")!=="list-required"){var H=o.get("data"),w=c.init(H);w=c.updateCategories(w,H),w=c.processData(w,F),te(w,F),h.parent().find("li").length>0?X():R()}var k=_();(k.url===void 0||k.url==="")&&(k.url=o.get("url")),(k.dataType===void 0||k.dataType==="")&&(k.dataType=o.get("dataType")),k.url!==void 0&&k.url!=="list-required"&&(k.url=k.url(F),k.data=o.get("preparePostData")(k.data,F),l.ajax(k).done(function(P){var A=c.init(P);A=c.updateCategories(A,P),A=c.convertXml(A),q(F,P)&&(A=c.processData(A,F),te(A,F)),c.checkIfDataExists(A)&&h.parent().find("li").length>0?X():R(),o.get("ajaxCallback")()}).fail(function(){r.warning("Fail to load response data")}).always(function(){}));function _(){var P={},A=o.get("ajaxSettings")||{};for(var Z in A)P[Z]=A[Z];return P}function q(P,A){return o.get("matchResponseProperty")!==!1?typeof o.get("matchResponseProperty")=="str
1ing"?A[o.get("matchResponseProperty")]===P:typeof o.get("matchResponseProperty")=="function"?o.get("matchResponseProperty")(A)===P:!0:!0}}})}function K(){h.on("keydown",function(p){p=p||window.event;var m=p.keyCode;if(m===38)return suppressKeypress=!0,!1}).keydown(function(p){p.keyCode===13&&f>-1&&(h.val(o.get("getValue")(u[f])),o.get("list").onKeyEnterEvent(),o.get("list").onChooseEvent(),f=-1,R(),p.preventDefault())})}function D(){h.off("keypress")}function ne(){h.focus(function(){h.val()!==""&&u.length>0&&(f=-1,X())})}function ie(){h.blur(function(){setTimeout(function(){f=-1,R()},250)})}function le(){h.attr("autocomplete","off")}}function X(){d.trigger("show.eac")}function R(){d.trigger("hide.eac")}function M(L){d.trigger("selectElement.eac",L)}function te(L,N){d.trigger("loadElements.eac",[L,N])}function E(){h.trigger("blur")}},e.eacHandles=[],e.getHandle=function(i){return e.eacHandles[i]},e.inputHasId=function(i){return l(i).attr("id")!==void 0&&l(i).attr("id").length>0},e.assignRandomId=function(i){var n="";do n="eac-"+Math.floor(Math.random()*1e4);while(l("#"+n).length!==0);elementId=e.consts.getValue("CONTAINER_ID")+n,l(i).attr("id",n)},e.setHandle=function(i,n){e.eacHandles[n]=i},e}(I||{});(function(e){e.fn.easyAutocomplete=function(i){return this.each(function(){var n=e(this),t=new I.main(n,i);I.inputHasId(n)||I.assignRandomId(n),t.init(),I.setHandle(t,n.attr("id"))})},e.fn.getSelectedItemIndex=function(){var i=e(this).attr("id");return i!==void 0?I.getHandle(i).getSelectedItemIndex():-1},e.fn.getItems=function(){var i=e(this).attr("id");return i!==void 0?I.getHandle(i).getItems():-1},e.fn.getItemData=function(i){var n=e(this).attr("id");return n!==void 0&&i>-1?I.getHandle(n).getItemData(i):-1},e.fn.getSelectedItemData=function(){var i=e(this).attr("id");return i!==void 0?I.getHandle(i).getSelectedItemData():-1}})(l);const pe=document.querySelector(".product-detail-container"),Se=document.querySelector(".product-detail-container > .fw-container"),O=document.querySelector(".add-to-cart-container");st();window.addEventListener("scroll",st);window.addEventListener("resize",st);function st(){if(!pe||!Se||!O)return;if(window.innerWidth<=1024){O.classList.remove("sticky-active"),O.classList.remove("sticky-active-bottom"),O.style.removeProperty("left"),O.style.removeProperty("width");return}const e=window.scrollY,i=pe.offsetTop+pe.offsetHeight,n=Se.offsetWidth*.4,t=30;let s=0;const o=document.querySelector("#header");o&&(s=o.clientHeight),i<=e+s+O.offsetHeight+t?(O.classList.add("sticky-active-bottom"),O.classList.remove("sticky-active"),O.style.removeProperty("left"),O.style.removeProperty("width"),O.style.removeProperty("top")):pe.offsetTop<=e+s?(O.classList.add("sticky-active"),O.classList.remove("sticky-active-bottom"),O.style.left=`${Se.offsetLeft+Se.offsetWidth-n}px`,O.style.width=`${n}px`,O.style.top=`${s}px`):(O.classList.remove("sticky-active"),O.classList.remove("sticky-active-bottom"),O.style.removeProperty("left"),O.style.removeProperty("width"),O.style.removeProperty("top"))}const Re=Array.from(document.querySelectorAll(".product-detail-image")),he=document.querySelector(".product-detail-image-slide-indicators-container"),Ye=document.querySelector(".product-detail-image-slide-indicators-inner"),Xe=Array.from(document.querySelectorAll(".product-detail-image-slide-indicator"));window.addEventListener("load",at);window.addEventListener("scroll",at);window.addEventListener("resize",at);function at(){if(!Re||!Xe)return;const e=window.scrollY;if(Re.forEach(s=>{const o=s.offsetTop,r=s.offsetTop+s.offsetHeight;o<=e&&r>=e?Xe[Re.indexOf(s)].classList.add("active"):Xe[Re.indexOf(s)].classList.remove("active")}),!he||!Ye||!pe||!Se)return;const i=pe.offsetTop+pe.offsetHeight,n=Ye.offsetWidth/2,t=30;Ye.style.left=`-${n}px`,i<=e+450+n+t?(he.classList.add("sticky-active-bottom"),he.style.removeProperty("left"),he.style.bottom=`${t+n}px`):(he.classList.remove("sticky-active-bottom"),he.style.left=`${(window.innerWidth-Se.offsetWidth)/2-50}px`,he.style.removeProperty("bottom"))}Mt.bind("[data-fancybox]",{contentClick:"iterateZoom",Images:{initialSize:"fit",Panzoom:{panMode:"mousemove",mouseMoveFactor:1.1,maxScale:2,mouseMoveFriction:.12}}});const ze=document.querySelector(".product-description");if(ze){const e=ze.querySelectorAll("p");
1if(e.length>1){const i=document.createElement("div");i.classList.add("product-description-content"),e.forEach((t,s)=>{s>0&&i.appendChild(t)}),ze.appendChild(i);const n=document.createElement("button");n.classList.add("product-description-toggle"),n.classList.add("button"),n.classList.add("tan-btn"),n.innerHTML='Read More <i class="fa-regular fa-plus"></i>',ze.appendChild(n),n.addEventListener("click",()=>{i.classList.toggle("is-open"),i.classList.contains("is-open")?n.innerHTML='Read Less <i class="fa-regular fa-minus"></i>':n.innerHTML='Read More <i class="fa-regular fa-plus"></i>'})}}l(".related-product-slider .slider").slick({slidesToShow:4,slidesToScroll:1,arrows:!0,adaptiveHeight:!0,responsive:[{breakpoint:600,settings:{slidesToShow:1,centerMode:!0,arrows:!1}}]});l(function(){l(".product-accordion-container").on("click",function(){l(this).find(".product-accordion").hasClass("opened")?(l(this).find(".product-accordion").next(".product-accordion-content").hide(),l(this).find(".product-accordion").removeClass("opened").addClass("closed")):(l(this).find(".product-accordion").next(".product-accordion-content").show(),l(this).find(".product-accordion").removeClass("closed").addClass("opened"))})});const Ft=document.querySelector("#Form_CheckoutShippingServiceForm_ShippingServiceCode");if(Ft){const e=Ft.options;e.length==2&&(e[1].selected=!0)}const Oe=document.querySelector(".customer-service-widget"),Ke=document.querySelector(".marquee");(()=>{if(Oe){if(!Ke){Oe.classList.add("sticky");return}window.addEventListener("scroll",()=>{window.scrollY>Ke.offsetTop+Ke.offsetHeight?Oe.classList.add("sticky"):Oe.classList.remove("sticky")})}})();const xt=document.querySelector(".modal-close");xt&&xt.addEventListener("click",function(){var e;(e=document.querySelector(".modal"))==null||e.classList.add("hidden")});const At=document.querySelector(".modal-bg");At&&At.addEventListener("click",function(){var e;(e=document.querySelector(".modal"))==null||e.classList.add("hidden")});document.addEventListener("keyup",function(e){var i;e.key==="Escape"&&((i=document.querySelector(".modal"))==null||i.classList.add("hidden"))});const J=document.querySelector("form.product-category-filter-form"),Qe=document.querySelector('form.product-category-filter-form input[name="Start"]'),tt=document.querySelectorAll("form.product-category-filter-form .category-checkbox-filters li"),Y=document.querySelector('form.product-category-filter-form input[type="checkbox"][value="all_categories"]'),Tt=document.querySelector("ul.optionset.view-field"),Je=document.querySelector(".product-category-filter-form .sort-by-field"),Ht=document.querySelector(".product-category-filter-form .sort-by-field input"),ae=document.querySelector(".clear-all-categories-btn"),U=document.querySelector(".product-category-filter-form-results"),ke=document.querySelector(".category-checkbox-filters .toggle-btn"),Ze=document.querySelector(".category-checkbox-filters ul"),it=U==null?void 0:U.dataset.loaderSrc;let _e=!0;function Le(e){if(_e=!1,!J)return;const i=new URL(J.action),n=new FormData(e);let t=!1;for(let[s,o]of n)s.includes("Categories")&&o!="all_categories"&&(t=!0),o!="all_categories"&&s!="Start"&&i.searchParams.set(s,String(o));Y&&ae&&(t?(Y.checked=!1,ae.style.display="block"):(Y.checked=!0,ae.style.display="none")),Bt(i)}async function Bt(e){return U&&it&&(U.innerHTML=`<img src="${it}" alt="loader gif" class="products-loader"/>`,rt()),fetch(e.toString(),{headers:{"x-requested-with":"XMLHttpRequest"}}).then(i=>i.json()).then(i=>{U&&i.ProductsHTML&&(U.innerHTML=i.ProductsHTML,zt(),_e=!0),window.history.pushState({},"",e.toString().replace("ajax",""))}).catch(i=>console.log(i))}if(J&&U){let e=function(){!J||!ae||(tt.forEach(i=>{const n=i.querySelector('input[type="checkbox"]');n&&(n.value!="all_categories"?(i.classList.remove("active"),n.checked=!1):i.classList.add("active"))}),Y&&(Y.checked=!0),ae.style.display="none",Ze&&J&&Ze.classList.contains("active")&&Ze.classList.remove("active"),Le(J))};if(tt.forEach(i=>{const n=i.querySelector('input[type="checkbox"]');n&&i.addEventListener("click",()=>{n.value!="all_categories"&&(n.checked=!n.checked),nt(t=>t.checked),n.value!="all_categories"&&Le(J)})}),Y&&ae&&(Y.checked=!0,ae.style.display="none"),J.addEventListener("submit",i=>{i.preventDefault(),Le(J)}),ae&&ae.addEventListener("click",e),Y&&Y.addEventListener("click",e),Qe){const i=Number(U.dataset.loadMoreCount);let n=U.querySelectorAll(".product-category-filter-form-result").length%i===0;window.addEventListener("scroll",()=>{if(U.getBoundingClientRect().bottom<=window.innerHeight&&_e&&n){_e=!1,U.innerHTML+=`<img src="${it}" alt="loader gif" class="products-loader"/>`;const s=document.location.search;var t=document.location.origin+document.location.pathname;t=t.replace(/\/$/,"");const o=new URL(t+"/loadMoreProducts");return o.search=s,o.searchParams.set("Start",Qe.value),fetch(o.toString(),{headers:{"x-requested-with":"XMLHttpRequest"}}).then(r=>r.json()).then(r=>{var c;(c=U.querySelector(".products-loader"))==null||c.remove();const a=U.querySelector(".load-more-container");a?a.innerHTML+=r.ProductsHTML:U.innerHTML+=r.ProductsHTML,Qe.value=r.Start,_e=!0,n=r.CanLoadMore})}})}window.addEventListener("popstate",function(){Bt(new URL(document.location.href.replace(/\/$/,""))),nt(i=>new URLSearchParams(document.location.search).has(i.name),!0)})}Tt&&J&&Tt.addEventListener("change",()=>Le(J));function nt(e,i=!1){let n=!1;tt.forEach(t=>{var o,r,a;const s=t.querySelector('input[type="checkbox"]');
1s&&(s.value!="all_categories"&&(e(s)?(n=!0,i&&(s.checked=!0),t.classList.add("active")):(i&&(s.checked=!1),t.classList.remove("active"))),Y&&(n?(Y.checked=!1,(o=Y.parentElement)==null||o.classList.remove("active")):(Y.checked=!0,(r=Y.parentElement)==null||r.classList.add("active"))),ke&&((a=ke.parentElement)==null||a.classList.remove("active")))})}nt(e=>new URLSearchParams(document.location.search).has(e.name),!0);Je&&Ht&&J&&Je.addEventListener("click",e=>{Je.classList.toggle("active");const n=e.target.dataset.value;n&&(Ht.value=n,Le(J))});ke&&ke.addEventListener("click",()=>{var e;(e=ke.parentElement)==null||e.classList.toggle("active")});document.querySelectorAll(".clm-cta").forEach(e=>{const i=e.querySelector(".cta-modal-button"),n=e.querySelector(".modal");!i||!n||i.addEventListener("click",()=>{n.classList.remove("hidden")})});function lt(e,i=!1,n){const{AllOptionsCheckbox:t,CheckboxContainers:s,ClearAllFiltersButtons:o}=n;let r=!1;s&&s.forEach(a=>{var g,h;const c=a.querySelector('input[type="checkbox"]');c&&(c.value!="all_options"&&(e(c)?(r=!0,i&&(c.checked=!0),a.classList.add("active")):(i&&(c.checked=!1),a.classList.remove("active"))),t&&(r?(t.checked=!1,(g=t.parentElement)==null||g.classList.remove("active"),o&&o.forEach(d=>{d.style.display="flex"})):(t.checked=!0,(h=t.parentElement)==null||h.classList.add("active"),o&&o.forEach(d=>{d.style.display="none"}))))})}function oi(e){const{CheckboxContainers:i}=e;i&&i.forEach(n=>{const t=n.querySelector('input[type="checkbox"]');t&&n.addEventListener("click",()=>{t.value!="all_options"&&(t.checked=!t.checked),t.value!="all_options"&&be(e)})}),lt(n=>new URLSearchParams(document.location.search).has(n.name),!0,e)}const fe={canLoadMore:!1,canTrigger:!0};function ri(e){const{ResultsContainer:i,LoaderSource:n,LoadMoreCount:t,StartHiddenField:s}=e;!i||!n||!s||(fe.canLoadMore=!!i.dataset.canLoadMore,window.addEventListener("scroll",()=>{if(i.getBoundingClientRect().bottom<=window.innerHeight&&fe.canTrigger&&fe.canLoadMore){fe.canTrigger=!1,i.innerHTML+=`<img src="${n}" alt="loader gif" class="loader-gif"/>`;const r=document.location.search;var o=document.location.origin+document.location.pathname;o=o.replace(/\/$/,"");const a=new URL(o+"/loadMoreResults");a.search=r;const c=s.value!="0"?s.value:t;return a.searchParams.set("Start",String(c)),fetch(a.toString(),{headers:{"x-requested-with":"XMLHttpRequest"}}).then(g=>g.json()).then(g=>{var h;(h=i.querySelector(".loader-gif"))==null||h.remove(),i.innerHTML+=g.ResultsHTML,s.value=g.Start,fe.canLoadMore=g.CanLoadMore,fe.canTrigger=!0})}}))}function si(e){fe.canLoadMore=e}function Pt(e){fe.canTrigger=e}async function Nt(e,i){const{DynamicClearFilterButtonsContainer:n,FilterStringElement:t,LoaderSource:s,ResultsContainer:o}=i;if(!(!o||!s))return lt(r=>r.checked,!0,i),n&&jt(i),o.innerHTML=`<img src="${s}" alt="loader gif" class="loader-gif"/>`,Pt(!1),fetch(e.toString(),{headers:{"x-requested-with":"XMLHttpRequest"}}).then(r=>r.json()).then(r=>{o&&r.ResultsHTML&&(o.innerHTML=r.ResultsHTML),r.FilterString&&t&&(t.innerHTML=r.FilterString);const a=e.toString().replace("ajax","");window.history.pushState({},"",a),si(!0),Pt(!0)}).catch(r=>console.log(r))}function be(e){const{FilterForm:i,StartHiddenField:n}=e;if(!i)return;n&&(n.value="0");const t=new URL(i.action),s=new FormData(i);for(let[o,r]of s)r!="all_options"&&o!="Start"&&t.searchParams.set(o,String(r));Nt(t,e)}let me={};function qt(e){e.preventDefault();const{ClearAllFiltersButtons:i,FilterForm:n}=me;if(!n)return;const t=e.currentTarget;if(t.dataset.key){let s={title:t.innerText||"",value:t.dataset.value||"",key:t.dataset.key||""};n.querySelectorAll(`input[name="${s.key}"]`).forEach(a=>{a.type=="text"?(a.value="",a.dispatchEvent(new Event("blur"))):a.type=="checkbox"&&(a.checked=!1)}),Array.from(n.querySelectorAll('input[type="checkbox"]')).filter(a=>a.checked).length==0&&i&&i.forEach(a=>{a.style.display="none"}),be(me)}else ot()}function ot(){const{AllOptionsCheckbox:e,CheckboxContainers:i,ClearAllFiltersButtons:n,FilterDropdownToggleButtons:t,FilterForm:s,TextSearchField:o}=me;
1i&&i.forEach(r=>{const a=r.querySelector('input[type="checkbox"]');a&&(a.value!="all_options"?(r.classList.remove("active"),a.checked=!1):r.classList.add("active"))}),e&&(e.checked=!0),n&&n.forEach(r=>{r.style.display="none"}),o&&(o.value="",o.dispatchEvent(new Event("blur"))),t&&t.length&&s&&t&&t.forEach(r=>{var c;const a=(c=r.parentElement)==null?void 0:c.parentElement;a!=null&&a.classList.contains("active")&&(a==null||a.classList.remove("active"))}),be(me)}function ai(){const{ClearAllFiltersButtons:e,DynamicClearFilterButtonsContainer:i,FilterForm:n,TextSearchField:t}=me;if(!n)return;const s=Array.from(n.querySelectorAll('input[type="checkbox"]'));s.shift(),t&&s.push(t),s.length&&s.forEach(o=>{const r=i.querySelector('.option-clear-filter[data-key="'+o.name+'"]');let a=!1,c="";o.type=="text"?(a=o.value!="",c=o.value):o.type=="checkbox"&&(a=o.checked,o.labels&&(c=o.labels[0].innerText)),a?(e&&e.forEach(g=>{g.style.display="inline-block"}),i&&!r?i.insertAdjacentHTML("beforeend",`<button class="button option-clear-filter" data-key="${o.name}" data-value="${o.value}">${c}&nbsp;<i class="fas fa-times"></i></button>`):r&&(r.innerHTML=`${c}&nbsp;<i class="fas fa-times"></i>`)):!a&&r&&r.remove()})}function li(){document.querySelectorAll(".option-clear-filter").forEach(i=>{i.removeEventListener("click",qt),i.addEventListener("click",qt)})}function jt(e){var s;me=e;const{AllOptionsCheckbox:i,ClearAllFiltersButtons:n,DynamicClearFilterButtonsContainer:t}=me;t&&(ai(),li()),n&&n.forEach(o=>{o.addEventListener("click",ot)}),i&&((s=i.parentElement)==null||s.addEventListener("click",ot))}function ci(e){const{FilterDropdownToggleButtons:i}=e;i&&i.forEach(n=>{n.addEventListener("click",()=>{var t,s;(s=(t=n.parentElement)==null?void 0:t.parentElement)==null||s.classList.toggle("active")})}),document.addEventListener("click",n=>{const t=n.target;i&&i.forEach(s=>{var o,r;!s.contains(t)&&!t.closest(".type-checkbox-filters")&&((r=(o=s.parentElement)==null?void 0:o.parentElement)==null||r.classList.remove("active"))})})}function di(e){const{FilterForm:i}=e;if(!i)return;const n=new URL(i.action);window.addEventListener("popstate",function(){n.search=document.location.search,Nt(n,e),lt(t=>new URLSearchParams(document.location.search).has(t.name),!0,e)})}function ui(e){const{SortByDropdown:i,SortByField:n}=e;!i||!n||i.addEventListener("click",t=>{i.classList.toggle("active");const o=t.target.dataset.value;o&&(n.value=o,be(e))})}function fi(e){const{ViewTypeField:i}=e;i&&i.addEventListener("change",()=>be(e))}function hi(e){const{CheckboxContainers:i,FilterDropdownToggleButtons:n,FilterForm:t,LoaderSource:s,LoadMoreCount:o,ResultsContainer:r,SortByDropdown:a,SortByField:c,StartHiddenField:g,ViewTypeField:h}=e;t&&t.addEventListener("submit",d=>{d.preventDefault(),be(e)}),i&&oi(e),r&&di(e),a&&c&&ui(e),h&&fi(e),n&&ci(e),jt(e),r&&s&&o&&g&&ri(e)}const Wt=document.querySelector("form.blog-filter-form"),ye={FilterForm:Wt,AllOptionsCheckbox:document.querySelector('form.blog-filter-form input[type="checkbox"][value="all_options"]'),CheckboxContainers:document.querySelectorAll("form.blog-filter-form .tag-checkbox-filters li"),FilterDropdownToggleButtons:document.querySelectorAll(".tag-checkbox-filters .toggle-btn"),ResultsContainer:document.querySelector(".blog-filter-form-results"),StartHiddenField:document.querySelector('form.blog-filter-form input[name="Start"]'),SortByDropdown:document.querySelector(".blog-filter-form .sort-by-field"),SortByField:document.querySelector(".blog-filter-form .sort-by-field input")};ye.ResultsContainer&&(ye.LoaderSource=ye.ResultsContainer.dataset.loaderSource,ye.LoadMoreCount=Number(ye.ResultsContainer.dataset.loadMoreCount));Wt&&hi(ye);Jt("masonry",Zt,l)});export default pi();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.