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,EAAEqB,MAAMZ,EAAEa,IAAG,QAAEA,EAAElB,EAAEK,EAAEX,EAAEY,EAAE,GAAGqB,OAAOrB,EAAEV,EAAEE,SAASF,EAAEE,QAAQ,CAACL,EAAEmC,OAAO,CAAC,OAAOvB,CAAC,CAAC,SAAST,EAAED,EAAEC,EAAEF,GAAG,YAAO,IAASA,IAAIA,EAAE,CAAC,GAAG,SAASgB,EAAEQ,EAAEG,GAAG,IAAI,OAAOQ,QAAQC,QAAQ,SAAS9B,EAAEK,GAAG,IAAI,IAAIa,EAAEW,QAAQC,QAAQnC,EAAE,SAASD,EAAErL,KAAK,QAAQ,cAAcqM,EAAEd,IAAImC,MAAK,SAAS/B,GAAG,OAAOqB,EAAEjB,2BAA2B,EAAE,CAAC,EAAEiB,GAAG,CAACE,OAAO,CAAC,EAAExL,OAAO2J,EAAEsC,IAAIxB,OAAOC,OAAO,CAAC,EAAEC,GAAGV,EAAE,GAAE,CAAC,MAAMP,GAAG,OAAOY,EAAEZ,EAAE,CAAC,OAAOyB,GAAGA,EAAEa,KAAKb,EAAEa,UAAK,EAAO1B,GAAGa,CAAC,CAA5P,CAA8P,GAAE,SAASzB,GAAG,GAAG,SAASA,GAAG,OAAOwC,MAAMC,QAAQ,MAAMzC,OAAE,EAAOA,EAAE8B,OAAO,CAAzD,CAA2D9B,GAAG,MAAM,CAAC1J,OAAO,CAAC,EAAEwL,OAAO,EAAE,EAAE9B,EAAE8B,QAAQF,EAAEjB,2BAA2B,QAAQiB,EAAEc,cAAcd,IAAI,MAAM5B,CAAC,IAAG,CAAC,MAAMA,GAAG,OAAOoC,QAAQO,OAAO3C,EAAE,CAAC,CAAC,C","sources":["webpack://oricheckoutclientapp/../../node_modules/@ori-events/request-clear-shopping-cache/dist/esm/index.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/DialogBase/CloseButton.js","webpack://oricheckoutclientapp/../../node_modules/@mui/material/Slide/Slide.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/DialogBase/Transition.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/DialogBase/calculateMaxWidth.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/FeedbackDialog/feedbackDialogClasses.js","webpack://oricheckoutclientapp/../../node_modules/@ori-ui/components/dist/esm/FeedbackDialog/FeedbackDialog.js","webpack://oricheckoutclientapp/../../node_modules/@ori/checkout-utils/dist/esm/utils/setReferralInfo.js","webpack://oricheckoutclientapp/../../node_modules/@ori/personal-beauty-store/dist/esm/utils/ensureQueryParameter.js","webpack://oricheckoutclientapp/../../node_modules/@ori/personal-beauty-store/dist/esm/models/PbsCookieNames.js","webpack://oricheckoutclientapp/../../node_modules/@ori/personal-beauty-store/dist/esm/utils/updateQueryParameters.js","webpack://oricheckoutclientapp/../../node_modules/@hookform/resolvers/dist/resolvers.mjs","webpack://oricheckoutclientapp/../../node_modules/@hookform/resolvers/zod/dist/zod.mjs"],"sourcesContent":["export const Name = 'request-clear-shopping-cache';\nexport const RequestClearShoppingCacheEvent = Name;\n//# sourceMappingURL=index.js.map","import { Clear } 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 CloseButtonRoot = styled(IconButton)(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n right: 0,\n padding: theme.spacing(1.4),\n margin: theme.spacing(2),\n background: 'rgba(255,255,255,.75)'\n}));\nexport const CloseButton = ({\n className,\n handleClick,\n variant,\n color\n}) => /*#__PURE__*/_jsx(CloseButtonRoot, {\n variant: variant,\n color: color,\n className: className,\n onClick: handleClick,\n children: /*#__PURE__*/_jsx(Clear, {\n fontSize: \"small\",\n color: \"inherit\"\n })\n});\n//# sourceMappingURL=CloseButton.js.map","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"container\", \"direction\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport debounce from '../utils/debounce';\nimport useForkRef from '../utils/useForkRef';\nimport useTheme from '../styles/useTheme';\nimport { reflow, getTransitionProps } from '../transitions/utils';\nimport { ownerWindow } from '../utils';\n\n// Translate the node so it can't be seen on the screen.\n// Later, we're going to translate the node back to its original location with `none`.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getTranslateValue(direction, node, resolvedContainer) {\n const rect = node.getBoundingClientRect();\n const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();\n const containerWindow = ownerWindow(node);\n let transform;\n if (node.fakeTransform) {\n transform = node.fakeTransform;\n } else {\n const computedStyle = containerWindow.getComputedStyle(node);\n transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');\n }\n let offsetX = 0;\n let offsetY = 0;\n if (transform && transform !== 'none' && typeof transform === 'string') {\n const transformValues = transform.split('(')[1].split(')')[0].split(',');\n offsetX = parseInt(transformValues[4], 10);\n offsetY = parseInt(transformValues[5], 10);\n }\n if (direction === 'left') {\n if (containerRect) {\n return `translateX(${containerRect.right + offsetX - rect.left}px)`;\n }\n return `translateX(${containerWindow.innerWidth + offsetX - rect.left}px)`;\n }\n if (direction === 'right') {\n if (containerRect) {\n return `translateX(-${rect.right - containerRect.left - offsetX}px)`;\n }\n return `translateX(-${rect.left + rect.width - offsetX}px)`;\n }\n if (direction === 'up') {\n if (containerRect) {\n return `translateY(${containerRect.bottom + offsetY - rect.top}px)`;\n }\n return `translateY(${containerWindow.innerHeight + offsetY - rect.top}px)`;\n }\n\n // direction === 'down'\n if (containerRect) {\n return `translateY(-${rect.top - containerRect.top + rect.height - offsetY}px)`;\n }\n return `translateY(-${rect.top + rect.height - offsetY}px)`;\n}\nfunction resolveContainer(containerPropProp) {\n return typeof containerPropProp === 'function' ? containerPropProp() : containerPropProp;\n}\nexport function setTranslateValue(direction, node, containerProp) {\n const resolvedContainer = resolveContainer(containerProp);\n const transform = getTranslateValue(direction, node, resolvedContainer);\n if (transform) {\n node.style.webkitTransform = transform;\n node.style.transform = transform;\n }\n}\n\n/**\n * The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {\n const theme = useTheme();\n const defaultEasing = {\n enter: theme.transitions.easing.easeOut,\n exit: theme.transitions.easing.sharp\n };\n const defaultTimeout = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n addEndListener,\n appear = true,\n children,\n container: containerProp,\n direction = 'down',\n easing: easingProp = defaultEasing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = defaultTimeout,\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const childrenRef = React.useRef(null);\n const handleRef = useForkRef(children.ref, childrenRef, ref);\n const normalizedTransitionCallback = callback => isAppearing => {\n if (callback) {\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (isAppearing === undefined) {\n callback(childrenRef.current);\n } else {\n callback(childrenRef.current, isAppearing);\n }\n }\n };\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n setTranslateValue(direction, node, containerProp);\n reflow(node);\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntering = normalizedTransitionCallback((node, isAppearing) => {\n const transitionProps = getTransitionProps({\n timeout,\n style,\n easing: easingProp\n }, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', _extends({}, transitionProps));\n node.style.transition = theme.transitions.create('transform', _extends({}, transitionProps));\n node.style.webkitTransform = 'none';\n node.style.transform = 'none';\n if (onEntering) {\n onEntering(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const transitionProps = getTransitionProps({\n timeout,\n style,\n easing: easingProp\n }, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', transitionProps);\n node.style.transition = theme.transitions.create('transform', transitionProps);\n setTranslateValue(direction, node, containerProp);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(node => {\n // No need for transitions when the component is hidden\n node.style.webkitTransition = '';\n node.style.transition = '';\n if (onExited) {\n onExited(node);\n }\n });\n const handleAddEndListener = next => {\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(childrenRef.current, next);\n }\n };\n const updatePosition = React.useCallback(() => {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current, containerProp);\n }\n }, [direction, containerProp]);\n React.useEffect(() => {\n // Skip configuration where the position is screen size invariant.\n if (inProp || direction === 'down' || direction === 'right') {\n return undefined;\n }\n const handleResize = debounce(() => {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current, containerProp);\n }\n });\n const containerWindow = ownerWindow(childrenRef.current);\n containerWindow.addEventListener('resize', handleResize);\n return () => {\n handleResize.clear();\n containerWindow.removeEventListener('resize', handleResize);\n };\n }, [direction, inProp, containerProp]);\n React.useEffect(() => {\n if (!inProp) {\n // We need to update the position of the drawer when the direction change and\n // when it's hidden.\n updatePosition();\n }\n }, [inProp, updatePosition]);\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n nodeRef: childrenRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n appear: appear,\n in: inProp,\n timeout: timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n ref: handleRef,\n style: _extends({\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, style, children.props.style)\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Slide.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 * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * An HTML element, or a function that returns one.\n * It's used to set the container the Slide is transitioning from.\n */\n container: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {\n if (props.open) {\n const resolvedContainer = resolveContainer(props.container);\n if (resolvedContainer && resolvedContainer.nodeType === 1) {\n const box = resolvedContainer.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `container` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== 'function' || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `container` prop provided to the component is invalid.', 'It should be an HTML element instance.'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Direction the child node will enter from.\n * @default 'down'\n */\n direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n * @default {\n * enter: theme.transitions.easing.easeOut,\n * exit: theme.transitions.easing.sharp,\n * }\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Slide;","import { Fade, Slide, useTheme } from '@ori-ui/mui-bundle/material';\nimport { forwardRef, useEffect, useState } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const Transition = /*#__PURE__*/forwardRef((props, ref) => {\n const theme = useTheme();\n const [screenWidth, setScreenWidth] = useState(400);\n useEffect(() => {\n setScreenWidth(window.innerWidth);\n function handleResize() {\n setScreenWidth(window.innerWidth);\n }\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n if (screenWidth >= theme.breakpoints.values.sm) {\n return /*#__PURE__*/_jsx(Fade, {\n ref: ref,\n ...props\n });\n }\n return /*#__PURE__*/_jsx(Slide, {\n ref: ref,\n direction: \"up\",\n ...props\n });\n});\n//# sourceMappingURL=Transition.js.map","export const DEFAULT_DIALOG_PADDING = '60px';\nexport function calculateMaxWidth(maxWidth) {\n const numberValue = Number.parseFloat(maxWidth.replaceAll(/\\D/g, ''));\n if (maxWidth.slice(-2) === 'vw') {\n if (numberValue > 90) {\n return `calc(${maxWidth} - ${DEFAULT_DIALOG_PADDING})`;\n }\n return maxWidth;\n }\n if (maxWidth.slice(-1) === '%') {\n if (numberValue > 90) {\n return `calc(${maxWidth} - ${DEFAULT_DIALOG_PADDING})`;\n }\n return maxWidth;\n }\n if (maxWidth.slice(-2) === 'px') {\n return `calc(${maxWidth} - ${DEFAULT_DIALOG_PADDING})`;\n }\n return maxWidth;\n}\n//# sourceMappingURL=calculateMaxWidth.js.map","import { generateUtilityClass, generateUtilityClasses } from '@ori-ui/mui-bundle/base';\nexport function getFeedbackDialogUtilityClass(slot) {\n return generateUtilityClass('MuiOriFeedbackDialog', slot);\n}\nexport const feedbackDialogClasses = generateUtilityClasses('MuiOriFeedbackDialog', ['root', 'banner', 'backdrop', 'closeButton', 'dialogGrid', 'content', 'header', 'text', 'message', 'actions', 'severityError', 'severityInfo', 'severitySuccess', 'severityWarning']);\nexport default feedbackDialogClasses;\n//# sourceMappingURL=feedbackDialogClasses.js.map","import { CheckCircleFilled, InfoCircleFilled, ErrorCircleFilled, WarningFilled } from '@ori-ui/icons';\nimport { Modal, unstable_composeClasses as composeClasses } from '@ori-ui/mui-bundle/base';\nimport { Backdrop, Paper, styled, Typography, useThemeProps } from '@ori-ui/mui-bundle/material';\nimport clsx from 'clsx';\nimport { forwardRef, useCallback, useMemo } from 'react';\nimport { calculateMaxWidth, CloseButton, DEFAULT_DIALOG_PADDING, Transition } from '../DialogBase';\nimport { capitalize, rootShouldForwardProp, shouldForwardProp } from '../utils';\nimport { getFeedbackDialogUtilityClass } from './feedbackDialogClasses';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const getFeedbackDialogSlots = ownerState => {\n const {\n color,\n severity\n } = ownerState;\n return {\n root: ['root', `severity${capitalize(color ?? severity)}`],\n closeButton: ['closeButton'],\n dialogGrid: ['dialogGrid'],\n banner: ['banner'],\n content: ['content'],\n actions: ['actions'],\n header: ['header'],\n text: ['text']\n };\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = getFeedbackDialogSlots(ownerState);\n const composedClasses = composeClasses(slots, getFeedbackDialogUtilityClass, classes);\n return {\n ...classes,\n ...composedClasses\n };\n};\nconst DialogRoot = styled('div', {\n name: 'MuiOriFeedbackDialog',\n slot: 'Root',\n overridesResolver: ({\n ownerState\n }, styles) => [styles.root, styles[`severity${capitalize(ownerState.color ?? ownerState.severity)}`]],\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: 'MuiOriFeedbackDialog',\n slot: 'Backdrop',\n overridesResolver: (_, styles) => [styles.backdrop]\n})({\n zIndex: -1\n});\nconst DialogGrid = styled(Paper, {\n name: 'MuiOriFeedbackDialog',\n slot: 'DialogGrid',\n overridesResolver: (_, styles) => [styles.dialogGrid],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme,\n ownerState\n}) => ({\n display: 'grid',\n gridTemplateAreas: `\n 'banner'\n 'content'`,\n gridTemplateRows: '70px auto',\n gridTemplateColumns: 'auto',\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 padding: 0,\n overflow: 'hidden',\n [theme.breakpoints.up('sm')]: {\n gridTemplateRows: '80px auto'\n },\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 Banner = styled('div', {\n name: 'MuiOriFeedbackDialog',\n slot: 'Banner',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.banner],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme,\n ownerState\n}) => ({\n justifySelf: 'stretch',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: '5rem',\n gridArea: 'banner'\n}));\nconst Content = styled('div', {\n name: 'MuiOriFeedbackDialog',\n slot: 'Content',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.content],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme\n}) => ({\n display: 'grid',\n gridArea: 'content',\n padding: theme.spacing(0, 3, 6, 3),\n rowGap: theme.spacing(2),\n justifyItems: 'center',\n gridTemplateAreas: `\n 'header'\n 'content'\n 'actions'\n `,\n [theme.breakpoints.up('sm')]: {\n padding: theme.spacing(0, 6, 6, 6)\n }\n}));\nconst Header = styled(Typography, {\n name: 'MuiOriFeedbackDialog',\n slot: 'Header',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.header],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})({\n gridArea: 'header',\n textAlign: 'center'\n});\nconst Text = styled(Typography, {\n name: 'MuiOriFeedbackDialog',\n slot: 'Text',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.text],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})({\n gridArea: 'content',\n textAlign: 'center'\n});\nconst Actions = styled('div', {\n name: 'MuiOriFeedbackDialog',\n slot: 'Actions',\n skipSx: true,\n overridesResolver: (_, styles) => [styles.actions],\n shouldForwardProp: prop => shouldForwardProp(prop)\n})(({\n theme\n}) => ({\n gridArea: 'actions',\n display: 'grid',\n justifySelf: 'stretch',\n rowGap: theme.spacing(3),\n marginTop: theme.spacing(6)\n}));\nconst defaultIconMapping = {\n success: /*#__PURE__*/_jsx(CheckCircleFilled, {\n fontSize: \"inherit\",\n color: \"success\"\n }),\n error: /*#__PURE__*/_jsx(ErrorCircleFilled, {\n fontSize: \"inherit\",\n color: \"error\"\n }),\n info: /*#__PURE__*/_jsx(InfoCircleFilled, {\n fontSize: \"inherit\",\n color: \"info\"\n }),\n warning: /*#__PURE__*/_jsx(WarningFilled, {\n fontSize: \"inherit\",\n color: \"default\"\n })\n};\nexport const FeedbackDialog = /*#__PURE__*/forwardRef((inProps, ref) => {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiOriFeedbackDialog'\n });\n const {\n actions,\n ariaDescribedby,\n ariaLabelledby,\n ariaModal = true,\n children = null,\n className,\n closeAfterTransition = true,\n closeButtonProps = {\n variant: 'text',\n color: 'default'\n },\n color,\n disableAutoFocus = false,\n disableEnforceFocus = false,\n disableEscapeKeyDown = false,\n disablePortal = true,\n disableRestoreFocus = false,\n disableScrollLock = false,\n header,\n hideBackdrop = false,\n hideCloseButton,\n icon,\n iconMapping = defaultIconMapping,\n keepMounted = false,\n fullWidth = false,\n maxWidth = '60vw',\n open,\n severity = 'info',\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 color,\n fullWidth,\n maxWidth: maxWidthCalculated,\n severity\n }), [color, fullWidth, maxWidthCalculated, props, severity]);\n const classes = useUtilityClasses(ownerState);\n const internalIcon = useMemo(() => icon ?? iconMapping[severity], [icon, severity, iconMapping]);\n const handleClose = useCallback(event => {\n onClose?.(event ?? {}, 'escapeKeyDown');\n }, [onClose]);\n const showActions = useMemo(() => {\n if (typeof actions === 'undefined' || actions === null) {\n return false;\n }\n return true;\n }, [actions]);\n const showHeader = useMemo(() => {\n if (typeof header === 'undefined' || header === '') {\n return false;\n }\n return true;\n }, [header]);\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: [!hideCloseButton && /*#__PURE__*/_jsx(CloseButton, {\n ...closeButtonProps,\n className: classes.closeButton,\n handleClick: handleClose\n }), /*#__PURE__*/_jsx(Banner, {\n ownerState: ownerState,\n className: classes.banner,\n children: internalIcon\n }), /*#__PURE__*/_jsxs(Content, {\n ownerState: ownerState,\n className: classes.content,\n children: [showHeader ? /*#__PURE__*/_jsx(Header, {\n ownerState: ownerState,\n variant: \"h5\",\n className: classes.header,\n children: header\n }) : null, showChildren ? /*#__PURE__*/_jsx(Text, {\n ownerState: ownerState,\n as: \"div\",\n className: classes.text,\n children: children\n }) : null, showActions ? /*#__PURE__*/_jsx(Actions, {\n ownerState: ownerState,\n className: classes.actions,\n children: actions\n }) : null]\n })]\n })\n })\n });\n});\nexport default FeedbackDialog;\n//# sourceMappingURL=FeedbackDialog.js.map","import { PbsCookieNames, ensureQueryParameter } from '@ori/personal-beauty-store';\nimport Cookies from 'js-cookie';\nexport const setReferralInfo = (tenant, voucherName) => {\n if (!voucherName || !tenant) {\n return;\n }\n const topArea = document.getElementById('online-top-area-root');\n const config = topArea?.getAttribute('data-config') ?? '';\n let isInternationalShareAndEarn = false;\n if (config) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access -- x\n isInternationalShareAndEarn = JSON.parse(config).useInternationalShareAndEarn ?? false;\n }\n let referral = '';\n if (voucherName.charAt(2) === '-' || !isInternationalShareAndEarn) {\n referral = voucherName;\n } else {\n referral = `${tenant.toUpperCase()}-${voucherName}`;\n }\n Cookies.set(PbsCookieNames.PBS_OWNER, referral);\n ensureQueryParameter('store', referral);\n};\n//# sourceMappingURL=setReferralInfo.js.map","import { updateQueryParameters } from './updateQueryParameters';\n\n/**\n * Ensures that there is query parameter by provided name and value in browser URL\n */\nexport const ensureQueryParameter = (name, value) => {\n const queryParams = new URLSearchParams(window.location.search);\n\n // There is no need to update or add new parameter so skipping\n if (queryParams.has(name) && queryParams.get(name) === value) {\n return;\n }\n queryParams.set(name, value);\n updateQueryParameters(queryParams);\n};\n//# sourceMappingURL=ensureQueryParameter.js.map","export let PbsCookieNames = /*#__PURE__*/function (PbsCookieNames) {\n PbsCookieNames[\"ECREF_OWNER\"] = \"ecref_owner\";\n PbsCookieNames[\"ECREF\"] = \"ecref\";\n /**\n * This cookie is only available when user is logged in and PBS is active (PBS_OWNER should be defined as well)\n */\n PbsCookieNames[\"PBS_CODE\"] = \"pbs_code\";\n /**\n * This cookie will be available even on anonymous user and controls if PBS should be visible\n */\n PbsCookieNames[\"PBS_OWNER\"] = \"pbs_owner\";\n PbsCookieNames[\"PPL_CODE\"] = \"ppl_code\";\n return PbsCookieNames;\n}({});\n//# sourceMappingURL=PbsCookieNames.js.map","/**\n * Updates current url query parameters without reloading page in browser\n */\nexport const updateQueryParameters = newQueryParameters => {\n const newUrl = new URL(window.location.toString());\n newUrl.search = newQueryParameters.toString();\n window.history.replaceState('', document.title, newUrl);\n};\n//# sourceMappingURL=updateQueryParameters.js.map","import{get as e,set as t}from\"react-hook-form\";const r=(t,r,o)=>{if(t&&\"reportValidity\"in t){const s=e(o,r);t.setCustomValidity(s&&s.message||\"\"),t.reportValidity()}},o=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&\"reportValidity\"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e))}},s=(r,s)=>{s.shouldUseNativeValidation&&o(r,s);const n={};for(const o in r){const f=e(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},e(n,o));t(r,\"root\",c),t(n,o,r)}else t(n,o,c)}return n},i=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\\\.\\\\d+`))};function n(e){return e.replace(/\\]|\\[/g,\"\")}export{s as toNestErrors,o as validateFieldsNatively};\n//# sourceMappingURL=resolvers.mjs.map\n","import{validateFieldsNatively as r,toNestErrors as e}from\"@hookform/resolvers\";import{appendErrors as o}from\"react-hook-form\";function n(r,e){for(var n={};r.length;){var s=r[0],t=s.code,i=s.message,a=s.path.join(\".\");if(!n[a])if(\"unionErrors\"in s){var u=s.unionErrors[0].errors[0];n[a]={message:u.message,type:u.code}}else n[a]={message:i,type:t};if(\"unionErrors\"in s&&s.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[s.code];n[a]=o(a,e,n,t,f?[].concat(f,s.message):s.message)}r.shift()}return n}function s(o,s,t){return void 0===t&&(t={}),function(i,a,u){try{return Promise.resolve(function(e,n){try{var a=Promise.resolve(o[\"sync\"===t.mode?\"parse\":\"parseAsync\"](i,s)).then(function(e){return u.shouldUseNativeValidation&&r({},u),{errors:{},values:t.raw?Object.assign({},i):e}})}catch(r){return n(r)}return a&&a.then?a.then(void 0,n):a}(0,function(r){if(function(r){return Array.isArray(null==r?void 0:r.errors)}(r))return{values:{},errors:e(n(r.errors,!u.shouldUseNativeValidation&&\"all\"===u.criteriaMode),u)};throw r}))}catch(r){return Promise.reject(r)}}}export{s as zodResolver};\n//# sourceMappingURL=zod.module.js.map\n"],"names":["Name","CloseButtonRoot","theme","position","top","right","padding","spacing","margin","background","CloseButton","className","handleClick","variant","color","onClick","children","fontSize","_excluded","setTranslateValue","direction","node","containerProp","containerPropProp","transform","resolvedContainer","rect","getBoundingClientRect","containerRect","containerWindow","ownerWindow","fakeTransform","computedStyle","getComputedStyle","getPropertyValue","offsetX","offsetY","transformValues","split","parseInt","left","innerWidth","width","bottom","innerHeight","height","getTranslateValue","style","webkitTransform","props","ref","useTheme","defaultEasing","enter","transitions","easing","easeOut","exit","sharp","defaultTimeout","duration","enteringScreen","leavingScreen","addEndListener","appear","container","easingProp","in","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","timeout","TransitionComponent","Transition","other","childrenRef","handleRef","useForkRef","normalizedTransitionCallback","callback","isAppearing","undefined","current","handleEnter","handleEntering","transitionProps","mode","webkitTransition","create","transition","handleEntered","handleExiting","handleExit","handleExited","updatePosition","handleResize","debounce","addEventListener","clear","removeEventListener","nodeRef","next","state","childProps","visibility","forwardRef","screenWidth","setScreenWidth","useState","useEffect","window","breakpoints","values","sm","Fade","DEFAULT_DIALOG_PADDING","calculateMaxWidth","maxWidth","numberValue","Number","parseFloat","replaceAll","slice","getFeedbackDialogUtilityClass","slot","generateUtilityClass","useUtilityClasses","ownerState","classes","slots","severity","root","capitalize","closeButton","dialogGrid","banner","content","actions","header","text","getFeedbackDialogSlots","composedClasses","composeClasses","DialogRoot","styled","name","overridesResolver","styles","shouldForwardProp","prop","zIndex","modal","display","alignItems","justifyContent","outline","only","DialogBackdrop","Backdrop","_","backdrop","DialogGrid","Paper","gridTemplateAreas","gridTemplateRows","gridTemplateColumns","justifyItems","minWidth","fullWidth","minHeight","maxHeight","overflow","up","boxSizing","borderBottomLeftRadius","borderBottomRightRadius","Banner","skipSx","justifySelf","gridArea","Content","rowGap","Header","Typography","textAlign","Text","Actions","marginTop","defaultIconMapping","success","CheckCircleFilled","error","ErrorCircleFilled","info","InfoCircleFilled","warning","WarningFilled","inProps","useThemeProps","ariaDescribedby","ariaLabelledby","ariaModal","closeAfterTransition","closeButtonProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","hideCloseButton","icon","iconMapping","keepMounted","open","onClose","commonProps","maxWidthCalculated","useMemo","internalIcon","handleClose","useCallback","event","showActions","showHeader","showChildren","Modal","slotProps","clsx","role","as","setReferralInfo","tenant","voucherName","topArea","document","getElementById","config","getAttribute","isInternationalShareAndEarn","JSON","parse","useInternationalShareAndEarn","referral","charAt","toUpperCase","set","PbsCookieNames","PBS_OWNER","value","queryParams","URLSearchParams","location","search","has","get","updateQueryParameters","ensureQueryParameter","newQueryParameters","newUrl","URL","toString","history","replaceState","title","r","t","o","s","setCustomValidity","message","reportValidity","e","fields","refs","forEach","shouldUseNativeValidation","n","f","c","Object","assign","i","names","keys","some","match","replace","length","code","a","path","join","u","unionErrors","errors","type","push","types","concat","shift","Promise","resolve","then","raw","Array","isArray","criteriaMode","reject"],"sourceRoot":""}