1customElements.get("stf-card")||customElements.define("stf-card",class extends HTMLElement{constructor(){super()}get video(){return this.querySelector("video-element")}connectedCallback(){this.video&&(this.addEventListener("mouseleave",this.handleMouseInteraction.bind(this,"leave")),this.addEventListener("mouseenter",this.handleMouseInteraction.bind(this,"enter")))}disconnectedCallback(){this.removeEventListener("mouseleave"),this.removeEventListener("mouseenter")}handleMouseInteraction(type,event){type==="enter"?(this.classList.add("is-hovering"),this.video.play()):(this.classList.remove("is-hovering"),this.video.pause())}}),customElements.get("shop-the-feed")||customElements.define("shop-the-feed",class extends HTMLElement{constructor(){super()}connectedCallback(){if(this.selectors={sliderWrapper:".shop-the-feed__items",nextEl:".swiper-button-next",prevEl:".swiper-button-prev",pagination:".swiper-pagination"},this.classes={grid:"f-grid",swiper:"swiper",swiperWrapper:"swiper-wrapper"},this.sectionId=this.dataset.sectionId,this.section=this.closest(`.section-${this.sectionId}`),this.sliderWrapper=this.querySelector(this.selectors.sliderWrapper),this.enableSlider=this.dataset.enableSlider==="true",this.items=parseInt(this.dataset.items),this.laptopItems=parseInt(this.dataset.laptopItems),this.tabletItems=parseInt(this.dataset.tabletItems),this.paginationType=this.dataset.paginationType||"bullets",this.sliderInstance=!1,!this.enableSlider)return;const mql=window.matchMedia(FoxTheme.config.mediaQueryMobile);mql.onchange=this.init.bind(this),this.init()}init(){FoxTheme.config.mqlMobile?this.destroySlider():this.initSlider()}initSlider(){if(typeof this.sliderInstance=="object")return;const columnGap=window.getComputedStyle(this.sliderWrapper).getPropertyValue("--f-column-gap"),spaceBetween=parseFloat(columnGap.replace("rem",""))*10;this.sliderOptions={slidesPerView:2,spaceBetween,navigation:{nextEl:this.section.querySelector(this.selectors.nextEl),prevEl:this.section.querySelector(this.selectors.prevEl)},pagination:{el:this.section.querySelector(this.selectors.pagination),type:this.paginationType},breakpoints:{768:{slidesPerView:this.tabletItems>3?3:this.tabletItems},1024:{slidesPerView:this.laptopItems>3?3:this.laptopItems},1280:{slidesPerView:this.items}},loop:!1,threshold:2,watchSlidesProgress:!0,mousewheel:{enabled:!0,forceToAxis:!0}},this.classList.add(this.classes.swiper),this.sliderWrapper.classList.remove(this.classes.grid),this.sliderWrapper.classList.add(this.classes.swiperWrapper),this.sliderInstance=new window.FoxTheme.Carousel(this,this.sliderOptions,[FoxTheme.Swiper.Mousewheel]),this.sliderInstance.init(),FoxTheme.a11y.getFocusableElements(this).forEach(element=>{element.addEventListener("focusin",()=>{const slide=element.closest(".swiper-slide");this.sliderInstance&&this.sliderInstance.slider.slideTo(this.sliderInstance.slider.slides.indexOf(slide))})}),Shopify.designMode&&typeof this.sliderInstance=="object"&&document.addEventListener("shopify:block:select",e=>{if(e.detail.sectionId!=this.sectionId)return;let{target}=e;const index=Number(target.dataset.index);this.sliderInstance.slider.slideTo(index)})}destroySlider(){this.classList.remove(this.classes.swiper),this.sliderWrapper.classList.remove(this.classes.swiperWrapper),this.sliderWrapper.classList.add(this.classes.grid),typeof this.sliderInstance=="object"&&(this.sliderInstance.slider.destroy(),this.sliderInstance=!1)}}); 2//# sourceMappingURL=/cdn/shop/t/99/assets/shop-the-feed.js.map?v=58511940582018556831768960927
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.