/*! 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,o,a=t[0],i=t[1],u=0,s=[];u<a.length;u++)o=a[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(t);s.length;)s.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=a);var i,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+"cloudDataMigration.chunk."+e+".js"}(e);var c=new Error;i=function(t){u.onerror=u.onload=null,clearTimeout(s);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,n[1](c)}r[e]=void 0}};var s=setTimeout((function(){i({type:"timeout",target:u})}),12e4);u.onerror=u.onload=i,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=window.cloudDataMigration_bundle_jsonpfunction=window.cloudDataMigration_bundle_jsonpfunction||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var c=i;o(o.s=3)}([function(e,t){e.exports=__kbnSharedDeps__.KbnI18n},function(e,t,n){e.exports=n(2)(2)},function(e,t){e.exports=__kbnSharedDeps_npm__},function(e,t,n){n(4),__kbnBundles__.define("plugin/cloudDataMigration/public",n,5)},function(e,t,n){n.p=window.__kbnPublicPath__.cloudDataMigration},function(e,t,n){"use strict";n.r(t),n.d(t,"plugin",(function(){return c}));var r=n(1),o=n.n(r),a=n(0);const i=a.i18n.translate("xpack.cloudDataMigration.name",{defaultMessage:"Migrate"}),u={home:{text:a.i18n.translate("xpack.cloudDataMigration.breadcrumb.label",{defaultMessage:"Migrate to Elastic Cloud"})}};class breadcrumbs_BreadcrumbService{constructor(){o()(this,"setBreadcrumbsHandler",void 0)}setup(e){this.setBreadcrumbsHandler=e}setBreadcrumbs(e){if(!this.setBreadcrumbsHandler)throw new Error("BreadcrumbService#setup() must be called first!");this.setBreadcrumbsHandler([u.home])}}class plugin_CloudDataMigrationPlugin{constructor(){o()(this,"breadcrumbService",new breadcrumbs_BreadcrumbService)}setup(e,{cloud:t,management:r}){t.isCloudEnabled||r.sections.section.data.registerApp({id:"migrate_data",title:i,order:8,mount:async t=>{const[r]=await e.getStartServices(),{setBreadcrumbs:o}=t;this.breadcrumbService.setup(o);const{renderApp:a}=await n.e(1).then(n.bind(null,13)),i=a(r,this.breadcrumbService,t);return()=>{i()}}})}start(e,{cloud:t}){null!=t&&t.isCloudEnabled||e.chrome.registerGlobalHelpExtensionMenuLink({linkType:"custom",target:"_blank",href:"https://ela.st/cloud-migration",content:a.i18n.translate("xpack.cloudDataMigration.helpMenuMoveDataTitle",{defaultMessage:"Move data to Elastic Cloud"}),"data-test-subj":"migrate_data_to_cloud__help_menu_link",priority:200,external:!0})}stop(){}}function c(){return new plugin_CloudDataMigrationPlugin}},function(e,t){e.exports=__kbnSharedDeps__.EmotionReact},function(e,t){e.exports=__kbnSharedDeps__.React},function(e,t){e.exports=__kbnSharedDeps__.ReactDom},function(e,t,n){n.r(t);var r=__kbnBundles__.get("plugin/kibanaReact/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui}]);