const __vite__fileDeps=["./BRCsVSCj.js","./BF--JJVs.js","./entry.DUK295Ir.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{D as i,E as d,G as c,H as u,J as m,x as s,h as p,C as o,j as h,k as y,K as f}from"./BF--JJVs.js";const _=d({name:"PosterBannerVideo",components:{RichTextContent:c(()=>u(()=>import("./BRCsVSCj.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=new IntersectionObserver(l=>{l.forEach(n=>{if(n.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),e.unobserve(n.target)}})}),a=document.getElementById("lazy-iframe-placeholder");e.observe(a)}},"$CKu6HRZ06Z"),b={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"},v=o("div",{class:"yt-overlay"},null,-1),x=o("div",{id:"lazy-iframe-placeholder",class:"hidden md:block"},null,-1);function w(e,a,l,n,t,C){const r=m("RichTextContent");return s(),p("div",b,[o("div",{class:"yt-container",style:f("background-image: url("+e.image+"); background-size: cover;")},[o("div",g,[e.content?(s(),h(r,{key:0,class:"text-base lg:text-xl text-white",content:e.content},null,8,["content"])):y("",!0)]),v,x],4)])}const k=i(_,[["render",w]]);export{k as default};