1import{d as w,al as f,$ as v,o as a,c as r,g as o,I as d,l as u,L as k,b7 as $,_}from"./BDr44Kmt.js";const g=["poster","src"],z=["src"],x=w({__name:"VideoEmbed",props:{type:{default:"raw"},id:{},autoplay:{type:Boolean},ratio:{},poster:{},width:{},height:{default:"80vh"},zoom:{}},setup(t){const e=t,p=u(()=>{if(e.ratio)return e.ratio;switch(e.type){case"raw":return;case"douyin":return"27 / 56";case"douyin-wide":return"1198 / 731";default:return"16 / 9"}}),s=u(()=>{switch(e.type){case"bilibili":return`https://player.bilibili.com/player.html?bvid=${e.id}&autoplay=${e.autoplay}`;case"bilibili-nano":return`https://www.bilibili.com/blackboard/newplayer.html?bvid=${e.id}&autoplay=${e.autoplay}`;case"youtube":return`https://www.youtube.com/embed/${e.id}?rel=0&disablekb=1&playsinline=1&autoplay=${e.autoplay}`;case"douyin":return`https://open.douyin.com/player/video?vid=${e.id}`;case"douyin-wide":return`https://open.douyin.com/player/video?vid=${e.id}`;case"tiktok":return`https://www.tiktok.com/embed/v3/${e.id}`;default:return e.id}}),y=f("video-player"),n=k(),c={douyin:.0031,"douyin-wide":.00134};function m(l){$(y,([i])=>{if(!i)return;const{width:b}=i.contentRect,h=c[l];n.value=b*h})}return v(()=>{e.type in c&&m(e.type)}),(l,i)=>(a(),r("div",{ref:"video-player",class:"video",style:d({aspectRatio:o(p),maxWidth:t.width,maxHeight:t.height})},[t.type==="raw"?(a(),r("video",{key:0,poster:t.poster,src:o(s),controls:""},null,8,g)):(a(),r("iframe",{key:1,src:o(s),style:d({zoom:o(n)}),scrolling:"no",loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture"},null,12,z))],4))}}),F=Object.assign(_(x,[["__scopeId","data-v-37c756b0"]]),{__name:"VideoEmbed"});export{F 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.