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