1import{_ as E}from"./JLHI5EQa.js";import{_ as P}from"./SbgH_t8g.js";import{u as S,w as V,k as p,l as $,m as z,p as A,e as F,i as r,f as c,n as H,j as N,b as n,c as j,h as q,q as I,o as x}from"./CnnHI4eV.js";import{u as M}from"./44lgewU8.js";import{u as T}from"./DqkkZm2j.js";import{u as U}from"./DBkbk9Zg.js";import{u as W}from"./C_LtU1BF.js";import"./Dm8TU3L0.js";import"./BGpYK-R2.js";import"./BdhX69Ma.js";import"./BnmJMHbg.js";import"./CpWmnYms.js";const D={class:"page-exhibition__body"},G={class:"body__content is-desktop"},J={class:"page-exhibition__content"},se={__name:"[slug]",async setup(K){let l,_;const b=S(),y=M(),{formatCoverExhibition:k}=T(),{event_has_alert:B,event_alert:d}=U(),{data:a}=([l,_]=V(()=>W(`/wp-json/wpnuxt/v1/posts/expositions/${b.params.slug}`)),l=await l,_(),l);y.setData(a);const C=p(k(a.value)),f=B&&d?[d,...a.value.meta.editorial.content_mini]:a.value.meta.editorial.content_mini,v=(a.value.meta.editorial.gallery__items||[]).map(e=>{var t;return e.media_type==="Image"?{acf_fc_layout:"image",...e.image}:e.media_type==="Video"&&((t=e.video)!=null&&t[0])?{video:e.video,acf_fc_layout:"video"}:null}).filter(Boolean);function w(e,t){const m=Math.max(e.length,t.length),o=[];for(let i=0;i<m;i++)e[i]&&o.push(e[i]),t[i]&&o.push(t[i]);return o}const R=w(f,v),s=$("exhibitionRef"),h=p(0),u=p(null),g=()=>{var e,t;h.value=((t=(e=s==null?void 0:s.value)==null?void 0:e.querySelector(".cover-exhibition figcaption"))==null?void 0:t.offsetHeight)||0};return z(()=>{g(),u.value=new ResizeObserver(()=>{g()}),u.value.observe(s.value)}),A(()=>{u.value.unobserve(s.value)}),(e,t)=>{const m=E,o=P;return x(),F("article",null,[r("div",{ref:"exhibitionRef",style:I({"--figcaption-height":`${n(h)}px`}),class:"page-exhibition"},[c(m,H(N(n(C))),null,16),r("div",D,[r("div",G,[c(o,{data:n(v)},null,8,["data"]),c(o,{data:n(f)},null,8,["data"])]),c(o,{class:"is-mobile",data:n(R)},null,8,["data"])]),r("section",J,[n(a).meta.content?(x(),j(o,{key:0,data:n(a).meta.content},null,8,["data"])):q("",!0)])],4)])}}};export{se 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.