1import{C as a,D as e,E as t,Gt as l,Lt as o,St as i,hn as p,it as u,q as s,tt as n,vt as d,w as r}from"./B8XHxhss.js";var y=["type","poster","aria-label","aria-hidden","autoplay","muted","width","height"],v=["src"],h=["textContent"],m={__name:"BaseHtmlAutoplayVideo",props:s({video:Object,muted:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},oncanplay:String,ariaLabel:String},{playState:{type:Boolean,default:!0},playStateModifiers:{}}),emits:["update:playState"],setup(s,{expose:m}){const c=s,b=d(s,"playState"),f=a(()=>c.autoplay&&b.value),S=o(null),L=()=>{const a=[];return c.muted&&a.push("this.muted = true"),f.value&&a.push("this.play()"),c.oncanplay&&a.push(c.oncanplay),a.join("; ")};function g(a){S.value&&(a&&S.value.paused?S.value.play():a||S.value.paused||S.value.pause())}return i(b,g),n(()=>{g(b.value)}),m({$el:S,playState:b}),(a,o)=>s.video?(u(),e("video",{key:0,ref_key:"$el",ref:S,class:"c-base-html-autoplay-video",type:[s.video?.type??"video",s.video?.extension??"mp4"].join("/"),poster:s.video?.posterUrl,"aria-label":s.ariaLabel,"aria-hidden":s.ariaLabel?null:"true",autoplay:l(f),muted:s.muted,width:s.video?.width,height:s.video?.height,loop:"",playsinline:"",oncanplay:L},[r("source",{src:s.video.url,type:"video/mp4"},null,8,v),s.ariaLabel?(u(),e("p",{key:0,textContent:p(s.ariaLabel)},null,8,h)):t("",!0)],8,y)):t("",!0)}};export{m as t};
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.