1import{_ as T}from"./JLHI5EQa.js";import{_ as j}from"./T4rFb-Kb.js";import q from"./Cnclbwwm.js";import M from"./BH9Tk6NT.js";import{_ as N}from"./SbgH_t8g.js";import{u as O,k as c,w as $,v as I,l as V,m as W,I as U,e as G,f as P,n as R,j as J,b as t,T as B,c as f,h as g,q as K,o as m,A as L}from"./CnnHI4eV.js";import{u as Q}from"./DqkkZm2j.js";import{u as X}from"./44lgewU8.js";import{u as Y}from"./C_LtU1BF.js";import"./Dm8TU3L0.js";import"./Bj4rBGkq.js";import"./DKUIj8f4.js";import"./BYxA1x5N.js";import"./BnmJMHbg.js";import"./Br9OsYz6.js";import"./BGpYK-R2.js";import"./BdhX69Ma.js";import"./CpWmnYms.js";const he={__name:"[slug]",async setup(Z){var y,w,k,C;let o,a;const E=O(),{formatCoverExhibition:z}=Q(),A=X(),n=c(),d=c();function F(e){for(const i of e)if(i.media_type==="Image")return i;return!1}const p=([o,a]=$(()=>Y(`/wp-json/wpnuxt/v1/posts/presse-exposition/${E.params.slug}`)),o=await o,a(),o);A.setData(p.data);const s=(C=(k=(w=(y=p.data)==null?void 0:y.value)==null?void 0:w.meta)==null?void 0:k.exhibition)==null?void 0:C[0];d.value=s?([o,a]=$(()=>z(s,"press")),o=await o,a(),o):null,n.value=p.data.value;const x=I(()=>s?F(s.meta.editorial.gallery__items||[]):!1),h=I(()=>{var i,r;if(!s)return!1;const e=(r=(i=s.meta.editorial)==null?void 0:i.content_mini)==null?void 0:r.find(_=>_.acf_fc_layout==="chapo");return e?e.text:null}),l=V("exhibitionRef"),v=c(0),u=c(null),b=()=>{var e;v.value=((e=l.value.querySelector(".cover-exhibition figcaption"))==null?void 0:e.offsetHeight)||0};return W(()=>{b(),u.value=new ResizeObserver(()=>{b()}),u.value.observe(l.value)}),U(()=>{u.value.unobserve(l.value)}),(e,i)=>{const r=T,_=j,S=q,D=M,H=N;return m(),G("div",{ref:"exhibitionRef",style:K({"--figcaption-height":`${t(v)}px`}),class:"page-press-exhibition-single"},[P(r,R(J(t(d))),null,16),P(_,B({"restricted-text":("__"in e?e.__:t(L))("Accès privé, connectez-vous pour télécharger ces médias")},t(n).meta.downloads,{class:"page-press-exhibition-single__downloads wrapper is-grid"}),null,16,["restricted-text"]),t(h)?(m(),f(S,{key:0,class:"h3 page-press-exhibition-single__chapo",wysiwyg_text:t(h)},null,8,["wysiwyg_text"])):g("",!0),t(x)?(m(),f(D,R(B({key:1},t(x).image)),null,16)):g("",!0),t(n).meta.content?(m(),f(H,{key:2,data:t(n).meta.content},null,8,["data"])):g("",!0)],4)}}};export{he 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.