import{V as d,_}from"./BvY57J1L.js";import{aa as h,cA as v,cG as x,cl as f,cR as b,X as i,cS as m,p as g,ch as y,bB as s,W as o,c0 as k,c7 as n,Z as C,F as w,bR as B,a3 as V,O as R}from"#entry";import"./CyrZsGpg.js";import"./BopM0vw7.js";import"./DsNA9-h5.js";import"./Cp3UUybv.js";import"./-GcL7px7.js";import"./CEoxYnb5.js";import"./R1_j74h_.js";const $={class:"d-block text-h3 font-weight-black text-center text-uppercase mt-10 mb-16 mx-auto w-100 text-underline"},z={class:"mb-2 events"},M=h({__name:"[name]",async setup(F){let a,l;const t=v(),e=x("settings");f({title:R(()=>`${e.value?.title} - ${t.params.name}`),meta:[{property:"og:title",content:e.value.title},{property:"og:url",content:e.value.baseurl},{property:"og:image",content:e.value.baseurl+"/logo.png"}],link:[{rel:"alternate",type:"application/rss+xml",title:e.value.title,href:e.value.baseurl+"/feed/rss?collection="+t.params.name},{rel:"alternate",type:"text/calendar",title:e.value.title,href:e.value.baseurl+"/feed/ics?collection="+t.params.name}]});const{data:p}=([a,l]=b(()=>y(`/api/collections/${encodeURIComponent(t.params.name)}`,"$kQ1jXNgolx")),a=await a,l(),a);return(N,S)=>{const u=_;return s(),i(g,{id:"home",class:"px-2 px-sm-6 pt-0",fluid:""},{default:m(()=>[o("h1",$,[o("u",null,k(n(t).params.name),1)]),o("div",z,[(s(!0),C(w,null,B(n(p),(r,c)=>(s(),i(d,{key:r.id,class:"event v-card","model-value":c<9,options:{threshold:.5,rootMargin:"500px"}},{default:m(()=>[V(u,{event:r,lazy:c>9,"hide-thumbs":n(e).hide_thumbs},null,8,["event","lazy","hide-thumbs"])]),_:2},1032,["model-value"]))),128))])]),_:1})}}});export{M as default};
