1import{d as h,M as r,l as b,$ as k,s as B,b as l,v as u,u as g,D as f,B as R,m as y,K as w,J as m,o as s,e as D}from"./RVtg6UMd.js";import"./BfsisZwU.js";import"./yi-kIxl6.js";const C={key:0,class:"video-wrapper"},I=["src"],V={key:2},_=h({__name:"VideoHandler",props:{video:{default:void 0},lazy:{type:Boolean,default:!0},fit:{default:"cover"},pixelReveal:{type:Boolean,default:!0}},emits:["loaded"],setup(e,{expose:x,emit:p}){const o=e,z=p,a=w("video"),i=r(!o.lazy),d=r(!1);if(o.video&&o.video.url){let t;b(()=>{t=new IntersectionObserver(v=>{v.forEach(n=>{d.value=n.isIntersecting})}),t.observe(a.value)}),k(()=>{t.unobserve(a.value)}),B([a,i,d],()=>{a.value&&i.value&&(d.value?a.value.play():a.value.pause())})}return x({handleLoad:()=>{o.lazy&&(i.value=!0,z("loaded"))}}),(t,v)=>{const n=m("lazy-load"),c=m("pixel-reveal");return e.video&&e.video.url?(s(),l("div",C,[e.lazy?u((s(),l("video",{key:e.video._ref?e.video._ref+"-lazy":void 0,ref:"video",autoplay:"",loop:"",playsinline:"",muted:"",class:f(["lazy",e.fit])},null,2)),[[n,{src:e.video.url}],[c,{active:e.pixelReveal,ready:g(i)}]]):u((s(),l("video",{key:e.video._ref??void 0,ref:"video",src:e.video.url,autoplay:"",loop:"",playsinline:"",muted:"",class:f(e.fit)},null,10,I)),[[c,e.pixelReveal]]),e.video.caption?(s(),l("figcaption",V,R(e.video.caption),1)):y("",!0)])):y("",!0)}}}),M=Object.assign(D(_,[["__scopeId","data-v-c75a810c"]]),{__name:"VideoHandler"});export{M as default};
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.