"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.sections = exports.introductionSteps = exports.getSections = void 0; var _react = _interopRequireDefault(require("react")); var _types = require("./types"); var i18n = _interopRequireWildcard(require("./translations")); var _explore = _interopRequireDefault(require("./images/explore.svg")); var _product = require("../../common/product"); var _fleet_overview_link = require("./step_links/fleet_overview_link"); var _endpoint_management_link = require("./step_links/endpoint_management_link"); var _integrations_link = require("./step_links/integrations_link"); var _rules_management_link = require("./step_links/rules_management_link"); var _overview_link = require("./step_links/overview_link"); var _alerts_link = require("./step_links/alerts_link"); var _explore_link = require("./step_links/explore_link"); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /* * 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 introductionSteps = [{ id: _types.IntroductionSteps.getToKnowElasticSecurity, title: i18n.INTRODUCTION_STEP1, description: [i18n.INTRODUCTION_STEP1_DESCRIPTION1, i18n.INTRODUCTION_STEP1_DESCRIPTION2], splitPanel: /*#__PURE__*/_react.default.createElement("iframe", { allowFullScreen: true, className: "vidyard_iframe", frameBorder: "0", height: "100%", referrerPolicy: "no-referrer", sandbox: "allow-scripts allow-same-origin", scrolling: "no", src: "//play.vidyard.com/K6kKDBbP9SpXife9s2tHNP.html?", title: i18n.WATCH_OVERVIEW_VIDEO_HEADER, width: "100%" }), timeInMinutes: 3 }]; exports.introductionSteps = introductionSteps; const configureSteps = [{ id: _types.ConfigureSteps.learnAbout, title: i18n.CONFIGURE_STEP1, description: [/*#__PURE__*/_react.default.createElement(_fleet_overview_link.FleetOverviewLink, null)] }, { id: _types.ConfigureSteps.deployElasticAgent, title: i18n.CONFIGURE_STEP2, description: [i18n.CONFIGURE_STEP2_DESCRIPTION1, /*#__PURE__*/_react.default.createElement(_endpoint_management_link.EndpointManagementLink, null)] }, { id: _types.ConfigureSteps.connectToDataSources, title: i18n.CONFIGURE_STEP3, description: [i18n.CONFIGURE_STEP3_DESCRIPTION1, /*#__PURE__*/_react.default.createElement(_integrations_link.IntegrationsLink, null)], productLineRequired: [_product.ProductLine.security] }, { id: _types.ConfigureSteps.enablePrebuiltRules, title: i18n.CONFIGURE_STEP4, description: [i18n.CONFIGURE_STEP4_DESCRIPTION1, /*#__PURE__*/_react.default.createElement(_rules_management_link.RulesManagementLink, null)] }]; const exploreSteps = [{ id: _types.ExploreSteps.viewAlerts, title: i18n.EXPLORE_STEP1, description: [i18n.EXPLORE_STEP1_DESCRIPTION1, /*#__PURE__*/_react.default.createElement(_alerts_link.AlertsLink, null)] }, { id: _types.ExploreSteps.analyzeData, title: i18n.EXPLORE_STEP2, description: [/*#__PURE__*/_react.default.createElement(_overview_link.OverviewLink, null), /*#__PURE__*/_react.default.createElement(_explore_link.ExploreLink, null)] }]; const sections = [{ id: _types.SectionId.getSetUp, title: i18n.GET_SET_UP_TITLE, cards: [{ title: i18n.INTRODUCTION_TITLE, icon: { type: 'securityApp', size: 'xl' }, id: _types.GetSetUpCardId.introduction, steps: introductionSteps }, { icon: { type: 'agentApp', size: 'xl' }, title: i18n.CONFIGURE_TITLE, id: _types.GetSetUpCardId.configure, steps: configureSteps }, { icon: { type: _explore.default, size: 'xl' }, title: i18n.EXPLORE_TITLE, id: _types.GetSetUpCardId.explore, steps: exploreSteps }] }]; exports.sections = sections; const getSections = () => sections; exports.getSections = getSections;