(window.savedObjectsManagement_bundle_jsonpfunction=window.savedObjectsManagement_bundle_jsonpfunction||[]).push([[3],{26:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),o=n(27),c=r.__importDefault(n(29));t.default=function(e,t){c.default(e,t,o.isDeepEqual)}},27: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(15).__importDefault(n(28));t.isClient="object"==typeof window,t.on=function(e){for(var t=[],n=1;n{const s=Object(r.useMemo)((()=>{if(t)return e=>Object(f.jsx)(o.a.Fragment,null,Object(f.jsx)(O,null),Object(f.jsx)(t,e))}),[t]);if(s)return Object(f.jsx)(l.Route,a()({},c,{component:s}));if(n||"function"==typeof e){const t="function"==typeof e?e:n;return Object(f.jsx)(l.Route,a()({},c,{render:e=>Object(f.jsx)(o.a.Fragment,null,Object(f.jsx)(O,null),t(e))}))}return Object(f.jsx)(l.Route,c,Object(f.jsx)(O,null),e)},O=()=>{const{executionContext:e}=Object(r.useContext)(j).services,t=Object(l.useRouteMatch)();return function(e,t){b()((()=>(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 v=n(16);const g=({children:e,...t})=>Object(f.jsx)(l.Router,t,Object(f.jsx)(v.CompatRouter,null,e));var m=n(7);const h=({legacySwitch:e=!0,children:t})=>{const n=Object(l.useRouteMatch)();return e?Object(f.jsx)(l.Switch,null,t):Object(f.jsx)(v.Routes,null,r.Children.map(t,(e=>{if(o.a.isValidElement(e)&&e.type===d){var r;const c=Object(m.replace)(null==e?void 0:e.props.path,n.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(f.jsx)(v.Route,{path:c,element:Object(f.jsx)(o.a.Fragment,null,Object(f.jsx)(O,null),(null==e||null===(r=e.props)||void 0===r?void 0:r.component)&&Object(f.jsx)(e.props.component,null)||s&&s()||t)})}return e})))};var x=n(12),y=n(1),S=n(6),w=n(14),_=n(3);let R;const M=y.i18n.translate("savedObjectsManagement.objects.savedObjectsTitle",{defaultMessage:"Saved Objects"}),E=Object(r.lazy)((()=>n.e(1).then(n.bind(null,50)))),A=Object(r.lazy)((()=>n.e(2).then(n.bind(null,48)))),T=async({core:e,mountParams:t})=>{const[n,{data:o,dataViews:c,savedObjectsTaggingOss:u,spaces:a},l]=await e.getStartServices(),{capabilities:i}=n.application,{element:j,history:p,setBreadcrumbs:b}=t,{theme$:O}=e.theme;R||(R=await Object(_.getAllowedTypes)(n.http)),n.chrome.docTitle.change(M);const v=({children:e})=>{var t,r,o;return null!==(t=null==i||null===(r=i.management)||void 0===r||null===(o=r.kibana)||void 0===o?void 0:o.objects)&&void 0!==t&&t?e:(n.application.navigateToApp("home"),null)};return s.a.render(Object(w.wrapWithTheme)(Object(f.jsx)(x.I18nProvider,null,Object(f.jsx)(g,{history:p},Object(f.jsx)(h,null,Object(f.jsx)(d,{path:"/:type/:id",exact:!0},Object(f.jsx)(v,null,Object(f.jsx)(r.Suspense,{fallback:Object(f.jsx)(S.EuiLoadingSpinner,null)},Object(f.jsx)(E,{coreStart:n,setBreadcrumbs:b,history:p})))),Object(f.jsx)(d,{path:"/",exact:!1},Object(f.jsx)(v,null,Object(f.jsx)(r.Suspense,{fallback:Object(f.jsx)(S.EuiLoadingSpinner,null)},Object(f.jsx)(A,{coreStart:n,taggingApi:null==u?void 0:u.getTaggingApi(),spacesApi:a,dataStart:o,dataViewsApi:c,actionRegistry:l.actions,columnRegistry:l.columns,allowedTypes:R,setBreadcrumbs:b}))))))),O),j),()=>{n.chrome.docTitle.reset(),s.a.unmountComponentAtNode(j)}}}}]);