import{a as h}from"./chunk-LRBTTFB7.js";import{b as p}from"./chunk-FVVYD7H6.js";import{a as l}from"./chunk-ZTKV4AIV.js";import{h as a}from"./chunk-73IMXZSJ.js";import{aa as s,ca as c,ha as n,na as i,v as o}from"./chunk-FWZCAEAJ.js";var C=(()=>{let t=class t{constructor(){this.url="/config/waiter",this.httpClient=i(a),this.waitersService=i(h),this.selectedOrganisationService=i(p)}getAll$(){return o([this.waitersService.triggerGet$,this.selectedOrganisationService.selectedIdNotNull$]).pipe(s(([,e])=>this.httpClient.get(this.url,{params:{organisationId:e}})))}delete$(e){return this.httpClient.delete(`${this.url}/${l(e)}`).pipe(c(()=>this.waitersService.triggerGet$.next(!0)))}};t.\u0275fac=function(m){return new(m||t)},t.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{C as a};
