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ASvW,SAAQC,GAAO6I,aAAaoE,WAAWjN,IAAK,C,6BCThKrC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQiQ,mCAAgC,EACxC,MAAMyI,EAA0B,qBAUhC1Y,EAAQiQ,8BAD8B4B,GAAOA,GAAO6G,EAAwBC,KAAK9G,GAAOA,EAAI0D,QAAQmD,EAAyB,KAAO7G,GAAO,G,+BCb3I/R,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQoS,sBAAmB,EAC3B,IAAIwF,EAAmB,EAAQ,OAW/B5X,EAAQoS,iBARiBwG,IAEvBla,OAAO0P,UAAU,UAAW,eAAgB,CAC1CyK,UAAW,CACTC,kBAAkB,EAAIlB,EAAiBjB,iBAAiBiC,KAE1D,C,6BCbJ9Y,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQkS,4BAAyB,EAKjClS,EAAQkS,uBAJuB,EAC7BvC,kBACAzC,qBACKyC,IAAoBzC,C,6BCP3BpN,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQwO,oBAAiB,EAIzBxO,EAAQwO,eAHe,CAACuK,EAAUC,KAChC3H,WAAW0H,EAAUC,EAAM,C","sources":["webpack://oriwebmessengerapp/./src/App.tsx","webpack://oriwebmessengerapp/./src/logger.ts","webpack://oriwebmessengerapp/./src/appRender.tsx","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Button/Button.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Button/constants.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Button/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Button/styles.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Icon/Icon.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Icon/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Icon/styles.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/Icon/types.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/WebMessenger/WebMessenger.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/WebMessenger/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/components/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/constants-generated.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/constants/app.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/constants/defaultTranslations.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/constants/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/containers/ApiProvider.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/containers/WebMessengerController.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/containers/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/contexts/externalAuthContext.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/contexts/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/contexts/webMessengerContext.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useCreateAuthenticatedSession.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useGetWebMessengerConfiguration.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useIsButtonVisible.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useOpenChatQueryParamOnMount.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useSendCustomerAttributes.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useSetWindowOriGenesysPlugin.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/hooks/useTranslations.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/logger.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/queries-net/customerQuery.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/queries-net/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/authUtils.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/generateAuthUrl.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/getCustomerData.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/index.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/prepareGenesysScript.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/purgeLocalStorage.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/removeLanguageFromUrl.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/sendCustomerData.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/shouldSkipGraphqlQuery.js","webpack://oriwebmessengerapp/../../packages/web-messenger/dist/cjs/utils/waitAndExecute.js"],"sourcesContent":["/* istanbul ignore file -- Client app related file */\n\nimport { ServiceUrlsProvider } from '@ori/configuration-manager';\nimport { EnvironmentProvider } from '@ori/environment';\nimport { TranslationsProvider } from '@ori/i18n';\nimport { WebMessengerController } from '@ori/web-messenger';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const App = ({\n currentLanguage,\n globalApiUrl,\n graphqlUrl,\n graphqlNetUrl,\n identityUrl,\n staticApiUrl,\n tenant\n}) => /*#__PURE__*/_jsx(ServiceUrlsProvider, {\n serviceUrls: {\n staticApiUrl,\n graphQlUrl: graphqlUrl,\n graphQlNetUrl: graphqlNetUrl,\n globalApiUrl,\n identityUrl\n },\n children: /*#__PURE__*/_jsx(EnvironmentProvider, {\n tenant: tenant,\n children: /*#__PURE__*/_jsx(TranslationsProvider, {\n defaultTranslationsWithNamespaces: {},\n language: currentLanguage,\n translationsWithNamespaces: {},\n children: /*#__PURE__*/_jsx(WebMessengerController, {})\n })\n })\n});","import { Logger } from '@ori/logger';\nimport { PACKAGE_NAME, TEAM_NAME } from './constants-generated';\nexport const mainLogger = new Logger(PACKAGE_NAME, {\n teamName: TEAM_NAME\n});","/* istanbul ignore file -- Client app related file */\nimport { ThemeProvider } from '@ori-ui/mui';\nimport { AuthorizationCodeTokenClient, doDevelopmentLogin, IDENTITY_CLIENT_ID, OidcUrlHelper, UniversalTokenProvider } from '@ori/auth';\nimport { parseClientAppConfig } from '@ori/client-app-config';\nimport { ApplicationInsights, ErrorBoundary, getClientApplicationInsightsConfig } from '@ori/logger';\nimport { App } from './App';\nimport { EMOTION_CACHE_KEY } from './constants-generated';\nimport { mainLogger } from './logger';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst localLogger = mainLogger.createChild('appRender');\nexport async function render(rootElement) {\n // Handle iframe redirect stop app after getting auth code to not duplicate itself as we can't use router\n const searchParams = new URLSearchParams(window.location.hash.split('?')[1]);\n const {\n config = ''\n } = rootElement.dataset;\n const {\n customerId,\n ...appConfig\n } = parseClientAppConfig(config, []);\n const {\n identityUrl,\n tenant\n } = appConfig;\n\n // Initialize Application Insights in production\n if (process.env.NODE_ENV === 'production') {\n ApplicationInsights.initialize(getClientApplicationInsightsConfig());\n }\n // When using Requestly we do not want to load token\n else if (process.env.REACT_APP_USE_REQUESTLY === '1') {\n localLogger.debug('USING REQUESTLY');\n }\n // Get token for local development\n else if (process.env.REACT_APP_ANONYMOUS_MODE !== '1') {\n if (identityUrl) {\n await doDevelopmentLogin({\n identityUrl,\n tenant\n });\n } else {\n localLogger.error(new Error('Missing Identity URL!', {\n cause: identityUrl\n }));\n }\n }\n // extract token from URL; only on dev machine, not needed elsewhere\n if (process.env.NODE_ENV !== 'production' && searchParams.has('state')) {\n const oidcUrlHelper = new OidcUrlHelper();\n const tokenClient = new AuthorizationCodeTokenClient({\n clientId: IDENTITY_CLIENT_ID,\n identityUrl\n });\n oidcUrlHelper.storeAuthCodeFromParams(searchParams);\n await tokenClient.initializeTokenFromAuthorizationCode();\n oidcUrlHelper.handleRedirectAfterLogin();\n }\n const {\n createRoot\n } = await import('react-dom/client');\n createRoot(rootElement).render(/*#__PURE__*/_jsx(ErrorBoundary, {\n logger: localLogger,\n children: /*#__PURE__*/_jsx(UniversalTokenProvider, {\n customerId: customerId,\n initialToken: \"\",\n children: /*#__PURE__*/_jsx(ThemeProvider, {\n enableCacheProvider: true,\n cacheKey: EMOTION_CACHE_KEY,\n children: /*#__PURE__*/_jsx(App, {\n ...appConfig\n })\n })\n })\n }));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Button = void 0;\nvar _webMessengerContext = require(\"../../contexts/webMessengerContext\");\nvar _hooks = require(\"../../hooks\");\nvar _useCreateAuthenticatedSession = require(\"../../hooks/useCreateAuthenticatedSession\");\nvar _useSendCustomerAttributes = require(\"../../hooks/useSendCustomerAttributes\");\nvar _Icon = require(\"../Icon\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Button = () => {\n const {\n translations\n } = (0, _hooks.useTranslations)();\n const {\n loading,\n isChatOpened,\n openChatWindow\n } = (0, _webMessengerContext.useWebMessenger)();\n (0, _useSendCustomerAttributes.useSendCustomerAttributes)();\n (0, _useCreateAuthenticatedSession.useCreateAuthenticatedSession)();\n (0, _hooks.useOpenChatQueryParamOnMount)();\n const {\n isButtonVisible\n } = (0, _hooks.useIsButtonVisible)();\n (0, _hooks.useSetWindowOriGenesysPlugin)();\n if (!isButtonVisible) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ButtonComponent, {\n \"data-testid\": _constants.WEB_MESSENGER_BUTTON,\n isChatOpened: isChatOpened,\n onClick: openChatWindow,\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {\n isChatOpened: isChatOpened,\n loading: loading\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Label, {\n children: isChatOpened && !loading ? translations.closeChat : translations.chatWithUs\n })]\n });\n};\nexports.Button = Button;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.WEB_MESSENGER_BUTTON = void 0;\nconst WEB_MESSENGER_BUTTON = exports.WEB_MESSENGER_BUTTON = 'web-messenger-button';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Button = require(\"./Button\");\nObject.keys(_Button).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Button[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Button[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Label = exports.ButtonComponent = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nconst ButtonComponent = exports.ButtonComponent = (0, _mui.styled)('div')(({\n isChatOpened,\n theme\n}) => {\n const buttonExpanded = {\n maxWidth: '100%',\n transitionDelay: '0s',\n div: {\n opacity: 1,\n transitionDelay: '0.2s'\n }\n };\n return {\n alignItems: 'center',\n background: theme.palette.default.main,\n borderRadius: '30px',\n bottom: '15px',\n boxShadow: _mui.SHADOW_LEVEL1,\n boxSizing: 'unset',\n color: theme.palette.common.white,\n cursor: 'pointer',\n direction: 'rtl',\n display: 'flex',\n flexDirection: 'row',\n height: '60px',\n maxWidth: '60px',\n overflow: 'hidden',\n position: 'fixed',\n right: '15px',\n textAlign: 'center',\n textOverflow: 'ellipsis',\n textTransform: 'uppercase',\n transition: 'max-width 0.5s ease-in-out 0.2s',\n userSelect: 'none',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n width: 'auto',\n zIndex: 100,\n [theme.breakpoints.up('md')]: {\n bottom: '30px',\n right: '30px'\n },\n '&:focus, &:hover': buttonExpanded,\n ...(isChatOpened ? buttonExpanded : undefined)\n };\n});\nconst Label = exports.Label = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'block',\n fontSize: '1.4rem',\n fontWeight: theme.typography.fontWeightBold,\n opacity: 0,\n paddingLeft: theme.spacing(4),\n transition: 'opacity 0.3s ease-in-out'\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Icon = void 0;\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Icon = ({\n isChatOpened,\n loading\n}) => {\n if (loading) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Progress, {\n size: 26\n });\n }\n return isChatOpened ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.CloseIcon, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.OpenIcon, {});\n};\nexports.Icon = Icon;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Icon = require(\"./Icon\");\nObject.keys(_Icon).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Icon[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Icon[key];\n }\n });\n});\nvar _types = require(\"./types\");\nObject.keys(_types).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _types[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _types[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Progress = exports.OpenIcon = exports.CloseIcon = void 0;\nvar _icons = require(\"@ori-ui/icons\");\nvar _mui = require(\"@ori-ui/mui\");\nconst getIconStyles = ({\n theme\n}) => ({\n display: 'flex',\n height: '32px',\n padding: theme.spacing(0, 2.8, 0, 2),\n width: '32px'\n});\nconst OpenIcon = exports.OpenIcon = (0, _mui.styled)(_icons.BubbleHelpFilled)(getIconStyles);\nconst CloseIcon = exports.CloseIcon = (0, _mui.styled)(_icons.Clear)(getIconStyles);\nconst Progress = exports.Progress = (0, _mui.styled)(_mui.CircularProgress)(({\n theme\n}) => ({\n margin: theme.spacing(3)\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.WebMessenger = void 0;\nvar _webMessengerContext = require(\"../../contexts/webMessengerContext\");\nvar _Button = require(\"../Button\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst WebMessenger = () => {\n const {\n deploymentId\n } = (0, _webMessengerContext.useWebMessenger)();\n return deploymentId ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {}) : null;\n};\nexports.WebMessenger = WebMessenger;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _WebMessenger = require(\"./WebMessenger\");\nObject.keys(_WebMessenger).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _WebMessenger[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _WebMessenger[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _WebMessenger = require(\"./WebMessenger\");\nObject.keys(_WebMessenger).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _WebMessenger[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _WebMessenger[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TEAM_NAME = exports.PACKAGE_NAME = exports.EMOTION_CACHE_KEY = exports.APP_ROOT_ELEMENT_ID = exports.APP_NAME = void 0;\n/* istanbul ignore file */\n//\n// DO NOT EDIT!\n// This file was autogenerated by Eddie.\n// Changes may cause incorrect behavior and will be lost when the file is regenerated.\n//\n// Run `npx eddie update workspace` to regenerate.\n//\n\nconst APP_NAME = exports.APP_NAME = 'web-messenger';\nconst PACKAGE_NAME = exports.PACKAGE_NAME = '@ori/web-messenger';\nconst TEAM_NAME = exports.TEAM_NAME = 'Presentation';\nconst EMOTION_CACHE_KEY = exports.EMOTION_CACHE_KEY = `${APP_NAME}-emotion-cache-key`;\nconst APP_ROOT_ELEMENT_ID = exports.APP_ROOT_ELEMENT_ID = `${APP_NAME}-root`;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.REDIRECT_URI_BASE = exports.REDIRECT_URI = exports.MESSENGER_DELAY = exports.ISSUER_STORAGE_PARAMETER_FOR_GENESYS = exports.AUTH_IFRAME_ID = exports.AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS = void 0;\n// istanbul ignore file -- No need to test constants.\n\n/**\n * Iframe id for authentication.\n */\nconst AUTH_IFRAME_ID = exports.AUTH_IFRAME_ID = 'GenesysAuthFrame';\n\n/**\n * Auth Code storage parameter.\n */\nconst AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS = exports.AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS = 'genesysAuthCode';\n\n/**\n * Issuer storage parameter.\n */\nconst ISSUER_STORAGE_PARAMETER_FOR_GENESYS = exports.ISSUER_STORAGE_PARAMETER_FOR_GENESYS = 'genesysIssuer';\n\n/**\n * Base URI for authentication.\n */\nconst REDIRECT_URI_BASE = exports.REDIRECT_URI_BASE = `https://clientapp-${process.env.NODE_ENV === 'production' ? '' : 'test-'}cdn.oriflame.com`;\n\n/**\n * Redirect URI for authentication.\n */\nconst REDIRECT_URI = exports.REDIRECT_URI = `${REDIRECT_URI_BASE}/static/web-messenger/auth-callback/index.html`;\nconst MESSENGER_DELAY = exports.MESSENGER_DELAY = 2000;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.translationsNamespace = exports.defaultTranslations = void 0;\n/* istanbul ignore file */\n\n/**\n * DO NOT EDIT!\n * This file was autogenerated by npm script `localizations-codegen`.\n * Changes may cause incorrect behavior and will be lost when the file is regenerated.\n *\n * Run `npx localizations-codegen` to regenerate.\n */\n\nconst defaultTranslations = exports.defaultTranslations = {\n chatWithUs: 'Chat with us',\n closeChat: 'Close chat'\n};\nconst translationsNamespace = exports.translationsNamespace = 'web-messenger';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _app = require(\"./app\");\nObject.keys(_app).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _app[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _app[key];\n }\n });\n});\nvar _defaultTranslations = require(\"./defaultTranslations\");\nObject.keys(_defaultTranslations).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _defaultTranslations[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _defaultTranslations[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ApiProvider = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _environment = require(\"@ori/environment\");\nvar _globalApiClientReact = require(\"@ori/global-api-client-react\");\nvar _i18n = require(\"@ori/i18n\");\nvar _staticApiClientReact = require(\"@ori/static-api-client-react\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n// istanbul ignore file -- No need to test wrapping with providers.\n\nconst ApiProvider = ({\n children\n}) => {\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n language\n } = (0, _i18n.useTranslationsWithNamespaces)();\n const {\n globalApiUrl,\n staticApiUrl\n } = (0, _configurationManager.useServiceUrls)(['globalApi', 'staticApi']);\n const {\n token\n } = (0, _auth.useToken)();\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_globalApiClientReact.ApiClientProvider, {\n baseUrl: globalApiUrl,\n language: language,\n tenant: tenant,\n token: token,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_staticApiClientReact.ApiClientProvider, {\n baseUrl: staticApiUrl,\n language: language,\n tenant: tenant,\n children: children\n })\n });\n};\nexports.ApiProvider = ApiProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.WebMessengerController = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _environment = require(\"@ori/environment\");\nvar _i18n = require(\"@ori/i18n\");\nvar _logger = require(\"@ori/logger\");\nvar _testidGenerator = require(\"@ori/testid-generator\");\nvar _react = require(\"react\");\nvar _components = require(\"../components\");\nvar _constants = require(\"../constants\");\nvar _constantsGenerated = require(\"../constants-generated\");\nvar _contexts = require(\"../contexts\");\nvar _webMessengerContext = require(\"../contexts/webMessengerContext\");\nvar _logger2 = require(\"../logger\");\nvar _ApiProvider = require(\"./ApiProvider\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n// istanbul ignore file -- No need to test wrapping with providers.\n\nconst localLogger = _logger2.mainLogger.createChild('WebMessengerController');\nconst onError = error => localLogger.error(new Error('TranslationsProvider fetching failed', {\n cause: error\n}));\nconst WebMessengerController = ({\n preloadGenesysScript,\n translations\n}) => {\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n language\n } = (0, _i18n.useTranslationsWithNamespaces)();\n const {\n staticApiUrl\n } = (0, _configurationManager.useServiceUrls)(['staticApi']);\n const {\n token\n } = (0, _auth.useToken)();\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_testidGenerator.TestIdProvider, {\n team: _testidGenerator.Team.Presentation,\n project: _constantsGenerated.APP_NAME,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_logger.LoggerProvider, {\n logger: _logger2.mainLogger,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_logger.ErrorBoundary, {\n areaName: \"WebMessengerController\",\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {\n fallback: null,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ApiProvider.ApiProvider, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.TranslationsProvider, {\n language: language,\n defaultTranslationsWithNamespaces: {\n [_constants.translationsNamespace]: _constants.defaultTranslations\n },\n translationsWithNamespaces: translations ? {\n [_constants.translationsNamespace]: translations\n } : undefined,\n clientFetchConfiguration: {\n tenant,\n token,\n baseUrl: staticApiUrl,\n onError\n },\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.TranslationsNamespaceProvider, {\n namespace: _constants.translationsNamespace,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_contexts.ExternalAuthProvider, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_webMessengerContext.WebMessengerProvider, {\n preloadGenesysScript: preloadGenesysScript,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.WebMessenger, {})\n })\n })\n })\n })\n })\n })\n })\n })\n });\n};\nexports.WebMessengerController = WebMessengerController;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _ApiProvider = require(\"./ApiProvider\");\nObject.keys(_ApiProvider).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _ApiProvider[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _ApiProvider[key];\n }\n });\n});\nvar _WebMessengerController = require(\"./WebMessengerController\");\nObject.keys(_WebMessengerController).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _WebMessengerController[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _WebMessengerController[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useExternalAuth = exports.externalAuthContext = exports.ExternalAuthProvider = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _environment = require(\"@ori/environment\");\nvar _logger = require(\"@ori/logger\");\nvar _react = require(\"react\");\nvar _constants = require(\"../constants\");\nvar _utils = require(\"../utils\");\nvar _authUtils = require(\"../utils/authUtils\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst externalAuthContext = exports.externalAuthContext = /*#__PURE__*/(0, _react.createContext)({\n codeVerifier: ''\n});\nconst {\n Provider\n} = externalAuthContext;\nconst ExternalAuthProvider = ({\n children\n}) => {\n // istanbul ignore next -- No need to test undefined tenant case.\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n identityUrl\n } = (0, _configurationManager.useServiceUrls)(['identity']);\n const {\n customerId\n } = (0, _auth.useToken)();\n const localLogger = (0, _logger.useLogger)('ExternalAuthProvider');\n const [codeVerifier, setCodeVerifier] = (0, _react.useState)('');\n (0, _react.useEffect)(() => {\n const handleMessage = event => {\n if (event.data.source === 'genesysAuth' && event.data.code && event.data.iss) {\n localStorage.setItem(_constants.AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS, event.data.code);\n localStorage.setItem(_constants.ISSUER_STORAGE_PARAMETER_FOR_GENESYS, event.data.iss);\n document.getElementById(_constants.AUTH_IFRAME_ID)?.remove();\n }\n };\n window.addEventListener('message', handleMessage);\n return () => window.removeEventListener('message', handleMessage);\n }, []);\n (0, _react.useEffect)(() => {\n if (customerId !== _auth.NOT_LOGGED_IN_USER_ID) {\n // istanbul ignore next -- No need to test setup of iframe.\n (0, _authUtils.generateVerifierAndChallenge)().then(({\n codeChallenge,\n codeVerifier: newCodeVerifier\n }) => {\n const authUrl = (0, _utils.generateAuthUrl)({\n codeChallenge,\n identityUrl,\n tenant\n });\n setCodeVerifier(newCodeVerifier);\n const iframe = document.createElement('iframe');\n iframe.id = _constants.AUTH_IFRAME_ID;\n iframe.src = authUrl;\n iframe.sandbox.add('allow-forms');\n iframe.sandbox.add('allow-scripts');\n iframe.sandbox.add('allow-same-origin');\n iframe.hidden = true;\n iframe.style.visibility = 'hidden';\n iframe.style.display = 'none';\n document.body.append(iframe);\n return () => iframe.remove();\n }).catch(error => {\n localLogger.error(new Error('Generating of a code verifier and a code challenge for PKCE failed', {\n cause: error\n }));\n });\n }\n }, [customerId, identityUrl, localLogger, tenant]);\n const value = (0, _react.useMemo)(() => ({\n codeVerifier\n }), [codeVerifier]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: value,\n children: children\n });\n};\nexports.ExternalAuthProvider = ExternalAuthProvider;\nconst useExternalAuth = () => (0, _react.useContext)(externalAuthContext);\nexports.useExternalAuth = useExternalAuth;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _externalAuthContext = require(\"./externalAuthContext\");\nObject.keys(_externalAuthContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _externalAuthContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _externalAuthContext[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.webMessengerContextDefaultValue = exports.webMessengerContext = exports.useWebMessenger = exports.WebMessengerProvider = void 0;\nvar _presentationHooks = require(\"@ori/presentation-hooks\");\nvar _react = require(\"react\");\nvar _useGetWebMessengerConfiguration = require(\"../hooks/useGetWebMessengerConfiguration\");\nvar _utils = require(\"../utils\");\nvar _purgeLocalStorage = require(\"../utils/purgeLocalStorage\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n/* istanbul ignore file -- Does not make sense to test loading of script */\n\n/* eslint-disable new-cap -- Genesys preset naming */\n\nconst webMessengerContextDefaultValue = exports.webMessengerContextDefaultValue = {\n isChatOpened: false,\n isScriptLoaded: false,\n isMessengerReady: false,\n loading: false,\n openChatWindow: () => {},\n closeChatWindow: () => {},\n deploymentId: ''\n};\nconst webMessengerContext = exports.webMessengerContext = /*#__PURE__*/(0, _react.createContext)(webMessengerContextDefaultValue);\nconst {\n Provider\n} = webMessengerContext;\nconst MESSENGER_DELAY = 3000;\nconst WebMessengerProvider = ({\n preloadGenesysScript,\n children\n}) => {\n const [isScriptLoaded, setIsScriptLoaded] = (0, _react.useState)(false);\n const [isMessengerReady, setIsMessengerReady] = (0, _react.useState)(false);\n const [loading, setLoading] = (0, _react.useState)(false);\n const [isChatOpened, setIsChatOpened] = (0, _react.useState)(false);\n const {\n data\n } = (0, _useGetWebMessengerConfiguration.useGetWebMessengerConfiguration)();\n const {\n deploymentId,\n environment,\n scriptUrl\n } = data ?? {};\n const events = (0, _react.useMemo)(() => [{\n name: 'beforeunload',\n listener: _purgeLocalStorage.purgeLocalStorage\n }], []);\n (0, _presentationHooks.useGlobalEvents)(events);\n const loadScript = (0, _react.useCallback)(() => {\n const onLoad = () => {\n setIsScriptLoaded(true);\n window.Genesys?.('subscribe', 'Messenger.Ready', () => setIsMessengerReady(true));\n };\n const script = (0, _utils.prepareGenesysScript)({\n deploymentId,\n environment,\n scriptUrl\n });\n if (script) {\n script.addEventListener('load', onLoad);\n document.head.append(script);\n return () => script.remove();\n }\n return undefined;\n }, [deploymentId, environment, scriptUrl]);\n (0, _react.useEffect)(() => {\n if (preloadGenesysScript && deploymentId && !isScriptLoaded) {\n loadScript();\n }\n }, [deploymentId, isScriptLoaded, loadScript, preloadGenesysScript]);\n const openChatWindow = (0, _react.useCallback)(() => {\n setIsChatOpened(true);\n if (!isScriptLoaded) {\n setLoading(true);\n loadScript();\n }\n (0, _utils.waitAndExecute)(() => {\n window.Genesys?.('command', 'Messenger.open');\n setLoading(false);\n }, isScriptLoaded && isMessengerReady ? 0 : MESSENGER_DELAY);\n }, [isMessengerReady, loadScript, isScriptLoaded]);\n const closeChatWindow = (0, _react.useCallback)(() => {\n setIsChatOpened(false);\n if (isScriptLoaded && isMessengerReady) {\n window.Genesys?.('command', 'Messenger.close');\n }\n }, [isMessengerReady, isScriptLoaded]);\n (0, _react.useEffect)(() => {\n if (isScriptLoaded && isMessengerReady) {\n window.Genesys?.('subscribe', 'Messenger.closed', closeChatWindow);\n }\n }, [isMessengerReady, closeChatWindow, isScriptLoaded]);\n const value = (0, _react.useMemo)(() => ({\n isScriptLoaded,\n isChatOpened,\n openChatWindow,\n closeChatWindow,\n loading,\n deploymentId,\n isMessengerReady\n }), [isMessengerReady, isScriptLoaded, isChatOpened, openChatWindow, closeChatWindow, loading, deploymentId]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: value,\n children: children\n });\n};\nexports.WebMessengerProvider = WebMessengerProvider;\nconst useWebMessenger = () => (0, _react.useContext)(webMessengerContext);\nexports.useWebMessenger = useWebMessenger;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _useIsButtonVisible = require(\"./useIsButtonVisible\");\nObject.keys(_useIsButtonVisible).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useIsButtonVisible[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useIsButtonVisible[key];\n }\n });\n});\nvar _useOpenChatQueryParamOnMount = require(\"./useOpenChatQueryParamOnMount\");\nObject.keys(_useOpenChatQueryParamOnMount).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useOpenChatQueryParamOnMount[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useOpenChatQueryParamOnMount[key];\n }\n });\n});\nvar _useTranslations = require(\"./useTranslations\");\nObject.keys(_useTranslations).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useTranslations[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useTranslations[key];\n }\n });\n});\nvar _useSetWindowOriGenesysPlugin = require(\"./useSetWindowOriGenesysPlugin\");\nObject.keys(_useSetWindowOriGenesysPlugin).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useSetWindowOriGenesysPlugin[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useSetWindowOriGenesysPlugin[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useCreateAuthenticatedSession = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _react = require(\"react\");\nvar _constants = require(\"../constants\");\nvar _contexts = require(\"../contexts\");\nvar _webMessengerContext = require(\"../contexts/webMessengerContext\");\nvar _utils = require(\"../utils\");\n/**\n * Due to iframe and its redirect I have to wait few seconds before I can register plugin.\n */\nconst useCreateAuthenticatedSession = () => {\n const {\n customerId\n } = (0, _auth.useToken)();\n const {\n codeVerifier\n } = (0, _contexts.useExternalAuth)();\n const {\n isScriptLoaded\n } = (0, _webMessengerContext.useWebMessenger)();\n (0, _react.useEffect)(() => {\n if (customerId !== _auth.NOT_LOGGED_IN_USER_ID && isScriptLoaded) {\n (0, _utils.waitAndExecute)(\n // istanbul ignore next -- Genesys API\n () =>\n // eslint-disable-next-line new-cap, @typescript-eslint/no-unsafe-return -- Genesys preset naming,\n window.Genesys?.('registerPlugin', 'AuthProvider', AuthProvider => {\n AuthProvider.registerCommand('getAuthCode', e => {\n e.resolve({\n authCode: localStorage.getItem(_constants.AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS),\n codeVerifier,\n iss: localStorage.getItem(_constants.ISSUER_STORAGE_PARAMETER_FOR_GENESYS),\n redirectUri: _constants.REDIRECT_URI\n });\n localStorage.removeItem(_constants.AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS);\n });\n AuthProvider.registerCommand('reAuthenticate', e => {\n /*\n In case there is no valid auth-code or refresh token it should again open login form but in this case we are using hidden iframe.\n */\n e.resolve(undefined);\n });\n AuthProvider.ready();\n }), _constants.MESSENGER_DELAY);\n }\n }, [codeVerifier, customerId, isScriptLoaded]);\n};\nexports.useCreateAuthenticatedSession = useCreateAuthenticatedSession;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useGetWebMessengerConfiguration = exports.isUseGetTenantApplicationsWebMessengerConfigurationEnabled = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _environment = require(\"@ori/environment\");\nvar _fetching = require(\"@ori/fetching\");\nvar _presentationHttp = require(\"@ori/presentation-http\");\nvar _presentationUtils = require(\"@ori/presentation-utils\");\nvar _staticApiClientReact = require(\"@ori/static-api-client-react\");\nvar _utils = require(\"../utils\");\nconst isUseGetTenantApplicationsWebMessengerConfigurationEnabled = ({\n customerTypeId,\n isAuthenticated,\n relativeUrl,\n visitorSegment\n}) => !!relativeUrl && (!isAuthenticated || customerTypeId !== undefined && visitorSegment !== undefined);\nexports.isUseGetTenantApplicationsWebMessengerConfigurationEnabled = isUseGetTenantApplicationsWebMessengerConfigurationEnabled;\nconst useGetWebMessengerConfiguration = () => {\n const {\n customerId\n } = (0, _auth.useToken)();\n // istanbul ignore next -- No need to test undefined tenant case.\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n customerTypeId,\n visitorSegment\n } = (0, _presentationHttp.useGetCustomerInfo)({\n customerId\n });\n const isAuthenticated = (0, _auth.isAuthenticatedCustomer)(customerId);\n // istanbul ignore next -- No need to test isSSR.\n const relativeUrl = (0, _presentationUtils.isSSR)() ? undefined : (0, _utils.removeLanguageFromRelativeUrl)(window.location.pathname);\n return (0, _staticApiClientReact.useGetTenantApplicationsWebMessengerConfiguration)(tenant, {\n customerTypeId,\n relativeUrl,\n visitorSegment\n }, {\n swr: {\n enabled: isUseGetTenantApplicationsWebMessengerConfigurationEnabled({\n customerTypeId,\n isAuthenticated,\n relativeUrl,\n visitorSegment\n }),\n revalidateIfStale: false,\n revalidateOnFocus: false,\n revalidateOnReconnect: false\n },\n request: {\n validateStatus: _fetching.validateStatus\n }\n });\n};\nexports.useGetWebMessengerConfiguration = useGetWebMessengerConfiguration;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useIsButtonVisible = void 0;\nvar _environment = require(\"@ori/environment\");\nvar _presentationUtils = require(\"@ori/presentation-utils\");\nvar _staticApiClientReact = require(\"@ori/static-api-client-react\");\nvar _react = require(\"react\");\nvar _webMessengerContext = require(\"../contexts/webMessengerContext\");\n/** Turns on chatbot ANNA */\nconst UseNewBotChat = '986DF7FE-88E1-4742-B77F-43DC8B3D2F76';\n\n/**\n * Checks if chat-bot is used and if chat is opened.\n * If chat-bot is used WebMessenger button is visible right after chat-bot opens WebMessenger.\n * If chat-bot is not used WebMessenger button is always visible.\n */\nconst useIsButtonVisible = () => {\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n isChatOpened\n } = (0, _webMessengerContext.useWebMessenger)();\n const [isButtonVisible, setIsButtonVisible] = (0, _react.useState)(false);\n const {\n data: {\n isEnabled\n } = {\n isEnabled: true\n }\n } = (0, _staticApiClientReact.useGetTenantFeatureToggle)(tenant, UseNewBotChat, {\n swr: (0, _presentationUtils.getRetryErrorSwrOptions)()\n });\n (0, _react.useEffect)(() => {\n if (isChatOpened || !isEnabled) {\n setIsButtonVisible(true);\n }\n }, [isChatOpened, isEnabled]);\n return {\n isButtonVisible\n };\n};\nexports.useIsButtonVisible = useIsButtonVisible;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useOpenChatQueryParamOnMount = void 0;\nvar _presentationUtils = require(\"@ori/presentation-utils\");\nvar _react = require(\"react\");\nvar _webMessengerContext = require(\"../contexts/webMessengerContext\");\nconst DELAY = 500;\n\n/** Runs openChatWindow with a delay when `openChat` query param is `true` and script is loaded. */\nconst useOpenChatQueryParamOnMount = () => {\n const {\n openChatWindow\n } = (0, _webMessengerContext.useWebMessenger)();\n const actionExecuted = (0, _react.useRef)(false);\n (0, _react.useEffect)(() => {\n const openChatAsString = (0, _presentationUtils.getClientQueryParam)('openChat');\n const openChat = openChatAsString === 'true';\n if (!actionExecuted.current && openChat) {\n const timeoutId = setTimeout(() => {\n openChatWindow();\n actionExecuted.current = true;\n }, DELAY);\n return () => clearTimeout(timeoutId);\n }\n return () => {};\n }, [openChatWindow]);\n};\nexports.useOpenChatQueryParamOnMount = useOpenChatQueryParamOnMount;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useSendCustomerAttributes = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _environment = require(\"@ori/environment\");\nvar _fetching = require(\"@ori/fetching\");\nvar _i18n = require(\"@ori/i18n\");\nvar _logger = require(\"@ori/logger\");\nvar _react = require(\"react\");\nvar _constantsGenerated = require(\"../constants-generated\");\nvar _webMessengerContext = require(\"../contexts/webMessengerContext\");\nvar _queriesNet = require(\"../queries-net\");\nvar _utils = require(\"../utils\");\nconst useSendCustomerAttributes = () => {\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n language\n } = (0, _i18n.useTranslationsWithNamespaces)();\n const {\n graphQlNetUrl\n } = (0, _configurationManager.useServiceUrls)(['graphQlNet']);\n const {\n customerId,\n token\n } = (0, _auth.useToken)();\n const {\n isScriptLoaded\n } = (0, _webMessengerContext.useWebMessenger)();\n const localLogger = (0, _logger.useLogger)('useSendCustomerAttributes');\n const isAuthenticated = (0, _auth.isAuthenticatedCustomer)(customerId);\n const [attributesSent, setAttributesSent] = (0, _react.useState)(false);\n const {\n data,\n error\n } = (0, _fetching.useGraphqlQuery)({\n query: _queriesNet.customerQuery,\n url: graphQlNetUrl,\n headers: (0, _fetching.getHeaders)({\n customerId,\n language,\n sourceAppName: _constantsGenerated.PACKAGE_NAME,\n tenant,\n token\n }),\n skip: (0, _utils.shouldSkipGraphqlQuery)({\n isAuthenticated,\n isScriptLoaded\n }),\n swrConfig: {\n revalidateIfStale: false,\n revalidateOnFocus: false,\n revalidateOnReconnect: false\n }\n });\n if (error) {\n localLogger.error(new Error('useGraphqlQuery customerQuery', {\n cause: error\n }));\n }\n (0, _react.useEffect)(() => {\n if (isScriptLoaded && (data != null || error != null || !isAuthenticated)) {\n (0, _utils.sendCustomerData)({\n language,\n data,\n tenant\n });\n setAttributesSent(true);\n }\n }, [isScriptLoaded, data, error, isAuthenticated, language, tenant]);\n return {\n attributesSent\n };\n};\nexports.useSendCustomerAttributes = useSendCustomerAttributes;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useSetWindowOriGenesysPlugin = void 0;\nvar _react = require(\"react\");\nvar _webMessengerContext = require(\"../contexts/webMessengerContext\");\n// istanbul ignore next -- No need to test this function.\nconst emptyFunction = () => {};\n// istanbul ignore next -- No need to test this function.\nconst nullFunction = () => null;\n\n/**\n * Sets the OriGenesysPlugin object on the window object.\n * Object is used by chat-bot to communicate with WebMessenger and to open WebMessenger.\n */\nconst useSetWindowOriGenesysPlugin = () => {\n const {\n deploymentId,\n closeChatWindow,\n openChatWindow\n } = (0, _webMessengerContext.useWebMessenger)();\n (0, _react.useEffect)(() => {\n if (deploymentId && !window.oriGenesysPlugin) {\n const value = {\n ininChat: {\n clearUserData: emptyFunction,\n events: {\n CHAT_DISCONNECT: '',\n CLOSE: '',\n COMPLETE: '',\n INIT: '',\n OPEN_ERROR: '',\n READY: '',\n RECONNECT_FAILURE: '',\n subscribe: emptyFunction,\n unsubscribe: emptyFunction\n },\n getChatId: nullFunction,\n handleClose: closeChatWindow,\n iFrame: {\n load: openChatWindow\n },\n openChatWindow,\n popup: {\n close: emptyFunction,\n login: emptyFunction,\n minimize: emptyFunction,\n open: emptyFunction\n },\n server: {\n sendMessage: emptyFunction\n },\n toggle: emptyFunction,\n toggleVisibility: emptyFunction\n }\n };\n Object.defineProperty(window, 'oriGenesysPlugin', {\n writable: true,\n value\n });\n }\n }, [closeChatWindow, deploymentId, openChatWindow]);\n};\nexports.useSetWindowOriGenesysPlugin = useSetWindowOriGenesysPlugin;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useTranslations = void 0;\nvar _i18n = require(\"@ori/i18n\");\n/* istanbul ignore file */\n\n/**\n * DO NOT EDIT!\n * This file was autogenerated by npm script `localizations-codegen`.\n * Changes may cause incorrect behavior and will be lost when the file is regenerated.\n *\n * Run `npx localizations-codegen` to regenerate.\n */\n\n/**\n * A hook for accessing translations within a specific namespace along with a formatting function.\n *\n * @returns The translations within the specified namespace and a formatting function.\n */\nconst useTranslations = () => (0, _i18n.useTranslationsFromNamespace)();\nexports.useTranslations = useTranslations;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"WebMessengerController\", {\n enumerable: true,\n get: function () {\n return _containers.WebMessengerController;\n }\n});\nObject.defineProperty(exports, \"defaultTranslations\", {\n enumerable: true,\n get: function () {\n return _constants.defaultTranslations;\n }\n});\nObject.defineProperty(exports, \"translationsNamespace\", {\n enumerable: true,\n get: function () {\n return _constants.translationsNamespace;\n }\n});\nvar _containers = require(\"./containers\");\nvar _constants = require(\"./constants\");","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mainLogger = void 0;\nvar _logger = require(\"@ori/logger\");\nvar _constantsGenerated = require(\"./constants-generated\");\nconst mainLogger = exports.mainLogger = new _logger.Logger(_constantsGenerated.PACKAGE_NAME, {\n teamName: _constantsGenerated.TEAM_NAME\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.customerQuery = void 0;\nvar _fetching = require(\"@ori/fetching\");\nconst customerQuery = exports.customerQuery = (0, _fetching.gql)`\n query GetCustomer {\n customer {\n firstName\n lastName\n emails {\n emailAddress\n }\n consultantNumber\n customerId\n phones {\n telephoneNumber\n }\n customerType {\n description\n }\n }\n }\n`;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _customerQuery = require(\"./customerQuery\");\nObject.keys(_customerQuery).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _customerQuery[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _customerQuery[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.generateVerifierAndChallenge = exports.dec2hex = void 0;\n/**\n * Converts a decimal number to a hexadecimal string.\n *\n * @param {number} dec - The decimal number to be converted to hexadecimal.\n * @returns {string} The hexadecimal representation of the input decimal number.\n */\nconst dec2hex = dec => `0${dec.toString(16)}`.slice(-2);\n\n/**\n * Generates a random code verifier for PKCE (Proof Key for Code Exchange) authentication.\n *\n * @returns {string} A random code verifier represented as a hexadecimal string.\n */\nexports.dec2hex = dec2hex;\nconst generateCodeVerifier = () => {\n const array = new Uint32Array(56 / 2);\n window.crypto.getRandomValues(array);\n return Array.from(array, dec2hex).join('');\n};\n\n/**\n * Generates an SHA-256 hash of a string.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest\n *\n * @param {string} plain - The string to be hashed.\n */\nconst sha256 = async plain => {\n const encoder = new TextEncoder();\n const data = encoder.encode(plain);\n return window.crypto.subtle.digest('SHA-256', data);\n};\n\n/**\n * Base64url encoding is similar to base64 encoding except it uses non-reserved URL characters\n * (e.g., '-', '_', '~') instead of reserved URL characters (e.g., '+', '/', '=').\n *\n * @param {ArrayBuffer} a - The array buffer to be encoded.\n * @returns {string} The base64url encoded string.\n */\nconst base64urlEncode = a => {\n const bytes = new Uint8Array(a);\n const len = bytes.byteLength;\n let str = '';\n for (let i = 0; i < len; i++) {\n const point = bytes[i];\n if (point !== undefined) {\n str += String.fromCodePoint(point);\n }\n }\n\n // eslint-disable-next-line unicorn/better-regex -- We need not to change the regex\n return btoa(str).replaceAll('+', '-').replaceAll('/', '_').replace(/[=]+$/, '');\n};\n\n/**\n * Generates a code challenge from a code verifier for PKCE (Proof Key for Code Exchange) authentication.\n * The code challenge is a base64url encoded SHA-256 hash of the code verifier.\n *\n * See https://tools.ietf.org/html/rfc7636#section-4.2 for more details.\n *\n * @param {string} v - The code verifier to generate a code challenge from.\n * @returns {string} The code challenge.\n *\n */\nasync function generateCodeChallengeFromVerifier(v) {\n const hashed = await sha256(v);\n return base64urlEncode(hashed);\n}\n/**\n * Generates a code verifier and a code challenge for PKCE (Proof Key for Code Exchange) authentication.\n * The code verifier is a random string and the code challenge is a base64url encoded SHA-256 hash of the code verifier.\n * See https://tools.ietf.org/html/rfc7636#section-4.2 for more details.\n *\n * @returns {VerifierAndChallenge} The code verifier and the code challenge.\n *\n */\nconst generateVerifierAndChallenge = async () => {\n const codeVerifier = generateCodeVerifier();\n const codeChallenge = await generateCodeChallengeFromVerifier(codeVerifier);\n return {\n codeChallenge,\n codeVerifier\n };\n};\nexports.generateVerifierAndChallenge = generateVerifierAndChallenge;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.generateAuthUrl = void 0;\nvar _constants = require(\"../constants\");\nconst generateAuthUrl = ({\n codeChallenge,\n identityUrl,\n tenant\n}) => {\n // Quick hack for identityUrl until it's fixed on FP, sometimes it contains url {tenant}.online.ori which is wrong.\n const fixedIdentityUrl = identityUrl.includes('online.ori') ? 'https://identity-we.oriflame.com' : identityUrl;\n const url = new URL(fixedIdentityUrl);\n url.pathname = '/connect/authorize';\n url.searchParams.append('scope', 'all');\n url.searchParams.append('prompt', 'none');\n url.searchParams.append('client_id', 'GenesysWebMessenger');\n url.searchParams.append('response_type', 'code');\n url.searchParams.append('code_challenge_method', `S256`);\n url.searchParams.append('acr_values', `tenant:${tenant}`);\n url.searchParams.append('code_challenge', codeChallenge);\n url.searchParams.append('redirect_uri', _constants.REDIRECT_URI);\n return url.toString();\n};\nexports.generateAuthUrl = generateAuthUrl;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getCustomerData = void 0;\n/* eslint-disable @typescript-eslint/naming-convention -- Genesys preset naming */\n\nconst getCustomerData = ({\n data,\n language,\n tenant\n}) => {\n const {\n customerId: customerCustomerId,\n consultantNumber,\n customerType,\n emails,\n firstName,\n lastName,\n phones\n } = data?.customer ?? {};\n const response = {\n 'context.customField1Label': 'Customer Title',\n 'context.customField1': customerType?.description ?? 'Anonymous',\n 'context.customField2Label': 'Consultant Number',\n 'context.customField2': consultantNumber ?? '',\n 'context.customField3Label': 'Language Code',\n 'context.customField3': language.slice(0, 2).toUpperCase(),\n 'context.customField4Label': 'Market Code',\n 'context.customField4': tenant.toUpperCase(),\n 'context.customerId': customerCustomerId ?? '',\n 'context.email': emails?.[0]?.emailAddress ?? '',\n 'context.firstName': firstName ?? '',\n 'context.lastName': lastName ?? '',\n 'context.phoneNumber': phones?.[0]?.telephoneNumber ?? '',\n 'context.source': 'web'\n };\n\n // eslint-disable-next-line no-console -- debug info required to investigate issues\n console.log(response);\n return response;\n};\nexports.getCustomerData = getCustomerData;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _generateAuthUrl = require(\"./generateAuthUrl\");\nObject.keys(_generateAuthUrl).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _generateAuthUrl[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _generateAuthUrl[key];\n }\n });\n});\nvar _getCustomerData = require(\"./getCustomerData\");\nObject.keys(_getCustomerData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getCustomerData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getCustomerData[key];\n }\n });\n});\nvar _prepareGenesysScript = require(\"./prepareGenesysScript\");\nObject.keys(_prepareGenesysScript).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _prepareGenesysScript[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _prepareGenesysScript[key];\n }\n });\n});\nvar _sendCustomerData = require(\"./sendCustomerData\");\nObject.keys(_sendCustomerData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _sendCustomerData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _sendCustomerData[key];\n }\n });\n});\nvar _waitAndExecute = require(\"./waitAndExecute\");\nObject.keys(_waitAndExecute).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _waitAndExecute[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _waitAndExecute[key];\n }\n });\n});\nvar _removeLanguageFromUrl = require(\"./removeLanguageFromUrl\");\nObject.keys(_removeLanguageFromUrl).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _removeLanguageFromUrl[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _removeLanguageFromUrl[key];\n }\n });\n});\nvar _shouldSkipGraphqlQuery = require(\"./shouldSkipGraphqlQuery\");\nObject.keys(_shouldSkipGraphqlQuery).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _shouldSkipGraphqlQuery[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _shouldSkipGraphqlQuery[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.prepareGenesysScript = void 0;\nconst prepareGenesysScript = ({\n deploymentId,\n environment,\n scriptUrl\n} = {}) => {\n if (!window.Genesys) {\n Object.defineProperty(window, 'Genesys', {\n writable: true,\n value: {}\n });\n }\n if (deploymentId && environment && scriptUrl) {\n window._genesysJs = 'Genesys';\n Object.defineProperty(window, 'Genesys', {\n writable: true,\n value: {\n t: Date.now(),\n c: {\n environment,\n deploymentId,\n debug: process.env.NODE_ENV !== 'production'\n }\n }\n });\n const script = document.createElement('script');\n script.src = scriptUrl;\n return script;\n }\n return null;\n};\nexports.prepareGenesysScript = prepareGenesysScript;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.purgeLocalStorage = void 0;\n/**\n * Genesys cloud stores some data in local storage.\n * This function removes it to be able to auto login again.\n */\nconst purgeLocalStorage = () => {\n Object.keys(localStorage).filter(key => key.startsWith('_act') || key.includes(':gcm') || key.startsWith('_gca')).forEach(key => localStorage.removeItem(key));\n};\nexports.purgeLocalStorage = purgeLocalStorage;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.removeLanguageFromRelativeUrl = void 0;\nconst REGEX_FOR_LANGUAGE_CODE = /^\\/[a-z]{2}(\\/|$)/i;\n\n/**\n * Remove language code from url\n * /kz/products => /products\n * /kz => /\n *\n * @param url\n */\nconst removeLanguageFromRelativeUrl = url => url && REGEX_FOR_LANGUAGE_CODE.test(url) ? url.replace(REGEX_FOR_LANGUAGE_CODE, '/') : url ?? '/';\nexports.removeLanguageFromRelativeUrl = removeLanguageFromRelativeUrl;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sendCustomerData = void 0;\nvar _getCustomerData = require(\"./getCustomerData\");\n// istanbul ignore file -- Calling Genesys API\n\nconst sendCustomerData = customerDataParams => {\n // eslint-disable-next-line new-cap -- Genesys preset naming\n window.Genesys?.('command', 'Database.set', {\n messaging: {\n customAttributes: (0, _getCustomerData.getCustomerData)(customerDataParams)\n }\n });\n};\nexports.sendCustomerData = sendCustomerData;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.shouldSkipGraphqlQuery = void 0;\nconst shouldSkipGraphqlQuery = ({\n isAuthenticated,\n isScriptLoaded\n}) => !isAuthenticated || !isScriptLoaded;\nexports.shouldSkipGraphqlQuery = shouldSkipGraphqlQuery;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.waitAndExecute = void 0;\nconst waitAndExecute = (callback, delay) => {\n setTimeout(callback, delay);\n};\nexports.waitAndExecute = waitAndExecute;"],"names":["App","currentLanguage","globalApiUrl","graphqlUrl","graphqlNetUrl","identityUrl","staticApiUrl","tenant","ServiceUrlsProvider","serviceUrls","graphQlUrl","graphQlNetUrl","children","EnvironmentProvider","TranslationsProvider","defaultTranslationsWithNamespaces","language","translationsWithNamespaces","localLogger","Logger","teamName","createChild","async","render","rootElement","URLSearchParams","window","location","hash","split","config","dataset","customerId","appConfig","parseClientAppConfig","ApplicationInsights","initialize","getClientApplicationInsightsConfig","createRoot","ErrorBoundary","logger","UniversalTokenProvider","initialToken","ThemeProvider","enableCacheProvider","cacheKey","Object","defineProperty","exports","value","Button","_webMessengerContext","_hooks","_useCreateAuthenticatedSession","_useSendCustomerAttributes","_Icon","_constants","_styles","_jsxRuntime","translations","useTranslations","loading","isChatOpened","openChatWindow","useWebMessenger","useSendCustomerAttributes","useCreateAuthenticatedSession","useOpenChatQueryParamOnMount","isButtonVisible","useIsButtonVisible","useSetWindowOriGenesysPlugin","jsxs","ButtonComponent","WEB_MESSENGER_BUTTON","onClick","jsx","Icon","Label","closeChat","chatWithUs","_Button","keys","forEach","key","enumerable","get","_mui","styled","theme","buttonExpanded","maxWidth","transitionDelay","div","opacity","alignItems","background","palette","default","main","borderRadius","bottom","boxShadow","SHADOW_LEVEL1","boxSizing","color","common","white","cursor","direction","display","flexDirection","height","overflow","position","right","textAlign","textOverflow","textTransform","transition","userSelect","verticalAlign","whiteSpace","width","zIndex","breakpoints","up","undefined","fontSize","fontWeight","typography","fontWeightBold","paddingLeft","spacing","Progress","size","CloseIcon","OpenIcon","_types","_icons","getIconStyles","padding","BubbleHelpFilled","Clear","CircularProgress","margin","WebMessenger","deploymentId","_WebMessenger","TEAM_NAME","PACKAGE_NAME","EMOTION_CACHE_KEY","APP_ROOT_ELEMENT_ID","APP_NAME","REDIRECT_URI_BASE","REDIRECT_URI","MESSENGER_DELAY","ISSUER_STORAGE_PARAMETER_FOR_GENESYS","AUTH_IFRAME_ID","AUTH_CODE_STORAGE_PARAMETER_FOR_GENESYS","translationsNamespace","defaultTranslations","_app","_defaultTranslations","ApiProvider","_auth","_configurationManager","_environment","_globalApiClientReact","_i18n","_staticApiClientReact","useEnvironment","useTranslationsWithNamespaces","useServiceUrls","token","useToken","ApiClientProvider","baseUrl","WebMessengerController","_logger","_testidGenerator","_react","_components","_constantsGenerated","_contexts","_logger2","_ApiProvider","mainLogger","onError","error","Error","cause","preloadGenesysScript","TestIdProvider","team","Team","Presentation","project","LoggerProvider","areaName","Suspense","fallback","clientFetchConfiguration","TranslationsNamespaceProvider","namespace","ExternalAuthProvider","WebMessengerProvider","_WebMessengerController","useExternalAuth","externalAuthContext","_utils","_authUtils","createContext","codeVerifier","Provider","useLogger","setCodeVerifier","useState","useEffect","handleMessage","event","data","source","code","iss","localStorage","setItem","document","getElementById","remove","addEventListener","removeEventListener","NOT_LOGGED_IN_USER_ID","generateVerifierAndChallenge","then","codeChallenge","newCodeVerifier","authUrl","generateAuthUrl","iframe","createElement","id","src","sandbox","add","hidden","style","visibility","body","append","catch","useMemo","useContext","_externalAuthContext","webMessengerContextDefaultValue","webMessengerContext","_presentationHooks","_useGetWebMessengerConfiguration","_purgeLocalStorage","isScriptLoaded","isMessengerReady","closeChatWindow","setIsScriptLoaded","setIsMessengerReady","setLoading","setIsChatOpened","useGetWebMessengerConfiguration","environment","scriptUrl","events","name","listener","purgeLocalStorage","useGlobalEvents","loadScript","useCallback","onLoad","Genesys","script","prepareGenesysScript","head","waitAndExecute","_useIsButtonVisible","_useOpenChatQueryParamOnMount","_useTranslations","_useSetWindowOriGenesysPlugin","AuthProvider","registerCommand","e","resolve","authCode","getItem","redirectUri","removeItem","ready","isUseGetTenantApplicationsWebMessengerConfigurationEnabled","_fetching","_presentationHttp","_presentationUtils","customerTypeId","isAuthenticated","relativeUrl","visitorSegment","useGetCustomerInfo","isAuthenticatedCustomer","isSSR","removeLanguageFromRelativeUrl","pathname","useGetTenantApplicationsWebMessengerConfiguration","swr","enabled","revalidateIfStale","revalidateOnFocus","revalidateOnReconnect","request","validateStatus","setIsButtonVisible","isEnabled","useGetTenantFeatureToggle","getRetryErrorSwrOptions","actionExecuted","useRef","openChat","getClientQueryParam","current","timeoutId","setTimeout","clearTimeout","_queriesNet","attributesSent","setAttributesSent","useGraphqlQuery","query","customerQuery","url","headers","getHeaders","sourceAppName","skip","shouldSkipGraphqlQuery","swrConfig","sendCustomerData","emptyFunction","nullFunction","oriGenesysPlugin","ininChat","clearUserData","CHAT_DISCONNECT","CLOSE","COMPLETE","INIT","OPEN_ERROR","READY","RECONNECT_FAILURE","subscribe","unsubscribe","getChatId","handleClose","iFrame","load","popup","close","login","minimize","open","server","sendMessage","toggle","toggleVisibility","writable","useTranslationsFromNamespace","_containers","gql","_customerQuery","dec2hex","dec","toString","slice","generateCodeChallengeFromVerifier","v","a","bytes","Uint8Array","len","byteLength","str","i","point","String","fromCodePoint","btoa","replaceAll","replace","base64urlEncode","TextEncoder","encode","plain","crypto","subtle","digest","sha256","array","Uint32Array","getRandomValues","Array","from","join","generateCodeVerifier","fixedIdentityUrl","includes","URL","searchParams","getCustomerData","customerCustomerId","consultantNumber","customerType","emails","firstName","lastName","phones","customer","response","description","toUpperCase","emailAddress","telephoneNumber","console","log","_generateAuthUrl","_getCustomerData","_prepareGenesysScript","_sendCustomerData","_waitAndExecute","_removeLanguageFromUrl","_shouldSkipGraphqlQuery","_genesysJs","t","Date","now","c","debug","filter","startsWith","REGEX_FOR_LANGUAGE_CODE","test","customerDataParams","messaging","customAttributes","callback","delay"],"sourceRoot":""}