1"use strict";window.PXUTheme.contentCreator.accordion={init:function(){const $accordionHeading=$(".accordion > dt > a, [data-cc-accordion] > dt > a");$(".accordion > dd, [data-cc-accordion] > dd").attr("aria-hidden",!0),$accordionHeading.attr("aria-expanded",!1),$accordionHeading.on("click",function(){let state=$(this).attr("aria-expanded")==="false";return $(this).attr("aria-expanded",state),$(this).parent().next().attr("aria-hidden",!state),!1}),$accordionHeading.on("keydown",function(event){(event.keyCode||e.which)===13&&$(this).trigger("activate")})},unload:function(){$(".accordion > dt > a, [data-cc-accordion] > dt > a").off("click activate"),$(".accordion > dt > a, [data-cc-accordion] > dt > a").off("keydown")}},window.PXUTheme.contentCreator.slideshow={init:function(){$(".slider, .flexslider").find("li").unwrap(),$(".slider, .flexslider").flickity({pageDots:!0,lazyLoad:2})}},window.PXUTheme.animation={init:function(){$("[data-scroll-class]").waypoint(function(){const animationClass=$(this.element).data("scroll-class");$(this.element).addClass("animated").addClass(animationClass)},{offset:"70%"})},slideTransition:function($el,animationName,callback){$el.parents(".flickity-enabled").find(".animated").removeClass("animated "+animationName),$el.addClass("animated").addClass(animationName)},unload:function($target){$target.data("scroll-class","")}};const deferred={};window.PXUTheme.asyncView={load:function(url,view){let options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},data;if(url in deferred)return deferred[url];const $deferred=$.Deferred();if(deferred[url]=$deferred,options.hash&&(data=sessionStorage.getItem(url),data)){const deserialized=JSON.parse(data);if(options.hash===deserialized.options.hash)return delete deferred[url],$deferred.resolve(deserialized).promise()}return $.ajax({url,cache:!1,data:`view=${view}`,dataType:"html",headers:{"cache-control":"no-cache"},success:response2=>{const el=document.createElement("div");el.innerHTML=response2;const responseOptions=JSON.parse(el.querySelector("[data-options]").innerHTML),htmls=el.querySelectorAll("[data-html]");let html={};if(htmls.length===1&&htmls[0].getAttribute("data-html")==="")html=htmls[0].innerHTML;else for(let i2=0;i2<htmls.length;i2++)html[htmls[i2].getAttribute("data-html")]=htmls[i2].innerHTML;if(options.hash)try{sessionStorage.setItem(url,JSON.stringify({options:responseOptions,html}))}catch(error){console.error(error)}return delete deferred[url],$deferred.resolve({options:responseOptions,html})},error:()=>(delete deferred[url],$deferred.reject())}),$deferred.promise()}},window.PXUTheme.addImageDimension=function(imageUrl,size){var insertPosition=imageUrl.lastIndexOf(".");return imageUrl.substring(0,insertPosition)+size+imageUrl.substring(insertPosition)},window.PXUTheme.breadcrumbs={init:function(pages){if(pages>1){const breadcrumbSpan=document.querySelector("[data-breadcrumb-text]"),currentPage=document.querySelector(".paginate").dataset.currentPage?document.querySelector(".paginate").dataset.currentPage:1,totalPages=document.querySelector(".paginate").dataset.paginatePages;document.querySelector(".js-breadcrumb-text").classList.remove("is-hidden"),breadcrumbSpan.innerHTML=`${window.PXUTheme.translation.page_text} ${currentPage} ${window.PXUTheme.translation.of_text} ${totalPages}`}},unload:function($target){document.querySelector(".js-breadcrumb-text").classList.add("is-hidden")}},window.PXUTheme.debounce=function(func,wait,immediate){let timeout=null;return()=>{const context=this,args=arguments,later=()=>{timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}},window.PXUTheme.disclosure={enable:function(){const $disclosure=$("[data-disclosure]"),$toggle=$("[data-disclosure-toggle]"),$disclosureWrap=$(".disclosure__list-wrap"),$mobileMenuDisclosureList=$("[data-disclosure-list]");function checkOffScreen($openedToggle){$openedToggle.siblings(".disclosure__list-wrap").is(":off-right")&&$openedToggle.siblings(".disclosure__list-wrap").addClass("disclosure--left")}function closeDisclosures(ignoreTarget,currentTarget){ignoreTarget===!0?($toggle.not(currentTarget).removeClass("is-clicked"),$toggle.not(currentTarget).attr("aria-expanded","fal
1se")):($toggle.removeClass("is-clicked"),$toggle.attr("aria-expanded","false")),$disclosureWrap.removeClass("disclosure--left")}$("body").on("keyup",function(e2){e2.which=="27"&&closeDisclosures()}),$disclosure.on("mouseleave",function(e2){closeDisclosures()}),$disclosure.find(".disclosure-list__item:last-child").on("focusout",function(e2){closeDisclosures()}),$toggle.on("mouseenter focus",function(e2){closeDisclosures(!0,this);const $target=$(e2.currentTarget);$target.attr("aria-expanded","true").addClass("is-clicked"),checkOffScreen($target)}),$mobileMenuDisclosureList.on("touchstart",function(e2){const $target=$(e2.currentTarget);$target.parents(".disclosure").addClass("is-clicked"),closeDisclosures(!0,this),$target.hasClass("is-clicked")==!1?($target.attr("aria-expanded","true").addClass("is-clicked"),checkOffScreen($target)):($target.attr("aria-expanded","false").removeClass("is-clicked"),$disclosureWrap.removeClass("disclosure--left"))}),$mobileMenuDisclosureList.on("focusout",function(e2){closeDisclosures(!0,this)}),$mobileMenuDisclosureList.on("change",function(e2){if(window.PXUTheme.media_queries.medium.matches||!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){const $target=$(e2.currentTarget),selectedValue=e2.currentTarget.value,disclosureInput=$target.parents(".selectors-form__item").find("[data-disclosure-input]"),selectorForm=$target.parents(".selectors-form");$target.hasClass("custom-currency")?$target.trigger("click"):(disclosureInput.val(selectedValue),selectorForm.submit())}})},unload:function(){$("[data-disclosure]").off(),$("[data-disclosure-toggle]").off(),$(".disclosure__list-wrap").off()}},window.PXUTheme.dropdownMenu=function(){const menuItems=$(".navbar-link"),dropdowns=$(".navbar-dropdown"),megamenus=$(".has-mega-menu");menuItems.each(function(index,item){let itemVisited=!1;$(item).on("keydown",function(e2){e2.which===13&&(itemVisited===!1&&e2.preventDefault(),$(this).closest(".navbar-item").addClass("show-dropdown"),itemVisited=!0)}),$(item).closest(".navbar-item").on("focusout",function(e2){$(this).find(e2.relatedTarget).length===0&&$(item).closest(".navbar-item").removeClass("show-dropdown")})}),dropdowns.each(function(index,item){let itemVisited=!1;$(item).on("keydown",function(e2){e2.which===13&&(itemVisited===!1&&e2.preventDefault(),$(this).find(".has-submenu").length>0&&$(this).addClass("show-nested-dropdown"),itemVisited=!0)})}),megamenus.each(function(index,item){let itemVisited=!1;$(item).on("keydown",function(e2){e2.which===13&&(itemVisited===!1&&e2.preventDefault(),$(this).find(".mega-menu").addClass("mega-menu--show"),itemVisited=!0)}),$(item).on("focusout",function(e2){$(item).find(e2.relatedTarget).length===0&&$(item).find(".mega-menu").removeClass("mega-menu--show")})})},window.PXUTheme.newsletterAjaxForm={init:function(){$(".newsletter-form__wrapper .contact-form").each(function(){const $form=$(this);$form.on("submit",function(e2){$('input[name="challenge"]',$form).val()!=="true"&&($.ajax({type:$form.attr("method"),url:$form.attr("action"),data:$form.serialize(),success:function(data){$form.fadeOut("slow",()=>{$form.prev(".form__success-message").html(window.PXUTheme.translation.newsletter_form_success)})},error:function(data){$('input[name="challenge"]',$form).val("true"),$form.submit()}}),e2.preventDefault())})})},unload:function(){$(".newsletter-form__wrapper .contact-form").find(":submit").off()}},window.PXUTheme.getSectionData=function($section){const sectionId=$section.attr("id").replace("shopify-section-",""),$dataEl=$section.find(`[data-section-data][data-section-id=${sectionId}]`).first();if(!$dataEl)return{};const data=$dataEl.data("section-data")||$dataEl.html();try{return JSON.parse(data)}catch(error){return console.warn(`Sections: invalid section data found. ${error.message}`),{}}},window.PXUTheme.infiniteScroll={init(){this.defaults={grid:"[data-load-more--grid]",gridItems:"[data-load-more--grid-item]"},$("body").off("click","[data-load-more]"),$("body").on("click","[data-load-more]",function(e2){e2.preventDefault();const $button=$(this),url=$button.attr("href");window.PXUTheme.infiniteScroll.loadNextPage(url,$button)}
1),$("body").off("click","[data-load-more-infinite]"),$("body").on("click","[data-load-more-infinite]",function(e2){return window.PXUTheme.infiniteScroll.enableInfinite(),$(this).remove(),e2.stopPropagation(),!1}),$("[data-load-infinite-scroll]").length&&window.PXUTheme.infiniteScroll.enableInfinite()},loadNextPage(url,$button){$.ajax({type:"GET",dataType:"html",url,beforeSend(){$button.addClass("is-loading")},success:data=>{$button.removeClass("is-loading");const thumbnails=$(data).find(this.defaults.gridItems),loadMoreButtonUrl=$(data).find("[data-load-more]").attr("href");$("[data-load-more]").attr("href",loadMoreButtonUrl),$(this.defaults.grid).first().append(thumbnails),window.PXUTheme.productReviews.init(),typeof loadMoreButtonUrl>"u"&&$("[data-load-more]").addClass("is-hidden")},error(x,t,m){console.log(x),console.log(t),console.log(m),location.replace(`${location.protocol}//${location.host}`)}})},enableInfinite(){var infiniteScroll=new Waypoint.Infinite({element:$(this.defaults.grid)[0],items:"[data-load-more--grid-item]",more:"[data-load-infinite]",loadingClass:"loading-in-progress",onBeforePageLoad(){$("[data-load-infinite]").removeClass("is-hidden")},onAfterPageLoad(){window.PXUTheme.productReviews.init()}})},unload(){$("[data-load-more]").off(),$("[data-load-infinite]").off(),$("[data-load-more-infinite]").off()}},window.PXUTheme.flickityIosFix=function(){var touchingCarousel=!1,touchStartCoords;document.body.addEventListener("touchstart",function(e2){if(e2.target.closest(".flickity-slider"))touchingCarousel=!0;else{touchingCarousel=!1;return}touchStartCoords={x:e2.touches[0].pageX,y:e2.touches[0].pageY}}),document.body.addEventListener("touchmove",function(e2){if(touchingCarousel&&e2.cancelable){var moveVector={x:e2.touches[0].pageX-touchStartCoords.x,y:e2.touches[0].pageY-touchStartCoords.y};Math.abs(moveVector.x)>7&&e2.preventDefault()}},{passive:!1})},window.PXUTheme.loadScript=function(name,url,callback){window.PXUTheme[name]||$.ajax({url,dataType:"script",success:callback,async:!1})},window.PXUTheme.applyMasonry=function(selector,gutterSize){let $galleryWrapper=$(".gallery__wrapper--vertical-masonry");$galleryWrapper.length>0&&$galleryWrapper.imagesLoaded().progress(function(){$galleryWrapper.isotope({layoutMode:"masonry",itemSelector:selector,percentPosition:!0,masonry:{columnWidth:selector,gutter:gutterSize}})})},window.PXUTheme.applyHorizontalMasonry=function(){$(".gallery__wrapper--horizontal-masonry").find(".gallery__item").each(function(e2){var wrapper=$(this),imgWidth,imgHeight;setTimeout(function(){imgWidth=wrapper.find("img").width(),imgHeight=wrapper.find("img").height(),wrapper.css("flex-basis",imgWidth*200/imgHeight),wrapper.css("flex-grow",imgWidth*200/imgHeight),wrapper.find("i").css("padding-bottom",imgHeight/imgWidth*100+"%")},100)})},window.PXUTheme.mobileMenu={init:function(){this.$mobileMenuToggle=$("[data-show-mobile-menu]"),this.$mobileMenuIcon=$(".mobile-menu__toggle-icon"),this.$mobileDropDownToggle=$(".mobile-menu .close-dropdown")},open:function(){let currentScrollPosition=window.scrollY},close:function(){$("body").removeClass("mobile-menu--opened");let lastScrollPosition=$("body").data("current-position");window.scrollTo(0,lastScrollPosition),this.$mobileMenuIcon.removeClass("is-active"),$("[data-show-mobile-menu]").attr("data-show-mobile-menu",!1)},enableSticky:function(){window.PXUTheme.jsHeader.disableSticky();let $stickyEl=$("#mobile-header"),offset=0;typeof window.PXUTheme.jsAnnouncementBar<"u"&&window.PXUTheme.jsAnnouncementBar.enable_sticky&&(offset=window.PXUTheme.jsAnnouncementBar.getAnnouncementHeight()),$stickyEl.addClass("sticky--enabled"),$stickyEl.sticky({wrapperClassName:"header-sticky-wrapper",zIndex:40,topSpacing:offset}).on("sticky-start",()=>{var headerheight=$("#mobile-header").height(),annoucementHeight=$(".announcement-sticky-wrapper").height(),totalHeight=headerheight+annoucementHeight;$stickyEl.parent().parent().find(".search-overlay").addClass("sticky-search").css("top",totalHeight+"px")}).on("sticky-end",()=>{$stickyEl.parent().parent().find(".search-overlay").removeClass("sticky-search").css("top","100%"),setTimeout(()=>{$stickyEl.sticky("update")},250),$stickyEl.find(".sticky-menu-wrapper").removeClass("is-visible")})},disableSticky:function(){let $stickyEl=$("#mobile-header");$stickyEl&&($stickyEl.removeClass("sticky--enabled"),setTimeout(function(){$(".header-sticky-wrapper").css("height","auto")},250))},unload:function($section){$("[data-mobilemenu-toggle]").off(),$(".mobile-menu__toggle-icon").off(),$(".mobile-menu .close-dropdown").off(),this.disableSticky()}},window.PXUTheme.objectFitImages={init:function(){objectFitImages(),window.PXUTheme.theme_settings.image_loading_style=="color"&&this.calculateAspectRatio()},calculateAspectRatio:function(){const imageWrap=document.querySelectorAll("[data-calculate-aspect-ratio]");for(let i2=0;i2<imageWrap.length;i2++){const image=imageWrap[i2].firstElementChild,aspectRatio=image.getAttribute("width")/image.getAttribute("height"),aspectWidth=image.height*aspectRatio;imageWrap[i2].style.maxWidth=`${Math.floor(aspectWidth)}px`}document.addEventListener("lazyloaded",function(e2){e2.srcElement.parentNode.style.background="none"})},unload:function(){}};function floatToString(t,e2){var o=t.toFixed(e2).toString();return o.match(/^\.\d+/)?"0"+o:o}if(typeof Shopify>"u")var Shopify={};if(Shopify.each=function(t,e2){for(var o=0;o<t.length;o++)e2(t[o],o)},Shopify.map=function(t,e2){for(var o=[],i2=0;i2<t.length;i2++)o.push(e2(t[i2],i2));return o},Shopify.arrayIncludes=function(t,e2){for(var o=0;o<t.length;o++)if(t[o]==e2)return!0;return!1},Shopify.uniq=function(t){for(var e2=[],o=0;o<t.length;o++)Shopify.arrayIncludes(e2,t[o])||e2.push(t[o]);return e2},Shopify.isDefined=function(t){return!(typeof t>"u")},Shopify.getClass=function(t){return Object.prototype.toString.call(t).slice(8,-1)},Shopify.extend=function(t,e2){function o(){}o.prototype=e2.prototype,t.prototype=new o,t.prototype.constructor=t,t.baseConstructor=e2,t.superClass=e2.prototype},Shopify.locationSearch=function(){return window.location.search},Shopify.locationHash=function(){return window.location.hash},Shopify.replaceState=function(t){window.history.replaceState({},document.title,t)},Shopify.urlParam=function(t){var e2=RegExp("[?&]"+t+"=([^&#]*)").exec(Shopify.locationSearch());return e2&&decodeURIComponent(e2[1].replace(/\+/g," "))},Shopify.newState=function(t,e2){var o;return o=Shopify.urlParam(t)?Shopify.locationSearch().replace(RegExp("("+t+"=)[^&#]+"),"$1"+e2):Shopify.locationSearch()===""?"?"+t+"="+e2
1:Shopify.locationSearch()+"&"+t+"="+e2,o+Shopify.locationHash()},Shopify.setParam=function(t,e2){Shopify.replaceState(Shopify.newState(t,e2))},Shopify.Product=function(t){Shopify.isDefined(t)&&this.update(t)},Shopify.Product.prototype.update=function(t){for(let property in t)this[property]=t[property]},Shopify.Product.prototype.optionNames=function(){return Shopify.getClass(this.options)=="Array"?this.options:[]},Shopify.Product.prototype.optionValues=function(t){if(!Shopify.isDefined(this.variants))return null;var e2=Shopify.map(this.variants,function(e3){var o="option"+(t+1);return e3[o]==null?null:e3[o]});return e2[0]==null?null:Shopify.uniq(e2)},Shopify.Product.prototype.getVariant=function(t){var e2=null;return t.length!=this.options.length||Shopify.each(this.variants,function(o){for(var i2=!0,r=0;r<t.length;r++){var n="option"+(r+1);o[n]!=t[r]&&(i2=!1)}return i2==1?void(e2=o):void 0}),e2},Shopify.Product.prototype.getVariantById=function(t){for(var e2=0;e2<this.variants.length;e2++){var o=this.variants[e2];if(t==o.id)return o}return null},Shopify.money_format="${{amount}}",Shopify.formatMoney=function(t,e2){function o(t2,e3){return typeof t2>"u"?e3:t2}function i2(t2,e3,i3,r2){if(e3=o(e3,2),i3=o(i3,","),r2=o(r2,"."),isNaN(t2)||t2==null)return 0;t2=(t2/100).toFixed(e3);var n2=t2.split("."),a2=n2[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+i3),s=n2[1]?r2+n2[1]:"";return a2+s}typeof t=="string"&&(t=t.replace(".",""));var r="",n=/\{\{\s*(\w+)\s*\}\}/,a=e2||this.money_format;switch(a.match(n)[1]){case"amount":r=i2(t,2);break;case"amount_no_decimals":r=i2(t,0);break;case"amount_with_comma_separator":r=i2(t,2,".",",");break;case"amount_with_apostrophe_separator":r=i2(t,2);break;case"amount_no_decimals_with_comma_separator":r=i2(t,0,".",",");break;case"amount_no_decimals_with_space_separator":r=i2(t,0,"."," ")}return a.replace(n,r)},Shopify.OptionSelectors=function(t,e2){return this.selectorDivClass="selector-wrapper",this.selectorClass="single-option-selector",this.variantIdFieldIdSuffix="-variant-id",this.variantIdField=null,this.historyState=null,this.selectors=[],this.domIdPrefix=t,this.product=new Shopify.Product(e2.product),this.onVariantSelected=Shopify.isDefined(e2.onVariantSelected)?e2.onVariantSelected:function(){},this.replaceSelector(t),this.initDropdown(),e2.enableHistoryState&&(this.historyState=new Shopify.OptionSelectors.HistoryState(this)),!0},Shopify.OptionSelectors.prototype.initDropdown=function(){var t={initialLoad:!0},e2=this.selectVariantFromDropdown(t);if(!e2){var o=this;setTimeout(function(){o.selectVariantFromParams(t)||o.fireOnChangeForFirstDropdown.call(o,t)})}},Shopify.OptionSelectors.prototype.fireOnChangeForFirstDropdown=function(t){this.selectors[0].element.onchange(t)},Shopify.OptionSelectors.prototype.selectVariantFromParamsOrDropdown=function(t){var e2=this.selectVariantFromParams(t);e2||this.selectVariantFromDropdown(t)},Shopify.OptionSelectors.prototype.replaceSelector=function(t){var e2=document.getElementById(t),o=e2.parentNode;Shopify.each(this.buildSelectors(),function(t2){o.insertBefore(t2,e2)}),e2.style.display="none",this.variantIdField=e2},Shopify.OptionSelectors.prototype.selectVariantFromDropdown=function(t){var e2=document.getElementById(this.domIdPrefix).querySelector("[selected]");if(e2||(e2=document.getElementById(this.domIdPrefix).querySelector('[selected="selected"]')),!e2)return!1;var o=e2.value;return this.selectVariant(o,t)},Shopify.OptionSelectors.prototype.selectVariantFromParams=function(t){var e2=Shopify.urlParam("variant");return this.selectVariant(e2,t)},Shopify.OptionSelectors.prototype.selectVariant=function(t,e2){var o=this.product.getVariantById(t);if(o==null)return!1;for(var i2=0;i2<this.selectors.length;i2++){var r=this.selectors[i2].element,n=r.getAttribute("data-option"),a=o[n];a!=null&&this.optionExistInSelect(r,a)&&(r.value=a)}return typeof jQuery<"u"?jQuery(this.selectors[0].element).trigger("change",e2):this.selectors[0].element.onchange(e2),!0},Shopify.OptionSelectors.prototype.optionExistInSelect=function(t,e2){for(var o=0;o<t.options.length;o++)if(t.options[o].value==e2)return!0},Shopify.OptionSelectors.prototype.insertSelectors=function(t,e2){Shopify.isDefined(e2)&&this.setMessageElement(e2),this.domIdPrefix="product-"+this.product.id+"-variant-selector";var o=document.getElementById(t);Shopify.each(this.buildSelectors(),function(t2){o.appendChild(t2)})},Shopify.OptionSelectors.prototype.buildSelectors=function(){for(var t=0;t<this.product.optionNames().length;t++){var e2=new Shopify.SingleOptionSelector(this,t,this.product.optionNames()[t],this.product.optionValues(t));e2.element.disabled=!1,this.selectors.push(e2)}var o=this.selectorDivClass,i2=this.product.optionNames(),r=Shopify.map(this.selectors,function(t2){var e3=document.createElement("div");if(e3.setAttribute("class",o),i2.length>1){var r2=document.createElement("label");
1r2.htmlFor=t2.element.id,r2.innerHTML=t2.name,e3.appendChild(r2)}return e3.appendChild(t2.element),e3});return r},Shopify.OptionSelectors.prototype.selectedValues=function(){for(var t=[],e2=0;e2<this.selectors.length;e2++){var o=this.selectors[e2].element.value;t.push(o)}return t},Shopify.OptionSelectors.prototype.updateSelectors=function(t,e2){var o=this.selectedValues(),i2=this.product.getVariant(o);i2?(this.variantIdField.disabled=!1,this.variantIdField.value=i2.id):this.variantIdField.disabled=!0,this.onVariantSelected(i2,this,e2),this.historyState!=null&&this.historyState.onVariantChange(i2,this,e2)},Shopify.OptionSelectorsFromDOM=function(t,e2){var o=e2.optionNames||[],i2=e2.priceFieldExists||!0,r=e2.delimiter||"/",n=this.createProductFromSelector(t,o,i2,r);e2.product=n,Shopify.OptionSelectorsFromDOM.baseConstructor.call(this,t,e2)},Shopify.extend(Shopify.OptionSelectorsFromDOM,Shopify.OptionSelectors),Shopify.OptionSelectorsFromDOM.prototype.createProductFromSelector=function(t,e2,o,i2){if(!Shopify.isDefined(o))var o=!0;if(!Shopify.isDefined(i2))var i2="/";var r=document.getElementById(t),n=r.childNodes,a=(r.parentNode,e2.length),s=[];Shopify.each(n,function(t2,r2){if(t2.nodeType==1&&t2.tagName.toLowerCase()=="option"){var n2=t2.innerHTML.split(new RegExp("\\s*\\"+i2+"\\s*"));e2.length==0&&(a=n2.length-(o?1:0));var p2=n2.slice(0,a),l2=o?n2[a]:"",c=(t2.getAttribute("value"),{available:!t2.disabled,id:parseFloat(t2.value),price:l2,option1:p2[0],option2:p2[1],option3:p2[2]});s.push(c)}});var p={variants:s};if(e2.length==0){p.options=[];for(var l=0;a>l;l++)p.options[l]="option "+(l+1)}else p.options=e2;return p},Shopify.SingleOptionSelector=function(t,e2,o,i2){this.multiSelector=t,this.values=i2,this.index=e2,this.name=o,this.element=document.createElement("select");for(var r=0;r<i2.length;r++){var n=document.createElement("option");n.value=i2[r],n.innerHTML=i2[r],this.element.appendChild(n)}return this.element.setAttribute("class",this.multiSelector.selectorClass),this.element.setAttribute("data-option","option"+(e2+1)),this.element.id=t.domIdPrefix+"-option-"+e2,this.element.onchange=function(o2,i3){i3=i3||{},t.updateSelectors(e2,i3)},!0},Shopify.Image={preload:function(t,e2){for(var o=0;o<t.length;o++){var i2=t[o];this.loadImage(this.getSizedImageUrl(i2,e2))}},loadImage:function(t){new Image().src=t},switchImage:function(t,e2,o){if(t&&e2){var i2=this.imageSize(e2.src),r=this.getSizedImageUrl(t.src,i2);o?o(r,t,e2):e2.src=r}},imageSize:function(t){var e2=t.match(/_(1024x1024|2048x2048|pico|icon|thumb|small|compact|medium|large|grande)\./);return e2!=null?e2[1]:null},getSizedImageUrl:function(t,e2){if(e2==null)return t;if(e2=="master")return this.removeProtocol(t);var o=t.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i);if(o!=null){var i2=t.split(o[0]),r=o[0];return this.removeProtocol(i2[0]+"_"+e2+r)}return null},removeProtocol:function(t){return t.replace(/http(s)?:/,"")}},Shopify.OptionSelectors.HistoryState=function(t){this.browserSupports()&&this.register(t)},Shopify.OptionSelectors.HistoryState.prototype.register=function(t){window.addEventListener("popstate",function(e2){t.selectVariantFromParamsOrDropdown({popStateCall:!0})})},Shopify.OptionSelectors.HistoryState.prototype.onVariantChange=function(t,e2,o){this.browserSupports()&&(!t||o.initialLoad||o.popStateCall||Shopify.setParam("variant",t.id))},Shopify.OptionSelectors.HistoryState.prototype.browserSupports=function(){return window.history&&window.history.replaceState},window.PXUTheme.productMedia={models:[],setupMedia:function(){const config={controls:["zoom-in","zoom-out","fullscreen"],focusOnPlay:!1};$("model-viewer").each(function(index,model){model=new Shopify.ModelViewerUI(model,config),window.PXUTheme.productMedia.models.push(model)}),$(".product-gallery__model model-viewer").on("mousedown",function(){window.PXUTheme.productMedia.hideModelIcon(this)})},showModelIcon:function(slide){$(slide).find(".button--poster, .model-icon-button-control").show()},hideModelIcon:function(slide){$(slide).find(".button--poster, .model-icon-button-control").hide()}},window.PXUTheme.productReviews={init:function(){($("#shopify-product-reviews").length||$(".shopify-product-reviews-badge").length)&&SPR.$(document).ready(function(){return SPR.registerCallbacks(),SPR.initRatingHandler(),SPR.initDomEls(),SPR.loadProducts(),SPR.loadBadges()})},productReviewScroll:function(){$("#shopify-product-reviews").length&&$(".shopify-product-reviews-badge").length&&$(".spr-badge-container").on("click",function(){window.PXUTheme.scrollToTop("#shopify-product-reviews")})},unload:function(){$(".spr-badge-container").off()}},window.PXUTheme.quantityBox={init:function(){$("body").on("click","[data-update-quantity]",function(){window.PXUTheme.quantityBox.updateQuantity($(this))}),$("body").on("keyup keydown change",".quantity-input",function(){window.PXUTheme.quantityBox.updateQuantity($(this))})}
1,updateQuantityControls:function($el){const $quantityBox=$el.parents(".product-quantity-box"),$input=$(".quantity-input",$quantityBox);let val=parseInt($input.val()),valMax=1e17;$input.attr("max")!=null&&(valMax=$input.attr("max")),val===1||val===0?($(".quantity-minus",$quantityBox).attr("disabled",!0),$(".quantity-plus",$quantityBox).attr("disabled",!1)):val>=valMax?($(".quantity-plus",$quantityBox).attr("disabled",!0),$(".quantity-minus",$quantityBox).attr("disabled",!1),$input.val(valMax)):($(".quantity-minus",$quantityBox).attr("disabled",!1),$(".quantity-plus",$quantityBox).attr("disabled",!1))},updateQuantity:function($el){console.log("updateQuantity:"+$el);const $quantityBox=$el.parents(".product-quantity-box"),$form=$el.parents("form"),$input=$(".quantity-input",$quantityBox),lineID2=$quantityBox.parents("[data-line-item]").data("line-item");let val=parseInt($input.val()),valMax=1e17,valMin=$input.attr("min")||0;if($input.attr("max")!=null&&(valMax=$input.attr("max")),val<valMin)return $input.val(valMin),!1;if(val>valMax)return $input.val(valMax),!1;if($el.data("update-quantity")==="plus"?val<valMax&&(val++,$input.val(val)):$el.data("update-quantity")==="minus"&&val>valMin&&(val--,$input.val(val)),$el.parents("[data-line-item]").length){const lineID3=$quantityBox.data("line-item-key"),lineStamp2=$quantityBox.data("line-stamp");window.PXUTheme.quantityBox.updateCart(lineID3,val,lineStamp2,$form),window.setTimeout(function(){window.dispatchEvent(new Event("refreshAjaxCart"))},500),window.setTimeout(function(){window.dispatchEvent(new Event("refreshAjaxSideCart"))},500)}window.PXUTheme.quantityBox.updateQuantityControls($el)},updateCart:function(lineID,quantity,lineStamp,form){console.log("cart update triggered"),$(".quantity-warning").removeClass("animated bounceIn"),$.ajax({type:"POST",url:"/cart/change.js",data:`quantity=${quantity}&line=${lineID}`,dataType:"json",success:function(cart){if(lineStamp!=null&&lineStamp!=""){let dataObj={};form.find(`[data-time-stamp=${lineStamp}]`).each(function(index,item){var lineIds=$(this).parents("[data-line-item]").data("cart-item");dataObj[lineIds]=quantity}),console.log(dataObj),$.ajax({type:"POST",url:"/cart/update.js",data:{updates:dataObj},dataType:"json",success:function(cart2){window.PXUTheme.jsAjaxCart.updateView(),form.find(`[data-line-stamp=${lineStamp}]`).each(function(index,item){let lineIDNew=$(this).attr("data-line-item-key"),quantityNew=$(this).find(".quantity-input").val(),newQuantity=0,itemsLeftText="",quantityWarning=$(`[data-line-item="${lineIDNew}"]`).find(".quantity-warning"),$quantityBox=$(`[data-line-item="${lineIDNew}"]`).find(".product-quantity-box"),$quantityMinus=$(this).find(".quantity-minus"),$currentDiscount=$(".cart__form").data("currentDiscount");const cartItemsLineID=lineIDNew-1;typeof cart2.items[cartItemsLineID]<"u"&&(newQuantity=cart2.items[cartItemsLineID].quantity),quantity>0&&quantity!=newQuantity&&cart2.total_discount<=$currentDiscount&&(newQuantity==1?(itemsLeftText=window.PXUTheme.translation.product_count_one,quantityWarning.text(`${newQuantity} ${itemsLeftText}`),$($quantityMinus,$quantityBox).attr("disabled",!0)):(itemsLeftText=window.PXUTheme.translation.product_count_other,quantityWarning.text(`${newQuantity} ${itemsLeftText}`))),newQuantity==1?$quantityMinus.attr("disabled",!0):$quantityMinus.attr("disabled",!1),$(".cart__form").data("currentDiscount",cart2.total_discount),quantityWarning.addClass("animated bounceIn"),window.PXUTheme.jsCart.updateView(cart2,lineIDNew)})},error:function(XMLHttpRequest,textStatus){var response=eval("("+XMLHttpRequest.responseText+")");response=response.description}})}else{let newQuantity=0,itemsLeftText="",quantityWarning=$(`[data-line-item="${lineID}"]`).find(".quantity-warning"),$quantityBox=$(`[data-line-item="${lineID}"]`).find(".product-quantity-box"),$currentDiscount=$(".cart__form").data("currentDiscount");const cartItemsLineID=lineID-1;typeof cart.items[cartItemsLineID]<"u"&&(newQuantity=cart.items[cartItemsLineID].quantity);for(let i2=0;i2<cart.items.length;i2++)i2!=cartItemsLineID&&cart.items[i2].id==cart.items[cartItemsLineID].id&&(newQuantity+=cart.items[i2].quantity);quantity>0&&quantity!=newQuantity&&cart.total_discount<=$currentDiscount&&(newQuantity==1?(itemsLeftText=window.PXUTheme.translation.product_count_one,quantityWarning.text(`${newQuantity} ${itemsLeftText}`),$(".quantity-minus",$quantityBox).attr("disabled",!0)):(itemsLeftText=window.PXUTheme.translation.product_count_other,quantityWarning.text(`${newQuantity} ${itemsLeftText}`))),$(".cart__form").data("currentDiscount",cart.total_discount),quantityWarning.addClass("animated bounceIn"),typeof window.PXUTheme.jsAjaxCart<"u"&&window.PXUTheme.jsAjaxCart.updateView(),window.PXUTheme.jsCart&&window.PXUTheme.jsCart.updateView(cart,lineID)}},error:function(XMLHttpRequest,textStatus){var response=eval("("+XMLHttpRequest.responseText+")");response=response.description}})},unload:function($target){$(".quantity-input").off(),$("[data-update-quantity]").off()}},window.PXUTheme.queryParameters={},location.search.length)for(var aKeyValue,i=0,aCouples=location.search.substr(1).split("&");i<aCouples.length;i++)aKeyValue=aCouples[i].split("="),aKeyValue.length>1&&(window.PXUTheme.queryParameters[decodeURIComponent(aKeyValue[0])]=decodeURIComponent(aKeyValue[1]));window.PXUTheme.responsiveVideo={init:function(){var $videoIframes=$('iframe[src*="youtube.com"], iframe[src*="vimeo.com"]');$videoIframes.each(function(index,iframe){var $iframe=$(iframe);!$iframe.parents(".plyr__video-wrapper").length&&!$iframe.parents(".lazyframe").length&&$iframe.wrap('<div class="lazyframe" data-ratio="16:9"></div>')})}};function selectCallback(productEl,product,variant,state){const $product=$(productEl),$notifyForm=$(".product__notify-form",$product),$productForm=$(".product_form, .shopify-product-form",$product),variantInventory=$productForm.data("variant-inventory"),$productFormInput=$productForm.find(".quantity-input"),$notifyFormInputs=$(".notify_form__inputs"),notifyEmail=window.PXUTheme.translation.notify_form_email,notifyEmailValue=window.PXUTheme.translation.contact_email,notifySend=window.PXUTheme.translation.notify_form_send,notifyUrl=$notifyFormInputs.data("url");let notifyMessage="",notifyEmailInput="";if(variant){if(variant.title!=null){const variantTitle=variant.title.toLowerCase()==="default title"?variant.name.replace(/"/g,"""):variant.title.replace(/"/g,""");notifyMessage=`${window.PXUTheme.translation.email_content}${variantTitle} | ${notifyUrl}?variant=${variant.id}`}}else notifyMessage=`${window.PXUTheme.translation.email_content} | ${notifyUrl}`;$notifyFormInputs.hasClass("customer--true")?notifyEmailInput=`<input required type="email" class="notify_email input" name="contact[email]" id="contact[email]" placeholder="${notifyEmail}" value="${window.PXUTheme.translation.customer_email}" />`:notifyEmailInput=`<input required type="email" class="notify_email input" name="contact[email]" id="contact[email]" placeholder="${notifyEmail}" value="${notifyEmailValue}" />`;const notifyFormHTML=` 2 <input type="hidden" name="challenge" value="false" /> 3 <input type="hidden" name="contact[body]" class="notify_form_message" data-body="${notifyMessage}" value="${notifyMessage}" /> 4 <div class="field has-addons"> 5 <div class="control"> 6 ${notifyEmailInput} 7 </div> 8 <div class="control"> 9 <input class="action_button button" type="submit" value="${notifySend}" /> 10 </div> 11 </div>`;if(variant&&variant.featured_image&&$product.is(":visible")&&$(".product-gallery__main, .js-gallery-modal",$product).each((_index,value)=>{const $slider=$(value),$sliderInstance=window.Flickity.data(value),index=$(`img[data-image-id=${variant.featured_media.id}]`).data("index");$slider.is(":visible")&&$sliderInstance!==void 0&&$sliderInstance.select(index,!1,
11!0)}),$productForm.find("[data-variant-selector]").trigger("selectedVariantChanged"),$(".cart-warning",$product).text(""),variant&&($(".sku",$product).text(variant.sku),$(".notify_form_message",$product).attr("value",`${$(".notify_form_message",$product).data("body")} - ${variant.title}`)),variant&&variant.available){const variantWithInventory={...variant,...variantInventory?variantInventory.find(v=>v.id===variant.id)||{}:{}};if(variantWithInventory.inventory_management&&variantWithInventory.inventory_quantity>0){if(window.PXUTheme.theme_settings.display_inventory_left){let itemsLeftText=window.PXUTheme.translation.product_count_other;variantWithInventory.inventory_quantity===1&&(itemsLeftText=window.PXUTheme.translation.product_count_one);const inventoryThreshold=window.PXUTheme.theme_settings.inventory_threshold;variantWithInventory.inventory_quantity<=inventoryThreshold?$(".items_left",$product).html(`${variantWithInventory.inventory_quantity} ${itemsLeftText}`):$(".items_left",$product).html("")}variantWithInventory.inventory_policy==="deny"&&($("[data-max-inventory-management]",$product).attr("max",variantWithInventory.inventory_quantity),window.PXUTheme.quantityBox.updateQuantityControls($productFormInput))}else $(".items_left",$product).text(""),$("[data-max-inventory-management]",$product).removeAttr("max");$(".sold_out",$product).text(""),$("[data-add-to-cart-trigger]",$product).removeClass("disabled").removeAttr("disabled").attr("data-options-unselected",null).find("span:not(.icon)").text($("[data-add-to-cart-trigger]",$product).data("label")),Shopify.PaymentButton&&Shopify.PaymentButton.init(),$(".shopify-payment-button",$product).show(),$(".purchase-details__quantity",$product).show(),$notifyForm.hide(),$notifyFormInputs.empty(),$notifyFormInputs.append(notifyFormHTML),window.PXUTheme.currencyConverter&&window.PXUTheme.currencyConverter.convertCurrencies()}else{const message=variant?window.PXUTheme.translation.soldOut:window.PXUTheme.translation.unavailable;$(".items_left",$product).text(""),$("[data-max-inventory-management]",$product).removeAttr("max"),$(".sold_out",$product).text(message),$("[data-add-to-cart-trigger]",$product).addClass("disabled").attr("disabled","disabled").attr("data-options-unselected",null).find("span:not(.icon)").text(message),$(".shopify-payment-button",$product).hide(),$(".purchase-details__quantity",$product).hide(),$notifyForm.hide(),$notifyFormInputs.empty(),variant&&!variant.available&&($notifyForm.fadeIn(),$notifyFormInputs.empty(),$notifyFormInputs.append(notifyFormHTML))}}window.selectCallback=selectCallback,window.PXUTheme.predictiveSearch={vars:{term:"",searchResourceType:null},init:function(){this.unload(),$("[data-show-search-trigger], [data-autocomplete-true] input").on("click touchstart",function(e2){if(!isScreenSizeLarge()){e2.stopPropagation();const formType=$(this).closest("form").find('[name="type"]').val();window.PXUTheme.predictiveSearch.showMobileSearch(formType)}}),$('.search-form .search__fields input[type="text"], .search-form .field input[type="text"]').on("focus",e2=>{const dataSearchResourceType=e2.target.closest("[data-search-resource-type]");dataSearchResourceType&&(window.PXUTheme.predictiveSearch.vars.searchResourceType=dataSearchResourceType.getAttribute("data-search-resource-type"));const searchInputEl=e2.target,searchInputVal=searchInputEl.value.trim();searchInputEl.setSelectionRange(searchInputVal.length,searchInputVal.length),window.PXUTheme.predictiveSearch.getResults(searchInputVal,$(e2.target.closest(".search-form")))}),$(document).on("click focusout",function(e2){window.PXUTheme.media_queries.large.matches&&$(e2.target).parents(".search-form").length===0&&($("[data-autocomplete-true] .search__results-wrapper").hide(),window.PXUTheme.theme_settings&&(window.PXUTheme.theme_settings.header_layout==="vertical"||window.PXUTheme.theme_settings.header_layout==="search_focus")&&document.documentElement.classList.contains("scroll-locked")&&window.PXUTheme.predictiveSearch.unlockBodyScroll())}),$("[data-autocomplete-true] form").on("submit",function(e2){$(this).find('input[name="q"]').val().trim()||e2.preventDefault()}),$("[data-autocomplete-true] form").each(function(){const $this=$(this),input=$this.find('input[name="q"]');$('<div class="search__results-wrapper"></div>').appendTo($this),input.attr("autocomplete","off").on("input",window.PXUTheme.debounce(()=>{window.PXUTheme.predictiveSearch.vars.term=this.querySelector("[data-q]").value.trim(),window.PXUTheme.predictiveSearch.getResults(window.PXUTheme.predictiveSearch.vars.term,$this)},200))}),window.addEventListener("resize",window.PXUTheme.debounce(()=>{window.PXUTheme.jsHeader&&window.PXUTheme.jsHeader.header_layout==="vertical"&&window.PXUTheme.predictiveSearch.alignVerticalSearch(),this.resizeSearchResults()},150)),document.body.addEventListener("keyup",e2=>this.onKeyUp(e2))},onKeyUp:function(e2){e2.code==="Escape"&&($("[data-q]").val(""),window.PXUTheme.predictiveSearch.vars.term="",window.PXUTheme.jsHeader.hideSearch())},resizeSearchResults:function(){let inputFieldEl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.querySelector("[data-autocomplete-true]");const innerHeight=window.innerHeight,inputFieldElBottom=inputFieldEl.getBoundingClientRect().bottom,offset=isScreenSizeLarge()?30:10,resultsMaxHeight=`${innerHeight-inputFieldElBottom-offset}px`;inputFieldEl.closest("[data-autocomplete-true]").querySelector(".search__results-wrapper").style.setProperty("--results-max-height",resultsMaxHeight)},getResults:function(term,$this){const{header_layout}=window.PXUTheme.theme_settings;if(term.length===0){(header_layout==="vertical"||header_layout==="search_focus")&&window.PXUTheme.predictiveSearch.unlockBodyScroll(),window.PXUTheme.predictiveSearch.clearResults();return}const{searchResourceType}=window.PXUTheme.predictiveSearch.vars,restrictResourceCondition=searchResourceType&&"searchResourceType"in $this[0].dataset;fetch(`${window.PXUTheme.routes.predictive_search_url}?q=${encodeURIComponent(term)}§ion_id=predictive-search${restrictResourceCondition?`&resources[type]=${searchResourceType}`:""}`).then(response2=>{if(!response2.ok)throw new Error(response2.status);return response2.text()}).then(text=>{window.PXUTheme.predictiveSearch.displayResults(text,$this),(header_layout==="vertical"||header_layout==="search_focus")&&$this.closest(".
11jsHeader").length>0&&window.PXUTheme.predictiveSearch.lockBodyScroll()}).catch(error=>{throw error})},displayResults:function(results,$this){const $fields=$this.find(".search__fields"),$resultsWrapper=$this.find(".search__results-wrapper");$resultsWrapper.show(),$resultsWrapper.empty(),$resultsWrapper.append(results),($fields.length>0?Array.from($fields):document.querySelectorAll("[data-autocomplete-true]")).forEach(el=>{(el.closest(".search-popup__form")||el.closest(".mobile-search"))&&this.resizeSearchResults(el)}),$this.parents(".vertical-header__content").length&&window.PXUTheme.jsHeader.header_layout==="vertical"&&window.PXUTheme.predictiveSearch.alignVerticalSearch()},clearResults:function(){document.querySelectorAll(".search-form .search__results-wrapper").forEach(el=>{for(;el.firstChild;)el.removeChild(el.firstChild)})},showMobileSearch:function(formType){let position=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$("body").css("max-height",window.innerHeight),$(".mobile-search").fadeIn(200),/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1?$(".mobile-search input[data-q]").focus():setTimeout(function(){$(".mobile-search input[data-q]").focus()},205),document.body.style.position="fixed",document.body.style.top="-"+position+"px",$(".mobile-search").css("top",position),formType&&$('.mobile-search [name="type"]').val(formType),$(".search-form .close-search").on("click touchstart",function(e2){e2.preventDefault(),e2.stopPropagation(),window.PXUTheme.predictiveSearch.hideMobileSearch(position),$("[data-autocomplete-true] .search__results-wrapper").hide()}),$(".search-form .submit-search").on("click touchstart",function(e2){$(this).parents("form").submit()}),document.addEventListener("click",e2=>{e2.target.closest(".search-form")||window.PXUTheme.predictiveSearch.hideMobileSearch()})},hideMobileSearch:function(){let position=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;$("body").css("max-height","none"),document.body.style.position="",document.body.style.top="",window.scrollTo(0,position),$(".mobile-search").fadeOut(200),$("body").off("focus",".search-form .close-search"),$("body").off("focus",".search-form .submit-search"),window.PXUTheme.predictiveSearch.unlockBodyScroll()},lockBodyScroll:function(){document.documentElement.classList.add("scroll-locked"),document.querySelector("[data-site-overlay]").classList.remove("site-overlay--hidden")},unlockBodyScroll:function(){document.documentElement.classList.remove("scroll-locked"),document.querySelector("[data-site-overlay]").classList.add("site-overlay--hidden")},alignVerticalSearch:function(){const $resultsList=$(".header--vertical .search__results"),headerWidth=$(".header--vertical").innerWidth();$resultsList.parents(".search__results-wrapper").css({position:"fixed",left:headerWidth,top:"0"})},unload:function(){$("body").off("focus","[data-autocomplete-true] input"),$('input[name="q"]').off(),$('[data-dropdown-rel="search"], [data-autocomplete-true] input').off(),$(".search__results-wrapper").remove()}};function isScreenSizeLarge(){if(window.PXUTheme.media_queries.large.matches)return!0}window.PXUTheme.scrollToTop=function(element,height){height!=null?$("html, body").animate({scrollTop:$(element).offset().top-height},1e3):$("html, body").animate({scrollTop:$(element).offset().top},1e3)},window.PXUTheme.tabs={enableTabs:function(){let $tabs=$(".tabs li, .tabs li a");$tabs.on("click",function(el){el.preventDefault(),$tabs.removeClass("is-active active"),$(this).addClass("is-active");let $tabIndex=$(this).index(),$tabContent=$(this).parents(".tabs").next(".tabs-content");$tabContent.children("li, li a").removeClass("is-active active"),$tabContent.children("li, li a").eq($tabIndex).addClass("is-active").show().css({display:"block"}).siblings().hide().removeClass("is-active")})},unload:function(){$(".tabs li, .tabs li a").off()}};class ProductCard{enableSwatches(){window.isScreenSizeLarge()&&$("body").on("mouseenter",".swatch span",_ref=>{let{currentTarget}=_ref;$(currentTarget).data("image")&&$(currentTarget).data("image").indexOf("no-image")===-1&&($(currentTarget).parents(".thumbnail").find(".product__imageContainer img:not(.secondary)").attr("src",$(currentTarget).data("image")),$(currentTarget).parents(".thumbnail").find(".product__imageContainer img:not(.secondary)").attr("srcset",$(currentTarget).data("image")))})}showVariantImage(){window.isScreenSizeLarge()&&($("body").on("mouseenter",".has-secondary-image-swap",_ref2=>{let{currentTarget}=_ref2;const $thumbnailImage=$(currentTarget).find(".product-image__wrapper img"),$thumbnailVideo=$(currentTarget).find(".product-image__wrapper .video-on-hover");$thumbnailImage&&$thumbnailImage.toggleClass("swap--visible"),$thumbnailVideo&&($thumbnailVideo.toggleClass("swap--visible"),window.PXUTheme.video.enableVideoOnHover($(currentTarget)))}),$("body").on("mouseleave",".has-secondary-image-swap",_ref3=>{let{currentTarget}=_ref3;const $thumbnailImage=$(currentTarget).find(".product-image__wrapper img"),$thumbnailVideo=$(currentTarget).find(".product-image__wrapper .video-on-hover");$thumbnailImage&&$thumbnailImage.toggleClass("swap--visible"),$thumbnailVideo&&($thumbnailVideo.toggleClass("swap--visible"),window.PXUTheme.video.disableVideoOnHover($(currentTarget)))}))}
11showQuickShop(){$("body").on("click",".js-quick-shop-link",e2=>{e2.preventDefault();const $currentTarget=$(e2.currentTarget);window.PXUTheme.jsProductClass.load($currentTarget.data("url")).then(_ref4=>{let{html}=_ref4;$(".js-quick-shop").html(html.content),$(".js-quick-shop [data-section-data]").attr("data-section-id","quickshop"),$(".js-quick-shop .js-product_section").addClass("quickshop"),$(".fancybox-active").length||$.fancybox.open($(".js-quick-shop"),{baseClass:`quick-shop__lightbox product-${$currentTarget.data("id")}`,hash:!1,infobar:!1,toolbar:!1,loop:!0,smallBtn:!0,touch:!1,video:{autoStart:!1},mobile:{preventCaptionOverlap:!1,toolbar:!0},beforeShow:()=>{document.querySelectorAll(".tabs").length>0&&window.PXUTheme.tabs.enableTabs(),document.querySelectorAll(".accordion").length>0&&window.PXUTheme.contentCreator.accordion.init()},afterShow:(_e,instance)=>{const{src}=instance,$quickshop=$(src).find(".quick-shop");window.PXUTheme.jsProduct.init($(".js-quick-shop")),$quickshop.addClass("quick-shop--loaded"),$quickshop.addClass("content-loaded")},beforeClose:(_e,instance)=>{const{src}=instance,$quickshop=$(src).find(".quick-shop");$quickshop.removeClass("quick-shop--loaded"),$quickshop.removeClass("content-loaded")}})}).catch(error=>console.error(error))})}}window.PXUTheme.thumbnail=new ProductCard;const videoEl={playButtonIcon:'<button type="button" class="plyr__control plyr__control--overlaid" aria-label="Play, {title}" data-plyr="play"><svg class="play-icon-button-control" width="60" height="60" viewB
11ox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M23 20V40L39 29.4248L23 20Z" fill="#323232"/></svg><span class="plyr__sr-only">Play</span></button>',playButton:'<button type="button" class="plyr__controls__item plyr__control" aria-label="Play, {title}" data-plyr="play"><svg class="icon--pressed" role="presentation"><use xlink:href="#plyr-pause"></use></svg><svg class="icon--not-pressed" role="presentation"><use xlink:href="#plyr-play"></use></svg><span class="label--pressed plyr__tooltip" role="tooltip">Pause</span><span class="label--not-pressed plyr__tooltip" role="tooltip">Play</span></button>',muteButton:'<button type="button" class="plyr__controls__item plyr__control" aria-label="Mute" data-plyr="mute"><svg class="icon--pressed" role="presentation"><use xlink:href="#plyr-muted"></use></svg><svg class="icon--not-pressed" role="presentation"><use xlink:href="#plyr-volume"></use></svg><span class="label--pressed plyr__tooltip" role="tooltip">Unmute</span><span class="label--not-pressed plyr__tooltip" role="tooltip">Mute</span></button>',progressInput:'<div class="plyr__controls__item plyr__progress__container"><div class="plyr__progress"><input data-plyr="seek" type="range" min="0" max="100" step="0.01" value="0" aria-label="Seek"><progress class="plyr__progress__buffer" min="0" max="100" value="0">% buffered</progress><span role="tooltip" class="plyr__tooltip">00:00</span></div></div>',volume:'<div class="plyr__controls__item plyr__volume"><input data-plyr="volume" type="range" min="0" max="1" step="0.05" value="1" autocomplete="off" aria-label="Volume"></div>',fullscreen:'<button type="button" class="plyr__controls__item plyr__control" data-plyr="fullscreen"><svg class="icon--pressed" role="presentation"><use xlink:href="#plyr-exit-fullscreen"></use></svg><svg class="icon--not-pressed" role="presentation"><use xlink:href="#plyr-enter-fullscreen"></use></svg><span class="label--pressed plyr__tooltip" role="tooltip">Exit fullscreen</span><span class="label--not-pressed plyr__tooltip" role="tooltip">Enter fullscreen</span></button>'},videoControls=`${videoEl.playButtonIcon}<div class="plyr__controls"> ${videoEl.playButton} ${videoEl.progressInput} ${videoEl.muteButton} ${videoEl.volume} ${videoEl.fullscreen}</div>`;let videoPlayers=[],videosInRecommendedProductsPlayer;window.PXUTheme.video={init:function(){this.setupVideoPlayer()},setupVideoPlayer:function(){const productVideos=document.querySelectorAll("[data-html5-video] video, [data-youtube-video]");let setupVideoPlayers=Plyr.setup(productVideos,{controls:videoControls,ratio:this.aspect_ratio,fullscreen:{enabled:!0,fallback:!0,iosNative:!0},storage:{enabled:!1}}),videoLooping=$("[data-video-loop]").data("video-loop")||!1;$.each(setupVideoPlayers,function(index,player){player.loop=videoLooping,videoPlayers.push(player)}),this.setupListeners()},setupListeners:function(){$.each(videoPlayers,function(index,player){const id=player.id;let $video;player.isHTML5&&($video=$(player.elements.wrapper).find("video"),$video.attr("data-plyr-video-id",id)),player.on("play",function(event){var instance=event.detail.plyr;$.each(videoPlayers,function(index2,player2){var playerID=player2.id||player2.media.dataset.plyrVideoId;instance.id!=playerID&&player2.pause()})})})},enableVideoOnHover:function($thumbnail){var $html5Video=$thumbnail.find("[data-html5-video]"),$youtubeVideo=$thumbnail.find("[data-youtube-video]"),videoID;$html5Video.length>0?videoID=$html5Video.find("[data-plyr-video-id]").data("plyr-video-id"):$youtubeVideo.length>0&&(videoID=$youtubeVideo.find("iframe").attr("id")),videoID&&$.each(videoPlayers,function(index,player){(player.id==videoID||player.media.id==videoID)&&(player.toggleControls(!1),player.muted=!0,player.play())})},disableVideoOnHover:function($thumbnail){var $html5Video=$thumbnail.find("[data-html5-video]"),$youtubeVideo=$thumbnail.find("[data-youtube-video]"),videoID;$html5Video.length>0?videoID=$html5Video.find("[data-plyr-video-id]").data("plyr-video-id"):$youtubeVideo.length>
110&&(videoID=$youtubeVideo.find("iframe").attr("id")),videoID&&$.each(videoPlayers,function(index,player){(player.id==videoID||player.media.id==videoID)&&player.playing&&player.pause()})}},window.addEventListener("load",()=>{if(window.Shopify&&window.Shopify.theme&&window.PXUTheme&&navigator&&navigator.sendBeacon&&window.Shopify.designMode){if(sessionStorage.getItem("oots_beacon"))return;navigator.sendBeacon("https://app.outofthesandbox.com/beacon",new URLSearchParams({shop_domain:window.Shopify.shop,shop_id:window.Store.id,theme_name:window.PXUTheme.name,theme_version:window.PXUTheme.version,theme_store_id:window.Shopify.theme.theme_store_id,theme_id:window.Shopify.theme.id,theme_role:window.Shopify.theme.role})),sessionStorage.setItem("oots_beacon","")}}); 12//# sourceMappingURL=/cdn/shop/t/353/assets/utilities.js.map?v=149651221160971761641779814681
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.