1(()=>{if(customElements.get('products-carousel')){return} 2class ProductsCarousel extends HTMLElement{constructor(){super();this.slider=null;this.options={}} 3connectedCallback(){this.initSlider()} 4initSlider(){if(!this.querySelector('[data-slider]'))return;this.options={navigation:{prevEl:this.querySelector('.swiper-arrow--prev'),nextEl:this.querySelector('.swiper-arrow--next'),},slidesPerView:1,spaceBetween:40,breakpoints:{750:{slidesPerView:2,},990:{slidesPerView:3,},},};if(this.hasAttribute('data-autoplay')){this.options.autoplay={delay:this.dataset.autoplaySpeed,}} 5this.slider=new Swiper(this.querySelector('[data-slider]'),this.options,)}} 6customElements.define('products-carousel',ProductsCarousel)})()
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.