const __vite__fileDeps=["./BeR9QbWA.js","./CLkPlaab.js","./entry.DUK295Ir.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{D as c,E as d,G as u,H as m,J as p,x as i,h,C as n,j as y,k as f,K as _}from"./CLkPlaab.js";const b=d({name:"PosterBannerVideo",components:{RichTextContent:u(()=>m(()=>import("./BeR9QbWA.js"),__vite__mapDeps([0,1,2]),import.meta.url))},props:{heading:{type:String,default:""},youtubeVideoUrl:{type:String,default:""},image:{type:String,default:""},content:{type:Object,default:""}},computed:{youtubeVideoId(){const e=/(youtu.*be.*)\/(watch\?v=|embed\/|v|shorts|)(.*?((?=[&#?])|$))/i;return this.youtubeVideoUrl.match(e)[3]}},mounted(){const e=()=>{const o=new IntersectionObserver(l=>{l.forEach(a=>{if(a.isIntersecting){const t=document.createElement("iframe");t.src=this.youtubeVideoUrl+"?autoplay=1&mute=1&controls=0&loop=1&modestbranding=0&autohide=0&showinfo=0&playsinline=1&playlist="+this.youtubeVideoId,t.allowFullscreen=!0,t.allow="autoplay",t.width="100%",t.height="100%",document.getElementById("lazy-iframe-placeholder").appendChild(t),o.unobserve(a.target)}})}),s=document.getElementById("lazy-iframe-placeholder");o.observe(s)};window.addEventListener("CookiebotOnAccept",()=>{CookieConsent&&(CookieConsent==null?void 0:CookieConsent.consented)&&e()})}},"$CKu6HRZ06Z"),v={class:"poster-banner w-full relative overflow-hidden md:max-h-60 lg:max-h-96 2xl:max-h-108 mb-10"},g={class:"absolute w-full align-middle text-center text-white top-1/3 md:top-[20%] z-50"},x=n("div",{class:"yt-overlay"},null,-1),C=n("div",{id:"lazy-iframe-placeholder",class:"hidden md:block"},null,-1);function w(e,o,s,l,a,t){const r=p("RichTextContent");return i(),h("div",v,[n("div",{class:"yt-container",style:_("background-image: url("+e.image+"); background-size: cover;")},[n("div",g,[e.content?(i(),y(r,{key:0,class:"text-base lg:text-xl text-white",content:e.content},null,8,["content"])):f("",!0)]),x,C],4)])}const V=c(b,[["render",w]]);export{V as default};