1"use strict";(function(){if(!customElements.get("testimonials-section")){class TestimonialsSection extends HTMLElement{constructor(){super(),this.swiper=null,this.nextBtn=null,this.prevBtn=null}connectedCallback(){this.nextBtn=this.querySelector(".one-slide-per-page.swiper-button-next")||this.querySelector(".title-wrapper .swiper-button-next"),this.prevBtn=this.querySelector(".one-slide-per-page.swiper-button-prev")||this.querySelector(".title-wrapper .swiper-button-prev"),this.initSwiper(),this.setupExternalNavigation(),this.updateNavigationButtons()}setupExternalNavigation=()=>{!this.nextBtn||!this.prevBtn||(this.nextBtn.addEventListener("click",()=>{this.swiper?.slideNext(),this.updateNavigationButtons()}),this.prevBtn.addEventListener("click",()=>{this.swiper?.slidePrev(),this.updateNavigationButtons()}))};updateNavigationButtons=()=>{!this.swiper||!this.nextBtn||!this.prevBtn||(this.swiper.isBeginning&&!this.swiper.isEnd?(this.nextBtn.classList.remove("disabled"),this.prevBtn.classList.add("disabled")):this.swiper.isEnd&&!this.swiper.isBeginning?(this.prevBtn.classList.remove("disabled"),this.nextBtn.classList.add("disabled")):this.swiper.isEnd&&this.swiper.isBeginning?(this.prevBtn.classList.add("disabled"),this.nextBtn.classList.add("disabled")):(this.prevBtn.classList.remove("disabled"),this.nextBtn.classList.remove("disabled")))};initSwiper=()=>{if(this.slider=this.querySelector(".swiper"),!this.slider)return;let{autoplay,speed,changeSpeed,spaceBetween=16,spaceBetweenPc=16}=this.dataset;const speedNum=Number(speed),slideSpeed=Number.isFinite(speedNum)&&speedNum>0?speedNum:400,spaceMb=Number(spaceBetween)||16,spacePc=Number(spaceBetweenPc)||16,nextEl=this.querySelector(".title-wrapper .swiper-button-next"),prevEl=this.querySelector(".title-wrapper .swiper-button-prev"),swiperParams={speed:slideSpeed,slidesPerView:"auto",scrollbar:!0,spaceBetween:spaceMb,scrollbar:{el:".swiper-scrollbar"},navigation:nextEl&&prevEl?{nextEl,prevEl}:void 0,breakpoints:{750:{spaceBetween:spacePc}}};autoplay=="true"&&(swiperParams.autoplay={delay:Number(changeSpeed)||4e3}),this.swiper=new Swiper(this.slider,{...swiperParams,on:{slideChange:this.updateNavigationButtons,init:this.updateNavigationButtons,autoplay:()=>{this.updateNavigationButtons()}}})}}TestimonialsSection.prototype.swiperParams={},customElements.define("testimonials-section",TestimonialsSection)}})(); 2//# sourceMappingURL=/cdn/shop/t/7/assets/testimonials.js.map?v=183881799742610042401783780455
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.