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AWA,EAAqB,SAAI,GAAK,WAEzCA,EAAWA,EAAsB,UAAI,GAAK,YAE1CA,EAAWA,EAA8B,kBAAI,GAAK,oBAElDA,EAAWA,EAA0B,cAAI,GAAK,gBAE9CA,EAAWA,EAAsB,UAAI,GAAK,YAE1CA,EAAWA,EAA6B,iBAAI,GAAK,mBAEjDA,EAAWA,EAAsC,0BAAI,GAAK,4BAE1DA,EAAWA,EAAsB,UAAI,IAAM,YAE3CA,EAAWA,EAAmB,OAAI,IAAM,SACjCA,CACT,CA1BqC,CA0BnC,CAAC,E,kDCzBI,SAAS+B,IACd,MACEC,iBACEC,UAAWC,GACT,CAAC,IACH,SACJ,OAAOA,GAAgB,EACzB,C","sources":["webpack://oricheckoutclientapp/../../node_modules/@mui/material/CssBaseline/CssBaseline.js","webpack://oricheckoutclientapp/../../node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses.js","webpack://oricheckoutclientapp/../../node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js","webpack://oricheckoutclientapp/../../node_modules/@ori-events/open-login/dist/esm/event.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/DialogBase/BackButton.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/Dialog/Dialog.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/Dialog/dialogClasses.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/icons/dist/esm/CheckHeavy/index.js","webpack://oricheckoutclientapp/../../node_modules/@ori/basket-provider-lib/dist/esm/constants/index.js","webpack://oricheckoutclientapp/../../node_modules/@ori/checkout-utils/dist/esm/utils/removeReferralInfo.js","webpack://oricheckoutclientapp/../../node_modules/@ori/personal-beauty-store/dist/esm/utils/removeQueryParameter.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/constants.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/internals/padNumberStart.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/internals/getFormattedDate.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/formatters/formatDate.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/internals/mapDateFormatToDatePattern.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/hooks/useCulture.js","webpack://oricheckoutclientapp/../../node_modules/@ori/culture/dist/esm/types/DateFormat.js","webpack://oricheckoutclientapp/../../node_modules/@ori/shopping-context/dist/esm/useSessionId.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport GlobalStyles from '../GlobalStyles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const html = (theme, enableColorScheme) => _extends({\n WebkitFontSmoothing: 'antialiased',\n // Antialiasing.\n MozOsxFontSmoothing: 'grayscale',\n // Antialiasing.\n // Change from `box-sizing: content-box` so that `width`\n // is not affected by `padding` or `border`.\n boxSizing: 'border-box',\n // Fix font resize problem in iOS\n WebkitTextSizeAdjust: '100%'\n}, enableColorScheme && !theme.vars && {\n colorScheme: theme.palette.mode\n});\nexport const body = theme => _extends({\n color: (theme.vars || theme).palette.text.primary\n}, theme.typography.body1, {\n backgroundColor: (theme.vars || theme).palette.background.default,\n '@media print': {\n // Save printer ink.\n backgroundColor: (theme.vars || theme).palette.common.white\n }\n});\nexport const styles = (theme, enableColorScheme = false) => {\n var _theme$components;\n const colorSchemeStyles = {};\n if (enableColorScheme && theme.colorSchemes) {\n Object.entries(theme.colorSchemes).forEach(([key, scheme]) => {\n var _scheme$palette;\n colorSchemeStyles[theme.getColorSchemeSelector(key).replace(/\\s*&/, '')] = {\n colorScheme: (_scheme$palette = scheme.palette) == null ? void 0 : _scheme$palette.mode\n };\n });\n }\n let defaultStyles = _extends({\n html: html(theme, enableColorScheme),\n '*, *::before, *::after': {\n boxSizing: 'inherit'\n },\n 'strong, b': {\n fontWeight: theme.typography.fontWeightBold\n },\n body: _extends({\n margin: 0\n }, body(theme), {\n // Add support for document.body.requestFullScreen().\n // Other elements, if background transparent, are not supported.\n '&::backdrop': {\n backgroundColor: (theme.vars || theme).palette.background.default\n }\n })\n }, colorSchemeStyles);\n const themeOverrides = (_theme$components = theme.components) == null || (_theme$components = _theme$components.MuiCssBaseline) == null ? void 0 : _theme$components.styleOverrides;\n if (themeOverrides) {\n defaultStyles = [defaultStyles, themeOverrides];\n }\n return defaultStyles;\n};\n\n/**\n * Kickstart an elegant, consistent, and simple baseline to build upon.\n */\nfunction CssBaseline(inProps) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCssBaseline'\n });\n const {\n children,\n enableColorScheme = false\n } = props;\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GlobalStyles, {\n styles: theme => styles(theme, enableColorScheme)\n }), children]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? CssBaseline.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * You can wrap a node.\n */\n children: PropTypes.node,\n /**\n * Enable `color-scheme` CSS property to use `theme.palette.mode`.\n * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme\n * For browser support, check out https://caniuse.com/?search=color-scheme\n * @default false\n */\n enableColorScheme: PropTypes.bool\n} : void 0;\nexport default CssBaseline;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getScopedCssBaselineUtilityClass(slot) {\n return generateUtilityClass('MuiScopedCssBaseline', slot);\n}\nconst scopedCssBaselineClasses = generateUtilityClasses('MuiScopedCssBaseline', ['root']);\nexport default scopedCssBaselineClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"component\", \"enableColorScheme\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport { html, body } from '../CssBaseline/CssBaseline';\nimport { getScopedCssBaselineUtilityClass } from './scopedCssBaselineClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getScopedCssBaselineUtilityClass, classes);\n};\nconst ScopedCssBaselineRoot = styled('div', {\n name: 'MuiScopedCssBaseline',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(({\n theme,\n ownerState\n}) => {\n const colorSchemeStyles = {};\n if (ownerState.enableColorScheme && theme.colorSchemes) {\n Object.entries(theme.colorSchemes).forEach(([key, scheme]) => {\n var _scheme$palette;\n colorSchemeStyles[`&${theme.getColorSchemeSelector(key).replace(/\\s*&/, '')}`] = {\n colorScheme: (_scheme$palette = scheme.palette) == null ? void 0 : _scheme$palette.mode\n };\n });\n }\n return _extends({}, html(theme, ownerState.enableColorScheme), body(theme), {\n '& *, & *::before, & *::after': {\n boxSizing: 'inherit'\n },\n '& strong, & b': {\n fontWeight: theme.typography.fontWeightBold\n }\n }, colorSchemeStyles);\n});\nconst ScopedCssBaseline = /*#__PURE__*/React.forwardRef(function ScopedCssBaseline(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiScopedCssBaseline'\n });\n const {\n className,\n component = 'div'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n component\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ScopedCssBaselineRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? ScopedCssBaseline.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Enable `color-scheme` CSS property to use `theme.palette.mode`.\n * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme\n * For browser support, check out https://caniuse.com/?search=color-scheme\n */\n enableColorScheme: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ScopedCssBaseline;","export const Name = 'open-login';\nexport const OpenLogin = Name;\n//# sourceMappingURL=event.js.map","import { ArrowLeftThin } from '@ori-ui/icons';\nimport { styled } from '@ori-ui/mui-bundle/material';\nimport IconButton from '../IconButton';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst BackButtonRoot = styled(IconButton)(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n padding: theme.spacing(1),\n margin: theme.spacing(2),\n background: 'rgba(255,255,255,.75)'\n}));\nexport const BackButton = ({\n className,\n handleClick\n}) => /*#__PURE__*/_jsx(BackButtonRoot, {\n variant: \"text\",\n color: \"default\",\n className: className,\n onClick: handleClick,\n children: /*#__PURE__*/_jsx(ArrowLeftThin, {\n color: \"inherit\"\n })\n});\n//# sourceMappingURL=BackButton.js.map","import { Modal, unstable_composeClasses as composeClasses } from '@ori-ui/mui-bundle/base';\nimport { Backdrop, Paper, ScopedCssBaseline, styled, Typography, useThemeProps } from '@ori-ui/mui-bundle/material';\nimport clsx from 'clsx';\nimport { forwardRef, useCallback, useMemo } from 'react';\nimport { BackButton, calculateMaxWidth, CloseButton, DEFAULT_DIALOG_PADDING, Transition } from '../DialogBase';\nimport { capitalize, rootShouldForwardProp, shouldForwardProp } from '../utils';\nimport { getDialogUtilityClass } from './dialogClasses';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const getDialogSlots = ownerState => {\n const {\n size\n } = ownerState;\n return {\n root: ['root', `size${capitalize(size)}`],\n backButton: ['backButton'],\n closeButton: ['closeButton'],\n dialogGrid: ['dialogGrid'],\n content: ['content'],\n header: ['header']\n };\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = getDialogSlots(ownerState);\n const composedClasses = composeClasses(slots, getDialogUtilityClass, classes);\n return {\n ...classes,\n ...composedClasses\n };\n};\nconst DialogRoot = styled('div', {\n name: 'MuiOriDialog',\n slot: 'Root',\n overridesResolver: ({\n ownerState\n }, styles) => [styles.root, styles[`size${capitalize(ownerState.size)}`]],\n shouldForwardProp: prop => rootShouldForwardProp(prop)\n})(({\n theme\n}) => ({\n position: 'fixed',\n zIndex: theme.zIndex.modal,\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n outline: 0,\n [theme.breakpoints.only('xs')]: {\n alignItems: 'flex-end'\n }\n}));\nconst DialogBackdrop = styled(Backdrop, {\n name: 'MuiOriDialog',\n slot: 'Backdrop',\n overridesResolver: (_, styles) => [styles.backdrop]\n})({\n zIndex: -1\n});\nconst DialogGrid = styled(Paper, {\n name: 'MuiOriDialog',\n slot: 'DialogGrid',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.dialogGrid],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme,\n ownerState\n}) => ({\n display: 'grid',\n gridTemplateAreas: `\n \". header .\"\n \"content content content\"\n `,\n gridTemplateColumns: '1fr auto 1fr',\n gridTemplateRows: 'auto 1fr',\n justifyItems: 'stretch',\n position: 'relative',\n minWidth: 320,\n maxWidth: ownerState.maxWidth,\n ...(ownerState.fullWidth && {\n width: `calc(100% - ${DEFAULT_DIALOG_PADDING})`\n }),\n minHeight: 100,\n maxHeight: `calc(100% - ${theme.spacing(32)})`,\n outline: 0,\n overflow: 'hidden',\n padding: 0,\n [theme.breakpoints.only('xs')]: {\n boxSizing: 'border-box',\n minWidth: '100vw',\n maxWidth: '100vw',\n width: '100vw',\n maxHeight: `calc(100% - ${theme.spacing(12)})`,\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n }\n}));\nconst Header = styled('div', {\n name: 'MuiOriDialog',\n slot: 'Header',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.header],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme\n}) => ({\n gridArea: 'header',\n padding: theme.spacing(8, 6, 0, 6),\n [theme.breakpoints.only('xs')]: {\n padding: theme.spacing(7, 3, 3, 3)\n }\n}));\nconst Content = styled(ScopedCssBaseline, {\n name: 'MuiOriDialog',\n slot: 'Content',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.content],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme,\n ownerState\n}) => ({\n gridArea: 'content',\n background: 'transparent',\n height: '100%',\n overflowY: 'auto',\n padding: 0,\n ...(ownerState.size === 'small' && {\n overflow: 'auto'\n }),\n ...(ownerState.size === 'medium' && {\n scrollbarGutter: 'stable',\n padding: theme.spacing(0, 4, 6, 6),\n [theme.breakpoints.only('xs')]: {\n padding: theme.spacing(0, 3, 6, 3)\n }\n }),\n ...(ownerState.size === 'medium' && ownerState.header === undefined && {\n scrollbarGutter: 'stable',\n padding: theme.spacing(8, 4, 6, 6),\n [theme.breakpoints.only('xs')]: {\n padding: theme.spacing(7, 3, 6, 3)\n }\n })\n}));\nexport const Dialog = /*#__PURE__*/forwardRef((inProps, ref) => {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiOriDialog'\n });\n const {\n ariaDescribedby,\n ariaLabelledby,\n ariaModal = true,\n backButton: _,\n children = null,\n className,\n closeAfterTransition = true,\n closeButtonProps = {\n variant: 'text',\n color: 'default'\n },\n disableAutoFocus = false,\n disableEnforceFocus = false,\n disableEscapeKeyDown = false,\n disablePortal = true,\n disableRestoreFocus = false,\n disableScrollLock = false,\n fullWidth = false,\n maxWidth = '60vw',\n header,\n hideBackdrop = false,\n hideCloseButton,\n keepMounted = false,\n onBack,\n open,\n showBackButton,\n size = 'medium',\n transitionProps,\n ...other\n } = props;\n const {\n onClose\n } = other;\n const commonProps = {\n closeAfterTransition,\n disableAutoFocus,\n disableEnforceFocus,\n disableEscapeKeyDown,\n disablePortal,\n disableRestoreFocus,\n disableScrollLock,\n hideBackdrop,\n keepMounted\n };\n const maxWidthCalculated = useMemo(() => calculateMaxWidth(maxWidth), [maxWidth]);\n const ownerState = useMemo(() => ({\n ...props,\n size,\n maxWidth: maxWidthCalculated,\n fullWidth\n }), [fullWidth, maxWidthCalculated, props, size]);\n const classes = useUtilityClasses(ownerState);\n const handleClose = useCallback(event => {\n onClose?.(event ?? {}, 'escapeKeyDown');\n }, [onClose]);\n const handleBackClick = useCallback(() => {\n onBack?.();\n }, [onBack]);\n const {\n backButton = /*#__PURE__*/_jsx(BackButton, {\n className: classes.backButton,\n handleClick: handleBackClick\n })\n } = props;\n const headerComponent = useMemo(() => {\n if (typeof header === 'undefined' || header === null || header === '') {\n return null;\n }\n if (typeof header === 'string') {\n return /*#__PURE__*/_jsx(Header, {\n ownerState: ownerState,\n className: classes.header,\n children: /*#__PURE__*/_jsx(Typography, {\n gutterBottom: true,\n variant: \"h4\",\n align: \"center\",\n children: header\n })\n });\n }\n return /*#__PURE__*/_jsx(Header, {\n ownerState: ownerState,\n className: classes.header,\n children: header\n });\n }, [classes.header, header, ownerState]);\n const showChildren = useMemo(() => {\n if (typeof children === 'undefined' || children === null) {\n return false;\n }\n return true;\n }, [children]);\n return /*#__PURE__*/_jsx(Modal, {\n slots: {\n root: DialogRoot,\n backdrop: DialogBackdrop\n },\n slotProps: {\n root: () => ({\n ownerState\n })\n },\n open: open,\n className: clsx(classes.root, className),\n ...other,\n ref: ref,\n ...commonProps,\n children: /*#__PURE__*/_jsx(Transition, {\n ...transitionProps,\n in: open,\n children: /*#__PURE__*/_jsxs(DialogGrid, {\n ownerState: ownerState,\n className: classes.dialogGrid,\n role: \"dialog\",\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-modal\": ariaModal,\n children: [showBackButton ? backButton : null, !hideCloseButton && /*#__PURE__*/_jsx(CloseButton, {\n ...closeButtonProps,\n className: classes.closeButton,\n handleClick: handleClose\n }), headerComponent, showChildren ? /*#__PURE__*/_jsx(Content, {\n ownerState: ownerState,\n className: classes.content,\n children: children\n }) : null]\n })\n })\n });\n});\nexport default Dialog;\n//# sourceMappingURL=Dialog.js.map","import { generateUtilityClass, generateUtilityClasses } from '@ori-ui/mui-bundle/base';\nexport function getDialogUtilityClass(slot) {\n return generateUtilityClass('MuiOriDialog', slot);\n}\nexport const dialogClasses = generateUtilityClasses('MuiOriDialog', ['root', 'backButton', 'backdrop', 'closeButton', 'content', 'dialogGrid', 'header', 'sizeMedium', 'sizeSmall']);\nexport default dialogClasses;\n//# sourceMappingURL=dialogClasses.js.map","import { createSvgIcon } from '@ori-ui/mui-bundle/material/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19.707 6.293a1 1 0 0 1 0 1.414l-10 10a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L9 15.586l9.293-9.293a1 1 0 0 1 1.414 0\"\n}), 'CheckHeavy');\n//# sourceMappingURL=index.js.map","export * from '../constants-generated';\n\n/** Storage key under which the shopping context data gets stored. */\nexport const CONTEXT_KEY = 'shoppingContext';\n\n/** Local storage data will be cleaned on next reload when older than this timeout (currently 5 minutes in ms). */\nexport const DATA_CACHE_TIMEOUT = 300000;\n\n/** In some situations, we mark the local cache to be cleaned after page reload with this flag. */\nexport const SCHEDULED_CLEANUP_KEY = `basket-provider cache cleanup`;\n\n/** User cookie helps identifying the current shopping session. */\nexport const USER_COOKIE_NAME = 'ShoppingKey';\n\n/** GUID of the UseIndexedDb feature toggle. */\nexport const USE_INDEXED_DB_FT_GUID = '121C4156-31A6-4259-BCEC-954302CA7659';\n\n/**\n * Experimental delay before the shopping-context-loaded event gets triggered.\n * This is here to fix problems in automated UI tests, if possible.\n */\nexport const POST_INIT_EVENT_DELAY = 200;\nexport const LOG_COLOR = '090';\n//# sourceMappingURL=index.js.map","import { PbsCookieNames, removeQueryParameter } from '@ori/personal-beauty-store';\nimport Cookies from 'js-cookie';\nexport const removeReferralInfo = voucherName => {\n if (!voucherName) {\n return;\n }\n const currentReferral = Cookies.get(PbsCookieNames.PBS_OWNER);\n if (currentReferral !== voucherName) {\n return;\n }\n Cookies.remove(PbsCookieNames.PBS_OWNER);\n removeQueryParameter('store');\n};\n//# sourceMappingURL=removeReferralInfo.js.map","import { updateQueryParameters } from './updateQueryParameters';\n\n/**\n * Removes query parameter from browser URL\n */\nexport const removeQueryParameter = name => {\n const queryParams = new URLSearchParams(window.location.search);\n if (!queryParams.has(name)) {\n return;\n }\n queryParams.delete(name);\n updateQueryParameters(queryParams);\n};\n//# sourceMappingURL=removeQueryParameter.js.map","export const DEFAULT_DOUBLE_CURRENCY_DELIMITER = ' / ';\nexport const NON_BREAKING_SPACE_CHARACTER = ' ';\nexport let SEPARATORS = /*#__PURE__*/function (SEPARATORS) {\n SEPARATORS[\"COMMA\"] = \",\";\n SEPARATORS[\"DOT\"] = \".\";\n return SEPARATORS;\n}({});\nexport const dateFormatRegExp = /dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|\"[^\"]*\"|'[^']*'/g;\n//# sourceMappingURL=constants.js.map","/** Pads the value with a given string to a given length from the start (left). */\nexport function padNumberStart(value, digits, fillString) {\n return String(value).padStart(digits, fillString);\n}\n//# sourceMappingURL=padNumberStart.js.map","import { dateFormatRegExp } from '../constants';\nimport { padNumberStart } from './padNumberStart';\nconst FILL_STRING = '0';\n\n/**\n * Formats the date based on the {@link pattern date formatting pattern} and {@link calendarFormat calendar formatting settings}.\n * @param value Value to format\n * @param pattern Date formatting pattern\n * @param calendarFormat Culture settings for date formatting\n * @returns Formatted date\n */\nexport function getFormattedDate(value, pattern, calendarFormat) {\n // eslint-disable-next-line complexity -- This function comes from kendo-core\n return pattern.replaceAll(dateFormatRegExp, match => {\n let result;\n\n // eslint-disable-next-line default-case -- no default case needed\n switch (match) {\n case 'd':\n result = value.getDate().toString();\n break;\n case 'dd':\n result = padNumberStart(value.getDate(), 2, FILL_STRING);\n break;\n case 'ddd':\n result = calendarFormat?.days?.abbreviatedNames[value.getDay()] ?? '';\n break;\n case 'dddd':\n result = calendarFormat?.days?.names[value.getDay()] ?? '';\n break;\n case 'M':\n result = (value.getMonth() + 1).toString();\n break;\n case 'MM':\n result = padNumberStart(value.getMonth() + 1, 2, FILL_STRING);\n break;\n case 'MMM':\n result = calendarFormat?.months?.abbreviatedNames[value.getMonth()] ?? '';\n break;\n case 'MMMM':\n result = calendarFormat?.months?.names[value.getMonth()] ?? '';\n break;\n case 'yy':\n result = padNumberStart(value.getFullYear() % 100, 2, FILL_STRING);\n break;\n case 'yyyy':\n result = padNumberStart(value.getFullYear(), 4, FILL_STRING);\n break;\n case 'h':\n result = (value.getHours() % 12 || 12).toString();\n break;\n case 'hh':\n result = padNumberStart(value.getHours() % 12 || 12, 2, FILL_STRING);\n break;\n case 'H':\n result = value.getHours().toString();\n break;\n case 'HH':\n result = padNumberStart(value.getHours(), 2, FILL_STRING);\n break;\n case 'm':\n result = value.getMinutes().toString();\n break;\n case 'mm':\n result = padNumberStart(value.getMinutes(), 2, FILL_STRING);\n break;\n case 's':\n result = value.getSeconds().toString();\n break;\n case 'ss':\n result = padNumberStart(value.getSeconds(), 2, FILL_STRING);\n break;\n case 'f':\n result = Math.floor(value.getMilliseconds() / 100).toString();\n break;\n case 'ff':\n {\n const resultNumber = value.getMilliseconds();\n if (resultNumber > 99) {\n result = Math.floor(resultNumber / 10).toString();\n }\n result = padNumberStart(resultNumber, 2, FILL_STRING);\n break;\n }\n case 'fff':\n result = padNumberStart(value.getMilliseconds(), 3, FILL_STRING);\n break;\n case 'tt':\n result = value.getHours() < 12 ? calendarFormat?.amDesignator ?? '' : calendarFormat?.pmDesignator ?? '';\n break;\n case 'z':\n case 'zz':\n {\n const resultNumber = value.getTimezoneOffset() / 60;\n const sign = resultNumber < 0;\n result = Math.abs(resultNumber).toString().split('.')[0];\n // result = (sign ? '+' : '-') + (match === 'zz' ? padString(result) : result);\n result = (sign ? '+' : '-') + (match === 'zz' ? result.padStart(2, FILL_STRING) : result);\n break;\n }\n case 'zzz':\n {\n let minutes = value.getTimezoneOffset();\n const sign = minutes < 0;\n result = Math.abs(minutes / 60).toString().split('.')[0];\n const resultNumber = Number.parseInt(result, 10);\n minutes = Math.abs(minutes) - resultNumber * 60;\n result = (sign ? '+' : '-') + result.padStart(2, FILL_STRING);\n result += `:${padNumberStart(minutes, 2, FILL_STRING)}`;\n break;\n }\n }\n return result ?? match.slice(1, -1);\n });\n}\n//# sourceMappingURL=getFormattedDate.js.map","/**\n * Javascript Date timezones behavior:\n * - If the input date doesn't contain timezone e.g.: new Date('December 4, 2020 20:34:25'), then it is considered to be in the runtime timezone and the formatted string is in the same timezone.\n * - If the input date contains timezone e.g.: new Date('December 4, 2020 20:34:25 GMT+05:00'), then the formatted string is displayed in the runtime timezone.\n * - If the input date is initialized as unix epoch (seconds since 1970) e.g.: new Date('1643311226'), then the formatted string is displayed in the runtime timezone because unix epoch is always in UTC.\n */\n\nimport { getFormattedDate } from '../internals/getFormattedDate';\nimport { mapDateFormatToDatePattern } from '../internals/mapDateFormatToDatePattern';\n/**\n * Returns parameter `value` formatted according to selected date `format`.\n *\n * The timezone information in the date value is optional. If the timezone information is missing, then it is expected to be the tenant timezone.\n *\n * The `value` is formatted in the runtime culture in case:\n * - the {@link culture} setting is not provided,\n * - the calendar formatting rules or date patterns are not available in the {@link culture} setting,\n * - the custom pattern is not defined.\n *\n * @param date Date value to format\n * @param format The type of output string format (e.g. full date time)\n * @param culture Culture settings containing formatting rules\n * @param timeZone Timezone identifications\n * @param options Additional formatting options\n * @returns `value` formatted according to selected date `format`\n * @example\n // basic usage\n import { formatDate, useCulture } from '@ori/culture';\n const { culture, timeZone } = useCulture();\n const formattedDate = formatDate(new Date(), DateFormat.ShortDateTime, culture, timeZone);\n\n // use a custom pattern\n formatDate(new Date(), DateFormat.Custom, culture, timeZone, { customPattern: 'dd.MM.yyyy' });\n\n // enable transformation to the runtime (local) timezone\n formatDate(new Date(), DateFormat.ShortDateTime, culture, timeZone, { toLocalTimezone: true });\n */\n// eslint-disable-next-line max-params -- needed for formatting\nexport function formatDate(date, format, culture, timeZone, options) {\n const {\n customPattern,\n toLocalTimezone\n } = options ?? {};\n const {\n calendarFormat\n } = culture ?? {};\n const {\n patterns\n } = calendarFormat ?? {};\n const datePattern = mapDateFormatToDatePattern(format, patterns, customPattern);\n if (!calendarFormat || !datePattern) {\n // it is preferred by the business to display the value formatted in the runtime culture than no value at all\n return date.toLocaleString();\n }\n\n // keep the given value in the runtime (OS and browser) timezone\n if (toLocalTimezone) {\n return getFormattedDate(date, datePattern, calendarFormat);\n }\n return getFormattedDate(\n // convert the given value to the tenant time zome\n new Date(date.toLocaleString('en-US', {\n timeZone: timeZone?.tzdbId\n })), datePattern, calendarFormat);\n}\n//# sourceMappingURL=formatDate.js.map","import { DateFormat } from '../types';\n\n/**\n * Returns date formatting pattern selected from the {@link patterns} or {@link customPattern custom pattern} parameters according to the given date {@link format} value.\n * @param format The date format\n * @param patterns An object containing available date formatting patterns\n * @param customPattern Specifies a custom pattern (e.g. 'dd.MM.yyyy') for the date formatting\n * @returns Date formatting pattern\n */\nexport function mapDateFormatToDatePattern(format, patterns, customPattern) {\n if (!patterns) {\n return undefined;\n }\n switch (format) {\n case DateFormat.FullDateTime:\n return patterns.fullDateTimePattern;\n case DateFormat.LongDate:\n return patterns.longDatePattern;\n case DateFormat.LongTime:\n return patterns.longTimePattern;\n case DateFormat.MonthDay:\n return patterns.monthDayPattern;\n case DateFormat.ShortDateLongTime:\n return patterns.shortDateLongTimePattern;\n case DateFormat.ShortDate:\n return patterns.shortDatePattern;\n case DateFormat.ShortDateTime:\n return patterns.shortDateTimePattern;\n case DateFormat.ShortTime:\n return patterns.shortTimePattern;\n case DateFormat.SortableDateTime:\n return patterns.sortableDateTimePattern;\n case DateFormat.UniversalSortableDateTime:\n return patterns.universalSortableDateTimePattern;\n case DateFormat.YearMonth:\n return patterns.yearMonthPattern;\n case DateFormat.Custom:\n if (!customPattern) {\n throw new Error(\"It's mandatory to specify custom date format pattern for Custom Type!\");\n }\n return customPattern;\n default:\n return undefined;\n }\n}\n//# sourceMappingURL=mapDateFormatToDatePattern.js.map","import { useContext } from 'react';\nimport { cultureContext } from '../contexts';\n\n/**\n * Returns stored language, culture settings, financial settings and timezone identification.\n *\n * @returns Language, culture settings, financial settings and timezome identification.\n * @example\n const { language, culture, financialSet, timeZone } = useCulture();\n */\nexport function useCulture() {\n return useContext(cultureContext);\n}\n//# sourceMappingURL=useCulture.js.map","export let DateFormat = /*#__PURE__*/function (DateFormat) {\n // cs-CZ example: \"dddd d. MMMM yyyy H:mm:ss\"\n DateFormat[DateFormat[\"FullDateTime\"] = 0] = \"FullDateTime\";\n // cs-CZ example: \"dddd d. MMMM yyyy\"\n DateFormat[DateFormat[\"LongDate\"] = 1] = \"LongDate\";\n // cs-CZ example: \"H:mm:ss\"\n DateFormat[DateFormat[\"LongTime\"] = 2] = \"LongTime\";\n // cs-CZ example: \"d. MMMM\"\n DateFormat[DateFormat[\"MonthDay\"] = 3] = \"MonthDay\";\n // cs-CZ example: \"dd.MM.yyyy\"\n DateFormat[DateFormat[\"ShortDate\"] = 4] = \"ShortDate\";\n // cs-CZ example: \"dd.MM.yyyy H:mm:ss\"\n DateFormat[DateFormat[\"ShortDateLongTime\"] = 5] = \"ShortDateLongTime\";\n // cs-CZ example: \"dd.MM.yyyy H:mm\"\n DateFormat[DateFormat[\"ShortDateTime\"] = 6] = \"ShortDateTime\";\n // cs-CZ example: \"H:mm\"\n DateFormat[DateFormat[\"ShortTime\"] = 7] = \"ShortTime\";\n // cs-CZ example: \"yyyy'-'MM'-'dd'T'HH':'mm':'ss\"\n DateFormat[DateFormat[\"SortableDateTime\"] = 8] = \"SortableDateTime\";\n // cs-CZ example: \"yyyy'-'MM'-'dd HH':'mm':'ss'Z'\"\n DateFormat[DateFormat[\"UniversalSortableDateTime\"] = 9] = \"UniversalSortableDateTime\";\n // cs-CZ example: \"MMMM yyyy\"\n DateFormat[DateFormat[\"YearMonth\"] = 10] = \"YearMonth\";\n // Custom date format pattern\n DateFormat[DateFormat[\"Custom\"] = 11] = \"Custom\";\n return DateFormat;\n}({});\n//# sourceMappingURL=DateFormat.js.map","import { useShoppingContext } from './useShoppingContext';\nexport function useSessionId() {\n const {\n shoppingContext: {\n sessionId: rawSessionId\n } = {}\n } = useShoppingContext();\n return rawSessionId ?? '';\n}\n//# sourceMappingURL=useSessionId.js.map"],"names":["html","theme","enableColorScheme","WebkitFontSmoothing","MozOsxFontSmoothing","boxSizing","WebkitTextSizeAdjust","vars","colorScheme","palette","mode","body","color","text","primary","typography","body1","backgroundColor","background","default","common","white","getScopedCssBaselineUtilityClass","slot","generateUtilityClass","generateUtilityClasses","_excluded","ScopedCssBaselineRoot","styled","name","overridesResolver","props","styles","root","ownerState","colorSchemeStyles","colorSchemes","Object","entries","forEach","key","scheme","_scheme$palette","getColorSchemeSelector","replace","fontWeight","fontWeightBold","inProps","ref","className","component","other","classes","composeClasses","useUtilityClasses","as","clsx","Name","BackButtonRoot","IconButton","position","top","left","padding","spacing","margin","BackButton","handleClick","variant","onClick","children","ArrowLeftThin","A","slots","size","capitalize","backButton","closeButton","dialogGrid","content","header","getDialogSlots","composedClasses","DialogRoot","shouldForwardProp","prop","zIndex","modal","right","bottom","display","alignItems","justifyContent","outline","breakpoints","only","DialogBackdrop","Backdrop","_","backdrop","DialogGrid","Paper","skipSx","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","justifyItems","minWidth","maxWidth","fullWidth","width","minHeight","maxHeight","overflow","borderBottomLeftRadius","borderBottomRightRadius","Header","gridArea","Content","ScopedCssBaseline","height","overflowY","scrollbarGutter","undefined","forwardRef","useThemeProps","ariaDescribedby","ariaLabelledby","ariaModal","closeAfterTransition","closeButtonProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","hideCloseButton","keepMounted","onBack","open","showBackButton","transitionProps","onClose","commonProps","maxWidthCalculated","useMemo","calculateMaxWidth","handleClose","useCallback","event","handleBackClick","headerComponent","Typography","gutterBottom","align","showChildren","Modal","slotProps","Transition","in","role","CloseButton","getDialogUtilityClass","d","SCHEDULED_CLEANUP_KEY","removeReferralInfo","voucherName","get","PbsCookieNames","PBS_OWNER","remove","queryParams","URLSearchParams","window","location","search","has","delete","updateQueryParameters","removeQueryParameter","DEFAULT_DOUBLE_CURRENCY_DELIMITER","NON_BREAKING_SPACE_CHARACTER","SEPARATORS","dateFormatRegExp","padNumberStart","value","digits","fillString","String","padStart","FILL_STRING","getFormattedDate","pattern","calendarFormat","replaceAll","match","result","getDate","toString","days","abbreviatedNames","getDay","names","getMonth","months","getFullYear","getHours","getMinutes","getSeconds","Math","floor","getMilliseconds","resultNumber","amDesignator","pmDesignator","getTimezoneOffset","sign","abs","split","minutes","Number","parseInt","slice","formatDate","date","format","culture","timeZone","options","customPattern","toLocalTimezone","patterns","datePattern","DateFormat","FullDateTime","fullDateTimePattern","LongDate","longDatePattern","LongTime","longTimePattern","MonthDay","monthDayPattern","ShortDateLongTime","shortDateLongTimePattern","ShortDate","shortDatePattern","ShortDateTime","shortDateTimePattern","ShortTime","shortTimePattern","SortableDateTime","sortableDateTimePattern","UniversalSortableDateTime","universalSortableDateTimePattern","YearMonth","yearMonthPattern","Custom","Error","mapDateFormatToDatePattern","Date","toLocaleString","tzdbId","useCulture","useContext","useSessionId","shoppingContext","sessionId","rawSessionId"],"sourceRoot":""}