/*! 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.observabilityAIAssistant_bundle_jsonpfunction=window.observabilityAIAssistant_bundle_jsonpfunction||[]).push([[3],{105:function(e,t,r){"use strict";r.r(t),r.d(t,"Application",(function(){return $}));var n=r(3),o=r(23),i=r(0),c=r.n(i),u=r(43),a=r.n(u),s=r(1);const l=c.a.createContext(null),d=({children:e,...t})=>{const{navigateToUrl:r,currentAppId:n}=t;return Object(s.jsx)(l.Provider,{value:{navigateToUrl:r,currentAppId:n}},e)},b=({children:e,coreStart:t})=>{const{navigateToUrl:r,currentAppId$:n}=t.application,o=a()(n,void 0);return Object(s.jsx)(l.Provider,{value:{navigateToUrl:r,currentAppId:o}},e)};var v=r(8);const p={name:"36bnqj",styles:"display:flex;flex:1"},f=({children:e,navigateToUrl:t,currentAppId:r})=>{const n=Object(i.useRef)(null),o=Object(i.useCallback)((e=>(({event:e,container:t,navigateToUrl:r,currentAppId:n})=>{if(!t||!n)return;const o=e.target,i=Object(v.a)(o,t);if(!i)return;const c=i.href,u=""===i.target||"_self"===i.target,a=0===e.button;c&&u&&a&&!e.defaultPrevented&&!Object(v.b)(e)&&(e.preventDefault(),r(i.href))})({event:e,currentAppId:r,navigateToUrl:t,container:n.current})),[r,t]);return Object(s.jsx)("div",{onClick:o,ref:n,css:p},e)},j=({children:e})=>Object(s.jsx)(f,function(){const e=Object(i.useContext)(l);if(!e)throw new Error("RedirectAppLinksContext is missing. Ensure your component or React root is wrapped with RedirectAppLinksProvider.");return e}(),e),O=({children:e,...t})=>{const r=Object(s.jsx)(j,null,e);if(void 0!==t.coreStart){const{coreStart:e}=t;return Object(s.jsx)(b,{coreStart:e},r)}const{navigateToUrl:n,currentAppId:o}=t;return Object(s.jsx)(d,{currentAppId:o,navigateToUrl:n},r)};var y=r(57),m=r(4),h=r.n(m),g=r(95),P=r(97),x=r(25),E=r.n(x);let S;!function(e){e.preboot="preboot",e.standard="standard"}(S||(S={}));const A="eui-global",k="eui-utilities",w=e=>e.darkMode?n.COLOR_MODES_STANDARD.dark:n.COLOR_MODES_STANDARD.light,C={darkMode:!1},_=E()({key:"css",container:document.querySelector('meta[name="emotion"]')}),M=E()({key:A,container:document.querySelector(`meta[name="${A}"]`)}),I=E()({key:k,container:document.querySelector(`meta[name="${k}"]`)});_.compat=!0,M.compat=!0,I.compat=!0;const T={default:_,global:M,utility:I},D=({theme:{theme$:e},globalStyles:t,colorMode:r,children:o})=>{const c=a()(e,C),u=Object(i.useMemo)((()=>w(c)),[c]),l=r||u,d=!1!==t&&void 0;return Object(s.jsx)(n.EuiProvider,{cache:T,colorMode:l,globalStyles:d,utilityClasses:d},o)},R=({theme:{theme$:e},euiTheme:t,children:r,...o})=>{const c=a()(e,C),u=Object(i.useMemo)((()=>w(c)),[c]);return Object(s.jsx)(n.EuiThemeProvider,h()({colorMode:u,theme:t},o),r)},W=({theme:e,children:t,...r})=>Object(g.useIsNestedEuiProvider)()?Object(s.jsx)(R,h()({theme:e},r),t):(Object(P.emitEuiProviderWarning)("KibanaThemeProvider requires a parent KibanaRenderContextProvider. Check your React tree and ensure that they are wrapped in a KibanaRenderContextProvider."),Object(s.jsx)(D,{theme:e,globalStyles:!1},t));var N=r(2),U=r(67);function $({theme$:e,history:t,coreStart:r,pluginsStart:c,service:u}){const a=Object(i.useMemo)((()=>({theme$:e})),[e]);return Object(s.jsx)(n.EuiErrorBoundary,null,Object(s.jsx)(W,{theme:a},Object(s.jsx)(o.KibanaContextProvider,{services:{...r,plugins:{start:c}}},Object(s.jsx)(O,{coreStart:r},Object(s.jsx)(r.i18n.Context,null,Object(s.jsx)(N.b,{value:u},Object(s.jsx)(y.c,{history:t,router:U.a},Object(s.jsx)(y.b,null))))))))}},95:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(96);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},96:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.useIsNestedEuiProvider=t.EuiProviderNestedCheck=t.EuiNestedProviderContext=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=i?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}(r(0)),i=r(1);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var u=(0,o.createContext)(!1);t.EuiNestedProviderContext=u,t.EuiProviderNestedCheck=function(e){var t=e.children;return(0,i.jsx)(u.Provider,{value:!0},t)},t.useIsNestedEuiProvider=function(){return!!(0,o.useContext)(u)}},97:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setEuiDevProviderWarning=t.getEuiDevProviderWarning=t.emitEuiProviderWarning=void 0;var n=void 0;t.setEuiDevProviderWarning=function(e){return n=e},t.getEuiDevProviderWarning=function(){return n},t.emitEuiProviderWarning=function(e){switch(n){case"log":console.log(e);break;case"warn":console.warn(e);break;case"error":throw new Error(e)}}}}]);