import{a as d,_ as y}from"./WebContentListNew-Dw3yFD4e.mjs";import{R as l,o as p,b as u,k as c}from"./D6ipka4G.js";import"./WebContentItem-Lqu7iVHP.mjs";import"./WebImage-NuAmKOMh.mjs";import"./nuxt-link-DZQmNwWS.mjs";import"./useImageUrl-1XbeiwSF.mjs";const C={__name:"CompanyVideosBlock",props:{data:{type:Object,required:!0},settings:{type:Object,required:!0,validator(a){return["imagePosition"].every(e=>e in a)}},page:{type:Object,required:!0,validator(a){return["pageData"].every(e=>e in a)}}},setup(a){const e=a;function s(){return e.page.pageData.type==="Company"?e.page.pageData.name??"":""}function g(){var o,n;return(((n=(o=e.data)==null?void 0:o.youtubeVideos)==null?void 0:n.edges)??[]).slice(0,e.settings.numberOfItems).map(i=>{const t=i.node;return{id:t.id,alias:t.url,type:"video",primaryImage:{src:t.thumbnail},name:t.title,published:t.published}})}const m=l(g());return(r,o)=>{var t;const n=d,i=y;return(t=r.$ss)!=null&&t.useNewDesign?(p(),u(n,{key:0,"number-of-columns":3,"show-summary":!1,"image-position":a.settings.imagePosition,"page-company-name":s(),data:{items:c(m)},"native-type":"list"},null,8,["image-position","page-company-name","data"])):(p(),u(i,{key:1,"number-of-columns":3,"show-summary":!1,"image-position":a.settings.imagePosition,"page-company-name":s(),data:{items:c(m)},"native-type":"list"},null,8,["image-position","page-company-name","data"]))}}};export{C as default};