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jD,CACF,CAEJ,CACF,2EC5JgB,SAAApB,EAAoBuB,CAAA,CAAsBC,CAAkB,EAC1E,IAAIC,EAA+BF,EACnC,MAAQE,EAAWA,EAASC,aAAA,GAAkB,CAACD,EAASE,OAAA,CAAQH,KACzD,OAAAC,CACT,iECLgB,SAAAjD,EAAUP,CAAA,CAAa2D,CAAsB,EAC3D,OAAO,IACL,GAAI,iBAAOtG,GAAsBA,IAAAA,EAAMuG,IAAK,GAAE9G,MAAA,CACtC,YAAU6G,GAGX,SAAUtG,MAAAA,CAAP2C,EAAG,KAAShD,MAAA,CAALK,EACnB,CACF,yDCPA,IAAAwG,EAAeC,CAAAA,EAAAA,QAAAA,CAAAA,EAAqB,UAAW,IAAK,QAAS,CAAC,CAAC,OAAO,CAAC,EAAI,eAAe,IAAM,SAAQ,CAAE,CAAC,OAAO,CAAC,EAAI,aAAa,IAAM,OAAQ,EAAC,CAAC","sources":["webpack://_N_E/../../components/Stepper/Stepper.context.ts","webpack://_N_E/../../components/Stepper/Stepper.tsx","webpack://_N_E/../../../../src/components/Stepper/StepperCompleted/StepperCompleted.tsx","webpack://_N_E/../../../../src/components/Stepper/StepperStep/StepperStep.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/../../icons/IconX.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { StepperFactory } from './Stepper';\n\ninterface StepperContextValue {\n getStyles: GetStylesApi;\n orientation: 'horizontal' | 'vertical' | undefined;\n iconPosition: 'left' | 'right' | undefined;\n}\n\nexport const [StepperProvider, useStepperContext] = createSafeContext(\n 'Stepper component was not found in tree'\n);\n","import { Children, cloneElement } from 'react';\nimport {\n Box,\n BoxProps,\n createVarsResolver,\n ElementProps,\n factory,\n Factory,\n getAutoContrastValue,\n getContrastColor,\n getFontSize,\n getRadius,\n getSize,\n getSpacing,\n getThemeColor,\n MantineColor,\n MantineRadius,\n MantineSize,\n MantineSpacing,\n rem,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport { StepperProvider } from './Stepper.context';\nimport { StepperCompleted, StepperCompletedProps } from './StepperCompleted/StepperCompleted';\nimport { StepperStep, StepperStepProps } from './StepperStep/StepperStep';\nimport classes from './Stepper.module.css';\n\nexport type StepFragmentComponent = React.FC<{ step: number }>;\n\nexport type StepperStylesNames =\n | 'root'\n | 'separator'\n | 'steps'\n | 'content'\n | 'step'\n | 'stepLoader'\n | 'verticalSeparator'\n | 'stepWrapper'\n | 'stepIcon'\n | 'stepCompletedIcon'\n | 'stepBody'\n | 'stepLabel'\n | 'stepDescription';\n\nexport type StepperCssVariables = {\n root:\n | '--stepper-color'\n | '--stepper-icon-color'\n | '--stepper-icon-size'\n | '--stepper-content-padding'\n | '--stepper-radius'\n | '--stepper-fz'\n | '--stepper-spacing';\n};\n\nexport interface StepperProps\n extends BoxProps,\n StylesApiProps,\n ElementProps<'div'> {\n /** components */\n children: React.ReactNode;\n\n /** Called when step is clicked */\n onStepClick?: (stepIndex: number) => void;\n\n /** Index of the active step */\n active: number;\n\n /** Step icon, default value is step index + 1 */\n icon?: React.ReactNode | StepFragmentComponent;\n\n /** Step icon displayed when step is completed, check icon by default */\n completedIcon?: React.ReactNode | StepFragmentComponent;\n\n /** Step icon displayed when step is in progress, default value is step index + 1 */\n progressIcon?: React.ReactNode | StepFragmentComponent;\n\n /** Key of `theme.colors` or any valid CSS color, controls colors of active and progress steps, `theme.primaryColor` by default */\n color?: MantineColor;\n\n /** Controls size of the step icon, by default icon size is inferred from `size` prop */\n iconSize?: number | string;\n\n /** Key of `theme.spacing` or any valid CSS value to set `padding-top` of the content */\n contentPadding?: MantineSpacing;\n\n /** Stepper orientation, `'horizontal'` by default */\n orientation?: 'vertical' | 'horizontal';\n\n /** Icon position relative to the step body, `'left'` by default */\n iconPosition?: 'right' | 'left';\n\n /** Controls size of various Stepper elements */\n size?: MantineSize;\n\n /** Key of `theme.radius` or any valid CSS value to set steps border-radius, `\"xl\"` by default */\n radius?: MantineRadius;\n\n /** Determines whether next steps can be selected, `true` by default **/\n allowNextStepsSelect?: boolean;\n\n /** Determines whether steps should wrap to the next line if no space is available, `true` by default */\n wrap?: boolean;\n\n /** Determines whether icon color with filled variant should depend on `background-color`. 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`. */\n autoContrast?: boolean;\n}\n\nexport type StepperFactory = Factory<{\n props: StepperProps;\n ref: HTMLDivElement;\n stylesNames: StepperStylesNames;\n vars: StepperCssVariables;\n staticComponents: {\n Step: typeof StepperStep;\n Completed: typeof StepperCompleted;\n };\n}>;\n\nconst defaultProps: Partial = {\n orientation: 'horizontal',\n iconPosition: 'left',\n allowNextStepsSelect: true,\n wrap: true,\n};\n\nconst varsResolver = createVarsResolver(\n (theme, { color, iconSize, size, contentPadding, radius, autoContrast }) => ({\n root: {\n '--stepper-color': color ? getThemeColor(color, theme) : undefined,\n '--stepper-icon-color': getAutoContrastValue(autoContrast, theme)\n ? getContrastColor({ color, theme, autoContrast })\n : undefined,\n '--stepper-icon-size':\n iconSize === undefined ? getSize(size, 'stepper-icon-size') : rem(iconSize),\n '--stepper-content-padding': getSpacing(contentPadding),\n '--stepper-radius': radius === undefined ? undefined : getRadius(radius),\n '--stepper-fz': getFontSize(size),\n '--stepper-spacing': getSpacing(size),\n },\n })\n);\n\nexport const Stepper = factory((_props, ref) => {\n const props = useProps('Stepper', defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n children,\n onStepClick,\n active,\n icon,\n completedIcon,\n progressIcon,\n color,\n iconSize,\n contentPadding,\n orientation,\n iconPosition,\n size,\n radius,\n allowNextStepsSelect,\n wrap,\n autoContrast,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: 'Stepper',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n const convertedChildren = Children.toArray(children) as React.ReactElement[];\n const _children = convertedChildren.filter(\n (child) => child.type !== StepperCompleted\n ) as React.ReactElement[];\n const completedStep = convertedChildren.find(\n (item) => item.type === StepperCompleted\n ) as React.ReactElement;\n\n const items = _children.reduce[]>(\n (acc, item: React.ReactElement, index) => {\n const state =\n active === index ? 'stepProgress' : active > index ? 'stepCompleted' : 'stepInactive';\n\n const shouldAllowSelect = () => {\n if (typeof onStepClick !== 'function') {\n return false;\n }\n\n if (typeof item.props.allowStepSelect === 'boolean') {\n return item.props.allowStepSelect;\n }\n\n return state === 'stepCompleted' || allowNextStepsSelect;\n };\n\n const isStepSelectionEnabled = shouldAllowSelect();\n\n acc.push(\n cloneElement(item, {\n icon: item.props.icon || icon || index + 1,\n key: index,\n step: index,\n state,\n onClick: () => isStepSelectionEnabled && onStepClick?.(index),\n allowStepClick: isStepSelectionEnabled,\n completedIcon: item.props.completedIcon || completedIcon,\n progressIcon: item.props.progressIcon || progressIcon,\n color: item.props.color || color,\n iconSize,\n iconPosition: item.props.iconPosition || iconPosition,\n orientation,\n })\n );\n\n if (orientation === 'horizontal' && index !== _children.length - 1) {\n acc.push(\n \n );\n }\n\n return acc;\n },\n []\n );\n\n const stepContent = _children[active]?.props?.children;\n const completedContent = completedStep?.props?.children;\n const content = active > _children.length - 1 ? completedContent : stepContent;\n\n return (\n \n \n \n {items}\n \n {content &&
{content}
}\n \n
\n );\n});\n\nStepper.classes = classes;\nStepper.displayName = '@mantine/core/Stepper';\nStepper.Completed = StepperCompleted;\nStepper.Step = StepperStep;\n","export interface StepperCompletedProps {\n /** Label content */\n children: React.ReactNode;\n}\n\nexport const StepperCompleted: React.FC = () => null;\nStepperCompleted.displayName = '@mantine/core/StepperCompleted';\n","import {\n BoxProps,\n CompoundStylesApiProps,\n ElementProps,\n factory,\n Factory,\n getThemeColor,\n MantineColor,\n useMantineTheme,\n useProps,\n} from '../../../core';\nimport { CheckIcon } from '../../Checkbox';\nimport { Loader } from '../../Loader';\nimport { Transition } from '../../Transition';\nimport { UnstyledButton } from '../../UnstyledButton';\nimport type { StepFragmentComponent } from '../Stepper';\nimport { useStepperContext } from '../Stepper.context';\nimport classes from '../Stepper.module.css';\n\nconst getStepFragment = (\n Fragment: StepFragmentComponent | React.ReactNode,\n step: number | undefined\n) => {\n if (typeof Fragment === 'function') {\n return ;\n }\n\n return Fragment;\n};\n\nexport type StepperStepStylesNames =\n | 'step'\n | 'stepLoader'\n | 'verticalSeparator'\n | 'stepWrapper'\n | 'stepIcon'\n | 'stepCompletedIcon'\n | 'stepBody'\n | 'stepLabel'\n | 'stepDescription';\n\nexport interface StepperStepProps\n extends BoxProps,\n CompoundStylesApiProps,\n ElementProps<'button'> {\n /** Step index, controlled by Stepper component **/\n step?: number;\n\n /** Step state, controlled by Stepper component */\n state?: 'stepInactive' | 'stepProgress' | 'stepCompleted';\n\n /** Key of `theme.colors`, by default controlled by Stepper component */\n color?: MantineColor;\n\n /** Determines whether the icon should be displayed */\n withIcon?: boolean;\n\n /** Step icon, defaults to step index + 1 when rendered within Stepper */\n icon?: React.ReactNode | StepFragmentComponent;\n\n /** Step icon displayed when step is completed */\n completedIcon?: React.ReactNode | StepFragmentComponent;\n\n /** Step icon displayed when step is in progress */\n progressIcon?: React.ReactNode | StepFragmentComponent;\n\n /** Step label, render after icon */\n label?: React.ReactNode | StepFragmentComponent;\n\n /** Step description */\n description?: React.ReactNode | StepFragmentComponent;\n\n /** Icon wrapper size */\n iconSize?: string | number;\n\n /** Icon position relative to step body, controlled by Stepper component */\n iconPosition?: 'right' | 'left';\n\n /** Indicates loading state of the step */\n loading?: boolean;\n\n /** Set to false to disable clicks on step */\n allowStepClick?: boolean;\n\n /** Should step selection be allowed */\n allowStepSelect?: boolean;\n\n /** Static selector base */\n __staticSelector?: string;\n\n /** Component orientation */\n orientation?: 'vertical' | 'horizontal';\n}\n\nexport type StepperStepFactory = Factory<{\n props: StepperStepProps;\n ref: HTMLButtonElement;\n stylesNames: StepperStepStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial = {\n withIcon: true,\n allowStepClick: true,\n iconPosition: 'left',\n};\n\nexport const StepperStep = factory((props, ref) => {\n const {\n classNames,\n className,\n style,\n styles,\n vars,\n step,\n state,\n color,\n icon,\n completedIcon,\n progressIcon,\n label,\n description,\n withIcon,\n iconSize,\n loading,\n allowStepClick,\n allowStepSelect,\n iconPosition,\n orientation,\n mod,\n ...others\n } = useProps('StepperStep', defaultProps, props);\n\n const ctx = useStepperContext();\n const theme = useMantineTheme();\n const stylesApi = { classNames, styles };\n\n const _icon = state === 'stepCompleted' ? null : state === 'stepProgress' ? progressIcon : icon;\n const dataAttributes = {\n 'data-progress': state === 'stepProgress' || undefined,\n 'data-completed': state === 'stepCompleted' || undefined,\n };\n\n return (\n \n {withIcon && (\n \n \n \n {(transitionStyles) => (\n \n {loading ? (\n \n ) : (\n getStepFragment(completedIcon, step) || \n )}\n \n )}\n \n\n {state !== 'stepCompleted' ? (\n loading ? (\n \n ) : (\n getStepFragment(_icon || icon, step)\n )\n ) : null}\n \n {orientation === 'vertical' && (\n \n )}\n \n )}\n\n {(label || description) && (\n \n {label && (\n {getStepFragment(label, step)}\n )}\n {description && (\n \n {getStepFragment(description, step)}\n \n )}\n \n )}\n \n );\n});\n\nStepperStep.classes = classes;\nStepperStep.displayName = '@mantine/core/StepperStep';\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 createReactComponent from '../createReactComponent';\nexport default createReactComponent('outline', 'x', 'IconX', [[\"path\",{\"d\":\"M18 6l-12 12\",\"key\":\"svg-0\"}],[\"path\",{\"d\":\"M6 6l12 12\",\"key\":\"svg-1\"}]]);"],"names":["StepperProvider","useStepperContext","createSafeContext","defaultProps","orientation","iconPosition","allowNextStepsSelect","wrap","varsResolver","createVarsResolver","theme","color","iconSize","size","contentPadding","radius","autoContrast","param","root","getThemeColor","getAutoContrastValue","getContrastColor","getSize","rem","getSpacing","getRadius","getFontSize","Stepper","factory","_props","ref","_children","completedStep","props","useProps","classNames","className","style","styles","unstyled","vars","children","onStepClick","active","icon","completedIcon","progressIcon","others","getStyles","useStyles","name","classes","convertedChildren","Children","toArray","filter","child","type","StepperCompleted","find","item","items","reduce","acc","index","state","isStepSelectionEnabled","allowStepSelect","push","cloneElement","key","step","onClick","allowStepClick","length","createElement","concat","stepContent","completedContent","content","jsx","value","jsxs","Box","mod","displayName","Completed","Step","StepperStep","getStepFragment","Fragment","withIcon","label","description","loading","ctx","useMantineTheme","stylesApi","_icon","dataAttributes","UnstyledButton","variant","__vars","tabIndex","Transition","mounted","transition","duration","transitionStyles","Loader","CheckIcon","TabsProvider","useTabsContext","VALUE_ERROR","keepMounted","loop","activateTabWithKeyboard","allowTabDeactivation","inverted","placement","Tabs","defaultValue","onChange","id","uid","useId","currentTab","setCurrentTab","useUncontrolled","finalValue","getTabId","getSafeId","getPanelId","Tab","TabsTab","Panel","TabsPanel","List","TabsList","grow","justify","role","display","rightSection","leftSection","onKeyDown","disabled","dir","useDirection","stylesApiProps","event","createScopedKeydownHandler","siblingSelector","parentSelector","activateOnFocus","findElementAncestor","elements","Array","from","currentTarget","querySelectorAll","target","node","current","findIndex","el","_nextIndex","getNextIndex","i","_previousIndex","getPreviousIndex","nextIndex","previousIndex","stopPropagation","preventDefault","focus","click","last","element","selector","_element","parentElement","matches","errorMessage","trim","IconX","createReactComponent"],"sourceRoot":""}