(window["discoverLegacy_bundle_jsonpfunction"]=window["discoverLegacy_bundle_jsonpfunction"]||[]).push([[9],{143:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"renderApp",(function(){return renderApp}));var _index_scss__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(56);var _index_scss__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_0__);var angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8);var angular__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(angular__WEBPACK_IMPORTED_MODULE_1__);var _opensearch_dashboards_services__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3);async function renderApp(moduleName,element){Object(_opensearch_dashboards_services__WEBPACK_IMPORTED_MODULE_2__["i"])().opensearchDashboardsLegacy.loadFontAwesome();await Promise.all([__webpack_require__.e(3),__webpack_require__.e(7),__webpack_require__.e(0),__webpack_require__.e(1),__webpack_require__.e(8)]).then(__webpack_require__.bind(null,142));const $injector=mountDiscoverApp(moduleName,element);return()=>$injector.get("$rootScope").$destroy()}function mountDiscoverApp(moduleName,element){const mountpoint=document.createElement("div");const appWrapper=document.createElement("div");appWrapper.setAttribute("ng-view","");mountpoint.appendChild(appWrapper);const $injector=angular__WEBPACK_IMPORTED_MODULE_1___default.a.bootstrap(mountpoint,[moduleName]);element.appendChild(mountpoint);return $injector}}}]);