1(()=>{class NativeVideo extends HTMLElement{constructor(){super()}connectedCallback(){this.overlayDesktop=this.querySelector('[data-selector="native-video-overlay"]'),this.playButtonDesktop=this.querySelector('[data-selector="native-video-play-button"]'),this.videoDesktop=this.querySelector('[data-selector="native-video"]'),this.overlayMobile=this.querySelector('[data-selector="native-video-overlay-mobile"]'),this.playButtonMobile=this.querySelector('[data-selector="native-video-play-button-mobile"]'),this.videoMobile=this.querySelector('[data-selector="native-video-mobile"]'),this.coverImage=this.querySelector(".video--video__static-image"),!(!this.overlayDesktop||!this.playButtonDesktop||!this.videoDesktop)&&this.attachEvents()}attachEvents(){this.playButtonDesktop.addEventListener("click",this.playVideo.bind(this)),this.playButtonMobile&&this.playButtonMobile.addEventListener("click",this.playVideo.bind(this)),this.overlayDesktop.addEventListener("click",this.playVideo.bind(this)),this.overlayMobile&&this.overlayMobile.addEventListener("click",this.playVideo.bind(this)),this.playButtonDesktop.addEventListener("keydown",event=>{event.key==="Enter"&&this.playVideo()}),this.playButtonMobile&&this.playButtonMobile.addEventListener("keydown",event=>{event.key==="Enter"&&this.playVideo()})}playVideo(){this.isMobile?this.isMobile&&!this.overlayMobile&&!this.playButtonMobile&&!this.videoMobile?(this.overlayDesktop.style.display="none",this.playButtonDesktop.style.display="none",this.videoDesktop.setAttribute("controls","true"),this.videoDesktop.play()):this.isMobile&&this.overlayMobile&&this.playButtonMobile&&this.videoMobile&&(this.overlayMobile.style.display="none",this.playButtonMobile.style.display="none",this.videoMobile.setAttribute("controls","true"),this.videoMobile.play()):(this.overlayDesktop.style.display="none",this.playButtonDesktop.style.display="none",this.videoDesktop.setAttribute("controls","true"),this.videoDesktop.play()),this.coverImage&&(this.coverImage.style.display="none")}get isMobile(){return window.matchMedia("screen and (max-width: 767px)").matches}}customElements.get("native-video")||customElements.define("native-video",NativeVideo)})(); 2//# sourceMappingURL=/cdn/shop/t/41/assets/component-native-video.js.map?v=66886407797025266771750307218
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.