1import{a2 as h,a5 as o,Y as c,X as r,$ as p,Z as i,a0 as l,a3 as u,O as D}from"./vendor-firebase-a557f106.js";class N{constructor(t){this.db=t,this.collectionName="blockoutDates"}async create(t){return(await h(c(this.db,this.collectionName),{...t,createdAt:o.now()})).id}async getUserBlockouts(t){const s=r(c(this.db,this.collectionName),i("userId","==",t),p("startDate","asc"));return(await l(s)).docs.map(e=>({id:e.id,...e.data()}))}async getTeamBlockouts(t,s,n){const e=o.fromDate(s),d=o.fromDate(n),m=r(c(this.db,this.collectionName),i("startDate",">=",e),i("startDate","<=",d));return(await l(m)).docs.map(a=>({id:a.id,...a.data()})).filter(a=>a.teamId===null||a.teamId===t)}async delete(t){await u(D(this.db,this.collectionName,t))}}export{N as FirebaseBlockoutDateRepository};
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.