{"version":3,"file":"mantine-nj3O-Ox8.js","sources":["../../../node_modules/@mantine/core/esm/components/Alert/Alert.module.css.mjs","../../../node_modules/@mantine/core/esm/components/Alert/Alert.mjs","../../../node_modules/@mantine/core/esm/components/ThemeIcon/ThemeIcon.module.css.mjs","../../../node_modules/@mantine/core/esm/components/ThemeIcon/ThemeIcon.mjs","../../../app/helpers/mantine.ts"],"sourcesContent":["'use client';\nvar classes = {\"root\":\"m_66836ed3\",\"wrapper\":\"m_a5d60502\",\"body\":\"m_667c2793\",\"title\":\"m_6a03f287\",\"label\":\"m_698f4f23\",\"icon\":\"m_667f2a6a\",\"message\":\"m_7fa78076\",\"closeButton\":\"m_87f54839\"};\n\nexport { classes as default };\n//# sourceMappingURL=Alert.module.css.mjs.map\n","'use client';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { useId } from '@mantine/hooks';\nimport 'react';\nimport { getRadius } from '../../core/utils/get-size/get-size.mjs';\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 { Box } from '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport '../CloseButton/CloseIcon.mjs';\nimport { CloseButton } from '../CloseButton/CloseButton.mjs';\nimport classes from './Alert.module.css.mjs';\n\nconst defaultProps = {};\nconst varsResolver = createVarsResolver(\n (theme, { radius, color, variant, autoContrast }) => {\n const colors = theme.variantColorResolver({\n color: color || theme.primaryColor,\n theme,\n variant: variant || \"light\",\n autoContrast\n });\n return {\n root: {\n \"--alert-radius\": radius === void 0 ? void 0 : getRadius(radius),\n \"--alert-bg\": color || variant ? colors.background : void 0,\n \"--alert-color\": colors.color,\n \"--alert-bd\": color || variant ? colors.border : void 0\n }\n };\n }\n);\nconst Alert = factory((_props, ref) => {\n const props = useProps(\"Alert\", defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n radius,\n color,\n title,\n children,\n id,\n icon,\n withCloseButton,\n onClose,\n closeButtonLabel,\n variant,\n autoContrast,\n ...others\n } = props;\n const getStyles = useStyles({\n name: \"Alert\",\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver\n });\n const rootId = useId(id);\n const titleId = title && `${rootId}-title` || void 0;\n const bodyId = `${rootId}-body`;\n return /* @__PURE__ */ jsx(\n Box,\n {\n id: rootId,\n ...getStyles(\"root\", { variant }),\n variant,\n ref,\n ...others,\n role: \"alert\",\n \"aria-describedby\": bodyId,\n \"aria-labelledby\": titleId,\n children: /* @__PURE__ */ jsxs(\"div\", { ...getStyles(\"wrapper\"), children: [\n icon && /* @__PURE__ */ jsx(\"div\", { ...getStyles(\"icon\"), children: icon }),\n /* @__PURE__ */ jsxs(\"div\", { ...getStyles(\"body\"), children: [\n title && /* @__PURE__ */ jsx(\"div\", { ...getStyles(\"title\"), \"data-with-close-button\": withCloseButton || void 0, children: /* @__PURE__ */ jsx(\"span\", { id: titleId, ...getStyles(\"label\"), children: title }) }),\n children && /* @__PURE__ */ jsx(\"div\", { id: bodyId, ...getStyles(\"message\"), \"data-variant\": variant, children })\n ] }),\n withCloseButton && /* @__PURE__ */ jsx(\n CloseButton,\n {\n ...getStyles(\"closeButton\"),\n onClick: onClose,\n variant: \"transparent\",\n size: 16,\n iconSize: 16,\n \"aria-label\": closeButtonLabel,\n unstyled\n }\n )\n ] })\n }\n );\n});\nAlert.classes = classes;\nAlert.displayName = \"@mantine/core/Alert\";\n\nexport { Alert };\n//# sourceMappingURL=Alert.mjs.map\n","'use client';\nvar classes = {\"root\":\"m_7341320d\"};\n\nexport { classes as default };\n//# sourceMappingURL=ThemeIcon.module.css.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport { getSize, getRadius } 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 { Box } from '../../core/Box/Box.mjs';\nimport { factory } from '../../core/factory/factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport classes from './ThemeIcon.module.css.mjs';\n\nconst defaultProps = {};\nconst varsResolver = createVarsResolver(\n (theme, { size, radius, variant, gradient, color, autoContrast }) => {\n const colors = theme.variantColorResolver({\n color: color || theme.primaryColor,\n theme,\n gradient,\n variant: variant || \"filled\",\n autoContrast\n });\n return {\n root: {\n \"--ti-size\": getSize(size, \"ti-size\"),\n \"--ti-radius\": radius === void 0 ? void 0 : getRadius(radius),\n \"--ti-bg\": color || variant ? colors.background : void 0,\n \"--ti-color\": color || variant ? colors.color : void 0,\n \"--ti-bd\": color || variant ? colors.border : void 0\n }\n };\n }\n);\nconst ThemeIcon = factory((_props, ref) => {\n const props = useProps(\"ThemeIcon\", defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, autoContrast, ...others } = props;\n const getStyles = useStyles({\n name: \"ThemeIcon\",\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver\n });\n return /* @__PURE__ */ jsx(Box, { ref, ...getStyles(\"root\"), ...others });\n});\nThemeIcon.classes = classes;\nThemeIcon.displayName = \"@mantine/core/ThemeIcon\";\n\nexport { ThemeIcon };\n//# sourceMappingURL=ThemeIcon.mjs.map\n","import type { DefaultMantineColor, MantineColorsTuple } from \"@mantine/core\";\nimport {\n ActionIcon,\n Alert,\n Button,\n Loader,\n Modal,\n Notification,\n TextInput,\n ThemeIcon,\n createTheme,\n} from \"@mantine/core\";\n\nimport cx from \"clsx\";\nimport classes from \"./mantine.module.css\";\n\nexport type CustomColors = DefaultMantineColor | \"primary\"; // | \"accent\"\n\ndeclare module \"@mantine/core\" {\n export interface MantineThemeColorsOverride {\n colors: Record;\n }\n}\n\nconst stone: MantineColorsTuple = [\n \"#fafaf9\",\n \"#f5f5f4\",\n \"#e7e5e4\",\n \"#d6d3d1\",\n \"#a8a29e\",\n \"#78716c\",\n \"#57534e\",\n \"#44403c\",\n \"#292524\",\n \"#1c1917\",\n \"#0c0a09\",\n];\n\nexport const THEME = createTheme({\n autoContrast: true,\n colors: {\n dark: stone,\n primary: stone,\n // primary: [\n // \"#eff5fb\",\n // \"#dee8f0\",\n // \"#b8cfe2\",\n // \"#8fb5d6\",\n // \"#6e9fcb\",\n // \"#5991c5\",\n // \"#4d8ac3\",\n // \"#3e77ad\",\n // \"#346a9b\",\n // \"#245c89\",\n // ],\n // accent: DEFAULT_THEME.colors.teal,\n },\n primaryColor: \"primary\",\n defaultRadius: 0,\n fontFamily:\n \"Manrope, Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, \" +\n \"Arial, sans-serif\",\n fontFamilyMonospace:\n \"JetBrains Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \" +\n \"Liberation Mono, Courier New, monospace\",\n headings: {\n fontFamily:\n \"Manrope, Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, \" +\n \"Arial, sans-serif\",\n },\n focusClassName: cx(\"mantine-focus-auto\", classes.focus),\n components: {\n ActionIcon: ActionIcon.extend({\n defaultProps: {\n variant: \"subtle\",\n },\n }),\n Alert: Alert.extend({\n styles: {\n title: {\n fontWeight: 800,\n },\n },\n }),\n Button: Button.extend({\n classNames: {\n root: classes.button,\n },\n }),\n Loader: Loader.extend({\n defaultProps: {\n size: \"sm\",\n color: \"primary.5\",\n },\n }),\n Modal: Modal.extend({\n styles: ({ headings: { sizes, ...style } }) => ({\n header: {\n alignItems: \"start\",\n },\n title: {\n ...sizes.h4,\n ...style,\n },\n }),\n }),\n Notification: Notification.extend({\n styles: {\n description: {\n lineHeight: \"var(--mantine-line-height-xs)\",\n },\n },\n }),\n TextInput: TextInput.extend({\n styles: ({ fontSizes }) => ({\n input: {\n fontSize: fontSizes.md,\n },\n }),\n }),\n ThemeIcon: ThemeIcon.extend({\n defaultProps: {\n variant: \"default\",\n },\n }),\n },\n});\n"],"names":["classes","defaultProps","varsResolver","createVarsResolver","theme","radius","color","variant","autoContrast","colors","getRadius","Alert","factory","_props","ref","props","useProps","classNames","className","style","styles","unstyled","vars","title","children","id","icon","withCloseButton","onClose","closeButtonLabel","others","getStyles","useStyles","rootId","useId","titleId","bodyId","jsx","Box","jsxs","CloseButton","size","gradient","getSize","ThemeIcon","stone","THEME","cx","ActionIcon","Button","Loader","Modal","sizes","Notification","TextInput","fontSizes"],"mappings":"uOACA,IAAIA,EAAU,CAAC,KAAO,aAAa,QAAU,aAAa,KAAO,aAAa,MAAQ,aAAa,MAAQ,aAAa,KAAO,aAAa,QAAU,aAAa,YAAc,YAAY,ECoB7L,MAAMC,EAAe,CAAA,EACfC,EAAeC,EACnB,CAACC,EAAO,CAAE,OAAAC,EAAQ,MAAAC,EAAO,QAAAC,EAAS,aAAAC,CAAY,IAAO,CACnD,MAAMC,EAASL,EAAM,qBAAqB,CACxC,MAAOE,GAASF,EAAM,aACtB,MAAAA,EACA,QAASG,GAAW,QACpB,aAAAC,CACN,CAAK,EACD,MAAO,CACL,KAAM,CACJ,iBAAkBH,IA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