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