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AC3C,OAAOA,EAAIG,EAAID,CACjB,GAAGF,EACL,CAqBAnN,EAAQ2e,UAHU,KAChB9S,OAAOC,cAAc,IAAI2C,YAAYie,EAAUvsB,MAAM,C,6BC/BvDL,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQorB,uCAAoC,EAO5CprB,EAAQorB,kCANkC1pB,GACpCA,EAASuB,OAAS,GACbvB,EAASwB,OAAM6D,GAAWA,EAAQQ,+B","sources":["webpack://oriproductinfodialogspa/./src/App.tsx","webpack://oriproductinfodialogspa/./src/appRender.tsx","webpack://oriproductinfodialogspa/./src/logger.ts","webpack://oriproductinfodialogspa/../../packages/open-product-info-dialog/dist/cjs/event.js","webpack://oriproductinfodialogspa/../../packages/open-product-info-dialog/dist/cjs/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/getProductBoxConfiguration.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/getProductInfoDialogProducts/getProductInfoDialogProducts.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/getProductInfoDialogProducts/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/getProductInfoDialogProducts/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/mappers.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/api/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Buttons/Buttons.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Buttons/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Buttons/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Buttons/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/BuyButton/BuyButton.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/BuyButton/hooks.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/BuyButton/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/BuyButton/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Dialog/Dialog.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Dialog/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Dialog/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Dialog/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Dialog/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ErrorInfo/ErrorInfo.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ErrorInfo/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ErrorInfo/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ErrorInfo/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ErrorInfo/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Loading/Loading.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Loading/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Loading/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/PrimaryButton/PrimaryButton.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/PrimaryButton/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/PrimaryButton/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/PrimaryButton/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Image/Image.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Image/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Image/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Image/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Price/Price.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Price/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Product.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Rating/Rating.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Rating/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Rating/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Shades/Shades.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Shades/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Shades/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Title/Title.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Title/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/Title/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Product/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfo/Labels.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfo/ProductInfo.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfo/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfo/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfo/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfoDialogDrawer/ProductInfoDialogDrawer.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfoDialogDrawer/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfoDialogDrawer/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfoDialogDrawer/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/ProductInfoDialogDrawer/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/NavigationArrows.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/Products.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/hooks.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/styles.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Products/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/SubscribeButton/SubscribeButton.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/SubscribeButton/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/SubscribeButton/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/SubscriptionSection/SubscriptionSection.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/SubscriptionSection/constants.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/SubscriptionSection/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Subscriptions/Subscriptions.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/components/Subscriptions/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/constants-generated.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/constants/common.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/constants/defaultTranslations.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/constants/dialogMode.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/constants/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/constants/swrConfig.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/ApiProvider/ApiProvider.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/ApiProvider/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/DialogContainer.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/DialogContent.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/ProductInfoDialogController.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/containers/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/analyticsDataContext.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/dialogModeContext.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/productContext.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/productsContext.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/replaceSubscriptionDataContext.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/context/sharedConfigurationContext.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useAnalyticsData.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useCloseEvents.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useDialogMode.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useOpenEvent.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useProduct.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useProducts.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useReplaceSubscriptionData.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useSWRFetch.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/internal/useSharedConfiguration.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/types.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/useGetProductBoxConfiguration.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/useGetProductInfoDialogProducts.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/useProductInfoDialog.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/hooks/useTranslations.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/logger.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/AnalyticsData.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/DialogConfiguration.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/Events.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/OpenProductInfoDialogExtendedData.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/Product.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/ReplaceSubscriptionData.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/SharedConfiguration.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/TranslationKey.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/models/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/queries-net/getProductsQuery.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/queries-net/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/getInitialProduct.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/getNonDiscontinuedAndCannotBeSold.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/getProductDetailUrl.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/index.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/mapEventsToData.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/openLogin.js","webpack://oriproductinfodialogspa/../../packages/product-info-dialog/dist/cjs/utils/shouldShowIsDiscontinuedErrorInfo.js"],"sourcesContent":["import { ServiceUrlsProvider } from '@ori/configuration-manager';\nimport { EnvironmentProvider } from '@ori/environment';\nimport { TranslationsProvider } from '@ori/i18n';\nimport { ProductInfoDialogController } from '@ori/product-info-dialog';\nimport { Team, TestIdProvider } from '@ori/testid-generator';\nimport { APP_NAME } from './constants-generated';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const App = ({\n currentLanguage,\n globalApiUrl = '',\n graphqlUrl,\n graphqlNetUrl,\n staticApiUrl = '',\n tenant\n}) => /*#__PURE__*/_jsx(TestIdProvider, {\n team: Team.Presentation,\n project: APP_NAME,\n children: /*#__PURE__*/_jsx(ServiceUrlsProvider, {\n serviceUrls: {\n globalApiUrl,\n graphQlUrl: graphqlUrl,\n graphQlNetUrl: graphqlNetUrl,\n staticApiUrl\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(ProductInfoDialogController, {})\n })\n })\n })\n});","import { ThemeProvider } from '@ori-ui/mui';\nimport { doDevelopmentLogin, UniversalTokenProvider } from '@ori/auth';\nimport { parseClientAppConfig } from '@ori/client-app-config';\nimport { ApplicationInsights, ErrorBoundary, getClientApplicationInsightsConfig } from '@ori/logger';\nimport { createRoot } from 'react-dom/client';\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');\n\n/**\n * React app renderer that is used when app is used as a standalone app\n */\nexport async function render(rootElement) {\n const {\n config = ''\n } = rootElement.dataset;\n const {\n identityUrl,\n ...appConfig\n } = parseClientAppConfig(config, ['tenant', 'currentLanguage', 'graphqlUrl', 'graphqlNetUrl', 'staticApiUrl', 'globalApiUrl']);\n const {\n customerId,\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 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}","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});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.OpenProductInfoDialogDialog = exports.Name = exports.DialogMode = void 0;\nconst Name = exports.Name = 'open-product-info-dialog';\nconst OpenProductInfoDialogDialog = exports.OpenProductInfoDialogDialog = Name;\nlet DialogMode = exports.DialogMode = /*#__PURE__*/function (DialogMode) {\n DialogMode[\"Loading\"] = \"loading\";\n DialogMode[\"StandardBuy\"] = \"standardBuy\";\n return DialogMode;\n}({});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _event = require(\"./event\");\nObject.keys(_event).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _event[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _event[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getProductBoxConfiguration = void 0;\nvar _staticApiClientReact = require(\"@ori/static-api-client-react\");\nconst getProductBoxConfiguration = async ({\n staticApiUrl,\n tenant\n}) => {\n const client = new _staticApiClientReact.ApiClient({\n baseUrl: staticApiUrl\n });\n const {\n data: {\n isMrpStatementEnabled,\n isRatingsAndReviewsEnabled\n }\n } = await (0, _staticApiClientReact.getTenantApplicationsProductboxConfiguration)(client, tenant);\n return {\n isMrpStatementEnabled,\n isRatingsAndReviewsEnabled\n };\n};\nexports.getProductBoxConfiguration = getProductBoxConfiguration;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getProductInfoDialogProducts = void 0;\nvar _fetching = require(\"@ori/fetching\");\nvar _queriesNet = require(\"../../queries-net\");\nvar _mappers = require(\"../mappers\");\nconst getProductInfoDialogProducts = async ({\n graphQlUrl,\n productCodes,\n headers\n}) => {\n const {\n products\n } = await (0, _fetching.fetchGraphql)({\n query: _queriesNet.getProducts,\n url: graphQlUrl,\n variables: {\n productCodes\n },\n headers,\n // It sometimes takes longer time GraphQL to respond.\n timeout: 15000\n });\n return products ? (0, _mappers.mapProductsFromGql)(products) : [];\n};\nexports.getProductInfoDialogProducts = getProductInfoDialogProducts;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _getProductInfoDialogProducts = require(\"./getProductInfoDialogProducts\");\nObject.keys(_getProductInfoDialogProducts).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getProductInfoDialogProducts[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getProductInfoDialogProducts[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});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _getProductInfoDialogProducts = require(\"./getProductInfoDialogProducts\");\nObject.keys(_getProductInfoDialogProducts).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getProductInfoDialogProducts[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getProductInfoDialogProducts[key];\n }\n });\n});\nvar _getProductBoxConfiguration = require(\"./getProductBoxConfiguration\");\nObject.keys(_getProductBoxConfiguration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getProductBoxConfiguration[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getProductBoxConfiguration[key];\n }\n });\n});\nvar _mappers = require(\"./mappers\");\nObject.keys(_mappers).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _mappers[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _mappers[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.mapSubscriptionBenefitBanner = exports.mapSubscription = exports.mapShades = exports.mapProductsFromGql = exports.mapProductFromGql = exports.mapProductDiscontinuedAndCannotBeSold = exports.mapProductBase = exports.getProductSize = void 0;\nvar _productBox = require(\"@ori/product-box\");\nconst getProductSize = ({\n volumeValue,\n volumeUnitText\n}) => {\n if (volumeValue != null && volumeUnitText != null) {\n return `${volumeValue} ${volumeUnitText.trim()}`;\n }\n return null;\n};\nexports.getProductSize = getProductSize;\nconst mapProductDiscontinuedAndCannotBeSold = shades => {\n if (shades.length === 0) {\n return false;\n }\n return shades.every(shade => shade.isDiscontinued && !shade.canBeSold);\n};\nexports.mapProductDiscontinuedAndCannotBeSold = mapProductDiscontinuedAndCannotBeSold;\nconst mapSubscriptionBenefitBanner = data => ({\n title: data.title ?? '',\n message: data.message ?? '',\n readMoreText: data.readMoreLink?.title ?? '',\n readMoreUrl: data.readMoreLink?.relativeUrl ?? '',\n registerText: data.registerLink?.title ?? '',\n registerUrl: data.registerLink?.relativeUrl ?? '',\n signInText: data.signInLink?.title ?? ''\n});\nexports.mapSubscriptionBenefitBanner = mapSubscriptionBenefitBanner;\nconst mapSubscription = subscription => ({\n available: subscription?.available ?? false,\n deliveryFrequencyOptions: [...(subscription?.allowedFrequencies ?? [])],\n recommendedFrequency: subscription?.frequency ?? 0\n});\nexports.mapSubscription = mapSubscription;\nconst mapShades = shades => (shades ?? []).filter(shade => shade != null).map(shade => {\n const {\n hexColors,\n imageUrl\n } = (0, _productBox.mapShade)(shade);\n const {\n deal,\n ppa\n } = (0, _productBox.mapLabels)(shade.labels) ?? {};\n return {\n canBeReserved: shade.availability?.isBackorder ?? (0, _productBox.mapCanBeReserved)(shade.labels),\n canBeSold: (0, _productBox.mapCanBeSold)(shade.labels),\n canBeSubscribed: (0, _productBox.mapCanBeSubscribed)(shade.labels),\n isDiscontinued: shade.isDiscontinued,\n color: {\n name: shade.shadeName ?? null,\n hexColors,\n imageUrl\n },\n dealLabel: deal,\n imageUrl: shade.imageUrl ?? null,\n bonusPoints: shade.formattedPrice?.bp ?? 0,\n nextAvailableDateText: shade.productExpectedInbound?.expectedInboundLabel ?? null,\n pdpUrl: shade.pdpUrl?.relativeUrl ?? null,\n ppaLabel: ppa,\n price: {\n basicCashback: shade.formattedPrice?.price?.basicCashback ?? null,\n current: shade.formattedPrice?.price?.currentPrice ?? null,\n extraCashback: shade.formattedPrice?.price?.extraCashback ?? null,\n old: shade.formattedPrice?.price?.basicCataloguePrice ?? null,\n previousMinOfferPrice: shade.formattedPrice?.price?.previousMinOfferPrice ?? null,\n priceAfterImmediateDiscount: shade.formattedPrice?.price?.priceAfterImmediateDiscount ?? null\n },\n productCode: shade.productCode,\n size: getProductSize(shade),\n subscription: mapSubscription(shade.subscription),\n subscriptionBenefitBanner: shade.subscriptionBenefitBanner ? mapSubscriptionBenefitBanner(shade.subscriptionBenefitBanner) : null\n };\n});\nexports.mapShades = mapShades;\nconst mapProductBase = product => {\n const shades = mapShades(product?.concept?.products);\n if (!product?.concept?.name || shades.length === 0) {\n return null;\n }\n return {\n brandName: product.concept.brand?.name ?? null,\n brandUrl: product.concept.brand?.url ?? null,\n code: product.productCode,\n name: product.concept.name,\n ratingAverage: product.concept.ratingAverage ?? 0,\n ratingCount: product.concept.ratingCount ?? 0,\n shades,\n isDiscontinuedAndCannotBeSold: mapProductDiscontinuedAndCannotBeSold(shades)\n };\n};\nexports.mapProductBase = mapProductBase;\nconst mapProductFromGql = product => {\n const productBase = mapProductBase(product);\n if (!productBase) {\n return null;\n }\n const {\n brandName,\n brandUrl,\n code,\n name,\n ratingAverage,\n ratingCount,\n shades,\n isDiscontinuedAndCannotBeSold\n } = productBase;\n return {\n brandName,\n brandUrl,\n code,\n name,\n ratingAverage,\n ratingCount,\n shades,\n isDiscontinuedAndCannotBeSold\n };\n};\nexports.mapProductFromGql = mapProductFromGql;\nconst mapProductsFromGql = products => products.map(product => product ? mapProductFromGql(product) : null).filter(product => product != null);\nexports.mapProductsFromGql = mapProductsFromGql;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Buttons = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _favoritesHeart = require(\"@ori/favorites-heart\");\nvar _presentationComponents = require(\"@ori/presentation-components\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _internal = require(\"../../hooks/internal\");\nvar _useTranslations = require(\"../../hooks/useTranslations\");\nvar _PrimaryButton = require(\"../PrimaryButton\");\nvar _SubscribeButton = require(\"../SubscribeButton\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Buttons = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const {\n currentShade: {\n canBeSold,\n canBeSubscribed,\n price: {\n previousMinOfferPrice\n },\n productCode\n }\n } = (0, _internal.useProduct)();\n const {\n personalSubscriptionsEnabled\n } = (0, _internal.useSharedConfiguration)();\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n const {\n isAnonymousUser\n } = (0, _auth.useToken)();\n const {\n isSubscriptionReplacement\n } = (0, _internal.useReplaceSubscriptionData)();\n const lowestPreviousPriceText = previousMinOfferPrice ? `${translations.lowestPrice} ${previousMinOfferPrice}` : null;\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Root, {\n \"data-testid\": getTestId(_constants.BUTTONS),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Inner, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PrimaryButton.PrimaryButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(\"div\", {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_favoritesHeart.FavoritesHeartIconButton, {\n \"aria-label\": translations.favorites,\n code: productCode,\n \"data-testid\": getTestId(_constants.FAVORITES_HEART)\n })\n })]\n }), !isSubscriptionReplacement && canBeSold && canBeSubscribed && !isAnonymousUser && !personalSubscriptionsEnabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_SubscribeButton.SubscribeButton, {\n color: \"secondary\"\n }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationComponents.InfoText, {\n text: lowestPreviousPriceText,\n testId: getTestId(_presentationComponents.LOWEST_PREVIOUS_PRICE)\n })]\n });\n};\nexports.Buttons = Buttons;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FAVORITES_HEART = exports.BUTTONS = void 0;\nconst BUTTONS = exports.BUTTONS = 'buttons';\nconst FAVORITES_HEART = exports.FAVORITES_HEART = 'favorites-heart';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Buttons = require(\"./Buttons\");\nObject.keys(_Buttons).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Buttons[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Buttons[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Root = exports.Inner = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nconst Root = exports.Root = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(3),\n padding: theme.spacing(0, 3, 6),\n [theme.breakpoints.up('sm')]: {\n padding: theme.spacing(0, 6, 6)\n }\n}));\nconst Inner = exports.Inner = (0, _mui.styled)('div')(({\n theme\n}) => ({\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'row',\n gap: theme.spacing(3),\n '&:empty': {\n display: 'none'\n }\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.BuyButton = void 0;\nvar _react = require(\"react\");\nvar _constants = require(\"../../constants\");\nvar _internal = require(\"../../hooks/internal\");\nvar _useTranslations = require(\"../../hooks/useTranslations\");\nvar _hooks = require(\"./hooks\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst BuyButton = () => {\n const {\n currentProduct: {\n name\n },\n currentShade: {\n canBeReserved,\n canBeSold,\n price,\n productCode\n }\n } = (0, _internal.useProduct)();\n const {\n placement\n } = (0, _internal.useAnalyticsData)();\n const {\n originalItemCode,\n originalQuantity\n } = (0, _internal.useSharedConfiguration)();\n const {\n isSubscriptionReplacement\n } = (0, _internal.useReplaceSubscriptionData)();\n const initialQuantity = originalQuantity ?? _constants.PRODUCT_INITIAL_QUANTITY;\n const getOnClickEvent = (0, _hooks.useOnClickEvent)();\n const onClick = (0, _react.useCallback)(newQuantity => {\n window.dispatchEvent(getOnClickEvent(newQuantity));\n }, [getOnClickEvent]);\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n const buttonContent = (0, _react.useMemo)(() => {\n if (isSubscriptionReplacement) {\n return translations.replace;\n }\n if (originalItemCode) {\n return translations.choose;\n }\n if (canBeReserved) {\n return translations.reserve;\n }\n return translations.buy;\n }, [canBeReserved, isSubscriptionReplacement, originalItemCode, translations.buy, translations.choose, translations.replace, translations.reserve]);\n const disabled = !canBeReserved && !canBeSold;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BuyButtonComponent, {\n visible: true,\n buyTitle: buttonContent,\n formattedPrice: price.current,\n initialQuantity: initialQuantity,\n productCode: productCode,\n productName: name,\n reserveTitle: \"\",\n disabled: disabled,\n placement: placement,\n onlyButton: isSubscriptionReplacement || disabled,\n loadingEvents: _hooks.loadingEvents,\n onClick: onClick\n });\n};\nexports.BuyButton = BuyButton;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useOnClickEvent = exports.loadingEvents = void 0;\nvar AddBackorderDemandEvent = _interopRequireWildcard(require(\"@ori-events/add-backorder-demand\"));\nvar AddToBasketEvent = _interopRequireWildcard(require(\"@ori-events/add-to-basket\"));\nvar ReplaceShoppingBagItem = _interopRequireWildcard(require(\"@ori-events/replace-shopping-bag-item\"));\nvar ReplaceSubscriptionEvent = _interopRequireWildcard(require(\"@ori-events/replace-subscription\"));\nvar _react = require(\"react\");\nvar _constants = require(\"../../constants\");\nvar _internal = require(\"../../hooks/internal\");\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function (e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != typeof e && \"function\" != typeof e) return {\n default: e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n.default = e, t && t.set(e, n), n;\n}\nconst loadingEvents = exports.loadingEvents = [AddBackorderDemandEvent.Name, ReplaceShoppingBagItem.Name, ReplaceSubscriptionEvent.Name];\nconst useOnClickEvent = () => {\n const {\n currentProduct: {\n name\n },\n currentShade: {\n price: {\n current\n },\n productCode\n }\n } = (0, _internal.useProduct)();\n const {\n lineNumber,\n placement\n } = (0, _internal.useAnalyticsData)();\n const {\n droppingId,\n subscriptionId\n } = (0, _internal.useReplaceSubscriptionData)();\n const {\n originalItemCode\n } = (0, _internal.useSharedConfiguration)();\n // istanbul ignore next -- No need to test fallback\n const formattedPrice = current ?? undefined;\n const replacementType = originalItemCode ? _constants.MANUAL_REPLACEMENT : undefined;\n return (0, _react.useCallback)(quantity => {\n if (droppingId !== undefined && subscriptionId !== undefined) {\n return new CustomEvent(ReplaceSubscriptionEvent.Name, {\n detail: {\n droppingId,\n itemCode: productCode,\n subscriptionId\n }\n });\n }\n if (originalItemCode && lineNumber != null) {\n return new CustomEvent(ReplaceShoppingBagItem.Name, {\n detail: {\n itemCode: productCode,\n lineNumber\n }\n });\n }\n if (lineNumber != null) {\n return new CustomEvent(AddBackorderDemandEvent.Name, {\n detail: {\n formattedPrice,\n itemCode: productCode,\n lineNumber,\n localName: name,\n placement,\n quantity\n }\n });\n }\n return new CustomEvent(AddToBasketEvent.Name, {\n detail: {\n formattedPrice,\n itemCode: productCode,\n localName: name,\n originalItemCode,\n placement,\n quantity,\n replacementType\n }\n });\n }, [droppingId, formattedPrice, lineNumber, name, originalItemCode, placement, productCode, replacementType, subscriptionId]);\n};\nexports.useOnClickEvent = useOnClickEvent;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _BuyButton = require(\"./BuyButton\");\nObject.keys(_BuyButton).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _BuyButton[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _BuyButton[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.BuyButtonComponent = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nconst BuyButtonComponent = exports.BuyButtonComponent = (0, _mui.styled)(_presentationProductDetail.BuyButton)({\n minWidth: 'unset'\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Dialog = void 0;\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Dialog = ({\n children,\n container,\n header,\n id,\n onClose,\n open,\n zIndex,\n isInfo = false\n}) => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Root, {\n \"data-testid\": getTestId(_constants.PRODUCT_INFO_DIALOG_DIALOG),\n isInfo: isInfo,\n container: container,\n header: header,\n id: id,\n open: open ?? false,\n size: \"small\",\n zIndex: zIndex,\n onClose: onClose,\n children: children\n });\n};\nexports.Dialog = Dialog;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PRODUCT_INFO_DIALOG_DIALOG = void 0;\nconst PRODUCT_INFO_DIALOG_DIALOG = exports.PRODUCT_INFO_DIALOG_DIALOG = 'product-info-dialog-dialog';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Dialog = require(\"./Dialog\");\nObject.keys(_Dialog).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Dialog[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Dialog[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[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.Root = void 0;\nvar _components = require(\"@ori-ui/components\");\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationUtils = require(\"@ori/presentation-utils\");\nconst Root = exports.Root = (0, _mui.styled)(_components.Dialog, {\n shouldForwardProp: (0, _presentationUtils.shouldNotForwardProp)(['isInfo', 'zIndex'])\n})`\n z-index: ${({\n zIndex\n}) => zIndex};\n\n button {\n z-index: ${({\n zIndex\n}) => typeof zIndex === 'number' ? zIndex + 1 : undefined};\n }\n\n & .${_components.dialogClasses.closeButton} {\n z-index: 10;\n }\n\n & .${_mui.paperClasses.root} {\n ${({\n theme\n}) => theme.breakpoints.up('sm')} {\n width: ${props => props.isInfo ? '390px' : '720px'};\n max-width: 95vw;\n }\n\n ${({\n theme\n}) => theme.breakpoints.up('md')} {\n height: ${props => props.isInfo ? 'auto' : '450px'};\n overflow: visible;\n width: ${props => props.isInfo ? '390px' : '900px'};\n max-width: 80vw;\n }\n\n ${({\n theme\n}) => theme.breakpoints.up('lg')} {\n max-width: 75vw;\n }\n }\n`;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ErrorInfo = void 0;\nvar _icons = require(\"@ori-ui/icons\");\nvar _mui = require(\"@ori-ui/mui\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst ErrorInfo = ({\n title,\n description,\n buttonTitle,\n handleButtonClick\n}) => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Root, {\n \"data-testid\": getTestId(_constants.ERROR_INFO),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.IconContainer, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ErrorCircle, {\n fontSize: \"inherit\",\n color: \"inherit\"\n })\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Typography, {\n variant: \"h4\",\n component: \"h4\",\n color: \"inherit\",\n children: title\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Typography, {\n color: \"inherit\",\n textAlign: \"center\",\n children: description\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ButtonContainer, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Button, {\n fullWidth: true,\n color: \"primary\",\n variant: \"contained\",\n id: \"accept\",\n onClick: handleButtonClick,\n children: buttonTitle\n }, \"accept\")\n })]\n });\n};\nexports.ErrorInfo = ErrorInfo;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ERROR_INFO = void 0;\nconst ERROR_INFO = exports.ERROR_INFO = 'error-info';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _ErrorInfo = require(\"./ErrorInfo\");\nObject.keys(_ErrorInfo).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _ErrorInfo[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _ErrorInfo[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[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.Root = exports.IconContainer = exports.ButtonContainer = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nconst Root = exports.Root = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(3),\n padding: theme.spacing(6, 3),\n [theme.breakpoints.up('sm')]: {\n padding: theme.spacing(6)\n }\n}));\nconst IconContainer = exports.IconContainer = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: '8rem',\n justifySelf: 'stretch',\n color: theme.palette.error.dark\n}));\nconst ButtonContainer = exports.ButtonContainer = (0, _mui.styled)('div')(({\n theme\n}) => ({\n marginTop: theme.spacing(3),\n width: '100%'\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Loading = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _constants = require(\"./constants\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Loading = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Box, {\n \"data-testid\": getTestId(_constants.LOADING),\n alignItems: \"center\",\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n justifyContent: \"center\",\n textAlign: \"center\",\n width: \"100%\",\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.CircularProgress, {\n color: \"primary\"\n })\n });\n};\nexports.Loading = Loading;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LOADING = void 0;\nconst LOADING = exports.LOADING = 'loading';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Loading = require(\"./Loading\");\nObject.keys(_Loading).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Loading[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Loading[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PrimaryButton = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _internal = require(\"../../hooks/internal\");\nvar _BuyButton = require(\"../BuyButton\");\nvar _SubscribeButton = require(\"../SubscribeButton\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst PrimaryButton = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const {\n currentShade: {\n canBeSold,\n canBeSubscribed,\n productCode,\n subscription: {\n available\n }\n }\n } = (0, _internal.useProduct)();\n const {\n isAnonymousUser\n } = (0, _auth.useToken)();\n const {\n isSubscriptionReplacement\n } = (0, _internal.useReplaceSubscriptionData)();\n const {\n personalSubscriptionsEnabled\n } = (0, _internal.useSharedConfiguration)();\n const subscriptionsButtonWrapperTestId = `${_constants.SUBSCRIPTIONS_ADD_TO_BAG}-${productCode}`;\n if (!isSubscriptionReplacement && available && personalSubscriptionsEnabled) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.SubscriptionsButtonWrapper, {\n id: subscriptionsButtonWrapperTestId,\n \"data-testid\": getTestId(subscriptionsButtonWrapperTestId)\n });\n }\n if (!isSubscriptionReplacement && !canBeSold && canBeSubscribed) {\n if (isAnonymousUser) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SubscribeButton.SubscribeButton, {});\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BuyButton.BuyButton, {});\n};\nexports.PrimaryButton = PrimaryButton;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SUBSCRIPTIONS_ADD_TO_BAG = void 0;\nconst SUBSCRIPTIONS_ADD_TO_BAG = exports.SUBSCRIPTIONS_ADD_TO_BAG = 'product-info-dialog-subscriptions-add-to-bag';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _PrimaryButton = require(\"./PrimaryButton\");\nObject.keys(_PrimaryButton).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _PrimaryButton[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _PrimaryButton[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubscriptionsButtonWrapper = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nconst SubscriptionsButtonWrapper = exports.SubscriptionsButtonWrapper = (0, _mui.styled)('div')({\n width: '100%'\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getImageVariantsParams = exports.Image = void 0;\nvar _icons = require(\"@ori-ui/icons\");\nvar _mui = require(\"@ori-ui/mui\");\nvar _imageSizesHelper = require(\"@ori/image-sizes-helper\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _internal = require(\"../../../hooks/internal\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst getImageVariantsParams = ({\n theme,\n url\n}) => ({\n backgroundColor: theme.palette.grey[100],\n imageFormat: 'WebP',\n imageSizeMultiplier: 2,\n params: [{\n width: _styles.IMAGE_SIZE,\n height: _styles.IMAGE_SIZE,\n quality: 90\n }],\n url\n});\nexports.getImageVariantsParams = getImageVariantsParams;\nconst Image = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const theme = (0, _mui.useTheme)();\n const {\n currentShade: {\n imageUrl,\n productCode\n }\n } = (0, _internal.useProduct)();\n if (imageUrl) {\n const imageVariants = (0, _imageSizesHelper.getImageVariants)(getImageVariantsParams({\n theme,\n url: imageUrl\n }));\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Root, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ImageComponent, {\n alt: productCode,\n loading: \"lazy\",\n srcSet: (0, _imageSizesHelper.generateSrcSet)(imageVariants),\n sizes: `${_styles.IMAGE_SIZE}px`,\n src: imageVariants.at(-1)?.url\n })\n });\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Placeholder, {\n \"data-testid\": getTestId(_constants.IMAGE_PLACEHOLDER),\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Products, {})\n });\n};\nexports.Image = Image;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.IMAGE_PLACEHOLDER = void 0;\nconst IMAGE_PLACEHOLDER = exports.IMAGE_PLACEHOLDER = 'pid-image-placeholder';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Image = require(\"./Image\");\nObject.keys(_Image).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Image[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Image[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Root = exports.Placeholder = exports.ImageComponent = exports.IMAGE_SIZE = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationComponents = require(\"@ori/presentation-components\");\nconst IMAGE_SIZE = exports.IMAGE_SIZE = 80;\nconst PADDING = 3;\nconst Root = exports.Root = (0, _mui.styled)('div')(({\n theme\n}) => ({\n aspectRatio: '1',\n backgroundColor: theme.palette.grey[100],\n boxSizing: 'border-box',\n borderRadius: theme.spacing(1),\n position: 'relative',\n padding: theme.spacing(PADDING, 0),\n height: `calc(${IMAGE_SIZE}px + ${theme.spacing(PADDING * 2)})`,\n width: IMAGE_SIZE\n}));\nconst ImageComponent = exports.ImageComponent = (0, _mui.styled)(_presentationComponents.Image)({\n objectFit: 'contain'\n});\nconst Placeholder = exports.Placeholder = (0, _mui.styled)(Root)(({\n theme\n}) => ({\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n height: `calc(${IMAGE_SIZE}px + ${theme.spacing(PADDING * 2)})`,\n width: IMAGE_SIZE,\n '& svg': {\n color: theme.palette.grey[200],\n fontSize: '3rem'\n }\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Price = void 0;\nvar _presentationHttp = require(\"@ori/presentation-http\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nvar _internal = require(\"../../../hooks/internal\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Price = () => {\n const {\n currentShade\n } = (0, _internal.useProduct)();\n const {\n customerTypeId\n } = (0, _presentationHttp.useUserSegmentationData)();\n const {\n isMrpStatementEnabled\n } = (0, _internal.useSharedConfiguration)();\n const {\n price: {\n current,\n old,\n priceAfterImmediateDiscount\n }\n } = currentShade;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationProductDetail.PriceSection, {\n cataloguePrice: old,\n currentPrice: current,\n priceAfterImmediateDiscount: priceAfterImmediateDiscount,\n customerTypeId: customerTypeId,\n mrpStatementEnabled: isMrpStatementEnabled,\n size: \"small\"\n });\n};\nexports.Price = Price;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Price = require(\"./Price\");\nObject.keys(_Price).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Price[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Price[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Product = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nvar _internal = require(\"../../hooks/internal\");\nvar _useTranslations = require(\"../../hooks/useTranslations\");\nvar _utils = require(\"../../utils\");\nvar _Buttons = require(\"../Buttons\");\nvar _ProductInfo = require(\"../ProductInfo\");\nvar _Subscriptions = require(\"../Subscriptions\");\nvar _Price = require(\"./Price\");\nvar _Rating = require(\"./Rating\");\nvar _Shades = require(\"./Shades\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Product = () => {\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n const {\n currentShade: {\n canBeSold,\n nextAvailableDateText,\n pdpUrl,\n productCode\n }\n } = (0, _internal.useProduct)();\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Root, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Inner, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductInfo.ProductInfo, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Rating.Rating, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Shades.Shades, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Price.Price, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Subscriptions.Subscriptions, {}), nextAvailableDateText && !canBeSold ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationProductDetail.NextAvailability, {\n title: nextAvailableDateText\n }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Link, {\n href: (0, _utils.getProductDetailUrl)({\n pdpUrl,\n productCode\n }),\n children: translations.viewMoreDetails\n })]\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Buttons.Buttons, {})]\n });\n};\nexports.Product = Product;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Rating = void 0;\nvar _components = require(\"@ori-ui/components\");\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _environment = require(\"@ori/environment\");\nvar _productBox = require(\"@ori/product-box\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _internal = require(\"../../../hooks/internal\");\nvar _constants = require(\"./constants\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Rating = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const {\n staticApiUrl\n } = (0, _configurationManager.useServiceUrls)(['staticApi']);\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n currentProduct: {\n ratingAverage,\n ratingCount\n }\n } = (0, _internal.useProduct)();\n const {\n isRatingsAndReviewsEnabled\n } = (0, _internal.useSharedConfiguration)();\n const hideRating = (0, _productBox.useHideRating)({\n staticApiUrl,\n tenant,\n enabled: isRatingsAndReviewsEnabled\n });\n if (!isRatingsAndReviewsEnabled || hideRating) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.StarRating, {\n showVotes: true,\n \"data-testid\": getTestId(_constants.RATING),\n max: 5,\n value: ratingAverage,\n votes: ratingCount,\n showTextRating: false\n });\n};\nexports.Rating = Rating;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.RATING = void 0;\nconst RATING = exports.RATING = 'rating';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Rating = require(\"./Rating\");\nObject.keys(_Rating).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Rating[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Rating[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Shades = void 0;\nvar _react = require(\"react\");\nvar _internal = require(\"../../../hooks/internal\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Shades = () => {\n const {\n currentProduct: {\n shades\n },\n currentShade: {\n canBeSold,\n color: {\n name,\n hexColors,\n imageUrl\n },\n productCode\n },\n setCurrentShadeCode\n } = (0, _internal.useProduct)();\n // istanbul ignore next -- No need to test fallback\n const formattedName = name ?? '';\n const currentShade = (0, _react.useMemo)(() => ({\n productCode,\n canBeSold,\n hexColors,\n imageUrl,\n name: formattedName\n }), [canBeSold, formattedName, hexColors, imageUrl, productCode]);\n const parsedShades = shades.map(shade => ({\n productCode: shade.productCode,\n canBeSold: shade.canBeSold,\n hexColors: shade.color.hexColors,\n imageUrl: shade.color.imageUrl,\n name: shade.color.name ?? ''\n }));\n if (parsedShades.length < 2) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ShadesAndDetails, {\n currentShade: currentShade,\n setCurrentShadeProductCode: setCurrentShadeCode,\n shades: parsedShades\n });\n};\nexports.Shades = Shades;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Shades = require(\"./Shades\");\nObject.keys(_Shades).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Shades[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Shades[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ShadesAndDetails = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationComponents = require(\"@ori/presentation-components\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nconst ShadesAndDetails = exports.ShadesAndDetails = (0, _mui.styled)(_presentationProductDetail.ShadesAndDetails)(({\n theme\n}) => ({\n boxSizing: 'content-box',\n order: 'unset',\n [theme.breakpoints.up('md')]: {\n order: 'unset'\n },\n [`.${_presentationComponents.shadeClasses.root}`]: {\n boxSizing: 'content-box'\n }\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Title = void 0;\nvar _internal = require(\"../../../hooks/internal\");\nvar _useTranslations = require(\"../../../hooks/useTranslations\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Title = () => {\n const {\n originalItemCode\n } = (0, _internal.useSharedConfiguration)();\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n if (originalItemCode) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Root, {\n variant: \"h4\",\n children: translations.replaceWith\n });\n }\n return null;\n};\nexports.Title = Title;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Title = require(\"./Title\");\nObject.keys(_Title).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Title[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Title[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Root = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _hooks = require(\"../../Products/hooks\");\nconst Root = exports.Root = (0, _mui.styled)(_mui.Typography)(({\n theme\n}) => ({\n textAlign: 'center',\n height: _hooks.TITLE_MOBILE_HEIGHT,\n [theme.breakpoints.up('md')]: {\n height: _hooks.TITLE_DESKTOP_HEIGHT\n }\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Product = require(\"./Product\");\nObject.keys(_Product).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Product[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Product[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Root = exports.Inner = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nconst Root = exports.Root = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n gap: theme.spacing(4),\n height: '100%'\n}));\nconst Inner = exports.Inner = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(4),\n overflowX: 'hidden',\n overflowY: 'auto',\n padding: theme.spacing(0, 3),\n [theme.breakpoints.up('sm')]: {\n padding: theme.spacing(0, 6)\n }\n}));","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Labels = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationComponents = require(\"@ori/presentation-components\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _internal = require(\"../../hooks/internal\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Labels = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const {\n currentShade: {\n dealLabel,\n ppaLabel,\n productCode\n }\n } = (0, _internal.useProduct)();\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.LabelsRoot, {\n \"data-testid\": getTestId(_constants.LABELS),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationComponents.DealLabel, {\n label: dealLabel?.title,\n type: dealLabel?.labelKey,\n productCode: productCode,\n size: \"small\"\n }), ppaLabel?.title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Chip, {\n \"data-testid\": getTestId(`${_presentationComponents.PPA_LABEL}-${productCode}`),\n label: ppaLabel.title,\n color: \"default\",\n variant: \"tag\",\n size: \"small\"\n }) : null]\n });\n};\nexports.Labels = Labels;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ProductInfo = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _internal = require(\"../../hooks/internal\");\nvar _useTranslations = require(\"../../hooks/useTranslations\");\nvar _Image = require(\"../Product/Image\");\nvar _Labels = require(\"./Labels\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst ProductInfo = () => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const {\n isAnonymousUser\n } = (0, _auth.useToken)();\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n const {\n currentProduct: {\n brandName,\n name\n },\n currentShade\n } = (0, _internal.useProduct)();\n const {\n bonusPoints,\n productCode,\n size\n } = currentShade;\n const formatedBonusPoints = bonusPoints > 0 && !isAnonymousUser ? `${bonusPoints} ${translations.bonusPoints}` : '';\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Root, {\n \"data-testid\": getTestId(_constants.PRODUCT_INFO),\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.Image, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Inner, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Labels.Labels, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationProductDetail.Names, {\n brandName: brandName,\n productName: name,\n size: \"small\"\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationProductDetail.ProductDetails, {\n currentShade: currentShade,\n bonusPoints: formatedBonusPoints,\n productCode: productCode,\n size: size\n })]\n })]\n });\n};\nexports.ProductInfo = ProductInfo;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PRODUCT_INFO = exports.LABELS = void 0;\nconst PRODUCT_INFO = exports.PRODUCT_INFO = 'product-info';\nconst LABELS = exports.LABELS = 'labels';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _ProductInfo = require(\"./ProductInfo\");\nObject.keys(_ProductInfo).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _ProductInfo[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _ProductInfo[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Root = exports.LabelsRoot = exports.Inner = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nconst Root = exports.Root = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'row',\n gap: theme.spacing(2)\n}));\nconst Inner = exports.Inner = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(1)\n}));\nconst LabelsRoot = exports.LabelsRoot = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n gap: theme.spacing(1)\n}));","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ProductInfoDialogDrawer = void 0;\nvar _icons = require(\"@ori-ui/icons\");\nvar _mui = require(\"@ori-ui/mui\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst ProductInfoDialogDrawer = ({\n open,\n onClose,\n placement = 'right',\n title,\n children,\n PaperProps\n}) => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Drawer, {\n \"data-testid\": getTestId(_constants.PRODUCT_INFO_DIALOG_DRAWER),\n open: open,\n anchor: placement,\n onClose: onClose,\n children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Root, {\n elevation: 0,\n ...PaperProps,\n children: [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.TitleContainer, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Typography, {\n variant: \"h5\",\n component: \"h5\",\n children: title\n })\n }) : null, children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.CloseButton, {\n color: \"default\",\n variant: \"text\",\n \"data-testid\": getTestId(_constants.PRODUCT_INFO_DIALOG_DRAWER_CLOSE_BUTTON),\n onClick: onClose,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Clear, {\n fontSize: \"small\",\n color: \"inherit\"\n })\n })]\n })\n });\n};\nexports.ProductInfoDialogDrawer = ProductInfoDialogDrawer;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PRODUCT_INFO_DIALOG_DRAWER_CLOSE_BUTTON = exports.PRODUCT_INFO_DIALOG_DRAWER = void 0;\nconst PRODUCT_INFO_DIALOG_DRAWER = exports.PRODUCT_INFO_DIALOG_DRAWER = 'product-info-dialog-drawer';\nconst PRODUCT_INFO_DIALOG_DRAWER_CLOSE_BUTTON = exports.PRODUCT_INFO_DIALOG_DRAWER_CLOSE_BUTTON = 'product-info-dialog-drawer-close-button';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _ProductInfoDialogDrawer = require(\"./ProductInfoDialogDrawer\");\nObject.keys(_ProductInfoDialogDrawer).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _ProductInfoDialogDrawer[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _ProductInfoDialogDrawer[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});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TitleContainer = exports.Root = exports.CloseButton = void 0;\nvar _components = require(\"@ori-ui/components\");\nvar _mui = require(\"@ori-ui/mui\");\nconst TitleContainer = exports.TitleContainer = (0, _mui.styled)('div')({\n display: 'flex',\n justifyContent: 'center',\n width: '100%',\n userSelect: 'none'\n});\nconst Root = exports.Root = (0, _mui.styled)(_mui.Paper)(({\n theme\n}) => ({\n display: 'flex',\n justifyItems: 'center',\n flexDirection: 'column',\n gap: theme.spacing(4),\n position: 'relative',\n width: 400,\n outline: 0,\n height: '100%'\n}));\nconst CloseButton = exports.CloseButton = (0, _mui.styled)(_components.IconButton)(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n right: 0,\n margin: theme.spacing(2),\n background: (0, _mui.alpha)(theme.palette.common.white, 0.75)\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NavigationArrows = void 0;\nvar _icons = require(\"@ori-ui/icons\");\nvar _mui = require(\"@ori-ui/mui\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _react = require(\"react\");\nvar _internal = require(\"../../hooks/internal\");\nvar _constants = require(\"./constants\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst NavigationArrows = ({\n currentSlide,\n nextArrowVisible,\n previousArrowVisible,\n sliderRef\n}) => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const [disabled, setDisabled] = (0, _react.useState)(false);\n const {\n products\n } = (0, _internal.useProducts)();\n // istanbul ignore next -- Check for animationEnded event not testable.\n sliderRef.current?.on('animationEnded', () => {\n setDisabled(false);\n });\n const onPreviousClick = (0, _react.useCallback)(() => {\n setDisabled(true);\n sliderRef.current?.prev();\n }, [sliderRef]);\n const onNextClick = (0, _react.useCallback)(() => {\n setDisabled(true);\n sliderRef.current?.next();\n }, [sliderRef]);\n if (products.length < 2) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.NavigationArrowsRoot, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.SliderButton, {\n \"data-testid\": getTestId(_constants.REPLACEMENTS_PREVIOUS_BTN),\n disabled: disabled,\n visible: previousArrowVisible,\n onClick: onPreviousClick,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowLeftThin, {\n fontSize: \"inherit\"\n })\n }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_mui.Typography, {\n variant: \"subtitle1\",\n fontWeight: \"bold\",\n children: [currentSlide, \"/\", products.length]\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.SliderButton, {\n \"data-testid\": getTestId(_constants.REPLACEMENTS_NEXT_BTN),\n disabled: disabled,\n visible: nextArrowVisible,\n onClick: onNextClick,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightThin, {\n fontSize: \"inherit\"\n })\n })]\n });\n};\nexports.NavigationArrows = NavigationArrows;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Products = void 0;\nvar _presentationComponents = require(\"@ori/presentation-components\");\nvar _react = require(\"react\");\nvar _context = require(\"../../context\");\nvar _internal = require(\"../../hooks/internal\");\nvar _Product = require(\"../Product\");\nvar _Title = require(\"../Product/Title\");\nvar _NavigationArrows = require(\"./NavigationArrows\");\nvar _hooks = require(\"./hooks\");\nvar _styles = require(\"./styles\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Products = ({\n initialProductCode\n}) => {\n const [currentSlide, setCurrentSlide] = (0, _react.useState)(1);\n const [nextArrowVisible, setNextArrowVisible] = (0, _react.useState)(true);\n const [previousArrowVisible, setPreviousArrowVisible] = (0, _react.useState)(false);\n const sliderRef = (0, _react.useRef)();\n const {\n slider: sliderFromHook,\n navigation,\n pagination\n } = (0, _hooks.useSliderOptions)({\n initialProductCode\n });\n const {\n products\n } = (0, _internal.useProducts)();\n const {\n desktopHeight,\n mobileHeight\n } = (0, _hooks.useCarouselHeight)();\n const setArrowsVisibility = (0, _react.useCallback)(instance => {\n setCurrentSlide(instance.track.details.rel + 1);\n setNextArrowVisible(instance.track.details.rel !== instance.track.details.slidesLength - 1);\n setPreviousArrowVisible(instance.track.details.rel !== 0);\n }, []);\n // istanbul ignore next -- Check for animationEnded event not testable.\n const animationEnded = (0, _react.useCallback)(instance => {\n setArrowsVisibility(instance);\n }, [setArrowsVisibility]);\n const slider = (0, _react.useMemo)(() => ({\n ...sliderFromHook,\n created: instance => {\n sliderRef.current = instance;\n setArrowsVisibility(instance);\n },\n animationEnded\n }), [sliderFromHook, animationEnded, setArrowsVisibility]);\n if (products.length < 1) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Root, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Header, {\n children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Title.Title, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavigationArrows.NavigationArrows, {\n currentSlide: currentSlide,\n nextArrowVisible: nextArrowVisible,\n previousArrowVisible: previousArrowVisible,\n sliderRef: sliderRef\n })]\n }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.CarouselComponent, {\n pagination: pagination,\n navigation: navigation,\n slider: slider,\n desktopHeight: desktopHeight,\n mobileHeight: mobileHeight,\n enableGrabCursor: products.length > 1,\n children: products.map(product => /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationComponents.CarouselSlide, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ProductProvider, {\n value: product,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Product.Product, {})\n })\n }, product.code))\n })]\n });\n};\nexports.Products = Products;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.REPLACEMENTS_PREVIOUS_BTN = exports.REPLACEMENTS_NEXT_BTN = void 0;\nconst REPLACEMENTS_PREVIOUS_BTN = exports.REPLACEMENTS_PREVIOUS_BTN = 'replacements-previous-btn';\nconst REPLACEMENTS_NEXT_BTN = exports.REPLACEMENTS_NEXT_BTN = 'replacements-next-btn';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useSliderOptions = exports.useCarouselHeight = exports.TITLE_MOBILE_HEIGHT = exports.TITLE_DESKTOP_HEIGHT = exports.PRODUCTS_GAP = exports.PAGINATION_HEIGHT = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _react = require(\"react\");\nvar _internal = require(\"../../hooks/internal\");\nvar _utils = require(\"../../utils\");\nconst PRODUCTS_GAP = exports.PRODUCTS_GAP = 4;\nconst TITLE_DESKTOP_HEIGHT = exports.TITLE_DESKTOP_HEIGHT = 40;\nconst TITLE_MOBILE_HEIGHT = exports.TITLE_MOBILE_HEIGHT = 35;\nconst PAGINATION_HEIGHT = exports.PAGINATION_HEIGHT = 28;\nconst useSliderOptions = ({\n initialProductCode\n}) => {\n const {\n products\n } = (0, _internal.useProducts)();\n const {\n index\n } = (0, _utils.getInitialProduct)({\n initialProductCode,\n products\n });\n return (0, _react.useMemo)(() => ({\n navigation: {\n showArrows: false\n },\n pagination: {\n show: false\n },\n slider: {\n initial: index,\n loop: false\n }\n }), [index]);\n};\nexports.useSliderOptions = useSliderOptions;\nconst useCarouselHeight = () => {\n const theme = (0, _mui.useTheme)();\n const {\n originalItemCode\n } = (0, _internal.useSharedConfiguration)();\n const {\n products\n } = (0, _internal.useProducts)();\n const gap = theme.spacing(PRODUCTS_GAP);\n return (0, _react.useMemo)(() => {\n const hasPagination = products.length > 1;\n const titleDeductionDesktop = originalItemCode ? ` - ${TITLE_DESKTOP_HEIGHT}px - ${gap}` : '';\n const titleDeductionMobile = originalItemCode ? ` - ${TITLE_MOBILE_HEIGHT}px - ${gap}` : '';\n const paginationDeduction = hasPagination ? ` - ${PAGINATION_HEIGHT}px - ${gap}` : '';\n const desktopHeight = `calc(100%${titleDeductionDesktop}${paginationDeduction})`;\n const mobileHeight = `calc(100%${titleDeductionMobile}${paginationDeduction})`;\n return {\n desktopHeight,\n mobileHeight\n };\n }, [gap, originalItemCode, products.length]);\n};\nexports.useCarouselHeight = useCarouselHeight;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Products = require(\"./Products\");\nObject.keys(_Products).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Products[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Products[key];\n }\n });\n});\nvar _hooks = require(\"./hooks\");\nObject.keys(_hooks).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _hooks[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _hooks[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.SliderButton = exports.Root = exports.NavigationArrowsRoot = exports.Header = exports.CarouselComponent = void 0;\nvar _mui = require(\"@ori-ui/mui\");\nvar _presentationComponents = require(\"@ori/presentation-components\");\nvar _presentationUtils = require(\"@ori/presentation-utils\");\nvar _hooks = require(\"./hooks\");\nconst Root = exports.Root = (0, _mui.styled)('div')(({\n theme\n}) => ({\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(_hooks.PRODUCTS_GAP),\n height: '100%',\n paddingTop: theme.spacing(6),\n width: '100%'\n}));\nconst Header = exports.Header = (0, _mui.styled)('div')(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(_hooks.PRODUCTS_GAP),\n padding: theme.spacing(0, 3),\n [theme.breakpoints.up('sm')]: {\n padding: theme.spacing(0, 6)\n },\n '&:empty': {\n display: 'none'\n }\n}));\nconst CarouselComponent = exports.CarouselComponent = (0, _mui.styled)(_presentationComponents.Carousel, {\n shouldForwardProp: (0, _presentationUtils.shouldNotForwardProp)(['mobileHeight', 'desktopHeight', 'enableGrabCursor'])\n})(({\n enableGrabCursor,\n mobileHeight,\n desktopHeight,\n theme\n}) => ({\n height: mobileHeight,\n [theme.breakpoints.up('md')]: {\n height: desktopHeight\n },\n [`.${_presentationComponents.SLIDER_CLASSNAME}`]: {\n cursor: enableGrabCursor ? 'grab' : 'inherit',\n height: '100%'\n }\n}));\nconst SliderButton = exports.SliderButton = (0, _mui.styled)('button', {\n shouldForwardProp: (0, _presentationUtils.shouldForwardProp)()\n})(({\n visible\n}) => ({\n backgroundColor: 'inherit',\n color: 'inherit',\n display: 'flex',\n padding: 0,\n visibility: visible ? 'visible' : 'hidden',\n svg: {\n height: 24,\n width: 24\n }\n}));\nconst NavigationArrowsRoot = exports.NavigationArrowsRoot = (0, _mui.styled)('div')(({\n theme\n}) => ({\n alignItems: 'center',\n color: theme.palette.text.primary,\n display: 'flex',\n flexDirection: 'row',\n gap: theme.spacing(3),\n height: _hooks.PAGINATION_HEIGHT,\n justifyContent: 'center'\n}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubscribeButton = void 0;\nvar _openSubscriptionWizard = _interopRequireDefault(require(\"@ori-events/open-subscription-wizard\"));\nvar _mui = require(\"@ori-ui/mui\");\nvar _testidGenerator = _interopRequireDefault(require(\"@ori/testid-generator\"));\nvar _react = require(\"react\");\nvar _internal = require(\"../../hooks/internal\");\nvar _useTranslations = require(\"../../hooks/useTranslations\");\nvar _constants = require(\"./constants\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst SubscribeButton = ({\n color = 'primary'\n}) => {\n const {\n getTestId\n } = (0, _testidGenerator.default)();\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n const {\n currentShade: {\n productCode\n }\n } = (0, _internal.useProduct)();\n const onClick = (0, _react.useCallback)(() => {\n _openSubscriptionWizard.default.dispatch({\n detail: {\n type: 'Subscription',\n customerType: 'All',\n productCode\n }\n });\n }, [productCode]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mui.Button, {\n fullWidth: true,\n color: color,\n variant: \"contained\",\n \"data-testid\": getTestId(_constants.SUBSCRIBE_BUTTON),\n onClick: onClick,\n children: translations.subscribe\n });\n};\nexports.SubscribeButton = SubscribeButton;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SUBSCRIBE_BUTTON = void 0;\nconst SUBSCRIBE_BUTTON = exports.SUBSCRIBE_BUTTON = 'subscribe-button';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _SubscribeButton = require(\"./SubscribeButton\");\nObject.keys(_SubscribeButton).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _SubscribeButton[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _SubscribeButton[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SubscriptionSection = void 0;\nvar _i18n = require(\"@ori/i18n\");\nvar _presentationComponents = require(\"@ori/presentation-components\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nvar _react = require(\"react\");\nvar _internal = require(\"../../hooks/internal\");\nvar _openLogin = require(\"../../utils/openLogin\");\nvar _constants = require(\"./constants\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst SubscriptionSection = () => {\n const {\n currentShade: {\n subscriptionBenefitBanner\n }\n } = (0, _internal.useProduct)();\n const {\n message,\n readMoreText,\n readMoreUrl,\n registerText,\n registerUrl,\n signInText,\n title\n } = subscriptionBenefitBanner ?? {};\n const translatedMessage = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.DynamicFormattedMessage, {\n translatedMessage: message ?? '',\n values: {\n SignInLink: /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationComponents.TextLink, {\n testId: _constants.LOGIN_LINK,\n onClick: _openLogin.openLogin,\n children: signInText\n }),\n RegisterLink: /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationComponents.TextLink, {\n href: registerUrl,\n testId: _constants.REGISTER_LINK,\n children: registerText\n })\n }\n }), [message, registerText, registerUrl, signInText]);\n if (!subscriptionBenefitBanner) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationProductDetail.AnonymousSubscriptionBanner, {\n title: title,\n message: translatedMessage,\n readMoreText: readMoreText,\n readMoreLink: readMoreUrl\n });\n};\nexports.SubscriptionSection = SubscriptionSection;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.REGISTER_LINK = exports.LOGIN_LINK = void 0;\nconst LOGIN_LINK = exports.LOGIN_LINK = 'login-link';\nconst REGISTER_LINK = exports.REGISTER_LINK = 'register-link';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _SubscriptionSection = require(\"./SubscriptionSection\");\nObject.keys(_SubscriptionSection).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _SubscriptionSection[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _SubscriptionSection[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Subscriptions = void 0;\nvar _auth = require(\"@ori/auth\");\nvar _presentationHttp = require(\"@ori/presentation-http\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nvar _react = require(\"react\");\nvar _constants = require(\"../../constants\");\nvar _internal = require(\"../../hooks/internal\");\nvar _PrimaryButton = require(\"../PrimaryButton\");\nvar _SubscriptionSection = require(\"../SubscriptionSection\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst Subscriptions = () => {\n const {\n customerTypeId\n } = (0, _presentationHttp.useUserSegmentationData)();\n const {\n isAnonymousUser\n } = (0, _auth.useToken)();\n const {\n currentShade: {\n canBeSold,\n canBeSubscribed,\n price: {\n current,\n basicCashback,\n extraCashback\n },\n productCode,\n subscription: {\n deliveryFrequencyOptions,\n recommendedFrequency,\n available\n }\n },\n currentProduct: {\n name\n }\n } = (0, _internal.useProduct)();\n const {\n originalItemCode,\n personalSubscriptionsEnabled\n } = (0, _internal.useSharedConfiguration)();\n const {\n isSubscriptionReplacement\n } = (0, _internal.useReplaceSubscriptionData)();\n const {\n placement\n } = (0, _internal.useAnalyticsData)();\n // istanbul ignore next -- No need to test fallback\n const formattedPrice = current ?? '';\n const analyticsData = (0, _react.useMemo)(() => ({\n formattedPrice,\n localName: name,\n originalItemCode,\n placement,\n replacementType: originalItemCode ? _constants.MANUAL_REPLACEMENT : undefined\n }), [formattedPrice, name, originalItemCode, placement]);\n if (!isSubscriptionReplacement && available && personalSubscriptionsEnabled) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationProductDetail.SubscriptionModule, {\n analyticsData: analyticsData,\n customerTypeId: customerTypeId,\n deliveryFrequencyOptions: deliveryFrequencyOptions,\n itemCode: productCode,\n purchaseOptionCashback: basicCashback,\n recommendedFrequency: recommendedFrequency,\n subscribeOptionCashback: extraCashback,\n disabled: !canBeSold,\n addToBagContainerId: `${_PrimaryButton.SUBSCRIPTIONS_ADD_TO_BAG}-${productCode}`\n });\n }\n if (!isSubscriptionReplacement && canBeSubscribed && isAnonymousUser && !personalSubscriptionsEnabled) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SubscriptionSection.SubscriptionSection, {});\n }\n return null;\n};\nexports.Subscriptions = Subscriptions;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Subscriptions = require(\"./Subscriptions\");\nObject.keys(_Subscriptions).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Subscriptions[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Subscriptions[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 = 'product-info-dialog';\nconst PACKAGE_NAME = exports.PACKAGE_NAME = '@ori/product-info-dialog';\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.PRODUCT_INITIAL_QUANTITY = exports.MANUAL_REPLACEMENT = exports.FETCH_MODE_LAZY = exports.FETCH_MODE_EAGER = void 0;\nconst FETCH_MODE_EAGER = exports.FETCH_MODE_EAGER = 'eager';\nconst FETCH_MODE_LAZY = exports.FETCH_MODE_LAZY = 'lazy';\nconst PRODUCT_INITIAL_QUANTITY = exports.PRODUCT_INITIAL_QUANTITY = 1;\nconst MANUAL_REPLACEMENT = exports.MANUAL_REPLACEMENT = 'M';","\"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 bonusPoints: 'Bonus points',\n buy: 'Buy',\n choose: 'Choose',\n favorites: 'Favorites',\n goBack: 'Go back',\n lowestPrice: 'Our lowest price, the last 30 days before current price, was',\n productIsDiscontinued: 'Product is discontinued',\n productIsDiscontinuedDescription: 'The product you are looking for has been discontinued and is no longer for sale.',\n productNotFound: 'Product not found',\n productNotFoundDescription: 'We are experiencing technical difficulties and the product cannot be found.',\n replace: 'Replace',\n replaceWith: 'Replace with',\n reserve: 'Reserve',\n subscribe: 'Subscribe',\n viewMoreDetails: 'View more details'\n};\nconst translationsNamespace = exports.translationsNamespace = 'product-info-dialog';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NOT_FOUND = exports.DISCONTINUED = exports.DIALOG_MODE_STANDARD_BUY = exports.DIALOG_MODE_LOADING = exports.DIALOG_MODE_FAVORITES = void 0;\nconst DIALOG_MODE_FAVORITES = exports.DIALOG_MODE_FAVORITES = 'favorites';\nconst DIALOG_MODE_LOADING = exports.DIALOG_MODE_LOADING = 'loading';\nconst DIALOG_MODE_STANDARD_BUY = exports.DIALOG_MODE_STANDARD_BUY = 'standardBuy';\nconst DISCONTINUED = exports.DISCONTINUED = 'discontinued';\nconst NOT_FOUND = exports.NOT_FOUND = 'notFound';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _common = require(\"./common\");\nObject.keys(_common).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _common[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _common[key];\n }\n });\n});\nvar _dialogMode = require(\"./dialogMode\");\nObject.keys(_dialogMode).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _dialogMode[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _dialogMode[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});\nvar _swrConfig = require(\"./swrConfig\");\nObject.keys(_swrConfig).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _swrConfig[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _swrConfig[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.swrConfig = void 0;\n// istanbul ignore file -- No need to test swr config constant\n\nconst swrConfig = exports.swrConfig = {\n errorRetryCount: 3,\n errorRetryInterval: 10000,\n focusThrottleInterval: 300000,\n shouldRetryOnError: true,\n suspense: false\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 _fetching = require(\"@ori/fetching\");\nvar _globalApiClientReact = require(\"@ori/global-api-client-react\");\nvar _i18n = require(\"@ori/i18n\");\nvar _staticApiClientReact = require(\"@ori/static-api-client-react\");\nvar _constants = require(\"../../constants\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n// istanbul ignore file -- No need to test usage of api providers\n\nconst ApiProvider = ({\n children\n}) => {\n const {\n language\n } = (0, _i18n.useLanguage)();\n const {\n tenant\n } = (0, _environment.useEnvironment)();\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)(_fetching.SWRConfig, {\n value: _constants.swrConfig,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_staticApiClientReact.ApiClientProvider, {\n baseUrl: staticApiUrl,\n language: language,\n tenant: tenant,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_globalApiClientReact.ApiClientProvider, {\n baseUrl: globalApiUrl,\n language: language,\n tenant: tenant,\n token: token,\n children: children\n })\n })\n });\n};\nexports.ApiProvider = ApiProvider;","\"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});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DialogContent = exports.DialogContainer = void 0;\nvar _presentationHooks = require(\"@ori/presentation-hooks\");\nvar _react = require(\"react\");\nvar _Dialog = require(\"../components/Dialog\");\nvar _ErrorInfo = require(\"../components/ErrorInfo\");\nvar _Loading = require(\"../components/Loading\");\nvar _ProductInfoDialogDrawer = require(\"../components/ProductInfoDialogDrawer\");\nvar _constants = require(\"../constants\");\nvar _useTranslations = require(\"../hooks/useTranslations\");\nvar _getNonDiscontinuedAndCannotBeSold = require(\"../utils/getNonDiscontinuedAndCannotBeSold\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function (e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != typeof e && \"function\" != typeof e) return {\n default: e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n.default = e, t && t.set(e, n), n;\n}\nconst DialogContent = exports.DialogContent = /*#__PURE__*/(0, _react.lazy)(async () => ({\n default: (await Promise.resolve().then(() => _interopRequireWildcard(require(/* webpackChunkName: \"ProductInfoDialog_DialogContent\" */'./DialogContent')))).DialogContent\n}));\nconst DialogContainer = ({\n analytics = {},\n dialog = {},\n initialProductCode,\n mode = _constants.DIALOG_MODE_LOADING,\n products = [],\n shared = {\n isMrpStatementEnabled: false,\n isRatingsAndReviewsEnabled: false\n },\n replaceSubscription\n}) => {\n const {\n translations\n } = (0, _useTranslations.useTranslations)();\n const isMobile = (0, _presentationHooks.useIsMobile)();\n const isInfo = mode === _constants.NOT_FOUND || mode === _constants.DISCONTINUED;\n const content = (0, _react.useMemo)(() => {\n switch (mode) {\n case _constants.DIALOG_MODE_LOADING:\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {});\n case _constants.NOT_FOUND:\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorInfo.ErrorInfo, {\n title: translations.productNotFound,\n description: translations.productNotFoundDescription,\n buttonTitle: translations.goBack,\n handleButtonClick: dialog.onClose\n });\n case _constants.DISCONTINUED:\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorInfo.ErrorInfo, {\n title: translations.productIsDiscontinued,\n description: translations.productIsDiscontinuedDescription,\n buttonTitle: translations.goBack,\n handleButtonClick: dialog.onClose\n });\n default:\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {\n fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}),\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogContent, {\n analytics: analytics,\n initialProductCode: initialProductCode,\n mode: mode,\n products: (0, _getNonDiscontinuedAndCannotBeSold.getNonDiscontinuedAndCannotBeSold)(products),\n shared: shared,\n replaceSubscription: replaceSubscription\n })\n });\n }\n }, [mode, translations.productNotFound, translations.productNotFoundDescription, translations.goBack, translations.productIsDiscontinued, translations.productIsDiscontinuedDescription, dialog.onClose, analytics, initialProductCode, products, shared, replaceSubscription]);\n if (isMobile) {\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.Dialog, {\n isInfo: isInfo,\n ...dialog,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {\n fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}),\n children: content\n })\n });\n }\n const {\n open,\n onClose\n } = dialog;\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductInfoDialogDrawer.ProductInfoDialogDrawer, {\n open: open,\n onClose: onClose,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {\n fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}),\n children: content\n })\n });\n};\nexports.DialogContainer = DialogContainer;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DialogContent = void 0;\nvar _Products = require(\"../components/Products\");\nvar _context = require(\"../context\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst DialogContent = ({\n analytics,\n mode,\n products,\n initialProductCode,\n shared,\n replaceSubscription\n}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.AnalyticsDataProvider, {\n value: analytics,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.DialogModeProvider, {\n value: mode,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ProductsProvider, {\n value: products,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ReplaceSubscriptionDataProvider, {\n value: replaceSubscription,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.SharedConfigurationProvider, {\n value: shared,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Products.Products, {\n initialProductCode: initialProductCode\n })\n })\n })\n })\n })\n});\nexports.DialogContent = DialogContent;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ProductInfoDialogController = 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 _presentationHooks = require(\"@ori/presentation-hooks\");\nvar _presentationHttp = require(\"@ori/presentation-http\");\nvar _presentationProductDetail = require(\"@ori/presentation-product-detail\");\nvar _testidGenerator = require(\"@ori/testid-generator\");\nvar _react = require(\"react\");\nvar _constants = require(\"../constants\");\nvar _constantsGenerated = require(\"../constants-generated\");\nvar _hooks = require(\"../hooks\");\nvar _internal = require(\"../hooks/internal\");\nvar _logger2 = require(\"../logger\");\nvar _ApiProvider = require(\"./ApiProvider\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n// istanbul ignore file -- no need to test controller\n\nconst localLogger = _logger2.mainLogger.createChild('TranslatedController');\nconst onError = error => localLogger.error(new Error('TranslationsProvider fetching failed', {\n cause: error\n}));\nconst TranslatedController = ({\n open,\n onClose,\n onOpen\n}) => {\n const {\n initialProductCode,\n lineNumber,\n mode,\n originalItemCode,\n originalQuantity,\n placement,\n position,\n productCodes,\n replaceSubscription\n } = (0, _internal.useOpenEvent)({\n onOpen\n });\n const {\n closeProductInfoDialog,\n openProductInfoDialog,\n productInfoDialog\n } = (0, _hooks.useProductInfoDialog)({\n analytics: {\n lineNumber,\n position,\n placement\n },\n dialog: {\n onClose\n },\n initialProductCode,\n mode,\n productCodes,\n shared: {\n originalItemCode,\n originalQuantity\n },\n replaceSubscription\n });\n (0, _internal.useCloseEvents)({\n onClose\n });\n (0, _react.useEffect)(() => {\n if (open) {\n openProductInfoDialog();\n } else {\n closeProductInfoDialog();\n }\n }, [closeProductInfoDialog, open, openProductInfoDialog]);\n return productInfoDialog;\n};\nconst ProductInfoDialogController = ({\n translations\n}) => {\n const {\n staticApiUrl\n } = (0, _configurationManager.useServiceUrls)(['staticApi']);\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n language\n } = (0, _i18n.useLanguage)();\n const {\n customerId,\n token\n } = (0, _auth.useToken)();\n const {\n initialOpenDone,\n open,\n onClose,\n onOpen\n } = (0, _presentationHooks.useInitialDisclose)();\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(_testidGenerator.TestIdProvider, {\n team: _testidGenerator.Team.Presentation,\n project: _constantsGenerated.APP_NAME,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {\n fallback: null,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_logger.LoggerProvider, {\n logger: _logger2.mainLogger,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_logger.ErrorBoundary, {\n areaName: \"ProductInfoDialogController\",\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.TranslationsProvider, {\n clientFetchConfiguration: initialOpenDone ? {\n baseUrl: staticApiUrl,\n onError,\n tenant\n } : undefined,\n defaultTranslationsWithNamespaces: {\n [_constants.translationsNamespace]: _constants.defaultTranslations,\n [_presentationProductDetail.presentationProductDetailTranslationsNamespace]: _presentationProductDetail.presentationProductDetailDefaultTranslations\n },\n language: language,\n translationsWithNamespaces: translations,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.TranslationsNamespaceProvider, {\n namespace: _constants.translationsNamespace,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ApiProvider.ApiProvider, {\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationHttp.UserSegmentationDataProvider, {\n disableFetching: !initialOpenDone,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_presentationHttp.HeadersProvider, {\n customerId: customerId,\n language: language,\n sourceAppName: _constantsGenerated.PACKAGE_NAME,\n tenant: tenant,\n token: token,\n children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TranslatedController, {\n open: open,\n onClose: onClose,\n onOpen: onOpen\n })\n })\n })\n })\n })\n })\n })\n })\n })\n });\n};\nexports.ProductInfoDialogController = ProductInfoDialogController;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _ProductInfoDialogController = require(\"./ProductInfoDialogController\");\nObject.keys(_ProductInfoDialogController).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _ProductInfoDialogController[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _ProductInfoDialogController[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});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.analyticsDataContext = exports.AnalyticsDataProvider = void 0;\nvar _react = require(\"react\");\nconst analyticsDataContext = exports.analyticsDataContext = /*#__PURE__*/(0, _react.createContext)({});\nconst {\n Provider: AnalyticsDataProvider\n} = analyticsDataContext;\nexports.AnalyticsDataProvider = AnalyticsDataProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dialogModeContext = exports.DialogModeProvider = void 0;\nvar _react = require(\"react\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst dialogModeContext = exports.dialogModeContext = /*#__PURE__*/(0, _react.createContext)(undefined);\nconst {\n Provider\n} = dialogModeContext;\nconst DialogModeProvider = ({\n children,\n value\n}) => {\n const [mode, setMode] = (0, _react.useState)(value);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: (0, _react.useMemo)(() => ({\n mode,\n setMode\n }), [mode]),\n children: children\n });\n};\nexports.DialogModeProvider = DialogModeProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _analyticsDataContext = require(\"./analyticsDataContext\");\nObject.keys(_analyticsDataContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _analyticsDataContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _analyticsDataContext[key];\n }\n });\n});\nvar _dialogModeContext = require(\"./dialogModeContext\");\nObject.keys(_dialogModeContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _dialogModeContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _dialogModeContext[key];\n }\n });\n});\nvar _productContext = require(\"./productContext\");\nObject.keys(_productContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _productContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _productContext[key];\n }\n });\n});\nvar _productsContext = require(\"./productsContext\");\nObject.keys(_productsContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _productsContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _productsContext[key];\n }\n });\n});\nvar _replaceSubscriptionDataContext = require(\"./replaceSubscriptionDataContext\");\nObject.keys(_replaceSubscriptionDataContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _replaceSubscriptionDataContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _replaceSubscriptionDataContext[key];\n }\n });\n});\nvar _sharedConfigurationContext = require(\"./sharedConfigurationContext\");\nObject.keys(_sharedConfigurationContext).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _sharedConfigurationContext[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _sharedConfigurationContext[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.productContext = exports.TestProductProvider = exports.ProductProvider = void 0;\nvar _react = require(\"react\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst currentShadeDefaultValue = {\n isDiscontinued: false,\n canBeReserved: false,\n canBeSold: false,\n canBeSubscribed: false,\n color: {\n name: null\n },\n dealLabel: undefined,\n imageUrl: null,\n bonusPoints: 0,\n nextAvailableDateText: null,\n pdpUrl: null,\n ppaLabel: undefined,\n price: {\n basicCashback: null,\n current: null,\n extraCashback: null,\n old: null,\n previousMinOfferPrice: null,\n priceAfterImmediateDiscount: null\n },\n productCode: '',\n size: null,\n subscription: {\n available: false,\n deliveryFrequencyOptions: [],\n recommendedFrequency: 0\n },\n subscriptionBenefitBanner: null\n};\nconst productContext = exports.productContext = /*#__PURE__*/(0, _react.createContext)(undefined);\nconst {\n Provider\n} = productContext;\nconst TestProductProvider = exports.TestProductProvider = Provider;\nconst ProductProvider = ({\n children,\n value: currentProduct\n}) => {\n const {\n code,\n shades\n } = currentProduct;\n const [currentProductCode, setCurrentProductCode] = (0, _react.useState)(code);\n const [currentShadeCode, setCurrentShadeCode] = (0, _react.useState)(currentProductCode);\n const currentShade = (0, _react.useMemo)(() => shades.find(product => product.productCode === currentShadeCode) ?? shades[0], [currentShadeCode, shades]);\n const isMultiShadeEnabled = shades.length > 1;\n const contextValue = (0, _react.useMemo)(() => ({\n currentProduct,\n currentProductCode,\n currentShade: currentShade ?? currentShadeDefaultValue,\n isMultiShadeEnabled,\n setCurrentProductCode,\n setCurrentShadeCode\n }), [currentProduct, currentProductCode, currentShade, isMultiShadeEnabled]);\n if (!currentShade) {\n return null;\n }\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: contextValue,\n children: children\n });\n};\nexports.ProductProvider = ProductProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.productsContext = exports.ProductsProvider = void 0;\nvar _react = require(\"react\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst productsContext = exports.productsContext = /*#__PURE__*/(0, _react.createContext)(undefined);\nconst {\n Provider\n} = productsContext;\nconst ProductsProvider = ({\n children,\n value\n}) => {\n const [products, setProducts] = (0, _react.useState)(value);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: (0, _react.useMemo)(() => ({\n products,\n setProducts\n }), [products]),\n children: children\n });\n};\nexports.ProductsProvider = ProductsProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.replaceSubscriptionDataContext = exports.defaultReplaceSubscriptionDataContextValue = exports.ReplaceSubscriptionDataProvider = void 0;\nvar _react = require(\"react\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst defaultReplaceSubscriptionDataContextValue = exports.defaultReplaceSubscriptionDataContextValue = {\n droppingId: undefined,\n isSubscriptionReplacement: false,\n subscriptionId: undefined\n};\nconst replaceSubscriptionDataContext = exports.replaceSubscriptionDataContext = /*#__PURE__*/(0, _react.createContext)(defaultReplaceSubscriptionDataContextValue);\nconst {\n Provider\n} = replaceSubscriptionDataContext;\nconst ReplaceSubscriptionDataProvider = ({\n children,\n value\n}) => {\n const {\n droppingId,\n subscriptionId\n } = value ?? {};\n const isSubscriptionReplacement = droppingId !== undefined && subscriptionId !== undefined;\n const contextValue = (0, _react.useMemo)(() => value ? {\n droppingId,\n isSubscriptionReplacement,\n subscriptionId\n } : defaultReplaceSubscriptionDataContextValue, [droppingId, isSubscriptionReplacement, subscriptionId, value]);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: contextValue,\n children: children\n });\n};\nexports.ReplaceSubscriptionDataProvider = ReplaceSubscriptionDataProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sharedConfigurationContext = exports.SharedConfigurationProvider = void 0;\nvar _react = require(\"react\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nconst sharedConfigurationContext = exports.sharedConfigurationContext = /*#__PURE__*/(0, _react.createContext)(undefined);\nconst {\n Provider\n} = sharedConfigurationContext;\nconst SharedConfigurationProvider = ({\n children,\n value\n}) => {\n const {\n originalItemCode,\n originalQuantity,\n isMrpStatementEnabled,\n isRatingsAndReviewsEnabled,\n personalSubscriptionsEnabled\n } = value;\n const [productCode, setProductCode] = (0, _react.useState)(originalItemCode);\n return /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {\n value: (0, _react.useMemo)(() => ({\n originalItemCode: productCode,\n originalQuantity,\n isMrpStatementEnabled,\n isRatingsAndReviewsEnabled,\n personalSubscriptionsEnabled,\n setOriginalItemCode: setProductCode\n }), [isMrpStatementEnabled, isRatingsAndReviewsEnabled, originalQuantity, personalSubscriptionsEnabled, productCode]),\n children: children\n });\n};\nexports.SharedConfigurationProvider = SharedConfigurationProvider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\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});\nvar _useGetProductInfoDialogProducts = require(\"./useGetProductInfoDialogProducts\");\nObject.keys(_useGetProductInfoDialogProducts).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useGetProductInfoDialogProducts[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useGetProductInfoDialogProducts[key];\n }\n });\n});\nvar _useGetProductBoxConfiguration = require(\"./useGetProductBoxConfiguration\");\nObject.keys(_useGetProductBoxConfiguration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useGetProductBoxConfiguration[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useGetProductBoxConfiguration[key];\n }\n });\n});\nvar _useProductInfoDialog = require(\"./useProductInfoDialog\");\nObject.keys(_useProductInfoDialog).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useProductInfoDialog[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useProductInfoDialog[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _useAnalyticsData = require(\"./useAnalyticsData\");\nObject.keys(_useAnalyticsData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useAnalyticsData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useAnalyticsData[key];\n }\n });\n});\nvar _useCloseEvents = require(\"./useCloseEvents\");\nObject.keys(_useCloseEvents).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useCloseEvents[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useCloseEvents[key];\n }\n });\n});\nvar _useDialogMode = require(\"./useDialogMode\");\nObject.keys(_useDialogMode).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useDialogMode[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useDialogMode[key];\n }\n });\n});\nvar _useOpenEvent = require(\"./useOpenEvent\");\nObject.keys(_useOpenEvent).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useOpenEvent[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useOpenEvent[key];\n }\n });\n});\nvar _useProduct = require(\"./useProduct\");\nObject.keys(_useProduct).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useProduct[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useProduct[key];\n }\n });\n});\nvar _useProducts = require(\"./useProducts\");\nObject.keys(_useProducts).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useProducts[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useProducts[key];\n }\n });\n});\nvar _useReplaceSubscriptionData = require(\"./useReplaceSubscriptionData\");\nObject.keys(_useReplaceSubscriptionData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useReplaceSubscriptionData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useReplaceSubscriptionData[key];\n }\n });\n});\nvar _useSharedConfiguration = require(\"./useSharedConfiguration\");\nObject.keys(_useSharedConfiguration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _useSharedConfiguration[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _useSharedConfiguration[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useAnalyticsData = void 0;\nvar _react = require(\"react\");\nvar _context = require(\"../../context\");\nconst useAnalyticsData = () => (0, _react.useContext)(_context.analyticsDataContext);\nexports.useAnalyticsData = useAnalyticsData;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useCloseEvents = exports.closeEvents = void 0;\nvar AddBackorderDemandEvent = _interopRequireWildcard(require(\"@ori-events/add-backorder-demand\"));\nvar BasketUpdatedEvent = _interopRequireWildcard(require(\"@ori-events/basket-updated\"));\nvar ReplaceShoppingBagItem = _interopRequireWildcard(require(\"@ori-events/replace-shopping-bag-item\"));\nvar ReplaceSubscriptionEvent = _interopRequireWildcard(require(\"@ori-events/replace-subscription\"));\nvar _presentationHooks = require(\"@ori/presentation-hooks\");\nvar _react = require(\"react\");\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function (e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != typeof e && \"function\" != typeof e) return {\n default: e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n.default = e, t && t.set(e, n), n;\n}\nconst closeEvents = exports.closeEvents = [AddBackorderDemandEvent.Name, ReplaceShoppingBagItem.Name, ReplaceSubscriptionEvent.Name];\nconst useCloseEvents = ({\n onClose\n}) => {\n const [closeEvent, setCloseEvent] = (0, _react.useState)();\n const onBasketUpdated = (0, _react.useCallback)(() => {\n if (closeEvent) {\n onClose();\n setCloseEvent(undefined);\n }\n }, [closeEvent, onClose]);\n const events = (0, _react.useMemo)(() => [...closeEvents.map(name => ({\n name,\n listener: setCloseEvent\n })), {\n name: BasketUpdatedEvent.Name,\n listener: onBasketUpdated\n }], [onBasketUpdated]);\n (0, _presentationHooks.useGlobalEvents)(events);\n};\nexports.useCloseEvents = useCloseEvents;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useDialogMode = void 0;\nvar _react = require(\"react\");\nvar _dialogModeContext = require(\"../../context/dialogModeContext\");\nconst useDialogMode = () => {\n const context = (0, _react.useContext)(_dialogModeContext.dialogModeContext);\n if (context) {\n return context;\n }\n throw new Error('Value for `modeContext` must be set.');\n};\nexports.useDialogMode = useDialogMode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useOpenEvent = void 0;\nvar _openProductInfoDialog = require(\"@ori-events/open-product-info-dialog\");\nvar _presentationHooks = require(\"@ori/presentation-hooks\");\nvar _tsUtils = require(\"@ori/ts-utils\");\nvar _react = require(\"react\");\nvar _mapEventsToData = require(\"../../utils/mapEventsToData\");\nconst useOpenEvent = ({\n onOpen\n}) => {\n const [eventData, setEventData] = (0, _react.useState)();\n const onOpenProductInfoDialog = (0, _react.useCallback)(({\n detail\n }) => {\n setEventData((0, _mapEventsToData.mapEventToData)(detail));\n onOpen();\n }, [onOpen]);\n const events = (0, _react.useMemo)(() => [{\n name: _openProductInfoDialog.Name,\n listener: onOpenProductInfoDialog\n }], [onOpenProductInfoDialog]);\n (0, _presentationHooks.useGlobalEvents)(events);\n return (0, _react.useMemo)(() => {\n const {\n droppingId,\n subscriptionId,\n productCodes,\n ...otherData\n } = eventData ?? {};\n return {\n ...otherData,\n productCodes: productCodes ?? [],\n replaceSubscription: (0, _tsUtils.isNonNullable)(droppingId) && (0, _tsUtils.isNonNullable)(subscriptionId) ? {\n droppingId,\n subscriptionId\n } : undefined\n };\n }, [eventData]);\n};\nexports.useOpenEvent = useOpenEvent;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useProduct = void 0;\nvar _react = require(\"react\");\nvar _context = require(\"../../context\");\nconst useProduct = () => {\n const context = (0, _react.useContext)(_context.productContext);\n if (context) {\n return context;\n }\n throw new Error('Value for `productContext` must be set.');\n};\nexports.useProduct = useProduct;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useProducts = void 0;\nvar _react = require(\"react\");\nvar _context = require(\"../../context\");\nconst useProducts = () => {\n const context = (0, _react.useContext)(_context.productsContext);\n if (context) {\n return context;\n }\n throw new Error('Value for `productsContext` must be set.');\n};\nexports.useProducts = useProducts;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useReplaceSubscriptionData = void 0;\nvar _react = require(\"react\");\nvar _context = require(\"../../context\");\nconst useReplaceSubscriptionData = () => (0, _react.useContext)(_context.replaceSubscriptionDataContext);\nexports.useReplaceSubscriptionData = useReplaceSubscriptionData;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useSWRFetch = void 0;\nvar _fetching = require(\"@ori/fetching\");\nvar _react = require(\"react\");\n// istanbul ignore file -- No need to test swr wrapper\n\nconst useSWRFetch = ({\n fallback,\n fetcher,\n key,\n skip\n}) => {\n const formattedKey = JSON.stringify({\n key\n });\n const [currentKey, setCurrentKey] = (0, _react.useState)(null);\n const matchingKey = currentKey === formattedKey;\n const {\n data,\n error\n } = (0, _fetching.useSWR)(skip ? null : currentKey, fetcher, {\n revalidateIfStale: false,\n revalidateOnFocus: false,\n revalidateOnReconnect: false\n });\n const fetch = (0, _react.useCallback)(() => {\n if (!matchingKey) {\n setCurrentKey(formattedKey);\n }\n }, [formattedKey, matchingKey]);\n return (0, _react.useMemo)(() => ({\n data: data ?? fallback,\n error,\n fetch,\n isLoaded: matchingKey && data != null && error == null,\n isLoading: data == null && error == null\n }), [data, error, fallback, fetch, matchingKey]);\n};\nexports.useSWRFetch = useSWRFetch;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useSharedConfiguration = void 0;\nvar _react = require(\"react\");\nvar _context = require(\"../../context\");\nconst useSharedConfiguration = () => {\n const context = (0, _react.useContext)(_context.sharedConfigurationContext);\n if (context) {\n return context;\n }\n throw new Error('Value for `sharedConfigurationContext` must be set.');\n};\nexports.useSharedConfiguration = useSharedConfiguration;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useGetProductBoxConfiguration = void 0;\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _environment = require(\"@ori/environment\");\nvar _api = require(\"../api\");\nvar _useSWRFetch = require(\"./internal/useSWRFetch\");\n// istanbul ignore file -- api\n\nconst useGetProductBoxConfiguration = () => {\n const {\n staticApiUrl\n } = (0, _configurationManager.useServiceUrls)(['staticApi']);\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n return (0, _useSWRFetch.useSWRFetch)({\n fallback: {\n isMrpStatementEnabled: false,\n isRatingsAndReviewsEnabled: false\n },\n fetcher: async () => (0, _api.getProductBoxConfiguration)({\n staticApiUrl,\n tenant\n }),\n key: [staticApiUrl, tenant]\n });\n};\nexports.useGetProductBoxConfiguration = useGetProductBoxConfiguration;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useGetProductInfoDialogProducts = void 0;\nvar _configurationManager = require(\"@ori/configuration-manager\");\nvar _presentationHttp = require(\"@ori/presentation-http\");\nvar _react = require(\"react\");\nvar _api = require(\"../api\");\nvar _useSWRFetch = require(\"./internal/useSWRFetch\");\n// istanbul ignore file -- api\n\nconst useGetProductInfoDialogProducts = ({\n productCodes\n}) => {\n const {\n graphQlNetUrl\n } = (0, _configurationManager.useServiceUrls)(['graphQlNet']);\n const {\n headers,\n loading: loadingHeaders\n } = (0, _presentationHttp.useHeaders)();\n const {\n data,\n error,\n fetch,\n isLoaded,\n isLoading\n } = (0, _useSWRFetch.useSWRFetch)({\n fallback: [],\n fetcher: async () => (0, _api.getProductInfoDialogProducts)({\n graphQlUrl: graphQlNetUrl,\n productCodes,\n headers\n }),\n key: [graphQlNetUrl, ...productCodes],\n skip: loadingHeaders\n });\n return (0, _react.useMemo)(() => ({\n data,\n error,\n fetch,\n isLoaded: isLoaded && data.length > 0,\n isLoading\n }), [data, error, fetch, isLoaded, isLoading]);\n};\nexports.useGetProductInfoDialogProducts = useGetProductInfoDialogProducts;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useProductInfoDialog = void 0;\nvar _environment = require(\"@ori/environment\");\nvar _presentationHooks = require(\"@ori/presentation-hooks\");\nvar _presentationUtils = require(\"@ori/presentation-utils\");\nvar _staticApiClientReact = require(\"@ori/static-api-client-react\");\nvar _react = require(\"react\");\nvar _constants = require(\"../constants\");\nvar _DialogContainer = require(\"../containers/DialogContainer\");\nvar _shouldShowIsDiscontinuedErrorInfo = require(\"../utils/shouldShowIsDiscontinuedErrorInfo\");\nvar _useGetProductBoxConfiguration = require(\"./useGetProductBoxConfiguration\");\nvar _useGetProductInfoDialogProducts = require(\"./useGetProductInfoDialogProducts\");\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n/** Enable personal subscriptions, docs: https://dev.azure.com/oriflame/GlobalDev/_wiki/wikis/GlobalDev.wiki/11422/Personal-subscriptions */\nconst PersonalSubscriptions = '7D673EF4-D085-44B5-BB1C-8FE57F1286BD';\nconst useProductInfoDialog = ({\n dialog,\n fetchMode = _constants.FETCH_MODE_LAZY,\n mode = _constants.DIALOG_MODE_STANDARD_BUY,\n productCodes,\n shared,\n analytics,\n initialProductCode,\n replaceSubscription\n}) => {\n const {\n onClose: onCloseProp,\n ...dialogProps\n } = dialog ?? {};\n const {\n tenant\n } = (0, _environment.useEnvironment)();\n const {\n data: products,\n fetch: fetchProducts,\n isLoaded: areProductsLoaded,\n isLoading: areProductsLoading\n } = (0, _useGetProductInfoDialogProducts.useGetProductInfoDialogProducts)({\n productCodes\n });\n const {\n data,\n fetch: fetchShowMrpStatement,\n isLoaded: isProductBoxConfigurationLoaded,\n isLoading: isProductBoxConfigurationLoading\n } = (0, _useGetProductBoxConfiguration.useGetProductBoxConfiguration)();\n const {\n isMrpStatementEnabled,\n isRatingsAndReviewsEnabled\n } = data;\n const {\n data: {\n isEnabled: personalSubscriptionsEnabled\n } = {\n isEnabled: false\n },\n isLoading: isFeatureToggleLoading\n } = (0, _staticApiClientReact.useGetTenantFeatureToggle)(tenant, PersonalSubscriptions, {\n swr: (0, _presentationUtils.getRetryErrorSwrOptions)()\n });\n const {\n open: isOpen,\n onClose,\n onOpen\n } = (0, _presentationHooks.useDisclose)();\n const isLoaded = isProductBoxConfigurationLoaded && areProductsLoaded;\n const isLoading = isProductBoxConfigurationLoading || areProductsLoading || isFeatureToggleLoading;\n const fetchData = (0, _react.useCallback)(() => {\n if (!isLoaded) {\n fetchProducts();\n fetchShowMrpStatement();\n }\n }, [fetchProducts, fetchShowMrpStatement, isLoaded]);\n const close = (0, _react.useCallback)(() => {\n onClose();\n onCloseProp?.();\n }, [onClose, onCloseProp]);\n const open = (0, _react.useCallback)(() => {\n onOpen();\n if (fetchMode === _constants.FETCH_MODE_LAZY) {\n fetchData();\n }\n }, [fetchData, fetchMode, onOpen]);\n (0, _react.useEffect)(() => {\n if (fetchMode === _constants.FETCH_MODE_EAGER) {\n fetchData();\n }\n }, [fetchData, fetchMode]);\n const dialogMode = (0, _react.useMemo)(() => {\n if (isLoading) {\n return _constants.DIALOG_MODE_LOADING;\n } else if (products.length === 0) {\n return _constants.NOT_FOUND;\n } else if ((0, _shouldShowIsDiscontinuedErrorInfo.shouldShowIsDiscontinuedErrorInfo)(products)) {\n return _constants.DISCONTINUED;\n }\n return mode;\n }, [isLoading, mode, products]);\n return (0, _react.useMemo)(() => ({\n closeProductInfoDialog: close,\n isProductInfoDialogOpen: isOpen,\n openProductInfoDialog: open,\n productInfoDialog: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DialogContainer.DialogContainer, {\n analytics: analytics,\n initialProductCode: initialProductCode,\n replaceSubscription: replaceSubscription,\n dialog: {\n ...dialogProps,\n onClose: close,\n open: isOpen\n },\n mode: dialogMode,\n products: products,\n shared: {\n ...shared,\n isMrpStatementEnabled,\n isRatingsAndReviewsEnabled,\n personalSubscriptionsEnabled\n }\n })\n }), [close, isOpen, open, analytics, initialProductCode, replaceSubscription, dialogProps, dialogMode, products, shared, isMrpStatementEnabled, isRatingsAndReviewsEnabled, personalSubscriptionsEnabled]);\n};\nexports.useProductInfoDialog = useProductInfoDialog;","\"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});\nvar _api = require(\"./api\");\nObject.keys(_api).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _api[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _api[key];\n }\n });\n});\nvar _constants = require(\"./constants\");\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _constants[key];\n }\n });\n});\nvar _containers = require(\"./containers\");\nObject.keys(_containers).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _containers[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _containers[key];\n }\n });\n});\nvar _hooks = require(\"./hooks\");\nObject.keys(_hooks).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _hooks[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _hooks[key];\n }\n });\n});\nvar _models = require(\"./models\");\nObject.keys(_models).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _models[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _models[key];\n }\n });\n});","\"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});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TranslationKey = void 0;\n/* istanbul ignore file */\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 */\nlet TranslationKey = exports.TranslationKey = /*#__PURE__*/function (TranslationKey) {\n TranslationKey[\"bonusPoints\"] = \"bonusPoints\";\n TranslationKey[\"buy\"] = \"buy\";\n TranslationKey[\"choose\"] = \"choose\";\n TranslationKey[\"favorites\"] = \"favorites\";\n TranslationKey[\"goBack\"] = \"goBack\";\n TranslationKey[\"lowestPrice\"] = \"lowestPrice\";\n TranslationKey[\"productIsDiscontinued\"] = \"productIsDiscontinued\";\n TranslationKey[\"productIsDiscontinuedDescription\"] = \"productIsDiscontinuedDescription\";\n TranslationKey[\"productNotFound\"] = \"productNotFound\";\n TranslationKey[\"productNotFoundDescription\"] = \"productNotFoundDescription\";\n TranslationKey[\"replace\"] = \"replace\";\n TranslationKey[\"replaceWith\"] = \"replaceWith\";\n TranslationKey[\"reserve\"] = \"reserve\";\n TranslationKey[\"subscribe\"] = \"subscribe\";\n TranslationKey[\"viewMoreDetails\"] = \"viewMoreDetails\";\n return TranslationKey;\n}({});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _AnalyticsData = require(\"./AnalyticsData\");\nObject.keys(_AnalyticsData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _AnalyticsData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _AnalyticsData[key];\n }\n });\n});\nvar _DialogConfiguration = require(\"./DialogConfiguration\");\nObject.keys(_DialogConfiguration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _DialogConfiguration[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _DialogConfiguration[key];\n }\n });\n});\nvar _Events = require(\"./Events\");\nObject.keys(_Events).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Events[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Events[key];\n }\n });\n});\nvar _Product = require(\"./Product\");\nObject.keys(_Product).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _Product[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _Product[key];\n }\n });\n});\nvar _ReplaceSubscriptionData = require(\"./ReplaceSubscriptionData\");\nObject.keys(_ReplaceSubscriptionData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _ReplaceSubscriptionData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _ReplaceSubscriptionData[key];\n }\n });\n});\nvar _SharedConfiguration = require(\"./SharedConfiguration\");\nObject.keys(_SharedConfiguration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _SharedConfiguration[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _SharedConfiguration[key];\n }\n });\n});\nvar _TranslationKey = require(\"./TranslationKey\");\nObject.keys(_TranslationKey).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _TranslationKey[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _TranslationKey[key];\n }\n });\n});\nvar _OpenProductInfoDialogExtendedData = require(\"./OpenProductInfoDialogExtendedData\");\nObject.keys(_OpenProductInfoDialogExtendedData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _OpenProductInfoDialogExtendedData[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _OpenProductInfoDialogExtendedData[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getProducts = void 0;\nvar _fetching = require(\"@ori/fetching\");\nconst subscriptionBenefitBanner = (0, _fetching.gql)`\n fragment SubscriptionBenefitBanner on Product {\n subscriptionBenefitBanner {\n title\n message\n registerLink {\n title\n relativeUrl\n }\n readMoreLink {\n title\n relativeUrl\n }\n signInLink {\n title\n relativeUrl\n }\n }\n }\n`;\nconst shade = (0, _fetching.gql)`\n ${subscriptionBenefitBanner}\n fragment Shade on Product {\n ...SubscriptionBenefitBanner\n availability {\n isBackorder\n }\n shadeName\n hexColors\n colorImageUrl\n formattedPrice {\n bp\n price {\n basicCashback\n basicCataloguePrice\n currentPrice\n extraCashback\n previousMinOfferPrice\n priceAfterImmediateDiscount\n }\n }\n isDiscontinued\n imageUrl\n labels {\n helpText\n labelKey\n productLabelDomain\n title\n }\n productExpectedInbound {\n expectedInboundLabel\n }\n pdpUrl {\n relativeUrl\n }\n productCode\n volumeValue\n volumeUnitText\n subscription {\n available\n frequency\n allowedFrequencies\n }\n }\n`;\nconst concept = (0, _fetching.gql)`\n fragment Concept on Concept {\n brand {\n name\n url\n }\n name\n products {\n ...Shade\n }\n ratingAverage\n ratingCount\n }\n`;\nconst product = (0, _fetching.gql)`\n ${concept}\n ${shade}\n fragment Product on Product {\n productCode\n concept {\n ...Concept\n }\n }\n`;\nconst getProducts = exports.getProducts = (0, _fetching.gql)`\n query GetProducts($productCodes: [ID]) {\n products(productCodes: $productCodes) {\n ...Product\n }\n }\n ${product}\n`;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _getProductsQuery = require(\"./getProductsQuery\");\nObject.keys(_getProductsQuery).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getProductsQuery[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getProductsQuery[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getInitialProduct = void 0;\nconst getInitialProduct = ({\n initialProductCode,\n products\n}) => {\n if (initialProductCode) {\n const initialProduct = products.find(({\n code\n }) => code === initialProductCode);\n const initialProductShade = initialProduct?.shades.find(({\n productCode\n }) => productCode === initialProductCode);\n const productIndex = products.findIndex(({\n code\n }) => code === initialProductCode);\n // istanbul ignore next -- Not reachable edge case\n const index = productIndex < 0 ? 0 : productIndex;\n return {\n index,\n product: initialProduct,\n shade: initialProductShade\n };\n }\n return {\n index: 0,\n product: products[0],\n shade: products[0]?.shades?.[0]\n };\n};\nexports.getInitialProduct = getInitialProduct;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getNonDiscontinuedAndCannotBeSold = void 0;\nconst getNonDiscontinuedAndCannotBeSold = products => products.filter(product => !product.isDiscontinuedAndCannotBeSold);\nexports.getNonDiscontinuedAndCannotBeSold = getNonDiscontinuedAndCannotBeSold;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getProductDetailUrl = void 0;\nconst getProductDetailUrl = ({\n pdpUrl,\n productCode\n}) => pdpUrl ?? `/products/product?code=${productCode}`;\nexports.getProductDetailUrl = getProductDetailUrl;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _getInitialProduct = require(\"./getInitialProduct\");\nObject.keys(_getInitialProduct).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getInitialProduct[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getInitialProduct[key];\n }\n });\n});\nvar _getProductDetailUrl = require(\"./getProductDetailUrl\");\nObject.keys(_getProductDetailUrl).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _getProductDetailUrl[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _getProductDetailUrl[key];\n }\n });\n});\nvar _openLogin = require(\"./openLogin\");\nObject.keys(_openLogin).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _openLogin[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _openLogin[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mapEventToData = void 0;\nconst mapEventToData = detail => ({\n atpClusterId: detail.atpClusterId,\n droppingId: detail.replaceSubscription?.droppingId,\n initialProductCode: detail.initialProductCode,\n lineNumber: detail.lineNumber,\n mode: detail.mode,\n originalItemCode: detail.originalItemCode,\n originalQuantity: detail.originalQuantity,\n placement: detail.placement,\n position: detail.position,\n productCodes: detail.productCodes,\n subscriptionId: detail.replaceSubscription?.subscriptionId\n});\nexports.mapEventToData = mapEventToData;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.openLogin = void 0;\nvar OpenLogin = _interopRequireWildcard(require(\"@ori-events/open-login\"));\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function (e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != typeof e && \"function\" != typeof e) return {\n default: e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n.default = e, t && t.set(e, n), n;\n}\nconst openLogin = () => {\n window.dispatchEvent(new CustomEvent(OpenLogin.Name));\n};\nexports.openLogin = openLogin;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.shouldShowIsDiscontinuedErrorInfo = void 0;\nconst shouldShowIsDiscontinuedErrorInfo = products => {\n if (products.length > 0) {\n return products.every(product => product.isDiscontinuedAndCannotBeSold);\n }\n return false;\n};\nexports.shouldShowIsDiscontinuedErrorInfo = shouldShowIsDiscontinuedErrorInfo;"],"names":["App","currentLanguage","globalApiUrl","graphqlUrl","graphqlNetUrl","staticApiUrl","tenant","TestIdProvider","team","Team","Presentation","project","children","ServiceUrlsProvider","serviceUrls","graphQlUrl","graphQlNetUrl","EnvironmentProvider","TranslationsProvider","defaultTranslationsWithNamespaces","language","translationsWithNamespaces","ProductInfoDialogController","localLogger","Logger","teamName","createChild","async","render","rootElement","config","dataset","identityUrl","appConfig","parseClientAppConfig","customerId","ApplicationInsights","initialize","getClientApplicationInsightsConfig","ErrorBoundary","logger","UniversalTokenProvider","initialToken","ThemeProvider","enableCacheProvider","cacheKey","Object","defineProperty","exports","value","OpenProductInfoDialogDialog","Name","DialogMode","_event","keys","forEach","key","enumerable","get","getProductBoxConfiguration","_staticApiClientReact","client","ApiClient","baseUrl","data","isMrpStatementEnabled","isRatingsAndReviewsEnabled","getTenantApplicationsProductboxConfiguration","getProductInfoDialogProducts","_fetching","_queriesNet","_mappers","productCodes","headers","products","fetchGraphql","query","getProducts","url","variables","timeout","mapProductsFromGql","_getProductInfoDialogProducts","_types","_getProductBoxConfiguration","mapSubscriptionBenefitBanner","mapSubscription","mapShades","mapProductFromGql","mapProductDiscontinuedAndCannotBeSold","mapProductBase","getProductSize","_productBox","volumeValue","volumeUnitText","trim","shades","length","every","shade","isDiscontinued","canBeSold","title","message","readMoreText","readMoreLink","readMoreUrl","relativeUrl","registerText","registerLink","registerUrl","signInText","signInLink","subscription","available","deliveryFrequencyOptions","allowedFrequencies","recommendedFrequency","frequency","filter","map","hexColors","imageUrl","mapShade","deal","ppa","mapLabels","labels","canBeReserved","availability","isBackorder","mapCanBeReserved","mapCanBeSold","canBeSubscribed","mapCanBeSubscribed","color","name","shadeName","dealLabel","bonusPoints","formattedPrice","bp","nextAvailableDateText","productExpectedInbound","expectedInboundLabel","pdpUrl","ppaLabel","price","basicCashback","current","currentPrice","extraCashback","old","basicCataloguePrice","previousMinOfferPrice","priceAfterImmediateDiscount","productCode","size","subscriptionBenefitBanner","product","concept","brandName","brand","brandUrl","code","ratingAverage","ratingCount","isDiscontinuedAndCannotBeSold","productBase","_interopRequireDefault","Buttons","_auth","_favoritesHeart","_presentationComponents","_testidGenerator","_internal","_useTranslations","_PrimaryButton","_SubscribeButton","_constants","_styles","_jsxRuntime","getTestId","default","currentShade","useProduct","personalSubscriptionsEnabled","useSharedConfiguration","translations","useTranslations","isAnonymousUser","useToken","isSubscriptionReplacement","useReplaceSubscriptionData","lowestPreviousPriceText","lowestPrice","jsxs","Root","BUTTONS","Inner","jsx","PrimaryButton","FavoritesHeartIconButton","favorites","FAVORITES_HEART","SubscribeButton","InfoText","text","testId","LOWEST_PREVIOUS_PRICE","_Buttons","_mui","styled","theme","display","flexDirection","gap","spacing","padding","breakpoints","up","alignItems","BuyButton","_react","_hooks","currentProduct","placement","useAnalyticsData","originalItemCode","originalQuantity","initialQuantity","PRODUCT_INITIAL_QUANTITY","getOnClickEvent","useOnClickEvent","onClick","useCallback","newQuantity","window","dispatchEvent","buttonContent","useMemo","replace","choose","reserve","buy","disabled","BuyButtonComponent","visible","buyTitle","productName","reserveTitle","onlyButton","loadingEvents","AddBackorderDemandEvent","_interopRequireWildcard","AddToBasketEvent","ReplaceShoppingBagItem","ReplaceSubscriptionEvent","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","has","n","__proto__","a","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","lineNumber","droppingId","subscriptionId","undefined","replacementType","MANUAL_REPLACEMENT","quantity","CustomEvent","detail","itemCode","localName","_BuyButton","_presentationProductDetail","minWidth","Dialog","container","header","id","onClose","open","zIndex","isInfo","PRODUCT_INFO_DIALOG_DIALOG","_Dialog","_components","_presentationUtils","shouldForwardProp","shouldNotForwardProp","dialogClasses","closeButton","paperClasses","root","props","ErrorInfo","_icons","description","buttonTitle","handleButtonClick","ERROR_INFO","IconContainer","ErrorCircle","fontSize","Typography","variant","component","textAlign","ButtonContainer","Button","fullWidth","_ErrorInfo","justifyContent","justifySelf","palette","error","dark","marginTop","width","Loading","Box","LOADING","height","CircularProgress","_Loading","subscriptionsButtonWrapperTestId","SUBSCRIPTIONS_ADD_TO_BAG","SubscriptionsButtonWrapper","getImageVariantsParams","Image","_imageSizesHelper","backgroundColor","grey","imageFormat","imageSizeMultiplier","params","IMAGE_SIZE","quality","useTheme","imageVariants","getImageVariants","ImageComponent","alt","loading","srcSet","generateSrcSet","sizes","src","at","Placeholder","IMAGE_PLACEHOLDER","Products","_Image","aspectRatio","boxSizing","borderRadius","position","PADDING","objectFit","Price","_presentationHttp","customerTypeId","useUserSegmentationData","PriceSection","cataloguePrice","mrpStatementEnabled","_Price","Product","_utils","_ProductInfo","_Subscriptions","_Rating","_Shades","ProductInfo","Rating","Shades","Subscriptions","NextAvailability","Link","href","getProductDetailUrl","viewMoreDetails","_configurationManager","_environment","useServiceUrls","useEnvironment","hideRating","useHideRating","enabled","StarRating","showVotes","RATING","max","votes","showTextRating","setCurrentShadeCode","formattedName","parsedShades","ShadesAndDetails","setCurrentShadeProductCode","order","shadeClasses","Title","replaceWith","_Title","TITLE_MOBILE_HEIGHT","TITLE_DESKTOP_HEIGHT","_Product","overflowX","overflowY","Labels","LabelsRoot","LABELS","DealLabel","label","type","labelKey","Chip","PPA_LABEL","_Labels","formatedBonusPoints","PRODUCT_INFO","Names","ProductDetails","flexWrap","ProductInfoDialogDrawer","PaperProps","Drawer","PRODUCT_INFO_DIALOG_DRAWER","anchor","elevation","TitleContainer","CloseButton","PRODUCT_INFO_DIALOG_DRAWER_CLOSE_BUTTON","Clear","_ProductInfoDialogDrawer","userSelect","Paper","justifyItems","outline","IconButton","top","right","margin","background","alpha","common","white","NavigationArrows","currentSlide","nextArrowVisible","previousArrowVisible","sliderRef","setDisabled","useState","useProducts","on","onPreviousClick","prev","onNextClick","next","NavigationArrowsRoot","SliderButton","REPLACEMENTS_PREVIOUS_BTN","ArrowLeftThin","fontWeight","REPLACEMENTS_NEXT_BTN","ArrowRightThin","_context","_NavigationArrows","initialProductCode","setCurrentSlide","setNextArrowVisible","setPreviousArrowVisible","useRef","slider","sliderFromHook","navigation","pagination","useSliderOptions","desktopHeight","mobileHeight","useCarouselHeight","setArrowsVisibility","instance","track","details","rel","slidesLength","animationEnded","created","Header","CarouselComponent","enableGrabCursor","CarouselSlide","ProductProvider","PRODUCTS_GAP","PAGINATION_HEIGHT","index","getInitialProduct","showArrows","show","initial","loop","paginationDeduction","_Products","paddingTop","Carousel","SLIDER_CLASSNAME","cursor","visibility","svg","primary","_openSubscriptionWizard","dispatch","customerType","SUBSCRIBE_BUTTON","subscribe","SubscriptionSection","_i18n","_openLogin","translatedMessage","DynamicFormattedMessage","values","SignInLink","TextLink","LOGIN_LINK","openLogin","RegisterLink","REGISTER_LINK","AnonymousSubscriptionBanner","_SubscriptionSection","analyticsData","SubscriptionModule","purchaseOptionCashback","subscribeOptionCashback","addToBagContainerId","TEAM_NAME","PACKAGE_NAME","EMOTION_CACHE_KEY","APP_ROOT_ELEMENT_ID","APP_NAME","FETCH_MODE_LAZY","FETCH_MODE_EAGER","translationsNamespace","defaultTranslations","goBack","productIsDiscontinued","productIsDiscontinuedDescription","productNotFound","productNotFoundDescription","NOT_FOUND","DISCONTINUED","DIALOG_MODE_STANDARD_BUY","DIALOG_MODE_LOADING","DIALOG_MODE_FAVORITES","_common","_dialogMode","_defaultTranslations","_swrConfig","swrConfig","errorRetryCount","errorRetryInterval","focusThrottleInterval","shouldRetryOnError","suspense","ApiProvider","_globalApiClientReact","useLanguage","token","SWRConfig","ApiClientProvider","_ApiProvider","DialogContent","DialogContainer","_presentationHooks","_getNonDiscontinuedAndCannotBeSold","lazy","Promise","resolve","then","analytics","dialog","mode","shared","replaceSubscription","isMobile","useIsMobile","content","Suspense","fallback","getNonDiscontinuedAndCannotBeSold","AnalyticsDataProvider","DialogModeProvider","ProductsProvider","ReplaceSubscriptionDataProvider","SharedConfigurationProvider","_logger","_constantsGenerated","_logger2","mainLogger","onError","Error","cause","TranslatedController","onOpen","useOpenEvent","closeProductInfoDialog","openProductInfoDialog","productInfoDialog","useProductInfoDialog","useCloseEvents","useEffect","initialOpenDone","useInitialDisclose","LoggerProvider","areaName","clientFetchConfiguration","presentationProductDetailTranslationsNamespace","presentationProductDetailDefaultTranslations","TranslationsNamespaceProvider","namespace","UserSegmentationDataProvider","disableFetching","HeadersProvider","sourceAppName","_ProductInfoDialogController","analyticsDataContext","createContext","Provider","dialogModeContext","setMode","_analyticsDataContext","_dialogModeContext","_productContext","_productsContext","_replaceSubscriptionDataContext","_sharedConfigurationContext","productContext","TestProductProvider","currentShadeDefaultValue","currentProductCode","setCurrentProductCode","currentShadeCode","find","isMultiShadeEnabled","contextValue","productsContext","setProducts","replaceSubscriptionDataContext","defaultReplaceSubscriptionDataContextValue","sharedConfigurationContext","setProductCode","setOriginalItemCode","_useGetProductInfoDialogProducts","_useGetProductBoxConfiguration","_useProductInfoDialog","_useAnalyticsData","_useCloseEvents","_useDialogMode","_useOpenEvent","_useProduct","_useProducts","_useReplaceSubscriptionData","_useSharedConfiguration","useContext","closeEvents","BasketUpdatedEvent","closeEvent","setCloseEvent","onBasketUpdated","events","listener","useGlobalEvents","useDialogMode","context","_openProductInfoDialog","_tsUtils","_mapEventsToData","eventData","setEventData","onOpenProductInfoDialog","mapEventToData","otherData","isNonNullable","useSWRFetch","fetcher","skip","formattedKey","JSON","stringify","currentKey","setCurrentKey","matchingKey","useSWR","revalidateIfStale","revalidateOnFocus","revalidateOnReconnect","fetch","isLoaded","isLoading","useGetProductBoxConfiguration","_api","_useSWRFetch","useGetProductInfoDialogProducts","loadingHeaders","useHeaders","_DialogContainer","_shouldShowIsDiscontinuedErrorInfo","fetchMode","onCloseProp","dialogProps","fetchProducts","areProductsLoaded","areProductsLoading","fetchShowMrpStatement","isProductBoxConfigurationLoaded","isProductBoxConfigurationLoading","isEnabled","isFeatureToggleLoading","useGetTenantFeatureToggle","swr","getRetryErrorSwrOptions","isOpen","useDisclose","fetchData","close","dialogMode","shouldShowIsDiscontinuedErrorInfo","isProductInfoDialogOpen","useTranslationsFromNamespace","_containers","_models","TranslationKey","_AnalyticsData","_DialogConfiguration","_Events","_ReplaceSubscriptionData","_SharedConfiguration","_TranslationKey","_OpenProductInfoDialogExtendedData","gql","_getProductsQuery","initialProduct","initialProductShade","productIndex","findIndex","_getInitialProduct","_getProductDetailUrl","atpClusterId","OpenLogin"],"sourceRoot":""}