import{a as c}from"./chunk-ZTKV4AIV.js";import{h as a}from"./chunk-73IMXZSJ.js";import{K as s,Z as o,aa as p,ca as r,ha as l,i as h,m as n,na as u}from"./chunk-FWZCAEAJ.js";var j=(()=>{let e=class e{constructor(){this.url="/config/organisation",this.httpClient=u(a),this.triggerGet$=new h(!0)}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}/${c(t)}`).pipe(r(()=>this.triggerGet$.next(!0)))}getAll$(){return this.triggerGet$.pipe(p(()=>this.httpClient.get(this.url)),o(1),s(()=>n))}getSingle$(t){return this.triggerGet$.pipe(p(()=>this.httpClient.get(`${this.url}/${t}`)))}};e.\u0275fac=function(g){return new(g||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{j as a};
