1import{y as h,l as m,n as b,c as n,o as d,a as i,b as _,w as v,j as f,v as y,s as g,t as p}from"./entry.d3937ffe.js";import{_ as k}from"./_plugin-vue_export-helper.c27b6911.js";const x=h({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(l,{slots:e,attrs:t}){const r=m(!1);return b(()=>{r.value=!0}),a=>{var u;if(r.value)return(u=e.default)==null?void 0:u.call(e);const o=e.fallback||e.placeholder;if(o)return o();const s=a.fallback||a.placeholder||"",c=a.fallbackTag||a.placeholderTag||"span";return n(c,t,s)}}}),w={props:{code:{type:String,default:null},duration:{type:String,default:null},poster:{type:String,default:null},title:{type:String,default:null},link:{type:String,default:null,required:!0}},data(){return{active:!1,isKeyboard:null}},mounted(){this.setTabindex(!0)},methods:{playVideo(){this.setSrc(),this.setTabindex(),setTimeout(()=>{this.active=!0},500),this.isKeyboard===!0&&setTimeout(()=>{this.$refs.videoWrapper.focus()},500)},setSrc(){const l=this.$refs.videoWrapper.querySelector("iframe");if(l){const e=l.src;l.setAttribute("src",`${e}&autoplay=1`)}},setTabindex(l){const e=this.$refs.videoWrapper.querySelector("iframe");e&&(l?e.setAttribute("tabindex","-1"):(e.removeAttribute("tabindex"),this.$refs.videoWrapper.setAttribute("tabindex","0")))}}},T={ref:"videoWrapper",class:"flex flex-col relative overflow-hidden ratio-video bg-black"},S=["innerHTML"],C=["href"],V=["src"],A=i("div",{class:"absolute top-0 left-0 w-full h-full bg-black opacity-0 hover:opacity-20 transition-opacity duration-500"},null,-1),K=i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-6 left-6 md:bottom-8 md:left-8 w-[4rem] md:w-[5rem] h-auto"},[i("path",{d:"M2 2L14 8L2 14V2Z",fill:"white"})],-1),M={class:"f-small block mt-2 text-black dark:text-white"};function W(l,e,t,r,a,o){const s=x;return d(),n("div",null,[i("div",T,[_(s,null,{default:v(()=>[t.code?(d(),n("div",{key:0,innerHTML:t.code},null,8,S)):f("",!0)]),_:1}),i("a",{href:t.link,class:y(["video-link absolute top-0 left-0 w-full h-full transition-opacity duration-500",{"opacity-0 pointer-events-none":a.active,"opacity-100":!a.active}]),onKeydown:e[0]||(e[0]=c=>a.isKeyboard=!0),onClick:e[1]||(e[1]=g(c=>(o.playVideo(),a.isKeyboard=!1),["prevent"]))},[t.poster?(d(),n("img",{key:0,loading:"lazy",src:t.poster,class:"absolute top-0 left-0 bottom-0 right-0"},null,8,V)):f("",!0),A,K],42,C)],512),i("span",M,p(t.title)+"â"+p(t.duration),1)])}const q=k(w,[["render",W]]);export{q 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.