1import{d as E,a as I,c as m,U as w,e as i,f as l,g as n,m as o,h as $,t as _,n as b,F as h,r as v,_ as C,o as s,k as x,R as D}from"#entry";import A from"./BokPBbzk.js";import B from"./BTTQwOyC.js";import"./D242-hll.js";import"./BwrhLmDY.js";import"./CCvS8bWW.js";import"./D_G0gJJ3.js";const N={key:0,class:"artist__expos"},P={class:"shared--home-events__overtitle"},S={class:"lead"},V={key:0,class:"artist__expos--past events-index-archives"},L={key:0},T={class:"events-index-archives-grid"},j=E({__name:"ArtistExpos",setup(F){const u=D("artist"),r=I().getSettings(),d=[r?.exhibition_type.documentId,r?.permanent_exhibition_type.documentId],c=m(()=>{const t=new Date;return u.value.events?.filter(e=>d.includes(e.event_type.documentId)&&new Date(e.end)>=t).map(e=>({...e,isExpo:!0,isPermanent:e.event_type.documentId===r?.permanent_exhibition_type.documentId}))??[]}),p=m(()=>{const t=new Date;return u.value.events?.filter(e=>d.includes(e.event_type.documentId)&&new Date(e.end)<t).map(e=>({...e,isExpo:!0,isPermanent:e.event_type.documentId===r?.permanent_exhibition_type.documentId}))??[]}),g=w();return(t,e)=>{const y=C,k=A,f=B;return n(c).length||n(p).length?(s(),i("section",N,[o("div",P,[o("h1",null,_(t.$t("artist.expos.title","Expositions")),1),$(y,{to:n(g)({name:"slug",params:{slug:t.$t("slug.events-expo")}}),class:"shared--home-events__link"},{default:b(()=>[o("strong",null,[o("u",null,_(t.$t("artist.expos.linkTitle","Voir toutes les expositions â")),1)])]),_:1},8,["to"])]),o("p",S,_(t.$t("artist.expos.lead","En relation avec l'auteur·rice")),1),(s(!0),i(h,null,v(n(c),a=>(s(),x(k,{key:a.id,event:a,reverse:""},null,8,["event"]))),128)),n(p)&&n(p).length?(s(),i("div",V,[n(c)&&n(c).length?(s(),i("h3",L,_(t.$t("artist.expos.pastTitle","Expositions passées")),1)):l("",!0),o("div",T,[(s(!0),i(h,null,v(n(p),a=>(s(),x(f,{key:a.id,event:a},null,8,["event"]))),128))])])):l("",!0)])):l("",!0)}}}),J=Object.assign(j,{__name:"ArtistExpos"});export{J 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.