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AA4BA,EAAWjU,IAAyBzB,EAAAA,EAAAA,KAAI4V,EAAS,IAAKnU,MACvF,IAGR2T,EAAK1U,YAAc,oBACP,MAACkH,EAAiCwN,C,oEE7EvC,SAASU,EAAkB/V,GAChC,MAAM,EACJwP,EAAC,GACDQ,EAAE,GACFC,EAAE,GACFP,EAAE,GACFC,EAAE,GACFC,EAAE,GACFC,EAAE,GACFE,EAAE,GACFD,EAAE,EACFI,EAAC,GACDO,EAAE,GACFC,EAAE,GACFP,EAAE,GACFC,EAAE,GACFC,EAAE,GACFC,EAAE,GACFE,EAAE,GACFD,EAAE,GACFI,EAAE,GACFC,EAAE,EACFC,EAAC,QACD9G,EAAO,GACP+G,EAAE,GACFC,EAAE,GACFC,EAAE,IACFC,EAAG,GACHC,EAAE,GACFC,EAAE,GACFC,EAAE,GACFC,EAAE,GACFC,EAAE,EACFC,EAAC,IACDC,EAAG,IACHC,EAAG,EACHC,EAAC,IACDC,EAAG,IACHC,EAAG,KACHC,EAAI,IACJC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,KACHC,EAAI,OACJC,EAAM,MACNC,EAAK,MACLC,EAAK,QACLtP,EAAO,KACPuP,EAAI,WACJgD,EAAU,YACVC,EAAW,YACXC,EAAW,WACXC,GAAU,GACVS,MACGL,IACD9V,EAyDJ,MAAO,CAAEsP,YAxDUmH,EAAAA,EAAAA,GAAY,CAC7BjH,IACAQ,KACAC,KACAP,KACAC,KACAC,KACAC,KACAE,KACAD,KACAI,IACAO,KACAC,KACAP,KACAC,KACAC,KACAC,KACAE,KACAD,KACAI,KACAC,KACAC,IACA9G,UACA+G,KACAC,KACAC,KACAC,MACAC,KACAC,KACAC,KACAC,KACAC,KACAC,IACAC,MACAC,MACAC,IACAC,MACAC,MACAC,OACAC,MACAC,MACAC,MACAC,MACAC,MACAC,OACAC,SACAC,QACAC,QACAtP,UACAuP,OACAgD,aACAC,cACAC,cACAC,cACAS,QAEmBL,QACvB,C,iFClHO,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AAWG,EAAS/X,QAAQ2X,SA5BlC,SAA6B3O,EAAOgP,GAClC,IAEE,OADAhP,EAAMhH,iBAAiB,SAAUgW,GAC1B,IAAMhP,EAAM/G,oBAAoB,SAAU+V,EAClD,CAAC,MAAOC,GAEP,OADAjP,EAAMkP,YAAYF,GACX,IAAMhP,EAAMmP,eAAeH,EACnC,CACH,CAqBaI,CAAoBL,EAAS/X,SAAUqB,GAAUuW,EAAWvW,EAAMsW,UAE9D,GACZ,CAAC3O,IACG2O,CACT,CClCO,SAASnR,EAAiBiR,EAAc/E,GAC7C,OAAO8E,EAAc,mCAAoCC,EAAc/E,EACzE,C,kBCHO,SAAStS,IACd,MAAO,WAAWiY,KAAKC,SAAS1B,SAAS,IAAI2B,MAAM,EAAG,KACxD,C","sources":["../node_modules/@mantine/core/src/components/CloseButton/CloseIcon.tsx","../node_modules/@mantine/core/src/components/CloseButton/CloseButton.tsx","../node_modules/@mantine/hooks/src/use-focus-trap/tabbable.ts","../node_modules/@mantine/hooks/src/use-focus-trap/use-focus-trap.ts","../node_modules/@mantine/hooks/src/use-focus-trap/create-aria-hider.ts","../node_modules/@mantine/hooks/src/use-focus-trap/scope-tab.ts","../node_modules/@mantine/core/src/components/VisuallyHidden/VisuallyHidden.tsx","../node_modules/@mantine/core/src/components/FocusTrap/FocusTrap.tsx","../node_modules/@mantine/core/src/components/Portal/Portal.tsx","../node_modules/@mantine/core/src/components/Portal/OptionalPortal.tsx","../node_modules/@mantine/core/src/components/Transition/transitions.ts","../node_modules/@mantine/core/src/components/Transition/get-transition-styles/get-transition-styles.ts","../node_modules/@mantine/core/src/components/Transition/use-transition.ts","../node_modules/@mantine/core/src/components/Transition/Transition.tsx","../node_modules/@mantine/core/src/components/UnstyledButton/UnstyledButton.tsx","../node_modules/@mantine/core/src/core/InlineStyles/css-object-to-string/css-object-to-string.ts","../node_modules/@mantine/core/src/core/utils/camel-to-kebab-case/camel-to-kebab-case.ts","../node_modules/@mantine/core/src/core/InlineStyles/styles-to-string/styles-to-string.ts","../node_modules/@mantine/core/src/core/InlineStyles/InlineStyles.tsx","../node_modules/@mantine/core/src/core/Box/get-box-mod/get-box-mod.ts","../node_modules/@mantine/core/src/core/Box/get-box-style/get-box-style.ts","../node_modules/@mantine/core/src/core/Box/style-props/style-props-data.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/color-resolver/color-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/index.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/identity-resolver/identity-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/size-resolver/size-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/resolvers/border-resolver/border-resolver.ts","../node_modules/@mantine/core/src/core/Box/style-props/parse-style-props/sort-media-queries.ts","../node_modules/@mantine/core/src/core/Box/style-props/parse-style-props/parse-style-props.ts","../node_modules/@mantine/core/src/core/Box/Box.tsx","../node_modules/@mantine/core/src/core/Box/use-random-classname/use-random-classname.ts","../node_modules/@mantine/core/src/core/Box/style-props/extract-style-props/extract-style-props.ts","../node_modules/@mantine/core/src/core/MantineProvider/use-props/use-props.ts","../node_modules/@mantine/core/src/core/factory/factory.tsx","../node_modules/@mantine/core/src/core/factory/polymorphic-factory.tsx","../node_modules/@mantine/core/src/core/styles-api/create-vars-resolver/create-vars-resolver.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-class-name.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-theme-class-names/get-theme-class-names.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-style/resolve-style.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-vars/resolve-vars.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/get-style/get-style.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/use-styles.ts","../node_modules/@mantine/core/src/core/styles-api/use-styles/use-transformed-styles.ts","../node_modules/@mantine/core/src/core/utils/create-safe-context/create-safe-context.tsx","../node_modules/@mantine/core/src/core/utils/filter-props/filter-props.ts","../node_modules/@mantine/core/src/core/utils/get-default-z-index/get-default-z-index.ts","../node_modules/@mantine/core/src/core/utils/get-size/get-size.ts","../node_modules/@mantine/core/src/core/utils/is-element/is-element.ts","../node_modules/@mantine/core/src/core/utils/is-number-like/is-number-like.ts","../node_modules/@mantine/hooks/src/use-did-update/use-did-update.ts","../node_modules/@mantine/hooks/src/use-focus-return/use-focus-return.ts","../node_modules/@mantine/hooks/src/use-id/use-react-id.ts","../node_modules/@mantine/hooks/src/use-id/use-id.ts","../node_modules/@mantine/hooks/src/use-merged-ref/use-merged-ref.ts","../node_modules/@mantine/hooks/src/use-media-query/use-media-query.ts","../node_modules/@mantine/hooks/src/use-reduced-motion/use-reduced-motion.ts","../node_modules/@mantine/hooks/src/utils/random-id/random-id.ts"],"sourcesContent":["import { forwardRef } from 'react';\n\nexport interface CloseIconProps extends React.ComponentPropsWithoutRef<'svg'> {\n /** Icon width and height, `var(--icon-size)` by default */\n size?: string;\n}\n\nexport const CloseIcon = forwardRef(\n ({ size = 'var(--cb-icon-size, 70%)', style, ...others }, ref) => (\n \n \n \n )\n);\n\nCloseIcon.displayName = '@mantine/core/CloseIcon';\n","import {\n BoxProps,\n createVarsResolver,\n getRadius,\n getSize,\n MantineRadius,\n MantineSize,\n polymorphicFactory,\n PolymorphicFactory,\n rem,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport { UnstyledButton } from '../UnstyledButton';\nimport { CloseIcon } from './CloseIcon';\nimport classes from './CloseButton.module.css';\n\nexport type CloseButtonVariant = 'subtle' | 'transparent';\nexport type CloseButtonStylesNames = 'root';\nexport type CloseButtonCssVariables = {\n root: '--cb-icon-size' | '--cb-size' | '--cb-radius';\n};\n\nexport interface __CloseButtonProps {\n 'data-disabled'?: boolean;\n\n /** Controls width and height of the button. Numbers are converted to rem. `'md'` by default. */\n size?: MantineSize | (string & {}) | number;\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 /** Sets `disabled` and `data-disabled` attributes on the button element */\n disabled?: boolean;\n\n /** `X` icon `width` and `height`, `80%` by default */\n iconSize?: number | string;\n\n /** Content rendered inside the button, for example `VisuallyHidden` with label for screen readers */\n children?: React.ReactNode;\n\n /** Replaces default close icon. If set, `iconSize` prop is ignored. */\n icon?: React.ReactNode;\n}\n\nexport interface CloseButtonProps\n extends __CloseButtonProps,\n BoxProps,\n StylesApiProps {}\n\nexport type CloseButtonFactory = PolymorphicFactory<{\n props: CloseButtonProps;\n defaultComponent: 'button';\n defaultRef: HTMLButtonElement;\n stylesNames: CloseButtonStylesNames;\n variant: CloseButtonVariant;\n vars: CloseButtonCssVariables;\n}>;\n\nconst defaultProps: Partial = {\n variant: 'subtle',\n};\n\nconst varsResolver = createVarsResolver((_, { size, radius, iconSize }) => ({\n root: {\n '--cb-size': getSize(size, 'cb-size'),\n '--cb-radius': radius === undefined ? undefined : getRadius(radius),\n '--cb-icon-size': rem(iconSize),\n },\n}));\n\nexport const CloseButton = polymorphicFactory((_props, ref) => {\n const props = useProps('CloseButton', defaultProps, _props);\n const {\n iconSize,\n children,\n vars,\n radius,\n className,\n classNames,\n style,\n styles,\n unstyled,\n 'data-disabled': dataDisabled,\n disabled,\n variant,\n icon,\n mod,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: 'CloseButton',\n props,\n className,\n style,\n classes,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n \n {icon || }\n {children}\n \n );\n});\n\nCloseButton.classes = classes;\nCloseButton.displayName = '@mantine/core/CloseButton';\n","const TABBABLE_NODES = /input|select|textarea|button|object/;\nexport const FOCUS_SELECTOR = 'a, input, select, textarea, button, object, [tabindex]';\n\nfunction hidden(element: HTMLElement) {\n if (process.env.NODE_ENV === 'test') {\n return false;\n }\n\n return element.style.display === 'none';\n}\n\nfunction visible(element: HTMLElement) {\n const isHidden =\n element.getAttribute('aria-hidden') ||\n element.getAttribute('hidden') ||\n element.getAttribute('type') === 'hidden';\n\n if (isHidden) {\n return false;\n }\n\n let parentElement: HTMLElement = element;\n while (parentElement) {\n if (parentElement === document.body || parentElement.nodeType === 11) {\n break;\n }\n\n if (hidden(parentElement)) {\n return false;\n }\n\n parentElement = parentElement.parentNode as HTMLElement;\n }\n\n return true;\n}\n\nfunction getElementTabIndex(element: HTMLElement) {\n let tabIndex: string | null | undefined = element.getAttribute('tabindex');\n if (tabIndex === null) {\n tabIndex = undefined;\n }\n return parseInt(tabIndex as string, 10);\n}\n\nexport function focusable(element: HTMLElement) {\n const nodeName = element.nodeName.toLowerCase();\n const isTabIndexNotNaN = !Number.isNaN(getElementTabIndex(element));\n const res =\n // @ts-expect-error function accepts any html element but if it is a button, it should not be disabled to trigger the condition\n (TABBABLE_NODES.test(nodeName) && !element.disabled) ||\n (element instanceof HTMLAnchorElement ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);\n\n return res && visible(element);\n}\n\nexport function tabbable(element: HTMLElement) {\n const tabIndex = getElementTabIndex(element);\n const isTabIndexNaN = Number.isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element);\n}\n\nexport function findTabbableDescendants(element: HTMLElement): HTMLElement[] {\n return Array.from(element.querySelectorAll(FOCUS_SELECTOR)).filter(tabbable);\n}\n","import { useCallback, useEffect, useRef } from 'react';\nimport { createAriaHider } from './create-aria-hider';\nimport { scopeTab } from './scope-tab';\nimport { FOCUS_SELECTOR, focusable, tabbable } from './tabbable';\n\nexport function useFocusTrap(active = true): (instance: HTMLElement | null) => void {\n const ref = useRef();\n const restoreAria = useRef(null);\n\n const focusNode = (node: HTMLElement) => {\n let focusElement: HTMLElement | null = node.querySelector('[data-autofocus]');\n\n if (!focusElement) {\n const children = Array.from(node.querySelectorAll(FOCUS_SELECTOR));\n focusElement = children.find(tabbable) || children.find(focusable) || null;\n if (!focusElement && focusable(node)) focusElement = node;\n }\n\n if (focusElement) {\n focusElement.focus({ preventScroll: true });\n } else if (process.env.NODE_ENV === 'development') {\n // eslint-disable-next-line no-console\n console.warn(\n '[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node',\n node\n );\n }\n };\n\n const setRef = useCallback(\n (node: HTMLElement | null) => {\n if (!active) {\n return;\n }\n\n if (node === null) {\n if (restoreAria.current) {\n restoreAria.current();\n restoreAria.current = null;\n }\n return;\n }\n\n restoreAria.current = createAriaHider(node);\n if (ref.current === node) {\n return;\n }\n\n if (node) {\n // Delay processing the HTML node by a frame. This ensures focus is assigned correctly.\n setTimeout(() => {\n if (node.getRootNode()) {\n focusNode(node);\n } else if (process.env.NODE_ENV === 'development') {\n // eslint-disable-next-line no-console\n console.warn('[@mantine/hooks/use-focus-trap] Ref node is not part of the dom', node);\n }\n });\n\n ref.current = node;\n } else {\n ref.current = null;\n }\n },\n [active]\n );\n\n useEffect(() => {\n if (!active) {\n return undefined;\n }\n\n ref.current && setTimeout(() => focusNode(ref.current!));\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Tab' && ref.current) {\n scopeTab(ref.current, event);\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n\n if (restoreAria.current) {\n restoreAria.current();\n }\n };\n }, [active]);\n\n return setRef;\n}\n","import { randomId } from '../utils';\n\ninterface Value {\n node: HTMLElement;\n ariaHidden: string | null;\n}\n\nexport function createAriaHider(\n containerNode: HTMLElement,\n selector: string = 'body > :not(script)'\n) {\n const id = randomId();\n\n const rootNodes: (Value | undefined)[] = Array.from(\n document.querySelectorAll(selector)\n ).map((node) => {\n if (node?.shadowRoot?.contains(containerNode) || node.contains(containerNode)) {\n return undefined;\n }\n\n const ariaHidden = node.getAttribute('aria-hidden');\n const prevAriaHidden = node.getAttribute('data-hidden');\n const prevFocusId = node.getAttribute('data-focus-id');\n\n node.setAttribute('data-focus-id', id);\n\n if (ariaHidden === null || ariaHidden === 'false') {\n node.setAttribute('aria-hidden', 'true');\n } else if (!prevAriaHidden && !prevFocusId) {\n node.setAttribute('data-hidden', ariaHidden);\n }\n\n return {\n node,\n ariaHidden: prevAriaHidden || null,\n };\n });\n\n return () => {\n rootNodes.forEach((item) => {\n if (!item || id !== item.node.getAttribute('data-focus-id')) {\n return;\n }\n\n if (item.ariaHidden === null) {\n item.node.removeAttribute('aria-hidden');\n } else {\n item.node.setAttribute('aria-hidden', item.ariaHidden);\n }\n\n item.node.removeAttribute('data-focus-id');\n item.node.removeAttribute('data-hidden');\n });\n };\n}\n","import { findTabbableDescendants } from './tabbable';\n\nexport function scopeTab(node: HTMLElement, event: KeyboardEvent) {\n const tabbable = findTabbableDescendants(node);\n if (!tabbable.length) {\n event.preventDefault();\n return;\n }\n const finalTabbable = tabbable[event.shiftKey ? 0 : tabbable.length - 1];\n const root = node.getRootNode() as unknown as DocumentOrShadowRoot;\n let leavingFinalTabbable = finalTabbable === root.activeElement || node === root.activeElement;\n\n const activeElement = root.activeElement as Element;\n const activeElementIsRadio =\n activeElement.tagName === 'INPUT' && activeElement.getAttribute('type') === 'radio';\n if (activeElementIsRadio) {\n const activeRadioGroup = tabbable.filter(\n (element) =>\n element.getAttribute('type') === 'radio' &&\n element.getAttribute('name') === activeElement.getAttribute('name')\n );\n leavingFinalTabbable = activeRadioGroup.includes(finalTabbable);\n }\n\n if (!leavingFinalTabbable) {\n return;\n }\n\n event.preventDefault();\n\n const target = tabbable[event.shiftKey ? tabbable.length - 1 : 0];\n\n if (target) {\n target.focus();\n }\n}\n","import {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './VisuallyHidden.module.css';\n\nexport type VisuallyHiddenStylesNames = 'root';\n\nexport interface VisuallyHiddenProps\n extends BoxProps,\n StylesApiProps,\n ElementProps<'div'> {}\n\nexport type VisuallyHiddenFactory = Factory<{\n props: VisuallyHiddenProps;\n ref: HTMLDivElement;\n stylesNames: VisuallyHiddenStylesNames;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const VisuallyHidden = factory((_props, ref) => {\n const props = useProps('VisuallyHidden', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, ...others } = props;\n\n const getStyles = useStyles({\n name: 'VisuallyHidden',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n return ;\n});\n\nVisuallyHidden.classes = classes;\nVisuallyHidden.displayName = '@mantine/core/VisuallyHidden';\n","import { cloneElement } from 'react';\nimport { useFocusTrap, useMergedRef } from '@mantine/hooks';\nimport { isElement } from '../../core';\nimport { VisuallyHidden } from '../VisuallyHidden';\n\nexport interface FocusTrapProps {\n /** Element at which focus should be trapped, should support ref prop */\n children: any;\n\n /** Determines whether focus should be trapped within child element */\n active?: boolean;\n\n /** Prop that should be used to access component ref */\n refProp?: string;\n\n /** Assigns element `ref` */\n innerRef?: React.ForwardedRef;\n}\n\nexport function FocusTrap({\n children,\n active = true,\n refProp = 'ref',\n innerRef,\n}: FocusTrapProps): React.ReactElement {\n const focusTrapRef = useFocusTrap(active);\n const ref = useMergedRef(focusTrapRef, innerRef);\n\n if (!isElement(children)) {\n return children;\n }\n\n return cloneElement(children, { [refProp]: ref });\n}\n\nexport function FocusTrapInitialFocus(props: React.ComponentPropsWithoutRef<'span'>) {\n return ;\n}\n\nFocusTrap.displayName = '@mantine/core/FocusTrap';\nFocusTrapInitialFocus.displayName = '@mantine/core/FocusTrapInitialFocus';\nFocusTrap.InitialFocus = FocusTrapInitialFocus;\n","import { forwardRef, useRef, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport { assignRef, useIsomorphicEffect } from '@mantine/hooks';\nimport { useProps } from '../../core';\n\nfunction createPortalNode(props: React.ComponentPropsWithoutRef<'div'>) {\n const node = document.createElement('div');\n node.setAttribute('data-portal', 'true');\n typeof props.className === 'string' &&\n node.classList.add(...props.className.split(' ').filter(Boolean));\n typeof props.style === 'object' && Object.assign(node.style, props.style);\n typeof props.id === 'string' && node.setAttribute('id', props.id);\n return node;\n}\n\nexport interface PortalProps extends React.ComponentPropsWithoutRef<'div'> {\n /** Portal children, for example, custom modal or popover */\n children: React.ReactNode;\n\n /** Element inside which portal should be created, by default a new div element is created and appended to the `document.body` */\n target?: HTMLElement | string;\n}\n\nconst defaultProps: Partial = {};\n\nexport const Portal = forwardRef((props, ref) => {\n const { children, target, ...others } = useProps('Portal', defaultProps, props);\n\n const [mounted, setMounted] = useState(false);\n const nodeRef = useRef(null);\n\n useIsomorphicEffect(() => {\n setMounted(true);\n nodeRef.current = !target\n ? createPortalNode(others)\n : typeof target === 'string'\n ? document.querySelector(target)\n : target;\n\n assignRef(ref, nodeRef.current);\n\n if (!target && nodeRef.current) {\n document.body.appendChild(nodeRef.current);\n }\n\n return () => {\n if (!target && nodeRef.current) {\n document.body.removeChild(nodeRef.current);\n }\n };\n }, [target]);\n\n if (!mounted || !nodeRef.current) {\n return null;\n }\n\n return createPortal(<>{children}, nodeRef.current);\n});\n\nPortal.displayName = '@mantine/core/Portal';\n","import { Portal, PortalProps } from './Portal';\n\nexport interface OptionalPortalProps extends PortalProps {\n /** Determines whether children should be rendered inside `` */\n withinPortal?: boolean;\n}\n\nexport function OptionalPortal({ withinPortal = true, children, ...others }: OptionalPortalProps) {\n if (withinPortal) {\n return {children};\n }\n\n return <>{children};\n}\n\nOptionalPortal.displayName = '@mantine/core/OptionalPortal';\n","import { rem } from '../../core';\n\nexport interface MantineTransitionStyles {\n common?: React.CSSProperties;\n in: React.CSSProperties;\n out: React.CSSProperties;\n transitionProperty: React.CSSProperties['transitionProperty'];\n}\n\nexport type MantineTransitionName =\n | 'fade'\n | 'fade-down'\n | 'fade-up'\n | 'fade-left'\n | 'fade-right'\n | 'skew-up'\n | 'skew-down'\n | 'rotate-right'\n | 'rotate-left'\n | 'slide-down'\n | 'slide-up'\n | 'slide-right'\n | 'slide-left'\n | 'scale-y'\n | 'scale-x'\n | 'scale'\n | 'pop'\n | 'pop-top-left'\n | 'pop-top-right'\n | 'pop-bottom-left'\n | 'pop-bottom-right';\n\nexport type MantineTransition = MantineTransitionName | MantineTransitionStyles;\n\nconst popIn = (from: 'top' | 'bottom') => ({\n in: { opacity: 1, transform: 'scale(1)' },\n out: { opacity: 0, transform: `scale(.9) translateY(${rem(from === 'bottom' ? 10 : -10)})` },\n transitionProperty: 'transform, opacity',\n});\n\nexport const transitions: Record = {\n fade: {\n in: { opacity: 1 },\n out: { opacity: 0 },\n transitionProperty: 'opacity',\n },\n\n 'fade-up': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: `translateY(${rem(30)}` },\n transitionProperty: 'opacity, transform',\n },\n\n 'fade-down': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: `translateY(${rem(-30)}` },\n transitionProperty: 'opacity, transform',\n },\n\n 'fade-left': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: `translateX(${rem(30)}` },\n transitionProperty: 'opacity, transform',\n },\n\n 'fade-right': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: `translateX(${rem(-30)}` },\n transitionProperty: 'opacity, transform',\n },\n\n scale: {\n in: { opacity: 1, transform: 'scale(1)' },\n out: { opacity: 0, transform: 'scale(0)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'scale-y': {\n in: { opacity: 1, transform: 'scaleY(1)' },\n out: { opacity: 0, transform: 'scaleY(0)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'scale-x': {\n in: { opacity: 1, transform: 'scaleX(1)' },\n out: { opacity: 0, transform: 'scaleX(0)' },\n common: { transformOrigin: 'left' },\n transitionProperty: 'transform, opacity',\n },\n\n 'skew-up': {\n in: { opacity: 1, transform: 'translateY(0) skew(0deg, 0deg)' },\n out: { opacity: 0, transform: `translateY(${rem(-20)}) skew(-10deg, -5deg)` },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'skew-down': {\n in: { opacity: 1, transform: 'translateY(0) skew(0deg, 0deg)' },\n out: { opacity: 0, transform: `translateY(${rem(20)}) skew(-10deg, -5deg)` },\n common: { transformOrigin: 'bottom' },\n transitionProperty: 'transform, opacity',\n },\n\n 'rotate-left': {\n in: { opacity: 1, transform: 'translateY(0) rotate(0deg)' },\n out: { opacity: 0, transform: `translateY(${rem(20)}) rotate(-5deg)` },\n common: { transformOrigin: 'bottom' },\n transitionProperty: 'transform, opacity',\n },\n\n 'rotate-right': {\n in: { opacity: 1, transform: 'translateY(0) rotate(0deg)' },\n out: { opacity: 0, transform: `translateY(${rem(20)}) rotate(5deg)` },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-down': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: 'translateY(-100%)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-up': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: 'translateY(100%)' },\n common: { transformOrigin: 'bottom' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-left': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: 'translateX(100%)' },\n common: { transformOrigin: 'left' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-right': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: 'translateX(-100%)' },\n common: { transformOrigin: 'right' },\n transitionProperty: 'transform, opacity',\n },\n\n pop: {\n ...popIn('bottom'),\n common: { transformOrigin: 'center center' },\n },\n\n 'pop-bottom-left': {\n ...popIn('bottom'),\n common: { transformOrigin: 'bottom left' },\n },\n\n 'pop-bottom-right': {\n ...popIn('bottom'),\n common: { transformOrigin: 'bottom right' },\n },\n\n 'pop-top-left': {\n ...popIn('top'),\n common: { transformOrigin: 'top left' },\n },\n\n 'pop-top-right': {\n ...popIn('top'),\n common: { transformOrigin: 'top right' },\n },\n};\n","import { MantineTransition, transitions } from '../transitions';\n\nconst transitionStatuses = {\n entering: 'in',\n entered: 'in',\n exiting: 'out',\n exited: 'out',\n 'pre-exiting': 'out',\n 'pre-entering': 'out',\n} as const;\n\nexport function getTransitionStyles({\n transition,\n state,\n duration,\n timingFunction,\n}: {\n transition: MantineTransition;\n state: keyof typeof transitionStatuses;\n duration: number;\n timingFunction: React.CSSProperties['transitionTimingFunction'];\n}): React.CSSProperties {\n const shared = {\n transitionDuration: `${duration}ms`,\n transitionTimingFunction: timingFunction,\n };\n\n if (typeof transition === 'string') {\n if (!(transition in transitions)) {\n return {};\n }\n\n return {\n transitionProperty: transitions[transition].transitionProperty,\n ...shared,\n ...transitions[transition].common,\n ...transitions[transition][transitionStatuses[state]],\n };\n }\n\n return {\n transitionProperty: transition.transitionProperty,\n ...shared,\n ...transition.common,\n ...transition[transitionStatuses[state]],\n };\n}\n","import { useEffect, useRef, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport { useDidUpdate, useReducedMotion } from '@mantine/hooks';\nimport { useMantineTheme } from '../../core';\n\nexport type TransitionStatus =\n | 'entered'\n | 'exited'\n | 'entering'\n | 'exiting'\n | 'pre-exiting'\n | 'pre-entering';\n\ninterface UseTransition {\n duration: number;\n exitDuration: number;\n timingFunction: string;\n mounted: boolean;\n onEnter?: () => void;\n onExit?: () => void;\n onEntered?: () => void;\n onExited?: () => void;\n enterDelay?: number;\n exitDelay?: number;\n}\n\nexport function useTransition({\n duration,\n exitDuration,\n timingFunction,\n mounted,\n onEnter,\n onExit,\n onEntered,\n onExited,\n enterDelay,\n exitDelay,\n}: UseTransition) {\n const theme = useMantineTheme();\n const shouldReduceMotion = useReducedMotion();\n const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false;\n const [transitionDuration, setTransitionDuration] = useState(reduceMotion ? 0 : duration);\n const [transitionStatus, setStatus] = useState(mounted ? 'entered' : 'exited');\n const transitionTimeoutRef = useRef(-1);\n const delayTimeoutRef = useRef(-1);\n const rafRef = useRef(-1);\n\n const handleStateChange = (shouldMount: boolean) => {\n const preHandler = shouldMount ? onEnter : onExit;\n const handler = shouldMount ? onEntered : onExited;\n\n window.clearTimeout(transitionTimeoutRef.current);\n\n const newTransitionDuration = reduceMotion ? 0 : shouldMount ? duration : exitDuration;\n setTransitionDuration(newTransitionDuration);\n\n if (newTransitionDuration === 0) {\n typeof preHandler === 'function' && preHandler();\n typeof handler === 'function' && handler();\n setStatus(shouldMount ? 'entered' : 'exited');\n } else {\n // Make sure new status won't be set within the same frame as this would disrupt animation #3126\n rafRef.current = requestAnimationFrame(() => {\n ReactDOM.flushSync(() => {\n setStatus(shouldMount ? 'pre-entering' : 'pre-exiting');\n });\n\n rafRef.current = requestAnimationFrame(() => {\n typeof preHandler === 'function' && preHandler();\n setStatus(shouldMount ? 'entering' : 'exiting');\n\n transitionTimeoutRef.current = window.setTimeout(() => {\n typeof handler === 'function' && handler();\n setStatus(shouldMount ? 'entered' : 'exited');\n }, newTransitionDuration);\n });\n });\n }\n };\n\n const handleTransitionWithDelay = (shouldMount: boolean) => {\n window.clearTimeout(delayTimeoutRef.current);\n const delay = shouldMount ? enterDelay : exitDelay;\n\n if (typeof delay !== 'number') {\n handleStateChange(shouldMount);\n return;\n }\n\n delayTimeoutRef.current = window.setTimeout(\n () => {\n handleStateChange(shouldMount);\n },\n shouldMount ? enterDelay : exitDelay\n );\n };\n\n useDidUpdate(() => {\n handleTransitionWithDelay(mounted);\n }, [mounted]);\n\n useEffect(\n () => () => {\n window.clearTimeout(transitionTimeoutRef.current);\n cancelAnimationFrame(rafRef.current);\n },\n []\n );\n\n return {\n transitionDuration,\n transitionStatus,\n transitionTimingFunction: timingFunction || 'ease',\n };\n}\n","import { getTransitionStyles } from './get-transition-styles/get-transition-styles';\nimport { MantineTransition } from './transitions';\nimport { useTransition } from './use-transition';\n\nexport interface TransitionProps {\n /** If set element will not be unmounted from the DOM when it is hidden, `display: none` styles will be applied instead */\n keepMounted?: boolean;\n\n /** Transition name or object */\n transition?: MantineTransition;\n\n /** Transition duration in ms, `250` by default */\n duration?: number;\n\n /** Exit transition duration in ms, `250` by default */\n exitDuration?: number;\n\n /** Transition timing function, `theme.transitionTimingFunction` by default */\n timingFunction?: string;\n\n /** Determines whether component should be mounted to the DOM */\n mounted: boolean;\n\n /** Render function with transition styles argument */\n children: (styles: React.CSSProperties) => JSX.Element;\n\n /** Called when exit transition ends */\n onExited?: () => void;\n\n /** Called when exit transition starts */\n onExit?: () => void;\n\n /** Called when enter transition starts */\n onEnter?: () => void;\n\n /** Called when enter transition ends */\n onEntered?: () => void;\n\n /** Delay in ms before enter transition starts */\n enterDelay?: number;\n\n /** Delay in ms before exit transition starts */\n exitDelay?: number;\n}\n\nexport type TransitionOverride = Partial>;\n\nexport function Transition({\n keepMounted,\n transition = 'fade',\n duration = 250,\n exitDuration = duration,\n mounted,\n children,\n timingFunction = 'ease',\n onExit,\n onEntered,\n onEnter,\n onExited,\n enterDelay,\n exitDelay,\n}: TransitionProps) {\n const { transitionDuration, transitionStatus, transitionTimingFunction } = useTransition({\n mounted,\n exitDuration,\n duration,\n timingFunction,\n onExit,\n onEntered,\n onEnter,\n onExited,\n enterDelay,\n exitDelay,\n });\n\n if (transitionDuration === 0) {\n return mounted ? <>{children({})} : keepMounted ? children({ display: 'none' }) : null;\n }\n\n return transitionStatus === 'exited' ? (\n keepMounted ? (\n children({ display: 'none' })\n ) : null\n ) : (\n <>\n {children(\n getTransitionStyles({\n transition,\n duration: transitionDuration,\n state: transitionStatus,\n timingFunction: transitionTimingFunction,\n })\n )}\n \n );\n}\n\nTransition.displayName = '@mantine/core/Transition';\n","import {\n Box,\n BoxComponentProps,\n polymorphicFactory,\n PolymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './UnstyledButton.module.css';\n\nexport type UnstyledButtonStylesNames = 'root';\n\nexport interface UnstyledButtonProps\n extends Omit,\n StylesApiProps {\n __staticSelector?: string;\n}\n\nconst defaultProps: Partial = {\n __staticSelector: 'UnstyledButton',\n};\n\nexport type UnstyledButtonFactory = PolymorphicFactory<{\n props: UnstyledButtonProps;\n stylesNames: UnstyledButtonStylesNames;\n defaultComponent: 'button';\n defaultRef: HTMLButtonElement;\n}>;\n\nexport const UnstyledButton = polymorphicFactory(\n (_props: UnstyledButtonProps & { component?: any }, ref) => {\n const props = useProps('UnstyledButton', defaultProps, _props);\n const {\n className,\n component = 'button',\n __staticSelector,\n unstyled,\n classNames,\n styles,\n style,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: __staticSelector!,\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n return (\n \n );\n }\n);\n\nUnstyledButton.classes = classes;\nUnstyledButton.displayName = '@mantine/core/UnstyledButton';\n","import { camelToKebabCase, keys } from '../../utils';\n\nexport function cssObjectToString(css: React.CSSProperties) {\n return keys(css)\n .reduce(\n (acc, rule) =>\n css[rule] !== undefined ? `${acc}${camelToKebabCase(rule)}:${css[rule]};` : acc,\n ''\n )\n .trim();\n}\n","export function camelToKebabCase(value: string) {\n return value.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n}\n","import { cssObjectToString } from '../css-object-to-string/css-object-to-string';\n\nexport interface InlineStylesMediaQuery {\n query: string;\n styles: React.CSSProperties;\n}\n\nexport interface InlineStylesInput {\n selector: string;\n styles?: React.CSSProperties;\n media?: InlineStylesMediaQuery[];\n container?: InlineStylesMediaQuery[];\n}\n\nexport function stylesToString({ selector, styles, media, container }: InlineStylesInput) {\n const baseStyles = styles ? cssObjectToString(styles) : '';\n const mediaQueryStyles = !Array.isArray(media)\n ? []\n : media.map((item) => `@media${item.query}{${selector}{${cssObjectToString(item.styles)}}}`);\n\n const containerStyles = !Array.isArray(container)\n ? []\n : container.map(\n (item) => `@container ${item.query}{${selector}{${cssObjectToString(item.styles)}}}`\n );\n\n return `${baseStyles ? `${selector}{${baseStyles}}` : ''}${mediaQueryStyles.join('')}${containerStyles.join('')}`.trim();\n}\n","import { useMantineStyleNonce } from '../MantineProvider';\nimport { InlineStylesInput, stylesToString } from './styles-to-string/styles-to-string';\n\nexport interface InlineStylesProps\n extends InlineStylesInput,\n Omit, keyof InlineStylesInput> {}\n\nexport function InlineStyles(props: InlineStylesInput) {\n const nonce = useMantineStyleNonce();\n return (\n \n );\n}\n","function transformModKey(key: string) {\n return key.startsWith('data-') ? key : `data-${key}`;\n}\n\nexport function getMod(props: Record) {\n return Object.keys(props).reduce>((acc, key) => {\n const value = props[key];\n\n if (value === undefined || value === '' || value === false || value === null) {\n return acc;\n }\n\n acc[transformModKey(key)] = props[key];\n return acc;\n }, {});\n}\n\nexport function getBoxMod(mod?: any): Record | null {\n if (!mod) {\n return null;\n }\n\n if (typeof mod === 'string') {\n return { [transformModKey(mod)]: true };\n }\n\n if (Array.isArray(mod)) {\n return [...mod].reduce>(\n (acc, value) => ({ ...acc, ...getBoxMod(value) }),\n {}\n );\n }\n\n return getMod(mod);\n}\n","import type { MantineTheme } from '../../MantineProvider';\nimport type { CssVarsProp, MantineStyleProp } from '../Box.types';\n\ninterface GetBoxStyleOptions {\n theme: MantineTheme;\n styleProps: React.CSSProperties;\n style?: MantineStyleProp;\n vars?: CssVarsProp;\n}\n\nfunction mergeStyles(\n styles: MantineStyleProp | CssVarsProp | undefined,\n theme: MantineTheme\n): React.CSSProperties {\n if (Array.isArray(styles)) {\n return [...styles].reduce>(\n (acc, item) => ({ ...acc, ...mergeStyles(item, theme) }),\n {}\n );\n }\n\n if (typeof styles === 'function') {\n return styles(theme);\n }\n\n if (styles == null) {\n return {};\n }\n\n return styles;\n}\n\nexport function getBoxStyle({\n theme,\n style,\n vars,\n styleProps,\n}: GetBoxStyleOptions): React.CSSProperties {\n const _style = mergeStyles(style, theme);\n const _vars = mergeStyles(vars, theme);\n return { ..._style, ..._vars, ...styleProps };\n}\n","import type { StylePropType } from './resolvers';\nimport type { MantineStyleProps } from './style-props.types';\n\nexport interface SystemPropData {\n type: StylePropType;\n property: string | string[];\n}\n\nexport const STYlE_PROPS_DATA: Record = {\n m: { type: 'spacing', property: 'margin' },\n mt: { type: 'spacing', property: 'marginTop' },\n mb: { type: 'spacing', property: 'marginBottom' },\n ml: { type: 'spacing', property: 'marginLeft' },\n mr: { type: 'spacing', property: 'marginRight' },\n ms: { type: 'spacing', property: 'marginInlineStart' },\n me: { type: 'spacing', property: 'marginInlineEnd' },\n mx: { type: 'spacing', property: 'marginInline' },\n my: { type: 'spacing', property: 'marginBlock' },\n\n p: { type: 'spacing', property: 'padding' },\n pt: { type: 'spacing', property: 'paddingTop' },\n pb: { type: 'spacing', property: 'paddingBottom' },\n pl: { type: 'spacing', property: 'paddingLeft' },\n pr: { type: 'spacing', property: 'paddingRight' },\n ps: { type: 'spacing', property: 'paddingInlineStart' },\n pe: { type: 'spacing', property: 'paddingInlineEnd' },\n px: { type: 'spacing', property: 'paddingInline' },\n py: { type: 'spacing', property: 'paddingBlock' },\n\n bd: { type: 'border', property: 'border' },\n bg: { type: 'color', property: 'background' },\n c: { type: 'textColor', property: 'color' },\n opacity: { type: 'identity', property: 'opacity' },\n\n ff: { type: 'fontFamily', property: 'fontFamily' },\n fz: { type: 'fontSize', property: 'fontSize' },\n fw: { type: 'identity', property: 'fontWeight' },\n lts: { type: 'size', property: 'letterSpacing' },\n ta: { type: 'identity', property: 'textAlign' },\n lh: { type: 'lineHeight', property: 'lineHeight' },\n fs: { type: 'identity', property: 'fontStyle' },\n tt: { type: 'identity', property: 'textTransform' },\n td: { type: 'identity', property: 'textDecoration' },\n\n w: { type: 'spacing', property: 'width' },\n miw: { type: 'spacing', property: 'minWidth' },\n maw: { type: 'spacing', property: 'maxWidth' },\n h: { type: 'spacing', property: 'height' },\n mih: { type: 'spacing', property: 'minHeight' },\n mah: { type: 'spacing', property: 'maxHeight' },\n\n bgsz: { type: 'size', property: 'backgroundSize' },\n bgp: { type: 'identity', property: 'backgroundPosition' },\n bgr: { type: 'identity', property: 'backgroundRepeat' },\n bga: { type: 'identity', property: 'backgroundAttachment' },\n\n pos: { type: 'identity', property: 'position' },\n top: { type: 'identity', property: 'top' },\n left: { type: 'size', property: 'left' },\n bottom: { type: 'size', property: 'bottom' },\n right: { type: 'size', property: 'right' },\n inset: { type: 'size', property: 'inset' },\n\n display: { type: 'identity', property: 'display' },\n flex: { type: 'identity', property: 'flex' },\n};\n","import { MantineTheme, parseThemeColor } from '../../../../MantineProvider';\n\nexport function colorResolver(color: unknown, theme: MantineTheme) {\n const parsedColor = parseThemeColor({ color, theme });\n\n if (parsedColor.color === 'dimmed') {\n return 'var(--mantine-color-dimmed)';\n }\n\n if (parsedColor.color === 'bright') {\n return 'var(--mantine-color-bright)';\n }\n return parsedColor.variable ? `var(${parsedColor.variable})` : parsedColor.color;\n}\n\nexport function textColorResolver(color: unknown, theme: MantineTheme) {\n const parsedColor = parseThemeColor({ color, theme });\n\n if (parsedColor.isThemeColor && parsedColor.shade === undefined) {\n return `var(--mantine-color-${parsedColor.color}-text)`;\n }\n\n return colorResolver(color, theme);\n}\n","const values = {\n text: 'var(--mantine-font-family)',\n mono: 'var(--mantine-font-family-monospace)',\n monospace: 'var(--mantine-font-family-monospace)',\n heading: 'var(--mantine-font-family-headings)',\n headings: 'var(--mantine-font-family-headings)',\n};\n\nexport function fontFamilyResolver(fontFamily: unknown) {\n if (typeof fontFamily === 'string' && fontFamily in values) {\n return values[fontFamily as keyof typeof values];\n }\n\n return fontFamily;\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\n\nconst headings = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\nexport function fontSizeResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'string' && value in theme.fontSizes) {\n return `var(--mantine-font-size-${value})`;\n }\n\n if (typeof value === 'string' && headings.includes(value)) {\n return `var(--mantine-${value}-font-size)`;\n }\n\n if (typeof value === 'number') {\n return rem(value);\n }\n\n if (typeof value === 'string') {\n return rem(value);\n }\n\n return value;\n}\n","import { MantineTheme } from '../../../../MantineProvider';\n\nconst headings = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\nexport function lineHeightResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'string' && value in theme.lineHeights) {\n return `var(--mantine-line-height-${value})`;\n }\n\n if (typeof value === 'string' && headings.includes(value)) {\n return `var(--mantine-${value}-line-height)`;\n }\n\n return value;\n}\n","import { borderResolver } from './border-resolver/border-resolver';\nimport { colorResolver, textColorResolver } from './color-resolver/color-resolver';\nimport { fontFamilyResolver } from './font-family-resolver/font-family-resolver';\nimport { fontSizeResolver } from './font-size-resolver/font-size-resolver';\nimport { identityResolver } from './identity-resolver/identity-resolver';\nimport { lineHeightResolver } from './line-height-resolver/line-height-resolver';\nimport { sizeResolver } from './size-resolver/size-resolver';\nimport { spacingResolver } from './spacing-resolver/spacing-resolver';\n\nexport const resolvers = {\n color: colorResolver,\n textColor: textColorResolver,\n fontSize: fontSizeResolver,\n spacing: spacingResolver,\n identity: identityResolver,\n size: sizeResolver,\n lineHeight: lineHeightResolver,\n fontFamily: fontFamilyResolver,\n border: borderResolver,\n};\n\nexport type StylePropType = keyof typeof resolvers;\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\n\nexport function spacingResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'number') {\n return rem(value);\n }\n\n if (typeof value === 'string') {\n const mod = value.replace('-', '');\n\n if (!(mod in theme.spacing)) {\n return rem(value);\n }\n\n const variable = `--mantine-spacing-${mod}`;\n return value.startsWith('-') ? `calc(var(${variable}) * -1)` : `var(${variable})`;\n }\n\n return value;\n}\n","export function identityResolver(value: unknown) {\n return value;\n}\n","import { rem } from '../../../../utils';\n\nexport function sizeResolver(value: unknown) {\n if (typeof value === 'number') {\n return rem(value);\n }\n\n return value;\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\nimport { colorResolver } from '../color-resolver/color-resolver';\n\nexport function borderResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'number') {\n return rem(value);\n }\n\n if (typeof value === 'string') {\n const [size, style, ...colorTuple] = value.split(' ').filter((val) => val.trim() !== '');\n let result = `${rem(size)}`;\n style && (result += ` ${style}`);\n colorTuple.length > 0 && (result += ` ${colorResolver(colorTuple.join(' '), theme)}`);\n return result.trim();\n }\n\n return value;\n}\n","import type { InlineStylesMediaQuery } from '../../../InlineStyles';\nimport type { ParseStylePropsResult } from './parse-style-props';\n\nexport interface SortMediaQueriesResult extends Omit {\n media: InlineStylesMediaQuery[];\n}\n\nfunction replaceMediaQuery(query: string) {\n return query.replace('(min-width: ', '').replace('em)', '');\n}\n\nexport function sortMediaQueries({\n media,\n ...props\n}: ParseStylePropsResult): SortMediaQueriesResult {\n const breakpoints = Object.keys(media);\n const sortedMedia = breakpoints\n .sort((a, b) => Number(replaceMediaQuery(a)) - Number(replaceMediaQuery(b)))\n .map((query) => ({ query, styles: media[query] }));\n\n return { ...props, media: sortedMedia };\n}\n","import { MantineTheme } from '../../../MantineProvider';\nimport { keys } from '../../../utils';\nimport { resolvers } from '../resolvers';\nimport type { SystemPropData } from '../style-props-data';\nimport type { StyleProp } from '../style-props.types';\nimport type { SortMediaQueriesResult } from './sort-media-queries';\nimport { sortMediaQueries } from './sort-media-queries';\n\nfunction hasResponsiveStyles(styleProp: StyleProp) {\n if (typeof styleProp !== 'object' || styleProp === null) {\n return false;\n }\n\n const breakpoints = Object.keys(styleProp);\n\n if (breakpoints.length === 1 && breakpoints[0] === 'base') {\n return false;\n }\n\n return true;\n}\n\nfunction getBaseValue(value: StyleProp) {\n if (typeof value === 'object' && value !== null) {\n if ('base' in value) {\n return value.base;\n }\n\n return undefined;\n }\n\n return value;\n}\n\nfunction getBreakpointKeys(value: StyleProp) {\n if (typeof value === 'object' && value !== null) {\n return keys(value).filter((key) => key !== 'base');\n }\n\n return [];\n}\n\nfunction getBreakpointValue(value: StyleProp, breakpoint: string) {\n if (typeof value === 'object' && value !== null && breakpoint in value) {\n return value[breakpoint as keyof typeof value];\n }\n\n return value;\n}\n\ninterface ParseStylePropsOptions {\n styleProps: Record>;\n theme: MantineTheme;\n data: Record;\n}\n\nexport interface ParseStylePropsResult {\n hasResponsiveStyles: boolean;\n inlineStyles: React.CSSProperties;\n styles: React.CSSProperties;\n media: Record;\n}\n\nexport function parseStyleProps({\n styleProps,\n data,\n theme,\n}: ParseStylePropsOptions): SortMediaQueriesResult {\n return sortMediaQueries(\n keys(styleProps).reduce<{\n hasResponsiveStyles: boolean;\n inlineStyles: Record;\n styles: Record;\n media: Record>;\n }>(\n (acc, styleProp) => {\n if (\n (styleProp as string) === 'hiddenFrom' ||\n (styleProp as string) === 'visibleFrom' ||\n (styleProp as string) === 'sx'\n ) {\n return acc;\n }\n\n const propertyData = data[styleProp];\n const properties = Array.isArray(propertyData.property)\n ? propertyData.property\n : [propertyData.property];\n const baseValue = getBaseValue(styleProps[styleProp]);\n\n if (!hasResponsiveStyles(styleProps[styleProp])) {\n properties.forEach((property) => {\n acc.inlineStyles[property] = resolvers[propertyData.type](baseValue, theme);\n });\n\n return acc;\n }\n\n acc.hasResponsiveStyles = true;\n\n const breakpoints = getBreakpointKeys(styleProps[styleProp]);\n\n properties.forEach((property) => {\n if (baseValue) {\n acc.styles[property] = resolvers[propertyData.type](baseValue, theme);\n }\n\n breakpoints.forEach((breakpoint) => {\n const bp = `(min-width: ${theme.breakpoints[breakpoint]})`;\n acc.media[bp] = {\n ...acc.media[bp],\n [property]: resolvers[propertyData.type](\n getBreakpointValue(styleProps[styleProp], breakpoint),\n theme\n ),\n };\n });\n });\n\n return acc;\n },\n {\n hasResponsiveStyles: false,\n styles: {},\n inlineStyles: {},\n media: {},\n }\n )\n );\n}\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { createPolymorphicComponent } from '../factory';\nimport { InlineStyles } from '../InlineStyles';\nimport { MantineBreakpoint, useMantineSxTransform, useMantineTheme } from '../MantineProvider';\nimport { isNumberLike } from '../utils';\nimport type { CssVarsProp, MantineStyleProp } from './Box.types';\nimport { getBoxMod } from './get-box-mod/get-box-mod';\nimport { getBoxStyle } from './get-box-style/get-box-style';\nimport {\n extractStyleProps,\n MantineStyleProps,\n parseStyleProps,\n STYlE_PROPS_DATA,\n} from './style-props';\nimport { useRandomClassName } from './use-random-classname/use-random-classname';\n\nexport type Mod = Record | string;\nexport type BoxMod = Mod | Mod[] | BoxMod[];\n\nexport interface BoxProps extends MantineStyleProps {\n /** Class added to the root element, if applicable */\n className?: string;\n\n /** Inline style added to root component element, can subscribe to theme defined on MantineProvider */\n style?: MantineStyleProp;\n\n /** CSS variables defined on root component element */\n __vars?: CssVarsProp;\n\n /** `size` property passed down the HTML element */\n __size?: string;\n\n /** Breakpoint above which the component is hidden with `display: none` */\n hiddenFrom?: MantineBreakpoint;\n\n /** Breakpoint below which the component is hidden with `display: none` */\n visibleFrom?: MantineBreakpoint;\n\n /** Determines whether component should be hidden in light color scheme with `display: none` */\n lightHidden?: boolean;\n\n /** Determines whether component should be hidden in dark color scheme with `display: none` */\n darkHidden?: boolean;\n\n /** Element modifiers transformed into `data-` attributes, for example, `{ 'data-size': 'xl' }`, falsy values are removed */\n mod?: BoxMod;\n}\n\nexport type ElementProps<\n ElementType extends React.ElementType,\n PropsToOmit extends string = never,\n> = Omit, 'style' | PropsToOmit>;\n\nexport interface BoxComponentProps extends BoxProps {\n /** Variant passed from parent component, sets `data-variant` */\n variant?: string;\n\n /** Size passed from parent component, sets `data-size` if value is not number like */\n size?: string | number;\n}\n\nconst _Box = forwardRef<\n HTMLDivElement,\n BoxComponentProps & { component: any; className: string; renderRoot: any }\n>(\n (\n {\n component,\n style,\n __vars,\n className,\n variant,\n mod,\n size,\n hiddenFrom,\n visibleFrom,\n lightHidden,\n darkHidden,\n renderRoot,\n __size,\n ...others\n },\n ref\n ) => {\n const theme = useMantineTheme();\n const Element = component || 'div';\n const { styleProps, rest } = extractStyleProps(others);\n const useSxTransform = useMantineSxTransform();\n const transformedSx = useSxTransform?.()?.(styleProps.sx);\n const responsiveClassName = useRandomClassName();\n const parsedStyleProps = parseStyleProps({\n styleProps,\n theme,\n data: STYlE_PROPS_DATA,\n });\n\n const props = {\n ref,\n style: getBoxStyle({\n theme,\n style,\n vars: __vars,\n styleProps: parsedStyleProps.inlineStyles,\n }),\n className: cx(className, transformedSx, {\n [responsiveClassName]: parsedStyleProps.hasResponsiveStyles,\n 'mantine-light-hidden': lightHidden,\n 'mantine-dark-hidden': darkHidden,\n [`mantine-hidden-from-${hiddenFrom}`]: hiddenFrom,\n [`mantine-visible-from-${visibleFrom}`]: visibleFrom,\n }),\n 'data-variant': variant,\n 'data-size': isNumberLike(size) ? undefined : size || undefined,\n size: __size,\n ...getBoxMod(mod),\n ...rest,\n };\n\n return (\n <>\n {parsedStyleProps.hasResponsiveStyles && (\n \n )}\n\n {typeof renderRoot === 'function' ? renderRoot(props) : }\n \n );\n }\n);\n\n_Box.displayName = '@mantine/core/Box';\n\nexport const Box = createPolymorphicComponent<'div', BoxComponentProps>(_Box);\n","import { useId } from 'react';\n\nexport function useRandomClassName() {\n const id = useId().replace(/:/g, '');\n return `__m__-${id}`;\n}\n","import { filterProps } from '../../../utils';\nimport type { MantineStyleProps } from '../style-props.types';\n\nexport function extractStyleProps>(\n others: MantineStyleProps & T\n): { styleProps: MantineStyleProps & { sx?: any }; rest: T } {\n const {\n m,\n mx,\n my,\n mt,\n mb,\n ml,\n mr,\n me,\n ms,\n p,\n px,\n py,\n pt,\n pb,\n pl,\n pr,\n pe,\n ps,\n bd,\n bg,\n c,\n opacity,\n ff,\n fz,\n fw,\n lts,\n ta,\n lh,\n fs,\n tt,\n td,\n w,\n miw,\n maw,\n h,\n mih,\n mah,\n bgsz,\n bgp,\n bgr,\n bga,\n pos,\n top,\n left,\n bottom,\n right,\n inset,\n display,\n flex,\n hiddenFrom,\n visibleFrom,\n lightHidden,\n darkHidden,\n sx,\n ...rest\n } = others;\n\n const styleProps = filterProps({\n m,\n mx,\n my,\n mt,\n mb,\n ml,\n mr,\n me,\n ms,\n p,\n px,\n py,\n pt,\n pb,\n pl,\n pr,\n pe,\n ps,\n bd,\n bg,\n c,\n opacity,\n ff,\n fz,\n fw,\n lts,\n ta,\n lh,\n fs,\n tt,\n td,\n w,\n miw,\n maw,\n h,\n mih,\n mah,\n bgsz,\n bgp,\n bgr,\n bga,\n pos,\n top,\n left,\n bottom,\n right,\n inset,\n display,\n flex,\n hiddenFrom,\n visibleFrom,\n lightHidden,\n darkHidden,\n sx,\n });\n\n return { styleProps, rest: rest as unknown as T };\n}\n","import { filterProps } from '../../utils';\nimport { useMantineTheme } from '../MantineThemeProvider';\n\nexport function useProps, U extends Partial = {}>(\n component: string,\n defaultProps: U,\n props: T\n): T & {\n [Key in Extract]-?: U[Key] | NonNullable;\n} {\n const theme = useMantineTheme();\n const contextPropsPayload = theme.components[component]?.defaultProps;\n const contextProps =\n typeof contextPropsPayload === 'function' ? contextPropsPayload(theme) : contextPropsPayload;\n\n return { ...defaultProps, ...contextProps, ...filterProps(props) };\n}\n","import { forwardRef } from 'react';\nimport type { MantineThemeComponent } from '../MantineProvider';\nimport type { ClassNames, PartialVarsResolver, Styles } from '../styles-api';\n\nexport type DataAttributes = Record<`data-${string}`, any>;\n\nexport interface FactoryPayload {\n props: Record;\n ctx?: any;\n ref?: any;\n stylesNames?: string;\n vars?: any;\n variant?: string;\n staticComponents?: Record;\n // Compound components cannot have classNames, styles and vars on MantineProvider\n compound?: boolean;\n}\n\nexport interface ExtendCompoundComponent {\n defaultProps?: Partial & DataAttributes;\n}\n\nexport interface ExtendsRootComponent {\n defaultProps?: Partial & DataAttributes;\n classNames?: ClassNames;\n styles?: Styles;\n vars?: PartialVarsResolver;\n}\n\nexport type ExtendComponent = Payload['compound'] extends true\n ? ExtendCompoundComponent\n : ExtendsRootComponent;\n\nexport type StaticComponents =\n Input extends Record ? Input : Record;\n\nexport interface ThemeExtend {\n extend: (input: ExtendComponent) => MantineThemeComponent;\n}\n\nexport type ComponentClasses = {\n classes: Payload['stylesNames'] extends string ? Record : never;\n};\n\nexport type MantineComponentStaticProperties =\n ThemeExtend &\n ComponentClasses &\n StaticComponents &\n FactoryComponentWithProps;\n\nexport type FactoryComponentWithProps = {\n withProps: (props: Payload['props']) => React.ForwardRefExoticComponent<\n Payload['props'] &\n React.RefAttributes & {\n component?: any;\n renderRoot?: (props: Record) => React.ReactNode;\n }\n >;\n};\n\nexport type MantineComponent = React.ForwardRefExoticComponent<\n Payload['props'] &\n React.RefAttributes & {\n component?: any;\n renderRoot?: (props: Record) => React.ReactNode;\n }\n> &\n MantineComponentStaticProperties;\n\nexport function identity(value: T): T {\n return value;\n}\n\nexport function getWithProps(Component: T): (props: Partial) => T {\n const _Component = Component as any;\n return (fixedProps: any) => {\n const Extended = forwardRef((props, ref) => (\n <_Component {...fixedProps} {...props} ref={ref as any} />\n )) as any;\n Extended.extend = _Component.extend;\n Extended.displayName = `WithProps(${_Component.displayName})`;\n return Extended;\n };\n}\n\nexport function factory(\n ui: React.ForwardRefRenderFunction\n) {\n const Component = forwardRef(ui) as any;\n\n Component.extend = identity as any;\n Component.withProps = (fixedProps: any) => {\n const Extended = forwardRef((props, ref) => (\n \n )) as any;\n Extended.extend = Component.extend;\n Extended.displayName = `WithProps(${Component.displayName})`;\n return Extended;\n };\n\n return Component as MantineComponent;\n}\n","import { forwardRef } from 'react';\nimport { PolymorphicComponentProps } from './create-polymorphic-component';\nimport {\n ComponentClasses,\n FactoryPayload,\n identity,\n StaticComponents,\n ThemeExtend,\n} from './factory';\n\nexport interface PolymorphicFactoryPayload extends FactoryPayload {\n defaultComponent: any;\n defaultRef: any;\n}\n\nexport type PolymorphicComponentWithProps = {\n withProps: (\n fixedProps: PolymorphicComponentProps\n ) => (props: PolymorphicComponentProps) => React.ReactElement;\n};\n\nexport function polymorphicFactory(\n ui: React.ForwardRefRenderFunction\n) {\n type ComponentProps = PolymorphicComponentProps;\n\n type _PolymorphicComponent = (\n props: ComponentProps\n ) => React.ReactElement;\n\n type ComponentProperties = Omit>, never>;\n\n type PolymorphicComponent = _PolymorphicComponent &\n ComponentProperties &\n ThemeExtend &\n ComponentClasses &\n PolymorphicComponentWithProps &\n StaticComponents;\n\n const Component = forwardRef(ui) as unknown as PolymorphicComponent;\n Component.withProps = (fixedProps: any) => {\n const Extended = forwardRef((props, ref) => (\n \n )) as any;\n Extended.extend = Component.extend;\n Extended.displayName = `WithProps(${Component.displayName})`;\n return Extended;\n };\n\n Component.extend = identity as any;\n\n return Component as PolymorphicComponent;\n}\n","import { CssVariable } from '../../Box';\nimport { FactoryPayload } from '../../factory';\nimport { MantineTheme } from '../../MantineProvider';\n\nexport type TransformVars = {\n [Key in keyof V]: V[Key] extends CssVariable ? Record : never;\n};\n\nexport type PartialTransformVars = {\n [Key in keyof V]: V[Key] extends CssVariable\n ? Partial>\n : never;\n};\n\nexport type VarsResolver = (\n theme: MantineTheme,\n props: Payload['props'],\n ctx: Payload['ctx']\n) => TransformVars;\n\nexport type PartialVarsResolver = (\n theme: MantineTheme,\n props: Payload['props'],\n ctx: Payload['ctx']\n) => PartialTransformVars;\n\nexport function createVarsResolver(\n resolver: VarsResolver\n) {\n return resolver;\n}\n","import cx from 'clsx';\nimport { MantineTheme } from '../../../../MantineProvider';\nimport type { _ClassNames } from '../get-class-name';\n\nexport interface ResolveClassNamesInput {\n theme: MantineTheme;\n classNames: _ClassNames;\n props: Record;\n stylesCtx: Record | undefined;\n}\n\nconst EMPTY_CLASS_NAMES: Partial> = {};\n\nfunction mergeClassNames(objects: Partial>[]) {\n const merged: Partial> = {};\n\n objects.forEach((obj) => {\n Object.entries(obj).forEach(([key, value]) => {\n if (merged[key]) {\n merged[key] = cx(merged[key], value);\n } else {\n merged[key] = value;\n }\n });\n });\n\n return merged;\n}\n\nexport function resolveClassNames({ theme, classNames, props, stylesCtx }: ResolveClassNamesInput) {\n const arrayClassNames = Array.isArray(classNames) ? classNames : [classNames];\n const resolvedClassNames = arrayClassNames.map((item) =>\n typeof item === 'function' ? item(theme, props, stylesCtx) : item || EMPTY_CLASS_NAMES\n );\n\n return mergeClassNames(resolvedClassNames);\n}\n","import type { MantineTheme } from '../../../../MantineProvider';\nimport type { _Styles } from '../get-style';\n\nexport interface ResolveStylesInput {\n theme: MantineTheme;\n styles: _Styles | _Styles[];\n props: Record;\n stylesCtx: Record | undefined;\n}\n\nexport function resolveStyles({ theme, styles, props, stylesCtx }: ResolveStylesInput) {\n const arrayStyles = Array.isArray(styles) ? styles : [styles];\n\n return arrayStyles.reduce>((acc, style) => {\n if (typeof style === 'function') {\n return { ...acc, ...style(theme, props, stylesCtx) };\n }\n\n return { ...acc, ...style };\n }, {});\n}\n","import cx from 'clsx';\nimport { MantineTheme } from '../../../../MantineProvider';\nimport { GetStylesApiOptions } from '../../../styles-api.types';\n\ninterface GetGlobalClassNamesOptions {\n theme: MantineTheme;\n unstyled: boolean | undefined;\n options: GetStylesApiOptions | undefined;\n}\n\nexport const FOCUS_CLASS_NAMES = {\n always: 'mantine-focus-always',\n auto: 'mantine-focus-auto',\n never: 'mantine-focus-never',\n} as const;\n\n/** Returns classes that are defined globally (focus and active styles) based on options */\nexport function getGlobalClassNames({ theme, options, unstyled }: GetGlobalClassNamesOptions) {\n return cx(\n options?.focusable && !unstyled && (theme.focusClassName || FOCUS_CLASS_NAMES[theme.focusRing]),\n options?.active && !unstyled && theme.activeClassName\n );\n}\n","import {\n resolveClassNames,\n ResolveClassNamesInput,\n} from '../resolve-class-names/resolve-class-names';\n\ninterface GetResolvedClassNamesOptions extends ResolveClassNamesInput {\n selector: string;\n}\n\nexport function getResolvedClassNames({\n selector,\n stylesCtx,\n theme,\n classNames,\n props,\n}: GetResolvedClassNamesOptions) {\n return resolveClassNames({ theme, classNames, props, stylesCtx })[selector];\n}\n","import cx from 'clsx';\nimport { MantineTheme } from '../../../MantineProvider';\nimport { GetStylesApiOptions } from '../../styles-api.types';\nimport { getGlobalClassNames } from './get-global-class-names/get-global-class-names';\nimport { getOptionsClassNames } from './get-options-class-names/get-options-class-names';\nimport { getResolvedClassNames } from './get-resolved-class-names/get-resolved-class-names';\nimport { getRootClassName } from './get-root-class-name/get-root-class-name';\nimport { getSelectorClassName } from './get-selector-class-name/get-selector-class-name';\nimport { getStaticClassNames } from './get-static-class-names/get-static-class-names';\nimport { getThemeClassNames } from './get-theme-class-names/get-theme-class-names';\nimport { getVariantClassName } from './get-variant-class-name/get-variant-class-name';\n\ntype __ClassNames =\n | undefined\n | Partial>\n | ((\n theme: MantineTheme,\n props: Record,\n ctx: Record | undefined\n ) => Partial>);\n\nexport type _ClassNames = __ClassNames | __ClassNames[];\n\nexport interface GetClassNameOptions {\n /** Theme object, resolved by hook */\n theme: MantineTheme;\n\n /** Options for specified selector, may include `classNames` or `className` */\n options: GetStylesApiOptions | undefined;\n\n /** Name of the component which is used to get `classNames` from `theme.components` */\n themeName: string[];\n\n /** Class part specified in `getStyles` */\n selector: string;\n\n /** Prefix for all class names, resolved by hook, `mantine` by default */\n classNamesPrefix: string;\n\n /** `classNames` specified in the hook, only resolved `classNames[selector]` is added to the list */\n classNames: _ClassNames;\n\n /** Classes object, usually imported from `*.module.css` */\n classes: Record;\n\n /** Determines whether classes from `classes` should be added to the list */\n unstyled: boolean | undefined;\n\n /** `className` specified in the hook, added to the list if `selector` is `rootSelector` */\n className: string | undefined;\n\n /** `rootSelector` specified in the hook, determines whether `className` should be added to the list */\n rootSelector: string;\n\n /** Component props, used as context for `classNames` and `options.classNames` */\n props: Record;\n\n /** Component styles context, used as context for `classNames` and `options.classNames` */\n stylesCtx?: Record | undefined;\n\n /** Determines whether static classes should be added */\n withStaticClasses?: boolean;\n\n /** If set, removes all Mantine classes */\n headless?: boolean;\n\n /** `styles` prop transformed into classes with CSS-in-JS library, for example, emotion */\n transformedStyles?: Record[];\n}\n\nexport function getClassName({\n theme,\n options,\n themeName,\n selector,\n classNamesPrefix,\n classNames,\n classes,\n unstyled,\n className,\n rootSelector,\n props,\n stylesCtx,\n withStaticClasses,\n headless,\n transformedStyles,\n}: GetClassNameOptions) {\n return cx(\n getGlobalClassNames({ theme, options, unstyled: unstyled || headless }),\n getThemeClassNames({ theme, themeName, selector, props, stylesCtx }),\n getVariantClassName({ options, classes, selector, unstyled }),\n getResolvedClassNames({ selector, stylesCtx, theme, classNames, props }),\n getResolvedClassNames({ selector, stylesCtx, theme, classNames: transformedStyles, props }),\n getOptionsClassNames({ selector, stylesCtx, options, props, theme }),\n getRootClassName({ rootSelector, selector, className }),\n getSelectorClassName({ selector, classes, unstyled: unstyled || headless }),\n withStaticClasses &&\n !headless &&\n getStaticClassNames({\n themeName,\n classNamesPrefix,\n selector,\n withStaticClass: options?.withStaticClass,\n }),\n options?.className\n );\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { resolveClassNames } from '../resolve-class-names/resolve-class-names';\n\ninterface GetThemeClassNamesOptions {\n theme: MantineTheme;\n themeName: string[];\n selector: string;\n props: Record;\n stylesCtx: Record | undefined;\n}\n\nexport function getThemeClassNames({\n themeName,\n theme,\n selector,\n props,\n stylesCtx,\n}: GetThemeClassNamesOptions) {\n return themeName.map(\n (n) =>\n resolveClassNames({\n theme,\n classNames: theme.components[n]?.classNames,\n props,\n stylesCtx,\n })?.[selector]\n );\n}\n","import { GetStylesApiOptions } from '../../../styles-api.types';\n\ninterface GetVariantClassNameInput {\n options: GetStylesApiOptions | undefined;\n classes: Record;\n selector: string;\n unstyled: boolean | undefined;\n}\n\n/** Returns variant className, variant is always separated from selector with `--`, for example, `tab--default` */\nexport function getVariantClassName({\n options,\n classes,\n selector,\n unstyled,\n}: GetVariantClassNameInput) {\n return options?.variant && !unstyled ? classes[`${selector}--${options.variant}`] : undefined;\n}\n","import { GetStylesApiOptions } from '../../../styles-api.types';\nimport {\n resolveClassNames,\n ResolveClassNamesInput,\n} from '../resolve-class-names/resolve-class-names';\n\ninterface GetOptionsClassNamesInput extends Omit {\n selector: string;\n options: GetStylesApiOptions | undefined;\n}\n\nexport function getOptionsClassNames({\n selector,\n stylesCtx,\n options,\n props,\n theme,\n}: GetOptionsClassNamesInput) {\n return resolveClassNames({\n theme,\n classNames: options?.classNames,\n props: options?.props || props,\n stylesCtx,\n })[selector];\n}\n","interface GetRootClassNameInput {\n rootSelector: string;\n selector: string;\n className: string | undefined;\n}\n\n/** Adds `className` to the list if given selector is root */\nexport function getRootClassName({ rootSelector, selector, className }: GetRootClassNameInput) {\n return rootSelector === selector ? className : undefined;\n}\n","interface GetSelectorClassNameInput {\n selector: string;\n classes: Record;\n unstyled: boolean | undefined;\n}\n\n/** Returns class for given selector from library styles (`*.module.css`) */\nexport function getSelectorClassName({ selector, classes, unstyled }: GetSelectorClassNameInput) {\n return unstyled ? undefined : classes[selector];\n}\n","interface GetStaticClassNamesInput {\n themeName: string[];\n selector: string;\n classNamesPrefix: string;\n withStaticClass?: boolean;\n}\n\n/** Returns static component classes, for example, `.mantine-Input-wrapper` */\nexport function getStaticClassNames({\n themeName,\n classNamesPrefix,\n selector,\n withStaticClass,\n}: GetStaticClassNamesInput) {\n if (withStaticClass === false) {\n return [];\n }\n\n return themeName.map((n) => `${classNamesPrefix}-${n}-${selector}`);\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { resolveStyles } from '../resolve-styles/resolve-styles';\n\ninterface GetThemeStylesOptions {\n theme: MantineTheme;\n themeName: string[];\n props: Record;\n stylesCtx: Record | undefined;\n selector: string;\n}\n\nexport function getThemeStyles({\n theme,\n themeName,\n props,\n stylesCtx,\n selector,\n}: GetThemeStylesOptions) {\n return themeName\n .map(\n (n) =>\n resolveStyles({\n theme,\n styles: theme.components[n]?.styles,\n props,\n stylesCtx,\n })[selector]\n )\n .reduce((acc, val) => ({ ...acc, ...val }), {});\n}\n","import { CSSProperties } from 'react';\nimport { MantineStyleProp } from '../../../../Box';\nimport { MantineTheme } from '../../../../MantineProvider';\n\ninterface ResolveStyleInput {\n style: MantineStyleProp | undefined;\n theme: MantineTheme;\n}\n\nexport function resolveStyle({ style, theme }: ResolveStyleInput): CSSProperties {\n if (Array.isArray(style)) {\n return [...style].reduce>(\n (acc, item) => ({ ...acc, ...resolveStyle({ style: item, theme }) }),\n {}\n );\n }\n\n if (typeof style === 'function') {\n return style(theme);\n }\n\n if (style == null) {\n return {};\n }\n\n return style;\n}\n","import { CSSProperties } from 'react';\nimport { CssVariable } from '../../../../Box';\nimport { MantineTheme } from '../../../../MantineProvider';\nimport { mergeVars } from './merge-vars';\n\ntype ResolvedVars = Partial>>;\n\nexport type VarsResolver = (\n theme: MantineTheme,\n props: Record,\n stylesCtx: Record | undefined\n) => ResolvedVars;\n\ninterface ResolveVarsInput {\n vars: VarsResolver | undefined;\n varsResolver: VarsResolver | undefined;\n theme: MantineTheme;\n props: Record;\n stylesCtx: Record | undefined;\n selector: string;\n themeName: string[];\n headless?: boolean;\n}\n\nexport function resolveVars({\n vars,\n varsResolver,\n theme,\n props,\n stylesCtx,\n selector,\n themeName,\n headless,\n}: ResolveVarsInput) {\n return mergeVars([\n headless ? {} : varsResolver?.(theme, props, stylesCtx),\n ...themeName.map((name) => theme.components?.[name]?.vars?.(theme, props, stylesCtx)),\n vars?.(theme, props, stylesCtx),\n ])?.[selector] as CSSProperties;\n}\n","import { CssVariable } from '../../../../Box';\nimport { filterProps } from '../../../../utils';\n\nexport type ResolvedVars = Partial>>;\n\nexport function mergeVars(vars: (ResolvedVars | undefined)[]) {\n return vars.reduce((acc, current) => {\n if (current) {\n Object.keys(current).forEach((key) => {\n acc[key] = { ...acc[key], ...filterProps(current[key]!) };\n });\n }\n\n return acc;\n }, {});\n}\n","import { CSSProperties } from 'react';\nimport { MantineStyleProp } from '../../../Box';\nimport { MantineTheme } from '../../../MantineProvider';\nimport { GetStylesApiOptions } from '../../styles-api.types';\nimport { getThemeStyles } from './get-theme-styles/get-theme-styles';\nimport { resolveStyle } from './resolve-style/resolve-style';\nimport { resolveStyles } from './resolve-styles/resolve-styles';\nimport { resolveVars, VarsResolver } from './resolve-vars/resolve-vars';\n\nexport type _Styles =\n | undefined\n | Partial>\n | ((\n theme: MantineTheme,\n props: Record,\n ctx: Record | undefined\n ) => Partial>);\n\nexport interface GetStyleInput {\n theme: MantineTheme;\n themeName: string[];\n selector: string;\n rootSelector: string;\n options: GetStylesApiOptions | undefined;\n props: Record;\n stylesCtx: Record | undefined;\n styles: _Styles;\n style: MantineStyleProp | undefined;\n vars: VarsResolver | undefined;\n varsResolver: VarsResolver | undefined;\n headless?: boolean;\n withStylesTransform?: boolean;\n}\n\nexport function getStyle({\n theme,\n themeName,\n selector,\n options,\n props,\n stylesCtx,\n rootSelector,\n styles,\n style,\n vars,\n varsResolver,\n headless,\n withStylesTransform,\n}: GetStyleInput): CSSProperties {\n return {\n ...(!withStylesTransform && getThemeStyles({ theme, themeName, props, stylesCtx, selector })),\n ...(!withStylesTransform && resolveStyles({ theme, styles, props, stylesCtx })[selector]),\n ...(!withStylesTransform &&\n resolveStyles({ theme, styles: options?.styles, props: options?.props || props, stylesCtx })[\n selector\n ]),\n ...resolveVars({ theme, props, stylesCtx, vars, varsResolver, selector, themeName, headless }),\n ...(rootSelector === selector ? resolveStyle({ style, theme }) : null),\n ...resolveStyle({ style: options?.style, theme }),\n };\n}\n","import { CSSProperties } from 'react';\nimport type { MantineStyleProp } from '../../Box';\nimport { FactoryPayload } from '../../factory';\nimport {\n useMantineClassNamesPrefix,\n useMantineIsHeadless,\n useMantineTheme,\n useMantineWithStaticClasses,\n} from '../../MantineProvider';\nimport { PartialVarsResolver, VarsResolver } from '../create-vars-resolver/create-vars-resolver';\nimport { ClassNames, ClassNamesArray, GetStylesApiOptions, Styles } from '../styles-api.types';\nimport { getClassName } from './get-class-name/get-class-name';\nimport { getStyle } from './get-style/get-style';\nimport { useStylesTransform } from './use-transformed-styles';\n\nexport interface UseStylesInput {\n name: string | (string | undefined)[];\n classes: Payload['stylesNames'] extends string ? Record : never;\n props: Payload['props'];\n stylesCtx?: Payload['ctx'];\n className?: string;\n style?: MantineStyleProp;\n rootSelector?: Payload['stylesNames'];\n unstyled?: boolean;\n classNames?: ClassNames | ClassNamesArray;\n styles?: Styles;\n vars?: PartialVarsResolver;\n varsResolver?: VarsResolver;\n}\n\nexport type GetStylesApi = (\n selector: NonNullable,\n options?: GetStylesApiOptions\n) => {\n className: string;\n style: CSSProperties;\n};\n\nexport function useStyles({\n name,\n classes,\n props,\n stylesCtx,\n className,\n style,\n rootSelector = 'root' as NonNullable,\n unstyled,\n classNames,\n styles,\n vars,\n varsResolver,\n}: UseStylesInput): GetStylesApi {\n const theme = useMantineTheme();\n const classNamesPrefix = useMantineClassNamesPrefix();\n const withStaticClasses = useMantineWithStaticClasses();\n const headless = useMantineIsHeadless();\n const themeName = (Array.isArray(name) ? name : [name]).filter((n) => n) as string[];\n const { withStylesTransform, getTransformedStyles } = useStylesTransform({\n props,\n stylesCtx,\n themeName,\n });\n\n return (selector, options) => ({\n className: getClassName({\n theme,\n options,\n themeName,\n selector,\n classNamesPrefix,\n classNames,\n classes,\n unstyled,\n className,\n rootSelector,\n props,\n stylesCtx,\n withStaticClasses,\n headless,\n transformedStyles: getTransformedStyles([options?.styles, styles]),\n }),\n\n style: getStyle({\n theme,\n themeName,\n selector,\n options,\n props,\n stylesCtx,\n rootSelector,\n styles,\n style,\n vars,\n varsResolver,\n headless,\n withStylesTransform,\n }),\n });\n}\n","import { useMantineStylesTransform, useMantineTheme } from '../../MantineProvider';\n\ninterface UseTransformedStylesInput {\n props: Record;\n stylesCtx: Record | undefined;\n themeName: string[];\n}\n\nexport function useStylesTransform({ props, stylesCtx, themeName }: UseTransformedStylesInput) {\n const theme = useMantineTheme();\n const stylesTransform = useMantineStylesTransform()?.();\n\n const getTransformedStyles = (styles: any[]) => {\n if (!stylesTransform) {\n return [];\n }\n\n const transformedStyles = styles.map((style) =>\n stylesTransform(style, { props, theme, ctx: stylesCtx })\n );\n\n return [\n ...transformedStyles,\n ...themeName.map((n) =>\n stylesTransform(theme.components[n]?.styles, { props, theme, ctx: stylesCtx })\n ),\n ].filter(Boolean) as Record[];\n };\n\n return {\n getTransformedStyles,\n withStylesTransform: !!stylesTransform,\n };\n}\n","import { createContext, useContext } from 'react';\n\nexport function createSafeContext(errorMessage: string) {\n const Context = createContext(null);\n\n const useSafeContext = () => {\n const ctx = useContext(Context);\n\n if (ctx === null) {\n throw new Error(errorMessage);\n }\n\n return ctx;\n };\n\n const Provider = ({ children, value }: { value: ContextValue; children: React.ReactNode }) => (\n {children}\n );\n\n return [Provider, useSafeContext] as const;\n}\n","type FilterPropsRes> = {\n [Key in keyof T]-?: T[Key] extends undefined ? never : T[Key];\n};\n\nexport function filterProps>(props: T) {\n return Object.keys(props).reduce>((acc, key: keyof T) => {\n if (props[key] !== undefined) {\n acc[key] = props[key];\n }\n return acc;\n }, {} as FilterPropsRes);\n}\n","const elevations = {\n app: 100,\n modal: 200,\n popover: 300,\n overlay: 400,\n max: 9999,\n} as const;\n\nexport function getDefaultZIndex(level: keyof typeof elevations) {\n return elevations[level];\n}\n","import { isNumberLike } from '../is-number-like/is-number-like';\nimport { rem } from '../units-converters';\n\nexport function getSize(size: unknown, prefix = 'size', convertToRem = true): string | undefined {\n if (size === undefined) {\n return undefined;\n }\n\n return isNumberLike(size)\n ? convertToRem\n ? rem(size)\n : (size as string)\n : `var(--${prefix}-${size})`;\n}\n\nexport function getSpacing(size: unknown) {\n return getSize(size, 'mantine-spacing');\n}\n\nexport function getRadius(size: unknown) {\n if (size === undefined) {\n return 'var(--mantine-radius-default)';\n }\n\n return getSize(size, 'mantine-radius');\n}\n\nexport function getFontSize(size: unknown) {\n return getSize(size, 'mantine-font-size');\n}\n\nexport function getLineHeight(size: unknown) {\n return getSize(size, 'mantine-line-height', false);\n}\n\nexport function getShadow(size: unknown) {\n if (!size) {\n return undefined;\n }\n\n return getSize(size, 'mantine-shadow', false);\n}\n","import { Fragment } from 'react';\n\nexport function isElement(value: any): value is React.ReactElement {\n if (Array.isArray(value) || value === null) {\n return false;\n }\n\n if (typeof value === 'object') {\n if (value.type === Fragment) {\n return false;\n }\n\n return true;\n }\n\n return false;\n}\n","export function isNumberLike(value: unknown) {\n if (typeof value === 'number') {\n return true;\n }\n\n if (typeof value === 'string') {\n if (\n value.startsWith('calc(') ||\n value.startsWith('var(') ||\n (value.includes(' ') && value.trim() !== '')\n ) {\n return true;\n }\n\n return /[0-9]/.test(value.trim().replace('-', '')[0]);\n }\n\n return false;\n}\n","import { DependencyList, EffectCallback, useEffect, useRef } from 'react';\n\nexport function useDidUpdate(fn: EffectCallback, dependencies?: DependencyList) {\n const mounted = useRef(false);\n\n useEffect(\n () => () => {\n mounted.current = false;\n },\n []\n );\n\n useEffect(() => {\n if (mounted.current) {\n return fn();\n }\n\n mounted.current = true;\n return undefined;\n }, dependencies);\n}\n","import { useRef } from 'react';\nimport { useDidUpdate } from '../use-did-update/use-did-update';\n\ninterface UseFocusReturn {\n opened: boolean;\n shouldReturnFocus?: boolean;\n}\n\n/** Returns focus to last active element, used in Modal and Drawer */\nexport function useFocusReturn({ opened, shouldReturnFocus = true }: UseFocusReturn) {\n const lastActiveElement = useRef();\n const returnFocus = () => {\n if (\n lastActiveElement.current &&\n 'focus' in lastActiveElement.current &&\n typeof lastActiveElement.current.focus === 'function'\n ) {\n lastActiveElement.current?.focus({ preventScroll: true });\n }\n };\n\n useDidUpdate(() => {\n let timeout = -1;\n\n const clearFocusTimeout = (event: KeyboardEvent) => {\n if (event.key === 'Tab') {\n window.clearTimeout(timeout);\n }\n };\n\n document.addEventListener('keydown', clearFocusTimeout);\n\n if (opened) {\n lastActiveElement.current = document.activeElement as HTMLElement;\n } else if (shouldReturnFocus) {\n timeout = window.setTimeout(returnFocus, 10);\n }\n\n return () => {\n window.clearTimeout(timeout);\n document.removeEventListener('keydown', clearFocusTimeout);\n };\n }, [opened, shouldReturnFocus]);\n\n return returnFocus;\n}\n","import React from 'react';\n\nconst __useId: () => string | undefined = (React as any)['useId'.toString()] || (() => undefined);\n\nexport function useReactId() {\n const id = __useId();\n return id ? `mantine-${id.replace(/:/g, '')}` : '';\n}\n","import { useState } from 'react';\nimport { useIsomorphicEffect } from '../use-isomorphic-effect/use-isomorphic-effect';\nimport { randomId } from '../utils';\nimport { useReactId } from './use-react-id';\n\nexport function useId(staticId?: string) {\n const reactId = useReactId();\n const [uuid, setUuid] = useState(reactId);\n\n useIsomorphicEffect(() => {\n setUuid(randomId());\n }, []);\n\n if (typeof staticId === 'string') {\n return staticId;\n }\n\n if (typeof window === 'undefined') {\n return reactId;\n }\n\n return uuid;\n}\n","import { Ref, useCallback } from 'react';\n\ntype PossibleRef = Ref | undefined;\n\nexport function assignRef(ref: PossibleRef, value: T) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (typeof ref === 'object' && ref !== null && 'current' in ref) {\n (ref as React.MutableRefObject).current = value;\n }\n}\n\nexport function mergeRefs(...refs: PossibleRef[]) {\n return (node: T | null) => {\n refs.forEach((ref) => assignRef(ref, node));\n };\n}\n\nexport function useMergedRef(...refs: PossibleRef[]) {\n return useCallback(mergeRefs(...refs), refs);\n}\n","import { useEffect, useRef, useState } from 'react';\n\nexport interface UseMediaQueryOptions {\n getInitialValueInEffect: boolean;\n}\n\ntype MediaQueryCallback = (event: { matches: boolean; media: string }) => void;\n\n/**\n * Older versions of Safari (shipped withCatalina and before) do not support addEventListener on matchMedia\n * https://stackoverflow.com/questions/56466261/matchmedia-addlistener-marked-as-deprecated-addeventlistener-equivalent\n * */\nfunction attachMediaListener(query: MediaQueryList, callback: MediaQueryCallback) {\n try {\n query.addEventListener('change', callback);\n return () => query.removeEventListener('change', callback);\n } catch (e) {\n query.addListener(callback);\n return () => query.removeListener(callback);\n }\n}\n\nfunction getInitialValue(query: string, initialValue?: boolean) {\n if (typeof initialValue === 'boolean') {\n return initialValue;\n }\n\n if (typeof window !== 'undefined' && 'matchMedia' in window) {\n return window.matchMedia(query).matches;\n }\n\n return false;\n}\n\nexport function useMediaQuery(\n query: string,\n initialValue?: boolean,\n { getInitialValueInEffect }: UseMediaQueryOptions = {\n getInitialValueInEffect: true,\n }\n) {\n const [matches, setMatches] = useState(\n getInitialValueInEffect ? initialValue : getInitialValue(query)\n );\n const queryRef = useRef();\n\n useEffect(() => {\n if ('matchMedia' in window) {\n queryRef.current = window.matchMedia(query);\n setMatches(queryRef.current.matches);\n return attachMediaListener(queryRef.current, (event) => setMatches(event.matches));\n }\n\n return undefined;\n }, [query]);\n\n return matches;\n}\n","import { useMediaQuery, UseMediaQueryOptions } from '../use-media-query/use-media-query';\n\nexport function useReducedMotion(initialValue?: boolean, options?: UseMediaQueryOptions) {\n return useMediaQuery('(prefers-reduced-motion: reduce)', initialValue, options);\n}\n","export function randomId() {\n return `mantine-${Math.random().toString(36).slice(2, 11)}`;\n}\n"],"names":["CloseIcon","forwardRef","_ref","ref","size","style","others","jsx","viewBox","fill","xmlns","width","height","children","d","fillRule","clipRule","displayName","defaultProps","variant","varsResolver","createVarsResolver","_","radius","iconSize","root","getSize","getRadius","rem","CloseButton","polymorphicFactory","_props","props","useProps","vars","className","classNames","styles","unstyled","dataDisabled","disabled","icon","mod","getStyles","useStyles","name","classes","jsxs","UnstyledButton","active","TABBABLE_NODES","FOCUS_SELECTOR","hidden","element","display","getElementTabIndex","tabIndex","getAttribute","parseInt","focusable","nodeName","toLowerCase","isTabIndexNotNaN","Number","isNaN","test","HTMLAnchorElement","href","parentElement","document","body","nodeType","parentNode","visible","tabbable","findTabbableDescendants","Array","from","querySelectorAll","filter","useFocusTrap","arguments","length","undefined","useRef","restoreAria","focusNode","node","focusElement","querySelector","find","focus","preventScroll","setRef","useCallback","current","containerNode","selector","id","randomId","rootNodes","map","shadowRoot","contains","ariaHidden","prevAriaHidden","prevFocusId","setAttribute","forEach","item","removeAttribute","createAriaHider","setTimeout","getRootNode","useEffect","handleKeyDown","event","key","preventDefault","finalTabbable","shiftKey","leavingFinalTabbable","activeElement","tagName","includes","target","scopeTab","addEventListener","removeEventListener","VisuallyHidden","factory","Box","component","FocusTrap","refProp","innerRef","focusTrapRef","useMergedRef","isElement","cloneElement","FocusTrapInitialFocus","InitialFocus","Portal","mounted","setMounted","useState","nodeRef","useIsomorphicEffect","createElement","classList","add","split","Boolean","Object","assign","createPortalNode","assignRef","appendChild","removeChild","createPortal","Fragment","OptionalPortal","withinPortal","popIn","in","opacity","transform","out","transitionProperty","transitions","fade","scale","common","transformOrigin","pop","transitionStatuses","entering","entered","exiting","exited","getTransitionStyles","transition","state","duration","timingFunction","shared","transitionDuration","transitionTimingFunction","useTransition","exitDuration","onEnter","onExit","onEntered","onExited","enterDelay","exitDelay","theme","useMantineTheme","shouldReduceMotion","useReducedMotion","reduceMotion","respectReducedMotion","setTransitionDuration","transitionStatus","setStatus","transitionTimeoutRef","delayTimeoutRef","rafRef","handleStateChange","shouldMount","preHandler","handler","window","clearTimeout","newTransitionDuration","requestAnimationFrame","ReactDOM","useDidUpdate","cancelAnimationFrame","Transition","keepMounted","__staticSelector","type","cssObjectToString","css","keys","reduce","acc","rule","value","replace","letter","trim","stylesToString","media","container","baseStyles","mediaQueryStyles","isArray","query","containerStyles","join","InlineStyles","nonce","useMantineStyleNonce","dangerouslySetInnerHTML","__html","transformModKey","startsWith","getBoxMod","mergeStyles","getBoxStyle","styleProps","STYlE_PROPS_DATA","m","property","mt","mb","ml","mr","ms","me","mx","my","p","pt","pb","pl","pr","ps","pe","px","py","bd","bg","c","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","flex","colorResolver","color","parsedColor","parseThemeColor","variable","values","text","mono","monospace","heading","headings","resolvers","textColor","isThemeColor","shade","fontSize","fontSizes","spacing","identity","lineHeight","lineHeights","fontFamily","border","colorTuple","val","result","replaceMediaQuery","getBreakpointValue","breakpoint","parseStyleProps","data","sort","a","b","sortMediaQueries","styleProp","propertyData","properties","baseValue","base","breakpoints","hasResponsiveStyles","inlineStyles","getBreakpointKeys","bp","_Box","__vars","hiddenFrom","visibleFrom","lightHidden","darkHidden","renderRoot","__size","Element","rest","extractStyleProps","useSxTransform","useMantineSxTransform","transformedSx","sx","responsiveClassName","useId","parsedStyleProps","cx","isNumberLike","filterProps","contextPropsPayload","components","ui","Component","extend","withProps","fixedProps","Extended","resolver","EMPTY_CLASS_NAMES","resolveClassNames","_ref2","stylesCtx","objects","merged","obj","entries","mergeClassNames","resolveStyles","FOCUS_CLASS_NAMES","always","auto","never","getResolvedClassNames","getClassName","options","themeName","classNamesPrefix","rootSelector","withStaticClasses","headless","transformedStyles","focusClassName","focusRing","activeClassName","getGlobalClassNames","n","getThemeClassNames","getVariantClassName","getOptionsClassNames","getRootClassName","getSelectorClassName","withStaticClass","getStaticClassNames","getThemeStyles","resolveStyle","resolveVars","mergeVars","getStyle","withStylesTransform","useMantineClassNamesPrefix","useMantineWithStaticClasses","useMantineIsHeadless","getTransformedStyles","stylesTransform","useMantineStylesTransform","ctx","useStylesTransform","createSafeContext","errorMessage","Context","createContext","Provider","useSafeContext","useContext","Error","elevations","app","modal","popover","overlay","max","getDefaultZIndex","level","prefix","convertToRem","getSpacing","getFontSize","getLineHeight","getShadow","fn","dependencies","useFocusReturn","opened","shouldReturnFocus","lastActiveElement","returnFocus","timeout","clearFocusTimeout","__useId","React","toString","staticId","reactId","useReactId","uuid","setUuid","_len2","refs","_key2","_len","_key","mergeRefs","useMediaQuery","initialValue","getInitialValueInEffect","matches","setMatches","matchMedia","getInitialValue","queryRef","callback","e","addListener","removeListener","attachMediaListener","Math","random","slice"],"sourceRoot":""}