import{a as h}from"./chunk-MXPZDWKY.js";import{a as n,b as a}from"./chunk-CMCTAGIA.js";import{Q as o,W as s}from"./chunk-MYCZEVHT.js";var T=(()=>{let r=class r{constructor(){this.ENDPOINT=h.apiEndpoint,this.http=s(a)}getEvents(e,t){return this.http.get(`${this.ENDPOINT}/get-availabilities?startTime=${e}Z&endTime=${t}Z`)}getHolidays(e,t){return this.http.get(`${this.ENDPOINT}/get-holidays?startTime=${e}Z&endTime=${t}Z`)}createEvent(e,t){let c=new n({Authorization:`Bearer ${t}`});return this.http.post(`${this.ENDPOINT}/create-event`,e,{headers:c})}checkToken(e){let t=new n({Authorization:`Bearer ${e}`});return this.http.post(`${this.ENDPOINT}/check-token`,{},{headers:t})}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();export{T as a};