PageSourceSearch

https://www.gouletpens.com/cdn/shop/t/727/assets/site.js?v=21051568647987311271790010822

js gouletpens.com collected 2026-09-24 17:37:21 UTC 48,946 bytes, 6 lines download raw bytes

1window.slate=window.slate||{},window.theme=window.theme||{},window.cartenhance=[];let flage;slate.a11y={pageLinkFocus($element){const focusClass="js-focus-hidden";$element.first().attr("tabIndex","-1").focus().addClass(focusClass).one("blur",callback);function callback(){$element.first().removeClass(focusClass).removeAttr("tabindex")}},focusHash(){const hash=window.location.hash;hash&&document.getElementById(hash.slice(1))&&this.pageLinkFocus($(hash))},bindInPageLinks(){$("a[href*=#]").on("click",evt=>{this.pageLinkFocus($(evt.currentTarget.hash))})},trapFocus(options){const eventName=options.namespace?`focusin.${options.namespace}`:"focusin";options.$elementToFocus||(options.$elementToFocus=options.$container),options.$container.attr("tabindex","-1"),options.$elementToFocus.focus(),$(document).on(eventName,evt=>{options.$container[0]!==evt.target&&!options.$container.has(evt.target).length&&options.$container.focus()})},removeTrapFocus(options){const eventName=options.namespace?`focusin.${options.namespace}`:"focusin";options.$container&&options.$container.length&&options.$container.removeAttr("tabindex"),$(document).off(eventName)}},slate.cart={cookiesEnabled(){let cookieEnabled=navigator.cookieEnabled;return cookieEnabled||(document.cookie="testcookie",cookieEnabled=document.cookie.indexOf("testcookie")!==-1),cookieEnabled}},slate.utils={findInstance(array,key,value){for(let i=0;i<array.length;i++)if(array[i][key]===value)return array[i]},removeInstance(array,key,value){let i=array.length;for(;i--;)if(array[i][key]===value){array.splice(i,1);break}return array},compact(array){let index=-1;const length=array==null?0:array.length;let resIndex=0;const result=[];for(;++index<length;){const value=array[index];value&&(result[resIndex++]=value)}return result},defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value}},slate.rte={wrapTable(options){const tableWrapperClass=typeof options.tableWrapperClass>"u"?"":options.tableWrapperClass;options.$tables.wrap(`<div class="${tableWrapperClass}"></div>`)},wrapIframe(options){const 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(container,constructor){const $container=$(container),id=$container.attr("data-section-id"),type=$container.attr("data-section-type");if(constructor=constructor||this.constructors[type],typeof constructor>"u")return;const instance=$.extend(new constructor(container),{id,type,container});this.instances.push(instance)},_onSectionLoad(evt){const container=$("[data-section-id]",evt.target)[0];container&&this._createInstance(container)},_onSectionUnload(evt){const 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(evt){const instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onSelect=="function"&&instance.onSelect(evt)},_onDeselect(evt){const instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onDeselect=="function"&&instance.onDeselect(evt)},_onReorder(evt){const instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onReorder=="function"&&instance.onReorder(evt)},_onBlockSelect(evt){const instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onBlockSelect=="function"&&instance.onBlockSelect(evt)},_onBlockDeselect(evt){const instance=slate.utils.findInstance(this.instances,"id",evt.detail.sectionId);instance&&typeof instance.onBlockDeselect=="function"&&instance.onBlockDeselect(evt)},register(type,constructor){this.constructors[type]=constructor,$(`[data-section-type=${type}]`).each((index,container)=>{this._createInstance(container,constructor)})}}),slate.Currency=(function(){const moneyFormat="${{amount}}";function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));let value="";const 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);const 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(let i=0;i<images.length;i++){const image=images[i];this.loadImage(this.getSizedImageUrl(image,size))}}function loadImage(path){new Image().src=path}function imageSize(src){if(!src)return null;const 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);const match=src.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i);if(match){const prefix=src.split(match[0]),suffix=match[0];return 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(){let currentOptions=$.map($(this.singleOptionSelector,this.$container),element=>{const $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(){const selectedValues=this._getCurrentOptions(),variants=this.product.variants;let found=!1;
1return variants.forEach(variant=>{let satisfied=!0;selectedValues.forEach(option=>{satisfied&&(satisfied=option.value===variant[option.index])}),satisfied&&(found=variant)}),found||null},_onSelectChange(){const variant=this._getVariantFromOptions();this.$container.trigger({type:"variantChange",variant}),variant&&(this._updateMasterSelect(variant),this._updateImages(variant),this._updatePrice(variant),this._updateButtonCart(variant),this._updateStickyATC(variant),this.currentVariant=variant,this.enableHistoryState&&this._updateHistoryState(variant),this._updateEnhanceOptions(variant),this._updateFullDetailLink(variant),this._updateQuickViewSwym(variant))},_updateImages(variant){const variantImage=variant.featured_image||{},currentVariantImage=this.currentVariant.featured_image||{};!variant.featured_image||variantImage.src===currentVariantImage.src||this.$container.trigger({type:"variantImageChange",variant})},_updatePrice(variant){variant.price===this.currentVariant.price&&variant.compare_at_price===this.currentVariant.compare_at_price||this.$container.trigger({type:"variantPriceChange",variant})},_updateHistoryState(variant){if(!history.replaceState||!variant||!document.body.classList.contains("template-product"))return;const newurl=`${window.location.protocol}//${window.location.host}${window.location.pathname}?variant=${variant.id}`;window.history.replaceState({path:newurl},"",newurl)},_updateMasterSelect(variant){$(this.originalSelectorId,this.$container)[0].value=variant.id},_updateButtonCart(variant){variant.available?($("button.btn.btn--primary.btn--add-to-cart").prop("disabled",!1),$(".quantity__container").removeClass("hide"),$(".quantity--grid-container").addClass("four-fifths medium--six-tenths"),$(".quantity--grid-container2").removeClass("medium--one-third"),$(".quantity--grid-container2").removeClass("hide"),$(".notify-me-btn").addClass("hide"),$(".wishlist-btn").addClass("medium--three-tenths"),$(".wishlist-btn").removeClass("medium--one-third")):($("button.btn.btn--primary.btn--add-to-cart").prop("disabled",!0),$(".quantity__container").addClass("hide"),$(".quantity--grid-container").removeClass("four-fifths medium--six-tenths"),$(".quantity--grid-container").addClass("medium--one-third"),$(".quantity--grid-container2").addClass("hide"),$(".notify-me-btn").removeClass("hide"),$(".wishlist-btn").removeClass("medium--three-tenths"),$(".wishlist-btn").addClass("medium--one-third")),$("#BIS_trigger").attr("data-variant-id",variant.id)},_updateStickyATC(variant){variant.available?($(".sticky-atc-banner-wrapper").removeClass("hide_sticky"),$(".sticky-atc-banner-wrapper").addClass("show_sticky")):($(".sticky-atc-banner-wrapper").addClass("hide_sticky"),$(".sticky-atc-banner-wrapper").removeClass("show_sticky"))},_updateEnhanceOptions(variant){variant.available?($(".main_enhance").removeClass("checkbox-disabled"),$(".product__out-stock-notice").addClass("hide")):($(".main_enhance").addClass("checkbox-disabled"),$(".product__out-stock-notice").removeClass("hide"))},_updateFullDetailLink(variant){const productUrl=$("[data-product-full-url-link]").data("url");let newUrl;variant?newUrl=`${productUrl}?variant=${variant.id}`:newUrl=productUrl,$("[data-product-full-url-link]").attr("href",newUrl)},_updateQuickViewSwym(variant){variant&&($(".modal-quickview .swym-add-to-wishlist-view-product").attr("data-variant-id",variant.id),document.dispatchEvent(new CustomEvent("swym:quickview-loaded")))}}),Variants})(),theme.Product=(function(){const selectors={addToCart:"[data-add-to-cart]",addToCartText:"[data-add-to-cart-text]",productSku:"[data-sku-element]",comparePrice:"[data-compare-price]",comparePriceText:"[data-compare-text]",saleTag:"[data-sale-indicator]",outStock:"[data-stock-out]",inStock:"[data-stock-in]",availability:"[data-availability]",stockDate:"[data-release-date]",promoText:"[data-promo-text]",msrp:"[data-msrp]",msrpContainer:"[data-msrp-container]",originalSelectorId:"[data-product-select]",priceWrapper:"[data-price-wrapper]",productFeaturedImage:"[data-product-featured-image]",productJson:"[data-product-json]",productPrice:"[data-product-price-el]",productLoginPrice:"[data-product-login-price]",productThumbs:"[data-product-single-thumbnail]",
1singleOptionSelector:"[data-single-option-selector]"};function Product(container){if(this.$container=$(container),!$(selectors.productJson,this.$container).html())return;const sectionId=this.$container.attr("data-section-id");this.productSingleObject=JSON.parse($(selectors.productJson,this.$container).html());const 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(`variantChange${this.namespace}`,this.updateSKU.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")),this.$container.on(`variantImageChange${this.namespace}`,this.updateProductImage.bind(this))),window.ehouse.product&&(this.variants.currentVariant.available==!1&&window.ehouse.product.tags.includes("bis-hidden")?($("[data-pdp-wishlist]").css("opacity",0),$("[data-pdp-wishlist]").css("pointer-events","none"),$("[data-pdp-wishlist]").css("height","0")):($("[data-pdp-wishlist]").css("opacity",1),$("[data-pdp-wishlist]").css("pointer-events","auto"),$("[data-pdp-wishlist]").css("height","auto")))}return Product.prototype=$.extend({},Product.prototype,{updateAddToCartState(evt){const variant=evt.variant,swymBar=document.querySelector(".swym-button-bar");if(swymBar&&(variant.available==!1&&window.ehouse.product.tags.includes("bis-hidden")?swymBar.style.display="none":swymBar.style.display="block"),variant)$(selectors.priceWrapper,this.$container).removeClass("hide");else{$(selectors.addToCart,this.$container).prop("disabled",!0),$(selectors.addToCartText,this.$container).html("out of stock"),$(selectors.priceWrapper,this.$container).addClass("hide"),$(selectors.outStock,this.$container).removeClass("hide"),$(selectors.inStock,this.$container).addClass("hide");return}variant.available?($(selectors.addToCart,this.$container).prop("disabled",!1),$(selectors.addToCartText,this.$container).html(theme.strings.addToCart),$(selectors.outStock,this.$container).addClass("hide"),$(selectors.inStock,this.$container).removeClass("hide")):($(selectors.addToCart,this.$container).prop("disabled",!0),$(selectors.addToCartText,this.$container).html("out of stock"),$(selectors.inStock,this.$container).addClass("hide"),$(selectors.outStock,this.$container).removeClass("hide"),typeof variantsRelease<"u"&&variantsRelease[variant.id]!=null&&variantsRelease!=""?($(selectors.stockDate,this.$container).html(variantsRelease[variant.id]),$(selectors.addToCartText,this.$container).html(variantsRelease[variant.id])):$(selectors.stockDate,this.$container).html("out of stock")),document.body.className=document.body.className.replace("cart-error","")},updateProductPrices(evt){const variant=evt.variant,$productPrice=$(selectors.productPrice,this.$container),$productLoginPrice=$(selectors.productLoginPrice,this.$container),$comparePrice=$(selectors.comparePrice,this.$container),$compareEls=$comparePrice.add(selectors.comparePriceText,this.$container),$saleTag=$(selectors.saleTag,this.$container);typeof variantsLoginPrice<"u"&&variantsLoginPrice[variant.id]!=""?$(selectors.productLoginPrice,this.$container).html(variantsLoginPrice[variant.id]):$(selectors.productPrice,this.$container).html(slate.Currency.formatMoney(variant.price,theme.moneyFormat)),$(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"),$productPrice.addClass("sale"),$saleTag.removeClass("hide")):($comparePrice.html(""),$compareEls.addClass("hide"),$productPrice.removeClass("sale"),$saleTag.addClass("hide"))},updateProductImage(evt){const variant=evt.variant,sizedImgUrl=slate.Image.getSizedImageUrl(variant.featured_image.src,this.settings.imageSize);this.$featuredImage.attr("src",sizedImgUrl)},updateSKU(evt){const variant=evt.variant,$sku=$(selectors.productSku,this.$container);$($sku).html(variant.sku),typeof variantsPromoText<"u"&&variantsPromoText[variant.id]!=""?($(selectors.promoText,this.$container).removeClass("hide"),$(selectors.promoText,this.$container).html(variantsPromoText[variant.id])):$(selectors.promoText,this.$container).addClass("hide"),typeof variantsMSRP<"u"&&variantsMSRP[variant.id]!=""?($(selectors.msrpContainer,this.$container).removeClass("hide"),$(selectors.msrp,this.$container).html(variantsMSRP[variant.id])):$(selectors.msrpContainer,this.$container).addClass("hide")},onUnload(){this.$container.off(this.namespace)}}),Product})();const LazyLoad={setTileMediaQueries:tile=>{const tileIdentifier=tile.getAttribute("data-io-id"),tileImages=tile.getAttribute("io-bg-srcset").split(","),stylesElement=document.createElement("style");
1tileImages.forEach(tileImage=>{const imageParts=tileImage.trim().split(" ");stylesElement.innerHTML+=`@media screen and (min-width: ${imageParts[1]}) {
2        [data-io-id="${tileIdentifier}"] {
3          background-image: url('${imageParts[0]}');
4        }
5      }`}),document.body.appendChild(stylesElement)},setTileBackground:(tile,observer,isIntersecting)=>{if(!isIntersecting)return;if(tile.hasAttribute("io-bg-src")){const backgroundURL=tile.getAttribute("io-bg-src");tile.style.backgroundImage=`url('${backgroundURL}')`}if(tile.hasAttribute("io-bg-srcset")&&LazyLoad.setTileMediaQueries(tile),tile.hasAttribute("io-img-src")){const src=tile.getAttribute("io-img-src");if(tile.setAttribute("src",src),tile.hasAttribute("io-img-srcset")){const srcset=tile.getAttribute("io-img-srcset");tile.setAttribute("srcset",srcset)}}observer&&observer.unobserve(tile);const imageEvent=new CustomEvent("ioSourceSet",{detail:{target:tile}});document.dispatchEvent(imageEvent)},createObservers:({toObserve,successCallback,errorCallback,margins})=>{if("IntersectionObserver"in window){const rootMargin={rootMargin:margins},callback=(entries,observer2)=>{entries.forEach(entry=>{successCallback(entry.target,observer2,entry.isIntersecting)})},observer=new IntersectionObserver(callback,rootMargin);toObserve.forEach(tile=>{observer.observe(tile)})}else{const callback=errorCallback!==!1?errorCallback:successCallback;toObserve.forEach(tile=>{callback(tile,!1,!0)})}},setupObservers:({queryString="[io-img-src], [io-img-srcset], [io-bg-src], [io-bg-srcset]",callback=LazyLoad.setTileBackground,errorCallback=!1,margins="0% 0% 0% 0%"}={})=>{const toObserve=document.querySelectorAll(queryString);LazyLoad.createObservers({toObserve,successCallback:callback,errorCallback,margins})}};theme.customerAddresses=(function(){const $newAddressForm=$("#AddressNewForm");$newAddressForm.length&&(Shopify&&new Shopify.CountryProvinceSelector("AddressCountryNew","AddressProvinceNew",{hideElement:"AddressProvinceContainerNew"}),$(".address-country-option").each(function(){const formId=$(this).data("form-id"),countrySelector=`AddressCountry_${formId}`,provinceSelector=`AddressProvince_${formId}`,containerSelector=`AddressProvinceContainer_${formId}`;new Shopify.CountryProvinceSelector(countrySelector,provinceSelector,{hideElement:containerSelector})}),$(".address-new-toggle").on("click",function(){$(".edit-address-form").hasClass("hide")||$(".edit-address-form").addClass("hide"),$(".js-noEdit").hasClass("hide")?$(".js-noEdit").removeClass("hide"):$(".js-noEdit").addClass("hide"),$newAddressForm.toggleClass("hide"),$(this).hasClass("js-isCancel")&&$("html, body").animate({scrollTop:0},1e3)}),$(".address-edit-toggle").on("click",function(){$newAddressForm.hasClass("hide")||$newAddressForm.addClass("hide"),$(".js-noEdit").hasClass("hide")?$(".js-noEdit").removeClass("hide"):$(".js-noEdit").addClass("hide");const formId=$(this).data("form-id");$(`#EditAddress_${formId}`).toggleClass("hide"),$(this).hasClass("js-isCancel")&&$("html, body").animate({scrollTop:0},1e3)}),$(".address-delete").on("click",function(){const $el=$(this),formId=$el.data("form-id"),confirmMessage=$el.data("confirm-message");confirm(confirmMessage||"Are you sure you wish to delete this address?")&&Shopify.postLink(`/account/addresses/${formId}`,{parameters:{_method:"delete"}})}))})(),theme.customerLogin=(function(){const config={recoverPasswordForm:"#RecoverPassword",hideRecoverPasswordLink:"#HideRecoverPasswordLink"};if(!$(config.recoverPasswordForm).length)return;checkUrlHash(),resetPasswordSuccess(),$(config.recoverPasswordForm).on("click",onShowHidePasswordForm),$(config.hideRecoverPasswordLink).on("click",onShowHidePasswordForm);function onShowHidePasswordForm(evt){evt.preventDefault(),toggleRecoverPasswordForm()}function checkUrlHash(){window.location.hash==="#recover"&&toggleRecoverPasswordForm()}function toggleRecoverPasswordForm(){$("#RecoverPasswordForm").toggleClass("hide"),$("#CustomerLoginForm").toggleClass("hide")}function resetPasswordSuccess(){$(".reset-password-success").length&&$("#ResetSuccess").removeClass("hide")}})(),site={browserWidth:0,setBrowserWidth(){site.browserWidth=window.innerWidth||document.documentElement.clientWidth},initNavigation(){$nav=$(".js-nav"),$navToggle=$(".js-navToggleBtn"),$subNavButton=$(".js-subnavToggleBtn"),$subNavToggle=$subNavButton.parent("li"),$subNavBgToggle=$subNavButton.parent(".js-
5hasDropdown"),$subNavBgToggle2=$(".site-nav"),$buttonLink=$(".js-link"),$submenuToggle=$(".js-submenuBtn"),$submenu=$(".dropdown-wrap"),$submenuBackBtn=$(".js-submenuBackBtn"),$thirdmenuToggle=$(".js-thirdmenuBtn"),$thirdmenu=$(".js-thirdmenu"),$submenuBackBtn=$(".js-submenuBackBtn"),$stickySearchToggle=$("[data-js-sticky-search-toggle]"),$stickySearchClose=$("[data-js-sticky-search-close]"),$submenuBackBtn.on("click",closeSubMenu),$thirdmenuToggle.on("click",toggleThirdMenu),$navToggle.on("click",toggleNav),$subNavButton.on("click",openSubNav),$submenuToggle.on("click",openSubMenu),$subNavToggle.hoverIntent({over:dropDown,timeout:200}),$subNavBgToggle2.hoverIntent({over:dropBg,timeout:200}),$buttonLink.on("click",buttonLink),$stickySearchToggle.on("click",handleStickySearchClick),$stickySearchClose.on("click",hideStickySearchForm),$(document).on("click",".header__search-form-clear",function(){$('[name="q"]').val(""),$('[name="q"]').focus(),$(this).css("visibility","hidden")});function hideStickySearchForm(){$("body").removeClass("show-sticky-search-form")}function handleStickySearchClick(){$("body").hasClass("show-sticky-search-form")?$("body").removeClass("show-sticky-search-form"):$("body").addClass("show-sticky-search-form")}function toggleThirdMenu(event){event.preventDefault(),$(this).toggleClass("is-active").next($thirdmenu).toggleClass("is-active")}function openSubMenu(event){site.browserWidth<1025&&(event.preventDefault(),$(this).next($submenu).addClass("is-active"))}function closeSubMenu(event){site.browserWidth<1025&&(event.preventDefault(),$(this).parent($submenu).removeClass("is-open"),$(".dropdown-wrap").removeClass("is-open"),$(".js-subnavToggleBtn").removeClass("is-open"))}function dropDown(){site.browserWidth>=1025&&$(this).children("button").first().toggleClass("is-open").next(".dropdown-wrap").toggleClass("is-open")}function dropBg(event){site.browserWidth>=1025&&(event.target.classList.contains("site-nav__link--btn")&&event.target.classList.contains("no-child")?$(this).removeClass("is-open"):$(this).toggleClass("is-open"))}function openSubNav(event){event.preventDefault();function Drop(){$(this).children("button").first().toggleClass("is-open").next(".dropdown-wrap").toggleClass("is-open")}if(site.browserWidth<1025&&event.type=="click")$(this).toggleClass("is-open").next(".dropdown-wrap").toggleClass("is-open");else if(!(site.browserWidth>=1025&&(event.type=="mouseenter"||event.type=="mouseleave")))return!1}function toggleNav(event){event.preventDefault(),$nav.toggleClass("active"),$("body").toggleClass("nav-active"),$navToggle.toggleClass("is-active")}function buttonLink(event){event.preventDefault(),$(this).hasClass("enable-on-mobile")?window.location=$(this).data("href"):site.browserWidth>=1025&&(window.location=$(this).data("href"))}},initScrollLink(){if($(".js-scrollLink").on("click",function(e){e.preventDefault();const $link=$(this).attr("href");$("html, body").animate({scrollTop:$($link).offset().top},500)}),$(".js-scrollDiv").on("click",function(e){e.preventDefault();const $link=$(this).data("href"),$linkContent=$($link).find(".js-readMoreContent");$("html, body").animate({scrollTop:$($link).offset().top-100},500),$linkContent.hasClass("open")||$($link).find(".js-readMoreBtn").click()}),window.location.hash){const url=window.location.href,hash=url.substring(url.indexOf("#"));$("html, body").animate({scrollTop:$(hash).offset().top-100},500),$(hash).next(".js-toggleContent").slideToggle(),$(hash).toggleClass("is-open")}},initCssVariables(){const $announcementBanner=$(".announcement-banners");let announcementBannerShowingHeight=0;const headerHeight=Math.floor($(".site-header").outerHeight());$announcementBanner&&(announcementBannerHeight=Math.floor($(".announcement-banners").outerHeight()),announcementBannerScolledY=Math.abs($announcementBanner[0].getBoundingClientRect().y),announcementBannerHeight>=announcementBannerScolledY&&(announcementBannerShowingHeight=announcementBannerHeight-announcementBannerScolledY)),document.documentElement.style.setProperty("--announcement-header-height",`${announcementBannerShowingHeight}px`),document.documentElement.style.setProperty("--header-height",`${headerHeight}px`)},initToggleContent(){$(".js-toggleBtn").on("click",function(e){$(this).next(".js-toggleContent").slideToggle(),$(this).toggleClass("is-open")})},initShowMore(){$(".js-showMore").on("click",function(e){$(this).hasClass("is-open")?($(this).text("+ show more images").removeClass("is-open"),$(".product-thumbs .mz-thumb:nth-child(1n + 11)").css("display","none"),$(".product-gallery__slide.desktop-only:nth-child(1n + 11)").css("display","none"),window.scrollTo({top:0,behavior:"smooth"})):($(this).text("- show less images").addClass("is-open"),$(".product-thumbs .mz-thumb").css("display","block"),$(".product-gallery__slide.desktop-only:nth-child(1n + 11)").css("display","block"))}),$("[data-btn-play-video]").on("click",function(e){let video=e.target.closest("[data-sli
5de-id]").querySelector("video");if(!video){const slideId=e.currentTarget.dataset.slideId;video=document.querySelector(`.product-gallery__slide--mobile[data-slide-id=${slideId}] video`)}video&&($(this).toggleClass("playing"),$(this).hasClass("playing")?video.play():video.pause())}),$(".product-thumbs .mz-thumb").first().click()},initAppendAround(){$(".js-appendaroundContent").appendAround()},initListToSelect(){$selectNav=$(".js-selectNav"),$("<select class='page-nav__select js-page-nav-select' />").appendTo($selectNav),$($selectNav).find("a").each(function(){let $item=$(this),$selected=$item.hasClass("current");$("<option />",{value:$item.attr("href"),text:$item.text(),selected:$selected}).appendTo(".js-page-nav-select")}),$selectNav.on("change",()=>{$selectedNav=$(".js-page-nav-select option:selected"),$selectedNav!==""&&(window.location.href=$selectedNav.val())})},initScrollIndicate(){$(window).scrollTop()<300?$("body").removeClass("scrolled"):$("body").addClass("scrolled")},initNavStick(){$(".site-header")[0].getBoundingClientRect().y>-115?$("body").removeClass("sticky-nav-enabled"):$("body").addClass("sticky-nav-enabled")},initATCStick(){$("body").hasClass("template-product")&&($(window).scrollTop()>=$("#AddToCart").offset().top+$("#AddToCart").outerHeight()?($(".sticky-atc-banner-wrapper").addClass("active"),$(".site-nav__container").addClass("added-atc")):($(".sticky-atc-banner-wrapper").removeClass("active"),$(".site-nav__container").removeClass("added-atc")))},initBackTop(){$(".js-backToTop").click(()=>{$("html, body").animate({scrollTop:0},1e3)})}
5,initFormValidate(){$(".js-newsletterFormContainer form").validate({rules:{"contact[email]":{required:!0,email:!0}},messages:{"contact[email]":{required:"Please enter your email address.",email:"Please enter a valid email address."}},errorPlacement(error,element){error.insertBefore(".input-group")}}),$(".js-contactForm form#contact_form").validate({rules:{"contact[name]":{required:!0},"contact[email]":{required:!0,email:!0},"contact[body]":{required:!0}},messages:{"contact[name]":{required:"Please enter your name."},"contact[email]":{required:"Please enter your email address.",email:"Please enter a valid email address."},"contact[body]":{required:"Please provide a brief message."}}}),$("#CustomerLoginForm form#customer_login, form#create_customer, form#activate_customer_password").validate({rules:{"customer[email]":{required:!0,email:!0},"customer[password]":{required:!0}},messages:{"customer[email]":{required:"Please enter your email address.",email:"Please enter a valid email address."},"customer[password]":{required:"Please enter password."}}}),$("#RecoverPasswordForm form").validate({rules:{email:{required:!0,email:!0}},messages:{email:{required:"Please enter your email address.",email:"Please enter a valid email address."}}})},initGallery(){$(".js-slider").slick({lazyLoad:"progressive",slidesToShow:1,slidesToScroll:1,dots:!0,adaptiveHeight:!0,customPaging(slick,index){return`<button style="background-image:url(${$(slick.$slides[index]).data("thumb")});"></button>`},responsive:[{breakpoint:480,settings:{arrows:!1}
5},{breakpoint:768,settings:{arrows:!0}}]}),$(".js-slider").show()},initGallerySwatch(){$(".js-slider-swatch").slick({lazyLoad:"progressive",slidesToShow:5,slidesToScroll:1,dots:!0}),$(".js-slider-swatch").show()},initReadMore(){$(".js-readMoreBtn").on("click",function(e){e.preventDefault();let openText="";$(this).hasClass("js-readMoreBtn--videos")?openText="+ see more":$(this).hasClass("js-readMoreBTN--orderSummary")?openText="+ view order summary":openText="+ read more",$(this).hasClass("is-open")?($(this).removeClass("is-open").html(`<span>${openText}</span>`).parent().find(".js-readMoreContent").removeClass("open"),$(this).removeClass("is-open").html(`<span>${openText}</span>`).parent().find(".read-more__content2").removeClass("open")):($(this).addClass("is-open").html("<span>- show less</span>").parent().find(".js-readMoreContent").addClass("open"),$(this).addClass("is-open").html("<span>- show less</span>").parent().find(".read-more__content2").addClass("open"))})},initQuantityIncrement(){$("body").on("click",".js-increment",function(e){e.preventDefault();const $button=$(e.currentTarget),$input=$button.parent().find("input"),maxValue=parseFloat($input.attr("max")),hasMax=!isNaN(maxValue),oldValue=parseFloat($input.val())||0;let newValue=oldValue,blockedByLimit=!1;$button.text()=="+"?(newValue=oldValue+1,hasMax&&newValue>maxValue&&(newValue=Math.max(oldValue,maxValue),blockedByLimit=!0)):oldValue>0&&(newValue=oldValue-1);const $cartItem=$button.closest(".cart-products__products-item");$cartItem.length>0?$cartItem.find("input.stepper-input").val(newValue):$button.parent().find("input").val(newValue),site.checkHasOverPurchasedProducts(),newValue!==oldValue?$input.trigger("change"):blockedByLimit&&$cartItem.length>0&&showPurchaseLimitNotice($cartItem,maxValue)}),$("body").on("keydown",".cart-products__products-item .stepperInput__input",function(e){(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),$(this).trigger("change"))});function updateCartContents2(itemRow,qtyVal,itemKey){const $currentTotal=$(`[data-item-total="${itemKey}"]`),$currentCartSummary=$(".cart-summary__table"),$currentCartCount=$(".header__cart-btn--count"),$currentOrderTotal=$(".cart-header__subtotal"),$currentHeaderItemCount=$("[data-header-item-count]");$.ajax({type:"get",url:"/cart",success(data){const $updatedTotal=$(data).find(`[data-item-total="${itemKey}"]`).html(),$updatedCartSummary=$(data).find(".cart-summary__table").html(),$updatedCartCount=$(data).find(".header__cart-btn--count").html(),$updatedOrderTotal=$(data).find(".cart-header__subtotal").html();$currentTotal.html($updatedTotal),$currentCartSummary.html($updatedCartSummary),$currentCartCount.html($updatedCartCount),$currentOrderTotal.html($updatedOrderTotal),$currentHeaderItemCount.html($updatedCartCount),itemRow.find("input.stepper-input").data("item-qty",qtyVal),parseFloat($updatedCartCount)<=1?$("[data-header-item-unit]").html("item"):$("[data-header-item-unit]").html("items"),itemRow.removeClass("disabled"),site.checkHasOverPurchasedProducts()},error(){itemRow.removeClass("disabled"),site.checkHasOverPurchasedProducts()}})}function changeLineQuantity(options){const attempt=options.attempt||0;$.ajax({type:"post",dataType:"json",url:"/cart/change.js",data:{line:options.line,quantity:options.quantity},success:options.success,error(xhr){const isRateLimited=xhr.status===429||xhr.status===430;if(isRateLimited&&attempt<2){const retryAfter=parseInt(xhr.getResponseHeader("Retry-After"),10),waitMs=!isNaN(retryAfter)&&retryAfter>0?retryAfter*1e3:Math.min(1e3*Math.pow(2,attempt),4e3);window.setTimeout(()=>{changeLineQuantity($.extend({},options,{attempt:attempt+1}))},waitMs);return}options.error(xhr,isRateLimited)}})}const cartLineUpdates={};function scheduleCartLineUpdate($input){const $itemRow=$input.closest(".cart-products__products-item"),itemKey=$input.data("item-key");if(!itemKey||!$itemRow.length)return;const qtyVal=parseInt($input.val(),10),oldVal=parseInt($input.data("item-qty"),10),state=cartLineUpdates[itemKey]||(cartLineUpdates[itemKey]={});if(isNaN(qtyVal)){$itemRow.find("input.stepper-input").val(oldVal),site.checkHasOverPurchasedProducts();return}state.$input=$input,state.$itemRow=$itemRow,state.itemLine=$input.data("item-line"),state.qtyVal=qtyVal,state.oldVal=oldVal,window.clearTimeout(state.timer),state.timer=window.setTimeout(function(){flushCartLineUpdate(itemKey)},300)}function flushCartLineUpdate(itemKey){const state=cartLineUpdates[itemKey];if(!state)return;if(state.inflight){state.queued=!0;return}if(isNaN(state.qtyVal)||state.qtyVal===state.oldVal){site.checkHasOverPurchasedProducts();return}
5const $input=state.$input,$itemRow=state.$itemRow,qtyVal=state.qtyVal,oldVal=state.oldVal;state.inflight=!0,$itemRow.addClass("disabled"),clearCartLineError($itemRow),site.checkHasOverPurchasedProducts(),changeLineQuantity({line:state.itemLine,quantity:qtyVal,success(cart){if(state.oldVal=qtyVal,qtyVal===0){window.location.reload(!0);return}cart&&typeof cart.total_price<"u"&&typeof calculateCartProgress=="function"&&calculateCartProgress(cart.total_price,window.setThreshold*100),updateCartContents2($itemRow,qtyVal,itemKey),finishCartLineUpdate(itemKey)},error(xhr,isRateLimited){const response=xhr.responseJSON||{};let message=response.description||response.message||"Unable to update item quantity due to availability.";isRateLimited&&(message="Too many cart updates in a short time. Refreshing the page\u2026"),$input.val(oldVal),$itemRow.find("input.stepper-input").val(oldVal),$itemRow.removeClass("disabled"),showCartLineError($itemRow,message),site.checkHasOverPurchasedProducts(),finishCartLineUpdate(itemKey),isRateLimited&&window.setTimeout(function(){window.location.reload()},3e3)}})}function finishCartLineUpdate(itemKey){const state=cartLineUpdates[itemKey];state&&(state.inflight=!1,state.queued&&(state.queued=!1,flushCartLineUpdate(itemKey)))}function showCartLineError($itemRow,message){const $error=$itemRow.find("[data-cart-line-error]").first();if($error.length){$error.text(message).prop("hidden",!1);return}$itemRow.find(".cart-products__product-content").first().prepend($('<p class="cart-line-error" data-cart-line-error role="alert"></p>').text(message))}function clearCartLineError($itemRow){$itemRow.find("[data-cart-line-error]").text("").prop("hidden",!0)}function showPurchaseLimitNotice($itemRow,maxValue){const limitMessage=$.trim($itemRow.find("[data-purchase-limit-error]").text())||`You can only purchase this product maximum ${maxValue}.`;showCartLineError($itemRow,limitMessage)}$("body").on("change paste keyup",".stepperInput__input",function(){const newVal=$(this).parent().find("input").val();$(this).closest(".cart-products__products-item").length>0?$(this).closest(".cart-products__products-item").find("input.stepper-input").val(newVal):$(this).closest(".js-productBuyContainer").find(".js-quantityValue").html(newVal),site.checkHasOverPurchasedProducts()}),$("body").on("change","[data-qty-adjuster]",function(){scheduleCartLineUpdate($(this))}),$("body").on("submit","[data-js-cart-form]",function(e){if(!site.checkHasOverPurchasedProducts())return;e.preventDefault();const $firstOverLimit=$("[data-purchase-limit-error]").not("[hidden]").first();$firstOverLimit.length&&$("html, body").animate({scrollTop:$firstOverLimit.offset().top-120},200)}),site.checkHasOverPurchasedProducts()},checkHasOverPurchasedProducts(){let hasOverPurchasedProducts=!1;return $(".cart-products__products-item").each(function(){const $row=$(this),$input=$row.find("input.stepper-input").first();if($input.length===0)return;const maxValue=parseInt($input.attr("max"),10),value=parseInt($input.val(),10),isOverLimit=!isNaN(maxValue)&&!isNaN(value)&&value>maxValue;isOverLimit&&(hasOverPurchasedProducts=!0),$row.find("[data-purchase-limit-error]").prop("hidden",!isOverLimit)}),$("[data-checkout-btn]").prop("disabled",hasOverPurchasedProducts),hasOverPurchasedProducts},initToolTip(){var isTouch="ontouchstart"in window||navigator.maxTouchPoints>0;isTouch?$(".tooltip").tooltipster({interactive:!0,maxWidth:200,trigger:"click",side:["top","right","bottom","left"],theme:["tooltipster-shadow","tooltipster-shadow-customized"]}):$(".tooltip").tooltipster({interactive:!0,interactiveTolerance:400,delay:[0,300],maxWidth:200,trigger:"custom",triggerOpen:{mouseenter:!0,click:!0,focus:!0},triggerClose:{mouseleave:!0,scroll:!0},side:["top","right","bottom","left"],theme:["tooltipster-shadow","tooltipster-shadow-customized"]}).on("blur",function(){var $origin=$(this);setTimeout(function(){$origin.is(":focus")||$origin.is(":hover")||$(document.activeElement).closest(".tooltipster-base").length||$(".tooltipster-base:hover").length||$origin.tooltipster("close")},200)}),$(".tooltipSpecs").tooltipster({interactive:!0,trigger:"click",maxWidth:200,side:["right","top","bottom","left"],theme:["tooltipster-shadow","tooltipster-shadow-customized","tooltipster-specs"]}),$(document).off("keydown.tooltipEsc").on("keydown.tooltipEsc",function(evt){if(!(evt.key!=="Escape"&&evt.which!==27)&&$(".tooltipster-base").length){evt.preventDefault();
5var $focusOrigin=null;$(".tooltip.tooltipstered, .tooltipSpecs.tooltipstered").each(function(){var $origin=$(this);try{$origin.tooltipster("status").open&&($origin.tooltipster("close"),$focusOrigin||($focusOrigin=$origin))}catch{}}),$focusOrigin&&$focusOrigin.length&&$focusOrigin.trigger("focus")}})},initLazyLoad(){lozad().observe()},initProdDesc(){if(site.shouldRun("template-product")){const textLength=$(".js-productDesc").text().length,$break=$(".js-productDesc:has(br)");textLength>500&&$break.length>0&&($(".js-productDesc").parent().parent().addClass("short"),$(".js-readMoreBtn--prodDesc").show())}},initInputFocusToggle(){$(".js-searchBtnFocusTrigger").on("focus",function(){$(this).parent().find(".js-searchBtnFocus").addClass("focused")}),$(".js-searchBtnFocusTrigger").on("focusout",function(){$(this).parent().find(".js-searchBtnFocus").removeClass("focused")})},shouldRun(className){return document.body.classList.contains(className)},run(){site.setBrowserWidth(),site.initNavigation(),site.initCssVariables(),site.initAppendAround(),site.initScrollLink(),site.initToggleContent(),site.initListToSelect(),site.initScrollIndicate(),site.initBackTop(),site.initFormValidate(),site.initGallery(),site.initGallerySwatch(),site.initShowMore(),site.initReadMore(),site.initQuantityIncrement(),site.initToolTip(),site.initNavStick(),site.initATCStick(),site.initProdDesc(),site.initInputFocusToggle()},resize(){},helpers:{debounce(func,wait,immediate){let timeout;return function(){let context=this,args=arguments;const later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}}}};function updateCartContents(){const $currentCartSummary=$(".cart-summary__table"),$currentCartCount=$(".header__cart-btn--count"),$currentOrderTotal=$(".cart-header__subtotal"),$currentCartItems=$(".cart-products__products"),$currentHeaderItemCount=$("[data-header-item-count]"),$cartWrap=$(".cart-wrapper");$.ajax({type:"get",url:"/cart",success(data){const $updatedCartSummary=$(data).find(".cart-summary__table").html(),$updatedCartCount=$(data).find(".header__cart-btn--count").html(),$updatedOrderTotal=$(data).find(".cart-header__subtotal").html(),$updatedCartItems=$(data).find(".cart-products__products").html(),$updatedCartWrap=$(data).find(".cart-wrapper").html();if($currentCartSummary.html($updatedCartSummary),$currentCartCount.html($updatedCartCount),$currentCartCount.attr("data-count",$updatedCartCount),$currentOrderTotal.html($updatedOrderTotal),$currentCartItems.html($updatedCartItems),$currentHeaderItemCount.html($updatedCartCount),$cartWrap&&$currentCartItems.length==0&&($cartWrap.html($updatedCartWrap),$cartWrap.removeClass("empty-page")),$(".cart__remove-link").removeClass("disabled"),$(".cart__qty").removeClass("disabled"),parseFloat($updatedCartCount)<=1?$("[data-header-item-unit]").html("item"):$("[data-header-item-unit]").html("items"),typeof site<"u"&&typeof site.checkHasOverPurchasedProducts=="function"&&site.checkHasOverPurchasedProducts(),typeof _swat<"u"&&_swat.initializeActionButtons(".cart-elements-wrapper"),typeof calculateCartProgress=="function"){const url="".concat(theme.routes.cart,"?t=").concat(Date.now());fetch(url,{credentials:"same-origin",method:"GET"}).then(response=>response.json()).then(cart=>{console.log("Updating Cart progress bar!");const threshold=window.setThreshold*100,cartTotal=cart.total_price;calculateCartProgress(cartTotal,threshold),updateShippingProgressBar()})}}})}$(document).ready(()=>{new slate.Sections().register("product",theme.Product),slate.a11y.pageLinkFocus($(window.location.hash)),$(".in-page-link").on("click",evt=>{slate.a11y.pageLinkFocus($(evt.currentTarget.hash))}),slate.rte.wrapTable({$tables:$(".rte table"),tableWrapperClass:"rte__table-wrapper"}),slate.rte.wrapTable({$tables:$(".rte--article table"),tableWrapperClass:"rte__table-wrapper--article"}),slate.rte.wrapIframe({$iframes:$('.rte iframe[src*="youtube.com/embed"],.rte iframe[src*="player.vimeo"]'),iframeWrapperClass:"rte__video-wrapper"}),slate.cart.cookiesEnabled()&&(document.documentElement.className=document.documentElement.className.replace("supports-no-cookies","supp
5orts-cookies"));const triggerResize=site.helpers.debounce(function(){$(this).width()!=site.browserWidth&&site.setBrowserWidth()},250);site.run(),window.addEventListener("resize",triggerResize),window.addEventListener("resize",()=>{site.initCssVariables()}),$(window).scroll(evt=>{site.initScrollIndicate(),site.initCssVariables(),site.initNavStick(),site.initATCStick()}),$("select#Quantity").on("change",function(){const productQuantity=this.value,productQtyInt=parseInt(productQuantity);$(".btn--add-to-cart").attr("data-cart-quantity",productQtyInt),$("body").removeClass("cart-error")}),$("body").on("click",".cart__remove-link",function(e){const $target=$(e.currentTarget),$lineRow=$target.parents(".cart-products__products-item"),cartLine=$target.data("item-line"),promise=$.Deferred(),settings={line:cartLine,quantity:0};$lineRow.addClass("disabled"),$(".cart__remove-link").addClass("disabled");function removeCartLine(attempt){const nextAttempt=attempt||0;$.ajax({type:"post",dataType:"json",url:"/cart/change.js",data:settings,success(cart){if(promise.resolve(cart),!cart||cart.item_count==0){window.location.reload(!0);return}calculateCartProgress(cart.total_price,window.setThreshold*100),updateCartContents()},error(xhr){if((xhr.status===429||xhr.status===430)&&nextAttempt<2){const retryAfter=parseInt(xhr.getResponseHeader("Retry-After"),10),wait=!isNaN(retryAfter)&&retryAfter>0?retryAfter*1e3:Math.min(1e3*Math.pow(2,nextAttempt),4e3);window.setTimeout(function(){removeCartLine(nextAttempt+1)},wait);return}$lineRow.removeClass("disabled"),$(".cart__remove-link").removeClass("disabled"),(xhr.status===429||xhr.status===430)&&window.setTimeout(function(){window.location.reload()},3e3)}})}removeCartLine(0)}),$("[data-shorten]").each(function(){$(this).moreLines({linecount:parseInt($(this).attr("data-shorten-line"))>0?$(this).attr("data-shorten-line"):10,baseclass:"b-description",basejsclass:"js-description",classspecific:"_readmore",buttontxtmore:"Read More",buttontxtless:"Less",animationspeed:250})})}),$(document).on("cart.requestComplete",(event,cart)=>{document.dispatchEvent(new CustomEvent("ajaxProduct:added",{detail:{product:cart}}))}),$(document).on("ready",()=>{if(site.browserWidth<1025){let toggleMobileNav2=function(event){event.preventDefault(),$nav.toggleClass("active"),$("body").toggleClass("nav-active"),$navToggle.toggleClass("is-active")};var toggleMobileNav=toggleMobileNav2;document.getElementsByClassName("header__search-form")[0].addEventListener("submit",toggleMobileNav2)}$(".button--sticky-atc").on("click",event=>{event.preventDefault(),$("html, body").animate({scrollTop:$("#AddToCart").offset().top-$(window).outerHeight()+$("#AddToCart").outerHeight()+20},1e3)}),$(".slide---wrapper").slick({dots:!0,slidesToShow:1.2,slidesToScroll:1,lazyLoad:"ondemand",infinite:!1})}),$(window).load(()=>{$(".klaviyo-form input").attr("aria-label","Email Address"),$(".mz-lens > img").attr("alt",""),$(".mz-zoom-window > img").attr("alt",""),$(".mz-figure > img").attr("alt","")}),$(".pdp-en-checkbox").change(function(){$(this).is(":checked")?$(this).parents(".option_enhance").addClass("enhance-border"):$(this).parents(".option_enhance").removeClass("enhance-border")}),$(document).ready(()=>{$(".custom-sections .video-icon").on("click",()=>{$("body").css("overflow","hidden"),$(".custom-sections .video-modal").show()}),$(".custom-sections .video-modal").on("click",()=>{$("body").css("overflow","visible"),$(".custom-sections .video-modal").hide(),$(".youtube-iframe").each(function(index){return $(this).attr("src",$(this).attr("src")),!1})})}),document.addEventListener("DOMContentLoaded",()=>{LazyLoad.setupObservers(),setTimeout(()=>{$(".cart__remove-link").removeClass("disabled"),$(".cart__qty").removeClass("disabled")},3e3)}),document.addEventListener("DOMContentLoaded",()=>{$("[data-js-product-thumbs-mobile-slider]").slick({dots:!1,infinite:!1,speed:300,slidesToShow:5,slidesToScroll:2,arrows:!0,mobileFirst:!0,responsive:[{breakpoint:1025,settings:"unslick"}]}),$("[data-js-product-thumbs-mobile-slider]").css("visibility","visible"),setTimeout(()=>{$(".product-thumbs .mz-thumb").first().click()},100)});function calculateCartProgress(currentVal,targetVal){const result=100*currentVal/targetVal,progressPercentage=`${result}%`;$(".progress-meter").css("width",progressPercentage);const newProgressNum=(targetVal-currentVal)/100*100,progressDollarNum=slate.Currency.formatMoney(newProgressNum,theme.moneyFormat).replace(".00","");result<100?($(".js-money-remainder").text(` ${progressDollarNum} `),$(".shipping-success-message").addClass("hide"),$(".shipping-message").removeClass("hide"),$(".progress-meter").css({WebkitTransition:"width 0.3s ease-in",MozTransition:"width 0.3s ease-in",MsTransition:"width 0.3s ease-in",OTransition:"width 0.3s ease-in",transition:"width 0.3s ease-in"})):($(".shipping-success-message").removeClass("hide"),$(".shipping-message").addClass("hide"))}function updateShippingProgressBar(){for(var retrievedCountryCode=JSON.parse(localStorage.getItem("userCountryCode")),admin_country_thresholds=window.ehouse.settings.country_threshold_value,country_threshold_values=admin_country_thresholds.split(","),i=0;i<country_threshold_values.length;i++){var[countryCode,threshold,barColor]=country_threshold_values[i].split("-");if(countryCode==retrievedCountryCode){countryCode!="US"&&countryCode!="CA"&&(countryCode="INT");var countryCodeLow=countryCode.toLowerCase();window.setThreshold=threshold,$(".free-shipping-progress-container").removeClass("hide"),$(`.${countryCodeLow}-message-container`).removeClass("hide"),$(".free-shipping-progress-container .progress-meter").css("background",barColor)}}}
6//# sourceMappingURL=/cdn/shop/t/727/assets/site.js.map?v=21051568647987311271790010822

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.