"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.DiscoverLogExplorerPlugin = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var _constants = require("../common/constants"); var _log_explorer_profile = require("./customizations/log_explorer_profile"); var _deep_links = require("./deep_links"); /* * 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. */ class DiscoverLogExplorerPlugin { constructor(context) { (0, _defineProperty2.default)(this, "config", void 0); this.config = context.config.get(); } setup() {} start(core, plugins) { const { discover, data } = plugins; discover.registerCustomizationProfile(_constants.LOG_EXPLORER_PROFILE_ID, { customize: (0, _log_explorer_profile.createLogExplorerProfileCustomizations)({ core, data }), deepLinks: [(0, _deep_links.getLogExplorerDeepLink)({ isVisible: this.config.featureFlags.deepLinkVisible })] }); } } exports.DiscoverLogExplorerPlugin = DiscoverLogExplorerPlugin;