1if(!customElements.get("theme-gallery")){class ThemeGallery extends HTMLElement{constructor(){super()}connectedCallback(){this.galleryVideoList=Array.from(this.querySelectorAll(".gallery--item .gallery__video")),this.hoverPlayList=this.galleryVideoList.filter(item=>item.classList.contains("hover-play")&&item),this.autoPlayList=this.galleryVideoList.filter(item=>!item.classList.contains("hover-play")&&item),this.autoPlayList.forEach((item,i)=>{item.querySelector("video").play()}),this.setHoverPlayList()}setHoverPlayList(){this.hoverPlayList.forEach((item,i)=>{item.querySelector("video").currentTime=.1,item.parentElement.addEventListener("mouseenter",()=>this.playVideo(item)),item.parentElement.addEventListener("mouseleave",()=>this.pauseVideo(item))})}playVideo(videoContainer){videoContainer.querySelector("video").play()}pauseVideo(videoContainer){videoContainer.querySelector("video").pause()}}customElements.define("theme-gallery",ThemeGallery)} 2//# sourceMappingURL=/cdn/shop/t/169/assets/gallery.js.map?v=58756531785782864281790794319
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.