/*! 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. */!function(e){function t(t){for(var n,u,i=t[0],o=t[1],s=0,a=[];sObject(o.jsx)(i.EuiFlexGroup,u()({css:s,justifyContent:"center",alignItems:"center",direction:"column"},t),e)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),u=(n(1),n(9)),i=n(0);const o=({children:e,...t})=>Object(i.jsx)(u.a,{"data-test-subj":t["data-test-subj"]},Object(i.jsx)(r.EuiLoadingSpinner,{size:"xl"}),Object(i.jsx)(r.EuiSpacer,null),e)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1);const u=Object(r.createContext)({})},function(e,t,n){e.exports=n(7)(1465)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),u=n(1),i=r.__importDefault(n(17));t.default=function(e,t){var n=u.useState(t),r=n[0],o=n[1];return i.default((function(){var t=e.subscribe(o);return function(){return t.unsubscribe()}}),[e]),r}},function(e,t){e.exports=__kbnSharedDeps__.TsLib},function(e,t,n){n(16),__kbnBundles__.define("plugin/cloudSecurityPosture/public",n,18)},function(e,t,n){n.p=window.__kbnPublicPath__.cloudSecurityPosture},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),u="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"CLOUD_SECURITY_POSTURE_BASE_PATH",(function(){return O.a})),n.d(t,"getSecuritySolutionLink",(function(){return I})),n.d(t,"plugin",(function(){return D}));var r=n(12),u=n.n(r),i=n(1),o=n.n(i),s=n(8),c=n(13),a=n.n(c),d=n(0);const l=o.a.createContext(null),_=({children:e,...t})=>{const{navigateToUrl:n,currentAppId:r}=t;return Object(d.jsx)(l.Provider,{value:{navigateToUrl:n,currentAppId:r}},e)},p=({children:e,coreStart:t})=>{const{navigateToUrl:n,currentAppId$:r}=t.application,u=a()(r,void 0);return Object(d.jsx)(l.Provider,{value:{navigateToUrl:n,currentAppId:u}},e)};n(2),n(6);const f={name:"36bnqj",styles:"display:flex;flex:1"},b=({children:e,navigateToUrl:t,currentAppId:n})=>{const r=Object(i.useRef)(null),u=Object(i.useCallback)((e=>(({event:e,container:t,navigateToUrl:n,currentAppId:r})=>{if(!t||!r)return;const u=((e,t)=>{let n=e;do{var r,u;if("a"===(null===(r=n)||void 0===r?void 0:r.tagName.toLowerCase()))return n;const e=null===(u=n)||void 0===u?void 0:u.parentElement;if(!e||e===document.body||e===t)break;n=e}while(parent||parent!==document.body||parent!==t)})(e.target,t);if(!u)return;const i=u.href,o=""===u.target||"_self"===u.target,s=0===e.button;i&&o&&s&&!e.defaultPrevented&&!(e=>e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)(e)&&(e.preventDefault(),n(u.href))})({event:e,currentAppId:n,navigateToUrl:t,container:r.current})),[n,t]);return Object(d.jsx)("div",{onClick:u,ref:r,css:f},e)},g=({children:e})=>Object(d.jsx)(b,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),h=({children:e,...t})=>{const n=Object(d.jsx)(g,null,e);if(void 0!==t.coreStart){const{coreStart:e}=t;return Object(d.jsx)(p,{coreStart:e},n)}const{navigateToUrl:r,currentAppId:u}=t;return Object(d.jsx)(_,{currentAppId:u,navigateToUrl:r},n)};var v=n(10),y=n(3),m=n(11);const j=Object(i.lazy)((()=>n.e(1).then(n.bind(null,117)))),k=Object(i.lazy)((()=>n.e(3).then(n.bind(null,115)))),x=Object(i.lazy)((()=>n.e(2).then(n.bind(null,116)))),S=e=>Object(d.jsx)(i.Suspense,{fallback:Object(d.jsx)(v.a,null)},Object(d.jsx)(x,e));class plugin_CspPlugin{constructor(){u()(this,"isCloudEnabled",void 0)}setup(e,t){return this.isCloudEnabled=t.cloud.isCloudEnabled,{}}start(e,t){t.fleet.registerExtension({package:y.p,view:"package-policy-replace-define-step",Component:j}),t.fleet.registerExtension({package:y.p,view:"package-detail-assets",Component:k});const n=n=>Object(d.jsx)(s.KibanaContextProvider,{services:{...e,...t}},Object(d.jsx)(h,{coreStart:e},Object(d.jsx)("div",{style:{width:"100%",height:"100%"}},Object(d.jsx)(m.a.Provider,{value:{isCloudEnabled:this.isCloudEnabled}},Object(d.jsx)(S,n)))));return{getCloudSecurityPostureRouter:()=>n}}stop(){}}var O=n(5);const I=e=>({id:O.c[e].id,title:O.c[e].name,path:O.c[e].path}),D=()=>new plugin_CspPlugin},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.ReactQuery},function(e,t){e.exports=__kbnSharedDeps__.ReactRouterDom},function(e,t){e.exports=__kbnSharedDeps__.KbnUiTheme},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/fleet/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/fleet/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t){e.exports=__kbnSharedDeps__.Rxjs},function(e,t){e.exports=__kbnSharedDeps__.Moment},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/usageCollection/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t){e.exports=__kbnSharedDeps__.KbnEsQuery},function(e,t){e.exports=__kbnSharedDeps__.IoTs},function(e,t){e.exports=__kbnSharedDeps__.KbnStd},function(e,t){e.exports=__kbnSharedDeps__.ReactRouterDomV5Compat},function(e,t){e.exports=__kbnSharedDeps__.ElasticNumeral},function(e,t){e.exports=__kbnSharedDeps__.KbnMonaco},function(e,t){e.exports=__kbnSharedDeps__.EmotionCache},function(e,t){e.exports=__kbnSharedDeps__.ElasticCharts},function(e,t){e.exports=__kbnSharedDeps__.Lodash},function(e,t){e.exports=__kbnSharedDeps__.KbnRison}]);