import{u as i}from"./A1_iyK-1.js";import{d as m,e as c,h as o,f as p,g as n,j as d}from"./DWcgPz8O.js";const f=["controls","autoplay","muted","loop","title","poster","playsinline"],h=["src","type"],B=["src","type"],b=m({__name:"SysVideo",props:{controls:{type:Boolean},autoplay:{type:Boolean},muted:{type:Boolean},loop:{type:Boolean},title:{},poster:{},src:{},srcMobile:{},type:{}},setup(u){const r=e=>{if(!(e!=null&&e.length))return"";const t=new URL(e);return t.src||(t.src="t=0.001"),t.href},s=u,a=c(()=>r(s.src)),l=c(()=>s.srcMobile?r(s.srcMobile):""),{isMaxMD:y}=i();return(e,t)=>o(a)?(p(),n("video",{key:0,class:"w-full aspect-auto",controls:e.controls,autoplay:e.autoplay,muted:e.muted,loop:e.loop,title:e.title,poster:e.poster,playsinline:e.autoplay,preload:"metadata"},[o(l)&&o(y)?(p(),n("source",{key:0,src:o(l),type:e.type},null,8,h)):(p(),n("source",{key:1,src:o(a),type:e.type},null,8,B))],8,f)):d("",!0)}});export{b as _};