1const{getElement,viewportSize}=window.BAO.Utils;class LazyVideo extends window.BAO.CustomElement(){static get styles(){return` 2 :host { 3 display: block; 4 5 opacity: 0; 6 7 transition: opacity 1s ease; 8 } 9 :host([loaded]) { 10 opacity: 1; 11 } 12 `}connectedCallback(){super.connectedCallback(),this.video=getElement("video",{context:this}),this.observer=new IntersectionObserver(this.onEntry.bind(this),{threshold:0}),this.observer.observe(this.video)}onEntry([entry],observer){if(entry.isIntersecting){this.video.dataset?.poster&&this.video.setAttribute("poster",this.video.dataset.poster);for(const source in this.video.children){const videoSource=this.video.children[source];typeof videoSource.tagName=="string"&&videoSource.tagName==="SOURCE"&&(videoSource.src=videoSource.dataset.src)}this.video.load(),observer.unobserve(this.video),this.setAttribute("loaded",""),!(viewportSize()!=="xs"||this.video.hasAttribute("autoplay")===!1)&&this.video.paused&&document.addEventListener("touchstart",()=>{this.video.paused&&this.video.play()})}}}customElements.get("lazy-video")||customElements.define("lazy-video",LazyVideo); 13//# sourceMappingURL=/cdn/shop/t/164/assets/lazy-video.js.map?v=11436847360894840691790241172
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.