import {y as y$1,W}from'./chunk-CcgY8k4A.js';import {m,d as d$1}from'./chunk-DJq5kNqD.js';import {S,R as R$1}from'./chunk-DgjB3m1L.js';import {J,a6 as pi,c as tS,bP as he,ad as ce,a5 as fh,eO as Es,ak as Jd,al as Kv,aa as ye,eR as mh,aS as g,aw as fa,aB as ce$1,aT as F,aJ as hf,ay as df,ah as ot}from'./main-WUGO6e7n.js';import {K,a as ae}from'./chunk-DH44G-5-.js';var y,d=J(()=>{pi();fh();tS();Es();S();y=(()=>{class e{constructor(r,t){this.pamAssetServices=r,this.errorService=t;}getJob(r){return this.handleError(this.pamAssetServices.AccountDiscoveryResults_GetScan(r))}getLastJobs(){return this.handleError(this.pamAssetServices.AccountDiscoveryResults_GetLastScans())}handleError(r,t=null){return r.pipe(Jd(p=>(this.errorService.handleError(p),Kv(t))))}static{this.\u0275fac=function(t){return new(t||e)(ye(mh),ye(R$1))};}static{this.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();});var x,R=J(()=>{pi();tS();x=(()=>{class e{constructor(){this.viewRequestSource=new he,this.refreshRequestSource=new he,this.viewRequest=this.viewRequestSource.asObservable(),this.refreshRequest=this.refreshRequestSource.asObservable();}openDialog(r){this.viewRequestSource.next(r);}refresh(){this.refreshRequestSource.next();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();});var c,b=J(()=>{fh();tS();K();d();c=(()=>{class t{constructor(e,i){this.networkDiscoveryService=e,this.discoveryJobService=i;}resolve(e,i){let C=e.paramMap.get("id"),r;return this.discoveryJobService.getJob(C).pipe(hf(o=>r=o),df(()=>this.networkDiscoveryService.get(r.scanConfigurationID)),ot(o=>({scanJob:r,scanConfiguration:o})))}static{this.\u0275fac=function(i){return new(i||t)(ye(ae),ye(y))};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});var Y,j=J(()=>{g();m();b();R();y$1();fa();Y=[{path:"",canActivate:[F,d$1],children:[{path:"scan-list",loadComponent:()=>import('./chunk-Cb5IBUEE.js').then(t=>t.ScansDashboardComponent),canActivate:[W],data:{permissions:[ce$1.PamProvidersScanView],isPamProviderDependant:!0}},{path:"scan-result/:id",loadComponent:()=>import('./chunk-DLJBfnJD.js').then(t=>t.ScanResultListPageComponent),resolve:{scanResultElements:c},providers:[x,c],canActivate:[W],data:{permissions:[ce$1.PamProvidersScanResultsView],isPamProviderDependant:!0}},{path:"",redirectTo:"scan-list",pathMatch:"full"}]}];});j();var chunkEQLD4DNI=/*#__PURE__*/Object.freeze({__proto__:null,get ACCOUNT_DISCOVERY_ROUTES(){return Y}});export{R,chunkEQLD4DNI as c,d,x,y};