1import{j as p,k as g,m as _,ai as T,a as n,o as d,b as c,v as k,e as l,t as b,_ as P}from"./B1MdaKg5.js";const V={class:"video-container"},Y={class:"videos-card-text"},h=p({__name:"VideoCard",props:{video:{type:Object,required:!0}},emits:["loadVideo"],setup(o,{emit:u}){const m=o,y=u,s=g(null);let a;const r=()=>new Promise(t=>{if(window.YT&&window.YT.Player)t(window.YT);else{window.onYouTubeIframeAPIReady=()=>{t(window.YT)};const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";const i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(e,i)}}),v=()=>{a=new YT.Player(s.value,{height:"194",width:"344",videoId:m.video.video_code,events:{onReady:w}})},w=()=>{a.playVideo()};_(async()=>{await r()}),T(()=>{a&&a.destroy()});const f=async t=>{y("loadVideo",t),await r(),v()};return(t,e)=>(d(),n("div",V,[o.video.isLoaded?c("",!0):(d(),n("div",{key:0,onClick:e[0]||(e[0]=i=>f(o.video.id)),class:"videos-card",style:k({backgroundImage:`url(https://img.youtube.com/vi/${o.video.video_code}/hqdefault.jpg)`})},[e[1]||(e[1]=l("div",{class:"shade"},null,-1)),l("div",Y,b(o.video.title),1)],4)),o.video.isLoaded?(d(),n("div",{key:1,ref_key:"playerContainer",ref:s},null,512)):c("",!0)]))}}),C=P(h,[["__scopeId","data-v-a06f3c0c"]]);export{C 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.