import{a as n}from"./chunk-ZTKV4AIV.js";import{h as l}from"./chunk-73IMXZSJ.js";import{aa as h,ca as r,ha as o,i as p,na as s}from"./chunk-FWZCAEAJ.js";var d=(()=>{let e=class e{constructor(){this.httpClient=s(l),this.url="/config/waiter",this.triggerGet$=new p(!0)}getAll$(){throw Error("Not implemented")}getSingle$(t){return this.httpClient.get(`${this.url}/${n(t)}`)}getByParent$(t){return this.triggerGet$.pipe(h(()=>this.httpClient.get(this.url,{params:{eventId:t}})))}create$(t){return this.httpClient.post(this.url,t).pipe(r(()=>this.triggerGet$.next(!0)))}update$(t){return this.httpClient.put(this.url,t).pipe(r(()=>this.triggerGet$.next(!0)))}delete$(t){return this.httpClient.delete(`${this.url}/${n(t)}`).pipe(r(()=>this.triggerGet$.next(!0)))}};e.\u0275fac=function(u){return new(u||e)},e.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{d as a};
