1import{_ as t,u as e,m as a,r as s,b as n,n as r,e as i,g as l,p as u,F as o,f as d,h as c,i as v,j as p,k as m,l as g,w as h,t as f,y,z as $}from"./main-ty5Yu1DG.js";import{u as w}from"./usePage-DOkdvXD5.js";const k={key:0},S={key:0,class:"events-section"},x=(t=>(y("data-v-b3975b50"),t=t(),$(),t))((()=>u("header",{class:"artist-header"},[u("div",null,[u("span",null,"Date")]),u("div",null,[u("span",null,"Type")]),u("div",null,[u("span",null,"Exposition")]),u("div",null,[u("span",null,"Artiste(s)")])],-1))),b={class:"events-list"},D={class:"event-date"},_=["datetime"],A={class:"event-type"},E={key:0,class:"event-category"},L={class:"event-exposition"},j={class:"event-artists"},F=t({__name:"Artist",setup(t){const{t:y,locale:$}=e({inheritLocale:!0,useScope:"local",messages:{en:{externalLinks:"External Links",events:"Events",noEvents:"No events found for this artist.",withOtherArtists:"with {count} other artist | with {count} other artists"},fr:{externalLinks:"Liens externes",events:"Ãvénements",noEvents:"Aucun événement trouvé pour cet artiste.",withOtherArtists:"avec {count} autre artiste | avec {count} autres artistes"}}}),F=a().path,O=w(F),Y=s(!1),I=n(),P=t=>{if(!t)return"";return new Date(1e3*t).toISOString().split("T")[0]},T=(t,e=!0)=>{if(!t)return"";const a=new Date(1e3*t),s=a.getDate().toString().padStart(2,"0"),n=(a.getMonth()+1).toString().padStart(2,"0"),r=e?a.getFullYear().toString().slice(-2):"";return e?`${s}.${n}.${r}`:`${s}.${n}`},z=t=>{if("durational"===t.duration&&t.enddate){if(new Date(1e3*t.startdate).getFullYear()!==new Date(1e3*t.enddate).getFullYear()){return`${T(t.startdate,!0)}-${T(t.enddate,!0)}`}return`${T(t.startdate,!1)}-${T(t.enddate,!0)}`}return T(t.startdate,!0)};return(async()=>{await O.isReadyPromise(),Y.value=!0,document.title=`${O.fullname||O.title} · ${I.title}`,await r()})(),(t,e)=>{const a=p("router-link");return m(),i("div",{class:v(["artist",{noready:!Y.value}])},[Y.value?(m(),i("article",k,[l(O).events&&l(O).events.length?(m(),i("div",S,[x,u("ul",b,[(m(!0),i(o,null,d(l(O).events,(t=>(m(),i("li",{key:t.id,class:v(["event-item",{upcoming:t.isupcoming,current:t.iscurrent,archived:!t.isupcoming&&!t.iscurrent}])},[g(a,{to:`/${l($)}/program/${t.id}`},{default:h((()=>[u("div",D,[u("time",{datetime:P(t.startdate)},f(z(t)),9,_)]),u("div",A,[t.category?(m(),i("span",E,f(t.category),1)):c("",!0)]),u("div",L,f(t.title),1),u("div",j,f(t.artists.map((t=>t.fullname)).join(", ")),1)])),_:2},1032,["to"])],2)))),128))])])):c("",!0)])):c("",!0)],2)}}},[["__scopeId","data-v-b3975b50"]]);export{F 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.