{"version":3,"file":"Drawer-C7itEEE8.js","sources":["../../../node_modules/@mantine/core/esm/components/Drawer/Drawer.context.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/Drawer.module.css.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerBody.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerCloseButton.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerContent.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerHeader.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerOverlay.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerRoot.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerStack.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/DrawerTitle.mjs","../../../node_modules/@mantine/core/esm/components/Drawer/Drawer.mjs"],"sourcesContent":["'use client';\nimport 'react';\nimport { createSafeContext } from '../../core/utils/create-safe-context/create-safe-context.mjs';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\n\nconst [DrawerProvider, useDrawerContext] = createSafeContext(\n \"Drawer component was not found in tree\"\n);\n\nexport { DrawerProvider, useDrawerContext };\n//# sourceMappingURL=Drawer.context.mjs.map\n","'use client';\nvar classes = {\"root\":\"m_f11b401e\",\"header\":\"m_5a7c2c9\",\"content\":\"m_b8a05bbd\",\"inner\":\"m_31cd769a\"};\n\nexport { classes as default };\n//# sourceMappingURL=Drawer.module.css.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../ModalBase/ModalBase.mjs';\nimport { ModalBaseBody } from '../ModalBase/ModalBaseBody.mjs';\nimport '../ModalBase/ModalBaseCloseButton.mjs';\nimport '../ModalBase/ModalBaseContent.mjs';\nimport '../ModalBase/ModalBaseHeader.mjs';\nimport '../ModalBase/ModalBaseOverlay.mjs';\nimport '../ModalBase/ModalBaseTitle.mjs';\nimport { useDrawerContext } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {};\nconst DrawerBody = factory((_props, ref) => {\n const props = useProps(\"DrawerBody\", defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n const ctx = useDrawerContext();\n return /* @__PURE__ */ jsx(\n ModalBaseBody,\n {\n ref,\n ...ctx.getStyles(\"body\", { classNames, style, styles, className }),\n ...others\n }\n );\n});\nDrawerBody.classes = classes;\nDrawerBody.displayName = \"@mantine/core/DrawerBody\";\n\nexport { DrawerBody };\n//# sourceMappingURL=DrawerBody.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../ModalBase/ModalBase.mjs';\nimport '../ModalBase/ModalBaseBody.mjs';\nimport { ModalBaseCloseButton } from '../ModalBase/ModalBaseCloseButton.mjs';\nimport '../ModalBase/ModalBaseContent.mjs';\nimport '../ModalBase/ModalBaseHeader.mjs';\nimport '../ModalBase/ModalBaseOverlay.mjs';\nimport '../ModalBase/ModalBaseTitle.mjs';\nimport { useDrawerContext } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {};\nconst DrawerCloseButton = factory((_props, ref) => {\n const props = useProps(\"DrawerCloseButton\", defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n const ctx = useDrawerContext();\n return /* @__PURE__ */ jsx(\n ModalBaseCloseButton,\n {\n ref,\n ...ctx.getStyles(\"close\", { classNames, style, styles, className }),\n ...others\n }\n );\n});\nDrawerCloseButton.classes = classes;\nDrawerCloseButton.displayName = \"@mantine/core/DrawerCloseButton\";\n\nexport { DrawerCloseButton };\n//# sourceMappingURL=DrawerCloseButton.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../ModalBase/ModalBase.mjs';\nimport '../ModalBase/ModalBaseBody.mjs';\nimport '../ModalBase/ModalBaseCloseButton.mjs';\nimport { ModalBaseContent } from '../ModalBase/ModalBaseContent.mjs';\nimport '../ModalBase/ModalBaseHeader.mjs';\nimport '../ModalBase/ModalBaseOverlay.mjs';\nimport '../ModalBase/ModalBaseTitle.mjs';\nimport { NativeScrollArea } from '../ModalBase/NativeScrollArea.mjs';\nimport { useDrawerContext } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {};\nconst DrawerContent = factory((_props, ref) => {\n const props = useProps(\"DrawerContent\", defaultProps, _props);\n const { classNames, className, style, styles, vars, children, radius, __hidden, ...others } = props;\n const ctx = useDrawerContext();\n const Scroll = ctx.scrollAreaComponent || NativeScrollArea;\n return /* @__PURE__ */ jsx(\n ModalBaseContent,\n {\n ...ctx.getStyles(\"content\", { className, style, styles, classNames }),\n innerProps: ctx.getStyles(\"inner\", { className, style, styles, classNames }),\n ref,\n ...others,\n radius: radius || ctx.radius || 0,\n \"data-hidden\": __hidden || void 0,\n children: /* @__PURE__ */ jsx(Scroll, { style: { height: \"calc(100vh - var(--drawer-offset) * 2)\" }, children })\n }\n );\n});\nDrawerContent.classes = classes;\nDrawerContent.displayName = \"@mantine/core/DrawerContent\";\n\nexport { DrawerContent };\n//# sourceMappingURL=DrawerContent.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../ModalBase/ModalBase.mjs';\nimport '../ModalBase/ModalBaseBody.mjs';\nimport '../ModalBase/ModalBaseCloseButton.mjs';\nimport '../ModalBase/ModalBaseContent.mjs';\nimport { ModalBaseHeader } from '../ModalBase/ModalBaseHeader.mjs';\nimport '../ModalBase/ModalBaseOverlay.mjs';\nimport '../ModalBase/ModalBaseTitle.mjs';\nimport { useDrawerContext } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {};\nconst DrawerHeader = factory((_props, ref) => {\n const props = useProps(\"DrawerHeader\", defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n const ctx = useDrawerContext();\n return /* @__PURE__ */ jsx(\n ModalBaseHeader,\n {\n ref,\n ...ctx.getStyles(\"header\", { classNames, style, styles, className }),\n ...others\n }\n );\n});\nDrawerHeader.classes = classes;\nDrawerHeader.displayName = \"@mantine/core/DrawerHeader\";\n\nexport { DrawerHeader };\n//# sourceMappingURL=DrawerHeader.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../ModalBase/ModalBase.mjs';\nimport '../ModalBase/ModalBaseBody.mjs';\nimport '../ModalBase/ModalBaseCloseButton.mjs';\nimport '../ModalBase/ModalBaseContent.mjs';\nimport '../ModalBase/ModalBaseHeader.mjs';\nimport { ModalBaseOverlay } from '../ModalBase/ModalBaseOverlay.mjs';\nimport '../ModalBase/ModalBaseTitle.mjs';\nimport { useDrawerContext } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {};\nconst DrawerOverlay = factory((_props, ref) => {\n const props = useProps(\"DrawerOverlay\", defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n const ctx = useDrawerContext();\n return /* @__PURE__ */ jsx(\n ModalBaseOverlay,\n {\n ref,\n ...ctx.getStyles(\"overlay\", { classNames, style, styles, className }),\n ...others\n }\n );\n});\nDrawerOverlay.classes = classes;\nDrawerOverlay.displayName = \"@mantine/core/DrawerOverlay\";\n\nexport { DrawerOverlay };\n//# sourceMappingURL=DrawerOverlay.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { rem } from '../../core/utils/units-converters/rem.mjs';\nimport 'react';\nimport { getDefaultZIndex } from '../../core/utils/get-default-z-index/get-default-z-index.mjs';\nimport { getSize } from '../../core/utils/get-size/get-size.mjs';\nimport '@mantine/hooks';\nimport { createVarsResolver } from '../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport { useStyles } from '../../core/styles-api/use-styles/use-styles.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport { useDirection } from '../../core/DirectionProvider/DirectionProvider.mjs';\nimport { ModalBase } from '../ModalBase/ModalBase.mjs';\nimport '../ModalBase/ModalBaseBody.mjs';\nimport '../ModalBase/ModalBaseCloseButton.mjs';\nimport '../ModalBase/ModalBaseContent.mjs';\nimport '../ModalBase/ModalBaseHeader.mjs';\nimport '../ModalBase/ModalBaseOverlay.mjs';\nimport '../ModalBase/ModalBaseTitle.mjs';\nimport { DrawerProvider } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nfunction getDrawerAlign(position) {\n switch (position) {\n case \"top\":\n return \"flex-start\";\n case \"bottom\":\n return \"flex-end\";\n default:\n return void 0;\n }\n}\nfunction getDrawerFlex(position) {\n if (position === \"top\" || position === \"bottom\") {\n return \"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)\";\n }\n return void 0;\n}\nconst transitions = {\n top: \"slide-down\",\n bottom: \"slide-up\",\n left: \"slide-right\",\n right: \"slide-left\"\n};\nconst rtlTransitions = {\n top: \"slide-down\",\n bottom: \"slide-up\",\n right: \"slide-right\",\n left: \"slide-left\"\n};\nconst defaultProps = {\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 position: \"left\"\n};\nconst varsResolver = createVarsResolver((_, { position, size, offset }) => ({\n root: {\n \"--drawer-size\": getSize(size, \"drawer-size\"),\n \"--drawer-flex\": getDrawerFlex(position),\n \"--drawer-height\": position === \"left\" || position === \"right\" ? void 0 : \"var(--drawer-size)\",\n \"--drawer-align\": getDrawerAlign(position),\n \"--drawer-justify\": position === \"right\" ? \"flex-end\" : void 0,\n \"--drawer-offset\": rem(offset)\n }\n}));\nconst DrawerRoot = factory((_props, ref) => {\n const props = useProps(\"DrawerRoot\", defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n scrollAreaComponent,\n position,\n transitionProps,\n radius,\n ...others\n } = props;\n const { dir } = useDirection();\n const getStyles = useStyles({\n name: \"Drawer\",\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver\n });\n const drawerTransition = (dir === \"rtl\" ? rtlTransitions : transitions)[position];\n return /* @__PURE__ */ jsx(DrawerProvider, { value: { scrollAreaComponent, getStyles, radius }, children: /* @__PURE__ */ jsx(\n ModalBase,\n {\n ref,\n ...getStyles(\"root\"),\n transitionProps: { transition: drawerTransition, ...transitionProps },\n unstyled,\n ...others\n }\n ) });\n});\nDrawerRoot.classes = classes;\nDrawerRoot.displayName = \"@mantine/core/DrawerRoot\";\n\nexport { DrawerRoot };\n//# sourceMappingURL=DrawerRoot.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { useState } from 'react';\nimport { createOptionalContext } from '../../core/utils/create-optional-context/create-optional-context.mjs';\nimport { getDefaultZIndex } from '../../core/utils/get-default-z-index/get-default-z-index.mjs';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\n\nconst [DrawerStackProvider, useDrawerStackContext] = createOptionalContext();\nfunction DrawerStack({ children }) {\n const [stack, setStack] = useState([]);\n const [maxZIndex, setMaxZIndex] = useState(getDefaultZIndex(\"modal\"));\n return /* @__PURE__ */ jsx(\n DrawerStackProvider,\n {\n value: {\n stack,\n addModal: (id, zIndex) => {\n setStack((current) => [.../* @__PURE__ */ new Set([...current, id])]);\n setMaxZIndex(\n (current) => typeof zIndex === \"number\" && typeof current === \"number\" ? Math.max(current, zIndex) : 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 children\n }\n );\n}\nDrawerStack.displayName = \"@mantine/core/DrawerStack\";\n\nexport { DrawerStack, useDrawerStackContext };\n//# sourceMappingURL=DrawerStack.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../ModalBase/ModalBase.mjs';\nimport '../ModalBase/ModalBaseBody.mjs';\nimport '../ModalBase/ModalBaseCloseButton.mjs';\nimport '../ModalBase/ModalBaseContent.mjs';\nimport '../ModalBase/ModalBaseHeader.mjs';\nimport '../ModalBase/ModalBaseOverlay.mjs';\nimport { ModalBaseTitle } from '../ModalBase/ModalBaseTitle.mjs';\nimport { useDrawerContext } from './Drawer.context.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {};\nconst DrawerTitle = factory((_props, ref) => {\n const props = useProps(\"DrawerTitle\", defaultProps, _props);\n const { classNames, className, style, styles, vars, ...others } = props;\n const ctx = useDrawerContext();\n return /* @__PURE__ */ jsx(\n ModalBaseTitle,\n {\n ref,\n ...ctx.getStyles(\"title\", { classNames, style, styles, className }),\n ...others\n }\n );\n});\nDrawerTitle.classes = classes;\nDrawerTitle.displayName = \"@mantine/core/DrawerTitle\";\n\nexport { DrawerTitle };\n//# sourceMappingURL=DrawerTitle.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { useEffect } from 'react';\nimport { getDefaultZIndex } from '../../core/utils/get-default-z-index/get-default-z-index.mjs';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport { DrawerBody } from './DrawerBody.mjs';\nimport { DrawerCloseButton } from './DrawerCloseButton.mjs';\nimport { DrawerContent } from './DrawerContent.mjs';\nimport { DrawerHeader } from './DrawerHeader.mjs';\nimport { DrawerOverlay } from './DrawerOverlay.mjs';\nimport { DrawerRoot } from './DrawerRoot.mjs';\nimport { DrawerStack, useDrawerStackContext } from './DrawerStack.mjs';\nimport { DrawerTitle } from './DrawerTitle.mjs';\nimport classes from './Drawer.module.css.mjs';\n\nconst defaultProps = {\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 withOverlay: true,\n withCloseButton: true\n};\nconst Drawer = factory((_props, ref) => {\n const {\n title,\n withOverlay,\n overlayProps,\n withCloseButton,\n closeButtonProps,\n children,\n opened,\n stackId,\n zIndex,\n ...others\n } = useProps(\"Drawer\", defaultProps, _props);\n const ctx = useDrawerStackContext();\n const hasHeader = !!title || withCloseButton;\n const stackProps = ctx && stackId ? {\n closeOnEscape: ctx.currentId === stackId,\n trapFocus: ctx.currentId === stackId,\n zIndex: ctx.getZIndex(stackId)\n } : {};\n const overlayVisible = withOverlay === false ? false : stackId && ctx ? ctx.currentId === stackId : opened;\n useEffect(() => {\n if (ctx && stackId) {\n opened ? ctx.addModal(stackId, zIndex || getDefaultZIndex(\"modal\")) : ctx.removeModal(stackId);\n }\n }, [opened, stackId, zIndex]);\n return /* @__PURE__ */ jsxs(\n DrawerRoot,\n {\n ref,\n opened,\n zIndex: ctx && stackId ? ctx.getZIndex(stackId) : zIndex,\n ...others,\n ...stackProps,\n children: [\n withOverlay && /* @__PURE__ */ jsx(\n DrawerOverlay,\n {\n visible: overlayVisible,\n transitionProps: ctx && stackId ? { duration: 0 } : void 0,\n ...overlayProps\n }\n ),\n /* @__PURE__ */ jsxs(DrawerContent, { __hidden: ctx && stackId && opened ? stackId !== ctx.currentId : false, children: [\n hasHeader && /* @__PURE__ */ jsxs(DrawerHeader, { children: [\n title && /* @__PURE__ */ jsx(DrawerTitle, { children: title }),\n withCloseButton && /* @__PURE__ */ jsx(DrawerCloseButton, { ...closeButtonProps })\n ] }),\n /* @__PURE__ */ jsx(DrawerBody, { children })\n ] })\n ]\n }\n );\n});\nDrawer.classes = classes;\nDrawer.displayName = \"@mantine/core/Drawer\";\nDrawer.Root = DrawerRoot;\nDrawer.Overlay = DrawerOverlay;\nDrawer.Content = DrawerContent;\nDrawer.Body = DrawerBody;\nDrawer.Header = DrawerHeader;\nDrawer.Title = DrawerTitle;\nDrawer.CloseButton = DrawerCloseButton;\nDrawer.Stack = DrawerStack;\n\nexport { Drawer };\n//# sourceMappingURL=Drawer.mjs.map\n"],"names":["DrawerProvider","useDrawerContext","createSafeContext","classes","defaultProps","DrawerBody","factory","_props","ref","props","useProps","classNames","className","style","styles","vars","others","ctx","jsx","ModalBaseBody","DrawerCloseButton","ModalBaseCloseButton","DrawerContent","children","radius","__hidden","Scroll","NativeScrollArea","ModalBaseContent","DrawerHeader","ModalBaseHeader","DrawerOverlay","ModalBaseOverlay","getDrawerAlign","position","getDrawerFlex","transitions","rtlTransitions","getDefaultZIndex","varsResolver","createVarsResolver","_","size","offset","getSize","rem","DrawerRoot","unstyled","scrollAreaComponent","transitionProps","dir","useDirection","getStyles","useStyles","drawerTransition","ModalBase","DrawerStackProvider","useDrawerStackContext","createOptionalContext","DrawerStack","stack","setStack","useState","maxZIndex","setMaxZIndex","id","zIndex","current","currentId","DrawerTitle","ModalBaseTitle","Drawer","title","withOverlay","overlayProps","withCloseButton","closeButtonProps","opened","stackId","hasHeader","stackProps","overlayVisible","useEffect","jsxs"],"mappings":"0RAcA,KAAM,CAACA,EAAgBC,CAAgB,EAAIC,EACzC,wCACF,ECfA,IAAIC,EAA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