1import{_ as E}from"./CsLblQny.js";import{b as S,l as k,h as C,_ as D}from"./K6-ibU79.js";import w from"./lHUmM2t4.js";import{a as N,u as B}from"./BsiI_Abn.js";import{l as L,Q as V,m as A,O as p,R as n,L as r,G as u,P as F,X as t,Y as m,Z as d,J as f,_ as G,u as c,F as H}from"./mpN0nZBn.js";const I={class:"border-spacing-x-2 text-body"},O={class:"text-pretty px-2 py-1"},P={class:"text-pretty px-2 py-1"},T={class:"max-w-[40ch] text-pretty px-2 py-1"},X=L({__name:"PastEvents",props:{data:{}},async setup($){let o,l;const{locale:i}=S(),_=new Date;_.setUTCHours(0,0,0,0);const{data:x}=([o,l]=V(()=>k("Events",{lang:i,sort:"start_date desc",filter:{start_date:{is_before:_.toISOString()}}},{dedupe:"defer"})),o=await o,l(),o),y=A(()=>{var a;return(((a=x.value.entries)==null?void 0:a.data)??[]).map(B)});return(e,a)=>{const b=E,h=C,g=D,v=w;return r(),p(v,null,{default:n(()=>[u(g,null,{default:n(()=>[e.data.heading?(r(),p(b,{key:0,id:e.data.slug},{default:n(()=>[m(d(e.data.heading),1)]),_:1},8,["id"])):F("",!0),t("table",I,[a[0]||(a[0]=t("thead",{class:"border-b-2 border-t border-body"},[t("tr",null,[t("th",{class:"px-2 py-1 text-left"},"Event"),t("th",{class:"px-2 py-1 text-left"},"Date"),t("th",{class:"px-2 py-1 text-left"},"Location")])],-1)),t("tbody",null,[(r(!0),f(H,null,G(c(y),s=>(r(),f("tr",{key:s.id,class:"border-t border-body font-light odd:bg-black/5"},[t("td",O,[u(h,{to:s.url,class:"text-brand-500 decoration-1 hover-focus:text-brand-600 hover-focus:underline"},{default:n(()=>[m(d(s.title),1)]),_:2},1032,["to"])]),t("td",P,d(("useEventDateString"in e?e.useEventDateString:c(N))(s,c(i))),1),t("td",T,d(s.location),1)]))),128))])])]),_:1})]),_:1})}}});
1export{X 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.