"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.configureNavigation = void 0; var _common = require("@kbn/security-solution-plugin/common"); var _breadcrumbs = require("./breadcrumbs"); var _constants = require("./links/constants"); var _navigation_tree = require("./navigation_tree"); var _side_navigation = require("./side_navigation"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ const SECURITY_PROJECT_SETTINGS_PATH = `${_common.APP_PATH}${_constants.SecurityPagePath[_common.SecurityPageName.projectSettings]}`; const configureNavigation = (services, serverConfig) => { const { serverless, securitySolution, management } = services; securitySolution.setIsSidebarEnabled(false); if (!serverConfig.developer.disableManagementUrlRedirect) { management.setLandingPageRedirect(SECURITY_PROJECT_SETTINGS_PATH); } serverless.setProjectHome(_common.APP_PATH); serverless.setSideNavComponent((0, _side_navigation.getSecuritySideNavComponent)(services)); (0, _navigation_tree.subscribeNavigationTree)(services); (0, _breadcrumbs.subscribeBreadcrumbs)(services); }; exports.configureNavigation = configureNavigation;