import{Aj as h,Bj as x,s as l,t as P}from"./chunk-XBRJZCAD.js";import{g as u,h as G}from"./chunk-AIHAZUSZ.js";import{b as c,c as f}from"./chunk-IOINCEV4.js";import{Gd as d,O as i,ka as o,ma as R,na as v,r,sa as a,x as s,xa as p}from"./chunk-JSJB5BKT.js";import{e as S}from"./chunk-SZAW6ZBW.js";var C,y=S(()=>{R();P();v();d();G();f();x();C=(()=>{class n extends l{constructor(t,e,m){super(e,t),this.assetService=m}getDataSourceLogReport(t){return this.assetService.GetDatasourceLogs(t).pipe(o(e=>this.handleGetApiResult(e)),s(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportDataSourceLogReport(t){return this.assetService.GetDatasourceLogsExportFile(t).pipe(s(e=>new Blob([e],{type:"text/csv"})),i(()=>r(null)))}getPasswordAnalyzer(t,e=!1){return this.assetService.GetPasswordStrengthAnalysis(t,e)}getSystemPermissionsReport(t){return this.assetService.GetSystemPermissionsReport(t).pipe(o(e=>this.handleGetApiResult(e)),s(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportSystemPermissionsReport(t){return this.assetService.GetSystemPermissionsReportExport(t).pipe(s(e=>new Blob([e],{type:"text/csv"})),i(()=>r(null)))}getUserCentricGatewayPermissionsReport(t){return this.assetService.GetGatewayPermissionsReport(t).pipe(o(e=>this.handleGetApiResult(e)),s(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportUserCentricGatewayPermissionsReport(t){return this.assetService.GetGatewayPermissionsReportExport(t).pipe(s(e=>new Blob([e],{type:"text/csv"})),i(()=>r(null)))}getAdministratorPermissionsReport(t){return this.assetService.GetAdministratorPermissionsReport(t).pipe(o(e=>this.handleGetApiResult(e)),s(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportAdministratorPermissionsReport(t){return this.assetService.GetAdministratorPermissionsReportExport(t).pipe(s(e=>new Blob([e],{type:"text/csv"})),i(()=>r(null)))}getVaultPermissionsReport(t){return t.repositoryIds.length===0?r(null):this.assetService.GetVaultPermissionsReport(t).pipe(o(e=>this.handleGetApiResult(e)),s(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportVaultPermissionsReport(t){return this.assetService.GetVaultPermissionsReportExport(t).pipe(s(e=>new Blob([e],{type:"text/csv"})),i(()=>r(null)))}getConnectionsPermissionsReport(t){return t.vaultIds.length===0?r(null):this.assetService.GetConnectionsPermissionsReport(t).pipe(o(e=>this.handleGetApiResult(e)),s(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportConnectionsPermissionsReport(t){return this.assetService.GetConnectionsPermissionsReportExport(t).pipe(s(e=>new Blob([e],{type:"text/csv"})),i(()=>r(null)))}static{this.\u0275fac=function(e){return new(e||n)(p(u),p(c),p(h))}}static{this.\u0275prov=a({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})()});export{C as a,y as b};
