import {d as de,D as De}from'./chunk-SJVUJ_cW.js';import {I as Ie,G as Ge}from'./chunk-Ctuz9302.js';import {J,aw as fa,c as tS,H as ul,aB as ce,w as wo,N as Sr,f as QT,a0 as ks,a1 as Ny,a2 as Uu,a4 as Sy,A as Iw,bu as dy}from'./main-WUGO6e7n.js';import {S,A as A$1}from'./chunk-C-UoRr_7.js';import'./chunk-Bf2K6osz.js';import'./chunk-4Rs3CU3G.js';import'./chunk-DATJc-cZ.js';import'./chunk-22oEX_gu.js';import'./chunk-C5G179Xd.js';var A,P=J(()=>{S();Ie();de();fa();tS();ul();A=(()=>{class n extends A$1{constructor(e){super(),this.translateService=e,this.titleHeader=[{title:"lblAdministration",link:"/administration"},{title:"lblNotifications"}],this.sections=[];}ngOnInit(){super.ngOnInit(),this.createSectionsTemplate();let e=this.sectionsTemplate.filter(i=>i.items.some(t=>t.condition()));e.forEach(i=>i.items=i.items.filter(t=>t.condition())),this.sections=e;}getComponentTitle(){return "lblNotifications"}createSectionsTemplate(){this.sectionsTemplate=[{label:this.translateService.translate("lblNotifications"),items:[{label:this.translateService.translate("lblSubscribers"),icon:"dvl-icon-notifications-subscriber",link:"subscribers",condition:()=>this.currentUserService.hasPermission(ce.NotificationsSubscriberView)},{label:this.translateService.translate("lblSubscriberGroups"),icon:"dvl-icon-notifications-subscriber-group",link:"groups",condition:()=>this.currentUserService.hasPermission(ce.NotificationsSubscriberGroupView)},{label:this.translateService.translate("lblSubscriptions"),icon:"dvl-icon-notifications-bold",link:"subscriptions",condition:()=>this.currentUserService.hasPermission(ce.NotificationsSubscriptionsView)},{label:this.translateService.translate("lblUserSubscriptions"),icon:"dvl-icon-user-bold",link:"user-subscriptions",condition:()=>this.currentUserService.hasPermission(ce.NotificationsUserView)},{label:this.translateService.translate("lblWorkspaceNotifications"),icon:"dvl-icon-data-source",link:"workspace-notifications",condition:()=>this.currentUserService.hasPermission(ce.NotificationsWorkspaceView)}]}];}static{this.\u0275fac=function(i){return new(i||n)(wo(Sr))};}static{this.\u0275cmp=QT({type:n,selectors:[["ng-component"]],features:[dy],decls:2,vars:2,consts:[[3,"titlePage"],[3,"sections"]],template:function(i,t){i&1&&(ks(0,"dvl-page-wrapper-v2",0),Ny(1,"dvl-menu-dashboard",1),Uu()),i&2&&(Sy("titlePage",t.titleHeader),Iw(),Sy("sections",t.sections));},dependencies:[Ge,De],encapsulation:2,changeDetection:1});}}return n})();});P();export{A as NotificationsDashboardComponent};