!function(e){function t(t){for(var n,i,s=t[0],r=t[1],o=0,d=[];ot.id===e))}getAppsEnabled(){return this.apps.filter((e=>e.enabled))}}},function(e,t,n){n.r(t);var a=__kbnBundles__.get("entry/core/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(a))},function(e,t){e.exports=__kbnSharedDeps__.Rxjs},function(e,t,n){n.r(t);var a=__kbnBundles__.get("plugin/kibanaUtils/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(a))},function(e,t){e.exports=__kbnSharedDeps_npm__},function(e,t,n){n(8),__kbnBundles__.define("plugin/management/public",n,9)},function(e,t,n){n.p=window.__kbnPublicPath__.management},function(e,t,n){"use strict";n.r(t),n.d(t,"plugin",(function(){return j})),n.d(t,"ManagementSection",(function(){return p.d})),n.d(t,"ManagementApp",(function(){return p.c})),n.d(t,"MANAGEMENT_APP_ID",(function(){return c}));var a=n(0),i=n.n(a),s=n(1),r=n(4),o=n(3);const c="management";class locator_ManagementAppLocatorDefinition{constructor(){i()(this,"id","MANAGEMENT_APP_LOCATOR"),i()(this,"getLocation",(async e=>{const t=`/${e.sectionId}${e.appId?"/"+e.appId:""}`;return{app:c,path:t,state:{}}}))}}var d=n(5),p=n(2);let u;!function(e){e.Ingest="ingest",e.Data="data",e.InsightsAndAlerting="insightsAndAlerting",e.Security="security",e.Kibana="kibana",e.Stack="stack"}(u||(u={}));const l=s.i18n.translate("management.sections.ingestTitle",{defaultMessage:"Ingest"}),g=s.i18n.translate("management.sections.ingestTip",{defaultMessage:"Manage how to transform data and load it into the cluster"}),m=s.i18n.translate("management.sections.dataTitle",{defaultMessage:"Data"}),h=s.i18n.translate("management.sections.dataTip",{defaultMessage:"Manage your cluster data and backups"}),b=s.i18n.translate("management.sections.insightsAndAlertingTitle",{defaultMessage:"Alerts and Insights"}),f=s.i18n.translate("management.sections.insightsAndAlertingTip",{defaultMessage:"Manage how to detect changes in your data"}),_=s.i18n.translate("management.sections.section.title",{defaultMessage:"Security"}),S=s.i18n.translate("management.sections.section.tip",{defaultMessage:"Control access to features and data"}),v=s.i18n.translate("management.sections.kibanaTitle",{defaultMessage:"Kibana"}),k=s.i18n.translate("management.sections.kibanaTip",{defaultMessage:"Customize Kibana and manage saved objects"}),y=s.i18n.translate("management.sections.stackTitle",{defaultMessage:"Stack"}),M=s.i18n.translate("management.sections.stackTip",{defaultMessage:"Manage your license and upgrade the Stack"}),A={id:u.Ingest,title:l,tip:g,order:0},w={id:u.Data,title:m,tip:h,order:1},P={id:u.InsightsAndAlerting,title:b,tip:f,order:2},E={id:"security",title:_,tip:S,order:3},x={id:u.Kibana,title:v,tip:k,order:4},D={id:u.Stack,title:y,tip:M,order:4},[O,T]=Object(d.createGetterSetter)("SectionsServiceStartPrivate");class management_sections_service_ManagementSectionsService{constructor(){i()(this,"definedSections",void 0),i()(this,"sections",new Map),i()(this,"getAllSections",(()=>[...this.sections.values()])),i()(this,"registerSection",(e=>{if(this.sections.has(e.id))throw Error(`ManagementSection '${e.id}' already registered`);const t=new p.d(e);return this.sections.set(e.id,t),t})),this.definedSections={ingest:this.registerSection(A),data:this.registerSection(w),insightsAndAlerting:this.registerSection(P),security:this.registerSection(E),kibana:this.registerSection(x),stack:this.registerSection(D)}}setup(){return{register:this.registerSection,section:{...this.definedSections}}}start({capabilities:e}){return this.getAllSections().forEach((t=>{if(e.management.hasOwnProperty(t.id)){const n=e.management[t.id];t.apps.forEach((e=>{const t=e.capabilitiesId||e.id;n.hasOwnProperty(t)&&!0!==n[t]&&e.disable()}))}})),T({getSectionsEnabled:()=>this.getAllSections().filter((e=>e.enabled))}),{}}}class plugin_ManagementPlugin{constructor(e){i()(this,"managementSections",new management_sections_service_ManagementSectionsService),i()(this,"appUpdater",new r.BehaviorSubject((()=>{const e=this.initializerContext.config.get(),t=o.AppNavLinkStatus[e.deeplinks.navLinkStatus];return{deepLinks:Object.values(this.managementSections.definedSections).map((e=>({id:e.id,title:e.title,navLinkStatus:t,deepLinks:e.getAppsEnabled().map((e=>({id:e.id,title:e.title,path:e.basePath,keywords:e.keywords,navLinkStatus:t})))})))}}))),i()(this,"hasAnyEnabledApps",!0),i()(this,"isSidebarEnabled$",new r.BehaviorSubject(!0)),i()(this,"landingPageRedirect$",new r.BehaviorSubject(void 0)),i()(this,"cardsNavigationConfig$",new r.BehaviorSubject({enabled:!1,hideLinksTo:[]})),this.initializerContext=e}setup(e,{home:t,share:a}){const i=this.initializerContext.env.packageInfo.version,r=a.url.locators.create(new locator_ManagementAppLocatorDefinition),d=this;return t&&t.featureCatalogue.register({id:"stack-management",title:s.i18n.translate("management.stackManagement.managementLabel",{defaultMessage:"Stack Management"}),description:s.i18n.translate("management.stackManagement.managementDescription",{defaultMessage:"Your center console for managing the Elastic Stack."}),icon:"managementApp",path:"/app/management",showOnHomePage:!1,category:"admin",visible:()=>this.hasAnyEnabledApps}),e.application.register({id:c,title:s.i18n.translate("management.stackManagement.title",{defaultMessage:"Stack Management"}),order:9040,euiIconType:"logoElastic",category:o.DEFAULT_APP_CATEGORIES.management,updater$:this.appUpdater,async mount(t){const{renderApp:a}=await n.e(1).then(n.bind(null,67)),[s]=await e.getStartServices();return a(t,{sections:O(),kibanaVersion:i,coreStart:s,setBreadcrumbs:s.chrome.setBreadcrumbs,isSidebarEnabled$:d.isSidebarEnabled$,cardsNavigationConfig$:d.cardsNavigationConfig$,landingPageRedirect$:d.landingPageRedirect$})}}),{sections:this.managementSections.setup(),locator:r}}start(e,t){return this.managementSections.start({capabilities:e.application.capabilities}),this.hasAnyEnabledApps=O().getSectionsEnabled().some((e=>e.getAppsEnabled().length>0)),this.hasAnyEnabledApps||this.appUpdater.next((()=>({status:o.AppStatus.inaccessible,navLinkStatus:o.AppNavLinkStatus.hidden}))),{setIsSidebarEnabled:e=>this.isSidebarEnabled$.next(e),setupCardsNavigation:({enabled:e,hideLinksTo:t})=>this.cardsNavigationConfig$.next({enabled:e,hideLinksTo:t}),setLandingPageRedirect:e=>this.landingPageRedirect$.next(e)}}}function j(e){return new plugin_ManagementPlugin(e)}},function(e,t){e.exports=__kbnSharedDeps__.React},function(e,t){e.exports=__kbnSharedDeps__.EmotionReact},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui},function(e,t){e.exports=__kbnSharedDeps__.Classnames},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.ReactRouterDom},function(e,t){e.exports=__kbnSharedDeps__.TsLib},function(e,t){e.exports=__kbnSharedDeps__.Lodash},function(e,t,n){n.r(t);var a=__kbnBundles__.get("plugin/kibanaReact/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(a))},function(e,t){e.exports=__kbnSharedDeps__.EmotionCache},function(e,t){e.exports=__kbnSharedDeps__.ReactRouterDomV5Compat},function(e,t){e.exports=__kbnSharedDeps__.ReactDom}]);