1import{breakpoints}from"@theme/constants";import{getAttributeValue}from"@theme/dom";import{HTMLCustomElement}from"@theme/html-custom-element";class StoreHeroImages extends HTMLCustomElement{animation={duration:getAttributeValue(this,"speed",36e3),easing:transition=>transition};async connectedCallback(){super.connectedCallback&&super.connectedCallback();const{default:KeenSlider}=await import("keen-slider");this.slider=new KeenSlider(this,this.getOptions())}getOptions(){return{loop:!0,renderMode:"performance",drag:!0,mode:"free",selector:Array.from(this.children),slides:{perView:this.children.length===1?1:1.4},breakpoints:{[`(min-width: ${breakpoints.large}px)`]:{slides:{perView:getAttributeValue(this,"is-narrow",!1)?1.3:2.4}}},created:(slider=>{this.paused=!getAttributeValue(this,"autoplay",!0),!this.paused&&this.startAutoSlide(slider)}).bind(this),updated:(slider=>{!this.paused&&slider.moveToIdx(slider.track.details.abs+5,!0,this.animation)}).bind(this),animationEnded:(slider=>{!this.paused&&slider.moveToIdx(slider.track.details.abs+5,!0,this.animation)}).bind(this)}}startAutoSlide(slider){slider.moveToIdx(5,!0,this.animation)}}customElements.get("store-hero-images")||customElements.define("store-hero-images",StoreHeroImages); 2//# sourceMappingURL=/cdn/shop/t/221/assets/store-hero.js.map?v=92004603974114049841778840469
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.