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,QAAA,EAAYuE,CAAS,CAAAsB,EAAI,CAAEF,KAAM,EACjD,CACF,CAEJ,CACF,2EC5JgB,SAAArB,EAAoBwB,CAAA,CAAsBC,CAAkB,EAC1E,IAAIC,EAA+BF,EACnC,MAAQE,EAAWA,EAASC,aAAA,GAAkB,CAACD,EAASE,OAAA,CAAQH,KACzD,OAAAC,CACT,iECLgB,SAAApH,EAAUlB,CAAA,CAAayI,CAAsB,EAC3D,OAAO,IACL,GAAI,iBAAOhJ,GAAsBA,IAAAA,EAAMiJ,IAAK,GAAEjB,MAAA,CACtC,YAAUgB,GAGX,SAAUhJ,MAAAA,CAAPO,EAAG,KAASrB,MAAA,CAALc,EACnB,CACF,gGCLA,IAAMkJ,EAAqB,CACzBC,QAAS,EACX,EAEO,SAASC,IACd,GAAM,CAACC,EAAYC,EAAa,CAAIxE,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,CAC3CyE,MAAO,EACPC,OAAQ,IAGJC,EAAUC,CAAAA,EAAAA,EAAAA,WAAAA,EAAY,KACZJ,EAAA,CAAEC,MAAOI,OAAOC,UAAA,EAAc,EAAGJ,OAAQG,OAAOE,WAAe,KAC/E,EAAG,EAAE,EAME,MAJQC,CAAAA,EAAAA,EAAAA,cAAAA,EAAA,SAAUL,EAASP,GACnBY,CAAAA,EAAAA,EAAAA,cAAAA,EAAA,oBAAqBL,EAASP,GACnCnE,CAAAA,EAAAA,EAAAA,SAAAA,EAAA0E,EAAS,EAAE,EAEdJ,CACT,kECtBO,SAASU,EAAW/J,CAAe,EACxC,MAAO,iBAAOA,EAAqB,GAAKA,EAAMgK,MAAA,CAAO,GAAGC,WAAY,GAAIjK,EAAMkK,KAAA,CAAM,EACtF","sources":["webpack://_N_E/../../components/Accordion/Accordion.context.ts","webpack://_N_E/../../components/Accordion/Accordion.tsx","webpack://_N_E/../../../../src/components/Accordion/AccordionControl/AccordionControl.tsx","webpack://_N_E/../../components/Accordion/AccordionItem.context.ts","webpack://_N_E/../../../../src/components/Accordion/AccordionItem/AccordionItem.tsx","webpack://_N_E/../../../../src/components/Accordion/AccordionPanel/AccordionPanel.tsx","webpack://_N_E/../../components/Image/Image.tsx","webpack://_N_E/../../components/Tabs/Tabs.context.ts","webpack://_N_E/../../components/Tabs/Tabs.tsx","webpack://_N_E/../../../../src/components/Tabs/TabsList/TabsList.tsx","webpack://_N_E/../../../../src/components/Tabs/TabsPanel/TabsPanel.tsx","webpack://_N_E/../../../../src/components/Tabs/TabsTab/TabsTab.tsx","webpack://_N_E/../../../../src/core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.ts","webpack://_N_E/../../../../src/core/utils/find-element-ancestor/find-element-ancestor.ts","webpack://_N_E/../../../../src/core/utils/get-safe-id/get-safe-id.ts","webpack://_N_E/../../src/use-viewport-size/use-viewport-size.ts","webpack://_N_E/../../utils/upper-first/upper-first.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { AccordionFactory } from './Accordion';\nimport { AccordionChevronPosition, AccordionHeadingOrder } from './Accordion.types';\n\ninterface AccordionContext {\n loop: boolean | undefined;\n transitionDuration: number | undefined;\n disableChevronRotation: boolean | undefined;\n chevronPosition: AccordionChevronPosition | undefined;\n order: AccordionHeadingOrder | undefined;\n chevron: React.ReactNode;\n onChange: (value: string) => void;\n isItemActive: (value: string) => boolean;\n getControlId: (value: string) => string;\n getRegionId: (value: string) => string;\n getStyles: GetStylesApi;\n variant: string | undefined;\n unstyled: boolean | undefined;\n}\n\nexport const [AccordionProvider, useAccordionContext] = createSafeContext(\n 'Accordion component was not found in the tree'\n);\n","import { useId, useUncontrolled } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n createVarsResolver,\n ElementProps,\n ExtendComponent,\n Factory,\n getRadius,\n getSafeId,\n getWithProps,\n MantineRadius,\n MantineThemeComponent,\n rem,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport { AccordionProvider } from './Accordion.context';\nimport { AccordionChevronPosition, AccordionHeadingOrder, AccordionValue } from './Accordion.types';\nimport { AccordionChevron } from './AccordionChevron';\nimport { AccordionControl } from './AccordionControl/AccordionControl';\nimport { AccordionItem } from './AccordionItem/AccordionItem';\nimport { AccordionPanel } from './AccordionPanel/AccordionPanel';\nimport classes from './Accordion.module.css';\n\nexport type AccordionStylesNames =\n | 'root'\n | 'content'\n | 'item'\n | 'panel'\n | 'icon'\n | 'chevron'\n | 'label'\n | 'itemTitle'\n | 'control';\n\nexport type AccordionVariant = 'default' | 'contained' | 'filled' | 'separated';\nexport type AccordionCssVariables = {\n root: '--accordion-transition-duration' | '--accordion-chevron-size' | '--accordion-radius';\n};\n\nexport interface AccordionProps\n extends BoxProps,\n StylesApiProps,\n ElementProps<'div', 'value' | 'defaultValue' | 'onChange'> {\n /** Determines whether multiple items can be opened at a time, `false` by default */\n multiple?: Multiple;\n\n /** Value for controlled component */\n value?: AccordionValue;\n\n /** Default value for uncontrolled component */\n defaultValue?: AccordionValue;\n\n /** Called when value changes */\n onChange?: (value: AccordionValue) => void;\n\n /** Determines whether arrow key presses should loop though items (first to last and last to first), `true` by default */\n loop?: boolean;\n\n /** Transition duration in ms, `200` by default */\n transitionDuration?: number;\n\n /** Determines whether chevron rotation should be disabled, `false` by default */\n disableChevronRotation?: boolean;\n\n /** Position of the chevron relative to the item label, `right` by default */\n chevronPosition?: AccordionChevronPosition;\n\n /** Size of the chevron icon container, `24` by default */\n chevronSize?: number | string;\n\n /** Heading order, has no effect on visuals */\n order?: AccordionHeadingOrder;\n\n /** Custom chevron icon that will be used in all items */\n chevron?: React.ReactNode;\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\nexport type AccordionFactory = Factory<{\n props: AccordionProps;\n ref: HTMLDivElement;\n stylesNames: AccordionStylesNames;\n vars: AccordionCssVariables;\n variant: AccordionVariant;\n}>;\n\nconst defaultProps: Partial = {\n multiple: false,\n disableChevronRotation: false,\n chevronPosition: 'right',\n variant: 'default',\n chevron: ,\n};\n\nconst varsResolver = createVarsResolver(\n (_, { transitionDuration, chevronSize, radius }) => ({\n root: {\n '--accordion-transition-duration':\n transitionDuration === undefined ? undefined : `${transitionDuration}ms`,\n '--accordion-chevron-size': chevronSize === undefined ? undefined : rem(chevronSize),\n '--accordion-radius': radius === undefined ? undefined : getRadius(radius),\n },\n })\n);\n\nexport function Accordion(_props: AccordionProps) {\n const props = useProps('Accordion', defaultProps as AccordionProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n children,\n multiple,\n value,\n defaultValue,\n onChange,\n id,\n loop,\n transitionDuration,\n disableChevronRotation,\n chevronPosition,\n chevronSize,\n order,\n chevron,\n variant,\n radius,\n ...others\n } = props;\n\n const uid = useId(id);\n const [_value, handleChange] = useUncontrolled({\n value,\n defaultValue,\n finalValue: multiple ? ([] as any) : null,\n onChange,\n });\n\n const isItemActive = (itemValue: string) =>\n Array.isArray(_value) ? _value.includes(itemValue) : itemValue === _value;\n\n const handleItemChange = (itemValue: string) => {\n const nextValue: AccordionValue = Array.isArray(_value)\n ? _value.includes(itemValue)\n ? _value.filter((selectedValue) => selectedValue !== itemValue)\n : [..._value, itemValue]\n : itemValue === _value\n ? null\n : (itemValue as any);\n\n handleChange(nextValue);\n };\n\n const getStyles = useStyles({\n name: 'Accordion',\n classes,\n props: props as AccordionProps,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n \n \n {children}\n \n \n );\n}\n\nconst extendAccordion = (c: ExtendComponent): MantineThemeComponent => c;\n\nAccordion.extend = extendAccordion;\nAccordion.withProps = getWithProps(Accordion as any);\nAccordion.classes = classes;\nAccordion.displayName = '@mantine/core/Accordion';\nAccordion.Item = AccordionItem;\nAccordion.Panel = AccordionPanel;\nAccordion.Control = AccordionControl;\nAccordion.Chevron = AccordionChevron;\n","import {\n Box,\n BoxProps,\n CompoundStylesApiProps,\n createScopedKeydownHandler,\n ElementProps,\n factory,\n Factory,\n useProps,\n} from '../../../core';\nimport { UnstyledButton } from '../../UnstyledButton';\nimport { useAccordionContext } from '../Accordion.context';\nimport { useAccordionItemContext } from '../AccordionItem.context';\nimport classes from '../Accordion.module.css';\n\nexport type AccordionControlStylesNames = 'control' | 'chevron' | 'label' | 'itemTitle' | 'icon';\n\nexport interface AccordionControlProps\n extends BoxProps,\n CompoundStylesApiProps,\n ElementProps<'button'> {\n /** Disables control button */\n disabled?: boolean;\n\n /** Custom chevron icon */\n chevron?: React.ReactNode;\n\n /** Control label */\n children?: React.ReactNode;\n\n /** Icon displayed next to the label */\n icon?: React.ReactNode;\n}\n\nexport type AccordionControlFactory = Factory<{\n props: AccordionControlProps;\n ref: HTMLButtonElement;\n stylesNames: AccordionControlStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const AccordionControl = factory((props, ref) => {\n const {\n classNames,\n className,\n style,\n styles,\n vars,\n chevron,\n icon,\n onClick,\n onKeyDown,\n children,\n disabled,\n mod,\n ...others\n } = useProps('AccordionControl', defaultProps, props);\n\n const { value } = useAccordionItemContext();\n const ctx = useAccordionContext();\n const isActive = ctx.isItemActive(value);\n const shouldWrapWithHeading = typeof ctx.order === 'number';\n const Heading = `h${ctx.order!}` as const;\n\n const content = (\n \n {...others}\n {...ctx.getStyles('control', { className, classNames, style, styles, variant: ctx.variant })}\n unstyled={ctx.unstyled}\n mod={[\n 'accordion-control',\n { active: isActive, 'chevron-position': ctx.chevronPosition, disabled },\n mod,\n ]}\n ref={ref}\n onClick={(event) => {\n onClick?.(event);\n ctx.onChange(value);\n }}\n type=\"button\"\n disabled={disabled}\n aria-expanded={isActive}\n aria-controls={ctx.getRegionId(value)}\n id={ctx.getControlId(value)}\n onKeyDown={createScopedKeydownHandler({\n siblingSelector: '[data-accordion-control]',\n parentSelector: '[data-accordion]',\n activateOnFocus: false,\n loop: ctx.loop,\n orientation: 'vertical',\n onKeyDown,\n })}\n >\n \n {chevron || ctx.chevron}\n \n {children}\n {icon && (\n \n {icon}\n \n )}\n \n );\n\n return shouldWrapWithHeading ? (\n {content}\n ) : (\n content\n );\n});\n\nAccordionControl.displayName = '@mantine/core/AccordionControl';\nAccordionControl.classes = classes;\n","import { createSafeContext } from '../../core';\n\ninterface AccordionItemContext {\n value: string;\n}\n\nexport const [AccordionItemProvider, useAccordionItemContext] =\n createSafeContext('Accordion.Item component was not found in the tree');\n","import {\n Box,\n BoxProps,\n CompoundStylesApiProps,\n ElementProps,\n factory,\n Factory,\n useProps,\n} from '../../../core';\nimport { useAccordionContext } from '../Accordion.context';\nimport { AccordionItemProvider } from '../AccordionItem.context';\nimport classes from '../Accordion.module.css';\n\nexport type AccordionItemStylesNames = 'item';\n\nexport interface AccordionItemProps\n extends BoxProps,\n CompoundStylesApiProps,\n ElementProps<'div'> {\n /** Value that is used to manage accordion state */\n value: string;\n}\n\nexport type AccordionItemFactory = Factory<{\n props: AccordionItemProps;\n ref: HTMLDivElement;\n stylesNames: AccordionItemStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const AccordionItem = factory((props, ref) => {\n const { classNames, className, style, styles, vars, value, mod, ...others } = useProps(\n 'AccordionItem',\n defaultProps,\n props\n );\n const ctx = useAccordionContext();\n\n return (\n \n \n \n );\n});\n\nAccordionItem.displayName = '@mantine/core/AccordionItem';\nAccordionItem.classes = classes;\n","import {\n BoxProps,\n CompoundStylesApiProps,\n ElementProps,\n factory,\n Factory,\n useProps,\n} from '../../../core';\nimport { Collapse } from '../../Collapse';\nimport { useAccordionContext } from '../Accordion.context';\nimport { useAccordionItemContext } from '../AccordionItem.context';\nimport classes from '../Accordion.module.css';\n\nexport type AccordionPanelStylesNames = 'panel' | 'content';\n\nexport interface AccordionPanelProps\n extends BoxProps,\n CompoundStylesApiProps,\n ElementProps<'div'> {\n /** Called when the panel animation completes */\n onTransitionEnd?: () => void;\n}\n\nexport type AccordionPanelFactory = Factory<{\n props: AccordionPanelProps;\n ref: HTMLDivElement;\n stylesNames: AccordionPanelStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const AccordionPanel = factory((props, ref) => {\n const { classNames, className, style, styles, vars, children, ...others } = useProps(\n 'AccordionPanel',\n defaultProps,\n props\n );\n\n const { value } = useAccordionItemContext();\n const ctx = useAccordionContext();\n\n return (\n \n
{children}
\n \n );\n});\n\nAccordionPanel.displayName = '@mantine/core/AccordionPanel';\nAccordionPanel.classes = classes;\n","import { useEffect, useState } from 'react';\nimport {\n Box,\n BoxProps,\n createVarsResolver,\n getRadius,\n MantineRadius,\n polymorphicFactory,\n PolymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './Image.module.css';\n\nexport type ImageStylesNames = 'root';\nexport type ImageCssVariables = {\n root: '--image-radius' | '--image-object-fit';\n};\n\nexport interface ImageProps extends BoxProps, StylesApiProps {\n /** Key of `theme.radius` or any valid CSS value to set `border-radius`, `0` by default */\n radius?: MantineRadius;\n\n /** Controls `object-fit` style, `'cover'` by default */\n fit?: React.CSSProperties['objectFit'];\n\n /** Image url that will be used as a fallback in case `src` prop is not set or image cannot be loaded */\n fallbackSrc?: string;\n\n /** Image url */\n src?: any;\n\n /** Called when image fails to load */\n onError?: (event: React.SyntheticEvent) => void;\n}\n\nexport type ImageFactory = PolymorphicFactory<{\n props: ImageProps;\n defaultRef: HTMLImageElement;\n defaultComponent: 'img';\n stylesNames: ImageStylesNames;\n vars: ImageCssVariables;\n}>;\n\nconst defaultProps: Partial = {};\n\nconst varsResolver = createVarsResolver((_, { radius, fit }) => ({\n root: {\n '--image-radius': radius === undefined ? undefined : getRadius(radius),\n '--image-object-fit': fit,\n },\n}));\n\nexport const Image = polymorphicFactory((_props, ref) => {\n const props = useProps('Image', defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n onError,\n src,\n radius,\n fit,\n fallbackSrc,\n mod,\n ...others\n } = props;\n\n const [error, setError] = useState(!src);\n\n useEffect(() => setError(!src), [src]);\n\n const getStyles = useStyles({\n name: 'Image',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n if (error && fallbackSrc) {\n return (\n \n );\n }\n\n return (\n {\n onError?.(event);\n setError(true);\n }}\n mod={mod}\n {...others}\n />\n );\n});\n\nImage.classes = classes;\nImage.displayName = '@mantine/core/Image';\n","import { createSafeContext, GetStylesApi } from '../../core';\nimport type { TabsFactory } from './Tabs';\n\nexport interface TabsContextValue {\n id: string;\n value: string | null;\n orientation: 'horizontal' | 'vertical' | undefined;\n loop: boolean | undefined;\n activateTabWithKeyboard: boolean | undefined;\n allowTabDeactivation: boolean | undefined;\n onChange: (value: string | null) => void;\n getTabId: (value: string) => string;\n getPanelId: (value: string) => string;\n variant: string | undefined;\n color: string | undefined;\n radius: string | number | undefined;\n inverted: boolean | undefined;\n keepMounted: boolean | undefined;\n placement: 'right' | 'left' | undefined;\n unstyled: boolean | undefined;\n getStyles: GetStylesApi;\n}\n\nexport const [TabsProvider, useTabsContext] = createSafeContext(\n 'Tabs component was not found in the tree'\n);\n","import { useId, useUncontrolled } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n createVarsResolver,\n ElementProps,\n factory,\n Factory,\n getAutoContrastValue,\n getContrastColor,\n getRadius,\n getSafeId,\n getThemeColor,\n MantineColor,\n MantineRadius,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport { TabsProvider } from './Tabs.context';\nimport { TabsList, TabsListStylesNames } from './TabsList/TabsList';\nimport { TabsPanel, TabsPanelStylesNames } from './TabsPanel/TabsPanel';\nimport { TabsTab, TabsTabStylesNames } from './TabsTab/TabsTab';\nimport classes from './Tabs.module.css';\n\nexport type TabsStylesNames =\n | 'root'\n | TabsListStylesNames\n | TabsPanelStylesNames\n | TabsTabStylesNames;\n\nexport type TabsVariant = 'default' | 'outline' | 'pills';\nexport type TabsCssVariables = {\n root: '--tabs-color' | '--tabs-radius';\n};\n\nexport interface TabsProps\n extends BoxProps,\n StylesApiProps,\n ElementProps<'div', 'defaultValue' | 'value' | 'onChange'> {\n /** Default value for uncontrolled component */\n defaultValue?: string | null;\n\n /** Value for controlled component */\n value?: string | null;\n\n /** Called when value changes */\n onChange?: (value: string | null) => void;\n\n /** Tabs orientation, `'horizontal'` by default */\n orientation?: 'vertical' | 'horizontal';\n\n /** `Tabs.List` placement relative to `Tabs.Panel`, applicable only when `orientation=\"vertical\"`, `'left'` by default */\n placement?: 'left' | 'right';\n\n /** Base id, used to generate ids to connect labels with controls, generated randomly by default */\n id?: string;\n\n /** Determines whether arrow key presses should loop though items (first to last and last to first), `true` by default */\n loop?: boolean;\n\n /** Determines whether tab should be activated with arrow key press, `true` by default */\n activateTabWithKeyboard?: boolean;\n\n /** Determines whether tab can be deactivated, `false` by default */\n allowTabDeactivation?: boolean;\n\n /** Tabs content */\n children?: React.ReactNode;\n\n /** Changes colors of `Tabs.Tab` components when variant is `pills` or `default`, does nothing for other variants */\n color?: MantineColor;\n\n /** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */\n radius?: MantineRadius;\n\n /** Determines whether tabs should have inverted styles, `false` by default */\n inverted?: boolean;\n\n /** If set to `false`, `Tabs.Panel` content will be unmounted when the associated tab is not active, `true` by default */\n keepMounted?: boolean;\n\n /** Determines whether active item text color should depend on `background-color` of the indicator. If luminosity of the `color` prop is less than `theme.luminosityThreshold`, then `theme.white` will be used for text color, otherwise `theme.black`. Overrides `theme.autoContrast`. Only applicable when `variant=\"pills\"` */\n autoContrast?: boolean;\n}\n\nexport type TabsFactory = Factory<{\n props: TabsProps;\n ref: HTMLDivElement;\n variant: TabsVariant;\n stylesNames: TabsStylesNames;\n vars: TabsCssVariables;\n staticComponents: {\n Tab: typeof TabsTab;\n Panel: typeof TabsPanel;\n List: typeof TabsList;\n };\n}>;\n\nconst VALUE_ERROR =\n 'Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value';\n\nconst defaultProps: Partial = {\n keepMounted: true,\n orientation: 'horizontal',\n loop: true,\n activateTabWithKeyboard: true,\n allowTabDeactivation: false,\n unstyled: false,\n inverted: false,\n variant: 'default',\n placement: 'left',\n};\n\nconst varsResolver = createVarsResolver((theme, { radius, color, autoContrast }) => ({\n root: {\n '--tabs-radius': getRadius(radius),\n '--tabs-color': getThemeColor(color, theme),\n '--tabs-text-color': getAutoContrastValue(autoContrast, theme)\n ? getContrastColor({ color, theme, autoContrast })\n : undefined,\n },\n}));\n\nexport const Tabs = factory((_props, ref) => {\n const props = useProps('Tabs', defaultProps, _props);\n const {\n defaultValue,\n value,\n onChange,\n orientation,\n children,\n loop,\n id,\n activateTabWithKeyboard,\n allowTabDeactivation,\n variant,\n color,\n radius,\n inverted,\n placement,\n keepMounted,\n classNames,\n styles,\n unstyled,\n className,\n style,\n vars,\n autoContrast,\n mod,\n ...others\n } = props;\n\n const uid = useId(id);\n\n const [currentTab, setCurrentTab] = useUncontrolled({\n value,\n defaultValue,\n finalValue: null,\n onChange,\n });\n\n const getStyles = useStyles({\n name: 'Tabs',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n \n \n {children}\n \n \n );\n});\n\nTabs.classes = classes;\nTabs.displayName = '@mantine/core/Tabs';\nTabs.Tab = TabsTab;\nTabs.Panel = TabsPanel;\nTabs.List = TabsList;\n","import {\n Box,\n BoxProps,\n CompoundStylesApiProps,\n ElementProps,\n factory,\n Factory,\n useProps,\n} from '../../../core';\nimport { useTabsContext } from '../Tabs.context';\nimport classes from '../Tabs.module.css';\n\nexport type TabsListStylesNames = 'list';\n\nexport interface TabsListProps\n extends BoxProps,\n CompoundStylesApiProps,\n ElementProps<'div'> {\n /** `Tabs.Tab` components */\n children: React.ReactNode;\n\n /** Determines whether tabs should take all available space, `false` by default */\n grow?: boolean;\n\n /** Tabs alignment, `flex-start` by default */\n justify?: React.CSSProperties['justifyContent'];\n}\n\nexport type TabsListFactory = Factory<{\n props: TabsListProps;\n ref: HTMLDivElement;\n stylesNames: TabsListStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const TabsList = factory((_props, ref) => {\n const props = useProps('TabsList', defaultProps, _props);\n const { children, className, grow, justify, classNames, styles, style, mod, ...others } = props;\n\n const ctx = useTabsContext();\n\n return (\n \n {children}\n \n );\n});\n\nTabsList.classes = classes;\nTabsList.displayName = '@mantine/core/TabsList';\n","import {\n Box,\n BoxProps,\n CompoundStylesApiProps,\n ElementProps,\n factory,\n Factory,\n useProps,\n} from '../../../core';\nimport { useTabsContext } from '../Tabs.context';\nimport classes from '../Tabs.module.css';\n\nexport type TabsPanelStylesNames = 'panel';\n\nexport interface TabsPanelProps\n extends BoxProps,\n CompoundStylesApiProps,\n ElementProps<'div'> {\n /** Panel content */\n children: React.ReactNode;\n\n /** If set to `true`, the content will be kept mounted, even if `keepMounted` is set `false` in the parent `Tabs` component */\n keepMounted?: boolean;\n\n /** Value of associated control */\n value: string;\n}\n\nexport type TabsPanelFactory = Factory<{\n props: TabsPanelProps;\n ref: HTMLDivElement;\n stylesNames: TabsPanelStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const TabsPanel = factory((_props, ref) => {\n const props = useProps('TabsPanel', defaultProps, _props);\n const { children, className, value, classNames, styles, style, mod, keepMounted, ...others } =\n props;\n\n const ctx = useTabsContext();\n\n const active = ctx.value === value;\n const content = ctx.keepMounted || keepMounted ? children : active ? children : null;\n\n return (\n \n {content}\n \n );\n});\n\nTabsPanel.classes = classes;\nTabsPanel.displayName = '@mantine/core/TabsPanel';\n","import {\n CompoundStylesApiProps,\n createScopedKeydownHandler,\n ElementProps,\n factory,\n Factory,\n getThemeColor,\n MantineColor,\n useDirection,\n useMantineTheme,\n useProps,\n} from '../../../core';\nimport { UnstyledButton, UnstyledButtonProps } from '../../UnstyledButton';\nimport { useTabsContext } from '../Tabs.context';\nimport classes from '../Tabs.module.css';\n\nexport type TabsTabStylesNames = 'tab' | 'tabSection' | 'tabLabel';\n\nexport interface TabsTabProps\n extends Omit,\n CompoundStylesApiProps,\n ElementProps<'button'> {\n /** Value of associated panel */\n value: string;\n\n /** Tab label */\n children?: React.ReactNode;\n\n /** Content displayed on the right side of the label, for example, icon */\n rightSection?: React.ReactNode;\n\n /** Content displayed on the left side of the label, for example, icon */\n leftSection?: React.ReactNode;\n\n /** Key of `theme.colors` or any valid CSS color, controls control color based on `variant` */\n color?: MantineColor;\n}\n\nexport type TabsTabFactory = Factory<{\n props: TabsTabProps;\n ref: HTMLButtonElement;\n stylesNames: TabsTabStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {};\n\nexport const TabsTab = factory((_props, ref) => {\n const props = useProps('TabsTab', defaultProps, _props);\n const {\n className,\n children,\n rightSection,\n leftSection,\n value,\n onClick,\n onKeyDown,\n disabled,\n color,\n style,\n classNames,\n styles,\n vars,\n mod,\n tabIndex,\n ...others\n } = props;\n\n const theme = useMantineTheme();\n const { dir } = useDirection();\n const ctx = useTabsContext();\n const active = value === ctx.value;\n const activateTab = (event: React.MouseEvent) => {\n ctx.onChange(ctx.allowTabDeactivation ? (value === ctx.value ? null : value) : value);\n onClick?.(event);\n };\n\n const stylesApiProps = { classNames, styles, props };\n\n return (\n \n {leftSection && (\n \n {leftSection}\n \n )}\n {children && {children}}\n {rightSection && (\n \n {rightSection}\n \n )}\n \n );\n});\n\nTabsTab.classes = classes;\nTabsTab.displayName = '@mantine/core/TabsTab';\n","import { findElementAncestor } from '../find-element-ancestor/find-element-ancestor';\n\nfunction getPreviousIndex(current: number, elements: HTMLButtonElement[], loop: boolean) {\n for (let i = current - 1; i >= 0; i -= 1) {\n if (!elements[i].disabled) {\n return i;\n }\n }\n\n if (loop) {\n for (let i = elements.length - 1; i > -1; i -= 1) {\n if (!elements[i].disabled) {\n return i;\n }\n }\n }\n\n return current;\n}\n\nfunction getNextIndex(current: number, elements: HTMLButtonElement[], loop: boolean) {\n for (let i = current + 1; i < elements.length; i += 1) {\n if (!elements[i].disabled) {\n return i;\n }\n }\n\n if (loop) {\n for (let i = 0; i < elements.length; i += 1) {\n if (!elements[i].disabled) {\n return i;\n }\n }\n }\n\n return current;\n}\n\n/** Validates that target element is on the same level as sibling, used to filter out children that have the same sibling selector */\nfunction onSameLevel(\n target: HTMLButtonElement,\n sibling: HTMLButtonElement,\n parentSelector: string\n) {\n return (\n findElementAncestor(target, parentSelector) === findElementAncestor(sibling, parentSelector)\n );\n}\n\ninterface GetElementsSiblingsInput {\n /** Selector used to find parent node, e.g. '[role=\"tablist\"]', '.mantine-Text-root' */\n parentSelector: string;\n\n /** Selector used to find element siblings, e.g. '[data-tab]' */\n siblingSelector: string;\n\n /** Determines whether next/previous indices should loop */\n loop?: boolean;\n\n /** Determines which arrow keys will be used */\n orientation: 'vertical' | 'horizontal';\n\n /** Text direction */\n dir?: 'rtl' | 'ltr';\n\n /** Determines whether element should be clicked when focused with keyboard event */\n activateOnFocus?: boolean;\n\n /** External keydown event */\n onKeyDown?: (event: React.KeyboardEvent) => void;\n}\n\nexport function createScopedKeydownHandler({\n parentSelector,\n siblingSelector,\n onKeyDown,\n loop = true,\n activateOnFocus = false,\n dir = 'rtl',\n orientation,\n}: GetElementsSiblingsInput) {\n return (event: React.KeyboardEvent) => {\n onKeyDown?.(event);\n\n const elements = Array.from(\n findElementAncestor(event.currentTarget, parentSelector)?.querySelectorAll(\n siblingSelector\n ) || []\n ).filter((node) => onSameLevel(event.currentTarget, node, parentSelector));\n\n const current = elements.findIndex((el) => event.currentTarget === el);\n const _nextIndex = getNextIndex(current, elements, loop);\n const _previousIndex = getPreviousIndex(current, elements, loop);\n const nextIndex = dir === 'rtl' ? _previousIndex : _nextIndex;\n const previousIndex = dir === 'rtl' ? _nextIndex : _previousIndex;\n\n switch (event.key) {\n case 'ArrowRight': {\n if (orientation === 'horizontal') {\n event.stopPropagation();\n event.preventDefault();\n elements[nextIndex].focus();\n activateOnFocus && elements[nextIndex].click();\n }\n\n break;\n }\n\n case 'ArrowLeft': {\n if (orientation === 'horizontal') {\n event.stopPropagation();\n event.preventDefault();\n elements[previousIndex].focus();\n activateOnFocus && elements[previousIndex].click();\n }\n\n break;\n }\n\n case 'ArrowUp': {\n if (orientation === 'vertical') {\n event.stopPropagation();\n event.preventDefault();\n elements[_previousIndex].focus();\n activateOnFocus && elements[_previousIndex].click();\n }\n\n break;\n }\n\n case 'ArrowDown': {\n if (orientation === 'vertical') {\n event.stopPropagation();\n event.preventDefault();\n elements[_nextIndex].focus();\n activateOnFocus && elements[_nextIndex].click();\n }\n\n break;\n }\n\n case 'Home': {\n event.stopPropagation();\n event.preventDefault();\n !elements[0].disabled && elements[0].focus();\n break;\n }\n\n case 'End': {\n event.stopPropagation();\n event.preventDefault();\n const last = elements.length - 1;\n !elements[last].disabled && elements[last].focus();\n break;\n }\n }\n };\n}\n","/* eslint-disable no-empty */\nexport function findElementAncestor(element: HTMLElement, selector: string) {\n let _element: HTMLElement | null = element;\n while ((_element = _element.parentElement) && !_element.matches(selector)) {}\n return _element;\n}\n","export function getSafeId(uid: string, errorMessage: string) {\n return (value: string) => {\n if (typeof value !== 'string' || value.trim().length === 0) {\n throw new Error(errorMessage);\n }\n\n return `${uid}-${value}`;\n };\n}\n","import { useCallback, useEffect, useState } from 'react';\nimport { useWindowEvent } from '../use-window-event/use-window-event';\n\nconst eventListerOptions = {\n passive: true,\n};\n\nexport function useViewportSize() {\n const [windowSize, setWindowSize] = useState({\n width: 0,\n height: 0,\n });\n\n const setSize = useCallback(() => {\n setWindowSize({ width: window.innerWidth || 0, height: window.innerHeight || 0 });\n }, []);\n\n useWindowEvent('resize', setSize, eventListerOptions);\n useWindowEvent('orientationchange', setSize, eventListerOptions);\n useEffect(setSize, []);\n\n return windowSize;\n}\n","export function upperFirst(value: string) {\n return typeof value !== 'string' ? '' : value.charAt(0).toUpperCase() + value.slice(1);\n}\n"],"names":["AccordionProvider","useAccordionContext","createSafeContext","defaultProps","multiple","disableChevronRotation","chevronPosition","variant","chevron","jsx","AccordionChevron","varsResolver","createVarsResolver","_","transitionDuration","chevronSize","radius","param","root","concat","rem","getRadius","Accordion","_props","props","useProps","classNames","className","style","styles","unstyled","vars","children","value","defaultValue","onChange","id","loop","order","others","uid","useId","_value","handleChange","useUncontrolled","finalValue","getStyles","useStyles","name","classes","isItemActive","Array","isArray","includes","itemValue","filter","selectedValue","getControlId","getSafeId","getRegionId","Box","extend","c","withProps","getWithProps","displayName","Item","AccordionItem","Panel","AccordionPanel","Control","AccordionControl","Chevron","factory","ref","icon","onClick","onKeyDown","disabled","mod","useAccordionItemContext","ctx","isActive","shouldWrapWithHeading","Heading","content","jsxs","UnstyledButton","active","event","type","createScopedKeydownHandler","siblingSelector","parentSelector","activateOnFocus","orientation","component","rotate","position","AccordionItemProvider","Collapse","in","role","fit","Image","polymorphicFactory","onError","src","fallbackSrc","error","setError","useState","useEffect","TabsProvider","useTabsContext","VALUE_ERROR","keepMounted","activateTabWithKeyboard","allowTabDeactivation","inverted","placement","theme","color","autoContrast","getThemeColor","getAutoContrastValue","getContrastColor","Tabs","currentTab","setCurrentTab","getTabId","getPanelId","Tab","TabsTab","TabsPanel","List","TabsList","grow","justify","__vars","display","rightSection","leftSection","tabIndex","useMantineTheme","dir","useDirection","stylesApiProps","findElementAncestor","elements","from","currentTarget","querySelectorAll","target","node","current","findIndex","el","_nextIndex","getNextIndex","i","length","_previousIndex","getPreviousIndex","nextIndex","previousIndex","key","stopPropagation","preventDefault","focus","click","last","element","selector","_element","parentElement","matches","errorMessage","trim","eventListerOptions","passive","useViewportSize","windowSize","setWindowSize","width","height","setSize","useCallback","window","innerWidth","innerHeight","useWindowEvent","upperFirst","charAt","toUpperCase","slice"],"sourceRoot":""}