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