1import KeenSlider from"https://cdn.skypack.dev/[email protected]";class SearchPromotionsCarousel extends HTMLElement{constructor(){super(),this.slidesEl=this.querySelector('[data-el="search-promotions-carousel.slides"]'),this.slideEls=this.querySelectorAll('[data-el="search-promotions-carousel.slide"]'),this.progressEl=this.querySelector('[data-el="search-promotions-carousel.progress"]'),this.arrowNextEls=this.querySelectorAll('[data-el="search-promotions-carousel.controlnext"]'),this.arrowPrevEls=this.querySelectorAll('[data-el="search-promotions-carousel.controlprevious"]'),!(this.slideEls.length<2)&&(window.BAO.eventBus.addEventListener(window.BAO.EVENTS.SEARCH_TAB.OPENED,()=>{this.carousel=this.initialiseCarousel()}),this.arrowNextEls.forEach(arrowNextEl=>{arrowNextEl.addEventListener("click",this.changeCarousel.bind(this))}),this.arrowPrevEls.forEach(arrowPrevEl=>{arrowPrevEl.addEventListener("click",this.changeCarousel.bind(this))}))}initialiseCarousel(){return new KeenSlider(this.slidesEl,{duration:2500,loop:!1,mode:"snap",slides:".car-Carousel_Slide",slidesPerView:1.25,spacing:5,breakpoints:{"(min-width: 768px)":{loop:!1,mode:"snap",spacing:5,slidesPerView:1.5},"(min-width: 900px)":{loop:!1,mode:"snap",spacing:12,slidesPerView:3}},move:instance=>{if(this.slideEls.forEach((slide,index)=>{slide.setAttribute("aria-hidden",index!==instance.details().relativeSlide)}),this.progressEl){const progressTrack=instance.details().progressTrack,movementPercentage=(progressTrack>=1?1:progressTrack)*100;this.progressEl.style.setProperty("--progress",`${movementPercentage}%`)}}})}changeCarousel(e){e.currentTarget.dataset.direction==="previous"?this.carousel.prev():this.carousel.next()}}customElements.define("search-promotions-carousel",SearchPromotionsCarousel); 2//# sourceMappingURL=/cdn/shop/t/121/assets/search-content-promotions-carousel.js.map?v=90494449718839834161778665755
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.