/*! 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. */ (window.securitySolutionServerless_bundle_jsonpfunction=window.securitySolutionServerless_bundle_jsonpfunction||[]).push([[6],{141:function(e,t,s){e.exports=s.p+"39a27020a1e1eab14b3aab9ea7fd825b.svg"},142:function(e,t,s){e.exports=s.p+"312ec462915493752db18c2b0bc1be61.svg"},143:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMSIgeT0iMSIgd2lkdGg9IjIyIiBoZWlnaHQ9IjIyIiByeD0iMTEiIHN0cm9rZT0iI0QzREFFNiIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo="},144:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikljb24gbGVmdCIgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4OF8zNjUxMSkiPgo8cGF0aCBpZD0iR2x5cGgiIGQ9Ik02LjU1OTI5IDZMOC44ODQxNyAzLjY3NTEyQzkuMDM4NjEgMy41MjA2OCA5LjAzODYxIDMuMjcwMjggOC44ODQxNyAzLjExNTgzQzguNzI5NzIgMi45NjEzOSA4LjQ3OTMyIDIuOTYxMzkgOC4zMjQ4OCAzLjExNTgzTDYgNS40NDA3MUwzLjY3NTEyIDMuMTE1ODNDMy41MjA2OCAyLjk2MTM5IDMuMjcwMjggMi45NjEzOSAzLjExNTgzIDMuMTE1ODNDMi45NjEzOSAzLjI3MDI4IDIuOTYxMzkgMy41MjA2OCAzLjExNTgzIDMuNjc1MTJMNS40NDA3MSA2TDMuMTE1ODMgOC4zMjQ4OEMyLjk2MTM5IDguNDc5MzIgMi45NjEzOSA4LjcyOTcyIDMuMTE1ODMgOC44ODQxN0MzLjI3MDI4IDkuMDM4NjEgMy41MjA2OCA5LjAzODYxIDMuNjc1MTIgOC44ODQxN0w2IDYuNTU5MjlMOC4zMjQ4OCA4Ljg4NDE3QzguNDc5MzIgOS4wMzg2MSA4LjcyOTcyIDkuMDM4NjEgOC44ODQxNyA4Ljg4NDE3QzkuMDM4NjEgOC43Mjk3MiA5LjAzODYxIDguNDc5MzIgOC44ODQxNyA4LjMyNDg4TDYuNTU5MjkgNlpNNiAxMkMyLjY4NjI5IDEyIDAgOS4zMTM3MSAwIDZDMCAyLjY4NjI5IDIuNjg2MjkgMCA2IDBDOS4zMTM3MSAwIDEyIDIuNjg2MjkgMTIgNkMxMiA5LjMxMzcxIDkuMzEzNzEgMTIgNiAxMloiIGZpbGw9IiMwMDVFQzQiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xODhfMzY1MTEiPgo8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},145:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24tZGF0YS12aXN1YWxpemVyLTMyLWNvbG9yIj4KPGcgaWQ9Ikdyb3VwIDEzIj4KPHBhdGggaWQ9IkZpbGwgMSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yMi45NTE3IDEyLjA1MzdDMjIuOTgwNyAxMi4zNjU3IDIyLjk5OTcgMTIuNjgwNyAyMi45OTk3IDEyLjk5OTdDMjIuOTk5NyAxMy40ODk3IDIyLjk1MjcgMTMuOTY1NyAyMi44ODQ3IDE0LjQzNTdDMjQuMTc2NyAxNS41MzY3IDI0Ljk5OTcgMTcuMTczNyAyNC45OTk3IDE4Ljk5OTdDMjQuOTk5NyAyMi4zMDg3IDIyLjMwNzcgMjQuOTk5NyAxOC45OTk3IDI0Ljk5OTdDMTcuMTcyNyAyNC45OTk3IDE1LjUzNjcgMjQuMTc2NyAxNC40MzU3IDIyLjg4NDdDMTMuOTY1NyAyMi45NTI3IDEzLjQ4ODcgMjIuOTk5NyAxMi45OTk3IDIyLjk5OTdDMTIuNjgwNyAyMi45OTk3IDEyLjM2NDcgMjIuOTgxNyAxMi4wNTI3IDIyLjk1MTdDMTMuNDMxNyAyNS4zNjY3IDE2LjAyNjcgMjYuOTk5NyAxOC45OTk3IDI2Ljk5OTdDMjMuNDEwNyAyNi45OTk3IDI2Ljk5OTcgMjMuNDEwNyAyNi45OTk3IDE4Ljk5OTdDMjYuOTk5NyAxNi4wMjY3IDI1LjM2NTcgMTMuNDMyNyAyMi45NTE3IDEyLjA1MzdaIiBmaWxsPSIjMDBCRkIzIi8+CjxwYXRoIGlkPSJGaWxsIDMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMSAxMkgzVjNIMTJWMUgxVjEyWiIgZmlsbD0iIzUzNTc2NiIvPgo8cGF0aCBpZD0iRmlsbCA1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIwIDFWM0gyOVYxMkgzMVYxSDIwWiIgZmlsbD0iIzUzNTc2NiIvPgo8cGF0aCBpZD0iRmlsbCA3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTMgMjBIMVYzMUgxMlYyOUgzVjIwWiIgZmlsbD0iIzUzNTc2NiIvPgo8cGF0aCBpZD0iRmlsbCA5IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI5IDI5SDIwVjMxSDMxVjIwSDI5VjI5WiIgZmlsbD0iIzUzNTc2NiIvPgo8cGF0aCBpZD0iRmlsbCAxMSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMyA3QzkuNjkxIDcgNyA5LjY5MSA3IDEzQzcgMTYuMzA5IDkuNjkxIDE5IDEzIDE5QzE2LjMwOSAxOSAxOSAxNi4zMDkgMTkgMTNDMTkgOS42OTEgMTYuMzA5IDcgMTMgN1pNMTMgMjFDOC41ODkgMjEgNSAxNy40MTEgNSAxM0M1IDguNTg5IDguNTg5IDUgMTMgNUMxNy40MTEgNSAyMSA4LjU4OSAyMSAxM0MyMSAxNy40MTEgMTcuNDExIDIxIDEzIDIxWiIgZmlsbD0iIzUzNTc2NiIvPgo8L2c+CjwvZz4KPC9zdmc+Cg=="},361:function(e,t,s){"use strict";s.r(t),s.d(t,"GetStartedComponent",(function(){return mt})),s.d(t,"GetStarted",(function(){return kt}));var a=s(6),i=s(3),n=s.n(i),o=s(45),l=s(5),r=s(19),d=s.n(r),c=s(141),u=s.n(c),p=s(142),g=s.n(p),S=s(0);const j=S.i18n.translate("xpack.securitySolutionServerless.getStarted.title",{defaultMessage:"Welcome"}),x=S.i18n.translate("xpack.securitySolutionServerless.getStarted.subTitle",{defaultMessage:"Let's get started"}),v=S.i18n.translate("xpack.securitySolutionServerless.getStarted.description",{defaultMessage:"Set up your Elastic Security workspace. Use the toggles below to curate a list of tasks that best fits your environment"}),y=S.i18n.translate("xpack.securitySolutionServerless.getStarted.welcomePanel.projectCreated.title",{defaultMessage:"Project created"}),I=S.i18n.translate("xpack.securitySolutionServerless.getStarted.welcomePanel.projectCreated.description",{defaultMessage:"View all projects here."}),M=S.i18n.translate("xpack.securitySolutionServerless.getStarted.welcomePanel.inviteYourTeam.title",{defaultMessage:"Invite your team"}),b=S.i18n.translate("xpack.securitySolutionServerless.getStarted.welcomePanel.inviteYourTeam.description",{defaultMessage:"Boost security through collaboration"}),m=S.i18n.translate("xpack.securitySolutionServerless.getStarted.welcomePanel.progressTracker.title",{defaultMessage:"Progress tracker"}),k=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.getSetUp.title",{defaultMessage:"Get set up"}),f=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.introduction.title",{defaultMessage:"Introduction"}),O=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.introduction.step",{defaultMessage:"Get to know Elastic Security"}),h=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.introduction.step1.description1",{defaultMessage:"Elastic Security unifies analytics, EDR, cloud security capabilities, and more into a SaaS solution that helps you improve your organization’s security posture, defend against a wide range of threats, and prevent breaches.\n "}),C=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.introduction.step1.description2",{defaultMessage:"To explore the platform’s core features, watch the video:"}),T=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.productBadge.analytics",{defaultMessage:"Analytics"}),E=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.productBadge.cloud",{defaultMessage:"Cloud"}),D=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.productBadge.edr",{defaultMessage:"EDR"}),w=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.getToKnowElasticSecurity.header",{defaultMessage:"Elastic Security"}),P=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.title",{defaultMessage:"Configure"}),A=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step1",{defaultMessage:"Learn about Elastic Agent and Fleet"}),z=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step1.description1",{defaultMessage:"Elastic Agent is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more."}),N=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step2",{defaultMessage:"Deploy Elastic Defend to protect your endpoints"}),L=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step2.description1",{defaultMessage:"Elastic Defend provides organizations with prevention, detection, and response capabilities with deep visibility for EPP, EDR, SIEM, and Security Analytics use cases across Windows, macOS, and Linux operating systems running on both traditional endpoints and public cloud environments."}),F=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step3",{defaultMessage:"Connect to existing data sources"}),Z=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step3.description1",{defaultMessage:"Elastic integrations provide an easy way to connect Elastic to external services and systems, and quickly get insights or take action. They can collect new sources of data, and they often ship with out-of-the-box assets like dashboards, visualizations, and pipelines to extract structured fields out of logs and events."}),G=(S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step3.button.title",{defaultMessage:"Go to integrations"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step4",{defaultMessage:"Enable prebuilt rules or create your own"})),B=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step4.description1",{defaultMessage:"Rules run periodically and search for suspicious events, sequences, machine learning anomalies, and more! When a rule’s criteria are met, a detection alert is created."}),W=(S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.configure.step4.button.title",{defaultMessage:"Add Elastic rules"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.explore.title",{defaultMessage:"Explore"})),R=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.explore.step1",{defaultMessage:"View alerts"}),Y=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.explore.step1.description1",{defaultMessage:"The Alerts page displays all detection alerts following rule configuration from above. From the Alerts page, you can prioritize, triage, investigate alerts, and escalate alerts to a Case. Rules must be enabled for any alerts to be created."}),Q=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.explore.step2",{defaultMessage:"Analyze data dashboards"}),V=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.explore.step2.description1",{defaultMessage:"The Overview dashboard provides a high-level snapshot of alerts and events. It helps you assess overall system health and find anomalies that may require further investigation."}),U=(S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.protectYourEnvironmentInRealtime.title",{defaultMessage:"Protect your environment in realtime"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.getMoreFromElasticSecurity.title",{defaultMessage:"Get more from Elastic Security"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.masterTheInvestigationsWorkflow.step1",{defaultMessage:"Introduction to investigations"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.masterTheInvestigationsWorkflow.step2",{defaultMessage:"Explore process lineage with Analyzer"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.masterTheInvestigationsWorkflow.step3",{defaultMessage:"Explore user and process activity with Session View"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.masterTheInvestigationsWorkflow.step4",{defaultMessage:"Explore threat hunting in Timeline"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.masterTheInvestigationsWorkflow.step5",{defaultMessage:"Introduction to cases"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.respondToThreatsWithAutomation.step1",{defaultMessage:"Automate response actions with rules"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.respondToThreatsWithAutomation.step2",{defaultMessage:"Take control of your endpoints with the Response Console"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.optimizeYourWorkspace.step1",{defaultMessage:"Enable Threat Intelligence"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.optimizeYourWorkspace.step2",{defaultMessage:"Enable Entity Analytics"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.optimizeYourWorkspace.step3",{defaultMessage:"Create custom rules"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.optimizeYourWorkspace.step4",{defaultMessage:"Introduction to exceptions"}),S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.optimizeYourWorkspace.step5",{defaultMessage:"Connect notification systems to get alerts in real-time"}),S.i18n.translate("xpack.securitySolutionServerless.getStartedProductLabel.title",{defaultMessage:"Curate your Get Started experience:"})),X=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.switch.analytics.label",{defaultMessage:"Analytics"}),H=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.switch.cloud.label",{defaultMessage:"Cloud Security"}),J=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.switch.endpoint.label",{defaultMessage:"Endpoint Security"}),K=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.markAsDoneTitle",{defaultMessage:"Mark as done"}),_=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.undoMarkAsDoneTitle",{defaultMessage:"Undo 'mark as done'"}),q=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.empty.title",{defaultMessage:"Hmm, there doesn't seem to be anything there"}),$=S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.empty.description",{defaultMessage:'Switch on a toggle to continue your curated "Get Started" experience'});var ee=s(27),te={name:"yvxe8y",styles:"font-wight:bold;color:black"};const se=({totalActiveSteps:e,totalStepsLeft:t})=>{return null!=e&&null!=t?Object(l.jsx)(n.a.Fragment,null,Object(l.jsx)("strong",{css:te},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.welcomePanel.progressTracker.description",defaultMessage:"{done} of {total} ",values:{done:e-t,total:e}})),(s=e,S.i18n.translate("xpack.securitySolutionServerless.getStarted.welcomePanel.progressTracker.note",{defaultMessage:"{tasks, plural, =1 {task} other {tasks}} completed",values:{tasks:s}}))):null;var s},ae=n.a.memo(se),ie=[{icon:{type:"checkInCircleFilled",color:"#00BFB3"},title:y,description:()=>I,id:"projectCreated"},{icon:{type:g.a},title:M,description:()=>b,id:"inviteYourTeam"},{icon:{type:u.a},title:m,id:"progressTracker",description:({totalActiveSteps:e,totalStepsLeft:t})=>Object(l.jsx)(ae,{totalActiveSteps:e,totalStepsLeft:t})}];var ne={name:"1x5xd7q",styles:"font-size:19px"};const oe=({totalActiveSteps:e,totalStepsLeft:t})=>{const{euiTheme:s}=Object(a.useEuiTheme)();return Object(l.jsx)(a.EuiFlexGroup,{css:Object(l.css)("gap:",s.size.xl,";","")},ie.map(((i,n)=>{var o;return Object(l.jsx)(a.EuiFlexItem,{key:`set-up-card-${n}`},Object(l.jsx)(a.EuiCard,{layout:"horizontal",icon:i.icon?Object(l.jsx)(a.EuiIcon,d()({size:"xxl"},i.icon,{"data-test-subj":`${i.id}Icon`})):void 0,title:Object(l.jsx)(a.EuiTitle,{size:"s",css:ne},Object(l.jsx)("span",null,i.title)),description:Object(l.jsx)("span",{css:Object(l.css)("color:",s.colors.mediumShade,";","")},null==i||null===(o=i.description)||void 0===o?void 0:o.call(i,{totalActiveSteps:e,totalStepsLeft:t})),hasBorder:!0,paddingSize:"l"}))})))},le=n.a.memo(oe);var re=s(143),de=s.n(re),ce=s(144),ue=s.n(ce);let pe,ge,Se,je,xe,ve,ye;!function(e){e.getSetUp="getSetUp",e.getMoreFromElasticSecurity="getMoreFromElasticSecurity"}(pe||(pe={})),function(e){e.configure="configure",e.introduction="introduction",e.explore="explore"}(ge||(ge={})),function(e){e.analytics="analytics",e.cloud="cloud",e.edr="edr"}(Se||(Se={})),function(e){e.getToKnowElasticSecurity="getToKnowElasticSecurity"}(je||(je={})),function(e){e.learnAbout="learnAbout",e.deployElasticAgent="deployElasticAgent",e.connectToDataSources="connectToDataSources",e.enablePrebuiltRules="enablePrebuiltRules"}(xe||(xe={})),function(e){e.viewAlerts="viewAlerts",e.analyzeData="analyzeData"}(ve||(ve={})),function(e){e.AddFinishedStep="addFinishedStep",e.RemoveFinishedStep="removeFinishedStep",e.ToggleProduct="toggleProduct",e.ToggleExpandedCardStep="toggleExpandedCardStep"}(ye||(ye={}));var Ie=s(145),Me=s.n(Ie),be=s(16);const me=()=>Object(l.jsx)(n.a.Fragment,null,Object(l.jsx)(n.a.Fragment,null,z," "),Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step1.description1.linkText",defaultMessage:"Go {here} to learn more!",values:{here:Object(l.jsx)(a.EuiLink,{href:"https://www.elastic.co/guide/en/fleet/current/fleet-overview.html",target:"_blank"},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step1.description1.link",defaultMessage:"here"}))}})),ke=n.a.memo(me);var fe=s(20),Oe=s(2);const he=()=>{const e=Object(fe.d)(),t=Object(i.useCallback)((e=>{}),[]),{onClick:s}=e({id:Oe.c.endpoints,onClick:t});return Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step2.description2.linkText",defaultMessage:"Navigate to {link} to follow a step through installation guide",values:{link:Object(l.jsx)(fe.a,{onClick:s,id:Oe.c.endpoints},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step2.description2.link",defaultMessage:"Endpoint Management"}))}})},Ce=n.a.memo(he),Te=()=>{const{getAppUrl:e,navigateTo:t}=Object(Oe.g)(),s=e({appId:"integrations",path:"/browse/security"}),n=Object(i.useCallback)((e=>{e.preventDefault(),t({url:s})}),[t,s]);return Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step3.description2.linkText",defaultMessage:"Go to {integrations} to ingest your own data!",values:{integrations:Object(l.jsx)(a.EuiLink,{onClick:n,href:s},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step3.description2.link",defaultMessage:"Integrations"}))}})},Ee=n.a.memo(Te),De=()=>{const e=Object(fe.d)(),t=Object(i.useCallback)((e=>{}),[]),{onClick:s}=e({id:Oe.c.rules,onClick:t});return Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step4.description2.linkText",defaultMessage:"Visit the {link} to enable Elastic prebuild rules or create your own!",values:{link:Object(l.jsx)(fe.a,{onClick:s,id:Oe.c.rules},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.configure.step4.description2.link",defaultMessage:"rule management page"}))}})},we=n.a.memo(De),Pe=()=>{const e=Object(fe.d)(),t=Object(i.useCallback)((e=>{}),[]),{onClick:s}=e({id:Oe.c.overview,onClick:t});return Object(l.jsx)(n.a.Fragment,null,V,Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.explore.step2.description1.linkText",defaultMessage:"Visit the {link} now to confirm your organization is secure!",values:{link:Object(l.jsx)(fe.a,{onClick:s,id:Oe.c.overview},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.explore.step2.description1.link",defaultMessage:"Start here"}))}}))},Ae=n.a.memo(Pe),ze=()=>{const e=Object(fe.d)(),t=Object(i.useCallback)((e=>{}),[]),{onClick:s}=e({id:Oe.c.alerts,onClick:t});return Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.explore.step1.description2.linkText",defaultMessage:"Visit the {link} now to confirm your organization is secure!",values:{link:Object(l.jsx)(fe.a,{onClick:s,id:Oe.c.alerts},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.explore.step1.description2.link",defaultMessage:"alerts page"}))}})},Ne=n.a.memo(ze),Le=()=>{const e=Object(fe.d)(),t=Object(i.useCallback)((e=>{}),[]),{onClick:s}=e({id:Oe.c.exploreLanding,onClick:t});return Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.explore.step2.description2.linkText",defaultMessage:"Looking to start threat hunting? View the {link} to see a comprehensive overview of related security events for Host, Network, and User activity. Here key performance indicator (KPI) charts, data tables, and interactive widgets let you view specific data, drill down for deeper insights, and interact with Timeline for further investigation",values:{link:Object(l.jsx)(fe.a,{id:Oe.c.exploreLanding,onClick:s},Object(l.jsx)(ee.FormattedMessage,{id:"xpack.securitySolutionServerless.getStarted.togglePanel.explore.step2.description2.link",defaultMessage:"Explore pages"}))}})},Fe=n.a.memo(Le),Ze=[{id:je.getToKnowElasticSecurity,title:O,description:[h,C],splitPanel:Object(l.jsx)("iframe",{allowFullScreen:!0,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:w,width:"100%"}),timeInMinutes:3}],Ge=[{id:xe.learnAbout,title:A,description:[Object(l.jsx)(ke,null)]},{id:xe.deployElasticAgent,title:N,description:[L,Object(l.jsx)(Ce,null)]},{id:xe.connectToDataSources,title:F,description:[Z,Object(l.jsx)(Ee,null)],productLineRequired:[be.a.security]},{id:xe.enablePrebuiltRules,title:G,description:[B,Object(l.jsx)(we,null)]}],Be=[{id:ve.viewAlerts,title:R,description:[Y,Object(l.jsx)(Ne,null)]},{id:ve.analyzeData,title:Q,description:[Object(l.jsx)(Ae,null),Object(l.jsx)(Fe,null)]}],We=[{id:pe.getSetUp,title:k,cards:[{title:f,icon:{type:"securityApp",size:"xl"},id:ge.introduction,steps:Ze},{icon:{type:"agentApp",size:"xl"},title:P,id:ge.configure,steps:Ge},{icon:{type:Me.a,size:"xl"},title:W,id:ge.explore,steps:Be}]}],Re=()=>We,Ye=(e,t)=>{var s;return null!==(s=null==e?void 0:e.reduce(((e,{timeInMinutes:s,id:a})=>e+(t.has(a)?0:null!=s?s:0)),0))&&void 0!==s?s:0},Qe=(e,t)=>{var s,a;return(null!==(s=null==e?void 0:e.length)&&void 0!==s?s:0)-(null!==(a=t.size)&&void 0!==a?a:0)},Ve=(e,t)=>null==e?void 0:e.filter((e=>((e,t)=>{var s;return!e.productLineRequired||(null===(s=e.productLineRequired)||void 0===s?void 0:s.some((e=>t.has(e))))})(e,t))),Ue=(e,t)=>{const s=null==e?void 0:e.reduce(((e,s)=>{const a=null==t?void 0:t.find((e=>s===e));return a&&e.push(a),e}),[]);return new Set(s)},Xe=({cardId:e,sectionId:t})=>{const s=Re().find((({id:e})=>e===t)),a=null==s?void 0:s.cards;return null==a?void 0:a.find((({id:t})=>t===e))},He=({activeProducts:e,cardId:t,sectionId:s})=>{const a=Xe({cardId:t,sectionId:s});return Ve(null==a?void 0:a.steps,e)},Je=(e,t)=>t.size>0?Re().reduce(((s,a)=>{var i,n;const o=null!==(i=null===(n=a.cards)||void 0===n?void 0:n.reduce(((a,i)=>{var n;const o=Ve(i.steps,t),l=null==o?void 0:o.map((({id:e})=>e)),r=Ue(e[i.id]?[...e[i.id]]:void 0,l),d=Ye(o,r),c=Qe(o,r);return s.totalStepsLeft+=c,s.totalActiveSteps+=null!==(n=null==l?void 0:l.length)&&void 0!==n?n:0,a[i.id]={id:i.id,timeInMins:d,stepsLeft:c,activeStepIds:l},a}),{}))&&void 0!==i?i:{};return Object.keys(o).length>0&&(s.activeSections[a.id]=o),s}),{activeSections:{},totalStepsLeft:0,totalActiveSteps:0}):{activeSections:null,totalStepsLeft:null,totalActiveSteps:null},Ke=({activeProducts:e,activeSections:t,cardId:s,finishedSteps:a,sectionId:i})=>{const n=t?t[i]:void 0,o=n?n[s]:void 0;if(!o||!t)return{activeSections:t,totalActiveSteps:null,totalStepsLeft:null};const l=He({activeProducts:e,cardId:s,sectionId:i}),r=o.activeStepIds,d=Ue(a[s]?[...a[s]]:void 0,r),c=Ye(l,d),u=Qe(l,d),p={...t,[i]:{...t[i],[s]:{id:s,timeInMins:c,stepsLeft:u,activeStepIds:r}}},{totalStepsLeft:g,totalActiveSteps:S}=Object.values(p).reduce(((e,t)=>(Object.values(t).forEach((t=>{var s,a;e.totalStepsLeft+=t.stepsLeft,e.totalActiveSteps+=null!==(s=null==t||null===(a=t.activeStepIds)||void 0===a?void 0:a.length)&&void 0!==s?s:0}),{totalStepsLeft:0,totalActiveSteps:0}),e)),{totalStepsLeft:0,totalActiveSteps:0});return{activeSections:p,totalStepsLeft:g,totalActiveSteps:S}},_e={id:Se.analytics,name:T},qe={id:Se.cloud,name:E},$e={id:Se.edr,name:D},et={[be.a.security]:_e,[be.a.cloud]:qe,[be.a.endpoint]:$e};var tt={name:"uj5xqj",styles:"align-items:end"},st={name:"e0dnmk",styles:"cursor:pointer"};const at=({activeProducts:e,cardId:t,expandedSteps:s,finishedStepsByCard:o=new Set,onStepButtonClicked:r,onStepClicked:d,sectionId:c,stepId:u})=>{var p;const{euiTheme:g}=Object(a.useEuiTheme)(),S=s.has(u),j=Object(i.useMemo)((()=>He({activeProducts:e,cardId:t,sectionId:c})),[e,t,c]),{title:x,productLineRequired:v,description:y,splitPanel:I}=null!==(p=null==j?void 0:j.find((e=>e.id===u)))&&void 0!==p?p:{},M=Object(i.useMemo)((()=>(e=>(null!=e?e:[be.a.security,be.a.cloud,be.a.endpoint]).map((e=>et[e])))(v)),[v]),b=Object(i.useCallback)((e=>{e.preventDefault(),d({stepId:u,cardId:t,sectionId:c,isExpanded:!S})}),[t,S,d,c,u]),m=o.has(u),k=y||I,f=Object(i.useCallback)((e=>{e.preventDefault(),r({stepId:u,cardId:t,sectionId:c,undo:!!m})}),[t,m,r,c,u]);return Object(l.jsx)(a.EuiPanel,{color:"plain",grow:!1,hasShadow:!1,borderRadius:"none",paddingSize:"l"},Object(l.jsx)(a.EuiFlexGroup,{gutterSize:"s",css:st},Object(l.jsx)(a.EuiFlexItem,{grow:!1,onClick:b},Object(l.jsx)(a.EuiIcon,{"data-test-subj":`${u}-icon`,type:m?"checkInCircleFilled":de.a,size:"m",color:g.colors.success})),Object(l.jsx)(a.EuiFlexItem,{grow:1,onClick:b},Object(l.jsx)("strong",null,Object(l.jsx)("span",{css:Object(l.css)("padding-right:",g.size.m,";","")},x),M.map((e=>Object(l.jsx)(a.EuiBadge,{key:`${u}-badge-${e.id}`,color:"hollow"},e.name))))),Object(l.jsx)(a.EuiFlexItem,{grow:!1,css:tt},Object(l.jsx)("div",null,Object(l.jsx)(a.EuiButtonEmpty,{color:"primary",iconType:m?ue.a:"checkInCircleFilled",size:"xs",css:Object(l.css)("border-radius:",g.border.radius.medium,";border:1px solid ",g.colors.lightShade,";.euiIcon{inline-size:",g.size.m,";}",""),onClick:f},m?_:K),Object(l.jsx)(a.EuiIcon,{size:"s",type:S?"arrowDown":"arrowRight",css:Object(l.css)("margin-left:",.375*g.base,"px;",""),onClick:b})))),S&&k&&Object(l.jsx)(n.a.Fragment,null,Object(l.jsx)(a.EuiSpacer,{size:"l"}),Object(l.jsx)(a.EuiSplitPanel.Outer,{direction:"row",color:"plain",grow:!1,hasShadow:!1,borderRadius:"none"},y&&Object(l.jsx)(a.EuiSplitPanel.Inner,{paddingSize:"none",css:Object(l.css)("padding-left:",g.size.l,";","")},Object(l.jsx)(a.EuiText,{size:"s"},null==y?void 0:y.map(((e,t)=>Object(l.jsx)("p",{"data-test-subj":`${u}-description-${t}`,key:`${u}-description-${t}`,className:"eui-displayBlock"},e))))),I&&Object(l.jsx)(a.EuiSplitPanel.Inner,{"data-test-subj":"split-panel",paddingSize:"none",css:Object(l.css)("padding-left:",g.size.m,";","")},I))))};at.displayName="CardStepComponent";const it=n.a.memo(at);var nt={name:"uj5xqj",styles:"align-items:end"},ot={name:"e0dnmk",styles:"cursor:pointer"};const lt=({activeProducts:e,activeStepIds:t,cardId:s,euiTheme:n,expandedCardSteps:o,finishedSteps:r,onCardClicked:c,onStepButtonClicked:u,onStepClicked:p,sectionId:g,shadow:j,stepsLeft:x,timeInMins:v})=>{var y,I;const M=Object(i.useMemo)((()=>Xe({cardId:s,sectionId:g})),[s,g]),b=null!==(y=null===(I=o[s])||void 0===I?void 0:I.isExpanded)&&void 0!==y&&y,m=Object(i.useMemo)((()=>{var e,t;return new Set(null!==(e=null===(t=o[s])||void 0===t?void 0:t.expandedSteps)&&void 0!==e?e:[])}),[s,o]),k=Object(i.useCallback)((e=>{e.preventDefault(),c({cardId:s,isExpanded:!b})}),[s,b,c]),f=null!=t&&t.length>0;return M&&f?Object(l.jsx)(a.EuiPanel,{hasBorder:!0,paddingSize:"m",css:Object(l.css)(null!=j?j:"",";","")},Object(l.jsx)(a.EuiFlexGroup,{gutterSize:"m",css:Object(l.css)("gap:14px;padding:",n.size.xxs," 10px;",""),direction:"column"},Object(l.jsx)(a.EuiFlexItem,{grow:!1},Object(l.jsx)(a.EuiFlexGroup,{onClick:k,css:ot},Object(l.jsx)(a.EuiFlexItem,{grow:!1},M.icon&&Object(l.jsx)(a.EuiIcon,d()({},M.icon,{className:"eui-alignMiddle"}))),Object(l.jsx)(a.EuiFlexItem,{grow:!0},Object(l.jsx)(a.EuiTitle,{size:"xxs",css:Object(l.css)("line-height:",2*n.base,"px;","")},Object(l.jsx)("h4",null,M.title))),(null!=v||null!=x)&&Object(l.jsx)(a.EuiFlexItem,{css:nt},Object(l.jsx)(a.EuiText,{size:"s",css:Object(l.css)("line-height:",2*n.base,"px;","")},null!=x&&x>0&&Object(l.jsx)("strong",null,(h=x,S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.progressTracker.stepsLeft",{defaultMessage:"{steps} {steps, plural, =1 {step} other {steps}} left",values:{steps:h}}))),null!=v&&v>0&&Object(l.jsx)("span",null," • ",(O=v,S.i18n.translate("xpack.securitySolutionServerless.getStarted.togglePanel.progressTracker.stepTimeMin",{defaultMessage:"About {min} {min, plural, =1 {min} other {mins}}",values:{min:O}}))))))),b&&f&&Object(l.jsx)(a.EuiFlexItem,null,[...t].map((t=>Object(l.jsx)(it,{activeProducts:e,cardId:M.id,expandedSteps:m,finishedStepsByCard:r[M.id],key:t,onStepButtonClicked:u,onStepClicked:p,sectionId:g,stepId:t})))))):null;var O,h};lt.displayName="CardItemComponent";const rt=n.a.memo(lt),dt=({finishedSteps:e,activeSections:t,activeProducts:s,expandedCardSteps:n,onCardClicked:o,onStepClicked:r,onStepButtonClicked:d})=>{const{euiTheme:c}=Object(a.useEuiTheme)(),u=Object(a.useEuiShadow)("s"),{setUpSections:p}=(({euiTheme:e,shadow:t=""})=>{const s=Object(i.useCallback)((({activeProducts:s,activeSections:i,expandedCardSteps:n,finishedSteps:o,onCardClicked:r,onStepButtonClicked:d,onStepClicked:c,sectionId:u})=>{var p;const g=null==i?void 0:i[u];return g?null===(p=Object.values(g))||void 0===p?void 0:p.map((i=>Object(l.jsx)(a.EuiFlexItem,{key:i.id},Object(l.jsx)(rt,{activeProducts:s,activeStepIds:i.activeStepIds,cardId:i.id,"data-test-subj":i.id,expandedCardSteps:n,euiTheme:e,finishedSteps:o,onCardClicked:r,onStepButtonClicked:d,onStepClicked:c,sectionId:u,shadow:t,stepsLeft:i.stepsLeft,timeInMins:i.timeInMins})))):null}),[e,t]);return{setUpSections:Object(i.useCallback)((({activeProducts:t,activeSections:i,expandedCardSteps:n,finishedSteps:o,onCardClicked:r,onStepButtonClicked:d,onStepClicked:c})=>Re().reduce(((u,p)=>{const g=s({activeProducts:t,activeSections:i,expandedCardSteps:n,finishedSteps:o,onCardClicked:r,onStepButtonClicked:d,onStepClicked:c,sectionId:p.id});return g&&g.length>0&&u.push(Object(l.jsx)(a.EuiPanel,{color:"plain",element:"div",grow:!1,paddingSize:"none",hasShadow:!1,borderRadius:"none",css:Object(l.css)("margin:",e.size.l," 0;",""),key:p.id,"data-test-subj":`section-${p.id}`},Object(l.jsx)(a.EuiTitle,{size:"xxs"},Object(l.jsx)("span",null,p.title)),Object(l.jsx)(a.EuiSpacer,{size:"m"}),Object(l.jsx)(a.EuiFlexGroup,{gutterSize:"m",direction:"column",css:Object(l.css)(e.size.base,";","")},g))),u}),[])),[e.size.base,e.size.l,s])}})({euiTheme:c,shadow:u}),g=p({activeProducts:s,activeSections:t,expandedCardSteps:n,finishedSteps:e,onCardClicked:o,onStepButtonClicked:d,onStepClicked:r});return Object(l.jsx)(a.EuiFlexGroup,{gutterSize:"none",direction:"column"},Object(l.jsx)(a.EuiFlexItem,{grow:1},s.size>0?g:Object(l.jsx)(a.EuiEmptyPrompt,{iconType:"magnifyWithExclamation",title:Object(l.jsx)("h2",null,q),body:Object(l.jsx)("p",null,$),css:Object(l.css)("padding:",5*c.base,"px 0;.euiEmptyPrompt__contentInner{max-width:none;}","")})))},ct=n.a.memo(dt),ut=[{id:be.a.security,label:X},{id:be.a.cloud,label:H},{id:be.a.endpoint,label:J}],pt=({onProductSwitchChanged:e,activeProducts:t,euiTheme:s})=>{const n=Object(i.useMemo)((()=>ut.map((i=>Object(l.jsx)(a.EuiSwitch,{key:i.id,"data-test-subj":i.id,label:i.label,onChange:()=>e(i),css:Object(l.css)("padding-left:",.625*s.base,"px;",""),checked:t.has(i.id)})))),[t,s.base,e]);return Object(l.jsx)(a.EuiPanel,{"data-test-subj":"product-switch",color:"plain",element:"div",grow:!1,paddingSize:"none",hasShadow:!1,css:Object(l.css)("padding:",1.25*s.base,"px 0;",""),borderRadius:"none"},Object(l.jsx)(a.EuiTitle,{size:"xxs",css:Object(l.css)("padding-right:",s.size.xs,";","")},Object(l.jsx)("strong",null,U)),Object(l.jsx)(a.EuiText,{size:"s",className:"eui-displayInline"},n))};pt.displayName="ProductSwitchComponent";const gt=pt,St=new(s(31).Storage)(localStorage),jt="ACTIVE_PRODUCTS",xt="FINISHED_STEPS",vt="EXPANDED_CARDS",yt={getActiveProductsFromStorage:()=>{const e=St.get(jt);return null!=e?e:[]},toggleActiveProductsInStorage:e=>{var t;const s=null!==(t=St.get(jt))&&void 0!==t?t:[],a=s.indexOf(e);return a<0?s.push(e):s.splice(a,1),St.set(jt,s),s},getFinishedStepsFromStorageByCardId:e=>{var t,s;return null!==(s=(null!==(t=St.get(xt))&&void 0!==t?t:{})[e])&&void 0!==s?s:[]},getAllFinishedStepsFromStorage:()=>{var e;return null!==(e=St.get(xt))&&void 0!==e?e:{}},addFinishedStepToStorage:(e,t)=>{var s,a;const i=null!==(s=St.get(xt))&&void 0!==s?s:{},n=null!==(a=i[e])&&void 0!==a?a:[];n.indexOf(t)<0&&(n.push(t),St.set(xt,{...i,[e]:n}))},removeFinishedStepFromStorage:(e,t)=>{var s,a;const i=null!==(s=St.get(xt))&&void 0!==s?s:{},n=null!==(a=i[e])&&void 0!==a?a:[],o=n.indexOf(t);o>=0&&n.splice(o,1),St.set(xt,{...i,[e]:n})},getAllExpandedCardStepsFromStorage:()=>{var e;return null!==(e=St.get(vt))&&void 0!==e?e:{}},addExpandedCardStepToStorage:(e,t)=>{var s;const a=null!==(s=St.get(vt))&&void 0!==s?s:{},i=a[e]?{...a[e],isExpanded:!0}:{isExpanded:!0,expandedSteps:[]};t&&i&&i.expandedSteps.indexOf(t)<0&&i.expandedSteps.push(t),St.set(vt,{...a,[e]:i})},removeExpandedCardStepFromStorage:(e,t)=>{var s;const a=null!==(s=St.get(vt))&&void 0!==s?s:{},i=a[e];if(i&&!t&&(i.isExpanded=!1),i&&t){const e=i.expandedSteps.indexOf(t);e>=0&&i.expandedSteps.splice(e,1)}St.set(vt,{...a,[e]:i})}},It=(e,t)=>{if(t.type===ye.ToggleProduct){const s=new Set([...e.activeProducts]);s.has(t.payload.section)?s.delete(t.payload.section):s.add(t.payload.section);const{activeSections:a,totalStepsLeft:i,totalActiveSteps:n}=Je(e.finishedSteps,s);return{...e,activeProducts:s,activeSections:a,totalStepsLeft:i,totalActiveSteps:n}}if(t.type===ye.AddFinishedStep){const s={...e.finishedSteps,[t.payload.cardId]:e.finishedSteps[t.payload.cardId]?new Set([...e.finishedSteps[t.payload.cardId]]):new Set};t.type===ye.AddFinishedStep&&s[t.payload.cardId].add(t.payload.stepId);const{activeSections:a,totalStepsLeft:i,totalActiveSteps:n}=Ke({activeProducts:e.activeProducts,activeSections:e.activeSections,cardId:t.payload.cardId,finishedSteps:s,sectionId:t.payload.sectionId});return{...e,finishedSteps:s,activeSections:a,totalStepsLeft:i,totalActiveSteps:n}}if(t.type===ye.RemoveFinishedStep){const s={...e.finishedSteps,[t.payload.cardId]:e.finishedSteps[t.payload.cardId]?new Set([...e.finishedSteps[t.payload.cardId]]):new Set};t.type===ye.RemoveFinishedStep&&s[t.payload.cardId].delete(t.payload.stepId);const{activeSections:a,totalStepsLeft:i,totalActiveSteps:n}=Ke({activeProducts:e.activeProducts,activeSections:e.activeSections,cardId:t.payload.cardId,finishedSteps:s,sectionId:t.payload.sectionId});return{...e,finishedSteps:s,activeSections:a,totalStepsLeft:i,totalActiveSteps:n}}var s,a;if(t.type===ye.ToggleExpandedCardStep&&null!=t.payload.isCardExpanded)return{...e,expandedCardSteps:{...e.expandedCardSteps,[t.payload.cardId]:{expandedSteps:null!==(s=null===(a=e.expandedCardSteps[t.payload.cardId])||void 0===a?void 0:a.expandedSteps)&&void 0!==s?s:[],isExpanded:t.payload.isCardExpanded}}};if(t.type===ye.ToggleExpandedCardStep&&null!=t.payload.isStepExpanded){var i,n,o;const s=new Set(null!==(i=[...null===(n=e.expandedCardSteps[t.payload.cardId])||void 0===n?void 0:n.expandedSteps])&&void 0!==i?i:[]);return!0===t.payload.isStepExpanded&&t.payload.stepId&&s.add(t.payload.stepId),!1===t.payload.isStepExpanded&&t.payload.stepId&&s.delete(t.payload.stepId),{...e,expandedCardSteps:{...e.expandedCardSteps,[t.payload.cardId]:{expandedSteps:[...s],isExpanded:null===(o=e.expandedCardSteps[t.payload.cardId])||void 0===o?void 0:o.isExpanded}}}}return e},Mt=1150;var bt={name:"5jhpii",styles:"top:0;right:0;bottom:0;left:0;position:absolute"};const mt=({productTypes:e})=>{const{euiTheme:t}=Object(a.useEuiTheme)(),s=Object(a.useEuiShadow)("s"),{onProductSwitchChanged:r,onCardClicked:d,onStepClicked:c,onStepButtonClicked:u,state:{activeProducts:p,activeSections:g,finishedSteps:S,totalActiveSteps:y,totalStepsLeft:I,expandedCardSteps:M}}=(({productTypes:e})=>{const{getAllFinishedStepsFromStorage:t,getActiveProductsFromStorage:s,toggleActiveProductsInStorage:a,addFinishedStepToStorage:n,removeFinishedStepFromStorage:o,addExpandedCardStepToStorage:l,removeExpandedCardStepFromStorage:r,getAllExpandedCardStepsFromStorage:d}=yt,c=Object(i.useMemo)((()=>(({finishedSteps:e})=>Object.entries(e).reduce(((e,[t,s])=>(s&&(e[t]=new Set(s)),e)),{}))({finishedSteps:t()})),[t]),u=Object(i.useMemo)((()=>{var t;const a=(({activeProducts:e})=>new Set(e))({activeProducts:s()});return a.size>0?a:null!==(t=new Set(e.map((({product_line:e})=>be.a[e]))))&&void 0!==t?t:new Set([be.a.security,be.a.endpoint,be.a.cloud])}),[s,e]),{activeSections:p,totalActiveSteps:g,totalStepsLeft:S}=Object(i.useMemo)((()=>(({activeProducts:e,finishedSteps:t})=>Je(t,e))({activeProducts:u,finishedSteps:c})),[u,c]),j=Object(i.useMemo)((()=>d()),[d]),[x,v]=Object(i.useReducer)(It,{activeProducts:u,activeSections:p,expandedCardSteps:j,finishedSteps:c,totalActiveSteps:g,totalStepsLeft:S}),y=Object(i.useCallback)((({stepId:e,cardId:t,sectionId:s,isExpanded:a})=>{v({type:ye.ToggleExpandedCardStep,payload:{stepId:e,cardId:t,isStepExpanded:a}}),a?(v({type:ye.AddFinishedStep,payload:{stepId:e,cardId:t,sectionId:s}}),n(t,e),l(t,e)):r(t,e)}),[l,n,r]);return{state:x,onCardClicked:Object(i.useCallback)((({cardId:e,isExpanded:t})=>{v({type:ye.ToggleExpandedCardStep,payload:{cardId:e,isCardExpanded:t}}),t?l(e):r(e)}),[l,r]),onStepClicked:y,onStepButtonClicked:Object(i.useCallback)((({stepId:e,cardId:t,sectionId:s,undo:a})=>{v({type:a?ye.RemoveFinishedStep:ye.AddFinishedStep,payload:{stepId:e,cardId:t,sectionId:s}}),a?o(t,e):n(t,e)}),[n,o]),onProductSwitchChanged:Object(i.useCallback)((e=>{v({type:ye.ToggleProduct,payload:{section:e.id}}),a(e.id)}),[a])}})({productTypes:e});return Object(l.jsx)(o.a,{restrictWidth:!1,contentBorder:!1,grow:!0,css:bt},Object(l.jsx)(o.a.Header,{restrictWidth:Mt,css:Object(l.css)("padding:0 ",2.25*t.base,"px;",""),pageTitle:Object(l.jsx)(a.EuiTitle,{size:"l",css:Object(l.css)("padding-left:",t.size.xs,";","")},Object(l.jsx)("span",null,j)),description:Object(l.jsx)(n.a.Fragment,null,Object(l.jsx)("strong",{className:"eui-displayBlock"},x),Object(l.jsx)("span",{className:"eui-displayBlock"},v))},Object(l.jsx)(le,{totalActiveSteps:y,totalStepsLeft:I})),Object(l.jsx)(o.a.Section,{bottomBorder:!1,grow:!0,restrictWidth:Mt,paddingSize:"none",css:Object(l.css)(s,";z-index:1;flex-grow:0;padding:0 ",2.25*t.base,"px;","")},Object(l.jsx)(gt,{onProductSwitchChanged:r,activeProducts:p,euiTheme:t})),Object(l.jsx)(o.a.Section,{bottomBorder:"extended",grow:!0,restrictWidth:Mt,paddingSize:"none",css:Object(l.css)("padding:0 ",2.25*t.base,"px;","")},Object(l.jsx)(ct,{finishedSteps:S,activeSections:g,activeProducts:p,expandedCardSteps:M,onStepClicked:c,onCardClicked:d,onStepButtonClicked:u})))};mt.displayName="GetStartedComponent";const kt=n.a.memo(mt);t.default=kt}}]);