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