1import{_ as b,a as B,b as V,c as C}from"./DNFLAuj6.js";import{m as z,E as w,v as x,c as r,F as e,G as t,M as s,y as o}from"./ClnuHS-n.js";const E={class:"video-content"},M=["autoplay","playsinline","loop","muted","poster"],F=["src"],G={class:"video-content__control-buttons-wrapper"},N={key:0,alt:"play",src:b,loading:"lazy"},O={key:1,alt:"pause",src:B,loading:"lazy"},P={key:0,alt:"volume off",src:V,loading:"lazy"},R={key:1,alt:"volume on",src:C,loading:"lazy"},A=z({__name:"VideoContent",props:{muted:{type:Boolean,default:()=>!0},autoplay:{type:Boolean,default:()=>!0},loop:{type:Boolean,default:()=>!0},source:{},poster:{}},setup(y){const i=y,{autoplay:d,muted:f,source:_,loop:g,poster:a}=w(i),h=x(()=>{var u,p,v;return a!=null&&a.value?a.value:(v=(p=(u=_.value)==null?void 0:u.split("/"))==null?void 0:p.pop())==null?void 0:v.split("?").shift()}),l=r(),n=r(!i.autoplay),c=r(i.muted),m=()=>{n.value?l.value.play():l.value.pause(),n.value=!n.value},k=()=>{l.value.muted=!c.value,c.value=!c.value};return(u,p)=>(e(),t("div",E,[s("video",{ref_key:"video",ref:l,autoplay:o(d),playsinline:o(d),loop:o(g),muted:o(f),poster:o(h),class:"video-content__video",preload:"metadata",onClick:m},[s("source",{src:o(_),type:"video/mp4"},null,8,F)],8,M),s("div",G,[s("button",{class:"video-content__control-button",onClick:m},[o(n)?(e(),t("img",N)):(e(),t("img",O))]),s("button",{class:"video-content__control-button",onClick:k},[o(c)?(e(),t("img",P)):(e(),t("img",R))])])]))}});export{A as _};
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.