/*! 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.triggersActionsUi_bundle_jsonpfunction=window.triggersActionsUi_bundle_jsonpfunction||[]).push([[28],{131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84),o=n(1),u=r.__importDefault(n(141));t.default=function(e,t){var n=o.useState(t),r=n[0],c=n[1];return u.default((function(){var t=e.subscribe(c);return function(){return t.unsubscribe()}}),[e]),r}},141:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.default=o},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return x}));var r=n(13),o=n.n(r),u=n(1),c=n.n(u),s=n(83);const i={services:{}},l=Object(u.createContext)(i);var a=n(166),f=n.n(a),j=n(0);const d=({children:e,component:t,render:n,...r})=>{const i=Object(u.useMemo)((()=>{if(t)return e=>Object(j.jsx)(c.a.Fragment,null,Object(j.jsx)(p,null),Object(j.jsx)(t,e))}),[t]);if(i)return Object(j.jsx)(s.Route,o()({},r,{component:i}));if(n||"function"==typeof e){const t="function"==typeof e?e:n;return Object(j.jsx)(s.Route,o()({},r,{render:e=>Object(j.jsx)(c.a.Fragment,null,Object(j.jsx)(p,null),t(e))}))}return Object(j.jsx)(s.Route,r,Object(j.jsx)(p,null),e)},p=()=>{const{executionContext:e}=Object(u.useContext)(l).services,t=Object(s.useRouteMatch)();return function(e,t){f()((()=>(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 b=n(88);const O=({children:e,...t})=>Object(j.jsx)(s.Router,t,Object(j.jsx)(b.CompatRouter,null,e));var v=n(9);const x=({legacySwitch:e=!0,children:t})=>{const n=Object(s.useRouteMatch)();return e?Object(j.jsx)(s.Switch,null,t):Object(j.jsx)(b.Routes,null,u.Children.map(t,(e=>{if(c.a.isValidElement(e)&&e.type===d){var r;const o=Object(v.replace)(null==e?void 0:e.props.path,n.url+"/",""),u="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(j.jsx)(b.Route,{path:o,element:Object(j.jsx)(c.a.Fragment,null,Object(j.jsx)(p,null),(null==e||null===(r=e.props)||void 0===r?void 0:r.component)&&Object(j.jsx)(e.props.component,null)||u&&u()||t)})}return e})))}},166:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84),o=n(167),u=r.__importDefault(n(169));t.default=function(e,t){u.default(e,t,o.isDeepEqual)}},167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeepEqual=t.off=t.on=t.isClient=void 0;var r=n(84).__importDefault(n(168));t.isClient="object"==typeof window,t.on=function(e){for(var t=[],n=1;nPromise.all([n.e(1),n.e(5),n.e(25)]).then(n.bind(null,300)))),x=e=>{const{element:t}=e;return Object(c.render)(Object(O.jsx)(h,{deps:e}),t),()=>{Object(c.unmountComponentAtNode)(t)}},h=({deps:e})=>{const{dataViews:t,uiSettings:n,theme$:r}=e,o=l()(n.get$("theme:darkMode")),c=["connectors","logs"].join("|");return Object(d.d)(t),Object(O.jsx)(s.I18nProvider,null,Object(O.jsx)(f.EuiThemeProvider,{darkMode:o},Object(O.jsx)(a.KibanaThemeProvider,{theme$:r},Object(O.jsx)(p.a,{services:{...e}},Object(O.jsx)(u.b,{history:e.history},Object(O.jsx)(y,{sectionsRegex:c}))))))},y=({sectionsRegex:e})=>{const{actions:{validateEmailAddresses:t}}=Object(p.b)().services;return Object(O.jsx)(b.b,{value:{services:{validateEmailAddresses:t}}},Object(O.jsx)(u.c,null,Object(O.jsx)(u.a,{path:`/:section(${e})`,component:Object(j.a)(v,"xl")}),Object(O.jsx)(o.Redirect,{from:"/",to:"connectors"})))}}}]);