/*! 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.cases_bundle_jsonpfunction=window.cases_bundle_jsonpfunction||[]).push([[20],{194:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i}));var a=n(53),r=n.n(a);const s=r.a.div.withConfig({displayName:"SectionWrapper",componentId:"sc-11g3qlk-0"})(["box-sizing:content-box;margin:0 auto;max-width:1175px;width:100%;"]),i=r.a.div.withConfig({displayName:"Wrapper",componentId:"sc-11g3qlk-1"})(["display:flex;flex-direction:column;"])},335:function(e,t,n){"use strict";n.r(t),n.d(t,"renderApp",(function(){return A})),n.d(t,"App",(function(){return x}));var a=n(2),r=n.n(a),s=n(64),i=n.n(s),c=n(92),o=n(15),l=n(130),p=n(46),m=n(25),d=n(3),u=n(100),y=n(5),g=n(194);const h=({externalReferenceAttachmentTypeRegistry:e,persistableStateAttachmentTypeRegistry:t,getFilesClient:n})=>{const a=Object(y.c)();return r.a.createElement(g.b,{"data-test-subj":"cases-app"},Object(u.a)({externalReferenceAttachmentTypeRegistry:e,persistableStateAttachmentTypeRegistry:t,getFilesClient:n,owner:[d.d],useFetchAlertData:()=>[!1,{}],permissions:a.generalCases,basePath:"/",features:{alerts:{enabled:!1}},releasePhase:"experimental"}))};h.displayName="CasesApp";const b=r.a.memo(h);var f=n(63);const A=e=>{const{mountParams:t}=e,{element:n}=t;return i.a.render(r.a.createElement(x,{deps:e}),n),()=>{i.a.unmountComponentAtNode(n)}},R=r.a.memo((({externalReferenceAttachmentTypeRegistry:e,persistableStateAttachmentTypeRegistry:t,getFilesClient:n})=>{const a=Object(f.a)();return r.a.createElement(p.EuiThemeProvider,{darkMode:a},r.a.createElement(b,{externalReferenceAttachmentTypeRegistry:e,persistableStateAttachmentTypeRegistry:t,getFilesClient:n}))}));R.displayName="CasesAppWithContext";const x=({deps:e})=>{const{mountParams:t,coreStart:n,pluginsStart:a,storage:s,kibanaVersion:i}=e,{history:p,theme$:d}=t;return r.a.createElement(o.EuiErrorBoundary,null,r.a.createElement(l.I18nProvider,null,r.a.createElement(m.KibanaThemeProvider,{theme$:d},r.a.createElement(m.KibanaContextProvider,{services:{kibanaVersion:i,...n,...a,storage:s}},r.a.createElement(c.b,{history:p},r.a.createElement(R,{externalReferenceAttachmentTypeRegistry:e.externalReferenceAttachmentTypeRegistry,persistableStateAttachmentTypeRegistry:e.persistableStateAttachmentTypeRegistry,getFilesClient:a.files.filesClientFactory.asScoped}))))))};x.displayName="App"}}]);