1import{i as p,a as f}from"./C5ZPfEU9.js";import{_ as h}from"./DWmHVYvg.js";import{E as y,bp as a,H as v,w as k,o as g,k as w,l as D,A as c,m as Y,b as n,d as b,y as M,z as W}from"./Gr-bj_Fw.js";import"./BWnj2Sz1.js";import"./I-7XaS_5.js";import"./CSXEVAKW.js";const S=y({__name:"firstaiders",async setup($){let o,l;a.extend(p);const t=v({date:a().date(),week:a().isoWeek(),month:a().month(),year:a().year()}),r=c(["Union","Nightlife","Surrey Belonging","Support","Team Surrey"]),_=c([]);async function u(){let e,s;e=a().year(t.year).month(t.month).isoWeek(t.week).startOf("isoweek").format("YYYY-MM-DD")+"T00:00:00",s=a().year(t.year).month(t.month).isoWeek(t.week).endOf("isoweek").format("YYYY-MM-DD")+"T23:59:59";const i=["id","title","slug","start_date","end_date","hide_on","category.*.*","virtual_event","clubs_socs.title","location.title","other_location","tickets","tags.event_tags_id.id","tags.event_tags_id.title"],d=`events-${e}-${s}-${r.value?.join(",")??""}`,{data:m}=await b(d,()=>M(W("events",{limit:500,fields:i,filter:{_or:[{start_date:{_between:[e,s]}},{end_date:{_between:[e,s]}},{_and:[{start_date:{_lt:e}},{end_date:{_gt:s}}]}],status:{_eq:"published"},...r.value.length>0?{category:{title:{_in:r.value}}}:{}},sort:["start_date","-hide_on","end_date"],lazy:!0})),"$pRJ1CIMWKM");return m}return _.value=([o,l]=k(()=>u()),o=await o,l(),o),(e,s)=>{const i=f,d=h;return g(),w(d,null,{default:D(()=>[Y(i,{"selected-values":n(t),filters:n(r),events:("unref"in e?e.unref:n(n))(n(_)),"onUpdate:path":e.updatePath,"onUpdate:date":e.selectDate,class:"p-4 !h-screen"},null,8,["selected-values","filters","events","onUpdate:path","onUpdate:date"])]),_:1})}}});
1export{S as default};
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.