"use strict";(self.webpackChunkapp_container=self.webpackChunkapp_container||[]).push([[9755],{9755:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u,useFederatedComponent:()=>i});var o=t(4914),c=function(e,n,t,o){return new(t||(t=Promise))((function(c,a){function r(e){try{u(o.next(e))}catch(e){a(e)}}function i(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?c(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,i)}u((o=o.apply(e,n||[])).next())}))};const a=e=>{let{remoteName:n,shareScope:o,remoteUrl:c}=e;return new Promise(((e,a)=>{if(window[n])e();else{const u=document.querySelector('[data-webpack="'.concat(n,'"]')),l=c=>()=>{return r=function*(){window[n].__initialized||(yield window[n].init(t.S[o]),window[n].__initialized=!0),e(),c&&c()},new((a=void 0)||(a=Promise))((function(e,n){function t(e){try{c(r.next(e))}catch(e){n(e)}}function o(e){try{c(r.throw(e))}catch(e){n(e)}}function c(n){var c;n.done?e(n.value):(c=n.value,c instanceof a?c:new a((function(e){e(c)}))).then(t,o)}c((r=r.apply(undefined,[])).next())}));var a,r};if(u)u.onload=l(u.onload),u.onerror=a;else if(c){var r=document,i=r.createElement("script");i.type="text/javascript",i.setAttribute("data-webpack","".concat(n)),i.async=!0,i.onerror=a,i.onload=l(null),i.src=c,r.getElementsByTagName("head")[0].appendChild(i)}else a("Cannot Find Remote ".concat(n," to inject"))}}))};var r=function(e,n,t,o){return new(t||(t=Promise))((function(c,a){function r(e){try{u(o.next(e))}catch(e){a(e)}}function i(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?c(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,i)}u((o=o.apply(e,n||[])).next())}))};function i(e){let{remoteName:n,remoteUrl:t,moduleToLoad:i,shareScope:u="default"}=e;const l="".concat(t,"-").concat(n,"-").concat(u,"-").concat(i),[d,f]=(0,o.useState)(null),[s,m]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{d&&f(null)}),[l]),(0,o.useEffect)((()=>{d||function(){r(this,void 0,void 0,(function*(){try{yield a({remoteName:n,remoteUrl:t,shareScope:u});const e=(0,o.lazy)(function(e){let{remoteName:n,moduleToLoad:t}=e;return()=>c(this,void 0,void 0,(function*(){const e=window[n];return(yield e.get(t))()}))}({remoteName:n,moduleToLoad:i}));f(e),m(!1)}catch(e){m(!0)}}))}()}),[l,d]),{isError:s,Component:d}}const u=i}}]);