1class sliderElement extends HTMLElement{constructor(){super(),this.sliderEle=this.querySelector(".swiper-slider")}connectedCallback(){if(!this.sliderEle)return;let sliderOptions=this.sliderEle.getAttribute("data-slider");sliderOptions=JSON.parse(sliderOptions);var thumbSlider=document.querySelector("."+this.sliderEle.getAttribute("data-nav"));if(this.sliderEle.hasAttribute("data-nav")){if(!thumbSlider)return;let thumbSliderOptions=thumbSlider.getAttribute("data-slider");thumbSliderOptions=JSON.parse(thumbSliderOptions),thumbSlider=new Swiper(thumbSlider,thumbSliderOptions),sliderOptions.thumbs={swiper:thumbSlider}}sliderOptions.on={init:event=>{event.el.classList.toggle("slider-active",event.virtualSize>event.size)}};let slider=new Swiper(this.sliderEle,sliderOptions);slider.on("resize",function(event){event.el.classList.toggle("slider-active",event.virtualSize>event.size)}),this.slideChangeEvt(slider)}slideChangeEvt(slider){slider.on("slideChange",event=>{let activeVideos=event.el.querySelectorAll(".custom-video-container.playing--video");activeVideos.length>0&&activeVideos.forEach(container=>{let video=container.querySelector("custom-video"),videoType=video.getAttribute("data-video-type"),videoEle=video.querySelector("video")||video.querySelector("iframe");videoType=="local"?videoEle.pause():videoType=="youtube"&&videoEle.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}),slider.on("slideChangeTransitionStart",event=>{const currentTarget=event.el;if(currentTarget.closest("[data-joola-slider]")){let activeSlide=currentTarget.querySelector(".swiper-slide-active");currentTarget.querySelector(".active")?.classList.remove("active"),activeSlide.classList.add("active")}})}}customElements.define("slider-element",sliderElement); 2//# sourceMappingURL=/cdn/shop/t/5/assets/us-slider-element.js.map?v=20524622362408870411742815113
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.