import{_ as x}from"./1wwTUpUH.js";import{f as g,c as h,a5 as B,o as k,a as S,e as w,i as C,q as E,O,g as T}from"./DWyFFdMi.js";import"./C5a72yXZ.js";import"./DLkL5Mmq.js";import"./DlAUqK2U.js";import"./BmwUVJry.js";import"./CkI8-tbh.js";import"./DJz3vBnc.js";import"./B2O_nNiz.js";import"./DfA8SfpW.js";import"./CRC4QIHB.js";import"./D3PELK9r.js";import"./CyxlosfA.js";import"./DxUzWs8P.js";import"./CPixEb1m.js";import"./CGUegjx3.js";import"./BwUA0UwH.js";import"./CSWn_h05.js";import"./BAn0PGEw.js";import"./B6bpGmrV.js";import"./Tst-mVbb.js";import"./BoxBjlbM.js";import"./CwaIvaEi.js";import"./BuJrzgKc.js";import"./B8g_kOrI.js";const $={class:"p-kids-portale-article"},q=g({__name:"p-kids-portale-article",props:{content:{}},setup(n){const s=n,o=h(()=>B({},s.content,{lead:{content:{letterboxOptions:{components:{playButton:!1,sharing:!1}}}}}));return(t,r)=>{const i=x;return k(),S("div",$,[w(i,{content:C(o),"action-buttons":!1,"may-interest-you-btn-show-more":!1,"may-interest-you-no-title":""},null,8,["content"])])}}}),A=()=>{const n=E();return{computedContent:h(()=>{var p,a,c,l,m,u,d,_,f,b;const o={},t=(a=(p=n.content)==null?void 0:p.media)==null?void 0:a.items[0],r=t==null?void 0:t.type;if(!t&&!r)return null;["video","videosegment"].includes(r)&&(o.lead={type:r,content:{...t,label:t.toplabel,image:t==null?void 0:t.lead}}),["audio","audiosegment","series"].includes(r)&&(o.lead={type:"podcast",content:{...t,label:t==null?void 0:t.toplabel,image:t==null?void 0:t.lead,title:t==null?void 0:t.headline,subtitle:t==null?void 0:t.subhead}});const i=[],v=(m=(l=(c=n.content)==null?void 0:c.series)==null?void 0:l.items)==null?void 0:m.map(e=>{var y;return{id:(y=e==null?void 0:e.id)==null?void 0:y.toString(),type:"relation",content:{type:"link",image:e==null?void 0:e.lead,intro:"Una puntata di",label:e==null?void 0:e.toplabel,title:e==null?void 0:e.headline,subtitle:e==null?void 0:e.subhead,target:"_self",url:(e==null?void 0:e.relativeHref)||(e==null?void 0:e.href),view:"extended"}}});return i.push(...v),o.body=i,o.mayInterestYou={...(u=n.content)==null?void 0:u.episodes,items:((b=(f=(_=(d=n.content)==null?void 0:d.episodes)==null?void 0:_.items)==null?void 0:f.map(O))==null?void 0:b.map(e=>(e==null||delete e.info_bar,e)))||[]},o})}},re=g({__name:"[...slug]",setup(n){const{computedContent:s}=A();return(o,t)=>{const r=q;return k(),T(r,{content:C(s)},null,8,["content"])}}});export{re as default};