1import v from"./CUQHcvjt.js";import b from"./4CtazARf.js";import w from"./wzKr1fUz.js";import{u as f}from"./DV8-RZ0P.js";import{r as g,c,d as o,o as t,f as r,e as a,E as _,q as x,g as k}from"./FTaPbxLM.js";import"./D_WVsykS.js";import"./B9hwvYFO.js";import"./BzVpgML3.js";const I={key:0,class:"youtube-container relative h-0 max-w-full overflow-hidden bg-black pb-[56.25%]"},B={class:"play-button absolute left-1/2 top-1/2 h-[48px] w-[68px] -translate-x-1/2 -translate-y-1/2"},V=["src"],L={__name:"BaseVideo",props:{youtubeId:{type:String,required:!0},placeholderImage:{type:Array,default:()=>[]}},setup(n){const e=n,{marketingAccepted:s,acceptCategory:u}=f(),l=g(!1),p=e.placeholderImage?"1":"0",d=()=>{l.value=!0},m=()=>{u("marketing"),l.value=!0};return(C,z)=>{const i=v,h=b,y=w;return e.youtubeId?(t(),c("div",I,[a(s)?e.placeholderImage&&!a(l)?(t(),c("div",{key:1,class:"thumbnail-container absolute left-0 top-0 h-full w-full cursor-pointer",onClick:d},[e.placeholderImage?(t(),r(i,{key:0,class:"thumbnail h-full w-full object-cover",image:e.placeholderImage,alt:"Video thumbnail",width:"1536",height:"864",sizes:"xxl:1536px xl:100vw lg:100vw md:100vw sm:100vw xs:100vw xxs:100vw",lazy:!0},null,8,["image"])):o("",!0),x("div",B,[k(y)])])):o("",!0):(t(),r(h,{key:0,class:"absolute inset-0 z-20",icon:"lucide:video",description:"This video is hosted by YouTube. By playing this video, you agree to YouTube's privacy policy.","accept-label":"Accept and play video",variant:"dark",onAccept:m},{background:_(()=>[e.placeholderImage?(t(),r(i,{key:0,class:"absolute inset-0 h-full w-full object-cover opacity-30",image:e.placeholderImage,alt:"Video thumbnail",width:"1536",height:"864",sizes:"xxl:1536px xl:100vw lg:100vw md:100vw sm:100vw xs:100vw xxs:100vw",lazy:!0},null,8,["image"])):o("",!0)]),_:1})),a(s)&&(a(l)||!e.placeholderImage)?(t(),c("iframe",{key:2,class:"relative z-10 aspect-video w-full",src:`https://www.youtube-nocookie.com/embed/${e.youtubeId}?rel=0&autoplay=${a(p)}&hl=nl-NL`,title:"youtube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:""},null,8,V)):o("",!0)])):o("",!0)}}};export{L 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.