import{a as u}from"./chunk-OTTGGJZK.js";import{a as l}from"./chunk-ZTKV4AIV.js";import{h}from"./chunk-73IMXZSJ.js";import{aa as p,ca as r,ha as a,i as o,ma as n,u as c}from"./chunk-FWZCAEAJ.js";var G=(()=>{let e=class e{constructor(t,i){this.httpClient=t,this.activeSystemNotificationsService=i,this.url="/system-notification",this.triggerGet$=new o(!0)}getAll$(){return this.triggerGet$.pipe(p(()=>this.httpClient.get(`${this.url}/all`)))}getSingle$(t){return this.getAll$().pipe(c(i=>i.find(g=>g.id===t)))}create$(t){return this.httpClient.post(this.url,t).pipe(r(()=>{this.triggerGet$.next(!0),this.activeSystemNotificationsService.triggerGet$.next(!0)}))}update$(t){return this.httpClient.put(this.url,t).pipe(r(()=>{this.triggerGet$.next(!0),this.activeSystemNotificationsService.triggerGet$.next(!0)}))}delete$(t){return this.httpClient.delete(`${this.url}/${l(t)}`).pipe(r(()=>{this.triggerGet$.next(!0),this.activeSystemNotificationsService.triggerGet$.next(!0)}))}};e.\u0275fac=function(i){return new(i||e)(n(h),n(u))},e.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),N=["INFO","WARNING","DANGER","SUCCESS","NEUTRAL"];export{G as a,N as b};
