1document.addEventListener("alpine:init",()=>{Alpine.data("Theme_Slideshow",({autoplay=!1,autoplayInterval=null,mode="slideshow",gap=null,onlyIfNeeded=!1})=>({autoplay,autoplayInterval,playing:!1,splide:null,rate:0,mode,gap,onlyIfNeeded,maxLgBreakpointMQL:window.matchMedia("(max-width: 1023px)"),init(){if(typeof Splide>"u"){console.error("slideshows.js requires a Splide object to be defined in the global scope");return}this.initSplide(),this.onlyIfNeeded&&(this.destroyOrInitIfNeeded(),this.maxLgBreakpointMQL.addEventListener("change",e=>{this.destroyOrInitIfNeeded()})),Shopify.designMode&&this._setUpDesignModeHandlers(),document.addEventListener("dev:hotreloadmutation",async()=>{Shopify.designMode||(this.splide.destroy(),await this.$nextTick(),this.initSplide())})},initSplide(){const options={arrows:!0,pagination:!0,rewind:!0,speed:600,start:parseInt(this.$root.dataset.start,10)-1||0,interval:this.autoplayInterval,autoplay:this.autoplay,drag:!this.autoplay};this.mode==="carousel"&&(options.autoWidth=!0),this.gap&&(options.gap=this.gap),this.splide=new Splide(this.$root,options),options.autoplay&&(this.splide.on("autoplay:play",()=>{this.playing=!0}),this.splide.on("autoplay:pause",()=>{this.playing=!1}),this.splide.on("autoplay:playing",rate=>{this.rate=rate})),this.splide.mount()},destroyOrInitIfNeeded(){const slideEls=Array.from(this.$root.querySelectorAll(".splide__slide")),totalSlidesWidth=slideEls.reduce((totalWidth,slideEl)=>totalWidth+slideEl.getBoundingClientRect().width,0),totalGridlinesWidth=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gridline-width"))*(slideEls.length-1);totalSlidesWidth+totalGridlinesWidth<=this.$root.getBoundingClientRect().width?splideIsNotDestroyed(this.splide)&&this.splide.destroy():splideIsNotDestroyed(this.splide)||this.initSplide()},_setUpDesignModeHandlers(){this.$root.addEventListener("slideshow-go",e=>{e.detail&&this.splide.go(parseInt(e.detail,10))})}}))}); 2//# sourceMappingURL=/cdn/shop/t/32/assets/slideshows.js.map?v=89574933825682408761780319280
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.