1var d=Object.defineProperty;var v=(s,i,e)=>i in s?d(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e;var t=(s,i,e)=>v(s,typeof i!="symbol"?i+"":i,e);import{i as a}from"./component-manager.modern-D6dkbpDa.js";import{i as r}from"./animations-DiDraIfW.js";import"./index-B_r9C59b.js";const n=class n extends HTMLElement{constructor(){super();t(this,"$video");t(this,"isInview");t(this,"onInview",e=>{e.detail.way==="enter"&&!r.get()?(this.isInview=!0,this.play()):(this.isInview=!1,this.pause())});this.isInview=!1,this.$video=this.querySelector("video")}connectedCallback(){this.bindEvents()}disconnectedCallback(){this.unbindEvents()}bindEvents(){window.addEventListener(`${n.EVENTS.INVIEW}-${this.id}`,this.onInview)}unbindEvents(){window.removeEventListener(`${n.EVENTS.INVIEW}-${this.id}`,this.onInview),this.pause()}play(){!this.$video||!this.$video.paused||this.$video.play().catch(e=>{console.warn("InlineVideo: Error playing video:",e)})}pause(){!this.$video||this.$video.paused||this.$video.pause()}};t(n,"EVENTS",{INVIEW:"inline-video-inview"});let o=n;customElements.define("c-inline-video",a(o,"InlineVideo"));
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.