`); container.data('$injector', null); $('body').append(container); const remoteApps = angular.element(document.body).injector().get('remoteApps'); if (remoteApps) { remoteApps.bootstrap(container.children(), name, path); return remoteApps.get(name); } } document.addEventListener('sbi-load-modal', () => { if (searchByImageLoaded) { eventBus.trigger('sbi-open-modal'); } else { loadSearchByImage().then(() => { eventBus.trigger('sbi-open-modal'); }); } })