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E,EAEAgC,CAAAA,EAAMT,OAAU,CAAAA,EAChBS,EAAMR,WAAc","sources":["webpack://_N_E/../../components/Modal/Modal.context.ts","webpack://_N_E/../../components/Modal/Modal.tsx","webpack://_N_E/../../components/Modal/ModalBody.tsx","webpack://_N_E/../../components/Modal/ModalCloseButton.tsx","webpack://_N_E/../../components/Modal/ModalContent.tsx","webpack://_N_E/../../components/Modal/ModalHeader.tsx","webpack://_N_E/../../components/Modal/ModalOverlay.tsx","webpack://_N_E/../../components/Modal/ModalRoot.tsx","webpack://_N_E/../../components/Modal/ModalStack.tsx","webpack://_N_E/../../components/Modal/ModalTitle.tsx","webpack://_N_E/../../components/ModalBase/ModalBase.context.ts","webpack://_N_E/../../components/ModalBase/use-lock-scroll.ts","webpack://_N_E/../../components/ModalBase/use-modal.ts","webpack://_N_E/../../components/ModalBase/ModalBase.tsx","webpack://_N_E/../../components/ModalBase/use-modal-body-id.ts","webpack://_N_E/../../components/ModalBase/ModalBaseBody.tsx","webpack://_N_E/../../components/ModalBase/ModalBaseCloseButton.tsx","webpack://_N_E/../../components/ModalBase/ModalBaseContent.tsx","webpack://_N_E/../../components/ModalBase/ModalBaseHeader.tsx","webpack://_N_E/../../components/ModalBase/use-modal-transition.ts","webpack://_N_E/../../components/ModalBase/ModalBaseOverlay.tsx","webpack://_N_E/../../components/ModalBase/use-modal-title-id.ts","webpack://_N_E/../../components/ModalBase/ModalBaseTitle.tsx","webpack://_N_E/../../components/ModalBase/NativeScrollArea.tsx","webpack://_N_E/../../components/Paper/Paper.tsx","webpack://_N_E/../../components/Stack/Stack.tsx"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { ModalRootFactory } from './ModalRoot';\n\nexport type ScrollAreaComponent = React.FC;\n\ninterface ModalContext {\n fullScreen: boolean | undefined;\n yOffset: string | number | undefined;\n scrollAreaComponent: ScrollAreaComponent | undefined;\n getStyles: GetStylesApi;\n}\n\nexport const [ModalProvider, useModalContext] = createSafeContext(\n 'Modal component was not found in tree'\n);\n","import { useEffect } from 'react';\nimport { factory, Factory, getDefaultZIndex, useProps } from '../../core';\nimport { ModalBaseCloseButtonProps, ModalBaseOverlayProps } from '../ModalBase';\nimport { ModalBody } from './ModalBody';\nimport { ModalCloseButton } from './ModalCloseButton';\nimport { ModalContent } from './ModalContent';\nimport { ModalHeader } from './ModalHeader';\nimport { ModalOverlay } from './ModalOverlay';\nimport {\n ModalRoot,\n ModalRootCssVariables,\n ModalRootProps,\n ModalRootStylesNames,\n} from './ModalRoot';\nimport { ModalStack, useModalStackContext } from './ModalStack';\nimport { ModalTitle } from './ModalTitle';\nimport classes from './Modal.module.css';\n\nexport type ModalStylesNames = ModalRootStylesNames;\nexport type ModalCssVariables = ModalRootCssVariables;\n\nexport interface ModalProps extends ModalRootProps {\n __staticSelector?: string;\n\n /** Modal title */\n title?: React.ReactNode;\n\n /** Determines whether the overlay should be rendered, `true` by default */\n withOverlay?: boolean;\n\n /** Props passed down to the `Overlay` component, use to configure opacity, `background-color`, styles and other properties */\n overlayProps?: ModalBaseOverlayProps;\n\n /** Modal content */\n children?: React.ReactNode;\n\n /** Determines whether the close button should be rendered, `true` by default */\n withCloseButton?: boolean;\n\n /** Props passed down to the close button */\n closeButtonProps?: ModalBaseCloseButtonProps;\n\n /** Id of the modal in the `Modal.Stack` */\n stackId?: string;\n}\n\nexport type ModalFactory = Factory<{\n props: ModalProps;\n ref: HTMLDivElement;\n stylesNames: ModalStylesNames;\n vars: ModalCssVariables;\n staticComponents: {\n Root: typeof ModalRoot;\n Overlay: typeof ModalOverlay;\n Content: typeof ModalContent;\n Body: typeof ModalBody;\n Header: typeof ModalHeader;\n Title: typeof ModalTitle;\n CloseButton: typeof ModalCloseButton;\n Stack: typeof ModalStack;\n };\n}>;\n\nconst defaultProps: Partial = {\n closeOnClickOutside: true,\n withinPortal: true,\n lockScroll: true,\n trapFocus: true,\n returnFocus: true,\n closeOnEscape: true,\n keepMounted: false,\n zIndex: getDefaultZIndex('modal'),\n transitionProps: { duration: 200, transition: 'fade-down' },\n withOverlay: true,\n withCloseButton: true,\n};\n\nexport const Modal = factory((_props, ref) => {\n const {\n title,\n withOverlay,\n overlayProps,\n withCloseButton,\n closeButtonProps,\n children,\n radius,\n opened,\n stackId,\n zIndex,\n ...others\n } = useProps('Modal', defaultProps, _props);\n const ctx = useModalStackContext();\n const hasHeader = !!title || withCloseButton;\n const stackProps =\n ctx && stackId\n ? {\n closeOnEscape: ctx.currentId === stackId,\n trapFocus: ctx.currentId === stackId,\n zIndex: ctx.getZIndex(stackId),\n }\n : {};\n\n const overlayVisible =\n withOverlay === false ? false : stackId && ctx ? ctx.currentId === stackId : opened;\n\n useEffect(() => {\n if (ctx && stackId) {\n opened\n ? ctx.addModal(stackId, zIndex || getDefaultZIndex('modal'))\n : ctx.removeModal(stackId);\n }\n }, [opened, stackId, zIndex]);\n\n return (\n \n {withOverlay && (\n \n )}\n \n {hasHeader && (\n \n {title && {title}}\n {withCloseButton && }\n \n )}\n\n {children}\n \n \n );\n});\n\nModal.classes = classes;\nModal.displayName = '@mantine/core/Modal';\nModal.Root = ModalRoot;\nModal.Overlay = ModalOverlay;\nModal.Content = ModalContent;\nModal.Body = ModalBody;\nModal.Header = ModalHeader;\nModal.Title = ModalTitle;\nModal.CloseButton = ModalCloseButton;\nModal.Stack = ModalStack;\n","import { CompoundStylesApiProps, factory, Factory, useProps } from '../../core';\nimport { ModalBaseBody, ModalBaseBodyProps } from '../ModalBase';\nimport { useModalContext } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalBodyStylesNames = 'body';\n\nexport interface ModalBodyProps\n extends ModalBaseBodyProps,\n CompoundStylesApiProps {}\n\nexport type ModalBodyFactory = Factory<{\n props: ModalBodyProps;\n ref: HTMLDivElement;\n stylesNames: ModalBodyStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const ModalBody = factory((_props, ref) => {\n const props = useProps('ModalBody', defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n\n const ctx = useModalContext();\n\n return (\n \n );\n});\n\nModalBody.classes = classes;\nModalBody.displayName = '@mantine/core/ModalBody';\n","import { CompoundStylesApiProps, factory, Factory, useProps } from '../../core';\nimport { ModalBaseCloseButton, ModalBaseCloseButtonProps } from '../ModalBase';\nimport { useModalContext } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalCloseButtonStylesNames = 'close';\n\nexport interface ModalCloseButtonProps\n extends ModalBaseCloseButtonProps,\n CompoundStylesApiProps {}\n\nexport type ModalCloseButtonFactory = Factory<{\n props: ModalCloseButtonProps;\n ref: HTMLButtonElement;\n stylesNames: ModalCloseButtonStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const ModalCloseButton = factory((_props, ref) => {\n const props = useProps('ModalCloseButton', defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n\n const ctx = useModalContext();\n\n return (\n \n );\n});\n\nModalCloseButton.classes = classes;\nModalCloseButton.displayName = '@mantine/core/ModalCloseButton';\n","import { CompoundStylesApiProps, factory, Factory, rem, useProps } from '../../core';\nimport { ModalBaseContent, ModalBaseContentProps, NativeScrollArea } from '../ModalBase';\nimport { useModalContext } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalContentStylesNames = 'content' | 'inner';\n\nexport interface ModalContentProps\n extends ModalBaseContentProps,\n CompoundStylesApiProps {\n __hidden?: boolean;\n}\n\nexport type ModalContentFactory = Factory<{\n props: ModalContentProps;\n ref: HTMLDivElement;\n stylesNames: ModalContentStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const ModalContent = factory((_props, ref) => {\n const props = useProps('ModalContent', defaultProps, _props);\n const { classNames, className, style, styles, vars, children, __hidden, ...others } = props;\n\n const ctx = useModalContext();\n const Scroll: React.FC = ctx.scrollAreaComponent || NativeScrollArea;\n\n return (\n \n \n {children}\n \n \n );\n});\n\nModalContent.classes = classes;\nModalContent.displayName = '@mantine/core/ModalContent';\n","import { CompoundStylesApiProps, factory, Factory, useProps } from '../../core';\nimport { ModalBaseHeader, ModalBaseHeaderProps } from '../ModalBase';\nimport { useModalContext } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalHeaderStylesNames = 'header';\n\nexport interface ModalHeaderProps\n extends ModalBaseHeaderProps,\n CompoundStylesApiProps {}\n\nexport type ModalHeaderFactory = Factory<{\n props: ModalHeaderProps;\n ref: HTMLElement;\n stylesNames: ModalHeaderStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const ModalHeader = factory((_props, ref) => {\n const props = useProps('ModalHeader', defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n\n const ctx = useModalContext();\n\n return (\n \n );\n});\n\nModalHeader.classes = classes;\nModalHeader.displayName = '@mantine/core/ModalHeader';\n","import { CompoundStylesApiProps, factory, Factory, useProps } from '../../core';\nimport { ModalBaseOverlay, ModalBaseOverlayProps } from '../ModalBase';\nimport { useModalContext } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalOverlayStylesNames = 'overlay';\n\nexport interface ModalOverlayProps\n extends ModalBaseOverlayProps,\n CompoundStylesApiProps {}\n\nexport type ModalOverlayFactory = Factory<{\n props: ModalOverlayProps;\n ref: HTMLDivElement;\n stylesNames: ModalOverlayStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const ModalOverlay = factory((_props, ref) => {\n const props = useProps('ModalOverlay', defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n\n const ctx = useModalContext();\n\n return (\n \n );\n});\n\nModalOverlay.classes = classes;\nModalOverlay.displayName = '@mantine/core/ModalOverlay';\n","import {\n createVarsResolver,\n factory,\n Factory,\n getDefaultZIndex,\n getRadius,\n getSize,\n MantineRadius,\n rem,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport { ModalBase, ModalBaseProps, ModalBaseStylesNames } from '../ModalBase';\nimport { ModalProvider, ScrollAreaComponent } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalRootStylesNames = ModalBaseStylesNames;\nexport type ModalRootCssVariables = {\n root: '--modal-radius' | '--modal-size' | '--modal-y-offset' | '--modal-x-offset';\n};\n\nexport interface ModalRootProps extends StylesApiProps, ModalBaseProps {\n __staticSelector?: string;\n\n /** Top/bottom modal offset, `5dvh` by default */\n yOffset?: React.CSSProperties['marginTop'];\n\n /** Left/right modal offset, `5vw` by default */\n xOffset?: React.CSSProperties['marginLeft'];\n\n /** Scroll area component, native `div` element by default */\n scrollAreaComponent?: ScrollAreaComponent;\n\n /** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */\n radius?: MantineRadius;\n\n /** Determines whether the modal should be centered vertically, `false` by default */\n centered?: boolean;\n\n /** Determines whether the modal should take the entire screen, `false` by default */\n fullScreen?: boolean;\n}\n\nexport type ModalRootFactory = Factory<{\n props: ModalRootProps;\n ref: HTMLDivElement;\n stylesNames: ModalRootStylesNames;\n vars: ModalRootCssVariables;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {\n __staticSelector: 'Modal',\n closeOnClickOutside: true,\n withinPortal: true,\n lockScroll: true,\n trapFocus: true,\n returnFocus: true,\n closeOnEscape: true,\n keepMounted: false,\n zIndex: getDefaultZIndex('modal'),\n transitionProps: { duration: 200, transition: 'fade-down' },\n yOffset: '5dvh',\n};\n\nconst varsResolver = createVarsResolver(\n (_, { radius, size, yOffset, xOffset }) => ({\n root: {\n '--modal-radius': radius === undefined ? undefined : getRadius(radius),\n '--modal-size': getSize(size, 'modal-size'),\n '--modal-y-offset': rem(yOffset),\n '--modal-x-offset': rem(xOffset),\n },\n })\n);\n\nexport const ModalRoot = factory((_props, ref) => {\n const props = useProps('ModalRoot', defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n yOffset,\n scrollAreaComponent,\n radius,\n fullScreen,\n centered,\n xOffset,\n __staticSelector,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: __staticSelector!,\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n \n \n \n );\n});\n\nModalRoot.classes = classes;\nModalRoot.displayName = '@mantine/core/ModalRoot';\n","import { useState } from 'react';\nimport { createOptionalContext, getDefaultZIndex } from '../../core';\n\ninterface ModalStackContext {\n stack: string[];\n addModal: (id: string, zIndex: number | string) => void;\n removeModal: (id: string) => void;\n getZIndex: (id: string) => string;\n currentId: string;\n maxZIndex: string | number;\n}\n\nconst [ModalStackProvider, useModalStackContext] = createOptionalContext();\n\nexport { useModalStackContext };\n\nexport interface ModalStackProps {\n children: React.ReactNode;\n}\n\nexport function ModalStack({ children }: ModalStackProps) {\n const [stack, setStack] = useState([]);\n const [maxZIndex, setMaxZIndex] = useState(getDefaultZIndex('modal'));\n\n return (\n {\n setStack((current) => [...new Set([...current, id])]);\n setMaxZIndex((current) =>\n typeof zIndex === 'number' && typeof current === 'number'\n ? Math.max(current, zIndex)\n : current\n );\n },\n removeModal: (id) => setStack((current) => current.filter((currentId) => currentId !== id)),\n getZIndex: (id) => `calc(${maxZIndex} + ${stack.indexOf(id)} + 1)`,\n currentId: stack[stack.length - 1],\n maxZIndex,\n }}\n >\n {children}\n \n );\n}\n\nModalStack.displayName = '@mantine/core/ModalStack';\n","import { CompoundStylesApiProps, factory, Factory, useProps } from '../../core';\nimport { ModalBaseTitle, ModalBaseTitleProps } from '../ModalBase';\nimport { useModalContext } from './Modal.context';\nimport classes from './Modal.module.css';\n\nexport type ModalTitleStylesNames = 'title';\n\nexport interface ModalTitleProps\n extends ModalBaseTitleProps,\n CompoundStylesApiProps {}\n\nexport type ModalTitleFactory = Factory<{\n props: ModalTitleProps;\n ref: HTMLHeadingElement;\n stylesNames: ModalTitleStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const ModalTitle = factory((_props, ref) => {\n const props = useProps('ModalTitle', defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n\n const ctx = useModalContext();\n\n return (\n \n );\n});\n\nModalTitle.classes = classes;\nModalTitle.displayName = '@mantine/core/ModalTitle';\n","import { createSafeContext } from '../../core';\nimport { TransitionOverride } from '../Transition';\n\ninterface ModalBaseContextValue {\n unstyled: boolean | undefined;\n titleMounted: boolean;\n bodyMounted: boolean;\n setTitleMounted: (value: boolean) => void;\n setBodyMounted: (value: boolean) => void;\n getTitleId: () => string;\n getBodyId: () => string;\n transitionProps: Partial | undefined;\n onExitTransitionEnd: (() => void) | undefined;\n onEnterTransitionEnd: (() => void) | undefined;\n zIndex: string | number | undefined;\n\n opened: boolean;\n onClose: () => void;\n\n closeOnEscape: boolean | undefined;\n trapFocus: boolean | undefined;\n closeOnClickOutside: boolean | undefined;\n}\n\nexport const [ModalBaseProvider, useModalBaseContext] = createSafeContext(\n 'ModalBase component was not found in tree'\n);\n","import { useEffect, useRef, useState } from 'react';\nimport { useReducedMotion } from '@mantine/hooks';\n\ninterface UseScrollLock {\n opened: boolean;\n transitionDuration: number;\n}\n\nexport function useLockScroll({ opened, transitionDuration }: UseScrollLock) {\n const [shouldLockScroll, setShouldLockScroll] = useState(opened);\n const timeout = useRef(-1);\n const reduceMotion = useReducedMotion();\n const _transitionDuration = reduceMotion ? 0 : transitionDuration;\n\n useEffect(() => {\n if (opened) {\n setShouldLockScroll(true);\n window.clearTimeout(timeout.current);\n } else if (_transitionDuration === 0) {\n setShouldLockScroll(false);\n } else {\n timeout.current = window.setTimeout(() => setShouldLockScroll(false), _transitionDuration);\n }\n\n return () => window.clearTimeout(timeout.current);\n }, [opened, _transitionDuration]);\n\n return shouldLockScroll;\n}\n","import { useState } from 'react';\nimport { useFocusReturn, useId, useWindowEvent } from '@mantine/hooks';\nimport { TransitionOverride } from '../Transition';\nimport { useLockScroll } from './use-lock-scroll';\n\ninterface UseModalInput {\n opened: boolean;\n onClose: () => void;\n id: string | undefined;\n transitionProps: TransitionOverride | undefined;\n trapFocus: boolean | undefined;\n closeOnEscape: boolean | undefined;\n returnFocus: boolean | undefined;\n}\n\nexport function useModal({\n id,\n transitionProps,\n opened,\n trapFocus,\n closeOnEscape,\n onClose,\n returnFocus,\n}: UseModalInput) {\n const _id = useId(id);\n const [titleMounted, setTitleMounted] = useState(false);\n const [bodyMounted, setBodyMounted] = useState(false);\n\n const transitionDuration =\n typeof transitionProps?.duration === 'number' ? transitionProps?.duration : 200;\n\n const shouldLockScroll = useLockScroll({ opened, transitionDuration });\n\n useWindowEvent(\n 'keydown',\n (event) => {\n if (event.key === 'Escape' && closeOnEscape && opened) {\n const shouldTrigger =\n (event.target as HTMLElement)?.getAttribute('data-mantine-stop-propagation') !== 'true';\n shouldTrigger && onClose();\n }\n },\n { capture: true }\n );\n\n useFocusReturn({ opened, shouldReturnFocus: trapFocus && returnFocus });\n\n return {\n _id,\n titleMounted,\n bodyMounted,\n shouldLockScroll,\n setTitleMounted,\n setBodyMounted,\n };\n}\n","import { forwardRef } from 'react';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport {\n Box,\n BoxProps,\n ElementProps,\n getDefaultZIndex,\n getShadow,\n getSpacing,\n MantineShadow,\n MantineSize,\n MantineSpacing,\n} from '../../core';\nimport { OptionalPortal, PortalProps } from '../Portal';\nimport { TransitionOverride } from '../Transition';\nimport { ModalBaseProvider } from './ModalBase.context';\nimport { useModal } from './use-modal';\n\ntype RemoveScrollProps = Omit, 'children'>;\n\nexport interface ModalBaseProps extends BoxProps, ElementProps<'div', 'title'> {\n unstyled?: boolean;\n\n /** If set modal/drawer will not be unmounted from the DOM when it is hidden, `display: none` styles will be added instead, `false` by default */\n keepMounted?: boolean;\n\n /** Determines whether modal/drawer is opened */\n opened: boolean;\n\n /** Called when modal/drawer is closed */\n onClose: () => void;\n\n /** Id used to connect modal/drawer with body and title */\n id?: string;\n\n /** Determines whether scroll should be locked when `opened={true}`, `true` by default */\n lockScroll?: boolean;\n\n /** Determines whether focus should be trapped, `true` by default */\n trapFocus?: boolean;\n\n /** Determines whether the component should be rendered inside `Portal`, `true` by default */\n withinPortal?: boolean;\n\n /** Props passed down to the Portal component when `withinPortal` is set */\n portalProps?: Omit;\n\n /** Modal/drawer content */\n children?: React.ReactNode;\n\n /** Determines whether the modal/drawer should be closed when user clicks on the overlay, `true` by default */\n closeOnClickOutside?: boolean;\n\n /** Props added to the `Transition` component that used to animate overlay and body, use to configure duration and animation type, `{ duration: 200, transition: 'fade-down' }` by default */\n transitionProps?: TransitionOverride;\n\n /** Called when exit transition ends */\n onExitTransitionEnd?: () => void;\n\n /** Called when enter transition ends */\n onEnterTransitionEnd?: () => void;\n\n /** Determines whether `onClose` should be called when user presses the escape key, `true` by default */\n closeOnEscape?: boolean;\n\n /** Determines whether focus should be returned to the last active element when `onClose` is called, `true` by default */\n returnFocus?: boolean;\n\n /** `z-index` CSS property of the root element, `200` by default */\n zIndex?: string | number;\n\n /** Key of `theme.shadows` or any valid CSS box-shadow value, 'xl' by default */\n shadow?: MantineShadow;\n\n /** Key of `theme.spacing` or any valid CSS value to set content, header and footer padding, `'md'` by default */\n padding?: MantineSpacing;\n\n /** Controls width of the content area, `'md'` by default */\n size?: MantineSize | (string & {}) | number;\n\n /** Props passed down to react-remove-scroll, can be used to customize scroll lock behavior */\n removeScrollProps?: RemoveScrollProps;\n}\n\nexport const ModalBase = forwardRef(\n (\n {\n keepMounted,\n opened,\n onClose,\n id,\n transitionProps,\n onExitTransitionEnd,\n onEnterTransitionEnd,\n trapFocus,\n closeOnEscape,\n returnFocus,\n closeOnClickOutside,\n withinPortal,\n portalProps,\n lockScroll,\n children,\n zIndex,\n shadow,\n padding,\n __vars,\n unstyled,\n removeScrollProps,\n ...others\n },\n ref\n ) => {\n const { _id, titleMounted, bodyMounted, shouldLockScroll, setTitleMounted, setBodyMounted } =\n useModal({ id, transitionProps, opened, trapFocus, closeOnEscape, onClose, returnFocus });\n\n const { key: removeScrollKey, ...otherRemoveScrollProps } = removeScrollProps || {};\n\n return (\n \n `${_id}-title`,\n getBodyId: () => `${_id}-body`,\n titleMounted,\n bodyMounted,\n setTitleMounted,\n setBodyMounted,\n trapFocus,\n closeOnEscape,\n zIndex,\n unstyled,\n }}\n >\n \n \n {children}\n \n \n \n \n );\n }\n);\n\nModalBase.displayName = '@mantine/core/ModalBase';\n","import { useEffect } from 'react';\nimport { useModalBaseContext } from './ModalBase.context';\n\nexport function useModalBodyId() {\n const ctx = useModalBaseContext();\n\n useEffect(() => {\n ctx.setBodyMounted(true);\n return () => ctx.setBodyMounted(false);\n }, []);\n\n return ctx.getBodyId();\n}\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box, BoxProps, ElementProps } from '../../core';\nimport { useModalBaseContext } from './ModalBase.context';\nimport { useModalBodyId } from './use-modal-body-id';\nimport classes from './ModalBase.module.css';\n\nexport interface ModalBaseBodyProps extends BoxProps, ElementProps<'div'> {}\n\nexport const ModalBaseBody = forwardRef(\n ({ className, ...others }, ref) => {\n const bodyId = useModalBodyId();\n const ctx = useModalBaseContext();\n return (\n \n );\n }\n);\n\nModalBaseBody.displayName = '@mantine/core/ModalBaseBody';\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { BoxProps, ElementProps } from '../../core';\nimport { __CloseButtonProps, CloseButton } from '../CloseButton';\nimport { useModalBaseContext } from './ModalBase.context';\nimport classes from './ModalBase.module.css';\n\nexport interface ModalBaseCloseButtonProps\n extends __CloseButtonProps,\n BoxProps,\n ElementProps<'button'> {}\n\nexport const ModalBaseCloseButton = forwardRef(\n ({ className, onClick, ...others }, ref) => {\n const ctx = useModalBaseContext();\n return (\n {\n ctx.onClose();\n onClick?.(event);\n }}\n className={cx({ [classes.close]: !ctx.unstyled }, className)}\n unstyled={ctx.unstyled}\n />\n );\n }\n);\n\nModalBaseCloseButton.displayName = '@mantine/core/ModalBaseCloseButton';\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { BoxProps, ElementProps, MantineRadius, MantineShadow } from '../../core';\nimport { FocusTrap } from '../FocusTrap';\nimport { Paper } from '../Paper';\nimport { Transition, TransitionOverride } from '../Transition';\nimport { useModalBaseContext } from './ModalBase.context';\nimport classes from './ModalBase.module.css';\n\nexport interface ModalBaseContentProps extends BoxProps, ElementProps<'div'> {\n /** Props passed down to the `Transition` component */\n transitionProps?: TransitionOverride;\n\n /** Key of `theme.shadows` or any valid CSS value to set `box-shadow`, `none` by default */\n shadow?: MantineShadow;\n\n /** Key of `theme.radius` or any valid CSS value to set border-radius, numbers are converted to rem, `theme.defaultRadius` by default */\n radius?: MantineRadius;\n}\n\ninterface _ModalBaseContentProps extends ModalBaseContentProps {\n innerProps: React.ComponentPropsWithoutRef<'div'>;\n}\n\nexport const ModalBaseContent = forwardRef(\n ({ transitionProps, className, innerProps, onKeyDown, style, ...others }, ref) => {\n const ctx = useModalBaseContext();\n\n return (\n {\n ctx.onExitTransitionEnd?.();\n ctx.transitionProps?.onExited?.();\n }}\n onEntered={() => {\n ctx.onEnterTransitionEnd?.();\n ctx.transitionProps?.onEntered?.();\n }}\n {...transitionProps}\n >\n {(transitionStyles) => (\n \n \n \n {others.children}\n \n \n \n )}\n \n );\n }\n);\n\nModalBaseContent.displayName = '@mantine/core/ModalBaseContent';\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box, BoxProps, ElementProps } from '../../core';\nimport { useModalBaseContext } from './ModalBase.context';\nimport classes from './ModalBase.module.css';\n\nexport interface ModalBaseHeaderProps extends BoxProps, ElementProps<'header'> {}\n\nexport const ModalBaseHeader = forwardRef(\n ({ className, ...others }, ref) => {\n const ctx = useModalBaseContext();\n return (\n \n );\n }\n);\n\nModalBaseHeader.displayName = '@mantine/core/ModalBaseHeader';\n","import { TransitionOverride } from '../Transition';\nimport { useModalBaseContext } from './ModalBase.context';\n\nconst DEFAULT_TRANSITION: TransitionOverride = {\n duration: 200,\n timingFunction: 'ease',\n transition: 'fade',\n};\n\nexport function useModalTransition(\n transitionOverride: TransitionOverride | undefined\n): TransitionOverride {\n const ctx = useModalBaseContext();\n return { ...DEFAULT_TRANSITION, ...ctx.transitionProps, ...transitionOverride };\n}\n","import { forwardRef } from 'react';\nimport { ElementProps } from '../../core';\nimport { Overlay, OverlayProps } from '../Overlay';\nimport { Transition, TransitionOverride } from '../Transition';\nimport { useModalBaseContext } from './ModalBase.context';\nimport { useModalTransition } from './use-modal-transition';\n\nexport interface ModalBaseOverlayProps\n extends Omit,\n ElementProps<'div', 'color'> {\n /** Props passed down to the `Transition` component */\n transitionProps?: TransitionOverride;\n\n /** Determines whether the overlay should be visible. By default, has the same value as `opened` state. */\n visible?: boolean;\n}\n\nexport const ModalBaseOverlay = forwardRef(\n ({ onClick, transitionProps, style, visible, ...others }, ref) => {\n const ctx = useModalBaseContext();\n const transition = useModalTransition(transitionProps);\n\n return (\n \n {(transitionStyles) => (\n {\n onClick?.(event);\n ctx.closeOnClickOutside && ctx.onClose();\n }}\n {...others}\n />\n )}\n \n );\n }\n);\n\nModalBaseOverlay.displayName = '@mantine/core/ModalBaseOverlay';\n","import { useEffect } from 'react';\nimport { useModalBaseContext } from './ModalBase.context';\n\nexport function useModalTitle() {\n const ctx = useModalBaseContext();\n\n useEffect(() => {\n ctx.setTitleMounted(true);\n return () => ctx.setTitleMounted(false);\n }, []);\n\n return ctx.getTitleId();\n}\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box, BoxProps, ElementProps } from '../../core';\nimport { useModalBaseContext } from './ModalBase.context';\nimport { useModalTitle } from './use-modal-title-id';\nimport classes from './ModalBase.module.css';\n\nexport interface ModalBaseTitleProps extends BoxProps, ElementProps<'h2'> {}\n\nexport const ModalBaseTitle = forwardRef(\n ({ className, ...others }, ref) => {\n const id = useModalTitle();\n const ctx = useModalBaseContext();\n return (\n \n );\n }\n);\n\nModalBaseTitle.displayName = '@mantine/core/ModalBaseTitle';\n","interface NativeScrollAreaProps {\n children: React.ReactNode;\n}\n\nexport function NativeScrollArea({ children }: NativeScrollAreaProps) {\n return <>{children};\n}\n","import {\n Box,\n BoxProps,\n createVarsResolver,\n getRadius,\n getShadow,\n MantineRadius,\n MantineShadow,\n polymorphicFactory,\n PolymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './Paper.module.css';\n\nexport type PaperStylesNames = 'root';\nexport type PaperCssVariables = {\n root: '--paper-radius' | '--paper-shadow';\n};\n\nexport interface PaperBaseProps {\n /** Key of `theme.shadows` or any valid CSS value to set `box-shadow`, `none` by default */\n shadow?: MantineShadow;\n\n /** Key of `theme.radius` or any valid CSS value to set border-radius, numbers are converted to rem, `theme.defaultRadius` by default */\n radius?: MantineRadius;\n\n /** Determines whether the paper should have border, border color depends on color scheme, `false` by default */\n withBorder?: boolean;\n}\n\nexport interface PaperProps extends BoxProps, PaperBaseProps, StylesApiProps {}\n\nexport type PaperFactory = PolymorphicFactory<{\n props: PaperProps;\n defaultComponent: 'div';\n defaultRef: HTMLDivElement;\n stylesNames: PaperStylesNames;\n vars: PaperCssVariables;\n}>;\n\nconst defaultProps: Partial = {};\n\nconst varsResolver = createVarsResolver((_, { radius, shadow }) => ({\n root: {\n '--paper-radius': radius === undefined ? undefined : getRadius(radius),\n '--paper-shadow': getShadow(shadow),\n },\n}));\n\nexport const Paper = polymorphicFactory((_props, ref) => {\n const props = useProps('Paper', defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n withBorder,\n vars,\n radius,\n shadow,\n variant,\n mod,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: 'Paper',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n \n );\n});\n\nPaper.classes = classes;\nPaper.displayName = '@mantine/core/Paper';\n","import {\n Box,\n BoxProps,\n createVarsResolver,\n ElementProps,\n factory,\n Factory,\n getSpacing,\n MantineSpacing,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './Stack.module.css';\n\nexport type StackStylesNames = 'root';\nexport type StackCssVariables = {\n root: '--stack-gap' | '--stack-align' | '--stack-justify';\n};\n\nexport interface StackProps extends BoxProps, StylesApiProps, ElementProps<'div'> {\n /** Key of `theme.spacing` or any valid CSS value to set `gap` property, numbers are converted to rem, `'md'` by default */\n gap?: MantineSpacing;\n\n /** Controls `align-items` CSS property, `'stretch'` by default */\n align?: React.CSSProperties['alignItems'];\n\n /** Controls `justify-content` CSS property, `'flex-start'` by default */\n justify?: React.CSSProperties['justifyContent'];\n}\n\nexport type StackFactory = Factory<{\n props: StackProps;\n ref: HTMLDivElement;\n stylesNames: StackStylesNames;\n vars: StackCssVariables;\n}>;\n\nconst defaultProps: Partial = {\n gap: 'md',\n align: 'stretch',\n justify: 'flex-start',\n};\n\nconst varsResolver = createVarsResolver((_, { gap, align, justify }) => ({\n root: {\n '--stack-gap': getSpacing(gap),\n '--stack-align': align,\n '--stack-justify': justify,\n },\n}));\n\nexport const Stack = factory((_props, ref) => {\n const props = useProps('Stack', defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n align,\n justify,\n gap,\n variant,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: 'Stack',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return ;\n});\n\nStack.classes = classes;\nStack.displayName = '@mantine/core/Stack';\n"],"names":["ModalProvider","useModalContext","createSafeContext","defaultProps","closeOnClickOutside","withinPortal","lockScroll","trapFocus","returnFocus","closeOnEscape","keepMounted","zIndex","getDefaultZIndex","transitionProps","duration","transition","withOverlay","withCloseButton","Modal","factory","_props","ref","title","overlayProps","closeButtonProps","children","radius","opened","stackId","others","useProps","ctx","useModalStackContext","hasHeader","stackProps","currentId","getZIndex","overlayVisible","useEffect","addModal","removeModal","jsxs","ModalRoot","jsx","ModalOverlay","visible","ModalContent","__hidden","ModalHeader","ModalTitle","ModalCloseButton","ModalBody","classes","displayName","Root","Overlay","Content","Body","Header","Title","CloseButton","Stack","ModalStack","classNames","className","style","styles","vars","ModalBaseBody","getStyles","ModalBaseCloseButton","Scroll","scrollAreaComponent","NativeScrollArea","ModalBaseContent","innerProps","fullScreen","maxHeight","concat","rem","yOffset","ModalBaseHeader","ModalBaseOverlay","__staticSelector","varsResolver","createVarsResolver","_","size","xOffset","param","root","getRadius","getSize","props","unstyled","centered","useStyles","name","value","ModalBase","ModalStackProvider","createOptionalContext","stack","setStack","useState","maxZIndex","setMaxZIndex","id","Set","current","Math","max","filter","indexOf","length","ModalBaseTitle","ModalBaseProvider","useModalBaseContext","forwardRef","onClose","onExitTransitionEnd","onEnterTransitionEnd","portalProps","shadow","padding","__vars","removeScrollProps","_id","titleMounted","bodyMounted","shouldLockScroll","setTitleMounted","setBodyMounted","useModal","useId","useLockScroll","transitionDuration","setShouldLockScroll","timeout","useRef","_transitionDuration","reduceMotion","useReducedMotion","window","clearTimeout","setTimeout","useWindowEvent","event","key","shouldTrigger","target","getAttribute","capture","useFocusReturn","shouldReturnFocus","removeScrollKey","otherRemoveScrollProps","OptionalPortal","getTitleId","getBodyId","RemoveScroll","enabled","Box","toString","getShadow","getSpacing","bodyId","useModalBodyId","cx","body","onClick","close","onKeyDown","Transition","mounted","onExited","onEntered","inner","FocusTrap","active","innerRef","Paper","component","role","tabIndex","transitionStyles","content","header","DEFAULT_TRANSITION","timingFunction","useModalTransition","transitionOverride","fixed","useModalTitle","Fragment","polymorphicFactory","withBorder","variant","mod","gap","align","justify"],"sourceRoot":""}