import{V as d,_}from"./BYMeu8AK.js";import{J as h,L as v,K as x,P as f,M as g,A as c,B as m,C as b,N as y,E as s,c as o,Q as k,S as n,T as C,F as w,W as B,b as V,i as N}from"#entry";import"./DlTeSpWH.js";import"./Cr_2yWa2.js";import"./D96dsyvB.js";import"./CIr4U5gS.js";import"./5A-VMRTY.js";import"./LWaCnj-p.js";import"./DArAxlee.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"},J=h({__name:"[name]",async setup(E){let a,l;const t=v(),e=x("settings");f({title:N(()=>`${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]=g(()=>y(`/api/collections/${encodeURIComponent(t.params.name)}`,"$kQ1jXNgolx")),a=await a,l(),a);return(F,L)=>{const u=_;return s(),c(b,{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,i)=>(s(),c(d,{key:r.id,class:"event v-card","model-value":i<9,options:{threshold:.5,rootMargin:"500px"}},{default:m(()=>[V(u,{event:r,lazy:i>9,"hide-thumbs":n(e).hide_thumbs},null,8,["event","lazy","hide-thumbs"])]),_:2},1032,["model-value"]))),128))])]),_:1})}}});export{J as default};
