window.theme=window.theme||{},theme.Sections=function(){this.constructors={},this.instances=[],document.addEventListener("shopify:section:load",this._onSectionLoad.bind(this)),document.addEventListener("shopify:section:unload",this._onSectionUnload.bind(this)),document.addEventListener("shopify:section:select",this._onSelect.bind(this)),document.addEventListener("shopify:section:deselect",this._onDeselect.bind(this)),document.addEventListener("shopify:block:select",this._onBlockSelect.bind(this)),document.addEventListener("shopify:block:deselect",this._onBlockDeselect.bind(this))},theme.Sections.prototype=Object.assign({},theme.Sections.prototype,{_createInstance:function(container,constructor){var id=container.getAttribute("data-section-id"),type=container.getAttribute("data-section-type");if(constructor=constructor||this.constructors[type],!(typeof constructor>"u")){var instance=Object.assign(new constructor(container),{id,type,container});this.instances.push(instance)}},_onSectionLoad:function(evt){var container=document.querySelector('[data-section-id="'+evt.detail.sectionId+'"]');container&&this._createInstance(container)},_onSectionUnload:function(evt){this.instances=this.instances.filter(function(instance){var isEventInstance=instance.id===evt.detail.sectionId;return isEventInstance&&typeof instance.onUnload=="function"&&instance.onUnload(evt),!isEventInstance})},_onSelect:function(evt){var instance=this.instances.find(function(instance2){return instance2.id===evt.detail.sectionId});typeof instance<"u"&&typeof instance.onSelect=="function"&&instance.onSelect(evt)},_onDeselect:function(evt){var instance=this.instances.find(function(instance2){return instance2.id===evt.detail.sectionId});typeof instance<"u"&&typeof instance.onDeselect=="function"&&instance.onDeselect(evt)},_onBlockSelect:function(evt){var instance=this.instances.find(function(instance2){return instance2.id===evt.detail.sectionId});typeof instance<"u"&&typeof instance.onBlockSelect=="function"&&instance.onBlockSelect(evt)},_onBlockDeselect:function(evt){var instance=this.instances.find(function(instance2){return instance2.id===evt.detail.sectionId});typeof instance<"u"&&typeof instance.onBlockDeselect=="function"&&instance.onBlockDeselect(evt)},register:function(type,constructor){this.constructors[type]=constructor,document.querySelectorAll('[data-section-type="'+type+'"]').forEach(function(container){this._createInstance(container,constructor)}.bind(this))}}),theme.collectionSlider=function(){function sliderProduct(e){let sliderContainer="",extraLargeDesktopShow=4,largeDesktopShow=3,tabletShow=3,mobileShow=2,sliderAutoplay=e.dataset.autoplay,loopSelector=e.dataset.sliderLoop,loopInit=!1,autoPlayValue=!1,autoPlayTime=parseInt(e.dataset.autoplayTime);sliderAutoplay=="true"&&(autoPlayValue={delay:autoPlayTime}),loopSelector=="true"&&(loopInit=!0),e.dataset.sliderEnable==="true"?(sliderContainer=e.querySelector(".productSlider"),extraLargeDesktopShow=parseInt(e.dataset.showExtraLarge),mobileShow=parseInt(e.dataset.showMobile),typeof e.dataset.showTablet<"u"?tabletShow=e.dataset.showTablet:tabletShow=extraLargeDesktopShow):sliderContainer=!1;var featuredCollection=new Swiper(sliderContainer,{loop:!0,slidesPerView:mobileShow,spaceBetween:20,autoplay:autoPlayValue,pagination:{el:e.querySelector(".swiper-pagination"),clickable:!0,type:"fraction"},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},breakpoints:{640:{slidesPerView:mobileShow},750:{slidesPerView:tabletShow},992:{slidesPerView:extraLargeDesktopShow}}});sliderContainer&&sliderAutoplay=="true"&&(sliderContainer.addEventListener("mouseenter",e2=>{featuredCollection.autoplay.stop()}),sliderContainer.addEventListener("mouseleave",e2=>{featuredCollection.autoplay.start()}));const slideThumbHeight=()=>{const proudctThumbnails=e.querySelectorAll(".card--client-height");if(proudctThumbnails.length>0){const productThumbnailHeight=proudctThumbnails[0];e.style.setProperty("--slider-navigation-top-offset",`${productThumbnailHeight.clientHeight/2}px`)}};slideThumbHeight(),window.addEventListener("resize",()=>{slideThumbHeight()})}return sliderProduct}(),document.addEventListener("DOMContentLoaded",function(){let sections=new theme.Sections,headerSearchModule=new theme.Sections,headerCartModule=new theme.Sections,headerStickyModule=new theme.Sections,headerMainMenu=new theme.Sections;sections.register("announcement-bar",theme.announcement),sections.register("header",theme.headerSection),headerSearchModule.register("header",theme.headerSearch),headerCartModule.register("header",theme.CartDrawerActions),headerStickyModule.register("header",theme.headerSticky),headerMainMenu.register("header",theme.headerMainMenuModule),sections.register("footer",theme.footerSection),sections.register("slideShow",theme.SlideShow),sections.register("collection-product",theme.collectionProduct),sections.register("product-slider",theme.collectionSlider),sections.register("accordion",theme.accordion),sections.register("blog",theme.blog),sections.register("lookbook",theme.lookbookSlider),sections.register("timeline",theme.timelineSlider)}); //# sourceMappingURL=/cdn/shop/t/2/assets/custom.js.map?v=81241783025885445871712183446