1import Swiper from"vendor.swiper";class SvAnnouncementBarCarousel extends HTMLElement{connectedCallback(){const swiperEl=this.querySelector(".announcement-bar__swiper");if(!swiperEl)return;if(swiperEl.querySelectorAll(".swiper-slide").length<=1){this.querySelectorAll(".announcement-bar__nav").forEach(btn=>{btn.hidden=!0});return}const prev=this.querySelector(".nav-button--previous"),next=this.querySelector(".nav-button--next"),autoplayEnabled=this.dataset.autoplay==="true",delay=parseInt(this.dataset.autoplayDelay||"8000",10)||8e3;this.swiper=new Swiper(swiperEl,{loop:!0,slidesPerView:1,speed:400,autoHeight:!0,autoplay:autoplayEnabled?{delay,disableOnInteraction:!1,pauseOnMouseEnter:!0}:!1,navigation:prev&&next?{prevEl:prev,nextEl:next}:void 0})}disconnectedCallback(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)}}customElements.define("sv-announcement-bar-carousel",SvAnnouncementBarCarousel); 2//# sourceMappingURL=/cdn/shop/t/63/assets/section.sv-announcement-bar.js.map?v=36497160103620876211790539895
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.