1class VideoCarousel extends SiteCarousel{constructor(){super(),this.videos=null}connectedCallback(){super.connectedCallback(),this.initActiveVideo(),this.setupVideoPlayback(),this.setupChangeEvent()}initActiveVideo(){const videos=this.querySelectorAll("video");if(!videos.length)return;const initialIndex=window.innerWidth>=1024&&videos.length>=3?1:0,video=videos[initialIndex];video&&(video.style.opacity="1",video.play())}setupVideoPlayback(){this.querySelectorAll("video").forEach(video=>{video.addEventListener("mouseover",()=>{this.pauseAllVideos(),video.style.opacity="1",video.play()})})}setupChangeEvent(){const videos=this.querySelectorAll("video");this.swiper.on("slideChange",()=>{const match=videos[this.swiper.realIndex];match&&(this.pauseAllVideos(),match.style.opacity="1",match.play())})}pauseAllVideos(){this.querySelectorAll("video").forEach(v=>{v.style.opacity="",v.pause()})}}customElements.define("video-carousel",VideoCarousel); 2//# sourceMappingURL=/cdn/shop/t/243/assets/section-video-carousel.js.map?v=36599146001284866561775571312
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.