1import{_ as F}from"./Cr_fjO0n.js";import{_ as R}from"./B0dKeTXi.js";import{_ as $,u as q,b as z,c as J,N as P,e as r,w as K,g as u,j as H,k as V,h as C,i as a,t as O,n as c}from"./DWwH_cLC.js";import{u as Q}from"./C23gzZiX.js";import{u as U}from"./CtIRYHMU.js";import{u as W}from"./9sclF0zf.js";import"./BWsTcnS6.js";import"./D9t2Upg7.js";import"./CN_EtXyc.js";import"./CLQ6XYnm.js";import"./B2C0u_BS.js";const X={class:"main page-news-detail"},Y={class:"page-news-detail__title"},Z={class:"page-news-detail__content"},ee=["innerHTML"],te={key:0,class:"page-news-detail__gallery"},ae={__name:"[slug]",async setup(se){var d,v,y,f,b,h,w,S,B,I,k,x,A,D;let n,_;const m=q(),{locale:G}=z(),{t:g}=Q(),L=J(),M=P("currentItalianSlug"),T=P("currentBaseSlug"),j=r(()=>{var t;return[{title:g("global.menu.biennale"),route:"biennale"},{title:g("biennale.news.title"),route:"biennale-news"},{title:(t=e.value)==null?void 0:t.title,route:""}]}),{data:E}=([n,_]=K(()=>U("GetArticleBySlug",{slug:m.params.slug})),n=await n,_(),n),e=r(()=>{var t;return(t=E.value)==null?void 0:t.articleBySlug});M.value=(v=(d=e.value)==null?void 0:d.slug)==null?void 0:v.it,T.value=(f=(y=e.value)==null?void 0:y.slug)==null?void 0:f[G.value],W({title:(b=e.value)==null?void 0:b.seo.title,description:(h=e.value)==null?void 0:h.seo.description,image:((w=e.value)==null?void 0:w.seo.image)||((I=(B=(S=e.value)==null?void 0:S.coverImage)==null?void 0:B.image)==null?void 0:I.original_url),url:m.fullPath}),L({en:{slug:(x=(k=e.value)==null?void 0:k.slug)==null?void 0:x.en},cs:{slug:(D=(A=e.value)==null?void 0:A.slug)==null?void 0:D.cs}});const p=r(()=>{var t;return!((t=e.value)!=null&&t.gallery)||!Array.isArray(e.value.gallery)?{items:[]}:{items:e.value.gallery.map((s,i)=>{var o,l;return{id:String(i+1),url:(o=s.image)==null?void 0:o.original_url,title:s.alt_text||s.caption||((l=s.image)==null?void 0:l.name)||""}})}});return(t,s)=>{var l,N;const i=F,o=R;return c(),u("main",X,[H(i,{items:a(j),class:"page-news-detail__breadcrumbs"},null,8,["items"]),V("h1",Y,O((l=a(e))==null?void 0:l.title),1),V("section",Z,[(N=a(e))!=null&&N.content?(c(),u("div",{key:0,innerHTML:a(e).content},null,8,ee)):C("",!0)]),a(p).items.length?(c(),u("section",te,[H(o,{key:"news-detail-gallery",content:a(p),type:"base"},null,8,["content"])])):C("",!0)])}}},de=$(ae,[["__scopeId","data-v-fd1f5804"]]);export{de as default}; 2//# sourceMappingURL=B3fwuie9.js.map
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.