{"ast":null,"code":"import { CloseButton } from '@chakra-ui/close-button';\nimport { FocusLock } from '@chakra-ui/focus-lock';\nimport { Portal } from '@chakra-ui/portal';\nimport { chakra, useMultiStyleConfig, StylesProvider, forwardRef, useStyles, useTheme } from '@chakra-ui/system';\nimport { slideFadeConfig, scaleFadeConfig, fadeConfig, Slide } from '@chakra-ui/transition';\nimport { callAllHandlers, __DEV__, cx } from '@chakra-ui/utils';\nimport { mergeRefs, createContext } from '@chakra-ui/react-utils';\nimport { motion, AnimatePresence, usePresence } from 'framer-motion';\nimport * as React from 'react';\nimport { useEffect, useRef, useCallback, useState } from 'react';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { useIds } from '@chakra-ui/hooks';\nimport { hideOthers } from 'aria-hidden';\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n  return target;\n}\nfunction _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n    return target;\n  };\n  return _extends.apply(this, arguments);\n}\nvar _excluded$3 = [\"preset\"];\nvar transitions = {\n  slideInBottom: _extends({}, slideFadeConfig, {\n    custom: {\n      offsetY: 16,\n      reverse: true\n    }\n  }),\n  slideInRight: _extends({}, slideFadeConfig, {\n    custom: {\n      offsetX: 16,\n      reverse: true\n    }\n  }),\n  scale: _extends({}, scaleFadeConfig, {\n    custom: {\n      initialScale: 0.95,\n      reverse: true\n    }\n  }),\n  none: {}\n};\nvar Motion = chakra(motion.section);\nvar ModalTransition = /*#__PURE__*/React.forwardRef(function (props, ref) {\n  var preset = props.preset,\n    rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n  var motionProps = transitions[preset];\n  return /*#__PURE__*/React.createElement(Motion, _extends({\n    ref: ref\n  }, motionProps, rest));\n});\n\n/**\n * Proper state management for nested modals.\n * Simplified, but inspired by material-ui's ModalManager class.\n */\n\nvar ModalManager = /*#__PURE__*/function () {\n  function ModalManager() {\n    this.modals = void 0;\n    this.modals = [];\n  }\n  var _proto = ModalManager.prototype;\n  _proto.add = function add(modal) {\n    this.modals.push(modal);\n  };\n  _proto.remove = function remove(modal) {\n    this.modals = this.modals.filter(function (_modal) {\n      return _modal !== modal;\n    });\n  };\n  _proto.isTopModal = function isTopModal(modal) {\n    var topmostModal = this.modals[this.modals.length - 1];\n    return topmostModal === modal;\n  };\n  return ModalManager;\n}();\nvar manager = new ModalManager();\nfunction useModalManager(ref, isOpen) {\n  useEffect(function () {\n    if (isOpen) {\n      manager.add(ref);\n    }\n    return function () {\n      manager.remove(ref);\n    };\n  }, [isOpen, ref]);\n}\n\n/**\n * Modal hook that manages all the logic for the modal dialog widget\n * and returns prop getters, state and actions.\n *\n * @param props\n */\nfunction useModal(props) {\n  var isOpen = props.isOpen,\n    onClose = props.onClose,\n    id = props.id,\n    _props$closeOnOverlay = props.closeOnOverlayClick,\n    closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay,\n    _props$closeOnEsc = props.closeOnEsc,\n    closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,\n    _props$useInert = props.useInert,\n    useInert = _props$useInert === void 0 ? true : _props$useInert,\n    onOverlayClickProp = props.onOverlayClick,\n    onEsc = props.onEsc;\n  var dialogRef = useRef(null);\n  var overlayRef = useRef(null);\n  var _useIds = useIds(id, \"chakra-modal\", \"chakra-modal--header\", \"chakra-modal--body\"),\n    dialogId = _useIds[0],\n    headerId = _useIds[1],\n    bodyId = _useIds[2];\n  /**\n   * Hook used to polyfill `aria-modal` for older browsers.\n   * It uses `aria-hidden` to all other nodes.\n   *\n   * @see https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/\n   */\n\n  useAriaHidden(dialogRef, isOpen && useInert);\n  /**\n   * Hook used to manage multiple or nested modals\n   */\n\n  useModalManager(dialogRef, isOpen);\n  var mouseDownTarget = useRef(null);\n  var onMouseDown = useCallback(function (event) {\n    mouseDownTarget.current = event.target;\n  }, []);\n  var onKeyDown = useCallback(function (event) {\n    if (event.key === \"Escape\") {\n      event.stopPropagation();\n      if (closeOnEsc) {\n        onClose == null ? void 0 : onClose();\n      }\n      onEsc == null ? void 0 : onEsc();\n    }\n  }, [closeOnEsc, onClose, onEsc]);\n  var _useState = useState(false),\n    headerMounted = _useState[0],\n    setHeaderMounted = _useState[1];\n  var _useState2 = useState(false),\n    bodyMounted = _useState2[0],\n    setBodyMounted = _useState2[1];\n  var getDialogProps = useCallback(function (props, ref) {\n    if (props === void 0) {\n      props = {};\n    }\n    if (ref === void 0) {\n      ref = null;\n    }\n    return _extends({\n      role: \"dialog\"\n    }, props, {\n      ref: mergeRefs(ref, dialogRef),\n      id: dialogId,\n      tabIndex: -1,\n      \"aria-modal\": true,\n      \"aria-labelledby\": headerMounted ? headerId : undefined,\n      \"aria-describedby\": bodyMounted ? bodyId : undefined,\n      onClick: callAllHandlers(props.onClick, function (event) {\n        return event.stopPropagation();\n      })\n    });\n  }, [bodyId, bodyMounted, dialogId, headerId, headerMounted]);\n  var onOverlayClick = useCallback(function (event) {\n    event.stopPropagation();\n    /**\n     * Make sure the event starts and ends on the same DOM element.\n     *\n     * This is used to prevent the modal from closing when you\n     * start dragging from the content, and release drag outside the content.\n     *\n     * We prevent this because it is technically not a considered \"click outside\"\n     */\n\n    if (mouseDownTarget.current !== event.target) return;\n    /**\n     * When you click on the overlay, we want to remove only the topmost modal\n     */\n\n    if (!manager.isTopModal(dialogRef)) return;\n    if (closeOnOverlayClick) {\n      onClose == null ? void 0 : onClose();\n    }\n    onOverlayClickProp == null ? void 0 : onOverlayClickProp();\n  }, [onClose, closeOnOverlayClick, onOverlayClickProp]);\n  var getDialogContainerProps = useCallback(function (props, ref) {\n    if (props === void 0) {\n      props = {};\n    }\n    if (ref === void 0) {\n      ref = null;\n    }\n    return _extends({}, props, {\n      ref: mergeRefs(ref, overlayRef),\n      onClick: callAllHandlers(props.onClick, onOverlayClick),\n      onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown),\n      onMouseDown: callAllHandlers(props.onMouseDown, onMouseDown)\n    });\n  }, [onKeyDown, onMouseDown, onOverlayClick]);\n  return {\n    isOpen: isOpen,\n    onClose: onClose,\n    headerId: headerId,\n    bodyId: bodyId,\n    setBodyMounted: setBodyMounted,\n    setHeaderMounted: setHeaderMounted,\n    dialogRef: dialogRef,\n    overlayRef: overlayRef,\n    getDialogProps: getDialogProps,\n    getDialogContainerProps: getDialogContainerProps\n  };\n}\n\n/**\n * Modal hook to polyfill `aria-modal`.\n *\n * It applies `aria-hidden` to elements behind the modal\n * to indicate that they're `inert`.\n *\n * @param ref React ref of the node\n * @param shouldHide whether `aria-hidden` should be applied\n */\nfunction useAriaHidden(ref, shouldHide) {\n  // save current ref in a local var to trigger the effect on identity change\n  var currentElement = ref.current;\n  useEffect(function () {\n    // keep using `ref.current` inside the effect\n    // it may have changed during render and the execution of the effect\n    if (!ref.current || !shouldHide) return undefined;\n    return hideOthers(ref.current);\n  }, [shouldHide, ref, currentElement]);\n}\nvar _excluded$2 = [\"className\", \"children\", \"containerProps\"],\n  _excluded2$1 = [\"className\", \"transition\"],\n  _excluded3 = [\"className\"],\n  _excluded4 = [\"className\"],\n  _excluded5 = [\"className\"],\n  _excluded6 = [\"onClick\", \"className\"];\nvar _createContext$1 = createContext({\n    strict: true,\n    name: \"ModalContext\",\n    errorMessage: \"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`\"\n  }),\n  ModalContextProvider = _createContext$1[0],\n  useModalContext = _createContext$1[1];\n/**\n * Modal provides context, theming, and accessibility properties\n * to all other modal components.\n *\n * It doesn't render any DOM node.\n */\n\nvar Modal = function Modal(props) {\n  var portalProps = props.portalProps,\n    children = props.children,\n    autoFocus = props.autoFocus,\n    trapFocus = props.trapFocus,\n    initialFocusRef = props.initialFocusRef,\n    finalFocusRef = props.finalFocusRef,\n    returnFocusOnClose = props.returnFocusOnClose,\n    blockScrollOnMount = props.blockScrollOnMount,\n    allowPinchZoom = props.allowPinchZoom,\n    preserveScrollBarGap = props.preserveScrollBarGap,\n    motionPreset = props.motionPreset,\n    lockFocusAcrossFrames = props.lockFocusAcrossFrames,\n    onCloseComplete = props.onCloseComplete;\n  var styles = useMultiStyleConfig(\"Modal\", props);\n  var modal = useModal(props);\n  var context = _extends({}, modal, {\n    autoFocus: autoFocus,\n    trapFocus: trapFocus,\n    initialFocusRef: initialFocusRef,\n    finalFocusRef: finalFocusRef,\n    returnFocusOnClose: returnFocusOnClose,\n    blockScrollOnMount: blockScrollOnMount,\n    allowPinchZoom: allowPinchZoom,\n    preserveScrollBarGap: preserveScrollBarGap,\n    motionPreset: motionPreset,\n    lockFocusAcrossFrames: lockFocusAcrossFrames\n  });\n  return /*#__PURE__*/React.createElement(ModalContextProvider, {\n    value: context\n  }, /*#__PURE__*/React.createElement(StylesProvider, {\n    value: styles\n  }, /*#__PURE__*/React.createElement(AnimatePresence, {\n    onExitComplete: onCloseComplete\n  }, context.isOpen && /*#__PURE__*/React.createElement(Portal, portalProps, children))));\n};\nModal.defaultProps = {\n  lockFocusAcrossFrames: true,\n  returnFocusOnClose: true,\n  scrollBehavior: \"outside\",\n  trapFocus: true,\n  autoFocus: true,\n  blockScrollOnMount: true,\n  allowPinchZoom: false,\n  motionPreset: \"scale\"\n};\nif (__DEV__) {\n  Modal.displayName = \"Modal\";\n}\nvar MotionDiv = chakra(motion.div);\n/**\n * ModalContent is used to group modal's content. It has all the\n * necessary `aria-*` properties to indicate that it is a modal\n */\n\nvar ModalContent = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n    children = props.children,\n    rootProps = props.containerProps,\n    rest = _objectWithoutPropertiesLoose(props, _excluded$2);\n  var _useModalContext = useModalContext(),\n    getDialogProps = _useModalContext.getDialogProps,\n    getDialogContainerProps = _useModalContext.getDialogContainerProps;\n  var dialogProps = getDialogProps(rest, ref);\n  var containerProps = getDialogContainerProps(rootProps);\n  var _className = cx(\"chakra-modal__content\", className);\n  var styles = useStyles();\n  var dialogStyles = _extends({\n    display: \"flex\",\n    flexDirection: \"column\",\n    position: \"relative\",\n    width: \"100%\",\n    outline: 0\n  }, styles.dialog);\n  var dialogContainerStyles = _extends({\n    display: \"flex\",\n    width: \"100vw\",\n    height: \"100vh\",\n    \"@supports(height: -webkit-fill-available)\": {\n      height: \"-webkit-fill-available\"\n    },\n    position: \"fixed\",\n    left: 0,\n    top: 0\n  }, styles.dialogContainer);\n  var _useModalContext2 = useModalContext(),\n    motionPreset = _useModalContext2.motionPreset;\n  return /*#__PURE__*/React.createElement(ModalFocusScope, null, /*#__PURE__*/React.createElement(chakra.div, _extends({}, containerProps, {\n    className: \"chakra-modal__content-container\" // tabindex=\"-1\" means that the element is not reachable via sequential keyboard navigation, @see #4686\n    ,\n\n    tabIndex: -1,\n    __css: dialogContainerStyles\n  }), /*#__PURE__*/React.createElement(ModalTransition, _extends({\n    preset: motionPreset,\n    className: _className\n  }, dialogProps, {\n    __css: dialogStyles\n  }), children)));\n});\nif (__DEV__) {\n  ModalContent.displayName = \"ModalContent\";\n}\nfunction ModalFocusScope(props) {\n  var _useModalContext3 = useModalContext(),\n    autoFocus = _useModalContext3.autoFocus,\n    trapFocus = _useModalContext3.trapFocus,\n    dialogRef = _useModalContext3.dialogRef,\n    initialFocusRef = _useModalContext3.initialFocusRef,\n    blockScrollOnMount = _useModalContext3.blockScrollOnMount,\n    allowPinchZoom = _useModalContext3.allowPinchZoom,\n    finalFocusRef = _useModalContext3.finalFocusRef,\n    returnFocusOnClose = _useModalContext3.returnFocusOnClose,\n    preserveScrollBarGap = _useModalContext3.preserveScrollBarGap,\n    lockFocusAcrossFrames = _useModalContext3.lockFocusAcrossFrames;\n  var _usePresence = usePresence(),\n    isPresent = _usePresence[0],\n    safeToRemove = _usePresence[1];\n  React.useEffect(function () {\n    if (!isPresent && safeToRemove) {\n      setTimeout(safeToRemove);\n    }\n  }, [isPresent, safeToRemove]);\n  return /*#__PURE__*/React.createElement(FocusLock, {\n    autoFocus: autoFocus,\n    isDisabled: !trapFocus,\n    initialFocusRef: initialFocusRef,\n    finalFocusRef: finalFocusRef,\n    restoreFocus: returnFocusOnClose,\n    contentRef: dialogRef,\n    lockFocusAcrossFrames: lockFocusAcrossFrames\n  }, /*#__PURE__*/React.createElement(RemoveScroll, {\n    removeScrollBar: !preserveScrollBarGap,\n    allowPinchZoom: allowPinchZoom,\n    enabled: blockScrollOnMount,\n    forwardProps: true\n  }, props.children));\n}\n\n/**\n * ModalOverlay renders a backdrop behind the modal. It is\n * also used as a wrapper for the modal content for better positioning.\n *\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalOverlay = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className;\n  props.transition;\n  var rest = _objectWithoutPropertiesLoose(props, _excluded2$1);\n  var _className = cx(\"chakra-modal__overlay\", className);\n  var styles = useStyles();\n  var overlayStyle = _extends({\n    pos: \"fixed\",\n    left: \"0\",\n    top: \"0\",\n    w: \"100vw\",\n    h: \"100vh\"\n  }, styles.overlay);\n  var _useModalContext4 = useModalContext(),\n    motionPreset = _useModalContext4.motionPreset;\n  var motionProps = motionPreset === \"none\" ? {} : fadeConfig;\n  return /*#__PURE__*/React.createElement(MotionDiv, _extends({}, motionProps, {\n    __css: overlayStyle,\n    ref: ref,\n    className: _className\n  }, rest));\n});\nif (__DEV__) {\n  ModalOverlay.displayName = \"ModalOverlay\";\n}\n\n/**\n * ModalHeader\n *\n * React component that houses the title of the modal.\n *\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalHeader = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n    rest = _objectWithoutPropertiesLoose(props, _excluded3);\n  var _useModalContext5 = useModalContext(),\n    headerId = _useModalContext5.headerId,\n    setHeaderMounted = _useModalContext5.setHeaderMounted;\n  /**\n   * Notify us if this component was rendered or used,\n   * so we can append `aria-labelledby` automatically\n   */\n\n  React.useEffect(function () {\n    setHeaderMounted(true);\n    return function () {\n      return setHeaderMounted(false);\n    };\n  }, [setHeaderMounted]);\n  var _className = cx(\"chakra-modal__header\", className);\n  var styles = useStyles();\n  var headerStyles = _extends({\n    flex: 0\n  }, styles.header);\n  return /*#__PURE__*/React.createElement(chakra.header, _extends({\n    ref: ref,\n    className: _className,\n    id: headerId\n  }, rest, {\n    __css: headerStyles\n  }));\n});\nif (__DEV__) {\n  ModalHeader.displayName = \"ModalHeader\";\n}\n\n/**\n * ModalBody\n *\n * React component that houses the main content of the modal.\n *\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalBody = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n    rest = _objectWithoutPropertiesLoose(props, _excluded4);\n  var _useModalContext6 = useModalContext(),\n    bodyId = _useModalContext6.bodyId,\n    setBodyMounted = _useModalContext6.setBodyMounted;\n  /**\n   * Notify us if this component was rendered or used,\n   * so we can append `aria-describedby` automatically\n   */\n\n  React.useEffect(function () {\n    setBodyMounted(true);\n    return function () {\n      return setBodyMounted(false);\n    };\n  }, [setBodyMounted]);\n  var _className = cx(\"chakra-modal__body\", className);\n  var styles = useStyles();\n  return /*#__PURE__*/React.createElement(chakra.div, _extends({\n    ref: ref,\n    className: _className,\n    id: bodyId\n  }, rest, {\n    __css: styles.body\n  }));\n});\nif (__DEV__) {\n  ModalBody.displayName = \"ModalBody\";\n}\n\n/**\n * ModalFooter houses the action buttons of the modal.\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalFooter = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n    rest = _objectWithoutPropertiesLoose(props, _excluded5);\n  var _className = cx(\"chakra-modal__footer\", className);\n  var styles = useStyles();\n  var footerStyles = _extends({\n    display: \"flex\",\n    alignItems: \"center\",\n    justifyContent: \"flex-end\"\n  }, styles.footer);\n  return /*#__PURE__*/React.createElement(chakra.footer, _extends({\n    ref: ref\n  }, rest, {\n    __css: footerStyles,\n    className: _className\n  }));\n});\nif (__DEV__) {\n  ModalFooter.displayName = \"ModalFooter\";\n}\n/**\n * ModalCloseButton is used closes the modal.\n *\n * You don't need to pass the `onClick` to it, it reads the\n * `onClose` action from the modal context.\n */\n\nvar ModalCloseButton = /*#__PURE__*/forwardRef(function (props, ref) {\n  var onClick = props.onClick,\n    className = props.className,\n    rest = _objectWithoutPropertiesLoose(props, _excluded6);\n  var _useModalContext7 = useModalContext(),\n    onClose = _useModalContext7.onClose;\n  var _className = cx(\"chakra-modal__close-btn\", className);\n  var styles = useStyles();\n  return /*#__PURE__*/React.createElement(CloseButton, _extends({\n    ref: ref,\n    __css: styles.closeButton,\n    className: _className,\n    onClick: callAllHandlers(onClick, function (event) {\n      event.stopPropagation();\n      onClose();\n    })\n  }, rest));\n});\nif (__DEV__) {\n  ModalCloseButton.displayName = \"ModalCloseButton\";\n}\nvar _excluded$1 = [\"leastDestructiveRef\"];\nfunction AlertDialog(props) {\n  var leastDestructiveRef = props.leastDestructiveRef,\n    rest = _objectWithoutPropertiesLoose(props, _excluded$1);\n  return /*#__PURE__*/React.createElement(Modal, _extends({}, rest, {\n    initialFocusRef: leastDestructiveRef\n  }));\n}\nvar AlertDialogContent = /*#__PURE__*/forwardRef(function (props, ref) {\n  return /*#__PURE__*/React.createElement(ModalContent, _extends({\n    ref: ref,\n    role: \"alertdialog\"\n  }, props));\n});\nvar _excluded = [\"isOpen\", \"onClose\", \"placement\", \"children\"],\n  _excluded2 = [\"className\", \"children\"];\nvar _createContext = createContext(),\n  DrawerContextProvider = _createContext[0],\n  useDrawerContext = _createContext[1];\nvar placementMap = {\n  start: {\n    ltr: \"left\",\n    rtl: \"right\"\n  },\n  end: {\n    ltr: \"right\",\n    rtl: \"left\"\n  }\n};\nfunction getDrawerPlacement(placement, dir) {\n  var _placementMap$placeme, _placementMap$placeme2;\n  if (!placement) return;\n  return (_placementMap$placeme = (_placementMap$placeme2 = placementMap[placement]) == null ? void 0 : _placementMap$placeme2[dir]) != null ? _placementMap$placeme : placement;\n}\nfunction Drawer(props) {\n  var _theme$components;\n  var isOpen = props.isOpen,\n    onClose = props.onClose,\n    _props$placement = props.placement,\n    placementProp = _props$placement === void 0 ? \"right\" : _props$placement,\n    children = props.children,\n    rest = _objectWithoutPropertiesLoose(props, _excluded);\n  var theme = useTheme();\n  var drawerStyleConfig = (_theme$components = theme.components) == null ? void 0 : _theme$components.Drawer;\n  var placement = getDrawerPlacement(placementProp, theme.direction);\n  return /*#__PURE__*/React.createElement(DrawerContextProvider, {\n    value: {\n      placement: placement\n    }\n  }, /*#__PURE__*/React.createElement(Modal, _extends({\n    isOpen: isOpen,\n    onClose: onClose,\n    styleConfig: drawerStyleConfig\n  }, rest), children));\n}\nvar StyledSlide = chakra(Slide);\n\n/**\n * ModalContent is used to group modal's content. It has all the\n * necessary `aria-*` properties to indicate that it is a modal\n */\nvar DrawerContent = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n    children = props.children,\n    rest = _objectWithoutPropertiesLoose(props, _excluded2);\n  var _useModalContext = useModalContext(),\n    getDialogProps = _useModalContext.getDialogProps,\n    getDialogContainerProps = _useModalContext.getDialogContainerProps,\n    isOpen = _useModalContext.isOpen;\n  var dialogProps = getDialogProps(rest, ref);\n  var containerProps = getDialogContainerProps();\n  var _className = cx(\"chakra-modal__content\", className);\n  var styles = useStyles();\n  var dialogStyles = _extends({\n    display: \"flex\",\n    flexDirection: \"column\",\n    position: \"relative\",\n    width: \"100%\",\n    outline: 0\n  }, styles.dialog);\n  var dialogContainerStyles = _extends({\n    display: \"flex\",\n    width: \"100vw\",\n    height: \"100vh\",\n    position: \"fixed\",\n    left: 0,\n    top: 0\n  }, styles.dialogContainer);\n  var _useDrawerContext = useDrawerContext(),\n    placement = _useDrawerContext.placement;\n  return /*#__PURE__*/React.createElement(chakra.div, _extends({}, containerProps, {\n    className: \"chakra-modal__content-container\",\n    __css: dialogContainerStyles\n  }), /*#__PURE__*/React.createElement(ModalFocusScope, null, /*#__PURE__*/React.createElement(StyledSlide, _extends({\n    direction: placement,\n    \"in\": isOpen,\n    className: _className\n  }, dialogProps, {\n    __css: dialogStyles\n  }), children)));\n});\nif (__DEV__) {\n  DrawerContent.displayName = \"DrawerContent\";\n}\nexport { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Modal, ModalBody, ModalCloseButton, ModalContent, ModalContextProvider, ModalFocusScope, ModalFooter, ModalHeader, ModalOverlay, useAriaHidden, useModal, useModalContext };","map":{"version":3,"names":["CloseButton","FocusLock","Portal","chakra","useMultiStyleConfig","StylesProvider","forwardRef","useStyles","useTheme","slideFadeConfig","scaleFadeConfig","fadeConfig","Slide","callAllHandlers","__DEV__","cx","mergeRefs","createContext","motion","AnimatePresence","usePresence","React","useEffect","useRef","useCallback","useState","RemoveScroll","useIds","hideOthers","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","_extends","assign","arguments","prototype","hasOwnProperty","call","apply","_excluded$3","transitions","slideInBottom","custom","offsetY","reverse","slideInRight","offsetX","scale","initialScale","none","Motion","section","ModalTransition","props","ref","preset","rest","motionProps","createElement","ModalManager","modals","_proto","add","modal","push","remove","filter","_modal","isTopModal","topmostModal","manager","useModalManager","isOpen","useModal","onClose","id","_props$closeOnOverlay","closeOnOverlayClick","_props$closeOnEsc","closeOnEsc","_props$useInert","useInert","onOverlayClickProp","onOverlayClick","onEsc","dialogRef","overlayRef","_useIds","dialogId","headerId","bodyId","useAriaHidden","mouseDownTarget","onMouseDown","event","current","onKeyDown","stopPropagation","_useState","headerMounted","setHeaderMounted","_useState2","bodyMounted","setBodyMounted","getDialogProps","role","tabIndex","undefined","onClick","getDialogContainerProps","shouldHide","currentElement","_excluded$2","_excluded2$1","_excluded3","_excluded4","_excluded5","_excluded6","_createContext$1","strict","name","errorMessage","ModalContextProvider","useModalContext","Modal","portalProps","children","autoFocus","trapFocus","initialFocusRef","finalFocusRef","returnFocusOnClose","blockScrollOnMount","allowPinchZoom","preserveScrollBarGap","motionPreset","lockFocusAcrossFrames","onCloseComplete","styles","context","value","onExitComplete","defaultProps","scrollBehavior","displayName","MotionDiv","div","ModalContent","className","rootProps","containerProps","_useModalContext","dialogProps","_className","dialogStyles","display","flexDirection","position","width","outline","dialog","dialogContainerStyles","height","left","top","dialogContainer","_useModalContext2","ModalFocusScope","__css","_useModalContext3","_usePresence","isPresent","safeToRemove","setTimeout","isDisabled","restoreFocus","contentRef","removeScrollBar","enabled","forwardProps","ModalOverlay","transition","overlayStyle","pos","w","h","overlay","_useModalContext4","ModalHeader","_useModalContext5","headerStyles","flex","header","ModalBody","_useModalContext6","body","ModalFooter","footerStyles","alignItems","justifyContent","footer","ModalCloseButton","_useModalContext7","closeButton","_excluded$1","AlertDialog","leastDestructiveRef","AlertDialogContent","_excluded","_excluded2","_createContext","DrawerContextProvider","useDrawerContext","placementMap","start","ltr","rtl","end","getDrawerPlacement","placement","dir","_placementMap$placeme","_placementMap$placeme2","Drawer","_theme$components","_props$placement","placementProp","theme","drawerStyleConfig","components","direction","styleConfig","StyledSlide","DrawerContent","_useDrawerContext","AlertDialogBody","AlertDialogCloseButton","AlertDialogFooter","AlertDialogHeader","AlertDialogOverlay","DrawerBody","DrawerCloseButton","DrawerFooter","DrawerHeader","DrawerOverlay"],"sources":["C:/ldt/LDT/Safemate_Management/node_modules/@chakra-ui/modal/dist/chakra-ui-modal.esm.js"],"sourcesContent":["import { CloseButton } from '@chakra-ui/close-button';\nimport { FocusLock } from '@chakra-ui/focus-lock';\nimport { Portal } from '@chakra-ui/portal';\nimport { chakra, useMultiStyleConfig, StylesProvider, forwardRef, useStyles, useTheme } from '@chakra-ui/system';\nimport { slideFadeConfig, scaleFadeConfig, fadeConfig, Slide } from '@chakra-ui/transition';\nimport { callAllHandlers, __DEV__, cx } from '@chakra-ui/utils';\nimport { mergeRefs, createContext } from '@chakra-ui/react-utils';\nimport { motion, AnimatePresence, usePresence } from 'framer-motion';\nimport * as React from 'react';\nimport { useEffect, useRef, useCallback, useState } from 'react';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { useIds } from '@chakra-ui/hooks';\nimport { hideOthers } from 'aria-hidden';\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nfunction _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nvar _excluded$3 = [\"preset\"];\nvar transitions = {\n  slideInBottom: _extends({}, slideFadeConfig, {\n    custom: {\n      offsetY: 16,\n      reverse: true\n    }\n  }),\n  slideInRight: _extends({}, slideFadeConfig, {\n    custom: {\n      offsetX: 16,\n      reverse: true\n    }\n  }),\n  scale: _extends({}, scaleFadeConfig, {\n    custom: {\n      initialScale: 0.95,\n      reverse: true\n    }\n  }),\n  none: {}\n};\nvar Motion = chakra(motion.section);\nvar ModalTransition = /*#__PURE__*/React.forwardRef(function (props, ref) {\n  var preset = props.preset,\n      rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n\n  var motionProps = transitions[preset];\n  return /*#__PURE__*/React.createElement(Motion, _extends({\n    ref: ref\n  }, motionProps, rest));\n});\n\n/**\n * Proper state management for nested modals.\n * Simplified, but inspired by material-ui's ModalManager class.\n */\n\nvar ModalManager = /*#__PURE__*/function () {\n  function ModalManager() {\n    this.modals = void 0;\n    this.modals = [];\n  }\n\n  var _proto = ModalManager.prototype;\n\n  _proto.add = function add(modal) {\n    this.modals.push(modal);\n  };\n\n  _proto.remove = function remove(modal) {\n    this.modals = this.modals.filter(function (_modal) {\n      return _modal !== modal;\n    });\n  };\n\n  _proto.isTopModal = function isTopModal(modal) {\n    var topmostModal = this.modals[this.modals.length - 1];\n    return topmostModal === modal;\n  };\n\n  return ModalManager;\n}();\n\nvar manager = new ModalManager();\nfunction useModalManager(ref, isOpen) {\n  useEffect(function () {\n    if (isOpen) {\n      manager.add(ref);\n    }\n\n    return function () {\n      manager.remove(ref);\n    };\n  }, [isOpen, ref]);\n}\n\n/**\n * Modal hook that manages all the logic for the modal dialog widget\n * and returns prop getters, state and actions.\n *\n * @param props\n */\nfunction useModal(props) {\n  var isOpen = props.isOpen,\n      onClose = props.onClose,\n      id = props.id,\n      _props$closeOnOverlay = props.closeOnOverlayClick,\n      closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay,\n      _props$closeOnEsc = props.closeOnEsc,\n      closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,\n      _props$useInert = props.useInert,\n      useInert = _props$useInert === void 0 ? true : _props$useInert,\n      onOverlayClickProp = props.onOverlayClick,\n      onEsc = props.onEsc;\n  var dialogRef = useRef(null);\n  var overlayRef = useRef(null);\n\n  var _useIds = useIds(id, \"chakra-modal\", \"chakra-modal--header\", \"chakra-modal--body\"),\n      dialogId = _useIds[0],\n      headerId = _useIds[1],\n      bodyId = _useIds[2];\n  /**\n   * Hook used to polyfill `aria-modal` for older browsers.\n   * It uses `aria-hidden` to all other nodes.\n   *\n   * @see https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/\n   */\n\n\n  useAriaHidden(dialogRef, isOpen && useInert);\n  /**\n   * Hook used to manage multiple or nested modals\n   */\n\n  useModalManager(dialogRef, isOpen);\n  var mouseDownTarget = useRef(null);\n  var onMouseDown = useCallback(function (event) {\n    mouseDownTarget.current = event.target;\n  }, []);\n  var onKeyDown = useCallback(function (event) {\n    if (event.key === \"Escape\") {\n      event.stopPropagation();\n\n      if (closeOnEsc) {\n        onClose == null ? void 0 : onClose();\n      }\n\n      onEsc == null ? void 0 : onEsc();\n    }\n  }, [closeOnEsc, onClose, onEsc]);\n\n  var _useState = useState(false),\n      headerMounted = _useState[0],\n      setHeaderMounted = _useState[1];\n\n  var _useState2 = useState(false),\n      bodyMounted = _useState2[0],\n      setBodyMounted = _useState2[1];\n\n  var getDialogProps = useCallback(function (props, ref) {\n    if (props === void 0) {\n      props = {};\n    }\n\n    if (ref === void 0) {\n      ref = null;\n    }\n\n    return _extends({\n      role: \"dialog\"\n    }, props, {\n      ref: mergeRefs(ref, dialogRef),\n      id: dialogId,\n      tabIndex: -1,\n      \"aria-modal\": true,\n      \"aria-labelledby\": headerMounted ? headerId : undefined,\n      \"aria-describedby\": bodyMounted ? bodyId : undefined,\n      onClick: callAllHandlers(props.onClick, function (event) {\n        return event.stopPropagation();\n      })\n    });\n  }, [bodyId, bodyMounted, dialogId, headerId, headerMounted]);\n  var onOverlayClick = useCallback(function (event) {\n    event.stopPropagation();\n    /**\n     * Make sure the event starts and ends on the same DOM element.\n     *\n     * This is used to prevent the modal from closing when you\n     * start dragging from the content, and release drag outside the content.\n     *\n     * We prevent this because it is technically not a considered \"click outside\"\n     */\n\n    if (mouseDownTarget.current !== event.target) return;\n    /**\n     * When you click on the overlay, we want to remove only the topmost modal\n     */\n\n    if (!manager.isTopModal(dialogRef)) return;\n\n    if (closeOnOverlayClick) {\n      onClose == null ? void 0 : onClose();\n    }\n\n    onOverlayClickProp == null ? void 0 : onOverlayClickProp();\n  }, [onClose, closeOnOverlayClick, onOverlayClickProp]);\n  var getDialogContainerProps = useCallback(function (props, ref) {\n    if (props === void 0) {\n      props = {};\n    }\n\n    if (ref === void 0) {\n      ref = null;\n    }\n\n    return _extends({}, props, {\n      ref: mergeRefs(ref, overlayRef),\n      onClick: callAllHandlers(props.onClick, onOverlayClick),\n      onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown),\n      onMouseDown: callAllHandlers(props.onMouseDown, onMouseDown)\n    });\n  }, [onKeyDown, onMouseDown, onOverlayClick]);\n  return {\n    isOpen: isOpen,\n    onClose: onClose,\n    headerId: headerId,\n    bodyId: bodyId,\n    setBodyMounted: setBodyMounted,\n    setHeaderMounted: setHeaderMounted,\n    dialogRef: dialogRef,\n    overlayRef: overlayRef,\n    getDialogProps: getDialogProps,\n    getDialogContainerProps: getDialogContainerProps\n  };\n}\n\n/**\n * Modal hook to polyfill `aria-modal`.\n *\n * It applies `aria-hidden` to elements behind the modal\n * to indicate that they're `inert`.\n *\n * @param ref React ref of the node\n * @param shouldHide whether `aria-hidden` should be applied\n */\nfunction useAriaHidden(ref, shouldHide) {\n  // save current ref in a local var to trigger the effect on identity change\n  var currentElement = ref.current;\n  useEffect(function () {\n    // keep using `ref.current` inside the effect\n    // it may have changed during render and the execution of the effect\n    if (!ref.current || !shouldHide) return undefined;\n    return hideOthers(ref.current);\n  }, [shouldHide, ref, currentElement]);\n}\n\nvar _excluded$2 = [\"className\", \"children\", \"containerProps\"],\n    _excluded2$1 = [\"className\", \"transition\"],\n    _excluded3 = [\"className\"],\n    _excluded4 = [\"className\"],\n    _excluded5 = [\"className\"],\n    _excluded6 = [\"onClick\", \"className\"];\n\nvar _createContext$1 = createContext({\n  strict: true,\n  name: \"ModalContext\",\n  errorMessage: \"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`\"\n}),\n    ModalContextProvider = _createContext$1[0],\n    useModalContext = _createContext$1[1];\n/**\n * Modal provides context, theming, and accessibility properties\n * to all other modal components.\n *\n * It doesn't render any DOM node.\n */\n\nvar Modal = function Modal(props) {\n  var portalProps = props.portalProps,\n      children = props.children,\n      autoFocus = props.autoFocus,\n      trapFocus = props.trapFocus,\n      initialFocusRef = props.initialFocusRef,\n      finalFocusRef = props.finalFocusRef,\n      returnFocusOnClose = props.returnFocusOnClose,\n      blockScrollOnMount = props.blockScrollOnMount,\n      allowPinchZoom = props.allowPinchZoom,\n      preserveScrollBarGap = props.preserveScrollBarGap,\n      motionPreset = props.motionPreset,\n      lockFocusAcrossFrames = props.lockFocusAcrossFrames,\n      onCloseComplete = props.onCloseComplete;\n  var styles = useMultiStyleConfig(\"Modal\", props);\n  var modal = useModal(props);\n\n  var context = _extends({}, modal, {\n    autoFocus: autoFocus,\n    trapFocus: trapFocus,\n    initialFocusRef: initialFocusRef,\n    finalFocusRef: finalFocusRef,\n    returnFocusOnClose: returnFocusOnClose,\n    blockScrollOnMount: blockScrollOnMount,\n    allowPinchZoom: allowPinchZoom,\n    preserveScrollBarGap: preserveScrollBarGap,\n    motionPreset: motionPreset,\n    lockFocusAcrossFrames: lockFocusAcrossFrames\n  });\n\n  return /*#__PURE__*/React.createElement(ModalContextProvider, {\n    value: context\n  }, /*#__PURE__*/React.createElement(StylesProvider, {\n    value: styles\n  }, /*#__PURE__*/React.createElement(AnimatePresence, {\n    onExitComplete: onCloseComplete\n  }, context.isOpen && /*#__PURE__*/React.createElement(Portal, portalProps, children))));\n};\nModal.defaultProps = {\n  lockFocusAcrossFrames: true,\n  returnFocusOnClose: true,\n  scrollBehavior: \"outside\",\n  trapFocus: true,\n  autoFocus: true,\n  blockScrollOnMount: true,\n  allowPinchZoom: false,\n  motionPreset: \"scale\"\n};\n\nif (__DEV__) {\n  Modal.displayName = \"Modal\";\n}\n\nvar MotionDiv = chakra(motion.div);\n/**\n * ModalContent is used to group modal's content. It has all the\n * necessary `aria-*` properties to indicate that it is a modal\n */\n\nvar ModalContent = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n      children = props.children,\n      rootProps = props.containerProps,\n      rest = _objectWithoutPropertiesLoose(props, _excluded$2);\n\n  var _useModalContext = useModalContext(),\n      getDialogProps = _useModalContext.getDialogProps,\n      getDialogContainerProps = _useModalContext.getDialogContainerProps;\n\n  var dialogProps = getDialogProps(rest, ref);\n  var containerProps = getDialogContainerProps(rootProps);\n\n  var _className = cx(\"chakra-modal__content\", className);\n\n  var styles = useStyles();\n\n  var dialogStyles = _extends({\n    display: \"flex\",\n    flexDirection: \"column\",\n    position: \"relative\",\n    width: \"100%\",\n    outline: 0\n  }, styles.dialog);\n\n  var dialogContainerStyles = _extends({\n    display: \"flex\",\n    width: \"100vw\",\n    height: \"100vh\",\n    \"@supports(height: -webkit-fill-available)\": {\n      height: \"-webkit-fill-available\"\n    },\n    position: \"fixed\",\n    left: 0,\n    top: 0\n  }, styles.dialogContainer);\n\n  var _useModalContext2 = useModalContext(),\n      motionPreset = _useModalContext2.motionPreset;\n\n  return /*#__PURE__*/React.createElement(ModalFocusScope, null, /*#__PURE__*/React.createElement(chakra.div, _extends({}, containerProps, {\n    className: \"chakra-modal__content-container\" // tabindex=\"-1\" means that the element is not reachable via sequential keyboard navigation, @see #4686\n    ,\n    tabIndex: -1,\n    __css: dialogContainerStyles\n  }), /*#__PURE__*/React.createElement(ModalTransition, _extends({\n    preset: motionPreset,\n    className: _className\n  }, dialogProps, {\n    __css: dialogStyles\n  }), children)));\n});\n\nif (__DEV__) {\n  ModalContent.displayName = \"ModalContent\";\n}\n\nfunction ModalFocusScope(props) {\n  var _useModalContext3 = useModalContext(),\n      autoFocus = _useModalContext3.autoFocus,\n      trapFocus = _useModalContext3.trapFocus,\n      dialogRef = _useModalContext3.dialogRef,\n      initialFocusRef = _useModalContext3.initialFocusRef,\n      blockScrollOnMount = _useModalContext3.blockScrollOnMount,\n      allowPinchZoom = _useModalContext3.allowPinchZoom,\n      finalFocusRef = _useModalContext3.finalFocusRef,\n      returnFocusOnClose = _useModalContext3.returnFocusOnClose,\n      preserveScrollBarGap = _useModalContext3.preserveScrollBarGap,\n      lockFocusAcrossFrames = _useModalContext3.lockFocusAcrossFrames;\n\n  var _usePresence = usePresence(),\n      isPresent = _usePresence[0],\n      safeToRemove = _usePresence[1];\n\n  React.useEffect(function () {\n    if (!isPresent && safeToRemove) {\n      setTimeout(safeToRemove);\n    }\n  }, [isPresent, safeToRemove]);\n  return /*#__PURE__*/React.createElement(FocusLock, {\n    autoFocus: autoFocus,\n    isDisabled: !trapFocus,\n    initialFocusRef: initialFocusRef,\n    finalFocusRef: finalFocusRef,\n    restoreFocus: returnFocusOnClose,\n    contentRef: dialogRef,\n    lockFocusAcrossFrames: lockFocusAcrossFrames\n  }, /*#__PURE__*/React.createElement(RemoveScroll, {\n    removeScrollBar: !preserveScrollBarGap,\n    allowPinchZoom: allowPinchZoom,\n    enabled: blockScrollOnMount,\n    forwardProps: true\n  }, props.children));\n}\n\n/**\n * ModalOverlay renders a backdrop behind the modal. It is\n * also used as a wrapper for the modal content for better positioning.\n *\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalOverlay = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className;\n      props.transition;\n      var rest = _objectWithoutPropertiesLoose(props, _excluded2$1);\n\n  var _className = cx(\"chakra-modal__overlay\", className);\n\n  var styles = useStyles();\n\n  var overlayStyle = _extends({\n    pos: \"fixed\",\n    left: \"0\",\n    top: \"0\",\n    w: \"100vw\",\n    h: \"100vh\"\n  }, styles.overlay);\n\n  var _useModalContext4 = useModalContext(),\n      motionPreset = _useModalContext4.motionPreset;\n\n  var motionProps = motionPreset === \"none\" ? {} : fadeConfig;\n  return /*#__PURE__*/React.createElement(MotionDiv, _extends({}, motionProps, {\n    __css: overlayStyle,\n    ref: ref,\n    className: _className\n  }, rest));\n});\n\nif (__DEV__) {\n  ModalOverlay.displayName = \"ModalOverlay\";\n}\n\n/**\n * ModalHeader\n *\n * React component that houses the title of the modal.\n *\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalHeader = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n      rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n  var _useModalContext5 = useModalContext(),\n      headerId = _useModalContext5.headerId,\n      setHeaderMounted = _useModalContext5.setHeaderMounted;\n  /**\n   * Notify us if this component was rendered or used,\n   * so we can append `aria-labelledby` automatically\n   */\n\n\n  React.useEffect(function () {\n    setHeaderMounted(true);\n    return function () {\n      return setHeaderMounted(false);\n    };\n  }, [setHeaderMounted]);\n\n  var _className = cx(\"chakra-modal__header\", className);\n\n  var styles = useStyles();\n\n  var headerStyles = _extends({\n    flex: 0\n  }, styles.header);\n\n  return /*#__PURE__*/React.createElement(chakra.header, _extends({\n    ref: ref,\n    className: _className,\n    id: headerId\n  }, rest, {\n    __css: headerStyles\n  }));\n});\n\nif (__DEV__) {\n  ModalHeader.displayName = \"ModalHeader\";\n}\n\n/**\n * ModalBody\n *\n * React component that houses the main content of the modal.\n *\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalBody = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n      rest = _objectWithoutPropertiesLoose(props, _excluded4);\n\n  var _useModalContext6 = useModalContext(),\n      bodyId = _useModalContext6.bodyId,\n      setBodyMounted = _useModalContext6.setBodyMounted;\n  /**\n   * Notify us if this component was rendered or used,\n   * so we can append `aria-describedby` automatically\n   */\n\n\n  React.useEffect(function () {\n    setBodyMounted(true);\n    return function () {\n      return setBodyMounted(false);\n    };\n  }, [setBodyMounted]);\n\n  var _className = cx(\"chakra-modal__body\", className);\n\n  var styles = useStyles();\n  return /*#__PURE__*/React.createElement(chakra.div, _extends({\n    ref: ref,\n    className: _className,\n    id: bodyId\n  }, rest, {\n    __css: styles.body\n  }));\n});\n\nif (__DEV__) {\n  ModalBody.displayName = \"ModalBody\";\n}\n\n/**\n * ModalFooter houses the action buttons of the modal.\n * @see Docs https://chakra-ui.com/modal\n */\nvar ModalFooter = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n      rest = _objectWithoutPropertiesLoose(props, _excluded5);\n\n  var _className = cx(\"chakra-modal__footer\", className);\n\n  var styles = useStyles();\n\n  var footerStyles = _extends({\n    display: \"flex\",\n    alignItems: \"center\",\n    justifyContent: \"flex-end\"\n  }, styles.footer);\n\n  return /*#__PURE__*/React.createElement(chakra.footer, _extends({\n    ref: ref\n  }, rest, {\n    __css: footerStyles,\n    className: _className\n  }));\n});\n\nif (__DEV__) {\n  ModalFooter.displayName = \"ModalFooter\";\n}\n/**\n * ModalCloseButton is used closes the modal.\n *\n * You don't need to pass the `onClick` to it, it reads the\n * `onClose` action from the modal context.\n */\n\n\nvar ModalCloseButton = /*#__PURE__*/forwardRef(function (props, ref) {\n  var onClick = props.onClick,\n      className = props.className,\n      rest = _objectWithoutPropertiesLoose(props, _excluded6);\n\n  var _useModalContext7 = useModalContext(),\n      onClose = _useModalContext7.onClose;\n\n  var _className = cx(\"chakra-modal__close-btn\", className);\n\n  var styles = useStyles();\n  return /*#__PURE__*/React.createElement(CloseButton, _extends({\n    ref: ref,\n    __css: styles.closeButton,\n    className: _className,\n    onClick: callAllHandlers(onClick, function (event) {\n      event.stopPropagation();\n      onClose();\n    })\n  }, rest));\n});\n\nif (__DEV__) {\n  ModalCloseButton.displayName = \"ModalCloseButton\";\n}\n\nvar _excluded$1 = [\"leastDestructiveRef\"];\nfunction AlertDialog(props) {\n  var leastDestructiveRef = props.leastDestructiveRef,\n      rest = _objectWithoutPropertiesLoose(props, _excluded$1);\n\n  return /*#__PURE__*/React.createElement(Modal, _extends({}, rest, {\n    initialFocusRef: leastDestructiveRef\n  }));\n}\nvar AlertDialogContent = /*#__PURE__*/forwardRef(function (props, ref) {\n  return /*#__PURE__*/React.createElement(ModalContent, _extends({\n    ref: ref,\n    role: \"alertdialog\"\n  }, props));\n});\n\nvar _excluded = [\"isOpen\", \"onClose\", \"placement\", \"children\"],\n    _excluded2 = [\"className\", \"children\"];\n\nvar _createContext = createContext(),\n    DrawerContextProvider = _createContext[0],\n    useDrawerContext = _createContext[1];\n\nvar placementMap = {\n  start: {\n    ltr: \"left\",\n    rtl: \"right\"\n  },\n  end: {\n    ltr: \"right\",\n    rtl: \"left\"\n  }\n};\n\nfunction getDrawerPlacement(placement, dir) {\n  var _placementMap$placeme, _placementMap$placeme2;\n\n  if (!placement) return;\n  return (_placementMap$placeme = (_placementMap$placeme2 = placementMap[placement]) == null ? void 0 : _placementMap$placeme2[dir]) != null ? _placementMap$placeme : placement;\n}\n\nfunction Drawer(props) {\n  var _theme$components;\n\n  var isOpen = props.isOpen,\n      onClose = props.onClose,\n      _props$placement = props.placement,\n      placementProp = _props$placement === void 0 ? \"right\" : _props$placement,\n      children = props.children,\n      rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n  var theme = useTheme();\n  var drawerStyleConfig = (_theme$components = theme.components) == null ? void 0 : _theme$components.Drawer;\n  var placement = getDrawerPlacement(placementProp, theme.direction);\n  return /*#__PURE__*/React.createElement(DrawerContextProvider, {\n    value: {\n      placement: placement\n    }\n  }, /*#__PURE__*/React.createElement(Modal, _extends({\n    isOpen: isOpen,\n    onClose: onClose,\n    styleConfig: drawerStyleConfig\n  }, rest), children));\n}\nvar StyledSlide = chakra(Slide);\n\n/**\n * ModalContent is used to group modal's content. It has all the\n * necessary `aria-*` properties to indicate that it is a modal\n */\nvar DrawerContent = /*#__PURE__*/forwardRef(function (props, ref) {\n  var className = props.className,\n      children = props.children,\n      rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n  var _useModalContext = useModalContext(),\n      getDialogProps = _useModalContext.getDialogProps,\n      getDialogContainerProps = _useModalContext.getDialogContainerProps,\n      isOpen = _useModalContext.isOpen;\n\n  var dialogProps = getDialogProps(rest, ref);\n  var containerProps = getDialogContainerProps();\n\n  var _className = cx(\"chakra-modal__content\", className);\n\n  var styles = useStyles();\n\n  var dialogStyles = _extends({\n    display: \"flex\",\n    flexDirection: \"column\",\n    position: \"relative\",\n    width: \"100%\",\n    outline: 0\n  }, styles.dialog);\n\n  var dialogContainerStyles = _extends({\n    display: \"flex\",\n    width: \"100vw\",\n    height: \"100vh\",\n    position: \"fixed\",\n    left: 0,\n    top: 0\n  }, styles.dialogContainer);\n\n  var _useDrawerContext = useDrawerContext(),\n      placement = _useDrawerContext.placement;\n\n  return /*#__PURE__*/React.createElement(chakra.div, _extends({}, containerProps, {\n    className: \"chakra-modal__content-container\",\n    __css: dialogContainerStyles\n  }), /*#__PURE__*/React.createElement(ModalFocusScope, null, /*#__PURE__*/React.createElement(StyledSlide, _extends({\n    direction: placement,\n    \"in\": isOpen,\n    className: _className\n  }, dialogProps, {\n    __css: dialogStyles\n  }), children)));\n});\n\nif (__DEV__) {\n  DrawerContent.displayName = \"DrawerContent\";\n}\n\nexport { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Modal, ModalBody, ModalCloseButton, ModalContent, ModalContextProvider, ModalFocusScope, ModalFooter, ModalHeader, ModalOverlay, useAriaHidden, useModal, useModalContext };\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,yBAAyB;AACrD,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,MAAM,EAAEC,mBAAmB,EAAEC,cAAc,EAAEC,UAAU,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,mBAAmB;AAChH,SAASC,eAAe,EAAEC,eAAe,EAAEC,UAAU,EAAEC,KAAK,QAAQ,uBAAuB;AAC3F,SAASC,eAAe,EAAEC,OAAO,EAAEC,EAAE,QAAQ,kBAAkB;AAC/D,SAASC,SAAS,EAAEC,aAAa,QAAQ,wBAAwB;AACjE,SAASC,MAAM,EAAEC,eAAe,EAA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