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AC,EACxC,EAAKA,YAAY3d,GAAQ4d,CAAI,E4BtPjCC,CAAiB,kI","sources":["webpack://pg-service-user-profile/webpack/universalModuleDefinition","webpack://pg-service-user-profile/webpack/runtime/load script","webpack://pg-service-user-profile/./node_modules/@estee/elc-service/node_modules/@estee/elc-universal-utils/src/UniversalUtils.ts","webpack://pg-service-user-profile/./node_modules/@estee/elc-service/node_modules/@estee/elc-universal-utils/src/BrowserStorage.ts","webpack://pg-service-user-profile/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://pg-service-user-profile/./node_modules/react-is/cjs/react-is.production.min.js","webpack://pg-service-user-profile/./node_modules/react-is/index.js","webpack://pg-service-user-profile/external umd \"ElcServiceBus\"","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"ELCLogger\"],\"commonjs2\":\"ELCLogger\",\"commonjs\":\"ELCLogger\",\"amd\":\"ELCLogger\"}","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"HttpTransport\"],\"commonjs2\":\"HttpTransport\",\"commonjs\":\"HttpTransport\",\"amd\":\"HttpTransport\"}","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"HypoContainer\"],\"commonjs2\":\"HypoContainer\",\"commonjs\":\"HypoContainer\",\"amd\":\"HypoContainer\"}","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"React\"],\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"mobx\"],\"commonjs2\":\"mobx\",\"commonjs\":\"mobx\",\"amd\":\"mobx\"}","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"mobxReact\"],\"commonjs2\":\"mobx-react\",\"commonjs\":\"mobx-react\",\"amd\":\"mobx-react\"}","webpack://pg-service-user-profile/external umd {\"root\":[\"ElcRuntime\",\"styled5\"],\"commonjs2\":\"styled-components\",\"commonjs\":\"styled-components\",\"amd\":\"styled-components\"}","webpack://pg-service-user-profile/webpack/bootstrap","webpack://pg-service-user-profile/webpack/runtime/compat get default export","webpack://pg-service-user-profile/webpack/runtime/define property getters","webpack://pg-service-user-profile/webpack/runtime/ensure chunk","webpack://pg-service-user-profile/webpack/runtime/get javascript chunk filename","webpack://pg-service-user-profile/webpack/runtime/global","webpack://pg-service-user-profile/webpack/runtime/hasOwnProperty shorthand","webpack://pg-service-user-profile/webpack/runtime/make namespace object","webpack://pg-service-user-profile/webpack/runtime/publicPath","webpack://pg-service-user-profile/webpack/runtime/jsonp chunk loading","webpack://pg-service-user-profile/./node_modules/@estee/elc-universal-utils/src/UniversalUtils.ts","webpack://pg-service-user-profile/./node_modules/@estee/elc-universal-utils/src/BrowserStorage.ts","webpack://pg-service-user-profile/./src/api/UserProfileApiSdk.ts","webpack://pg-service-user-profile/./src/internal/domain/entities/Config.ts","webpack://pg-service-user-profile/./src/internal/utils/ToCamelCase.ts","webpack://pg-service-user-profile/./src/internal/domain/entities/UserProfile.ts","webpack://pg-service-user-profile/./node_modules/@estee/elc-service/src/ViewController.ts","webpack://pg-service-user-profile/./src/internal/use-cases/LoadUserProfileUseCase.ts","webpack://pg-service-user-profile/./src/exported/user-profile-card/UserProfileCardController.ts","webpack://pg-service-user-profile/./src/exported/user-profile-welcome/UserProfileWelcomeController.ts","webpack://pg-service-user-profile/./src/internal/domain/entities/IConfig.ts","webpack://pg-service-user-profile/./src/internal/repositories/ConfigRepository.ts","webpack://pg-service-user-profile/./src/internal/repositories/AuthenticatedRepository.ts","webpack://pg-service-user-profile/./src/internal/repositories/UserProfileRepository.ts","webpack://pg-service-user-profile/./src/service-setup/ServiceBusController.ts","webpack://pg-service-user-profile/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://pg-service-user-profile/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://pg-service-user-profile/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://pg-service-user-profile/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://pg-service-user-profile/./node_modules/@loadable/component/dist/loadable.esm.js","webpack://pg-service-user-profile/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://pg-service-user-profile/./node_modules/@estee/elc-service/src/Service/utils/index.ts","webpack://pg-service-user-profile/./node_modules/@estee/elc-service/src/Service/Service.ts","webpack://pg-service-user-profile/./src/internal/use-cases/UserProfileServiceStartedUseCase.ts","webpack://pg-service-user-profile/./src/service-setup/UserProfileService.ts","webpack://pg-service-user-profile/./node_modules/@estee/elc-service-view-names/src/index.ts","webpack://pg-service-user-profile/./src/service-setup/diContainer.ts","webpack://pg-service-user-profile/./node_modules/@estee/elc-service/src/decorators/Decorators.ts","webpack://pg-service-user-profile/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"HypoContainer\"), require(\"HttpTransport\"), require(\"mobx\"), require(\"ElcServiceBus\"), require(\"react\"), require(\"ELCLogger\"), require(\"mobx-react\"), require(\"styled-components\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"HypoContainer\", \"HttpTransport\", \"mobx\", \"ElcServiceBus\", \"react\", \"ELCLogger\", \"mobx-react\", \"styled-components\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"pg-service-user-profile\"] = factory(require(\"HypoContainer\"), require(\"HttpTransport\"), require(\"mobx\"), require(\"ElcServiceBus\"), require(\"react\"), require(\"ELCLogger\"), require(\"mobx-react\"), require(\"styled-components\"));\n\telse\n\t\troot[\"pg-service-user-profile\"] = factory(root[\"ElcRuntime\"][\"HypoContainer\"], root[\"ElcRuntime\"][\"HttpTransport\"], root[\"ElcRuntime\"][\"mobx\"], root[\"ElcServiceBus\"], root[\"ElcRuntime\"][\"React\"], root[\"ElcRuntime\"][\"ELCLogger\"], root[\"ElcRuntime\"][\"mobxReact\"], root[\"ElcRuntime\"][\"styled5\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE_hypo_container__, __WEBPACK_EXTERNAL_MODULE__estee_elc_http_transport__, __WEBPACK_EXTERNAL_MODULE_mobx__, __WEBPACK_EXTERNAL_MODULE__estee_elc_service_bus__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE__estee_elc_logging__, __WEBPACK_EXTERNAL_MODULE_mobx_react__, __WEBPACK_EXTERNAL_MODULE_styled_components__) => {\nreturn ","var inProgress = {};\nvar dataWebpackPrefix = \"pg-service-user-profile:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ServiceBus } from '@estee/elc-service-bus';\nimport {\n    IServiceRegistry,\n    IComponentViewController,\n    IEcommApp,\n    AllServicesTypes\n} from './Service/ServiceUtils';\n\nexport const MOBILE_VERSION_SELECTOR = 'js-mobile-version';\nexport const DESKTOP_VERSION_SELECTOR = 'js-desktop-version';\n\nexport interface ISingleServiceInfo {\n    [key: string]: string;\n}\n\nexport interface IServiceInfo {\n    [name: string]: ISingleServiceInfo;\n}\n\nexport type ArrayMinOne<T> = {\n    0: T;\n} & T[];\n\ninterface IObjectOfStrings {\n    [key: string]: string;\n}\n\ninterface IServiceBusTopics {\n    commands: IObjectOfStrings;\n    events: IObjectOfStrings;\n    queries: IObjectOfStrings;\n}\n\nexport interface IPayload {\n    url: string;\n    body?: {};\n    options?: {};\n    headers?: {};\n}\n\nexport interface IGetPayload {\n    url: string;\n    options?: {};\n    headers?: {};\n    params?: {};\n}\n\nexport interface IRequestOptions {\n    debounceInterval?: number;\n}\n\nexport type HeaderType = 'Business-Unit' | 'Authorization' | 'AuthorizationToken' | 'ClientId';\nexport type HeaderObject = { [key in HeaderType]?: string };\nexport type IHeaderSetter = () => Promise<HeaderObject>;\nexport type IRequestTransformerConfig = { url: string } & RequestInit;\nexport type IRequestTransformer = (config: IRequestTransformerConfig) => Promise<void>;\n\nexport interface IHttpTransport {\n    getStaticGlobalHeaders(): HeaderObject;\n    setBaseUrl(baseUrl: string): void;\n    addGlobalHeaders(headers: HeaderObject): void;\n    removeGlobalHeader(headerName: string): void;\n    addGlobalHeaderSetter(setter: IHeaderSetter): void;\n    removeGlobalHeaderSetter(setter: IHeaderSetter): void;\n    addRequestTransformer(transformer: IRequestTransformer): void;\n    removeRequestTransformer(transformer: IRequestTransformer): void;\n    delete(payload: string | IPayload): Promise<any>;\n    post(payload: IPayload): Promise<any>;\n    patch(payload: IPayload): Promise<any>;\n    put(payload: IPayload): Promise<any>;\n    get(payload: string | IGetPayload, IRequestOptions?: IRequestOptions): Promise<any>;\n    readonly isAuthFailureHandlingEnabled: boolean;\n    setAuthFailureHandlingEnabled(enabled: boolean): void;\n}\n\nexport interface IUtagData {\n    [key: string]: string | string[] | undefined | boolean | number | null | number[];\n}\nexport interface IUtagCfgOvrd {\n    noview: boolean;\n    dom_complete?: boolean;\n    lowerqp?: boolean;\n    noload?: boolean | number;\n    nocookie?: boolean;\n    readywait?: boolean | number;\n    waittimer?: number;\n}\nexport interface IUtag {\n    link(data: IUtagData, cb?: Function): void;\n    view(data: IUtagData, cb?: Function): void;\n}\n\nexport interface IFrontendLogger {\n    isEnabled?: boolean;\n    loggedServices?: {\n        [key: string]: {\n            isEnabled?: boolean;\n        };\n    };\n}\n\ninterface ILoggerApiSDK {\n    sendLog: Function;\n}\ninterface IDrupalSite {\n    translations?: any;\n    trackingDataLayer?: any;\n    client?: {\n        subdomain?: string;\n        isMobile?: number;\n    };\n    frontendLogger?: IFrontendLogger;\n}\nexport type AnyObject = { [key: string]: any };\ntype ITranslationsCollection = { [key: string]: string | IObjectOfStrings };\ntype ViewDataPreloader = {\n    addConfigs(configs: AnyObject): void;\n    addTranslations(translations: ITranslationsCollection): void;\n    getPreloadedConfigs(arg: string[]): AnyObject | null;\n    getPreloadedTranslations(arg: string[]): ITranslationsCollection | null;\n    preload(): Promise<void>;\n    registerTranslationFieldsToPreload(fields?: string[]): void;\n    registerConfigFieldsToPreload(fields?: string[]): void;\n};\ninterface IComponentRenderer {\n    init(): Promise<void>;\n    getDataPreloader(): ViewDataPreloader | null;\n    setDataPreloader(arg: ViewDataPreloader): void;\n}\n\ntype IObjectLike = { [key: string]: any } | null;\nexport interface IViewManager {\n    loadComponent(): Promise<void>;\n    module: React.ComponentType<any> | null;\n    controllerFromView: IComponentViewController | null;\n}\nexport interface IViewsManager {\n    lazyServicesStarted: boolean;\n    getViewManager(viewName: string): IViewManager;\n    startService(service: AllServicesTypes): Promise<void>;\n    startLazyServices(): Promise<void>;\n}\ndeclare global {\n    // Augment Node.js `global`\n    namespace NodeJS {\n        interface Global {\n            ServiceBusTopics: IServiceBusTopics;\n            ServiceRegistry: IServiceRegistry;\n            GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n            HttpTransport: IHttpTransport;\n            __translationsCache__: { [key: string]: string };\n            __configsCache__: { [key: string]: any };\n            getPreloadedConfigs(fields?: string[]): IObjectLike;\n            addConfigs(configs: object): void;\n            getPreloadedTranslations(fields?: string[]): IObjectLike;\n            addTranslations(translations: object): void;\n            replaceSrc(originalSrc: string): string;\n            utag_data: IUtagData;\n            utag_cfg_ovrd: IUtagCfgOvrd;\n            utag: IUtag;\n            site?: IDrupalSite;\n            location: Location;\n            navigator: Navigator;\n            ComponentRenderer: IComponentRenderer;\n            ViewsManager: IViewsManager;\n            registerTranslationFieldsToPreload: Function;\n            registerConfigFieldsToPreload: Function;\n            serviceInfo: IServiceInfo;\n            getServiceVersions(): void;\n            __ssr: boolean;\n            onerror(\n                message: string,\n                url: string,\n                line: number,\n                column: number,\n                error: Error\n            ): boolean;\n            env: string;\n            buid: string;\n            loggerApiSDK: ILoggerApiSDK;\n            requestIdleCallback: Function;\n            cancelIdleCallback: Function;\n        }\n    }\n\n    // Augment Browser `window`\n    interface Window {\n        EcommApp?: IEcommApp;\n        ServiceBusTopics: IServiceBusTopics;\n        __translationsCache__: { [key: string]: string };\n        __configsCache__: { [key: string]: any };\n        getPreloadedConfigs(fields?: string[]): IObjectLike;\n        addConfigs(configs: object): void;\n        getPreloadedTranslations(fields?: string[]): IObjectLike;\n        addTranslations(translations: object): void;\n        ServiceRegistry: IServiceRegistry;\n        GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n        HttpTransport: IHttpTransport;\n        replaceSrc(originalSrc: string): string;\n        utag_data: any;\n        utag_cfg_ovrd: IUtagCfgOvrd;\n        utag: IUtag;\n        location: Location;\n        site?: IDrupalSite;\n        addEventListener(a: string, b: Function): void;\n        ComponentRenderer: IComponentRenderer;\n        ViewsManager: IViewsManager;\n        registerTranslationFieldsToPreload: Function;\n        registerConfigFieldsToPreload: Function;\n        getServiceVersions(): void;\n        __ssr: boolean;\n        onerror(message: string, url: string, line: number, column: number, error: Error): boolean;\n        env: string;\n        buid: string;\n        serviceInfo: IServiceInfo;\n        loggerApiSDK: ILoggerApiSDK;\n        requestIdleCallback: Function;\n        cancelIdleCallback: Function;\n    }\n\n    // Augment Web Worker `self`\n    interface WorkerGlobalScope {\n        ServiceBusTopics: IServiceBusTopics;\n        ServiceRegistry: IServiceRegistry;\n        GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n        HttpTransport: IHttpTransport;\n        __translationsCache__: { [key: string]: string };\n        __configsCache__: { [key: string]: any };\n        getPreloadedConfigs(fields?: string[]): IObjectLike;\n        addConfigs(configs: object): void;\n        getPreloadedTranslations(fields?: string[]): IObjectLike;\n        addTranslations(translations: object): void;\n        replaceSrc(originalSrc: string): string;\n        utag_data: IUtagData;\n        utag_cfg_ovrd: IUtagCfgOvrd;\n        utag: IUtag;\n        location: Location;\n        addEventListener(a: string, b: Function): void;\n        ComponentRenderer: IComponentRenderer;\n        ViewsManager: IViewsManager;\n        registerTranslationFieldsToPreload: Function;\n        registerConfigFieldsToPreload: Function;\n    }\n}\n\nexport const isWebRendered = typeof self === 'object' && self.self === self;\n\nexport const root: NodeJS.Global | Window = typeof window === 'undefined' ? global : window;\n\nexport const setupServiceInfo = (serviceInfo: ISingleServiceInfo) => {\n    const { name, ...rest } = serviceInfo;\n\n    root.serviceInfo = root.serviceInfo || {};\n    root.serviceInfo[name] = rest;\n};\n\nexport enum ISandboxEnvironment {\n    LIVE = 'live',\n    FEATURE = 'feature',\n    DEV = 'dev',\n    STAGE = 'stage',\n    CMS = 'cms',\n    PERSONAL = 'personal',\n    PRODUCTION = 'production'\n}\n\nexport const getSandboxEnvironment: () => string = () => {\n    let urlParts = root.location.hostname.split('.');\n    const { LIVE, FEATURE, DEV, STAGE, CMS, PERSONAL } = ISandboxEnvironment;\n\n    urlParts = urlParts.filter(part => !['www', 'm'].includes(part));\n    const isLive = !(urlParts[0] === 'c') && !(urlParts[0] === 'e');\n\n    return isLive\n        ? LIVE\n        : urlParts.includes(FEATURE)\n        ? FEATURE\n        : urlParts.includes(DEV)\n        ? DEV\n        : urlParts.includes(STAGE)\n        ? STAGE\n        : urlParts.includes(CMS)\n        ? CMS\n        : PERSONAL;\n};\n","export type storageKeyType = 'localStorage' | 'sessionStorage';\nexport namespace BrowserStorage {\n    export function eraseCookie(name: string) {\n        document.cookie = `${name}=; Max-Age=-99999999;`;\n    }\n\n    export function setCookie(name: string, value: string, daysOrDate: number | Date) {\n        let expires = '';\n        if (daysOrDate) {\n            const expirationDate =\n                typeof daysOrDate === 'number'\n                    ? new Date(Date.now() + daysOrDate * 24 * 60 * 60 * 1000)\n                    : daysOrDate;\n            expires = `; expires=${expirationDate.toUTCString()}`;\n        }\n        document.cookie = `${name}=${value || ''}${expires};path=/`;\n    }\n\n    export function getCookie(name: string) {\n        const nameEQ = `${name}=`;\n        const ca = document.cookie.split(';');\n        // eslint-disable-next-line @typescript-eslint/prefer-for-of\n        for (let i = 0; i < ca.length; i++) {\n            let c = ca[i];\n            while (c.charAt(0) === ' ') {\n                c = c.substring(1, c.length);\n            }\n            if (c.indexOf(nameEQ) === 0) {\n                return c.substring(nameEQ.length, c.length);\n            }\n        }\n\n        return null;\n    }\n\n    export function getItem(key: string, storageKey: storageKeyType = 'localStorage') {\n        try {\n            if (window[storageKey].getItem(key) !== null) {\n                return window[storageKey].getItem(key);\n            }\n        } catch (e) {\n            console.error(e);\n\n            return getCookie(key);\n        }\n    }\n\n    export function setItem(\n        key: string,\n        value: string,\n        storageKey: storageKeyType = 'localStorage'\n    ) {\n        try {\n            window[storageKey].setItem(key, value);\n        } catch (e) {\n            console.error(e);\n            setCookie(key, value, 20);\n        }\n    }\n\n    export function removeItem(key: string, storageKey: storageKeyType = 'localStorage') {\n        try {\n            window[storageKey].removeItem(key);\n        } catch (e) {\n            console.error(e);\n            eraseCookie(key);\n        }\n    }\n\n    export function storagePolling(key: string, callBack: Function) {\n        let storageValue = getItem(key);\n\n        const checkForKeyChange = () => {\n            const latestValue = getItem(key);\n\n            if (storageValue !== latestValue) {\n                storageValue = latestValue;\n                callBack(latestValue);\n            }\n        };\n\n        return setInterval(checkForKeyChange, 2000);\n    }\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n  childContextTypes: true,\n  contextType: true,\n  contextTypes: true,\n  defaultProps: true,\n  displayName: true,\n  getDefaultProps: true,\n  getDerivedStateFromError: true,\n  getDerivedStateFromProps: true,\n  mixins: true,\n  propTypes: true,\n  type: true\n};\nvar KNOWN_STATICS = {\n  name: true,\n  length: true,\n  prototype: true,\n  caller: true,\n  callee: true,\n  arguments: true,\n  arity: true\n};\nvar FORWARD_REF_STATICS = {\n  '$$typeof': true,\n  render: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true\n};\nvar MEMO_STATICS = {\n  '$$typeof': true,\n  compare: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true,\n  type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n  // React v16.11 and below\n  if (reactIs.isMemo(component)) {\n    return MEMO_STATICS;\n  } // React v16.12 and above\n\n\n  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n  if (typeof sourceComponent !== 'string') {\n    // don't hoist over string (html) components\n    if (objectPrototype) {\n      var inheritedComponent = getPrototypeOf(sourceComponent);\n\n      if (inheritedComponent && inheritedComponent !== objectPrototype) {\n        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n      }\n    }\n\n    var keys = getOwnPropertyNames(sourceComponent);\n\n    if (getOwnPropertySymbols) {\n      keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n    }\n\n    var targetStatics = getStatics(targetComponent);\n    var sourceStatics = getStatics(sourceComponent);\n\n    for (var i = 0; i < keys.length; ++i) {\n      var key = keys[i];\n\n      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n        try {\n          // Avoid failures from read-only properties\n          defineProperty(targetComponent, key, descriptor);\n        } catch (e) {}\n      }\n    }\n  }\n\n  return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-is.production.min.js');\n} else {\n  module.exports = require('./cjs/react-is.development.js');\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__estee_elc_service_bus__;","module.exports = __WEBPACK_EXTERNAL_MODULE__estee_elc_logging__;","module.exports = __WEBPACK_EXTERNAL_MODULE__estee_elc_http_transport__;","module.exports = __WEBPACK_EXTERNAL_MODULE_hypo_container__;","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_mobx__;","module.exports = __WEBPACK_EXTERNAL_MODULE_mobx_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_styled_components__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".\" + {\"pg-service-user-profile-common\":\"76935a1e0c63abc5dc80\",\"UserProfileWelcome\":\"84eb74d17f3a1aca46dd\",\"UserProfileCard\":\"eaed27554f235be4f4a6\"}[chunkId] + \".bundle.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"bundle\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkpg_service_user_profile\"] = self[\"webpackChunkpg_service_user_profile\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ServiceBus } from '@estee/elc-service-bus';\nimport {\n    IServiceRegistry,\n    IComponentViewController,\n    AllServicesTypes\n} from './Service/ServiceUtils';\n\nexport const MOBILE_VERSION_SELECTOR = 'js-mobile-version';\nexport const DESKTOP_VERSION_SELECTOR = 'js-desktop-version';\n\nexport interface ISingleServiceInfo {\n    [key: string]: string;\n}\n\nexport interface IServiceInfo {\n    [name: string]: ISingleServiceInfo;\n}\n\nexport type ArrayMinOne<T> = {\n    0: T;\n} & T[];\n\ninterface IObjectOfStrings {\n    [key: string]: string;\n}\n\ninterface IServiceBusTopics {\n    commands: IObjectOfStrings;\n    events: IObjectOfStrings;\n    queries: IObjectOfStrings;\n}\n\nexport interface IPayload {\n    url: string;\n    body?: {};\n    options?: {};\n    headers?: {};\n}\n\nexport interface IGetPayload {\n    url: string;\n    options?: {};\n    headers?: {};\n    params?: {};\n}\n\nexport interface IRequestOptions {\n    debounceInterval?: number;\n}\n\nexport type HeaderType = 'Business-Unit' | 'Authorization' | 'AuthorizationToken' | 'ClientId';\nexport type HeaderObject = { [key in HeaderType]?: string };\nexport type IHeaderSetter = () => Promise<HeaderObject>;\nexport type IRequestTransformerConfig = { url: string } & RequestInit;\nexport type IRequestTransformer = (config: IRequestTransformerConfig) => Promise<void>;\n\nexport interface IHttpTransport {\n    getStaticGlobalHeaders(): HeaderObject;\n    setBaseUrl(baseUrl: string): void;\n    addGlobalHeaders(headers: HeaderObject): void;\n    removeGlobalHeader(headerName: string): void;\n    addGlobalHeaderSetter(setter: IHeaderSetter): void;\n    removeGlobalHeaderSetter(setter: IHeaderSetter): void;\n    addRequestTransformer(transformer: IRequestTransformer): void;\n    removeRequestTransformer(transformer: IRequestTransformer): void;\n    delete(payload: string | IPayload): Promise<any>;\n    post(payload: IPayload): Promise<any>;\n    patch(payload: IPayload): Promise<any>;\n    put(payload: IPayload): Promise<any>;\n    get(payload: string | IGetPayload, IRequestOptions?: IRequestOptions): Promise<any>;\n    readonly isAuthFailureHandlingEnabled: boolean;\n    setAuthFailureHandlingEnabled(enabled: boolean): void;\n}\n\nexport interface IUtagData {\n    [key: string]: string | string[] | undefined | boolean | number | null | number[];\n}\nexport interface IUtagCfgOvrd {\n    noview: boolean;\n    dom_complete?: boolean;\n    lowerqp?: boolean;\n    noload?: boolean | number;\n    nocookie?: boolean;\n    readywait?: boolean | number;\n    waittimer?: number;\n}\nexport interface IUtag {\n    link(data: IUtagData, cb?: Function): void;\n    view(data: IUtagData, cb?: Function): void;\n}\n\nexport interface IFrontendLogger {\n    isEnabled?: boolean;\n    loggedServices?: {\n        [key: string]: {\n            isEnabled?: boolean;\n        };\n    };\n}\n\ninterface ILoggerApiSDK {\n    sendLog: Function;\n}\ninterface IDrupalSite {\n    translations?: any;\n    trackingDataLayer?: any;\n    client?: {\n        subdomain?: string;\n        isMobile?: number;\n    };\n    frontendLogger?: IFrontendLogger;\n}\nexport type AnyObject = { [key: string]: any };\ntype ITranslationsCollection = { [key: string]: string | IObjectOfStrings };\ntype ViewDataPreloader = {\n    addConfigs(configs: AnyObject): void;\n    addTranslations(translations: ITranslationsCollection): void;\n    getPreloadedConfigs(arg: string[]): AnyObject | null;\n    getPreloadedTranslations(arg: string[]): ITranslationsCollection | null;\n    preload(): Promise<void>;\n    registerTranslationFieldsToPreload(fields?: string[]): void;\n    registerConfigFieldsToPreload(fields?: string[]): void;\n};\ninterface IComponentRenderer {\n    init(): Promise<void>;\n    getDataPreloader(): ViewDataPreloader | null;\n    setDataPreloader(arg: ViewDataPreloader): void;\n}\n\ntype IObjectLike = { [key: string]: any } | null;\nexport interface IViewManager {\n    loadComponent(): Promise<void>;\n    module: React.ComponentType<any> | null;\n    controllerFromView: IComponentViewController | null;\n}\nexport interface IViewsManager {\n    lazyServicesStarted: boolean;\n    getViewManager(viewName: string): IViewManager;\n    startService(service: AllServicesTypes): Promise<void>;\n    startLazyServices(): Promise<void>;\n}\ndeclare global {\n    // Augment Node.js `global`\n    namespace NodeJS {\n        interface Global {\n            ServiceBusTopics: IServiceBusTopics;\n            ServiceRegistry: IServiceRegistry;\n            GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n            HttpTransport: IHttpTransport;\n            __translationsCache__: { [key: string]: string };\n            __configsCache__: { [key: string]: any };\n            getPreloadedConfigs(fields?: string[]): IObjectLike;\n            addConfigs(configs: object): void;\n            getPreloadedTranslations(fields?: string[]): IObjectLike;\n            addTranslations(translations: object): void;\n            replaceSrc(originalSrc: string): string;\n            utag_data: IUtagData;\n            utag_cfg_ovrd: IUtagCfgOvrd;\n            utag: IUtag;\n            site?: IDrupalSite;\n            location: Location;\n            navigator: Navigator;\n            ComponentRenderer: IComponentRenderer;\n            ViewsManager: IViewsManager;\n            registerTranslationFieldsToPreload: Function;\n            registerConfigFieldsToPreload: Function;\n            serviceInfo: IServiceInfo;\n            getServiceVersions(): void;\n            __ssr: boolean;\n            onerror(\n                message: string,\n                url: string,\n                line: number,\n                column: number,\n                error: Error\n            ): boolean;\n            env: string;\n            buid: string;\n            loggerApiSDK: ILoggerApiSDK;\n            requestIdleCallback: Function;\n            cancelIdleCallback: Function;\n        }\n    }\n\n    // Augment Browser `window`\n    interface Window {\n        ServiceBusTopics: IServiceBusTopics;\n        __translationsCache__: { [key: string]: string };\n        __configsCache__: { [key: string]: any };\n        getPreloadedConfigs(fields?: string[]): IObjectLike;\n        addConfigs(configs: object): void;\n        getPreloadedTranslations(fields?: string[]): IObjectLike;\n        addTranslations(translations: object): void;\n        ServiceRegistry: IServiceRegistry;\n        GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n        HttpTransport: IHttpTransport;\n        replaceSrc(originalSrc: string): string;\n        utag_data: any;\n        utag_cfg_ovrd: IUtagCfgOvrd;\n        utag: IUtag;\n        location: Location;\n        site?: IDrupalSite;\n        addEventListener(a: string, b: Function): void;\n        ComponentRenderer: IComponentRenderer;\n        ViewsManager: IViewsManager;\n        registerTranslationFieldsToPreload: Function;\n        registerConfigFieldsToPreload: Function;\n        getServiceVersions(): void;\n        __ssr: boolean;\n        onerror(message: string, url: string, line: number, column: number, error: Error): boolean;\n        env: string;\n        buid: string;\n        serviceInfo: IServiceInfo;\n        loggerApiSDK: ILoggerApiSDK;\n        requestIdleCallback: Function;\n        cancelIdleCallback: Function;\n    }\n\n    // Augment Web Worker `self`\n    interface WorkerGlobalScope {\n        ServiceBusTopics: IServiceBusTopics;\n        ServiceRegistry: IServiceRegistry;\n        GlobalServiceBus: ServiceBus<any, any, any, any, any>;\n        HttpTransport: IHttpTransport;\n        __translationsCache__: { [key: string]: string };\n        __configsCache__: { [key: string]: any };\n        getPreloadedConfigs(fields?: string[]): IObjectLike;\n        addConfigs(configs: object): void;\n        getPreloadedTranslations(fields?: string[]): IObjectLike;\n        addTranslations(translations: object): void;\n        replaceSrc(originalSrc: string): string;\n        utag_data: IUtagData;\n        utag_cfg_ovrd: IUtagCfgOvrd;\n        utag: IUtag;\n        location: Location;\n        addEventListener(a: string, b: Function): void;\n        ComponentRenderer: IComponentRenderer;\n        ViewsManager: IViewsManager;\n        registerTranslationFieldsToPreload: Function;\n        registerConfigFieldsToPreload: Function;\n    }\n}\n\nexport const isWebRendered = typeof self === 'object' && self.self === self;\n\nexport const root: NodeJS.Global | Window = typeof window === 'undefined' ? global : window;\n\nexport const setupServiceInfo = (serviceInfo: ISingleServiceInfo) => {\n    const { name, ...rest } = serviceInfo;\n\n    root.serviceInfo = root.serviceInfo || {};\n    root.serviceInfo[name] = rest;\n};\n\nexport enum ISandboxEnvironment {\n    LIVE = 'live',\n    FEATURE = 'feature',\n    DEV = 'dev',\n    STAGE = 'stage',\n    CMS = 'cms',\n    PERSONAL = 'personal',\n    PRODUCTION = 'production'\n}\n\nexport const getSandboxEnvironment: () => string = () => {\n    let urlParts = root.location.hostname.split('.');\n    const { LIVE, FEATURE, DEV, STAGE, CMS, PERSONAL } = ISandboxEnvironment;\n\n    urlParts = urlParts.filter(part => !['www', 'm'].includes(part));\n    const isLive = !(urlParts[0] === 'c') && !(urlParts[0] === 'e');\n\n    return isLive\n        ? LIVE\n        : urlParts.includes(FEATURE)\n        ? FEATURE\n        : urlParts.includes(DEV)\n        ? DEV\n        : urlParts.includes(STAGE)\n        ? STAGE\n        : urlParts.includes(CMS)\n        ? CMS\n        : PERSONAL;\n};\n","export type storageKeyType = 'localStorage' | 'sessionStorage';\nexport namespace BrowserStorage {\n    export function eraseCookie(name: string) {\n        document.cookie = `${name}=; Max-Age=-99999999;`;\n    }\n\n    export function setCookie(name: string, value: string, daysOrDate: number | Date) {\n        let expires = '';\n        if (daysOrDate) {\n            const expirationDate =\n                typeof daysOrDate === 'number'\n                    ? new Date(Date.now() + daysOrDate * 24 * 60 * 60 * 1000)\n                    : daysOrDate;\n            expires = `; expires=${expirationDate.toUTCString()}`;\n        }\n        document.cookie = `${name}=${value || ''}${expires};path=/`;\n    }\n\n    export function getCookie(name: string) {\n        const nameEQ = `${name}=`;\n        const ca = document.cookie.split(';');\n        // eslint-disable-next-line @typescript-eslint/prefer-for-of\n        for (let i = 0; i < ca.length; i++) {\n            let c = ca[i];\n            while (c.charAt(0) === ' ') {\n                c = c.substring(1, c.length);\n            }\n            if (c.indexOf(nameEQ) === 0) {\n                return c.substring(nameEQ.length, c.length);\n            }\n        }\n\n        return null;\n    }\n\n    export function getItem(key: string, storageKey: storageKeyType = 'localStorage') {\n        try {\n            if (window[storageKey].getItem(key) !== null) {\n                return window[storageKey].getItem(key);\n            }\n        } catch (e) {\n            console.error(e);\n\n            return getCookie(key);\n        }\n    }\n\n    export function setItem(\n        key: string,\n        value: string,\n        storageKey: storageKeyType = 'localStorage'\n    ) {\n        try {\n            window[storageKey].setItem(key, value);\n        } catch (e) {\n            console.error(e);\n            setCookie(key, value, 20);\n        }\n    }\n\n    export function removeItem(key: string, storageKey: storageKeyType = 'localStorage') {\n        try {\n            window[storageKey].removeItem(key);\n        } catch (e) {\n            console.error(e);\n            eraseCookie(key);\n        }\n    }\n\n    export function storagePolling(key: string, callBack: Function) {\n        let storageValue = getItem(key);\n\n        const checkForKeyChange = () => {\n            const latestValue = getItem(key);\n\n            if (storageValue !== latestValue) {\n                storageValue = latestValue;\n                callBack(latestValue);\n            }\n        };\n\n        return setInterval(checkForKeyChange, 2000);\n    }\n}\n","import { HttpTransport } from '@estee/elc-http-transport';\nimport { root } from '@estee/elc-universal-utils';\n\nimport { IUserProfileResponse } from '~domain/entities/UserProfile';\nimport { ConfigRepository } from '~repositories/ConfigRepository';\n\ntype IPgApiConfigKeys = 'apiAuthToken' | 'brandId' | 'regionId';\ntype IPgApiConfigs = Pick<ConfigRepository['config'], IPgApiConfigKeys>;\n\ninterface IGlobalHeaders {\n    Authorization: string;\n    AuthorizationCredentials: string;\n}\n\nconst BASE_API_PATH = '/rest/api/v1/ra';\n\nexport class UserProfileApiSdk {\n    private httpTransport: HttpTransport;\n    private apiAuthToken: ConfigRepository['config']['apiAuthToken'];\n    private brand: ConfigRepository['config']['brandId'];\n    private region: ConfigRepository['config']['regionId'];\n\n    constructor(httpTransport: HttpTransport) {\n        this.httpTransport = httpTransport;\n    }\n\n    public setConfigs({ apiAuthToken, brandId, regionId }: IPgApiConfigs) {\n        this.brand = brandId;\n        this.region = regionId;\n        this.apiAuthToken = apiAuthToken;\n\n        this.httpTransport.addGlobalHeaders(this.getGlobalHeaders());\n    }\n\n    private getAuthToken = (): string => this.apiAuthToken;\n\n    private getGlobalHeaders = (): IGlobalHeaders => {\n        const auth = btoa(this.getAuthToken());\n        const AuthorizationCredentials = `Basic ${auth}`;\n        const Authorization = AuthorizationCredentials;\n\n        return {\n            Authorization,\n            AuthorizationCredentials\n        };\n    };\n\n    // @todo: Extract this into an elc-perlgem-api package\n    private getBaseUrl = (): string => `${root.location.protocol}//${root.location.hostname}`;\n\n    public getDefaultParams = () => ({ brand: this.brand, region: this.region });\n\n    public getUserProfile = async (): Promise<IUserProfileResponse> => {\n        const params = this.getDefaultParams();\n        const url = `${this.getBaseUrl()}${BASE_API_PATH}/user`;\n\n        try {\n            const userProfileResponse = await this.httpTransport.get<IUserProfileResponse>({\n                url,\n                params,\n                options: {\n                    credentials: 'include'\n                }\n            });\n\n            return userProfileResponse.data;\n        } catch (err) {\n            return err;\n        }\n    };\n}\n","import { action, computed, observable } from 'mobx';\n\nimport { IServiceAppConfig, IServiceAppConfigs, IAppAndBUIDConfigs } from './IConfig';\n\nexport class Config {\n    @observable public config: IServiceAppConfigs;\n\n    constructor(appConfig: IServiceAppConfig) {\n        this.updateConfig({ appConfig, buidConfig: {} });\n    }\n\n    @action\n    public updateConfig(config: IAppAndBUIDConfigs) {\n        this.config = {\n            ...this.config,\n            ...config?.appConfig,\n            ...config?.buidConfig\n        };\n    }\n\n    @computed\n    public get brandId(): string {\n        return this.config?.brand?.id;\n    }\n\n    @computed\n    public get regionId(): string {\n        return this.config?.region?.id;\n    }\n\n    @computed\n    public get languageId(): string {\n        return this.config?.language?.id;\n    }\n\n    @computed\n    public get apiAuthToken(): string {\n        return this.config?.pgApiTokens?.userProfile;\n    }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nexport const toNumber = (value: string | number | null, defaultValue: number = 0): number =>\n    value ? parseInt(value as string, 10) : defaultValue;\n\nexport const toCamelCase = (snakeCased: string) =>\n    snakeCased.replace(/(_\\w)/g, (match) => match.toUpperCase().substr(1));\n\nexport const processValue = (value: any) =>\n    value === 1 || value === '1' ? true : value === 0 || value === '0' ? false : value;\n\nexport const processKey = (key: string, prefix: string = '') => {\n    const processedKey = key.replace(prefix, '');\n\n    return toCamelCase(processedKey);\n};\n\nexport const camelCaseData = (data: any, prefix: string = '') =>\n    Object.entries(data).reduce(\n        (allData, [key, value]) => ({ ...allData, [processKey(key, prefix)]: processValue(value) }),\n        {}\n    );\n","import { computed, observable, set } from 'mobx';\n\nimport { camelCaseData } from '~utils/ToCamelCase';\n\ninterface ILoyaltyInfo {\n    loyalty_active_flag: string | null;\n}\n\nexport interface IUserProfileResponse {\n    accepted_privacy_policy: string;\n    email_address: string;\n    first_name: string;\n    full_name?: string;\n    last_name: string;\n    loyalty_info?: ILoyaltyInfo;\n    recognized: number;\n    registered: number;\n    signedin: number;\n    user_id: string;\n    fullsizepic: string;\n    has_ontheway_orders: number;\n    has_orders: number;\n    has_replenishment_orders: number;\n    loyalty_active_flag: string;\n    profile_pic: string;\n    thumbnailpic: string;\n}\n\nexport interface IBasicUserDetails {\n    firstName: string;\n    lastName: string;\n    emailAddress: string;\n    hasLoyalty: boolean;\n}\n\nclass UserProfile {\n    @observable public acceptedPrivacyPolicy: boolean;\n    @observable public emailAddress: string = '';\n    @observable public firstName: string = '';\n    @observable public fullName: string = '';\n    @observable public hasOnthewayOrders: boolean;\n    @observable public hasOrders: boolean;\n    @observable public hasReplenishmentOrders: boolean;\n    @observable public lastName: string = '';\n    @observable public loyaltyActiveFlag: boolean;\n    @observable public loyaltyInfo: Record<string, unknown>;\n    @observable public recognized: boolean;\n    @observable public registered: boolean;\n    @observable public signedIn: boolean;\n    @observable public userId: string = '';\n\n    static fromJSON(userProfileApiResponse: IUserProfileResponse): UserProfile {\n        const userProfile = new UserProfile();\n        const modifiedData = camelCaseData(userProfileApiResponse);\n\n        set(userProfile, modifiedData);\n\n        return userProfile;\n    }\n\n    @computed public get name(): string {\n        return this.fullName ? this.fullName : [this.firstName, this.lastName].join(' ');\n    }\n\n    @computed\n    public get basicUserDetails(): IBasicUserDetails {\n        return {\n            emailAddress: this.emailAddress,\n            firstName: this.firstName,\n            lastName: this.lastName,\n            hasLoyalty: this.loyaltyActiveFlag\n        };\n    }\n}\n\nexport default UserProfile;\n","import { observable } from 'mobx';\nimport {\n    IComponentViewController,\n    IViewControllerData,\n    ViewControllerLoadedMethod\n} from '@estee/elc-universal-utils';\n\nexport class ViewController implements IComponentViewController {\n    public id?: string;\n    public dataState?: IViewControllerData;\n    public loaded?: ViewControllerLoadedMethod;\n    public configMergeStrategy?: Function;\n    @observable public isLoading: boolean = true;\n\n    public setSSRState = (data?: IViewControllerData) => {\n        this.dataState = data;\n    };\n\n    public setId = (id?: string) => {\n        this.id = id && btoa(unescape(encodeURIComponent(id)));\n    };\n\n    public get data(): IViewControllerData {\n        return {};\n    }\n}\n","import { diContainer, serviceNames } from '~setup/diContainer';\nimport { UserProfileRepository } from '~repositories/UserProfileRepository';\n\nexport class LoadUserProfileUseCase {\n    private userProfileRepository: UserProfileRepository;\n\n    constructor() {\n        this.userProfileRepository = diContainer.get(serviceNames.userProfileRepository);\n    }\n\n    public async execute() {\n        await this.userProfileRepository.fetchUserProfile();\n    }\n}\n","import { action, computed, observable } from 'mobx';\n\nimport { ViewController } from '@estee/elc-service';\n\nimport UserProfile from '~domain/entities/UserProfile';\nimport { UserProfileRepository } from '~repositories/UserProfileRepository';\nimport { LoadUserProfileUseCase } from '~use-cases/LoadUserProfileUseCase';\n\nexport interface IUserProfileCardData {\n    cardDetails: Pick<UserProfile, 'firstName' | 'emailAddress'>;\n}\n\nclass UserProfileCardController extends ViewController {\n    @observable private userProfileRepository: UserProfileRepository;\n\n    constructor(userProfileRepository: UserProfileRepository) {\n        super();\n        this.userProfileRepository = userProfileRepository;\n    }\n\n    @action\n    public loaded = async () => {\n        this.isLoading = true;\n        await new LoadUserProfileUseCase().execute();\n        this.isLoading = false;\n    };\n\n    @computed\n    public get data(): IUserProfileCardData {\n        return {\n            cardDetails: this.userProfileRepository?.userProfile?.basicUserDetails || {}\n        };\n    }\n}\n\nexport default UserProfileCardController;\n","import { action, computed } from 'mobx';\n\nimport { ViewController } from '@estee/elc-service';\n\nimport { UserProfileRepository } from '~repositories/UserProfileRepository';\nimport { LoadUserProfileUseCase } from '~use-cases/LoadUserProfileUseCase';\n\nclass UserProfileWelcomeController extends ViewController {\n    private userProfileRepository: UserProfileRepository;\n\n    constructor(userProfileRepository: UserProfileRepository) {\n        super();\n        this.userProfileRepository = userProfileRepository;\n    }\n\n    @action\n    public loaded = async () => {\n        this.isLoading = true;\n        await new LoadUserProfileUseCase().execute();\n        this.isLoading = false;\n    };\n\n    @computed\n    public get data() {\n        return {\n            userProfile: this.userProfileRepository.userProfile\n        };\n    }\n}\n\nexport default UserProfileWelcomeController;\n","import { IAppConfig } from '@estee/elc-universal-utils';\n\ntype PerlgemId = string;\n\ninterface IPerlgemConfig {\n    abbrev?: string;\n    id: PerlgemId;\n    literal?: string;\n}\n\n/* eslint-disable-next-line @typescript-eslint/no-empty-interface */\ninterface IBrandConfig extends IPerlgemConfig {}\n\n/* eslint-disable-next-line @typescript-eslint/no-empty-interface */\ninterface ILanguageConfig extends IPerlgemConfig {}\n\ninterface IRegionConfig extends IPerlgemConfig {\n    perlgem_region_id?: PerlgemId;\n}\n\nexport interface IServiceAppConfig extends IAppConfig {\n    pgApiTokens: {\n        [key: string]: string;\n    };\n}\n\ninterface IBUIDConfig {\n    brand: IBrandConfig;\n    language: ILanguageConfig;\n    region: IRegionConfig;\n}\n\nexport interface IServiceAppConfigs extends IServiceAppConfig, IBUIDConfig {}\n\nexport const brandIdPath = 'brand.id';\nexport const languageIdPath = 'language.id';\nexport const regionIdPath = 'region.id';\ninterface IBUIDPathedConfig extends IBUIDConfig {\n    [brandIdPath]?: IBrandConfig['id'];\n    [languageIdPath]?: ILanguageConfig['id'];\n    [regionIdPath]?: IRegionConfig['id'];\n}\n\nexport interface IAppAndBUIDConfigs {\n    appConfig: IServiceAppConfig;\n    buidConfig: Partial<IBUIDPathedConfig>;\n}\n\nexport interface IAppConfigWithRequestedBUIDKeys {\n    appConfig: IServiceAppConfig;\n    requestedBuidConfigs: string[];\n}\n","import { action, computed, observable } from 'mobx';\n\nimport { query, serviceQueries } from '@estee/elc-service-bus';\n\nimport { Config } from '~domain/entities/Config';\nimport {\n    brandIdPath,\n    languageIdPath,\n    regionIdPath,\n    IAppAndBUIDConfigs,\n    IAppConfigWithRequestedBUIDKeys,\n    IServiceAppConfigs\n} from '~domain/entities/IConfig';\n\nexport class ConfigRepository {\n    @observable private serviceConfig: Config;\n\n    constructor(serviceConfig: Config) {\n        this.serviceConfig = serviceConfig;\n    }\n\n    private modifyBuidPathedConfigs(buidConfig: IAppAndBUIDConfigs['buidConfig']) {\n        const {\n            [brandIdPath]: bId,\n            [languageIdPath]: lId,\n            [regionIdPath]: rId,\n            ...remainingConfigs\n        } = buidConfig;\n\n        const serviceConfigs = <IServiceAppConfigs>{\n            ...remainingConfigs,\n            brand: { id: bId },\n            language: { id: lId },\n            region: { id: rId }\n        };\n\n        return serviceConfigs;\n    }\n\n    private async fetchBuidConfigs(requestedBuidConfigs: string[]) {\n        const response = await query(serviceQueries.GET_CONFIG, requestedBuidConfigs);\n\n        return response;\n    }\n\n    @action public async fetchConfigs({\n        appConfig,\n        requestedBuidConfigs\n    }: IAppConfigWithRequestedBUIDKeys) {\n        const buidConfigResponse = await this.fetchBuidConfigs(requestedBuidConfigs);\n        const buidConfig = this.modifyBuidPathedConfigs(buidConfigResponse);\n\n        this.serviceConfig.updateConfig({\n            appConfig,\n            buidConfig\n        });\n    }\n\n    @computed\n    public get config(): Config {\n        return this.serviceConfig;\n    }\n}\n","import { action, computed, observable } from 'mobx';\n\nimport { query, serviceQueries, ServiceQueriesResponseType } from '@estee/elc-service-bus';\n\nenum Status {\n    IDLE = 'IDLE',\n    LOADING = 'LOADING',\n    ERROR = 'ERROR',\n    LOADED = 'LOADED'\n}\n\ntype AuthState = typeof serviceQueries.GET_USER_AUTH_STATE;\ntype UserAuthState = Pick<ServiceQueriesResponseType, AuthState>[AuthState];\n\nexport const authStates: { [key: string]: UserAuthState } = {\n    SIGNEDIN: 'SIGNEDIN',\n    ANONYMOUS: 'ANONYMOUS',\n    RECOGNIZED: 'RECOGNIZED'\n};\n\nexport class AuthenticatedRepository {\n    private initialPromise: Promise<void>;\n    @observable private status: Status = Status.IDLE;\n    @observable public authState: UserAuthState = authStates.ANONYMOUS;\n\n    @action public ensureData() {\n        if (this.isUnfullfilled) {\n            this.initialPromise = this.loadData();\n        }\n\n        return this.initialPromise;\n    }\n\n    @action private async loadData() {\n        try {\n            this.status = Status.LOADING;\n            await this.fetchUserAuthState();\n\n            if (this.authState === authStates.SIGNEDIN) {\n                await this.fetchData();\n                this.status = Status.LOADED;\n            }\n        } catch (err) {\n            this.status = Status.ERROR;\n            throw new Error(err);\n        }\n    }\n\n    @action public async fetchData() {}\n\n    @action public async fetchUserAuthState() {\n        try {\n            this.authState = (await query(serviceQueries.GET_USER_AUTH_STATE)) as UserAuthState;\n        } catch (err) {\n            throw new Error(err);\n        }\n    }\n\n    @computed public get isUnfullfilled() {\n        return [Status.IDLE, Status.ERROR].includes(this.status);\n    }\n}\n","import { action, computed, observable } from 'mobx';\n\nimport { UserProfileApiSdk } from '~api/UserProfileApiSdk';\nimport UserProfile, { IUserProfileResponse } from '~domain/entities/UserProfile';\n\nimport { AuthenticatedRepository } from './AuthenticatedRepository';\n\nexport class UserProfileRepository extends AuthenticatedRepository {\n    private apiSdk: UserProfileApiSdk;\n    @observable private userData: UserProfile;\n\n    constructor(apiSdk: UserProfileApiSdk) {\n        super();\n        this.apiSdk = apiSdk;\n    }\n\n    @action public fetchUserProfile = async () => {\n        return super.ensureData();\n    };\n\n    @action public fetchData = async () => {\n        const data = <IUserProfileResponse>await this.apiSdk.getUserProfile();\n        const userData = UserProfile.fromJSON(data);\n        this.setUserData(userData);\n    };\n\n    @action public setUserData = (userData: UserProfile) => {\n        this.userData = userData;\n    };\n\n    @computed\n    public get userProfile() {\n        return this.userData;\n    }\n\n    @computed\n    public get userProfileId() {\n        return this.userData?.userId;\n    }\n\n    @computed\n    public get emailAddress() {\n        return this.userData?.emailAddress;\n    }\n\n    @computed\n    public get basicUserDetails() {\n        return this.userData?.basicUserDetails;\n    }\n}\n","import { queryProvider, serviceQueries } from '@estee/elc-service-bus';\n\nimport { UserProfileRepository } from '~repositories/UserProfileRepository';\nimport { LoadUserProfileUseCase } from '~use-cases/LoadUserProfileUseCase';\n\nexport class ServiceBusController {\n    private userProfileRepository: UserProfileRepository;\n\n    constructor(userProfileRepository: UserProfileRepository) {\n        this.userProfileRepository = userProfileRepository;\n    }\n\n    @queryProvider(serviceQueries.GET_USER_ACCOUNT_ID)\n    public userId = async () => {\n        await new LoadUserProfileUseCase().execute();\n\n        return this.userProfileRepository?.userProfileId;\n    };\n\n    @queryProvider(serviceQueries.EMAIL)\n    public email = async () => {\n        await new LoadUserProfileUseCase().execute();\n\n        return this.userProfileRepository?.emailAddress;\n    };\n\n    @queryProvider(serviceQueries.BASIC_USER_DETAILS)\n    public basicUserDetails = async () => {\n        await new LoadUserProfileUseCase().execute();\n\n        return this.userProfileRepository?.basicUserDetails;\n    };\n}\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}","export default function _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}","export default function _assertThisInitialized(self) {\n  if (self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return self;\n}","export default function _setPrototypeOf(o, p) {\n  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  };\n\n  return _setPrototypeOf(o, p);\n}","import React from 'react';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport { isValidElementType } from 'react-is';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\n/* eslint-disable import/prefer-default-export */\nfunction invariant(condition, message) {\n  if (condition) return;\n  var error = new Error(\"loadable: \" + message);\n  error.framesToPop = 1;\n  error.name = 'Invariant Violation';\n  throw error;\n}\nfunction warn(message) {\n  // eslint-disable-next-line no-console\n  console.warn(\"loadable: \" + message);\n}\n\nvar Context = /*#__PURE__*/\nReact.createContext();\n\nvar LOADABLE_REQUIRED_CHUNKS_KEY = '__LOADABLE_REQUIRED_CHUNKS__';\nfunction getRequiredChunkKey(namespace) {\n  return \"\" + namespace + LOADABLE_REQUIRED_CHUNKS_KEY;\n}\n\nvar sharedInternals = /*#__PURE__*/Object.freeze({\n  __proto__: null,\n  getRequiredChunkKey: getRequiredChunkKey,\n  invariant: invariant,\n  Context: Context\n});\n\nvar LOADABLE_SHARED = {\n  initialChunks: {}\n};\n\nvar STATUS_PENDING = 'PENDING';\nvar STATUS_RESOLVED = 'RESOLVED';\nvar STATUS_REJECTED = 'REJECTED';\n\nfunction resolveConstructor(ctor) {\n  if (typeof ctor === 'function') {\n    return {\n      requireAsync: ctor,\n      resolve: function resolve() {\n        return undefined;\n      },\n      chunkName: function chunkName() {\n        return undefined;\n      }\n    };\n  }\n\n  return ctor;\n}\n\nvar withChunkExtractor = function withChunkExtractor(Component) {\n  var LoadableWithChunkExtractor = function LoadableWithChunkExtractor(props) {\n    return React.createElement(Context.Consumer, null, function (extractor) {\n      return React.createElement(Component, Object.assign({\n        __chunkExtractor: extractor\n      }, props));\n    });\n  };\n\n  if (Component.displayName) {\n    LoadableWithChunkExtractor.displayName = Component.displayName + \"WithChunkExtractor\";\n  }\n\n  return LoadableWithChunkExtractor;\n};\n\nvar identity = function identity(v) {\n  return v;\n};\n\nfunction createLoadable(_ref) {\n  var _ref$defaultResolveCo = _ref.defaultResolveComponent,\n      defaultResolveComponent = _ref$defaultResolveCo === void 0 ? identity : _ref$defaultResolveCo,\n      _render = _ref.render,\n      onLoad = _ref.onLoad;\n\n  function loadable(loadableConstructor, options) {\n    if (options === void 0) {\n      options = {};\n    }\n\n    var ctor = resolveConstructor(loadableConstructor);\n    var cache = {};\n    /**\n     * Cachekey represents the component to be loaded\n     * if key changes - component has to be reloaded\n     * @param props\n     * @returns {null|Component}\n     */\n\n    function _getCacheKey(props) {\n      if (options.cacheKey) {\n        return options.cacheKey(props);\n      }\n\n      if (ctor.resolve) {\n        return ctor.resolve(props);\n      }\n\n      return 'static';\n    }\n    /**\n     * Resolves loaded `module` to a specific `Component\n     * @param module\n     * @param props\n     * @param Loadable\n     * @returns Component\n     */\n\n\n    function resolve(module, props, Loadable) {\n      var Component = options.resolveComponent ? options.resolveComponent(module, props) : defaultResolveComponent(module);\n\n      if (options.resolveComponent && !isValidElementType(Component)) {\n        throw new Error(\"resolveComponent returned something that is not a React component!\");\n      }\n\n      hoistNonReactStatics(Loadable, Component, {\n        preload: true\n      });\n      return Component;\n    }\n\n    var InnerLoadable =\n    /*#__PURE__*/\n    function (_React$Component) {\n      _inheritsLoose(InnerLoadable, _React$Component);\n\n      InnerLoadable.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n        var cacheKey = _getCacheKey(props);\n\n        return _extends({}, state, {\n          cacheKey: cacheKey,\n          // change of a key triggers loading state automatically\n          loading: state.loading || state.cacheKey !== cacheKey\n        });\n      };\n\n      function InnerLoadable(props) {\n        var _this;\n\n        _this = _React$Component.call(this, props) || this;\n        _this.state = {\n          result: null,\n          error: null,\n          loading: true,\n          cacheKey: _getCacheKey(props)\n        };\n        invariant(!props.__chunkExtractor || ctor.requireSync, 'SSR requires `@loadable/babel-plugin`, please install it'); // Server-side\n\n        if (props.__chunkExtractor) {\n          // This module has been marked with no SSR\n          if (options.ssr === false) {\n            return _assertThisInitialized(_this);\n          } // We run load function, we assume that it won't fail and that it\n          // triggers a synchronous loading of the module\n\n\n          ctor.requireAsync(props)[\"catch\"](function () {\n            return null;\n          }); // So we can require now the module synchronously\n\n          _this.loadSync();\n\n          props.__chunkExtractor.addChunk(ctor.chunkName(props));\n\n          return _assertThisInitialized(_this);\n        } // Client-side with `isReady` method present (SSR probably)\n        // If module is already loaded, we use a synchronous loading\n        // Only perform this synchronous loading if the component has not\n        // been marked with no SSR, else we risk hydration mismatches\n\n\n        if (options.ssr !== false && ( // is ready - was loaded in this session\n        ctor.isReady && ctor.isReady(props) || // is ready - was loaded during SSR process\n        ctor.chunkName && LOADABLE_SHARED.initialChunks[ctor.chunkName(props)])) {\n          _this.loadSync();\n        }\n\n        return _this;\n      }\n\n      var _proto = InnerLoadable.prototype;\n\n      _proto.componentDidMount = function componentDidMount() {\n        this.mounted = true; // retrieve loading promise from a global cache\n\n        var cachedPromise = this.getCache(); // if promise exists, but rejected - clear cache\n\n        if (cachedPromise && cachedPromise.status === STATUS_REJECTED) {\n          this.setCache();\n        } // component might be resolved synchronously in the constructor\n\n\n        if (this.state.loading) {\n          this.loadAsync();\n        }\n      };\n\n      _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n        // Component has to be reloaded on cacheKey change\n        if (prevState.cacheKey !== this.state.cacheKey) {\n          this.loadAsync();\n        }\n      };\n\n      _proto.componentWillUnmount = function componentWillUnmount() {\n        this.mounted = false;\n      };\n\n      _proto.safeSetState = function safeSetState(nextState, callback) {\n        if (this.mounted) {\n          this.setState(nextState, callback);\n        }\n      }\n      /**\n       * returns a cache key for the current props\n       * @returns {Component|string}\n       */\n      ;\n\n      _proto.getCacheKey = function getCacheKey() {\n        return _getCacheKey(this.props);\n      }\n      /**\n       * access the persistent cache\n       */\n      ;\n\n      _proto.getCache = function getCache() {\n        return cache[this.getCacheKey()];\n      }\n      /**\n       * sets the cache value. If called without value sets it as undefined\n       */\n      ;\n\n      _proto.setCache = function setCache(value) {\n        if (value === void 0) {\n          value = undefined;\n        }\n\n        cache[this.getCacheKey()] = value;\n      };\n\n      _proto.triggerOnLoad = function triggerOnLoad() {\n        var _this2 = this;\n\n        if (onLoad) {\n          setTimeout(function () {\n            onLoad(_this2.state.result, _this2.props);\n          });\n        }\n      }\n      /**\n       * Synchronously loads component\n       * target module is expected to already exists in the module cache\n       * or be capable to resolve synchronously (webpack target=node)\n       */\n      ;\n\n      _proto.loadSync = function loadSync() {\n        // load sync is expecting component to be in the \"loading\" state already\n        // sounds weird, but loading=true is the initial state of InnerLoadable\n        if (!this.state.loading) return;\n\n        try {\n          var loadedModule = ctor.requireSync(this.props);\n          var result = resolve(loadedModule, this.props, Loadable);\n          this.state.result = result;\n          this.state.loading = false;\n        } catch (error) {\n          console.error('loadable-components: failed to synchronously load component, which expected to be available', {\n            fileName: ctor.resolve(this.props),\n            chunkName: ctor.chunkName(this.props),\n            error: error ? error.message : error\n          });\n          this.state.error = error;\n        }\n      }\n      /**\n       * Asynchronously loads a component.\n       */\n      ;\n\n      _proto.loadAsync = function loadAsync() {\n        var _this3 = this;\n\n        var promise = this.resolveAsync();\n        promise.then(function (loadedModule) {\n          var result = resolve(loadedModule, _this3.props, {\n            Loadable: Loadable\n          });\n\n          _this3.safeSetState({\n            result: result,\n            loading: false\n          }, function () {\n            return _this3.triggerOnLoad();\n          });\n        })[\"catch\"](function (error) {\n          return _this3.safeSetState({\n            error: error,\n            loading: false\n          });\n        });\n        return promise;\n      }\n      /**\n       * Asynchronously resolves(not loads) a component.\n       * Note - this function does not change the state\n       */\n      ;\n\n      _proto.resolveAsync = function resolveAsync() {\n        var _this4 = this;\n\n        var _this$props = this.props,\n            __chunkExtractor = _this$props.__chunkExtractor,\n            forwardedRef = _this$props.forwardedRef,\n            props = _objectWithoutPropertiesLoose(_this$props, [\"__chunkExtractor\", \"forwardedRef\"]);\n\n        var promise = this.getCache();\n\n        if (!promise) {\n          promise = ctor.requireAsync(props);\n          promise.status = STATUS_PENDING;\n          this.setCache(promise);\n          promise.then(function () {\n            promise.status = STATUS_RESOLVED;\n          }, function (error) {\n            console.error('loadable-components: failed to asynchronously load component', {\n              fileName: ctor.resolve(_this4.props),\n              chunkName: ctor.chunkName(_this4.props),\n              error: error ? error.message : error\n            });\n            promise.status = STATUS_REJECTED;\n          });\n        }\n\n        return promise;\n      };\n\n      _proto.render = function render() {\n        var _this$props2 = this.props,\n            forwardedRef = _this$props2.forwardedRef,\n            propFallback = _this$props2.fallback,\n            __chunkExtractor = _this$props2.__chunkExtractor,\n            props = _objectWithoutPropertiesLoose(_this$props2, [\"forwardedRef\", \"fallback\", \"__chunkExtractor\"]);\n\n        var _this$state = this.state,\n            error = _this$state.error,\n            loading = _this$state.loading,\n            result = _this$state.result;\n\n        if (options.suspense) {\n          var cachedPromise = this.getCache() || this.loadAsync();\n\n          if (cachedPromise.status === STATUS_PENDING) {\n            throw this.loadAsync();\n          }\n        }\n\n        if (error) {\n          throw error;\n        }\n\n        var fallback = propFallback || options.fallback || null;\n\n        if (loading) {\n          return fallback;\n        }\n\n        return _render({\n          fallback: fallback,\n          result: result,\n          options: options,\n          props: _extends({}, props, {\n            ref: forwardedRef\n          })\n        });\n      };\n\n      return InnerLoadable;\n    }(React.Component);\n\n    var EnhancedInnerLoadable = withChunkExtractor(InnerLoadable);\n    var Loadable = React.forwardRef(function (props, ref) {\n      return React.createElement(EnhancedInnerLoadable, Object.assign({\n        forwardedRef: ref\n      }, props));\n    });\n    Loadable.displayName = 'Loadable'; // In future, preload could use `<link rel=\"preload\">`\n\n    Loadable.preload = function (props) {\n      ctor.requireAsync(props);\n    };\n\n    Loadable.load = function (props) {\n      return ctor.requireAsync(props);\n    };\n\n    return Loadable;\n  }\n\n  function lazy(ctor, options) {\n    return loadable(ctor, _extends({}, options, {\n      suspense: true\n    }));\n  }\n\n  return {\n    loadable: loadable,\n    lazy: lazy\n  };\n}\n\nfunction defaultResolveComponent(loadedModule) {\n  // eslint-disable-next-line no-underscore-dangle\n  return loadedModule.__esModule ? loadedModule[\"default\"] : loadedModule[\"default\"] || loadedModule;\n}\n\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nvar _createLoadable =\n/*#__PURE__*/\ncreateLoadable({\n  defaultResolveComponent: defaultResolveComponent,\n  render: function render(_ref) {\n    var Component = _ref.result,\n        props = _ref.props;\n    return React.createElement(Component, props);\n  }\n}),\n    loadable = _createLoadable.loadable,\n    lazy = _createLoadable.lazy;\n\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nvar _createLoadable$1 =\n/*#__PURE__*/\ncreateLoadable({\n  onLoad: function onLoad(result, props) {\n    if (result && props.forwardedRef) {\n      if (typeof props.forwardedRef === 'function') {\n        props.forwardedRef(result);\n      } else {\n        props.forwardedRef.current = result;\n      }\n    }\n  },\n  render: function render(_ref) {\n    var result = _ref.result,\n        props = _ref.props;\n\n    if (props.children) {\n      return props.children(result);\n    }\n\n    return null;\n  }\n}),\n    loadable$1 = _createLoadable$1.loadable,\n    lazy$1 = _createLoadable$1.lazy;\n\n/* eslint-disable no-underscore-dangle, camelcase */\nvar BROWSER = typeof window !== 'undefined';\nfunction loadableReady(done, _temp) {\n  if (done === void 0) {\n    done = function done() {};\n  }\n\n  var _ref = _temp === void 0 ? {} : _temp,\n      _ref$namespace = _ref.namespace,\n      namespace = _ref$namespace === void 0 ? '' : _ref$namespace,\n      _ref$chunkLoadingGlob = _ref.chunkLoadingGlobal,\n      chunkLoadingGlobal = _ref$chunkLoadingGlob === void 0 ? '__LOADABLE_LOADED_CHUNKS__' : _ref$chunkLoadingGlob;\n\n  if (!BROWSER) {\n    warn('`loadableReady()` must be called in browser only');\n    done();\n    return Promise.resolve();\n  }\n\n  var requiredChunks = null;\n\n  if (BROWSER) {\n    var id = getRequiredChunkKey(namespace);\n    var dataElement = document.getElementById(id);\n\n    if (dataElement) {\n      requiredChunks = JSON.parse(dataElement.textContent);\n      var extElement = document.getElementById(id + \"_ext\");\n\n      if (extElement) {\n        var _JSON$parse = JSON.parse(extElement.textContent),\n            namedChunks = _JSON$parse.namedChunks;\n\n        namedChunks.forEach(function (chunkName) {\n          LOADABLE_SHARED.initialChunks[chunkName] = true;\n        });\n      } else {\n        // version mismatch\n        throw new Error('loadable-component: @loadable/server does not match @loadable/component');\n      }\n    }\n  }\n\n  if (!requiredChunks) {\n    warn('`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side');\n    done();\n    return Promise.resolve();\n  }\n\n  var resolved = false;\n  return new Promise(function (resolve) {\n    window[chunkLoadingGlobal] = window[chunkLoadingGlobal] || [];\n    var loadedChunks = window[chunkLoadingGlobal];\n    var originalPush = loadedChunks.push.bind(loadedChunks);\n\n    function checkReadyState() {\n      if (requiredChunks.every(function (chunk) {\n        return loadedChunks.some(function (_ref2) {\n          var chunks = _ref2[0];\n          return chunks.indexOf(chunk) > -1;\n        });\n      })) {\n        if (!resolved) {\n          resolved = true;\n          resolve();\n        }\n      }\n    }\n\n    loadedChunks.push = function () {\n      originalPush.apply(void 0, arguments);\n      checkReadyState();\n    };\n\n    checkReadyState();\n  }).then(done);\n}\n\n/* eslint-disable no-underscore-dangle */\nvar loadable$2 = loadable;\nloadable$2.lib = loadable$1;\nvar lazy$2 = lazy;\nlazy$2.lib = lazy$1;\nvar __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sharedInternals;\n\nexport default loadable$2;\nexport { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, lazy$2 as lazy, loadableReady };\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  setPrototypeOf(subClass, superClass);\n}","import {\n    root,\n    AllServicesTypes,\n    AllUpdatedServicesTypes,\n    IComponentViewController,\n    IFederatedService,\n    IOlderServiceRegistryComponent,\n    IServiceRegistryComponent\n} from '@estee/elc-universal-utils';\n\nexport function getServices() {\n    return root.ServiceRegistry || {};\n}\n\nexport function hasServiceStarted(service: AllServicesTypes) {\n    return service.isStarted;\n}\n// isLazy is true for exported services by createServiceManifest\nexport function isServiceLazy(service: AllUpdatedServicesTypes) {\n    return Boolean(service.isLazy);\n}\n// createServiceManifest exports an object with fewer keys\nexport function isServiceFromManifest(service: AllServicesTypes) {\n    // @ts-ignore\n    return Boolean(service.getView) && isServiceLazy(service);\n}\n// To be removed after SDFEFND-1853\nexport function isServiceUpdated(service: AllServicesTypes) {\n    return Boolean(service.views); // key added in elc-service v7.x\n}\n\nfunction isViewInService(viewName: string) {\n    return (service: AllServicesTypes) => {\n        if (isServiceUpdated(service)) {\n            return (service as IServiceRegistryComponent).views.includes(viewName);\n        }\n\n        return (service as IOlderServiceRegistryComponent).getView(viewName);\n    };\n}\n\n// Refactor after SDFEFND-1853 to only search in views[]\nexport function findServiceByViewName(viewName: string): AllServicesTypes {\n    const services = Object.values(getServices());\n    const service: AllServicesTypes | undefined = services.find(isViewInService(viewName));\n\n    if (!service) {\n        throw new Error(`Service wasn't found for view ${viewName}`);\n    }\n\n    return service;\n}\n\n/* SSR */\nexport interface IComponentDataState {\n    [key: string]: object | number | string;\n}\nexport interface IComponentState extends IComponentDataState {\n    children: string[];\n}\n\nexport function setStateInController(state: object, controller: IComponentViewController) {\n    const viewState = Object.values(state)[0]; // { [VIEW_NAME]: { ...state } }\n    if (viewState && controller.setSSRState) {\n        controller.setSSRState(viewState);\n    }\n}\n\nexport function setControllerId(config: string | null, controller: IComponentViewController) {\n    if (config && controller.setId) {\n        controller.setId(config);\n    }\n}\n\nexport function parseState(state: string | null) {\n    let parsedState: IComponentState | undefined;\n    try {\n        if (state) {\n            parsedState = JSON.parse(state);\n        }\n    } finally {\n        parsedState = parsedState ? parsedState : { children: [] };\n    }\n\n    return parsedState;\n}\n\nexport function initializeControllerForSSR(\n    viewController: IComponentViewController | null,\n    state: IComponentDataState,\n    config: string | null\n) {\n    if (viewController) {\n        setStateInController(state, viewController);\n        setControllerId(config, viewController);\n    }\n}\n\n/* Module Federation */\nexport async function getModule<T>(child: string, router: string): Promise<T> {\n    // @ts-ignore\n    const module = await (root[child] as unknown).get(`./${router}`);\n\n    return module() as T;\n}\n\nexport async function importComponent<T>(componentName: string): Promise<T> {\n    const srv = (Object.entries(getServices()).find(([_, value]) =>\n        value.views?.includes(componentName)\n    ) as unknown) as [string, IFederatedService];\n\n    const { name } = srv[1];\n\n    return getModule(name, componentName);\n}\n","import loadable from '@loadable/component';\nimport {\n    root,\n    IAppConfig,\n    ICachedComponentsRegistry,\n    IComponentRegistry,\n    IComponentViewController,\n    IManifestServiceRegistryComp,\n    IServiceRegistryComponent,\n    RegisteredComponent,\n    ServiceInitializer\n} from '@estee/elc-universal-utils';\nimport { ELCLogger, TriggerType } from '@estee/elc-logging';\nimport { ServiceBusController } from './ServiceBusController';\nimport { getServices } from './utils';\n\nroot.ServiceRegistry = root.ServiceRegistry || {};\n\nexport abstract class Service implements IServiceRegistryComponent {\n    protected logger: ELCLogger;\n\n    public serviceBusController: ServiceBusController;\n    public componentsRegistry: IComponentRegistry = {};\n    public cachedComponentsRegistry: ICachedComponentsRegistry = {};\n    public isLazy: boolean = false;\n    public isStarted: boolean = false;\n    public views: string[] = [];\n    public startPromise: Promise<void>;\n\n    constructor(\n        public name: string,\n        public version: string,\n        public serviceInitializer: ServiceInitializer\n    ) {}\n\n    public async initializeService(appConfig: IAppConfig): Promise<void> {\n        try {\n            await this.serviceInitializer(appConfig);\n            this.isStarted = true;\n        } catch (error) {\n            this.logger.error({\n                message: `Could not start service ${this.name}`,\n                triggerType: TriggerType.render,\n                payload: {\n                    error,\n                    context: {\n                        serviceRegistry: root.ServiceRegistry\n                    }\n                }\n            });\n        }\n    }\n\n    public start(appConfig: IAppConfig): Promise<void> {\n        if (!this.startPromise && !this.isStarted) {\n            this.logger = new ELCLogger({\n                serviceName: this.name,\n                environment: appConfig.env || root.env,\n                buid: appConfig.businessUnitId || root.buid,\n                serviceVersion: this.version\n            });\n\n            this.startPromise = this.initializeService(appConfig);\n        }\n\n        return this.startPromise as Promise<void>;\n    }\n\n    public register = (overrideValues?: Omit<IManifestServiceRegistryComp, 'start'>) => {\n        root.ServiceRegistry = getServices();\n\n        root.ServiceRegistry[this.name] = Object.assign(\n            root.ServiceRegistry[this.name] || {},\n            {\n                start: this.start,\n                startPromise: this.startPromise,\n                name: this.name,\n                version: this.version,\n                views: this.views,\n                getView: this.getView,\n                registerView: this.registerView,\n                initializeService: this.initializeService,\n                setViewInCache: this.setViewInCache,\n                getViewFromCache: this.getViewFromCache,\n                serviceInitializer: this.serviceInitializer,\n                componentsRegistry: this.componentsRegistry,\n                cachedComponentsRegistry: this.cachedComponentsRegistry,\n                isStarted: this.isStarted,\n                isLazy: this.isLazy\n            },\n            overrideValues || {}\n        );\n    };\n\n    public getView = (componentName: string) => {\n        return this.componentsRegistry[componentName] || null;\n    };\n\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    public setViewInCache = (componentName: string, component: React.ComponentType<any>) => {\n        this.cachedComponentsRegistry[componentName] = component;\n    };\n\n    public getViewFromCache = (componentName: string) => {\n        return this.cachedComponentsRegistry[componentName] || null;\n    };\n\n    public registerView = (\n        componentName: string,\n        component: RegisteredComponent,\n        viewController?: () => IComponentViewController\n    ) => {\n        this.views.push(componentName);\n\n        this.componentsRegistry[componentName] = {\n            componentName,\n            component: loadable(component),\n            viewController\n        };\n    };\n}\n","import { UserProfileApiSdk } from '~api/UserProfileApiSdk';\nimport { IAppConfigWithRequestedBUIDKeys } from '~domain/entities/IConfig';\nimport { ConfigRepository } from '~repositories/ConfigRepository';\nimport { diContainer, serviceNames } from '~setup/diContainer';\n\nexport class UserProfileServiceStartedUseCase {\n    private apiSdk: UserProfileApiSdk;\n    private configRepository: ConfigRepository;\n    private configs: IAppConfigWithRequestedBUIDKeys;\n\n    constructor(configs: IAppConfigWithRequestedBUIDKeys) {\n        this.apiSdk = diContainer.get(serviceNames.userProfileApiSdk);\n        this.configRepository = diContainer.get(serviceNames.configRepository);\n        this.configs = configs;\n    }\n\n    public execute = async () => {\n        await this.configRepository.fetchConfigs(this.configs);\n        this.apiSdk.setConfigs(this.configRepository.config);\n    };\n}\n","import { Service } from '@estee/elc-service';\nimport * as serviceViewsName from '@estee/elc-service-view-names';\nimport { ServiceInitializer } from '@estee/elc-universal-utils';\n\nimport { IServiceAppConfig } from '~domain/entities/IConfig';\nimport { UserProfileServiceStartedUseCase } from '~use-cases/UserProfileServiceStartedUseCase';\n\nimport { diContainer, serviceNames } from './diContainer';\n\nconst { name, version } = __serviceInfo__;\n\nexport class UserProfileService extends Service {\n    constructor(serviceIntializer: ServiceInitializer) {\n        super(name, version, serviceIntializer);\n\n        this.registerView(\n            serviceViewsName.USER_PROFILE_WELCOME,\n            () =>\n                import(\n                    /* webpackChunkName: 'UserProfileWelcome' */\n                    '../exported/user-profile-welcome/UserProfileWelcome'\n                ),\n            () => diContainer.get(serviceNames.userProfileWelcomeViewController)\n        );\n\n        this.registerView(\n            serviceViewsName.USER_PROFILE_CARD,\n            () =>\n                import(\n                    /* webpackChunkName: 'UserProfileCard' */\n                    '../exported/user-profile-card/UserProfileCard'\n                ),\n            () => diContainer.get(serviceNames.userProfileCardViewController)\n        );\n    }\n\n    public async start(appConfig: IServiceAppConfig) {\n        const service = await super.start(appConfig);\n        const requestedBuidConfigs = ['brand.id', 'language.id', 'region.id'];\n\n        const useCase = new UserProfileServiceStartedUseCase({\n            appConfig,\n            requestedBuidConfigs\n        });\n\n        await useCase.execute();\n\n        return service;\n    }\n}\n","export const OFFERS_TO_DISPLAY = 'offers-to-display';\nexport const ORDER_ERROR_MESSAGE = 'order-error-message';\nexport const PAYMENT_METHODS = 'payment-methods';\nexport const PAYMENT_INFORMATION = 'payment-information';\nexport const FORGOT_PASSWORD = 'forgot-password';\nexport const RESET_PASSWORD = 'reset-password';\nexport const AUTOMATIC_OFFERS = 'automatic-offers';\nexport const THRESHOLD_MESSAGES = 'threshold-messages';\nexport const MANUAL_OFFER = 'manual-offer';\nexport const ORDER_CONFIRMATION_COMPONENT = 'order-confirmation-component';\nexport const PASSWORD_STRENGTH = 'password-strength';\nexport const SAVE_FOR_LATER_LIST = 'save-for-later-list';\nexport const SIGN_IN_FORM = 'sign-in-form';\n\nexport const SIGN_UP_FORM = 'sign-up-form';\nexport const CHANGE_PASSWORD = 'change-password';\nexport const CHANGE_EMAIL = 'change-email';\nexport const EMAIL_VERIFICATION = 'email-verification';\nexport const CONFIRM_REGISTRATION = 'confirm-registration';\n\nexport const ACCOUNT_DASHBOARD = 'account-dashboard';\nexport const ACCOUNT_LANDING_SCREEN = 'account-landing-screen';\nexport const ACCOUNT_LATEST_ORDER = 'account-latest-order';\nexport const ACCOUNT_ORDER_INFORMATION = 'account-order-information';\nexport const ACCOUNT_OVERLAY = 'account-overlay';\nexport const ACCOUNT_PAST_ORDER_STATUS_MENU = 'account-past-order-status-menu';\nexport const ACCOUNT_SIDEBAR = 'account-sidebar';\nexport const ACCOUNT_SIDEBAR_LOYALTY = 'account-sidebar-loyalty';\n\nexport const USER_PROFILE = 'user-profile';\nexport const USER_PROFILE_WELCOME = 'user-profile-welcome';\nexport const USER_PROFILE_CARD = 'user-profile-card';\n\nexport const ADDRESS_FORM = 'address-form';\nexport const ADDRESS_LIST = 'address-list';\nexport const FORMATTED_ADDRESS = 'formatted-address';\nexport const RETURN_USER_EMAIL = 'return-user-email';\nexport const USER_EMAIL = 'user-email';\nexport const USER_EMAIL_WITH_OPT_IN = 'user-email-with-opt-in';\nexport const SIGN_OUT_LINK = 'sign-out-link';\nexport const CART_ITEMS = 'cart-items';\nexport const CART_ORDER_SUMMARY = 'cart-order-summary';\nexport const CART_MERGE = 'cart-merge';\nexport const ACCOUNT_INFO = 'account-info';\nexport const PRODUCT_GRID = 'product-grid';\nexport const PRODUCT_FULL = 'product-full';\nexport const PRODUCT_FULL_ORDERABLE = 'product-full-orderable';\nexport const CART_OVERLAY = 'cart-overlay';\nexport const CART_ICON_BUTTON = 'cart-icon-button';\nexport const ORDER_HISTORY = 'order-history';\nexport const ORDER_DETAILS = 'order-details';\nexport const ORDER_HISTORY_COUNTER_BUTTONS = 'order-history-counter-buttons';\nexport const ORDER_HISTORY_TEMPORARY_MODULE = 'order-history-temporary-module';\nexport const ACCOUNT_INFO_LINK = 'account-info-link';\nexport const SIGN_IN_NAV_LINK = 'sign-in-nav-link';\n\nexport const CART_SIDEBAR = 'cart-sidebar';\nexport const CART_SIDEBAR_OFFERS_TAB = 'cart-sidebar-offers-tab';\nexport const CART_SIDEBAR_CART_OFFERS = 'cart-sidebar-cart-offers';\nexport const CART_SIDEBAR_OFFER_CODE_MODULE = 'cart-sidebar-offer-code-module';\n\nexport const EMAIL_OPT_IN = 'email-opt-in';\nexport const VIEW_EMAIL_OPT_IN = 'view-email-opt-in';\nexport const HELPFUL_LINKS = 'helpful-links';\n\nexport const SIGN_UP_SCREEN = 'sign-up-screen';\nexport const SIGN_IN_SCREEN = 'sign-in-screen';\nexport const ORDER_CONFIRMATION_SCREEN = 'order-confirmation-screen';\nexport const ORDER_ASSOCIATION_SCREEN = 'order-association-screen';\nexport const EXTERNAL_PAYMENT_ERROR_SCREEN = 'external-payment-error-screen';\nexport const PAYMENT_SCREEN = 'payment-screen';\nexport const PAYMENT_NAME = 'payment-name';\nexport const PAYMENT_ICON = 'payment-icon';\nexport const CHECKOUT_HEADER = 'checkout-header';\nexport const CHECKOUT_FOOTER = 'checkout-footer';\nexport const SHIPPING_SCREEN = 'shipping-screen';\nexport const SHOPPING_BAG_PAGE = 'shopping-bag-page';\nexport const PRODUCT_BRIEF = 'product-brief';\nexport const PRODUCT_QUICKVIEW = 'product-quickview';\nexport const SHIPPING_METHODS = 'shipping-methods';\nexport const HOME_DELIVERY_OPTIONS = 'home-delivery-options';\nexport const DELIVERY_TOUT = 'delivery-tout';\nexport const ELC_CHECKOUT = 'elc-checkout';\nexport const ELC_ACCOUNT = 'elc-account';\nexport const STYLEGUIDE = 'style-guide';\nexport const PRODUCT_NOTIFY_ME = 'product-notify-me';\nexport const CHOICE_OF_SKUS_LIST = 'choice-of-skus-list';\nexport const PRODUCT_CROSS_SELL = 'product-cross-sell';\nexport const PRODUCT_ADD_TO_BAG = 'product-add-to-bag';\nexport const PRODUCT_SHADESVIEW = 'product-shadesview';\nexport const PRODUCT_SIZE_PICKER = 'product-size-picker';\nexport const PRODUCT_QUANTITY_SELECTOR = 'product-quantity-selector';\nexport const PRODUCT_SHADE_PICKER = 'product-shade-picker';\nexport const PRODUCT_MEDIA_CAROUSEL_NAV = 'product-media-carousel-nav';\nexport const PRODUCT_SHADE_PICKER_BUTTON = 'product-shade-picker-button';\nexport const PRODUCT_RATING = 'product-rating';\nexport const PRODUCT_RATING_WRAPPER = 'product-rating-wrapper';\nexport const PRODUCT_REVIEWS = 'product-reviews';\nexport const REVIEW_DETAILS = 'review-details';\nexport const PRODUCT_CTA = 'product-cta';\nexport const PRODUCT_SHADES_SIDEBAR = 'product-shades-sidebar';\nexport const PRODUCT_BASIC_INFO = 'product-basic-info';\nexport const PRODUCT_BASIC_CTA = 'product-basic-cta';\nexport const PRODUCT_COMPARISON_MODULE = 'product-comparison-module';\nexport const LOYALTY_POINTS_INFO = 'loyalty-points-info';\n\nexport const CONTENT_BLOCK = 'content-block';\nexport const BASIC_TOUT = 'elc-basic-tout-v1';\nexport const VIDEO_TOUT_YOUTUBE = 'elc-video-tout-youtube-v1';\nexport const VIDEO_TOUT_MP4_FILE = 'elc-video-tout-mp4-file-v1';\nexport const THIRD_PARTY_TOUT = 'elc-third-party-tout-v1';\nexport const VTO_FOUNDATION_OVERLAY = 'elc-vto-foundation-overlay-v1';\nexport const VTO_FOUNDATION_QR_CODE_OVERLAY = 'elc-vto-foundation-qr-code-overlay-v1';\n\nexport const OLAPIC_WIDGET = 'ugc-olapic-widget';\n\nexport const VTO = 'vto';\nexport const VTO_CTA_BUTTON = 'vto-cta-button';\nexport const VTO_SKIN_CARE = 'vto-skin-care';\n\nexport const SMARTGIFT = 'smartgift';\n\nexport const STORES = 'stores';\nexport const STORES_DIRECTORY = 'stores-directory';\nexport const SEARCH_RESULTS = 'search-results';\nexport const SEARCH_GNAV_INPUT_FIELD = 'search-gnav-input-field';\nexport const VOICE_SEARCH = 'voice-search';\nexport const STORE_DETAILS = 'store-details';\nexport const FIND_IN_STORE_BUTTON = 'find-in-store-button';\nexport const FIND_IN_STORE_MODAL = 'find-in-store-modal';\nexport const PICK_UP_IN_STORE = 'pick-up-in-store';\n\nexport const STYLEGUIDE_TYPOGRAPHY = 'styleguide-typography';\nexport const STYLEGUIDE_BUTTONS = 'styleguide-buttons';\nexport const STYLEGUIDE_INPUTS = 'styleguide-inputs';\nexport const STYLEGUIDE_COMPONENTS = 'styleguide-components';\n\nexport const ELC_RAMP = 'elc-ramp';\n\nexport const CARE_LANDING = 'elc-care-landing';\nexport const ORDER_TRACKING = 'order-tracking';\nexport const ORDER_TRACKING_INFORMATION = 'order-tracking-information';\nexport const AUTO_REPLENISH = 'auto-replenish';\n\nexport const GIFTING_TIER_PICK = 'gifting-tier-pick';\nexport const GIFTING_PRODUCTS_TRAY = 'gifting-products-tray';\n\nexport const DISCOVERY = 'discovery';\nexport const DISCOVERY_GNAV = 'discovery-gnav';\n","import { Container } from 'hypo-container';\n\nimport { HttpTransport } from '@estee/elc-http-transport';\nimport { getDecorators } from '@estee/elc-service';\n\nimport { UserProfileApiSdk } from '~api/UserProfileApiSdk';\nimport { Config } from '~domain/entities/Config';\nimport UserProfile from '~domain/entities/UserProfile';\nimport UserProfileCardController from '~exported/user-profile-card/UserProfileCardController';\nimport UserProfileWelcomeController from '~exported/user-profile-welcome/UserProfileWelcomeController';\nimport { ConfigRepository } from '~repositories/ConfigRepository';\nimport { UserProfileRepository } from '~repositories/UserProfileRepository';\n\nimport { ServiceBusController } from './ServiceBusController';\nimport { UserProfileService } from './UserProfileService';\n\nexport const diContainer = new Container();\nexport const serviceNames = {\n    config: 'CONFIG',\n    configRepository: 'CONFIG_REPOSITORY',\n    httpTransport: 'HTTP_TRANSPORT',\n    serviceBusController: 'SERVICE_BUS_CONTROLLER',\n    userProfile: 'USER_PROFILE',\n    userProfileApiSdk: 'USER_PROFILE_API_SDK',\n    userProfileCardViewController: 'USER_PROFILE_CARD_VIEW_CONTROLLER',\n    userProfileRepository: 'USER_PROFILE_REPOSITORY',\n    userProfileService: 'USER_PROFILE_SERVICE',\n    userProfileWelcomeViewController: 'USER_PROFILE_WELCOME_VIEW_CONTROLLER'\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const setConfig = (configJSON: any) => {\n    diContainer.config = configJSON;\n};\n\ndiContainer\n    .register(serviceNames.config, (c) => {\n        const appConfig = c.config;\n\n        return new Config(appConfig);\n    })\n    .register(serviceNames.userProfileService, (c) => {\n        const service = new UserProfileService((config) => {\n            setConfig(config);\n            const serviceBus = c.get(serviceNames.serviceBusController);\n\n            return serviceBus;\n        });\n\n        return service;\n    })\n    .register(serviceNames.httpTransport, () => new HttpTransport())\n    .register(serviceNames.userProfile, () => new UserProfile())\n    .register(serviceNames.configRepository, (c) => {\n        const entity = c.get(serviceNames.config);\n\n        return new ConfigRepository(entity);\n    })\n    .register(serviceNames.userProfileRepository, (c) => {\n        const api = c.get(serviceNames.userProfileApiSdk);\n\n        return new UserProfileRepository(api);\n    })\n    .register(serviceNames.userProfileWelcomeViewController, (c) => {\n        const repository = c.get(serviceNames.userProfileRepository);\n\n        return new UserProfileWelcomeController(repository);\n    })\n    .register(serviceNames.userProfileCardViewController, (c) => {\n        const repository = c.get(serviceNames.userProfileRepository);\n\n        return new UserProfileCardController(repository);\n    })\n    .register(serviceNames.serviceBusController, (c) => {\n        const repository = c.get(serviceNames.userProfileRepository);\n\n        return new ServiceBusController(repository);\n    })\n    .register(serviceNames.userProfileApiSdk, (c) => {\n        const transport = c.get(serviceNames.httpTransport);\n\n        return new UserProfileApiSdk(transport);\n    });\n\nconst { lazyInject } = getDecorators(diContainer);\n\nexport { lazyInject };\n","import { Container } from 'hypo-container';\nexport const getDecorators = (container: Container) => ({\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    lazyInject: (name?: string) => (\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        target: any,\n        key: string,\n        descriptor?: PropertyDescriptor\n    ) => {\n        const resourceName = name || key;\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        const sbGetter = function (this: any) {\n            const resource = container.get(resourceName);\n            if (!resource) {\n                throw new Error(`The requested ${resourceName} does not exists`);\n            }\n\n            return resource;\n        };\n        let propertyDescriptor = descriptor || {};\n        if (!descriptor) {\n            propertyDescriptor = {\n                get: sbGetter\n            };\n            Object.defineProperty(target, key, propertyDescriptor);\n        } else {\n            propertyDescriptor.get = sbGetter;\n        }\n    }\n});\n","import { setupServiceInfo } from '@estee/elc-universal-utils';\n\nimport { diContainer, serviceNames } from './service-setup/diContainer';\n\ndiContainer.get(serviceNames.userProfileService).register();\n\nsetupServiceInfo(__serviceInfo__);\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE_hypo_container__","__WEBPACK_EXTERNAL_MODULE__estee_elc_http_transport__","__WEBPACK_EXTERNAL_MODULE_mobx__","__WEBPACK_EXTERNAL_MODULE__estee_elc_service_bus__","__WEBPACK_EXTERNAL_MODULE_react__","__WEBPACK_EXTERNAL_MODULE__estee_elc_logging__","__WEBPACK_EXTERNAL_MODULE_mobx_react__","__WEBPACK_EXTERNAL_MODULE_styled_components__","inProgress","dataWebpackPrefix","window","g","BrowserStorage","eraseCookie","name","document","cookie","setCookie","value","daysOrDate","expires","Date","now","toUTCString","getCookie","nameEQ","ca","split","i","length","c","charAt","substring","indexOf","getItem","key","storageKey","e","console","error","setItem","removeItem","storagePolling","callBack","storageValue","setInterval","latestValue","reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","type","KNOWN_STATICS","prototype","caller","callee","arguments","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","component","isMemo","ForwardRef","render","Memo","defineProperty","Object","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","concat","targetStatics","sourceStatics","descriptor","b","Symbol","for","d","f","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","__esModule","definition","o","enumerable","get","chunkId","Promise","all","reduce","promises","globalThis","this","Function","obj","prop","hasOwnProperty","call","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","target","head","appendChild","toStringTag","scriptUrl","importScripts","location","currentScript","Error","replace","installedChunks","j","installedChunkData","promise","resolve","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","id","chunkLoadingGlobal","UserProfileApiSdk","constructor","httpTransport","getAuthToken","apiAuthToken","getGlobalHeaders","AuthorizationCredentials","btoa","Authorization","getBaseUrl","getDefaultParams","brand","region","getUserProfile","params","options","credentials","err","setConfigs","brandId","regionId","addGlobalHeaders","Config","appConfig","updateConfig","buidConfig","config","languageId","language","pgApiTokens","userProfile","processValue","processKey","prefix","processedKey","match","toUpperCase","substr","camelCaseData","entries","allData","emailAddress","firstName","fullName","lastName","userId","fromJSON","userProfileApiResponse","modifiedData","set","join","basicUserDetails","hasLoyalty","loyaltyActiveFlag","UserProfile","ViewController","isLoading","setSSRState","dataState","setId","unescape","encodeURIComponent","LoadUserProfileUseCase","userProfileRepository","diContainer","serviceNames","execute","fetchUserProfile","UserProfileCardController","super","loaded","cardDetails","UserProfileWelcomeController","brandIdPath","languageIdPath","regionIdPath","ConfigRepository","serviceConfig","modifyBuidPathedConfigs","bId","lId","rId","remainingConfigs","serviceConfigs","fetchBuidConfigs","requestedBuidConfigs","query","serviceQueries","fetchConfigs","buidConfigResponse","authStates","AuthenticatedRepository","status","authState","ensureData","isUnfullfilled","initialPromise","loadData","fetchUserAuthState","fetchData","includes","apiSdk","userData","setUserData","userProfileId","UserProfileRepository","ServiceBusController","email","queryProvider","_objectWithoutPropertiesLoose","source","excluded","sourceKeys","_extends","assign","apply","_assertThisInitialized","ReferenceError","_setPrototypeOf","setPrototypeOf","__proto__","invariant","condition","framesToPop","Context","LOADABLE_SHARED","initialChunks","STATUS_PENDING","STATUS_REJECTED","identity","createLoadable","_ref","_ref$defaultResolveCo","defaultResolveComponent","_render","onLoad","loadable","loadableConstructor","ctor","requireAsync","chunkName","resolveConstructor","cache","_getCacheKey","props","cacheKey","Loadable","Component","resolveComponent","preload","LoadableWithChunkExtractor","InnerLoadable","_React$Component","subClass","superClass","_this","state","result","loading","__chunkExtractor","requireSync","ssr","loadSync","addChunk","isReady","create","_proto","componentDidMount","mounted","cachedPromise","getCache","setCache","loadAsync","componentDidUpdate","prevProps","prevState","componentWillUnmount","safeSetState","nextState","callback","setState","getCacheKey","triggerOnLoad","_this2","fileName","_this3","resolveAsync","then","loadedModule","_this4","_this$props","forwardedRef","_this$props2","propFallback","fallback","_this$state","suspense","ref","EnhancedInnerLoadable","Consumer","extractor","load","lazy","_createLoadable","_createLoadable$1","current","children","loadable$1","lazy$1","loadable$2","lib","getServices","Service","version","serviceInitializer","componentsRegistry","cachedComponentsRegistry","isStarted","views","register","overrideValues","start","startPromise","getView","registerView","initializeService","setViewInCache","getViewFromCache","componentName","viewController","logger","triggerType","TriggerType","payload","context","serviceRegistry","ELCLogger","serviceName","environment","env","buid","businessUnitId","serviceVersion","UserProfileServiceStartedUseCase","configs","configRepository","userProfileApiSdk","UserProfileService","serviceIntializer","userProfileWelcomeViewController","userProfileCardViewController","service","useCase","Container","serviceBusController","userProfileService","configJSON","HttpTransport","entity","api","repository","transport","lazyInject","container","resourceName","sbGetter","resource","propertyDescriptor","serviceInfo","rest","setupServiceInfo"],"sourceRoot":""}