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,c as tS,H as ul,a5 as fh,aM as AD,L as w,N as Sr,aN as r4,a9 as zt,f as QT,a0 as ks,a1 as Ny,a2 as Uu,A as Iw,a4 as Sy}from'./main-WUGO6e7n.js';import {E,Z}from'./chunk-CNrKvzXN.js';import {i,h}from'./chunk-jDc4gqau.js';import'./chunk-Bf2K6osz.js';import'./chunk-4Rs3CU3G.js';import'./chunk-DATJc-cZ.js';import'./chunk-22oEX_gu.js';var j,C=J(()=>{tS();ul();Ie();de();i();E();fh();AD();tS();j=(()=>{class o{constructor(){this.hasAccessToOnBoarding=!1,this.translateService=w(Sr),this.whatsNewService=w(h),this.onboardingService=w(Z),this.serverInformationService=w(r4),this.sections=[];}ngOnInit(){this.initMenu(),this.onboardingService.getSteps().pipe(zt(1)).subscribe(e=>{this.hasAccessToOnBoarding=(e||[]).length>0,this.initMenu();});}initMenu(){this.sections=[{label:this.translateService.translate("lblAppsAndCompanionTools"),items:[{label:this.translateService.translate("DevolutionsWorkspace"),icon:"dvl-icon-logo-workspace",command:()=>window.open("https://redirection.devolutions.com/5e01e501-7b16-48b8-a058-9b914a20307d","_blank")},{label:this.translateService.translate("DevolutionsPowerShell"),icon:"dvl-icon-logo-hub-cli",command:()=>window.open("https://redirection.devolutions.com/Devolutions.PowerShell","_blank")},{label:this.translateService.translate("DevolutionsGateway"),icon:"dvl-icon-logo-gateway",command:()=>window.open("https://redirection.devolutions.com/ea6ea152-743a-4025-b358-ce9b5debc910","_blank")},{label:this.translateService.translate("lblApiDocumentation"),icon:"dvl-icon-documentation-group-2",link:"/api-documentation"},{label:"im the design system",icon:"dvl-icon-tools",link:"/ui/design-system",condition:()=>this.serverInformationService.isFeatureFlagEnabled("designSystem")}]},{label:this.translateService.translate("lblSupportCenter"),items:[{label:this.translateService.translate("lblDocumentation"),icon:"dvl-icon-logo-knowledge-base",command:()=>window.open("https://docs.devolutions.net/server/overview/devolutions-server","_blank")},{label:this.translateService.translate("lblForum"),icon:"dvl-icon-logo-forum",command:()=>window.open("https://redirection.devolutions.com/forum-dvls","_blank")},{label:this.translateService.translate("lblTipsAndTricks"),icon:"dvl-icon-tools",command:()=>window.open("https://redirection.devolutions.com/f230985a-67cd-433e-894f-8885786cec67","_blank")}]},{label:this.translateService.translate("lblReleaseNews"),items:[{label:this.translateService.translate("lblReleaseNotes"),icon:"dvl-icon-new-year",command:()=>this.showWhatsNewDashboard("releaseNotes")},{label:this.translateService.translate("lblWhatsNew"),icon:"dvl-icon-news",command:()=>this.showWhatsNewDashboard("whatsNews")},{label:this.translateService.translate("lblProductInsights"),icon:"dvl-icon-idea",command:()=>this.showWhatsNewDashboard("productInsights")}]},{label:this.translateService.translate("lblHowTos"),items:[{label:this.translateService.translate("lblOnboarding"),icon:"dvl-icon-onboarding-wizard",command:()=>this.onboardingService.toggleOnboarding(),condition:()=>this.hasAccessToOnBoarding}]}];}getComponentTitle(){return "lblHelpAndTools"}showWhatsNewDashboard(e){this.whatsNewService.toggleWhatsNew(!0,e);}static{this.\u0275fac=function(n){return new(n||o)};}static{this.\u0275cmp=QT({type:o,selectors:[["ng-component"]],decls:2,vars:1,consts:[["titlePage","lblHelpAndTools"],[3,"sections"]],template:function(n,u){n&1&&(ks(0,"dvl-page-wrapper-v2",0),Ny(1,"dvl-menu-dashboard",1),Uu()),n&2&&(Iw(),Sy("sections",u.sections));},dependencies:[Ge,De],encapsulation:2,changeDetection:1});}}return o})();});C();
export{j as ToolsDashboardComponent};