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CAAmC,CAClC,KACA,KAED,qCAAsC,CACrC,KACA,KAED,kCAAmC,CAClC,KACA,KAED,qCAAsC,CACrC,KACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,gCAAiC,CAChC,IACA,KAED,mCAAoC,CACnC,IACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,8BAA+B,CAC9B,KACA,IAED,iCAAkC,CACjC,KACA,IAED,4BAA6B,CAC5B,KACA,IAED,+BAAgC,CAC/B,KACA,IAED,4BAA6B,CAC5B,KACA,KAED,+BAAgC,CAC/B,KACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,gCAAiC,CAChC,KACA,IAED,mCAAoC,CACnC,KACA,IAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,oCAAqC,CACpC,KACA,KAED,uCAAwC,CACvC,KACA,KAED,oCAAqC,CACpC,KACA,KAED,uCAAwC,CACvC,KACA,KAED,kCAAmC,CAClC,KACA,IAED,qCAAsC,CACrC,KACA,IAED,kCAAmC,CAClC,KACA,KAED,qCAAsC,CACrC,KACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,gCAAiC,CAChC,IACA,KAED,mCAAoC,CACnC,IACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,6BAA8B,CAC7B,KACA,KAED,gCAAiC,CAChC,KACA,KAED,kCAAmC,CAClC,KACA,KAED,qCAAsC,CACrC,KACA,KAED,kCAAmC,CAClC,KACA,IAED,qCAAsC,CACrC,KACA,IAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,6BAA8B,CAC7B,KACA,KAED,gCAAiC,CAChC,KACA,KAED,6BAA8B,CAC7B,KACA,KAED,gCAAiC,CAChC,KACA,KAED,2BAA4B,CAC3B,KACA,KAED,8BAA+B,CAC9B,KACA,KAED,2BAA4B,CAC3B,KACA,KAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,oCAAqC,CACpC,KACA,KAED,iCAAkC,CACjC,KACA,KAED,oCAAqC,CACpC,KACA,KAED,+BAAgC,CAC/B,KACA,KAED,kCAAmC,CAClC,KACA,KAED,+BAAgC,CAC/B,IACA,KAED,kCAAmC,CAClC,IACA,KAED,gCAAiC,CAChC,KACA,KAED,mCAAoC,CACnC,KACA,KAED,gCAAiC,CAChC,KACA,GAED,mCAAoC,CACnC,KACA,GAED,8BAA+B,CAC9B,KACA,KAED,iCAAkC,CACjC,KACA,KAED,8BAA+B,CAC9B,IACA,KAED,iCAAkC,CACjC,IACA,MAGF,SAASotE,EAAoBC,GAC5B,IAAIC,EAAoB3uE,EAAEqB,EAAKqtE,GAC9B,OAAOp3D,QAAQM,UAAU6kC,MAAK,WAC7B,IAAI7vC,EAAI,IAAIjO,MAAM,uBAAyB+vE,EAAM,KAEjD,MADA9hE,EAAE5H,KAAO,mBACH4H,KAIR,IAAIgiE,EAAMvtE,EAAIqtE,GAAMz8D,EAAK28D,EAAI,GAC7B,OAAOD,EAAoB/hE,EAAEgiE,EAAI,IAAInyB,MAAK,WACzC,OAAOkyB,EAAoB18D,MAG7Bw8D,EAAoB70E,KAAO,WAAa,OAAOZ,OAAOY,KAAKyH,IAC3DotE,EAAoBx8D,GAAK,KACzB48D,EAAOC,QAAUL","sources":["../../../packages/atoms/dist/src/components/preloader/preloader.js","../../../packages/atoms/dist/src/components/mui-global/global-styles.js","../../../packages/common/dist/src/services/base-config.service.js","../../../packages/common/dist/src/services/app.service.js","../../../packages/common/dist/src/enums/mui.js","../../../packages/common/dist/src/util/helpers.js","../../../packages/common/dist/src/config/clients-settings/PCGL/procom.js","../../../packages/common/dist/src/config/clients-settings/PCGL/bmo.js","../../../packages/common/dist/src/config/clients-settings/PCGL/demo-corp.js","../../../packages/common/dist/src/enums/image-extensions.js","../../../packages/common/dist/src/config/clients-settings/PCGL/cenovus.js","../../../packages/common/dist/src/config/clients-settings/PCGL/kpmg.js","../../../packages/common/dist/src/config/clients-settings/PCGL/hcm-works.js","../../../packages/common/dist/src/config/clients-settings/PCGL/procom-team.js","../../../packages/common/dist/src/config/clients-settings/PCGL/flex-track.js","../../../packages/common/dist/src/config/clients-settings/PCGL/ey.js","../../../packages/common/dist/src/config/clients-settings/PCGL/gorilla-works.js","../../../packages/common/dist/src/config/clients-settings/Symbiotic/symbiotic.js","../../../packages/common/dist/src/config/clients-settings/SFTCHE/softchoice.js","../../../packages/common/dist/src/config/clients-settings/BridgeView/bridgeview.js","../../../packages/common/dist/src/config/clients-settings/DEMO/demo.js","../../../packages/common/dist/src/config/clients-settings/DEMO/demo-client.js","../../../packages/common/dist/src/config/portal.js","../../../packages/common/dist/src/enums/gtm-events.js","../../../packages/common/dist/src/enums/HTTPResponseStatus.js","../../../packages/common/dist/src/enums/contractor.js","../../../packages/common/dist/src/enums/auth.js","../../../packages/common/dist/src/enums/popupWindowNames.js","../../../packages/common/dist/src/enums/activity.js","../../../packages/common/dist/src/enums/authErrorCodes.js","../../../packages/common/dist/src/enums/storage.js","../../../packages/common/dist/src/util/local-storage.js","../../../packages/common/dist/src/local-storage/auth-storage.js","../../../packages/common/dist/src/local-storage/guest-session-storage.js","../../../packages/common/dist/src/local-storage/restricted-view-storage.js","../../../packages/common/dist/src/local-storage/fbo-auth-storage.js","../../../packages/common/dist/src/local-storage/site-config-storage.js","../../../packages/common/dist/src/models/super-subject.js","../../../packages/common/dist/src/util/case.js","../../../packages/common/dist/src/util/lens-proxy.js","../../../packages/common/dist/src/models/user/mfa.js","../../../packages/common/dist/src/util/auth-profile-type.js","../../../packages/common/dist/src/util/get-client-code.js","../../../packages/common/dist/src/util/getOriginBase.js","../../../packages/common/dist/src/util/get-client-portal-host.js","../../../packages/common/dist/src/util/get-client-vendor-code.js","../../../packages/common/dist/src/util/get-vendor-code.js","../../../packages/common/dist/src/util/get-auth-portal-url.js","../../../packages/common/dist/src/util/error.js","../../../packages/common/dist/src/util/popup-window.js","../../../packages/common/dist/src/util/theme-mode-storage.js","../../../packages/common/dist/src/util/get-client-name.js","../../../packages/common/dist/src/enums/awsErrorCodes.js","../../../packages/common/dist/src/config/aws-errors.js","../../../packages/common/dist/src/services/aws.service.js","../../../packages/common/dist/src/services/onboarding.service.js","../../../packages/common/dist/src/services/performance-tracking.service.js","../../../packages/common/dist/src/services/auth.service.js","../../../packages/common/dist/src/services/client.service.js","../../../packages/common/dist/src/store/subject-store/base.js","../../../packages/common/dist/src/store/features/mfa-store.js","../../../packages/common/dist/src/store/features/user-store.js","../../../packages/common/dist/src/services/user.service.js","../../../packages/common/dist/src/services/mfa.service.js","../../../packages/common/dist/src/config/themes/base.js","../../../packages/common/dist/src/config/themes/dark.js","../../../packages/common/dist/src/config/themes/light.js","../../../packages/common/dist/src/services/theme.service.js","../../../packages/common/dist/src/services/utils.service.js","../../../packages/common/dist/src/hooks/use-services.js","../../../packages/molecules/dist/src/providers/rollbar.provider.js","../../../packages/common/dist/src/hooks/use-is-client.js","../../../packages/molecules/dist/src/contexts/alert.context.js","../../../packages/atoms/dist/src/components/gorilla/with-inner-theme.js","../../../packages/common/dist/src/hooks/use-is-gorilla-theme.js","../../../packages/atoms/dist/src/components/gorilla/dialog.js","../../../packages/common/dist/src/store/features/auth-store.js","../../../packages/common/dist/src/hooks/use-stores.js","../../../packages/common/dist/src/hooks/use-load-mfe-paths.js","../../../packages/common/dist/src/hooks/use-subscription-ref.js","../../../packages/common/dist/src/hooks/use-app-reload-required.js","../../../packages/molecules/dist/src/components/modal-close-button/modal-close-button.js","../../../packages/molecules/dist/src/components/dialog/new-app-version-modal.js","../../../packages/common/dist/src/store/subject-store/hooks.js","store/auth-store.ts","components/banner/client-portal-banner.tsx","components/banner/banner.tsx","../../../packages/atoms/dist/src/components/gorilla/grid.js","assets/portal/background.svg","../../../packages/common/dist/src/hooks/use-windowed-observable.js","../../../packages/common/dist/src/hooks/use-configs.js","hooks/use-recaptcha.ts","../../../packages/common/dist/src/tracking/TrackingProvider.js","../../../packages/common/dist/src/util/map-vendor-code-to-name.js","../../../packages/common/dist/src/hooks/use-tracking-event.js","../../../packages/common/dist/src/config/env/common.js","../../../packages/common/dist/src/hooks/use-common-track-data.js","environment.ts","hooks/use-tracking-wrapper.ts","../../../packages/common/dist/src/models/auth/auth-response.js","config/user-pool.ts","config/msal-config.ts","../../../packages/common/dist/src/enums/routes.enum.js","util/failed-social-login-callback-url.ts","util/get-local-storage-value.ts","util/password-validations.ts","util/login-type-universal-mapper.ts","../../../packages/common/dist/src/enums/locales.js","i18n.tsx","services/auth.service.ts","hooks/use-auth-service.ts","hooks/use-login-types.ts","hooks/use-is-user-creation-allowed.ts","../../../packages/common/dist/src/store/features/feature-flag-store.js","types/enums.ts","../../../packages/common/dist/src/enums/feature-flag.js","hooks/use-is-ms-multi-tenant-client.ts","../../../packages/common/dist/src/hooks/use-feature-flag.js","../../../packages/common/src/assets/brand/logo-black-text.svg","../../../packages/common/src/assets/brand/logo.svg","components/language-switcher.tsx","components/footer/index.tsx","components/base-layout.tsx","../../../packages/atoms/dist/src/components/portal/toolbar.js","../../../packages/common/src/assets/brand/client-background.svg","../../../packages/atoms/dist/src/components/portal/client-background.js","../../../packages/atoms/dist/src/components/logo-wrapper/index.js","../../../packages/common/dist/src/util/get-client-domain-property.js","config/client-logo-sizes.tsx","config/logo-sizes.tsx","components/logo.tsx","../../../packages/common/dist/src/hooks/use-client-logo.js","components/legal-document-layout.tsx","../../../packages/atoms/dist/src/components/gorilla/alert.js","components/password-validation.tsx","components/change-password.tsx","components/header/index.tsx","components/change-password-form.tsx","components/complete-registration-form.tsx","components/terms-and-conditions.tsx","components/reset-password-form.tsx","../../../packages/molecules/dist/src/hooks/use-alert.js","assets/verify-email.svg","components/verify-email.tsx","../../../packages/common/dist/src/models/auth/demo-clients.js","../../../packages/common/dist/src/util/validations.js","components/login-link.tsx","components/signup-form.tsx","../../../packages/common/src/assets/svg/social/facebook.svg","../../../packages/common/src/assets/svg/social/google.svg","../../../packages/common/src/assets/svg/social/linkedin.svg","../../../packages/molecules/dist/src/components/buttons/social-media-button-group.js","components/social-media-login.tsx","components/signup-methods.tsx","components/activate-fbo-invitation.tsx","../../../packages/common/src/assets/svg/not-found.svg","../../../packages/organisms/dist/src/components/page-not-found-content.js","components/page-not-found.tsx","../../../packages/atoms/dist/src/components/alert-message/alert-message.js","../../../packages/molecules/dist/src/components/digital-code-input.js","components/verify-digital-code.tsx","../../../packages/common/dist/src/enums/forms.js","../../../packages/molecules/dist/src/hooks/use-hook-field-error.js","../../../packages/molecules/dist/src/components/text-field/text-hook-field.js","../../../packages/common/dist/src/util/local-storage-wrapper.js","components/alert/screen-alert.tsx","../../../packages/molecules/dist/src/components/phone-input/masked.js","components/hm-creation-form.tsx","../../../packages/common/dist/src/enums/tracking.js","util/get-tracking-data.ts","hooks/use-ms-sso-login.ts","components/ms-ss-login-button.tsx","../../../packages/molecules/dist/src/components/radio/radio-group-hook-input.js","components/profile-selection-form.tsx","components/landing-form.tsx","components/signup-complete-form.tsx","../../../packages/atoms/dist/src/components/link-button.js","components/password/common-end-adornment.tsx","components/password/password-create-screen.tsx","components/password/password-validate-screen.tsx","components/verify-otp-login.tsx","components/validate-signin.tsx","components/signup-gorillaresume-otp.tsx","routes/signup-complete.tsx","routes/activate-fbo-invitation-route.tsx","../../../packages/common/dist/src/enums/pageTypes.js","routes/change-password-route.tsx","../../../packages/common/dist/src/hooks/use-gtm-vpv.js","routes/complete-registration.tsx","../../../packages/common/dist/src/hooks/use-counter.js","../../../packages/molecules/dist/src/components/otp-input/index.js","components/expired-password-form.tsx","routes/expired-password-route.tsx","routes/initial-route.tsx","routes/login.tsx","../../../packages/common/dist/src/hooks/use-recaptcha.js","../../../packages/organisms/dist/src/components/mfa/mfa-login-code-verification.js","routes/login-mfa.tsx","hooks/use-gtm-vpv.ts","routes/logout.tsx","routes/ms-sso-callback.tsx","../../../packages/organisms/dist/src/components/legal-documents/legal-documents.js","../../../packages/organisms/dist/src/components/legal-documents/privacy-policy.js","../../../packages/organisms/dist/src/components/legal-documents/footer.js","routes/privacy-policy.tsx","routes/reset-password.tsx","routes/signin-linkedin-callback.tsx","routes/signin-social-callback.tsx","../../../packages/common/dist/src/models/collaborators/index.js","routes/signup-client.tsx","routes/signup.tsx","routes/signup-with-email.tsx","../../../packages/organisms/dist/src/components/legal-documents/terms-of-use.js","routes/terms-of-use.tsx","routes/verify-email-route.tsx","routes/index.tsx","lib/axios.ts","providers/msal.provider.tsx","App.tsx","../../../packages/common/dist/src/util/set-initial-vendor-code.js","reportWebVitals.ts","boot-loader.tsx","../../../packages/organisms/dist/src/assets/html|lazy|/^/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { Box, CircularProgress } from '@mui/material';\nimport styled from '@emotion/styled';\nvar StyledBox = styled(Box, {\n shouldForwardProp: function(prop) {\n return prop !== 'center' && prop !== 'height';\n }\n})(function(param) {\n var center = param.center, height = param.height;\n return _object_spread({}, center && {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: height !== null && height !== void 0 ? height : '100vh',\n minHeight: height ? undefined : 400\n });\n});\nexport var Preloader = function(param) {\n var center = param.center, height = param.height, sx = param.sx;\n return /*#__PURE__*/ _jsx(StyledBox, {\n center: center,\n height: height,\n className: \"c-preloader\",\n sx: _object_spread({}, sx),\n children: /*#__PURE__*/ _jsx(CircularProgress, {\n \"aria-label\": \"Loading screen\",\n variant: \"indeterminate\"\n })\n });\n};\nPreloader.defaultProps = {\n center: false\n};\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { GlobalStyles } from '@mui/material';\nexport var InputGlobalStyles = /*#__PURE__*/ _jsx(GlobalStyles, {\n styles: function(theme) {\n return {\n 'p,a': {\n fontSize: '1.6rem',\n lineHeight: 'inherit',\n marginBottom: theme.spacing(2)\n },\n a: {\n color: 'inherit',\n textDecoration: 'none',\n padding: \"0 \".concat(theme.spacing(0.5)),\n '&:hover': {\n textDecoration: 'underline'\n }\n },\n '.text-list': {\n paddingLeft: theme.spacing(2),\n marginBottom: theme.spacing(2)\n },\n '.scroll-box': {\n height: '100%',\n overflowY: 'auto',\n overflowX: 'hidden',\n position: 'relative'\n },\n '.container-regular': _define_property({\n paddingInline: theme.spacing(2)\n }, theme.breakpoints.up('sm'), {\n paddingInline: theme.spacing(4)\n }),\n '.is-sticky': {\n position: 'sticky',\n top: 0\n },\n 'li:has(.MuiListItemText-root > .MuiTypography-root:empty)': {\n display: 'none !important'\n },\n '.MuiTypography-root:empty': {\n display: 'none !important'\n }\n };\n }\n});\n","function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport Axios from 'axios-observable';\nimport { AppTypes, InjectableConfig } from '../enums';\nimport { WindowedObservable } from '../windowed-observable';\nexport var BaseConfigService = /*#__PURE__*/ function() {\n \"use strict\";\n function BaseConfigService(config) {\n _class_call_check(this, BaseConfigService);\n _define_property(this, \"appType\", new WindowedObservable(InjectableConfig.AppType).getLastEvent());\n _define_property(this, \"mfeType\", new WindowedObservable(InjectableConfig.MfeType).getLastEvent());\n _define_property(this, \"axiosConfig\", void 0);\n _define_property(this, \"fboAxiosConfig\", void 0);\n _define_property(this, \"environmentConfig\", void 0);\n _define_property(this, \"rollbarConfig\", null);\n this.initializeEnv(config === null || config === void 0 ? void 0 : config.envKey);\n this.initializeAxios(config === null || config === void 0 ? void 0 : config.axiosKey);\n if (config === null || config === void 0 ? void 0 : config.fboAxiosKey) {\n this.initializeFboAxios(config.fboAxiosKey);\n }\n }\n _create_class(BaseConfigService, [\n {\n key: \"rollbar\",\n get: function get() {\n if (!this.rollbarConfig) {\n this.rollbarConfig = new WindowedObservable(InjectableConfig.Rollbar).getLastEvent();\n }\n return this.rollbarConfig;\n }\n },\n {\n key: \"fboAxios\",\n get: function get() {\n return this.fboAxiosConfig;\n }\n },\n {\n key: \"axios\",\n get: function get() {\n return this.axiosConfig;\n }\n },\n {\n key: \"environment\",\n get: function get() {\n return this.environmentConfig;\n }\n },\n {\n key: \"isClientApp\",\n get: function get() {\n return this.appType === AppTypes.client;\n }\n },\n {\n key: \"isResumeApp\",\n get: function get() {\n return this.appType === AppTypes.resume;\n }\n },\n {\n key: \"isSubmissionApp\",\n get: function get() {\n return this.appType === AppTypes.submission;\n }\n },\n {\n key: \"initializeAxios\",\n value: function initializeAxios() {\n var configKey = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : InjectableConfig.Axios;\n var config$ = new WindowedObservable(configKey);\n this.axiosConfig = config$.getLastEvent();\n if (!this.axiosConfig) {\n if (this.appType && !this.mfeType) {\n throw new Error(\"\".concat(configKey, \" should be published explicitly\"));\n }\n this.axiosConfig = Axios.create({});\n config$.publish(this.axiosConfig);\n }\n }\n },\n {\n key: \"initializeFboAxios\",\n value: function initializeFboAxios(configKey) {\n var config$ = new WindowedObservable(configKey);\n this.fboAxiosConfig = config$.getLastEvent();\n if (!this.fboAxiosConfig) {\n if (this.appType && !this.mfeType) {\n throw new Error(\"\".concat(configKey, \" should be published explicitly\"));\n }\n this.fboAxiosConfig = Axios.create({});\n config$.publish(this.fboAxiosConfig);\n }\n }\n },\n {\n key: \"initializeEnv\",\n value: function initializeEnv() {\n var configKey = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : InjectableConfig.Environment;\n this.environmentConfig = new WindowedObservable(configKey).getLastEvent();\n }\n }\n ]);\n return BaseConfigService;\n}();\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { map } from 'rxjs';\nimport { InjectableServices } from '../enums';\nimport { WindowedObservable } from '../windowed-observable';\nimport { BaseConfigService } from './base-config.service';\nexport var AppService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(AppService, BaseConfigService);\n function AppService() {\n _class_call_check(this, AppService);\n return _call_super(this, AppService, arguments);\n }\n _create_class(AppService, [\n {\n key: \"getAppVersion\",\n value: function getAppVersion(baseURL) {\n var url = \"app-metadata.json\";\n return this.axios.get(url, {\n baseURL: baseURL\n }).pipe(map(function(response) {\n var _response_data;\n return ((_response_data = response.data) === null || _response_data === void 0 ? void 0 : _response_data.buildNumber) || null;\n }));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.AppService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new AppService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return AppService;\n}(BaseConfigService);\n","export var PaletteModeCode = /*#__PURE__*/ function(PaletteModeCode) {\n PaletteModeCode[\"light\"] = \"light\";\n PaletteModeCode[\"dark\"] = \"dark\";\n PaletteModeCode[\"glass\"] = \"glass\";\n PaletteModeCode[\"sidebar\"] = \"sidebar\";\n return PaletteModeCode;\n}({});\nexport var MuiModalClosingReasons = /*#__PURE__*/ function(MuiModalClosingReasons) {\n MuiModalClosingReasons[\"BackdropClick\"] = \"backdropClick\";\n MuiModalClosingReasons[\"EscapeKeyDown\"] = \"escapeKeyDown\";\n return MuiModalClosingReasons;\n}({});\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { BlobTypes } from '../enums';\nimport { SortOrder } from '../models';\nexport var downloadFile = function(data, name, openNewTab, mimeType) {\n var blob = new Blob([\n data\n ], {\n type: mimeType\n });\n var url = URL.createObjectURL(blob);\n var link = document.createElement('a');\n link.href = url;\n if (openNewTab) {\n link.target = '_blank';\n } else {\n link.download = name;\n }\n document.body.append(link);\n link.click();\n link.remove();\n // in case the Blob uses a lot of memory\n setTimeout(function() {\n return URL.revokeObjectURL(link.href);\n }, 7000);\n};\nexport var downloadPDF = function(data, name) {\n var openNewTab = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n return downloadFile(data, name, openNewTab, BlobTypes.Pdf);\n};\nexport var downloadCSV = function(data, name) {\n var openNewTab = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n return downloadFile(data, name, openNewTab, BlobTypes.Csv);\n};\nexport var downloadDocx = function(data, name) {\n var openNewTab = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n return downloadFile(data, name, openNewTab, BlobTypes.Docx);\n};\nexport var deepMergeObjects = function(obj1, obj2) {\n var result = _object_spread({}, obj1);\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // eslint-disable-next-line no-restricted-syntax\n for(var _iterator = Object.keys(obj2)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var key = _step.value;\n if (obj1[key] && obj2[key] && _type_of(obj1[key]) === 'object' && _type_of(obj2[key]) === 'object') {\n var obj = deepMergeObjects(obj1[key], obj2[key]);\n if (Array.isArray(obj1[key]) || Array.isArray(obj2[key])) {\n result[key] = Object.values(obj);\n } else {\n result[key] = obj;\n }\n } else {\n result[key] = obj2[key];\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return result;\n};\nexport var paginationLabelDisplayedRows = function(t) {\n return function(param) {\n var from = param.from, to = param.to, count = param.count;\n return \"\".concat(from, \"–\").concat(to, \" \").concat(t('common.preps.of'), \" \").concat(count !== -1 ? count : \"\".concat(t('contractorJobs.tabs.moreThan'), \" \").concat(to));\n };\n};\nexport var byteToMegabyte = function(fileSize) {\n if (fileSize) {\n return (fileSize / Math.pow(1024, 2)).toFixed(3);\n }\n return 0;\n};\nexport var MAX_WORKPLACE_TYPE_CODES = 3;\nexport var REGENERATE_LIMIT = 5;\nexport var MAX_FILE_UPLOAD_UNIT = 1000000;\nexport var concatAndFormatAiOutput = function(prevValue, message) {\n var formattedResult = message ? message.toString().replace(/\\n/g, '
') : '';\n if (formattedResult) {\n return prevValue + formattedResult;\n }\n return prevValue;\n};\nexport var concatAndFormatTipsOutput = function(prevValue, message) {\n var formattedResult = message ? message.toString().replace(/\\n/g, '') : '';\n if (formattedResult) {\n return prevValue + formattedResult;\n }\n return prevValue;\n};\nexport var concatAndFormatAIOutputWithExtraSpace = function(prevValue, message) {\n var formattedResult = message ? message.toString().replace(/\\n\\n/g, '

') : '';\n if (formattedResult) {\n var result = formattedResult.replace(/\\n/g, '

');\n return \"\".concat(prevValue + result);\n }\n return prevValue;\n};\nvar charArray = [\n '[',\n '\\\\',\n '&',\n '/',\n '|',\n '!',\n '(',\n ')',\n '{',\n '}',\n '[',\n ']',\n '^',\n '\"',\n '~',\n '*',\n '?',\n ':',\n ']'\n];\nexport var getParsedProfileData = function(data) {\n var _data_contactInformation_candidateName, _data_contactInformation, _data_contactInformation_candidateName1, _data_contactInformation1, _data_contactInformation_emailAddresses, _data_contactInformation2, _data_contactInformation_telephones, _data_contactInformation3, _data_contactInformation_location, _data_contactInformation4, _data_contactInformation_location1, _data_contactInformation5, _data_contactInformation_location2, _data_contactInformation6, _data_contactInformation_location3, _data_contactInformation7;\n return {\n firstName: (data === null || data === void 0 ? void 0 : (_data_contactInformation = data.contactInformation) === null || _data_contactInformation === void 0 ? void 0 : (_data_contactInformation_candidateName = _data_contactInformation.candidateName) === null || _data_contactInformation_candidateName === void 0 ? void 0 : _data_contactInformation_candidateName.givenName) || undefined,\n lastName: (data === null || data === void 0 ? void 0 : (_data_contactInformation1 = data.contactInformation) === null || _data_contactInformation1 === void 0 ? void 0 : (_data_contactInformation_candidateName1 = _data_contactInformation1.candidateName) === null || _data_contactInformation_candidateName1 === void 0 ? void 0 : _data_contactInformation_candidateName1.familyName) || undefined,\n email: (data === null || data === void 0 ? void 0 : (_data_contactInformation2 = data.contactInformation) === null || _data_contactInformation2 === void 0 ? void 0 : (_data_contactInformation_emailAddresses = _data_contactInformation2.emailAddresses) === null || _data_contactInformation_emailAddresses === void 0 ? void 0 : _data_contactInformation_emailAddresses.length) ? data.contactInformation.emailAddresses[0] : undefined,\n phone: (data === null || data === void 0 ? void 0 : (_data_contactInformation3 = data.contactInformation) === null || _data_contactInformation3 === void 0 ? void 0 : (_data_contactInformation_telephones = _data_contactInformation3.telephones) === null || _data_contactInformation_telephones === void 0 ? void 0 : _data_contactInformation_telephones.length) ? \"\".concat((data === null || data === void 0 ? void 0 : data.contactInformation.telephones[0].areaCityCode) || '').concat((data === null || data === void 0 ? void 0 : data.contactInformation.telephones[0].subscriberNumber) || '').replace(/\\D+/g, '') : undefined,\n address: (data === null || data === void 0 ? void 0 : (_data_contactInformation4 = data.contactInformation) === null || _data_contactInformation4 === void 0 ? void 0 : (_data_contactInformation_location = _data_contactInformation4.location) === null || _data_contactInformation_location === void 0 ? void 0 : _data_contactInformation_location.streetAddressLines) || undefined,\n city: (data === null || data === void 0 ? void 0 : (_data_contactInformation5 = data.contactInformation) === null || _data_contactInformation5 === void 0 ? void 0 : (_data_contactInformation_location1 = _data_contactInformation5.location) === null || _data_contactInformation_location1 === void 0 ? void 0 : _data_contactInformation_location1.municipality) || undefined,\n countryCode: (data === null || data === void 0 ? void 0 : (_data_contactInformation6 = data.contactInformation) === null || _data_contactInformation6 === void 0 ? void 0 : (_data_contactInformation_location2 = _data_contactInformation6.location) === null || _data_contactInformation_location2 === void 0 ? void 0 : _data_contactInformation_location2.countryCode) || undefined,\n zip: (data === null || data === void 0 ? void 0 : (_data_contactInformation7 = data.contactInformation) === null || _data_contactInformation7 === void 0 ? void 0 : (_data_contactInformation_location3 = _data_contactInformation7.location) === null || _data_contactInformation_location3 === void 0 ? void 0 : _data_contactInformation_location3.postalCode) || undefined\n };\n};\nexport var getCurrentDate = function() {\n return new Date().toISOString();\n};\nexport var stringToBoolean = function(val) {\n return val === 'false' ? false : !!val;\n};\nexport var getProperty = function(obj, propNested) {\n if (!obj || !propNested) {\n return '';\n }\n if (propNested.length === 1) {\n var key = propNested[0];\n return obj[key];\n }\n var newObj = propNested.shift();\n return getProperty(obj[newObj], propNested);\n};\nexport var comparator = function(a, b) {\n if (!a) {\n if (!b) {\n return 0;\n }\n return 1;\n }\n if (!b) {\n return -1;\n }\n if (typeof a === 'boolean' || typeof b === 'boolean') {\n return a.toString().localeCompare(b.toString());\n }\n return a.localeCompare(b);\n};\nexport var stringComparator = function(a, b) {\n return comparator(a.toLowerCase(), b.toLowerCase());\n};\nexport var configItemComparator = function(a, b, sortType) {\n var _a_value, _b_value, _a_value1, _b_value1;\n return (sortType === null || sortType === void 0 ? void 0 : sortType.order) === SortOrder.desc ? -comparator(a === null || a === void 0 ? void 0 : (_a_value = a.value) === null || _a_value === void 0 ? void 0 : _a_value.toLowerCase(), (_b_value = b.value) === null || _b_value === void 0 ? void 0 : _b_value.toLowerCase()) : comparator(a === null || a === void 0 ? void 0 : (_a_value1 = a.value) === null || _a_value1 === void 0 ? void 0 : _a_value1.toLowerCase(), (_b_value1 = b.value) === null || _b_value1 === void 0 ? void 0 : _b_value1.toLowerCase());\n};\nexport var getComparator = function(a, b, sortType) {\n var aProp = getProperty(a, sortType.field.split('.'));\n var bProp = getProperty(b, sortType.field.split('.'));\n return sortType.order === SortOrder.desc ? -comparator(aProp, bProp) : comparator(aProp, bProp);\n};\nexport var transform = function(val) {\n var characters = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : charArray;\n var str = val;\n characters.forEach(function(char) {\n // Escape special characters before using them in the regular expression\n var escapedChar = char.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n if (str.includes(char)) {\n str = str.replace(new RegExp(escapedChar, 'g'), \"\\\\\".concat(char));\n }\n });\n return str;\n};\nexport var isValidDate = function(date) {\n if (date) {\n var minDate = new Date(0);\n var currentDate = new Date(date);\n if (currentDate.getTime() > minDate.getTime()) {\n return true;\n }\n }\n return false;\n};\nexport var convertStringToFloat = function(rate) {\n var _rate_split_;\n return +parseFloat(rate.replace(/,/g, '')).toFixed(((_rate_split_ = rate.split('.')[1]) === null || _rate_split_ === void 0 ? void 0 : _rate_split_.length) || 0);\n};\nexport var updateAddressWithStateIsoCode = function(address) {\n if (!address) return address;\n return _object_spread_props(_object_spread({}, address), {\n stateIsoCode: address.countryCode && address.stateCode ? \"\".concat(address.countryCode, \"-\").concat(address.stateCode) : null\n });\n};\nexport var includesWithLowerCase = function(property, searchStr) {\n return (property !== null && property !== void 0 ? property : '').toLowerCase().includes(searchStr);\n};\nexport var getUniqueCandidates = function(candidates) {\n return candidates === null || candidates === void 0 ? void 0 : candidates.reduce(function(accumulator, current) {\n if (!accumulator.find(function(obj) {\n return obj.id === current.id;\n })) {\n accumulator.push(current);\n }\n return accumulator;\n }, []);\n};\nexport var shallowCompare = function(obj1, obj2) {\n return Object.keys(obj1).length === Object.keys(obj2).length && Object.keys(obj1).every(// eslint-disable-next-line no-prototype-builtins\n function(key) {\n return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];\n });\n};\nexport var getPlainText = function(text) {\n return text === null || text === void 0 ? void 0 : text.replace(/<[^>]*>| /g, '');\n};\nexport var getDropzoneColor = function(props) {\n if (props.isFocused) {\n return '#008BCC';\n }\n if (props.isDragAccept) {\n return props.theme.palette.success.main;\n }\n if (props.isDragReject) {\n return props.theme.palette.error.main;\n }\n return props.isGorillaTheme ? props.theme.palette.primary.main : '#0000003b';\n};\nexport var groupBy = function(array, key) {\n return array === null || array === void 0 ? void 0 : array.reduce(function(acc, obj) {\n var _acc_keyValue;\n var keyValue = obj[key];\n if (!acc[keyValue]) {\n acc[keyValue] = [];\n }\n (_acc_keyValue = acc[keyValue]) === null || _acc_keyValue === void 0 ? void 0 : _acc_keyValue.push(obj);\n return acc;\n }, {});\n};\nexport var replaceOperators = function(inputString) {\n var replacedSentence = inputString.replace(/(\"[^\"]*\"|\\band\\b|\\bor\\b)/gi, function(match) {\n if (match.startsWith('\"') && match.endsWith('\"')) {\n return match // Keep double quoted strings intact\n ;\n }\n return match === 'and' ? '+' : '|';\n });\n return replacedSentence;\n};\nexport var capitalizeOperators = function(inputString) {\n var capitalizedSentence = inputString.replace(/(\"[^\"]*\"|\\band\\b|\\bor\\b)/gi, function(match) {\n if (match.startsWith('\"') && match.endsWith('\"')) {\n return match // Keep double quoted strings intact\n ;\n }\n // Capitalize the operator by converting it to uppercase\n return match.toUpperCase();\n });\n return capitalizedSentence;\n};\nexport function findAllValuesByKey(obj, targetKey) {\n var values = [];\n function search(obj2) {\n Object.entries(obj2).forEach(function(param) {\n var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];\n if (key === targetKey) {\n values.push(value);\n }\n // If the value is an object, recurse deeper\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === 'object' && value !== null) {\n search(value);\n }\n });\n }\n search(obj);\n return values.filter(function(value) {\n return !!value;\n });\n}\nexport var regexToExtractCode = /\"code\": \"([^\"]+)\"/;\nexport var SKIP_SURVEY_DURATION = 182;\nexport var MAX_AI_GENERATED_SCREENING_QUESTIONS = 3;\nexport var TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE = 'March 2024';\nexport var getUserName = function(currentUser, t) {\n if ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.isAccessRestricted) && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.displayName) !== ' ') return currentUser.displayName;\n if ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.isAccessRestricted) && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.email)) return currentUser === null || currentUser === void 0 ? void 0 : currentUser.email;\n if (currentUser === null || currentUser === void 0 ? void 0 : currentUser.isGuestUser) return t('drawer.guestUser');\n if ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.firstName) && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.lastName)) return currentUser.displayName;\n return '---';\n};\n","import { PaletteModeCode } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var ProcomSettings = {\n common: {\n name: 'Procom',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n },\n defaultThemeMode: {\n guestClient: PaletteModeCode.light,\n guestAuth: PaletteModeCode.light\n }\n};\n","import { PaletteModeCode } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var BmoSettings = {\n common: {\n name: 'BMO',\n privacyPolicyURL: {\n en: 'https://www.bmo.com/main/about-bmo/privacy-security/our-privacy-code/',\n fr: 'https://www.bmo.com/principal/a-propos-de-nous/confidentialite-securite/notre-code-de-confidentialite/'\n },\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n },\n defaultThemeMode: {\n guestAuth: PaletteModeCode.light,\n guestClient: PaletteModeCode.light,\n authenticated: PaletteModeCode.light\n }\n};\n","import { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var DemoCorpSettings = {\n common: {\n name: 'DemoCorp',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","export var ImageExtensions = /*#__PURE__*/ function(ImageExtensions) {\n ImageExtensions[\"PNG\"] = \"png\";\n ImageExtensions[\"JPG\"] = \"jpg\";\n ImageExtensions[\"JPEG\"] = \"jpeg\";\n return ImageExtensions;\n}({});\n","import { ImageExtensions } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var CenovusSettings = {\n common: {\n name: 'Cenovus',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE,\n logo: {\n imgExtension: ImageExtensions.PNG\n }\n }\n};\n","import { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var KpmgSettings = {\n common: {\n name: 'KPMG',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","import { ImageExtensions } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var HcmWorksSettings = {\n common: {\n name: 'hcmWorks',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE,\n logo: {\n imgExtension: ImageExtensions.PNG\n }\n }\n};\n","import { ClientCodes, PaletteModeCode } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var ProcomTeamSettings = {\n common: {\n name: 'ProcomTeam',\n logo: {\n assetClient: ClientCodes.Procom\n },\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n },\n defaultThemeMode: {\n guestClient: PaletteModeCode.light,\n guestAuth: PaletteModeCode.light\n }\n};\n","import { ImageExtensions } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var FlextrackSettings = {\n common: {\n name: 'Flextrack',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE,\n logo: {\n imgExtension: ImageExtensions.PNG\n }\n }\n};\n","import { ClientNames } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util';\nexport var EySettings = {\n common: {\n name: ClientNames.EY,\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","import { ImageExtensions } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var GorillaWorksSettings = {\n common: {\n name: 'GorillaWorks',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE,\n logo: {\n imgExtension: ImageExtensions.PNG\n }\n }\n};\n","import { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var SymbioticSettings = {\n common: {\n name: 'Symbiotic',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","import { ImageExtensions } from '../../../enums';\nimport { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var SoftchoiceSettings = {\n common: {\n name: 'Softchoice',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE,\n logo: {\n imgExtension: ImageExtensions.PNG\n }\n }\n};\n","import { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var BridgeViewSettings = {\n common: {\n name: 'BridgeView',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","import { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var DemoSettings = {\n common: {\n name: 'Demo',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","import { TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE } from '../../../util/helpers';\nexport var DemoClientSettings = {\n common: {\n name: 'DemoClient',\n effectiveDate: TERMS_OF_USE_AND_PRIVACY_POLICY_EFFECTIVE_DATE\n }\n};\n","import { ClientCodes, ClientDomainType, ClientNames, VendorCodes } from '../enums';\nimport { BmoSettings, BridgeViewSettings, CenovusSettings, DemoClientSettings, DemoCorpSettings, DemoSettings, EySettings, FlextrackSettings, GorillaWorksSettings, HcmWorksSettings, KpmgSettings, ProcomSettings, ProcomTeamSettings, SoftchoiceSettings, SymbioticSettings } from './clients-settings';\nexport var SiteList = [\n {\n name: ClientNames.Procom,\n vendorCode: VendorCodes.PCGL,\n code: null,\n domains: [\n {\n hostname: 'portal.procomservices.com',\n authHostname: 'login.procomservices.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://login.procomservices.com',\n homepageAnonymousUsersUrl: 'https://portal.procomservices.com/jobs'\n },\n {\n hostname: 'procom-portal-dev.clientconnections.com',\n authHostname: 'procom-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://procom-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'procom-portal-uat.clientconnections.com',\n authHostname: 'procom-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://procom-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'procom-portal-qa.clientconnections.com',\n authHostname: 'procom-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://procom-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'localhost',\n authHostname: 'localhost',\n domainType: ClientDomainType.Local,\n authPortalUrl: 'http://localhost:8080',\n homepageAnonymousUsersUrl: null\n }\n ],\n settings: ProcomSettings\n },\n {\n name: ClientNames.BMO,\n code: ClientCodes.BMO,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'bmo-portal.clientconnections.com',\n authHostname: 'bmo-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://bmo-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://bmo.clientconnections.com'\n },\n {\n hostname: 'bmo-portal-dev.clientconnections.com',\n authHostname: 'bmo-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://bmo-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'bmo-portal-qa.clientconnections.com',\n authHostname: 'bmo-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://bmo-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'bmo-portal-uat.clientconnections.com',\n authHostname: 'bmo-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://bmo-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: BmoSettings\n },\n {\n name: ClientNames.DemoCorp,\n code: ClientCodes.DemoCorp,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'democorp-portal.clientconnections.com',\n authHostname: 'democorp-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://democorp-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://democorp.clientconnections.com'\n },\n {\n hostname: 'democorp-portal-dev.clientconnections.com',\n authHostname: 'democorp-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://democorp-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'democorp-portal-qa.clientconnections.com',\n authHostname: 'democorp-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://democorp-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'democorp-portal-uat.clientconnections.com',\n authHostname: 'democorp-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://democorp-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: DemoCorpSettings\n },\n {\n name: ClientNames.CENOVUS,\n code: ClientCodes.CENOVUS,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'cenovus-portal.clientconnections.com',\n authHostname: 'cenovus-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://cenovus-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://cenovus.clientconnections.com'\n },\n {\n hostname: 'cenovus-portal-dev.clientconnections.com',\n authHostname: 'cenovus-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://cenovus-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'cenovus-portal-qa.clientconnections.com',\n authHostname: 'cenovus-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://cenovus-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'cenovus-portal-uat.clientconnections.com',\n authHostname: 'cenovus-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://cenovus-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: CenovusSettings\n },\n {\n name: ClientNames.KPMG,\n code: ClientCodes.KPMG,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'kpmg-portal.clientconnections.com',\n authHostname: 'kpmg-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://kpmg-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://kpmg.clientconnections.com'\n },\n {\n hostname: 'kpmg-portal-dev.clientconnections.com',\n authHostname: 'kpmg-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://kpmg-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'kpmg-portal-qa.clientconnections.com',\n authHostname: 'kpmg-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://kpmg-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'kpmg-portal-uat.clientconnections.com',\n authHostname: 'kpmg-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://kpmg-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: KpmgSettings\n },\n {\n name: ClientNames.HCMWorks,\n code: ClientCodes.HCMWorks,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'hcmworks-portal.clientconnections.com',\n authHostname: 'hcmworks-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://hcmworks-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'hcmworks-portal-dev.clientconnections.com',\n authHostname: 'hcmworks-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://hcmworks-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'hcmworks-portal-qa.clientconnections.com',\n authHostname: 'hcmworks-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://hcmworks-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'hcmworks-portal-uat.clientconnections.com',\n authHostname: 'hcmworks-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://hcmworks-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: HcmWorksSettings\n },\n {\n name: ClientNames.ProcomTeam,\n code: ClientCodes.ProcomTeam,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'procominhouseteam-portal.clientconnections.com',\n authHostname: 'login.procomservices.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://procominhouseteam-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://procominhouseteam.clientconnections.com/jobs'\n },\n {\n hostname: 'procominhouseteam-portal-dev.clientconnections.com',\n authHostname: 'procominhouseteam-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://procominhouseteam-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'procominhouseteam-portal-qa.clientconnections.com',\n authHostname: 'procominhouseteam-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://procominhouseteam-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'procominhouseteam-portal-uat.clientconnections.com',\n authHostname: 'procominhouseteam-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://procominhouseteam-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: ProcomTeamSettings\n },\n {\n name: ClientNames.Flextrack,\n code: ClientCodes.Flextrack,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'flextrack-portal.clientconnections.com',\n authHostname: 'flextrack-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://flextrack-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://flextrack.clientconnections.com/jobs'\n },\n {\n hostname: 'flextrack-portal-dev.clientconnections.com',\n authHostname: 'flextrack-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://flextrack-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'flextrack-portal-qa.clientconnections.com',\n authHostname: 'flextrack-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://flextrack-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'flextrack-portal-uat.clientconnections.com',\n authHostname: 'flextrack-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://flextrack-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: FlextrackSettings\n },\n {\n name: ClientNames.EY,\n code: ClientCodes.EY,\n vendorCode: VendorCodes.PCGL,\n domains: [\n {\n hostname: 'ey-portal.clientconnections.com',\n authHostname: 'ey-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://ey-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'ey-portal-dev.clientconnections.com',\n authHostname: 'ey-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://ey-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'ey-portal-qa.clientconnections.com',\n authHostname: 'ey-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://ey-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'ey-portal-uat.clientconnections.com',\n authHostname: 'ey-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://ey-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: EySettings\n },\n {\n name: ClientNames.GorillaWorks,\n code: null,\n vendorCode: VendorCodes.GW,\n domains: [\n {\n hostname: 'portal.gorillaworks.io',\n authHostname: 'login.gorillaworks.io',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://login.gorillaworks.io',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'resume.gorillaworks.io',\n authHostname: 'login.gorillaworks.io',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://login.gorillaworks.io',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'gorillaworks-portal-dev.clientconnections.com',\n authHostname: 'gorillaworks-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://gorillaworks-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'gw-dev-resume-portal-web.azurewebsites.net',\n authHostname: 'gorillaworks-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://gorillaworks-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'gw-qa-resume-portal-web.azurewebsites.net',\n authHostname: 'gorillaworks-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://gorillaworks-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'gorillaworks-portal-uat.clientconnections.com',\n authHostname: 'gorillaworks-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://gorillaworks-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'gw-uat-resume-portal-web.azurewebsites.net',\n authHostname: 'gorillaworks-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://gorillaworks-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: GorillaWorksSettings\n },\n {\n name: ClientNames.GwDemoClient,\n code: ClientCodes.GwDemoClient,\n vendorCode: VendorCodes.GW,\n domains: [\n {\n hostname: 'gwdemo-portal.clientconnections.com',\n authHostname: 'gwdemo-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://gwdemo-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'gwdemo-portal-uat.clientconnections.com',\n authHostname: 'gwdemo-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://gwdemo-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'gwdemo-portal-qa.clientconnections.com',\n authHostname: 'gwdemo-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://gwdemo-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'gwdemo-portal-dev.clientconnections.com',\n authHostname: 'gwdemo-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://gwdemo-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n }\n ],\n settings: GorillaWorksSettings\n },\n {\n name: ClientNames.Symbiotic,\n code: null,\n vendorCode: VendorCodes.Symbiotic,\n domains: [\n {\n hostname: 'symbiotic-portal.clientconnections.com',\n authHostname: 'symbiotic-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://symbiotic-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'symbiotic-portal-dev.clientconnections.com',\n authHostname: 'symbiotic-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://symbiotic-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'symbiotic-portal-qa.clientconnections.com',\n authHostname: 'symbiotic-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://symbiotic-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'symbiotic-portal-uat.clientconnections.com',\n authHostname: 'symbiotic-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://symbiotic-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: SymbioticSettings\n },\n {\n name: ClientNames.Softchoice,\n code: null,\n vendorCode: VendorCodes.SFTCHE,\n domains: [\n {\n hostname: 'softchoice-portal.clientconnections.com',\n authHostname: 'softchoice-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://softchoice-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'softchoice-portal-dev.clientconnections.com',\n authHostname: 'softchoice-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://softchoice-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'softchoice-portal-uat.clientconnections.com',\n authHostname: 'softchoice-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://softchoice-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: SoftchoiceSettings\n },\n {\n name: ClientNames.BridgeView,\n vendorCode: VendorCodes.BridgeView,\n code: null,\n domains: [\n {\n hostname: 'bridgeview-portal.gorillaworks.io',\n authHostname: 'bridgeview-login.gorillaworks.io',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://bridgeview-login.gorillaworks.io',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'bridgeview-portal-dev.gorillaworks.io',\n authHostname: 'bridgeview-portal-dev-login.gorillaworks.io',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://bridgeview-portal-dev-login.gorillaworks.io',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'bridgeview-portal-qa.gorillaworks.io',\n authHostname: 'bridgeview-portal-qa-login.gorillaworks.io',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://bridgeview-portal-qa-login.gorillaworks.io',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'bridgeview-portal-uat.gorillaworks.io',\n authHostname: 'bridgeview-portal-uat-login.gorillaworks.io',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://bridgeview-portal-uat-login.gorillaworks.io',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: BridgeViewSettings\n },\n {\n name: ClientNames.Demo,\n vendorCode: VendorCodes.DEMO,\n code: null,\n domains: [\n {\n hostname: 'demovendor-portal.clientconnections.com',\n authHostname: 'demovendor-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://demovendor-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'demovendor-portal-dev.clientconnections.com',\n authHostname: 'demovendor-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://demovendor-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'demovendor-portal-qa.clientconnections.com',\n authHostname: 'demovendor-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://demovendor-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'demovendor-portal-uat.clientconnections.com',\n authHostname: 'demovendor-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://demovendor-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: DemoSettings\n },\n {\n name: ClientNames.DemoClient,\n code: ClientCodes.DemoClient,\n vendorCode: VendorCodes.DEMO,\n domains: [\n {\n hostname: 'democlient-portal.clientconnections.com',\n authHostname: 'democlient-login.clientconnections.com',\n domainType: ClientDomainType.Production,\n authPortalUrl: 'https://democlient-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://democlient.clientconnections.com'\n },\n {\n hostname: 'democlient-portal-dev.clientconnections.com',\n authHostname: 'demo-portal-dev-login.clientconnections.com',\n domainType: ClientDomainType.Develop,\n authPortalUrl: 'https://democlient-portal-dev-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'democlient-portal-qa.clientconnections.com',\n authHostname: 'democlient-portal-qa-login.clientconnections.com',\n domainType: ClientDomainType.Qa,\n authPortalUrl: 'https://democlient-portal-qa-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n },\n {\n hostname: 'democlient-portal-uat.clientconnections.com',\n authHostname: 'democlient-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://democlient-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: 'https://gw-portals-home.azurewebsites.net'\n }\n ],\n settings: DemoClientSettings\n },\n {\n name: ClientNames.DemoSandbox,\n code: null,\n vendorCode: VendorCodes.DEMOSANDBOX,\n domains: [\n {\n hostname: 'gwsandbox-portal-uat.clientconnections.com',\n authHostname: 'gwsandbox-portal-uat-login.clientconnections.com',\n domainType: ClientDomainType.Uat,\n authPortalUrl: 'https://gwsandbox-portal-uat-login.clientconnections.com',\n homepageAnonymousUsersUrl: null\n },\n {\n hostname: 'localhost',\n authHostname: 'localhost',\n domainType: ClientDomainType.Local,\n authPortalUrl: 'http://localhost:8060',\n homepageAnonymousUsersUrl: null\n }\n ],\n settings: GorillaWorksSettings\n }\n];\n","export var gtmEvents = /*#__PURE__*/ function(gtmEvents) {\n gtmEvents[\"AccountManagerMessage\"] = \"account-manager-message\";\n gtmEvents[\"AddInterviewNotes\"] = \"add-interview-notes\";\n gtmEvents[\"CandidateExtendOffer\"] = \"candidate-extend-offer\";\n gtmEvents[\"CandidateViewModal\"] = \"candidate-view-modal\";\n gtmEvents[\"CandidateViewThumbUp\"] = \"candidate-view-thumb-up\";\n gtmEvents[\"CandidateViewThumbDown\"] = \"candidate-view-thumb-down\";\n gtmEvents[\"CandidateViewViewProfile\"] = \"candidate-view-view-profile\";\n gtmEvents[\"ClickEmployerCandidate\"] = \"click-employer-candidate\";\n gtmEvents[\"ClickEmployerJob\"] = \"click-employer-job\";\n gtmEvents[\"ClickEmployerJobCandidate\"] = \"click-employer-job-candidate\";\n gtmEvents[\"ClickJobCard\"] = \"click-job-card\";\n gtmEvents[\"ClientPortalJobDescriptionAI\"] = \"client-portal-job-description-ai\";\n gtmEvents[\"ClientPortalCreateNewJob\"] = \"client-portal-create-new-job\";\n gtmEvents[\"ClientPortalRequestTalentList\"] = \"client-portal-request-talent-list\";\n gtmEvents[\"deleteTalentPool\"] = \"delete-talent-pool\";\n gtmEvents[\"FormBasicUserInfo\"] = \"form-basic-user-info\";\n gtmEvents[\"FormCandidateDetail\"] = \"form-candidate-detail\";\n gtmEvents[\"FormCandidateNotesDelete\"] = \"form-candidate-notes-delete\";\n gtmEvents[\"FormCandidateSearch\"] = \"form-candidates-search\";\n gtmEvents[\"FormChangePassword\"] = \"form-change-password\";\n gtmEvents[\"FormCommunicationPreference\"] = \"form-communication-preference\";\n gtmEvents[\"FormCreatePassword\"] = \"form-create-password\";\n gtmEvents[\"FormCreateJob\"] = \"form-create-job\";\n gtmEvents[\"FormDeleteAccount\"] = \"form-delete-account\";\n gtmEvents[\"FormEditJob\"] = \"form-edit-job\";\n gtmEvents[\"FormPublishJob\"] = \"form-publish-job\";\n gtmEvents[\"FormEmployerJobAddCandidateBullhorn\"] = \"form-employer-job-add-candidate-bullhorn\";\n gtmEvents[\"FormEmployerJobAddCandidateManual\"] = \"form-employer-job-add-candidate-manual\";\n gtmEvents[\"FormEmployerJobCandidateExists\"] = \"form-employer-job-add-candidate-exists\";\n gtmEvents[\"FormEmployerJobCandidateMultiple\"] = \"form-employer-job-add-candidate-multiple-jobs\";\n gtmEvents[\"FormEmployerJobs\"] = \"form-employer-jobs\";\n gtmEvents[\"FormExpenses\"] = \"form-expenses\";\n gtmEvents[\"FormJobActivityCandidates\"] = \"form-job-activity-candidates\";\n gtmEvents[\"FormJobExperience\"] = \"form-job-experience\";\n gtmEvents[\"FormJobSearch\"] = \"form-job-search\";\n gtmEvents[\"FormJobSubmit\"] = \"form-job-submit\";\n gtmEvents[\"FormJobsRequiringAttention\"] = \"form-jobs-requiring-attention\";\n gtmEvents[\"FormLogin\"] = \"form-login\";\n gtmEvents[\"FormMsSSOLogin\"] = \"form-ms-sso-login\";\n gtmEvents[\"FormPaymentPaid\"] = \"form-payment-paid\";\n gtmEvents[\"FormPaymentPending\"] = \"form-payment-pending\";\n gtmEvents[\"FormPaymentReports\"] = \"form-payment-reports\";\n gtmEvents[\"FormProfileDetails\"] = \"form-profile-details\";\n gtmEvents[\"FormResetPassword\"] = \"form-reset-password\";\n gtmEvents[\"FormSearchBullhornCandidate\"] = \"form-search-bullhorn-candidate\";\n gtmEvents[\"FormSearchManualCandidate\"] = \"form-search-manual-candidate\";\n gtmEvents[\"FormSearchTalentPools\"] = \"form-search-talent-pools\";\n gtmEvents[\"FormSignUp\"] = \"form-signup\";\n gtmEvents[\"FormSignUpEmail\"] = \"form-signup-email\";\n gtmEvents[\"FormTimesheets\"] = \"form-timesheets\";\n gtmEvents[\"FormUploadAvatar\"] = \"form-upload-avatar\";\n gtmEvents[\"FormWorkOrders\"] = \"form-work-orders\";\n gtmEvents[\"FormWorkPreference\"] = \"form-work-preference\";\n gtmEvents[\"InitialLogin\"] = \"initial-login\";\n gtmEvents[\"ContractorSignup\"] = \"contractor-signup\";\n gtmEvents[\"InviteCollaborator\"] = \"invite-collaborator\";\n gtmEvents[\"InterviewSendRequest\"] = \"interview-send-request\";\n gtmEvents[\"ImportTalentPool\"] = \"import-talent-pool\";\n gtmEvents[\"ViewTalentPool\"] = \"view-talent-pool\";\n gtmEvents[\"GenerateAiJobDescription\"] = \"generate-ai-job-description\";\n gtmEvents[\"GenerateAiCandidateHighlights\"] = \"generate-ai-candidate-highlights\";\n gtmEvents[\"GenerateAiResumeTips\"] = \"generate-ai-resume-tips\";\n gtmEvents[\"ViewCandidates\"] = \"view-candidates\";\n gtmEvents[\"OpenReloadingDialogForNewBuildNumber\"] = \"open-reloading-dialog-for-new-build-number\";\n gtmEvents[\"PostponeReceivingNewBuildNumber\"] = \"postpone-receiving-new-build-number\";\n gtmEvents[\"CallingNewBuildNumberApi\"] = \"calling-new-build-number-api\";\n gtmEvents[\"ViewDocument\"] = \"view-document\";\n gtmEvents[\"InitializingMsSsoLogin\"] = \"initializing-ms-sso-login\";\n gtmEvents[\"ToggleResourceCentreSalesListView\"] = \"toggle-resource-centre-sales-list-view\";\n gtmEvents[\"ToggleResourceCentreSalesDetailView\"] = \"toggle-resource-centre-sales-detail-view\";\n gtmEvents[\"ClickResourceCentreShareBtn\"] = \"click-resource-centre-share-btn\";\n gtmEvents[\"ResourceCentreGenerateShareLink\"] = \"resource-centre-generate-share-link\";\n gtmEvents[\"ResourceCentreShareCopyLink\"] = \"resource-centre-share-copy-link\";\n gtmEvents[\"ClickResourceCentreSalesResourceCard\"] = \"click-resource-centre-sales-resource-card\";\n gtmEvents[\"ClickResourceCentreSalesContentCreateBtn\"] = \"click-resource-centre-sales-content-create-btn\";\n gtmEvents[\"ClickResourceCentreSalesDetailViewEditBtn\"] = \"click-resource-centre-sales-detail-view-edit-btn\";\n gtmEvents[\"ResourceCentreSalesCreateContent\"] = \"resource-centre-sales-create-content\";\n gtmEvents[\"ResourceCentreSalesDetailViewEditModeSave\"] = \"resource-centre-sales-detail-view-edit-mode-save\";\n gtmEvents[\"ResourceCentreSalesReplaceContent\"] = \"resource-centre-sales-replace-content\";\n gtmEvents[\"ResourceCentreProspectDetailView\"] = \"resource-centre-prospect-detail-view\";\n gtmEvents[\"ResourceCentreAnonymousDetailVisitedPage\"] = \"resource-centre-anonymous-detail-visited-page\";\n gtmEvents[\"ResourceCentreAnonymousDetailAuthenticationModalTriggered\"] = \"resource-centre-anonymous-detail-authentication-modal-triggered\";\n gtmEvents[\"ResourceCentreAnonymousDetailValidateEmail\"] = \"resource-centre-anonymous-detail-validate-email\";\n gtmEvents[\"ResourceCentreAnonymousDetailOTPLogin\"] = \"resource-centre-anonymous-detail-otp-login\";\n gtmEvents[\"ResourceCentreAnonymousDetailPasswordLogin\"] = \"resource-centre-anonymous-detail-password-login\";\n gtmEvents[\"ResourceCentreDetailBadgeEmailClick\"] = \"resource-centre-detail-badge-email-click\";\n return gtmEvents;\n}({});\nexport var gtmEventsPrefix = /*#__PURE__*/ function(gtmEventsPrefix) {\n gtmEventsPrefix[\"Notification\"] = \"notification-\";\n return gtmEventsPrefix;\n}({});\nexport var GtmFormSubmissionStatus = /*#__PURE__*/ function(GtmFormSubmissionStatus) {\n GtmFormSubmissionStatus[\"success\"] = \"true\";\n GtmFormSubmissionStatus[\"failed\"] = \"false\";\n return GtmFormSubmissionStatus;\n}({});\n","/* eslint-disable no-unused-vars */ export var HTTPResponseStatus = /*#__PURE__*/ function(HTTPResponseStatus) {\n HTTPResponseStatus[HTTPResponseStatus[\"Ok\"] = 200] = \"Ok\";\n HTTPResponseStatus[HTTPResponseStatus[\"Created\"] = 201] = \"Created\";\n HTTPResponseStatus[HTTPResponseStatus[\"BadRequest\"] = 400] = \"BadRequest\";\n HTTPResponseStatus[HTTPResponseStatus[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HTTPResponseStatus[HTTPResponseStatus[\"Forbidden\"] = 403] = \"Forbidden\";\n HTTPResponseStatus[HTTPResponseStatus[\"NotFound\"] = 404] = \"NotFound\";\n HTTPResponseStatus[HTTPResponseStatus[\"Conflict\"] = 409] = \"Conflict\";\n HTTPResponseStatus[HTTPResponseStatus[\"UnprocessableEntity\"] = 422] = \"UnprocessableEntity\";\n HTTPResponseStatus[HTTPResponseStatus[\"FailedDependency\"] = 424] = \"FailedDependency\";\n HTTPResponseStatus[HTTPResponseStatus[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HTTPResponseStatus[HTTPResponseStatus[\"BadGateway\"] = 502] = \"BadGateway\";\n HTTPResponseStatus[HTTPResponseStatus[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n return HTTPResponseStatus;\n}({});\n","export var ProfileCompletionStatus = /*#__PURE__*/ function(ProfileCompletionStatus) {\n ProfileCompletionStatus[\"PartiallyFilled\"] = \"PartiallyFilled\";\n ProfileCompletionStatus[\"Completed\"] = \"Completed\";\n ProfileCompletionStatus[\"NotStarted\"] = \"NotStarted\";\n return ProfileCompletionStatus;\n}({});\n","export var AuthProfileType = /*#__PURE__*/ function(AuthProfileType) {\n AuthProfileType[\"VendorAdmin\"] = \"VendorAdmin\";\n AuthProfileType[\"ServiceAccount\"] = \"ServiceAccount\";\n AuthProfileType[\"AccountManager\"] = \"AccountManager\";\n AuthProfileType[\"HiringManager\"] = \"HiringManager\";\n AuthProfileType[\"ResourceManager\"] = \"ResourceManager\";\n AuthProfileType[\"Recruiter\"] = \"Recruiter\";\n AuthProfileType[\"Contractor\"] = \"Contractor\";\n AuthProfileType[\"ClientService\"] = \"ClientService\";\n AuthProfileType[\"AppSupport\"] = \"AppSupport\";\n AuthProfileType[\"Marketer\"] = \"Marketer\";\n AuthProfileType[\"Subvendor\"] = \"Subvendor\";\n AuthProfileType[\"GorillaResumeUser\"] = \"GorillaResumeUser\";\n AuthProfileType[\"GorillaResumeAdmin\"] = \"GorillaResumeAdmin\";\n return AuthProfileType;\n}({});\nexport var AuthSignupType = /*#__PURE__*/ function(AuthSignupType) {\n AuthSignupType[\"Email\"] = \"email\";\n AuthSignupType[\"Social\"] = \"social\";\n return AuthSignupType;\n}({});\nexport var FboProfileTypeId = /*#__PURE__*/ function(FboProfileTypeId) {\n FboProfileTypeId[FboProfileTypeId[\"Organizational\"] = 1] = \"Organizational\";\n FboProfileTypeId[FboProfileTypeId[\"Temp\"] = 3] = \"Temp\";\n FboProfileTypeId[FboProfileTypeId[\"CanadianSP\"] = 4] = \"CanadianSP\";\n FboProfileTypeId[FboProfileTypeId[\"IncWorker\"] = 5] = \"IncWorker\";\n FboProfileTypeId[FboProfileTypeId[\"SubvendorWorker\"] = 6] = \"SubvendorWorker\";\n FboProfileTypeId[FboProfileTypeId[\"W2Worker\"] = 7] = \"W2Worker\";\n FboProfileTypeId[FboProfileTypeId[\"USIncWokrer\"] = 8] = \"USIncWokrer\";\n return FboProfileTypeId;\n}({});\nexport var FboUrlTypeId = /*#__PURE__*/ function(FboUrlTypeId) {\n FboUrlTypeId[FboUrlTypeId[\"TimesheetDetail\"] = 1] = \"TimesheetDetail\";\n FboUrlTypeId[FboUrlTypeId[\"ExpenseDetail\"] = 2] = \"ExpenseDetail\";\n FboUrlTypeId[FboUrlTypeId[\"CreateExpense\"] = 3] = \"CreateExpense\";\n return FboUrlTypeId;\n}({});\nexport var DomainDetectionErrors = /*#__PURE__*/ function(DomainDetectionErrors) {\n DomainDetectionErrors[\"ClientSignupNotAllowed\"] = \"ClientSignupNotAllowed\";\n DomainDetectionErrors[\"ClientCreateNotAllowed\"] = \"ClientCreateNotAllowed\";\n return DomainDetectionErrors;\n}({});\n","export var popupWindowNames = /*#__PURE__*/ function(popupWindowNames) {\n popupWindowNames[\"SocialLogin\"] = \"SocialLogin\";\n popupWindowNames[\"LinkedinShare\"] = \"LinkedinShare\";\n return popupWindowNames;\n}({});\n","export var ActivityType = /*#__PURE__*/ function(ActivityType) {\n ActivityType[\"Login\"] = \"signin\";\n ActivityType[\"JtwLogin\"] = \"signin-jwt\";\n ActivityType[\"LoginFailed\"] = \"signin-failed\";\n ActivityType[\"NewPasswordRequired\"] = \"new-password-required\";\n ActivityType[\"SignUp\"] = \"sign-up\";\n ActivityType[\"SignUpFailed\"] = \"sign-up-failed\";\n ActivityType[\"Logout\"] = \"logout\";\n ActivityType[\"OtpRequest\"] = \"opt-request\";\n ActivityType[\"OtpVerification\"] = \"opt-verification\";\n return ActivityType;\n}({});\n","export var AuthErrorCodes = /*#__PURE__*/ function(AuthErrorCodes) {\n AuthErrorCodes[\"UserProfilesAlreadyExists\"] = \"UserProfilesAlreadyExists\";\n AuthErrorCodes[\"InvalidEmailDomain\"] = \"InvalidEmailDomain\";\n return AuthErrorCodes;\n}({});\n","export var StorageKeys = /*#__PURE__*/ function(StorageKeys) {\n StorageKeys[\"Token\"] = \"GW_USER_TOKEN\";\n StorageKeys[\"Credentials\"] = \"GW_USER_CREDENTIALS\";\n StorageKeys[\"FboToken\"] = \"GW_FBO_TOKEN\";\n StorageKeys[\"SiteConfig\"] = \"GW_SITE_CONFIG\";\n StorageKeys[\"RestrictedGuest\"] = \"GW_RESTRICTED_GUEST\";\n StorageKeys[\"JobVendorCreds\"] = \"JOB_VENDOR_CREDS\";\n StorageKeys[\"ActivityCreationToken\"] = \"ACTIVITY_CREATION_TOKEN\";\n StorageKeys[\"ScheduledMaintenance\"] = \"SCHEDULED_MAINTENANCE\";\n return StorageKeys;\n}({});\n","function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nexport var LocalStorage = /*#__PURE__*/ function() {\n \"use strict\";\n function LocalStorage(storageKey) {\n _class_call_check(this, LocalStorage);\n _define_property(this, \"storageKey\", void 0);\n this.storageKey = storageKey;\n }\n _create_class(LocalStorage, [\n {\n key: \"get\",\n value: function get() {\n var checkExpiry = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;\n var rawValue = localStorage.getItem(this.storageKey);\n if (!rawValue) return null;\n var value = JSON.parse(rawValue);\n if (checkExpiry && this.isExpired(value)) return null;\n return value;\n }\n },\n {\n key: \"set\",\n value: function set(value) {\n localStorage.setItem(this.storageKey, JSON.stringify(value));\n }\n },\n {\n key: \"clear\",\n value: function clear() {\n localStorage.removeItem(this.storageKey);\n }\n },\n {\n key: \"isExpired\",\n value: function isExpired(v) {\n if (!v || !v.expiredTime) return false;\n return new Date(v.expiredTime).getTime() < new Date().getTime();\n }\n }\n ]);\n return LocalStorage;\n}();\nexport var SessionStorage = /*#__PURE__*/ function() {\n \"use strict\";\n function SessionStorage(storageKey) {\n _class_call_check(this, SessionStorage);\n _define_property(this, \"storageKey\", void 0);\n this.storageKey = storageKey;\n }\n _create_class(SessionStorage, [\n {\n key: \"get\",\n value: function get() {\n var checkExpiry = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;\n var rawValue = sessionStorage.getItem(this.storageKey);\n if (!rawValue) return null;\n var value = JSON.parse(rawValue);\n if (checkExpiry && this.isExpired(value)) return null;\n return value;\n }\n },\n {\n key: \"set\",\n value: function set(value) {\n sessionStorage.setItem(this.storageKey, JSON.stringify(value));\n }\n },\n {\n key: \"clear\",\n value: function clear() {\n sessionStorage.removeItem(this.storageKey);\n }\n },\n {\n key: \"isExpired\",\n value: function isExpired(v) {\n if (!v || !v.expiredTime) return false;\n return new Date(v.expiredTime).getTime() < new Date().getTime();\n }\n }\n ]);\n return SessionStorage;\n}();\n","import { StorageKeys } from '../enums';\nimport { LocalStorage } from '../util';\nexport var authStorage = new LocalStorage(StorageKeys.Token);\n","import { StorageKeys } from '../enums';\nimport { SessionStorage } from '../util';\nexport var guestSessionStorage = new SessionStorage(StorageKeys.Token);\n","import { StorageKeys } from '../enums';\nimport { LocalStorage, SessionStorage } from '../util';\nexport var restrictedViewStorage = new LocalStorage(StorageKeys.RestrictedGuest);\nexport var restrictedViewSessionStorage = new SessionStorage(StorageKeys.RestrictedGuest);\n","import { StorageKeys } from '../enums';\nimport { LocalStorage } from '../util';\nexport var fboAuthStorage = new LocalStorage(StorageKeys.FboToken);\n","import { StorageKeys } from '../enums';\nimport { LocalStorage } from '../util';\nexport var siteConfigStorage = new LocalStorage(StorageKeys.SiteConfig);\n","function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport { BehaviorSubject } from 'rxjs';\nexport var SuperSubject = /*#__PURE__*/ function() {\n \"use strict\";\n function SuperSubject(value) {\n _class_call_check(this, SuperSubject);\n _define_property(this, \"subject\", void 0);\n _define_property(this, \"observable$\", void 0);\n this.subject = new BehaviorSubject(value);\n this.observable$ = this.subject.asObservable();\n }\n _create_class(SuperSubject, [\n {\n key: \"value\",\n get: function get() {\n return this.subject.value;\n },\n set: function set(value) {\n this.subject.next(value);\n }\n }\n ]);\n return SuperSubject;\n}();\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport var toKebabCase = function(str) {\n var regex = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g;\n var arr = str ? str.match(regex) : [];\n return arr.map(function(x) {\n return x.toLowerCase();\n }).join('-');\n};\nexport var toCamelCase = function(str) {\n return (str.slice(0, 1).toLowerCase() + str.slice(1)).replace(/([-_ ]){1,}/g, ' ').split(/[-_ ]/).reduce(function(cur, acc) {\n return cur + acc[0].toUpperCase() + acc.substring(1);\n });\n};\nexport var capitalize = function(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\nexport var toPascalCase = function(str) {\n return capitalize(toCamelCase(str));\n};\nexport var splitCamelOrPascalCase = function(str) {\n var camelCase = str.charAt(0).toUpperCase() + str.slice(1);\n return camelCase.replace(/([0-9A-Z])/g, ' $&');\n};\nexport var capitalizeWords = function(str) {\n var arr = str && str.split(' ') || [];\n var capitalizedArray = arr.map(function(element) {\n return element.charAt(0).toUpperCase() + element.substring(1).toLowerCase();\n });\n return capitalizedArray.join(' ');\n};\nexport var capitalizeWord = function(word) {\n return word.charAt(0).toUpperCase() + word.slice(1);\n};\nexport var convertKeysToCamelCase = function(obj) {\n return Object.entries(obj).reduce(function(acc, param) {\n var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];\n acc[toCamelCase(key)] = value;\n return acc;\n }, {});\n};\nexport var convertArrayKeysToCamelCase = function(array) {\n return array.map(convertKeysToCamelCase);\n};\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nimport { toKebabCase } from './case';\nexport function compose(parent, child) {\n return {\n $key: function(kebabCase) {\n var parentKey = parent.$key(kebabCase);\n var seprator = kebabCase ? '' : '.';\n var value = parentKey ? \"\".concat(parent.$key(kebabCase)).concat(seprator).concat(child.$key(kebabCase)) : child.$key(kebabCase);\n return kebabCase ? toKebabCase(value) : value;\n },\n $get: function(s) {\n return child.$get(parent.$get(s));\n },\n $set: function(y, s) {\n return parent.$set(child.$set(y, parent.$get(s)), s);\n }\n };\n}\nexport function lensProp(name) {\n return {\n $key: function() {\n return name.toString();\n },\n $get: function(s) {\n return s[name];\n },\n $set: function(a, s) {\n return _object_spread_props(_object_spread({}, s), _define_property({}, name, a));\n }\n };\n}\nexport function lensIndex(i) {\n return {\n $key: function() {\n return \"[\".concat(i, \"]\");\n },\n $get: function(xs) {\n return xs[i];\n },\n $set: function(x, xs) {\n return xs.map(function(old, ci) {\n return ci === i ? x : old;\n });\n }\n };\n}\nvar idLens = {\n $key: function() {\n return '';\n },\n $get: function(s) {\n return s;\n },\n $set: function(s) {\n return s;\n }\n};\nexport function lensProxy() {\n var parent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : idLens;\n return new Proxy(parent, {\n get: function get(target, key) {\n if (key in target) return target[key];\n var composedItem = compose(parent, Number(key) === +key ? lensIndex(+key) : lensProp(key));\n return lensProxy(composedItem);\n }\n });\n}\n","import { lensProxy } from '../../util/lens-proxy';\nexport var MfaStates = /*#__PURE__*/ function(MfaStates) {\n MfaStates[\"Enabled\"] = \"Enabled\";\n MfaStates[\"Disabled\"] = \"Disabled\";\n return MfaStates;\n}({});\nexport var MfaTypes = /*#__PURE__*/ function(MfaTypes) {\n MfaTypes[\"SMS\"] = \"SMS\";\n MfaTypes[\"Authenticator\"] = \"TOTP\";\n return MfaTypes;\n}({});\nexport var MfaFlows = /*#__PURE__*/ function(MfaFlows) {\n MfaFlows[\"Enable\"] = \"Enable\";\n MfaFlows[\"Disable\"] = \"Disable\";\n MfaFlows[\"Manage\"] = \"Manage\";\n return MfaFlows;\n}({});\nexport var mfaCodeVerificationLens = lensProxy();\n","import { AuthProfileType, LoginTypes } from '../enums';\nexport var getLoginType = function(profile) {\n switch(profile){\n case AuthProfileType.Recruiter:\n return LoginTypes.Employer;\n case AuthProfileType.Contractor:\n return LoginTypes.Contractor;\n case AuthProfileType.ClientService:\n return LoginTypes.Customer;\n case AuthProfileType.AppSupport:\n return LoginTypes.Support;\n case AuthProfileType.GorillaResumeUser:\n return LoginTypes.GorillaResume;\n default:\n return LoginTypes.Client;\n }\n};\n","import { SiteList } from '../config';\nexport var getClientCode = function(clientPortalBase) {\n var _SiteList_find;\n var hostName = clientPortalBase || window.location.hostname;\n return ((_SiteList_find = SiteList.find(function(portal) {\n return portal.domains.some(function(domain) {\n return domain.hostname === hostName || domain.authHostname === hostName;\n });\n })) === null || _SiteList_find === void 0 ? void 0 : _SiteList_find.code) || null;\n};\n","export var getOriginBase = function() {\n var params = new URLSearchParams(window.location.search);\n var originBaseParam = params.get('originBase');\n var origin = originBaseParam ? decodeURIComponent(originBaseParam) : localStorage.getItem('originBase');\n return origin ? new URL(origin).hostname : origin;\n};\n","import { SiteList } from '../config';\nimport { getOriginBase } from './getOriginBase';\nexport var getClientPortalHost = function() {\n var _SiteList_flatMap_find;\n return getOriginBase() || ((_SiteList_flatMap_find = SiteList.flatMap(function(portal) {\n return portal.domains;\n }).find(function(domain) {\n return domain.authPortalUrl === window.location.origin;\n })) === null || _SiteList_flatMap_find === void 0 ? void 0 : _SiteList_flatMap_find.hostname) || '';\n};\n","import { SiteList } from '../config';\nimport { VendorCodes } from '../enums';\nexport var getClientVendorCode = function(clientPortalBase) {\n var _SiteList_find;\n var hostName = clientPortalBase || window.location.hostname;\n return ((_SiteList_find = SiteList.find(function(portal) {\n return portal.domains.some(function(domain) {\n return domain.hostname === hostName || domain.authHostname === hostName;\n });\n })) === null || _SiteList_find === void 0 ? void 0 : _SiteList_find.vendorCode) || VendorCodes.PCGL;\n};\n","import { getClientPortalHost } from './get-client-portal-host';\nimport { getClientVendorCode } from './get-client-vendor-code';\nexport var getVendorCode = function() {\n var vendorCodeFromStorage = sessionStorage.getItem('VendorCode');\n if (vendorCodeFromStorage) {\n return vendorCodeFromStorage;\n } else {\n var clientPortalHost = getClientPortalHost();\n var vendorCode = getClientVendorCode(clientPortalHost || window.location.hostname);\n sessionStorage.setItem('VendorCode', vendorCode);\n return vendorCode;\n }\n};\n","import * as process from 'process';\nimport { SiteList } from '../config';\nimport { ClientDomainType } from '../enums';\nexport var getAuthPortalUrl = function(clientPortalBase) {\n var _SiteList_flatMap_find;\n return ((_SiteList_flatMap_find = SiteList.flatMap(function(portal) {\n return portal.domains;\n }).find(function(domain) {\n return domain.hostname === clientPortalBase;\n })) === null || _SiteList_flatMap_find === void 0 ? void 0 : _SiteList_flatMap_find.authPortalUrl) || '';\n};\nexport var getUrlDomainType = function(url) {\n if (url.includes('local') || url.includes('127.0.0.1')) return ClientDomainType.Local;\n if (url.includes('-qa-')) {\n return ClientDomainType.Qa;\n }\n if (url.includes('-dev-')) {\n return ClientDomainType.Develop;\n }\n if (url.includes('-uat-')) {\n return ClientDomainType.Uat;\n }\n return ClientDomainType.Production;\n};\nexport var getMfeAuthPortalUrl = function(clientPortalBase) {\n var _SiteList_find, _domainList_find;\n var hostName = clientPortalBase || window.location.hostname;\n var _process_env_AUTH_API_URL;\n var domainType = getUrlDomainType((_process_env_AUTH_API_URL = process.env.AUTH_API_URL) !== null && _process_env_AUTH_API_URL !== void 0 ? _process_env_AUTH_API_URL : hostName);\n var _SiteList_find_domains;\n var domainList = (_SiteList_find_domains = (_SiteList_find = SiteList.find(function(portal) {\n return portal.domains.some(function(domain) {\n return domain.hostname === hostName || domain.authHostname === hostName;\n });\n })) === null || _SiteList_find === void 0 ? void 0 : _SiteList_find.domains) !== null && _SiteList_find_domains !== void 0 ? _SiteList_find_domains : [];\n var authUrl = domainList === null || domainList === void 0 ? void 0 : (_domainList_find = domainList.find(function(domain) {\n return domain.domainType === domainType;\n })) === null || _domainList_find === void 0 ? void 0 : _domainList_find.authPortalUrl;\n if (authUrl) {\n return authUrl;\n }\n return getAuthPortalUrl(hostName);\n};\n","// https://fettblog.eu/typescript-typing-catch-clauses/\nfunction _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nexport var errorToString = function(e) {\n var result;\n if (_instanceof(e, Error)) {\n result = e.message;\n } else if (typeof e === 'string') {\n result = e;\n } else {\n result = e.toString();\n }\n // Axios response error message\n if (e.response && e.response.data && e.response.data.message) {\n result = e.response.data.message;\n } else if (e.response && e.response.data) {\n result = e.response.data;\n }\n return result;\n};\n// Format is \"CODE403: reason for error\"\nexport var errorToCodeAndMessage = function(e) {\n var defaultCode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 400;\n var message = errorToString(e);\n var code = defaultCode;\n if (message.startsWith('CODE')) {\n var codeStr = message.slice(4, 7);\n code = parseInt(codeStr, 10);\n message = message.slice(8) // colon\n ;\n }\n return {\n code: code,\n message: message\n };\n};\n","export var openPopupWindow = function(href, title) {\n // Opens a new window to login with a social network account\n var width = 500;\n var height = 500;\n // Allow for borders.\n var leftPosition = window.screen.width / 2 - (width / 2 + 10);\n // Allow for title and status bars.\n var topPosition = window.screen.height / 2 - (height / 2 + 50);\n // Open the window.\n window.open(href, title, // eslint-disable-next-line max-len\n \"status=no,height=\".concat(height, \",width=\").concat(width, \",resizable=yes,left=\").concat(leftPosition, \",top=\").concat(topPosition, \",screenX=\").concat(leftPosition, \",screenY=\").concat(topPosition, \",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no\"));\n};\nexport var closePopupWindow = function(href) {\n var reload = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n window.opener.location.reload(reload);\n window.opener.location.href = href;\n window.close();\n};\n","function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nexport var ThemeModeStorage = /*#__PURE__*/ function() {\n \"use strict\";\n function ThemeModeStorage() {\n _class_call_check(this, ThemeModeStorage);\n _define_property(this, \"storageKey\", 'THEME_MODES');\n }\n _create_class(ThemeModeStorage, [\n {\n key: \"getParsedValue\",\n value: function getParsedValue() {\n var rawValue = localStorage.getItem(this.storageKey);\n if (!rawValue) return null;\n return JSON.parse(rawValue);\n }\n },\n {\n key: \"get\",\n value: function get(userId) {\n var parseValue = this.getParsedValue();\n if (parseValue) {\n var _valueList_indexOfLargestValue;\n var userValue = userId ? parseValue[userId] : null;\n if (userValue) return userValue.themeMode;\n var valueList = Object.values(parseValue);\n var indexOfLargestValue = valueList.reduce(function(maxIndex, currentValue, currentIndex, array) {\n var _array_maxIndex;\n return (currentValue === null || currentValue === void 0 ? void 0 : currentValue.timeStamp) > ((_array_maxIndex = array[maxIndex]) === null || _array_maxIndex === void 0 ? void 0 : _array_maxIndex.timeStamp) ? currentIndex : maxIndex;\n }, 0);\n return (_valueList_indexOfLargestValue = valueList[indexOfLargestValue]) === null || _valueList_indexOfLargestValue === void 0 ? void 0 : _valueList_indexOfLargestValue.themeMode;\n }\n return null;\n }\n },\n {\n key: \"set\",\n value: function set(themeMode, userId) {\n var _this_getParsedValue;\n var parseValue = (_this_getParsedValue = this.getParsedValue()) !== null && _this_getParsedValue !== void 0 ? _this_getParsedValue : {};\n parseValue[userId] = {\n timeStamp: new Date().getTime(),\n themeMode: themeMode\n };\n localStorage.setItem(this.storageKey, JSON.stringify(parseValue));\n }\n }\n ]);\n return ThemeModeStorage;\n}();\nexport var themeModeStorage = new ThemeModeStorage();\n","import { SiteList } from '../config';\nimport { ClientNames } from '../enums';\nexport var getClientName = function(clientPortalBase) {\n var _SiteList_find;\n var hostName = clientPortalBase || window.location.hostname;\n return ((_SiteList_find = SiteList.find(function(portal) {\n return portal.domains.some(function(domain) {\n return domain.hostname === hostName || domain.authHostname === hostName;\n });\n })) === null || _SiteList_find === void 0 ? void 0 : _SiteList_find.name) || ClientNames.Procom;\n};\n","export var AwsErrorCodes = /*#__PURE__*/ function(AwsErrorCodes) {\n AwsErrorCodes[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n AwsErrorCodes[\"LimitExceededException\"] = \"LimitExceededException\";\n AwsErrorCodes[\"PasswordResetRequiredException\"] = \"PasswordResetRequiredException\";\n AwsErrorCodes[\"ExpiredCodeException\"] = \"ExpiredCodeException\";\n AwsErrorCodes[\"TooManyRequestsException\"] = \"TooManyRequestsException\";\n AwsErrorCodes[\"InvalidPasswordException\"] = \"InvalidPasswordException\";\n AwsErrorCodes[\"UserNotFoundException\"] = \"UserNotFoundException\";\n AwsErrorCodes[\"UsernameExistsException\"] = \"UsernameExistsException\";\n return AwsErrorCodes;\n}({});\n","import { AwsErrorCodes } from '../enums/awsErrorCodes';\nexport var AwsErrors = [\n {\n errorCode: AwsErrorCodes.NotAuthorizedException,\n context: 'complete-registration',\n errorMessage: 'common.cognitoErrors.inviteExpired'\n },\n {\n errorCode: AwsErrorCodes.LimitExceededException,\n errorMessage: 'common.cognitoErrors.tooManyAttempts'\n },\n {\n errorCode: AwsErrorCodes.NotAuthorizedException,\n errorMessage: 'common.cognitoErrors.wrongCredentials'\n },\n {\n errorCode: AwsErrorCodes.PasswordResetRequiredException,\n errorMessage: 'common.cognitoErrors.pwdResetRequired'\n },\n {\n errorCode: AwsErrorCodes.ExpiredCodeException,\n context: 'change-password',\n errorMessage: 'common.cognitoErrors.changePasswordCodeExpired'\n },\n {\n errorCode: AwsErrorCodes.TooManyRequestsException,\n errorMessage: 'common.cognitoErrors.tooManyAttempts'\n },\n {\n errorCode: AwsErrorCodes.InvalidPasswordException,\n errorMessage: 'common.cognitoErrors.invalidPassword'\n },\n {\n errorCode: AwsErrorCodes.UserNotFoundException,\n errorMessage: 'common.cognitoErrors.userNotFound'\n },\n {\n errorCode: AwsErrorCodes.UsernameExistsException,\n errorMessage: 'common.cognitoErrors.usernameExists'\n }\n];\n","function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nimport { AwsErrors } from '../config/aws-errors';\nvar normalizeValue = function(value) {\n return value !== null && value !== void 0 ? value : '';\n};\nvar AwsService = /*#__PURE__*/ function() {\n \"use strict\";\n function AwsService() {\n _class_call_check(this, AwsService);\n }\n _create_class(AwsService, [\n {\n key: \"translateAWSErrors\",\n value: function translateAWSErrors(error, i18n, context) {\n var awsError = AwsErrors.find(function(ae) {\n return ae.errorCode === error && normalizeValue(ae.context) === context;\n });\n if (awsError) {\n return i18n.t(awsError.errorMessage);\n }\n return i18n.t('common.alert.somethingWrong');\n }\n }\n ]);\n return AwsService;\n}();\nexport var awsService = new AwsService();\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { map } from 'rxjs';\nimport { InjectableServices } from '../enums';\nimport { SuperSubject } from '../models';\nimport { WindowedObservable } from '../windowed-observable';\nimport { BaseConfigService } from './base-config.service';\nexport var OnboardingService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(OnboardingService, BaseConfigService);\n function OnboardingService() {\n _class_call_check(this, OnboardingService);\n var _this;\n _this = _call_super(this, OnboardingService), _define_property(_this, \"baseEndpoint\", void 0), _define_property(_this, \"dashboardMetaSubject\", new SuperSubject(null)), _define_property(_this, \"dashboardMeta$\", _this.dashboardMetaSubject.observable$);\n _this.baseEndpoint = _this.environment.ONBOARDING_API_URL;\n return _this;\n }\n _create_class(OnboardingService, [\n {\n key: \"getOnboardingDashboardMeta\",\n value: function getOnboardingDashboardMeta() {\n var _this = this;\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/OnboardingPackage/dashboard-metadata\")).pipe(map(function(param) {\n var data = param.data;\n _this.dashboardMetaSubject.value = data;\n return data;\n }));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.OnboardingService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new OnboardingService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return OnboardingService;\n}(BaseConfigService);\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport Axios from 'axios-observable';\nimport { InjectableServices } from '../enums';\nimport { authStorage } from '../local-storage';\nimport { WindowedObservable } from '../windowed-observable';\nimport { BaseConfigService } from './base-config.service';\nvar axiosPerfTracking = Axios.create({});\nvar DefaultPerformanceData = {\n url: '',\n startTime: '',\n httpVerb: 'POST',\n instanceUiId: '',\n requestSource: 'Client Connections'\n};\nexport var PerformanceTrackingService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(PerformanceTrackingService, BaseConfigService);\n function PerformanceTrackingService() {\n _class_call_check(this, PerformanceTrackingService);\n var _this;\n _this = _call_super(this, PerformanceTrackingService, arguments), _define_property(_this, \"getRequestPerfTracking\", function(config) {\n if (config.url && config.method) {\n // eslint-disable-next-line no-param-reassign\n config.metadataPerfTracking = _object_spread_props(_object_spread({}, config.metadataPerfTracking), {\n url: config.url,\n startTime: new Date().toISOString(),\n instanceUiId: '',\n httpVerb: config.method.toUpperCase(),\n requestSource: 'Client Connections'\n });\n return config.metadataPerfTracking;\n }\n return null;\n }), _define_property(_this, \"sendPerfTracking\", function(param) {\n var response = param.response, storeFboData = param.storeFboData, isError = param.isError;\n if (response.config.metadataPerfTracking) {\n var _authStoredData_user;\n var authStoredData = authStorage.get();\n var _authStoredData_supportUserId;\n response.config.metadataPerfTracking = _object_spread_props(_object_spread({}, response.config.metadataPerfTracking), {\n endTime: new Date().toISOString(),\n duration: Date.now() - Date.parse(response.config.metadataPerfTracking.startTime),\n httpStatusCode: response.status,\n portalUserId: authStoredData === null || authStoredData === void 0 ? void 0 : (_authStoredData_user = authStoredData.user) === null || _authStoredData_user === void 0 ? void 0 : _authStoredData_user.id,\n userProfileId: storeFboData === null || storeFboData === void 0 ? void 0 : storeFboData.profileId,\n exception: isError ? JSON.stringify(response === null || response === void 0 ? void 0 : response.data) : undefined,\n portalImpersonatorUserId: (_authStoredData_supportUserId = authStoredData === null || authStoredData === void 0 ? void 0 : authStoredData.supportUserId) !== null && _authStoredData_supportUserId !== void 0 ? _authStoredData_supportUserId : undefined\n });\n _this.doSendPerfTracking(response.config.metadataPerfTracking);\n }\n });\n return _this;\n }\n _create_class(PerformanceTrackingService, [\n {\n key: \"doSendPerfTracking\",\n value: function doSendPerfTracking(perfTrackingData) {\n var _this = this;\n var perfTrackingUrl = \"\".concat(this.environment.FBO_PERFORMANCE_URL, \"/performance/savePageLoaderApi\");\n axiosPerfTracking.post(perfTrackingUrl, perfTrackingData).subscribe({\n error: function(error) {\n var _this_rollbar;\n (_this_rollbar = _this.rollbar) === null || _this_rollbar === void 0 ? void 0 : _this_rollbar.error(error);\n }\n });\n }\n },\n {\n key: \"sendDirectPerformanceTracking\",\n value: function sendDirectPerformanceTracking(data) {\n var _authStoredData_user;\n var authStoredData = authStorage.get();\n this.doSendPerfTracking(_object_spread(_object_spread_props(_object_spread({}, DefaultPerformanceData), {\n startTime: new Date().toISOString(),\n endTime: new Date().toISOString(),\n portalUserId: authStoredData === null || authStoredData === void 0 ? void 0 : (_authStoredData_user = authStoredData.user) === null || _authStoredData_user === void 0 ? void 0 : _authStoredData_user.id,\n duration: 1,\n httpStatusCode: 200\n }), data));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.PerformanceTrackingService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new PerformanceTrackingService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return PerformanceTrackingService;\n}(BaseConfigService);\n","/* eslint-disable no-param-reassign */ function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _object_without_properties(source, excluded) {\n if (source == null) return {};\n var target = _object_without_properties_loose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _object_without_properties_loose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { AuthenticationDetails, CognitoUser, CognitoUserPool } from 'amazon-cognito-identity-js';\nimport { BehaviorSubject, catchError, finalize, forkJoin, map, Observable, of, switchMap, takeWhile, tap, throwError } from 'rxjs';\nimport { SiteList } from '../config';\nimport { ActivityType, AppTypes, AuthErrorCodes, AuthPortalRouteMaps, AuthProfileType, AuthSignupType, ClientQueryParams, gtmEvents, gtmEventsPrefix, HTTPResponseStatus, InjectableConfig, InjectableServices, LoginTypes, popupWindowNames, ProfileCompletionStatus, SocialLoginType, SocialRoutes } from '../enums';\nimport { authStorage, fboAuthStorage, guestSessionStorage, restrictedViewSessionStorage, restrictedViewStorage, siteConfigStorage } from '../local-storage';\nimport { MfaTypes, SuperSubject } from '../models';\nimport { errorToString, getAuthPortalUrl, getClientCode, getClientName, getLoginType, getMfeAuthPortalUrl, getVendorCode, openPopupWindow, themeModeStorage } from '../util';\nimport { WindowedObservable } from '../windowed-observable';\nimport { awsService } from './aws.service';\nimport { BaseConfigService } from './base-config.service';\nimport { OnboardingService } from './onboarding.service';\nimport { PerformanceTrackingService } from './performance-tracking.service';\nexport var LogoutMode = /*#__PURE__*/ function(LogoutMode) {\n LogoutMode[\"logout\"] = \"logout\";\n LogoutMode[\"sessionExpired\"] = \"sessionExpired\";\n LogoutMode[\"notAllowed\"] = \"notAllowed\";\n return LogoutMode;\n}({});\nvar gtmSocialEvent = function() {\n dataLayer.push({\n event: \"form-\".concat(localStorage.getItem('socialLoginContext')),\n submissionStatus: 'true',\n email: 'null',\n loginWith: localStorage.getItem('socialLoginType')\n });\n localStorage.removeItem('socialLoginType');\n localStorage.removeItem('socialLoginContext');\n};\nvar gtmInitialLoginEvent = function(user) {\n var currentLoginType = getLoginType(user.currentProfileType);\n dataLayer.push({\n event: gtmEvents.InitialLogin,\n userId: user.id,\n portalType: currentLoginType\n });\n};\n// This has to be fixed (anti-pattern). We must avoid having to pass too many arguments\n// The way to approach this is decompose the service, and also to start finding better ways to get access\n// to the apis or values that the arguments passed provide\nexport var AuthService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(AuthService, BaseConfigService);\n function AuthService() {\n _class_call_check(this, AuthService);\n var _this;\n _this = _call_super(this, AuthService), _define_property(_this, \"authDataSubject\", new BehaviorSubject(null)), _define_property(_this, \"authData$\", _this.authDataSubject.asObservable()), _define_property(_this, \"siteConfig$\", void 0), _define_property(_this, \"currentUserSubject\", new BehaviorSubject(null)), _define_property(_this, \"currentUser$\", _this.currentUserSubject.asObservable()), _define_property(_this, \"currentCognitoUserSubject\", new SuperSubject(null)), _define_property(_this, \"currentCognitoUser$\", _this.currentCognitoUserSubject.observable$), // Needed to resend MFA SMS code\n _define_property(_this, \"currentCognitoUserPasswordSubject\", new SuperSubject('')), _define_property(_this, \"isMfaCodeRequestedSubject\", new SuperSubject(false)), _define_property(_this, \"isMfaCodeRequested$\", _this.isMfaCodeRequestedSubject.observable$), _define_property(_this, \"cognitoUserHasMultipleMfaMethodsSubject\", new SuperSubject(false)), _define_property(_this, \"cognitoUserHasMultipleMfaMethods$\", _this.cognitoUserHasMultipleMfaMethodsSubject.observable$), _define_property(_this, \"baseEndpoint\", void 0), _define_property(_this, \"authStorage\", void 0), _define_property(_this, \"fboAuthStorage\", void 0), _define_property(_this, \"guestSessionStorage\", void 0), _define_property(_this, \"siteConfigStorage\", void 0), _define_property(_this, \"i18nConfig\", null), _define_property(_this, \"onboardingService\", OnboardingService.getOrCreate()), _define_property(_this, \"performanceTrackingService\", PerformanceTrackingService.getOrCreate()), _define_property(_this, \"pool\", void 0), _define_property(_this, \"accountEndpoint\", void 0), _define_property(_this, \"clientEndpoint\", void 0), _define_property(_this, \"userDetailEndpoint\", void 0), _define_property(_this, \"awsClientId\", void 0), _define_property(_this, \"awsAuthUrl\", void 0), _define_property(_this, \"linkedinAuthUrl\", void 0), _define_property(_this, \"linkedinClientId\", void 0), _define_property(_this, \"isResumeCopilotFeatureEnabled\", void 0), _define_property(_this, \"enablePerformanceTracking\", void 0), _define_property(_this, \"siteConfigSubject\", void 0), _define_property(_this, \"currentUserProfileSubject\", new BehaviorSubject(null)), _define_property(_this, \"currentUserProfile$\", _this.currentUserProfileSubject.asObservable()), _define_property(_this, \"currentUserHiringManagersSubject\", new SuperSubject([])), _define_property(_this, \"currentUserHiringManagers$\", _this.currentUserHiringManagersSubject.observable$), _define_property(_this, \"nationalAccountManagerSubject\", new SuperSubject(null)), _define_property(_this, \"nationalAccountManager$\", _this.nationalAccountManagerSubject.observable$), _define_property(_this, \"clientListSubject\", new SuperSubject([])), _define_property(_this, \"clientList$\", _this.clientListSubject.observable$), _define_property(_this, \"isLoadingSubject\", new SuperSubject(false)), _define_property(_this, \"isLoading$\", _this.isLoadingSubject.observable$), _define_property(_this, \"isUserPermissionLoadingSubject\", new SuperSubject(false)), _define_property(_this, \"isUserPermissionLoading$\", _this.isUserPermissionLoadingSubject.observable$), _define_property(_this, \"userPermissionsSubject\", new SuperSubject(null)), _define_property(_this, \"userPermissions$\", _this.userPermissionsSubject.observable$), _define_property(_this, \"refreshPermissionSubject\", new SuperSubject(true)), _define_property(_this, \"refreshPermission$\", _this.refreshPermissionSubject.observable$), _define_property(_this, \"isAuthRefreshing\", false), _define_property(_this, \"failedRequestList\", []), // arrow syntax has to be used to pass `this` reference\n _define_property(_this, \"handleResponse\", function(response) {\n if (_this.enablePerformanceTracking === 'true') {\n _this.performanceTrackingService.sendPerfTracking({\n response: response\n });\n }\n return response;\n }), _define_property(_this, \"handleRequestInterceptor\", function(config) {\n if (_this.environment.ENABLE_PERFORMANCE_TRACKING === 'true') {\n var metadataPerfTracking = _this.performanceTrackingService.getRequestPerfTracking(config);\n if (metadataPerfTracking) config.metadataPerfTracking = metadataPerfTracking;\n }\n if (config.headers) {\n var storedData = authStorage.get(_this.isResumeApp);\n var guestSessionData = guestSessionStorage.get();\n var restrictedViewData = restrictedViewSessionStorage.get();\n if (_this.isClientApp && (guestSessionData === null || guestSessionData === void 0 ? void 0 : guestSessionData.token) && !config.headers.authorization && (restrictedViewData === null || restrictedViewData === void 0 ? void 0 : restrictedViewData.allowedPathname) && window.location.pathname.includes(restrictedViewData.allowedPathname)) {\n // In restricted view we need to use a different token\n config.headers.authorization = \"Bearer \".concat(guestSessionData.token);\n } else if ((storedData === null || storedData === void 0 ? void 0 : storedData.token) && !config.headers.authorization) {\n config.headers.authorization = \"Bearer \".concat(storedData.token);\n }\n config.headers.Accept = config.headers.Accept || 'application/json';\n config.headers['Content-Type'] = config.headers['Content-Type'] || 'application/json';\n var lang = localStorage.getItem('i18nextLng');\n if (lang) {\n config.headers['Accept-Language'] = lang;\n // For FBO\n config.headers['Portal-Locale'] = \"\".concat(lang, \"-CA\");\n }\n }\n return config;\n }), _define_property(_this, \"handleResponseError\", function(error) {\n var response = error.response, config = error.config;\n if ((response === null || response === void 0 ? void 0 : response.status) === HTTPResponseStatus.Unauthorized) {\n if (config === null || config === void 0 ? void 0 : config.suppress401Redirect) return Promise.reject(error);\n var authData = _this.authStorage.get();\n var refreshToken = authData === null || authData === void 0 ? void 0 : authData.refreshToken;\n if (!(config === null || config === void 0 ? void 0 : config.retry) && refreshToken && config.url.indexOf('refresh') === -1) {\n if (_this.isAuthRefreshing) {\n return new Promise(function(resolve, reject) {\n _this.failedRequestList.push({\n requestConfig: _object_spread_props(_object_spread({}, config), {\n cancelToken: null,\n headers: _object_spread_props(_object_spread({}, config.headers), {\n authorization: null\n }),\n retry: true\n }),\n resolve: resolve,\n reject: reject\n });\n });\n }\n return new Promise(function(resolve, reject) {\n _this.refreshAuth(refreshToken).pipe(switchMap(function() {\n _this.processFailedRequestList();\n return _this.axios.request(_object_spread_props(_object_spread({}, config), {\n cancelToken: null,\n headers: _object_spread_props(_object_spread({}, config.headers), {\n authorization: null\n }),\n retry: true\n }));\n })).subscribe({\n next: function(resp) {\n resolve(resp);\n },\n error: function() {\n _this.processFailedRequestList(error);\n reject(error);\n }\n });\n });\n }\n if (!config.headers['api-key']) {\n _this.logout({\n to: \"\".concat(window.location.pathname).concat(window.location.search || ''),\n mode: \"sessionExpired\",\n loginType: localStorage.getItem('loginType') || undefined\n });\n }\n } else if (response && response.status >= 400 && response.status !== 404) {\n _this.rollbar.error(error);\n }\n if (response && _this.enablePerformanceTracking === 'true') {\n _this.performanceTrackingService.sendPerfTracking({\n response: response,\n isError: true\n });\n }\n return Promise.reject(error);\n });\n _this.pool = new CognitoUserPool({\n UserPoolId: _this.environment.cognito.AWS_USERPOOL_ID,\n ClientId: _this.environment.cognito.AWS_CLIENT_ID\n });\n _this.baseEndpoint = _this.environment.AUTH_API_URL;\n _this.awsClientId = _this.environment.cognito.AWS_CLIENT_ID;\n _this.awsAuthUrl = _this.environment.cognito.AWS_AUTH_URL;\n _this.linkedinAuthUrl = _this.environment.LINKEDIN.AUTH_URL;\n _this.linkedinClientId = _this.environment.LINKEDIN.CLIENT_ID;\n _this.isResumeCopilotFeatureEnabled = _this.environment.IS_RESUME_COPILOT_FEATURE_ENABLED;\n _this.enablePerformanceTracking = _this.environment.ENABLE_PERFORMANCE_TRACKING;\n _this.authStorage = authStorage;\n _this.fboAuthStorage = fboAuthStorage;\n _this.guestSessionStorage = guestSessionStorage;\n _this.siteConfigStorage = siteConfigStorage;\n _this.accountEndpoint = \"\".concat(_this.baseEndpoint, \"/Account\");\n _this.clientEndpoint = \"\".concat(_this.baseEndpoint, \"/Client\");\n _this.userDetailEndpoint = \"\".concat(_this.baseEndpoint, \"/user\");\n _this.siteConfigSubject = new SuperSubject(_this.siteConfigStorage.get());\n _this.siteConfig$ = _this.siteConfigSubject.observable$;\n _this.axios.interceptors.request.use(_this.handleRequestInterceptor);\n _this.axios.interceptors.response.use(_this.handleResponse, _this.handleResponseError);\n return _this;\n }\n _create_class(AuthService, [\n {\n key: \"i18n\",\n get: function get() {\n if (!this.i18nConfig) {\n this.i18nConfig = new WindowedObservable(InjectableConfig.I18n).getLastEvent();\n }\n return this.i18nConfig;\n }\n },\n {\n key: \"siteConfigurationId\",\n get: function get() {\n return this.siteConfigSubject.value ? this.siteConfigSubject.value.id : '';\n }\n },\n {\n key: \"siteFboTenantName\",\n get: function get() {\n var _this_siteConfigSubject_value;\n return ((_this_siteConfigSubject_value = this.siteConfigSubject.value) === null || _this_siteConfigSubject_value === void 0 ? void 0 : _this_siteConfigSubject_value.fboTenantName) || 'Procom';\n }\n },\n {\n key: \"isAuthenticated\",\n get: function get() {\n return !!this.currentUserSubject.value;\n }\n },\n {\n key: \"currentUser\",\n get: function get() {\n return this.currentUserSubject.value;\n },\n set: function set(userObject) {\n this.currentUserSubject.next(userObject);\n if (userObject) {\n var currentProfile = function() {\n var isHubSite = !getClientCode();\n var vendorCode = getVendorCode();\n var clientCode = getClientCode();\n var userProfile = userObject.profiles.find(function(profile) {\n return profile.profileType === userObject.currentProfileType && (isHubSite ? profile.vendorCode === vendorCode : profile.clientCode === clientCode);\n });\n return userProfile !== null && userProfile !== void 0 ? userProfile : null;\n };\n this.currentUserProfileSubject.next(currentProfile());\n }\n if (userObject) {\n var id = userObject.id, displayName = userObject.displayName, email = userObject.email, preferredLanguage = userObject.preferredLanguage;\n this.rollbar.configure({\n payload: {\n person: {\n id: id,\n displayName: displayName,\n email: email\n }\n }\n });\n if (preferredLanguage && this.i18n.language !== preferredLanguage.toLowerCase()) {\n this.i18n.changeLanguage(preferredLanguage);\n }\n } else {\n this.rollbar.configure({\n payload: {\n person: {\n id: null\n }\n }\n });\n }\n }\n },\n {\n key: \"authPortalBaseUrl\",\n get: function get() {\n if (this.mfeType && process.env.NODE_ENV === 'development') {\n return getMfeAuthPortalUrl(window.location.hostname);\n }\n return getAuthPortalUrl(window.location.hostname);\n }\n },\n {\n key: \"clearRestrictedViewStorage\",\n value: function clearRestrictedViewStorage() {\n if (restrictedViewStorage.get()) {\n restrictedViewStorage.clear();\n }\n if (restrictedViewSessionStorage.get()) {\n restrictedViewSessionStorage.clear();\n }\n if (guestSessionStorage.get()) {\n guestSessionStorage.clear();\n }\n }\n },\n {\n key: \"updateCurrentUserMfaStatus\",\n value: function updateCurrentUserMfaStatus(isMfaEnabled) {\n var user = structuredClone(this.currentUserSubject.value);\n if (user) this.currentUser = _object_spread_props(_object_spread({}, user), {\n isMfaEnabled: isMfaEnabled\n });\n }\n },\n {\n key: \"updateProfileCompletionStatusOnSuccess\",\n value: function updateProfileCompletionStatusOnSuccess() {\n if (this.userPermissionsSubject.value) {\n this.userPermissionsSubject.value = _object_spread_props(_object_spread({}, this.userPermissionsSubject.value), {\n contractorProfileCompletionStatus: ProfileCompletionStatus.Completed\n });\n }\n }\n },\n {\n key: \"authorize\",\n value: function authorize(cognitoToken) {\n var _this = this;\n return this.axios.get(\"\".concat(this.accountEndpoint, \"/token?originBase=\").concat(encodeURIComponent(window.location.origin), \"&loginType=\").concat(localStorage.getItem(ClientQueryParams.loginType)), {\n headers: {\n authorization: \"Bearer \".concat(cognitoToken)\n }\n }).pipe(map(function(param) {\n var data = param.data;\n var user = data.user;\n _this.clearRestrictedViewStorage();\n _this.setAuthStorage(data);\n return user;\n }), catchError(function(error) {\n _this.authStorage.clear();\n _this.fboAuthStorage.clear();\n return throwError(function() {\n return new Error(error);\n });\n }), finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"checkEmailExistence\",\n value: function checkEmailExistence(email, profileType, recaptchaToken) {\n var _SiteList_find;\n var hostname = window.location.hostname;\n var clientCode = ((_SiteList_find = SiteList.find(function(portal) {\n return portal.code && portal.domains.some(function(domain) {\n return domain.hostname === hostname;\n });\n })) === null || _SiteList_find === void 0 ? void 0 : _SiteList_find.code) || '';\n var headers = {\n recaptchaToken: recaptchaToken\n };\n var vendorCode = getVendorCode();\n return this.axios.get(\"\".concat(this.accountEndpoint, \"/anonymous-user-info?\").concat(new URLSearchParams({\n email: email,\n profileType: profileType,\n vendorCode: vendorCode,\n clientCode: clientCode,\n originBase: window.location.origin\n })), {\n headers: headers\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }), catchError(function() {\n return of({\n isUserExist: false,\n isPasswordSet: false,\n skipDiversitySurvey: false,\n signupType: AuthSignupType.Email,\n hasRestrictedAccess: false,\n code: ''\n });\n }));\n }\n },\n {\n key: \"handleUserAuthentication\",\n value: function handleUserAuthentication(token, refreshToken, expiredTime, refreshTokenExpiredTime) {\n // Means we have the procom's id token, so we can call fetchUserInfo directly\n if (refreshToken && expiredTime && token && refreshTokenExpiredTime) {\n var authStoredData = this.authStorage.get();\n if (authStoredData === null || authStoredData === void 0 ? void 0 : authStoredData.user) {\n this.authStorage.set({\n token: token,\n refreshToken: refreshToken,\n expiredTime: expiredTime,\n refreshTokenExpiredTime: refreshTokenExpiredTime,\n user: _object_spread({}, authStoredData.user),\n isNewVendorClientContractorUser: null,\n sendbirdAppId: authStoredData.sendbirdAppId,\n supportUserId: authStoredData.supportUserId,\n firstLogin: authStoredData.firstLogin\n });\n } else {\n var _authStoredData_sendbirdAppId, _authStoredData_supportUserId, _authStoredData_firstLogin;\n this.authStorage.set({\n token: token,\n refreshToken: refreshToken,\n expiredTime: expiredTime,\n refreshTokenExpiredTime: refreshTokenExpiredTime,\n user: null,\n isNewVendorClientContractorUser: null,\n sendbirdAppId: (_authStoredData_sendbirdAppId = authStoredData === null || authStoredData === void 0 ? void 0 : authStoredData.sendbirdAppId) !== null && _authStoredData_sendbirdAppId !== void 0 ? _authStoredData_sendbirdAppId : null,\n supportUserId: (_authStoredData_supportUserId = authStoredData === null || authStoredData === void 0 ? void 0 : authStoredData.supportUserId) !== null && _authStoredData_supportUserId !== void 0 ? _authStoredData_supportUserId : null,\n firstLogin: (_authStoredData_firstLogin = authStoredData === null || authStoredData === void 0 ? void 0 : authStoredData.firstLogin) !== null && _authStoredData_firstLogin !== void 0 ? _authStoredData_firstLogin : null\n });\n }\n this.clearRestrictedViewStorage();\n return this.fetchUserInfo();\n }\n // If AWS access token we request a procom ID token\n return this.authorize(token);\n }\n },\n {\n key: \"getSocialLoginAwsToken\",\n value: function getSocialLoginAwsToken(code) {\n var _this = this;\n var headers = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n };\n if (this.awsAuthUrl && this.awsClientId) {\n var body = new URLSearchParams({\n grant_type: 'authorization_code',\n client_id: this.awsClientId,\n redirect_uri: \"\".concat(window.location.origin, \"/\").concat(SocialRoutes.SocialCallbackURL),\n code: code\n });\n return this.axios.post(\"\".concat(this.awsAuthUrl, \"/oauth2/token\"), body, {\n headers: headers\n }).pipe(switchMap(function(param) {\n var data = param.data;\n return _this.socialLogin({\n cognitoAccessToken: data.access_token,\n tokenType: data.token_type,\n cognitoIdToken: data.id_token\n });\n }));\n }\n return of({});\n }\n },\n {\n key: \"socialLogin\",\n value: function socialLogin(param) {\n var cognitoIdToken = param.cognitoIdToken, tokenType = param.tokenType, cognitoAccessToken = param.cognitoAccessToken;\n var url = \"\".concat(this.accountEndpoint, \"/signin-social-cognito\");\n var headers = {\n Authorization: \"\".concat(tokenType, \" \").concat(cognitoIdToken)\n };\n var payload = {\n accessToken: cognitoAccessToken,\n tokenType: tokenType,\n originBase: window.location.origin\n };\n return this.axios.post(url, payload, {\n headers: headers\n }).pipe(tap(function() {\n gtmSocialEvent();\n }), map(function(param) {\n var data = param.data;\n return {\n token: cognitoIdToken,\n isNewVendorClientContractorUser: data.isNewVendorClientContractorUser,\n cognitoAccessToken: cognitoAccessToken,\n cognitoIdToken: cognitoIdToken\n };\n }), catchError(function(error) {\n dataLayer.push({\n event: \"\".concat(gtmEventsPrefix.Notification).concat(gtmEvents.FormLogin),\n submissionStatus: 'false',\n email: 'null',\n loginWith: localStorage.getItem('socialLoginType'),\n errorMessage: errorToString(error)\n });\n return throwError(function() {\n return error;\n });\n }));\n }\n },\n {\n key: \"openSocialMediaLoginWindow\",\n value: function openSocialMediaLoginWindow(loginType) {\n localStorage.setItem('socialLoginContext', 'login');\n localStorage.setItem('socialLoginType', loginType);\n var socialLinkHref = (loginType === null || loginType === void 0 ? void 0 : loginType.toLowerCase()) === SocialLoginType.Linkedin.toLowerCase() ? \"\".concat(this.linkedinAuthUrl, \"/authorization?response_type=code&client_id=\").concat(this.linkedinClientId, \"&redirect_uri=\").concat(encodeURIComponent(window.location.origin), \"/signin-linkedin-callback&scope=r_liteprofile%20r_emailaddress%20w_member_social\") : \"\".concat(this.awsAuthUrl, \"/oauth2/authorize?client_id=\").concat(this.awsClientId, \"&response_type=code&scope=email+openid+phone+profile&redirect_uri=\").concat(window.location.origin, \"/\").concat(SocialRoutes.SocialCallbackURL, \"&identity_provider=\").concat(loginType);\n openPopupWindow(socialLinkHref, popupWindowNames.SocialLogin);\n }\n },\n {\n key: \"linkedinLogin\",\n value: function linkedinLogin(code) {\n var url = \"\".concat(this.accountEndpoint, \"/signin-social-linkedin \");\n var payload = {\n authorizationCode: code,\n originBase: window.location.origin,\n redirectUri: \"\".concat(window.location.origin, \"/signin-linkedin-callback\")\n };\n return this.axios.post(url, payload).pipe(tap(function(param) {\n var data = param.data;\n gtmSocialEvent();\n if (data === null || data === void 0 ? void 0 : data.user) gtmInitialLoginEvent(data.user);\n }), map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"logout\",\n value: function logout(logoutParams) {\n var _this = this;\n var _this_currentUserSubject_value;\n this.authStorage.clear();\n this.fboAuthStorage.clear();\n this.siteConfigStorage.clear();\n var params = {\n authPortalRoute: 'login',\n originBase: encodeURIComponent(window.location.origin),\n callbackURL: encodeURIComponent(\"\".concat(window.location.origin, \"/auth-return\")),\n loginType: (logoutParams === null || logoutParams === void 0 ? void 0 : logoutParams.loginType) || LoginTypes.Client\n };\n if (logoutParams === null || logoutParams === void 0 ? void 0 : logoutParams.to) {\n params.destinationURL = encodeURIComponent(logoutParams === null || logoutParams === void 0 ? void 0 : logoutParams.to);\n }\n var themeMode = themeModeStorage.get();\n if (themeMode) {\n params.themeMode = themeMode;\n }\n localStorage.setItem(ClientQueryParams.loginType, (logoutParams === null || logoutParams === void 0 ? void 0 : logoutParams.loginType) || LoginTypes.Client);\n this.trackActivity(((_this_currentUserSubject_value = this.currentUserSubject.value) === null || _this_currentUserSubject_value === void 0 ? void 0 : _this_currentUserSubject_value.email) || '', ActivityType.Logout, true).subscribe({\n complete: function() {\n window.location.href = \"\".concat(_this.authPortalBaseUrl, \"/logout?\").concat(new URLSearchParams(_object_spread_props(_object_spread({}, params), _define_property({}, (logoutParams === null || logoutParams === void 0 ? void 0 : logoutParams.mode) || \"logout\", 'true'))));\n }\n });\n }\n },\n {\n key: \"handleFetchUserInfo\",\n value: function handleFetchUserInfo() {\n var _this = this;\n return new Observable(function(observer) {\n _this.fetchUserInfo().pipe(takeWhile(function() {\n return !observer.closed;\n })).subscribe({\n next: function(authUser) {\n if (!authUser || !Array.isArray(authUser.profiles) || !authUser.profiles.length) {\n observer.error('You do not have any valid profile');\n } else {\n observer.complete();\n }\n },\n error: function(err) {\n if (err && err.response && err.response.status === HTTPResponseStatus.Unauthorized) {\n _this.authStorage.clear();\n _this.fboAuthStorage.clear();\n }\n observer.error(errorToString(err));\n }\n });\n });\n }\n },\n {\n key: \"restoreAuthState\",\n value: function restoreAuthState() {\n var _this = this;\n return new Observable(function(observer) {\n if (_this.currentUser) {\n observer.complete();\n } else {\n var storedData = _this.authStorage.get();\n var isExpired = !storedData || !storedData.refreshTokenExpiredTime || new Date(storedData.refreshTokenExpiredTime).getTime() < new Date().getTime();\n if (!isExpired) {\n _this.currentUser = storedData.user ? storedData.user : null;\n _this.handleFetchUserInfo().pipe(takeWhile(function() {\n return !observer.closed;\n })).subscribe({\n complete: function() {\n observer.complete();\n }\n });\n } else {\n _this.fboAuthStorage.clear();\n _this.authStorage.clear();\n observer.complete();\n }\n }\n });\n }\n },\n {\n key: \"redirectToAuthPortal\",\n value: function redirectToAuthPortal(to) {\n var authPortalRoute = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : AuthPortalRouteMaps.Login, loginType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, customParams = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};\n var params = {\n // this is not the literal route, but has to match of to the keys in the InitialAuthRoute mapping\n authPortalRoute: authPortalRoute,\n // auth portal will return the token back to this route. This route will validate the token and obtain custom JWT token from our backend\n callbackURL: encodeURIComponent(\"\".concat(window.location.origin, \"/auth-return\")),\n originBase: encodeURIComponent(window.location.origin),\n lang: this.i18n.language\n };\n if (to) {\n params.destinationURL = encodeURIComponent(to);\n }\n if (loginType) {\n params.loginType = loginType;\n }\n var themeMode = themeModeStorage.get();\n if (themeMode) {\n params.themeMode = themeMode;\n }\n window.location.href = \"\".concat(this.authPortalBaseUrl, \"/initial-auth-route?\").concat(new URLSearchParams(_object_spread({}, params, customParams)));\n }\n },\n {\n key: \"fetchUserInfo\",\n value: function fetchUserInfo() {\n var _this = this;\n var _this_guestSessionStorage;\n var guestSessionStorageValue = (_this_guestSessionStorage = this.guestSessionStorage) === null || _this_guestSessionStorage === void 0 ? void 0 : _this_guestSessionStorage.get();\n if (guestSessionStorageValue) {\n this.setCurrentUser(guestSessionStorageValue);\n var _ref = guestSessionStorageValue !== null && guestSessionStorageValue !== void 0 ? guestSessionStorageValue : {}, token = _ref.token, user = _ref.user;\n if (token && user) {\n return of(user);\n }\n }\n this.isLoadingSubject.value = true;\n return this.axios.get(\"\".concat(this.accountEndpoint, \"/user-info\")).pipe(map(function(param) {\n var data = param.data;\n var authData = _this.authStorage.get();\n if (authData) {\n var _authData_user;\n _this.setAuthStorage(_object_spread_props(_object_spread({}, authData), {\n user: _object_spread_props(_object_spread({}, data), {\n isAccessRestricted: !!(authData === null || authData === void 0 ? void 0 : (_authData_user = authData.user) === null || _authData_user === void 0 ? void 0 : _authData_user.isAccessRestricted)\n })\n }));\n }\n return data;\n }), finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"fetchUserHiringManagers\",\n value: function fetchUserHiringManagers() {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.get(\"\".concat(this.userDetailEndpoint, \"/hiring-managers\")).pipe(map(function(param) {\n var data = param.data;\n _this.currentUserHiringManagersSubject.value = data;\n }), finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"fetchNationalAccountManager\",\n value: function fetchNationalAccountManager() {\n var _this = this;\n var returnNationalAm = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;\n this.isLoadingSubject.value = true;\n return this.axios.get(\"\".concat(this.userDetailEndpoint, \"/account-managers?returnNationalAm=\").concat(returnNationalAm)).pipe(map(function(param) {\n var data = param.data;\n if ((data === null || data === void 0 ? void 0 : data.length) > 0) {\n var _data = _sliced_to_array(data, 1), value = _data[0];\n _this.nationalAccountManagerSubject.value = value;\n }\n }), finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"directMessageToNationalAccountManager\",\n value: function directMessageToNationalAccountManager(param) {\n var id = param.id, messageBody = param.messageBody, entityId = param.entityId, entityType = param.entityType;\n return this.axios.post(\"\".concat(this.baseEndpoint, \"/User/\").concat(id, \"/direct-message\"), {\n messageBody: messageBody,\n entityId: entityId,\n entityType: entityType\n });\n }\n },\n {\n key: \"updateUserDetail\",\n value: function updateUserDetail(id, payload, updateCurrent) {\n var _this = this;\n return this.axios.put(\"\".concat(this.userDetailEndpoint, \"/\").concat(id), payload).pipe(switchMap(function(param) {\n var data = param.data;\n if (updateCurrent) {\n return _this.fetchUserInfo().pipe(map(function() {}));\n }\n return of(data);\n }));\n }\n },\n {\n key: \"getUserDetail\",\n value: function getUserDetail(id) {\n return this.axios.get(\"\".concat(this.userDetailEndpoint, \"/\").concat(id)).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"fetchSiteConfig\",\n value: function fetchSiteConfig() {\n var _this = this;\n if (this.siteConfigSubject.value) {\n return of();\n }\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/SiteConfiguration?baseUrl=\").concat(window.location.origin)).pipe(map(function(param) {\n var data = param.data;\n _this.siteConfigStorage.set(data);\n _this.siteConfigSubject.value = data;\n }), catchError(function() {\n _this.siteConfigStorage.clear();\n _this.siteConfigSubject.value = null;\n return of();\n }));\n }\n },\n {\n key: \"refreshAuth\",\n value: function refreshAuth(token, id) {\n var _this = this;\n this.isAuthRefreshing = true;\n var url = \"\".concat(this.accountEndpoint, \"/token/refresh?\").concat(new URLSearchParams({\n token: token,\n userId: this.currentUser ? this.currentUser.id : id !== null && id !== void 0 ? id : '',\n originBase: encodeURIComponent(window.location.origin)\n }));\n return this.axios.get(url).pipe(map(function(param) {\n var data = param.data;\n _this.setAuthStorage(data);\n }), finalize(function() {\n _this.isAuthRefreshing = false;\n }));\n }\n },\n {\n key: \"impersonateUser\",\n value: function impersonateUser(param) {\n var email = param.email, profileType = param.profileType, clientCode = param.clientCode;\n var url = \"\".concat(this.accountEndpoint, \"/support/token\");\n return this.axios.post(url, {\n email: email,\n profileType: profileType,\n clientCode: clientCode\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"setSupportUser\",\n value: function setSupportUser(data) {\n this.authStorage.set(data);\n this.authDataSubject.next(data);\n this.currentUser = data.user;\n }\n },\n {\n key: \"setCurrentUser\",\n value: function setCurrentUser(data) {\n if (data) {\n this.currentUser = data.user;\n }\n }\n },\n {\n key: \"processFailedRequestList\",\n value: function processFailedRequestList(error) {\n var _this = this;\n this.failedRequestList.forEach(function(param) {\n var resolve = param.resolve, reject = param.reject, requestConfig = param.requestConfig;\n if (error) {\n reject(error);\n } else {\n _this.axios.request(requestConfig).subscribe({\n next: function(resp) {\n resolve(resp);\n },\n error: function() {\n reject(error);\n }\n });\n }\n });\n this.failedRequestList = [];\n }\n },\n {\n key: \"handleCognitoUserOnSuccess\",\n value: function handleCognitoUserOnSuccess(param) {\n var _this = this;\n var cognitoSession = param.cognitoSession, observer = param.observer, isNewUser = param.isNewUser, sendGtmEvent = param.sendGtmEvent, username = param.username;\n if (observer) {\n var token = cognitoSession.getIdToken().getJwtToken();\n observer.next({\n token: token\n });\n this.trackActivity(username, isNewUser ? ActivityType.SignUp : ActivityType.Login, true).pipe(switchMap(function() {\n return _this.authorize(token).pipe(tap(function(dataUser) {\n if (dataUser && sendGtmEvent) {\n gtmInitialLoginEvent(dataUser);\n }\n }), takeWhile(function() {\n return !observer.closed;\n }));\n })).subscribe({\n complete: function() {\n observer.complete();\n },\n error: function(error) {\n _this.rollbar.error(error);\n observer.error(error);\n }\n });\n }\n }\n },\n {\n key: \"handleCognitoUserOnFailure\",\n value: function handleCognitoUserOnFailure(param) {\n var _this = this;\n var observer = param.observer, isNewUser = param.isNewUser, username = param.username, error = param.error;\n var errorMessage = {\n code: error.code,\n name: error.name,\n message: error.message,\n stack: error.stack\n };\n if (observer) {\n this.trackActivity(username, isNewUser ? ActivityType.SignUpFailed : ActivityType.LoginFailed, false, \"\".concat(awsService.translateAWSErrors(error.code, this.i18n, ''), \" \").concat(JSON.stringify(errorMessage))).subscribe({\n complete: function() {\n _this.rollbar.error(error);\n observer.error(error);\n }\n });\n }\n }\n },\n {\n key: \"handleCognitoUserTotpRequired\",\n value: function handleCognitoUserTotpRequired(param) {\n var observer = param.observer;\n this.isMfaCodeRequestedSubject.value = true;\n observer.next({\n mfaType: MfaTypes.Authenticator\n });\n observer.complete();\n }\n },\n {\n key: \"handleCognitoUserMfaRequired\",\n value: function handleCognitoUserMfaRequired(param) {\n var observer = param.observer, password = param.password;\n this.isMfaCodeRequestedSubject.value = true;\n // Password is already saved if multiple MFA methods are enabled\n if (password) this.currentCognitoUserPasswordSubject.value = password;\n observer.next({\n mfaType: MfaTypes.SMS\n });\n observer.complete();\n }\n },\n {\n key: \"setIsMfaCodeRequested\",\n value: function setIsMfaCodeRequested(value) {\n this.isMfaCodeRequestedSubject.value = value;\n }\n },\n {\n key: \"authenticate\",\n value: function authenticate(param) {\n var _this = this;\n var username = param.username, password = param.password, isNewUser = param.isNewUser, sendGtmEvent = param.sendGtmEvent;\n return new Observable(function(observer) {\n if (!_this.currentCognitoUserSubject.value && _this.pool) {\n _this.currentCognitoUserSubject.value = new CognitoUser({\n Username: username,\n Pool: _this.pool\n });\n }\n var user = _this.currentCognitoUserSubject.value;\n var clientName = getClientName(window.location.hostname);\n var userAuthDetails = {\n Username: username,\n Password: password,\n ClientMetadata: {\n clientName: clientName\n }\n };\n var authDetails = new AuthenticationDetails(userAuthDetails);\n user === null || user === void 0 ? void 0 : user.authenticateUser(authDetails, {\n onSuccess: function(data) {\n _this.handleCognitoUserOnSuccess({\n cognitoSession: data,\n observer: observer,\n isNewUser: isNewUser,\n username: username,\n sendGtmEvent: sendGtmEvent\n });\n },\n onFailure: function(error) {\n _this.handleCognitoUserOnFailure({\n observer: observer,\n isNewUser: isNewUser,\n username: username,\n error: error\n });\n },\n totpRequired: function() {\n _this.handleCognitoUserTotpRequired({\n observer: observer\n });\n },\n mfaRequired: function() {\n _this.handleCognitoUserMfaRequired({\n observer: observer,\n password: password\n });\n },\n newPasswordRequired: function() {\n _this.trackActivity(username, ActivityType.NewPasswordRequired, true).subscribe({\n complete: function() {\n observer.error();\n }\n });\n },\n selectMFAType: function() {\n _this.isMfaCodeRequestedSubject.value = true;\n _this.currentCognitoUserPasswordSubject.value = password;\n _this.cognitoUserHasMultipleMfaMethodsSubject.value = true;\n observer.next();\n observer.complete();\n }\n });\n });\n }\n },\n {\n key: \"loadContractDocument\",\n value: function loadContractDocument(fileId, cognitoToken) {\n var headers = {\n Authorization: \"Bearer \".concat(cognitoToken)\n };\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/file/download?fileId=\").concat(fileId), {\n headers: headers,\n responseType: 'arraybuffer'\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"createUser\",\n value: function createUser(user) {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/create-user\"), user).pipe(map(function(response) {\n return _object_spread_props(_object_spread({}, response.data), {\n isNewUser: response.status === 201\n });\n }), finalize(function() {\n _this.isLoadingSubject.value = false;\n }), catchError(function(error) {\n var errorCode = errorToString(error);\n if (Object.values(AuthErrorCodes).includes(errorCode)) {\n return throwError(error);\n }\n return _this.catchAwsErrors(error);\n }));\n }\n },\n {\n key: \"getClients\",\n value: function getClients(vendorCode) {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.get(\"\".concat(this.clientEndpoint, \"?vendorCode=\").concat(vendorCode)).pipe(map(function(param) {\n var data = param.data;\n _this.clientListSubject.value = data;\n return data;\n }), finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"sendUserActivityTrackData\",\n value: function sendUserActivityTrackData(data) {\n return this.axios.post(\"\".concat(this.baseEndpoint, \"/User/track-activity\"), data);\n }\n },\n {\n key: \"switchProfileType\",\n value: function switchProfileType(profileType, params) {\n var _this = this;\n return this.axios.get(\"\".concat(this.accountEndpoint, \"/switch-profile/\").concat(profileType), {\n params: params\n }).pipe(map(function(param) {\n var data = param.data;\n var authData = _this.authStorage.get();\n var _authData_supportUserId;\n _this.setAuthStorage(_object_spread_props(_object_spread({}, data), {\n supportUserId: (_authData_supportUserId = authData === null || authData === void 0 ? void 0 : authData.supportUserId) !== null && _authData_supportUserId !== void 0 ? _authData_supportUserId : null\n }));\n }));\n }\n },\n {\n key: \"getPasswordInfo\",\n value: function getPasswordInfo(email, recaptchaToken) {\n var headers = {\n recaptchaToken: recaptchaToken\n };\n return this.axios.get(\"\".concat(this.accountEndpoint, \"/user-password-info?\").concat(new URLSearchParams({\n email: email,\n originBase: encodeURIComponent(window.location.origin)\n })), {\n headers: headers\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"sendVerficationCode\",\n value: function sendVerficationCode(code, recaptchaToken, optionalParams) {\n var _this = this;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/password-verification-code\"), {\n code: code,\n recaptchaToken: recaptchaToken,\n originBase: encodeURIComponent(window.location.origin),\n isOtp: optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.isOtp,\n language: optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.language\n }).pipe(map(function() {\n _this.trackActivity(code, ActivityType.OtpRequest, false, 'Verification code generated successfully').subscribe();\n }));\n }\n },\n {\n key: \"sendRestrictedUserVerificationCode\",\n value: function sendRestrictedUserVerificationCode(email, recaptchaToken, clientCode, language) {\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/restricted-user-verification-code\"), {\n email: email,\n recaptchaToken: recaptchaToken,\n clientCode: clientCode,\n language: language,\n originBase: encodeURIComponent(window.location.origin),\n vendorCode: getVendorCode()\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"restrictedAccessSignUp\",\n value: function restrictedAccessSignUp(email, recaptchaToken, verificationCode, clientCode) {\n var _this = this;\n var userData = {\n email: email,\n recaptchaToken: recaptchaToken,\n verificationCode: verificationCode,\n clientCode: clientCode,\n originBase: window.location.origin,\n callbackURL: \"\".concat(window.location.origin, \"/auth-return\"),\n authPortalBase: this.authPortalBaseUrl,\n vendorCode: getVendorCode()\n };\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/restricted-access/sign-in\"), userData).pipe(map(function(param) {\n var data = param.data;\n _this.clearRestrictedViewStorage();\n _this.setAuthStorage(data);\n return data;\n }));\n }\n },\n {\n key: \"validateVerficationCode\",\n value: function validateVerficationCode(code, verificationCode, recaptchaToken) {\n var _this = this;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/password-verification-code-validity\"), {\n code: code,\n verificationCode: verificationCode,\n recaptchaToken: recaptchaToken\n }).pipe(map(function(param) {\n var data = param.data;\n var isCodeValid = data.isCodeValid, hasCodeExpired = data.hasCodeExpired;\n var isSuccess = isCodeValid && !hasCodeExpired;\n if (isSuccess) {\n _this.trackActivity(code, ActivityType.OtpVerification, isSuccess, 'Verification code validated successfully.').subscribe();\n } else {\n _this.trackActivity(code, ActivityType.OtpVerification, isSuccess, \"Verification code validation failed. \".concat(JSON.stringify(data))).subscribe();\n }\n return data;\n }));\n }\n },\n {\n key: \"signUp\",\n value: function signUp(email, password, recaptchaToken) {\n var _this = this;\n var data = {\n email: email,\n password: password,\n recaptchaToken: recaptchaToken,\n originBase: window.location.origin,\n callbackURL: \"\".concat(window.location.origin, \"/auth-return\"),\n clientCode: getClientCode(),\n destinationURL: '',\n authPortalBase: this.authPortalBaseUrl,\n vendorCode: getVendorCode(),\n profileType: AuthProfileType.Contractor,\n language: this.i18n.language\n };\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/signup\"), data).pipe(switchMap(function() {\n return _this.authenticate({\n username: email,\n password: password,\n isNewUser: true,\n sendGtmEvent: true\n });\n }), catchError(this.catchAwsErrors));\n }\n },\n {\n key: \"migrateSignUp\",\n value: function migrateSignUp(email, password, recaptchaToken, verificationCode, userId) {\n var _this = this;\n var data = {\n userId: userId,\n email: email,\n password: password,\n recaptchaToken: recaptchaToken,\n verificationCode: verificationCode,\n originBase: window.location.origin,\n callbackURL: \"\".concat(window.location.origin, \"/auth-return\"),\n destinationURL: '',\n authPortalBase: this.authPortalBaseUrl,\n vendorCode: getVendorCode(),\n language: this.i18n.language\n };\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/migrated-user-signup\"), data).pipe(switchMap(function() {\n return _this.authenticate({\n username: email,\n password: password,\n isNewUser: true,\n sendGtmEvent: true\n });\n }), catchError(this.catchAwsErrors));\n }\n },\n {\n key: \"resetPassword\",\n value: function resetPassword(email, password, recaptchaToken) {\n var _this = this;\n var data = {\n email: email,\n password: password,\n recaptchaToken: recaptchaToken,\n originBase: window.location.origin,\n callbackURL: \"\".concat(window.location.origin, \"/auth-return\"),\n destinationURL: '',\n authPortalBase: this.authPortalBaseUrl,\n vendorCode: getVendorCode(),\n profileType: AuthProfileType.Contractor\n };\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/signup\"), data).pipe(switchMap(function() {\n return _this.authenticate({\n username: email,\n password: password\n });\n }), catchError(this.catchAwsErrors));\n }\n },\n {\n key: \"changePassword\",\n value: function changePassword(payload) {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/change-password\"), payload).pipe(finalize(function() {\n _this.isLoadingSubject.value = false;\n }), catchError(function(error) {\n var _error_response_data, _error_response;\n return (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) ? throwError(function() {\n return new Error(error.response.data.message);\n }) : _this.catchAwsErrors(error);\n }));\n }\n },\n {\n key: \"deleteAccount\",\n value: function deleteAccount() {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.delete(\"\".concat(this.accountEndpoint)).pipe(finalize(function() {\n _this.isLoadingSubject.value = false;\n }), catchError(this.catchAwsErrors));\n }\n },\n {\n key: \"getUserPermissions\",\n value: function getUserPermissions() {\n var _this = this;\n this.isUserPermissionLoadingSubject.value = true;\n var request = forkJoin({\n userPermissions: this.axios.get(\"\".concat(this.baseEndpoint, \"/SiteConfiguration/contractor-portal/features?baseUrl=\").concat(window.location.origin)).pipe(map(function(param) {\n var data = param.data;\n return data;\n })),\n onboardingMeta: this.onboardingService.getOnboardingDashboardMeta().pipe(catchError(function() {\n return of(null);\n }))\n }).pipe(map(function(_param) {\n var isJobEnabled = _param.userPermissions.isJobEnabled, onboardingMeta = _param.onboardingMeta, rest = _object_without_properties(_param.userPermissions, [\n \"isJobEnabled\"\n ]);\n var _this_currentUser;\n var isOnboardingEnabled = ((_this_currentUser = _this.currentUser) === null || _this_currentUser === void 0 ? void 0 : _this_currentUser.isEmailVerified) && onboardingMeta ? onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasOnboardingList : false;\n var isOnboardingActive = onboardingMeta ? (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasPackageInProgress) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasSurvey) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasPendingReview) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasCompletedPackageEndDateNotExceeded) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasCustomInformationRequestInProgress) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasBankingChangeRequestInProgress) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasCompletedInformationRequestEndDateNotExceeded) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasOfferInformationRequestInProgress) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasOfferAmendments) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.isNewItemAvailable) || (onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.isDueDatesUpdated) : false;\n var isResumeCopilotEnabled = _this.isResumeCopilotFeatureEnabled === 'true' && isJobEnabled && !isOnboardingActive;\n _this.userPermissionsSubject.value = _object_spread_props(_object_spread({}, rest), {\n isOnboardingEnabled: isOnboardingEnabled,\n isResumeCopilotEnabled: isResumeCopilotEnabled,\n isJobEnabled: isJobEnabled && !isOnboardingActive,\n isOnboardingPendingReviewEnabled: !!(onboardingMeta === null || onboardingMeta === void 0 ? void 0 : onboardingMeta.hasPendingReview)\n });\n }), finalize(function() {\n _this.isUserPermissionLoadingSubject.value = false;\n }));\n return this.refreshPermission$.pipe(switchMap(function() {\n return request;\n }));\n }\n },\n {\n key: \"updateActivityEndTime\",\n value: function updateActivityEndTime(creationToken) {\n return this.axios.put(\"\".concat(this.userDetailEndpoint, \"/activity/end\"), {\n creationToken: creationToken\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"updateActivityEndTimeUsingBeacon\",\n value: function updateActivityEndTimeUsingBeacon(creationToken) {\n navigator.sendBeacon(\"\".concat(this.userDetailEndpoint, \"/activity/end/\").concat(creationToken));\n }\n },\n {\n key: \"trackActivity\",\n value: function trackActivity(email, activityType, isSuccess, errorMessage, profileType, vendorCode, clientCode) {\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/user-authentication-activity-log\"), {\n email: email,\n activityType: activityType,\n isSuccess: isSuccess,\n errorMessage: errorMessage,\n profileType: profileType,\n vendorCode: vendorCode,\n clientCode: clientCode\n }).pipe(map(function() {}));\n }\n },\n {\n key: \"resendEmailVerification\",\n value: function resendEmailVerification(destinationURL, loginType, newCPUser) {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/resend-confirmation-code\"), {\n destinationURL: destinationURL,\n loginType: loginType.toLowerCase(),\n newCPUser: newCPUser || false\n }).pipe(finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"sendVerifyOBEmail\",\n value: function sendVerifyOBEmail(recipientEmail, recipientName) {\n var _this = this;\n this.isLoadingSubject.value = true;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/verify-onboarding-email\"), {\n recipientEmail: recipientEmail,\n recipientName: recipientName,\n originBase: window.location.origin\n }).pipe(finalize(function() {\n _this.isLoadingSubject.value = false;\n }));\n }\n },\n {\n key: \"signInGuestUser\",\n value: function signInGuestUser(token, username, recaptchaToken, useSessionStorage) {\n var _this = this;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/guest-signin\"), {\n token: token,\n username: username,\n recaptchaToken: recaptchaToken\n }).pipe(map(function(param) {\n var data = param.data;\n if (!useSessionStorage) {\n _this.setAuthStorage(data);\n }\n return data;\n }));\n }\n },\n {\n key: \"codeSignIn\",\n value: function codeSignIn(code, recaptchaToken, username) {\n var _this = this;\n return this.axios.post(\"\".concat(this.accountEndpoint, \"/code-signin\"), {\n code: code,\n username: username,\n recaptchaToken: recaptchaToken\n }).pipe(map(function(param) {\n var data = param.data;\n _this.clearRestrictedViewStorage();\n _this.setAuthStorage(data);\n return data;\n }));\n }\n },\n {\n key: \"triggerRefreshPermission\",\n value: function triggerRefreshPermission() {\n if (!this.isUserPermissionLoadingSubject.value) this.refreshPermissionSubject.value = true;\n }\n },\n {\n key: \"handleGetUserAttributes\",\n value: function handleGetUserAttributes(param) {\n var currentCognitoUser = param.currentCognitoUser;\n return new Observable(function(observer) {\n currentCognitoUser.getUserAttributes(function(error, result) {\n if (error) {\n observer.error(error);\n } else {\n observer.next(result);\n }\n observer.complete();\n });\n });\n }\n },\n {\n key: \"handleUpdateCognitoUserAttributes\",\n value: function handleUpdateCognitoUserAttributes(param) {\n var token = param.token, currentCognitoUser = param.currentCognitoUser, attributes = param.attributes;\n return new Observable(function(observer) {\n currentCognitoUser.updateAttributes(attributes, function(error) {\n if (error) {\n observer.error(error);\n } else {\n observer.next(token);\n }\n observer.complete();\n });\n });\n }\n },\n {\n key: \"getVendorDetails\",\n value: function getVendorDetails(vendorCode) {\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/Vendor/by-code/\").concat(vendorCode)).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"setAuthStorage\",\n value: function setAuthStorage(data) {\n this.authStorage.set(data);\n this.authDataSubject.next(data);\n this.currentUser = data.user;\n }\n },\n {\n key: \"catchAwsErrors\",\n value: function catchAwsErrors(error) {\n var _this = this;\n var cognitoErrorCode = errorToString(error);\n return throwError(function() {\n return new Error(awsService.translateAWSErrors(cognitoErrorCode, _this.i18n));\n });\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.AuthService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var appType = new WindowedObservable(InjectableConfig.AppType).getLastEvent();\n if (appType && [\n AppTypes.auth,\n AppTypes.submission\n ].includes(appType)) {\n throw new Error('Wrong Auth Service being used');\n }\n var instance = new AuthService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return AuthService;\n}(BaseConfigService);\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { catchError, map, of } from 'rxjs';\nimport { SiteList } from '../config';\nimport { AppTypes, ClientNames, ClientQueryParams, InjectableServices } from '../enums';\nimport { SuperSubject } from '../models';\nimport { getClientPortalHost } from '../util';\nimport { getClientName } from '../util/get-client-name';\nimport { WindowedObservable } from '../windowed-observable';\nimport { BaseConfigService } from './base-config.service';\nexport var ClientService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(ClientService, BaseConfigService);\n function ClientService() {\n _class_call_check(this, ClientService);\n var _this;\n _this = _call_super(this, ClientService, arguments), _define_property(_this, \"clientSettingSubject\", new SuperSubject(null)), _define_property(_this, \"clientSetting$\", _this.clientSettingSubject.observable$), _define_property(_this, \"clientNameSubject\", new SuperSubject(null)), _define_property(_this, \"clientName$\", _this.clientNameSubject.observable$), _define_property(_this, \"clientLoginTypeSubject\", new SuperSubject(null)), _define_property(_this, \"clientLoginType$\", _this.clientLoginTypeSubject.observable$), _define_property(_this, \"appTypeSubject\", new SuperSubject(null)), _define_property(_this, \"appType$\", _this.appTypeSubject.observable$), _define_property(_this, \"backDropLoadingSubject\", new SuperSubject(false)), _define_property(_this, \"backDropLoading$\", _this.backDropLoadingSubject.observable$);\n return _this;\n }\n _create_class(ClientService, [\n {\n key: \"backDropLoading\",\n set: function set(v) {\n this.backDropLoadingSubject.value = v;\n }\n },\n {\n key: \"resaveClientSettings\",\n value: function resaveClientSettings() {\n // eslint-disable-next-line no-self-assign\n this.clientSettingSubject.value = this.clientSettingSubject.value;\n }\n },\n {\n key: \"updateFavicon\",\n value: function updateFavicon() {\n var _this = this;\n var $favicons = document.querySelectorAll('.favicon');\n if (!$favicons) return;\n var href = function(value) {\n var _this_clientSettingSubject_value_common_logo, _this_clientSettingSubject, _this_clientSettingSubject1;\n if (!_this.clientSettingSubject.value) return value;\n var _this_clientSettingSubject_value_common_logo_assetClient;\n var placeholder = (_this_clientSettingSubject_value_common_logo_assetClient = (_this_clientSettingSubject = _this.clientSettingSubject) === null || _this_clientSettingSubject === void 0 ? void 0 : (_this_clientSettingSubject_value_common_logo = _this_clientSettingSubject.value.common.logo) === null || _this_clientSettingSubject_value_common_logo === void 0 ? void 0 : _this_clientSettingSubject_value_common_logo.assetClient) !== null && _this_clientSettingSubject_value_common_logo_assetClient !== void 0 ? _this_clientSettingSubject_value_common_logo_assetClient : (_this_clientSettingSubject1 = _this.clientSettingSubject) === null || _this_clientSettingSubject1 === void 0 ? void 0 : _this_clientSettingSubject1.value.common.name;\n return value.replace('placeholder', placeholder);\n };\n $favicons.forEach(function($favicon) {\n var _$favicon_getAttribute;\n $favicon.setAttribute('href', href((_$favicon_getAttribute = $favicon.getAttribute('href')) !== null && _$favicon_getAttribute !== void 0 ? _$favicon_getAttribute : ''));\n });\n }\n },\n {\n key: \"getSettings\",\n value: function getSettings(loginType) {\n var _this = this;\n var clientName = function() {\n _this.appTypeSubject.value = loginType;\n var clientPortalBase = getClientPortalHost();\n if (loginType === AppTypes.auth) {\n return clientPortalBase ? getClientName(clientPortalBase) : ClientNames.Procom;\n }\n return getClientName(window.location.hostname);\n };\n this.clientNameSubject.value = clientName();\n // Temporary way in switching profile view for sign up page\n var clientLoginType = function() {\n if (_this.clientLoginTypeSubject.value) {\n return _this.clientLoginTypeSubject.value;\n }\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n return urlParams.get(ClientQueryParams.loginType);\n };\n this.clientLoginTypeSubject.value = clientLoginType();\n SiteList.find(function(portal) {\n if (portal.name === _this.clientNameSubject.value) {\n _this.clientSettingSubject.value = portal.settings;\n _this.updateFavicon();\n return true;\n }\n return false;\n });\n }\n },\n {\n key: \"getTranslations\",\n value: function getTranslations(clientCode) {\n var url = \"\".concat(this.environment.AUTH_API_URL, \"/Translation/\").concat(clientCode);\n return this.axios.get(url).pipe(map(function(response) {\n return response.data;\n }), catchError(function() {\n return of({\n translations: {\n en: {},\n fr: {}\n }\n });\n }));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.ClientService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new ClientService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return ClientService;\n}(BaseConfigService);\n","function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport { SuperSubject } from '../../models';\nexport var BaseSubjectStore = /*#__PURE__*/ function() {\n \"use strict\";\n function BaseSubjectStore() {\n var _this = this;\n _class_call_check(this, BaseSubjectStore);\n _define_property(this, \"state\", void 0);\n _define_property(this, \"select\", function(fields) {\n var selectedFields;\n if (!Array.isArray(fields)) {\n selectedFields = [\n fields\n ];\n } else {\n selectedFields = fields;\n }\n return selectedFields.reduce(function(obj, key) {\n var result = obj;\n result[key] = _this.state[key].observable$;\n return result;\n }, {});\n });\n _define_property(this, \"dispatch\", function(newState) {\n Object.keys(newState).forEach(function(key) {\n var subject = _this.state[key];\n subject.value = newState[key];\n });\n });\n this.state = this.initializeState();\n }\n _create_class(BaseSubjectStore, [\n {\n key: \"initializeState\",\n value: function initializeState() {\n var defaultValue = this.getDefaultValue();\n return Object.keys(defaultValue).reduce(function(obj, key) {\n var result = obj;\n result[key] = new SuperSubject(defaultValue[key]);\n return result;\n }, {});\n }\n },\n {\n key: \"getStateValue\",\n value: function getStateValue() {\n var _this = this;\n return Object.keys(this.state).reduce(function(obj, key) {\n var result = obj;\n result[key] = _this.state[key].value;\n return result;\n }, {});\n }\n },\n {\n key: \"reset\",\n value: function reset() {\n this.dispatch(this.getDefaultValue());\n }\n }\n ]);\n return BaseSubjectStore;\n}();\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { InjectableStores } from '../../enums';\nimport { WindowedObservable } from '../../windowed-observable';\nimport { BaseSubjectStore } from '../subject-store';\nexport var MfaStore = /*#__PURE__*/ function(BaseSubjectStore) {\n \"use strict\";\n _inherits(MfaStore, BaseSubjectStore);\n function MfaStore() {\n _class_call_check(this, MfaStore);\n return _call_super(this, MfaStore, arguments);\n }\n _create_class(MfaStore, [\n {\n key: \"getDefaultValue\",\n value: function getDefaultValue() {\n return {\n isUserMfaSettingsUpdated: false,\n userMfaDetails: null,\n userMfaPhoneNumber: null,\n mfaFlow: null,\n mfaType: null,\n preferredMfaMethod: null,\n isCognitoUserValid: false,\n showAuthenticatorAppDescription: false,\n showMfaPhoneAlert: false\n };\n }\n },\n {\n key: \"userMfaDetails\",\n get: function get() {\n return this.state.userMfaDetails.value;\n }\n },\n {\n key: \"mfaType\",\n get: function get() {\n return this.state.mfaType.value;\n }\n },\n {\n key: \"mfaSettingsReset\",\n value: function mfaSettingsReset() {\n this.dispatch({\n isUserMfaSettingsUpdated: false,\n mfaFlow: null,\n mfaType: null,\n isCognitoUserValid: false,\n showAuthenticatorAppDescription: false\n });\n }\n },\n {\n key: \"resetMfaType\",\n value: function resetMfaType() {\n this.dispatch({\n mfaType: null\n });\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableStores.MfaStore);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new MfaStore();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return MfaStore;\n}(BaseSubjectStore);\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { InjectableStores } from '../../enums';\nimport { WindowedObservable } from '../../windowed-observable';\nimport { BaseSubjectStore } from '../subject-store';\nexport var UserStore = /*#__PURE__*/ function(BaseSubjectStore) {\n \"use strict\";\n _inherits(UserStore, BaseSubjectStore);\n function UserStore() {\n _class_call_check(this, UserStore);\n var _this;\n _this = _call_super(this, UserStore, arguments), _define_property(_this, \"emailSearchFilter$\", _this.state.emailSearchFilter.observable$);\n return _this;\n }\n _create_class(UserStore, [\n {\n key: \"getDefaultValue\",\n value: function getDefaultValue() {\n return {\n isLoading: false,\n isSubmitting: false,\n accountSettingsFormProp: {},\n workSettingsFormProp: {},\n userAvatarFormProp: {},\n userProfile: null,\n userList: [],\n impersonatedUser: null,\n userAvatar: null,\n emailSearchFilter: '',\n isUserMfaModalOpened: false,\n isMfaRequiredModalOpened: false,\n isSelectImpersonationProfileModalOpened: false\n };\n }\n },\n {\n key: \"userProfile\",\n get: function get() {\n return this.state.userProfile.value;\n }\n },\n {\n key: \"setUserFormSubmitting\",\n value: function setUserFormSubmitting(isSubmitting) {\n this.dispatch({\n isSubmitting: isSubmitting\n });\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableStores.UserStore);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new UserStore();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return UserStore;\n}(BaseSubjectStore);\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { catchError, finalize, map, of, switchMap } from 'rxjs';\nimport { InjectableServices } from '../enums';\nimport { UserStore } from '../store';\nimport { WindowedObservable } from '../windowed-observable';\nimport { AuthService } from './auth.service';\nimport { BaseConfigService } from './base-config.service';\nexport var UserService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(UserService, BaseConfigService);\n function UserService() {\n _class_call_check(this, UserService);\n var _this;\n _this = _call_super(this, UserService), _define_property(_this, \"baseEndpoint\", void 0), _define_property(_this, \"authService\", AuthService.getOrCreate()), _define_property(_this, \"userStore\", UserStore.getOrCreate());\n _this.baseEndpoint = _this.environment.AUTH_API_URL;\n return _this;\n }\n _create_class(UserService, [\n {\n key: \"getUsers\",\n value: function getUsers() {\n var _this = this;\n var email = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '';\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/User?\").concat(new URLSearchParams({\n email: email\n }))).pipe(map(function(param) {\n var data = param.data;\n _this.userStore.dispatch({\n userList: data\n });\n return data;\n }), finalize(function() {\n _this.userStore.dispatch({\n isLoading: false\n });\n }));\n }\n },\n {\n key: \"getUserByEmail\",\n value: function getUserByEmail(email) {\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/User/email?\").concat(new URLSearchParams({\n email: email\n }))).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"getUserDetail\",\n value: function getUserDetail(id) {\n var _this = this;\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/User/\").concat(id)).pipe(map(function(param) {\n var data = param.data;\n _this.userStore.dispatch({\n userProfile: data\n });\n return data;\n }), finalize(function() {\n _this.userStore.dispatch({\n isLoading: false\n });\n }));\n }\n },\n {\n key: \"updateUserDetail\",\n value: function updateUserDetail(id, payload, updateCurrent) {\n var _this = this;\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.put(\"\".concat(this.baseEndpoint, \"/User/\").concat(id), payload).pipe(switchMap(function(param) {\n var data = param.data;\n if (updateCurrent) {\n var userProfileData = _this.userStore.userProfile;\n _this.userStore.dispatch({\n userProfile: _object_spread({}, userProfileData, data)\n });\n return _this.authService.fetchUserInfo().pipe(map(function() {}));\n }\n return of(data);\n }), finalize(function() {\n _this.userStore.dispatch({\n isLoading: false\n });\n }));\n }\n },\n {\n key: \"uploadUserAvatarImage\",\n value: function uploadUserAvatarImage(formData) {\n var _this = this;\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.post(\"\".concat(this.baseEndpoint, \"/User/avatar\"), formData).pipe(finalize(function() {\n _this.userStore.dispatch({\n userAvatar: formData.get('file'),\n isLoading: false\n });\n }));\n }\n },\n {\n key: \"getUserAvatarImage\",\n value: function getUserAvatarImage() {\n var _this = this;\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.get(\"\".concat(this.baseEndpoint, \"/User/avatar\"), {\n responseType: 'arraybuffer'\n }).pipe(map(function(param) {\n var data = param.data;\n _this.userStore.dispatch({\n userAvatar: data\n });\n return data;\n }), catchError(function() {\n _this.userStore.dispatch({\n userAvatar: null\n });\n return of(null);\n }), finalize(function() {\n _this.userStore.dispatch({\n isLoading: false\n });\n }));\n }\n },\n {\n key: \"deleteUserAvatarImage\",\n value: function deleteUserAvatarImage() {\n var _this = this;\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.delete(\"\".concat(this.baseEndpoint, \"/User/avatar\")).pipe(finalize(function() {\n _this.userStore.dispatch({\n userAvatar: null,\n isLoading: false\n });\n }));\n }\n },\n {\n key: \"resendInvitationEmail\",\n value: function resendInvitationEmail(id) {\n var _this = this;\n this.userStore.dispatch({\n isLoading: true\n });\n return this.axios.post(\"\".concat(this.baseEndpoint, \"/account/resend-invitation-email/\").concat(id)).pipe(finalize(function() {\n _this.userStore.dispatch({\n isLoading: false\n });\n }));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.UserService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new UserService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return UserService;\n}(BaseConfigService);\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_without_holes(arr) {\n if (Array.isArray(arr)) return _array_like_to_array(arr);\n}\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _iterable_to_array(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _non_iterable_spread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _to_consumable_array(arr) {\n return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { map, Observable, tap } from 'rxjs';\nimport { InjectableServices } from '../enums';\nimport { MfaFlows, MfaTypes } from '../models/user/mfa';\nimport { MfaStore } from '../store';\nimport { WindowedObservable } from '../windowed-observable';\nimport { AuthService } from './auth.service';\nimport { BaseConfigService } from './base-config.service';\nimport { UserService } from './user.service';\nexport var MfaService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(MfaService, BaseConfigService);\n function MfaService() {\n _class_call_check(this, MfaService);\n var _this;\n _this = _call_super(this, MfaService, arguments), _define_property(_this, \"authService\", AuthService.getOrCreate()), _define_property(_this, \"userService\", UserService.getOrCreate()), _define_property(_this, \"mfaStore\", MfaStore.getOrCreate());\n return _this;\n }\n _create_class(MfaService, [\n {\n key: \"resetMfaSettings\",\n value: function resetMfaSettings() {\n this.mfaStore.mfaSettingsReset();\n this.authService.setIsMfaCodeRequested(false);\n }\n },\n {\n key: \"updateMfaDetails\",\n value: function updateMfaDetails(mfaDetails) {\n var _mfaDetails_find;\n var phoneNumber = mfaDetails === null || mfaDetails === void 0 ? void 0 : (_mfaDetails_find = mfaDetails.find(function(item) {\n return item.phoneNumber;\n })) === null || _mfaDetails_find === void 0 ? void 0 : _mfaDetails_find.phoneNumber;\n this.mfaStore.dispatch({\n userMfaDetails: mfaDetails\n });\n if (phoneNumber) this.mfaStore.dispatch({\n userMfaPhoneNumber: phoneNumber\n });\n }\n },\n {\n key: \"updateUserMfaDetails\",\n value: function updateUserMfaDetails(param) {\n var _this = this;\n var userId = param.userId, payload = param.payload;\n var url = \"\".concat(this.environment.AUTH_API_URL, \"/User/\").concat(userId, \"/MFA\");\n return this.axios.put(url, payload).pipe(tap(function(param) {\n var data = param.data;\n if (_this.userService) {\n _this.userService.userStore.dispatch({\n userProfile: data\n });\n }\n _this.mfaStore.dispatch({\n userMfaDetails: data.mfaDetails\n });\n }), map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"handleSelectMfaType\",\n value: function handleSelectMfaType(param) {\n var _this = this;\n var currentCognitoUser = param.currentCognitoUser, currentCognitoUserEmail = param.currentCognitoUserEmail, mfaType = param.mfaType;\n return new Observable(function(observer) {\n if (!currentCognitoUser) {\n observer.error('No currentCognitoUser');\n return;\n }\n _this.mfaStore.dispatch({\n mfaType: mfaType\n });\n var mfaTypeCognito = mfaType.toLowerCase() === MfaTypes.SMS.toLowerCase() ? 'SMS_MFA' : 'SOFTWARE_TOKEN_MFA';\n currentCognitoUser.sendMFASelectionAnswer(mfaTypeCognito, {\n onSuccess: function(session) {\n return _this.authService.handleCognitoUserOnSuccess({\n cognitoSession: session,\n username: currentCognitoUserEmail,\n sendGtmEvent: false,\n observer: observer\n });\n },\n onFailure: function(error) {\n return _this.authService.handleCognitoUserOnFailure({\n username: currentCognitoUserEmail,\n error: error,\n observer: observer\n });\n },\n mfaRequired: function() {\n _this.mfaStore.dispatch({\n preferredMfaMethod: mfaType\n });\n return _this.authService.handleCognitoUserMfaRequired({\n observer: observer\n });\n },\n totpRequired: function() {\n _this.mfaStore.dispatch({\n preferredMfaMethod: mfaType\n });\n return _this.authService.handleCognitoUserTotpRequired({\n observer: observer\n });\n }\n });\n });\n }\n },\n {\n // Used to enable/disabled MFA\n key: \"handleSetUserMfaPreference\",\n value: function handleSetUserMfaPreference(param) {\n var _this = this;\n var currentCognitoUser = param.currentCognitoUser, userId = param.userId, recaptchaToken = param.recaptchaToken, phoneNumber = param.phoneNumber, _param_isEnabled = param.isEnabled, isEnabled = _param_isEnabled === void 0 ? true : _param_isEnabled, mfaMethodRequested = param.mfaMethodRequested;\n return new Observable(function(observer) {\n var cognitoMfaSettings = {\n sms: {\n PreferredMfa: false,\n Enabled: false\n },\n totp: {\n PreferredMfa: false,\n Enabled: false\n }\n };\n var mfaSettings = structuredClone(_this.mfaStore.userMfaDetails) || [];\n var updateMfaSettings = function() {\n var hasMfaMethodRequested = mfaSettings.some(function(item) {\n var _item_type;\n return ((_item_type = item.type) === null || _item_type === void 0 ? void 0 : _item_type.toLowerCase()) === (mfaMethodRequested === null || mfaMethodRequested === void 0 ? void 0 : mfaMethodRequested.toLowerCase());\n });\n if (mfaSettings.length > 0 && hasMfaMethodRequested && mfaMethodRequested) mfaSettings = mfaSettings.map(function(settings) {\n if (settings.type.toLowerCase() === mfaMethodRequested.toLowerCase()) {\n var _settings_type;\n return _object_spread(_object_spread_props(_object_spread({}, settings), {\n isEnabled: isEnabled\n }), ((_settings_type = settings.type) === null || _settings_type === void 0 ? void 0 : _settings_type.toLowerCase()) === MfaTypes.SMS.toLowerCase() && phoneNumber && {\n phoneNumber: phoneNumber\n });\n }\n return _object_spread({}, settings);\n }) || [];\n else if (mfaMethodRequested) {\n mfaSettings = _to_consumable_array(mfaSettings).concat([\n _object_spread({\n type: mfaMethodRequested,\n isEnabled: true,\n isPreferred: true\n }, (mfaMethodRequested === null || mfaMethodRequested === void 0 ? void 0 : mfaMethodRequested.toLowerCase()) === MfaTypes.SMS.toLowerCase() && phoneNumber && {\n phoneNumber: phoneNumber\n })\n ]);\n } else {\n mfaSettings = [];\n }\n var isAuthenticatorEnabled = mfaSettings.some(function(item) {\n return item.type === MfaTypes.Authenticator && item.isEnabled;\n });\n // When both SMS and Authenticator App are enabled, Authenticator is the preferred method\n // isPreferred: setHasPreferred(mfaMethodRequested, isEnabled),\n mfaSettings = mfaSettings.map(function(item) {\n var _item_type, _item_type1, _item_type2;\n if (isAuthenticatorEnabled && ((_item_type = item.type) === null || _item_type === void 0 ? void 0 : _item_type.toLowerCase()) === MfaTypes.Authenticator.toLowerCase() || !isAuthenticatorEnabled && ((_item_type1 = item.type) === null || _item_type1 === void 0 ? void 0 : _item_type1.toLowerCase()) === MfaTypes.SMS.toLowerCase() && item.isEnabled) {\n var _item_type3;\n cognitoMfaSettings[(_item_type3 = item.type) === null || _item_type3 === void 0 ? void 0 : _item_type3.toLowerCase()].Enabled = true;\n return _object_spread_props(_object_spread({}, item), {\n isPreferred: true\n });\n }\n cognitoMfaSettings[(_item_type2 = item.type) === null || _item_type2 === void 0 ? void 0 : _item_type2.toLowerCase()].Enabled = item.isEnabled;\n return _object_spread_props(_object_spread({}, item), {\n isPreferred: false\n });\n });\n };\n updateMfaSettings();\n currentCognitoUser.setUserMfaPreference(cognitoMfaSettings.sms, cognitoMfaSettings.totp, function(err) {\n if (err) {\n observer.error(err);\n return;\n }\n var payload = {\n recaptchaToken: recaptchaToken,\n mfaDetails: mfaSettings\n };\n if (userId) _this.updateUserMfaDetails({\n userId: userId,\n payload: payload\n }).pipe(tap(function(data) {\n var isMfaEnabled = data.mfaDetails.some(function(item) {\n return item.isPreferred;\n });\n _this.authService.updateCurrentUserMfaStatus(isMfaEnabled);\n })).subscribe({\n complete: function() {\n if (!isEnabled) _this.mfaStore.dispatch({\n mfaFlow: MfaFlows.Disable\n });\n _this.mfaStore.dispatch({\n isUserMfaSettingsUpdated: true\n });\n if (_this.mfaStore.mfaType) {\n observer.next({\n isCodeValid: true,\n hasCodeExpired: false\n });\n }\n observer.complete();\n },\n error: function() {\n observer.error(err);\n }\n });\n });\n });\n }\n },\n {\n key: \"handleVerifySoftwareToken\",\n value: function handleVerifySoftwareToken(param) {\n var currentCognitoUser = param.currentCognitoUser, code = param.code, deviceName = param.deviceName, recaptchaToken = param.recaptchaToken;\n return new Observable(function(observer) {\n if (currentCognitoUser) {\n currentCognitoUser.verifySoftwareToken(code, deviceName, {\n onSuccess: function() {\n observer.next({\n recaptchaToken: recaptchaToken\n });\n observer.complete();\n },\n onFailure: function(err) {\n observer.error(err);\n }\n });\n }\n });\n }\n },\n {\n key: \"handleAssociateSoftwareToken\",\n value: function handleAssociateSoftwareToken(param) {\n var currentCognitoUser = param.currentCognitoUser;\n return new Observable(function(observer) {\n currentCognitoUser === null || currentCognitoUser === void 0 ? void 0 : currentCognitoUser.associateSoftwareToken({\n associateSecretCode: function(secretCode) {\n observer.next(secretCode);\n observer.complete();\n },\n onFailure: function(error) {\n observer.error(error);\n }\n });\n });\n }\n },\n {\n key: \"handleSendMfaCode\",\n value: function handleSendMfaCode(param) {\n var _this = this;\n var currentCognitoUser = param.currentCognitoUser, code = param.code, currentCognitoUserEmail = param.currentCognitoUserEmail;\n return new Observable(function(observer) {\n var _this_mfaStore_mfaType, _MfaTypes_Authenticator;\n currentCognitoUser === null || currentCognitoUser === void 0 ? void 0 : currentCognitoUser.sendMFACode(code, {\n onSuccess: function(session) {\n observer.next({\n isCodeValid: true,\n hasCodeExpired: false\n });\n _this.mfaStore.dispatch({\n isCognitoUserValid: true\n });\n _this.authService.setIsMfaCodeRequested(false);\n _this.mfaStore.resetMfaType();\n return _this.authService.handleCognitoUserOnSuccess({\n cognitoSession: session,\n username: currentCognitoUserEmail,\n sendGtmEvent: false,\n observer: observer\n });\n },\n onFailure: function(error) {\n observer.next({\n isCodeValid: false,\n hasCodeExpired: false\n });\n return _this.authService.handleCognitoUserOnFailure({\n username: currentCognitoUserEmail,\n error: error,\n observer: observer\n });\n }\n }, ((_this_mfaStore_mfaType = _this.mfaStore.mfaType) === null || _this_mfaStore_mfaType === void 0 ? void 0 : _this_mfaStore_mfaType.toLowerCase()) === ((_MfaTypes_Authenticator = MfaTypes.Authenticator) === null || _MfaTypes_Authenticator === void 0 ? void 0 : _MfaTypes_Authenticator.toLowerCase()) ? 'SOFTWARE_TOKEN_MFA' : 'SMS_MFA');\n });\n }\n },\n {\n key: \"getPreferredMfaMethod\",\n value: function getPreferredMfaMethod(email) {\n var _this = this;\n var url = \"\".concat(this.environment.AUTH_API_URL, \"/User/preferred-mfa?\").concat(new URLSearchParams({\n email: email\n }));\n return this.axios.get(url).pipe(tap(function(param) {\n var data = param.data;\n _this.mfaStore.dispatch({\n preferredMfaMethod: data\n });\n }), map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.MfaService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new MfaService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return MfaService;\n}(BaseConfigService);\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nvar _PALETTE_common, _PALETTE_text, _PALETTE_primary;\nimport Values from 'values.js';\nimport { PaletteModeCode } from '../../enums';\nimport { getDarkThemeConfig } from './dark';\nvar SPACING_BASE = 8;\nexport var PALETTE = getDarkThemeConfig(PaletteModeCode.dark).palette;\n// https://uxplanet.org/responsive-design-best-practices-c6d3f5fd163b\nvar BREAKPOINTS = {\n values: {\n xs: 0,\n sm: 600,\n md: 900,\n lg: 1200,\n xl: 1536,\n k2: 1900,\n k4: 3000\n }\n};\nvar SHAPE = {\n borderRadius: 4,\n radius: {\n small: '2px',\n normal: '4px',\n larger: '6px',\n large: '8px'\n }\n};\nvar MIXINS = {\n toolbar: {\n height: 64\n },\n menuButton: {\n display: 'block',\n color: 'inherit',\n '&.button-variant-text': {\n borderRadius: '0px',\n paddingBottom: 0,\n '&:hover': {\n backgroundColor: 'inherit'\n },\n '& > .MuiButton-label': {}\n },\n '&.button-variant-contained': {\n paddingLeft: '12px',\n paddingRight: '12px',\n color: PALETTE === null || PALETTE === void 0 ? void 0 : (_PALETTE_common = PALETTE.common) === null || _PALETTE_common === void 0 ? void 0 : _PALETTE_common.white,\n '&:hover': {\n color: PALETTE === null || PALETTE === void 0 ? void 0 : (_PALETTE_text = PALETTE.text) === null || _PALETTE_text === void 0 ? void 0 : _PALETTE_text.secondary\n }\n },\n '&.link-button': {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'center',\n '&:hover': {\n textDecoration: 'none',\n '& *': {\n textDecoration: 'inherit'\n }\n }\n },\n paddingLeft: '6px',\n paddingRight: '6px',\n marginRight: SPACING_BASE,\n '&:last-child': {\n marginRight: 0\n },\n minWidth: '80px',\n '& .MuiButton-endIcon': {\n marginLeft: '1.5px'\n },\n '& .MuiSvgIcon-root': {\n marginRight: '-3px',\n transition: '0.5s transform ease'\n },\n '&.selected': {\n '& .MuiSvgIcon-root': {\n transform: 'rotate(180deg)'\n }\n }\n },\n menuButtonLabel: {\n width: 'auto',\n textTransform: 'capitalize',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'flex-end',\n '.button-variant-text &': {\n borderBottom: '3.5px transparent solid',\n '&:hover': {\n borderBottom: \"3.5px \".concat(PALETTE === null || PALETTE === void 0 ? void 0 : (_PALETTE_primary = PALETTE.primary) === null || _PALETTE_primary === void 0 ? void 0 : _PALETTE_primary.main, \" solid\")\n }\n }\n }\n};\nexport var getColorShadeLabel = function(index) {\n if (index < 10) {\n return PaletteModeCode.light;\n }\n if (index > 10) {\n return PaletteModeCode.dark;\n }\n return 'main';\n};\nexport var baseThemeConfig = {\n layout: {},\n breakpoints: BREAKPOINTS,\n spacing: SPACING_BASE,\n palette: PALETTE,\n typography: {\n fontFamily: 'Manrope, Roboto, sans-serif',\n htmlFontSize: 10,\n h2: {\n fontWeight: 500\n },\n h2Bold800: {\n fontSize: '6rem',\n fontWeight: 800,\n lineHeight: 1.2,\n fontFamily: 'Manrope, sans-serif'\n },\n h4: {\n fontSize: '3.4rem',\n fontWeight: 600,\n lineHeight: 1.23\n },\n h5Bold700: {\n fontSize: '2.4rem',\n fontWeight: 700,\n lineHeight: 1.334,\n fontFamily: 'Manrope, sans-serif'\n },\n h6: {\n fontWeight: 700\n },\n h6Bold800: {\n fontSize: '2rem',\n fontWeight: 800,\n lineHeight: 1.334,\n fontFamily: 'Manrope, sans-serif'\n },\n h22: {\n fontSize: '2.2rem',\n fontWeight: 400,\n lineHeight: 1.334,\n fontFamily: 'Manrope, sans-serif'\n },\n h22Bold800: {\n fontSize: '2.2rem',\n fontWeight: 800,\n lineHeight: 1.18,\n fontFamily: 'Manrope, sans-serif'\n },\n h30: {\n fontSize: '3rem',\n fontWeight: 400,\n lineHeight: 0.86,\n fontFamily: 'Manrope, sans-serif'\n },\n h30Bold800: {\n fontSize: '3rem',\n fontWeight: 800,\n lineHeight: 0.86,\n fontFamily: 'Manrope, sans-serif'\n },\n subtitle1: {\n lineHeight: 1.25\n },\n subtitle1Bold: {\n fontSize: '1.6rem',\n fontWeight: 700,\n lineHeight: 1.25,\n fontFamily: 'Manrope, sans-serif'\n },\n subtitle1Label: {\n fontSize: '1.6rem',\n fontWeight: 700,\n lineHeight: 1.25,\n fontFamily: 'Manrope, sans-serif'\n },\n body1: {\n fontFamily: 'Roboto, sans-serif'\n },\n body1Bold: {\n fontSize: '1.6rem',\n fontWeight: 600,\n lineHeight: '1.5',\n fontFamily: 'Roboto, sans-serif'\n },\n body1Bold500: {\n fontSize: '1.6rem',\n fontWeight: 500,\n lineHeight: '1.5',\n fontFamily: 'Roboto, sans-serif'\n },\n body1Bold700: {\n fontSize: '1.6rem',\n fontWeight: 700,\n lineHeight: '0.75',\n fontFamily: 'Roboto, sans-serif'\n },\n body2: {\n fontFamily: 'Roboto, sans-serif'\n },\n body2Bold: {\n fontSize: '1.4rem',\n fontWeight: 500,\n lineHeight: '1.57',\n fontFamily: 'Roboto, sans-serif'\n },\n body2Bolder: {\n fontSize: '1.4rem',\n fontWeight: 700,\n lineHeight: '1.57',\n fontFamily: 'Roboto, sans-serif'\n },\n body3: {\n fontSize: '1.2rem',\n fontWeight: 400,\n lineHeight: '1.57',\n fontFamily: 'Roboto, sans-serif'\n }\n },\n shape: SHAPE,\n mixins: MIXINS,\n components: {\n MuiCssBaseline: {\n styleOverrides: function(theme) {\n return {\n '*, *::before, *::after': {\n boxSizing: 'border-box'\n },\n '*': {\n scrollbarColor: 'rgba(196, 196, 196, 1), rgba(229, 229, 229, 1)',\n scrollbarWidth: 'thin'\n },\n '*::-webkit-scrollbar': {\n width: '0.5rem',\n height: '0.5rem'\n },\n '*::-webkit-scrollbar-track': {\n background: 'rgba(229, 229, 229, 1)',\n borderRadius: '100vw'\n },\n '*::-webkit-scrollbar-thumb': {\n background: 'rgba(196, 196, 196, 1)',\n borderRadius: '100vh'\n },\n '*::-webkit-scrollbar-thumb:hover': {\n background: 'rgba(147, 147, 147, 1)'\n },\n ':root': _object_spread({\n fontSize: '62.5%'\n }, new Values(theme.palette.secondary.main).all(10).reduce(function(obj, item, index) {\n return Object.assign(obj, _define_property({}, \"--brand-\".concat(getColorShadeLabel(index), \"-\").concat(item.weight), \"rgb(\".concat(item.rgb.join(','), \")\")));\n }, {})),\n body: {\n fontSize: '1.6rem'\n },\n 'h1 ~ p,h2 ~ p,h3 ~ p,h4 ~ p,h5 ~ p,h6 ~ p': {\n marginTop: 0\n },\n 'ul,ol': {\n margin: 0,\n padding: 0\n },\n '.MuiCalendarPicker-root': {\n backgroundColor: theme.palette.common.white\n },\n '.remove-focus.Mui-focused': {\n color: \"\".concat(theme.palette.common.purple, \" !important\")\n },\n '.MuiFormLabel-asterisk': {\n whiteSpace: 'nowrap'\n },\n '.MuiDataGrid-menu, .MuiDataGrid-panel': {\n '.MuiPaper-root': {\n border: '1px solid',\n backgroundColor: theme.palette.background.default\n }\n },\n '.MuiFormControlLabel-asterisk': {\n display: 'none'\n }\n };\n }\n },\n MuiButton: {\n defaultProps: {\n size: 'large'\n },\n styleOverrides: {\n root: function(param) {\n var theme = param.theme, ownerState = param.ownerState;\n return {\n boxShadow: 'none',\n fontWeight: 800,\n textTransform: 'lowercase',\n whiteSpace: 'nowrap',\n '&.MuiButton-contained .MuiCircularProgress-root.MuiCircularProgress-colorPrimary': {\n color: '#8f8f8f'\n },\n '&.icon-button': {\n minWidth: 0,\n borderRadius: '50%',\n '&.MuiButton-sizeLarge': {\n padding: 12\n },\n '&.MuiButton-sizeMedium': {\n padding: 8\n },\n '&.MuiButton-sizeSmall': {\n padding: 5\n },\n '& .MuiSvgIcon-root': {\n fontSize: 'inherit'\n }\n },\n '&.icon-only': {\n minWidth: 0,\n paddingLeft: 14,\n paddingRight: 14,\n '.MuiButton-startIcon': {\n margin: 0\n }\n },\n 'a&:hover': ownerState.color && ownerState.color !== 'inherit' ? {\n color: theme.palette[ownerState.color].main,\n '&.MuiButton-contained': {\n color: theme.palette[ownerState.color].contrastText\n }\n } : undefined\n };\n },\n text: {\n textDecoration: 'underline',\n textUnderlineOffset: '4px',\n '&:hover': {\n textDecoration: 'underline',\n textUnderlineOffset: '4px'\n }\n },\n sizeSmall: _define_property({}, \"@media (min-width: \".concat(BREAKPOINTS.values.xs, \")\"), {\n fontSize: '1.3rem'\n }),\n sizeMedium: _define_property({}, \"@media (min-width: \".concat(BREAKPOINTS.values.xs, \")\"), {\n fontSize: '1.4rem'\n }),\n sizeLarge: _define_property({}, \"@media (min-width: \".concat(BREAKPOINTS.values.xs, \")\"), {\n fontSize: '1.6rem'\n })\n }\n },\n MuiToggleButton: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n textTransform: 'lowercase',\n letterSpacing: '-0.79px',\n paddingTop: 6,\n paddingBottom: 6,\n fontWeight: 700,\n '.MuiButtonBase-root': {\n paddingInline: 16\n },\n '.MuiToggleButton-primary': {\n color: theme.palette.primary.main,\n border: \"1px solid \".concat(theme.palette.primary.main)\n },\n '&.Mui-selected,&.Mui-selected:hover &:focus': {\n backgroundColor: \"\".concat(theme.palette.primary.main, \" !important\"),\n color: theme.palette.common.white\n },\n '&:hover': {\n backgroundColor: \"\".concat(theme.palette.primary.main, \"0a\")\n }\n };\n }\n }\n },\n MuiMenu: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '.MuiSvgIcon-root': {\n color: theme.palette.common.purple\n },\n '.MuiDivider-root': {\n borderColor: theme.palette.common.purple\n }\n };\n },\n paper: function(param) {\n var theme = param.theme;\n return _object_spread_props(_object_spread({\n backgroundColor: theme.palette.common.offWhite,\n color: theme.palette.common.purple\n }, (theme.palette.mode === 'light' || theme.palette.logoMode === 'light') && {\n backgroundColor: theme.palette.common.white\n }), {\n '.MuiSvgIcon-root.MuiSvgIcon-colorPrimary': {\n color: theme.palette.common.purple\n }\n });\n }\n }\n },\n MuiMenuItem: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '&.Mui-selected,&.Mui-selected.Mui-focusVisible, &.Mui-selected:hover': {\n backgroundColor: \"\".concat(theme.palette.common.purple, \"29\")\n },\n '&.Mui-focusVisible': {\n backgroundColor: \"\".concat(theme.palette.common.purple, \"19\")\n },\n ':hover': {\n backgroundColor: 'rgb(0, 0, 0, 0.04)'\n }\n };\n }\n }\n },\n MuiContainer: {\n defaultProps: {\n disableGutters: true\n }\n },\n MuiAppBar: {\n styleOverrides: {\n root: function() {\n return {\n boxShadow: 'none'\n };\n }\n }\n },\n MuiAvatar: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.common.white\n };\n }\n }\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n overflowX: 'hidden'\n }\n }\n },\n MuiDialogActions: {\n styleOverrides: {\n root: {\n padding: '0 20px 20px'\n }\n }\n },\n MuiCard: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n backgroundColor: theme.palette.background.default,\n borderRadius: 0,\n boxShadow: 'none',\n padding: '3.2rem'\n };\n }\n }\n },\n MuiFormControlLabel: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '&.Mui-disabled': {\n color: theme.palette.text.disabled\n }\n };\n },\n asterisk: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.error.main\n };\n }\n }\n },\n MuiFormLabel: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.text.primary,\n fontFamily: 'Manrope,Roboto,sans-serif',\n fontWeight: 700,\n '&.MuiInputLabel-root': {\n fontWeight: 400\n }\n };\n },\n asterisk: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.error.main\n };\n }\n }\n },\n MuiAutocomplete: {\n styleOverrides: {\n paper: function(param) {\n var theme = param.theme;\n return _object_spread_props(_object_spread({\n backgroundColor: theme.palette.common.offWhite,\n color: theme.palette.common.purple\n }, theme.palette.mode === 'light' && {\n backgroundColor: theme.palette.common.white\n }), {\n '.MuiSvgIcon-root': {\n color: theme.palette.common.purple\n }\n });\n },\n option: {\n '&.Mui-focused': {\n backgroundColor: 'rgb(0, 0, 0, 0.04) !important'\n }\n }\n }\n },\n MuiFormControl: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n rowGap: '4px',\n '& .MuiOutlinedInput-root': {\n '&.Mui-disabled, &.Mui-readOnly': {\n backgroundColor: theme.palette.action.disabledBackground,\n cursor: 'default',\n WebkitTextFillColor: theme.palette.action.disabled,\n '& .MuiOutlinedInput-notchedOutline': {\n border: 'none'\n }\n },\n '& .Mui-readOnly': {\n cursor: 'default'\n }\n },\n '& .MuiOutlinedInput-root.Mui-disabled .MuiSvgIcon-root': {\n color: theme.palette.action.disabled\n },\n '& .MuiOutlinedInput-root.Mui-disabled.Mui-error .MuiOutlinedInput-notchedOutline': {\n border: '1px solid',\n borderColor: theme.palette.error.main\n }\n };\n }\n }\n },\n MuiOutlinedInput: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return _object_spread({}, theme.palette.mode === 'light' && {\n '.Mui-disabled:-webkit-autofill': {\n WebkitBoxShadow: \"0 0 0 100px \".concat(theme.palette.action.disabledBackground, \" inset\")\n }\n });\n },\n input: function(param) {\n var theme = param.theme;\n return {\n '&:-webkit-autofill': {\n WebkitBoxShadow: \"0 0 0 100px \".concat(theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.action.disabledBackground, \" inset\"),\n WebkitTextFillColor: theme.palette.primary.main\n }\n };\n },\n notchedOutline: function(param) {\n var theme = param.theme;\n return _object_spread({}, theme.palette.mode !== PaletteModeCode.light.toString() && {\n borderColor: theme.palette.primary.main\n });\n }\n }\n },\n MuiInputAdornment: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.primary.main\n };\n }\n }\n },\n MuiSelect: {\n styleOverrides: {\n icon: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.primary.main\n };\n }\n }\n },\n MuiAlert: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n var _obj;\n return _obj = {}, _define_property(_obj, theme.breakpoints.down('sm'), {\n '&:has(.MuiAlert-action)': {\n flexWrap: 'wrap',\n '.MuiAlert-icon': {\n position: 'absolute',\n margin: 0\n },\n '.MuiAlert-action': {\n alignItems: 'center',\n padding: 0\n },\n '.MuiAlert-message': {\n marginLeft: theme.spacing(4)\n }\n }\n }), _define_property(_obj, \"boxShadow\", 'none'), _define_property(_obj, \"borderRadius\", 10), _define_property(_obj, \"fontSize\", '1.6rem'), _define_property(_obj, \"paddingBlock\", theme.spacing(1.2)), _obj;\n },\n outlinedError: function(param) {\n var theme = param.theme;\n return {\n background: theme.palette.background.default\n };\n },\n filledSuccess: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.common.white\n };\n }\n }\n },\n MuiChip: {\n defaultProps: {\n size: 'small'\n },\n styleOverrides: {\n root: function(param) {\n var theme = param.theme, ownerState = param.ownerState;\n return _object_spread_props(_object_spread({}, ownerState.variant === 'filled' && ownerState.color === 'info' && {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.info.main,\n boxShadow: \"inset 0 0 0 0.5px\"\n }), {\n textTransform: 'lowercase'\n });\n },\n label: function(param) {\n var ownerState = param.ownerState;\n return _object_spread({}, ownerState.size === 'small' && {\n fontSize: '14px',\n fontWeight: '700',\n padding: '10px 15px'\n });\n }\n }\n },\n MuiAccordion: {\n styleOverrides: {\n root: {\n '&:before': {\n display: 'none'\n }\n }\n }\n },\n MuiAccordionSummary: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n borderBottom: '1px solid',\n borderBottomColor: theme.palette.primary.main\n };\n }\n }\n },\n MuiTabs: {\n styleOverrides: {\n root: {\n '.MuiTabs-indicator': {\n height: 4\n }\n }\n }\n },\n MuiTab: {\n styleOverrides: {\n root: {\n textTransform: 'lowercase',\n fontWeight: 700,\n lineHeight: 1.71\n }\n }\n }\n }\n};\n","import { alpha } from '@mui/material';\nimport { PaletteModeCode } from '../../enums';\nexport var getDarkThemeConfig = function(paletteModeCode) {\n if (paletteModeCode === PaletteModeCode.dark) {\n return {\n layout: {},\n palette: {\n mode: paletteModeCode,\n action: {\n disabled: '#ffffffb3',\n disabledBackground: '#322E46'\n },\n common: {\n black: '#000',\n white: '#fff',\n purple: '#372E52',\n offWhite: '#FEF9F2',\n glass: 'rgba(233, 244, 254, 0.05)',\n glassOnGlass: 'rgba(233, 244, 254, 0.05)',\n jobColumnStatusHeader: '#fff',\n lightOrange: '#DB6900',\n orange: '#ef4a0c',\n pink: '#f7e0db',\n darkGray: '#333'\n },\n primary: {\n light: '#fff',\n main: '#fff',\n dark: '#fff',\n contrastText: '#372E52'\n },\n secondary: {\n light: '#ef4a0c',\n main: '#DB3A00',\n dark: '#b83101',\n contrastText: '#fff'\n },\n error: {\n dark: '#DB0000',\n main: '#F00',\n light: '#F88078',\n contrastText: '#fff'\n },\n warning: {\n main: '#ED6C02',\n light: '#FFB547',\n dark: '#C77700',\n contrastText: '#fff'\n },\n info: {\n dark: '#1d2b7a',\n main: '#303F9F',\n light: '#E9F4FE',\n contrastText: '#fff'\n },\n success: {\n light: '#7BC67E',\n main: '#367C3A',\n dark: '#3B873E',\n contrastText: '#fff'\n },\n text: {\n primary: '#fff',\n secondary: '#fff',\n disabled: '#ffffffb3',\n iconDisabled: '#ffffff33'\n },\n divider: '#fff',\n background: {\n default: '#221B37',\n paper: '#ffffff00'\n },\n candidatesFunnel: {\n new: '#303F9F',\n shortlist: '#145A7B',\n interview: '#73483A',\n offer: '#DB3A00',\n rejected: '#F00'\n },\n candidatesSource: {\n directlyApplied: '#C7D3F2',\n recruiterAdded: '#C1E3D3',\n aiMatched: '#DBDBDB',\n managerAdded: '#C1E3D3'\n },\n jobsFunnel: {\n active: '#3B873E',\n paused: '#ED6C02',\n closed: '#3A1528',\n draft: '#000000'\n },\n alertOutlined: {\n bgSuccess: '#EDF7ED',\n bgWarning: '#FDF0E6',\n bgError: '#FEECEB'\n },\n onePager: {\n skillsProgress: '#978CB6',\n skillsProgressBg: '#D6D6ED',\n jobsProgress: '#8CB6A7',\n jobsProgressBg: '#CEE4DC',\n boxBg: '#F4F5F7'\n },\n consultantList: {\n primary: '#DB3A00',\n secondary: '#FEF9F2',\n statusChips: {\n selected: '#372E52',\n border: '#d3d3d340'\n }\n },\n entityPanel: {\n sidebar: '#F2EAE1',\n activeState: '#DCCEBE',\n drawerBackground: '#FAF5EF',\n chevronIcon: '#B7A692'\n }\n },\n components: {\n MuiAlert: {\n styleOverrides: {\n standard: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.primary.main,\n backgroundColor: theme.palette.common.glass,\n '& .MuiAlert-icon': {\n color: theme.palette.common.white\n }\n };\n }\n }\n },\n MuiSwitch: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '& .MuiSwitch-switchBase': {\n padding: '14px',\n '&.Mui-checked .MuiSwitch-thumb': {\n backgroundColor: theme.palette.primary.contrastText,\n borderColor: theme.palette.primary.contrastText\n },\n '&.Mui-checked + .MuiSwitch-track': {\n backgroundColor: theme.palette.primary.main,\n opacity: 1\n }\n }\n };\n },\n thumb: {\n width: 10,\n height: 10,\n backgroundColor: 'transparent',\n border: '1px solid',\n borderColor: 'text.primary'\n },\n track: {\n backgroundColor: 'transparent',\n border: '1px solid',\n borderColor: 'text.primary',\n opacity: 1\n }\n }\n }\n }\n };\n }\n if (paletteModeCode === PaletteModeCode.glass) {\n return {\n layout: {},\n palette: {\n mode: paletteModeCode,\n action: {\n disabled: '#ffffffb3',\n disabledBackground: '#3A3751'\n },\n common: {\n black: '#000',\n white: '#fff',\n purple: '#372E52',\n offWhite: '#FEF9F2',\n glass: 'rgba(233, 244, 254, 0.05)',\n orange: '#ef4a0c',\n pink: '#f7e0db'\n },\n primary: {\n light: '#fff',\n main: '#fff',\n dark: '#fff',\n contrastText: '#372E52'\n },\n secondary: {\n light: '#ef4a0c',\n main: '#DB3A00',\n dark: '#b83101',\n contrastText: '#fff'\n },\n error: {\n dark: '#DB0000',\n main: '#F00',\n light: '#F88078',\n contrastText: '#fff'\n },\n warning: {\n main: '#ED6C02',\n light: '#FFB547',\n dark: '#C77700',\n contrastText: '#fff'\n },\n info: {\n dark: '#1d2b7a',\n main: '#303F9F',\n light: '#E9F4FE',\n contrastText: '#fff'\n },\n success: {\n main: '#4CAF50',\n light: '#367C3A',\n dark: '#3B873E',\n contrastText: '#fff'\n },\n text: {\n primary: '#fff',\n secondary: '#fff',\n disabled: '#ffffffb3',\n iconDisabled: '#ffffff33'\n },\n divider: '#fff',\n background: {\n default: 'rgba(233, 244, 254, 0.05);',\n paper: 'rgba(233, 244, 254, 0.05);'\n },\n jobsFunnel: {\n active: '#367C3A',\n paused: '#303F9F',\n closed: '#F00',\n draft: '#FFF'\n },\n alertOutlined: {\n bgSuccess: '#EDF7ED',\n bgWarning: '#FDF0E6',\n bgError: '#FEECEB'\n },\n consultantList: {\n primary: '#DB3A00',\n secondary: '#FEF9F2',\n statusChips: {\n selected: '#372E52',\n border: '#d3d3d340'\n }\n }\n },\n components: {\n MuiPaper: {\n styleOverrides: {\n root: {\n boxShadow: '0 8px 32px 0 rgba( 31, 38, 135, 0.37 )',\n backdropFilter: 'blur( 3px )'\n }\n }\n },\n MuiFormHelperText: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '&.Mui-error': {\n color: theme.palette.common.white\n }\n };\n }\n }\n },\n MuiAlert: {\n styleOverrides: {\n standard: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.primary.main,\n backgroundColor: theme.palette.common.glass,\n '& .MuiAlert-icon': {\n color: theme.palette.common.white\n }\n };\n }\n }\n },\n MuiFormLabel: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '&.Mui-error': {\n color: theme.palette.mode !== PaletteModeCode.light && theme.palette.mode !== PaletteModeCode.dark ? theme.palette.common.white : theme.palette.error.main\n }\n };\n }\n }\n }\n }\n };\n }\n if (paletteModeCode === PaletteModeCode.sidebar) {\n return {\n layout: {},\n palette: {\n mode: paletteModeCode,\n common: {\n glassOnGlass: 'rgba(233, 244, 254, 0.05)',\n pink: '#f7e0db',\n lightOrange: '#DE9200'\n },\n primary: {\n light: '#fff',\n main: '#fff',\n dark: '#fff',\n contrastText: '#372E52'\n },\n secondary: {\n light: '#ef4a0c',\n main: '#E67637',\n dark: '#b83101',\n contrastText: '#fff'\n },\n text: {\n primary: '#fff',\n secondary: '#fff',\n disabled: '#ffffffb3',\n iconDisabled: '#ffffff33'\n },\n divider: '#746BAE',\n background: {\n default: '#332D68',\n paper: '#332D68'\n },\n jobsFunnel: {\n active: '#367C3A',\n paused: '#303F9F',\n closed: '#F00',\n draft: '#FFF'\n },\n consultantList: {\n primary: '#DB3A00',\n secondary: '#FEF9F2',\n statusChips: {\n selected: '#372E52',\n border: '#d3d3d340'\n }\n }\n }\n };\n }\n return {\n layout: {},\n palette: {\n mode: paletteModeCode,\n action: {\n active: '#372E52',\n disabled: '#59595980',\n disabledBackground: '#F4EFE8',\n hover: 'rgb(0, 0, 0, 0.04)',\n selected: 'rgb(0, 0, 0, 0.08)'\n },\n common: {\n black: '#000',\n white: '#fff',\n purple: '#372E52',\n offWhite: '#FEF9F2',\n glass: 'rgba(233, 244, 254, 0.05)',\n lightOrange: '#DB6900',\n pink: '#f7e0db'\n },\n primary: {\n light: '#4f4379',\n main: '#372E52',\n dark: '#221B37',\n contrastText: '#fff'\n },\n secondary: {\n light: '#ef4a0c',\n main: '#DB3A00',\n dark: '#b83101',\n contrastText: '#fff'\n },\n error: {\n dark: '#DB0000',\n main: '#F00',\n light: '#F88078',\n contrastText: '#fff'\n },\n warning: {\n main: '#ED6C02',\n light: '#FFB547',\n dark: '#C77700',\n contrastText: '#fff'\n },\n info: {\n dark: '#1d2b7a',\n main: '#303F9F',\n light: '#E9F4FE',\n contrastText: '#fff'\n },\n success: {\n main: '#4CAF50',\n light: '#367C3A',\n dark: '#3B873E',\n contrastText: '#fff'\n },\n text: {\n primary: '#372E52',\n secondary: '#595959',\n disabled: '#59595980',\n iconDisabled: '#59595980'\n },\n divider: '#372E52',\n background: {\n default: '#FEF9F2',\n paper: '#FEF9F2'\n },\n candidatesFunnel: {\n new: '#303F9F',\n shortlist: '#145A7B',\n interview: '#73483A',\n offer: '#DB3A00',\n rejected: '#F00'\n },\n jobsFunnel: {\n active: '#367C3A',\n paused: '#303F9F',\n closed: '#F00',\n draft: '#FFF'\n },\n alertOutlined: {\n bgSuccess: '#EDF7ED',\n bgWarning: '#FDF0E6',\n bgError: '#FEECEB'\n },\n gorillaResume: {\n ai: '#7440E1',\n main: '#E67637',\n dark: '#0F214B',\n button: '#12327E',\n text: {\n primary: '#02010D',\n secondary: '#67676e',\n disabled: 'rgba(0, 0, 0, 0.38)',\n gray: 'rgba(2, 1, 13, 0.6)'\n },\n error: {\n dark: '#900000',\n dark2: '#AA0000',\n light: '#e3b9b5'\n },\n warningLight: '#e7bf76',\n beige: '#FAF5EF',\n outline: 'rgba(15, 33, 75, 0.30)'\n },\n consultantList: {\n primary: '#DB3A00',\n secondary: '#FEF9F2',\n statusChips: {\n selected: '#372E52',\n border: '#d3d3d340'\n }\n }\n },\n components: {\n MuiInputBase: {\n styleOverrides: {\n root: {\n backgroundColor: '#fff'\n }\n }\n },\n MuiSwitch: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '& .MuiSwitch-switchBase': {\n '&.Mui-checked .MuiSwitch-thumb': {\n backgroundColor: theme.palette.background.default\n },\n '&.Mui-checked + .MuiSwitch-track': {\n backgroundColor: theme.palette.primary.main,\n opacity: 1\n }\n }\n };\n },\n thumb: function(param) {\n var theme = param.theme;\n return {\n width: 10,\n height: 10,\n backgroundColor: theme.palette.primary.main\n };\n },\n track: {\n backgroundColor: 'transparent',\n opacity: 1,\n border: '1px solid',\n borderColor: 'text.primary'\n },\n switchBase: {\n padding: '13.5px',\n marginLeft: 2,\n '&.Mui-checked': {\n marginLeft: -1\n }\n }\n }\n },\n MuiFormHelperText: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n color: \"\".concat(theme.palette.primary.main),\n marginLeft: 0\n };\n }\n }\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n borderRadius: '20px'\n }\n },\n defaultProps: {\n BackdropProps: {\n style: {\n fill: 'rgba(0, 0, 0, 0.54)',\n backdropFilter: 'blur(10px)'\n }\n }\n }\n },\n MuiOutlinedInput: {\n styleOverrides: {\n notchedOutline: function(param) {\n var theme = param.theme;\n return {\n borderColor: theme.palette.primary.main,\n '.MuiOutlinedInput-root:hover &': {\n borderWidth: 1.5\n }\n };\n }\n }\n },\n MuiAlert: {\n styleOverrides: {\n standard: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.primary.main\n };\n },\n standardError: function(param) {\n var theme = param.theme;\n return {\n backgroundColor: alpha(theme.palette.error.main, 0.095),\n '& .MuiAlert-icon': {\n color: theme.palette.error.main\n }\n };\n },\n standardInfo: function(param) {\n var theme = param.theme;\n return {\n backgroundColor: '#F2EDE6',\n '& .MuiAlert-icon': {\n color: theme.palette.primary.main\n }\n };\n },\n standardWarning: function(param) {\n var theme = param.theme;\n return {\n backgroundColor: alpha(theme.palette.error.main, 0.095),\n '& .MuiAlert-icon': {\n color: theme.palette.error.main\n }\n };\n },\n standardSuccess: function(param) {\n var theme = param.theme;\n return {\n color: theme.palette.success.main\n };\n }\n }\n }\n }\n };\n};\n","import { PaletteModeCode } from '../../enums';\nexport var getLightThemeConfig = function(paletteModeCode) {\n if (paletteModeCode === PaletteModeCode.glass) {\n return {\n layout: {},\n palette: {\n mode: paletteModeCode,\n action: {\n disabled: '#797979',\n disabledBackground: '#adacaa29'\n },\n common: {\n black: '#000',\n white: '#fff',\n purple: '#0F214B',\n purpleLight: '#E2E7F0',\n offWhite: '#fff',\n glass: '#F4F5F7',\n orange: '#ef4a0c',\n pink: '#f7e0db',\n smokeWhite: '#F5F5F5',\n darkGray: '#333'\n },\n primary: {\n light: '#576381',\n main: '#0F214B',\n dark: '#0a1734',\n contrastText: '#fff'\n },\n secondary: {\n light: '#576381',\n main: '#0F214B',\n dark: '#0a1734',\n contrastText: '#fff'\n },\n error: {\n dark: '#DB0000',\n main: '#F00',\n light: '#F88078',\n contrastText: '#fff'\n },\n warning: {\n main: '#ED6C02',\n light: '#FFB547',\n dark: '#C77700',\n contrastText: '#fff'\n },\n info: {\n dark: '#1d2b7a',\n main: '#303F9F',\n light: '#E9F4FE',\n contrastText: '#fff'\n },\n success: {\n main: '#4CAF50',\n light: '#367C3A',\n dark: '#3B873E',\n contrastText: '#fff'\n },\n text: {\n primary: '#111111',\n secondary: '#111111',\n disabled: '#797979',\n iconDisabled: '#797979'\n },\n divider: '#0F214B',\n background: {\n default: '#F4F5F7',\n paper: '#F4F5F7'\n },\n candidatesSource: {\n directlyApplied: '#C7D3F2',\n recruiterAdded: '#C1E3D3',\n aiMatched: '#DBDBDB',\n managerAdded: '#C1E3D3'\n },\n jobsFunnel: {\n active: '#367C3A',\n paused: '#303F9F',\n closed: '#F00',\n draft: '#FFF'\n },\n alertOutlined: {\n bgSuccess: '#EDF7ED',\n bgWarning: '#FDF0E6',\n bgError: '#FEECEB'\n },\n consultantList: {\n primary: '#01718A',\n secondary: '#CFD3DB',\n statusChips: {\n selected: '#e6e6e6',\n border: '#d3d3d3'\n }\n }\n },\n components: {\n MuiPaper: {\n styleOverrides: {\n root: {\n boxShadow: '0 8px 32px 0 rgba( 31, 38, 135, 0.37 )',\n backdropFilter: 'blur( 3px )'\n }\n }\n }\n }\n };\n }\n if (paletteModeCode === PaletteModeCode.sidebar) {\n return {\n layout: {},\n palette: {\n logoMode: PaletteModeCode.dark,\n mode: paletteModeCode,\n action: {\n disabled: '#797979',\n disabledBackground: '#3A3751',\n hover: 'rgba(233, 244, 254, 0.05)',\n selected: 'rgb(0, 0, 0, 0.08)'\n },\n common: {\n black: '#000',\n white: '#fff',\n purple: '#0F214B',\n purpleLight: '#E2E7F0',\n offWhite: '#FEF9F2',\n glass: 'rgba(233, 244, 254, 0.05)',\n glassOnGlass: '#0F214B',\n orange: '#ef4a0c',\n pink: '#f7e0db',\n lightOrange: '#DE9200'\n },\n primary: {\n light: '#fff',\n main: '#fff',\n dark: '#0F214B',\n contrastText: '#0F214B'\n },\n secondary: {\n light: '#E67637',\n main: '#E67637',\n dark: '#E67637',\n contrastText: '#fff'\n },\n text: {\n primary: '#fff',\n secondary: '#fff',\n disabled: '#797979',\n iconDisabled: '#797979'\n },\n divider: '#7F7d9C',\n background: {\n default: '#0F214B',\n paper: '#0F214B'\n },\n jobsFunnel: {\n active: '#3B873E',\n paused: '#ED6C02',\n closed: '#3A1528',\n draft: '#000000'\n },\n consultantList: {\n primary: '#01718A',\n secondary: '#CFD3DB',\n statusChips: {\n selected: '#e6e6e6',\n border: '#d3d3d3'\n }\n }\n }\n };\n }\n return {\n layout: {},\n palette: {\n mode: paletteModeCode,\n logoMode: PaletteModeCode.light,\n action: {\n active: '#0F214B',\n disabled: '#797979',\n disabledBackground: '#adacaa29',\n hover: 'rgb(0, 0, 0, 0.04)',\n selected: 'rgb(0, 0, 0, 0.08)'\n },\n common: {\n black: '#000',\n white: '#fff',\n purple: '#0F214B',\n purpleLight: '#E2E7F0',\n offWhite: '#fff',\n glass: '#F4F5F7',\n glassOnGlass: '#fff',\n jobColumnStatusHeader: '#E9EBEE',\n lightOrange: '#31487C',\n orange: '#ef4a0c',\n pink: '#f7e0db'\n },\n primary: {\n light: '#576381',\n main: '#0F214B',\n dark: '#0a1734',\n contrastText: '#fff'\n },\n secondary: {\n light: '#576381',\n main: '#0F214B',\n dark: '#0a1734',\n contrastText: '#fff'\n },\n error: {\n dark: '#DB0000',\n main: '#F00',\n light: '#F88078',\n contrastText: '#fff'\n },\n warning: {\n main: '#ED6C02',\n light: '#FFB547',\n dark: '#C77700',\n contrastText: '#fff'\n },\n info: {\n dark: '#1d2b7a',\n main: '#303F9F',\n light: '#E9F4FE',\n contrastText: '#fff'\n },\n success: {\n light: '#7BC67E',\n main: '#367C3A',\n dark: '#3B873E',\n contrastText: '#fff'\n },\n text: {\n primary: '#111111',\n secondary: '#111111',\n disabled: '#797979',\n iconDisabled: '#00000030'\n },\n divider: '#0F214B',\n background: {\n default: '#fff',\n paper: '#fff'\n },\n candidatesFunnel: {\n new: '#303F9F',\n shortlist: '#145A7B',\n interview: '#73483A',\n offer: '#DB3A00',\n rejected: '#F00'\n },\n jobsFunnel: {\n active: '#3B873E',\n paused: '#ED6C02',\n closed: '#3A1528',\n draft: '#000000'\n },\n alertOutlined: {\n bgSuccess: '#EDF7ED',\n bgWarning: '#FDF0E6',\n bgError: '#FEECEB'\n },\n onePager: {\n skillsProgress: '#978CB6',\n skillsProgressBg: '#D6D6ED',\n jobsProgress: '#8CB6A7',\n jobsProgressBg: '#CEE4DC',\n boxBg: '#F4F5F7'\n },\n gorillaResume: {\n ai: '#7440E1',\n main: '#E67637',\n dark: '#0F214B',\n button: '#12327E',\n text: {\n primary: '#02010D',\n secondary: '#67676e',\n disabled: 'rgba(0, 0, 0, 0.38)',\n gray: 'rgba(2, 1, 13, 0.6)'\n },\n error: {\n dark: '#900000',\n dark2: '#AA0000',\n light: '#e3b9b5'\n },\n warningLight: '#e7bf76',\n beige: '#FAF5EF',\n outline: 'rgba(15, 33, 75, 0.30)'\n },\n consultantList: {\n primary: '#01718A',\n secondary: '#CFD3DB',\n statusChips: {\n selected: '#e6e6e6',\n border: '#d3d3d3'\n }\n },\n entityPanel: {\n sidebar: '#F4F5F7',\n activeState: '#D4D4D4',\n drawerBackground: '#fff',\n chevronIcon: '#12327E'\n }\n },\n components: {\n MuiInputBase: {\n styleOverrides: {\n root: {\n backgroundColor: '#fff'\n }\n }\n },\n MuiSwitch: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '& .MuiSwitch-switchBase': {\n '&.Mui-checked .MuiSwitch-thumb': {\n backgroundColor: theme.palette.background.default\n },\n '&.Mui-checked + .MuiSwitch-track': {\n backgroundColor: theme.palette.primary.main,\n opacity: 1\n }\n }\n };\n },\n thumb: function(param) {\n var theme = param.theme;\n return {\n width: 10,\n height: 10,\n backgroundColor: theme.palette.primary.main\n };\n },\n track: {\n backgroundColor: 'transparent',\n opacity: 1,\n border: '1px solid',\n borderColor: 'text.primary'\n },\n switchBase: {\n padding: '13.5px',\n marginLeft: 2,\n '&.Mui-checked': {\n marginLeft: -1\n }\n }\n }\n },\n MuiFormHelperText: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n color: \"\".concat(theme.palette.primary.main),\n marginLeft: 0\n };\n }\n }\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n borderRadius: '20px'\n }\n },\n defaultProps: {\n BackdropProps: {\n style: {\n fill: 'rgba(0, 0, 0, 0.54)',\n backdropFilter: 'blur(10px)'\n }\n }\n }\n },\n MuiOutlinedInput: {\n styleOverrides: {\n notchedOutline: function(param) {\n var theme = param.theme;\n return {\n borderColor: theme.palette.primary.main,\n '.MuiOutlinedInput-root:hover &': {\n borderWidth: 1.5\n }\n };\n }\n }\n },\n MuiLinearProgress: {\n styleOverrides: {\n root: {\n backgroundColor: 'transparent'\n }\n }\n }\n }\n };\n};\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { createTheme, responsiveFontSizes } from '@mui/material';\nimport { baseThemeConfig, getDarkThemeConfig, getLightThemeConfig, SiteList } from '../config';\nimport { AppTypes, ClientNames, InjectableServices, PaletteModeCode, VendorCodes } from '../enums';\nimport { SuperSubject } from '../models';\nimport { deepMergeObjects, getClientName, getClientVendorCode } from '../util';\nimport { WindowedObservable } from '../windowed-observable';\nimport { BaseConfigService } from './base-config.service';\nexport var ThemeService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(ThemeService, BaseConfigService);\n function ThemeService() {\n _class_call_check(this, ThemeService);\n var _this;\n _this = _call_super(this, ThemeService, arguments), _define_property(_this, \"printTheme\", null), _define_property(_this, \"baseThemeModeSubject\", new SuperSubject(PaletteModeCode.dark)), _define_property(_this, \"baseThemeMode$\", _this.baseThemeModeSubject.observable$), _define_property(_this, \"getThemeConfig\", getDarkThemeConfig), _define_property(_this, \"themeMap\", {});\n return _this;\n }\n _create_class(ThemeService, [\n {\n key: \"baseTheme\",\n get: function get() {\n if (this.printTheme) {\n return this.printTheme;\n }\n return this.themeMap[this.baseThemeModeSubject.value];\n },\n set: function set(theme) {\n this.themeMap[this.baseThemeModeSubject.value] = theme;\n }\n },\n {\n key: \"getOrCreateTheme\",\n value: function getOrCreateTheme(mode, clientSettings, forceCreate, themeConfig) {\n var themeKey = (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.key) ? \"\".concat(mode, \"-\").concat(themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.key) : mode;\n if (this.themeMap[themeKey] && !forceCreate && !this.printTheme) {\n return this.themeMap[themeKey];\n }\n var themeOptions = this.getThemeConfig(mode);\n var theme = createTheme(this.baseTheme, (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.key) ? deepMergeObjects(themeOptions, themeConfig.config) : themeOptions);\n if (!this.printTheme) {\n this.themeMap[themeKey] = theme;\n }\n return theme;\n }\n },\n {\n key: \"initializeBaseTheme\",\n value: function initializeBaseTheme(clientPortalBase, appType, isAuthenticated, userThemeMode, appThemeConfig) {\n this.themeMap = {};\n // Override color palette if domain is not Procom\n var clientThemeConfig = null;\n var clientName = clientPortalBase ? getClientName(clientPortalBase) : ClientNames.Procom;\n var clientVendorCode = clientPortalBase ? getClientVendorCode(clientPortalBase) : VendorCodes.PCGL;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // eslint-disable-next-line no-restricted-syntax\n for(var _iterator = SiteList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var portal = _step.value;\n if (portal.name === clientName && portal.vendorCode === clientVendorCode) {\n var themeMode = void 0;\n if (isAuthenticated) {\n var _portal_settings_defaultThemeMode;\n themeMode = userThemeMode !== null && userThemeMode !== void 0 ? userThemeMode : (_portal_settings_defaultThemeMode = portal.settings.defaultThemeMode) === null || _portal_settings_defaultThemeMode === void 0 ? void 0 : _portal_settings_defaultThemeMode.authenticated;\n } else if (appType === AppTypes.auth) {\n var _portal_settings_defaultThemeMode1;\n themeMode = (_portal_settings_defaultThemeMode1 = portal.settings.defaultThemeMode) === null || _portal_settings_defaultThemeMode1 === void 0 ? void 0 : _portal_settings_defaultThemeMode1.guestAuth;\n } else if (appType === AppTypes.client) {\n var _portal_settings_defaultThemeMode2;\n themeMode = (_portal_settings_defaultThemeMode2 = portal.settings.defaultThemeMode) === null || _portal_settings_defaultThemeMode2 === void 0 ? void 0 : _portal_settings_defaultThemeMode2.guestClient;\n }\n this.baseThemeModeSubject.value = themeMode !== null && themeMode !== void 0 ? themeMode : PaletteModeCode.dark;\n this.getThemeConfig = this.baseThemeModeSubject.value === PaletteModeCode.light ? getLightThemeConfig : getDarkThemeConfig;\n clientThemeConfig = deepMergeObjects(baseThemeConfig, this.getThemeConfig(this.baseThemeModeSubject.value));\n break;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n clientThemeConfig = clientThemeConfig || baseThemeConfig;\n clientThemeConfig = appThemeConfig ? deepMergeObjects(clientThemeConfig, appThemeConfig) : clientThemeConfig;\n var theme = responsiveFontSizes(createTheme(clientThemeConfig));\n // Based on https://mui.com/material-ui/customization/typography/#responsive-font-sizes\n theme.typography.body1.fontSize = '1.6rem';\n delete theme.typography.body1[theme.breakpoints.up('sm')];\n delete theme.typography.body1[theme.breakpoints.up('md')];\n delete theme.typography.body1[theme.breakpoints.up('lg')];\n theme.typography.body2.fontSize = '1.4rem';\n delete theme.typography.body2[theme.breakpoints.up('sm')];\n delete theme.typography.body2[theme.breakpoints.up('md')];\n delete theme.typography.body2[theme.breakpoints.up('lg')];\n theme.typography.h6.fontSize = '1.6rem';\n this.baseTheme = theme;\n return theme;\n }\n },\n {\n key: \"resetPrintTheme\",\n value: function resetPrintTheme() {\n this.printTheme = null;\n }\n },\n {\n key: \"getPrintBaseTheme\",\n value: function getPrintBaseTheme(clientPortalBase, appType, isAuthenticated, userThemeMode, appThemeConfig) {\n // Override color palette if domain is not Procom\n var clientThemeConfig = null;\n var clientName = clientPortalBase ? getClientName(clientPortalBase) : ClientNames.Procom;\n var clientVendorCode = clientPortalBase ? getClientVendorCode(clientPortalBase) : VendorCodes.PCGL;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // eslint-disable-next-line no-restricted-syntax\n for(var _iterator = SiteList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var portal = _step.value;\n if (portal.name === clientName && portal.vendorCode === clientVendorCode) {\n var themeMode = void 0;\n if (isAuthenticated) {\n var _portal_settings_defaultThemeMode;\n themeMode = userThemeMode !== null && userThemeMode !== void 0 ? userThemeMode : (_portal_settings_defaultThemeMode = portal.settings.defaultThemeMode) === null || _portal_settings_defaultThemeMode === void 0 ? void 0 : _portal_settings_defaultThemeMode.authenticated;\n } else if (appType === AppTypes.auth) {\n var _portal_settings_defaultThemeMode1;\n themeMode = (_portal_settings_defaultThemeMode1 = portal.settings.defaultThemeMode) === null || _portal_settings_defaultThemeMode1 === void 0 ? void 0 : _portal_settings_defaultThemeMode1.guestAuth;\n } else if (appType === AppTypes.client) {\n var _portal_settings_defaultThemeMode2;\n themeMode = (_portal_settings_defaultThemeMode2 = portal.settings.defaultThemeMode) === null || _portal_settings_defaultThemeMode2 === void 0 ? void 0 : _portal_settings_defaultThemeMode2.guestClient;\n }\n var baseThemeModeSubject = themeMode !== null && themeMode !== void 0 ? themeMode : PaletteModeCode.dark;\n this.getThemeConfig = baseThemeModeSubject === PaletteModeCode.light ? getLightThemeConfig : getDarkThemeConfig;\n clientThemeConfig = deepMergeObjects(baseThemeConfig, this.getThemeConfig(baseThemeModeSubject));\n break;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n clientThemeConfig = clientThemeConfig || baseThemeConfig;\n clientThemeConfig = appThemeConfig ? deepMergeObjects(clientThemeConfig, appThemeConfig) : clientThemeConfig;\n this.printTheme = createTheme(clientThemeConfig);\n return this.printTheme;\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.ThemeService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new ThemeService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return ThemeService;\n}(BaseConfigService);\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { map } from 'rxjs';\nimport { InjectableServices } from '../enums';\nimport { WindowedObservable } from '../windowed-observable';\nimport { BaseConfigService } from './base-config.service';\nexport var UtilsService = /*#__PURE__*/ function(BaseConfigService) {\n \"use strict\";\n _inherits(UtilsService, BaseConfigService);\n function UtilsService() {\n _class_call_check(this, UtilsService);\n var _this;\n _this = _call_super(this, UtilsService), _define_property(_this, \"jobEndpoint\", void 0);\n _this.jobEndpoint = _this.environment.JOB_API_URL;\n return _this;\n }\n _create_class(UtilsService, [\n {\n key: \"getResume\",\n value: function getResume(id) {\n var url = \"\".concat(this.jobEndpoint, \"/File/resume?\").concat(new URLSearchParams({\n fileId: \"\".concat(id)\n }));\n return this.axios.get(url, {\n responseType: 'arraybuffer'\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"getVendorFeatureFlags\",\n value: function getVendorFeatureFlags() {\n return this.axios.get(\"\".concat(this.environment.AUTH_API_URL, \"/Vendor/feature-flag\")).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n },\n {\n key: \"validateCustomJobFunction\",\n value: function validateCustomJobFunction(functionInput) {\n return this.axios.post(\"\".concat(this.environment.AUTH_API_URL, \"/ContractorProfile/validate-custom-job-function\"), {\n functionInput: functionInput\n }).pipe(map(function(param) {\n var data = param.data;\n return data;\n }));\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableServices.UtilsService);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new UtilsService();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return UtilsService;\n}(BaseConfigService);\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { useMemo, useState } from 'react';\nimport { InjectableServices } from '../enums';\nimport { AppService, AuthService, AvatarService, CandidateCartService, CandidateOnePagerService, ChatService, ClientService, ContractorProfileService, FboAuthService, FileActionsService, HideNavbarService, InterviewCopilotService, JobAiService, JobService, MfaService, OnboardingService, PerformanceTrackingService, RestTrackingService, ThemeService, UserService, UtilsService } from '../services';\nexport var useAppService = function() {\n var _useState = _sliced_to_array(useState(function() {\n return AppService.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useAuthService = function() {\n var _useState = _sliced_to_array(useState(function() {\n return AuthService.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useFboAuthService = function() {\n return useMemo(function() {\n return FboAuthService.getOrCreate();\n }, []);\n};\nexport var useAvatarService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate();\n }, []);\n};\nexport var useAvatarCollaboratorService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarCollaboratorService);\n }, []);\n};\nexport var useAvatarSuggestedCollaboratorService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarSuggestedCollaboratorService);\n }, []);\n};\nexport var useAvatarTalentPoolCandidateService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarTalentPoolCandidateService);\n }, []);\n};\nexport var useAvatarEmployerCandidatesService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarEmployerCandidatesService);\n }, []);\n};\nexport var useAvatarCandidatesListService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarCandidatesListService);\n }, []);\n};\nexport var useAvatarTimelineService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarTimelineService);\n }, []);\n};\nexport var useAvatarResumeService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.AvatarResumeService);\n }, []);\n};\nexport var useSubmissionAvatarService = function() {\n return useMemo(function() {\n return AvatarService.getOrCreate(InjectableServices.SubmissionAvatarService);\n }, []);\n};\nexport var useCandidateOnePagerService = function() {\n return useMemo(function() {\n return CandidateOnePagerService.getOrCreate();\n }, []);\n};\nexport var useCandidateCartService = function() {\n return useMemo(function() {\n return CandidateCartService.getOrCreate();\n }, []);\n};\nexport var useClientService = function() {\n var _useState = _sliced_to_array(useState(function() {\n return ClientService.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useClientJobService = function() {\n return useMemo(function() {\n return JobService.getOrCreate();\n }, []);\n};\nexport var useChatService = function() {\n return useMemo(function() {\n return ChatService.getOrCreate();\n }, []);\n};\nexport var useContractorProfileService = function() {\n return useMemo(function() {\n return ContractorProfileService.getOrCreate();\n }, []);\n};\nexport var useFileActionService = function() {\n return useMemo(function() {\n return FileActionsService.getOrCreate();\n }, []);\n};\nexport var useHideNavbarService = function() {\n return useMemo(function() {\n return HideNavbarService.getOrCreate();\n }, []);\n};\nexport var useInterviewCopilotService = function() {\n return useMemo(function() {\n return InterviewCopilotService.getOrCreate();\n }, []);\n};\nexport var useJobAiService = function() {\n return useMemo(function() {\n return JobAiService.getOrCreate();\n }, []);\n};\nexport var useMfaService = function() {\n return useMemo(function() {\n return MfaService.getOrCreate();\n }, []);\n};\nexport var useOnboardingService = function() {\n return useMemo(function() {\n return OnboardingService.getOrCreate();\n }, []);\n};\nexport var usePerformanceTrackingService = function() {\n return useMemo(function() {\n return PerformanceTrackingService.getOrCreate();\n }, []);\n};\nexport var useRestTrackingService = function() {\n return useMemo(function() {\n return RestTrackingService.getOrCreate();\n }, []);\n};\nexport var useThemeService = function() {\n var _useState = _sliced_to_array(useState(function() {\n return ThemeService.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useUtilsService = function() {\n return useMemo(function() {\n return UtilsService.getOrCreate();\n }, []);\n};\nexport var useUserService = function() {\n var _useState = _sliced_to_array(useState(function() {\n return UserService.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport React, { useEffect, useState } from 'react';\nimport { useLocation } from 'react-router-dom';\nimport Rollbar from 'rollbar';\nimport { InjectableConfig, WindowedObservable } from '@procom-labs/common';\nexport var RollbarProvider = function(param) {\n var children = param.children;\n var location = useLocation();\n var _useState = _sliced_to_array(useState(function() {\n var environment = new WindowedObservable(InjectableConfig.Environment).getLastEvent();\n var rollbarConfig = _object_spread_props(_object_spread({}, environment.rollbar), {\n enabled: environment.rollbar.enabled === 'true'\n });\n var instance = new Rollbar(rollbarConfig);\n new WindowedObservable(InjectableConfig.Rollbar).publish(instance);\n return instance;\n }), 1), rollbarInstance = _useState[0];\n useEffect(function() {\n if (rollbarInstance) {\n rollbarInstance.configure({\n payload: {\n context: location.pathname\n }\n });\n }\n }, [\n rollbarInstance,\n location\n ]);\n return /*#__PURE__*/ _jsx(_Fragment, {\n children: children\n });\n};\n","import { ClientCodes, ClientNames, VendorCodes } from '../enums';\nimport { getClientCode, getClientName, getClientVendorCode } from '../util';\nimport { useIsHubSite } from './use-is-hub-site';\nvar useIsClientByClientName = function(clientNameToMatch) {\n return getClientName() === clientNameToMatch;\n};\nvar useIsClientByClientCode = function(clientCodeToMatch) {\n return getClientCode() === clientCodeToMatch;\n};\nvar useIsClientByVendorCode = function(vendorCode) {\n return getClientCode() === null && getClientVendorCode() === vendorCode;\n};\nexport var useIsClientKpmg = function() {\n return useIsClientByClientCode(ClientCodes.KPMG);\n};\nexport var useIsClientCenovus = function() {\n return useIsClientByClientCode(ClientCodes.CENOVUS);\n};\nexport var useIsClientBMO = function() {\n return useIsClientByClientCode(ClientCodes.BMO);\n};\nexport var useIsClientDemoClient = function() {\n return useIsClientByClientCode(ClientCodes.DemoClient);\n};\nexport var useIsClientGwDemoClient = function() {\n return useIsClientByClientCode(ClientCodes.GwDemoClient);\n};\nexport var useIsClientProcom = function() {\n return useIsHubSite() && getClientVendorCode() === VendorCodes.PCGL;\n};\nexport var useIsClientDemoCorp = function() {\n return useIsClientByClientCode(ClientCodes.DemoCorp);\n};\nexport var useIsClientProcomTeam = function() {\n return useIsClientByClientCode(ClientCodes.ProcomTeam);\n};\nexport var useIsClientHCMWorks = function() {\n return useIsClientByClientCode(ClientCodes.HCMWorks);\n};\nexport var useIsClientFlexTrack = function() {\n return useIsClientByClientCode(ClientCodes.Flextrack);\n};\nexport var useIsClientEy = function() {\n return useIsClientByClientCode(ClientCodes.EY);\n};\nexport var useIsGorillaWorks = function() {\n return useIsClientByClientName(ClientNames.GorillaWorks);\n};\nexport var useIsVendorPCGL = function() {\n return useIsClientByVendorCode(VendorCodes.PCGL);\n};\nexport var useIsVendorBridgeWorks = function() {\n return useIsClientByVendorCode(VendorCodes.BridgeView);\n};\nexport var useIsVendorSymbiotic = function() {\n return useIsClientByVendorCode(VendorCodes.Symbiotic);\n};\nexport var useIsVendorSoftChoice = function() {\n return useIsClientByVendorCode(VendorCodes.SFTCHE);\n};\nexport var useIsVendorDemoSandbox = function() {\n return useIsClientByVendorCode(VendorCodes.DEMOSANDBOX);\n};\nexport var useIsVendorDemo = function() {\n return useIsClientByVendorCode(VendorCodes.DEMO);\n};\nexport var useIsVendorGw = function() {\n return useIsClientByVendorCode(VendorCodes.GW);\n};\nexport var useIsVendorICQEnabled = function() {\n return getClientCode() === null && [\n VendorCodes.PCGL,\n VendorCodes.GW,\n VendorCodes.DEMO\n ].includes(getClientVendorCode());\n};\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React, { createContext, useCallback, useEffect, useMemo, useState } from 'react';\nimport { AlertTitle, Alert as MuiAlert, Snackbar } from '@mui/material';\nimport { InjectableContexts, WindowedObservable } from '@procom-labs/common';\nvar Alert = /*#__PURE__*/ React.forwardRef(function Alert(props, ref) {\n return /*#__PURE__*/ _jsx(MuiAlert, _object_spread({\n elevation: 6,\n ref: ref,\n variant: \"filled\"\n }, props));\n});\nexport var AlertContext = /*#__PURE__*/ createContext({});\nvar initialAlertState = {\n open: false,\n autoHide: true,\n vertical: 'top',\n horizontal: 'center',\n message: '',\n title: null,\n variant: 'filled',\n severity: 'success',\n timeout: 5000\n};\nexport var AlertContextProvider = function(param) {\n var children = param.children;\n var _useState = _sliced_to_array(useState(initialAlertState), 2), alert = _useState[0], setAlert = _useState[1];\n var open = alert.open, title = alert.title, message = alert.message, severity = alert.severity, variant = alert.variant, vertical = alert.vertical, horizontal = alert.horizontal, timeout = alert.timeout, autoHide = alert.autoHide;\n var removeAlert = useCallback(function() {\n setAlert(function(prev) {\n return _object_spread_props(_object_spread({}, prev), {\n open: false\n });\n });\n }, []);\n var addAlert = useCallback(function(param) {\n setAlert(function() {\n return _object_spread_props(_object_spread({}, initialAlertState, param), {\n open: true\n });\n });\n }, []);\n var contextValue = useMemo(function() {\n return {\n addAlert: addAlert,\n removeAlert: removeAlert\n };\n }, [\n addAlert,\n removeAlert\n ]);\n var snackBarprops = _object_spread_props(_object_spread({\n open: open\n }, autoHide && {\n autoHideDuration: timeout\n }), {\n anchorOrigin: {\n vertical: vertical,\n horizontal: horizontal\n },\n onClose: removeAlert\n });\n useEffect(function() {\n new WindowedObservable(InjectableContexts.Alert).publish(AlertContext);\n }, []);\n return /*#__PURE__*/ _jsxs(AlertContext.Provider, {\n value: contextValue,\n children: [\n /*#__PURE__*/ _jsx(Snackbar, _object_spread_props(_object_spread({}, snackBarprops), {\n sx: {\n zIndex: 1400\n },\n children: /*#__PURE__*/ _jsxs(Alert, {\n onClose: removeAlert,\n variant: variant,\n severity: severity,\n sx: {\n width: '100%',\n mt: {\n xs: 8.5,\n md: 0\n }\n },\n children: [\n title && /*#__PURE__*/ _jsx(AlertTitle, {\n children: title\n }),\n message\n ]\n })\n })),\n children\n ]\n });\n};\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { forwardRef, useMemo } from 'react';\nimport { useObservableEagerState } from 'observable-hooks';\nimport { styled, ThemeProvider, useTheme } from '@mui/material';\nimport { deepMergeObjects, PaletteModeCode, useClientService, useIsGorillaTheme, useThemeService } from '@procom-labs/common';\nvar excludedProps = [\n 'isDarkMode',\n 'isLightMode',\n 'isGlassMode',\n 'isThemeBackgroundApplied',\n 'forceCreateTheme',\n 'themeMode'\n];\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function WithGorillaInnerTheme(Component, themeConfig, defaultProps) {\n var StyledComponent = styled(Component, {\n shouldForwardProp: function(prop) {\n return !excludedProps.includes(prop);\n }\n })(function(param) {\n var theme = param.theme, isThemeBackgroundApplied = param.isThemeBackgroundApplied;\n var styles = {};\n if (isThemeBackgroundApplied) {\n styles = {\n color: theme.palette.text.primary,\n background: theme.palette.background.default\n };\n }\n return styles;\n });\n return /*#__PURE__*/ forwardRef(function(props, ref) {\n var clientService = useClientService();\n var themeService = useThemeService();\n var theme = useTheme();\n var clientSettings = useObservableEagerState(clientService.clientSetting$);\n var isGorillaTheme = useIsGorillaTheme();\n var paletteModeCode = useMemo(function() {\n if (props === null || props === void 0 ? void 0 : props.themeMode) {\n return props === null || props === void 0 ? void 0 : props.themeMode;\n }\n if (props === null || props === void 0 ? void 0 : props.isDarkMode) {\n return PaletteModeCode.dark;\n }\n if (props === null || props === void 0 ? void 0 : props.isGlassMode) {\n return PaletteModeCode.glass;\n }\n if (props === null || props === void 0 ? void 0 : props.isLightMode) {\n return PaletteModeCode.light;\n }\n return null;\n }, [\n props === null || props === void 0 ? void 0 : props.themeMode,\n props === null || props === void 0 ? void 0 : props.isDarkMode,\n props === null || props === void 0 ? void 0 : props.isLightMode,\n props === null || props === void 0 ? void 0 : props.isGlassMode\n ]);\n var isModeChanged = paletteModeCode ? paletteModeCode !== theme.palette.mode : false;\n var innerTheme = React.useMemo(function() {\n if (isModeChanged && paletteModeCode && clientSettings && isGorillaTheme) {\n return themeService.getOrCreateTheme(paletteModeCode, clientSettings, props === null || props === void 0 ? void 0 : props.forceCreateTheme, themeConfig);\n }\n return theme;\n }, [\n clientSettings,\n isModeChanged,\n theme,\n paletteModeCode,\n props === null || props === void 0 ? void 0 : props.forceCreateTheme,\n isGorillaTheme\n ]);\n var componentProps = useMemo(function() {\n if (defaultProps) {\n return deepMergeObjects(defaultProps, props);\n }\n return props;\n }, [\n props\n ]);\n return /*#__PURE__*/ _jsx(ThemeProvider, {\n theme: innerTheme,\n children: /*#__PURE__*/ _jsx(StyledComponent, _object_spread_props(_object_spread({}, componentProps), {\n ref: ref\n }))\n });\n });\n}\n","import { useMemo } from 'react';\nimport { useObservableEagerState } from 'observable-hooks';\nimport { AppTypes } from '../enums';\nimport { useClientService } from './use-services';\nexport var useIsGorillaTheme = function() {\n var clientService = useClientService();\n var appType = useObservableEagerState(clientService.appType$);\n return useMemo(function() {\n return appType === AppTypes.auth || appType === AppTypes.client;\n }, [\n appType\n ]);\n};\n","import { Dialog } from '@mui/material';\nimport { WithGorillaInnerTheme } from './with-inner-theme';\nvar themeConfig = {\n key: 'dialog',\n config: {\n components: {\n MuiPaper: {\n styleOverrides: {\n root: function(param) {\n var theme = param.theme;\n return {\n '&.MuiPickersPopper-paper': {\n backgroundColor: theme.palette.common.white\n }\n };\n }\n }\n }\n }\n }\n};\nexport var GorillaDialog = WithGorillaInnerTheme(Dialog, themeConfig);\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { InjectableStores } from '../../enums';\nimport { WindowedObservable } from '../../windowed-observable';\nimport { BaseSubjectStore } from '../subject-store';\nexport var AuthStore = /*#__PURE__*/ function(BaseSubjectStore) {\n \"use strict\";\n _inherits(AuthStore, BaseSubjectStore);\n function AuthStore() {\n _class_call_check(this, AuthStore);\n var _this;\n _this = _call_super(this, AuthStore, arguments), _define_property(_this, \"menuItemList$\", _this.state.menuItemList.observable$);\n return _this;\n }\n _create_class(AuthStore, [\n {\n key: \"getDefaultValue\",\n value: function getDefaultValue() {\n return {\n currentUser: null,\n authData: null,\n menuItemList: []\n };\n }\n }\n ], [\n {\n key: \"getOrCreate\",\n value: function getOrCreate() {\n var observable = new WindowedObservable(InjectableStores.AuthStore);\n var state = observable.getLastEvent();\n if (state) {\n return state;\n }\n var instance = new AuthStore();\n observable.publish(instance);\n return instance;\n }\n }\n ]);\n return AuthStore;\n}(BaseSubjectStore);\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { useState } from 'react';\nimport { AuthStore, ClientJobStore, MfaStore, PageHeaderStore, UserStore } from '../store';\nexport var useAuthStore = function() {\n var _useState = _sliced_to_array(useState(function() {\n return AuthStore.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useMfaStore = function() {\n var _useState = _sliced_to_array(useState(function() {\n return MfaStore.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useUserStore = function() {\n var _useState = _sliced_to_array(useState(function() {\n return UserStore.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var useClientJobStore = function() {\n var _useState = _sliced_to_array(useState(function() {\n return ClientJobStore.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\nexport var usePageHeaderStore = function() {\n var _useState = _sliced_to_array(useState(function() {\n return PageHeaderStore.getOrCreate();\n }), 1), state = _useState[0];\n return state;\n};\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { useEffect, useState } from 'react';\nimport { useAuthStore } from './use-stores';\nexport var useLoadMfePaths = function(mfeType) {\n var authStore = useAuthStore();\n var _useState = _sliced_to_array(useState([]), 2), enabledPaths = _useState[0], setEnabledPaths = _useState[1];\n useEffect(function() {\n var filterFunc = Array.isArray(mfeType) ? function(item) {\n return item.mfePortal && mfeType.includes(item.mfePortal) && !!item.to;\n } : function(item) {\n return item.mfePortal && item.mfePortal === mfeType && !!item.to;\n };\n var subscription = authStore.menuItemList$.subscribe({\n next: function(menuItemList) {\n var pathList = menuItemList.filter(filterFunc).map(function(item) {\n var _item_to;\n return {\n path: (_item_to = item.to) !== null && _item_to !== void 0 ? _item_to : '',\n mfeType: item.mfePortal\n };\n });\n var isDifferent = enabledPaths.length === pathList.length ? !enabledPaths.every(function(a1) {\n return pathList.some(function(b1) {\n return b1.path === a1.path;\n });\n }) : true;\n if (isDifferent) {\n setEnabledPaths(pathList);\n }\n }\n });\n return function() {\n if (subscription && !subscription.closed) {\n subscription.unsubscribe();\n }\n };\n }, [\n enabledPaths,\n mfeType\n ]);\n return enabledPaths;\n};\n","import { useEffect, useRef } from 'react';\nexport var useSubscriptionRef = function() {\n var subscriptionRef = useRef(null);\n useEffect(function() {\n return function() {\n if (subscriptionRef.current && !subscriptionRef.current.closed) {\n subscriptionRef.current.unsubscribe();\n subscriptionRef.current = null;\n }\n };\n }, []);\n return subscriptionRef;\n};\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _array_without_holes(arr) {\n if (Array.isArray(arr)) return _array_like_to_array(arr);\n}\nfunction _iterable_to_array(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _non_iterable_spread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _to_consumable_array(arr) {\n return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { catchError, forkJoin, interval, map, of, switchMap } from 'rxjs';\nimport { useGTMDispatch } from '@elgorditosalsero/react-gtm-hook';\nimport { gtmEvents, MfeTypes } from '../enums';\nimport { getAppBuildData } from '../util';\nimport { useLoadMfePaths } from './use-load-mfe-paths';\nimport { useAppService } from './use-services';\nimport { useSubscriptionRef } from './use-subscription-ref';\nvar appBuildDataChannel = new BroadcastChannel('app-build-data-delta');\nvar AppBuildDataChannelEvent = /*#__PURE__*/ function(AppBuildDataChannelEvent) {\n AppBuildDataChannelEvent[AppBuildDataChannelEvent[\"CHECK_STREAMING\"] = 0] = \"CHECK_STREAMING\";\n AppBuildDataChannelEvent[AppBuildDataChannelEvent[\"SHARE_STREAMING\"] = 1] = \"SHARE_STREAMING\";\n AppBuildDataChannelEvent[AppBuildDataChannelEvent[\"SHIFT_STREAMING\"] = 2] = \"SHIFT_STREAMING\";\n AppBuildDataChannelEvent[AppBuildDataChannelEvent[\"LEAVE_STREAMING\"] = 3] = \"LEAVE_STREAMING\";\n AppBuildDataChannelEvent[AppBuildDataChannelEvent[\"NEW_BUILD\"] = 4] = \"NEW_BUILD\";\n return AppBuildDataChannelEvent;\n}(AppBuildDataChannelEvent || {});\nvar intervalTime = 5 * 60 * 1000;\nvar allMfeTypes = Object.values(MfeTypes);\nexport var useAppReloadRequired = function() {\n var sendDataToGTM = useGTMDispatch();\n var appService = useAppService();\n var mfeEnabledPaths = useLoadMfePaths(allMfeTypes);\n var _useState = _sliced_to_array(useState(false), 2), isReloadRequired = _useState[0], setIsReloadRequired = _useState[1];\n var isStreamingRef = useRef(false);\n var isOtherStreamingRef = useRef(false);\n var joinedStreamListRef = useRef();\n var enabledPathListRef = useRef([]);\n var appSessionIdRef = useRef(Math.random().toString(36).slice(2));\n var deltaStreamRef = useSubscriptionRef();\n var trackCallError = useCallback(function(appKey) {\n sendDataToGTM({\n eventName: gtmEvents.CallingNewBuildNumberApi,\n message: \"\".concat(appKey, \" error in calling build number from app-metadata\")\n });\n }, [\n sendDataToGTM\n ]);\n var handleNewBuildEvent = useCallback(function(buildDataList) {\n if (isReloadRequired) {\n return;\n }\n var buildMap = getAppBuildData();\n var newBuildExists = buildDataList.some(function(data) {\n var currentBuildId = data.appKey ? buildMap[data.appKey] : null;\n return currentBuildId && data.buildId && currentBuildId !== data.buildId;\n });\n if (newBuildExists) {\n setIsReloadRequired(true);\n }\n }, [\n isReloadRequired\n ]);\n var streamAppBuildData = useCallback(function() {\n var appSessionId = appSessionIdRef.current;\n isStreamingRef.current = true;\n isOtherStreamingRef.current = false;\n appBuildDataChannel.postMessage({\n event: 1,\n appSessionId: appSessionId\n });\n var remoteMfeMap = window.remoteMfeMap;\n var buildMap = getAppBuildData();\n var _enabledPathListRef_current;\n var enabledPathList = (_enabledPathListRef_current = enabledPathListRef.current) !== null && _enabledPathListRef_current !== void 0 ? _enabledPathListRef_current : [];\n var appBuildList = Object.keys(buildMap).map(function(appKey) {\n if (allMfeTypes.includes(appKey)) {\n var hasEnabledPaths = enabledPathList.some(function(item) {\n return item.mfeType === appKey;\n });\n var _remoteMfeMap_appKey, _buildMap_appKey;\n return {\n appKey: appKey,\n baseUrl: (_remoteMfeMap_appKey = remoteMfeMap[appKey]) !== null && _remoteMfeMap_appKey !== void 0 ? _remoteMfeMap_appKey : '',\n currentBuildId: hasEnabledPaths ? (_buildMap_appKey = buildMap[appKey]) !== null && _buildMap_appKey !== void 0 ? _buildMap_appKey : null : null\n };\n }\n var _buildMap_appKey1;\n return {\n appKey: appKey,\n baseUrl: window.location.origin,\n currentBuildId: (_buildMap_appKey1 = buildMap[appKey]) !== null && _buildMap_appKey1 !== void 0 ? _buildMap_appKey1 : null\n };\n }).filter(function(item, index, itemList) {\n return !!item.baseUrl && !!item.currentBuildId && itemList.findIndex(function(innerItem) {\n return innerItem.baseUrl === item.baseUrl;\n }) === index;\n });\n var requestList = appBuildList.map(function(param) {\n var appKey = param.appKey, baseUrl = param.baseUrl, currentBuildId = param.currentBuildId;\n return appService.getAppVersion(baseUrl).pipe(map(function(buildId) {\n return {\n appKey: appKey,\n buildId: buildId,\n currentBuildId: currentBuildId\n };\n }), catchError(function() {\n trackCallError(appKey);\n return of({\n appKey: appKey,\n buildId: null,\n currentBuildId: currentBuildId\n });\n }));\n });\n deltaStreamRef.current = interval(intervalTime).pipe(switchMap(function() {\n return forkJoin(requestList);\n })).subscribe({\n next: function(buildDataList) {\n if (!isReloadRequired && buildDataList.some(function(data) {\n return data.buildId && data.buildId !== data.currentBuildId;\n })) {\n setIsReloadRequired(true);\n }\n appBuildDataChannel.postMessage({\n event: 4,\n appSessionId: appSessionIdRef.current,\n buildDataList: buildDataList\n });\n }\n });\n }, [\n isReloadRequired,\n trackCallError\n ]);\n useEffect(function() {\n var timer = setTimeout(function() {\n var isDifferent = false;\n if (isStreamingRef.current) {\n var _enabledPathListRef_current;\n var pathList = (_enabledPathListRef_current = enabledPathListRef.current) !== null && _enabledPathListRef_current !== void 0 ? _enabledPathListRef_current : [];\n isDifferent = mfeEnabledPaths.length === pathList.length ? !mfeEnabledPaths.every(function(a1) {\n return pathList.some(function(b1) {\n return b1.path === a1.path;\n });\n }) : true;\n }\n enabledPathListRef.current = mfeEnabledPaths;\n if (!isStreamingRef.current && !isOtherStreamingRef.current || isDifferent) {\n streamAppBuildData();\n }\n }, 1000);\n return function() {\n if (timer) {\n clearTimeout(timer);\n }\n };\n }, [\n mfeEnabledPaths,\n streamAppBuildData\n ]);\n useEffect(function() {\n var appSessionId = appSessionIdRef.current;\n appBuildDataChannel.postMessage({\n event: 0,\n appSessionId: appSessionId\n });\n appBuildDataChannel.addEventListener('message', function(param) {\n var data = param.data;\n if (data.appSessionId && data.appSessionId !== appSessionId) {\n if (data.event === 0 && isStreamingRef.current) {\n appBuildDataChannel.postMessage({\n event: 1,\n appSessionId: appSessionId\n });\n var _joinedStreamListRef_current;\n joinedStreamListRef.current = _to_consumable_array((_joinedStreamListRef_current = joinedStreamListRef.current) !== null && _joinedStreamListRef_current !== void 0 ? _joinedStreamListRef_current : []).concat([\n data.appSessionId\n ]);\n } else if (data.event === 1) {\n isOtherStreamingRef.current = true;\n } else if (data.event === 2 && data.targetSessionId === appSessionId) {\n streamAppBuildData();\n var _data_sharedJoinedStreamList;\n joinedStreamListRef.current = (_data_sharedJoinedStreamList = data.sharedJoinedStreamList) !== null && _data_sharedJoinedStreamList !== void 0 ? _data_sharedJoinedStreamList : [];\n } else if (data.event === 3) {\n var _joinedStreamListRef_current1;\n joinedStreamListRef.current = ((_joinedStreamListRef_current1 = joinedStreamListRef.current) !== null && _joinedStreamListRef_current1 !== void 0 ? _joinedStreamListRef_current1 : []).filter(function(item) {\n return item !== data.appSessionId;\n });\n } else if (data.event === 4) {\n handleNewBuildEvent(data.buildDataList);\n }\n }\n });\n // eslint-disable-next-line react-hooks-configurable/exhaustive-deps\n }, []);\n useEffect(function() {\n var handleBeforeUnload = function() {\n var appSessionId = appSessionIdRef.current;\n if (isStreamingRef.current) {\n var _joinedStreamListRef_current;\n var joinedStreamList = (_joinedStreamListRef_current = joinedStreamListRef.current) !== null && _joinedStreamListRef_current !== void 0 ? _joinedStreamListRef_current : [];\n if (joinedStreamList.length) {\n var targetSessionId = joinedStreamList[0];\n var sharedJoinedStreamList = joinedStreamList.filter(function(item) {\n return item !== targetSessionId;\n });\n appBuildDataChannel.postMessage({\n event: 2,\n targetSessionId: joinedStreamList[0],\n sharedJoinedStreamList: sharedJoinedStreamList,\n appSessionId: appSessionId\n });\n }\n } else {\n appBuildDataChannel.postMessage({\n event: 3,\n appSessionId: appSessionId\n });\n }\n };\n window.addEventListener('beforeunload', handleBeforeUnload);\n return function() {\n window.removeEventListener('beforeunload', handleBeforeUnload);\n };\n }, []);\n return {\n isReloadRequired: isReloadRequired\n };\n};\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport CloseIcon from '@mui/icons-material/Close';\nimport { IconButton as MuiIconButton, styled } from '@mui/material';\nvar CloseIconButton = styled(MuiIconButton, {})(function(param) {\n var theme = param.theme;\n return {\n position: 'absolute',\n right: 8,\n top: 8,\n color: theme.palette.action.active\n };\n});\nexport var ModalCloseButton = function(param) {\n var handleClose = param.handleClose, sx = param.sx, iconSx = param.iconSx, id = param.id;\n var t = useTranslation('main').t;\n return /*#__PURE__*/ _jsx(CloseIconButton, {\n \"aria-label\": t('common.aria.close'),\n onClick: handleClose,\n sx: _object_spread({}, sx),\n id: id,\n children: /*#__PURE__*/ _jsx(CloseIcon, {\n sx: _object_spread({\n fontSize: 24\n }, iconSx)\n })\n });\n};\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Button, DialogActions, DialogContent, Stack, Typography } from '@mui/material';\nimport { GorillaDialog } from '@procom-labs/atoms';\nimport { gtmEvents, useAppReloadRequired } from '@procom-labs/common';\nimport { useGTMDispatch } from '@elgorditosalsero/react-gtm-hook';\nimport { ModalCloseButton } from '../modal-close-button';\nexport var NewAppVersionPrompt = function() {\n var t = useTranslation('main').t;\n var sendDataToGTM = useGTMDispatch();\n var _useState = _sliced_to_array(useState(false), 2), isPostponed = _useState[0], setIsPostponed = _useState[1];\n var _useState1 = _sliced_to_array(useState(false), 2), open = _useState1[0], setOpen = _useState1[1];\n var isReloadRequired = useAppReloadRequired().isReloadRequired;\n var handleLaterBtnClick = function(event, reason) {\n if (reason && reason === 'backdropClick') return;\n sendDataToGTM({\n eventName: gtmEvents.PostponeReceivingNewBuildNumber,\n message: 'User selected update app later'\n });\n setOpen(false);\n setIsPostponed(true);\n };\n var handleConfirmModal = function() {\n setOpen(false);\n window.location.reload();\n };\n useEffect(function() {\n if (isReloadRequired && !isPostponed) {\n sendDataToGTM({\n eventName: gtmEvents.OpenReloadingDialogForNewBuildNumber,\n message: 'Modal was opened!'\n });\n setOpen(true);\n }\n }, [\n isPostponed,\n isReloadRequired,\n sendDataToGTM\n ]);\n return /*#__PURE__*/ _jsxs(GorillaDialog, {\n isLightMode: true,\n open: open,\n onClose: handleLaterBtnClick,\n disableEscapeKeyDown: true,\n maxWidth: \"xs\",\n sx: {\n mt: {\n xs: 5\n }\n },\n PaperProps: {\n sx: {\n paddingY: {\n xs: 3.5,\n lg: 6.5\n },\n paddingX: {\n xs: 2.5,\n lg: 5\n }\n }\n },\n children: [\n /*#__PURE__*/ _jsx(ModalCloseButton, {\n id: \"close-reload-app-modal-btn\",\n handleClose: handleLaterBtnClick\n }),\n /*#__PURE__*/ _jsx(DialogContent, {\n sx: {\n padding: 0,\n mb: 4,\n overflowY: 'revert'\n },\n children: /*#__PURE__*/ _jsxs(Stack, {\n direction: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n spacing: 3,\n children: [\n /*#__PURE__*/ _jsxs(Typography, {\n variant: \"h22Bold800\",\n gutterBottom: true,\n component: \"p\",\n sx: {\n textAlign: 'center'\n },\n children: [\n t('common.appVersionPrompt.title'),\n ' '\n ]\n }),\n /*#__PURE__*/ _jsx(Typography, {\n variant: \"body1\",\n gutterBottom: true,\n component: \"p\",\n sx: {\n textAlign: 'center',\n whiteSpace: 'pre-line'\n },\n children: t('common.appVersionPrompt.note')\n })\n ]\n })\n }),\n /*#__PURE__*/ _jsxs(DialogActions, {\n sx: {\n justifyContent: 'center'\n },\n children: [\n /*#__PURE__*/ _jsx(Button, {\n id: \"update-app-later-btn\",\n variant: \"outlined\",\n onClick: handleLaterBtnClick,\n children: t('common.appVersionPrompt.later')\n }),\n /*#__PURE__*/ _jsx(Button, {\n color: \"secondary\",\n id: \"update-app-now-btn\",\n variant: \"contained\",\n onClick: handleConfirmModal,\n children: t('common.appVersionPrompt.confirm')\n })\n ]\n })\n ]\n });\n};\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { useEffect, useMemo, useState } from 'react';\nimport { combineLatest, debounceTime } from 'rxjs';\nexport var useSubjectSelector = function(stateStore, keys) {\n var _useState = _sliced_to_array(useState(function() {\n var stateValue = stateStore.getStateValue();\n return (Array.isArray(keys) ? keys : [\n keys\n ]).reduce(function(sta, key) {\n return _object_spread_props(_object_spread({}, sta), _define_property({}, key, stateValue[key]));\n }, {});\n }), 2), state = _useState[0], setState = _useState[1];\n var normalizedKeys = useMemo(function() {\n return Array.isArray(keys) ? keys : [\n keys\n ];\n }, [\n keys\n ]);\n // Convert the keys array to a string using join. This allows us to later compare\n // the content of the array instead of its reference, helping with memoization.\n var normalizedKeysJoin = useMemo(function() {\n return normalizedKeys.join(',');\n }, [\n normalizedKeys\n ]);\n useEffect(function() {\n var keysArray = normalizedKeysJoin.split(',');\n var observableMap = stateStore.select(keysArray);\n var sub = combineLatest(observableMap).subscribe({\n next: function(value) {\n setState(value);\n }\n });\n return function() {\n if (sub && !sub.closed) {\n sub.unsubscribe();\n }\n };\n }, [\n normalizedKeysJoin,\n stateStore\n ]);\n // Use the `useObservable` hook to subscribe to the observable and keep the\n // component updated with the latest state of the selected fields\n return state;\n};\nexport var useDebouncedSubjectSelector = function(stateStore, keys, delay) {\n var _useState = _sliced_to_array(useState(function() {\n var stateValue = stateStore.getStateValue();\n return (Array.isArray(keys) ? keys : [\n keys\n ]).reduce(function(sta, key) {\n return _object_spread_props(_object_spread({}, sta), _define_property({}, key, stateValue[key]));\n }, {});\n }), 2), state = _useState[0], setState = _useState[1];\n var normalizedKeys = useMemo(function() {\n return Array.isArray(keys) ? keys : [\n keys\n ];\n }, [\n keys\n ]);\n // Convert the keys array to a string using join. This allows us to later compare\n // the content of the array instead of its reference, helping with memoization.\n var normalizedKeysJoin = useMemo(function() {\n return normalizedKeys.join(',');\n }, [\n normalizedKeys\n ]);\n // debounceTime added\n useEffect(function() {\n var keysArray = normalizedKeysJoin.split(',');\n var observableMap = stateStore.select(keysArray);\n var sub = combineLatest(observableMap).pipe(debounceTime(delay)).subscribe({\n next: function(value) {\n setState(value);\n }\n });\n return function() {\n if (sub && !sub.closed) {\n sub.unsubscribe();\n }\n };\n }, [\n delay,\n normalizedKeysJoin,\n stateStore\n ]);\n // Use the `useObservable` hook to subscribe to the observable and keep the\n // component updated with the latest state of the selected fields\n return state;\n};\n","import { CognitoUserSession } from 'amazon-cognito-identity-js'\r\n\r\nimport {\r\n BaseSubjectStore,\r\n IAuthConfigOptions,\r\n IAuthResponse,\r\n ISiteConfiguration,\r\n LoginTypes,\r\n} from '@procom-labs/common'\r\n\r\nimport { IUserAttributes, IUserSocialSession } from '@auth-portal/types'\r\n\r\ninterface AuthStoreState {\r\n authConfigOptions: IAuthConfigOptions | null\r\n currentCognitoUserEmail: string\r\n currentCognitoUserPassword: string\r\n currentOtpUser: IAuthResponse | null\r\n currentUserSession: CognitoUserSession | null\r\n currentUserSocialSession: IUserSocialSession | null\r\n isCognitoUserSessionExpired: boolean\r\n isMfaCodeRequested: boolean\r\n loginType: LoginTypes | null\r\n siteConfig: ISiteConfiguration | null\r\n userAttribute: IUserAttributes | null\r\n}\r\n\r\nclass AuthStore extends BaseSubjectStore {\r\n getDefaultValue(): Required {\r\n return {\r\n currentCognitoUserEmail: '',\r\n currentCognitoUserPassword: '',\r\n currentOtpUser: null,\r\n currentUserSession: null,\r\n currentUserSocialSession: null,\r\n isCognitoUserSessionExpired: false,\r\n isMfaCodeRequested: false,\r\n loginType: null,\r\n siteConfig: null,\r\n authConfigOptions: null,\r\n userAttribute: null,\r\n }\r\n }\r\n\r\n setSiteConfig(data: ISiteConfiguration): void {\r\n this.dispatch({\r\n siteConfig: data,\r\n })\r\n }\r\n\r\n setAuthConfigOptions(options: IAuthConfigOptions): void {\r\n this.dispatch({\r\n authConfigOptions: options,\r\n })\r\n }\r\n\r\n setCurrentCognitoUserEmail(email: string): void {\r\n this.dispatch({\r\n currentCognitoUserEmail: email,\r\n })\r\n }\r\n\r\n setCurrentCognitoUserPassword(password: string): void {\r\n this.dispatch({\r\n currentCognitoUserPassword: password,\r\n })\r\n }\r\n\r\n setUserAttributes(attributes: IUserAttributes): void {\r\n this.dispatch({\r\n userAttribute: attributes,\r\n })\r\n }\r\n\r\n setCognitoUserSession(isSessionExpired: boolean): void {\r\n this.dispatch({\r\n isCognitoUserSessionExpired: isSessionExpired,\r\n })\r\n }\r\n\r\n setIsMfaCodeRequested(isRequested: boolean): void {\r\n this.dispatch({\r\n isMfaCodeRequested: isRequested,\r\n })\r\n }\r\n\r\n setCurrentUserSocialSession(session: IUserSocialSession | null): void {\r\n this.dispatch({\r\n currentUserSocialSession: session,\r\n })\r\n }\r\n\r\n setCurrentUserSession(session: CognitoUserSession | null): void {\r\n this.dispatch({\r\n currentUserSession: session,\r\n })\r\n }\r\n\r\n setCurrentOtpUser(user: IAuthResponse | null): void {\r\n this.dispatch({\r\n currentOtpUser: user,\r\n })\r\n }\r\n\r\n updateState(updatedState: Partial): void {\r\n this.dispatch({\r\n ...updatedState,\r\n })\r\n }\r\n}\r\n\r\nexport const authStore = new AuthStore()\r\n","import React from 'react'\r\nimport { Trans } from 'react-i18next'\r\n\r\nimport { Box, Typography, useMediaQuery, useTheme } from '@mui/material'\r\n\r\nexport const ClientPortalBanner: React.FC<{}> = ({ children }) => {\r\n const theme = useTheme()\r\n const desktopView = useMediaQuery(theme.breakpoints.up('lg'))\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n\r\n {children}\r\n \r\n )\r\n}\r\n","import React, { useMemo } from 'react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { useObservable } from 'rxjs-hooks'\r\n\r\nimport { Box, styled, Typography } from '@mui/material'\r\nimport { Preloader } from '@procom-labs/atoms'\r\nimport {\r\n IClientSettings,\r\n LoginTypes,\r\n useClientService,\r\n useSubjectSelector,\r\n} from '@procom-labs/common'\r\n\r\nimport { authStore } from '@auth-portal/store'\r\n\r\nimport { ClientPortalBanner } from './client-portal-banner'\r\n\r\nconst OuterMost = styled('div')(() => ({\r\n display: 'flex',\r\n alignItems: 'center',\r\n width: '100%',\r\n height: '100vh',\r\n '.c-preloader': {\r\n padding: '20px',\r\n },\r\n}))\r\n\r\nexport const Banner: React.FC<{}> = React.memo(() => {\r\n const { i18n } = useTranslation('main')\r\n\r\n const clientService = useClientService()\r\n\r\n const clientSettings: IClientSettings | null = useObservable(\r\n () => clientService.clientSetting$,\r\n null\r\n )\r\n\r\n const clientName = useObservable(() => clientService.clientName$)\r\n\r\n const { loginType: userLoginType } = useSubjectSelector(authStore, [\r\n 'loginType',\r\n ])\r\n const loginType: LoginTypes | null = userLoginType || LoginTypes.Client\r\n\r\n const isClientPortal = useMemo(\r\n () =>\r\n loginType && loginType.toLowerCase() === LoginTypes.Client.toLowerCase(),\r\n [loginType]\r\n )\r\n\r\n if (!clientSettings || !clientName || !loginType) {\r\n return \r\n }\r\n\r\n if (isClientPortal) {\r\n return (\r\n \r\n \r\n \r\n )\r\n }\r\n if (clientSettings && clientName && loginType) {\r\n return (\r\n \r\n \r\n \r\n {i18n.t(\r\n `clientsSettings.${clientName.toLowerCase()}.bannerText.${loginType.toLowerCase()}.title`\r\n )}\r\n
\r\n \r\n {i18n.t(\r\n `clientsSettings.${clientName.toLowerCase()}.bannerText.${loginType.toLowerCase()}.description`\r\n )}\r\n \r\n
\r\n
\r\n
\r\n )\r\n }\r\n return null\r\n})\r\n","import { Grid } from '@mui/material';\nimport { WithGorillaInnerTheme } from './with-inner-theme';\nexport var GorillaGrid = WithGorillaInnerTheme(Grid);\n","export default __webpack_public_path__ + \"static/media/background.643d54eaa045dab1c349839a0fdeffe2.svg\";","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { useState } from 'react';\nimport { WindowedObservable } from '../windowed-observable';\nexport function useWindowedObservable(stateKey) {\n var _useState = _sliced_to_array(useState(function() {\n return new WindowedObservable(stateKey).getLastEvent();\n }), 1), state = _useState[0];\n return state;\n}\n","import { InjectableConfig } from '../enums';\nimport { useWindowedObservable } from './use-windowed-observable';\nexport var useAxios = function() {\n return useWindowedObservable(InjectableConfig.Axios);\n};\nexport var useFboAxios = function() {\n return useWindowedObservable(InjectableConfig.FboAxios);\n};\nexport var useEnvironment = function() {\n return useWindowedObservable(InjectableConfig.Environment);\n};\nexport var useRollbarInstance = function() {\n return useWindowedObservable(InjectableConfig.Rollbar);\n};\n","import { useCallback } from 'react'\r\nimport { useGoogleReCaptcha } from 'react-google-recaptcha-v3'\r\n\r\nimport { RecaptchaActions, useRollbarInstance } from '@procom-labs/common'\r\n\r\ntype UseRecaptchaType = {\r\n getRecaptchaToken: (action: RecaptchaActions) => Promise\r\n executeRecaptcha:\r\n | ((action?: string | undefined) => Promise)\r\n | undefined\r\n}\r\n\r\nexport const useRecaptcha = (): UseRecaptchaType => {\r\n const rollbarInstance = useRollbarInstance()\r\n\r\n const { executeRecaptcha } = useGoogleReCaptcha()\r\n\r\n const getRecaptchaToken = useCallback(\r\n async (action: RecaptchaActions): Promise => {\r\n if (!executeRecaptcha) {\r\n throw new Error('executeRecaptcha is not ready')\r\n }\r\n try {\r\n return await executeRecaptcha(action)\r\n } catch (e: any) {\r\n rollbarInstance.error(e)\r\n return ''\r\n }\r\n },\r\n [executeRecaptcha]\r\n )\r\n\r\n return {\r\n executeRecaptcha,\r\n getRecaptchaToken,\r\n }\r\n}\r\n","function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';\nimport mixpanel from 'mixpanel-browser';\nimport { useObservableEagerState } from 'observable-hooks';\nimport { useLocation } from 'react-router-dom';\nimport { InjectableContexts } from '../enums';\nimport { useCommonTrackData } from '../hooks/use-common-track-data';\nimport { useDocumentTitle } from '../hooks/use-document-title';\nimport { useAuthService } from '../hooks/use-services';\nimport { useWindowedObservable } from '../hooks/use-windowed-observable';\nimport { capitalize } from '../util';\nimport { WindowedObservable } from '../windowed-observable';\nvar TrackingContext = /*#__PURE__*/ createContext({});\nexport var generateUniqueID = function(userId, firstName, lastName) {\n return \"\".concat(userId, \" - \").concat(firstName, \" \").concat(lastName);\n};\nexport var TrackingProvider = function(param) {\n var children = param.children, token = param.token, _param_pageTitlePrefix = param.pageTitlePrefix, pageTitlePrefix = _param_pageTitlePrefix === void 0 ? null : _param_pageTitlePrefix;\n var authService = useAuthService();\n var location = useLocation();\n var _useState = _sliced_to_array(useState(false), 2), panelLoaded = _useState[0], setPanelLoaded = _useState[1];\n var commonProperties = useCommonTrackData();\n var currentUser = useObservableEagerState(authService.currentUser$);\n // Mixpanel Configuration\n useEffect(function() {\n try {\n mixpanel.init(token, {\n persistence: 'localStorage'\n });\n if (currentUser) {\n var id = currentUser.id, firstName = currentUser.firstName, lastName = currentUser.lastName, email = currentUser.email;\n var uniqueID = generateUniqueID(id, firstName, lastName);\n mixpanel.identify(uniqueID);\n // default properties\n mixpanel.register(_object_spread({\n $distinct_id: uniqueID\n }, commonProperties));\n // register user with mixpanel\n mixpanel.people.set({\n userId: id,\n $distinct_id: uniqueID,\n $email: email,\n $first_name: firstName,\n $last_name: lastName\n });\n }\n setPanelLoaded(true);\n } catch (error) {\n /* empty */ }\n }, [\n commonProperties,\n currentUser,\n token\n ]);\n // Track Events\n var track = useCallback(function(event) {\n var name = event.name, properties = event.properties;\n try {\n mixpanel.track(name, properties);\n } catch (error) {\n /* empty */ }\n }, []);\n var setTitle = useDocumentTitle().setTitle;\n // Track PageViews\n useEffect(function() {\n if (panelLoaded) {\n try {\n var _location_pathname, _capitalize_trim, _capitalize;\n var locationPathName = location === null || location === void 0 ? void 0 : (_location_pathname = location.pathname) === null || _location_pathname === void 0 ? void 0 : _location_pathname.split('/')[1];\n var pageTitle = (_capitalize = capitalize(locationPathName)) === null || _capitalize === void 0 ? void 0 : (_capitalize_trim = _capitalize.trim()) === null || _capitalize_trim === void 0 ? void 0 : _capitalize_trim.replace(/-/g, ' ');\n if (pageTitlePrefix) {\n pageTitle = \"\".concat(pageTitlePrefix, \" - \").concat(pageTitle);\n }\n setTitle(pageTitle);\n mixpanel.track_pageview();\n } catch (err) {\n /* empty */ }\n }\n }, [\n location,\n panelLoaded,\n setTitle\n ]);\n // Click Tracking\n var handleClickEvent = useCallback(function(event) {\n try {\n var link = event.target.closest(\"a\");\n if (link) {\n mixpanel.track('Click Tracking', {\n text: link.ariaLabel ? link.ariaLabel : link.textContent,\n type: 'Link'\n });\n }\n var button = event.target.closest(\"button\");\n if (button) {\n if (button.textContent) {\n var payload = {\n text: button.textContent,\n type: 'Button'\n };\n if (button.name) {\n payload = _object_spread_props(_object_spread({}, payload), {\n trackingEventName: button.name\n });\n }\n mixpanel.track('Click Tracking', payload);\n } else if (button.ariaLabel) {\n // Icon Button\n }\n }\n var listItem = event.target.closest(\"li\");\n if (listItem) {\n mixpanel.track('Click Tracking', {\n text: listItem.textContent,\n type: 'MenuItem'\n });\n }\n } catch (error) {\n /* empty */ }\n }, []);\n useEffect(function() {\n document.addEventListener('click', handleClickEvent);\n return function() {\n document.removeEventListener('click', handleClickEvent);\n };\n }, [\n handleClickEvent\n ]);\n useEffect(function() {\n new WindowedObservable(InjectableContexts.MixPanelTracking).publish(TrackingContext);\n }, []);\n var mixPanelTrack = useMemo(function() {\n return {\n track: track\n };\n }, [\n track\n ]);\n return /*#__PURE__*/ _jsx(TrackingContext.Provider, {\n value: mixPanelTrack,\n children: children\n });\n};\nexport var useMixPanelTracking = function() {\n var context = useWindowedObservable(InjectableContexts.MixPanelTracking);\n return useContext(context !== null && context !== void 0 ? context : TrackingContext);\n};\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport { VendorCodes, VendorNames } from '../enums';\nvar _obj;\nvar mapper = (_obj = {}, _define_property(_obj, VendorCodes.GW, VendorNames.GW), _define_property(_obj, VendorCodes.PCGL, VendorNames.PCGL), _define_property(_obj, VendorCodes.TSLA, VendorNames.TSLA), _define_property(_obj, VendorCodes.Symbiotic, VendorNames.Symbiotic), _define_property(_obj, VendorCodes.SFTCHE, VendorNames.SFTCHE), _define_property(_obj, VendorCodes.DEMO, VendorNames.DEMO), _define_property(_obj, VendorCodes.IMETHODS, VendorNames.IMETHODS), _define_property(_obj, VendorCodes.DEMOSANDBOX, VendorNames.DEMOSANDBOX), _define_property(_obj, VendorCodes.BridgeView, VendorNames.BridgeView), _obj);\nexport var mapVendorCodeToName = function(vendorCode) {\n if (!vendorCode) return vendorCode;\n return mapper[vendorCode];\n};\n","function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction _object_without_properties(source, excluded) {\n if (source == null) return {};\n var target = _object_without_properties_loose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _object_without_properties_loose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nimport { useCallback } from 'react';\nimport { useGTMDispatch } from '@elgorditosalsero/react-gtm-hook';\nimport { useMixPanelTracking } from '../tracking/TrackingProvider';\nimport { useCommonTrackData } from './use-common-track-data';\nexport var useTrackingEvent = function() {\n var commonProperties = useCommonTrackData();\n var _useMixPanelTracking = useMixPanelTracking(), sendDatToMixPanel = _useMixPanelTracking.track;\n var sendDataToGTM = useGTMDispatch();\n var mixPanelTracking = useCallback(function(mixPanelProperties) {\n sendDatToMixPanel === null || sendDatToMixPanel === void 0 ? void 0 : sendDatToMixPanel({\n name: mixPanelProperties === null || mixPanelProperties === void 0 ? void 0 : mixPanelProperties.eventName,\n properties: _object_spread({}, mixPanelProperties)\n });\n }, [\n sendDatToMixPanel\n ]);\n var gtmTracking = useCallback(function(gtmProperties) {\n sendDataToGTM(_object_spread({\n event: gtmProperties === null || gtmProperties === void 0 ? void 0 : gtmProperties.eventName\n }, gtmProperties, commonProperties));\n }, [\n commonProperties,\n sendDataToGTM\n ]);\n var trackData = useCallback(// gtm and mixpanel tracking are defaulted to true\n function(_param) {\n var _param_isGTMTracking = _param.isGTMTracking, isGTMTracking = _param_isGTMTracking === void 0 ? true : _param_isGTMTracking, _param_isMixPanelTracking = _param.isMixPanelTracking, isMixPanelTracking = _param_isMixPanelTracking === void 0 ? true : _param_isMixPanelTracking, rest = _object_without_properties(_param, [\n \"isGTMTracking\",\n \"isMixPanelTracking\"\n ]);\n var isTrackingEnabled = rest.isTrackingEnabled, filteredRest = _object_without_properties(rest, [\n \"isTrackingEnabled\"\n ]);\n if (isTrackingEnabled) {\n if (isMixPanelTracking && !!filteredRest.eventName) {\n mixPanelTracking(filteredRest);\n }\n if (isGTMTracking) {\n gtmTracking(filteredRest);\n }\n }\n }, [\n mixPanelTracking,\n gtmTracking\n ]);\n return {\n trackData: trackData\n };\n};\n","var _process_env_ENABLE_DATA_TRACKING, _process_env_ENABLE_PERFORMANCE_TRACKING, _process_env_FILE_STORAGE_URL, _process_env_GTM_KEY, _process_env_IS_ERROR_BOUNDARY_ENABLED, _process_env_IS_RESUME_COPILOT_FEATURE_ENABLED, _process_env_MIXPANEL_TOKEN, _process_env_LINKEDIN_CLIENT_ID, _process_env_ROLLBAR_ACCESS_TOKEN, _process_env_ROLLBAR_ENABLED, _process_env_ROLLBAR_ENVIRONMENT;\nexport var commonDevEnv = {\n AUTH_API_URL: process.env.AUTH_API_URL ? process.env.AUTH_API_URL : 'https://localhost:44321',\n ENABLE_DATA_TRACKING: (_process_env_ENABLE_DATA_TRACKING = process.env.ENABLE_DATA_TRACKING) !== null && _process_env_ENABLE_DATA_TRACKING !== void 0 ? _process_env_ENABLE_DATA_TRACKING : 'false',\n ENABLE_PERFORMANCE_TRACKING: (_process_env_ENABLE_PERFORMANCE_TRACKING = process.env.ENABLE_PERFORMANCE_TRACKING) !== null && _process_env_ENABLE_PERFORMANCE_TRACKING !== void 0 ? _process_env_ENABLE_PERFORMANCE_TRACKING : 'false',\n FBO_API_URL: process.env.FBO_API_URL ? process.env.FBO_API_URL : 'https://qa.flexbackoffice.com/api/api',\n FBO_PERFORMANCE_URL: process.env.FBO_PERFORMANCE_URL ? process.env.FBO_PERFORMANCE_URL : 'https://fbo-performance-qa.azurewebsites.net',\n FBO_WEB_URL: process.env.FBO_WEB_URL ? process.env.FBO_WEB_URL : 'https://qa.flexbackoffice.com',\n FILE_STORAGE_URL: (_process_env_FILE_STORAGE_URL = process.env.FILE_STORAGE_URL) !== null && _process_env_FILE_STORAGE_URL !== void 0 ? _process_env_FILE_STORAGE_URL : 'https://procomfileservicedev.blob.core.windows.net/filestorage',\n GTM_KEY: (_process_env_GTM_KEY = process.env.GTM_KEY) !== null && _process_env_GTM_KEY !== void 0 ? _process_env_GTM_KEY : 'GTM-5JVF36B',\n GOOGLE_MAPS_API_KEY: process.env.GOOGLE_MAPS_API_KEY ? process.env.GOOGLE_MAPS_API_KEY : 'AIzaSyCfSytBelPmnp5BqJ0S3nQ1uuPq8y9cqg8',\n IS_ERROR_BOUNDARY_ENABLED: (_process_env_IS_ERROR_BOUNDARY_ENABLED = process.env.IS_ERROR_BOUNDARY_ENABLED) !== null && _process_env_IS_ERROR_BOUNDARY_ENABLED !== void 0 ? _process_env_IS_ERROR_BOUNDARY_ENABLED : 'false',\n IS_RESUME_COPILOT_FEATURE_ENABLED: (_process_env_IS_RESUME_COPILOT_FEATURE_ENABLED = process.env.IS_RESUME_COPILOT_FEATURE_ENABLED) !== null && _process_env_IS_RESUME_COPILOT_FEATURE_ENABLED !== void 0 ? _process_env_IS_RESUME_COPILOT_FEATURE_ENABLED : 'false',\n JOB_API_URL: process.env.JOB_API_URL ? process.env.JOB_API_URL : 'https://localhost:44335',\n MIXPANEL_TOKEN: (_process_env_MIXPANEL_TOKEN = process.env.MIXPANEL_TOKEN) !== null && _process_env_MIXPANEL_TOKEN !== void 0 ? _process_env_MIXPANEL_TOKEN : '',\n ONBOARDING_API_URL: process.env.ONBOARDING_API_URL ? process.env.ONBOARDING_API_URL : 'https://localhost:44325',\n PANDA_DOC_WEB_URL: process.env.PANDA_DOC_WEB_URL ? process.env.PANDA_DOC_WEB_URL : 'https://app.pandadoc.com',\n SYNC_FUSION_EDITOR_KEY: process.env.SYNC_FUSION_EDITOR_KEY ? process.env.SYNC_FUSION_EDITOR_KEY : '',\n SYNC_FUSION_EDITOR_SERVICE_URL: process.env.SYNC_FUSION_EDITOR_SERVICE_URL ? process.env.SYNC_FUSION_EDITOR_SERVICE_URL : '',\n TALENT_POOL_API_URL: process.env.TALENT_POOL_API_URL ? process.env.TALENT_POOL_API_URL : 'https://localhost:7251',\n TINY_MCE_API_KEY: process.env.TINY_MCE_API_KEY ? process.env.TINY_MCE_API_KEY : 'r2glkki6lkrhkd3rc4stsd3rgiiglvddl17zl1epw1cnha7q',\n cognito: {\n AWS_CLIENT_ID: '65mgo09b2ps7km60f3300t4bal',\n AWS_USERPOOL_ID: 'ca-central-1_G7zoQLSzQ',\n AWS_AUTH_URL: process.env.AWS_AUTH_URL ? process.env.AWS_AUTH_URL : 'https://demo.auth.ca-central-1.amazoncognito.com'\n },\n LINKEDIN: {\n CLIENT_ID: (_process_env_LINKEDIN_CLIENT_ID = process.env.LINKEDIN_CLIENT_ID) !== null && _process_env_LINKEDIN_CLIENT_ID !== void 0 ? _process_env_LINKEDIN_CLIENT_ID : '',\n AUTH_URL: 'https://www.linkedin.com/oauth/v2'\n },\n rollbar: {\n captureUncaught: process.env.ROLLBAR_CAPTURE_UNCAUGHT ? process.env.ROLLBAR_CAPTURE_UNCAUGHT === 'true' : false,\n captureUnhandledRejections: process.env.ROLLBAR_CAPTURE_UNHANDLED ? process.env.ROLLBAR_CAPTURE_UNHANDLED === 'true' : false,\n accessToken: (_process_env_ROLLBAR_ACCESS_TOKEN = process.env.ROLLBAR_ACCESS_TOKEN) !== null && _process_env_ROLLBAR_ACCESS_TOKEN !== void 0 ? _process_env_ROLLBAR_ACCESS_TOKEN : '123',\n enabled: (_process_env_ROLLBAR_ENABLED = process.env.ROLLBAR_ENABLED) !== null && _process_env_ROLLBAR_ENABLED !== void 0 ? _process_env_ROLLBAR_ENABLED : 'false',\n payload: {\n environment: (_process_env_ROLLBAR_ENVIRONMENT = process.env.ROLLBAR_ENVIRONMENT) !== null && _process_env_ROLLBAR_ENVIRONMENT !== void 0 ? _process_env_ROLLBAR_ENVIRONMENT : 'local'\n }\n }\n};\nexport var commonCiEnv = {\n AUTH_API_URL: '#{AUTH_API_URL}#',\n ENABLE_DATA_TRACKING: '#{ENABLE_DATA_TRACKING}#',\n ENABLE_PERFORMANCE_TRACKING: '#{ENABLE_PERFORMANCE_TRACKING}#',\n FBO_API_URL: '#{FBO_API_URL}#',\n FBO_PERFORMANCE_URL: '#{FBO_PERFORMANCE_URL}#',\n FBO_WEB_URL: '#{FBO_WEB_URL}#',\n FILE_STORAGE_URL: '#{FILE_STORAGE_URL}#',\n GOOGLE_MAPS_API_KEY: '#{GOOGLE_MAPS_API_KEY}#',\n GTM_KEY: '#{GTM_KEY}#',\n IS_ERROR_BOUNDARY_ENABLED: '#{IS_ERROR_BOUNDARY_ENABLED}',\n IS_RESUME_COPILOT_FEATURE_ENABLED: '#{IS_RESUME_COPILOT_FEATURE_ENABLED}#',\n JOB_API_URL: '#{JOB_API_URL}#',\n MIXPANEL_TOKEN: '#{MIXPANEL_TOKEN}#',\n ONBOARDING_API_URL: '#{ONBOARDING_API_URL}#',\n PANDA_DOC_WEB_URL: '#{PANDA_DOC_WEB_URL}#',\n SYNC_FUSION_EDITOR_KEY: '#{SYNC_FUSION_EDITOR_KEY}#',\n SYNC_FUSION_EDITOR_SERVICE_URL: '#{SYNC_FUSION_EDITOR_SERVICE_URL}#',\n TALENT_POOL_API_URL: '#{TALENT_POOL_API_URL}#',\n TINY_MCE_API_KEY: '#{TINY_MCE_API_KEY}#',\n cognito: {\n AWS_CLIENT_ID: '#{AWS_CLIENT_ID}#',\n AWS_USERPOOL_ID: '#{AWS_USERPOOL_ID}#',\n AWS_AUTH_URL: '#{AWS_AUTH_URL}#'\n },\n LINKEDIN: {\n CLIENT_ID: '#{LINKEDIN_CLIENT_ID}#',\n AUTH_URL: '#{LINKEDIN_AUTH_URL}#'\n },\n rollbar: {\n accessToken: '#{Rollbar.FrontEndAccessToken}#',\n captureUncaught: true,\n captureUnhandledRejections: true,\n enabled: '#{Rollbar.FrontEndEnabled}#',\n payload: {\n environment: '#{Rollbar.Environment}#'\n }\n }\n};\n","import { useMemo } from 'react';\nimport { Observable } from 'rxjs';\nimport { useObservable } from 'rxjs-hooks';\nimport { mapVendorCodeToName } from '../util';\nimport { useAuthService } from './use-services';\nexport var useCommonTrackData = function() {\n var authService = useAuthService();\n // created new Observable to void undefined error (Cannot read properties of undefined (reading 'subscribe'))\n // As when this hook is used in auth and submission portal, we don't have authService defined\n var currentUser$ = (authService === null || authService === void 0 ? void 0 : authService.currentUser$) || new Observable();\n var currentUserProfile$ = (authService === null || authService === void 0 ? void 0 : authService.currentUserProfile$) || new Observable();\n var currentUser = useObservable(function() {\n return currentUser$;\n });\n var currentUserProfile = useObservable(function() {\n return currentUserProfile$;\n });\n return useMemo(function() {\n var _currentUser_id, _currentUserProfile_vendorCode, _mapVendorCodeToName, _currentUserProfile_profileType, _currentUserProfile_clientName, _currentUserProfile_clientCode, _document_title;\n return {\n userId: (_currentUser_id = currentUser === null || currentUser === void 0 ? void 0 : currentUser.id) !== null && _currentUser_id !== void 0 ? _currentUser_id : '',\n vendorCode: (_currentUserProfile_vendorCode = currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.vendorCode) !== null && _currentUserProfile_vendorCode !== void 0 ? _currentUserProfile_vendorCode : '',\n vendorName: (_mapVendorCodeToName = mapVendorCodeToName(currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.vendorCode)) !== null && _mapVendorCodeToName !== void 0 ? _mapVendorCodeToName : '',\n profileType: (_currentUserProfile_profileType = currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.profileType) !== null && _currentUserProfile_profileType !== void 0 ? _currentUserProfile_profileType : undefined,\n clientName: (_currentUserProfile_clientName = currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.clientName) !== null && _currentUserProfile_clientName !== void 0 ? _currentUserProfile_clientName : '',\n clientCode: (_currentUserProfile_clientCode = currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.clientCode) !== null && _currentUserProfile_clientCode !== void 0 ? _currentUserProfile_clientCode : '',\n $page_title: (_document_title = document.title) !== null && _document_title !== void 0 ? _document_title : ''\n };\n }, [\n currentUser === null || currentUser === void 0 ? void 0 : currentUser.id,\n currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.clientCode,\n currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.clientName,\n currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.profileType,\n currentUserProfile === null || currentUserProfile === void 0 ? void 0 : currentUserProfile.vendorCode\n ]);\n};\n","import {\r\n commonCiEnv,\r\n commonDevEnv,\r\n InjectableConfig,\r\n WindowedObservable,\r\n} from '@procom-labs/common'\r\n\r\nconst dev = {\r\n ...commonDevEnv,\r\n GTM_KEY: process.env.GTM_KEY || 'GTM-5JVF36B',\r\n rollbar: {\r\n captureUncaught: process.env.ROLLBAR_CAPTURE_UNCAUGHT\r\n ? process.env.ROLLBAR_CAPTURE_UNCAUGHT === 'true'\r\n : false,\r\n captureUnhandledRejections: process.env.ROLLBAR_CAPTURE_UNHANDLED\r\n ? process.env.ROLLBAR_CAPTURE_UNHANDLED === 'true'\r\n : false,\r\n accessToken: process.env.ROLLBAR_ACCESS_TOKEN || '123',\r\n enabled: process.env.ROLLBAR_ENABLED || 'false',\r\n payload: {\r\n environment: process.env.ROLLBAR_ENVIRONMENT || 'local',\r\n },\r\n },\r\n GOOGLE_RECAPTCHA_KEY:\r\n process.env.GOOGLE_RECAPTCHA_KEY ||\r\n '6Le7yUMoAAAAAJNa8h71NPySvz2lyd_zNhM7JQvm',\r\n BLOB_STORAGE_URL:\r\n process.env.BLOB_STORAGE_URL ||\r\n 'https://procomstoragedev.blob.core.windows.net',\r\n MAP_FBO_USER_SERVICE_API_ID:\r\n process.env.MAP_FBO_USER_SERVICE_API_ID || '104746405f46cc651e33',\r\n MAP_FBO_USER_SERVICE_API_KEY:\r\n process.env.MAP_FBO_USER_SERVICE_API_KEY ||\r\n 'd65eccdd567b1f35c2d9d54bfe6a6d6046ef6d2d72dcc5cefa5ecf772889f04a7f8a0895a9d4ef88',\r\n MAP_FBO_USER_SERVICE_BASE_URL:\r\n process.env.MAP_FBO_USER_SERVICE_BASE_URL || 'https://localhost:5001/',\r\n ENABLE_CONTRACTOR_LOGIN: process.env.ENABLE_CONTRACTOR_LOGIN || 'true',\r\n ENABLE_CLIENT_PORTAL_SIGNUP:\r\n process.env.ENABLE_CLIENT_PORTAL_SIGNUP || 'true',\r\n EY_DEMO_USER: 'alessandra.willsher@procom.ca',\r\n EY_DEMO_LOGO: 'true',\r\n EY_CONTRACTOR_MANAGEMENT_URL:\r\n 'https://app.gorillaworks.io/version-514vb/contractor_management',\r\n MS_SSO_CLIENT_ID:\r\n process.env.MS_SSO_CLIENT_ID || 'b419c7a0-6145-4863-b254-d5de62677e2f',\r\n MS_SSO_AUTHORITY:\r\n process.env.MS_SSO_AUTHORITY || 'https://login.microsoftonline.com/common',\r\n IS_FBO_INVITATION_SIGNUP_MAINTENANCE_ENABLED: process.env.IS_FBO_INVITATION_SIGNUP_MAINTENANCE_ENABLED ?? 'false',\r\n}\r\n\r\nconst ci = {\r\n ...commonCiEnv,\r\n GTM_KEY: '#{GTM_KEY}#',\r\n rollbar: {\r\n accessToken: '#{Rollbar.FrontEndAccessToken}#',\r\n captureUncaught: true,\r\n captureUnhandledRejections: true,\r\n enabled: '#{Rollbar.FrontEndEnabled}#',\r\n payload: {\r\n environment: '#{Rollbar.Environment}#',\r\n },\r\n },\r\n GOOGLE_RECAPTCHA_KEY: '#{GOOGLE_RECAPTCHA_KEY}#',\r\n BLOB_STORAGE_URL: '#{BLOB_STORAGE_URL}#',\r\n MAP_FBO_USER_SERVICE_API_ID: '#{MAP_FBO_USER_SERVICE_API_ID}#',\r\n MAP_FBO_USER_SERVICE_API_KEY: '#{MAP_FBO_USER_SERVICE_API_KEY}#',\r\n MAP_FBO_USER_SERVICE_BASE_URL: '#{MAP_FBO_USER_SERVICE_BASE_URL}#',\r\n ENABLE_CONTRACTOR_LOGIN: '#{ENABLE_CONTRACTOR_LOGIN}#',\r\n ENABLE_CLIENT_PORTAL_SIGNUP: '#{ENABLE_CLIENT_PORTAL_SIGNUP}#',\r\n EY_DEMO_USER: '#{EY_DEMO_USER}#',\r\n EY_DEMO_LOGO: '#{EY_DEMO_LOGO}#',\r\n EY_CONTRACTOR_MANAGEMENT_URL: '#{EY_CONTRACTOR_MANAGEMENT_URL}#',\r\n MS_SSO_CLIENT_ID: '#{MS_SSO_CLIENT_ID}#',\r\n MS_SSO_AUTHORITY: '#{MS_SSO_AUTHORITY}#',\r\n IS_FBO_INVITATION_SIGNUP_MAINTENANCE_ENABLED: '#{IS_FBO_INVITATION_SIGNUP_MAINTENANCE_ENABLED}#',\r\n}\r\nexport const environment = {\r\n ...(process.env.REACT_APP_STAGE === 'ci' ? ci : dev),\r\n}\r\n\r\nnew WindowedObservable(InjectableConfig.Environment).publish(environment)\r\n","import { useCallback } from 'react'\r\n\r\nimport { useTrackingEvent } from '@procom-labs/common'\r\n\r\nimport { environment } from '@auth-portal/environment'\r\n\r\ninterface ITrackProps {\r\n isGTMTracking?: boolean\r\n isMixPanelTracking?: boolean\r\n eventName: string\r\n [key: string]: any\r\n}\r\n\r\ninterface IUseTrackingWrapper {\r\n track: ({ isGTMTracking, isMixPanelTracking, ...rest }: ITrackProps) => void\r\n}\r\n\r\nexport const useTrackingWrapper = (): IUseTrackingWrapper => {\r\n const isTrackingEnabled = environment.ENABLE_DATA_TRACKING === 'true'\r\n const { trackData } = useTrackingEvent()\r\n\r\n const track = useCallback(\r\n ({\r\n isGTMTracking = true,\r\n isMixPanelTracking = false,\r\n ...rest\r\n }: ITrackProps) => {\r\n trackData({\r\n isGTMTracking,\r\n isMixPanelTracking,\r\n isTrackingEnabled,\r\n ...rest,\r\n })\r\n },\r\n [isTrackingEnabled, trackData]\r\n )\r\n return {\r\n track,\r\n }\r\n}\r\n","export var IAccountType = /*#__PURE__*/ function(IAccountType) {\n IAccountType[\"Client\"] = \"Client\";\n IAccountType[\"Customer\"] = \"Customer\";\n IAccountType[\"Contractor\"] = \"Contractor\";\n IAccountType[\"GorillaResume\"] = \"GorillaResume\";\n return IAccountType;\n}({});\n","import { CognitoUserPool } from 'amazon-cognito-identity-js'\r\n\r\nimport { environment } from '@auth-portal/environment'\r\n\r\n// Dev User Pool\r\nexport const Pool = new CognitoUserPool({\r\n UserPoolId: environment.cognito.AWS_USERPOOL_ID,\r\n ClientId: environment.cognito.AWS_CLIENT_ID,\r\n})\r\n","import { getAuthPortalUrl } from '@procom-labs/common'\r\n\r\nimport { environment } from '@auth-portal/environment'\r\nimport {\r\n BrowserCacheLocation,\r\n PublicClientApplication,\r\n} from '@azure/msal-browser'\r\n\r\nconst authPortalUrl = getAuthPortalUrl(window.location.hostname)\r\n\r\nconst msalConfig = {\r\n auth: {\r\n clientId: environment.MS_SSO_CLIENT_ID,\r\n authority: environment.MS_SSO_AUTHORITY,\r\n redirectUri: `${authPortalUrl}/signin-ms-sso-callback-spa`,\r\n navigateToLoginRequestUrl: false,\r\n },\r\n cache: {\r\n cacheLocation: BrowserCacheLocation.LocalStorage,\r\n storeAuthStateInCookie: true, // Recommended for IE11 or Edge\r\n },\r\n}\r\n\r\nexport const loginRequest = {\r\n scopes: ['User.Read'],\r\n prompt: 'select_account',\r\n}\r\n\r\nexport const msalInstance = new PublicClientApplication(msalConfig)\r\n","export var ClientPortalProtectedLinksEnum = /*#__PURE__*/ function(ClientPortalProtectedLinksEnum) {\n ClientPortalProtectedLinksEnum[\"Create\"] = \"/create\";\n ClientPortalProtectedLinksEnum[\"Dashboard\"] = \"/dashboard\";\n ClientPortalProtectedLinksEnum[\"Job\"] = \"/jobs\";\n ClientPortalProtectedLinksEnum[\"Registration\"] = \"/registration\";\n ClientPortalProtectedLinksEnum[\"User\"] = \"/user\";\n ClientPortalProtectedLinksEnum[\"Timesheets\"] = \"/timesheets\";\n ClientPortalProtectedLinksEnum[\"Expenses\"] = \"/expenses\";\n ClientPortalProtectedLinksEnum[\"Workorders\"] = \"/workorders\";\n ClientPortalProtectedLinksEnum[\"Payments\"] = \"/payments\";\n ClientPortalProtectedLinksEnum[\"Candidates\"] = \"/candidates\";\n ClientPortalProtectedLinksEnum[\"Payroll\"] = \"/payroll\";\n ClientPortalProtectedLinksEnum[\"MatchCandidates\"] = \"/match\";\n ClientPortalProtectedLinksEnum[\"Onboarding\"] = \"/onboarding\";\n ClientPortalProtectedLinksEnum[\"RecruitmentSupport\"] = \"/recruitment-support\";\n ClientPortalProtectedLinksEnum[\"TalentPools\"] = \"/talent-lists\";\n ClientPortalProtectedLinksEnum[\"Templates\"] = \"/templates\";\n ClientPortalProtectedLinksEnum[\"PackageTemplate\"] = \"/package-template\";\n ClientPortalProtectedLinksEnum[\"RateSupport\"] = \"/rate-support\";\n ClientPortalProtectedLinksEnum[\"JobExtract\"] = \"/job-extract\";\n ClientPortalProtectedLinksEnum[\"ContractorRateCalculator\"] = \"/contractor-rate-calculator\";\n ClientPortalProtectedLinksEnum[\"ContractorManagement\"] = \"/contractor-management\";\n ClientPortalProtectedLinksEnum[\"Reporting\"] = \"/reporting\";\n ClientPortalProtectedLinksEnum[\"ConsultantManagement\"] = \"/consultant-management\";\n ClientPortalProtectedLinksEnum[\"Submissions\"] = \"/submissions\";\n ClientPortalProtectedLinksEnum[\"TimelockEntry\"] = \"/timelock-entry\";\n ClientPortalProtectedLinksEnum[\"PTORequests\"] = \"/pto-requests\";\n ClientPortalProtectedLinksEnum[\"RateCalculator\"] = \"/contractor-rate-calculator\";\n ClientPortalProtectedLinksEnum[\"ResourceCentre\"] = \"/content-share\";\n ClientPortalProtectedLinksEnum[\"Anonymous\"] = \"/share\";\n ClientPortalProtectedLinksEnum[\"SalesResourceCentre\"] = \"/resource-centre\";\n return ClientPortalProtectedLinksEnum;\n}({});\nexport var UnProtectedLinksEnum = /*#__PURE__*/ function(UnProtectedLinksEnum) {\n UnProtectedLinksEnum[\"Login\"] = \"/\";\n return UnProtectedLinksEnum;\n}({});\nexport var PageNotFound = '/page-not-found';\nexport var FrictionLessViewNoAccessContent = '/frictionless-view';\nexport var UserPermissionsRoutes = /*#__PURE__*/ function(UserPermissionsRoutes) {\n UserPermissionsRoutes[\"isJobEnabled\"] = \"/jobs\";\n UserPermissionsRoutes[\"isExpenseEnabled\"] = \"/expenses\";\n UserPermissionsRoutes[\"isPaymentEnabled\"] = \"/payments\";\n UserPermissionsRoutes[\"isTimesheetEnabled\"] = \"/timesheets\";\n UserPermissionsRoutes[\"isWorkOrderEnabled\"] = \"/workorders\";\n UserPermissionsRoutes[\"isOnboardingEnabled\"] = \"/onboarding\";\n UserPermissionsRoutes[\"isZendeskEnabled\"] = \"https://helpdesk.procomservices.com/hc/en-us\";\n return UserPermissionsRoutes;\n}({});\n","import { AuthErrorCodes } from '@procom-labs/common'\r\n\r\nexport const FailedSocialLoginCallbackUrl = (message?: string): string => {\r\n const socialLoginContext = localStorage.getItem('socialLoginContext')\r\n\r\n let error: string | undefined\r\n\r\n if (message === AuthErrorCodes.InvalidEmailDomain) {\r\n error = 'invalidEmailDomain'\r\n }\r\n\r\n if (socialLoginContext) {\r\n localStorage.removeItem('socialLoginContext')\r\n const to =\r\n socialLoginContext.toLowerCase() === 'login'\r\n ? ''\r\n : socialLoginContext.toLowerCase()\r\n return `/${to}?${new URLSearchParams({\r\n error: error ?? `${socialLoginContext.toLowerCase()}Failed`,\r\n })}`\r\n }\r\n return `/?${new URLSearchParams({\r\n error: error ?? 'loginFailed',\r\n })}`\r\n}\r\n","import { ClientQueryParams, getClientPortalHost } from '@procom-labs/common'\r\n\r\nconst getClientHostURL = (): string => {\r\n const host = getClientPortalHost()\r\n // This condition is only to test in local environment\r\n if (host && host !== 'localhost') {\r\n return `https://${host}`\r\n }\r\n return `http://localhost:8081`\r\n}\r\n\r\nexport const getCallbackURL = (): string =>\r\n localStorage.getItem(ClientQueryParams.callbackURL) ||\r\n `${getClientHostURL() || ''}/auth-return`\r\n\r\nexport const getOriginBaseUrl = (): string =>\r\n localStorage.getItem(ClientQueryParams.originBase) || getClientHostURL() || ''\r\n\r\nexport const getDestinationURL = (): string =>\r\n localStorage.getItem(ClientQueryParams.destinationURL) || ''\r\n","import { TFuncKey } from 'react-i18next'\r\n\r\nimport { ValidationType } from '@auth-portal/types'\r\n\r\nexport const passwordValidations: { [key: string]: TFuncKey } = {\r\n Min6Characters: 'form.passwordValidation.min6Characters',\r\n Min1number: 'form.passwordValidation.min1Number',\r\n Min1CapitalLetter: 'form.passwordValidation.min1CapitalLetter',\r\n Min1LowerCaseLetter: 'form.passwordValidation.min1LowerCaseLetter',\r\n PasswordMatch: 'form.passwordValidation.passwordMatch',\r\n}\r\n\r\nexport const DefaultPasswordValidationState: ValidationType[] = [\r\n {\r\n transKey: passwordValidations.Min6Characters,\r\n valid: false,\r\n },\r\n {\r\n transKey: passwordValidations.Min1number,\r\n valid: false,\r\n },\r\n {\r\n transKey: passwordValidations.Min1CapitalLetter,\r\n valid: false,\r\n },\r\n {\r\n transKey: passwordValidations.Min1LowerCaseLetter,\r\n valid: false,\r\n },\r\n {\r\n transKey: passwordValidations.PasswordMatch,\r\n valid: false,\r\n },\r\n]\r\n","import { IAuthConfig, LoginTypes } from '@procom-labs/common'\r\n\r\ntype LoginTypeMapper = {\r\n [K in Lowercase]: keyof IAuthConfig\r\n}\r\nconst mapper: LoginTypeMapper = {\r\n client: 'client',\r\n contractor: 'contractor',\r\n employer: 'employer',\r\n gorillaresume: 'gorillaResume',\r\n customer: 'customer',\r\n support: 'customer',\r\n}\r\n\r\nexport const LoginTypeUniversalMapper = (\r\n loginType: string\r\n): keyof IAuthConfig => {\r\n return mapper[loginType as Lowercase]\r\n}\r\n","export var PreferredLanguageType = /*#__PURE__*/ function(PreferredLanguageType) {\n PreferredLanguageType[\"EN\"] = \"en\";\n PreferredLanguageType[\"FR\"] = \"fr\";\n return PreferredLanguageType;\n}({});\n","import i18n from 'i18next'\r\nimport LanguageDetector from 'i18next-browser-languagedetector'\r\nimport HttpApi from 'i18next-xhr-backend'\r\nimport { initReactI18next } from 'react-i18next'\r\n\r\nimport { PreferredLanguageType } from '@procom-labs/common'\r\n\r\ni18n\r\n .use(initReactI18next) // passes i18n down to react-i18next\r\n .use(LanguageDetector)\r\n .use(HttpApi)\r\n .init({\r\n returnEmptyString: false,\r\n supportedLngs: Object.values(PreferredLanguageType),\r\n detection: {\r\n order: ['querystring', 'path', 'localStorage', 'navigator'],\r\n lookupQuerystring: 'lang',\r\n caches: ['cookie', 'localStorage'],\r\n },\r\n ns: ['main'],\r\n fallbackLng: PreferredLanguageType.EN,\r\n\r\n // defaultNS,\r\n backend: {\r\n loadPath: '/assets/locales/{{lng}}/{{ns}}.json',\r\n },\r\n react: { useSuspense: true },\r\n })\r\nexport default i18n\r\n","import {\r\n AuthenticationDetails,\r\n CognitoAccessToken,\r\n CognitoIdToken,\r\n CognitoRefreshToken,\r\n CognitoUser,\r\n CognitoUserSession,\r\n IAuthenticationDetailsData,\r\n} from 'amazon-cognito-identity-js'\r\nimport { AxiosError, AxiosResponse } from 'axios'\r\nimport {\r\n catchError,\r\n EMPTY,\r\n map,\r\n Observable,\r\n Subscriber,\r\n switchMap,\r\n tap,\r\n throwError,\r\n} from 'rxjs'\r\n\r\nimport {\r\n ActivityType,\r\n AuthProfileType,\r\n AwsErrorCodes,\r\n awsService,\r\n BaseConfigService,\r\n ClientQueryParams,\r\n closePopupWindow,\r\n CreateContactPayload,\r\n errorToString,\r\n getClientName,\r\n getClientPortalHost,\r\n getLoginType,\r\n getVendorCode,\r\n gtmEvents,\r\n gtmEventsPrefix,\r\n IAccountType,\r\n IAuthConfig,\r\n IAuthResponse,\r\n ICollaboratorUserInfo,\r\n InjectableServices,\r\n ISiteConfiguration,\r\n ISocialLoginTokens,\r\n LoginTypes,\r\n MfaTypes,\r\n PasswordInfoResponse,\r\n PasswordVerificationCodeResponse,\r\n PerformanceTrackingService,\r\n SiteList,\r\n SocialRoutes,\r\n SuperSubject,\r\n VendorCodes,\r\n WindowedObservable,\r\n} from '@procom-labs/common'\r\n\r\nimport { Pool } from '@auth-portal/config'\r\nimport { environment } from '@auth-portal/environment'\r\nimport { ProtectedLinksEnum } from '@auth-portal/routes/routes.enum'\r\nimport { authStore } from '@auth-portal/store'\r\nimport {\r\n ClientUserCreateResponse,\r\n IUserAttributes,\r\n IUserEmailVerification,\r\n UserExistResponse,\r\n} from '@auth-portal/types'\r\nimport {\r\n FailedSocialLoginCallbackUrl,\r\n getCallbackURL,\r\n getDestinationURL,\r\n getOriginBaseUrl,\r\n LoginTypeUniversalMapper,\r\n} from '@auth-portal/util'\r\n\r\nimport i18n from '../i18n'\r\n\r\ndeclare let dataLayer: any // Global variable used by GTM to capture data. Defined to avoid TS warnings. Not compiled into JS.\r\n\r\nconst localStorageValues = {\r\n callbackUrl: getCallbackURL(),\r\n originBase: getOriginBaseUrl(),\r\n destinationURL: getDestinationURL(),\r\n authPortalBase: window.location.origin,\r\n}\r\n\r\ninterface AuthenticateResponseObject {\r\n mfaType?: MfaTypes\r\n}\r\n\r\ntype AuthenticateResponse = Observable\r\n\r\ninterface IRefreshUserSessionInfoResponse {\r\n idToken: string\r\n}\r\n\r\nexport class AuthService extends BaseConfigService {\r\n // Needed to resend MFA SMS code\r\n cognitoUserHasMultipleMfaMethodsSubject = new SuperSubject(false)\r\n\r\n cognitoUserHasMultipleMfaMethods$ =\r\n this.cognitoUserHasMultipleMfaMethodsSubject.observable$\r\n\r\n private currentCognitoUserSubject = new SuperSubject(null)\r\n\r\n currentCognitoUser$: Observable =\r\n this.currentCognitoUserSubject.observable$\r\n\r\n private readonly ACCOUNT_ENDPOINT = `${environment.AUTH_API_URL}/Account`\r\n\r\n private readonly SiteConfigurationEndPoint = `${environment.AUTH_API_URL}/SiteConfiguration`\r\n\r\n private readonly performanceTrackingService =\r\n PerformanceTrackingService.getOrCreate()\r\n\r\n constructor() {\r\n super()\r\n\r\n this.axios.interceptors.response.use(\r\n this.handleResponse,\r\n this.handleResponseError\r\n )\r\n }\r\n\r\n getIfUserExist(\r\n email: string,\r\n recaptchaToken: string,\r\n includeCognitoUser: string = 'false'\r\n ): Observable {\r\n const url = `${this.ACCOUNT_ENDPOINT}/user-info?${new URLSearchParams({\r\n email,\r\n includeCognitoUser,\r\n })}`\r\n\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n return this.axios\r\n .get(url, { headers })\r\n .pipe(map(({ data }) => data))\r\n }\r\n\r\n handleCheckClientDomain(\r\n email: string,\r\n recaptchaToken: string,\r\n vendorCode: string,\r\n clientCode: string | null\r\n ): Observable {\r\n const url = `${\r\n this.ACCOUNT_ENDPOINT\r\n }/validate-email-domain?${new URLSearchParams({\r\n email,\r\n vendorCode,\r\n clientCode: clientCode ?? '',\r\n })}`\r\n\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n return this.axios.get(url, { headers }).pipe(map(({ data }) => data))\r\n }\r\n\r\n handlePublicDomainCheck(\r\n email: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n const url = `${\r\n this.ACCOUNT_ENDPOINT\r\n }/validate-public-domain?${new URLSearchParams({\r\n email,\r\n })}`\r\n\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n return this.axios.get(url, { headers }).pipe(map(({ data }) => data))\r\n }\r\n\r\n generateSignInOtp(\r\n email: string,\r\n recaptchaToken: string,\r\n language: string,\r\n isOtp = true\r\n ): Observable {\r\n const url = `${this.ACCOUNT_ENDPOINT}/password-verification-code`\r\n return this.axios\r\n .post(url, {\r\n originBase: getOriginBaseUrl(),\r\n email,\r\n recaptchaToken,\r\n language,\r\n isOtp,\r\n })\r\n .pipe(\r\n map(({ data }) => {\r\n this.trackActivity(\r\n email,\r\n ActivityType.OtpRequest,\r\n true,\r\n 'Verification code generated successfully'\r\n ).subscribe()\r\n return data\r\n }),\r\n this.catchErrorWrapper(email, ActivityType.OtpRequest, false)\r\n )\r\n }\r\n\r\n validateOtpSignIn(\r\n email: string,\r\n verificationCode: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n const url = `${this.ACCOUNT_ENDPOINT}/password-verification-code-validity`\r\n return this.axios\r\n .post(url, {\r\n email,\r\n verificationCode,\r\n recaptchaToken,\r\n })\r\n .pipe(\r\n map(({ data }) => {\r\n const { isCodeValid, hasCodeExpired } = data\r\n const isSuccess = isCodeValid && !hasCodeExpired\r\n if (isSuccess) {\r\n this.trackActivity(\r\n email,\r\n ActivityType.OtpVerification,\r\n isSuccess,\r\n 'Verification code validated successfully.'\r\n ).subscribe()\r\n } else {\r\n this.trackActivity(\r\n email,\r\n ActivityType.OtpVerification,\r\n isSuccess,\r\n `Verification code validation failed. ${JSON.stringify(data)}`\r\n ).subscribe()\r\n }\r\n return data\r\n }),\r\n this.catchErrorWrapper(email, ActivityType.OtpVerification, false)\r\n )\r\n }\r\n\r\n handleCodeSignIn = (\r\n url: string,\r\n code: string,\r\n username: string,\r\n recaptchaToken: string,\r\n password?: string\r\n ): Observable => {\r\n return this.axios\r\n .post(url, {\r\n code,\r\n username,\r\n recaptchaToken,\r\n password,\r\n })\r\n .pipe(\r\n map(({ data }) => {\r\n authStore.setCurrentOtpUser(data)\r\n return data\r\n }),\r\n this.catchErrorWrapper(username, ActivityType.OtpVerification, false)\r\n )\r\n }\r\n\r\n handleOtpSignIn(\r\n code: string,\r\n username: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n const url = `${this.ACCOUNT_ENDPOINT}/code-signin`\r\n return this.handleCodeSignIn(url, code, username, recaptchaToken)\r\n }\r\n\r\n createPasswordWithCodeSignIn(\r\n code: string,\r\n username: string,\r\n recaptchaToken: string,\r\n password: string\r\n ): Observable {\r\n const url = `${this.ACCOUNT_ENDPOINT}/code-signin-create-password`\r\n return this.handleCodeSignIn(url, code, username, recaptchaToken, password)\r\n }\r\n\r\n createContactWithoutPassword(\r\n payload: CreateContactPayload,\r\n accountType: string\r\n ): Observable {\r\n const url = `${this.ACCOUNT_ENDPOINT}/${\r\n accountType === IAccountType.Client ? 'client-contact/sign-up' : 'signup'\r\n }`\r\n return this.axios.post(url, payload).pipe(\r\n map(({ data }) => {\r\n return data\r\n })\r\n )\r\n }\r\n\r\n handleCognitoUserOnSuccess({\r\n cognitoSession,\r\n observer,\r\n isNewUser,\r\n username,\r\n queryParams,\r\n }: {\r\n cognitoSession: CognitoUserSession\r\n observer?: Subscriber\r\n isNewUser?: boolean\r\n username: string\r\n queryParams?: object\r\n }): void {\r\n this.setCurrentUserSession(cognitoSession)\r\n const isPendingFlow =\r\n queryParams && 'isPendingCognitoProcess' in queryParams\r\n if (observer) {\r\n this.trackActivity(\r\n username,\r\n isNewUser ? ActivityType.SignUp : ActivityType.Login,\r\n true\r\n ).subscribe({\r\n next: () => {\r\n if (isPendingFlow) observer.next()\r\n },\r\n complete: () => {\r\n // There's no pending flow to execute\r\n if (!isPendingFlow) {\r\n this.redirectToClientPortal(queryParams)\r\n observer.complete()\r\n }\r\n },\r\n })\r\n }\r\n }\r\n\r\n handleCognitoUserOnFailure({\r\n observer,\r\n isNewUser,\r\n username,\r\n error,\r\n context,\r\n }: {\r\n observer?: Subscriber\r\n isNewUser?: boolean\r\n username: string\r\n error: any\r\n context?: string | null\r\n }): void {\r\n const errorMessage = {\r\n code: error.code,\r\n name: error.name,\r\n message: error.message,\r\n stack: error.stack,\r\n }\r\n if (observer) {\r\n this.trackActivity(\r\n username,\r\n isNewUser ? ActivityType.SignUpFailed : ActivityType.LoginFailed,\r\n false,\r\n `${awsService.translateAWSErrors(\r\n error.code,\r\n i18n,\r\n context || ''\r\n )} ${JSON.stringify(errorMessage)}`\r\n ).subscribe({\r\n complete: () => {\r\n // NotAuthorizedException + MFA active means that MFA session is expired\r\n if (\r\n error.code === AwsErrorCodes.NotAuthorizedException &&\r\n authStore.getStateValue().isMfaCodeRequested\r\n ) {\r\n this.resetCognito()\r\n authStore.setCognitoUserSession(true)\r\n }\r\n\r\n observer.error({\r\n code: error.code,\r\n message: awsService.translateAWSErrors(\r\n error.code,\r\n i18n,\r\n context || ''\r\n ),\r\n })\r\n this.rollbar.error(error)\r\n },\r\n })\r\n }\r\n }\r\n\r\n handleCognitoUserTotpRequired({\r\n observer,\r\n }: {\r\n observer: Subscriber\r\n }): void {\r\n authStore.setIsMfaCodeRequested(true)\r\n observer.next({ mfaType: MfaTypes.Authenticator })\r\n observer.complete()\r\n }\r\n\r\n handleCognitoUserMfaRequired({\r\n observer,\r\n password,\r\n }: {\r\n observer: Subscriber\r\n password?: string\r\n }): void {\r\n authStore.setIsMfaCodeRequested(true)\r\n // Password is already saved if multiple MFA methods are enabled\r\n if (password) {\r\n authStore.setCurrentCognitoUserPassword(password)\r\n }\r\n\r\n observer.next({ mfaType: MfaTypes.SMS })\r\n observer.complete()\r\n }\r\n\r\n setIsMfaCodeRequested(value: boolean): void {\r\n authStore.setIsMfaCodeRequested(value)\r\n }\r\n\r\n microsoftSSOLogin(idToken: string): Observable {\r\n const config = {\r\n headers: {\r\n Authorization: `Bearer ${idToken}`,\r\n },\r\n }\r\n return this.axios\r\n .get(`${this.ACCOUNT_ENDPOINT}/azure/common/token`, config)\r\n .pipe(\r\n map((response) => {\r\n const { data } = response\r\n authStore.setCurrentUserSocialSession({\r\n idToken: data.token,\r\n })\r\n this.redirectToClientPortal(\r\n {\r\n refreshToken: data.refreshToken,\r\n expiredTime: data.expiredTime,\r\n newAccount:\r\n data.isNewVendorClientContractorUser ||\r\n data.user?.isNewVendorClientContractorUser,\r\n refreshTokenExpiredTime: data.refreshTokenExpiredTime,\r\n },\r\n true\r\n )\r\n return response.data\r\n })\r\n )\r\n }\r\n\r\n authenticate({\r\n username,\r\n password,\r\n context,\r\n queryParams,\r\n }: {\r\n username: string\r\n password: string\r\n context?: string | null\r\n queryParams?: object\r\n }): AuthenticateResponse {\r\n return new Observable((observer) => {\r\n if (\r\n !this.currentCognitoUserSubject.value ||\r\n (this.currentCognitoUserSubject.value &&\r\n this.currentCognitoUserSubject.value.getUsername() !== username)\r\n ) {\r\n this.currentCognitoUserSubject.value = new CognitoUser({\r\n Username: username,\r\n Pool,\r\n })\r\n }\r\n const user = this.currentCognitoUserSubject.value\r\n authStore.setCurrentCognitoUserEmail(username)\r\n const clientName = getClientName(getClientPortalHost())\r\n const userAuthDetails: IAuthenticationDetailsData = {\r\n Username: username,\r\n Password: password,\r\n ClientMetadata: {\r\n clientName,\r\n },\r\n }\r\n\r\n const isNewUser =\r\n queryParams &&\r\n ('newAccount' in queryParams || 'firstLogin' in queryParams)\r\n\r\n const authDetails = new AuthenticationDetails(userAuthDetails)\r\n\r\n user.authenticateUser(authDetails, {\r\n onSuccess: (data) => {\r\n this.handleCognitoUserOnSuccess({\r\n cognitoSession: data,\r\n observer,\r\n isNewUser,\r\n username,\r\n queryParams,\r\n })\r\n },\r\n onFailure: (error) => {\r\n this.handleCognitoUserOnFailure({\r\n observer,\r\n isNewUser,\r\n username,\r\n error,\r\n context,\r\n })\r\n },\r\n\r\n newPasswordRequired: (userAttributes: IUserAttributes) => {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, camelcase\r\n const { email_verified, ...rest } = userAttributes\r\n authStore.setUserAttributes(rest)\r\n // Reference: Use case 23\r\n // https://github.com/aws-amplify/amplify-js/tree/main/packages/amazon-cognito-identity-js\r\n this.trackActivity(\r\n username,\r\n ActivityType.NewPasswordRequired,\r\n true\r\n ).subscribe({\r\n complete: () => {\r\n const isPendingFlow =\r\n queryParams && 'isPendingCognitoProcess' in queryParams\r\n\r\n if (!isPendingFlow) {\r\n observer.complete()\r\n } else {\r\n observer.next()\r\n }\r\n },\r\n })\r\n },\r\n\r\n totpRequired: () => {\r\n this.handleCognitoUserTotpRequired({ observer })\r\n },\r\n\r\n mfaRequired: () => {\r\n this.handleCognitoUserMfaRequired({ observer, password })\r\n },\r\n\r\n selectMFAType: () => {\r\n authStore.setIsMfaCodeRequested(true)\r\n this.cognitoUserHasMultipleMfaMethodsSubject.value = true\r\n authStore.setCurrentCognitoUserPassword(password)\r\n observer.next()\r\n observer.complete()\r\n },\r\n })\r\n })\r\n }\r\n\r\n resetCognito(): void {\r\n this.currentCognitoUserSubject.value = null\r\n authStore.updateState({\r\n isMfaCodeRequested: false,\r\n currentCognitoUserEmail: '',\r\n currentUserSession: null,\r\n currentCognitoUserPassword: '',\r\n })\r\n }\r\n\r\n registerCollaborator(\r\n firstName: string,\r\n lastName: string,\r\n idToken: CognitoIdToken | string\r\n ): Observable {\r\n const url = '/User/register'\r\n\r\n const headers = {\r\n Authorization: `Bearer ${idToken}`,\r\n }\r\n\r\n const data = {\r\n firstName,\r\n lastName,\r\n }\r\n\r\n return this.axios.put(url, data, { headers }).pipe(map(() => {}))\r\n }\r\n\r\n changePassword(\r\n password: string,\r\n email: string,\r\n confirmationCode: string\r\n ): Observable {\r\n const url = '/Account/complete-reset-password'\r\n\r\n const data = {\r\n confirmationCode,\r\n email,\r\n password,\r\n }\r\n\r\n return this.axios\r\n .post(url, data)\r\n .pipe(\r\n this.catchErrorWrapper(\r\n email,\r\n ActivityType.NewPasswordRequired,\r\n false,\r\n 'change-password'\r\n )\r\n )\r\n }\r\n\r\n initialLogin(password: string): Observable {\r\n return new Observable((observer) => {\r\n const { userAttribute } = authStore.getStateValue()\r\n if (this.currentCognitoUserSubject.value) {\r\n this.currentCognitoUserSubject.value.completeNewPasswordChallenge(\r\n password,\r\n userAttribute,\r\n {\r\n onSuccess: () => {\r\n const idToken =\r\n this.currentCognitoUserSubject.value\r\n ?.getSignInUserSession()\r\n ?.getIdToken()\r\n .getJwtToken() || ''\r\n observer.next(idToken)\r\n observer.complete()\r\n },\r\n onFailure: (error) => {\r\n observer.error(awsService.translateAWSErrors(error.code, i18n))\r\n this.rollbar.error(error)\r\n },\r\n }\r\n )\r\n } else {\r\n observer.error(awsService.translateAWSErrors('', i18n))\r\n }\r\n })\r\n }\r\n\r\n signUp(\r\n Email: string,\r\n Password: string,\r\n UserId: string | null,\r\n IsClaimingProfile: boolean,\r\n RecaptchaToken: string,\r\n CampaignId: string | null,\r\n ProfileType: AuthProfileType\r\n ): AuthenticateResponse {\r\n const url = '/Account/signup'\r\n const clientInfo = SiteList.find((client) =>\r\n client.domains.find(\r\n (domain) => domain.authHostname === window.location.host\r\n )\r\n )\r\n\r\n const isGorillaResumeUser =\r\n ProfileType === AuthProfileType.GorillaResumeUser\r\n\r\n const data = {\r\n Email,\r\n Password,\r\n UserId,\r\n IsClaimingProfile,\r\n RecaptchaToken,\r\n ProfileType,\r\n PortalType: getLoginType(ProfileType),\r\n CampaignId: CampaignId ?? null,\r\n VendorCode: isGorillaResumeUser ? VendorCodes.GW : getVendorCode(),\r\n ClientCode: isGorillaResumeUser ? null : clientInfo?.code ?? null,\r\n OriginBase: localStorageValues.originBase,\r\n CallbackURL: localStorageValues.callbackUrl,\r\n DestinationURL: localStorageValues.destinationURL || '',\r\n AuthPortalBase: localStorageValues.authPortalBase,\r\n language: i18n.language,\r\n }\r\n\r\n return this.axios.post(url, data).pipe(\r\n tap(() => {\r\n dataLayer.push({\r\n event: gtmEvents.FormSignUpEmail,\r\n submissionStatus: 'true',\r\n email: Email,\r\n })\r\n }),\r\n switchMap(() =>\r\n this.authenticate({\r\n username: Email,\r\n password: Password,\r\n queryParams: {\r\n newAccount: true,\r\n firstLogin: true,\r\n },\r\n })\r\n )\r\n )\r\n }\r\n\r\n getSocialLoginAwsToken(\r\n code: string,\r\n campaignId: string | null\r\n ): Observable {\r\n const headers = { 'Content-Type': 'application/x-www-form-urlencoded' }\r\n\r\n const body = new URLSearchParams({\r\n grant_type: 'authorization_code',\r\n client_id: environment.cognito.AWS_CLIENT_ID,\r\n redirect_uri: `${window.location.origin}/${SocialRoutes.SocialCallbackURL}`,\r\n code,\r\n })\r\n\r\n return this.axios\r\n .post(`${environment.cognito.AWS_AUTH_URL}/oauth2/token`, body, {\r\n headers,\r\n })\r\n .pipe(\r\n tap(({ data }) => {\r\n this.setCognitoSignInUserSession({\r\n refreshToken: data.refresh_token,\r\n idToken: data.id_token,\r\n accessToken: data.access_token,\r\n })\r\n }),\r\n switchMap(({ data }) => {\r\n authStore.setCurrentUserSocialSession({\r\n accessToken: data.access_token,\r\n tokenType: data.token_type,\r\n idToken: data.id_token,\r\n })\r\n return this.socialLogin(campaignId)\r\n })\r\n )\r\n }\r\n\r\n socialLogin(campaignId: string | null): Observable {\r\n const url = '/Account/signin-social-cognito'\r\n\r\n const { currentUserSocialSession } = authStore.getStateValue()\r\n const headers = {\r\n Authorization: `${currentUserSocialSession?.tokenType} ${currentUserSocialSession?.idToken}`,\r\n }\r\n\r\n const originBase = getOriginBaseUrl()\r\n\r\n const payload = {\r\n originBase,\r\n accessToken: currentUserSocialSession?.accessToken,\r\n tokenType: currentUserSocialSession?.tokenType,\r\n campaignId,\r\n portalType: localStorage.getItem(ClientQueryParams.loginType),\r\n }\r\n\r\n return this.axios\r\n .post<{ isNewVendorClientContractorUser: boolean }>(url, payload, {\r\n headers,\r\n })\r\n .pipe(\r\n tap(({ data }) => {\r\n dataLayer.push({\r\n event: `form-${localStorage.getItem('socialLoginContext')}`,\r\n submissionStatus: 'true',\r\n email: 'null',\r\n loginWith: localStorage.getItem('socialLoginType'),\r\n })\r\n\r\n localStorage.removeItem('socialLoginType')\r\n localStorage.removeItem('socialLoginContext')\r\n this.redirectToClientPortal(\r\n {\r\n newAccount: data.isNewVendorClientContractorUser,\r\n },\r\n true\r\n )\r\n }),\r\n catchError((err) => {\r\n dataLayer.push({\r\n event: `${gtmEventsPrefix.Notification}${gtmEvents.FormLogin}`,\r\n submissionStatus: 'false',\r\n email: 'null',\r\n loginWith: localStorage.getItem('socialLoginType'),\r\n errorMessage: errorToString(err),\r\n })\r\n localStorage.removeItem('socialLoginType')\r\n\r\n closePopupWindow(FailedSocialLoginCallbackUrl(err.response?.data))\r\n return EMPTY\r\n })\r\n )\r\n }\r\n\r\n linkedinLogin(\r\n code: string | null,\r\n campaignId: string | null\r\n ): Observable {\r\n const url = '/Account/signin-social-linkedin'\r\n const loginType = localStorage.getItem(ClientQueryParams.loginType)\r\n\r\n const originBase = getOriginBaseUrl()\r\n const payload = {\r\n originBase,\r\n campaignId,\r\n authorizationCode: code,\r\n redirectUri: `${window.location.origin}/signin-linkedin-callback`,\r\n profileType: loginType,\r\n }\r\n return this.axios.post(url, payload).pipe(\r\n tap(({ data }) => {\r\n dataLayer.push({\r\n event: `form-${localStorage.getItem('socialLoginContext')}`,\r\n submissionStatus: 'true',\r\n email: 'null',\r\n loginWith: localStorage.getItem('socialLoginType'),\r\n })\r\n localStorage.removeItem('socialLoginType')\r\n\r\n authStore.setCurrentUserSocialSession({\r\n idToken: data.token, // This is procom's ID token\r\n })\r\n localStorage.removeItem('socialLoginContext')\r\n this.redirectToClientPortal(\r\n {\r\n refreshToken: data.refreshToken,\r\n expiredTime: data.expiredTime,\r\n newAccount:\r\n data.isNewVendorClientContractorUser ||\r\n data.user?.isNewVendorClientContractorUser,\r\n refreshTokenExpiredTime: data.refreshTokenExpiredTime,\r\n },\r\n true\r\n )\r\n }),\r\n catchError((err) => {\r\n dataLayer.push({\r\n event: `${gtmEventsPrefix.Notification}${gtmEvents.FormLogin}`,\r\n submissionStatus: 'false',\r\n email: 'null',\r\n loginWith: localStorage.getItem('socialLoginContext'),\r\n errorMessage: errorToString(err),\r\n })\r\n localStorage.removeItem('socialLoginType')\r\n\r\n closePopupWindow(FailedSocialLoginCallbackUrl(err.response?.data))\r\n return EMPTY\r\n })\r\n )\r\n }\r\n\r\n logout(): Observable {\r\n return new Observable((observer) => {\r\n const user = Pool.getCurrentUser()\r\n if (user) {\r\n user.signOut()\r\n observer.complete()\r\n } else {\r\n observer.error('There is no user session')\r\n this.rollbar.info('There is no user session')\r\n }\r\n })\r\n }\r\n\r\n requestPasswordReset(email: string, recaptchaToken: string): Observable {\r\n const callbackUrl = getCallbackURL()\r\n const originBase = getOriginBaseUrl()\r\n const destinationURL = getDestinationURL()\r\n const authPortalBase = window.location.origin\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n\r\n const url = `/Account/request-reset-password?${new URLSearchParams({\r\n Email: email,\r\n OriginBase: originBase,\r\n CallbackURL: callbackUrl,\r\n DestinationURL: destinationURL || '',\r\n AuthPortalBase: authPortalBase,\r\n LoginType:\r\n authStore.getStateValue().loginType?.toLowerCase() ??\r\n LoginTypes.Client.toLowerCase(),\r\n })}`\r\n\r\n return this.axios\r\n .get(url, { headers })\r\n .pipe(\r\n this.catchErrorWrapper(email, ActivityType.NewPasswordRequired, false)\r\n )\r\n }\r\n\r\n verifyEmail(userEmailVerification: IUserEmailVerification): Observable {\r\n const url = '/Account/verify-user-email'\r\n const data = {\r\n email: userEmailVerification.email,\r\n confirmationCode: userEmailVerification.confirmationCode,\r\n migrationToken: userEmailVerification.migrationToken,\r\n onboardingCode: userEmailVerification.onboardingCode,\r\n }\r\n\r\n return this.axios.post(url, data).pipe(catchError(this.catchAwsError))\r\n }\r\n\r\n getPasswordInfo(\r\n email: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n return this.axios\r\n .get(\r\n `${\r\n environment.AUTH_API_URL\r\n }/Account/user-password-info?${new URLSearchParams({\r\n email,\r\n originBase: getOriginBaseUrl() || window.location.origin,\r\n })}`,\r\n { headers }\r\n )\r\n .pipe(map(({ data }) => data))\r\n }\r\n\r\n migrateSignUp(\r\n email: string,\r\n password: string,\r\n recaptchaToken: string,\r\n verificationCode: string,\r\n userId: string\r\n ): Observable {\r\n const data = {\r\n userId,\r\n email,\r\n password,\r\n recaptchaToken,\r\n verificationCode,\r\n VendorCode: getVendorCode(),\r\n OriginBase: localStorageValues.originBase,\r\n CallbackURL: localStorageValues.callbackUrl,\r\n DestinationURL: localStorageValues.destinationURL || '',\r\n AuthPortalBase: localStorageValues.authPortalBase,\r\n language: i18n.language,\r\n }\r\n\r\n return this.axios\r\n .post(`${this.ACCOUNT_ENDPOINT}/migrated-user-signup`, data)\r\n .pipe(switchMap(() => this.authenticate({ username: email, password })))\r\n }\r\n\r\n sendVerficationCode(code: string, recaptchaToken: string): Observable {\r\n return this.axios\r\n .post(`${environment.AUTH_API_URL}/Account/password-verification-code`, {\r\n code,\r\n recaptchaToken,\r\n originBase: encodeURIComponent(\r\n getOriginBaseUrl() || window.location.origin\r\n ),\r\n })\r\n .pipe(map(() => {}))\r\n }\r\n\r\n validateVerficationCode(\r\n code: string,\r\n verificationCode: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n return this.axios\r\n .post(\r\n `${environment.AUTH_API_URL}/Account/password-verification-code-validity`,\r\n {\r\n code,\r\n verificationCode,\r\n recaptchaToken,\r\n }\r\n )\r\n .pipe(map(({ data }) => data))\r\n }\r\n\r\n getUserMigrationInfo(\r\n migrationToken: string,\r\n source: string\r\n ): Observable {\r\n const url = `/UserMapping/GetUserMigrationInfo/${migrationToken}/${source}`\r\n const baseURL = environment.MAP_FBO_USER_SERVICE_BASE_URL\r\n const headers = {\r\n OSApiId: environment.MAP_FBO_USER_SERVICE_API_ID,\r\n OSApiKey: environment.MAP_FBO_USER_SERVICE_API_KEY,\r\n }\r\n\r\n return this.axios.get(url, { baseURL, headers })\r\n }\r\n\r\n getUserEmailById(id: string, token: string): Observable {\r\n const url = `User/${id}/email`\r\n const headers = {\r\n Accept: 'text/plain',\r\n RecaptchaToken: token,\r\n }\r\n return this.axios.get(url, { headers })\r\n }\r\n\r\n claimContractorProfile(\r\n userId: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n const url = `ContractorProfile/claim`\r\n const data = {\r\n userId,\r\n recaptchaToken,\r\n }\r\n return this.axios.post(url, data)\r\n }\r\n\r\n activateFboUserMapping(\r\n migrationToken: string | null,\r\n onboardingCode: string | null,\r\n email: string | null,\r\n recaptchaToken: string,\r\n fboTenantName: string | null\r\n ): Observable {\r\n const url = '/Account/activate-fbo-mapping'\r\n const data = {\r\n migrationToken,\r\n onboardingCode,\r\n email,\r\n recaptchaToken,\r\n fboTenantName,\r\n }\r\n\r\n return this.axios.post(url, data)\r\n }\r\n\r\n setUserRegisteredOn(): Observable {\r\n const idToken = this.currentCognitoUserSubject.value\r\n ?.getSignInUserSession()\r\n ?.getIdToken()\r\n .getJwtToken()\r\n const headers = {\r\n Authorization: `Bearer ${idToken}`,\r\n }\r\n\r\n const url = 'Account/set-user-registered-on'\r\n return this.axios.put(url, null, { headers })\r\n }\r\n\r\n redirectToClientPortal(\r\n customQueryParams?: object,\r\n socialLogin?: boolean\r\n ): void {\r\n const callbackURL = getCallbackURL()\r\n let queryParams: any\r\n if (socialLogin) {\r\n queryParams = {\r\n ...customQueryParams,\r\n token: authStore.getStateValue().currentUserSocialSession?.idToken,\r\n }\r\n } else {\r\n const isOtpLogin = customQueryParams && 'isOtpLogin' in customQueryParams\r\n const isAnonymousShare =\r\n customQueryParams && 'isAnonymousShare' in customQueryParams\r\n const { currentOtpUser } = authStore.getStateValue()\r\n const isOptUserSubject = currentOtpUser ? currentOtpUser?.token : ''\r\n if (isAnonymousShare) {\r\n queryParams = {\r\n ...customQueryParams,\r\n }\r\n } else if (isOtpLogin) {\r\n queryParams = {\r\n ...customQueryParams,\r\n token: isOptUserSubject,\r\n }\r\n } else {\r\n queryParams = {\r\n token: this.currentCognitoUserSubject.value\r\n ? this.currentCognitoUserSubject.value\r\n .getSignInUserSession()\r\n ?.getIdToken()\r\n .getJwtToken()\r\n : isOptUserSubject,\r\n ...customQueryParams,\r\n }\r\n }\r\n }\r\n\r\n if (callbackURL && queryParams.token) {\r\n const destinationURL = getDestinationURL()\r\n if (destinationURL) {\r\n queryParams.destinationURL = decodeURIComponent(destinationURL)\r\n localStorage.removeItem(ClientQueryParams.destinationURL)\r\n }\r\n\r\n // window.opener.length > 1 = GTM debugger active\r\n // GTM debugger uses window.opener\r\n if (window.opener && window.opener.length > 1) {\r\n const callbackHref = `${decodeURIComponent(\r\n callbackURL\r\n )}?${new URLSearchParams(queryParams)}`\r\n\r\n closePopupWindow(callbackHref)\r\n } else {\r\n window.location.href = `${decodeURIComponent(\r\n callbackURL\r\n )}?${new URLSearchParams(queryParams)}`\r\n }\r\n }\r\n }\r\n\r\n setLoginType(): void {\r\n let loginType = localStorage.getItem(ClientQueryParams.loginType)\r\n if (loginType) {\r\n loginType =\r\n loginType === LoginTypes.Contractor &&\r\n environment.ENABLE_CONTRACTOR_LOGIN !== 'true'\r\n ? LoginTypes.Client\r\n : loginType\r\n authStore.dispatch({\r\n loginType: loginType as LoginTypes,\r\n })\r\n }\r\n }\r\n\r\n resendUserInvitation(\r\n email: string,\r\n recaptchaToken: string,\r\n fboMigrationToken?: string | null,\r\n onboardingCode?: string | null,\r\n portalCode?: string | null // For client portal HM extended flow\r\n ): Observable {\r\n const { originBase, destinationURL } = localStorageValues\r\n const url = '/Account/resend-user-invitation'\r\n\r\n const body = {\r\n email,\r\n fboMigrationToken,\r\n recaptchaToken,\r\n originBase,\r\n onboardingCode,\r\n portalCode,\r\n destinationUrl: destinationURL,\r\n }\r\n\r\n return this.axios.post(url, body)\r\n }\r\n\r\n getMappedAuthOptions = (authConfig: IAuthConfig): void => {\r\n const { loginType } = authStore.getStateValue()\r\n if (!loginType) return\r\n\r\n const optionKey = LoginTypeUniversalMapper(loginType.toLowerCase())\r\n const options = authConfig[optionKey]\r\n if (options) {\r\n authStore.setAuthConfigOptions(options)\r\n }\r\n }\r\n\r\n getSiteConfigurationByOriginBase(): Observable {\r\n const url = `${this.SiteConfigurationEndPoint}/single?baseUrl=${localStorageValues.originBase}`\r\n return this.axios.get(url).pipe(\r\n map(({ data }) => {\r\n authStore.setSiteConfig(data)\r\n this.getMappedAuthOptions(data.authConfig)\r\n return data\r\n })\r\n )\r\n }\r\n\r\n getUserInfoByEmail(email: string, recaptchaToken: string): Observable {\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n const url = `/Account/user-info?${new URLSearchParams({\r\n email,\r\n })}`\r\n return this.axios\r\n .get(url, { headers })\r\n .pipe(map(({ data }) => data))\r\n }\r\n\r\n clientSignup(\r\n email: string,\r\n firstName: string,\r\n lastName: string,\r\n password: string,\r\n recaptchaToken: string\r\n ): Observable {\r\n const url = 'Account/client/sign-up'\r\n const body = {\r\n email,\r\n password,\r\n recaptchaToken,\r\n firstName,\r\n lastName,\r\n vendorCode: getVendorCode(),\r\n originBase: localStorageValues.originBase,\r\n callbackURL: localStorageValues.callbackUrl,\r\n destinationURL:\r\n localStorageValues.destinationURL || ProtectedLinksEnum.Dashboard,\r\n authPortalBase: localStorageValues.authPortalBase,\r\n }\r\n\r\n return this.axios.post(url, body).pipe(\r\n switchMap(() =>\r\n this.authenticate({\r\n username: email,\r\n password,\r\n queryParams: { firstLogin: true },\r\n })\r\n )\r\n )\r\n }\r\n\r\n resendEmailVerification(\r\n destinationURL: string,\r\n loginType: LoginTypes,\r\n newCPUser?: boolean,\r\n token?: string\r\n ): Observable {\r\n let headers = {}\r\n if (token) {\r\n headers = {\r\n Authorization: `Bearer ${token}`,\r\n }\r\n }\r\n return this.axios.post(\r\n `${environment.AUTH_API_URL}/Account/resend-confirmation-code`,\r\n {\r\n destinationURL,\r\n loginType: loginType.toLowerCase(),\r\n newCPUser: newCPUser || false,\r\n callBackUrl: localStorageValues.originBase,\r\n },\r\n {\r\n headers,\r\n }\r\n )\r\n }\r\n\r\n getCollaboratorInfo(\r\n recaptchaToken: string,\r\n email: string,\r\n token?: string\r\n ): Observable {\r\n const headers = {\r\n recaptchaToken,\r\n }\r\n return this.axios\r\n .get(\r\n `${\r\n environment.AUTH_API_URL\r\n }/Account/collaborator-user-info?${new URLSearchParams({\r\n email,\r\n originBase: window.location.origin,\r\n ...(token && { token }),\r\n })}`,\r\n { headers }\r\n )\r\n .pipe(\r\n map(({ data }) => {\r\n return data\r\n })\r\n )\r\n }\r\n\r\n trackActivity(\r\n email: string,\r\n activityType: ActivityType,\r\n isSuccess: boolean,\r\n errorMessage?: string\r\n ): Observable {\r\n return this.axios\r\n .post(\r\n `${environment.AUTH_API_URL}/Account/user-authentication-activity-log`,\r\n {\r\n email,\r\n activityType,\r\n isSuccess,\r\n errorMessage,\r\n }\r\n )\r\n .pipe(map(() => {}))\r\n }\r\n\r\n catchErrorWrapper(\r\n email: string,\r\n activityType: ActivityType,\r\n isSuccess: boolean,\r\n context = ''\r\n ): any {\r\n return catchError((error: AxiosError) => {\r\n const cognitoErrorCode = errorToString(error)\r\n this.trackActivity(\r\n email,\r\n activityType,\r\n isSuccess,\r\n cognitoErrorCode\r\n ).subscribe()\r\n return throwError(\r\n () =>\r\n new Error(\r\n awsService.translateAWSErrors(cognitoErrorCode, i18n, context)\r\n )\r\n )\r\n })\r\n }\r\n\r\n refreshUserSessionInfo(): Observable {\r\n return new Observable((observer) => {\r\n const user = Pool.getCurrentUser() // Get user from Cognito's cache (local storage)\r\n if (user) {\r\n this.currentCognitoUserSubject.value = user\r\n\r\n // This will automatically get a new id token if refresh token is valid\r\n user.getSession((error: Error | null, session: CognitoUserSession) => {\r\n if (error) {\r\n observer.error(error.message)\r\n this.rollbar.error(error)\r\n } else {\r\n this.setCurrentUserSession(session)\r\n const idToken: string = session.getIdToken().getJwtToken()\r\n observer.next({ idToken })\r\n observer.complete()\r\n }\r\n })\r\n } else {\r\n observer.error('No user found in localstorage')\r\n this.rollbar.warning('No user found in cognito local storage')\r\n }\r\n })\r\n }\r\n\r\n setCognitoSignInUserSession(socialLoginTokens: ISocialLoginTokens): void {\r\n // Create a new session baed on what we stored from social login\r\n const newUserSession = new CognitoUserSession({\r\n AccessToken: new CognitoAccessToken({\r\n AccessToken: socialLoginTokens.accessToken,\r\n }),\r\n IdToken: new CognitoIdToken({\r\n IdToken: socialLoginTokens.idToken,\r\n }),\r\n RefreshToken: new CognitoRefreshToken({\r\n RefreshToken: socialLoginTokens.refreshToken,\r\n }),\r\n })\r\n\r\n const email = newUserSession.getIdToken().decodePayload()?.email || ''\r\n\r\n // For Social Login the user is not saved in local storage\r\n // we create one using the email from the token\r\n const user = new CognitoUser({\r\n Username: email,\r\n Pool,\r\n })\r\n\r\n user.setSignInUserSession(newUserSession)\r\n user.getSession((error: Error | null, session: CognitoUserSession) => {\r\n if (error) {\r\n this.rollbar.error(error)\r\n } else {\r\n this.setCurrentUserSession(session)\r\n this.currentCognitoUserSubject.value = user\r\n }\r\n })\r\n }\r\n\r\n private catchAwsError(error: AxiosError): Observable {\r\n const cognitoErrorCode = errorToString(error)\r\n return throwError(\r\n () => new Error(awsService.translateAWSErrors(cognitoErrorCode, i18n))\r\n )\r\n }\r\n\r\n private refreshUserAttributes(): Observable {\r\n return new Observable((observer) => {\r\n if (this.currentCognitoUserSubject.value) {\r\n this.currentCognitoUserSubject.value.getUserAttributes(\r\n (error: Error | undefined, attributes) => {\r\n if (error) {\r\n observer.error(error.message)\r\n this.rollbar.error(error)\r\n } else if (attributes) {\r\n const mappings = attributes.reduce(\r\n (obj, item) =>\r\n Object.assign(obj, {\r\n [item.Name]: item.Value,\r\n }),\r\n {}\r\n )\r\n observer.next({\r\n email: '',\r\n email_verified: '',\r\n name: '',\r\n sub: '',\r\n ...mappings,\r\n })\r\n observer.complete()\r\n }\r\n }\r\n )\r\n } else {\r\n observer.error()\r\n this.rollbar.error()\r\n }\r\n })\r\n }\r\n\r\n private setCurrentUserSession(cognitoUserSession: CognitoUserSession): void {\r\n authStore.setCurrentUserSession(cognitoUserSession)\r\n }\r\n\r\n // arrow syntax has to be used to pass `this` reference\r\n private handleResponse = (response: AxiosResponse): AxiosResponse => {\r\n if (environment.ENABLE_PERFORMANCE_TRACKING === 'true') {\r\n this.performanceTrackingService.sendPerfTracking({ response })\r\n }\r\n return response\r\n }\r\n\r\n private handleResponseError = (error: AxiosError): Promise => {\r\n const { response } = error\r\n if (response && response.status >= 400 && response.status !== 404) {\r\n this.rollbar.error(error)\r\n }\r\n if (response && environment.ENABLE_PERFORMANCE_TRACKING === 'true') {\r\n this.performanceTrackingService.sendPerfTracking({\r\n response,\r\n isError: true,\r\n })\r\n }\r\n return Promise.reject(error)\r\n }\r\n\r\n static getOrCreate(): AuthService {\r\n const observable = new WindowedObservable(\r\n InjectableServices.AuthService\r\n )\r\n const state = observable.getLastEvent()\r\n\r\n if (state) {\r\n return state\r\n }\r\n\r\n const instance = new AuthService()\r\n observable.publish(instance)\r\n return instance\r\n }\r\n}\r\n","import { useMemo } from 'react'\r\n\r\nimport { AuthService } from '@auth-portal/services'\r\n\r\nexport const useAuthService = (): AuthService => {\r\n return useMemo(() => AuthService.getOrCreate(), [])\r\n}\r\n","import { LoginTypes, useSubjectSelector } from '@procom-labs/common'\r\n\r\nimport { authStore } from '@auth-portal/store'\r\n\r\ninterface ILoginProfiles {\r\n isContractorLogin: boolean\r\n isClientLogin: boolean\r\n isCustomerLogin: boolean\r\n isGorillaResumeLogin: boolean\r\n}\r\n\r\nexport const useLoginTypes = (): ILoginProfiles => {\r\n const { loginType } = useSubjectSelector(authStore, ['loginType'])\r\n\r\n const isContractorLogin =\r\n loginType?.toLowerCase() === LoginTypes.Contractor.toLowerCase()\r\n const isClientLogin =\r\n loginType?.toLowerCase() === LoginTypes.Client.toLowerCase()\r\n const isCustomerLogin =\r\n loginType?.toLowerCase() === LoginTypes.Customer.toLowerCase()\r\n const isGorillaResumeLogin =\r\n loginType?.toLowerCase() === LoginTypes.GorillaResume.toLowerCase()\r\n\r\n return {\r\n isContractorLogin,\r\n isClientLogin,\r\n isCustomerLogin,\r\n isGorillaResumeLogin,\r\n }\r\n}\r\n","import { useSubjectSelector } from '@procom-labs/common'\r\n\r\nimport { authStore } from '@auth-portal/store'\r\n\r\nexport const useIsUserCreationAllowed = (): boolean => {\r\n const { authConfigOptions } = useSubjectSelector(authStore, [\r\n 'authConfigOptions',\r\n ])\r\n\r\n if (authConfigOptions) return authConfigOptions?.isUserCreationAllowed\r\n return false\r\n}\r\n","function _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n } catch (_) {}\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nimport { BaseSubjectStore } from '../subject-store';\nvar FeatureFlagStore = /*#__PURE__*/ function(BaseSubjectStore) {\n \"use strict\";\n _inherits(FeatureFlagStore, BaseSubjectStore);\n function FeatureFlagStore() {\n _class_call_check(this, FeatureFlagStore);\n return _call_super(this, FeatureFlagStore, arguments);\n }\n _create_class(FeatureFlagStore, [\n {\n key: \"getDefaultValue\",\n value: function getDefaultValue() {\n return {\n featureFlags: []\n };\n }\n },\n {\n key: \"setFeatureFlags\",\n value: function setFeatureFlags(flags) {\n this.dispatch({\n featureFlags: flags\n });\n }\n }\n ]);\n return FeatureFlagStore;\n}(BaseSubjectStore);\nexport var featureFlagStore = new FeatureFlagStore();\n","import { AuthProfileType, LoginTypes } from '@procom-labs/common'\r\n\r\nexport enum SignUpRoutes {\r\n SignUp = '/signup',\r\n SignUpEmail = '/signup-email',\r\n SignupComplete = '/signup-complete',\r\n SignupResumeOtp = '/signup-resume',\r\n ValidateSignIn = '/validate-signin',\r\n}\r\n\r\nexport enum SocialLoginContext {\r\n Signup = 'signup',\r\n Login = 'login',\r\n}\r\n\r\nexport enum LogoSizeOptions {\r\n Small = 'small',\r\n Medium = 'medium',\r\n MediumToLarge = 'medium to large',\r\n Large = 'large',\r\n XLarge = 'xlarge',\r\n}\r\n\r\nexport const loginToProfileTypeMap = new Map([\r\n [LoginTypes.Employer, [AuthProfileType.Recruiter]],\r\n [LoginTypes.Contractor, [AuthProfileType.Contractor]],\r\n [LoginTypes.Customer, [AuthProfileType.ClientService]],\r\n [\r\n LoginTypes.Client,\r\n [\r\n AuthProfileType.HiringManager,\r\n AuthProfileType.AccountManager,\r\n AuthProfileType.ResourceManager,\r\n ],\r\n ],\r\n])\r\n\r\nexport enum FlowRequestType {\r\n loginRedirect = 'loginRedirect',\r\n signup = 'signup',\r\n}\r\n\r\nexport enum AwsUserStatusTypes {\r\n CONFIRMED = 'CONFIRMED',\r\n FORCE_CHANGE_PASSWORD = 'FORCE_CHANGE_PASSWORD',\r\n}\r\n","export var FeatureFlagNames = /*#__PURE__*/ function(FeatureFlagNames) {\n FeatureFlagNames[\"ResumeOnePager\"] = \"ResumeOnePager\";\n FeatureFlagNames[\"SelfServeRecruiting\"] = \"SelfServeRecruiting\";\n FeatureFlagNames[\"SelfServeRecruitingExposeCandidateContactInfo\"] = \"SelfServeRecruiting-ExposeCandidateContactInfo\";\n FeatureFlagNames[\"MS_SSO_Multitenant\"] = \"MS-SSO-Multitenant\";\n return FeatureFlagNames;\n}({});\n","import { useEffect, useState } from 'react'\r\nimport { useSearchParams } from 'react-router-dom'\r\nimport { Subscription } from 'rxjs'\r\n\r\nimport {\r\n ClientQueryParams,\r\n FeatureFlagNames,\r\n IFeatureFlag,\r\n LoginTypes,\r\n useFeatureFlags,\r\n useUtilsService,\r\n} from '@procom-labs/common'\r\n\r\nimport { loginToProfileTypeMap } from '@auth-portal/types'\r\n\r\nexport const useIsMsMultiTenantClient = (): boolean => {\r\n const utilsService = useUtilsService()\r\n const { featureFlags } = useFeatureFlags()\r\n const [searchParams] = useSearchParams()\r\n const [isMSMultiTenantClient, setIsMSMultiTenantClient] =\r\n useState(false)\r\n\r\n const loginTypeParam = searchParams.get(ClientQueryParams.loginType)\r\n\r\n useEffect(() => {\r\n let subscription = new Subscription()\r\n if (featureFlags?.length === 0) {\r\n subscription = utilsService.getVendorFeatureFlags().subscribe({\r\n next: (flags: IFeatureFlag[]) => {\r\n const MSMultiTenantFlag = flags.find(\r\n (flag) => flag.featureName === FeatureFlagNames.MS_SSO_Multitenant\r\n )\r\n const {\r\n enabled: isMSMultiTenant = false,\r\n eligibleProfileTypes = [],\r\n } = MSMultiTenantFlag || {}\r\n const userLoginType =\r\n loginTypeParam || localStorage.getItem('loginType')\r\n\r\n if (userLoginType) {\r\n const modifiedUserLoginType = (userLoginType\r\n .charAt(0)\r\n .toUpperCase() +\r\n userLoginType.slice(1).toLowerCase()) as LoginTypes\r\n\r\n const profileTypes = loginToProfileTypeMap.get(\r\n modifiedUserLoginType\r\n )\r\n const shouldShowMsSsoButton =\r\n isMSMultiTenant &&\r\n eligibleProfileTypes.some((profileType) =>\r\n profileTypes?.includes(profileType)\r\n )\r\n setIsMSMultiTenantClient(shouldShowMsSsoButton)\r\n } else {\r\n setIsMSMultiTenantClient(false)\r\n }\r\n },\r\n })\r\n }\r\n return () => {\r\n if (subscription && !subscription.closed) {\r\n subscription.unsubscribe()\r\n }\r\n }\r\n }, [loginTypeParam, featureFlags?.length])\r\n\r\n return isMSMultiTenantClient\r\n}\r\n","import { useCallback } from 'react';\nimport { featureFlagStore, useSubjectSelector } from '../store';\nexport var useFeatureFlags = function() {\n var featureFlags = useSubjectSelector(featureFlagStore, [\n 'featureFlags'\n ]).featureFlags;\n var setFeatureFlags = useCallback(function(flags) {\n featureFlagStore.setFeatureFlags(flags);\n }, []);\n return {\n featureFlags: featureFlags,\n setFeatureFlags: setFeatureFlags\n };\n};\n","export default __webpack_public_path__ + \"static/media/logo-black-text.ad6ddc315d2806ad019892ac18c6c86a.svg\";","export default __webpack_public_path__ + \"static/media/logo.37dd3ac6fe7817177385c88dd72ae6c6.svg\";","import React, { useMemo } from 'react'\r\nimport { t } from 'i18next'\r\nimport { useTranslation } from 'react-i18next'\r\n\r\nimport { Button, Stack, SxProps, Theme, Typography } from '@mui/material'\r\nimport { PreferredLanguageType, useClientService } from '@procom-labs/common'\r\n\r\nconst LangBtnSx: SxProps = {\r\n fontSize: '13px',\r\n fontWeight: 900,\r\n lineHeight: 1.7,\r\n minWidth: '37px',\r\n borderRadius: '50px',\r\n textDecoration: 'none',\r\n '&:hover': { textDecoration: 'none' },\r\n '&.Mui-disabled': {\r\n color: '#372E52',\r\n backgroundColor: 'common.white',\r\n },\r\n '&:not(.Mui-disabled)': {\r\n color: 'primary.main',\r\n },\r\n}\r\n\r\nexport const LanguageSwitcher: React.FC<{}> = () => {\r\n const { i18n } = useTranslation('main')\r\n\r\n const clientService = useClientService()\r\n\r\n const isFrenchSelected = useMemo(() => {\r\n return (\r\n i18n.language?.toLowerCase() === PreferredLanguageType.FR.toLowerCase()\r\n )\r\n }, [i18n.language])\r\n\r\n const handleLanguage = (e: any): void => {\r\n i18n.changeLanguage(e.target.value).then(() => {\r\n clientService.resaveClientSettings()\r\n })\r\n }\r\n return (\r\n \r\n \r\n {t('footer.languages.title')}\r\n \r\n \r\n \r\n {t('footer.languages.en')}\r\n \r\n \r\n {t('footer.languages.fra')}\r\n \r\n \r\n \r\n )\r\n}\r\n","import React from 'react'\r\nimport { TFuncKey, useTranslation } from 'react-i18next'\r\nimport { Link as RouterLink, useLocation } from 'react-router-dom'\r\nimport { useObservable } from 'rxjs-hooks'\r\n\r\nimport { Box, Link, Stack, styled, Typography } from '@mui/material'\r\nimport { LoginTypes, useClientService, useSubjectSelector } from '@procom-labs/common'\r\n\r\nimport { authStore } from '@auth-portal/store'\r\n\r\nimport { SignUpRoutes } from '../../types'\r\nimport { LanguageSwitcher } from '../language-switcher'\r\n\r\nconst Disclaimer = styled(\r\n Box,\r\n {}\r\n)(() => ({\r\n display: 'flex',\r\n justifyItems: 'center',\r\n flexDirection: 'column',\r\n width: '100%',\r\n marginTop: 'auto',\r\n}))\r\n\r\nexport const Footer: React.FC<{}> = () => {\r\n const location = useLocation()\r\n const { t } = useTranslation('main')\r\n\r\n const clientService = useClientService()\r\n\r\n const { loginType } = useSubjectSelector(authStore, ['loginType'])\r\n\r\n const clientName = useObservable(() => clientService.clientName$)\r\n\r\n return (\r\n \r\n \r\n {Object.values(SignUpRoutes).join().indexOf(location.pathname) >= 0 &&\r\n location.pathname !== '/' ? null : (\r\n <>\r\n {loginType === LoginTypes.Employer && (\r\n \r\n {t('footer.goToOur')}\r\n \r\n {t(\r\n `clientsSettings.${clientName?.toLowerCase()}.bannerText.contractor.description` as TFuncKey\r\n )}\r\n \r\n \r\n )}\r\n \r\n )}\r\n \r\n \r\n \r\n )\r\n}\r\n","import React, { useEffect } from 'react'\r\n\r\nimport { Box, Grid, useMediaQuery, useTheme } from '@mui/material'\r\nimport { GorillaGrid } from '@procom-labs/atoms'\r\nimport {\r\n AppTypes,\r\n PaletteModeCode,\r\n useClientService,\r\n} from '@procom-labs/common'\r\n\r\nimport authPortalBackgroundSvg from '@auth-portal/assets/portal/background.svg'\r\nimport { useAuthService } from '@auth-portal/hooks'\r\nimport BrandLogoDarkSvg from '@common-assets/brand/logo-black-text.svg'\r\nimport BrandLogoSvg from '@common-assets/brand/logo.svg'\r\n\r\nimport { Banner } from './banner'\r\nimport { Footer } from './footer'\r\n\r\nconst innerGridStyles = {\r\n borderRadius: '20px',\r\n alignItems: 'center',\r\n minHeight: '810px',\r\n paddingX: { xs: 4, xl: 6, k2: 10 },\r\n pb: '50px',\r\n my: 3,\r\n textAlign: 'center',\r\n}\r\n\r\nexport const BaseLayout: React.FC<{}> = React.memo(({ children }) => {\r\n const theme = useTheme()\r\n const isDesktop = useMediaQuery(theme.breakpoints.up('lg'))\r\n\r\n const authService = useAuthService()\r\n const clientService = useClientService()\r\n\r\n const brandLogoSrc =\r\n theme.palette.logoMode === PaletteModeCode.light\r\n ? BrandLogoDarkSvg\r\n : BrandLogoSvg\r\n\r\n useEffect(() => {\r\n clientService.getSettings(AppTypes.auth)\r\n authService.setLoginType()\r\n }, [])\r\n return (\r\n \r\n {isDesktop ? (\r\n \r\n \r\n \r\n ) : null}\r\n\r\n \r\n \r\n {children}\r\n \r\n