/*! 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. */!function(e){function t(t){for(var n,r,i=t[0],o=t[1],c=0,a=[];cObject(i.jsx)(s.KibanaContextProvider,{services:e},Object(i.jsx)(r.a,{core:e},t)),c=()=>Object(s.useKibana)(),u=(e,t)=>({...e,...t}),a=(e,t)=>function(n){return Object(i.jsx)(o,{services:t},Object(i.jsx)(e,n))}},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/kibanaReact/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui},function(e,t){e.exports=__kbnSharedDeps__.KbnI18n},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/securitySolution/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return a}));var s=n(0);const r="securitySolutionUI";let i,o;!function(e){e.administration="administration",e.alerts="alerts",e.assets="assets",e.blocklist="blocklist",e.case="cases",e.caseConfigure="cases_configure",e.caseCreate="cases_create",e.cloudSecurityPostureBenchmarks="cloud_security_posture-benchmarks",e.cloudSecurityPostureDashboard="cloud_security_posture-dashboard",e.cloudSecurityPostureFindings="cloud_security_posture-findings",e.cloudSecurityPostureRules="cloud_security_posture-rules",e.cloudDefend="cloud_defend",e.cloudDefendPolicies="cloud_defend-policies",e.dashboards="dashboards",e.dataQuality="data_quality",e.detections="detections",e.detectionAndResponse="detection_response",e.endpoints="endpoints",e.eventFilters="event_filters",e.exceptions="exceptions",e.exploreLanding="explore",e.hostIsolationExceptions="host_isolation_exceptions",e.hosts="hosts",e.hostsAnomalies="hosts-anomalies",e.hostsRisk="hosts-risk",e.hostsEvents="hosts-events",e.investigations="investigations",e.kubernetes="kubernetes",e.landing="get_started",e.mlLanding="machine_learning-landing",e.network="network",e.networkAnomalies="network-anomalies",e.networkDns="network-dns",e.networkEvents="network-events",e.networkHttp="network-http",e.networkTls="network-tls",e.noPage="",e.overview="overview",e.policies="policy",e.projectSettings="project_settings",e.responseActionsHistory="response_actions_history",e.rules="rules",e.rulesAdd="rules-add",e.rulesCreate="rules-create",e.rulesLanding="rules-landing",e.sessions="sessions",e.threatIntelligence="threat_intelligence",e.timelines="timelines",e.timelinesTemplates="timelines-templates",e.trustedApps="trusted_apps",e.uncommonProcesses="uncommon_processes",e.users="users",e.usersAnomalies="users-anomalies",e.usersAuthentications="users-authentications",e.usersEvents="users-events",e.usersRisk="users-risk",e.entityAnalytics="entity_analytics",e.entityAnalyticsManagement="entity_analytics-management",e.coverageOverview="coverage-overview"}(i||(i={})),function(e){e.title="title",e.collapsibleTitle="collapsibleTitle",e.accordion="accordion",e.separator="separator"}(o||(o={}));var c=n(1);const u=Object(s.createContext)(null),a=({core:e,children:t})=>Object(c.jsx)(u.Provider,{value:e},t),l=()=>{const e=Object(s.useContext)(u);if(!e)throw new Error("Kibana services not found in navigation context");return e},d=()=>{const{navigateTo:e}=(()=>{const{navigateToApp:e,navigateToUrl:t}=l().application;return{navigateTo:Object(s.useCallback)((({url:n,appId:s=r,restoreScroll:i,...o})=>{i&&(()=>{const e=window.scrollY;window.addEventListener("scroll",(()=>window.scrollTo(0,e)),{once:!0})})(),n?t(n):e(s,o)}),[e,t])}})(),{getAppUrl:t}=(()=>{const{getUrlForApp:e}=l().application;return{getAppUrl:Object(s.useCallback)((({appId:t=r,...n})=>e(t,n)),[e])}})();return{navigateTo:e,getAppUrl:t}}},function(e,t,n){n(9),__kbnBundles__.define("plugin/securitySolutionEss/public",n,10)},function(e,t,n){n.p=window.__kbnPublicPath__.securitySolutionEss},function(e,t,n){"use strict";n.r(t),n.d(t,"plugin",(function(){return b}));var s=n(2),r=n(0),i=n(4),o=n(1);const c=Object(r.lazy)((()=>n.e(2).then(n.bind(null,63)))),u={display:"flex",margin:"auto"},a=()=>Object(o.jsx)(r.Suspense,{fallback:Object(o.jsx)(i.EuiLoadingLogo,{logo:"logoSecurity",size:"xl",style:u})},Object(o.jsx)(c,null));var l=n(6),d=n(5);const p=Object(r.lazy)((()=>n.e(1).then(n.bind(null,62)))),_=[{pageName:l.SecurityPageName.entityAnalytics,minimumLicenseRequired:"platinum",component:p}],f=[],g=[{id:"investigation_guide",minimumLicenseRequired:"platinum",message:("platinum",d.i18n.translate("xpack.securitySolutionEss.markdown.insight.upsell",{defaultMessage:"Upgrade to {requiredLicense} to make use of insights in investigation guides",values:{requiredLicense:"platinum"}}))}];class plugin_SecuritySolutionEssPlugin{setup(e,t){return{}}start(e,t){const{securitySolution:n,licensing:r}=t,i=Object(s.a)(e,t);return r.license$.subscribe((e=>{((e,t,n)=>{const r=_.reduce(((e,{pageName:r,minimumLicenseRequired:i,component:o})=>(t.hasAtLeast(i)||(e[r]=Object(s.c)(o,n)),e)),{}),i=f.reduce(((e,{id:n,minimumLicenseRequired:s,component:r})=>(t.hasAtLeast(s)||(e[n]=r),e)),{}),o=g.reduce(((e,{id:n,minimumLicenseRequired:s,message:r})=>(t.hasAtLeast(s)||(e[n]=r),e)),{});e.setPages(r),e.setSections(i),e.setMessages(o)})(n.getUpselling(),e,i)})),n.setGetStartedPage((e=>Object(s.c)(a,e))(i)),(e=>{const{chrome:t,securitySolution:n}=e;n.getBreadcrumbsNav$().subscribe((e=>{const n=[...e.leading,...e.trailing];n.length>0&&t.setBreadcrumbs((e=>{const t=e[e.length-1];return t?[...e.slice(0,-1),{...t,href:"",onClick:void 0}]:e})(n))}))})(i),{}}stop(){}}function b(e){return new plugin_SecuritySolutionEssPlugin}},function(e,t){e.exports=__kbnSharedDeps__.Classnames},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.EmotionCache},function(e,t){e.exports=__kbnSharedDeps_npm__},function(e,t){e.exports=__kbnSharedDeps__.TsLib}]);