1import{r as s}from"./index-D8feyLDW.js";import{g as o}from"./media-queries-CokWIw5y.js";import{a}from"./at-breakpoint-change-B95XcKMz.js";import{C as n}from"./carousel-DHSMtN5D.js";import{P as c}from"./product-item-DcHXpwQK.js";import{i as d}from"./intersection-watcher-8W9i0j1n.js";import{d as l}from"./delay-offset-BbI2-Y8X.js";import{s as m}from"./shouldAnimate-Dkf8ta0P.js";import"./fluorescent-dom.es-w46pwioq.js";import"./evx.es-D_-Lbk8t.js";import"./cart-Dp1qr_mc.js";import"./storage-CVUx8WVm.js";import"./scroll-container-BwWxb4uN.js";const r={intro:".animation--section-introduction > *",items:".animation--item"},p=e=>{l(e,[r.intro,r.items]);const t=d(e);return{destroy(){t==null||t.destroy()}}};s("featured-collection-grid",{onLoad(){const{productsPerView:e,mobileProductsPerView:t}=this.container.dataset;this.events=[];const i=this.container.querySelectorAll(".featured-collection-grid__product");this.perView=parseInt(e,10),this.mobilePerView=i.length>parseInt(t,10)?parseInt(t,10)*1.05:parseInt(t,10),this.productItem=c(this.container),this.breakPointHandler=a(960,()=>{window.matchMedia(o("below-960")).matches?this._initCarousel():this.carousel.destroy()}),window.matchMedia(o("below-960")).matches&&this._initCarousel(),m(this.container)&&(this.animateFeaturedCollectionGrid=p(this.container))},_initCarousel(){this.carousel=n(this.container,{slidesPerView:this.mobilePerView,spaceBetween:12,breakpoints:{720:{spaceBetween:16,slidesPerView:this.perView===5?this.perView-1:this.perView}}});const e=[...this.container.querySelectorAll("[data-product-swatches-options-list]")];e.length&&e.forEach(t=>{t.addEventListener("touchstart",function(i){i.stopPropagation()},{passive:!1}),t.addEventListener("mousedown",function(i){i.stopPropagation()},{passive:!1})})},onUnload(){var e,t;(e=this.carousel)==null||e.destroy(),(t=this.animateFeaturedCollectionGrid)==null||t.destroy()}});
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.