1import{D as _,o,c as a,ay as at,az as P,_ as st,ab as q,aS as Lt,T as u,a0 as I,b as O,Z as A,d as n,Q as r,E as v,O as k,P as L,f as T,a4 as Q,a7 as F,a2 as U,g as C,a1 as et,I as W,F as K,ak as Y,aK as _t,a3 as mt,r as E,u as Ut,J as Ht,aT as tt,al as Rt,aP as pt,aQ as xt,ax as ht,R as Dt,G as Pt,w as zt,m as Nt,N as jt,U as Ft}from"#entry";import{u as kt,W as Mt,i as vt,e as Ct,b as Vt,A as Et,h as Gt,T as Wt,d as Zt,c as Kt,a as qt,k as Yt,j as Qt,g as Jt,f as Xt}from"./Do8dTYus.js";import te from"./DoGtJrbd.js";import{B as G}from"./Dlb5ga2j.js";import ee from"./x7keZQiI.js";import oe from"./B2B-Jw25.js";import ne from"./CzhY11m8.js";import St from"./B0YPnVwn.js";import ae from"./D8Q6w6vN.js";import Bt from"./DxWsjbQP.js";import se from"./Bor0ixn6.js";import re from"./CkJAy3xf.js";import le from"./BBt4kAgQ.js";import ie from"./Cv-8IoKU.js";import ce from"./B1SSPWvt.js";import ue from"./CTsWh4M5.js";import de from"./CHeAUrp4.js";import{_ as ct,b as bt,a as It,T as me}from"./DBaE6nSV.js";import{u as Tt,_ as he}from"./CxFVrigC.js";import{E as fe}from"./DW3zQCjC.js";import{_ as ye}from"./BKheSaMB.js";import{A as ge,T as we}from"./C0cZd-gH.js";import{u as be}from"./BSIY_dNb.js";import{M as pe}from"./Buj8bOcv.js";import"./U_-FfCGt.js";import"./CFwgN8wV.js";import"./DdVK-Jg_.js";import"./BpOI50c1.js";import"./C7hzBnd4.js";import"./CWHcJHjD.js";import"./D9S2InYH.js";import"./C5z2UbEX.js";const xe=_({inheritAttrs:!1,__name:"Banner",props:{width:{default:""},height:{default:""},bannerClass:{default:""}},setup(t){function e(s){return typeof s=="number"?s+"px":s}return(s,c)=>(o(),a("div",P({style:{width:e(t.width),height:e(t.height),overflow:"hidden"},class:[t.bannerClass,"object-contain"]},s.$attrs),[at(s.$slots,"default",{},void 0,!0)],16))}}),ke=Object.assign(st(xe,[["__scopeId","data-v-d2c157f3"]]),{__name:"ContainerBanner"}),ve={key:1,class:"section__separator p-2 px-1"},Ce={key:0,class:"pr-1"},Se={key:1,class:"section__separator pointer-events-none px-1"},Be={key:0,class:"pr-1"},Ie={key:1,class:"section__separator pointer-events-none px-1"},Te='.placeholder { position: relative; width: auto; background: rgb(phred,phgreen,phblue)} .placeholder:after { content: ""; position: absolute; left: 100%; top: 0; border: 1.20rem solid transparent; border-left-color: rgb(phred,phgreen,phblue); z-index: 2; } ',$e=_({__name:"Sections",props:{separetor:{default:void 0},sections:{default:()=>[]},startFromHome:{type:Boolean},startingBg:{default:()=>({red:240,green:240,blue:240})},deltaBg:{default:"-"},preSection:{default:void 0},capitalize:{type:Boolean,default:!0}},setup(t){const e=t;function s(m){return m.replace(/[^a-zA-Z-]/g,"-")}let c="c_"+e.sections.length+"_"+e.startFromHome+"_"+e.startingBg.red+"_"+e.startingBg.green+"_"+e.startingBg.blue;const i=/placeholder/gm,y=/phred/gm,p=/phgreen/gm,w=/phblue/gm;for(const m of e.sections)c+="_"+s(m.name);function x(m,b,d,l){return m.replaceAll(y,b+"").replaceAll(p,d+"").replaceAll(w,l+"")}function S(m,b,d,l){return x(Te.replaceAll(i,c+m),b,d,l)}let f="";if(!e.separetor){e.startFromHome&&(f+=S("Home",e.startingBg.red,e.startingBg.green,e.startingBg.blue));for(let m=0;m<e.sections.length;m++){const b=(m+(e.startFromHome?1:0))*10,d=q.getColorWithDelta(e.startingBg,e.deltaBg==="+"?b:-b);f+=S("S"+m,d.red,d.green,d.blue)}Lt({style:[f]})}return(m,b)=>{const d=te,l=Q;return o(),a("div",{class:A(["merriweather flex",{capitalize:t.capitalize}])},[t.startFromHome?(o(),u(l,{key:0,class:A(["section__item--home p-3 hover:text-black",t.separetor?"":n(c)+"Home"]),to:"/",prefetch:!0,"aria-label":"Homepage"},{default:I(()=>[O(d)]),_:1},8,["class"])):r("",!0),t.startFromHome&&t.separetor?(o(),a("span",ve,v(t.separetor),1)):r("",!0),(o(!0),a(k,null,L(t.sections,(h,g)=>(o(),a(k,{key:g},[h.url!=""?(o(),u(l,{key:0,to:h.url,class:A(["section__item flex items-center",[`section__item--${g}`,g===t.sections.length-1?"section__item--last":"",t.separetor?"":n(c)+"S"+g+(t.startFromHome||g>0?" pl-8":"")]])},{default:I(()=>[e.preSection?(o(),a("div",Ce,v(e.preSection),1)):r("",!0),at(m.$slots,"back-icon"),t.separetor&&g>0?(o(),a("span",Se,v(t.separetor),1)):r("",!0),T("span",null,v(h.name),1)]),_:2},1032,["to","class"])):(o(),a("div",{key:1,class:A(["section__item flex items-center",[`section__item--${g}`,g===t.sections.length-1?"section__item--last":"",t.separetor?"":n(c)+"S"+g+(t.startFromHome||g>
10?" pl-8":"")]])},[e.preSection?(o(),a("div",Be,v(e.preSection),1)):r("",!0),t.separetor&&g>0?(o(),a("span",Ie,v(t.separetor),1)):r("",!0),T("span",null,v(h.name),1)],2))],64))),128))],2)}}}),rt=Object.assign($e,{__name:"BreadcrumbSections"}),Ae={class:"w-full"},Oe={class:"flex py-2 pl-2 text-sm font-bold uppercase",style:{"min-height":"36px"}},Le={key:0,class:"flex items-center px-2 text-xl"},_e=_({__name:"Title",props:{titolo:{},meta:{},icon:{},borderTop:{},borderBottom:{},preSection:{}},setup(t){const e=t;function s(){return e.meta?G.getBreadcrumbs(e.meta):[]}const c=()=>e.icon=="IconCalendar2"?ee:null,i=C(()=>e.borderTop||"border-gray-700 hrBorder"),y=C(()=>e.borderBottom||"mt-1 pb-2");return(p,w)=>{const x=rt;return o(),a("div",Ae,[T("hr",{class:A([n(i)])},null,2),T("div",Oe,[e.meta?(o(),a(k,{key:0},[t.icon?(o(),a("div",Le,[(o(),u(F(c())))])):r("",!0),O(x,{sections:s(),separetor:"-","pre-section":t.preSection},null,8,["sections","pre-section"])],64)):(o(),a(k,{key:1},[U(v(t.titolo),1)],64))]),T("hr",{class:A([n(y)])},null,2)])}}}),lt=Object.assign(_e,{__name:"BreadcrumbTitle"}),Ue={class:"flex w-full justify-end"},He=_({__name:"Links",props:{facebook:{},youtube:{},twitter:{},instagram:{},mail:{},telegram:{},whatsapp:{},linkedin:{},rssfeed:{},pinterest:{},tiktok:{},flipboard:{},targetLink:{default:"_blank"}},setup(t){return(e,s)=>{const c=oe,i=Q,y=ne,p=St,w=ae,x=Bt,S=se,f=re,m=le,b=ie,d=ce,l=ue,h=de;return o(),a("div",Ue,[t.facebook?(o(),u(i,{key:0,class:"p-2",to:t.facebook,"aria-label":"Go to facebook page",external:"",target:t.targetLink},{default:I(()=>[O(c)]),_:1},8,["to","target"])):r("",!0),t.youtube?(o(),u(i,{key:1,class:"p-2",to:t.youtube,external:"","aria-label":"Go to youtube page",target:t.targetLink},{default:I(()=>[O(y)]),_:1},8,["to","target"])):r("",!0),t.twitter?(o(),u(i,{key:2,class:"p-2",to:t.twitter,external:"","aria-label":"Go to X page",target:t.targetLink},{default:I(()=>[O(p)]),_:1},8,["to","target"])):r("",!0),t.instagram?(o(),u(i,{key:3,class:"p-2",to:t.instagram,"aria-label":"Go to instagram page",external:"",target:t.targetLink},{default:I(()=>[O(w)]),_:1},8,["to","target"])):r("",!0),t.mail?(o(),u(i,{key:4,class:"p-2",to:t.mail,"aria-label":"Email us",external:"",target:t.targetLink},{default:I(()=>[O(x)]),_:1},8,["to","target"])):r("",!0),t.telegram?(o(),u(i,{key:5,class:"p-2",to:t.telegram,"aria-label":"Go to telegram account",external:"",target:t.targetLink},{default:I(()=>[O(S)]),_:1},8,["to","target"])):r("",!0),t.whatsapp?(o(),u(i,{key:6,class:"p-2",to:t.whatsapp,external:"","aria-label":"Go to whatsapp account",target:t.targetLink},{default:I(()=>[O(f)]),_:1},8,["to","target"])):r("",!0),t.linkedin?(o(),u(i,{key:7,class:"p-2",to:t.linkedin,"aria-label":"Go to linkedin page",external:"",target:t.targetLink},{default:I(()=>[O(m)]),_:1},8,["to","target"])):r("",!0),t.rssfeed?(o(),u(i,{key:8,class:"p-2",to:t.rssfeed,"aria-label":"Go to whatsapp account",external:"",target:t.targetLink},{default:I(()=>[O(b)]),_:1},8,["to","target"])):r("",!0),t.pinterest?(o(),u(i,{key:9,class:"p-2",to:t.pinterest,"aria-label":"Go to pintarest page",external:"",target:t.targetLink},{default:I(()=>[O(d)]),_:1},8,["to","target"])):r("",!0),t.tiktok?(o(),u(i,{key:10,class:"p-2",to:t.tiktok,"aria-label":"Go to tiktok page",external:"",target:t.targetLink},{default:I(()=>[O(l)]),_:1},8,["to","target"])):r("",!0),t.flipboard?(o(),u(i,{key:11,class:"p-2",to:t.flipboard,external:"","aria-label":"Go to flipboard page",target:t.targetLink},{default:I(()=>[O(h)]),_:1},8,["to","target"])):r("",!0)])}}}),Re=Object.assign(He,{__name:"SocialLinks"}),De={class:"p-1"},Pe={key:0},ze={class:"flex items-center gap-4 pb-4"},Ne={class:"flex flex-col"},je={key:1,class:"whitespace-nowrap border-b font-bold"},Fe={class:"flex gap-8"},Me={key:0,class:"text-sm"},Ve={key:1,class:"flex w-full justify-end"},Ee=["innerHTML"],Ge={key:1,class:"pb-2 text-sm"},We=["innerHTML"],Ze={key:1,class:"text-primary py-1"},Ke={key:0,"data-role":"author",class:"flex flex-wrap items-center"},qe={key:0},Ye={key:1},Qe={key:1},Je={key:0},Xe={key:1,class:"whitespace-nowrap"},to={key:2},eo={key:1,class:"whitespace-nowrap"},oo={key:0,"data-role":"author"},no={key:1},ao={key:2},so=["title"],ro=["title"],lo={key:1},io={key:2},co=_({__name:"Author",props:{author:{},showData:{type:Boolean,default:!0},slim:{type:Boolean,default:!0},showBio:{type:Boolean,default:!1},showMultiSocialLinks:{type:Boolean,default:!1},freeSignature:{},stringAuthorSeparator:{default:" "},doPunctuationCheck:{type:Boolean,default:!1},doOneLineAuthor:{type:Boolean},prefixAuthor:{},showAllAuthor:{type:Boolean,default:!1},showOnlyNumberAuthor:{type:Boolean,default:!1}},setup(t){const e=t,s=C(()=>e.author.length>0?e.author[0]:null),c=C(()=>e.author.length>1?e.author.length-1:0),i=C(()=>e.author.map(f=>f.name).join(", "));function y(f){return q.fullSanitizeInput(f)}function p(f){return W.isValidCrops(f)}const w=C(()=>s.value?.picture?W.getCorrectCropByAspectRatio(s.value.picture,1):void 0);function x(f){return f.is_showcase?K.getJournalistFriendlyUrl(f):""}function S(f){return/^[,;.:]/.test(f)?f:`Â ${f}`}return(f,m)=>{const b=et,d=Q,l=Re,h=St,g=Bt;return o(),a("div",De,[!t.slim&&n(s)?(o(),a("div",Pe,[T("div",ze,[p(n(s).picture)?(o(),a(k,{key:0},[n(w)?(o(),a(k,{key:0},[n(w)?(o(),u(b,{key:0,class:"pointer-events-none max-h-16 max-w-16 rounded-full",src:n(w),loading:"lazy"},null,8,["src"])):r("",!0)],64)):r("",!0)],64)):r("",!0),T("div",Ne,[n(s).bio?(o(),u(d,{key:0,to:x(n(s)),class:"whitespace-nowrap border-b font-bold"},{default:I(()=>[U(v(n(s).name),1)]),_:1},8,["to"])):(o(),a("div",je,v(n(s).name),1)),T("div",Fe,[n(s).role?(o(),a("div",Me,v(n(s).role),1)):r("",!0),t.showMultiSocialLinks?(o(),u(l,{key:1,class:"text-xs",facebook:"https://www.facebook.com",twitter:"https://www.twitter.com",mail:"mailto:[email protected]"})):r("",!0)])]),n(s).public_twitter||n(s).public_email?(o(),a("div",Ve,[n(s).public_twitter?(o(),u(d,{key:0,class:"p-2"},{default:I(()=>[O(h)]),_:1})):r("",!0),n(s).public_email?(o(),u(d,{key:1,class:"p-2"},{default:I(()=>[O(g)]),_:1})):r("",!0)])):r("",!0)]),n(s).bio&&t.showBio?(o(),u(d,{key:0,class:"pb-2 text-sm",to:x(n(s))},{default:I(()=>[(o(!0),a(k,null,L(n(s).bio.split(` 2`),(B,$)=>(o(),a("div",{key:$},[T("div",{innerHTML:y(B)},null,8,Ee)]))),128))]),_:1},8,["to"])):n(s).bio&&t.showBio?(o(),a("div",Ge,[(o(!0),a(k,null,L(n(s).bio.split(` 3`),(B,$)=>(o(),a("div",{key:$},[T("div",{innerHTML:y(B)},null,8,We)]))),128))])):r("",!0)])):r("",!0),t.slim?(o(),a("div",Ze,[t.showAllAuthor?(o(),a(k,{key:0},[t.author.length>0?(o(),a("div",Ke,[t.doOneLineAuthor?(o(),a(k,{key:0},[t.prefixAuthor?(o(),a(k,{key:0},[U(v(t.prefixAuthor),1)],64)):r("",!0),(o(!0),a(k,null,L(t.author,(B,$)=>(o(),a(k,{key:B.id},[B.is_showcase?(o(),a("span",qe,[O(d,{to:x(B)},{default:I(()=>[U(v(B.name),1)]),_:2},1032,["to"]),t.stringAuthorSeparator&&$<t.author.length-1?(o(),a(k,{key:0},[U(v(t.stringAuthorSeparator),1)],64)):r("",!0)])):(o(),a("span",Ye,v
3(B.name+(t.stringAuthorSeparator&&$<t.author.length-1?t.stringAuthorSeparator:"")),1))],64))),128)),t.freeSignature?(o(),a("span",Qe,v(t.doPunctuationCheck?S(t.freeSignature):t.freeSignature),1)):r("",!0)],64)):(o(),a(k,{key:1},[t.prefixAuthor?(o(),a("span",Je,v(t.prefixAuthor),1)):r("",!0),(o(!0),a(k,null,L(t.author,(B,$)=>(o(),a("span",{key:B.id},[B.is_showcase?(o(),u(d,{key:0,to:x(B),class:"whitespace-nowrap"},{default:I(()=>[U(v(B.name),1)]),_:2},1032,["to"])):(o(),a("span",Xe,v(B.name),1)),t.stringAuthorSeparator&&$<t.author.length-1?(o(),a("span",to,v(t.stringAuthorSeparator),1)):r("",!0)]))),128)),t.freeSignature?(o(),a("span",eo,v(t.doPunctuationCheck?S(t.freeSignature):t.freeSignature),1)):r("",!0)],64))])):r("",!0)],64)):(o(),a(k,{key:1},[n(s)?(o(),a("span",oo,[t.showOnlyNumberAuthor?(o(),a(k,{key:1},[n(c)>0?(o(),a("span",{key:0,title:n(i)},v(n(c)+1)+" Autori ",9,ro)):(o(),a(k,{key:1},[n(s).bio?(o(),u(d,{key:0,to:x(n(s))},{default:I(()=>[U(v(n(s).name),1)]),_:1},8,["to"])):(o(),a("span",lo,v(n(s).name),1))],64)),t.freeSignature?(o(),a("span",io,v(t.freeSignature),1)):r("",!0)],64)):(o(),a(k,{key:0},[n(s).bio?(o(),u(d,{key:0,to:x(n(s))},{default:I(()=>[U(v(n(s).name),1)]),_:1},8,["to"])):(o(),a("span",no,v(n(s).name),1)),t.freeSignature?(o(),a("span",ao,v(t.freeSignature),1)):r("",!0),n(c)>0?(o(),a("span",{key:3,class:"pl-1",title:n(i)}," e altri "+v(n(c)),9,so)):r("",!0)],64))])):r("",!0)],64))])):r("",!0)])}}}),ft=Object.assign(st(co,[["__scopeId","data-v-9becb6fc"]]),{__name:"WidgetAuthor"}),uo={key:0,class:"text-primary py-1 text-xs font-bold uppercase"},mo={class:"grow"},ho={key:1,"data-role":"subtitle"},fo={key:2,"data-role":"content",class:""},yo={class:"line-clamp-6"},go={key:1,"data-role":"author",class:"flex flex-wrap items-center justify-end px-1"},dt="flex flex-col",wo=_({__name:"Row",props:{story:{},sectionId:{default:void 0},tagId:{default:void 0},breakpoint:{default:"md"},showImage:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},showPath:{type:Boolean,default:!0},onlyLeaf:{type:Boolean},showData:{type:Boolean,default:!0},showAuthor:{type:Boolean,default:!0},showContent:{type:Boolean,default:!1},fixedHeight:{default:void 0},imgAlign:{default:"left"},imgZoomHover:{type:Boolean,default:!0},addBorder:{type:Boolean},classSizeImg:{default:"w-2/3"},classContent:{default:"w-1/3 my-auto"},useComputeClass:{type:Boolean,default:!0},truncateTextRows:{default:0},titleLineHeight:{default:0},showAllAuthor:{type:Boolean,default:!1},showOnlyNumberAuthor:{type:Boolean,default:!1},aspectRatio:{default:16/9},stringAuthorSeparator:{}},setup(t){const e=t,{computeClass:s,smallerThanComponentBP:c}=Tt(e.breakpoint),i=e.useComputeClass?s(["flex-row"],dt):"flex flex-row",y=e.useComputeClass?s(e.imgAlign==="left"?[e.classSizeImg]:["order-2"],"w-full overflow-hidden"):e.classSizeImg+" overflow-hidden",p=C(()=>e.showImage?e.useComputeClass?s([e.classContent],dt):dt+" "+e.classContent:"w-full flex flex-col"),w=C(()=>typeof e.fixedHeight=="string"?e.fixedHeight:""),x=C(()=>typeof e.fixedHeight=="number"&&!c.value?`height:${e.fixedHeight}px;`:"");function S(){return e.tagId&&Array.isArray(e.story?.tags)&&e.story.tags.some(g=>g?.id===e.tagId)?G.getTagById(e.story,e.tagId):G.getSectionById(e.story,e.sectionId,e.onlyLeaf)}function f(){return"overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: "+e.truncateTextRows+";"}const m=C(()=>e.titleLineHeight?`line-height: ${e.titleLineHeight};`:`min-height: ${e.truncateTextRows?e.truncateTextRows:1}rem;`),b=K.getStoryFriendlyUrl(e.story,e.sectionId,e.tagId,e.onlyLeaf),d=C(()=>e.story.cover?W.getCorrectCropByAspectRatio(e.story.cover,e.aspectRatio):void 0);function l(h){return W.isValidCrops(h)}return(h,g)=>{const B=et,$=Q,z=rt,H=ft,D=ct;return o(),a("article",{"data-type":"row","data-container":"true",class:A([n(i),n(w),t.addBorder?"border-b":""]),style:Y(n(x))},[t.showImage&&l(t.story.cover)?(o(),a("div",{key:0,class:A(n(y))},[n(d)?(o(),u($,{key:0,to:n(b)},{default:I(()=>[O(B,{class:"block w-full h-full object-cover",src:n(d),alt:t.story.title,loading:"lazy"},null,8,["src","alt"])]),_:1},8,["to"])):r("",!0)],2)):r("",!0),T("div",{class:A([n(p),"grow p-1 pl-2"])},[t.story?.sections[0]?.path&&t.showPath?(o(),a("div",uo,[O(z,{sections:S(),separetor:"/",class:"text-secondary font-bold"},null,8,["sections"])])):r("",!0),T("div",mo,[t.showTitle&&t.story.title?(o(),u($,{key:0,class:A([!(t.showSubtitle&&t.story.subtitle)]),to:n(b),"data-role":"title",style:Y([f(),n(m)])},{default:I(()=>[U(v(t.story.title),1)]),_:1},8,["class","to","style"])):r("",!0),t.showSubtitle&&t.story.subtitle?(o(),a("div",ho,[O($,{to:n(b)},{default:I(()=>
3[U(v(t.story.subtitle),1)]),_:1},8,["to"])])):r("",!0),t.showContent&&t.story.content_textual_only?(o(),a("div",fo,[T("span",yo,v(t.story.content_textual_only),1)])):r("",!0)]),t.showAuthor||t.showData?(o(),a("div",go,[t.showAuthor&&t.story?.journalists?.length>0?(o(),u(H,{key:0,author:t.story.journalists,"show-all-author":t.showAllAuthor,"show-only-number-author":t.showOnlyNumberAuthor,stringAuthorSeparator:t.stringAuthorSeparator,"free-signature":t.story.free_signature||void 0},null,8,["author","show-all-author","show-only-number-author","stringAuthorSeparator","free-signature"])):r("",!0),t.showAuthor&&t.showData?(o(),a(k,{key:1},[U("-")],64)):r("",!0),t.story&&t.story.published_at&&t.showData?(o(),u(D,{key:2,class:"pl-1",date:t.story.published_at.ISO8601,format:"short"},null,8,["date"])):r("",!0)])):r("",!0)],2)],6)}}}),bo=Object.assign(st(wo,[["__scopeId","data-v-21f033e8"]]),{__name:"ArticleRow"}),po={key:0},xo={key:1,class:"text-secondary py-1 text-xs font-bold uppercase"},ko={class:"flex grow flex-col"},vo={class:"grow"},Co={key:0,"data-role":"author",class:"flex flex-wrap items-center justify-end px-1"},So=_({__name:"Column",props:{story:{},sectionId:{default:void 0},tagId:{default:void 0},showTitle:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!1},showPath:{type:Boolean,default:!0},onlyLeaf:{type:Boolean},showData:{type:Boolean,default:!0},showAuthor:{type:Boolean,default:!0},showImage:{type:Boolean,default:!0},showContent:{type:Boolean,default:!1},fixedHeight:{type:[Boolean,String,Number],default:!1},showBorder:{type:Boolean},titleLineHeight:{default:0},truncateTextRows:{default:0},titleSpaceHeight:{default:0},showAllAuthor:{type:Boolean,default:!1},showOnlyNumberAuthor:{type:Boolean,default:!1},aspectRatio:{default:16/9},stringAuthorSeparator:{}},setup(t){const e=t,s=C(()=>typeof e.fixedHeight=="string"?e.fixedHeight:""),c=C(()=>typeof e.fixedHeight=="number"?`height:${e.fixedHeight}px;`:"");function i(){return e.tagId?G.getTagById(e.story,e.tagId):G.getSectionById(e.story,e.sectionId,e.onlyLeaf)}const y=C(()=>e.titleLineHeight?`line-height: ${e.titleLineHeight};`:"");function p(){return"overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: "+e.truncateTextRows+";"}const w=C(()=>e.titleSpaceHeight?`height: ${e.titleSpaceHeight}px;`:""),x=C(()=>{if(e.story.URL&&!_t.hasUnresolvedCmsTemplatePath(e.story.URL))return e.story.URL;if(!(!e.story.main_section&&!e.story.sections?.[0]))try{return K.getStoryFriendlyUrl(e.story,e.sectionId,e.tagId,e.onlyLeaf)}catch{return}}),S=C(()=>e.story.cover?W.getCorrectCropByAspectRatio(e.story.cover,e.aspectRatio):void 0);function f(m){return W.isValidCrops(m)}return(m,b)=>{const d=et,l=Q,h=rt,g=ft,B=ct;return o(),a("article",{"data-type":"column","data-container":"true",class:A(["relative flex flex-col",[n(s),{"overflow-hidden":t.fixedHeight!==!1},t.showBorder?"border-b pb-2":""]]),style:Y(n(c))},[n(x)&&t.showImage&&f(t.story.cover)?(o(),a("div",po,[O(l,{to:n(x),class:"overflow-hidden"},{default:I(()=>[n(S)?(o(),u(d,{key:0,class:"block w-full h-full object-cover",src:n(S),alt:t.story.title,loading:"lazy"},null,8,["src","alt"])):r("",!0)]),_:1},8,["to"])])):r("",!0),t.story?.sections[0]?.path&&t.showPath?(o(),a("div",xo,[O(h,{sections:i(),separetor:"/",class:"text-secondary"},null,8,["sections"])])):r("",!0),T("div",ko,[T("div",vo,[t.story?.title&&t.showTitle?(o(),u(l,P({key:0,to:n(x)},{"data-role":"title"},{class:"ellipsis-2-lines grow pt-1",style:[p(),n(y),n(w)]}),{default:I(()=>[U(v(t.story.title),1)]),_:1},16,["to","style"])):r("",!0),t.story?.subtitle&&t.showSubtitle?(o(),u(l,P({key:1,to:n(x)},{"data-role":"subtitle"},{class:"ellipsis-2-lines mb-2 grow",style:{"flex-grow":"2"}}),{default:I(()=>[U(v(t.story.subtitle),1)]),_:1},16,["to"])):r("",!0),t.story?.content_textual_only&&t.showContent?(o(),u(l,P({key:2,to:n(x)},{"data-role":"content"},{class:"pb-2",style:{"flex-grow":"3"}}),{default:I(()=>[U(v(t.story.content_textual_only),1)]),_:1},16,["to"])):r("",!0)]),t.showAuthor||t.showData?(o(),a("div",Co,[t.showAuthor&&t.story?.journalists?.length>0?(o(),u(g,{key:0,author:t.story.journalists,"show-all-author":t.showAllAuthor,stringAuthorSeparator:t.stringAuthorSeparator,"show-only-number-author":t.showOnlyNumberAuthor,"free-signature":t.story.free_signature||void 0},null,8,["author","show-all-author","stringAuthorSeparator","show-only-number-author","free-signature"])):r("",!0),t.showAuthor&&t.showData?(o(),a(k,{key:1},[U("-")],64)):r("",!0),t.story&&t.story.published_at&&t.showData?(o(),u(B,{key:2,class:"p-1",date:t.story.published_at.ISO8601,format:"short"},null,8,["date"])):r("",!0)])):r("",!0)])],6)}}}),$t=Object.assign(st(So,[["__scopeId","data-v-7d201b6d"]]),{__name:"ArticleColumn"}),Bo={key:0,class:"text-primary line-smaller flex items-center py-1 text-xs font-bold uppercase"},Io={class:"flex py-1"},To={key:0,"data-role":"title"},$o={key:1,class:"text-xs text-gray-400"},Ao={key:0,class:"mx-auto overflow-hidden pl-1",style:{"min-width":"53px","min-height":"53px"}},Oo={class:"grow"},Lo={key:1,"data-role":"subtitle",class:"pb-2"},_o={key:2,"data-role":"content",class:"pb-2"},Uo={key:0,"data-role":"author",class:"text-primary flex flex-wrap items-center px-1"},Ho=_({__name:"Card",props:{story:{},sectionId:{default:void 0},tagId:{default:void 0},showBorder:{type:Boolean,default:!1},showSubtitle:{type:Boolean,default:!0},showPath:{type:Boolean,default:!0},onlyLeaf:{type:Boolean},textTitle:{default:"lg"},showData:{type:Boolean,default:!0},showAuthor:{type:Boolean,default:!0},fontBold:{type:Boolean,default:!0},showImage:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showTimeAgo:{type:Boolean,default:!1},showShortContent:{type:Boolean,default:!1},showBottomBorder:{type:Boolean},hideImg:{type:Boolean,default:!0},showAllAuthor:{type:Boolean,default:!1},showOnlyNumberAuthor:{type:Boolean,default:!1},customClass:{default:""}},setup(t){const e=t;function s(w){return mt.diffAsString(new Date(w))}function c(){return e.tagId?G.getTagById(e.story,e.tagId):G.getSectionById(e.story,e.sectionId,e.onlyLeaf)}
3const i=K.getStoryFriendlyUrl(e.story,e.sectionId,e.tagId,e.onlyLeaf);function y(w){return W.isValidCrops(w)}function p(w,x){return W.getCorrectCropByAspectRatio(w,x)}return(w,x)=>{const S=rt,f=Q,m=et,b=ft,d=ct;return o(),a("article",{"data-type":"card","data-container":"true",class:A(["m-3 flex flex-col",t.customClass])},[t.showPath?(o(),a("div",Bo,[O(S,{sections:c(),separetor:"/",class:"text-secondary"},null,8,["sections"])])):r("",!0),T("div",Io,[T("div",{class:A([{"font-normal":!t.fontBold,"font-semibold":t.fontBold},"text-"+t.textTitle])},[t.showTitle?(o(),a("div",To,[O(f,{to:n(i)},{default:I(()=>[U(v(t.story.title),1)]),_:1},8,["to"])])):r("",!0),t.showTimeAgo&&!t.showData&&t.story.published_at?(o(),a("div",$o,v(s(t.story.published_at.ISO8601)),1)):r("",!0)],2),t.showImage&&y(t.story.cover)&&!t.showSubtitle&&!t.showShortContent?(o(),a("figure",Ao,[O(f,{to:n(i)},{default:I(()=>[p(t.story.cover,1)?(o(),u(m,{key:0,class:"object-cover",src:p(t.story.cover,1),style:{"min-width":"53px","min-height":"53px"},alt:t.story.title,loading:"lazy"},null,8,["src","alt"])):r("",!0)]),_:1},8,["to"])])):r("",!0)]),T("div",Oo,[t.showImage&&y(t.story.cover)&&p(t.story.cover,16/9)&&(t.showSubtitle||t.showShortContent)?(o(),u(f,{key:0,to:n(i)},{default:I(()=>[O(m,{class:A(["float-right aspect-video w-1/2 overflow-hidden object-cover pl-1 pt-1",t.hideImg?"hidden lg:block":"block"]),src:p(t.story.cover,16/9),alt:t.story.title,loading:"lazy"},null,8,["class","src","alt"])]),_:1},8,["to"])):r("",!0),t.showSubtitle&&t.story.subtitle?(o(),a("div",Lo,[T("span",null,[O(f,{to:n(i)},{default:I(()=>[U(v(t.story.subtitle),1)]),_:1},8,["to"])])])):r("",!0),t.showShortContent?(o(),a("div",_o,[T("span",null,[O(f,{to:n(i)},{default:I(()=>[U(v(t.story.content),1)]),_:1},8,["to"])])])):r("",!0),T("div",{class:A(["gap-1 pb-2 text-sm",t.showBorder?"border-b":""])},[t.showAuthor||t.showData?(o(),a("div",Uo,[t.showAuthor&&t.story?.journalists?.length>0?(o(),u(b,{key:0,author:t.story.journalists,"show-all-author":t.showAllAuthor,"show-only-number-author":t.showOnlyNumberAuthor,"free-signature":t.story.free_signature||void 0},null,8,["author","show-all-author","show-only-number-author","free-signature"])):r("",!0),t.showAuthor&&t.showData?(o(),a(k,{key:1},[U("-")],64)):r("",!0),t.story&&t.story.published_at&&t.showData?(o(),u(d,{key:2,class:"pl-1",date:t.story.published_at.ISO8601,format:"short"},null,8,["date"])):r("",!0)])):r("",!0)],2)])],2)}}}),Ro=Object.assign(Ho,{__name:"ArticleCard"}),Do={class:"grow"},Po={class:"text-lg font-semibold"},zo=["innerHTML"],No={class:"unna flex w-full items-end text-gray-500"},jo={key:0,class:"text-base"},Fo={key:2,class:"flex items-end pl-1"},Mo={key:1,class:"text-secondary flex w-full justify-end"},Vo={key:1},Eo={class:"flex h-full flex-col justify-start"},Go={key:1,class:"text-secondary"},Wo="pb-2",Zo=_({__name:"RowList",props:{event:{},categoryId:{},tagId:{},showBorder:{type:Boolean},bgColorClass:{default:""},badgeColorClass:{default:"bg-primary"},customClass:{default:""},dateFilter:{type:Boolean,default:!1},showCategory:{type:Boolean},showTitle:{type:Boolean,default:!0},fontBold:{type:Boolean},showContent:{type:Boolean},truncateTextRows:{default:3},titleSpaceHeightList:{default:72},showShadow:{type:Boolean,default:!1},showCalendar:{type:Boolean,default:!0},showLocation:{type:Boolean},showTag:{type:Boolean,default:!0},tagColorClass:{default:""}},setup(t){const e=t,s=E(fe.getLocation(e.event));function c(){return"overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: "+e.truncateTextRows+";"}const i=K.getEventFriendlyUrl(e.event,e.categoryId,e.tagId),y=K.getEventLocationFriendlyUrl(e.event),p=!!Ut().public.enableLocationUrl;function w(f){return new Date().getFullYear()!=f.getFullYear()}function x(f){return K.getTagUrl(f,"event")}function S(f){return Ht(f)}return(f,m)=>{const b=Q,d=ct;return o(),a("article",{"data-type":"event-row-list","data-container":"true",class:A(["flex items-center justify-between bg-white p-4",[t.showBorder?Wo:"",t.bgColorClass,t.customClass]]),onClick:m[0]||(m[0]=l=>S(n(i)))},[T("div",Do,[O(b,P({to:n(i)},{"data-role":"title"},{class:"ellipsis-2-lines h-14"}),{default:I(()=>
3[T("h3",Po,v(t.event.title),1)]),_:1},16,["to"]),t.showContent?(o(),a("div",{key:0,style:Y(c()),"data-role":"content",class:"px-4 opacity-0 xl:opacity-100",innerHTML:t.event.content_textual_only},null,12,zo)):r("",!0),T("div",No,[t.event.period_end?(o(),a("div",jo," Da ")):r("",!0),O(d,{class:"text-base",date:t.event.period_start.ISO8601,format:"weekday"},null,8,["date"]),m[5]||(m[5]=U("  ",-1)),O(d,{class:"text-xl font-bold",date:t.event.period_start.ISO8601,format:{day:"2-digit"}},null,8,["date"]),m[6]||(m[6]=U("  ",-1)),O(d,{class:"text-xl",date:t.event.period_start.ISO8601,format:"monthName"},null,8,["date"]),w(new Date(t.event.period_start.ISO8601))?(o(),u(d,{key:1,class:"text-xl",date:t.event.period_start.ISO8601,format:{year:"numeric"}},null,8,["date"])):r("",!0),t.event.period_end?(o(),a("div",Fo,[m[1]||(m[1]=T("span",{class:"flex items-end text-base"},"a",-1)),m[2]||(m[2]=U("  ",-1)),O(d,{class:"text-base",date:t.event.period_end.ISO8601,format:"weekday"},null,8,["date"]),m[3]||(m[3]=U("  ",-1)),O(d,{class:"text-xl font-bold",date:t.event.period_end.ISO8601,format:{day:"2-digit"}},null,8,["date"]),m[4]||(m[4]=U("  ",-1)),O(d,{class:"text-xl",date:t.event.period_end.ISO8601,format:"monthName"},null,8,["date"]),w(new Date(t.event.period_end.ISO8601))?(o(),u(d,{key:0,class:"text-xl",date:t.event.period_end.ISO8601,format:{year:"numeric"}},null,8,["date"])):r("",!0)])):r("",!0)]),t.showTag?(o(),a("div",Mo,[(o(!0),a(k,null,L(t.event.tags?.slice(0,4),l=>(o(),a("div",{key:l.id,class:A(t.tagColorClass)},[l.URL?(o(),u(b,{key:0,to:x(l)},{default:I(()=>[U(v(l.name),1)]),_:2},1032,["to"])):(o(),a("div",Vo,v(l.name),1))],2))),128))])):r("",!0)]),T("div",Eo,[t.showLocation?(o(),a(k,{key:0},[p?(o(),u(b,{key:0,class:A("text-secondary"),to:n(y)},{default:I(()=>[U(v(n(s)),1)]),_:1},8,["to"])):(o(),a("div",Go,v(n(s)),1))],64)):r("",!0)])],2)}}}),At=Object.assign(Zo,{__name:"EventRowList"}),Ko={key:0,class:A("pb-4")},qo=_({__name:"Grid",props:{source:{},options:{default:void 0},meta:{default:void 0},items:{default:void 0},id:{},breakpoints:{default:()=>["sm"]},internalBreakpoint:{default:()=>"md"},layout:{default:"vertical"},layoutMainAricle:{default:"row"},layoutSecondaryItems:{default:"column"},itemsForLayer:{default:3},showPath:{type:Boolean},onlyLeaf:{type:Boolean},showSubtitle:{type:Boolean,default:!0},secondaryShowSubtitle:{type:Boolean,default:!1},ultimateShowSubtitle:{type:Boolean,default:!1},showContent:{type:Boolean},showBreadcrumbs:{type:Boolean},showAllAuthor:{type:Boolean},showAuthor:{type:Boolean,default:!1},showOnlyNumberAuthor:{type:Boolean},colorBg:{default:void 0},deltaColor:{default:void 0},tailItems:{default:void 0},showImage:{type:Boolean,default:!0},itemsForMain:{default:1},borderProps:{default:null},icon:{},preSection:{},borderTop:{},borderBottom:{},borderMain:{type:Boolean,default:!0}},setup(t){const e=t,s=C(()=>e.items&&e.items.length>0?e.items.slice(0,e.itemsForMain):void 0),c=C(()=>e.itemsForMain>1?`flex gap-4 flex-col ${e.internalBreakpoint}:flex-row`:""),i=C(()=>e.items&&e.tailItems&&e.items.length>e.tailItems?e.items.slice(e.itemsForMain,-e.tailItems):e.items&&e.items.length>0?e.items.slice(e.itemsForMain):void 0),y=C(()=>e.items&&e.tailItems&&e.items.length>e.tailItems?e.items.slice(-e.tailItems):void 0),p=C(()=>s.value),w=C(()=>s.value),x=C(()=>i.value),S=C(()=>i.value),f=C(()=>y.value),m=C(()=>{const R=e.internalBreakpoint;return e.layout=="vertical"?"flex-col":`flex-col ${R}:flex-row`}),b=C(()=>{const R=e.internalBreakpoint;return e.layout=="vertical"?`${R}:h-3/5 gap-4`:`${R}:w-3/5`}),{categoryId:d,sectionId:l,tagId:h}=kt(e),g=C(()=>q.backgroundColor(e.colorBg,e.deltaColor)),B=C(()=>q.getThemeClass(e.options?.theme));function $(R,Z){return G.getBreadcrumpsMeta(R,Z)}function z(R,Z){return M.isStoriesZone(R,Z)}function H(R,Z){return M.isEventsZone(R,Z)}function D(){return[bt.getTitleCls(2),bt.getTitleCls(e.itemsForMain,e.internalBreakpoint)]}return(R,Z)=>{const X=lt,it=bo,yt=$t,ut=Ro,gt=At,wt=It;return o(),a("div",{style:Y(n(g)),class:A(n(B))},[t.meta&&t.showBreadcrumbs?(o(),u(X,{key:0,meta:$(t.meta,t.source),icon:t.icon,"pre-section":t.preSection,"border-top":t.borderTop,"border-bottom":t.borderBottom},null,8,["meta","icon","pre-section","border-top","border-bottom"])):r("",!0),t.items&&t.items.length>0?(o(),a("div",{key:1,class:A(["flex",n(m)])},[n(s)||n(y)?(o(),a("div",Ko,[z(t.source,t.id)?(o(),a(k,{key:0},[T("div",{class:A(n(c))},[t.layoutMainAricle=="row"?(o(!0),a(k,{key:0},L(n(p),(N,j)=>(o(),u(it,{key:j,story:N,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-content":t.showContent,"show-subtitle":t.showSubtitle,"show-author":t.showAuthor,"add-border":t.borderMain&&t.layout=="vertical","section-id":n(l),"tag-id":n(h),class:A(["flex-1",[D()]])},null,8,["story","show-path","only-leaf","show-content","show-subtitle","show-author","add-border","section-id","tag-id","class"]))),128)):n(s)&&t.layoutMainAricle=="column"?(o(!0),a(k,{key:1},L(n(p),(N,j)=>(o(),u(yt,{key:j,story:N,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-content":t.showContent,"show-subtitle":t.showSubtitle,"show-author":t.showAuthor,"show-border":t.borderMain&&t.layout=="vertical","section-id":n(l),"tag-id":n(h),class:A(["flex-1",D()])},null,8,["story","show-path","only-leaf","show-content","show-subtitle","show-author","show-border","section-id","tag-id","class"]))),128)):r("",!0)],2),n(y)?(o(),a("div",{key:0,class:A(`${t.internalBreakp
3oint}:flex hidden flex-col border-r border-t`)},[(o(!0),a(k,null,L(n(y),(N,j)=>(o(),u(ut,{key:j,story:N,"show-content":t.showContent,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-author":t.showAuthor,"show-subtitle":t.ultimateShowSubtitle,"show-border":j<n(y).length-1,"section-id":n(l),"tag-id":n(h),"show-all-author":t.showAllAuthor,"show-only-number-author":t.showOnlyNumberAuthor,"show-image":!1},null,8,["story","show-content","show-path","only-leaf","show-author","show-subtitle","show-border","section-id","tag-id","show-all-author","show-only-number-author"]))),128))],2)):r("",!0)],64)):H(t.source,t.id)?(o(!0),a(k,{key:1},L(n(w),(N,j)=>(o(),u(gt,{key:j,event:N,"show-image":!0,"show-location-badge":!0,"badge-color-class":"bg-gray-200","show-content":!0,"category-id":n(d),"tag-id":n(h)},null,8,["event","category-id","tag-id"]))),128)):r("",!0)])):r("",!0),z(t.source,t.id)?(o(),a(k,{key:1},[n(i)?(o(),u(wt,{key:0,breakpoints:t.breakpoints,"max-items-for-row":t.itemsForLayer,class:A(n(b)),"border-props":t.borderProps},tt({_:2},[L(n(x),(N,j)=>({name:j,fn:I(nt=>[t.layoutSecondaryItems=="card"?(o(),u(ut,{key:0,story:N,"show-content":t.showContent,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-subtitle":t.secondaryShowSubtitle,"show-author":t.showAuthor,"show-border":!1,"section-id":n(l),"tag-id":n(h),"show-all-author":t.showAllAuthor,"show-only-number-author":t.showOnlyNumberAuthor,class:A([nt.customClass])},null,8,["story","show-content","show-path","only-leaf","show-subtitle","show-author","section-id","tag-id","show-all-author","show-only-number-author","class"])):t.layoutSecondaryItems=="column"?(o(),u(yt,{key:1,story:N,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-content":t.showContent,"show-subtitle":t.secondaryShowSubtitle,"show-author":t.showAuthor,"add-border":t.layout=="vertical","section-id":n(l),"tag-id":n(h),class:A([nt.customClass]),"show-image":!0},null,8,["story","show-path","only-leaf","show-content","show-subtitle","show-author","add-border","section-id","tag-id","class"])):t.layoutSecondaryItems=="row"?(o(),u(it,{key:2,story:N,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-content":t.showContent,"show-subtitle":t.secondaryShowSubtitle,"show-author":t.showAuthor,"add-border":t.layout=="vertical","section-id":n(l),"tag-id":n(h),class:A([nt.customClass])},null,8,["story","show-path","only-leaf","show-content","show-subtitle","show-author","add-border","section-id","tag-id","class"])):r("",!0)])}))]),1032,["breakpoints","max-items-for-row","class","border-props"])):r("",!0)],64)):H(t.source,t.id)?(o(),a(k,{key:2},[n(i)?(o(),u(wt,{key:0,breakpoints:t.breakpoints,"border-props":t.borderProps,"max-items-for-row":t.itemsForLayer,class:A(n(b))},tt({_:2},[L(n(S),(N,j)=>({name:j,fn:I(nt=>[O(gt,{event:N,"show-image":!1,"show-location-badge":!1,"badge-color-class":"bg-gray-200","show-content":!1,class:A(nt.customClass),"category-id":n(d),"tag-id":n(h)},null,8,["event","class","category-id","tag-id"])])}))]),1032,["breakpoints","border-props","max-items-for-row","class"])):r("",!0)],64)):r("",!0),n(y)?(o(),a("div",{key:3,class:A(`flex flex-col border-t ${t.internalBreakpoint}:hidden`)},[(o(!0),a(k,null,L(n(f),(N,j)=>(o(),u(ut,{key:j,story:N,"show-content":t.showContent,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-subtitle":t.ultimateShowSubtitle,"show-author":t.showAuthor,"show-border":j<(n(f)?.length??0)-1,"section-id":n(l),"tag-id":n(h),"show-all-author":t.showAllAuthor,"show-only-number-author":t.showOnlyNumberAuthor,"show-image":!1},null,8,["story","show-content","show-path","only-leaf","show-subtitle","show-author","show-border","section-id","tag-id","show-all-author","show-only-number-author"]))),128))],2)):r("",!0)],2)):r("",!0)],6)}}}),Yo=Object.assign(qo,{__name:"TemplateGrid"}),Qo={key:0,class:"text-primary py-1 text-xs font-bold uppercase"},Jo={class:"flex py-1"},Xo={class:"flex w-4/5 flex-col"},tn={key:0,"data-role":"data"},en=_({__name:"RowList",props:{story:{},sectionId:{default:void 0},tagId:{default:void 0},breakpoint:{default:"md"},showImage:{type:Boolean,default:!0},showPath:{type:Boolean,default:!0},onlyLeaf:{type:Boolean},showData:{type:Boolean,default:!0},imgAlign:{default:"left"},imgZoomHover:{type:Boolean,default:!0},truncateTextRowsList:{default:3},titleSpaceHeightList:{default:0},showBorder:{type:Boolean,default:!0},aspectRatio:{default:1}},setup(t){const e=t;function s(f){return mt.diffAsString(new Date(f))}function c(){return e.tagId&&Array.isArray(e.story?.tags)&&e.story.tags.some(m=>m?.id===e.tagId)?G.getTagById(e.story,e.tagId):G.getSectionById(e.story,e.sectionId,e.onlyLeaf)}
3const i=K.getStoryFriendlyUrl(e.story,e.sectionId,e.tagId,e.onlyLeaf);function y(){return"overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: "+e.truncateTextRowsList+";"}const p=C(()=>e.titleSpaceHeightList?`height: ${e.titleSpaceHeightList}px;`:""),w=C(()=>e.story.cover&&x(e.story.cover)?W.getCorrectCropByAspectRatio(e.story.cover,e.aspectRatio):void 0);function x(f){return W.isValidCrops(f)}function S(){return`min-width: ${Math.ceil(53*e.aspectRatio)}px; min-height: 53px`}return(f,m)=>{const b=rt,d=Q,l=et;return o(),a("article",{"data-type":"row-list","data-container":"true",class:A(["line-small flex flex-col p-1 py-2 text-xs",t.showBorder?"border-b":""])},[t.story?.sections[0]?.path&&t.showPath?(o(),a("div",Qo,[O(b,{sections:c(),separetor:"/",class:"text-secondary"},null,8,["sections"])])):r("",!0),T("div",Jo,[T("div",Xo,[O(d,{to:n(i),"data-role":"title",class:A("grow"),style:Y([y(),n(p)])},{default:I(()=>[U(v(t.story.title),1)]),_:1},8,["to","style"]),t.showData&&t.story.published_at?.ISO8601?(o(),a("div",tn,v(s(t.story.published_at.ISO8601)),1)):r("",!0)]),x(t.story.cover)?(o(),u(d,{key:0,to:n(i),class:"mx-auto w-1/5 overflow-hidden pl-1",style:Y(S())},{default:I(()=>[n(w)?(o(),u(l,{key:0,class:"block w-full h-full object-cover",src:n(w),alt:t.story.title,loading:"lazy"},null,8,["src","alt"])):r("",!0)]),_:1},8,["to","style"])):r("",!0)])],2)}}}),on=Object.assign(st(en,[["__scopeId","data-v-c2a5ca24"]]),{__name:"ArticleRowList"}),nn={key:1,class:"flex grow flex-col"},an=_({__name:"Tower",props:{source:{},options:{default:void 0},meta:{default:void 0},items:{default:void 0},id:{},showPath:{type:Boolean},onlyLeaf:{type:Boolean},showSubtitle:{type:Boolean},showBreadcrumbs:{type:Boolean,default:!1},truncateTextRows:{default:3},titleSpaceHeight:{default:82},colorBg:{default:void 0},deltaColor:{default:void 0},truncateTextRowsList:{default:2},titleSpaceHeightList:{default:48},icon:{},preSection:{},borderTop:{},borderBottom:{}},setup(t){const e=t,s=E(e.items&&e.items.length>0?e.items[0]:void 0),c=C(()=>!e.items||e.items.length<2?[]:e.items.slice(1)),i=C(()=>M.isStoriesZone(e.source,e.id)),y=C(()=>M.isEventsZone(e.source,e.id)),p=$=>"kicker"in $,w=$=>"daily"in $,x=C(()=>s.value&&p(s.value)?s.value:null),S=C(()=>s.value&&w(s.value)?s.value:null),f=C(()=>c.value.filter(p)),m=C(()=>c.value.filter(w)),{categoryId:b,sectionId:d,tagId:l}=kt(e),h=C(()=>q.backgroundColor(e.colorBg,e.deltaColor)),g=C(()=>q.getThemeClass(e.options?.theme));function B($,z){return G.getBreadcrumpsMeta($,z)}return($,z)=>{const H=lt,D=$t,R=on,Z=At;return o(),a("div",{style:Y(n(h)),class:A(n(g))},[t.meta&&t.showBreadcrumbs?(o(),u(H,{key:0,meta:B(t.meta,t.source),icon:t.icon,"pre-section":t.preSection,"border-top":t.borderTop,"border-bottom":t.borderBottom},null,8,["meta","icon","pre-section","border-top","border-bottom"])):r("",!0),n(s)?(o(),a("div",nn,[n(i)&&n(x)?(o(),a(k,{key:0},[O(D,{story:n(x),"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-subtitle":t.showSubtitle,class:A("grow p-2"),"show-border":!0,"truncate-text-rows":t.truncateTextRows,"title-space-height":t.titleSpaceHeight,"section-id":n(d),"tag-id":n(l)},null,8,["story","show-path","only-leaf","show-subtitle","truncate-text-rows","title-space-height","section-id","tag-id"]),(o(!0),a(k,null,L(n(f),(X,it)=>(o(),u(R,{key:X.id,story:X,"show-path":t.showPath,"only-leaf":t.onlyLeaf,"show-subtitle":t.showSubtitle,class:A("mx-1 grow p-2"),"section-id":n(d),"tag-id":n(l),"truncate-text-rows-list":t.truncateTextRowsList,"title-space-height-list":t.titleSpaceHeightList,"show-border":it<n(f).length-1},null,8,["story","show-path","only-leaf","show-subtitle","section-id","tag-id","truncate-text-rows-list","title-space-height-list","show-border"]))),128))],64)):n(y)&&n(S)?(o(),a(k,{key:1},[O(Z,{event:n(S),"show-image":!0,"show-location-badge":!1,"badge-color-class":"bg-gray-200","show-content":!1,"category-id":n(b),"tag-id":n(l)},null,8,["event","category-id","tag-id"]),(o(!0),a(k,null,L(n(m),X=>(o(),u(Z,{key:X.id,event:X,"show-image":!1,"show-location-badge":!1,"badge-color-class":"bg-gray-200","show-content":!1,class:A("mx-1 grow"),"category-id":n(b),"tag-id":n(l)},null,8,["event","category-id","tag-id"]))),128))],64)):r("",!0)])):r("",!0)],6)}}}),sn=Object.assign(an,{__name:"TemplateTower"}),rn={class:"relative w-full"},ln={class:"h-18 flex items-center justify-start gap-4"},cn={class:"grow","data-role":"title"},un={class:"text-secondary text-xl font-bold"},dn={key:0,class:"flex flex-wrap items-end gap-1 text-green-700 lg:hidden xl:flex"},mn={class:"flex items-end gap-1"}
3,hn={key:0,class:"text-sm",style:{"padding-bottom":"3px"}},fn={class:"text-xl font-bold"},yn={class:"text-lg font-semibold"},gn={key:0,class:"flex items-end gap-1"},wn={class:"text-xl font-bold"},bn={class:"text-lg font-semibold"},pn={key:0,class:"hidden flex-wrap items-end justify-end gap-1 text-green-700 lg:flex xl:hidden"},xn={class:"flex items-end justify-end gap-1"},kn={key:0,class:"text-sm",style:{"padding-bottom":"3px"}},vn={class:"text-xl font-bold"},Cn={class:"text-lg font-semibold"},Sn={key:0,class:"flex items-end justify-end gap-1"},Bn={class:"text-xl font-bold"},In={class:"text-lg font-semibold"},Tn={key:1,"data-role":"content",class:"fade-out overflow-hidden",style:{height:"17rem"}},$n=_({__name:"Detail",props:{item:{},showContent:{type:Boolean},showImage:{type:Boolean},colorBg:{default:void 0},options:{default:void 0},deltaColor:{default:void 0}},setup(t){const e=t;function s(b){return mt.getMonthNameFromDate(b)}const c={paragraph:"paragraph",list:"list",image:"image",header:"header",quote:"quote",facebook:"facebook",spotify:"spotify",survey:"survey"},i=["paragraph","list","image","header","quote"];function y(){if(!e.item.content?.blocks)return[];const b=[];for(const d of e.item.content.blocks)i.includes(d.type)&&b.push(d);return b}const p=C(()=>e.item.cover?Rt.imageGetCorrectCropByAspectRatio(e.item.cover,1):""),w=C(()=>q.backgroundColor(e.colorBg,e.deltaColor)),x=C(()=>q.getThemeClass(e.options?.theme)),S=E(e.item.period_start?.ISO8601?new Date(e.item.period_start.ISO8601).getDate():0),f=E(e.item.period_end?.ISO8601?new Date(e.item.period_end.ISO8601).getDate():0),m=C(()=>K.getEventFriendlyUrl(e.item));return(b,d)=>{const l=et,h=ye,g=Q;return o(),a("article",rn,[T("div",{style:Y(n(w)),class:A([n(x),"rounded-sm px-6 pb-4 shadow-lg"])},[O(g,{to:n(m),class:"overflow-hidden pl-1",style:{"min-width":"53px","min-height":"53px"}},{default:I(()=>[T("div",ln,[n(p)?(o(),u(l,{key:0,src:n(p),alt:t.item.title,class:A(["h-auto w-full object-cover","aspect-square max-h-14 min-h-14 min-w-14 max-w-14"]),loading:"lazy"},null,8,["src","alt"])):r("",!0),T("div",cn,[T("div",un,v(t.item?.title),1),t.item?(o(),a("div",dn,[T("div",mn,[t.item.period_end?(o(),a("span",hn," Dal ")):r("",!0),T("span",fn,v(n(S)),1),T("span",yn,v(s(t.item.period_start.ISO8601)),1)]),t.item.period_end?(o(),a("div",gn,[d[0]||(d[0]=T("span",{class:"text-sm",style:{"padding-bottom":"3px"}}," al ",-1)),T("span",wn,v(n(f)),1),T("span",bn,v(s(t.item.period_end.ISO8601)),1)])):r("",!0)])):r("",!0)])]),t.item?(o(),a("div",pn,[T("div",xn,[t.item.period_end?(o(),a("span",kn," Dal ")):r("",!0),T("span",vn,v(n(S)),1),T("span",Cn,v(s(t.item.period_start.ISO8601)),1)]),t.item.period_end?(o(),a("div",Sn,[d[1]||(d[1]=T("span",{class:"text-sm",style:{"padding-bottom":"3px"}}," al ",-1)),T("span",Bn,v(n(f)),1),T("span",In,v(s(t.item.period_end.ISO8601)),1)])):r("",!0)])):r("",!0),d[2]||(d[2]=T("div",{class:"border-b pb-4"},null,-1)),t.showContent&&t.item.content?.blocks.length?(o(),a("div",Tn,[t.item.content?(o(),u(h,{key:0,blocks:y(),"css-for-type":c},null,8,["blocks"])):r("",!0)])):r("",!0)]),_:1},8,["to"])],6)])}}}),An=Object.assign($n,{__name:"EventDetail"}),On=_({__name:"SingleItem",props:{items:{},meta:{default:void 0},source:{},id:{},showContent:{type:Boolean},showImage:{type:Boolean},colorBg:{default:void 0},options:{default:void 0},deltaColor:{default:void 0},onlyLeaf:{type:Boolean}},setup(t){const e=t,s=C(()=>e.items?e.items[0]:null),c=C(()=>M.isEventsZone(e.source,e.id)),i=C(()=>{if(s.value&&c.value)return s.value});return(y,p)=>{const w=An;return o(),a("div",null,[n(i)?(o(),u(w,{key:0,item:n(i),"show-content":t.showContent,"show-image":t.showImage,"color-bg":t.colorBg,options:t.options,"delta-color":t.deltaColor},null,8,["item","show-content","show-image","color-bg","options","delta-color"])):r("",!0)])}}}),Ln=Object.assign(On,{__name:"TemplateSingleItem"}),_n={key:0},Un=_({__name:"Widget",props:{items:{},options:{},widgetType:{},source:{},meta:{}},setup(t){const e=t,s=C(()=>{if(e.widgetType==="edicola")return Mt}),c=C(()=>{if(e.widgetType==="edicola")return{items:e.items,title:e.options?.title}}
3);return(i,y)=>n(s)?(o(),a("div",_n,[(o(),u(F(n(s)),pt(xt(n(c))),null,16))])):r("",!0)}}),Ot=Object.assign(Un,{__name:"TemplateWidget"}),Hn=_({__name:"Html",props:{html:{},componentType:{default:"div"},dataAttributes:{}},setup(t){const e=t,s=()=>e.html?q.fullSanitizeInput(e.html):"";return(c,i)=>(o(),u(F(t.componentType),P({innerHTML:s()},t.dataAttributes),null,16,["innerHTML"]))}}),Rn=Object.assign(Hn,{__name:"TemplateHtml"});class M{static getClass(){return"TemplateUtils"}static getComponentTemplate(e){switch(e){case"article_list":case"article_row":case"event_row":return Ct;case"article_column":return vt;case"article_grid":return Yo;case"article_tower":return sn;case"img":case"video":case"multimedia":return me;case"single_item":return Ln;case"widget":return Ot;case"html":return Rn}}static getComponentTemplateProps(e,s){if(!e)return{};let c;return s?c={...s}:c={},c.items=e.items,c.options=e.options,c.meta=e.meta,c.source=e.source,c.id=e.id,c.subItems=e.subItems,c}static isStoriesZone(e,s){return e==="special"?s.endsWith("_story")||s==="most_read":e==="manual"||e==="tags"||e==="sections"}static isEventsZone(e,s){return e==="special"&&s.endsWith("_event")||e.startsWith("events_")}static isMultimediaZone(e,s){return e==="special"&&s.endsWith("_multimedia")||e.startsWith("multimedia_")}}class V{static isZoneHidden(e){for(const s of e.slots)if(!V.isSlotHidden(s))return!1;return!0}static isSlotHidden(e){return e.container&&!V.isZoneHidden(e.container)||e.template&&e.template.forceVisible?!1:e.template&&e.zone.hidden?!0:V.hasNoItems(e)}static hasNoItems(e){return e.zone.items==null||e.zone.items.length==0}static getOnlyVisiblePlainSlot(e){const s=[];for(const c of e.slots)V.isSlotHidden(c)||s.push(c);return s}static getOnlyVisibleSlot(e){const s={};for(const c of e.slots)V.isSlotHidden(c)||(s[c.id]||(s[c.id]=[]),s[c.id].push(c));for(const c in s)s[c].sort((i,y)=>i.order==y.order?0:i.order==null?1:y.order==null?-1:i.order-y.order);return s}}const ot=(t,e=M,s=J,c=V)=>{function i(m){return e.getComponentTemplate(m)}function y(m){return e.getComponentTemplate(m.id)}function p(m,b){return e.getComponentTemplateProps(m,b)}function w(m){return s.getComponentContainer(m)}function x(m){return{templateUtils:e,orchestratorUtils:s,...s.getComponentContainerProps(m)}}function S(){return c.getOnlyVisibleSlot(t)}function f(){return!c.isZoneHidden(t)}return{getComponentTemplate:i,getComponentTemplateByTemplate:y,getComponentTemplateProps:p,getComponentContainer:w,getComponentContainerProps:x,getOnlyVisibleSlot:S,isVisible:f}},Dn=_({__name:"Banner",props:{zone:{},templateUtils:{default:()=>M},orchestratorUtils:{default:()=>J},zoneUtils:{default:()=>V}},setup(t){const e=t;function s(w,x){return w+"."+x}const{getComponentTemplate:c,getComponentTemplateProps:i,getOnlyVisibleSlot:y,isVisible:p}=ot(e.zone,e.templateUtils,e.orchestratorUtils,e.zoneUtils);return(w,x)=>{const S=ke;return n(p)()?(o(),u(S,{key:0},{default:I(()=>[(o(!0),a(k,null,L(n(y)(),(f,m)=>(o(),a(k,{key:m},[(o(!0),a(k,null,L(f,(b,d)=>(o(),a(k,{key:s(m,d)},[b.template?(o(),u(F(n(c)(b.template.id)),P({key:0,ref_for:!0},n(i)(b.zone,b.template.props)),null,16)):r("",!0)],64))),128))],64))),128))]),_:1})):r("",!0)}}}),Pn=Object.assign(Dn,{__name:"OrchestratorBanner"}),zn=_({inheritAttrs:!1,__name:"Columns",props:{breakpoint:{default:"md"}},setup(t){const e=t,s=ht(),{computeClassVariants:c}=Tt(e.breakpoint),i={1:{sm:"w-full",md:"w-full",lg:"w-full",xl:"w-full","2xl":"w-full"},2:c(["w-1/2"]),3:c(["w-1/3"]),4:c(["w-1/4"])},y=C(()=>i[Object.keys(s).length]?i[Object.keys(s).length][e.breakpoint]:""),p=c(["flex-row"])[e.breakpoint];return(w,x)=>(o(),a("div",P({class:["relative flex w-full flex-col",n(p)]},w.$attrs),[(o(!0),a(k,null,L(Object.keys(n(s)),(S,f)=>(o(),a("div",{key:f,class:A([n(y),"flex flex-col"])},[at(w.$slots,S)],2))),128))],16))}}),Nn=Object.assign(zn,{__name:"ContainerColumns"}),jn=1,Fn=_({__name:"Columns",props:{zone:{},breakpoint:{},showName:{type:Boolean},templateUtils:{default:()=>M},orchestratorUtils:{default:()=>J},zoneUtils:{default:()=>V}},setup(t){const e=t;function s(w,x){return w+"."+x}const{getComponentTemplate:c,getComponentTemplateProps:i,getOnlyVisibleSlot:y,isVisible:p}=ot(e.zone,e.templateUtils,e.orchestratorUtils,e.zoneUtils);return(w,x)=>{const S=lt,f=Nn;return n(p)()?(o(),u(f,{key:0,breakpoint:t.breakpoint},tt({_:2},[L(n(y)(),(m,b)=>({name:b||jn,fn:I(()=>[(o(!0),a(k,null,L(m,(d,l)=>(o(),a(k,{key:s(b,l)},[t.showName&&(d.zone.source==="special"||d.zone.source==="manual")&&d.zone.name?(o(),u(S,{key:0,titolo:d.zone.name}
3,null,8,["titolo"])):r("",!0),d.template?(o(),u(F(n(c)(d.template.id)),P({key:1,ref_for:!0},n(i)(d.zone,d.template.props)),null,16)):r("",!0)],64))),128))])}))]),1032,["breakpoint"])):r("",!0)}}}),Mn=Object.assign(Fn,{__name:"OrchestratorColumns"}),Vn=_({inheritAttrs:!1,__name:"Div",setup(t){const e=ht();return(s,c)=>(o(),a("div",pt(xt(s.$attrs)),[(o(!0),a(k,null,L(Object.keys(n(e)),(i,y)=>at(s.$slots,i,{key:y})),128))],16))}}),En=Object.assign(Vn,{__name:"ContainerDiv"}),Gn=1,Wn=_({__name:"Div",props:{zone:{},templateUtils:{default:()=>M},orchestratorUtils:{default:()=>J},zoneUtils:{default:()=>V}},setup(t){function e(S,f){return S+"."+f}const s=t,{getComponentTemplate:c,getComponentTemplateProps:i,getComponentContainer:y,getComponentContainerProps:p,getOnlyVisibleSlot:w,isVisible:x}=ot(s.zone,s.templateUtils,s.orchestratorUtils,s.zoneUtils);return(S,f)=>{const m=En;return n(x)()?(o(),u(m,{key:0},tt({_:2},[L(n(w)(),(b,d)=>({name:d||Gn,fn:I(()=>[(o(!0),a(k,null,L(b,(l,h)=>(o(),a(k,{key:e(d,h)},[l.template?(o(),u(F(n(c)(l.template.id)),P({key:0,ref_for:!0},n(i)(l.zone,l.template.props)),null,16)):l.container?(o(),u(F(n(y)(l.container)),P({key:1,ref_for:!0},n(p)(l.container),{"template-utils":t.templateUtils,"orchestrator-utils":t.orchestratorUtils}),null,16,["template-utils","orchestrator-utils"])):r("",!0)],64))),128))])}))]),1024)):r("",!0)}}}),Zn=Object.assign(Wn,{__name:"OrchestratorDiv"}),Kn=1,qn=_({__name:"Grid",props:{zone:{},breakpoint:{},breakpoints:{},maxItemsForRow:{},minItemsForRow:{},bpResize:{},showName:{type:Boolean},templateUtils:{},orchestratorUtils:{},zoneUtils:{}},setup(t){const e=t;function s(S,f){return S+"."+f}const{getComponentTemplate:c,getComponentTemplateProps:i,getComponentContainer:y,getComponentContainerProps:p,getOnlyVisibleSlot:w,isVisible:x}=ot(e.zone,e.templateUtils,e.orchestratorUtils,e.zoneUtils);return(S,f)=>{const m=lt,b=It;return n(x)()?(o(),u(b,{key:0,breakpoints:t.breakpoints,"max-items-for-row":t.maxItemsForRow,"min-items-for-row":t.minItemsForRow,"bp-resize":t.bpResize},tt({_:2},[L(n(w)(),(d,l)=>({name:l||Kn,fn:I(h=>[(o(!0),a(k,null,L(d,(g,B)=>(o(),a("div",{key:s(l,B),class:A(h.customClass)},[t.showName&&(g.zone.source==="special"||g.zone.source==="manual")&&g.zone.name?(o(),u(m,{key:0,titolo:g.zone.name},null,8,["titolo"])):r("",!0),g.template?(o(),u(F(n(c)(g.template.id)),P({key:1,ref_for:!0},n(i)(g.zone,g.template.props),{class:h.customClass}),null,16,["class"])):g.container?(o(),u(F(n(y)(g.container)),P({key:2,ref_for:!0},n(p)(g.container)),null,16)):r("",!0)],2))),128))])}))]),1032,["breakpoints","max-items-for-row","min-items-for-row","bp-resize"])):r("",!0)}}}),Yn=Object.assign(qn,{__name:"OrchestratorGrid"}),Qn=_({__name:"Section",setup(t){const e=ht();return(s,c)=>(o(),a("section",null,[(o(!0),a(k,null,L(Object.keys(n(e)),(i,y)=>at(s.$slots,i,{key:y})),128))]))}}),Jn=Object.assign(Qn,{__name:"ContainerSection"}),Xn=1,ta=_({__name:"Section",props:{zone:{},templateUtils:{default:()=>M},orchestratorUtils:{default:()=>J},zoneUtils:{default:()=>V}},setup(t){function e(S,f){return S+"."+f}const s=t,{getComponentTemplate:c,getComponentTemplateProps:i,getComponentContainer:y,getComponentContainerProps:p,getOnlyVisibleSlot:w,isVisible:x}=ot(s.zone,s.templateUtils,s.orchestratorUtils,s.zoneUtils);return(S,f)=>{const m=Jn;return n(x)()?(o(),u(m,{key:0},tt({_:2},[L(n(w)(),(b,d)=>({name:d||Xn,fn:I(()=>[(o(!0),a(k,null,L(b,(l,h)=>(o(),a(k,{key:e(d,h)},[l.template?(o(),u(F(n(c)(l.template.id)),P({key:0,ref_for:!0},n(i)(l.zone,l.template.props)),null,16)):l.container?(o(),u(F(n(y)(l.container)),P({key:1,ref_for:!0},n(p)(l.container),{"template-utils":t.templateUtils,"orchestrator-utils":t.orchestratorUtils}),null,16,["template-utils","orchestrator-utils"])):r("",!0)],64))),128))])}))]),1024)):r("",!0)}}}),ea=Object.assign(ta,{__name:"OrchestratorSection"}),oa="center",na=_({__name:"Shoulders",props:{zone:{},breakpoint:{},showName:{type:Boolean},templateUtils:{default:()=>M},orchestratorUtils:{default:()=>J},zoneUtils:{default:()=>V}},setup(t){const e=t;function s(S,f){return S+"."+f}const{getComponentTemplate:c,getComponentTemplateProps:i,getComponentContainer:y,getComponentContainerProps:p,getOnlyVisibleSlot:w,isVisible:x}=ot(e.zone,e.templateUtils,e.orchestratorUtils,e.zoneUtils);return(S,f)=>{const m=lt,b=he;return n(x)()?(o(),u(b,{key:0,breakpoint:t.breakpoint,class:A("gap-3")},tt({_:2},[L(n(w)(),(d,l)=>({name:l||oa,fn:I(()=>[(o(!0),a(k,null,L(d,(h,g)=>(o(),a(k,{key:s(l,g)},[t.showName&&(h.zone.source==="special"||h.zone.source==="manual")&&h.zone.name?(o(),u(m,{key:0,titolo:h.zone.name},null,8,["titolo"])):r("",!0),h.template&&n(c)(h.template.id)?(o(),u(F(n(c)(h.template.id)),P({key:1,ref_for:!0},n(i)(h.zone,h.template.props)),null,16)):h.container?(o(),u(F(n(y)(h.container)),P({key:2,ref_for:!0},n(p)(h.container)),null,16)):r("",!0)],64))),128))])}))]),1032,["breakpoint"])):r("",!0)}}}),aa=Object.assign(na,{__name:"OrchestratorShoulders"}),sa=_({__name:"Wide",props:{zone:{}}
3,setup(t){return(e,s)=>(o(),a("div",null,"todo wide"))}}),ra=Object.assign(sa,{__name:"OrchestratorWide"});class J{static getClassName(){return"OrchestratorUtils"}static getComponentContainer(e){switch(e.container){case"banner":return Pn;case"shoulders":case"shoulders_large":return aa;case"columns":return Mn;case"wide":return ra;case"grid":return Yn;case"div":return Zn;case"section":return ea;default:throw new Error(`Unsupported zone container: ${e.container}`)}}static getComponentContainerProps(e){return e.props?{zone:e,...e.props}:{zone:e}}}const la=_({__name:"Orchestrator",props:{zones:{},orchestratorUtils:{default:()=>J},templateUtils:{default:()=>M},marginClass:{default:"mt-4"}},setup(t){const e=t;function s(i){return e.orchestratorUtils.getComponentContainer(i)}function c(i){return e.orchestratorUtils.getComponentContainerProps(i)}return(i,y)=>(o(),a("div",null,[(o(!0),a(k,null,L(t.zones,(p,w)=>(o(),a(k,{key:w},[p.container?(o(),u(F(s(p)),P({key:0,ref_for:!0},c(p),{"template-utils":t.templateUtils,"orchestrator-utils":t.orchestratorUtils,class:w?t.marginClass:""}),null,16,["template-utils","orchestrator-utils","class"])):r("",!0)],64))),128))]))}}),ia=Object.assign(la,{__name:"ZoneOrchestrator"});class ca extends J{static getClassName(){return"LNDSOrchestratorUtils"}static getComponentContainer(e){return e.container,super.getComponentContainer(e)}}const ua={key:0},da=_({__name:"Simple",props:{items:{},meta:{},source:{},itemsType:{},options:{},componentProps:{}},setup(t){const e=t,s=C(()=>{switch(e.itemsType){case"breaking_news":return Et;case"triple_column":return Vt;case"adv_google":return Dt;case"secondary":return ge}});return(c,i)=>t.items&&t.items.length>0&&n(s)?(o(),a("div",ua,[(o(!0),a(k,null,L(t.items,y=>(o(),u(F(n(s)),P({key:y.id,item:y,meta:t.meta,source:t.source,options:t.options},{ref_for:!0},t.componentProps),null,16,["item","meta","source","options"]))),128))])):r("",!0)}}),ma=Object.assign(da,{__name:"TemplateSimple"});class ha extends M{static getClass(){return"LNDSTemplateUtils"}static getComponentTemplate(e){switch(e){case"lnds_simple":return ma;case"hero":return we;case"video":return Xt;case"row":return Ct;case"column":return vt;case"carousel":return Jt;case"asymmetric_grid":return Qt;case"nuova_row":return Yt;case"widget":return Ot;case"inchiesta":return qt;case"single":return Kt;case"interview":return Zt;case"dossier":return Wt;case"comparison":return Gt}return super.getComponentTemplate(e)}}const fa=t=>{if(t===null||t.status=="ko")return{status:E("ko")};const e=E(t.status),s=t.data,c=E(t.meta?.title),i=E(t.meta?.description),y=E("Standard"),p=E(s.zones),w=l=>{for(let h=0;h<p.value.length;h++){const g=p.value[h];if(g&&g.id==l)return g}return null};function x(l,h,g){if(!(h>g)){if(h<g&&l.container)return x(l.container,h+1,g);if(h==g){const B={order:l.slotOrder,slot:l.slot||"",template:void 0,container:void 0};return l.container&&(B.container=l.container),B.template=l.template,B}}}function S(l,h,g,B){const $=x(l.easeContainer,0,B);if($==null)return;if($.template){const D={id:$.slot,zone:l,template:$.template,order:$.order};return h.push(l.id),D}if(!$.container)return;const z={id:$.slot||"",zone:l,container:{container:$.container.id,props:$.container.props,slots:[]},order:$.order},H=m(l,g,B+1,!0);for(const D of H){if(h.includes(D.id))continue;const R=S(D,h,H,B+1);R&&z.container?.slots.push(R)}return h.push(l.id),z}function f(l,h,g,B,$=!1){return g>B?!1:g==B?l.id!==h.id?!1:l.relatives==h.relatives:g<B&&($&&l.slot===h.slot||!$)&&l.container!==void 0&&h.container!==void 0?f(l.container,h.container,g+1,B,$):!1}function m(l,h,g,B=!1){const $=[];for(const z of h)f(l.easeContainer,z.easeContainer,0,g,B)&&$.push(z);return $}function b(l,h,g){if(h.includes(l.id))return;const B=[],$=m(l,g,0);for(const H of $){if(h.includes(H.id))continue;const D=S(H,h,$,0);D&&B.push(D)}return{container:l.easeContainer.id,props:l.easeContainer.props,slots:B}}const d=C(()=>{const l=[],h=[];for(const g of p.value){const B=b(g,l,p.value);B!=null&&h.push(B)}return h});return{status:e,title:c,desc:i,originalZones:p,getOriginalZoneById:w,zones:d,model:y}},ya={role:"main"},Ka=_({__name:"index",async setup(t){let e,s;const i=Pt().query,y=ca,p=ha,{preview:w,validateResponse:x,fourOfour:S}=be("",i);function f(){const H=i.id??i["naxos-home-preview-id"];if(H==null)return;const D=Array.isArray(H)?H[0]:H,R=Number(D);return Number.isFinite(R)&&R>0?R:void 0}const m=f(),b="home-"+(m??"default")+"-p_"+w.value+"-s_"+i.scheduled,{data:d}=([e,s]=zt(async()=>Ft(b,async()=>{const H={scheduled:i.scheduled||!1,preview:w.value};m!==void 0&&(H.id=m);const D=await $fetch("/api/naxos/homecontent",{query:H,retry:2,retryDelay:100,timeout:45e3});return x(D,!0,"Homepage"),D},"$sS4b5Ur_C4")),e=await e,s(),e),l=fa(d.value),{status:h,zones:g,title:B,desc:$}=l;(!h||h.value=="ko"||!g)&&S("Homepage"),B.value&&pe.setMetaFromPageProps({title:B.value,description:$.value});const z=E(0);return Nt(()=>d.value,()=>{z.value++}),jt.setTargetingSec(["home"]),(H,D)=>{const R=ia;return o(),a("main",ya,[n(g)?(o(),u(R,{key:n(z),"orchestrator-utils":n(y),"template-utils":n(p),zones:n(g),"margin-class":"",class:"flex flex-col"},null,8,["orchestrator-utils","template-utils","zones"])):r("",!0)])}}});
3export{Ka as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.