import{a as b,b as C}from"./chunk-YSE2ZHHQ.js";import{a as p,b as k}from"./chunk-ZUA53W37.js";import"./chunk-NIC3EEBE.js";import"./chunk-JFCKIVQK.js";import"./chunk-74XJ57PC.js";import{a as h,b as y}from"./chunk-NS2BWRZO.js";import"./chunk-Q2S5OAHE.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{B as g,C as A}from"./chunk-FYLDFXYJ.js";import"./chunk-EAIMSMGJ.js";import"./chunk-AIHAZUSZ.js";import"./chunk-TS62PHQY.js";import"./chunk-KADRYNDC.js";import"./chunk-PM3MTE6X.js";import"./chunk-HO2J6YLX.js";import{b as v,c as f}from"./chunk-IOINCEV4.js";import"./chunk-Z5RJRCWC.js";import{Eb as s,Gd as S,Ob as o,Sb as l,ec as r,qc as c,rc as d,sc as m,zb as a}from"./chunk-JSJB5BKT.js";import{e as u}from"./chunk-SZAW6ZBW.js";var G,D=u(()=>{y();k();C();S();f();A();G=(()=>{class n extends h{constructor(t,i){super(),this.translateService=t,this.serverInformationService=i,this.titleHeader=[{title:"lblAdministration",link:"/administration"},{title:"gbDPSSettings"}],this.sections=[]}get isAdmin(){return this.currentUserService.isAdministrator}ngOnInit(){super.ngOnInit(),this.createSectionsTemplate();let t=this.sectionsTemplate.filter(i=>i.items.some(e=>e.condition()));t.forEach(i=>i.items=i.items.filter(e=>e.condition())),this.sections=t}getComponentTitle(){return"gbDPSSettings"}createSectionsTemplate(){this.sectionsTemplate=[{label:this.translateService.translate("lblGeneral"),items:[{label:this.translateService.translate("gbGeneral"),icon:"dvl-icon-general-settings",link:"/administration/server-settings/general-settings",condition:()=>this.currentUserService.isAdministrator},{label:this.translateService.translate("gbAuthentication"),icon:"dvl-icon-logo-authenticator",link:"/administration/server-settings/authentication",condition:()=>this.isAdmin},{label:this.translateService.translate("gbEmail"),icon:"dvl-icon-email",link:"/administration/server-settings/email",condition:()=>this.isAdmin},{label:this.translateService.translate("gbLogging"),icon:"dvl-icon-logs",link:"/administration/server-settings/logging",condition:()=>this.isAdmin},{label:this.translateService.translate("gbFeatures"),icon:"dvl-icon-features",link:"/administration/server-settings/features",condition:()=>this.isAdmin},{label:this.translateService.translate("lblApproval"),icon:"dvl-icon-user-check",link:"/administration/server-settings/approval",condition:()=>this.isAdmin},{label:this.translateService.translate("lblAdvanced"),icon:"dvl-icon-advanced-settings",link:"/administration/server-settings/advanced",condition:()=>this.isAdmin}]},{label:this.translateService.translate("lblSecurity"),items:[{label:this.translateService.translate("gbTwoFactor"),icon:"dvl-icon-two-factor",link:"/administration/server-settings/two-factor",condition:()=>this.isAdmin},{label:this.translateService.translate("gbSecurity"),icon:"dvl-icon-security",link:"/administration/server-settings/security",condition:()=>this.isAdmin},{label:this.translateService.translate("gbGeoIPSecurity"),icon:"dvl-icon-geo-security",link:"/administration/server-settings/geo-ip",condition:()=>this.isAdmin},{label:this.translateService.translate("gbSecurityPolicies"),icon:"dvl-icon-security-policy",link:"/administration/server-settings/security-policies",condition:()=>this.isAdmin},{label:this.translateService.translate("gbUserBehaviorAnalytics"),icon:"dvl-icon dvl-icon-user-behavior-analytics",link:"/administration/server-settings/user-behavior-analytics",condition:()=>this.isAdmin}]}]}static{this.\u0275fac=function(i){return new(i||n)(s(v),s(g))}}static{this.\u0275cmp=o({type:n,selectors:[["ng-component"]],features:[l],decls:2,vars:2,consts:[[3,"titlePage"],[3,"sections"]],template:function(i,e){i&1&&(c(0,"dvl-page-wrapper-v2",0),m(1,"dvl-menu-dashboard",1),d()),i&2&&(r("titlePage",e.titleHeader),a(),r("sections",e.sections))},dependencies:[p,b],encapsulation:2})}}return n})()});D();export{G as ConfigurationDashboardComponent};
