1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[232],{23925(e,t,r){r.d(t,{C:()=>n});class n{constructor(e,t,r){this.promise=e,this.value=t,this.error=r,e.then(e=>this.value=e).catch(e=>this.error=e)}}},52898(e,t,r){r.d(t,{l:()=>a});var n=r(40110),s=r.n(n),i=r(89825),o=r.n(i);class a{constructor(e){this.providedExternals=e;for(const[t,r]of Object.entries(e))if(!o()(r))throw new Error(`The provided version ${JSON.stringify(r)} for the external ${JSON.stringify(t)} is invalid.`)}validate(e,t){for(const[r,n]of Object.entries(e)){const e=this.providedExternals[r];if(!e)throw new Error(`The external dependency ${JSON.stringify(r)}${t?` as required by ${JSON.stringify(t)}`:""} is not provided.`);if(!s()(e,n))throw new Error(`The external dependency ${JSON.stringify(r)} ${t?`as required by ${JSON.stringify(t)} in the`:"in the required"} version range ${JSON.stringify(n)} is not satisfied. The provided version is ${JSON.stringify(e)}.`)}}}},37139(e,t,r){r.d(t,{X:()=>o});var n=r(23925),s=r(76102),i=r(32183);class o{constructor(e,t={}){this.featureServiceRegistry=e,this.options=t,this.asyncFeatureAppDefinitions=new Map,this.featureAppDefinitionsWithRegisteredOwnFeatureServices=new WeakSet,this.featureAppRetainers=new Map,this.logger=t.logger||console}getAsyncFeatureAppDefinition(e,t){const r=`${e}${t}`;let n=this.asyncFeatureAppDefinitions.get(r);return n||(n=this.createAsyncFeatureAppDefinition(e,t),this.asyncFeatureAppDefinitions.set(r,n)),n}createFeatureAppScope(e,t,r={}){const n=this.getFeatureAppRetainer(e,t,r);let s=!1;return{featureApp:n.featureApp,release:()=>{s?this.logger.warn(`The Feature App with the ID ${JSON.stringify(e)} has already been released for this scope.`):(s=!0,n.release())}}}async preloadFeatureApp(e,t){await this.getAsyncFeatureAppDefinition(e,t).promise}createAsyncFeatureAppDefinition(e,t){const{moduleLoader:r}=this.options;if(!r)throw new Error("No module loader provided.");return new n.C(r(e,t).then(r=>{if(!(0,i.W)(r))throw new Error(s.x(e,t,this.options.moduleLoader));return this.logger.info(`The Feature App module at the url ${JSON.stringify(e)} has been successfully loaded.`),r.default}))}registerOwnFeatureServices(e,t){this.featureAppDefinitionsWithRegisteredOwnFeatureServices.has(t)||(t.ownFeatureServiceDefinitions&&this.featureServiceRegistry.registerFeatureServices(t.ownFeatureServiceDefinitions,e),this.featureAppDefinitionsWithRegisteredOwnFeatureServices.add(t))}getFeatureAppRetainer(e,t,r){let n=this.featureAppRetainers.get(e);return n?n.retain():(this.registerOwnFeatureServices(e,t),n=this.createFeatureAppRetainer(t,e,r)),n}createFeatureAppRetainer(e,t,r){var n,s;this.validateExternals(e,t);const{featureAppName:i,baseUrl:o,beforeCreate:a,config:c,done:u,parentFeatureApp:h}=r,l=this.featureServiceRegistry.bindFeatureServices(e,t,i);try{null===(s=(n=this.options).onBind)||void 0===s||s.call(n,{featureAppDefinition:e,featureAppId:t,featureAppName:i,parentFeatureApp:h})}catch(e){this.logger.error("Failed to execute onBind callback.",e)}const p={baseUrl:o,config:c,featureAppId:t,featureAppName:i,featureServices:l.featureServices,done:u};try{null==a||a(p);const r=e.create(p);this.logger.info(`The Feature App with the ID ${JSON.stringify(t)} has been successfully created.`);let n=1;const s={featureApp:r,retain:()=>{n+=1},release:()=>{n-=1,0===n&&(this.featureAppRetainers.delete(t),l.unbind())}};return this.featureAppRetainers.set(t,s),s}catch(e){throw l.unbind(),e}}validateExternals(e,t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=e;n&&n.externals&&r.validate(n.externals,t)}}},95353(e,t,r){r.d(t,{$:()=>d});var n=r(57090),s=r.n(n),i=r(40110),o=r.n(i),a=r(89825),c=r.n(a),u=r(52544),h=r(16841);function l({dependencies:e,optionalDependencies:t}){return Object.assign(Object.assign({},e&&e.featureServices),t&&t.featureServices)}function p({optionalDependencies:e},t){return Boolean(e&&e.featureServices&&e.featureServices.hasOwnProperty(t))}class d{constructor(e={}){this.options=e,this.sharedFeatureServices=new Map,this.consumerIds=new Set,this.logger=e.logger||console}registerFeatureServices(e,t){const r=function(e){const t=new Map;for(const r of e)t.set(r.id,r);return t}(e),n=function(e){const t=new Map;for(const r of e)t.set(r.id,l(r));return t}(e);for(const e of(0,h.c)(n))this.registerFeatureService(r,e,t)}bindFeatureServices(e,t,r){if(this.consumerIds.has(t))throw new Error(u.jn(t));const n=new Map,s=Object.create(null),i=l(e);for(const o of Object.keys(i)){const a=p(e,o),c=i[o],h=this.bindFeatureService(o,t,r,c,{optional:a});h&&(this.logger.info(u.n(o,t)),n.set(o,h),s[o]=h.featureService)}this.consumerIds.add(t);let o=!1;return{featureServices:s,unbind:()=>
1{if(o)throw new Error(u.iO(t));o=!0,this.consumerIds.delete(t);for(const[e,r]of n.entries())try{r.unbind&&r.unbind(),this.logger.info(u.Qi(e,t))}catch(r){this.logger.error(u.kF(e,t),r)}}}}getInfo(){return{consumerIds:Array.from(this.consumerIds),featureServices:[...this.sharedFeatureServices.entries()].map(([e,t])=>({id:e,versions:Object.keys(t)}))}}registerFeatureService(e,t,r){const n=e.get(t);if(!n)return;if(this.sharedFeatureServices.has(t))return void this.logger.warn(u.EF(t,r));this.validateExternals(n,t);const{featureServices:s}=this.bindFeatureServices(n,t),i=n.create({featureServices:s});i?(this.validateFeatureServiceVersions(i,t,r),this.sharedFeatureServices.set(t,i),this.logger.info(u.P9(t,r))):this.logger.info(u.Bi(t,r))}bindFeatureService(e,t,r,n,{optional:i}){const a=n&&s()(n);if(!a){const r=u.Es(i,e,t);if(i)return void this.logger.info(r);throw new Error(r)}const c=`^${a.version}`,h=this.sharedFeatureServices.get(e);if(!h){const r=u.bx(i,e,t);if(i)return void this.logger.info(r);throw new Error(r)}const l=Object.keys(h),p=l.find(e=>o()(e,c)),d=p?h[p]:void 0;if(!d){const r=u.tL(i,e,t,c,l);if(i)return void this.logger.info(r);throw new Error(r)}return d(t,r)}validateExternals(e,t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=e;n&&n.externals&&r.validate(n.externals,t)}validateFeatureServiceVersions(e,t,r){for(const n of Object.keys(e))if(!c()(n))throw new Error(u.Hi(t,r,n))}}},76102(e,t,r){function n(e,t,r){let n=`The Feature App module at the url ${JSON.stringify(e)} ${t?`with the module type ${JSON.stringify(t)}`:"with no specific module type"} is invalid. A Feature App module must have a Feature App definition as default export. A Feature App definition is an object with at least a \`create\` method.`;return r&&r.length>1&&!t&&(n+=" Hint: The provided module loader expects an optional second parameter `moduleType`. It might need to be provided for this Feature App."),n}r.d(t,{x:()=>n})},52544(e,t,r){function n(e,t,r,n,s){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in the unsupported version range ${JSON.stringify(n)} could not be bound to consumer ${JSON.stringify(r)}. The supported versions are ${JSON.stringify(s)}.`}function s(e,t,r){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it defines the invalid version ${JSON.stringify(r)}.`}function i(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in an invalid version could not be bound to consumer ${JSON.stringify(r)}.`}function o(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} is not registered and therefore could not be bound to consumer ${JSON.stringify(r)}.`}function a(e,t){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it returned undefined.`}function c(e,t){return`The Feature Service ${JSON.stringify(e)} has been successfully registered by registrant ${JSON.stringify(t)}.`}function u(e,t){return`The already registered Feature Service ${JSON.stringify(e)} could not be re-registered by registrant ${JSON.stringify(t)}.`}function h(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully bound to consumer ${JSON.stringify(t)}.`}function l(e){return`All required Feature Services are already bound to consumer ${JSON.stringify(e)}.`}function p(e,t){return`The required Feature Service ${JSON.stringify(e)} could not be unbound from consumer ${JSON.stringify(t)}.`}function d(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully unbound from consumer ${JSON.stringify(t)}.`}function f(e){return`All required Feature Services are already unbound from consumer ${JSON.stringify(e)}.`}r.d(t,{Bi:()=>a,EF:()=>u,Es:()=>i,Hi:()=>s,P9:()=>c,Qi:()=>d,bx:()=>o,iO:()=>f,jn:()=>l,kF:()=>p,n:()=>h,tL:()=>n})},32183(e,t,r){function n(e){return!("object"!=typeof e||!e||"object"!=typeof(t=e.default)||!t||"function"!=typeof t.create);var t}r.d(t,{W:()=>n})},16841(e,t,r){r.d(t,{c:()=>i});var n=r(37949),s=r.n(n);function i(e){const t=Array.from(e.keys()),r=function(e){return Array.from(e.keys()).reduce((t,r)=>{const n=e.get(r);if(!n)return t;const s=function(e,t){return Object.keys(t).map((r=e,e=>[r,e]));var r}(r,n);return[...t,...s]},[])}(e),n=s()(r);return n.push(...t.filter(t=>e.has(t)&&-1===n.indexOf(t))),n.reverse()}},21463(e,t,r){r.d(t,{Oi:()=>o,PI:()=>a,tK:()=>c});var n=r(86107),s=r(54451);function i(e){return JSON.parse(e)}function o(e,t){return i(e)[t]}function a(e){return new s.I(e.search)}function c(e,t,r,s){const o=a(e),c=function(e,t,r){return n=Object.assign(Object.assign({},i(e||"{}")),{[t]:r}),JSON.stringify(n);var n}(o.get(s),r,n.AO(t));return o.set(s,c),{pathname:e.pathname,search:(u=o,`?${u.toString()}`),hash:e.hash};var u}}
1,15267(e,t,r){r.d(t,{PJ:()=>A});var n=r(86107),s=r(90765);function i(e,t=""){const r="string"==typeof e?e:n.AO(e),{pathname:i="",search:o="",hash:a=""}=n.Rr(r.startsWith("/")?r:(0,s.A)(r,t));return{pathname:i,search:o,hash:a}}function o(){return Math.random().toString(36).slice(2,8)}class a{constructor(e,t){this.rootHistory=e,this.rootLocationTransformer=t,this.rootHistoryV2={get length(){try{return window.history.length}catch(e){return 1}},get location(){return e.location},push(t){const r=c(t,e.location);e.push(r,t.state)},replace(t){const r=c(t,e.location);e.replace(r,t.state)},createHref:t=>e.createHref(t),listen:t=>e.listen(({location:e,action:r})=>t(e,r))}}get rootLocation(){return this.rootHistory.location}push(e,t){const{pathname:r,search:n,hash:s,state:i}=this.createRootLocation(e,t);this.rootHistory.push({pathname:r,search:n,hash:s},i)}replace(e,t){const{pathname:r,search:n,hash:s,state:i}=this.createRootLocation(e,t);this.rootHistory.replace({pathname:r,search:n,hash:s},i)}createHref(e,t){const{pathname:r,search:n,hash:s}=this.createRootLocation(e,t);return this.rootHistory.createHref({pathname:r,search:n,hash:s})}getConsumerLocation(e){var t;const r=this.rootLocationTransformer.getConsumerPathFromRootLocation(this.rootLocation,e)||"/",{state:s,key:a}=(null===(t=this.rootLocation.state)||void 0===t?void 0:t[e])||{state:void 0,key:o()};return Object.assign(Object.assign({},i(n.Rr(r))),{state:s,key:a})}listenForRootLocationChange(e){return this.rootHistory.listen(({action:t})=>{e(t)})}createNewRootLocationForMultipleConsumers(...e){let t={pathname:"/"};if(this.rootLocationTransformer.createNewRootLocationForMultipleConsumers)t=this.rootLocationTransformer.createNewRootLocationForMultipleConsumers(...e);else for(const r of e)t=this.rootLocationTransformer.createRootLocation(t,r.location,r.historyKey);const r={};for(const{historyKey:t,state:n}of e)r[t]={state:n,key:o()};return Object.assign(Object.assign({},i(t)),{state:r})}createRootLocation(e,t){const r=this.rootLocationTransformer.createRootLocation(this.rootLocation,t,e),{state:n,key:s=o()}=t;return Object.assign(Object.assign({},i(r)),{state:Object.assign(Object.assign({},this.rootLocation.state),{[e]:{state:n,key:s}})})}}function c(e,t){return void 0!==e.pathname?e:void 0!==e.search?{pathname:t.pathname,search:e.search,hash:e.hash}:{pathname:t.pathname,search:t.search,hash:e.hash}}function u(e){if(function(e){return/^https?:\/\//.test(e)}(e)){const{pathname:t,search:r}=new URL(e);return{pathname:t,search:r}}return n.Rr(e)}var h=r(93212),l=r.n(h);class p{constructor(e,t,r){this.context=e,this.historyKey=t,this.historyMultiplexer=r,this.action=n.rc.Pop;const{pathname:s,search:i,hash:o,state:a,key:c}=r.getConsumerLocation(t);this.location={pathname:s.startsWith("/")?s:`/${s}`,search:i,hash:o,state:a,key:c}
1,this.push=this.push.bind(this),this.replace=this.replace.bind(this),this.go=this.go.bind(this),this.back=this.back.bind(this),this.forward=this.forward.bind(this),this.block=this.block.bind(this),this.createHref=this.createHref.bind(this)}push(e,t){this.location=this.createLocation(e,t),this.historyMultiplexer.push(this.historyKey,this.location),this.action=n.rc.Push}replace(e,t){this.location=this.createLocation(e,t),this.historyMultiplexer.replace(this.historyKey,this.location),this.action=n.rc.Replace}go(){this.context.logger.warn("history.go() is not supported.")}back(){this.context.logger.warn("history.back() is not supported.")}forward(){this.context.logger.warn("history.forward() is not supported.")}block(){return this.context.logger.warn("history.block() is not supported."),()=>{}}createHref(e){return this.historyMultiplexer.createHref(this.historyKey,i(e,n.AO(this.location)))}createLocation(e,t){return Object.assign(Object.assign({},i(e,this.location.pathname)),{state:t,key:o()})}}class d extends p{constructor(e,t,r){super(e,t,r),this.listeners=new Set,this.unregisterCallbacks=[],this.browserUnregister=r.listenForRootLocationChange(e=>{this.handleRootLocationChange(e)}),this.listen=this.listen.bind(this),this.push=this.push.bind(this),this.replace=this.replace.b
1ind(this)}destroy(){this.browserUnregister(),this.unregisterCallbacks.forEach(e=>e())}listen(e){this.listeners.add(e);const t=()=>{this.listeners.delete(e)};return this.unregisterCallbacks.push(t),t}push(e,t){super.push(e,t),this.notifyListeners()}replace(e,t){super.replace(e,t),this.notifyListeners()}notifyListeners(){for(const e of this.listeners)e({location:this.location,action:this.action})}handleRootLocationChange(e){const t=this.historyMultiplexer.getConsumerLocation(this.historyKey);this.matches(t)||(this.location=t,this.action=e,this.notifyListeners())}matches(e){return n.AO(e)===n.AO(this.location)&&l()(e.state,this.location.state)}}function f(e,t){return{get length(){return"undefined"==typeof window?1:window.history.length},get action(){return t.action},get location(){return t.location},push:(e,r)=>{if("string"==typeof e){const n=g(e,t);t.push(n,r)}else{const{pathname:r,search:n,hash:s,state:i}=e;t.push({pathname:r,search:n,hash:s},i)}},replace:(e,r)=>{if("string"==typeof e){const n=g(e,t);t.replace(n,r)}else{const{pathname:r,search:n,hash:s,state:i}=e;t.replace({pathname:r,search:n,hash:s},i)}},go:()=>{e.logger.warn("history.go() is not supported.")},goBack:()=>{e.logger.warn("history.goBack() is not supported.")},goForward:()=>{e.logger.warn("history.goForward() is not supported.")},block:()=>(e.logger.warn("history.block() is not supported."),()=>{}),listen:e=>t.listen(({location:t,action:r})=>e(t,r)),createHref:e=>t.createHref(e)}}function g(e,t){return e.startsWith("?")?t.location.pathname+e:e.startsWith("#")?t.location.pathname+t.location.search+e:e}class y extends p{constructor(e,t,r){super(e,t,r),this.listen=this.listen.bind(this)}listen(){return this.context.logger.warn("history.listen() is not supported."),()=>{}}}function m(e,t,r){const{getHistoryKey:n}=r;return(r,s)=>{const i=n({consumerId:r,consumerName:s});let o,a,c=()=>{};return{featureService:{createBrowserHistory:()=>
1{if(o)e.logger.warn(`createBrowserHistory was called multiple times by consumer ${JSON.stringify(r)}. Returning the same history instance as before.`);else{const r=new d(e,i,t.browserHistoryMultiplexer);c=()=>r.destroy(),o=f(e,r)}return o},createStaticHistory:()=>(a?e.logger.warn(`createStaticHistory was called multiple times by consumer ${JSON.stringify(r)}. Returning the same history instance as before.`):a=f(e,new y(e,i,t.staticHistoryMultiplexer)),a),get staticRootLocation(){return t.staticHistoryMultiplexer.rootLocation}},unbind:()=>{c()}}}}function S(e,t,r,n){return{historyKey:t,history:f(e,r),rootHistory:n.rootHistoryV2,createNewRootLocationForMultipleConsumers:(...e)=>n.createNewRootLocationForMultipleConsumers(...e.map(({historyKey:e,location:{pathname:t,search:r,hash:n,state:s}})=>({historyKey:e,location:{pathname:t,search:r,hash:n},state:s})))}}function b(e,t,r){const{mode:n,getHistoryKey:s}=r;return(r,i)=>{const o=s({consumerId:r,consumerName:i});return"browser"===n?function(e,t,r){const n=new d(e,r,t.browserHistoryMultiplexer);return{featureService:S(e,r,n,t.browserHistoryMultiplexer),unbind:()=>{n.destroy()}}}(e,t,o):function(e,t,r){return{featureService:S(e,r,new y(e,r,t.staticHistoryMultiplexer),t.staticHistoryMultiplexer)}}(e,t,o)}}function v(e,t,r){return{historyKey:e,history:t,rootHistory:r.rootHistory,createNewRootLocationForMultipleConsumers:(...e)=>r.createNewRootLocationForMultipleConsumers(...e)}}function w(e,t,r){const{mode:n,getHistoryKey:s}=r;return(r,i)=>{const o=s({consumerId:r,consumerName:i});return"browser"===n?function(e,t,r){const n=new d(e,r,t.browserHistoryMultiplexer);return{featureService:v(r,n,t.browserHistoryMultiplexer),unbind:()=>{n.destroy()}}}(e,t,o):function(e,t,r){return{featureService:v(r,new y(e,r,t.staticHistoryMultiplexer),t.staticHistoryMultiplexer)}}(e,t,o)}}function A(e,t={}){const{mode:r="browser",getHistoryKey:s=({consumerId:e})=>e}=t;return{id:"s2:history",optionalDependencies:{featureServices:{"s2:logger":"^1.0.0","s2:server-request":"^1.0.0"}},create:t=>{const i={logger:(o=t.featureServices)["s2:logger"]||console,serverRequest:o["s2:server-request"]};var o;const c=function(e,t){let r,s;return{get browserHistoryMultiplexer(){return r||(r=new a(n.zR(),t)),r},get staticHistoryMultiplexer(){if(!s){if(!e.serverRequest)throw new Error("Static history can not be created without a server request.");s=new a(n.sC({initialEntries:[u(e.serverRequest.url)],initialIndex:0}),t)}return s}}}(i,e);return{"1.0.0":m(i,c,{getHistoryKey:s}),"2.0.0":b(i,c,{mode:r,getHistoryKey:s}),"3.0.0":w(i,c,{mode:r,getHistoryKey:s})}}}}},54451(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{I:()=>URLSearchParamsPonyfill});const URLSearchParamsPonyfill="undefined"==typeof URLSearchParams&&"undefined"==typeof window?eval("require")("url").URLSearchParams:URLSearchParams},65923(e,t,r){function n(e=()=>console){return{id:"s2:logger",create:()=>({"1.0.0":(t,r)=>({featureService:e(t,r)})})}}r.d(t,{A:()=>n})},33925(e,t,r){function n(e){for(const t of Object.keys(e))System.register(t,[],r=>(r(e[t]),{}))}async function s(e){const t=await System.import(function(e){return/^https?:\/\//.test(e)||/^\.?\//.test(e)?e:`./${e}`}(e));return t.__esModule?t.default:t}r.d(t,{G:()=>n,H:()=>s}),r(13580),r(51048),r(1499)},7609(e,t,r){r.d(t,{n:()=>a});var n=r(30758),s=r(69989),i=r(36771),o=r(97419);function a(e){return n.createElement(s.Dy,null,({featureAppManager:t,logger:r})=>n.createElement(i.T.Consumer,null,s=>n.createElement(o.E,Object.assign({featureAppManager:t,logger:r,parentFeatureApp:s},e))))}},53711(e,t,r){r.d(t,{V:()=>u});var n=r(30758),s=r(69989),i=r(97419),o=r(89119);const a="object"==typeof window&&"object"==typeof document&&9===document.nodeType;class c extends n.PureComponent{constructor(e){super(e),this.state={},this.errorHandled=!1,this.mounted=!1;const{baseUrl:t,featureAppManager:r,src:n,serverSrc:s,asyncSsrManager:i,addUrlForHydration:c,addStylesheetsForSsr:u,moduleType:h,serverModuleType:l}=e,p=a?n:s,d=a?h:l;if(!p){if(a)throw new Error("No src provided.");return}if(!a&&c&&c((0,o.D)(t,n),h),!a&&u){const e=this.prependCssHrefs();e&&u(e)}const f=(0,o.D)(t,p),{error:g,promise:y,value:m}=r.getAsyncFeatureAppDefinition(f,d);g?(this.handleError(g),this.state={error:g}):m?this.state={featureAppDefinition:m}:!a&&i&&i.scheduleRerender(y)}async componentDidMount(){if(this.mounted=!0,this.appendCss(),this.state.featureAppDefinition)return;const{baseUrl:e,featureAppManager:t,src:r,moduleType:n}=this.props;try{const s=await t.getAsyncFeatureAppDefinition((0,o.D)(e,r),n).promise;this.mounted&&this.setState({featureAppDefinition:s})}catch(e){try{this.handleError(e),this.mounted&&this.setState({error:e})}catch(e){this.mounted&&this.setState({error:e,failedToHandleAsyncError:!0})}}}componentWillUnmount(){this.mounted=!1}render(){const{baseUrl:e,beforeCreate:t,children:r,config:s,featureAppId:o,featureAppName:a,onError:c,done:u,featureAppManager:h,logger:l}=this.props,{error:p,failedToHandleAsyncError:d,featureAppDefinition:f}=this.state;if(p){if(d)throw p;return r?r({error:p,loading:!1}):null}return f||r?n.createElement(i.E,{children:r,baseUrl:e,beforeCreate:t,config:s,featureAppId:o,featureAppName:a,featureAppDefinition:f,onError:c,done:u,featureAppManager:h,logger:l}):null}appendCss(){const e=this.prependCssHrefs();if(e)for(const{href:t,media:r="all"}of e)document.querySelector(`link[href="${t}"]`)||document.head.appendChild(Object.assign(document.createElement("link"),{rel:"stylesheet",href:t,media:r}))}prependCssHrefs(){const{baseUrl:e,css:t}=this.props;return e&&t?t.map(({href:t,media:r})=>({href:(0,o.D)(e,t),media:r})):t}handleError(e){this.errorHandled||(this.errorHandled=!0,this.props.onError?this.props.onError(e):this.logError(e))}logError(e){const{baseUrl:t,featureAppId:r,logger:n,src:s,serverSrc:i}=this.props,c=a?s:i;n.error(`The Feature App for the src ${JSON.stringify(c&&(0,o.D)(t,c))} and the ID ${JSON.stringify(r)} could not be rendered.`,e)}}function u(e){return n.createElement(s.Dy,null,t=>n.createElement(c,Object.assign({},t,e)))}},69989(e,t,r){r.d(t,{Dy:()=>o,Mc:()=>i,Tm:()=>s});var n=r(30758);const s=n.createContext(void 0),i=s.Provider;function o(e){return n.createElement(s.Consumer,null,t=>{if(!t)throw new Error("No Feature Hub context was provided! There are two possible causes: 1.) No FeatureHubContextProvider was rendered in the React tree. 2.) A Feature App that renders itself a FeatureAppLoader or a FeatureAppContainer did not declare @feature-hub/react as an external package.");const{logger:r=console}=t,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r}(t,["logger"]);return e.children(Object.assign({logger:r},n))})}},93535(e,t,r){r.r(t),r.d(t,{FeatureAppContainer:()=>n.n,FeatureAppLoader:()=>s.V,FeatureHubContext:()=>i.Tm,FeatureHubContextConsumer:()=>i.Dy,FeatureHubContextProvider:()=>i.Mc});var n=r(7609),s=r(53711),i=r(69989)},36771(e,t,r){r.d(t,{T:()=>n});const n=r(30758).createContext(void 0)},97419(e,t,r){r.d(t,{E:()=>a});var n=r(30758),s=r(36771),i=r(75744);const o=(e,t,r)=>{r?r(t):e.error(t)};class a extends n.PureComponent{constructor(){super(...arguments),this.state={loading:!0}
1,this.containerRef=n.createRef(),this.mounted=!1,this.loadingPromiseHandled=!1,this.domFeatureAppAttached=!1}static getDerivedStateFromProps(e,t){const{baseUrl:r,beforeCreate:n,config:s,featureAppId:a,featureAppName:c,featureAppManager:u,featureAppDefinition:h,done:l,logger:p,onError:d,parentFeatureApp:f}=e;if(h&&!t.featureApp&&!t.error)try{const e=u.createFeatureAppScope(a,h,{featureAppName:c,baseUrl:r,config:s,beforeCreate:n,done:l,parentFeatureApp:f}),{featureApp:t,release:o}=e;if(!(0,i.Oo)(t))throw new Error("Invalid Feature App found. The Feature App must be an object with either 1) a `render` method that returns a React element, or 2) an `attachTo` method that accepts a container DOM element.");return{featureApp:t,release:o,loading:Boolean(t.loadingPromise)}}catch(e){try{o(p,e,d)}catch(e){return{error:e,loading:!1,failedToHandleAsyncError:!0}}return{error:e,loading:!1}}return null}componentDidCatch(e){this.handleError(e),this.setState({error:e,loading:!1})}componentDidMount(){this.mounted=!0,this.attachDomFeatureApp(),this.handleLoading()}componentDidUpdate(){this.attachDomFeatureApp(),this.handleLoading()}componentWillUnmount(){if(this.mounted=!1,this.state&&this.state.release)try{this.state.release()}catch(e){this.handleError(e)}if(this.state&&this.state.detachFunction&&"function"==typeof this.state.detachFunction)try{this.state.detachFunction()}catch(e){this.handleError(e)}}render(){if("error"in this.state&&this.state.error){if(this.state.failedToHandleAsyncError)throw this.state.error;return this.renderError(this.state.error)}const{children:e,featureAppId:t,featureAppName:r}=this.props;if(!this.state.featureApp)return e?e({loading:!0}):null;const{featureApp:o,loading:a}=this.state;let c;if((0,i.x2)(o))try{c=o.render()}catch(e){return this.handleError(e),this.renderError(e)}else c=n.createElement("div",{ref:this.containerRef});return n.createElement(s.T.Provider,{value:{featureAppId:t,featureAppName:r}},e?e({featureAppNode:c,loading:a}):c)}handleLoading(){const{featureApp:e}=this.state;e&&e.loadingPromise&&!this.loadingPromiseHandled&&(this.loadingPromiseHandled=!0,e.loadingPromise.then(()=>{this.mounted&&this.setState({loading:!1})}).catch(e=>{try{this.handleError(e),this.mounted&&this.setState({error:e,failedToHandleAsyncError:!1,loading:!1})}catch(e){this.mounted&&this.setState({error:e,failedToHandleAsyncError:!0,loading:!1})}}))}renderError(e){const{children:t}=this.props;return t?t({error:e,loading:!1}):null}handleError(e){const{logger:t,onError:r}=this.props;o(t,e,r)}attachDomFeatureApp(){if(this.state.featureApp&&!this.domFeatureAppAttached&&this.containerRef.current&&!("error"in this.state)&&(0,i.ux)(this.state.featureApp))try{const e=this.state.featureApp.attachTo(this.containerRef.current);e&&"function"==typeof e&&this.setState({detachFunction:e}),this.domFeatureAppAttached=!0}catch(e){this.componentDidCatch(e)}}}},89119(e,t,r){r.d(t,{D:()=>i});var n=r(42176),s=r.n(n);function i(e,t){return!e||function(e){return/^https?:\/\//.test(e)}(t)?t:s()(e,t)}},75744(e,t,r){function n(e){return"function"==typeof e.attachTo}function s(e){return"function"==typeof e.render}function i(e){return!("object"!=typeof e||!e)&&(n(e)||s(e))}r.d(t,{Oo:()=>i,ux:()=>n,x2:()=>s})},66891(e,t,r){r.d(t,{o:()=>o});
1class n{setSerializedStates(e){this.serializedStatesByConsumerId=JSON.parse(decodeURI(e))}getSerializedState(e){return this.serializedStatesByConsumerId&&this.serializedStatesByConsumerId[e]}}class s{constructor(e,t,r){this.consumerId=e,this.serverSideStateManager=t,this.clientSideStateManager=r}register(e){this.serverSideStateManager.register(this.consumerId,e)}serializeStates(){return this.serverSideStateManager.serializeStates()}setSerializedStates(e){this.clientSideStateManager.setSerializedStates(e)}getSerializedState(){return this.clientSideStateManager.getSerializedState(this.consumerId)}}class i{constructor(){this.serializeStateCallbacks=new Map}register(e,t){this.serializeStateCallbacks.set(e,t)}serializeStates(){const e={};return this.serializeStateCallbacks.forEach((t,r)=>{e[r]=t()}),encodeURI(JSON.stringify(e))}}function o(e){return{id:"s2:serialized-state-manager",create:()=>{const t=new i,r=new n;return e&&r.setSerializedStates(e),{"1.0.0":e=>({featureService:new s(e,t,r)})}}}}o()}}]); 2//# sourceMappingURL=232.2419e50311fa121c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.