(window.kibanaOverview_bundle_jsonpfunction=window.kibanaOverview_bundle_jsonpfunction||[]).push([[1],Array(31).concat([function(e,t,a){e.exports=a(30)(1466)},function(e,t,a){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,a){e.exports=a.p+"1cbd62546f764080f7071e03889e9de3.svg"},function(e,t,a){"use strict";e.exports=a(57)},function(e,t,a){"use strict";e.exports=a(59)},function(e,t,a){"use strict";e.exports=a(66)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(24),i=a(17),o=n.__importDefault(a(67));t.default=function(e,t){var a=i.useState(t),n=a[0],s=a[1];return o.default((function(){var t=e.subscribe(s);return function(){return t.unsubscribe()}}),[e]),n}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(24),i=a(39),o=n.__importDefault(a(41));t.default=function(e,t){o.default(e,t,i.isDeepEqual)}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeepEqual=t.off=t.on=t.isClient=void 0;var n=a(24).__importDefault(a(40));t.isClient="object"==typeof window,t.on=function(e){for(var t=[],a=1;a=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(i){case 3:a^=(255&e.charCodeAt(n+2))<<16;case 2:a^=(255&e.charCodeAt(n+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(n)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}},function(e,t,a){"use strict";e.exports=a(63)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,a){"use strict";e.exports=a(65)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!=typeof document,i=function(e,t,a){var i=e.key+"-"+t.name;(!1===a||!1===n&&void 0!==e.compat)&&void 0===e.registered[i]&&(e.registered[i]=t.styles)};t.getRegisteredStyles=function(e,t,a){var n="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):n+=a+" "})),n},t.insertStyles=function(e,t,a){i(e,t,a);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s="",r=t;do{var l=e.insert(t===r?"."+o:"",r,e.sheet,!0);n||void 0===l||(s+=l),r=r.next}while(void 0!==r);if(!n&&0!==s.length)return s}},t.registerStyles=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(17),i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;t.default=i},function(e,t,a){e.exports=a.p+"baad30acfe492601d08a0e839c9bb3f5.svg"},,,function(e,t,a){"use strict";a.r(t),a.d(t,"renderApp",(function(){return ze}));var n=a(17),i=a.n(n),o=a(28),s=a.n(o),r=a(3),l=a(20),c=a(22),u=a(29),d=a(23),p=a(31),b=a.n(p);const j={services:{}},x=Object(n.createContext)(j);var f=a(38),v=a.n(f),g=a(18);const m=({children:e,component:t,render:a,...o})=>{const s=Object(n.useMemo)((()=>{if(t)return e=>Object(g.jsx)(i.a.Fragment,null,Object(g.jsx)(h,null),Object(g.jsx)(t,e))}),[t]);if(s)return Object(g.jsx)(d.Route,b()({},o,{component:s}));if(a||"function"==typeof e){const t="function"==typeof e?e:a;return Object(g.jsx)(d.Route,b()({},o,{render:e=>Object(g.jsx)(i.a.Fragment,null,Object(g.jsx)(h,null),t(e))}))}return Object(g.jsx)(d.Route,o,Object(g.jsx)(h,null),e)},h=()=>{const{executionContext:e}=Object(n.useContext)(x).services,t=Object(d.useRouteMatch)();return function(e,t){v()((()=>(null==e||e.set(t),()=>{null==e||e.clear()})),[t])}(e,{type:"application",page:t.path,id:Object.keys(t.params).length>0?JSON.stringify(t.params):void 0}),null};var O=a(25),k=a(26);const w=({legacySwitch:e=!0,children:t})=>{const a=Object(d.useRouteMatch)();return e?Object(g.jsx)(d.Switch,null,t):Object(g.jsx)(O.Routes,null,n.Children.map(t,(e=>{if(i.a.isValidElement(e)&&e.type===m){var n;const o=Object(k.replace)(null==e?void 0:e.props.path,a.url+"/",""),s="function"==typeof(null==e?void 0:e.props.children)?null==e?void 0:e.props.children:null==e?void 0:e.props.render;return Object(g.jsx)(O.Route,{path:o,element:Object(g.jsx)(i.a.Fragment,null,Object(g.jsx)(h,null),(null==e||null===(n=e.props)||void 0===n?void 0:n.component)&&Object(g.jsx)(e.props.component,null)||s&&s()||t)})}return e})))};var y=a(19),S=a(21),_=a.n(S);a(42),a(47);const C=e=>{const{className:t,size:a,...n}=e,i={};return(e=>void 0===e.iconType)(e)&&(i.iconType=`logo${e.name.replace(/\s+/g,"")}`),Object(g.jsx)(y.EuiAvatar,b()({className:_()("kbnSolutionAvatar",{[`kbnSolutionAvatar--${a}`]:a},t),size:"xxl"===a?"xl":a,iconSize:a,color:"plain"},n,i))};a(52);const N=r.i18n.translate("sharedUXPackages.solutionNav.collapsibleLabel",{defaultMessage:"Collapse side navigation"}),E=r.i18n.translate("sharedUXPackages.solutionNav.openLabel",{defaultMessage:"Open side navigation"}),P=({className:e,isCollapsed:t,...a})=>{const n=_()("kbnSolutionNavCollapseButton",{"kbnSolutionNavCollapseButton-isCollapsed":t},e);return Object(g.jsx)(y.EuiButtonIcon,b()({className:n,size:"s",color:"text",iconType:t?"menuRight":"menuLeft","aria-label":t?E:N,title:t?E:N},a))},D=(e,t)=>e.map((e=>(e.tabIndex=t?-1:void 0,e.items=e.items&&D(e.items,t),e))),M=Object(y.htmlIdGenerator)("SolutionNav"),A=({children:e,headingProps:t,icon:a,isOpenOnDesktop:o=!1,items:s,mobileBreakpoints:c=["xs","s"],closeFlyoutButtonPosition:u="outside",name:d,onCollapse:p,canBeCollapsed:j=!0,...x})=>{const f=Object(y.useIsWithinBreakpoints)(c),v=Object(y.useIsWithinBreakpoints)(["m"]),m=Object(y.useIsWithinMinBreakpoint)("l"),[h,O]=Object(n.useState)(!1),k=m&&!o&&j,w=!!e,S=_()("kbnSolutionNav",{"kbnSolutionNav--hidden":k}),N=(null==t?void 0:t.id)||M("heading"),E=(null==t?void 0:t.element)||"h2",A=Object(g.jsx)(y.EuiTitle,{size:"xs",id:N,"data-test-subj":null==t?void 0:t["data-test-subj"]},Object(g.jsx)(E,null,a&&Object(g.jsx)(C,{className:"kbnSolutionNav__avatar",iconType:a,name:d}),Object(g.jsx)("strong",null,Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.solutionNav.mobileTitleText",defaultMessage:"{solutionName} {menuText}",values:{solutionName:d||"Navigation",menuText:f?r.i18n.translate("sharedUXPackages.solutionNav.menuText",{defaultMessage:"menu"}):""}})))),T=Object(n.useMemo)((()=>w?e:s?Object(g.jsx)(y.EuiSideNav,b()({"aria-labelledby":N,"aria-hidden":k,items:D(s,k),mobileBreakpoints:[]},x)):null),[e,N,w,k,s,x]);return Object(g.jsx)(i.a.Fragment,null,f&&Object(g.jsx)(y.EuiCollapsibleNavGroup,{className:S,paddingSize:"none",background:"none",title:A,titleElement:"span",isCollapsible:j,initialIsOpen:!1},Object(g.jsx)(y.EuiPanel,{color:"transparent",paddingSize:"s"},T)),v&&Object(g.jsx)(i.a.Fragment,null,(h||!j)&&Object(g.jsx)(y.EuiFlyout,{ownFocus:!1,outsideClickCloses:!0,onClose:()=>O(!1),side:"left",size:248,closeButtonPosition:u,className:"kbnSolutionNav__flyout",hideCloseButton:!j},Object(g.jsx)("div",{className:S},A,Object(g.jsx)(y.EuiSpacer,{size:"l"}),T)),j&&Object(g.jsx)(P,{isCollapsed:!0,onClick:()=>{O(!h)}})),m&&Object(g.jsx)(i.a.Fragment,null,Object(g.jsx)("div",{className:S},A,Object(g.jsx)(y.EuiSpacer,{size:"l"}),T),j&&Object(g.jsx)(P,{isCollapsed:!o,onClick:p})))};var T=a(34);const B="solutionNavIsCollapsed",I=e=>{const t=t=>{var a;const i=Object(y.useIsWithinBreakpoints)(["m"]),o=Object(y.useIsWithinMinBreakpoint)("l"),[s,r]=Object(n.useState)(!JSON.parse(String(localStorage.getItem(B)))),{solutionNav:l,children:c,...u}=t,{euiTheme:d}=Object(y.useEuiTheme)(),{canBeCollapsed:p=!0}=l,j=i||p&&o&&!s,x=(e=>Object(T.css)("flex:0 1 0;overflow:hidden;",y.euiCanAnimate,"{transition:min-width ",e.animation.fast," ",e.animation.resistance,";}",""))(d),f=_()({"kbnSolutionNav__sidebar--shrink":j},null===(a=t.pageSideBarProps)||void 0===a?void 0:a.className,x),v=Object(g.jsx)(A,b()({isOpenOnDesktop:s,onCollapse:()=>{r(!s),localStorage.setItem(B,JSON.stringify(s))}},l)),m={paddingSize:"none",...t.pageSideBarProps,minWidth:j?d.size.xxl:void 0,className:f};return Object(g.jsx)(e,b()({},u,{pageSideBar:v,pageSideBarProps:m}),c)};var a;return t.displayName=`WithSolutionNavBar(${a=e,a.displayName||a.name||"UnnamedComponent"})`,t};var F=a(37),z=a.n(F);const V=i.a.createContext(null),L=({children:e,coreStart:t})=>{const{navigateToUrl:a,currentAppId$:n}=t.application,i=z()(n,void 0);return Object(g.jsx)(V.Provider,{value:{navigateToUrl:a,currentAppId:i}},e)};var R={name:"1azakc",styles:"text-align:center"};const U=()=>{const e=R;return Object(g.jsx)("div",{css:e},Object(g.jsx)(y.EuiLoadingSpinner,null))},$={name:"36bnqj",styles:"display:flex;flex:1"},G=({children:e,navigateToUrl:t,currentAppId:a})=>{const i=Object(n.useRef)(null),o=Object(n.useCallback)((e=>(({event:e,container:t,navigateToUrl:a,currentAppId:n})=>{if(!t||!n)return;const i=((e,t)=>{let a=e;do{var n,i;if("a"===(null===(n=a)||void 0===n?void 0:n.tagName.toLowerCase()))return a;const e=null===(i=a)||void 0===i?void 0:i.parentElement;if(!e||e===document.body||e===t)break;a=e}while(parent||parent!==document.body||parent!==t)})(e.target,t);if(!i)return;const o=i.href,s=""===i.target||"_self"===i.target,r=0===e.button;o&&s&&r&&!e.defaultPrevented&&!(e=>e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)(e)&&(e.preventDefault(),a(i.href))})({event:e,currentAppId:a,navigateToUrl:t,container:i.current})),[a,t]);return Object(g.jsx)("div",{onClick:o,ref:i,css:$},e)},H=({children:e})=>Object(g.jsx)(G,function(){const e=Object(n.useContext)(V);if(!e)throw new Error("RedirectAppLinksContext is missing. Ensure your component or React root is wrapped with RedirectAppLinksProvider.");return e}(),e);var X=a(68),K=a.n(X);const W=r.i18n.translate("sharedUXPackages.card.noData.noPermission.title",{defaultMessage:"Contact your administrator"}),Y=r.i18n.translate("sharedUXPackages.card.noData.noPermission.description",{defaultMessage:"This integration is not yet enabled. Your administrator has the required permissions to turn it on."}),q=r.i18n.translate("sharedUXPackages.card.noData.title",{defaultMessage:"Add Elastic Agent"}),J=r.i18n.translate("sharedUXPackages.card.noData.description",{defaultMessage:"Use Elastic Agent for a simple, unified way to collect data from your machines."}),Q=()=>Object(g.jsx)(y.EuiImage,{size:"fullWidth",style:{width:"max(100%, 360px)",height:240,objectFit:"cover",background:"aliceblue"},url:K.a,alt:""}),Z=({title:e,description:t,canAccessFleet:a,button:n,...i})=>Object(g.jsx)(y.EuiCard,b()({css:{maxWidth:400,marginInline:"auto"},paddingSize:"l",title:a?Object(g.jsx)(y.EuiScreenReaderOnly,null,Object(g.jsx)("span",null,e||q)):Object(g.jsx)(y.EuiTextColor,{color:"default"},W),description:a?t||J:Object(g.jsx)(y.EuiTextColor,{color:"default"},Y),footer:(()=>{if(a)return n&&"string"!=typeof n?n:Object(g.jsx)(y.EuiButton,{fill:!0},n||e||q)})(),isDisabled:!a,image:Object(g.jsx)(Q,null)},i)),ee=i.a.createContext(null),te=({children:e,...t})=>{const a={addBasePath:t.coreStart.http.basePath.prepend,canAccessFleet:t.coreStart.application.capabilities.navLinks.integrations};return Object(g.jsx)(ee.Provider,{value:a},Object(g.jsx)(L,t,e))},ae=({href:e,category:t,description:a,...i})=>{const{canAccessFleet:o,addBasePath:s}=function(){const e=Object(n.useContext)(ee);if(!e)throw new Error("NoDataCard Context is missing. Ensure your component or React root is wrapped with NoDataCardContext.");return e}(),r=Object(n.useMemo)((()=>{if(e)return e;const a="/app/integrations/browse";return s(t?`${a}/${t}`:a)}),[s,e,t]);return Object(g.jsx)(H,null,Object(g.jsx)(Z,b()({},i,{href:r,canAccessFleet:o,description:a})))},ne=({action:e})=>{const t=Object.keys(e);if(1!==t.length)return null;const a=t[0],n="elasticAgent"===a?"empty-page-agent-action":`empty-page-${a}-action`;return Object(g.jsx)(ae,b()({key:n},e[a]))},ie=({solution:e,logo:t,action:a,docsLink:n,pageTitle:i,className:o})=>{const s=i||r.i18n.translate("sharedUXPackages.noDataPage.welcomeTitle",{defaultMessage:"Welcome to Elastic {solution}!",values:{solution:e}}),c=Object(g.jsx)(y.EuiLink,{href:n,target:"_blank"},Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataPage.intro.link",defaultMessage:"learn more"})),u=Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataPage.intro",defaultMessage:"Add your data to get started, or {link} about {solution}.",values:{solution:e,link:c}});return Object(g.jsx)(y.EuiPageTemplate.Section,{alignment:"center",grow:!0,className:_()("kbnNoDataPageContents",o),"data-test-subj":"kbnNoDataPage"},Object(g.jsx)(y.EuiText,{textAlign:"center"},Object(g.jsx)(C,{name:e,iconType:t||`logo${e}`,size:"xxl"}),Object(g.jsx)(y.EuiSpacer,{size:"l"}),Object(g.jsx)("h1",null,s),Object(g.jsx)(y.EuiTextColor,{color:"subdued"},Object(g.jsx)("p",null,u))),Object(g.jsx)(y.EuiSpacer,{size:"xxl"}),Object(g.jsx)(ne,{action:a}))},oe=e=>{const{className:t,noDataConfig:a,pageSideBar:n,pageSideBarProps:i,...o}=e;if(!a)return null;let s;n&&(s=Object(g.jsx)(y.EuiPageTemplate.Sidebar,i,n));const r=((e,t)=>_()("kbnPageTemplate","",t||""))(0,t);return Object(g.jsx)(y.EuiPageTemplate,b()({className:r,restrictWidth:950,panelled:!1,offset:0,minHeight:0},o),s,Object(g.jsx)(ie,a))},se=I(oe),re=({className:e,pageHeader:t,children:a,isEmptyState:i,pageSideBar:o,pageSideBarProps:s,...r})=>{let l;const[c,u]=Object(n.useState)();if(Object(n.useEffect)((()=>{const e=document.querySelector('[data-test-subj="kibanaChrome"]');if(e){const t=e.querySelector('[data-test-subj="headerGlobalNav"]');u((null==t?void 0:t.offsetTop)+(null==t?void 0:t.offsetHeight))}}),[]),i&&t&&!a){const{iconType:e,pageTitle:n,description:i,rightSideItems:o}=t,s=n?Object(g.jsx)("h1",null,n):void 0,r=i?Object(g.jsx)("p",null,i):void 0;a=Object(g.jsx)(y.EuiPageTemplate.EmptyPrompt,{iconType:e,iconColor:"",title:s,body:r,actions:o})}else t&&(l=Object(g.jsx)(y.EuiPageTemplate.Header,t));let d;if(o){const e={...s};c&&(e.sticky={offset:c}),d=Object(g.jsx)(y.EuiPageTemplate.Sidebar,e,o)}const p=((e,t)=>_()("kbnPageTemplate","",t||""))(0,e);return Object(g.jsx)(y.EuiPageTemplate,b()({className:p,offset:0,minHeight:0},r),d,l,a)},le=I(re),ce=Object.assign((({className:e,children:t,solutionNav:a,noDataConfig:n,...i})=>n&&a?Object(g.jsx)(se,{"data-test-subj":i["data-test-subj"],className:e,noDataConfig:n,solutionNav:a}):n?Object(g.jsx)(oe,{"data-test-subj":i["data-test-subj"],className:e,noDataConfig:n}):a?Object(g.jsx)(le,b()({className:e,solutionNav:a,children:t},i)):Object(g.jsx)(re,b()({className:e,children:t},i))),{Sidebar:y.EuiPageTemplate.Sidebar,Header:y.EuiPageTemplate.Header,Section:y.EuiPageTemplate.Section,BottomBar:y.EuiPageTemplate.BottomBar,EmptyPrompt:y.EuiPageTemplate.EmptyPrompt});function ue({href:e}){return Object(g.jsx)("dl",null,Object(g.jsx)(y.EuiTitle,{size:"xxs"},Object(g.jsx)("dt",{className:"eui-displayInline"},Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.learnMore",defaultMessage:"Want to learn more?"})))," ",Object(g.jsx)("dd",{className:"eui-displayInline"},Object(g.jsx)(y.EuiLink,{href:e,target:"_blank",external:!0},Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.readDocumentation",defaultMessage:"Read the docs"}))))}const de=r.i18n.translate("sharedUXPackages.noDataViewsPrompt.addDataViewText",{defaultMessage:"Create data view"}),pe=({onClickCreate:e,canCreateNewDataView:t,dataViewsDocLink:o,emptyPromptColor:s="plain"})=>{const r=t&&Object(g.jsx)(y.EuiButton,{onClick:e,iconType:"plusInCircle",fill:!0,"data-test-subj":"createDataViewButton"},de),c=t?Object(g.jsx)("h2",null,Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.youHaveData",defaultMessage:"You have data in Elasticsearch."}),Object(g.jsx)("br",null),Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.nowCreate",defaultMessage:"Now, create a data view."})):Object(g.jsx)("h2",null,Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.noPermission.title",defaultMessage:"You need permission to create data views"})),u=t?Object(g.jsx)("p",null,Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.dataViewExplanation",defaultMessage:"Data views identify the Elasticsearch data you want to explore. You can point data views to one or more data streams, indices, and index aliases, such as your log data from yesterday, or all indices that contain your log data."})):Object(g.jsx)("p",null,Object(g.jsx)(l.FormattedMessage,{id:"sharedUXPackages.noDataViewsPrompt.noPermission.dataViewExplanation",defaultMessage:"Data views identify the Elasticsearch data that you want to explore. To create data views, ask your administrator for the required permissions."})),d=o?Object(g.jsx)(ue,{href:o}):void 0,p=((e,t=Object(g.jsx)(U,null))=>i.a.forwardRef(((a,i)=>Object(g.jsx)(y.EuiErrorBoundary,null,Object(g.jsx)(n.Suspense,{fallback:t},Object(g.jsx)(e,b()({},a,{ref:i})))))))(i.a.lazy((()=>a.e(2).then(a.bind(null,70)).then((({DataViewIllustration:e})=>({default:e}))))),Object(g.jsx)(y.EuiPanel,{color:"subdued",style:{width:226,height:206}})),j=Object(g.jsx)(p,null);return Object(g.jsx)(y.EuiEmptyPrompt,{"data-test-subj":"noDataViewsPrompt",layout:"horizontal",css:Object(g.css)("max-width:",830,"px!important;flex-grow:0;",""),color:s,actions:r,icon:j,title:c,body:u,footer:d})},be=i.a.createContext(null),je=({children:e,...t})=>{var a;return Object(g.jsx)(be.Provider,{value:{dataViewsDocLink:null===(a=t.coreStart.docLinks.links.indexPatterns)||void 0===a?void 0:a.introduction,canCreateNewDataView:t.dataViewEditor.userPermissions.editDataView(),openDataViewEditor:t.dataViewEditor.openEditor}},e)},xe=({onDataViewCreated:e,allowAdHocDataView:t=!1})=>{const{canCreateNewDataView:a,openDataViewEditor:i,dataViewsDocLink:o}=function(){const e=Object(n.useContext)(be);if(!e)throw new Error("NoDataViewsPromptContext is missing. Ensure your component or React root is wrapped with NoDataViewsPromptProvider.");return e}(),s=Object(n.useRef)();Object(n.useEffect)((()=>()=>{null!=s&&s.current&&(null==s||s.current())}),[]);const r=Object(n.useCallback)((e=>{s.current=e}),[]),l=Object(n.useCallback)((()=>{if(!a)return;const n=i({onSave:t=>{e(t)},allowAdHocDataView:t});r&&r(n)}),[a,i,t,r,e]);return Object(g.jsx)(pe,{onClickCreate:l,canCreateNewDataView:a,dataViewsDocLink:o})},fe=i.a.createContext(null),ve=({children:e,...t})=>{const{dataViews:a}=t,n={hasESData:a.hasData.hasESData,hasUserDataView:a.hasData.hasUserDataView};return Object(g.jsx)(fe.Provider,{value:n},Object(g.jsx)(je,t,Object(g.jsx)(te,t,e)))};var ge={name:"y1f223",styles:"margin:auto"},me={name:"y1f223",styles:"margin:auto"};const he=({onDataViewCreated:e,noDataConfig:t,allowAdHocDataView:a,showPlainSpinner:i})=>{const o=function(){const e=Object(n.useContext)(fe);if(!e)throw new Error("KibanaNoDataPageContext is missing. Ensure your component or React root is wrapped with KibanaNoDataPageContext.");return e}(),{hasESData:s,hasUserDataView:r}=o,[l,c]=Object(n.useState)(!0),[u,d]=Object(n.useState)(!1),[p,b]=Object(n.useState)(!1);return Object(n.useEffect)((()=>{(async()=>{d(await s()),b(await r()),c(!1)})().catch((()=>{c(!1)}))}),[s,r]),l?i?Object(g.jsx)(y.EuiLoadingSpinner,{css:ge,size:"xxl"}):Object(g.jsx)(y.EuiLoadingElastic,{css:me,size:"xxl"}):!p&&u?Object(g.jsx)(xe,{onDataViewCreated:e,allowAdHocDataView:a}):u?null:Object(g.jsx)(oe,{noDataConfig:t})},Oe=i.a.createContext(null),ke=({children:e,...t})=>{const a={kibanaGuideDocLink:t.coreStart.docLinks.links.kibana.guide,customBranding:{hasCustomBranding$:t.coreStart.customBranding.hasCustomBranding$}};return Object(g.jsx)(Oe.Provider,{value:a},Object(g.jsx)(ve,t,e))},we=r.i18n.translate("sharedUXPackages.noDataConfig.analytics",{defaultMessage:"Analytics"}),ye=r.i18n.translate("sharedUXPackages.noDataConfig.analyticsPageTitle",{defaultMessage:"Welcome to Analytics!"}),Se=r.i18n.translate("sharedUXPackages.noDataConfig.addIntegrationsTitle",{defaultMessage:"Add integrations"}),_e=r.i18n.translate("sharedUXPackages.noDataConfig.addIntegrationsDescription",{defaultMessage:"Use Elastic Agent to collect data and build out Analytics solutions."}),Ce=({kibanaGuideDocLink:e,onDataViewCreated:t,allowAdHocDataView:a,showPlainSpinner:n})=>{const i={solution:we,pageTitle:ye,logo:"logoKibana",action:{elasticAgent:{title:Se,description:_e,"data-test-subj":"kbnOverviewAddIntegrations"}},docsLink:e};return Object(g.jsx)(he,{noDataConfig:i,onDataViewCreated:t,allowAdHocDataView:a,showPlainSpinner:n})},Ne=({onDataViewCreated:e,allowAdHocDataView:t})=>{var a;const i=function(){const e=Object(n.useContext)(Oe);if(!e)throw new Error("AnalyticsNoDataPage Context is missing. Ensure your component or React root is wrapped with AnalyticsNoDataPageContext.");return e}(),{kibanaGuideDocLink:o,customBranding:s}=i,{hasCustomBranding$:r}=s,l=null!==(a=z()(r))&&void 0!==a&&a;return Object(g.jsx)(Ce,{onDataViewCreated:e,allowAdHocDataView:t,kibanaGuideDocLink:o,showPlainSpinner:l})};var Ee=a(0);function Pe({id:e,description:t,iconUrl:a,iconType:n,title:i,url:o,wrapInPanel:s,onClick:r,isBeta:l}){let c;a?c=Object(g.jsx)("img",{alt:"",className:"synopsisIcon",src:a}):n&&(c=Object(g.jsx)(y.EuiIcon,{color:"text",size:"l",title:"",type:n}));const u=_()("homSynopsis__card",{"homSynopsis__card--noPanel":!s});return Object(g.jsx)(y.EuiCard,{className:u,layout:"horizontal",icon:c,titleSize:"xs",title:i,description:t,onClick:r,href:o,"data-test-subj":`homeSynopsisLink${e.toLowerCase()}`,betaBadgeProps:{label:l?"Beta":null},titleElement:"h3"})}Pe.defaultProps={isBeta:!1};var De=a(6);const Me=({addBasePath:e,features:t})=>{const{services:{application:a}}=Object(c.useKibana)();return Object(g.jsx)("section",{className:"kbnOverviewDataAdd","aria-labelledby":"kbnOverviewDataAdd__title"},Object(g.jsx)(y.EuiFlexGroup,{alignItems:"center"},Object(g.jsx)(y.EuiFlexItem,{grow:1},Object(g.jsx)(y.EuiTitle,{size:"s"},Object(g.jsx)("h2",{id:"kbnOverviewDataAdd__title"},Object(g.jsx)(l.FormattedMessage,{id:"kibanaOverview.addData.sectionTitle",defaultMessage:"Ingest your data"})))),Object(g.jsx)(y.EuiFlexItem,{className:"kbnOverviewDataAdd__actions",grow:!1},Object(g.jsx)("div",null,Object(g.jsx)(y.EuiButtonEmpty,{className:"kbnOverviewDataAdd__actionButton",flush:"both",href:e("#/tutorial_directory/sampleData"),iconType:"visTable",size:"xs"},Object(g.jsx)(l.FormattedMessage,{id:"kibanaOverview.addData.sampleDataButtonLabel",defaultMessage:"Try our sample data"}))))),Object(g.jsx)(y.EuiSpacer,{size:"m"}),Object(g.jsx)(y.EuiFlexGroup,{className:"kbnOverviewDataAdd__content"},t.map((t=>Object(g.jsx)(y.EuiFlexItem,{key:t.id},Object(g.jsx)(c.RedirectAppLinks,{application:a},Object(g.jsx)(Pe,{id:t.id,description:t.description,iconType:t.icon,title:t.title,url:e(t.path),wrapInPanel:!0,onClick:()=>{Object(De.c)(De.a.CLICK,`ingest_data_card_${t.id}`)}})))))))},Ae=({addBasePath:e,features:t})=>{const{services:{application:a}}=Object(c.useKibana)();return Object(g.jsx)(i.a.Fragment,null,t.length>1?Object(g.jsx)(y.EuiHorizontalRule,{margin:"xl","aria-hidden":"true"}):null,t.length>0?Object(g.jsx)("section",{className:"kbnOverviewDataManage","aria-labelledby":"kbnOverviewDataManage__title","data-test-subj":"kbnOverviewDataManage"},Object(g.jsx)(y.EuiTitle,{size:"s"},Object(g.jsx)("h2",{id:"kbnOverviewDataManage__title"},Object(g.jsx)(l.FormattedMessage,{id:"kibanaOverview.manageData.sectionTitle",defaultMessage:"Manage your data"}))),Object(g.jsx)(y.EuiSpacer,{size:"m"}),Object(g.jsx)(y.EuiFlexGroup,{className:"kbnOverviewDataManage__content",wrap:!0},t.map((t=>Object(g.jsx)(y.EuiFlexItem,{className:"kbnOverviewDataManage__item",key:t.id},Object(g.jsx)(c.RedirectAppLinks,{application:a},Object(g.jsx)(Pe,{id:t.id,description:t.description,iconType:t.icon,title:t.title,url:e(t.path),wrapInPanel:!0,onClick:()=>{Object(De.c)(De.a.CLICK,`ingest_data_card_${t.id}`)}}))))))):null)},Te=({newsFetchResult:e})=>Object(g.jsx)("section",{"aria-labelledby":"kbnOverviewNews__title",className:"kbnOverviewNews"},Object(g.jsx)(y.EuiTitle,{size:"s"},Object(g.jsx)("h2",{id:"kbnOverviewNews__title"},Object(g.jsx)(l.FormattedMessage,{id:"kibanaOverview.news.title",defaultMessage:"What's new"}))),Object(g.jsx)(y.EuiSpacer,{size:"m"}),Object(g.jsx)("div",{className:"kbnOverviewNews__content"},e.feedItems.slice(0,3).map((({title:e,description:t,linkUrl:a,publishOn:n},i)=>Object(g.jsx)("article",{key:e,"aria-labelledby":`kbnOverviewNews__title${i}`},Object(g.jsx)("header",null,Object(g.jsx)(y.EuiTitle,{size:"xxs"},Object(g.jsx)("h3",{id:`kbnOverviewNews__title${i}`},Object(g.jsx)(y.EuiLink,{href:a,target:"_blank"},e))),Object(g.jsx)(y.EuiText,{size:"xs",color:"subdued"},Object(g.jsx)("p",null,Object(g.jsx)("time",{dateTime:n.format("YYYY-MM-DD")},n.format("DD MMMM YYYY"))))),Object(g.jsx)(y.EuiText,{size:"xs"},Object(g.jsx)("p",null,t))))))),Be=(e,t)=>(e.order||1/0)-(t.order||1/0),Ie=({newsFetchResult:e,solutions:t,features:a})=>{var o,s;const[r,u]=Object(n.useState)(!1),[d,p]=Object(n.useState)(!1),[j,x]=Object(n.useState)(!1),[f,v]=Object(n.useState)(!0),{services:m}=Object(c.useKibana)(),{http:h,docLinks:O,dataViews:w,share:S,uiSettings:_,application:N,chrome:E,dataViewEditor:P,customBranding:D}=m,M=h.basePath.prepend,A=_.get("theme:darkMode"),T=M("/app/integrations/browse"),B=null===(o=S.url.locators.get("CONSOLE_APP_LOCATOR"))||void 0===o?void 0:o.useUrl({}),I=null===(s=S.url.locators.get("MANAGEMENT_APP_LOCATOR"))||void 0===s?void 0:s.useUrl({sectionId:""}),F=e=>a.filter((t=>t.showOnHomePage&&t.category===e)).sort(Be),z=a.filter((({solutionId:e})=>"kibana"===e)).sort(Be),V=F("data"),R=F("admin"),U=("console",a.find((({id:e})=>"console"===e)));R.length<1&&U&&R.push(U),Object(n.useEffect)((()=>{(async()=>{await(async()=>{const e=await w.hasData.hasUserDataView(),t=await w.hasData.hasESData();u(!e&&t||!t),x(e),p(t)})().catch((e=>{u(!1),x(!0),p(!0),v(!1)})),v(!1)})()}),[w]);const $=e=>{const t=z.find((({id:t})=>t===e));return t?Object(g.jsx)(y.EuiFlexItem,{className:"kbnOverviewApps__item",key:e},Object(g.jsx)(L,b()({coreStart:{application:{currentAppId$:N.currentAppId$,navigateToUrl:N.navigateToUrl}}},N),Object(g.jsx)(H,null,Object(g.jsx)(y.EuiCard,{description:(null==t?void 0:t.subtitle)||"",href:M(t.path),onClick:()=>{Object(De.c)(De.a.CLICK,`app_card_${e}`)},image:M(`/plugins/${Ee.b}/assets/kibana_${e}_${A?"dark":"light"}.svg`),title:t.title,titleElement:"h3",titleSize:"s"})))):null},G=["dashboard","discover"],X=z.map((({id:e})=>e)).filter((e=>!G.includes(e))),K=()=>{u(!1)};if(f)return Object(g.jsx)(y.EuiFlexGroup,{justifyContent:"center",alignItems:"center"},Object(g.jsx)(y.EuiFlexItem,{grow:!1},Object(g.jsx)(y.EuiLoadingSpinner,{size:"xl"})));if(r){const e={coreStart:{application:N,chrome:E,docLinks:O,http:h,customBranding:D},dataViews:{...w,hasData:{...w.hasData,hasESData:()=>Promise.resolve(d),hasUserDataView:()=>Promise.resolve(j)}},dataViewEditor:P};return Object(g.jsx)(ke,e,Object(g.jsx)(Ne,{onDataViewCreated:K}))}return Object(g.jsx)(ce,{pageHeader:{iconType:"logoKibana",pageTitle:Object(g.jsx)(l.FormattedMessage,{defaultMessage:"Analytics",id:"kibanaOverview.header.title"}),rightSideItems:Object(c.overviewPageActions)({addDataHref:T,application:N,devToolsHref:B,hidden:r,managementHref:I,showDevToolsLink:!!U,showManagementLink:!!R}),bottomBorder:!0},panelled:!1},Object(g.jsx)(ce.Section,{bottomBorder:!0,"aria-labelledby":"kbnOverviewApps__title",className:"kbnOverviewApps"},Object(g.jsx)(y.EuiScreenReaderOnly,null,Object(g.jsx)("h2",{id:"kbnOverviewApps__title"},Object(g.jsx)(l.FormattedMessage,{id:"kibanaOverview.apps.title",defaultMessage:"Explore these apps"}))),G.length?Object(g.jsx)(i.a.Fragment,null,Object(g.jsx)(y.EuiFlexGroup,{className:"kbnOverviewApps__group kbnOverviewApps__group--primary",justifyContent:"center"},G.map($)),Object(g.jsx)(y.EuiSpacer,{size:"l"})):null,X.length?Object(g.jsx)(y.EuiFlexGroup,{className:"kbnOverviewApps__group kbnOverviewApps__group--secondary",justifyContent:"center"},X.map($)):null),Object(g.jsx)(ce.Section,{bottomBorder:!0,paddingSize:"xl"},Object(g.jsx)(y.EuiFlexGroup,{alignItems:"flexStart",className:"kbnOverviewSupplements "+(e&&e.feedItems.length?"kbnOverviewSupplements--hasNews":"kbnOverviewSupplements--noNews")},e&&e.feedItems.length?Object(g.jsx)(y.EuiFlexItem,{grow:1},Object(g.jsx)(Te,{newsFetchResult:e})):null,Object(g.jsx)(y.EuiFlexItem,{grow:3},t.length?Object(g.jsx)("section",{"aria-labelledby":"kbnOverviewMore__title",className:"kbnOverviewMore"},Object(g.jsx)(y.EuiTitle,{size:"s"},Object(g.jsx)("h2",{id:"kbnOverviewMore__title"},Object(g.jsx)(l.FormattedMessage,{id:"kibanaOverview.more.title",defaultMessage:"Do more with Elastic"}))),Object(g.jsx)(y.EuiSpacer,{size:"m"}),Object(g.jsx)(y.EuiFlexGroup,{className:"kbnOverviewMore__content"},t.map((({id:e,title:t,description:a,icon:n,path:i})=>{return Object(g.jsx)(y.EuiFlexItem,{className:"kbnOverviewMore__item",key:e},Object(g.jsx)(L,b()({coreStart:{application:{currentAppId$:N.currentAppId$,navigateToUrl:N.navigateToUrl}}},N),Object(g.jsx)(H,null,Object(g.jsx)(y.EuiCard,{className:`kbnOverviewSolution ${e}`,description:a||"",href:M(i),icon:Object(g.jsx)(C,{name:t,iconType:n,size:"xl"}),image:M((o=Object(k.snakeCase)(e),`/plugins/kibanaReact/assets/solutions_${o}.svg`)),title:t,titleElement:"h3",titleSize:"xs",onClick:()=>{Object(De.c)(De.a.CLICK,`solution_panel_${e}`)}}))));var o})))):Object(g.jsx)(y.EuiFlexGroup,{className:"kbnOverviewData "+(1===V.length&&1===R.length?"kbnOverviewData--compressed":"kbnOverviewData--expanded")},Object(g.jsx)(y.EuiFlexItem,null,Object(g.jsx)(Me,{addBasePath:M,features:V})),Object(g.jsx)(y.EuiFlexItem,null,Object(g.jsx)(Ae,{addBasePath:M,features:R})))))),Object(g.jsx)(c.OverviewPageFooter,{addBasePath:M,path:Ee.d,onSetDefaultRoute:()=>{Object(De.c)(De.a.CLICK,"set_kibana_overview_as_default_route")},onChangeDefaultRoute:()=>{Object(De.c)(De.a.CLICK,"change_to_different_default_route")}}))},Fe=({basename:e,newsfeed$:t,solutions:a,features:i})=>{const[o,s]=Object(n.useState)(null);return Object(n.useEffect)((()=>{if(t){const e=t.subscribe((e=>{s(e)}));return()=>e.unsubscribe()}}),[t]),Object(g.jsx)(d.HashRouter,{basename:e},Object(g.jsx)(l.I18nProvider,null,Object(g.jsx)(w,null,Object(g.jsx)(m,{exact:!0,path:"/"},Object(g.jsx)(Ie,{newsFetchResult:o,solutions:a,features:i})))))},ze=(e,t,{appBasePath:a,element:n,theme$:i})=>{const{notifications:o,http:d}=e,{newsfeed:p,home:b,navigation:j}=t,x=null==p?void 0:p.createNewsFeed$(u.NewsfeedApiEndpoint.KIBANA_ANALYTICS),f=b.featureCatalogue.get();return e.chrome.setBreadcrumbs([{text:r.i18n.translate("kibanaOverview.breadcrumbs.title",{defaultMessage:"Analytics"})}]),e.chrome.navLinks.getNavLinks$().subscribe((r=>{const u=b.featureCatalogue.getSolutions().filter((({id:e})=>"kibana"!==e)).filter((({id:e})=>r.find((({category:t,hidden:a})=>!a&&(null==t?void 0:t.id)===e))));s.a.render(Object(g.jsx)(l.I18nProvider,null,Object(g.jsx)(c.KibanaThemeProvider,{theme$:i},Object(g.jsx)(c.KibanaContextProvider,{services:{...e,...t}},Object(g.jsx)(Fe,{basename:a,notifications:o,http:d,navigation:j,newsfeed$:x,solutions:u,features:f})))),n)})),()=>s.a.unmountComponentAtNode(n)}}])]);