import{a as v,b as k}from"./chunk-YSE2ZHHQ.js";import{a as u,b as f}from"./chunk-ZUA53W37.js";import"./chunk-NIC3EEBE.js";import"./chunk-JFCKIVQK.js";import"./chunk-74XJ57PC.js";import{a as h,b as P}from"./chunk-O7MF4VXY.js";import"./chunk-TRDH7I7Q.js";import"./chunk-EBCZUYJG.js";import"./chunk-6E4HH5ZO.js";import"./chunk-EXSN6QWV.js";import"./chunk-Y7NDNHP3.js";import"./chunk-J75YHVMQ.js";import"./chunk-4EQLHXW7.js";import"./chunk-DCSOZT4N.js";import"./chunk-5XZEGBWY.js";import"./chunk-AIHAZUSZ.js";import"./chunk-TS62PHQY.js";import"./chunk-KADRYNDC.js";import"./chunk-PM3MTE6X.js";import"./chunk-HO2J6YLX.js";import{b as p,c as S}from"./chunk-IOINCEV4.js";import"./chunk-Z5RJRCWC.js";import{Eb as o,Gd as b,Ob as r,Sb as l,ec as a,qc as c,rc as m,sc as d,zb as s}from"./chunk-JSJB5BKT.js";import{e as g}from"./chunk-SZAW6ZBW.js";var q,y=g(()=>{P();k();f();b();S();q=(()=>{class n extends h{constructor(t){super(),this.translateService=t,this.titleHeader=[{title:"lblAdministration",link:"/administration"},{title:"gbPrivilegeAccessManagement"}],this.sections=[],this.sectionsTemplate=[]}ngOnInit(){super.ngOnInit(),this.isPamManager=this.currentUserService.isAdministrator||this.currentUserService.accessSnapshot.hasAccessPamManageCredentials,this.createSectionsTemplate();let t=this.sectionsTemplate.filter(e=>e.items.some(i=>i.condition()));t.forEach(e=>e.items=e.items.filter(i=>i.condition())),this.sections=t}getComponentTitle(){return"gbPrivilegeAccessManagement"}createSectionsTemplate(){this.sectionsTemplate=[{label:this.translateService.translate("lblGeneral"),items:[{label:this.translateService.translate("lblProviders"),icon:"dvl-icon-access-provider",link:"providers",condition:()=>this.isPamManager},{label:this.translateService.translate("lblScanConfigurations"),icon:"dvl-icon-scan-network",link:"scan-configurations",condition:()=>this.isPamManager},{label:this.translateService.translate("lblPAMVaults"),icon:"dvl-icon-pam-vault",link:"/administration/vaults",queryParams:{vaultContentType:5},condition:()=>this.isPamManager},{label:this.translateService.translate("lblCheckoutRequests"),icon:"dvl-icon-check-out",link:"checkout-manager",condition:()=>!0},{label:this.translateService.translate("butPamQuickStart"),icon:"dvl-icon-quick-start",link:"quickstart",condition:()=>this.isPamManager},{label:this.translateService.translate("mnuPamPropagationScripts"),icon:"dvl-icon-pam-password-propagation",link:"propagation-script",condition:()=>this.isPamManager}]},{label:this.translateService.translate("lblSecurity"),items:[{label:this.translateService.translate("lblCheckoutPolicies"),icon:"dvl-icon-checkout-policies",link:"checkout-policies",condition:()=>this.isPamManager},{label:this.translateService.translate("lblAccountLifecyclePolicies"),icon:"dvl-icon-account-lifecycle-policy",link:"account-lifecycle-policies",condition:()=>this.isPamManager},{label:this.translateService.translate("gbOTPSettings"),icon:"dvl-icon-entry-otp",link:"otp",condition:()=>this.isPamManager},{label:this.translateService.translate("gbDefaultSecurity"),icon:"dvl-icon-security",link:"../data-source-settings/pam-vault-management",condition:()=>this.isPamManager},{label:this.translateService.translate("lblSettings"),icon:"dvl-icon-management-tool",link:"settings",condition:()=>this.isPamManager},{label:this.translateService.translate("lblSystemPermissions"),link:"/administration/data-source-permissions",queryParams:{section:"pam"},icon:"di dvl-icon-data-source-permissions",condition:()=>this.currentUserService.isAdministrator},{label:this.translateService.translate("gbUsagePolicies"),icon:"di dvl-icon-security-policy",link:"usage-policies",condition:()=>this.isPamManager}]}]}static{this.\u0275fac=function(e){return new(e||n)(o(p))}}static{this.\u0275cmp=r({type:n,selectors:[["ng-component"]],features:[l],decls:2,vars:2,consts:[[3,"titlePage"],[3,"sections"]],template:function(e,i){e&1&&(c(0,"dvl-page-wrapper-v2",0),d(1,"dvl-menu-dashboard",1),m()),e&2&&(a("titlePage",i.titleHeader),s(),a("sections",i.sections))},dependencies:[v,u],encapsulation:2})}}return n})()});y();export{q as PamConfigurationDashboardComponent};
