PageSourceSearch

https://www.superherotoystore.com/cdn/shop/t/85/assets/sections.min.js?v=137386780218983607841784794206

js superherotoystore.com collected 2026-10-07 19:32:33 UTC 62,897 bytes, 2 lines download raw bytes

1(()=>{window.logoList={init(){$("[data-logo-slider]").flickity({cellAlign:"center",pageDots:!1,prevNextButtons:!0,contain:!0,groupCells:!0,initialIndex:0})},unload(e){$(e).hasClass("flickity-enabled")&&$(e).flickity("destroy")}},window.featuredCollection={init(){$(".js-product-slider .products-slider").each(((e,t)=>{const i=$(t).data("products-per-slide"),a=$(t).data("products-limit"),o=$(t).data("products-available");let s="",n=!1,l=!1,r=!1,d=0;window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0"},{name:"model-viewer-ui",version:"1.0"}],window.productMedia.setupMedia),s="2"===i&&o>i&&a>i||"4"===i&&o>i&&a>i||"6"===i&&o>i&&a>i?"left":"center",o>i&&a>i?(n=!0,l=!0,r=!0):(n=!1,l=!1,r=!1),"2"===i&&o>i||"4"===i&&o>i||"6"===i&&o>i?d=0:"3"===i&&o?d=1:"5"===i&&o?d=2:"7"===i&&o&&(d=3),window.PXUTheme.media_queries.medium.matches&&(s="center",n=!0,l=!0,r=!0,d=1,$(t).parents(".even-num-slides").removeClass("even-num-slides")),$(t).flickity({lazyLoad:2,imagesLoaded:!0,draggable:n,prevNextButtons:l,wrapAround:r,cellAlign:s,pageDots:window.usePageDots,contain:!0,freeScroll:!0,arrowShape:window.arrowSize,initialIndex:d}),$(t).addClass("slider-initialized")}))},unload(e){const t=e.find(".js-product-slider");t.hasClass("flickity-enabled")&&t.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 e=$(this),t=$(this).data("promo-animation");e.waypoint((function(){$(this.element).find(".feature-section").addClass(`animated ${t}`)}),{offset:"80%"})}))}},window.slideshow={init(){$(".js-homepage-slideshow").each((function(){const e=$(this),t={slideshowSpeed:1e3*e.data("slideshow-speed"),slideshowTextAnimation:e.data("slideshow-text-animation"),adaptiveHeight:e.data("adaptive-height")};if(!e.hasClass("flickity-enabled")){const i=1!==e.find(".gallery-cell").length;if(e.flickity({adaptiveHeight:t.adaptiveHeight,wrapAround:!0,cellAlign:"left",imagesLoaded:!0,prevNextButtons:i,draggable:i,autoPlay:t.slideshowSpeed}),""!==t.slideshowTextAnimation){const i=e.data("flickity");setTimeout((()=>{e.find(".gallery-cell:nth-child(1) .caption-content").addClass(`animated ${t.slideshowTextAnimation}`)}
1),400),e.on("select.flickity",(()=>{if(e.is(":visible")){const a=i.selectedIndex+1;setTimeout((()=>{e.find(".caption-content").removeClass(`animated ${t.slideshowTextAnimation}`),e.find(`.gallery-cell:nth-child(${a}) .caption-content`).addClass(`animated ${t.slideshowTextAnimation}`)}),400)}}))}}e.find(".gallery-cell").length>1?e.addClass("multi-image"):e.addClass("single-image")}))},unload(e){e.find(".js-homepage-slideshow").flickity("destroy")}},window.testimonials={init(){$(".js-testimonial").each((function(){const e=$(this),t={slideshowSpeed:1e3*e.data("slideshow-speed"),slideshowTextAnimation:e.data("slideshow-text-animation"),adaptiveHeight:e.data("adaptive-height")};if($(".testimonial-image").length>0&&$(".testimonial-block").each((function(){if(0===$(this).find(".testimonial-image").length){const e=$(this).closest(".testimonial-block");$(e).addClass("set-testimonial-height")}})),!e.hasClass("flickity-enabled")){const i=1!==e.find(".gallery-cell").length;if(e.flickity({adaptiveHeight:t.adaptiveHeight,wrapAround:!0,cellAlign:"left",imagesLoaded:!0,prevNextButtons:i,draggable:i,autoPlay:t.slideshowSpeed}),""!==t.slideshowTextAnimation){const i=e.data("flickity");setTimeout((()=>{e.find(".gallery-cell:nth-child(1) .caption-content").addClass(`animated ${t.slideshowTextAnimation}`)}
1),400),e.on("select.flickity",(()=>{if(e.is(":visible")){const a=i.selectedIndex+1;setTimeout((()=>{e.find(".caption-content").removeClass(`animated ${t.slideshowTextAnimation}`),e.find(`.gallery-cell:nth-child(${a}) .caption-content`).addClass(`animated ${t.slideshowTextAnimation}`)}),400)}}))}}e.find(".gallery-cell").length>1?e.addClass("multi-image"):e.addClass("single-image")}))},unload(e){e.find(".js-testimonial").flickity("destroy")}},window.gallery={init(){$(".gallery-horizontal").find(".gallery-image-wrapper").each((function(){const e=$(this),t=$(this).find("img");let i,a;$("<img />").attr("src",$(t).attr("src")).on("load",(function(){i=this.width,a=this.height,$(e).css("flex-basis",200*i/a),$(e).css("flex-grow",200*i/a),$(e).find("i").css("padding-bottom",a/i*100+"%")}))})),$("[rel=gallery]").length&&$("[rel=gallery]").fancybox({baseClass:"gallery-section__lightbox",clickContent:"nextOrClose",afterShow(){const e=$(".fancybox-image");$(".gallery__image").each(((t,i)=>{const a=$(i).attr("alt");e.eq(t).attr("alt",a)}))}})}},window.video={init(){var e=$("[data-video-element]").get(),t=Plyr.setup(e,{controls:window.videoControls,fullscreen:{enabled:!0,fallback:!0,iosNative:!0},storage:{enabled:!1}});$.each(t,(function(e,i){var a=i.id;i.isHTML5&&$(i.elements.wrapper).find("video").attr("data-plyr-video-id",a),i.on("play",(function(e){var i=e.detail.plyr;$.each(t,(function(e,t){i.id!=t.id&&t.pause()}))})),window.globalVideoPlayers&&window.globalVideoPlayers.push(i)})),$("[data-video-element]").each((function(e,i){var a=$(i),o=a.parents(".shopify-section").attr("id",u),s=o.find(a),n=s.parents(".video-wrapper"),l=n.find("[data-play-button]"),r=n.find("[data-secondary-button]"),d=n.find("[data-video-text]"),c=n.find("[data-video-text-container]"),h=n.find(".video-wrapper__image"),p=n.data("poster-image-uploaded"),m=n.data("aspect-ratio"),u=n.data("video-src"),y=n.data("autoplay"),f=n.data("autoloop"),g=n.data("mute-video");$.each(t,(function(e,t){if(t.isYouTube||t.isVimeo)var i=n.attr("id"),a=$(t.elements.original).attr("id");else if(t.isHTML5){i=n.find("[data-plyr-video-id]").data("plyr-video-id"),a=t.id;s=o.find(".plyr--video")}if(a==i)return n.removeClass("play-button-icon--visible"),y?(t.muted=!0,t.autoplay=!0,h.hide(),s.show(),c.hasClass("display-text-over-video--false")&&n.hasClass("caption--below-false")&&!window.PXUTheme.media_queries.large.matches?d.hide():d.show(),l.hide(),t.play()):p?(h.show(),s.hide()):s.show(),h.on("click",(function(){$(this).hide(),s.show(),t.play()})),g&&(t.muted=!0),m&&(t.ratio=m),f&&(t.loop=!0),l&&l.on("click",(function(){t.play()})),t.on("statechange",(e=>{"-1"==e.detail.code&&t.play()})),t.on("play",(function(){h.hide(),n.removeClass("play-button-icon--visible"),s.show(),c.hasClass("display-text-over-video--false")&&n.hasClass("caption--below-false")&&!window.PXUTheme.media_queries.large.matches?c.hide():c.show(),l&&l.hide(),r&&r.hide()})),t.on("pause",(function(){(l.is(":hidden")||0==l.length)&&n.addClass("play-button-icon--visible"),c.show()})),(!t.playing&&l.is(":hidden")||0==l.length)&&n.addClass("play-button-icon--visible"),!1}))}))}},window.cart={init(){document.querySelector("#cart_form .tos_agree")&&this.handleTos();const e=document.querySelector("#cart_form [data-cart-note]");e&&this.handleNotes(e)},handleTos(){$("body").on("click","#cart_form input[type='submit']",(function(){if(!$(this).parents("form").find(".tos_agree").is(":checked")){const e=`<p class="warning animated bounceIn">${window.PXUTheme.translation.agree_to_terms_warning}</p>`;return 0===$("p.warning").length&&$(this).before(e),!1}$(this).submit()}))},handleNotes(e){e.addEventListener("change",(e=>{const t=JSON.stringify({note:e.target.value});fetch(`${window.PXUTheme.routes.cart_update_url}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t})}))}},window.selectCallback=function(e,t,i){const a=document.createEvent("HTMLEvents");let o;o=i?i.find(`.product-${t.product.id}`):$(`.product-${t.product.id}`);const s=$(".product_form, .shopify-product-form",o),n=s.data("variant-inventory");a.initEvent("change",!1,!0),t.variantIdField.dispatchEvent(a);const l=$(`.notify-form-${t.product.id}`),r=l.data("product-title"),d=$(".notify_form__inputs",o),c=window.PXUTheme.translation.notify_email_send,h=d.data("url");let p,m;if(e&&("Default Title"!==e.title?(window.variantTitle=e.title.replace(/"/g,"&quot;"),window.notifyMessage=window.PXUTheme.translation.notify_message_first+r+" - "+window.variantTitle+window.PXUTheme.translation.notify_message_last+h):window.notifyMessage=window.PXUTheme.translation.notify_message_first+r+window.PXUTheme.translation.notify_message_last+h),l.hasClass("notify-form--customer")?(p=l.data("customer-email"),m=""):(p="",m=window.PXUTheme.translation.notify_email),window.notifyFormHTML=`\n    <input\n      class="notify-email"\n      id="contact[email]"\n      name="contact[email]"\n      type="email"\n      placeholder="${m}"\n      value="${p}"\n      required\n    >\n\n    <input\n      type="hidden"\n      name="challenge"\n      value="false"\n    >\n\n    <input\n      class="notify_form_message"\n      name="contact[body]"\n      type="hidden"\n      data-body="${window.notifyMessage}"\n      value="${window.notifyMessage}"\n    >\n\n    <input\n      class="\n        global-button\n        global-button--primary\n      "\n      type="submit"\n      value="${c}"\n    >\n  `,e&&o.is(":visible")){$(".js-product-gallery",o).each(((t,i)=>{const a=$(i),o=window.Flickity.data(a[0]);if(a&&void 0!==o){let t;t=e.featured_image?$(`[data-image-id="${e.featured_media.id}"]`).data("index"):0,o.select(t,!1,!0)}}))}if(window.showOnlySelectedVariantImage){$productGallery=o.find("[data-product-gallery]"),$thumbnailProductGallery=o.find(".product_gallery_nav");const t=(t,i)=>{const a=t.data("flickity"),o=e.featured_media?String(e.featured_media.id):null;let s=null;
1i.forEach((e=>{const i=$(e),n=String(i.data("media-id")),l="true"===String(i.data("media-variant-image"));s||(s=i[0]),l&&(a?(t.flickity("remove",i[0]),t.on("settle.flickity",(()=>{t.flickity("getCellElements").length>0&&t.flickity("select",0,!1,!0),t.off("settle.flickity")}))):i.remove()),n===o&&(a?(t.flickity("prepend",i[0],!0),t.on("settle.flickity",(()=>{const e=t.flickity("getCellElements").indexOf(i[0]);t.flickity("select",e,!1,!0),t.off("settle.flickity")}))):t.prepend(i[0]))})),null===o&&s&&(a?0===t.find(s).length&&(t.flickity("prepend",s,!0),t.on("settle.flickity",(()=>{const e=t.flickity("getCellElements").indexOf(s);t.flickity("select",e,!1,!0),t.off("settle.flickity")}))):0===t.find(s).length&&t.prepend(s)),t.resize();($thumbnailProductGallery.data("flickity")?.cells.length||0)>=5?$thumbnailProductGallery.removeClass("flickity-hide-prev-next"):$thumbnailProductGallery.addClass("flickity-hide-prev-next")};t($productGallery,window.productGalleryMedia),t($thumbnailProductGallery,window.thumbnailGalleryMedia)}if(e&&e.featured_image&&o.is(":visible")&&"select"===window.PXUTheme.theme_settings.product_form_style&&"inline"===window.PXUTheme.theme_settings.quick_shop_style){$(".products-slider").find("select option:not(.selector-wrapper select option)").filter(":selected").each((function(){if($(this).data("featured-image")){const e=$(this).data("image"),t=$(this).parents(".thumbnail").find(".image__container img");t.attr("src",e),t.attr("srcset",e)}}))}if(e)if(n&&n.forEach((t=>{if(t.id===e.id){const i=e;i.inventory_quantity=t.inventory_quantity,i.inventory_management=t.inventory_management,i.inventory_policy=t.inventory_policy}})),$(".sku span",o).text(e.sku),"radio"===window.PXUTheme.theme_settings.product_form_style){const{length:t}=e.options;for(let i=0;i<t;i++){const t=s.find(`.swatch[data-option-index="${escape(i)}"] :radio[value="${e.options[i].replace(/"/g,'\\"')}"]`);t.length&&(t.get(0).checked=!0)}}else $(".notify_form_message",o).attr("value",`${$(".notify_form_message",o).data("body")} - ${window.variantTitle}`);if(e&&!0===e.available){if(e.inventory_management&&e.inventory_quantity>0){if(window.PXUTheme.theme_settings.display_inventory_left){1===e.inventory_quantity?window.itemsLeftText=window.PXUTheme.translation.one_item_left:window.itemsLeftText=window.PXUTheme.translation.items_left_text;const t=parseInt(window.PXUTheme.theme_settings.inventory_threshold,10);e.inventory_quantity<=t?$(".items_left",o).html(`${e.inventory_quantity} ${window.itemsLeftText}`):$(".items_left",o).html("")}window.PXUTheme.theme_settings.limit_quantity&&"deny"===e.inventory_policy&&$(".quantity",o).attr("max",e.inventory_quantity)}else $(".items_left",o).text(""),$(".quantity",o).removeAttr("max");$(".sold_out",o).text(""),$(".add_to_cart",o).removeClass("disabled").removeAttr("disabled").find("span").text($(".add_to_cart",o).data("label")),$(".shopify-payment-button",o).removeClass("disabled"),$(".purchase-details__buttons",o).removeClass("product-is-unavailable"),$(".modal_price",o).removeClass("variant-unavailable"),o.find(l).hide(),o.find(d).empty()}else{const t=e?window.PXUTheme.translation.sold_out_text:window.PXUTheme.translation.unavailable_text;e?$(".modal_price",o).removeClass("variant-unavailable"):$(".modal_price",o).addClass("variant-unavailable"),$(".items_left",o).text(""),$(".quantity",o).removeAttr("max"),$(".sold_out",o).text(t),$(".purchase-details__buttons",o).addClass("product-is-unavailable"),$(".add_to_cart",o).addClass("disabled").attr("disabled","disabled").find("span").text(t),$(".shopify-payment-button",o).addClass("disabled"),l.hide(),d.empty(),e&&!e.available&&(l.fadeIn(),d.empty(),d.append(window.notifyFormHTML))}window.PXUTheme.currency.show_multiple_currencies&&window.currencyConverter.convertCurrencies()},window.productPage={loadQuickshop:e=>window.shopifyAsyncview.load(e,{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 e=$(this);window.productPage.enableGallery(e)}
1)),"?contact_posted=true"===window.location.search&&($(".notify-form .contact-form").hide(),$(".notify-form .contact-form").prev(".message").html(window.PXUTheme.translation.notify_success_text)),"radio"===window.PXUTheme.theme_settings.product_form_style&&$("body").on("change",".swatch :radio",(function(){const e=$(this).closest(".swatch").attr("data-option-index"),t=$(this).val(),i=$(this).closest(".product_form form");i.siblings(".notify-form").length?window.notifyForm=i.siblings(".notify-form"):window.notifyForm=$(".js-notify-form");const a=i.find(".swatch_options input:checked").eq(0).val(),o=i.find(".swatch_options input:checked").eq(1).val()||"",s=i.find(".swatch_options input:checked").eq(2).val()||"";window.notifyMessage=a&&o&&s?`${a} / ${o} / ${s}`:a&&o?`${a} / ${o}`:a,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(e).val(t).trigger("change")})),$(".js-product-gallery a").fancybox({width:800,height:800,baseClass:"product-section__lightbox",clickContent:!1,afterShow(e){const t=$(".fancybox-image");$(".product-gallery__image").each(((e,i)=>{const a=$(i).attr("alt");t.eq(e).attr("alt",a)}));e.$trigger.first().parents(".js-product-gallery").data("zoom")&&$(".fancybox-image").last().wrap('<span class="zoom-wrap" style="display:inline-block"></span>').css("display","block").parent().zoom({touch:!1,magnify:1})},afterClose(e){const t=e.$trigger.first().parents(".js-product-gallery");t.hide(),setTimeout((()=>{t.fadeIn(100),$(".js-product-gallery").find(".is-selected a").focus()}),1)}});const e=document.querySelector("[data-recipient-form]");if(e){const t=e.closest(".product_section");this.recipientForm=new RecipientForm(t)}const t=document.querySelector("[data-complementary-products]");if(t){const e=t.closest(".product_section"),{sectionId:i,productId:a,productRecommendationLimit:o}=JSON.parse(document.querySelector("[data-complementary-products-data]").textContent);this.complementaryProductRecommendations=new ComplementaryProducts({sectionEl:e,sectionId:i,productId:a,productRecommendationsRoute:window.PXUTheme.routes.product_recommendations_url,includeIndicatorDots:!0,limit:o,arrowShape:"M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z"})}$(".shopify-section--recommended-products").length&&window.productPage.loadProductRecommendations()},runOptionSelector(e){let t=$(".js-product-section [data-product-form]:not(.product-recommendations .js-product-section [data-product-form])");e&&(t=e.find("[data-product-form]")),t.each(((t,i)=>{const a=$(i),o=a.closest(".product__details");let s;const n=new window.PaymentTerms(o[0]);s=window.PXUTheme.media_queries.medium.matches&&window.PXUTheme.theme_settings.hover_enabled&&window.PXUTheme.theme_settings.quick_shop_enabled&&"inline"===window.PXUTheme.theme_settings.quick_shop_style?o.find(".modal_price [data-price-ui], .product-info__caption [data-price-ui]")[0]:o.find("[data-price-ui]")[0];const l=o.find("[data-price-ui-badge]")[0],r=o.find("[data-surface-pick-up]")[0],d=a.data("product"),c=s&&s.closest(['[data-display-savings="true"]']),h=l&&l.closest(['[data-display-percent="true"]']),p=a.data("product-title");let m,u,y,f;s&&(m=new window.ShopifyPriceUI.PriceUI(s)),l&&(u=new window.ShopifyPriceUI.PriceUIBadge(l)),r&&(y=new window.ShopifySurfacePickUp(r),y.onModalRequest((e=>{const t=document.querySelector("[data-surface-pick-up-modal]");let i;if(f.title&&p){i=document.createDocumentFragment();const e=document.createElement("div"),t=document.createElement("h2");if(e.classList.add("surface-pick-up__modal-header"),t.classList.add("surface-pick-up__modal-title"),t.innerHTML=p,e.appendChild(t),"Default Title"!==f.title){const t=document.createElement("span");t.classList.add("surface-pick-up__modal-subtitle"),t.innerHTML=f.title,e.appendChild(t)}i.appendChild(e)}t.innerHTML=e,t.insertBefore(i,t.firstChild),$.fancybox.open(t,{hash:!1,infobar:!1,toolbar:!1,loop:!0,smallBtn:!0,touch:!1,video:{autoStart:!1},mobile:{preventCaptionOverlap:!1,toolbar:!0}})}))),new window.Shopify.OptionSelectors(a.data("select-id"),{product:a.data("product"),onVariantSelected:(t,i)=>{if(f=t,n.update(t?t.id:null),m&&(m.load(d,{variant:t,formatter:e=>window.Shopify.formatMoney(e,$("body").data("money-format")),handler:(e,t,i)=>{let{variant:a}=i;if(c&&a&&a.compare_at_price>a.price){const t=document.createElement("span");t.classList.add("sale","savings");const i=a.compare_at_price-a.price,o=Math.round(i/a.compare_at_price*100);t.innerHTML=`${window.PXUTheme.translation.savings_text} ${o}% (<span class="money">${window.Shopify.formatMoney(a.compare_at_price-a.price,$("body").data("money-format"))}</span>)`,e.appendChild(t)}if(a&&a.available){if(0===a.price){const e=document.createDocumentFragment(),t=document.createElement("span");return t.classList.add("free-price-text"),""!==window.PXUTheme.theme_settings.free_text?t.innerHTML=window.PXUTheme.theme_settings.free_text:t.innerHTML=`<span class="money">${window.Shopify.formatMoney(a.price,$("body").data("money-format"))}</span>`,e.appendChild(t),e}return e}if(!window.PXUTheme.theme_settings.display_sold_out_price){const e=document.createDocumentFragment(),t=document.createElement("span");return t.classList.add("sold_out"),t.innerHTML=a?window.PXUTheme.translation.sold_out_text:window.PXUTheme.translation.unavailable_text,e.appendChild(t),e}if(window.PXUTheme.theme_settings.display_sold_out_price){const t=document.createElement("span");t.classList.add("sold_out"),t.innerHTML=a?window.PXUTheme.translation.sold_out_text:window.PXUTheme.translation.unavailable_text,e.appendChild(t)}return e}}),window.PXUTheme.theme_settings.display_sold_out_price&&t&&0===t.price&&!t.available)){const e=s.querySelector("[data-price]");if(!e)return;if(""!==window.PXUTheme.theme_settings.free_text){const t=document.createElement("span");t.classList.add("free-price-text"),t.innerHTML=window.PXUTheme.theme_settings.free_text,e.innerHTML="",e.appendChild(t)}else if(""===window.PXUTheme.theme_settings.free_text)return void e.classList.add("price--sale")}u&&u.load(d,{variant:t,style:"default",formatter:e=>window.Shopify.formatMoney(e,$("body").data("money-format")),handler:(e,t,i)=>{let{variant:a}=i;if(a&&a.available){if(a.compare_at_price>a.price){const e=document.createDocumentFragment();let t;const i=document.createElement("div");i.classList.add("price-ui-badge__sticker");const o=document.createElement("span");if(o.classList.add("price-ui-badge__sticker-text"),o.setAttribute("data-badge",""),h){const e=a.compare_at_price-a.price;t=` ${Math.round(e/a.compare_at_price*100)}${window.PXUTheme.translation.percent_off_text}`}else t=` ${window.PXUTheme.translation.sale_text}`;return o.innerHTML=t,i.appendChild(o),e.appendChild(i),e}return!a.compare_at_price||a.compare_at_price<=a.price?document.createDocumentFragment():e}if(a&&!a.available||!a){const e=document.createDocumentFragment();let t;const i=document.createElement("div");i.classList.add("price-ui-badge__sticker");const o=document.createElement("span");return o.classList.add("price-ui-badge__sticker-text"),o.setAttribute("data-badge",""),a&&!a.available&&(i.classList.add("price-ui-badge__sticker--sold-out"),t=window.PXUTheme.translation.sold_out_text),a||(i.classList.add("price-ui-badge__sticker--unavailable"),t=window.PXUTheme.translation.unavailable_text),o.innerHTML=t,i.appendChild(o),e.appendChild(i),e}return e}}
1),y&&!a.closest(".js-product-section").hasClass("inline-quickshop")&&y.load(t?t.id:null),window.selectCallback(t,i,e)},enableHistoryState:a.data("enable-state")})}))},enableGallery(e){const t=$(e),i=t.find(".gallery-cell"),a=t.closest(".js-product-section").find(".product_gallery_nav"),o=a.find(".gallery-cell"),s=t.data("zoom"),n=t.data("product-lightbox"),l=t.data("thumbnails-enabled"),r=t.data("thumbnails-slider-enabled"),d=t.data("thumbnails-position"),c=t.data("gallery-arrows-enabled"),h=t.data("slideshow-speed");function p(){i.each(((e,t)=>{const i=$(t),a=i.data("media-type")||i.find("[data-media-type]").data("media-type");let o=i.find("video").data("plyr-video-id");const s=i.find("iframe").attr("id");i.hasClass("is-selected")&&("video"===a?(o=i.find("video").data("plyr-video-id"),o&&function(e,t){$.each(window.videoPlayers,((i,a)=>{parseInt(a.media.dataset.plyrVideoId,10)===e&&(a.play(),a.on("exitfullscreen",(()=>{t.closest(".product-gallery").find(".product-gallery__thumbnails").focus()})))}))}(o,i)):"external_video"===a&&s&&function(e,t){$.each(window.videoPlayers,((i,a)=>{a.playing&&a.pause(),a.media.id===e&&(a.play(),a.on("exitfullscreen",(()=>{t.closest(".product-gallery").find(".product-gallery__thumbnails").focus()})))}))}(s,i))}))}window.showOnlySelectedVariantImage=t.closest("[data-show-only-selected-variant-image]").length>0,!0===s&&(window.is_touch_device()&&window.PXUTheme.media_queries.medium.matches?"false"===n&&document.addEventListener("lazybeforeunveil",window.imageFunctions.zoom):(document.addEventListener("lazybeforeunveil",window.imageFunctions.zoom),window.imageFunctions.zoom(t.find("[data-zoom-src]").first()))),t.on("ready.flickity",(()=>{i.each(((e,i)=>{const a=$(i).data("media-type")||$(i).find("[data-media-type]").data("media-type");let o;switch(a){case"external_video":o=$(i).find("[data-plyr-video-id]").data("plyr-video-id"),window.videoPlayers&&window.videoPlayers.forEach((e=>{const t=e;e.id!==o&&e.media.id!==o||$(i).hasClass("is-selected")||(t.keyboard={focused:!1,global:!1})}));break;case"video":o=$(i).find("[data-plyr-video-id]").data("plyr-video-id"),window.videoPlayers&&window.videoPlayers.forEach((e=>{const t=e;e.id!==o&&e.media.id!==o||$(i).hasClass("is-selected")||(t.keyboard={focused:!1,global:!1})}));break;case"model":$(i).hasClass("is-selected")&&"model"===a&&window.isScreenSizeLarge()&&($(i).on("mouseenter",(()=>{t.flickity("unbindDrag")})),$(i).on("mouseleave",(()=>{t.flickity("bindDrag")})))}}));const e=t.data("video-loop");$.each(window.videoPlayers,((t,i)=>{i.loop=e}))})),t.on("change.flickity",(()=>{i.each(((e,i)=>{const a=$(i).data("media-type")||$(i).find("[data-media-type]").data("media-type");if($(i).hasClass("is-selected"))if("model"===a)window.isScreenSizeLarge()&&($(i).on("mouseenter",(()=>{t.flickity("unbindDrag")})),$(i).on("mouseleave",(()=>{t.flickity("bindDrag")}))),$(i).find("model-viewer").on("shopify_model_viewer_ui_toggle_play",(()=>{t.flickity("unbindDrag")})),$(i).find("model-viewer").on("shopify_model_viewer_ui_toggle_pause",(()=>{t.flickity("bindDrag")}));else t.flickity("bindDrag");else switch(a){case"external_video":case"video":$.each(window.videoPlayers,((e,t)=>{t.pause()}))}})),window.productMedia.showModelIcon(t)})),t.flickity({wrapAround:!0,adaptiveHeight:!0,dragThreshold:10,imagesLoaded:!0,pageDots:!1,prevNextButtons:t.data("media-count")>1||i.length>1,autoPlay:1e3*h,watchCSS:!1}),$.each(window.videoPlayers,((e,i)=>{i.on("controlshidden",(()=>{t.find(".flickity-prev-next-button").css("height","auto")})),i.on("controlsshown",(()=>{t.find(".flickity-prev-next-button").css("height","calc(100% - 64px)")}))}));const m=t.find(".flickity-prev-next-button");if((m||o)&&window.isScreenSizeLarge()&&(m.on("click",(()=>{const e=t.data("product-id");return t.on("settle.flickity",(()=>{const i=t.find(".gallery-cell.is-selected"),a=i.data("media-type")||i.find("[data-media-type]").data("media-type");if("video"!==a&&"external_video"!==a||p(),"model"===a){const t=[];$.each(window.productMedia.models,(i=>{$(i.container).closest(".gallery-cell").data("product-id")===e&&t.push(i)})),$.each(t,(e=>{$(e.container).closest(".gallery-cell").hasClass("is-selected")&&e.play()}))}t.off("settle.flickity")})),!1})),o.on("click",(e=>{const i=$(e.currentTarget).index(),a=t.data("product-id");return t.flickity("select",i),t.on("settle.flickity",(()=>{const e=t.find(".gallery-cell.is-selected"),i=e.data("media-type")||e.find("[data-media-type]").data("media-type");if("video"!==i&&"external_video"!==i||p(),"model"===i){const e=[];$.each(window.productMedia.models,((t,i)=>{$(i.container).closest(".gallery-cell").data("product-id")===a&&e.push(i)})),$.each(e,((e,t)=>
1{$(t.container).closest(".gallery-cell").hasClass("is-selected")&&t.play()}))}t.off("settle.flickity")})),!1})),o.keypress((e=>{const i=$(e.currentTarget).index(),a=t.data("product-id");if(13===e.which){t.flickity("select",i);const e=t.find(".gallery-cell.is-selected");t.on("settle.flickity",(()=>{e.find("[data-youtube-video]").attr("tabindex","0"),e.find("model-viewer, .plyr, a").focus(),t.off("settle.flickity")}));const o=e.data("media-type")||e.find("[data-media-type]").data("media-type");if("video"!==o&&"external_video"!==o||p(),"model"===o){const e=[];$.each(window.productMedia.models,(t=>{$(t.container).closest(".gallery-cell").data("product-id")===a&&e.push(t)})),$.each(e,(e=>{$(e.container).closest(".gallery-cell").hasClass("is-selected")&&e.play()}))}return!1}}))),window.showOnlySelectedVariantImage){window.productGalleryMedia=[],window.thumbnailGalleryMedia=[];const e=(e,t,i)=>{const a=t.data("flickity");e.each(((e,o)=>{const s=$(o),n=s.data("media-variant-image");i.push(s),n&&(a?t.flickity("remove",s[0]):t.find(s[0]).remove())}))};e(i,t,window.productGalleryMedia),e(o,a,window.thumbnailGalleryMedia)}if(!0===l&&!0===r&&i.length>1)if(window.PXUTheme.media_queries.large.matches)if("left"===d||"right"===d){a.css("max-height",t.closest(".product-gallery").outerHeight()),a.addClass("vertical-slider-enabled"),o.on("click",(e=>{const i=$(e.currentTarget).index();t.flickity("select",i)}));const e=o.height(),i=a.height();t.on("select.flickity",(()=>{const s=t.data("flickity");a.find(".is-nav-selected").removeClass("is-nav-selected");const n=o.eq(s.selectedIndex).addClass("is-nav-selected").position().top+a.scrollTop()-(i+e)/2;a.animate({scrollTop:n})}))}else a.flickity({cellAlign:"center",contain:!0,groupCells:"80%",imagesLoaded:!0,pageDots:!1,prevNextButtons:o.length>5&&c,asNavFor:t[0]}),a.on("settle.flickity",(()=>{a.flickity("resize")})),$(window).on("load",(()=>{a.flickity("resize")})),$.each(o,((e,t)=>{const i=$(t);i.hasClass("is-selected")&&i.on("focus",(()=>{a.flickity("selectCell",e)}))}));else a.flickity({cellAlign:"center",contain:!0,groupCells:"80%",imagesLoaded:!0,pageDots:!1,prevNextButtons:o.length>5&&c,asNavFor:t[0]});else!0===l&&a.find(".gallery-cell").on("click",(function(){const e=$(this).index();t.flickity("selectCell",e)}));$(window).on("load",(()=>{t.flickity().flickity("resize")})),t.on("settle.flickity",(()=>{t.flickity().flickity("resize")}))},loadProductRecommendations(){const e=$("[data-product-recommendations]"),t=$(".shopify-section--recommended-products"),i=e.data("section-id"),a=e.data("product-id"),o=e.data("limit"),s=e.data("recommendations-url"),n=t.find(e).data("enabled"),l=$(".js-recommended-products-slider");if(!n)return;e.hasClass("meta-related-recommended-collection")?(l.length?window.productPage.recommendedProductsSlider():$(".product-recommendations [data-product-gallery]").each((function(){const e=$(this);window.productPage.enableGallery(e)})),window.productPage.runOptionSelector(t)):function(){const r=`${s}?section_id=${i}&limit=${o}&product_id=${a}`;$.ajax({type:"GET",url:r,success(i){if(!n)return;const a=$(i).find(".product-recommendations").html();e.html(a),l.length?window.productPage.recommendedProductsSlider():$("[data-product-recommendations] [data-product-gallery]").each(((e,t)=>{const i=$(t);window.productPage.enableGallery(i)})),window.PXUTheme.currency.show_multiple_currencies&&window.currencyConverter.convertCurrencies(),window.productPage.runOptionSelector(t),window.Shopify.PaymentButton&&window.Shopify.PaymentButton.init(),window.hideNoScript(),window.videoFeature.setupRecommendedVideoPlayer(),$(".swatch_options label").on("click",(function(){window.quickShop.toggleSwatchImages($(this))})),window.PXUTheme.theme_settings.collection_secondary_image&&window.imageFunctions.showSecondaryImage()}})}()},productSwatches(){if("radio"===window.PXUTheme.theme_settings.product_form_style){if($(".js-product-section").length){const e=$(".js-product-section").find(".product_form");e.addClass("is-visible"),e.each(((e,t)=>{const i=$(t),a=i.data("product"),o=`.product-${i.data("product-id")} .js-product-section`;i.find(".swatch_options .swatch").length>1&&window.Shopify.linkOptionSelectors(a,o)}))}$(".js-product-section").length>1&&$("body").on("click",".swatch-element",(e=>{const t=$(e.currentTarget),i=t.data("value").toString();t.siblings(`input[value="${i.replace(/"/g,'\\"')}"]`).prop("checked",!0).trigger("change");const a=t.parents(".product_form").data("product"),o=`.product-${t.parents(".product_form").data("product-id")} .js-product-section`;t.parents(".product_form").find(".swatch_options .swatch").length>1&&window.Shopify.linkOptionSelectors(a,o)}))}},recommendedProductsSlider(){$(".product-recommendations .products-slider").each(((e,t)=>{const i=$(t),a=i.data("products-per-slide"),o=i.data("products-limit"),s=i.data("products-available");let n,l,r,d,c;const h=s>a,p=o>a,m=a%2==0;n=m&&h&&p?"left":"center",h&&p?(l=!0,r=!0,d=!0):(l=!1,r=!1,d=!1),m&&h&&p?c=0:"3"===a&&s?c=1:"5"===a&&s?c=2:"7"===a&&s&&(c=3),window.PXUTheme.media_queries.medium.matches&&(n="center",l=!0,r=!0,d=!0,c=1,i.parents(".even-num-slides").removeClass("even-num-slides")),i.flickity({lazyLoad:2,imagesLoaded:!0,draggable:l,cellAlign:n,prevNextButtons:r,wrapAround:d,contain:!0,freeScroll:!0,initialIndex:c})}))},initializeQuantityBox(){$("body").on("click",".js-change-quantity",(e=>{const t=$(e.currentTarget),i=t.siblings("input"),a=parseInt(i.val(),10);let o=1e29;const s=i.attr("min")||0;null!=i.attr("max")&&(o=i.attr("max")),(isNaN(a)||a<s)&&i.val(s),a>o&&i.val(o),"plus"===t.data("func")?a<o&&i.val(a+1):(a>s&&i.val(a-1),t.parents(".cart_item").length&&a-1==0&&t.closest(".cart_item").addClass("animated fadeOutUp")),i.trigger("change")}))},unload(e){e.find(".products-slider").flickity("destroy"),$("body").off("
1click",".js-change-quantity")}};class e{constructor(){this.el=document.querySelector("[data-desktop-header]"),this.el&&(this.openers=new Set,this.fadeClass="feature_image",this.el.classList.contains("feature_image")&&(this.shouldFade=this.el.classList.contains("feature_image")))}updateShouldFade(e){this.el&&(this.openers.size?e?(this._fade(),this.shouldFade=e):(this.shouldFade&&(this.openers.clear(),this._clear()),this.shouldFade=e):this.shouldFade=e)}fade(e){this.el&&this.shouldFade&&(this.openers.has(e)||(this.openers.add(e),this._fade()))}clear(e){this.el&&this.shouldFade&&(this.openers.delete(e),this.openers.size||this._clear())}_fade(){this.el.classList.remove(this.fadeClass)}_clear(){this.el.classList.add(this.fadeClass)}}class t{constructor(e){this.menuItem=e.menuItem,this.detailsItem=e.menuItem.querySelector("[data-nav-desktop-details]"),this.parentMenu=e.parentMenu,this._locked=e.locked||(()=>!1),this.menuLink=this.detailsItem.querySelector("[data-nav-desktop-link]"),this.submenuEl=this.menuItem.querySelector("[data-nav-desktop-submenu]"),this.isWideNav="navDesktopFullWidthMenu"in this.submenuEl.dataset,this.openOnClick=this.menuItem.closest("[data-show-dropdown-on-click]"),this._isOpen=!1,this.submenu=null,this.events=new window.EventHandler,this._open=this._open.bind(this),this._close=this._close.bind(this),this.close=this.close.bind(this),this.closeEsc=e=>{"Escape"===e.key&&(this.menuLink.focus(),this._close())},this.closeTimer=null,this.mouseover=()=>{clearTimeout(this.closeTimer),this._open()},this.mouseout=()=>{this.closeTimer=setTimeout(this.close,400)},this.click=e=>{e.stopPropagation();const t=e.target.closest("[data-nav-desktop-link]");t&&"href"in t.dataset&&(e.preventDefault(),this._isOpen)?window.location=t.dataset.href:this._open()},this.focusin=e=>{e.stopPropagation(),this.parentMenu.closeSiblings(this)},this.animation=window.animations.transition({el:this.submenuEl,state:"closed"}),this.openOnClick||(this.events.register(this.menuItem,"mouseover",(()=>this.mouseover())),this.events.register(this.menuItem,"mouseout",(()=>this.mouseout()))),this.events.register(this.menuItem,"click",(e=>this.click(e))),this.events.register(this.menuItem,"touchend",(e=>this.click(e))),this.events.register(this.menuItem,"focusin",(e=>this.focusin(e))),this.events.register(document.body,"click",(()=>this._close())),this.events.register(document.body,"focusin",(()=>this._close()))}forceClose(){this._close()}close(){this._close()}forceOpen(){this._open(!0)}open(){this._open()}_setAlternateDrop(){if(this.isWideNav)return;const e=this.submenuEl.getBoundingClientRect();e.right>document.documentElement.clientWidth&&this.submenuEl.classList.add("alternate-drop"),e.left<0&&this.submenuEl.classList.add("alternate-drop-left")}_removeAlternateDrop(){this.submenuEl.classList.remove("alternate-drop")}_open(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._isOpen||this._locked()||(this._isOpen=!0,this.parentMenu.closeSiblings(this),this.closeEscEvent=this.events.register(window,"keyup",(e=>this.closeEsc(e))),this.submenu||(this.submenu=new i({navList:this.submenuEl})),this._removeAlternateDrop(),this.isWideNav&&window.headerFader.fade(this),this.detailsItem.setAttribute("open","open"),this.animation.animateTo("open",{onStart:e=>{let{el:t}=e;this._setAlternateDrop()},force:e}).then((e=>{"open"==e&&this.menuLink.setAttribute("aria-expanded",!0)})))}_close(){this._isOpen&&!this._locked()&&(this.submenu&&(this.submenu.unload(),this.submenu=null),this._isOpen=!1,this.events.unregister(this.closeEscEvent),this.isWideNav&&window.headerFader.clear(this),this.animation.animateTo("closed").then((e=>{"closed"==e&&(this._removeAlternateDrop(),this.menuLink.setAttribute("aria-expanded",!1),this.detailsItem.removeAttribute("open"))})))}unload(){this.forceClose(),this.events.unregisterAll(),this.closeEscEvent&&this.events.unregister(this.closeEscEvent)}}class i{constructor(e){this.navList=e.navList,this.menuItems=this.navList.children,this._selectedBlock=null,this.parents=[],this.events=new window.EventHandler;for(let e=0;e<this.menuItems.length;e++){const i=this.menuItems[e];"navDesktopParent"in i.dataset?this.parents.push(new t({menuItem:i,parentMenu:this,locked:()=>null!==this._selectedBlock}
1)):this.events.register(i,"focusin",(()=>this.closeAllMenus()))}}onMeganavSelect(e){const t=this.parents.find((t=>t.menuItem===e));t&&(t.forceOpen(),this._selectedBlock=t)}onMeganavDeselect(){this._selectedBlock=null,this.closeAllMenus()}closeSiblings(e){this.parents.forEach((t=>{t!==e&&t.close()}))}closeAllMenus(){this.parents.forEach((e=>e.close()))}unload(){this.closeAllMenus(),this.parents.forEach((e=>{e.unload()})),this.events.unregisterAll()}}class a{constructor(e){this.navTier1=e.querySelector("[data-nav-desktop-tier-1]"),this.navTier1&&(this.headerNavMenu=new i({navList:this.navTier1}))}onMeganavSelect(e){this.headerNavMenu&&this.headerNavMenu.onMeganavSelect(e)}onMeganavDeselect(){this.headerNavMenu&&this.headerNavMenu.onMeganavDeselect()}unload(){this.headerNavMenu&&this.headerNavMenu.unload()}}window.navigationDesktopManager=new class{constructor(){this.desktopNavs=[]}onMeganavSelect(e){this.desktopNavs.forEach((t=>t.onMeganavSelect(e)))}onMeganavDeselect(){this.desktopNavs.forEach((e=>e.onMeganavDeselect()))}initAll(){this.unload(),this.desktopNavs=Array.prototype.map.call(document.querySelectorAll("[data-nav-desktop]"),(e=>new a(e)))}unload(){this.desktopNavs.forEach((e=>e.unload()))}};class o{constructor(e){this.el=e,this.el&&(this.trigger=this.el.querySelector("[data-mobile-menu-trigger]"),this.icon=this.el.querySelector("[data-mobile-menu-icon]"),this.animation=window.animations.transition({el:this.el.querySelector(["[data-nav]"]),state:"closed"}),this.events=new window.EventHandler,this.events.register(this.trigger,"click",(e=>{e.preventDefault(),this._toggle()})))}_toggle(){"open"!==this.animation.state?this.open():this.close()}open(){this.el&&"open"!==this.animation.state&&(this.el.open=!0,this.icon.classList.add("open"),document.body.classList.add("is-active"),this.animation.animateTo("open"))}close(){this.el&&"closed"!==this.animation.state&&(this.icon.classList.remove("open"),this.animation.animateTo("closed").then((e=>{"closed"===e&&(this.el.open=!1,document.body.classList.remove("is-active"))})))}unload(){this.events&&this.events.unregisterAll()}}window.header={init(){this.events=new EventHandler,this.headerSearch=document.querySelector('[data-dropdown-rel="search"]'),window.headerFader=new e,window.navigationDesktopManager.initAll(),window.mobileMenuDrawer=new o(document.querySelector("[data-mobile-menu]")),this.events.register(this.headerSearch,"click",(e=>{window.PXUTheme.media_queries.medium.matches&&(e.preventDefault(),window.mobileSearch.open())}));var t=function(){document.querySelectorAll('[data-cart-form="mini-cart"] [data-cart-note]').forEach((e=>{e.addEventListener("change",(e=>{const t=JSON.stringify({note:e.target.value});fetch(`${window.PXUTheme.routes.cart_update_url}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t})}))})),$("body").removeClass("is-active").removeClass("blocked-scroll"),$(".dropdown_link").toggleClass("active_link"),$(".cart-container").removeClass("active_link")},i=function(e){window.mobileMenuDrawer.close(),$(".dropdown_link").removeClass("active_link"),e.addClass("active_link")};if($(".promo-banner").length){"dismiss"!==window.Cookies.get("promo-banner")&&($("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})})))}$("html").on("click",(e=>{!$(e.target).closest(".cart-container").length&&$(".cart_content").is(":visible")&&t()})),$(".mobile_nav").on("click",(e=>{!$(e.target).closest(".cart-container").length&&$(".cart_content").is(":visible")&&t()}));class a{constructor(){this.headerHeight=0,this.triggerY=0,this.observer=null,this.scrollTimeout=null,this.$headerGroup=$(".header-group"),this.$mainHeader=$(".shopify-section--header"),this.$observerTargets=$(".header-group > div:not(.shopify-section--mega-menu)"),this.$header=$("#header"),this.$promoBanner=$("#header .promo-banner"),this.$topBar=$("#header .top-bar"),this.$sectionWrapper=$(".section-wrapper"),this.promoBannerHe
1ightCache=this.$promoBanner.height(),this.init()}init(){this.updateHeaderHeight(),this.updateTriggerY(),window.addEventListener("scroll",this.toggleSticky),this.initResizeObserver()}initResizeObserver(){try{this.observer=new ResizeObserver((e=>{e.some((e=>e.target==this.$mainHeader[0]))?(this.$promoBanner.length>0&&this.$promoBanner.height()!=this.promoBannerHeightCache&&this.promoChange(),$("body.is-active .header-group:not(.sticky)").length>0?(this.$headerGroup.css("padding-bottom",this.headerHeight),this.$header.css("top",Math.max(this.triggerY-window.scrollY,0))):(this.$headerGroup.css("padding-bottom",0),this.$header.css("top",0))):(this.updateHeaderHeight(),this.updateTriggerY(),window.removeEventListener("scroll",this.toggleSticky),window.addEventListener("scroll",this.toggleSticky))})),this.$observerTargets.each(((e,t)=>{try{this.observer.observe(t)}catch(t){console.error(`Failed to observe target ${e}:`,t)}}))}catch(e){console.error("Failed to initialize ResizeObserver:",e)}}updateHeaderHeight(){this.headerHeight=(this.$promoBanner.height()??0)+this.$topBar.height()}updateTriggerY(){this.triggerY=this.$sectionWrapper[0].getBoundingClientRect().top+window.scrollY-this.headerHeight}promoChange(){this.promoBannerHeightCache=this.$promoBanner.height(),this.updateHeaderHeight(),this.updateTriggerY()}toggleSticky=function(e,t){let i=0;return function(){let a=Date.now();if(a-i>=t){for(var o=arguments.length,s=new Array(o),n=0;n<o;n++)s[n]=arguments[n];e.apply(this,s),i=a}}}((()=>{const e=()=>{if(window.scrollY>=this.triggerY){getComputedStyle(document.body).getPropertyValue("--sticky-header-height")||document.body.style.setProperty("--sticky-header-height",`${this.headerHeight}px`),this.$headerGroup.addClass("sticky")}else document.body.style.removeProperty("--sticky-header-height"),this.$headerGroup.removeClass("sticky")};e(),clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(e,200)}),100)}if(window.PXUTheme.media_queries.large.matches){if($(".header").hasClass("header-fixed--true")){if($("body").on("click",'.banner a[href^="#"]',(function(e){e.preventDefault();var t=$(this).attr("href"),i=$(".main-nav__wrapper.sticky_nav").outerHeight();$("html, body").animate({scrollTop:$(t).offset().top-i},2e3)})),!$(".main-nav__wrapper").hasClass("sticky_nav")){let e;window.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()),window.navigationDesktopManager.initAll(),e=new window.animations.transition({el:document.querySelector(".sticky_nav"),state:"closed"})},onStick:function(){e.animateTo("open",{onStart:()=>{var e=0;$(".sticky_nav .main-nav").each((function(){e=e>$(this).outerHeight()?e:$(this).outerHeight()})),$(".sticky_nav .mini_cart").css("height",e),$(".sticky_nav .cart_content").css("top",e),document.querySelector(".sticky_nav").style.setProperty("--sticky-header-height",`${e}px`)}})},onUnstick:function(){$(".cart-container").removeClass("active_link"),e.animateTo("closed",{force:!0})},onDestroy:()=>{e&&e.unload()}})}}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").removeClass("mobile_nav-fixed--false"),new a,$("body").on("click",'.banner a[href^="#"]',(function(e){e.preventDefault();var t=$(this).attr("href"),i=$("#header").outerHeight();$("html, body").animate({scrollTop:$(t).offset().top-i},2e3)}))):($("body").removeClass("mobile_nav-fixed--true"),$("body").addClass("mobile_nav-fixed--false"));$("#header .cart_content").length<1&&$("#header .cart-container").append($(".header .cart_content").clone());let s=null;"redirect_cart"!==window.PXUTheme.theme_settings.cart_action&&($(".mini_cart").on("click ",(function(){const e=$(this).parent();e.hasClass("active_link")?t():i(e)})),$(".cart-container").on("mouseenter",(function(){const e=$(this);clearTimeout(s),i(e)})),$(".cart-container").on("mouseleave",(()=>{s=setTimeout((()=>t()),400)}))),$(".cart_content__continue-shopping").on("click",(()=>{t()}))},unload(){window.sticky_nav&&window.sticky_nav.destroy(),window.navigationDesktopManager.unload(),window.mobileMenuDrawer.unload(),$("body").off("
1click",".mobile_nav"),$("html").off("click"),$(".cart-container").off("mouseenter"),$(".cart-container").off("mouseleave"),$(".mini_cart").off("click"),$(".cart_content__continue-shopping").off("click"),$("body").off("click",'.banner a[href^="#"]'),$(".main-nav__wrapper.sticky_nav").remove()}};class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options={getTargets:()=>[],afterChange:()=>{},...t},this.content=e,this.targetHandle=this.content.dataset.meganavHandle,this.targets=this.options.getTargets({handle:this.targetHandle}),this.newMenuItems=[],this.targets.length&&(this.refTarget=this.targets[0],this.title=this.refTarget.querySelector("[data-nav-title]").innerHTML,this.url=this._getUrl(this.refTarget),this.nav=this.refTarget.closest("[data-nav]"),this.menuItemTemplate=this.nav.querySelector("[data-nav-parent-template]"),this.inject())}inject(){if(!this.targets.length)return;this._removeInjectedContent();const e=this.menuItemTemplate.content.firstElementChild.cloneNode(!0);e.querySelector("[data-meganav-target-container]").appendChild(this.content.cloneNode(!0)),e.querySelector("[data-nav-title]").innerHTML=this.title,this._updateHref(e,this.url),this.newMenuItems=Array.prototype.map.call(this.targets,(t=>{const i=e.cloneNode(!0);return t.replaceWith(i),i})),this.options.afterChange()}unload(){this._removeInjectedContent(),this.options.afterChange()}_updateHref(e,t){const i=e.querySelector("[data-href]");if(i)return void(i.dataset.href=t);const a=e.querySelector("a");a&&(a.href=t)}_getUrl(e){const t=e.querySelector("[data-href]");if(t)return t.dataset.href;const i=e.querySelector("a");return i?i.getAttribute("href"):""}_removeInjectedContent(){this.newMenuItems.forEach(((e,t)=>{e.replaceWith(this.targets[t])})),this.newMenuItems=[]}}window.meganavManager=new class{constructor(){this.meganavs=new Map}select(e){if(!this.meganavs.get(e))return;const{desktop:t}=this.meganavs.get(e);t.newMenuItems.forEach((e=>{window.navigationDesktopManager.onMeganavSelect(e)}))}deselect(){window.navigationDesktopManager.onMeganavDeselect()}add(e){e.querySelector("[data-meganav-mobile]")&&e.querySelector("[data-meganav-desktop]")&&this.meganavs.set(e,{mobile:new s(e.querySelector("[data-meganav-mobile]"),{getTargets:e=>{let{handle:t}=e;return document.querySelectorAll(`[data-meganav-mobile-target="${t}"]`)}}),desktop:new s(e.querySelector("[data-meganav-desktop]"),{getTargets:e=>{let{handle:t}=e;return document.querySelectorAll(`[data-meganav-desktop-target="${t}"]`)},afterChange:()=>window.navigationDesktopManager.initAll()})})}remove(e){const t=this.meganavs.get(e);t&&(t.mobile.unload(),t.desktop.unload(),this.meganavs.delete(e))}injectAll(){this.unload(),this._addAll();for(const[e,t]of this.meganavs)t.mobile.inject(),t.desktop.inject()}unload(){for(const[e,t]of this.meganavs)t.mobile.unload(),t.desktop.unload();this.meganavs.clear()}_addAll(){document.querySelectorAll(".shopify-section--mega-menu").forEach((e=>{this.meganavs.has(e)||this.add(e)}))}},window.map={init(){if($(".lazymap").length>0&&lazyframe(".lazymap"),$(".maps").hasClass("js-api-map")){const e=[];$(".map").each((function(t){e.push(this),e[t].sectionid=$(this).data("id"),e[t].address=$(this).data("address"),e[t].directions=$(this).data("directions-address"),e[t].zoom=$(this).data("zoom"),e[t].mapstyle=$(this).data("style"),e[t].showpin=$(this).data("pin"),e[t].apikey=$(this).data("api-key")})),$.each(e,(t=>{$.ajaxSetup({cache:!0}),$.getScript(`https://maps.googleapis.com/maps/api/js?key=${e[t].apikey}`).then((()=>{window.map.findLocation(e[t]),$.ajaxSetup({cache:!1})}))}))}},findLocation(e){let t,i;(new google.maps.Geocoder).geocode({address:e.dataset.address},((a,o)=>{o===google.maps.GeocoderStatus.OK?(t=a[0].geometry.location.lat(),i=a[0].geometry.location.lng(),window.map.initMap(t,i,e)):console.log(`Error:${o}`)}))},initMap(e,t,i){const a={lat:e,lng:t};let o=[];o="aubergine"===i.mapstyle?[{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"}
1]},{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"}]}]:"retro"===i.mapstyle?[{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"}]}]:"silver"===i.mapstyle?[{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"}]}]:"night"===i.mapstyle?[{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:"#172
163c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}]:[],$(".js-map-link").attr("href",`https://www.google.com/maps/place/${i.directions}/@${e},${t}`);const s={zoom:i.zoom,center:a,styles:o,disableDefaultUI:!1},n=new google.maps.Map(document.getElementById(i.sectionid),s);if(!0===i.showpin){new google.maps.Marker({position:a,map:n})}}},window.shoppableImage={init(){$("[data-shoppable-image-wrapper]").each(((e,t)=>{const i=t.querySelectorAll("[data-shoppable-image-block]");let a=t.querySelector("[data-shoppable-image]");if(i.length>1){const e=$(t),i={slideshowSpeed:1e3*e.data("slideshow-speed"),slideshowTextAnimation:e.data("slideshow-text-animation"),slideshowTransition:e.data("slideshow-transition")};if(!e.hasClass("flickity-enabled")){if(e.flickity({wrapAround:!0,cellAlign:"left",imagesLoaded:!0,prevNextButtons:!0,draggable:!0,arrowShape:window.arrowSize,pageDots:!0,autoPlay:i.slideshowSpeed,adaptiveHeight:!0}),t.querySelector(".shoppable-image__bottom-bar")){const i=t.querySelectorAll(".flickity-prev-next-button"),a=window.Flickity.data(e[0]).selectedElement.querySelector("[data-shoppable-image]");i.forEach((e=>$(e).appendTo(a))),e.on("change.flickity",(()=>{const t=window.Flickity.data(e[0]).selectedElement.querySelector("[data-shoppable-image]");i.forEach((e=>$(e).appendTo(t)))}))}if(""!==i.slideshowTextAnimation){const t=e.data("flickity");setTimeout((()=>{e.find(".gallery-cell:nth-child(1) [data-slideshow-caption-text]").addClass(`animated ${i.slideshowTextAnimation}`)}
1),400),e.on("select.flickity",(()=>{if(e.is(":visible")){const a=t.selectedIndex+1;setTimeout((()=>{e.find("[data-slideshow-caption-text]").removeClass(`animated ${i.slideshowTextAnimation}`),e.find(`.gallery-cell:nth-child(${a}) [data-slideshow-caption-text]`).addClass(`animated ${i.slideshowTextAnimation}`)}),400)}}))}if(window.PXUTheme.media_queries.medium.matches&&"fade"!==i.slideshowTransition){const t=e.data("flickity"),i=t.selectedIndex+1;e.find(`.gallery-cell:nth-child(${i}) [data-hotspot]`).each(((e,t)=>{this.repositionHotspotContent(t)})),e.on("settle.flickity",(()=>{const i=t.selectedIndex+1;e.find(`.gallery-cell:nth-child(${i}) [data-hotspot]`).each(((e,t)=>{this.repositionHotspotContent(t)}))}))}else this.repositionHotspotContentEls(a);e.on("settle.flickity",(()=>{a=window.Flickity.data(t).selectedElement,this.repositionHotspotContentEls(a)}));t.closest(".shopify-section--shoppable-image").classList.add("shopify-section--shoppable-image--slider-enabled")}}else this.repositionHotspotContentEls(a);const o=t.querySelectorAll("[data-interactive-element]");document.body.addEventListener("click",(e=>{const t=e.target.closest("[data-interactive-element]");o.forEach(((e,i)=>{const a=e.closest("[data-shoppable-image-block]");t&&e.dataset.hotspotId===t.dataset.hotspotId?(a.classList.add(e.dataset.hotspotId,`hotspot--${i+1}`),e.classList.add("has-active-state")):(a.classList.remove(e.dataset.hotspotId,`hotspot--${i+1}`),e.classList.remove("has-active-state"))}))})),window.addEventListener("resize",this.debounce((()=>{this.repositionHotspotContentEls(a)})))}))},repositionHotspotContent(e){const t=e.querySelector("[data-content-wrapper]"),i=t.querySelector("[data-content]"),a=e.closest("[data-shoppable-image]");t.style.transform="",t.style.top="",t.style.bottom="";const o=i.getBoundingClientRect(),s=a.getBoundingClientRect(),n=window.getComputedStyle(t).getPropertyValue("padding");o.top<s.top&&!window.PXUTheme.media_queries.mobile_and_tablet.matches&&(t.style.top=`-${n}`),o.bottom>s.bottom&&!window.PXUTheme.media_queries.mobile_and_tablet.matches&&(t.style.bottom=`-${n}`),o.right>s.width&&(t.style.transform="translateX(-100%)"),o.left<0&&(t.style.transform="translateX(0)")},repositionHotspotContentEls(e){e.querySelectorAll("[data-hotspot]").forEach((e=>this.repositionHotspotContent(e)))},debounce(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=null;return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];clearTimeout(i),i=setTimeout((()=>{e.apply(null,o)}),t)}},unload(e){const t=e.find("[data-shoppable-image-wrapper]");t.hasClass("flickity-enabled")&&t.flickity("destroy")}},window.accordion={init(){let e=0;const t=$(".accordion"),i=$(".faqAccordion > dt > button, .accordion > dt > a");$(".faqAccordion > dd, .accordion > dd").attr("aria-hidden",!0),i.attr("aria-expanded",!1),i.on("click activate",(function(){if(e)return!1;e=1;const t="false"===$(this).attr("aria-expanded");return $(this).attr("aria-expanded",t),$(this).parent().next().slideToggle((()=>{e=0})),$(this).parent().next().attr("aria-hidden",!t),!1})),i.on("keydown",(function(e){13===(e.keyCode||e.which)&&$(this).trigger("activate")})),t.each(((e,t)=>{const a=$(t);"open"===a.data("state")&&(a.find(i[0]).parent().next().slideToggle(),a.find(i[0]).attr("aria-expanded",!0))}))}};class n extends HTMLElement{static get shortcode(){return"product-cta"}constructor(){super(),this.attachShadow({mode:"open"}),this.events=[];const e=this.getAttribute("for"),t=e?document.querySelector(`#${e} [data-variants]`):null,i=this.getAttribute("variantid"),a=document.querySelector(this.getAttribute("appendto"));t&&i?(a&&a.appendChild(this),this._registerEvent({el:t,event:"change",listener:e=>this._onVariantChange(e,i)}),this._setVisible(t.value===this.variantId)):this._setVisible(!1)}connectedCallback(){const e=this.getAttribute("href")||"#",t=this.getAttribute("target"),i=document.createElement("style"),a=document.createElement("a"),o=document.createElement("slot");if(i.innerHTML="\n      a {\n        color: inherit;\n        cursor; inherit;\n        text-decoration: inherit;\n      }\n    ",a.href=e,a.target=t,a.appendChild(o),"_blank"===t){const e=document.createElement("span");e.classList.add("button-icon"),e.setAttribute("aria-label","(New window)"),e.innerHTML='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.81792 2.29812L5.68732 5.42884L6.57121 6.3127L9.70198 3.18183L9.70227 5.51933L10.9523 5.51917L10.9518 1.67302L10.9517 1.0481L10.3268 1.0481L6.48
1062 1.04815L6.48064 2.29815L8.81792 2.29812ZM1.67297 1.04817H1.04797V1.67317V10.327V10.952H1.67297H10.3268H10.9518V10.327V8.13026H9.70175V9.70195H2.29797V2.29817H3.83642V1.04817H1.67297Z" fill="currentColor"/></svg>',a.appendChild(e)}this.shadowRoot.append(i,a)}disconnectedCallback(){this.events.forEach((e=>{let{el:t,event:i,listener:a}=e;return t.removeEventListener(i,a)})),this.shadowRoot.innerHTML="",this._setVisible(!0)}_registerEvent(e){let{el:t,event:i,listener:a}=e;return this.events.push({el:t,event:i,listener:a}),t.addEventListener(i,a),{el:t,event:i,listener:a}}_setVisible(e){this.toggleAttribute("hidden",!e)}_onVariantChange(e,t){this._setVisible(e.currentTarget.value===t)}}customElements.define(n.shortcode,n)})();
2//# sourceMappingURL=sections.min.js.map?1780076892585

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.