1import{_ as I}from"./BARCLSFM.js";import{_ as N}from"./CwvzyECp.js";import{_ as T}from"./BeDTnonf.js";import{f as V,A as b,i as w}from"./C677hslQ.js";import{_ as G}from"./DfEuLXg9.js";import{z as M,b as d,M as e,P as g,X as o,L as n,ai as z,N as u,J as A,_ as q,u as m,V as L,Z as h,Q as y,a7 as O,Y as S}from"./CrQeYvpp.js";const j={key:0,class:"text-center"},X=M({__name:"OverviewEvents",props:{data:{}},setup(k){const l=k,{locale:_,locales:p}=V(),t=d(l.data.entries),i=d(1),$=d(l.data.total),f=b();async function C(){let a=null;const r=parseInt(l.data.limit||"8");i.value+=1;const s=p.value.find(c=>c.code===_.value)||p.value[0];s.isMain?a=await f("Events",{sort:"date_start asc | date asc",limit:r,page:i.value,filter:{site:{contains:`_${s.languageTag}`}}}):a=await f("Events",{sort:"date_start asc | date asc",limit:r,page:i.value,site:_.value}),$.value=a.entries.total,a.entries.data.length!==0&&(t.value=t.value.concat(a.entries.data))}return(a,r)=>{const s=I,c=N,x=T,B=w,E=G;return e(),g(E,null,{default:o(()=>[n(s,{heading:a.data.heading,text:a.data.text},null,8,["heading","text"]),n(z,{tag:"ul",name:"list",mode:"out-in",class:"space-y-5 sm:space-y-7"},{default:o(()=>[(e(!0),u(A,null,q(m(t),v=>(e(),u("li",{key:v.id},[n(c,{data:v},null,8,["data"])]))),128))]),_:1}),m(t).length===0?(e(),u("div",j,[n(x,{class:"mx-auto mb-3 size-6 sm:mb-5 sm:size-10"}),L("p",null,h(a.$t("no_entries_found")),1)])):y("",!0),n(O,{name:"fade"},{default:o(()=>[a.data.selection.value==="auto"&&parseInt(a.data.total)>=m(t).length?(e(),g(B,{key:0,variant:"primary",class:"mt-6",onClick:C},{default:o(()=>[S(h(a.$t("load_more")),1)]),_:1})):y("",!0)]),_:1})]),_:1})}}});
1export{X as default}; 2//# sourceMappingURL=Byz2hZBD.js.map
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.