"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pagePathGetters = exports.PAGE_ROUTING_PATHS = void 0; /* * 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. */ // If routing paths are changed here, please also check to see if // `pagePathGetters()`, below, needs any modifications const PAGE_ROUTING_PATHS = { overview: '/', live_queries: '/live_queries', live_query_new: '/live_queries/new', live_query_details: '/live_queries/:liveQueryId', packs: '/packs', pack_add: '/packs/add', pack_details: '/packs/:packId', pack_edit: '/packs/:packId/edit' }; exports.PAGE_ROUTING_PATHS = PAGE_ROUTING_PATHS; const pagePathGetters = { base: () => '/', overview: () => '/', live_queries: () => '/live_queries', live_query_new: () => '/live_queries/new', live_query_details: ({ liveQueryId }) => `/live_queries/${liveQueryId}`, saved_queries: () => '/saved_queries', saved_query_new: () => '/saved_queries/new', saved_query_edit: ({ savedQueryId }) => `/saved_queries/${savedQueryId}`, packs: () => '/packs', pack_add: () => '/packs/add', pack_details: ({ packId }) => `/packs/${packId}`, pack_edit: ({ packId }) => `/packs/${packId}/edit` }; exports.pagePathGetters = pagePathGetters;