import{V as v,_ as y}from"./BvY57J1L.js";import{aa as k,cG as C,cA as $,cR as w,$ as E,cl as V,X as i,cS as p,p as z,ch as B,bB as e,W as u,c0 as f,c7 as t,Z as d,F as g,bR as b,a3 as x,Y as M}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 F={class:"d-block text-h4 font-weight-black text-center text-uppercase mt-10 mx-auto w-100 text-underline"},N={class:"events mt-sm-4 mt-2"},R={key:0,class:"mt-14 mb-3"},S={class:"events mt-sm-4 mt-2"},Y=k({__name:"[tag]",async setup(A){let l,h;const s=C("settings"),a=$().params.tag,{data:c,error:m}=([l,h]=w(()=>B(`/api/events/tag/${encodeURIComponent(a)}`,"$spflMGQoJO")),l=await l,h(),l);if(!c.value||m.value)throw E({statusCode:m.value?.statusCode??500,statusMessage:m.value?.statusMessage??"Fetch Error"});return V(()=>{const o=`${s.value.title} - ${a}`;return{title:o,link:[{rel:"alternate",type:"application/rss+xml",title:o,href:s.value.baseurl+`/feed/rss/tag/${a}`},{rel:"alternate",type:"text/calendar",title:o,href:s.value.baseurl+`/feed/ics/tag/${a}`}]}}),(o,L)=>{const _=y;return e(),i(z,{id:"home",class:"px-2 px-sm-6 pt-0"},{default:p(()=>[u("h1",F,[u("u",null,f(t(a)),1)]),u("section",N,[(e(!0),d(g,null,b(t(c).events,(n,r)=>(e(),i(v,{key:n.id,class:"event","model-value":r<9,options:{threshold:.5,rootMargin:"500px"}},{default:p(()=>[x(_,{event:n,lazy:r>9,"hide-thumbs":t(s).hide_thumbs},null,8,["event","lazy","hide-thumbs"])]),_:2},1032,["model-value"]))),128))]),t(c).pastEvents.length?(e(),d("h2",R,f(o.$t("common.past_events")),1)):M("",!0),u("section",S,[(e(!0),d(g,null,b(t(c).pastEvents,(n,r)=>(e(),i(v,{key:n.id,class:"event","model-value":r<9,options:{threshold:.5,rootMargin:"500px"}},{default:p(()=>[x(_,{event:n,lazy:r>9,"hide-thumbs":t(s).hide_thumbs},null,8,["event","lazy","hide-thumbs"])]),_:2},1032,["model-value"]))),128))])]),_:1})}}});export{Y as default};
