const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WebVideoPlayer-BghfkgbS.mjs","./CmnEfQIC.js","./entry.Czs9t7YV.css","./WebVideoPlayer.DFsxe3Ud.css","./WebImageWithGallery-Cwz9Cgoz.mjs","./WebImage-C1Tp4muM.mjs","./nuxt-link-BEs8tQ-R.mjs","./WebImage.jsU8ruJM.css","./useImageUrl-1XbeiwSF.mjs","./WebImageWithGallery.CEXWjP10.css"])))=>i.map(i=>d[i]); import{R as k,o as t,b as m,c as f,d as v,k as V,l as w,K as y,L as I}from"./CmnEfQIC.js";const x=y(()=>I(()=>import("./WebVideoPlayer-BghfkgbS.mjs"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)),E=y(()=>I(()=>import("./WebImageWithGallery-Cwz9Cgoz.mjs"),__vite__mapDeps([4,5,6,1,2,7,8,9]),import.meta.url).then(e=>e.default||e)),L={key:2,style:{width:"100%"}},C={__name:"VideoPlayerBlock",props:{data:{type:Object,required:!0},settings:{type:Object,required:!0}},setup(e){var d,i,n;const b=k((n=(i=(d=e.data)==null?void 0:d.images)==null?void 0:i.edges)==null?void 0:n.map(({node:o})=>o));return(o,z)=>{var r,s,l,c,u,g;const a=x,h=E;return e.settings.mode==="manual"&&e.settings.url?(t(),m(a,{key:0,url:e.settings.url,mode:e.settings.mode},null,8,["url","mode"])):(e.settings.mode==="auto"||!e.settings.mode)&&e.data.embedCode?(t(),m(a,{key:1,"embed-code":e.data.embedCode,mode:e.settings.mode||"auto"},null,8,["embed-code","mode"])):e.settings.mode==="manual-playlist"&&((l=(s=(r=e.data.items)==null?void 0:r[0].snippet)==null?void 0:s.resourceId)!=null&&l.videoId)?(t(),f("div",L,[v(a,{url:`https://www.youtube.com/watch?v=${(g=(u=(c=e.data.items)==null?void 0:c[0].snippet)==null?void 0:u.resourceId)==null?void 0:g.videoId}`,mode:e.settings.mode},null,8,["url","mode"])])):e.data.primaryImage?(t(),m(h,{key:3,"image-url":e.data.primaryImage.src,credit:e.data.primaryImage.credit,alt:e.data.primaryImage.alt,"image-shaping":"max",caption:e.data.primaryImage.caption,images:V(b)},null,8,["image-url","credit","alt","caption","images"])):w("",!0)}}};export{C as default};