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vG,EAAS4F,EAAK5F,OAEdqI,GAAe,UACfC,EAAkBD,EAAaC,gBAC/BC,EAAgBF,EAAaE,cA+BjC,OA7BA,IAAAhB,YAAU,WACHzH,GAILwI,EAAgB,GAAI,CAClBE,QAAsB,gBAAoB,IAAK3C,GAAO,CACpD,WAAYA,GACE,gBAAoBkC,EAAAC,GAAO,OAAS,CAAC,EAAGnC,GAAO,CAC7DA,IAAK,GAAGoC,OAAOpC,EAAK,WACnB,CACDC,SAAUA,GAAY,OACtBoC,UAAW,WACT,OAAOK,EAAcvC,EACvB,EACA3C,MAAM,EACNmD,QAASA,EACTF,QAASA,EACT6B,YAAajC,EACbkC,KAAMtI,EACNiG,OAAQA,EACR/F,OAAQA,MAEVqB,aAAcA,EACduB,iBAAkBJ,EAClB2C,IAAKa,EACLzC,oBAAqBC,EAAA,GAEzB,GAAG,CAACqC,EAAKC,EAAUhG,EAASiG,EAAQC,EAAWE,EAAW7E,EAAcmB,EAAU8D,EAASE,EAASxG,EAAQsI,EAAiBC,IACzG,gBAAoB,WAAgB,KAC1D,EC7DI,EAAY,CAAC,YAajB,EARsB,SAAyB3C,GAC7C,IAAI6C,EAAgB7C,EAAK8C,SACrBA,OAA6B,IAAlBD,GAAmCA,EAC9CpK,GAAQ,OAAyBuH,EAAM,GAE3C,OAAoB,gBAAoB,WAAgB,KAAM8C,EAAwB,gBAAoB,EAAerK,GAAsB,gBAAoB,EAAaA,GAClL,C","sources":["webpack://app/./node_modules/@platform-ui/design-system/node_modules/@mui/material/SnackbarContent/snackbarContentClasses.js","webpack://app/./node_modules/@platform-ui/design-system/node_modules/@mui/material/SnackbarContent/SnackbarContent.js","webpack://app/./node_modules/@platform-ui/design-system/node_modules/@mui/material/Snackbar/snackbarClasses.js","webpack://app/./node_modules/@platform-ui/design-system/node_modules/@mui/material/Snackbar/Snackbar.js","webpack://app/./node_modules/@platform-ui/design-system/dist/esm/ToastController/SingleToast.js","webpack://app/./node_modules/@platform-ui/design-system/dist/esm/ToastController/MultipleToast.js","webpack://app/./node_modules/@platform-ui/design-system/dist/esm/ToastController/index.js"],"sourcesContent":["import { generateUtilityClass, generateUtilityClasses } from '@mui/base';\nexport function getSnackbarContentUtilityClass(slot) {\n return generateUtilityClass('MuiSnackbarContent', slot);\n}\nconst snackbarContentClasses = generateUtilityClasses('MuiSnackbarContent', ['root', 'message', 'action']);\nexport default snackbarContentClasses;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"action\", \"className\", \"message\", \"role\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport { emphasize } from '@mui/system';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport Paper from '../Paper';\nimport { getSnackbarContentUtilityClass } from './snackbarContentClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n action: ['action'],\n message: ['message']\n };\n return composeClasses(slots, getSnackbarContentUtilityClass, classes);\n};\n\nconst SnackbarContentRoot = styled(Paper, {\n name: 'MuiSnackbarContent',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(({\n theme\n}) => {\n const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;\n const backgroundColor = emphasize(theme.palette.background.default, emphasis);\n return _extends({}, theme.typography.body2, {\n color: theme.palette.getContrastText(backgroundColor),\n backgroundColor,\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n padding: '6px 16px',\n borderRadius: theme.shape.borderRadius,\n flexGrow: 1,\n [theme.breakpoints.up('sm')]: {\n flexGrow: 'initial',\n minWidth: 288\n }\n });\n});\nconst SnackbarContentMessage = styled('div', {\n name: 'MuiSnackbarContent',\n slot: 'Message',\n overridesResolver: (props, styles) => styles.message\n})({\n padding: '8px 0'\n});\nconst SnackbarContentAction = styled('div', {\n name: 'MuiSnackbarContent',\n slot: 'Action',\n overridesResolver: (props, styles) => styles.action\n})({\n display: 'flex',\n alignItems: 'center',\n marginLeft: 'auto',\n paddingLeft: 16,\n marginRight: -8\n});\nconst SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSnackbarContent'\n });\n\n const {\n action,\n className,\n message,\n role = 'alert'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SnackbarContentRoot, _extends({\n role: role,\n square: true,\n elevation: 6,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref\n }, other, {\n children: [/*#__PURE__*/_jsx(SnackbarContentMessage, {\n className: classes.message,\n ownerState: ownerState,\n children: message\n }), action ? /*#__PURE__*/_jsx(SnackbarContentAction, {\n className: classes.action,\n ownerState: ownerState,\n children: action\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SnackbarContent.propTypes\n/* remove-proptypes */\n= {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The action to display. It renders after the message, at the end of the snackbar.\n */\n action: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The message to display.\n */\n message: PropTypes.node,\n\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes\n /* @typescript-to-proptypes-ignore */\n .string,\n\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 SnackbarContent;","import { generateUtilityClass, generateUtilityClasses } from '@mui/base';\nexport function getSnackbarUtilityClass(slot) {\n return generateUtilityClass('MuiSnackbar', slot);\n}\nconst snackbarClasses = generateUtilityClasses('MuiSnackbar', ['root', 'anchorOriginTopCenter', 'anchorOriginBottomCenter', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft']);\nexport default snackbarClasses;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"onEnter\", \"onExited\"],\n _excluded2 = [\"action\", \"anchorOrigin\", \"autoHideDuration\", \"children\", \"className\", \"ClickAwayListenerProps\", \"ContentProps\", \"disableWindowBlurListener\", \"message\", \"onBlur\", \"onClose\", \"onFocus\", \"onMouseEnter\", \"onMouseLeave\", \"open\", \"resumeHideDuration\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport ClickAwayListener from '@mui/base/ClickAwayListener';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport useEventCallback from '../utils/useEventCallback';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport SnackbarContent from '../SnackbarContent';\nimport { getSnackbarUtilityClass } from './snackbarClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n anchorOrigin\n } = ownerState;\n const slots = {\n root: ['root', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`]\n };\n return composeClasses(slots, getSnackbarUtilityClass, classes);\n};\n\nconst SnackbarRoot = styled('div', {\n name: 'MuiSnackbar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`anchorOrigin${capitalize(ownerState.anchorOrigin.vertical)}${capitalize(ownerState.anchorOrigin.horizontal)}`]];\n }\n})(({\n theme,\n ownerState\n}) => {\n const center = _extends({}, !ownerState.isRtl && {\n left: '50%',\n right: 'auto',\n transform: 'translateX(-50%)'\n }, ownerState.isRtl && {\n right: '50%',\n left: 'auto',\n transform: 'translateX(50%)'\n });\n\n return _extends({\n zIndex: (theme.vars || theme).zIndex.snackbar,\n position: 'fixed',\n display: 'flex',\n left: 8,\n right: 8,\n justifyContent: 'center',\n alignItems: 'center'\n }, ownerState.anchorOrigin.vertical === 'top' ? {\n top: 8\n } : {\n bottom: 8\n }, ownerState.anchorOrigin.horizontal === 'left' && {\n justifyContent: 'flex-start'\n }, ownerState.anchorOrigin.horizontal === 'right' && {\n justifyContent: 'flex-end'\n }, {\n [theme.breakpoints.up('sm')]: _extends({}, ownerState.anchorOrigin.vertical === 'top' ? {\n top: 24\n } : {\n bottom: 24\n }, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' && _extends({}, !ownerState.isRtl && {\n left: 24,\n right: 'auto'\n }, ownerState.isRtl && {\n right: 24,\n left: 'auto'\n }), ownerState.anchorOrigin.horizontal === 'right' && _extends({}, !ownerState.isRtl && {\n right: 24,\n left: 'auto'\n }, ownerState.isRtl && {\n left: 24,\n right: 'auto'\n }))\n });\n});\nconst Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSnackbar'\n });\n const theme = useTheme();\n const defaultTransitionDuration = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n\n const {\n action,\n anchorOrigin: {\n vertical,\n horizontal\n } = {\n vertical: 'bottom',\n horizontal: 'left'\n },\n autoHideDuration = null,\n children,\n className,\n ClickAwayListenerProps,\n ContentProps,\n disableWindowBlurListener = false,\n message,\n onBlur,\n onClose,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n open,\n resumeHideDuration,\n TransitionComponent = Grow,\n transitionDuration = defaultTransitionDuration,\n TransitionProps: {\n onEnter,\n onExited\n } = {}\n } = props,\n TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n\n const isRtl = theme.direction === 'rtl';\n\n const ownerState = _extends({}, props, {\n anchorOrigin: {\n vertical,\n horizontal\n },\n isRtl\n });\n\n const classes = useUtilityClasses(ownerState);\n const timerAutoHide = React.useRef();\n const [exited, setExited] = React.useState(true);\n const handleClose = useEventCallback((...args) => {\n if (onClose) {\n onClose(...args);\n }\n });\n const setAutoHideTimer = useEventCallback(autoHideDurationParam => {\n if (!onClose || autoHideDurationParam == null) {\n return;\n }\n\n clearTimeout(timerAutoHide.current);\n timerAutoHide.current = setTimeout(() => {\n handleClose(null, 'timeout');\n }, autoHideDurationParam);\n });\n React.useEffect(() => {\n if (open) {\n setAutoHideTimer(autoHideDuration);\n }\n\n return () => {\n clearTimeout(timerAutoHide.current);\n };\n }, [open, autoHideDuration, setAutoHideTimer]); // Pause the timer when the user is interacting with the Snackbar\n // or when the user hide the window.\n\n const handlePause = () => {\n clearTimeout(timerAutoHide.current);\n }; // Restart the timer when the user is no longer interacting with the Snackbar\n // or when the window is shown back.\n\n\n const handleResume = React.useCallback(() => {\n if (autoHideDuration != null) {\n setAutoHideTimer(resumeHideDuration != null ? resumeHideDuration : autoHideDuration * 0.5);\n }\n }, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);\n\n const handleFocus = event => {\n if (onFocus) {\n onFocus(event);\n }\n\n handlePause();\n };\n\n const handleMouseEnter = event => {\n if (onMouseEnter) {\n onMouseEnter(event);\n }\n\n handlePause();\n };\n\n const handleBlur = event => {\n if (onBlur) {\n onBlur(event);\n }\n\n handleResume();\n };\n\n const handleMouseLeave = event => {\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n\n handleResume();\n };\n\n const handleClickAway = event => {\n if (onClose) {\n onClose(event, 'clickaway');\n }\n };\n\n const handleExited = node => {\n setExited(true);\n\n if (onExited) {\n onExited(node);\n }\n };\n\n const handleEnter = (node, isAppearing) => {\n setExited(false);\n\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n };\n\n React.useEffect(() => {\n // TODO: window global should be refactored here\n if (!disableWindowBlurListener && open) {\n window.addEventListener('focus', handleResume);\n window.addEventListener('blur', handlePause);\n return () => {\n window.removeEventListener('focus', handleResume);\n window.removeEventListener('blur', handlePause);\n };\n }\n\n return undefined;\n }, [disableWindowBlurListener, handleResume, open]);\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n\n\n function handleKeyDown(nativeEvent) {\n if (!nativeEvent.defaultPrevented) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n // not calling `preventDefault` since we don't know if people may ignore this event e.g. a permanently open snackbar\n if (onClose) {\n onClose(nativeEvent, 'escapeKeyDown');\n }\n }\n }\n }\n\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [exited, open, onClose]); // So we only render active snackbars.\n\n if (!open && exited) {\n return null;\n }\n\n return /*#__PURE__*/_jsx(ClickAwayListener, _extends({\n onClickAway: handleClickAway\n }, ClickAwayListenerProps, {\n children: /*#__PURE__*/_jsx(SnackbarRoot, _extends({\n className: clsx(classes.root, className),\n onBlur: handleBlur,\n onFocus: handleFocus,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n ownerState: ownerState,\n ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.\n // See https://github.com/mui/material-ui/issues/29080\n ,\n role: \"presentation\"\n }, other, {\n children: /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: true,\n in: open,\n timeout: transitionDuration,\n direction: vertical === 'top' ? 'down' : 'up',\n onEnter: handleEnter,\n onExited: handleExited\n }, TransitionProps, {\n children: children || /*#__PURE__*/_jsx(SnackbarContent, _extends({\n message: message,\n action: action\n }, ContentProps))\n }))\n }))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Snackbar.propTypes\n/* remove-proptypes */\n= {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The action to display. It renders after the message, at the end of the snackbar.\n */\n action: PropTypes.node,\n\n /**\n * The anchor of the `Snackbar`.\n * On smaller screens, the component grows to occupy all the available width,\n * the horizontal alignment is ignored.\n * @default { vertical: 'bottom', horizontal: 'left' }\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOf(['center', 'left', 'right']).isRequired,\n vertical: PropTypes.oneOf(['bottom', 'top']).isRequired\n }),\n\n /**\n * The number of milliseconds to wait before automatically calling the\n * `onClose` function. `onClose` should then set the state of the `open`\n * prop to hide the Snackbar. This behavior is disabled by default with\n * the `null` value.\n * @default null\n */\n autoHideDuration: PropTypes.number,\n\n /**\n * Replace the `SnackbarContent` component.\n */\n children: PropTypes.element,\n\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * Props applied to the `ClickAwayListener` element.\n */\n ClickAwayListenerProps: PropTypes.object,\n\n /**\n * Props applied to the [`SnackbarContent`](/material-ui/api/snackbar-content/) element.\n */\n ContentProps: PropTypes.object,\n\n /**\n * If `true`, the `autoHideDuration` timer will expire even if the window is not focused.\n * @default false\n */\n disableWindowBlurListener: PropTypes.bool,\n\n /**\n * When displaying multiple consecutive Snackbars from a parent rendering a single\n * , add the key prop to ensure independent treatment of each message.\n * e.g. , otherwise, the message may update-in-place and\n * features such as autoHideDuration may be canceled.\n */\n key: () => null,\n\n /**\n * The message to display.\n */\n message: PropTypes.node,\n\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n\n /**\n * Callback fired when the component requests to be closed.\n * Typically `onClose` is used to set state in the parent component,\n * which is used to control the `Snackbar` `open` prop.\n * The `reason` parameter can optionally be used to control the response to `onClose`,\n * for example ignoring `clickaway`.\n *\n * @param {React.SyntheticEvent | Event} event The event source of the callback.\n * @param {string} reason Can be: `\"timeout\"` (`autoHideDuration` expired), `\"clickaway\"`, or `\"escapeKeyDown\"`.\n */\n onClose: PropTypes.func,\n\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n\n /**\n * @ignore\n */\n onMouseEnter: PropTypes.func,\n\n /**\n * @ignore\n */\n onMouseLeave: PropTypes.func,\n\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n\n /**\n * The number of milliseconds to wait before dismissing after user interaction.\n * If `autoHideDuration` prop isn't specified, it does nothing.\n * If `autoHideDuration` prop is specified but `resumeHideDuration` isn't,\n * we default to `autoHideDuration / 2` ms.\n */\n resumeHideDuration: PropTypes.number,\n\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\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n\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 transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n * @default {}\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Snackbar;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport * as React from 'react';\nimport { useEffect } from 'react';\nimport Alert from '../Alert';\nimport { Box, Snackbar } from '@mui/material';\n\nvar SingleToast = function SingleToast(_ref) {\n var e2e = _ref.e2e,\n severity = _ref.severity,\n message = _ref.message,\n header = _ref.header,\n keyRender = _ref.keyRender,\n _ref$closeable = _ref.closeable,\n closeable = _ref$closeable === void 0 ? true : _ref$closeable,\n _ref$anchorOrigin = _ref.anchorOrigin,\n anchorOrigin = _ref$anchorOrigin === void 0 ? {\n vertical: 'top',\n horizontal: 'center'\n } : _ref$anchorOrigin,\n _ref$duration = _ref.duration,\n duration = _ref$duration === void 0 ? 4000 : _ref$duration,\n _ref$variant = _ref.variant,\n variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,\n _ref$loading = _ref.loading,\n loading = _ref$loading === void 0 ? false : _ref$loading,\n action = _ref.action;\n var queueRef = React.useRef([]);\n\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n open = _React$useState2[0],\n setOpen = _React$useState2[1];\n\n var _React$useState3 = React.useState(),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n messageInfo = _React$useState4[0],\n setMessageInfo = _React$useState4[1];\n\n var _React$useState5 = React.useState(duration),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n autoHideDuration = _React$useState6[0],\n setAutoHideDuration = _React$useState6[1];\n\n var processQueue = function processQueue() {\n if (queueRef.current.length > 0) {\n setMessageInfo(queueRef.current.shift());\n setOpen(true);\n }\n };\n\n useEffect(function () {\n setAutoHideDuration(duration);\n }, [duration]);\n useEffect(function () {\n if (!message) {\n return;\n }\n\n queueRef.current.push({\n message: message,\n header: header,\n severity: severity,\n key: keyRender || new Date().getTime()\n });\n\n if (open) {\n // immediately begin dismissing current message\n // to start showing new one !\n setOpen(false);\n } else {\n processQueue();\n }\n }, [message, header, severity, keyRender]);\n\n var handleClose = function handleClose(_, reason) {\n if (reason === 'clickaway') {\n return;\n }\n\n setOpen(false);\n };\n\n var handleExited = function handleExited() {\n processQueue();\n };\n\n var handleHover = function handleHover() {\n setAutoHideDuration(null);\n };\n\n var handleHoverEnd = function handleHoverEnd() {\n setAutoHideDuration(duration);\n };\n\n return /*#__PURE__*/React.createElement(Snackbar, _extends({}, e2e && {\n 'data-e2e': e2e\n }, {\n key: (messageInfo === null || messageInfo === void 0 ? void 0 : messageInfo.key) || undefined,\n anchorOrigin: anchorOrigin,\n open: open,\n autoHideDuration: autoHideDuration,\n onClose: handleClose,\n onMouseEnter: handleHover,\n onMouseLeave: handleHoverEnd,\n transitionDuration: 100,\n TransitionProps: {\n onExited: handleExited\n }\n }), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Alert, _extends({}, e2e && {\n e2e: \"\".concat(e2e, \"-alert\")\n }, {\n severity: (messageInfo === null || messageInfo === void 0 ? void 0 : messageInfo.severity) || 'info',\n dsOnClose: handleClose,\n open: true,\n loading: loading,\n variant: variant,\n dismissible: closeable,\n body: messageInfo === null || messageInfo === void 0 ? void 0 : messageInfo.message,\n header: messageInfo === null || messageInfo === void 0 ? void 0 : messageInfo.header,\n action: action\n }))));\n};\n\nexport default SingleToast;\n//# sourceMappingURL=SingleToast.js.map","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useEffect } from 'react';\nimport { Box } from '@mui/system';\nimport { useSnackbar } from 'notistack';\nimport { Grow } from '@mui/material';\nimport Alert from '../Alert';\n\nvar MultipleToast = function MultipleToast(_ref) {\n var e2e = _ref.e2e,\n severity = _ref.severity,\n message = _ref.message,\n header = _ref.header,\n keyRender = _ref.keyRender,\n _ref$closeable = _ref.closeable,\n closeable = _ref$closeable === void 0 ? true : _ref$closeable,\n _ref$anchorOrigin = _ref.anchorOrigin,\n anchorOrigin = _ref$anchorOrigin === void 0 ? {\n vertical: 'top',\n horizontal: 'center'\n } : _ref$anchorOrigin,\n _ref$duration = _ref.duration,\n duration = _ref$duration === void 0 ? 4000 : _ref$duration,\n _ref$variant = _ref.variant,\n variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,\n _ref$loading = _ref.loading,\n loading = _ref$loading === void 0 ? false : _ref$loading,\n action = _ref.action;\n\n var _useSnackbar = useSnackbar(),\n enqueueSnackbar = _useSnackbar.enqueueSnackbar,\n closeSnackbar = _useSnackbar.closeSnackbar;\n\n useEffect(function () {\n if (!message) {\n return;\n }\n\n enqueueSnackbar('', {\n content: /*#__PURE__*/React.createElement(Box, e2e && {\n 'data-e2e': e2e\n }, /*#__PURE__*/React.createElement(Alert, _extends({}, e2e && {\n e2e: \"\".concat(e2e, \"-alert\")\n }, {\n severity: severity || 'info',\n dsOnClose: function dsOnClose() {\n return closeSnackbar(keyRender);\n },\n open: true,\n loading: loading,\n variant: variant,\n dismissible: closeable,\n body: message,\n header: header,\n action: action\n }))),\n anchorOrigin: anchorOrigin,\n autoHideDuration: duration,\n key: keyRender,\n TransitionComponent: Grow\n });\n }, [e2e, severity, message, header, keyRender, closeable, anchorOrigin, duration, variant, loading, action, enqueueSnackbar, closeSnackbar]);\n return /*#__PURE__*/React.createElement(React.Fragment, null);\n};\n\nexport default MultipleToast;\n//# sourceMappingURL=MultipleToast.js.map","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"multiple\"];\nimport * as React from 'react';\nimport SingleToast from './SingleToast';\nimport MultipleToast from './MultipleToast';\n\nvar ToastController = function ToastController(_ref) {\n var _ref$multiple = _ref.multiple,\n multiple = _ref$multiple === void 0 ? false : _ref$multiple,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, multiple ? /*#__PURE__*/React.createElement(MultipleToast, props) : /*#__PURE__*/React.createElement(SingleToast, props));\n};\n\nexport default ToastController;\n//# sourceMappingURL=index.js.map"],"names":["getSnackbarContentUtilityClass","slot","generateUtilityClass","generateUtilityClasses","_excluded","SnackbarContentRoot","styled","Paper","name","overridesResolver","props","styles","root","theme","emphasis","palette","mode","backgroundColor","background","default","typography","body2","color","getContrastText","display","alignItems","flexWrap","padding","borderRadius","shape","flexGrow","breakpoints","up","minWidth","SnackbarContentMessage","message","SnackbarContentAction","action","marginLeft","paddingLeft","marginRight","inProps","ref","useThemeProps","className","role","other","ownerState","classes","composeClasses","useUtilityClasses","square","elevation","children","getSnackbarUtilityClass","_excluded2","SnackbarRoot","capitalize","anchorOrigin","vertical","horizontal","center","isRtl","left","right","transform","zIndex","vars","snackbar","position","justifyContent","top","bottom","useTheme","defaultTransitionDuration","enter","transitions","duration","enteringScreen","exit","leavingScreen","autoHideDuration","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","Grow","transitionDuration","TransitionProps","onEnter","onExited","direction","slots","timerAutoHide","exited","setExited","handleClose","useEventCallback","args","setAutoHideTimer","autoHideDurationParam","clearTimeout","current","setTimeout","handlePause","handleResume","window","addEventListener","removeEventListener","document","handleKeyDown","nativeEvent","defaultPrevented","key","ClickAwayListener","onClickAway","event","appear","in","timeout","node","isAppearing","_ref","e2e","severity","header","keyRender","_ref$closeable","closeable","_ref$anchorOrigin","_ref$duration","_ref$variant","variant","_ref$loading","loading","queueRef","_React$useState","_React$useState2","setOpen","_React$useState3","_React$useState4","messageInfo","setMessageInfo","_React$useState5","_React$useState6","setAutoHideDuration","processQueue","length","shift","useEffect","push","Date","getTime","_","reason","undefined","Box","Alert","A","concat","dsOnClose","dismissible","body","_useSnackbar","enqueueSnackbar","closeSnackbar","content","_ref$multiple","multiple"],"sourceRoot":""}