1window.slate=window.slate||{},window.theme=window.theme||{},slate.a11y={pageLinkFocus:function($element){var focusClass="js-focus-hidden";$element.first().attr("tabIndex","-1").focus().addClass(focusClass).one("blur",callback);function callback(){$element.first().removeClass(focusClass).removeAttr("tabindex")}},focusHash:function(){var hash=window.location.hash;hash&&document.getElementById(hash.slice(1))&&this.pageLinkFocus($(hash))},bindInPageLinks:function(){$("a[href*=#]").on("click",function(evt){this.pageLinkFocus($(evt.currentTarget.hash))}.bind(this))},trapFocus:function(options){var eventName=options.namespace?"focusin."+options.namespace:"focusin";options.$elementToFocus||(options.$elementToFocus=options.$container),options.$container.attr("tabindex","-1"),options.$elementToFocus.focus(),$(document).on(eventName,function(evt){options.$container[0]!==evt.target&&!options.$container.has(evt.target).length&&options.$container.focus()})},removeTrapFocus:function(options){var eventName=options.namespace?"focusin."+options.namespace:"focusin";options.$container&&options.$container.length&&options.$container.removeAttr("tabindex"),$(document).off(eventName)}},slate.cart={cookiesEnabled:function(){var cookieEnabled=navigator.cookieEnabled;return cookieEnabled||(document.cookie="testcookie",cookieEnabled=document.cookie.indexOf("testcookie")!==-1),cookieEnabled}},slate.utils={findInstance:function(array,key,value){for(var i=0;i<array.length;i++)if(array[i][key]===value)return array[i]},removeInstance:function(array,key,value){for(var i=array.length;i--;)if(array[i][key]===value){array.splice(i,1);break}return array},compact:function(array){for(var index=-1,length=array==null?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];value&&(result[resIndex++]=value)}return result},defaultTo:function(value,defaultValue){return value==null||value!==value?defaultValue:value},initProductDetails:function(){if(!document.querySelector(".more-info-container"))return;const dialogBtns=document.querySelectorAll(".more-info-container button[data-dialog-target]"),dialogs=document.querySelectorAll(".more-info-dialog");dialogBtns.forEach(btn=>{btn.addEventListener("click",()=>{const dialogId=btn.getAttribute("data-dialog-target"),dialog=document.getElementById(dialogId);dialog&&dialog.showModal()})}
1),dialogs.forEach(dialog=>{const closeBtn=dialog.querySelector(".close-dialog");closeBtn&&closeBtn.addEventListener("click",()=>{dialog.close()}),dialog.addEventListener("click",e=>{e.target===dialog&&dialog.close()})})},updatePdpInfoAndImages:async function(){try{const currentUrl=window.location.pathname+window.location.search,response=await fetch(currentUrl);if(!response.ok)throw new Error("Network response was not ok");const data=await response.text(),tempDiv=document.createElement("div");tempDiv.innerHTML=data;let variantValue=new URL(window.location.href).searchParams.get("variant"),matchingOption,hiddenSelect=document.getElementById("HiddenSelect");hiddenSelect&&(matchingOption=hiddenSelect.querySelector('option[value="'+variantValue+'"]'));let disableKlaviyoBackInStock=!0;matchingOption&&(disableKlaviyoBackInStock=matchingOption.getAttribute("data-bis"));let klaviyoContainer=document.querySelector(".klaviyo-stock-notification-form-container"),tempklaviyoContainer=tempDiv.querySelector(".klaviyo-stock-notification-form-container");klaviyoContainer&&tempklaviyoContainer&&(disableKlaviyoBackInStock=="false"||disableKlaviyoBackInStock=="")&&(klaviyoContainer.innerHTML=tempklaviyoContainer.innerHTML);let formElement=document.getElementById("custom_klaviyo_form"),notifyButton=document.getElementById("notifyButton"),successMessage=document.querySelector(".success"),errorMessage=document.querySelector(".error");formElement&¬ifyButton&&formElement.addEventListener("submit",function(event){event.preventDefault(),notifyButton.click()}),notifyButton&¬ifyButton.addEventListener("click",async()=>{try{let result=await subscribeProductStockToKlaviyo(formElement);if(!result.ok)throw result=await result.json(),new Error(result.errors[0].detail);successMessage.classList.add("true"),errorMessage.classList.remove("true"),console.log("You're now subscribed!")}catch(e){successMessage.classList.remove("true"),errorMessage.classList.add("true"),errorMessage.textContent=`Failed to subscribe: ${e.message}`,console.log(`Failed to subscribe. Reason: "${e.message}"`)}});const productMainAccordionInfo=document.querySelector(".product__main-accordion"),tempProductMainAccordionInfo=tempDiv.querySelector(".product__main-accordion");if(productMainAccordionInfo&&tempProductMainAccordionInfo){const tempActiveItem=tempProductMainAccordionInfo.querySelector(".accordion__item--active");tempActiveItem&&tempActiveItem.classList.remove("accordion__item--active");const activeItem=productMainAccordionInfo.querySelector(".accordion__item--active");if(activeItem){const activeIndex=Array.from(productMainAccordionInfo.children).indexOf(activeItem);if(activeIndex!==-1&&productMainAccordionInfo.children[activeIndex]){let tempActiveItemIndexed=tempProductMainAccordionInfo.children[activeIndex];tempActiveItemIndexed&&tempActiveItemIndexed.classList.add("accordion__item--active")}}productMainAccordionInfo.innerHTML=tempProductMainAccordionInfo.innerHTML,this.initProductDetails()}const mobileDescription=document.querySelector(".description_mobile"),tempMobileDescription=tempDiv.querySelector(".description_mobile");mobileDescription&&tempMobileDescription&&(mobileDescription.innerHTML=tempMobileDescription.innerHTML);const mobileDetails=document.querySelector(".details_mobile"),tempMobileDetails=tempDiv.querySelector(".details_mobile");mobileDetails&&tempMobileDetails&&(mobileDetails.innerHTML=tempMobileDetails.innerHTML);const desktopDetails=document.querySelector(".details_desktop"),tempDesktopDetails=tempDiv.querySelector(".details_desktop");desktopDetails&&tempDesktopDetails&&(desktopDetails.innerHTML=tempDesktopDetails.innerHTML);const productGalleryStyle=document.querySelector("product-gallery-style"),thumbnailSliderStyle=document.querySelector("thumbnail-slider-style"),tempProductGalleryStyle=tempDiv.querySelector("product-gallery-style").innerHTML,tempThumbnailSliderStyle=tempDiv.querySelector("thumbnail-slider-style").innerHTML;if(productGalleryStyle&&thumbnailSliderStyle&&tempProductGalleryStyle&&tempThumbnailSliderStyle)productGalleryStyle.innerHTML=tempProductGalleryStyle,thumbnailSliderStyle.innerHTML=tempThumbnailSliderStyle,createNewPdpSlider();else throw new Error("Error finding elements or updating innerHTML");let shopTheLookContainer=document.querySelector(".shop-the-look-container"),tempShopTheLookContainer=tempDiv.querySelector(".shop-the-look-container");shopTheLookContainer&&tempShopTheLookContainer?shopTheLookContainer.innerHTML=tempShopTheLookContainer.innerHTML:shopTheLookContainer&&!tempShopTheLookContainer?shopTheLookContainer.remove():!shopTheLookContainer&&tempShopTheLookContainer&&document.getElementById("detailsAccordion").append(tempShopTheLookContainer);let variantSubtitleContainer=document.querySelector(".product__text-block"),tempVariantSubtitleContainer=tempDiv.querySelector(".product__text-block");variantSubtitleContainer&&tempVariantSubtitleContainer?variantSubtitleContainer.innerHTML=tempVariantSubtitleContainer.innerHTML:variantSubtitleContainer&&!tempVariantSubtitleContainer?variantSubtitleContainer.remove():!variantSubtitleContainer&&tempVariantSubtitleContainer&&document.querySelector(".sticky-product-name-limit").prepend(tempVariantSubtitleContainer);let productStoryVideoContainer=document.querySelector(".product_story .banner_video"),tempProductStoryVideoContainer=tempDiv.querySelector(".product_story .banner_video");productStoryVideoContainer&&tempProductStoryVideoContainer?productStoryVideoContainer.innerHTML=tempProductStoryVideoContainer.innerHTML:productStoryVideoContainer&&!tempProductStoryVideoContainer?productStoryVideoContainer.remove():!productStoryVideoContainer&&tempProductStoryVideoContainer&&document.querySelector(".product_story .slider-mobile").insertAdjacentHTML("afterend",tempProductStoryVideoContainer);let productNaturalStoryVideoContainer=document.querySelector(".natural_story .banner_video"),tempProductNaturalStoryVideoContainer=tempDiv.querySelector(".natural_story .banner_video");productNaturalStoryVideoContainer&&tempProductNaturalStoryVideoContainer?productNaturalStoryVideoContainer.innerHTML=tempProductNaturalStoryVideoContainer.innerHTML:productNaturalStoryVideoContainer&&!tempProductNaturalStoryVideoContainer?productNaturalStoryVideoContainer.remove():!productNaturalStoryVideoContainer&&tempProductNaturalStoryVideoContainer&&document.querySelector(".natural_story .slider-mobile").insertAdjacentHTML("afterend",tempProductNaturalStoryVideoContainer)}catch(error){console.error("Error fetching or updating content:",error)}handleStickyElements()}},window.addEventListener("scroll",handleStickyElements),window.addEventListener("resize",handleStickyElements),window.addEventListener("load",handleStickyElements);function initPdpSliderWhenReady(){var gallery=document.querySelector("product-gallery-style");!gallery||gallery.classList.contains("swiper-initialized")||typeof Swiper>"u"||createNewPdpSlider()}document.readyState==="complete"?initPdpSliderWhenReady():(document.addEventListener("DOMContentLoaded",initPdpSliderWhenReady),window.addEventListener("load",initPdpSliderWhenReady,{once:!0}));function handleStickyElements(){let stickyHolderProductInfo=document.querySelector(".product__title-price.sticky-element:not(.sticky-duplicate)"),stickyHolderAddToBag=document.querySelector(".add-to-bag-wrapper.sticky-element:not(.sticky-duplicate)"),stickyBar=document.querySelector("section.sticky-bar"),klaviyoForm=document.getElementById("custom_klaviyo_form"),swatchWra
1p=document.querySelector(".swatch_wrap"),scrollTimeout;!document.querySelector(".template-product")||!stickyHolderProductInfo||!stickyHolderAddToBag||window.innerWidth>768||(scrollTimeout&&clearTimeout(scrollTimeout),scrollTimeout=setTimeout(function(){let scrollY=window.scrollY,innerHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,productNameLimit=document.querySelector(".accordion__item-title"),addToCartOriginalButtonWrapper=document.querySelector(".add-to-bag-wrapper:not(.sticky-duplicate) button"),klaviyoButton=document.querySelector(".klaviyo-stock-notification-form-container button"),addToCartLimit=document.querySelector(".sticky-atc-limit"),variantValue=new URL(window.location.href).searchParams.get("variant"),selectedVariant="",hiddenSelect=document.getElementById("HiddenSelect"),matchedOption=hiddenSelect&&variantValue?hiddenSelect.querySelector('option[value="'+variantValue+'"]'):null;if(!matchedOption)return;selectedVariant=matchedOption.getAttribute("data-variant-title")||"";let $matchedOption=$(matchedOption),inventoryQuantity=$matchedOption.data("inventory"),isKlaviyoDisabled=$matchedOption.data("bis");if(scrollY<=800&&(addToCartOriginalButtonWrapper!=null&&!isElementInViewport(addToCartOriginalButtonWrapper)||klaviyoButton!=null&&!isElementInViewport(klaviyoButton))){let oldDuplicate=stickyBar.querySelector(".sticky-duplicate.add-to-bag");if(oldDuplicate){stickyBar.removeChild(oldDuplicate);let oldVariantNameDiv=stickyBar.querySelector(".variant-name");oldVariantNameDiv&&stickyBar.removeChild(oldVariantNameDiv)}let duplicate=stickyBar.querySelector(".sticky-duplicate.add-to-bag");if(!duplicate){duplicate=stickyHolderAddToBag.cloneNode(!0),duplicate.classList.add("sticky-duplicate","add-to-bag");const childButton=duplicate.querySelector("button"),childButtonSpan=childButton.querySelector("span");childButton&&childButton.setAttribute("form","productForm");let variantNameDiv=document.createElement("div");variantNameDiv.classList.add("variant-name"),variantNameDiv.setAttribute("onclick","document.querySelector('.sticky-atc-limit').scrollIntoView({ block: 'end', behavior: 'smooth' });"),variantNameDiv.textContent=selectedVariant,stickyBar.insertBefore(duplicate,stickyBar.firstChild),isElementInViewport(swatchWrap)||stickyBar.insertBefore(variantNameDiv,stickyBar.firstChild),addKlaviyoBIStoSTickyBar(childButtonSpan,inventoryQuantity,isKlaviyoDisabled)}}else{let duplicate=stickyBar.querySelector(".sticky-duplicate.add-to-bag");if(duplicate){stickyBar.removeChild(duplicate);let variantNameDiv=stickyBar.querySelector(".variant-name");variantNameDiv&&stickyBar.removeChild(variantNameDiv)}}function addKlaviyoBIStoSTickyBar(element,stock,isDisabled){let klaviyoCopy=document.querySelector("#notifyButton").innerHTML;stock<=0&&!isDisabled&&(element.innerHTML=klaviyoCopy,element.addEventListener("click",()=>{document.querySelector(".klaviyo-stock-notification-form-container").scrollIntoView({block:"end",behavior:"smooth"})}))}},1))}function isElementInViewport(el){if(el){const rect=el.getBoundingClientRect(),iHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,iWidth=window.visualViewport?window.visualViewport.width:window.innerWidth;return rect.top>=0&&rect.left>=0&&rect.bottom<=(iHeight||document.documentElement.clientHeight)&&rect.right<=(iWidth||document.documentElement.clientWidth)}}function createNewPdpSlider(){const newSliderMain=document.querySelector("product-gallery-style"),newSliderThumbs=document.querySelector("thumbnail-slider-style");if(newSliderMain&&newSliderThumbs){try{window.__pdpGallery&&window.__pdpGallery.destroy(!0,!0)}catch{}try{window.__pdpThumbs&&window.__pdpThumbs.destroy(!0,!0)}catch{}window.__pdpGallery=null,window.__pdpThumbs=null;const activateInfiniteLoopThumbs=document.querySelectorAll("thumbnail-slider-style .swiper-slide").length>4,ThumbnailSlider=new Swiper(newSliderThumbs,{loop:activateInfiniteLoopThumbs,spaceBetween:17,slidesPerView:4,speed:800,navigation:{nextEl:"thumbnail-slider-style .swiper-button-next",prevEl:"thumbnail-slider-style .swiper-button-prev"}}),sliderPagination=newSliderMain.querySelector(".swiper-pagination"),ProductGallery=new Swiper(newSliderMain,{zoom:{containerClass:"swiper-zoom-container"},loop:!0,autoHeight:!1,simulateTouch:!0,spaceBetween:0,slidesPerView:1,effect:"fade",fadeEffect:{crossFade:!0},preventInteractionOnTransition:!0,navigation:{nextEl:"product-gallery-style .swiper-button-next",prevEl:"product-gallery-style .swiper-button-prev"},thumbs:{swiper:ThumbnailSlider},pagination:{el:sliderPagination,clickable:!0}});ProductGallery.on("touchEnd",function(thisSlider){thisSlider.zoom.out(),thisSlider.allowTouchMove=!0}),ProductGallery.on("touchMove",function(thisSlider){thisSlider.zoom.scale>1&&(thisSlider.allowTouchMove=!1)}),window.__pdpThumbs=ThumbnailSlider,window.__pdpGallery=ProductGallery}}slate.rte={wrapTable:function(options){var tableWrapperClass=typeof options.tableWrapperClass>"u"?"":options.tableWrapperClass;options.$tables.wrap('<div class="'+tableWrapperClass+'"></div>')},wrapIframe:function(options){var iframeWrapperClass=typeof options.iframeWrapperClass>"u"?"":options.iframeWrapperClass;options.$iframes.each(function(){$(this).wrap('<div class="'+iframeWrapperClass+'"></div>'),this.src=this.src})}},slate.Sections=function(){this.constructors={},this.instances=[],$(document).on("shopify:section:load",this._onSectionLoad.bind(this)).on("shopify:section:unload",this._onSectionUnload.bind(this)).on("shopify:section:select",this._onSelect.bind(this)).on("shopify:section:deselect",this._onDeselect.bind(this)).on("shopify:section:reorder",this._onReorder.bind(this)).on("shopify:block:select",this._onBlockSelect.bind(this)).on("shopify:block:deselect",this._onBlockDeselect.bind(this))},slate.Sections.prototype=$.extend({},slate.Sections.prototype,{_createInstance:function(container,constructor){var $container=$(container),id=$container.attr("data-section-id"),type=$container.attr("data-section-type");if(constructor=constructor||this.constructors[type],!(typeof constructor>"u")){var instance=$.extend(new constructor(container),{id,type,container});this.instances.push(instance)}},_onSectionLoad:function(evt){var container=$("[data-section-id]",evt.target)[0];container&&this._createInstance(container)},_onSectionUnload:function(evt){var instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&(typeof instance.onUnload=="function"&&instance.onUnload(evt),this.instances=slate.utils.removeInstance(this.instances,"id",evt.detail.sectionId))},_onSelect:function(evt){var instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onSelect=="function"&&instance.onSelect(evt)},_onDeselect:function(evt){var instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onDeselect=="function"&&instance.onDeselect(evt)},_onReorder:function(evt){var instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onReorder=="function"&&instance.onReorder(evt)},_onBlockSelect:function(evt){var instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onBlockSelect=="function"&&instance.onBlockSelect(evt)},_onBlockDeselect:function(evt){var instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onBlockDeselect=="function"&&instance.onBlockDeselect(evt)},register:function(type,constructor){this.constructors[type]=constructor,$("[data-section-type="+type+"]").each(function(index,container){this._createInstance(container,constructor)}.bind(this))}}),slate.Currency=(function(){var moneyFormat="$";function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||moneyFormat;function formatWithDelimiters(number,precision,thousands,decimal){if(precision=slate.utils.defaultTo(precision,2),thousands=slate.utils.defaultTo(thousands,","),decimal=slate.utils.defaultTo(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",".");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,",",".");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ");break}return formatString.replace(placeholderRegex,value)}return{formatMoney}})(),slate.Image=(function(){function preload(images,size){typeof images=="string"&&(images=[images]);for(var i=0;i<images.length;i++){var image=images[i];this.loadImage(this.getSizedImageUrl(image,size))}}function loadImage(path){new Image().src=path}function imageSize(src){var match=src.match(/.+_((?:pico|icon|thumb|small|compact|medium|large|grande)|\d{1,4}x\d{0,4}|x\d{1,4})[_\.@]/);return match?match[1]:null}function getSizedImageUrl(src,size){if(size===null)return src;if(size==="master")return this.removeProtocol(src);var match=src.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i);if(match){var prefix=src.split(match[0]),suffix=match[0];
1return this.removeProtocol(prefix[0]+"_"+size+suffix)}else return null}function removeProtocol(path){return path.replace(/http(s)?:/,"")}return{preload,loadImage,imageSize,getSizedImageUrl,removeProtocol}})(),slate.Variants=(function(){function Variants(options){this.$container=options.$container,this.product=options.product,this.singleOptionSelector=options.singleOptionSelector,this.originalSelectorId=options.originalSelectorId,this.enableHistoryState=options.enableHistoryState,this.currentVariant=this._getVariantFromOptions(),$(this.singleOptionSelector,this.$container).on("change",this._onSelectChange.bind(this))}return Variants.prototype=$.extend({},Variants.prototype,{_getCurrentOptions:function(){var currentOptions=$.map($(this.singleOptionSelector,this.$container),function(element){var $element=$(element),type=$element.attr("type"),currentOption={};return type==="radio"||type==="checkbox"?$element[0].checked?(currentOption.value=$element.val(),currentOption.index=$element.data("index"),currentOption):!1:(currentOption.value=$element.val(),currentOption.index=$element.data("index"),currentOption)});return currentOptions=slate.utils.compact(currentOptions),currentOptions},_getVariantFromOptions:function(){var selectedValues=this._getCurrentOptions(),variants=this.product.variants,found=!1;
1return variants.forEach(function(variant){var satisfied=!0;selectedValues.forEach(function(option){satisfied&&(satisfied=option.value===variant[option.index])}),satisfied&&(found=variant)}),found||null},_onSelectChange:function(){var variant=this._getVariantFromOptions();if($(".selected-values").length>0&&variant&&($(".selected-values").text(variant.title),$(".Size_swatch .swatch_option").html(variant.option2)),this.$container.trigger({type:"variantChange",variant}),!!variant){if(typeof sizeSelected<"u"&&sizeSelected){var selector=this.originalSelectorId;if(variant)for(var form=$(selector).closest("form"),i=0,length=variant.options.length;i<length;i++){var radioButton=form.find('.swatch[data-option-index="'+i+'"] :radio[value="'+variant.options[i]+'"]');radioButton.size()&&(radioButton.get(0).checked=!0)}}this._updateMasterSelect(variant),this._updateImages(variant),this._updatePrice(variant),this.currentVariant=variant,this.enableHistoryState&&this._updateHistoryState(variant)}},_updateImages:function(variant){var variantImage=variant.featured_image||{},currentVariantImage=this.currentVariant.featured_image||{};!variant.featured_image||variantImage.src===currentVariantImage.src||this.$container.trigger({type:"variantImageChange",variant})},_updatePrice:function(variant){variant.price===this.currentVariant.price&&variant.compare_at_price===this.currentVariant.compare_at_price||this.$container.trigger({type:"variantPriceChange",variant})},_updateHistoryState:function(variant){if(!(!history.replaceState||!variant)){var newurl=window.location.protocol+"//"+window.location.host+window.location.pathname+"?variant="+variant.id;window.history.replaceState({path:newurl},"",newurl)}},_updateMasterSelect:function(variant){$(this.originalSelectorId,this.$container)[0].value=variant.id}}),Variants})(),theme.Product=(function(){var selectors={addToCart:"[data-add-to-cart]",addToCartText:"[data-add-to-cart-text]",comparePrice:"[data-compare-price]",comparePriceText:"[data-compare-text]",originalSelectorId:"[data-product-select]",priceWrapper:"[data-price-wrapper]",productFeaturedImage:"[data-product-featured-image]",productJson:"[data-product-json]",productPrice:"[data-product-price], [data-product-price-atc]",productThumbs:"[data-product-single-thumbnail]",singleOptionSelector:"[data-single-option-selector]"};function Product(container){if(this.$container=$(container),!!$(selectors.productJson,this.$container).html()){var sectionId=this.$container.attr("data-section-id");this.productSingleObject=JSON.parse($(selectors.productJson,this.$container).html());var options={$container:this.$container,enableHistoryState:this.$container.data("enable-history-state")||!1,singleOptionSelector:selectors.singleOptionSelector,originalSelectorId:selectors.originalSelectorId,product:this.productSingleObject};this.settings={},this.namespace=".product",this.variants=new slate.Variants(options),this.$featuredImage=$(selectors.productFeaturedImage,this.$container),this.$container.on("variantChange"+this.namespace,this.updateAddToCartState.bind(this)),this.$container.on("variantPriceChange"+this.namespace,this.updateProductPrices.bind(this)),this.$featuredImage.length>0&&(this.settings.imageSize=slate.Image.imageSize(this.$featuredImage.attr("src")),slate.Image.preload(this.productSingleObject.images,this.settings.imageSize))}}return Product.prototype=$.extend({},Product.prototype,{updateAddToCartState:function(evt){var variant=evt.variant;if(!variant){$(selectors.addToCart,this.$container).prop("disabled",!0),$(selectors.addToCartText,this.$container).html(theme.strings.unavailable),$(selectors.priceWrapper,this.$container).addClass("hide");return}typeof sizeSelected<"u"&&sizeSelected===!1||(variant.available?($(selectors.addToCart,this.$container).prop("disabled",!1),$(selectors.addToCartText,this.$container).html(theme.strings.addToCart)):($(selectors.addToCart,this.$container).prop("disabled",!0),$(selectors.addToCartText,this.$container).html(theme.strings.soldOut)))},updateProductPrices:function(evt){var variant=evt.variant,$comparePrice=$(selectors.comparePrice,this.$container),$compareEls=$comparePrice.add(selectors.comparePriceText,this.$container);$(selectors.productPrice,this.$container).html(slate.Currency.formatMoney(variant.price,theme.moneyFormat)),variant.compare_at_price>variant.price?($comparePrice.html(slate.Currency.formatMoney(variant.compare_at_price,theme.moneyFormat)),$compareEls.removeClass("hide")):($comparePrice.html(""),$compareEls.addClass("hide"))},updateProductImage:function(evt){var variant=evt.variant,sizedImgUrl=slate.Image.getSizedImageUrl(variant.featured_image.src,this.settings.imageSize+"_crop_center");this.$featuredImage.attr("src",sizedImgUrl)},onUnload:function(){this.$container.off(this.namespace)}}),Product})(),$(function(){$(document).on("change",".swatch .color_radio",function(){const colorItem=$(this).parent().find("label span");if(colorItem){const colorTitle=$(colorItem).text();$("[data-color-label]").first().text(colorTitle)}var optionIndex=jQuery(this).closest(".swatch").attr("data-option-index"),optionValue=jQuery(this).val();$(this).closest("form").find(".single-option-selector").eq(optionIndex).val(optionValue).trigger("change"),setTimeout(initVimeoWithListener,1e3)})});function syncVariantCopy(colorValue){var blocks=document.querySelectorAll(".variant-copy");if(!(!blocks.length||colorValue==null))for(var i=0;i<blocks.length;i++)blocks[i].hidden=blocks[i].getAttribute("data-copy-color")!==colorValue}function syncVariantStory(colorValue){var blocks=document.querySelectorAll(".story-variant");if(!(!blocks.length||colorValue==null))for(var probe="||"+colorValue+"||",i=0;i<blocks.length;i++){var colors=blocks[i].getAttribute("data-story-colors")||"";blocks[i].hidden=colors.indexOf(probe)===-1}}$(document).on("change",".swatch .color_radio",function(){syncVariantCopy(this.value),syncVariantStory(this.value)}),$(".Color_swatch .dropdown-menu li label").click(function(){$(".dropdown-item.selected").removeClass("selected"),$(this).parents(".dropdown-item").addClass("selected")}),$(".dropdown-menu li label").click(function(){var selText=$(this).text();$(this).parents(".btn-group").find(".btn").html('<span class="swatch_option">'+selText+'</span> <span class="spacer"></span>')}),$(".learn_more").on("click",function(event){if(this.hash!==""){event.preventDefault();var hash=this.hash;$("html, body").animate({scrollTop:$(hash).offset().top+-140},800,function(){})}});function initVimeoWithListener(){$(".vimeo-modal").click(function(event){event.preventDefault();var video_id=$(this).data("id"),htmlData='<button style="position: absolute;top: 30px;z-index: 99;left: 20px;" type="button" class="close video_close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>';htmlData+='<iframe class="vimeo_player" id="player" src="https://player.vimeo.com/video/'+video_id+"?api=1&player_id=player"+video_id+'&autoplay=1&loop=1&autopause=0" width="630" height="354" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>',$(".video_wrapper").append(htmlData),setTimeout(function(){var head=document.getElementsByTagName("head")[0],script=document.createElement("script");script.type="text/javascript",script.src="https://player.vimeo.com/api/player.js",head.appendChild(script)},400),setTimeout(function(){player.play().then(function(){}).catch(function(error){switch(error.name){case"PasswordError":break;case"PrivacyError":break;default:break}})},450),$(".video_close").on("click",function(){$(".vimeo_player").remove(),$(".video_close").remove()})})}initVimeoWithListener(),window.initVimeoWithListener=initVimeoWithListener,$(document).ready(function(){var sections=new slate.Sections;sections.register("product",theme.Product),slate.a11y.pageLinkFocus($(window.location.hash)),$(".in-page-link").on("click",function(evt){slate.a11y.pageLinkFocus($(evt.currentTarget.hash))});var tableSelectors=".rte table";slate.rte.wrapTable({$tables:$(tableSelectors),tableWrapperClass:"rte__table-wrapper"});var iframeSelectors='.rte iframe[src*="youtube.com/embed"],.rte iframe[src*="player.vimeo"]';slate.rte.wrapIframe({$iframes:$(iframeSelectors),iframeWrapperClass:"rte__video-wrapper"}),slate.cart.cookiesEnabled()&&(document.documentElement.className=document.documentElement.className.replace("supports-no-cookies","supp
1orts-cookies")),$("._on_hover").hover(function(){$(this).addClass("active")}),jQuery(function(){CartJS.init(shoppingBag,{dataAPI:!0,requestBodyClass:"cart-loading",moneyFormat:"",moneyWithCurrencyFormat:""})});var isLateralNavAnimating=!1;$(".overlay-form").on("click",function(){window.innerWidth<668?$("body").trigger("hideCartMobile"):($("body").removeClass("load-product"),$(".shopping-cart").hide()),$(this).removeClass("darken")}),$(document).on("cart.requestComplete",function(event,cart){window.innerWidth<668?$("body").trigger("showCartMobile"):$("body").addClass("load-product"),$(".overlay-form").addClass("darken"),setTimeout(function(){window.innerWidth<668?$("body").trigger("hideCartMobile"):$("body").removeClass("load-product"),$(".overlay-form").removeClass("darken")},6e3)}),$(".modal").on("show.bs.modal",function(){$(".modal").not($(this)).each(function(){$(this).modal("hide")})}),$(".has-children > a").on("click",function(event){var selectedItem=$(this);event.preventDefault(),selectedItem.parent("li").hasClass("selected")?selectedItem.parent("li").removeClass("selected"):($(".cd-side-nav").find(".has-children.selected").removeClass("selected"),selectedItem.parent("li").addClass("selected"))}),$("#menu").mmenu({navbar:{title:""},navbars:[{position:"bottom",content:["<div class='shipping_notification d-none'><em><a href='/pages/shipping-options'>Free shipping on orders over $75*</a></em></div>"]}],extensions:["pagedim-black","position-front"]});function showTime(){var date=new Date,pstOffset=-7,utc=date.getTime()+date.getTimezoneOffset()*6e4,pst=new Date(utc+pstOffset*36e5),h=pst.getHours(),m=pst.getMinutes(),s=pst.getSeconds(),session="AM";h==0&&(h=12),h>12&&(h=h-12,session="PM"),h=h<10?"0"+h:h,m=m<10?"0"+m:m,s=s<10?"0"+s:s;var time=h+":"+m+":"+s+" "+session;document.getElementById("MyClockDisplay").innerText=time,document.getElementById("MyClockDisplay").textContent=time,setTimeout(showTime,1e3)}var clock=document.getElementById("MyClockDisplay");if(clock){showTime();var today=new Date,dd=today.getDate(),mm=today.getMonth()+1,yyyy=today.getFullYear();dd<10&&(dd="0"+dd),mm<10&&(mm="0"+mm),today=mm+"/"+dd+"/"+yyyy,document.getElementById("myDate").innerHTML=today}const announcementBar=document.querySelector("#shopify-section-announcement-bar .announcement-bar"),announcementBarOffsetTop=announcementBar?parseFloat(announcementBar.dataset.offsetTop):0;function handleStickyHeader(){const mainHeader=document.querySelector(".main_header"),announcementBar2=document.querySelector("#shopify-section-announcement-bar"),searchModal=document.querySelector(".search-modal");searchModal&&searchModal.classList.contains("is-open")||(window.scrollY>=announcementBarOffsetTop?(mainHeader.classList.add("fixed-header"),announcementBar2.classList.add("fixed-ab")):(mainHeader.classList.remove("fixed-header"),announcementBar2.classList.remove("fixed-ab")))}function handleMobileSearchClick(event){event.target.closest(".search__mobile")&&(document.querySelector(".main_header").classList.add("fixed-header"),document.querySelector("#shopify-section-announcement-bar").classList.add("fixed-ab"))}function handleModalCloseClick(event){event.target.closest('button.close[data-dismiss="modal"]')&&(document.querySelector(".main_header").classList.remove("fixed-header"),document.querySelector("#shopify-section-announcement-bar").classList.remove("fixed-ab"))}window.addEventListener("load",handleStickyHeader),window.addEventListener("scroll",handleStickyHeader),document.addEventListener("click",handleMobileSearchClick),document.addEventListener("click",handleModalCloseClick),document.addEventListener("search-modal:open",function(){const searchInput=document.querySelector(".search-modal .js-search-input");searchInput&&searchInput.focus()}),$(".qtyplus").click(function(e){e.preventDefault(),fieldName=$(this).attr("field");var currentVal=parseInt($(e.target).closest(".qty-wrapper").find(".qty_number").val()),currentInput=$(this).closest(".qty-wrapper").find(".qty_number").val();isNaN(currentVal)?$(this).closest(".qty-wrapper").find(".qty_number").val(0):$(this).closest(".qty-wrapper").find(".qty_number").val(currentVal+1)}),$(".qtyminus").click(function(e){e.preventDefault(),fieldName=$(this).attr("field");var currentVal=parseInt($(e.target).closest(".qty-wrapper").find(".qty_number").val());!isNaN(currentVal)&¤tVal>0?$(this).closest(".qty-wrapper").find(".qty_number").val(currentVal-1):$(this).closest(".qty-wrapper").find(".qty_number").val.val(0)})}),$(".product_slider").slick({slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1,arrows:!0,asNavFor:".slider-nav",responsive:[{breakpoint:668,settings:{dots:!0,arrows:!1}
1}]}),$(document).on("click",".itemscope-details form button.avail_stock",function(e){var incomplete=$(this).closest("form").find(".swatch[data-option-index]").filter(function(){return $(this).find('input[type="radio"]:checked').length===0}).length>0;if(!incomplete)return!0;e.preventDefault(),$(".swatch_wrap .errorSize")[0]||$(".swatch_wrap").append('<div class="errorSize">You must select a size and a color</div>'),setTimeout(function(){$(".swatch_wrap .errorSize").remove()},3e3)});let disablePopUp=document.querySelector("div.outer-product_slider > button.btn.btn-primary.zoom-btn");disablePopUp!=null&&window.innerWidth<=425&&(disablePopUp.style.display="none"),$("#AnnouncementSlider").slick({accessibility:!0,arrows:!1,dots:!1,autoplay:!0,autoplaySpeed:5e3,touchThreshold:20,slidesToShow:1,vertical:!0});function setChartSize(size="in"){$("#sizeChart .modal-body .table-responsive table tr td").each(function(){let inch=$(this).data("in"),cm=$(this).data("cm");inch&&size=="in"&&$(this).html(inch),cm&&size=="cm"&&$(this).text(cm)})}function setUpChart(size="in"){$("#sizeChart .modal-body .table-responsive table tr td").each(function(){const sizeArray=this.innerText.split("/");sizeArray.length==2&&($(this).data("in",sizeArray[0]),$(this).data("cm",sizeArray[1])),setChartSize()})}if($("#sizeChart")&&(setUpChart(),$(".size-toggle .toggle").click(function(e){$(".size-toggle .toggle").removeClass("active"),$(this).addClass("active");let size=$(this).data("size");setChartSize(size)}),window.innerWidth<1090)){let ratio=window.innerWidth/1130;$("#sizeChart .modal-content").css("transform","scale("+ratio+")"),$(window).on("resize",function(){console.log("resizing"),ratio=window.innerWidth/1130,$("#sizeChart .modal-content").css("transform","scale("+ratio+")")})}if($(".template-product").length&&$(window).width()<=768){var isInViewport=el=>{var elementTop=$(el).offset().top,elementBottom=elementTop+$(el).outerHeight(),viewportTop=$(window).scrollTop(),viewportBottom=viewportTop+$(window).height();return elementBottom>viewportTop&&elementTop<viewportBottom};$(window).scroll(function(){})} 2//# sourceMappingURL=/cdn/shop/t/283/assets/theme.js.map?v=140165284677773733691788573437
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.