import{d as m}from"./chunk-NP3DX5RH.js";import{Pc as c,U as e,X as s,pf as u}from"./chunk-LPALGY4Q.js";var f=(()=>{class t{constructor(r){this.restService=r}getStatusList(){return this.restService.get(c.STATUS,null)}static{this.\u0275fac=function(i){return new(i||t)(s(m))}}static{this.\u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var p=(()=>{class t{constructor(r){this.statusService=r}getStatusList(){return this.statusService.getStatusList()}static{this.\u0275fac=function(i){return new(i||t)(s(f))}}static{this.\u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var n=(()=>{class t{constructor(r){this.statusFacade=r}loadStatusList(){return u.isNullOrUndefined(this.statusList)?new Promise((r,i)=>{this.statusFacade.getStatusList().subscribe({next:o=>{this.statusList=o,r(o)},error:o=>{i(o)}})}):this.statusList}getStatus(r,i){return this.statusList.find(o=>o.statusType===r&&o.code===i)}clearStatusList(){this.statusList=null}static{this.\u0275fac=function(i){return new(i||t)(s(p))}}static{this.\u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var h=(()=>{class t{constructor(r){this.statusManager=r}resolve(){return this.statusManager.loadStatusList()}static{this.\u0275fac=function(i){return new(i||t)(s(n))}}static{this.\u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{n as a,h as b};
