import{V as v,_ as b}from"./BYMeu8AK.js";import{J as C,K as k,L as E,M as $,O as w,P as M,A as i,B as p,C as V,N as z,E as e,c as m,Q as f,S as t,T as d,F as g,W as x,b as y,U as B}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 N={class:"d-block text-h4 font-weight-black text-center text-uppercase mt-10 mx-auto w-100 text-underline"},F={class:"events mt-sm-4 mt-2"},L={key:0,class:"mt-14 mb-3"},S={class:"events mt-sm-4 mt-2"},T=C({__name:"[tag]",async setup(A){let l,h;const s=k("settings"),a=E().params.tag,{data:u,error:c}=([l,h]=$(()=>z(`/api/events/tag/${encodeURIComponent(a)}`,"$spflMGQoJO")),l=await l,h(),l);if(!u.value||c.value)throw w({statusCode:c.value?.statusCode??500,statusMessage:c.value?.statusMessage??"Fetch Error"});return M(()=>{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,O)=>{const _=b;return e(),i(V,{id:"home",class:"px-2 px-sm-6 pt-0"},{default:p(()=>[m("h1",N,[m("u",null,f(t(a)),1)]),m("section",F,[(e(!0),d(g,null,x(t(u).events,(n,r)=>(e(),i(v,{key:n.id,class:"event","model-value":r<9,options:{threshold:.5,rootMargin:"500px"}},{default:p(()=>[y(_,{event:n,lazy:r>9,"hide-thumbs":t(s).hide_thumbs},null,8,["event","lazy","hide-thumbs"])]),_:2},1032,["model-value"]))),128))]),t(u).pastEvents.length?(e(),d("h2",L,f(o.$t("common.past_events")),1)):B("",!0),m("section",S,[(e(!0),d(g,null,x(t(u).pastEvents,(n,r)=>(e(),i(v,{key:n.id,class:"event","model-value":r<9,options:{threshold:.5,rootMargin:"500px"}},{default:p(()=>[y(_,{event:n,lazy:r>9,"hide-thumbs":t(s).hide_thumbs},null,8,["event","lazy","hide-thumbs"])]),_:2},1032,["model-value"]))),128))])]),_:1})}}});export{T as default};
