window.featuredCollection={init(){$(".js-product-slider .products-slider").each((index,value)=>{const productsPerSlide=$(value).data("products-per-slide"),productsLimit=$(value).data("products-limit"),productsAvailable=$(value).data("products-available");let cellAlign="",draggable=!1,prevNext=!1,wrapAround=!1,initialIndex=0;window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0"},{name:"model-viewer-ui",version:"1.0"}],window.productMedia.setupMedia),productsPerSlide==="2"&&productsAvailable>productsPerSlide&&productsLimit>productsPerSlide||productsPerSlide==="4"&&productsAvailable>productsPerSlide&&productsLimit>productsPerSlide||productsPerSlide==="6"&&productsAvailable>productsPerSlide&&productsLimit>productsPerSlide?cellAlign="left":cellAlign="center",productsAvailable>productsPerSlide&&productsLimit>productsPerSlide?(draggable=!0,prevNext=!0,wrapAround=!0):(draggable=!1,prevNext=!1,wrapAround=!1),productsPerSlide==="2"&&productsAvailable>productsPerSlide||productsPerSlide==="4"&&productsAvailable>productsPerSlide||productsPerSlide==="6"&&productsAvailable>productsPerSlide?initialIndex=0:productsPerSlide==="3"&&productsAvailable?initialIndex=1:productsPerSlide==="5"&&productsAvailable?initialIndex=2:productsPerSlide==="7"&&productsAvailable&&(initialIndex=3),window.Shopify.media_queries.medium.matches&&(cellAlign="center",draggable=!0,prevNext=!0,wrapAround=!0,initialIndex=1,$(value).parents(".even-num-slides").removeClass("even-num-slides")),$(value).flickity({lazyLoad:2,imagesLoaded:!0,draggable,prevNextButtons:prevNext,wrapAround,cellAlign,pageDots:window.usePageDots,contain:!0,freeScroll:!0,arrowShape:window.arrowSize,initialIndex}),$(value).addClass("slider-initialized")})},unload($target){const $slider=$target.find(".js-product-slider");$slider.hasClass("flickity-enabled")&&$slider.flickity("destroy")}},window.featuredPromotions={init(){$(".feature-overlay").hover(function(){$(this).find(".feature-details").slideDown("100",function(){$(this).addClass("reveal-details")})},function(){$(this).find(".feature-details").removeClass("reveal-details"),$(this).find(".feature-details").slideUp("100")}),$(".js-featured-promotions").each(function(){const $promos=$(this),animationStyle=$(this).data("promo-animation");$promos.waypoint(function(){$(this.element).find(".feature-section").addClass(`animated ${animationStyle}`)},{offset:"80%"})})}},window.slideshow={init(){$(".js-homepage-slideshow").each(function(){const $homepageSlider=$(this),settings={slideshowSpeed:$homepageSlider.data("slideshow-speed")*1e3,slideshowTextAnimation:$homepageSlider.data("slideshow-text-animation"),adaptiveHeight:$homepageSlider.data("adaptive-height")};if(!$homepageSlider.hasClass("flickity-enabled")){const arrowShow=$homepageSlider.find(".gallery-cell").length!==1;if($homepageSlider.flickity({adaptiveHeight:settings.adaptiveHeight,wrapAround:!0,cellAlign:"left",imagesLoaded:!0,prevNextButtons:arrowShow,draggable:arrowShow,autoPlay:settings.slideshowSpeed}),settings.slideshowTextAnimation!==""){const flkty=$homepageSlider.data("flickity");setTimeout(()=>{$homepageSlider.find(".gallery-cell:nth-child(1) .caption-content").addClass(`animated ${settings.slideshowTextAnimation}`)},400),$homepageSlider.on("select.flickity",()=>{if($homepageSlider.is(":visible")){const currentSlide=flkty.selectedIndex+1;setTimeout(()=>{$homepageSlider.find(".caption-content").removeClass(`animated ${settings.slideshowTextAnimation}`),$homepageSlider.find(`.gallery-cell:nth-child(${currentSlide}) .caption-content`).addClass(`animated ${settings.slideshowTextAnimation}`)},400)}})}}$homepageSlider.find(".gallery-cell").length>1?$homepageSlider.addClass("multi-image"):$homepageSlider.addClass("single-image")})},unload($target){$target.find(".js-homepage-slideshow").flickity("destroy")}},window.testimonials={init(){$(".js-testimonial").each(function(){const $testimonialSlider=$(this),settings={slideshowSpeed:$testimonialSlider.data("slideshow-speed")*1e3,slideshowTextAnimation:$testimonialSlider.data("slideshow-text-animation"),adaptiveHeight:$testimonialSlider.data("adaptive-height")};if($(".testimonial-image").length>0&&$(".testimonial-block").each(function(){if($(this).find(".testimonial-image").length===0){const theBlock=$(this).closest(".testimonial-block");$(theBlock).addClass("set-testimonial-height")}}),!$testimonialSlider.hasClass("flickity-enabled")){const arrowShow=$testimonialSlider.find(".gallery-cell").length!==1;if($testimonialSlider.flickity({adaptiveHeight:settings.adaptiveHeight,wrapAround:!0,cellAlign:"left",imagesLoaded:!0,prevNextButtons:arrowShow,draggable:arrowShow,autoPlay:settings.slideshowSpeed}),settings.slideshowTextAnimation!==""){const flkty=$testimonialSlider.data("flickity");setTimeout(()=>{$testimonialSlider.find(".gallery-cell:nth-child(1) .caption-content").addClass(`animated ${settings.slideshowTextAnimation}`)},400),$testimonialSlider.on("select.flickity",()=>{if($testimonialSlider.is(":visible")){const currentSlide=flkty.selectedIndex+1;setTimeout(()=>{$testimonialSlider.find(".caption-content").removeClass(`animated ${settings.slideshowTextAnimation}`),$testimonialSlider.find(`.gallery-cell:nth-child(${currentSlide}) .caption-content`).addClass(`animated ${settings.slideshowTextAnimation}`)},400)}})}}$testimonialSlider.find(".gallery-cell").length>1?$testimonialSlider.addClass("multi-image"):$testimonialSlider.addClass("single-image")})},unload($target){$target.find(".js-testimonial").flickity("destroy")}},window.gallery={init(){$(".gallery-horizontal").find(".gallery-image-wrapper").each(function(){const wrapper=$(this),images=$(this).find("img");let imgWidth,imgHeight;$("").attr("src",$(images).attr("src")).on("load",function(){imgWidth=this.width,imgHeight=this.height,$(wrapper).css("flex-basis",imgWidth*200/imgHeight),$(wrapper).css("flex-grow",imgWidth*200/imgHeight),$(wrapper).find("i").css("padding-bottom",`${imgHeight/imgWidth*100}%`)})}),$("[rel=gallery]").length&&$("[rel=gallery]").fancybox({baseClass:"gallery-section__lightbox",clickContent:"nextOrClose"})}},window.video={init(){var featuredVideos=$("[data-video-element]").get(),featuredVideoPlayers=Plyr.setup(featuredVideos,{controls:window.videoControls,fullscreen:{enabled:!0,fallback:!0,iosNative:!0},storage:{enabled:!1}});$.each(featuredVideoPlayers,function(index,player){var id=player.id,$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(featuredVideoPlayers,function(index2,player2){instance.id!=player2.id&&player2.pause()})}),window.globalVideoPlayers&&window.globalVideoPlayers.push(player)}),$("[data-video-element]").each(function(index,video){var $video=$(video),$section=$video.parents(".shopify-section").attr("id",id),$videoElement=$section.find($video),$videoWrapper=$videoElement.parents(".video-wrapper"),$playButton=$videoWrapper.find("[data-play-button]"),$secondaryButton=$videoWrapper.find("[data-secondary-button]"),$videoText=$videoWrapper.find("[data-video-text]"),$videoTextContainer=$videoWrapper.find("[data-video-text-container]"),$image=$videoWrapper.find(".video-wrapper__image"),$posterImage=$videoWrapper.data("poster-image-uploaded"),aspectRatio=$videoWrapper.data("aspect-ratio"),id=$videoWrapper.data("video-src"),isAutoplay=$videoWrapper.data("autoplay"),isLoopingEnabled=$videoWrapper.data("autoloop"),isMuted=$videoWrapper.data("mute-video");$.each(featuredVideoPlayers,function(index2,player){var videoID,playerID;if(player.isYouTube||player.isVimeo)var videoID=$videoWrapper.attr("id"),playerID=$(player.elements.original).attr("id");else if(player.isHTML5){var videoID=$videoWrapper.find("[data-plyr-video-id]").data("plyr-video-id"),playerID=player.id;$videoElement=$section.find(".plyr--video")}if(playerID==videoID)return $videoWrapper.removeClass("play-button-icon--visible"),isAutoplay?window.Shopify.media_queries.large.matches||player.isYouTube||player.isVimeo?(player.autoplay=!0,$image.hide(),$videoElement.show(),$videoTextContainer.hasClass("display-text-over-video--false")?$videoText.hide():$videoText.show(),$playButton.hide()):window.Shopify.media_queries.medium.matches&&player.isHTML5&&($image.hide(),$videoElement.show(),$playButton.show(),player.on("play",function(){$videoElement.show(),$playButton.hide()})):$posterImage?($image.show(),$videoElement.hide()):$videoElement.show(),$image.on("click",function(){$(this).hide(),$videoElement.show(),player.play()}),isMuted&&(player.muted=!0),aspectRatio&&(player.ratio=aspectRatio),isLoopingEnabled&&(player.loop=!0),$playButton&&$playButton.on("click",function(){player.play()}),player.on("statechange",event=>{event.detail.code=="-1"&&player.play()}),player.on("play",function(){$image.hide(),$videoWrapper.removeClass("play-button-icon--visible"),$videoElement.show(),$videoTextContainer.hasClass("display-text-over-video--false")?$videoTextContainer.hide():$videoTextContainer.show(),$playButton&&$playButton.hide(),$secondaryButton&&$secondaryButton.hide()}),player.on("pause",function(){($playButton.is(":hidden")||$playButton.length==0)&&$videoWrapper.addClass("play-button-icon--visible")}),(!player.playing&&$playButton.is(":hidden")||$playButton.length==0)&&$videoWrapper.addClass("play-button-icon--visible"),!1})})}},window.cart={init(){$("#cart_form .tos_agree").length&&$("body").on("click","#cart_form input[type='submit']",function(){if($(this).parents("form").find(".tos_agree").is(":checked"))$(this).submit();else{const warning=`

${Shopify.translation.agree_to_terms_warning}

`;return $("p.warning").length===0&&$(this).before(warning),!1}})}},window.selectCallback=function(variant,selector){const evt=document.createEvent("HTMLEvents"),$product=$(`.product-${selector.product.id}`),$notifyForm=$(`.notify-form-${selector.product.id}`),$productForm=$(".product_form, .shopify-product-form",$product),variantInventory=$productForm.data("variant-inventory"),$notifyFormInputs=$(".notify_form__inputs",$product),notifyEmail=window.Shopify.translation.notify_email,notifyEmailValue="",notifySend=window.Shopify.translation.notify_email_send,notifyUrl=$notifyFormInputs.data("url");if(evt.initEvent("change",!1,!0),selector.variantIdField.dispatchEvent(evt),variant?variant.title!=null&&(window.variantTitle=variant.title.replace(/"/g,"""),window.notifyMessage=window.Shopify.translation.notify_message_first+window.variantTitle+window.Shopify.translation.notify_message_last+notifyUrl):window.notifyMessage=window.Shopify.translation.notify_message_first+window.Shopify.translation.notify_message_last+notifyUrl,$notifyFormInputs.hasClass("customer--true")?window.notifyEmailInput='':window.notifyEmailInput=``,window.notifyFormHTML=`${window.notifyEmailInput}`,variant&&variant.featured_image&&$product.is(":visible")&&$(".js-product-gallery",$product).each((_,slider)=>{const $slider=$(slider),$sliderInstance=window.Flickity.data($slider[0]);if($slider&&$sliderInstance!==void 0){const index=$(`[data-image-id="${variant.featured_media.id}"]`).data("index");$sliderInstance.select(index,!1,!0)}}),variant&&variant.featured_image&&$product.is(":visible")&&window.Shopify.theme_settings.product_form_style==="select"&&window.Shopify.theme_settings.quick_shop_style==="inline"&&$(".products-slider").find("select option:not(.selector-wrapper select option)").filter(":selected").each(function(){if($(this).data("featured-image")){const swatchImage=$(this).data("image"),$quickShopElement=$(this).parents(".thumbnail").find(".image__container img");$quickShopElement.attr("src",swatchImage),$quickShopElement.attr("srcset",swatchImage)}}),variant)if(variantInventory&&variantInventory.forEach(v=>{if(v.id===variant.id){const currentVariant=variant;currentVariant.inventory_quantity=v.inventory_quantity,currentVariant.inventory_management=v.inventory_management,currentVariant.inventory_policy=v.inventory_policy}}),$(".sku span",$product).text(variant.sku),window.Shopify.theme_settings.product_form_style==="radio"){const{length}=variant.options;for(let i=0;i0){if(window.Shopify.theme_settings.display_inventory_left){variant.inventory_quantity===1?window.itemsLeftText=window.Shopify.translation.one_item_left:window.itemsLeftText=window.Shopify.translation.items_left_text;const inventoryThreshold=parseInt(window.Shopify.theme_settings.inventory_threshold,10);variant.inventory_quantity<=inventoryThreshold?$(".items_left",$product).html(`${variant.inventory_quantity} ${window.itemsLeftText}`):$(".items_left",$product).html("")}window.Shopify.theme_settings.limit_quantity&&variant.inventory_policy==="deny"&&$(".quantity",$product).attr("max",variant.inventory_quantity)}else $(".items_left",$product).text(""),$(".quantity",$product).removeAttr("max");$(".sold_out",$product).text(""),$(".add_to_cart",$product).removeClass("disabled").removeAttr("disabled").find("span").text($(".add_to_cart",$product).data("label")),$(".shopify-payment-button",$product).removeClass("disabled"),$(".purchase-details__buttons",$product).removeClass("product-is-unavailable"),$(".modal_price",$product).removeClass("variant-unavailable"),$product.find($notifyForm).hide(),$product.find($notifyFormInputs).empty()}else{const message=variant?window.Shopify.theme_settings.sold_out_text:window.Shopify.translation.unavailable_text;variant?$(".modal_price",$product).removeClass("variant-unavailable"):$(".modal_price",$product).addClass("variant-unavailable"),$(".items_left",$product).text(""),$(".quantity",$product).removeAttr("max"),$(".sold_out",$product).text(message),$(".purchase-details__buttons",$product).addClass("product-is-unavailable"),$(".add_to_cart",$product).addClass("disabled").attr("disabled","disabled").find("span").text(message),$(".shopify-payment-button",$product).addClass("disabled"),$notifyForm.hide(),$notifyFormInputs.empty(),variant&&!variant.available&&($notifyForm.fadeIn(),$notifyFormInputs.empty(),$notifyFormInputs.append(window.notifyFormHTML))}window.Currency.show_multiple_currencies&&window.currencyConverter.convertCurrencies()},window.productPage={loadQuickshop(url){return window.shopifyAsyncview.load(url,{view:"quickshop"})},init(){window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0"},{name:"model-viewer-ui",version:"1.0"}],window.productMedia.setupMedia),$("[data-product-gallery]:not(.product-recommendations [data-product-gallery])").each(function(){const $productGallery=$(this);window.productPage.enableGallery($productGallery)}),window.location.search==="?contact_posted=true"&&($(".notify_form .contact-form").hide(),$(".notify_form .contact-form").prev(".message").html(window.Shopify.translation.notify_success_text)),window.Shopify.theme_settings.product_form_style==="radio"&&$("body").on("change",".swatch :radio",function(){const optionIndex=$(this).closest(".swatch").attr("data-option-index"),optionValue=$(this).val(),parentForm=$(this).closest(".product_form form");let notifyForm;parentForm.siblings(".notify_form").length?window.notifyForm=parentForm.siblings(".notify_form"):window.notifyForm=$(".js-notify-form");const option1=parentForm.find(".swatch_options input:checked").eq(0).val(),option2=parentForm.find(".swatch_options input:checked").eq(1).val()||"",option3=parentForm.find(".swatch_options input:checked").eq(2).val()||"";let notifyMessage;option1&&option2&&option3?window.notifyMessage=`${option1} / ${option2} / ${option3}`:option1&&option2?window.notifyMessage=`${option1} / ${option2}`:window.notifyMessage=option1,window.notifyForm.find(".notify_form_message").attr("value",`${window.notifyForm.find(".notify_form_message").data("body")} - ${window.notifyMessage}`),$(this).closest("form").find(".single-option-selector").eq(optionIndex).val(optionValue).trigger("change")}),$(".js-product-gallery a").fancybox({width:800,height:800,baseClass:"product-section__lightbox",clickContent:!1,afterShow(instance){instance.$trigger.first().parents(".js-product-gallery").data("zoom")&&$(".fancybox-image").last().wrap('').css("display","block").parent().zoom({touch:!1,magnify:1})},afterClose(instance){const $instanceGallery=instance.$trigger.first().parents(".js-product-gallery");$instanceGallery.hide(),setTimeout(()=>{$instanceGallery.fadeIn(100),$(".js-product-gallery").find(".is-selected a").focus()},1)}}),$(".shopify-section--recommended-products").length&&window.productPage.loadProductRecommendations()},runOptionSelector($element){let $defaultSelector=$(".js-product_section [data-product-form]:not(.product-recommendations .js-product_section [data-product-form])");$element&&($defaultSelector=$element),$defaultSelector.each((_,options)=>{const $options=$(options),$productDetails=$options.closest(".product__details");let priceUIEl;const paymentTerms=new window.PaymentTerms($productDetails[0]);window.Shopify.media_queries.medium.matches&&window.Shopify.theme_settings.hover_enabled&&window.Shopify.theme_settings.quick_shop_enabled&&window.Shopify.theme_settings.quick_shop_style==="inline"?priceUIEl=$productDetails.find(".product-info__caption [data-price-ui]")[0]:priceUIEl=$productDetails.find("[data-price-ui]")[0];const priceUIBadgeEl=$productDetails.find("[data-price-ui-badge]")[0],surfacePickUpEl=$productDetails.find("[data-surface-pick-up]")[0],JSONData=$options.data("product"),isPriceSavingsEnabled=priceUIEl&&priceUIEl.closest(['[data-display-savings="true"]']),productTitle=$options.data("product-title");let priceUI,priceUIBadge,surfacePickUp,currentVariant;priceUIEl&&(priceUI=new window.ShopifyPriceUI.PriceUI(priceUIEl)),priceUIBadgeEl&&(priceUIBadge=new window.ShopifyPriceUI.PriceUIBadge(priceUIBadgeEl)),surfacePickUpEl&&(surfacePickUp=new window.ShopifySurfacePickUp(surfacePickUpEl),surfacePickUp.onModalRequest(contents=>{const surfacePickUpModal=document.querySelector("[data-surface-pick-up-modal]");let fragment;if(currentVariant.title&&productTitle){fragment=document.createDocumentFragment();const header2=document.createElement("div"),title=document.createElement("h2");if(header2.classList.add("surface-pick-up__modal-header"),title.classList.add("surface-pick-up__modal-title"),title.innerHTML=productTitle,header2.appendChild(title),currentVariant.title!=="Default Title"){const subtitle=document.createElement("span");subtitle.classList.add("surface-pick-up__modal-subtitle"),subtitle.innerHTML=currentVariant.title,header2.appendChild(subtitle)}fragment.appendChild(header2)}surfacePickUpModal.innerHTML=contents,surfacePickUpModal.insertBefore(fragment,surfacePickUpModal.firstChild),$.fancybox.open(surfacePickUpModal,{hash:!1,infobar:!1,toolbar:!1,loop:!0,smallBtn:!0,touch:!1,video:{autoStart:!1},mobile:{preventCaptionOverlap:!1,toolbar:!0}})})),new window.Shopify.OptionSelectors($options.data("select-id"),{product:$options.data("product"),onVariantSelected:(variant,selector)=>{if(currentVariant=variant,paymentTerms.update(variant?variant.id:null),priceUI&&(priceUI.load(JSONData,{variant,formatter:price=>window.Shopify.formatMoney(price,$("body").data("money-format")),handler:(priceUIFragment,_product,{variant:v})=>{if(isPriceSavingsEnabled&&v&&v.compare_at_price>v.price){const span=document.createElement("span");span.classList.add("sale","savings");const savings=v.compare_at_price-v.price,percentage=Math.round(savings/v.compare_at_price*100);span.innerHTML=`${window.Shopify.translation.savings_text} ${percentage}% (${window.Shopify.formatMoney(v.compare_at_price-v.price,$("body").data("money-format"))})`,priceUIFragment.appendChild(span)}if(v&&v.available){if(v.price===0){const fragment=document.createDocumentFragment(),span=document.createElement("span");return span.classList.add("free-price-text"),window.Shopify.theme_settings.free_text!==""?span.innerHTML=window.Shopify.theme_settings.free_text:span.innerHTML=`${window.Shopify.formatMoney(v.price,$("body").data("money-format"))}`,fragment.appendChild(span),fragment}return priceUIFragment}if(!window.Shopify.theme_settings.display_sold_out_price){const fragment=document.createDocumentFragment(),soldOutText=document.createElement("span");return soldOutText.classList.add("sold_out"),soldOutText.innerHTML=v?window.Shopify.translation.sold_out_text:window.Shopify.translation.unavailable_text,fragment.appendChild(soldOutText),fragment}if(window.Shopify.theme_settings.display_sold_out_price){const span=document.createElement("span");span.classList.add("sold_out"),span.innerHTML=v?window.Shopify.translation.sold_out_text:window.Shopify.translation.unavailable_text,priceUIFragment.appendChild(span)}return priceUIFragment}}),window.Shopify.theme_settings.display_sold_out_price&&variant&&variant.price===0&&!variant.available)){const priceElement=priceUIEl.querySelector("[data-price]");if(!priceElement)return;if(window.Shopify.theme_settings.free_text!==""){const span=document.createElement("span");span.classList.add("free-price-text"),span.innerHTML=window.Shopify.theme_settings.free_text,priceElement.innerHTML="",priceElement.appendChild(span)}else if(window.Shopify.theme_settings.free_text===""){priceElement.classList.add("price--sale");return}}priceUIBadge&&priceUIBadge.load(JSONData,{variant,style:"default",formatter:price=>window.Shopify.formatMoney(price,$("body").data("money-format")),handler:(priceUIFragment,_product,{variant:v})=>{if(v&&v.available)return!v.compare_at_price||v.compare_at_price<=v.price?document.createDocumentFragment():priceUIFragment;if(v&&!v.available||!v){const fragment=document.createDocumentFragment();let text;const sticker=document.createElement("div");sticker.classList.add("price-ui-badge__sticker");const stickerText=document.createElement("span");return stickerText.classList.add("price-ui-badge__sticker-text"),stickerText.setAttribute("data-badge",""),v&&!v.available&&(text=window.Shopify.translation.sold_out_text),v||(text=window.Shopify.translation.unavailable_text),stickerText.innerHTML=text,sticker.appendChild(stickerText),fragment.appendChild(sticker),fragment}return priceUIFragment}}),surfacePickUp&&!$options.closest(".js-product_section").hasClass("inline-quickshop")&&surfacePickUp.load(variant?variant.id:null),window.selectCallback(variant,selector)},enableHistoryState:$options.data("enable-state")})})},enableGallery(selector){const $productGallery=$(selector),$slides=$productGallery.find(".gallery-cell"),$thumbnailProductGallery=$productGallery.closest(".js-product_section").find(".product_gallery_nav"),$thumbnails=$thumbnailProductGallery.find(".gallery-cell"),zoom=$productGallery.data("zoom"),productLightbox=$productGallery.data("product-lightbox"),thumbnailsEnabled=$productGallery.data("thumbnails-enabled"),thumbnailsSliderEnabled=$productGallery.data("thumbnails-slider-enabled"),thumbnailsPosition=$productGallery.data("thumbnails-position"),thumbnailsArrows=$productGallery.data("gallery-arrows-enabled"),slideshowSpeed=$productGallery.data("slideshow-speed");zoom===!0&&(window.is_touch_device()&&window.Shopify.media_queries.medium.matches?productLightbox==="false"&&document.addEventListener("lazybeforeunveil",window.imageFunctions.zoom):document.addEventListener("lazybeforeunveil",window.imageFunctions.zoom)),$productGallery.on("ready.flickity",()=>{$slides.each((index,slide)=>{const mediaType=$(slide).data("media-type")||$(slide).find("[data-media-type]").data("media-type");let videoID;switch(mediaType){case"external_video":videoID=$(slide).find("[data-plyr-video-id]").data("plyr-video-id"),window.videoPlayers&&window.videoPlayers.forEach(player=>{const currentPlayer=player;(player.id===videoID||player.media.id===videoID)&&($(slide).hasClass("is-selected")||(currentPlayer.keyboard={focused:!1,global:!1}))});break;case"video":videoID=$(slide).find("[data-plyr-video-id]").data("plyr-video-id"),window.videoPlayers&&window.videoPlayers.forEach(player=>{const currentPlayer=player;(player.id===videoID||player.media.id===videoID)&&($(slide).hasClass("is-selected")||(currentPlayer.keyboard={focused:!1,global:!1}))});break;case"model":$(slide).hasClass("is-selected")&&mediaType==="model"&&window.isScreenSizeLarge()&&($(slide).on("mouseenter",()=>{$productGallery.flickity("unbindDrag")}),$(slide).on("mouseleave",()=>{$productGallery.flickity("bindDrag")}));break;default:break}});const loopingEnabled=$productGallery.data("video-loop");$.each(window.videoPlayers,(index,player)=>{const videoPlayer=player;videoPlayer.loop=loopingEnabled})}),$productGallery.on("change.flickity",()=>{$slides.each((index,slide)=>{const mediaType=$(slide).data("media-type")||$(slide).find("[data-media-type]").data("media-type");if($(slide).hasClass("is-selected"))switch(mediaType){case"model":window.isScreenSizeLarge()&&($(slide).on("mouseenter",()=>{$productGallery.flickity("unbindDrag")}),$(slide).on("mouseleave",()=>{$productGallery.flickity("bindDrag")})),$(slide).find("model-viewer").on("shopify_model_viewer_ui_toggle_play",()=>{$productGallery.flickity("unbindDrag")}),$(slide).find("model-viewer").on("shopify_model_viewer_ui_toggle_pause",()=>{$productGallery.flickity("bindDrag")});break;default:$productGallery.flickity("bindDrag");break}else switch(mediaType){case"external_video":$.each(window.videoPlayers,(_index,player)=>{player.pause()});break;case"video":$.each(window.videoPlayers,(_index,player)=>{player.pause()});break;default:break}}),window.productMedia.showModelIcon($productGallery)}),$productGallery.flickity({wrapAround:!0,adaptiveHeight:!0,dragThreshold:10,imagesLoaded:!0,pageDots:!1,prevNextButtons:$productGallery.data("media-count")>1||$slides.length>1,autoPlay:slideshowSpeed*1e3,watchCSS:!1}),$.each(window.videoPlayers,(index,player)=>{player.on("controlshidden",()=>{$productGallery.find(".flickity-prev-next-button").css("height","auto")}),player.on("controlsshown",()=>{$productGallery.find(".flickity-prev-next-button").css("height","calc(100% - 64px)")})});function autoplayVideo(videoID,$slide){$.each(window.videoPlayers,(index,player)=>{parseInt(player.media.dataset.plyrVideoId,10)===videoID&&(player.play(),player.on("exitfullscreen",()=>{$slide.closest(".product-gallery").find(".product-gallery__thumbnails").focus()}))})}function autoplayYoutubeVideo(iframeID,$slide){$.each(window.videoPlayers,(index,player)=>{player.playing&&player.pause(),player.media.id===iframeID&&(player.play(),player.on("exitfullscreen",()=>{$slide.closest(".product-gallery").find(".product-gallery__thumbnails").focus()}))})}function checkForVideos(){$slides.each((index,slide)=>{const $slide=$(slide),mediaType=$slide.data("media-type")||$slide.find("[data-media-type]").data("media-type");let videoID=$slide.find("video").data("plyr-video-id");const iframeID=$slide.find("iframe").attr("id");$slide.hasClass("is-selected")&&(mediaType==="video"?(videoID=$slide.find("video").data("plyr-video-id"),videoID&&autoplayVideo(videoID,$slide)):mediaType==="external_video"&&iframeID&&autoplayYoutubeVideo(iframeID,$slide))})}const $sliderArrows=$productGallery.find(".flickity-prev-next-button");if(($sliderArrows||$thumbnails)&&window.isScreenSizeLarge()&&($sliderArrows.on("click",()=>{const pId=$productGallery.data("product-id");return $productGallery.on("settle.flickity",()=>{const $selectedSlide=$productGallery.find(".gallery-cell.is-selected"),mediaType=$selectedSlide.data("media-type")||$selectedSlide.find("[data-media-type]").data("media-type");if((mediaType==="video"||mediaType==="external_video")&&checkForVideos(),mediaType==="model"){const sortedModels=[];$.each(window.productMedia.models,model=>{$(model.container).closest(".gallery-cell").data("product-id")===pId&&sortedModels.push(model)}),$.each(sortedModels,model=>{$(model.container).closest(".gallery-cell").hasClass("is-selected")&&model.play()})}$productGallery.off("settle.flickity")}),!1}),$thumbnails.on("click",event=>{const index=$(event.currentTarget).index(),pId=$productGallery.data("product-id");return $productGallery.flickity("select",index),$productGallery.on("settle.flickity",()=>{const $selectedSlide=$productGallery.find(".gallery-cell.is-selected"),mediaType=$selectedSlide.data("media-type")||$selectedSlide.find("[data-media-type]").data("media-type");if((mediaType==="video"||mediaType==="external_video")&&checkForVideos(),mediaType==="model"){const sortedModels=[];$.each(window.productMedia.models,(_index,model)=>{$(model.container).closest(".gallery-cell").data("product-id")===pId&&sortedModels.push(model)}),$.each(sortedModels,(_index,model)=>{$(model.container).closest(".gallery-cell").hasClass("is-selected")&&model.play()})}$productGallery.off("settle.flickity")}),!1}),$thumbnails.keypress(event=>{const index=$(event.currentTarget).index(),pId=$productGallery.data("product-id");if(event.which===13){$productGallery.flickity("select",index);const $selectedSlide=$productGallery.find(".gallery-cell.is-selected");$productGallery.on("settle.flickity",()=>{$selectedSlide.find("[data-youtube-video]").attr("tabindex","0"),$selectedSlide.find("model-viewer, .plyr, a").focus(),$productGallery.off("settle.flickity")});const mediaType=$selectedSlide.data("media-type")||$selectedSlide.find("[data-media-type]").data("media-type");if((mediaType==="video"||mediaType==="external_video")&&checkForVideos(),mediaType==="model"){const sortedModels=[];$.each(window.productMedia.models,model=>{$(model.container).closest(".gallery-cell").data("product-id")===pId&&sortedModels.push(model)}),$.each(sortedModels,model=>{$(model.container).closest(".gallery-cell").hasClass("is-selected")&&model.play()})}return!1}})),thumbnailsEnabled===!0&&thumbnailsSliderEnabled===!0&&$slides.length>1)if(window.Shopify.media_queries.large.matches)if(thumbnailsPosition==="left"||thumbnailsPosition==="right"){$thumbnailProductGallery.css("max-height",$productGallery.closest(".product-gallery").outerHeight()),$thumbnailProductGallery.addClass("vertical-slider-enabled"),$thumbnails.on("click",event=>{const index=$(event.currentTarget).index();$productGallery.flickity("select",index)});const navCellHeight=$thumbnails.height(),navHeight=$thumbnailProductGallery.height();$productGallery.on("select.flickity",()=>{const flkty=$productGallery.data("flickity");$thumbnailProductGallery.find(".is-nav-selected").removeClass("is-nav-selected");const scrollY=$thumbnails.eq(flkty.selectedIndex).addClass("is-nav-selected").position().top+$thumbnailProductGallery.scrollTop()-(navHeight+navCellHeight)/2;$thumbnailProductGallery.animate({scrollTop:scrollY})})}else $thumbnailProductGallery.flickity({cellAlign:"center",contain:!0,groupCells:"80%",imagesLoaded:!0,pageDots:!1,prevNextButtons:$thumbnails.length>5?thumbnailsArrows:!1,asNavFor:$productGallery[0]}),$thumbnailProductGallery.on("settle.flickity",()=>{$thumbnailProductGallery.flickity("resize")}),$(window).on("load",()=>{$thumbnailProductGallery.flickity("resize")}),$.each($thumbnails,(index,thumbnail)=>{const $thumbnail=$(thumbnail);$thumbnail.hasClass("is-selected")&&$thumbnail.on("focus",()=>{$thumbnailProductGallery.flickity("selectCell",index)})});else $thumbnailProductGallery.flickity({cellAlign:"center",contain:!0,groupCells:"80%",imagesLoaded:!0,pageDots:!1,prevNextButtons:$thumbnails.length>5?thumbnailsArrows:!1,asNavFor:$productGallery[0]});else thumbnailsEnabled===!0&&$thumbnailProductGallery.find(".product-gallery__thumbnail").on("click",function(){const index=$(this).index();$productGallery.flickity("selectCell",index)});$(window).on("load",()=>{$productGallery.flickity().flickity("resize")}),$productGallery.on("settle.flickity",()=>{$productGallery.flickity().flickity("resize")})},loadProductRecommendations(){const $productRecommendations=$(".product-recommendations"),$productRecommendationsSection=$(".shopify-section--recommended-products"),$productRecommendationsContainer=$("[data-product-recommendations-container]"),$productRecommendationsDetailsBlock=$(".product-recommendations--details-block"),productID=$productRecommendations.data("product-id"),limit=$productRecommendations.data("limit"),recommendationsURL=$productRecommendations.data("recommendations-url"),sectionEnabled=$productRecommendationsSection.find($productRecommendations).data("enabled"),$recommendedProductSlider=$(".js-recommended-products-slider");function loadDynamicProducts(){const requestUrl=`${recommendationsURL}?section_id=product-recommendations&limit=${limit}&product_id=${productID}`;$.ajax({type:"GET",url:requestUrl,success(data){if(!sectionEnabled)return;const $recommendedProductsElement=$(data).find(".product-recommendations").html();$productRecommendationsContainer.html($recommendedProductsElement),$productRecommendationsSection.hide(),$recommendedProductSlider.length?window.productPage.recommendedProductsSlider():$("[data-product-recommendations-container] [data-product-gallery]").each((_,gallery)=>{const $productGallery=$(gallery);window.productPage.enableGallery($productGallery)}),window.Shopify.theme_settings.quick_shop_style==="inline"&&window.productPage.runOptionSelector($("[data-product-recommendations-container] .js-product_section [data-product-form]")),window.quickShop.init(),$recommendedProductSlider.length&&window.productPage.recommendedProductsSlider(),window.Currency.show_multiple_currencies&&window.currencyConverter.convertCurrencies(),window.Shopify.PaymentButton&&window.Shopify.PaymentButton.init(),window.videoFeature.setupRecommendedVideoPlayer(),window.Shopify.theme_settings.collection_secondary_image&&window.imageFunctions.showSecondaryImage(),window.hideNoScript()}})}if(!sectionEnabled)return;if($productRecommendations.hasClass("meta-related-recommended-collection")){const data=$productRecommendationsSection.find($productRecommendations).html();$productRecommendationsContainer.html(data),$productRecommendationsSection.hide(),$productRecommendationsContainer.show(),$recommendedProductSlider.length?window.productPage.recommendedProductsSlider():$("[data-product-recommendations-container] [data-product-gallery]").each(function(){const $productGallery=$(this);window.productPage.enableGallery($productGallery)}),window.Shopify.theme_settings.quick_shop_style==="inline"&&window.productPage.runOptionSelector($("[data-product-recommendations-container] .js-product_section [data-product-form]"))}else loadDynamicProducts()},productSwatches(){if(window.Shopify.theme_settings.product_form_style==="radio"){if($(".js-product_section").length){const $productForms=$(".js-product_section").find(".product_form");$productForms.addClass("is-visible"),$productForms.each((_,productForm)=>{const $productForm=$(productForm),JSONData=$productForm.data("product"),productSection=`.product-${$productForm.data("product-id")} .js-product_section`;$productForm.find(".swatch_options .swatch").length>1&&window.Shopify.linkOptionSelectors(JSONData,productSection)})}$(".js-product_section").length>1&&$("body").on("click",".swatch-element",swatchElement=>{const $swatchElement=$(swatchElement.currentTarget),swatchValue=$swatchElement.data("value").toString();$swatchElement.siblings(`input[value="${swatchValue.replace(/"/g,'\\"')}"]`).prop("checked",!0).trigger("change");const JSONData=$swatchElement.parents(".product_form").data("product"),productSection=`.product-${$swatchElement.parents(".product_form").data("product-id")} .js-product_section`;$swatchElement.parents(".product_form").find(".swatch_options .swatch").length>1&&window.Shopify.linkOptionSelectors(JSONData,productSection)})}},recommendedProductsSlider(){$(".js-recommended-products-slider .products-slider").each((_,productSlider)=>{const $productSlider=$(productSlider),productsPerSlide=$productSlider.data("products-per-slide"),productsLimit=$productSlider.data("products-limit"),productsAvailable=$productSlider.data("products-available");let cellAlign,draggable,prevNext,wrapAround,initialIndex;const lessSlidesThanProducts=productsAvailable>productsPerSlide,limitGreaterThanSlide=productsLimit>productsPerSlide,evenSlide=productsPerSlide%2===0;evenSlide&&lessSlidesThanProducts&&limitGreaterThanSlide?cellAlign="left":cellAlign="center",lessSlidesThanProducts&&limitGreaterThanSlide?(draggable=!0,prevNext=!0,wrapAround=!0):(draggable=!1,prevNext=!1,wrapAround=!1),evenSlide&&lessSlidesThanProducts&&limitGreaterThanSlide?initialIndex=0:productsPerSlide==="3"&&productsAvailable?initialIndex=1:productsPerSlide==="5"&&productsAvailable?initialIndex=2:productsPerSlide==="7"&&productsAvailable&&(initialIndex=3),window.Shopify.media_queries.medium.matches&&(cellAlign="center",draggable=!0,prevNext=!0,wrapAround=!0,initialIndex=1,$productSlider.parents(".even-num-slides").removeClass("even-num-slides")),$productSlider.flickity({lazyLoad:2,imagesLoaded:!0,draggable,cellAlign,prevNextButtons:prevNext,wrapAround,contain:!0,freeScroll:!0,initialIndex})})},initializeQuantityBox(){$("body").on("click",".js-change-quantity",e=>{const $this=$(e.currentTarget),$input=$this.siblings("input"),val=parseInt($input.val(),10);let valMax=1e29;const valMin=$input.attr("min")||0;$input.attr("max")!=null&&(valMax=$input.attr("max")),(isNaN(val)||valvalMax&&$input.val(valMax),$this.data("func")==="plus"?valvalMin&&$input.val(val-1),$this.parents(".cart_item").length&&val-1===0&&$this.closest(".cart_item").addClass("animated fadeOutUp")),$input.trigger("change")})},unload($target){$target.find(".products-slider").flickity("destroy"),$("body").off("click",".js-change-quantity")}},window.header={init(){var closeDropdown=function(){$("body").removeClass("is-active"),$(".dropdown_link").removeClass("active_link"),$(".dropdown_container").hide(),$(".mobile_nav").find("div").removeClass("open")},closeMiniCart=function(){$("body").removeClass("is-active").removeClass("blocked-scroll"),$(".dropdown_link").toggleClass("active_link"),$(".cart-container").removeClass("active_link")},openMiniCart=function($cart_container){$("body").addClass("blocked-scroll"),$(".mobile_nav div").removeClass("open"),$(".dropdown_link").removeClass("active_link"),$cart_container.addClass("active_link")},closeAllSubSubmenus=function(){$(".vertical-menu_sub-submenu").removeClass("is-visible"),$(".vertical-menu_sub-submenu").prev("a").attr("data-click-count",0)},closeAllSubmenus=function(){$(".vertical-menu_submenu").removeClass("is-visible"),$(".vertical-menu_submenu").prev("a").attr("data-click-count",0),$(".mega-menu-parent").attr("data-click-count",0),closeAllSubSubmenus()},$openDropdownOnClick=$(".main-nav__wrapper").find("[data-show-dropdown-on-click]");if($(".dropdown_link--vertical").length&&($(".dropdown_link--vertical, .mega-menu-parent").attr("data-click-count",0),$openDropdownOnClick.length==0&&$(".dropdown_link--vertical, .vertical-menu_submenu").on("mouseover",function(e){var $dropdown=$(this).parents(".main-nav").find('[data-dropdown="'+$(this).data("dropdown-rel")+'"]');$(".dropdown_container").hide(),$(".active_link").removeClass("active_link"),$(this).hasClass("active_link")||($(".dropdown_container").hide(),$(this).children("a").addClass("active_link"),$(".is-absolute").parent().addClass("feature_image"))}),(window.is_touch_device()||$openDropdownOnClick.length>=1)&&$("body").on("touchstart click",".vertical-menu .sublink a, .vertical-menu_submenu .sublink a",function(e){var clicked,verticalMenu=$(this),$dropdownVertical=$(verticalMenu).next(".vertical-menu_submenu"),$dropdownVerticalSubMenu=$(verticalMenu).next(".vertical-menu_sub-submenu"),showMenu=function(){$dropdownVertical.removeClass("hidden"),$dropdownVerticalSubMenu.removeClass("hidden"),$dropdownVertical.addClass("is-visible"),$dropdownVerticalSubMenu.addClass("is-visible")};e.type=="touchstart"?(clicked=!0,$(this).attr("data-click-count")<1&&(openDropdown(verticalMenu,e.target),e.preventDefault(),e.stopPropagation())):e.type=="click"&&!clicked?$(this).attr("data-click-count")<1&&(openDropdown(verticalMenu,e.target),e.preventDefault(),e.stopPropagation()):clicked=!1;function openDropdown(verticalMenu2,target){var $dropdownMegaMenu=$(verticalMenu2).parents(".main-nav").find('[data-dropdown="'+$(this).data("dropdown-rel")+'"]'),clickCount=$(verticalMenu2).attr("data-click-count");if($(".dropdown_link--vertical").not(verticalMenu2).attr("data-click-count",0),$(".mega-menu-parent").attr("data-click-count",0),$(".dropdown_link--vertical").attr("data-no-instant",!0),$(".dropdown_container").hide(),$dropdownMegaMenu.show(),$(target).parents(".vertical-menu_submenu").hasClass("is-visible")?(closeAllSubSubmenus(),$(".is-absolute").parent().addClass("feature_image")):(closeAllSubmenus(),$(".is-absolute").parent().addClass("feature_image")),showMenu(),clickCount++,$(verticalMenu2).attr("data-click-count",clickCount),clickCount<2)return e.preventDefault(),e.stopPropagation(),!1}$("html").on("click",function(event){!$(event.target).closest(".dropdown_container").length&&!$(event.target).hasClass("url-deadlink")&&(closeAllSubmenus(),$(".is-absolute").parent().addClass("feature_image"))})})),$(".promo-banner").length&&window.Cookies.get("promo-banner")!=="dismiss"&&($("body").addClass("promo-banner--show"),$(".promo-banner").on("click",".promo-banner__close",()=>{$("body").removeClass("promo-banner--show"),window.Cookies.set("promo-banner","dismiss",{expires:30,path:"",domain:"",sameSite:"None",secure:!0})})),$(".vertical-menu_submenu, .vertical-menu_sub-submenu").each(function(){$(this).is(":off-right")&&$(this).addClass("vertical-menu--align-right")}),$("html").on("click",function(event){!$(event.target).closest(".cart-container").length&&$(".cart_content").is(":visible")&&closeMiniCart(),!$(event.target).closest(".dropdown_container").length&&$(".dropdown").is(":visible")&&!$(event.target).hasClass("url-deadlink")&&!$(event.target).hasClass("mega-menu-parent")&&($(".is-absolute").parent().addClass("feature_image"),$("body").removeClass("is-active"),closeDropdown(),$openDropdownOnClick.length&&$(".dropdown_link").attr("data-click-count",0))}),Shopify.media_queries.large.matches){if($(".header").hasClass("header-fixed--true")){if($("body").on("click",'.banner a[href^="#"]',function(e){e.preventDefault();var anchorLink=$(this).attr("href"),headerHeight=$(".main-nav__wrapper.sticky_nav").outerHeight();$("html, body").animate({scrollTop:$(anchorLink).offset().top-headerHeight},2e3)}),!$(".main-nav__wrapper").hasClass("sticky_nav"))var sticky_nav=new Headhesive(".main-nav__wrapper",{offset:700,throttle:300,classes:{clone:"sticky_nav",stick:"sticky_nav--stick",unstick:"sticky_nav--unstick"},onInit:function(){$(".sticky_nav .secondary_logo").css("display","none"),$(".sticky_nav .primary_logo").css("display","block"),$(".sticky_nav .icon-search").css("display","block"),$(".sticky_nav .search__form").css("display","none"),$(".sticky_nav .search-link").css("display","block"),$(".sticky_nav .main-nav").append($(".header .cart-container").clone())},onStick:function(){var maxHeight=0,$targetHeightElement=$(".sticky_nav .main-nav");$targetHeightElement.each(function(){maxHeight=maxHeight>$(this).outerHeight()?maxHeight:$(this).outerHeight()}),$(".sticky_nav .mini_cart").css("height",maxHeight),$(".sticky_nav .cart_content").css("top",maxHeight)},onUnstick:function(){$(".cart-container").removeClass("active_link")}})}else $(".header-fixed--true").removeClass("header-fixed--true"),$(".main-nav__wrapper").length>1&&$(".main-nav__wrapper").first().remove();$("img.primary_logo:visible")?$(".logo img",$(".feature_image .header")).attr("src",$(".logo img").data("src-home")):$(".logo img").attr("src",$(".logo img").data("src"))}else $("#header").hasClass("mobile_nav-fixed--true")?($("body").addClass("mobile_nav-fixed--true"),$("body").on("click",'.banner a[href^="#"]',function(e){e.preventDefault();var anchorLink=$(this).attr("href"),headerHeight=$("#header").outerHeight();$("html, body").animate({scrollTop:$(anchorLink).offset().top-headerHeight},2e3)})):$("body").addClass("mobile_nav-fixed--false");$("#header .cart_content").length<1&&$("#header .cart-container").append($(".header .cart_content").clone()),window.is_touch_device()&&Shopify.media_queries.medium.matches||Shopify.media_queries.medium.matches?($(".dropdown_link").attr("data-no-instant",!0),$("body").on("click",".dropdown_link, .vertical--dropdown",function(e){if($(".nav a").removeClass("active_link"),$("#header").is(":visible"))window.$dropdown=$(this).parents("#header").find(`[data-dropdown="${$(this).data("dropdown-rel")}"]`),$(this).hasClass("mini_cart")||$(".cart-container").removeClass("active_link");else{if($(this).hasClass("icon-search"))return window.location=$(this).attr("href"),!1;window.$dropdown=$(this).parents(".main-nav").find(`[data-dropdown="${$(this).data("dropdown-rel")}"]`)}if(window.$dropdown.is(":visible")||window.$dropdown.attr("class")===void 0?(window.$dropdown.hide(),$("body").removeClass("is-active")):($(".dropdown_container").hide(),$(this).hasClass("cart-container")||$(".is-absolute").parent().removeClass("feature_image"),window.$dropdown.show(),$("body").addClass("is-active")),window.$dropdown.is(":visible"))return e.stopPropagation(),!1}),$("body").on("click",".mobile_nav",function(){$(this).find("div").toggleClass("open")}),Shopify.theme_settings.cart_action!=="redirect_cart"&&$(".mini_cart").on("click",function(e){const $cartContainer=$(this).parent();$cartContainer.hasClass("active_link")?(closeMiniCart(),$("body").removeClass("blocked-scroll")):(openMiniCart($cartContainer),$("body").addClass("blocked-scroll")),(window.is_touch_device()||Shopify.media_queries.medium.matches)&&e.preventDefault()}),$(".cart_content__continue-shopping").on("click",()=>{closeMiniCart()})):(($openDropdownOnClick.length||window.is_touch_device())&&($(".dropdown_link").attr("data-click-count",0),$(".dropdown_link").on("click",function(e){const $dropdown=$(this).parents(".main-nav").find(`[data-dropdown="${$(this).data("dropdown-rel")}"]`);let clickCount=$(this).attr("data-click-count");if(closeAllSubmenus(),closeDropdown(),$(".dropdown_link").not(this).attr("data-click-count",0),$(".dropdown_link").attr("data-no-instant",!0),$(".active_link").removeClass("active_link"),$(this).hasClass("active_link")||($dropdown.show(),$(this).hasClass("mini_cart")?$("body").hasClass("cart")||$(this).parent(".cart-container").addClass("active_link"):($(this).addClass("active_link"),$(".is-absolute").parent().removeClass("feature_image"))),e.type==="click"&&(clickCount++,$(this).attr("data-click-count",clickCount),clickCount<2))return e.preventDefault(),e.stopPropagation(),!1})),$openDropdownOnClick.length===0&&($(".nav a, .logo a").not(".cart_content a").on("mouseenter",function(){$(this).hasClass("active_link")||($(".dropdown_container").hide(),$(".active_link").removeClass("active_link"),$(".is-absolute").parent().addClass("feature_image"))}),$(".main-nav, .top-bar, .cart-container").on("mouseleave",()=>{$(".dropdown_container").hide(),$(".active_link").removeClass("active_link"),$(".is-absolute").parent().addClass("feature_image"),$("body").removeClass("is-active")}),$(".dropdown_link").on("mouseover",function(){$(".dropdown_container").hide();const $dropdown=$(this).parents(".main-nav").find(`[data-dropdown="${$(this).data("dropdown-rel")}"]`);$(".active_link").removeClass("active_link"),$(this).hasClass("active_link")||($dropdown.show(),$(this).hasClass("mini_cart")?$("body").hasClass("cart")||$(this).parent(".cart-container").addClass("active_link"):($(this).addClass("active_link"),$(".is-absolute").parent().removeClass("feature_image")))})))},removeDataAttributes(target){if($(target).length){var i,$target=$(target),attrName,dataAttrsToDelete=[],dataAttrs=$target.get(0).attributes,dataAttrsLen=dataAttrs.length;for(i=0;i').addClass("mega-menu-parent").addClass("dropdown_link").removeClass("top_link"),$('[data-dropdown="'+megaMenuValue+'"]').each(function(index2){$(this).hasClass("mega-menu")||$(this).remove()}),$(this).clone().appendTo(".header .main-nav")}),$(".dropdown_link--vertical").length&&($(".dropdown_link--vertical.mega-menu-parent + .vertical-menu_submenu").remove(),$(".dropdown_link--vertical:not(.mega-menu-parent)").each(function(index){var megaMenuValue=$(this).data("dropdown-rel");$('[data-dropdown="'+megaMenuValue+'"]').remove()}));var $openDropdownOnClick=$(".main-nav__wrapper").find("[data-show-dropdown-on-click]");$openDropdownOnClick.length&&$(".mega-menu-parent").on("click",function(e){$(this).hasClass("active_link")||($(".dropdown_container").hide(),$(this).parents(".main-nav").find('[data-dropdown="'+$(this).data("dropdown-rel")+'"]').toggle(),$(this).addClass("active_link"),$(".is-absolute").parent().removeClass("feature_image"))}),header.removeDataAttributes(".header .mega-menu.dropdown_container .dropdown_column"),(window.is_touch_device()||Shopify.media_queries.medium.matches)&&$(".dropdown_link").attr("data-no-instant",!0),header.loadMobileMegaMenu()},loadMobileMegaMenu(){$(".mega-menu-container .mobile-mega-menu").each(function(index){$('[data-mobile-dropdown-rel="'+$(this).data("mobile-dropdown")+'"]').find("span").remove(),$('[data-mobile-dropdown-rel="'+$(this).data("mobile-dropdown")+'"] > a').append(' ').attr("data-no-instant","true"),$('[data-mobile-dropdown-rel="'+$(this).data("mobile-dropdown")+'"]').addClass("mobile-mega-menu-parent sublink"),$('[data-mobile-dropdown-rel="'+$(this).data("mobile-dropdown")+'"]').append(this),$('[data-mobile-dropdown-rel="'+$(this).data("mobile-dropdown")+'"] > ul').each(function(index2){$(this).hasClass("mobile-mega-menu")||$(this).remove()})})},unloadMegaMenu(){$(".header .mega-menu").remove(),$(".mega-menu-container .mega-menu").each(function(index){var menuParent=$(this).data("dropdown");$('.mega-menu-parent[data-dropdown-rel="'+$(this).data("dropdown")+'"]').find(".icon-down-arrow").remove()})},unload(){$("body").off("click",".mobile_nav"),$("body").off("click",".dropdown_link"),$("html").off("click"),$(".mini_cart").off("click"),$(".cart_content__continue-shopping").off("click"),$("body").off("click",'.banner a[href^="#"]'),$(".main-nav__wrapper.sticky_nav").remove()}},window.map={init(){if($(".lazymap").length>0&&lazyframe(".lazymap"),$(".maps").hasClass("js-api-map")){const mapsToLoad=[];$(".map").each(function(i){mapsToLoad.push(this),mapsToLoad[i].sectionid=$(this).data("id"),mapsToLoad[i].address=$(this).data("address"),mapsToLoad[i].directions=$(this).data("directions-address"),mapsToLoad[i].zoom=$(this).data("zoom"),mapsToLoad[i].mapstyle=$(this).data("style"),mapsToLoad[i].showpin=$(this).data("pin"),mapsToLoad[i].apikey=$(this).data("api-key")}),$.each(mapsToLoad,i=>{$.ajaxSetup({cache:!0}),$.getScript(`https://maps.googleapis.com/maps/api/js?key=${mapsToLoad[i].apikey}`).then(()=>{window.map.findLocation(mapsToLoad[i]),$.ajaxSetup({cache:!1})})})}},findLocation(mapArray){let geoLat,geoLng;new google.maps.Geocoder().geocode({address:mapArray.dataset.address},(results,status)=>{status===google.maps.GeocoderStatus.OK?(geoLat=results[0].geometry.location.lat(),geoLng=results[0].geometry.location.lng(),window.map.initMap(geoLat,geoLng,mapArray)):console.log(`Error:${status}`)})},initMap(lat,lng,mapArray){const location={lat,lng};let styleJson=[];mapArray.mapstyle==="aubergine"?styleJson=[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]:mapArray.mapstyle==="retro"?styleJson=[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}]:mapArray.mapstyle==="silver"?styleJson=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}]:mapArray.mapstyle==="night"?styleJson=[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}]:styleJson=[],$(".js-map-link").attr("href",`https://www.google.com/maps/place/${mapArray.directions}/@${lat},${lng}`);const mapOptions={zoom:mapArray.zoom,center:location,styles:styleJson,disableDefaultUI:!1},map=new google.maps.Map(document.getElementById(mapArray.sectionid),mapOptions);if(mapArray.showpin===!0){const marker=new google.maps.Marker({position:location,map})}}},window.accordion={init(){let flg=0;const $faqHeading=$(".faqAccordion > dt > button, .accordion > dt > a");$(".faqAccordion > dd, .accordion > dd").attr("aria-hidden",!0),$faqHeading.attr("aria-expanded",!1),$faqHeading.on("click activate",function(){if(flg)return!1;flg=1;const state=$(this).attr("aria-expanded")==="false";return $(this).attr("aria-expanded",state),$(this).parent().next().slideToggle(()=>{flg=0}),$(this).parent().next().attr("aria-hidden",!state),!1}),$faqHeading.on("keydown",function(event){(event.keyCode||event.which)===13&&$(this).trigger("activate")})}};class ProductCTA extends HTMLElement{static get shortcode(){return"product-cta"}constructor(){super(),this.attachShadow({mode:"open"}),this.events=[];const forAttr=this.getAttribute("for"),variants=forAttr?document.querySelector(`#${forAttr} [data-variants]`):null,variantId=this.getAttribute("variantid"),appendto=document.querySelector(this.getAttribute("appendto"));if(!variants||!variantId){this._setVisible(!1);return}appendto&&appendto.appendChild(this),this._registerEvent({el:variants,event:"change",listener:e=>this._onVariantChange(e,variantId)}),this._setVisible(variants.value===this.variantId)}connectedCallback(){const href=this.getAttribute("href")||"#",target=this.getAttribute("target"),style=document.createElement("style"),a=document.createElement("a"),slot=document.createElement("slot");if(style.innerHTML=` a { color: inherit; cursor; inherit; text-decoration: inherit; } `,a.href=href,a.target=target,a.appendChild(slot),target==="_blank"){const icon=document.createElement("span");icon.classList.add("button-icon"),icon.setAttribute("aria-label","(New window)"),icon.innerHTML='',a.appendChild(icon)}this.shadowRoot.append(style,a)}disconnectedCallback(){this.events.forEach(({el,event,listener})=>el.removeEventListener(event,listener)),this.shadowRoot.innerHTML="",this._setVisible(!0)}_registerEvent({el,event,listener}){return this.events.push({el,event,listener}),el.addEventListener(event,listener),{el,event,listener}}_setVisible(visible){this.toggleAttribute("hidden",!visible)}_onVariantChange(e,variantId){this._setVisible(e.currentTarget.value===variantId)}}customElements.define(ProductCTA.shortcode,ProductCTA); //# sourceMappingURL=/cdn/shop/t/446/assets/sections.js.map?v=26170313199795914061753621700