1class Slider{constructor(){this.attr="data-slider",this.init()}init(){const eventsInit=["product-grid-updated","modal-open-slider-updated"],eventsUpdate=["product-card-color-swatches-loaded"];this.initSliderEvent(),eventsInit.forEach(event=>{document.addEventListener(event,()=>this.initSliderEvent())}),eventsUpdate.forEach(event=>{document.addEventListener(event,()=>this.updateSlider())})}initSliderEvent(){const sliders=document.querySelectorAll(`[${this.attr}]`);sliders.length&&sliders.forEach(slider=>{const observer=new IntersectionObserver(entries=>{entries.forEach(({isIntersecting})=>{isIntersecting&&(this.initSlider(slider),observer.unobserve(slider))})},{rootMargin:"250px"});observer.observe(slider)})}initSlider(slider){if(!Swiper)return;const config=JSON.parse(slider.getAttribute(this.attr)||"{}"),instance=new Swiper(slider,config),classes={begin:"slider-beginning",end:"slider-end"};instance.isBeginning&&slider.classList.add(classes.begin),instance.on("slideChange",()=>{instance.isBeginning?slider.classList.add(classes.begin):slider.classList.remove(classes.begin),instance.isEnd?slider.classList.add(classes.end):slider.classList.remove(classes.end)}),slider.swiperInstance=instance}updateSlider(){document.querySelectorAll(`[${this.attr}
1]`).forEach(slider=>{const instance=slider.swiperInstance;instance&&instance.update()})}}document.addEventListener("DOMContentLoaded",()=>new Slider); 2//# sourceMappingURL=/cdn/shop/t/2/assets/slider.js.map?v=155956996055452104401737532365
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.