@ctlyst.id/internal-ui 4.1.15 → 4.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/components/accordion/components/accordion-eye.tsx","../src/components/accordion/components/accordion-indicator.tsx","../src/components/accordion/components/index.ts","../src/components/alert/components/alert.tsx","../src/components/alert/components/alert-context.ts","../src/components/alert/components/icons.tsx","../src/components/alert/components/alert-action.tsx","../src/components/button/components/button.tsx","../src/components/loader/components/loader.tsx","../src/components/loader/index.ts","../src/components/alert/components/alert-close.tsx","../src/components/alert/components/alert-description.tsx","../src/components/alert/components/alert-icon.tsx","../src/components/alert/components/alert-title.tsx","../src/components/anchor/components/anchor.tsx","../src/components/badge/components/badge.tsx","../src/components/breadcrumb/components/bread-crumb.tsx","../src/components/button/index.ts","../src/components/card/components/card.tsx","../src/components/checkbox/components/checkbox.tsx","../src/components/checkbox/components/checkbox-group.tsx","../src/components/field/components/field.tsx","../src/components/checkbox/index.ts","../src/components/chips/components/chips.tsx","../src/components/counter/components/counter.tsx","../src/components/form/components/input-addon.tsx","../src/components/form/components/input-element.tsx","../src/components/form/components/input-field.tsx","../src/components/form/components/textarea.tsx","../src/components/form/index.ts","../src/components/data-table/components/data-table.tsx","../src/components/datepicker/components/datepicker.tsx","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatDistance.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatLong.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatRelative.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/localize.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/match.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id.mjs","../src/utils/locale/_lib/buildLocalizeFn/index.ts","../src/utils/locale/id/index.ts","../src/components/datepicker/components/styles.tsx","../src/components/datepicker/components/time-input.tsx","../src/components/datepicker/components/datepicker-month/datepicker-month.tsx","../src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx","../src/components/dialog/components/dialog.tsx","../src/components/empty-state/components/empty-state.tsx","../src/components/empty-state/components/layout.tsx","../src/components/header/components/header.tsx","../src/components/header/components/logo.tsx","../src/components/header/components/profile.tsx","../src/components/nav-item/components/nav-item.tsx","../src/components/tooltip/components/tooltip.tsx","../src/components/header/components/switch-mode.tsx","../src/components/header/components/version.tsx","../src/components/header/utils/formatter.ts","../src/components/header/components/navbar.tsx","../src/components/image/index.ts","../src/components/layouting/index.ts","../src/components/list/index.tsx","../src/components/modal/components/modal-back-button.tsx","../src/components/modal/index.ts","../src/components/navigation/components/navigation.tsx","../src/components/navigation/components/mapping-icon.tsx","../src/components/navigation/components/navigation-bar.tsx","../src/components/pagination/components/pagination.tsx","../src/components/pagination/components/pagination-button.tsx","../src/components/pagination/components/pagination-button-trigger.tsx","../src/components/pagination/components/pagination-detail.tsx","../src/components/pagination/components/pagination-filter.tsx","../src/components/pin-input/index.ts","../src/components/popover/index.ts","../src/components/progress/index.ts","../src/components/radio/components/radio.tsx","../src/components/radio/components/radio-group.tsx","../src/components/radio/index.ts","../src/components/rating/components/rating.tsx","../src/components/select/components/select.tsx","../src/config/theme/foundations/shadows.ts","../src/config/theme/foundations/sizes.ts","../src/config/theme/foundations/spacing.ts","../src/config/theme/foundations/typography.ts","../src/components/select/components/utils.ts","../src/components/select/components/select-async.tsx","../src/components/select/components/select-async-creatable.tsx","../src/components/select/components/select-creatable.tsx","../src/components/select/components/select-with-checkbox.tsx","../src/components/sidebar/components/sidebar.tsx","../src/components/sidebar/components/sidebar-header.tsx","../src/components/sidebar/components/sidebar-menu.tsx","../src/components/switch/components/switch.tsx","../src/components/table/index.tsx","../src/components/tabs/components/tab.tsx","../src/components/tabs/index.ts","../src/components/text/index.ts","../src/components/time-input/components/index.tsx","../src/components/time-input/components/integration.tsx","../src/components/toast/components/toast.tsx","../src/components/toast/components/styles.tsx","../src/components/toast/index.ts","../src/components/uploader/components/uploader.tsx","../src/components/uploader/constants.ts","../src/components/uploader/utils/error-code.ts","../src/components/uploader/utils/handler.ts","../src/components/uploader/utils/is-ratio-equal.ts","../src/components/uploader/components/validator.ts","../src/components/index.ts","../src/config/theme/themeConfiguration.ts","../src/config/theme/components/index.ts","../src/config/theme/components/accordion.ts","../src/config/theme/components/alert.ts","../src/config/theme/components/badge.ts","../src/config/theme/components/button.ts","../src/config/theme/components/card.ts","../src/config/theme/components/checkbox.ts","../src/config/theme/components/chips.ts","../src/config/theme/components/form-label.ts","../src/config/theme/components/input.ts","../src/config/theme/components/loader.ts","../src/config/theme/components/modal.ts","../src/config/theme/components/popover.ts","../src/config/theme/components/radio.ts","../src/config/theme/components/switch.ts","../src/config/theme/components/table.ts","../src/config/theme/components/tabs.ts","../src/config/theme/components/textarea.ts","../src/config/theme/components/tooltip.ts","../src/hooks/useFetcher.ts","../src/provider/components/provider.tsx","../src/provider/index.ts","../src/hooks/index.ts","../src/index.ts"],"sourcesContent":["import { Box } from '@chakra-ui/react';\nimport { Eye } from '@ctlyst.id/internal-icon';\n// eslint-disable-next-line import/prefer-default-export, react/require-default-props\nexport const AccordionEye = ({ position = 'left' }: { position?: 'left' | 'right' }) => {\n return (\n <Box\n boxSize={4}\n className=\"eye-icon\"\n {...(position === 'right' ? { position: 'relative', zIndex: 2, display: 'none' } : {})}\n >\n <Eye size={4} />\n </Box>\n );\n};\n","import { Box, useAccordionItemState } from '@chakra-ui/react';\n// eslint-disable-next-line import/prefer-default-export\nexport const AccordionIndicator = () => {\n const { isOpen } = useAccordionItemState();\n if (isOpen) {\n return <Box position=\"absolute\" left={0} width=\"2px\" height=\"100%\" bg=\"primary.500\" />;\n }\n return null;\n};\n","export * from './accordion-eye';\nexport * from './accordion-indicator';\nexport type {\n AccordionButtonProps,\n AccordionIconProps,\n AccordionItemProps,\n AccordionPanelProps,\n AccordionProps,\n UseAccordionItemProps,\n UseAccordionItemReturn,\n UseAccordionProps,\n UseAccordionReturn,\n} from '@chakra-ui/react';\nexport {\n Accordion,\n AccordionButton,\n AccordionIcon,\n AccordionItem,\n AccordionPanel,\n AccordionProvider,\n useAccordion,\n useAccordionContext,\n useAccordionItem,\n useAccordionItemState,\n useAccordionStyles,\n} from '@chakra-ui/react';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps, SystemStyleObject, ThemingProps } from '@chakra-ui/system';\nimport { chakra, forwardRef, omitThemingProps, useMultiStyleConfig } from '@chakra-ui/system';\nimport React from 'react';\n\nimport type { AlertStatus } from './alert-context';\nimport { AlertProvider, AlertStylesProvider, getStatusColorScheme } from './alert-context';\n\ninterface AlertOptions {\n /**\n * The status of the alert\n * @default \"info\"\n */\n status?: AlertStatus;\n}\nexport type AlertVariant = 'solid' | 'light';\n\nexport interface AlertProps extends HTMLChakraProps<'div'>, AlertOptions, ThemingProps<'Alert'> {\n /**\n * @default false\n */\n addRole?: boolean;\n}\n\n/**\n * Alert is used to communicate the state or status of a\n * page, feature or action\n *\n * @see Docs https://chakra-ui.com/docs/components/alert\n * @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/alert/\n */\nexport const Alert = forwardRef<AlertProps, 'div'>(function Alert(props, ref) {\n const { status = 'info', addRole = true, children, ...rest } = omitThemingProps(props);\n const colorScheme = props.colorScheme ?? getStatusColorScheme(status);\n\n const styles = useMultiStyleConfig('Alert', { ...props, colorScheme });\n\n const alertStyles: SystemStyleObject = {\n width: '100%',\n display: 'grid',\n gridTemplateColumns: 'auto 1fr auto auto',\n alignItems: 'center',\n position: 'relative',\n overflow: 'hidden',\n ...styles.container,\n };\n\n return (\n <AlertProvider value={{ status }}>\n <AlertStylesProvider value={styles}>\n <chakra.div\n data-status={status}\n role={addRole ? 'alert' : undefined}\n ref={ref}\n {...rest}\n className={cx('chakra-alert', props.className)}\n __css={alertStyles}\n >\n {children}\n </chakra.div>\n </AlertStylesProvider>\n </AlertProvider>\n );\n});\n\nAlert.displayName = 'Alert';\n","import { createContext } from '@chakra-ui/react-context';\nimport type { SystemStyleObject } from '@chakra-ui/system';\n\nimport { CheckIcon, InfoIcon, WarningIcon } from './icons';\n\nexport const [AlertProvider, useAlertContext] = createContext<AlertContext>({\n name: 'AlertContext',\n hookName: 'useAlertContext',\n providerName: '<Alert />',\n});\n\nexport const [AlertStylesProvider, useAlertStyles] = createContext<Record<string, SystemStyleObject>>({\n name: `AlertStylesContext`,\n hookName: `useAlertStyles`,\n providerName: '<Alert />',\n});\n\nconst STATUSES = {\n info: { icon: InfoIcon, colorScheme: 'info' },\n warning: { icon: InfoIcon, colorScheme: 'warning' },\n success: { icon: CheckIcon, colorScheme: 'success' },\n error: { icon: WarningIcon, colorScheme: 'danger' },\n neutral: { icon: InfoIcon, colorScheme: 'neutral' },\n};\n\nexport function getStatusColorScheme(status: AlertStatus) {\n return STATUSES[status].colorScheme;\n}\n\nexport function getStatusIcon(status: AlertStatus) {\n return STATUSES[status].icon;\n}\n\nexport type AlertStatus = keyof typeof STATUSES;\n\nexport interface AlertContext {\n status: AlertStatus;\n}\n","/* eslint-disable react/require-default-props */\nimport { AlertTriangle, CheckCircle, Info } from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nexport function CheckIcon() {\n return <CheckCircle color=\"inherit\" size={4} />;\n}\n\nexport function InfoIcon() {\n return <Info color=\"inherit\" size={4} />;\n}\n\nexport function WarningIcon() {\n return <AlertTriangle color=\"inherit\" size={4} />;\n}\n","/* eslint-disable import/prefer-default-export */\nimport { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\n\nimport Button from '../../button/components/button';\nimport { useAlertStyles } from './alert-context';\n\nexport type AlertActionProps = HTMLChakraProps<'button'>;\n\nexport function AlertAction({ children, className }: AlertActionProps) {\n const styles = useAlertStyles();\n const css = styles.action;\n\n return (\n <Button\n data-test-id=\"alert-action\"\n className={cx('chakra-alert__action', className)}\n variant=\"link\"\n fontWeight=\"semibold\"\n textStyle=\"text.xs\"\n __css={css}\n >\n {children}\n </Button>\n );\n}\n\nAlertAction.displayName = 'AlertAction';\n","/* eslint-disable test-selectors/button */\nimport type { ButtonProps as ButtonChakraProps } from '@chakra-ui/react';\nimport { Button as ButtonChakra, forwardRef } from '@chakra-ui/react';\nimport React from 'react';\n\nimport { Loader } from '../../loader';\n\nexport type ButtonProps = ButtonChakraProps;\n\nconst Button = forwardRef<ButtonProps, 'button'>((props, ref) => {\n const { children, variant, size, ...rest } = props;\n\n const getLoaderSize = () => {\n if (size === 'lg') return 'md';\n if (size === 'md') return 'sm';\n return 'xs';\n };\n\n const getLoaderColor = () => {\n if (variant === 'primary' || variant === 'danger') return 'white';\n if (variant === 'outline-danger') return 'danger';\n return 'primary';\n };\n\n return (\n <ButtonChakra\n size={size}\n variant={variant}\n spinner={<Loader size={getLoaderSize()} color={getLoaderColor()} />}\n ref={ref}\n {...rest}\n >\n {children}\n </ButtonChakra>\n );\n});\n\nexport default Button;\n","import type { HTMLChakraProps, ThemingProps } from '@chakra-ui/react';\nimport { Box, forwardRef, useStyleConfig } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface LoaderProps {\n size?: string;\n variant?: string;\n thickness?: string;\n}\n\nexport interface CustomLoaderProps\n extends HTMLChakraProps<'span'>,\n Omit<ThemingProps, 'size' | 'variant'>,\n LoaderProps {}\n\nconst Loader = forwardRef<CustomLoaderProps, 'div'>((props: CustomLoaderProps, ref) => {\n const styles = useStyleConfig('LoaderStyle', props);\n\n return <Box ref={ref} __css={styles} />;\n});\n\nLoader.defaultProps = {\n size: 'md',\n};\n\nexport default Loader;\n","export { default as Loader } from './components/loader';\nexport * from './components/loader';\nexport { Skeleton } from '@chakra-ui/react';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\nimport { chakra } from '@chakra-ui/system';\nimport { Close } from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nimport { useAlertStyles } from './alert-context';\n\nexport type AlertCloseProps = HTMLChakraProps<'span'>;\n\nexport function AlertClose({ className, children, ...rest }: AlertCloseProps) {\n const styles = useAlertStyles();\n const css = styles.close;\n\n return (\n <chakra.span\n display=\"inherit\"\n data-status={'alert-close'}\n {...rest}\n className={cx('chakra-alert__close', className)}\n __css={css}\n >\n {children || <Close color=\"inherit\" size={4} />}\n </chakra.span>\n );\n}\n\nAlertClose.displayName = 'AlertClose';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps, SystemStyleObject } from '@chakra-ui/system';\nimport { chakra, forwardRef } from '@chakra-ui/system';\nimport React from 'react';\n\nimport { useAlertContext, useAlertStyles } from './alert-context';\n\nexport type AlertDescriptionProps = HTMLChakraProps<'div'>;\n\nexport const AlertDescription = forwardRef<AlertDescriptionProps, 'div'>(function AlertDescription(props, ref) {\n const styles = useAlertStyles();\n const { status } = useAlertContext();\n const descriptionStyles: SystemStyleObject = {\n display: 'inline',\n ...styles.description,\n };\n\n return (\n <chakra.div\n ref={ref}\n data-status={status}\n {...props}\n className={cx('chakra-alert__desc', props.className)}\n __css={descriptionStyles}\n />\n );\n});\n\nAlertDescription.displayName = 'AlertDescription';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\nimport { chakra } from '@chakra-ui/system';\nimport React from 'react';\n\nimport { getStatusIcon, useAlertContext, useAlertStyles } from './alert-context';\n\nexport type AlertIconProps = HTMLChakraProps<'span'>;\n\nexport function AlertIcon({ className, children, ...rest }: AlertIconProps) {\n const { status } = useAlertContext();\n const BaseIcon = getStatusIcon(status);\n const styles = useAlertStyles();\n const css = styles.icon;\n\n return (\n <chakra.span\n display=\"inherit\"\n data-status={status}\n {...rest}\n className={cx('chakra-alert__icon', className)}\n __css={css}\n >\n {children || <BaseIcon />}\n </chakra.span>\n );\n}\n\nAlertIcon.displayName = 'AlertIcon';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\nimport { chakra, forwardRef } from '@chakra-ui/system';\nimport React from 'react';\n\nimport { useAlertContext, useAlertStyles } from './alert-context';\n\nexport type AlertTitleProps = HTMLChakraProps<'div'>;\n\nexport const AlertTitle = forwardRef<AlertTitleProps, 'div'>(function AlertTitle(props, ref) {\n const styles = useAlertStyles();\n const { status } = useAlertContext();\n\n return (\n <chakra.div\n ref={ref}\n data-status={status}\n {...props}\n className={cx('chakra-alert__title', props.className)}\n __css={styles.title}\n />\n );\n});\n\nAlertTitle.displayName = 'AlertTitle';\n","import type { LinkProps } from '@chakra-ui/react';\nimport { Link } from '@chakra-ui/react';\nimport { cx } from '@chakra-ui/shared-utils';\nimport type { PropsWithChildren } from 'react';\nimport * as React from 'react';\n\nexport interface AnchorProps extends LinkProps, PropsWithChildren {\n isActive?: boolean;\n isChild?: boolean;\n}\n\nexport const Anchor = ({ children, isActive, isChild, ...props }: AnchorProps) => {\n return (\n <Link\n display=\"inline-block\"\n w=\"full\"\n p=\"4\"\n textStyle=\"text.md\"\n pl={isChild ? '10' : '4'}\n borderLeft=\"1px solid\"\n borderLeftColor={isActive ? 'primary.500' : 'neutral.400'}\n color={isActive ? 'primary.500' : 'black.high'}\n bg={isActive ? 'neutral.100' : 'white'}\n className={cx('catalyst-anchor', props.className)}\n _hover={{\n textDecoration: 'none',\n }}\n {...props}\n >\n {children}\n </Link>\n );\n};\n\nAnchor.displayName = 'Anchor';\nAnchor.defaultProps = {\n isActive: false,\n isChild: false,\n};\n\nexport default Anchor;\n","/* eslint-disable test-selectors/button */\nimport type { BadgeProps as BadgeChakraProps } from '@chakra-ui/react';\nimport { Badge as BadgeChakra } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface BadgeProps extends BadgeChakraProps {\n pill?: boolean;\n}\n\nconst Badge = (props: BadgeProps) => {\n const { children, pill, ...rest } = props;\n\n return (\n <BadgeChakra\n borderRadius={pill ? 'xl' : 'sm'}\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n textTransform=\"none\"\n {...rest}\n >\n {children}\n </BadgeChakra>\n );\n};\n\nBadge.defaultProps = {\n pill: false,\n};\n\nexport default Badge;\n","import { Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, IconButton, Text } from '@chakra-ui/react';\nimport { ChevronLeft, ChevronsRight, Home } from '@ctlyst.id/internal-icon';\nimport * as React from 'react';\n\nexport interface BreadCrumbParentProps {\n name: string;\n onClick?: () => void;\n disable?: boolean;\n link?: string;\n}\n\nexport interface BreadCrumbProps {\n title: string;\n children?: React.ReactNode;\n parents?: BreadCrumbParentProps[];\n className?: string;\n disableHome?: boolean;\n spacing?: number;\n backButton?: () => void;\n hideTitle?: boolean;\n homeButton?: () => void;\n}\n\nconst BreadCrumb: React.FC<BreadCrumbProps> = props => {\n const { title, children, parents, className, disableHome, spacing = 2, backButton, homeButton, hideTitle } = props;\n\n return (\n <Box\n data-test-id=\"CT_component_breadcrumb\"\n className={className}\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n <Box display=\"flex\" alignItems=\"center\">\n {!hideTitle && (\n <>\n <Flex gap={2} align=\"center\">\n {backButton && (\n <IconButton\n data-test-id=\"\"\n border=\"1px solid\"\n borderColor=\"neutral.100\"\n size=\"sm\"\n minH=\"9\"\n minW=\"9\"\n bg=\"white\"\n variant=\"ghost\"\n aria-label=\"Edit\"\n icon={<ChevronLeft size={5} />}\n onClick={backButton}\n />\n )}\n <Text pr=\"2\" textStyle=\"heading.6\" color=\"neutral.700\">\n {title}\n </Text>\n </Flex>\n <Box h=\"5.5\" borderLeft=\"1px solid\" borderColor=\"neutral.600\" />\n </>\n )}\n <Breadcrumb\n alignItems=\"center\"\n separator={\n <Box boxSize=\"3.5\">\n <ChevronsRight color=\"neutral.600\" size={3.5} />\n </Box>\n }\n pl=\"2\"\n pr=\"4\"\n spacing={spacing}\n >\n <BreadcrumbItem>\n <BreadcrumbLink\n data-test-id=\"\"\n alignItems=\"center\"\n href={homeButton || disableHome ? undefined : '/'}\n style={{ ...(disableHome && { cursor: 'default' }) }}\n onClick={homeButton}\n >\n <Box boxSize=\"3.5\">\n <Home size={3.5} color=\"primary.500\" />\n </Box>\n </BreadcrumbLink>\n </BreadcrumbItem>\n {parents?.map(val => (\n <BreadcrumbItem key={val.name}>\n <BreadcrumbLink\n data-test-id=\"\"\n href={!val.disable && val.link ? val.link : undefined}\n onClick={val.onClick}\n style={{\n ...(val.disable && {\n cursor: 'default',\n }),\n }}\n _hover={{ textDecoration: 'none' }}\n >\n <Text color={val.disable ? 'neutral.600' : 'primary.500'} textStyle=\"text.sm\">\n {val.name}\n </Text>\n </BreadcrumbLink>\n </BreadcrumbItem>\n ))}\n <BreadcrumbItem>\n <BreadcrumbLink _hover={{ textDecor: 'none', cursor: 'default' }}>\n <Text color=\"neutral.600\" textStyle=\"text.sm\">\n {title}\n </Text>\n </BreadcrumbLink>\n </BreadcrumbItem>\n </Breadcrumb>\n </Box>\n {children && <Box>{children}</Box>}\n </Box>\n );\n};\n\nBreadCrumb.defaultProps = {\n children: undefined,\n parents: undefined,\n className: undefined,\n disableHome: undefined,\n spacing: 2,\n backButton: undefined,\n hideTitle: false,\n};\n\nexport default BreadCrumb;\n","export { default as Button } from './components/button';\nexport * from './components/button';\nexport {\n ButtonGroup,\n ButtonGroupProps,\n CloseButton,\n CloseButtonProps,\n IconButton,\n IconButtonProps,\n} from '@chakra-ui/react';\n","import type { BoxProps } from '@chakra-ui/react';\nimport { Card, useStyleConfig } from '@chakra-ui/react';\nimport React, { forwardRef } from 'react';\n\nexport interface CardProps extends BoxProps {\n withShadow?: boolean;\n isRounded?: boolean;\n}\n\nconst CardCustom = forwardRef<HTMLDivElement, CardProps>(({ children, ...rest }, ref) => {\n const styles = useStyleConfig('Card', rest);\n\n return (\n <Card __css={styles} backgroundColor=\"white.high\" ref={ref} {...rest}>\n {children}\n </Card>\n );\n});\n\nCardCustom.defaultProps = {\n withShadow: true,\n isRounded: true,\n};\n\nexport default CardCustom;\n","/* eslint-disable no-nested-ternary */\nimport type { BoxProps, CheckboxProps } from '@chakra-ui/react';\nimport { Box, Checkbox, forwardRef, Text, useCheckbox } from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nexport interface CheckboxComponentProps extends CheckboxProps, PropsWithChildren {\n isError?: boolean;\n helpText?: string;\n errorText?: string;\n boxProps?: BoxProps;\n}\n\nconst CheckboxComponent = forwardRef<CheckboxComponentProps, 'input'>(\n ({ isError = false, helpText, errorText, boxProps, children, isDisabled, ...rest }, ref) => {\n const { state } = useCheckbox(rest);\n const variant = isError ? 'errors' : 'unstyled';\n\n return (\n <Box>\n <Box display=\"flex\" {...boxProps}>\n <Checkbox\n variant={variant}\n ref={ref}\n {...rest}\n isDisabled={isDisabled}\n color=\"white\"\n icon={\n state.isIndeterminate ? (\n <Icon.MinusLine size={3} color=\"inherit\" />\n ) : (\n <Icon.Check size={3} color=\"inherit\" />\n )\n }\n >\n {children && (\n <Text as=\"span\" display=\"block\" textStyle=\"text.sm\" color={isDisabled ? 'black.medium' : 'black.high'}>\n {children}\n </Text>\n )}\n </Checkbox>\n </Box>\n {((isError && errorText) || helpText) && (\n <Box mt=\"1\" ml=\"6\">\n {isError ? (\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"danger.500\">\n {errorText}\n </Text>\n ) : (\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"black.medium\">\n {helpText}\n </Text>\n )}\n </Box>\n )}\n </Box>\n );\n }\n);\n\nCheckboxComponent.displayName = 'Checkbox';\nCheckboxComponent.defaultProps = {\n isError: false,\n helpText: undefined,\n errorText: undefined,\n boxProps: undefined,\n};\n\nexport default CheckboxComponent;\n","/* eslint-disable no-nested-ternary */\nimport type { CheckboxGroupProps } from '@chakra-ui/react';\nimport { Box, CheckboxGroup, Stack } from '@chakra-ui/react';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { FieldProps } from '../../field';\nimport { Field } from '../../field';\n\nexport interface CheckboxGroupComponentProps extends FieldProps, CheckboxGroupProps, PropsWithChildren {\n label: string;\n helpText?: string;\n isError?: boolean;\n errorMessage?: string;\n}\n\nfunction CheckboxGroupComponent(props: CheckboxGroupComponentProps) {\n const { children, label, helpText, isError, errorMessage, ...rest } = props;\n return (\n <Field {...rest} label={label} leftHelperText={helpText} isError={isError} errorMessage={errorMessage}>\n <Box mt=\"2\" mb=\"1\">\n <CheckboxGroup {...rest}>\n <Stack spacing={[1, '16px']} direction={['column', 'row']}>\n {children}\n </Stack>\n </CheckboxGroup>\n </Box>\n </Field>\n );\n}\n\nCheckboxGroupComponent.defaultProps = {\n helpText: '',\n isError: false,\n errorMessage: '',\n};\n\nexport default CheckboxGroupComponent;\n","/* eslint-disable no-nested-ternary */\nimport type { FormControlProps } from '@chakra-ui/react';\nimport { Box, FormControl, FormErrorMessage, FormHelperText, FormLabel } from '@chakra-ui/react';\nimport type { FC, PropsWithChildren, ReactNode } from 'react';\nimport React from 'react';\n\nexport interface Props {\n id?: string;\n label?: string | ReactNode;\n isError?: boolean;\n isSuccess?: boolean;\n errorMessage?: string | ReactNode;\n leftHelperText?: string | ReactNode;\n rightHelperText?: string | ReactNode;\n isRequired?: boolean;\n isDisabled?: boolean;\n boxProps?: FormControlProps;\n}\n\nexport type FieldProps<T = unknown> = Props & T;\n\nconst Field: FC<PropsWithChildren<Props>> = props => {\n const {\n id,\n label,\n isError,\n errorMessage,\n leftHelperText,\n rightHelperText,\n isRequired,\n children,\n isSuccess,\n isDisabled,\n boxProps = {},\n } = props;\n\n const getHelperColor = () => {\n if (isError) return 'danger.500';\n if (isSuccess) return 'success.500';\n return 'black.medium';\n };\n\n const getJustifyContentHelper = () => {\n if (rightHelperText && (!leftHelperText || (isError && !errorMessage))) return 'flex-end';\n return 'space-between';\n };\n\n const helperColor = getHelperColor();\n const justifyHelper = getJustifyContentHelper();\n\n return (\n <FormControl isInvalid={isError} id={id} {...boxProps}>\n {label &&\n (typeof label === 'string' ? (\n <FormLabel mb={1} fontSize=\"text.sm\" requiredIndicator={undefined}>\n {isRequired && (\n <Box as=\"span\" color=\"danger.500\" ml={0} mr={1}>\n *\n </Box>\n )}\n {label}\n </FormLabel>\n ) : (\n label\n ))}\n\n {children}\n {((isError && errorMessage) || leftHelperText || rightHelperText) && (\n <Box display=\"flex\" width=\"full\" justifyContent={justifyHelper}>\n {!isError ? (\n leftHelperText &&\n (typeof leftHelperText === 'string' ? (\n <FormHelperText fontSize=\"text.xs\" color={helperColor} mt={1}>\n {leftHelperText}\n </FormHelperText>\n ) : (\n leftHelperText\n ))\n ) : typeof errorMessage === 'string' ? (\n <FormErrorMessage fontSize=\"text.xs\" color=\"danger.500\" mt={1}>\n {errorMessage}\n </FormErrorMessage>\n ) : (\n errorMessage\n )}\n {rightHelperText &&\n (typeof rightHelperText === 'string' ? (\n <FormHelperText fontSize=\"text.xs\" color={helperColor} mt={1}>\n {rightHelperText}\n </FormHelperText>\n ) : (\n rightHelperText\n ))}\n </Box>\n )}\n </FormControl>\n );\n};\n\nField.defaultProps = {\n label: '',\n isError: false,\n isSuccess: false,\n errorMessage: undefined,\n leftHelperText: undefined,\n rightHelperText: undefined,\n isRequired: false,\n boxProps: {},\n};\n\nexport default Field;\n","export { default as Checkbox } from './components/checkbox';\nexport * from './components/checkbox';\nexport { default as CheckboxGroup } from './components/checkbox-group';\nexport * from './components/checkbox-group';\nexport {\n CheckboxGroupContext,\n CheckboxGroupProps,\n CheckboxIcon,\n CheckboxIconProps,\n CheckboxState,\n useCheckbox,\n useCheckboxGroup,\n UseCheckboxGroupProps,\n UseCheckboxGroupReturn,\n UseCheckboxProps,\n UseCheckboxReturn,\n} from '@chakra-ui/react';\n","/* eslint-disable react/require-default-props */\nimport { Tag, TagCloseButton, TagLabel } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface ChipsProps {\n isDisabled?: boolean;\n isActive?: boolean;\n onClose?: () => void;\n label?: string;\n size?: 'sm' | 'md';\n onClick?: () => void;\n}\n\nconst Chips = ({ label, size, onClick, ...rest }: ChipsProps) => {\n const { isActive, isDisabled, onClose } = rest;\n\n const variant = isDisabled ? 'disabled' : 'outline';\n\n const handleClose = (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n if (onClose) {\n e.stopPropagation();\n onClose();\n }\n };\n\n return (\n <Tag\n data-test-id=\"\"\n onClick={onClick}\n size={size}\n key={size}\n borderRadius=\"full\"\n variant={isActive ? 'solid' : variant}\n >\n <TagLabel>{label}</TagLabel>\n {onClose && <TagCloseButton data-test-id=\"\" onClick={handleClose} />}\n </Tag>\n );\n};\n\nChips.defaultProps = {\n isDisabled: false,\n isActive: false,\n onClose: undefined,\n label: undefined,\n size: 'sm',\n};\n\nexport default Chips;\n","/* eslint-disable react/require-default-props */\nimport { Box, HStack, IconButton, Text } from '@chakra-ui/react';\nimport React, { useCallback } from 'react';\nimport { FiMinus, FiPlus } from 'react-icons/fi';\n\nimport { InputField } from '../../form';\n\nexport interface CounterProps {\n value: number;\n size?: string;\n min?: number;\n max?: number;\n onChange: (val: number) => void;\n isError?: boolean;\n disabled?: boolean;\n error?: string | React.ReactNode;\n helperText?: string | React.ReactNode;\n isReadOnly?: boolean;\n}\n\nconst Counter = ({\n value,\n size = 'xs',\n min = 0,\n max = 9999,\n onChange,\n isError = false,\n disabled = false,\n error = '',\n helperText = '',\n isReadOnly = false,\n}: CounterProps) => {\n const decrement = () => {\n onChange(value - 1);\n };\n\n const increment = () => {\n onChange(value + 1);\n };\n\n const handleChangeInput = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const inputValue = e.target.value;\n const cleanedInputValue = inputValue.replace(/^0+/, '') || '0';\n const parsedValue = parseInt(cleanedInputValue, 10);\n const newValue = Math.max(Math.min(parsedValue, max), min);\n e.target.value = newValue.toString();\n\n onChange(newValue);\n },\n [onChange, max, min]\n );\n\n return (\n <Box>\n <HStack gap=\"1\">\n <IconButton\n aria-label=\"minus\"\n data-test-id=\"CT_Component_Counter_decrement\"\n onClick={decrement}\n isDisabled={disabled || +value <= min}\n size={size}\n icon={<FiMinus />}\n />\n <InputField\n data-test-id=\"CT_Component_Counter_input\"\n value={value}\n isError={isError}\n isDisabled={disabled || max === 0}\n textAlign=\"center\"\n size={size}\n min={min}\n max={max}\n onChange={handleChangeInput}\n isReadOnly={isReadOnly}\n width={11.5}\n type=\"number\"\n onFocus={e => e.target.select()}\n borderColor={isError ? 'danger.500' : 'neutral.400'}\n />\n <IconButton\n aria-label=\"plus\"\n data-test-id=\"CT_Component_Counter_decrement\"\n onClick={increment}\n isDisabled={disabled || +value >= max}\n size={size}\n icon={<FiPlus />}\n />\n </HStack>\n {!isError ? (\n <Text mt={1} color=\"black.medium\" textStyle={'text.xs'}>\n {helperText}\n </Text>\n ) : (\n <Text mt={1} color=\"danger.500\" textStyle={'text.xs'}>\n {error}\n </Text>\n )}\n </Box>\n );\n};\n\nexport default Counter;\n","import { InputLeftAddon, InputRightAddon } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface InputAddonProps {\n children: React.ReactNode;\n}\n\nexport const InputAddonLeft = ({ children, ...props }: InputAddonProps) => {\n return (\n <InputLeftAddon backgroundColor=\"neutral.200\" px={3} py={2.5} style={{ border: 0, marginInlineEnd: 0 }} {...props}>\n {children}\n </InputLeftAddon>\n );\n};\n\nexport const InputAddonRight = ({ children, ...props }: InputAddonProps) => {\n return (\n <InputRightAddon\n backgroundColor=\"neutral.200\"\n px={3}\n py={2.5}\n style={{ border: 0, marginInlineStart: 0 }}\n {...props}\n >\n {children}\n </InputRightAddon>\n );\n};\n","export { InputLeftElement as InputElementLeft } from '@chakra-ui/react';\nexport { InputRightElement as InputElementRight } from '@chakra-ui/react';\n","import type { InputProps as ChakraInputProps } from '@chakra-ui/react';\nimport { Box, Input as ChakraInput, InputGroup } from '@chakra-ui/react';\nimport { Close, Eye, EyeOff } from '@ctlyst.id/internal-icon';\nimport type { ReactNode } from 'react';\nimport React, { useMemo, useState } from 'react';\n\nimport type { FieldProps } from '../../field/components/field';\nimport Field from '../../field/components/field';\nimport { Loader } from '../../loader';\n\nexport interface InputFieldProps extends ChakraInputProps, FieldProps {\n addOnLeft?: ReactNode;\n addOnRight?: ReactNode;\n withClear?: boolean;\n isLoading?: boolean;\n onClear?: () => void;\n}\n\nconst InputField = React.forwardRef<HTMLInputElement, InputFieldProps>((props, ref) => {\n const {\n value,\n type,\n addOnLeft,\n addOnRight,\n size,\n isRequired,\n label,\n isError,\n isSuccess,\n isDisabled,\n errorMessage,\n leftHelperText,\n rightHelperText,\n withClear,\n onClear,\n isLoading,\n ...inputProps\n } = props;\n\n const getProperties = () => {\n let outlineColor = 'neutral.400';\n let focusColor = 'primary.500';\n\n if (isError || isDisabled || isSuccess) {\n if (isError) outlineColor = 'danger.500';\n else if (isSuccess) outlineColor = 'success.500';\n focusColor = outlineColor;\n }\n\n return {\n outlineColor,\n focusColor,\n };\n };\n\n const [isShowPassword, setIsShowPassword] = useState(false);\n\n const inputType = useMemo(() => {\n return type === 'password' && isShowPassword ? 'text' : type;\n }, [isShowPassword, type]);\n\n const fontSize = useMemo(() => {\n if (type === 'password') {\n if (!isShowPassword && value) return 'text.xl';\n }\n return 'text.sm';\n }, [isShowPassword, type, value]);\n\n const iconColor = useMemo(() => {\n return isDisabled ? 'black.low' : 'black.medium';\n }, [isDisabled]);\n\n const { outlineColor, focusColor } = getProperties();\n return (\n <Field\n id={props.id || props.name}\n label={label}\n isSuccess={isSuccess}\n isError={isError}\n errorMessage={errorMessage}\n leftHelperText={leftHelperText}\n rightHelperText={rightHelperText}\n isRequired={isRequired}\n >\n <Box\n transition=\"all 0.15s\"\n boxShadow=\"none\"\n borderRadius=\"sm\"\n border=\"1px solid\"\n borderColor={outlineColor}\n _focusWithin={{\n borderColor: focusColor,\n }}\n >\n <InputGroup\n size={size}\n borderRadius=\"sm\"\n backgroundColor={isDisabled ? 'neutral.300' : 'white.high'}\n cursor={isDisabled ? 'not-allowed' : 'default'}\n >\n {addOnLeft}\n <ChakraInput\n ref={ref}\n type={inputType}\n value={value}\n data-test-id={`CT_Component_InputField${props.name ? `_${props.name}` : ''}`}\n isDisabled={isDisabled}\n isSuccess={isSuccess}\n {...inputProps}\n fontSize={fontSize}\n />\n {(withClear || isLoading || type === 'password') && (\n <Box\n data-test-id=\"CT_Component_ClearInput\"\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n width=\"16px\"\n mr=\"10px\"\n >\n {withClear && !isLoading && (\n <Box\n display=\"flex\"\n justifyContent=\"center\"\n onClick={!isDisabled ? onClear : undefined}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n >\n <Close size={4} color={iconColor} />\n </Box>\n )}\n {type === 'password' && !isShowPassword && !isLoading && (\n <Box\n data-test-id=\"q2Bj2G4FlamXyHuRKMZ1Q\"\n onClick={() => {\n if (!isDisabled) setIsShowPassword(true);\n }}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n display=\"flex\"\n justifyContent=\"center\"\n >\n <EyeOff size={4} color={iconColor} />\n </Box>\n )}\n {type === 'password' && isShowPassword && !isLoading && (\n <Box\n data-test-id=\"sfc2388bmeXBmdla45Ibk\"\n onClick={() => {\n if (!isDisabled) setIsShowPassword(false);\n }}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n display=\"flex\"\n justifyContent=\"center\"\n >\n <Eye size={4} color={iconColor} />\n </Box>\n )}\n {isLoading && <Loader size=\"sm\" />}\n </Box>\n )}\n {addOnRight}\n </InputGroup>\n </Box>\n </Field>\n );\n});\n\nInputField.displayName = 'InputField';\nInputField.defaultProps = {\n addOnLeft: undefined,\n addOnRight: undefined,\n withClear: undefined,\n isLoading: undefined,\n onClear: undefined,\n};\n\nexport default InputField;\n","import type { TextareaProps as ChakraTextareaProps } from '@chakra-ui/react';\nimport { Box, Textarea as ChakraTextarea } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { FieldProps } from '../../field';\nimport { Field } from '../../field';\nimport { Loader } from '../../loader';\n\nexport interface TextAreaProps extends ChakraTextareaProps, FieldProps {\n isLoading?: boolean;\n}\n\nconst TextareaField = React.forwardRef<HTMLTextAreaElement, TextAreaProps>((props, ref) => {\n const { value, isLoading, ...inputProps } = props;\n\n return (\n <Field {...inputProps}>\n <Box position=\"relative\">\n <ChakraTextarea ref={ref} value={value} {...inputProps} />\n {isLoading && (\n <Box zIndex={999} top={2} right={2} position=\"absolute\">\n <Loader size=\"sm\" />\n </Box>\n )}\n </Box>\n </Field>\n );\n});\n\nTextareaField.defaultProps = {\n isLoading: undefined,\n};\n\nexport default TextareaField;\n","export * from './components/input-addon';\nexport * from './components/input-element';\nexport { default as InputField } from './components/input-field';\nexport * from './components/input-field';\nexport { default as TextareaField } from './components/textarea';\nexport * from './components/textarea';\nexport {\n FormControl,\n FormControlProps,\n FormErrorMessage,\n FormHelperText,\n FormLabel,\n FormLabelProps,\n InputGroup,\n InputGroupProps,\n InputLeftAddon,\n InputLeftAddonProps,\n InputLeftElement,\n InputLeftElementProps,\n InputProps,\n InputRightAddon,\n InputRightAddonProps,\n InputRightElement,\n InputRightElementProps,\n RequiredIndicator,\n RequiredIndicatorProps,\n} from '@chakra-ui/react';\n","/* eslint-disable react-hooks/exhaustive-deps */\n/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable react/no-unstable-nested-components */\nimport { ChevronDownIcon, ChevronUpIcon, UpDownIcon } from '@chakra-ui/icons';\nimport type {\n BoxProps,\n SystemStyleObject,\n TableBodyProps,\n TableCellProps,\n TableColumnHeaderProps,\n TableHeadProps,\n TableProps,\n TableRowProps,\n} from '@chakra-ui/react';\nimport { Box, Checkbox, Flex, Skeleton, Table, Tbody, Td, Th, Thead, Tr, useColorModeValue } from '@chakra-ui/react';\nimport { css } from '@emotion/react';\nimport type {\n Column,\n ColumnDef,\n ColumnPinningState,\n OnChangeFn,\n RowSelectionInstance,\n RowSelectionState,\n SortingState,\n Updater,\n} from '@tanstack/react-table';\nimport { flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';\nimport * as React from 'react';\n\nexport interface TableStyleProps {\n table?: TableProps;\n tableHead?: TableHeadProps;\n tableRow?: TableRowProps;\n tableBody?: TableBodyProps;\n tableColumnHeader?: TableColumnHeaderProps;\n tableCell?: TableCellProps;\n}\nexport type DisabledRowData = { disabled?: Record<string, boolean> };\n\nexport interface DataTableProps<T> {\n container?: BoxProps;\n styles?: TableStyleProps;\n columns: ColumnDef<T>[];\n dataSource: T[] | undefined;\n isLoading?: boolean;\n withSelectedRow?: boolean | undefined;\n onSelectedRow?: (data: T[]) => void;\n onSort?: (data: SortingState) => void;\n manualSorting?: boolean;\n sortingState?: SortingState;\n sortDescFirst?: boolean;\n headerSticky?: boolean;\n columnPinning?: ColumnPinningState;\n onRowClick?: (data: T) => void;\n isRowDisabled?: (row: T) => boolean;\n}\n\nexport const isCellDisabled = (row: DisabledRowData, cellId: string) => {\n if (row.disabled) {\n return row.disabled[cellId];\n }\n return false;\n};\n\nconst getCommonPinningStyles = <T,>(column: Column<T>): SystemStyleObject => {\n const isPinned = column.getIsPinned();\n const isFirstLeftPinnedColumn = isPinned === 'left' && column.getIsFirstColumn('left');\n const isLastLeftPinnedColumn = isPinned === 'left' && column.getIsLastColumn('left');\n const isFirstRightPinnedColumn = isPinned === 'right' && column.getIsFirstColumn('right');\n const isLastRightPinnedColumn = isPinned === 'right' && column.getIsLastColumn('right');\n\n return {\n left: isPinned === 'left' ? `${column.getStart('left')}px` : undefined,\n right: isPinned === 'right' ? `${column.getAfter('right')}px` : undefined,\n position: isPinned ? 'sticky' : 'relative',\n zIndex: isPinned ? 1 : 0,\n backgroundColor: 'white',\n ...(isFirstLeftPinnedColumn\n ? {\n pl: '16px',\n }\n : { pl: '8px' }),\n ...(isLastRightPinnedColumn\n ? {\n pr: '16px',\n }\n : { pr: '8px' }),\n ...(isLastLeftPinnedColumn\n ? {\n py: '16px',\n pr: '8px',\n '&:after': {\n transition: 'all 0.3s',\n content: \"''\",\n position: 'absolute',\n width: '30px',\n right: '0px',\n bottom: '-1px',\n top: 0,\n transform: 'translateX(100%)',\n },\n '[data-pin-left=true] &:after': {\n boxShadow: 'inset 14px 0px 20px -10px #00000010',\n },\n }\n : {}),\n ...(isFirstRightPinnedColumn\n ? {\n py: '16px',\n pl: '8px',\n '&:after': {\n transition: 'all 0.3s',\n content: \"''\",\n position: 'absolute',\n width: '30px',\n left: '0%',\n top: 0,\n bottom: '-1px',\n transform: 'translateX(-100%)',\n },\n '[data-pin-right=true] &:after': {\n boxShadow: 'inset -14px 0px 20px -10px #00000010',\n },\n }\n : {}),\n };\n};\nexport type DataTableRefs<T> = Pick<RowSelectionInstance<T>, 'toggleAllRowsSelected'>;\n\nexport const useDataTable = <T,>({\n columns,\n dataSource = [],\n withSelectedRow,\n onSelectedRow,\n onSort,\n sortDescFirst,\n sortingState,\n manualSorting,\n columnPinning,\n}: DataTableProps<T>) => {\n const [isFirstLoad, setIsFirstLoad] = React.useState<boolean>(true);\n const [sorting, setSorting] = React.useState<SortingState>(sortingState ?? []);\n const [rowSelection, onRowSelectionChange] = React.useState<RowSelectionState>({});\n const dataColumns = React.useMemo<ColumnDef<T>[]>(() => columns, [columns]);\n const checkboxColumn = React.useMemo<ColumnDef<T>[]>(\n () => [\n {\n id: 'select',\n size: 32,\n header: ({ table }) => (\n <Checkbox\n data-test-id=\"select-header-data-table\"\n {...{\n isChecked: table.getIsAllRowsSelected(),\n isIndeterminate: table.getIsSomeRowsSelected(),\n onChange: table.getToggleAllRowsSelectedHandler(),\n }}\n />\n ),\n cell: ({ row }) => (\n <Checkbox\n data-test-id={`select-data-table-${row.index}`}\n {...{\n isChecked: row.getIsSelected(),\n isIndeterminate: row.getIsSomeSelected(),\n onChange: row.getToggleSelectedHandler(),\n }}\n />\n ),\n },\n ],\n []\n );\n\n const generateColumn = () => {\n if (withSelectedRow) {\n return [...checkboxColumn, ...dataColumns];\n }\n return dataColumns;\n };\n\n const onSortingChange: OnChangeFn<SortingState> = (data: Updater<SortingState>) => {\n setSorting(data);\n };\n\n const table = useReactTable({\n data: dataSource,\n columns: generateColumn(),\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n manualPagination: true,\n manualSorting,\n sortDescFirst,\n state: {\n sorting,\n rowSelection,\n ...(columnPinning ? { columnPinning } : {}),\n },\n onRowSelectionChange,\n onSortingChange,\n });\n\n const { getSelectedRowModel, toggleAllRowsSelected } = table;\n const { flatRows } = getSelectedRowModel();\n React.useEffect(() => {\n const rowData = flatRows.map(row => row.original);\n if (onSelectedRow) {\n onSelectedRow(rowData);\n }\n }, [flatRows]);\n\n React.useEffect(() => {\n if (onSort && !isFirstLoad) {\n onSort(sorting);\n }\n }, [sorting]);\n\n React.useEffect(() => {\n setIsFirstLoad(false);\n }, []);\n return {\n table,\n toggleAllRowsSelected,\n generateColumn,\n };\n};\n\nconst DataTable = React.forwardRef(<T,>(props: DataTableProps<T>, ref?: React.Ref<DataTableRefs<T>>) => {\n const { isLoading, styles, headerSticky, onRowClick, container, columnPinning, isRowDisabled } = props;\n const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);\n const refTable = React.useRef<HTMLDivElement>(null);\n React.useImperativeHandle(ref, () => ({\n toggleAllRowsSelected,\n }));\n const tableResizeHandler = () => {\n if (refTable.current?.offsetWidth === refTable.current?.scrollWidth) {\n refTable.current?.removeAttribute('data-pin-right');\n refTable.current?.removeAttribute('data-pin-left');\n } else {\n refTable.current?.setAttribute('data-pin-right', 'true');\n }\n };\n\n let lastPinnedColumn = 0;\n React.useEffect(() => {\n refTable.current?.addEventListener('scroll', s => {\n const element = s.currentTarget as HTMLDivElement;\n if (element.scrollLeft > 0) {\n refTable.current?.setAttribute('data-pin-left', 'true');\n } else {\n refTable.current?.removeAttribute('data-pin-left');\n }\n\n if (element.scrollLeft < element.scrollWidth - (lastPinnedColumn + element.offsetWidth)) {\n refTable.current?.setAttribute('data-pin-right', 'true');\n } else {\n refTable.current?.removeAttribute('data-pin-right');\n }\n });\n\n window.addEventListener('resize', tableResizeHandler);\n return () => {\n window.removeEventListener('resize', tableResizeHandler);\n };\n }, []);\n\n const hasScroll =\n refTable?.current?.offsetWidth &&\n refTable?.current?.scrollWidth &&\n refTable?.current?.offsetWidth < refTable?.current?.scrollWidth;\n\n return (\n <Box\n overflowX=\"auto\"\n overflowY=\"hidden\"\n position=\"relative\"\n pl={columnPinning?.left?.length ? 0 : 4}\n pr={columnPinning?.right?.length ? 0 : 4}\n maxW=\"100%\"\n w=\"full\"\n ref={refTable}\n {...(columnPinning?.right?.length && hasScroll ? { 'data-pin-right': true } : {})}\n {...container}\n >\n {isLoading ? (\n <Table {...styles?.table} data-loading=\"true\">\n <Thead {...(styles?.tableHead, headerSticky ? { position: 'sticky', top: 0, bg: 'white', zIndex: 1 } : {})}>\n {table.getHeaderGroups().map(headerGroup => (\n <Tr mx=\"2\" key={headerGroup.id} {...styles?.tableRow}>\n {headerGroup.headers.map((header, index) => (\n <Th\n key={header.id}\n colSpan={header.colSpan}\n width={`${header.getSize()}px`}\n {...styles?.tableColumnHeader}\n >\n <Flex\n data-test-id=\"CT_component_data-table_loader\"\n textTransform=\"capitalize\"\n align=\"center\"\n gap={2}\n >\n {flexRender(header.column.columnDef.header, header.getContext())}\n </Flex>\n </Th>\n ))}\n </Tr>\n ))}\n </Thead>\n\n <Tbody>\n {[...Array(5)].map(num => (\n <Tr mx=\"2\" key={num}>\n {[...Array(generateColumn().length)].map(i => (\n <Td key={i} width={210}>\n <Skeleton startColor=\"neutral.100\" endColor=\"neutral.200\" key={i} h=\"20px\" w=\"70%\" />\n </Td>\n ))}\n </Tr>\n ))}\n </Tbody>\n </Table>\n ) : (\n <Table {...styles?.table}>\n <Thead\n maxH=\"50px\"\n {...(styles?.tableHead, headerSticky ? { position: 'sticky', top: 0, bg: 'white', zIndex: 1 } : {})}\n >\n {table.getHeaderGroups().map(headerGroup => (\n <Tr key={headerGroup.id} bg={useColorModeValue('initial', 'ebony-clay.700')} {...styles?.tableRow}>\n {headerGroup.headers.map((header, index) => {\n if (!!columnPinning?.right?.length && header.column.getIsFirstColumn('right')) {\n lastPinnedColumn = header.column.getAfter('right');\n }\n return (\n <Th\n key={header.id}\n colSpan={header.colSpan}\n sx={getCommonPinningStyles(header.column)}\n width={`${header.getSize()}px`}\n {...styles?.tableColumnHeader}\n >\n <Flex\n backgroundColor=\"white\"\n height={'100%'}\n data-test-id={`CT_Container_TableHeader_${header.id}`}\n textTransform=\"capitalize\"\n userSelect=\"none\"\n align=\"center\"\n gap={2}\n >\n {flexRender(header.column.columnDef.header, header.getContext())}\n {(header.column.getCanSort() &&\n {\n asc: <ChevronUpIcon h={4} w={4} color=\"neutral.500\" />,\n desc: <ChevronDownIcon h={4} w={4} color=\"neutral.500\" />,\n }[header.column.getIsSorted() as string]) ?? (\n <Box\n as=\"span\"\n cursor={header.column.getCanSort() ? 'pointer' : 'default'}\n data-test-id={`CT_Container_SortingIcon_${header.id}`}\n onClick={header.column.getToggleSortingHandler()}\n >\n <Box display=\"flex\" justifyContent=\"center\" alignItems=\"center\" boxSize={4}>\n <UpDownIcon color=\"neutral.500\" />\n </Box>\n </Box>\n )}\n </Flex>\n </Th>\n );\n })}\n </Tr>\n ))}\n </Thead>\n <Tbody {...styles?.tableBody}>\n {table.getRowModel().rows.map(row => {\n const disabledRow = isRowDisabled && isRowDisabled(row.original);\n\n return (\n <Tr\n data-test-id=\"-RU0hNYGRzeVM3HQ4cXHl\"\n tabindex=\"0\"\n key={row.id}\n {...styles?.tableRow}\n aria-disabled={disabledRow}\n css={css`\n &:last-child {\n td {\n border-bottom: none;\n }\n }\n `}\n cursor={disabledRow ? 'default' : 'pointer'}\n onMouseDown={e => {\n if (!disabledRow) {\n e.currentTarget?.setAttribute('data-active', 'true');\n }\n }}\n onMouseUp={e => {\n e.currentTarget?.removeAttribute('data-active');\n }}\n onClick={() => {\n if (onRowClick) {\n if (disabledRow) return;\n onRowClick(row.original);\n }\n }}\n >\n {row.getVisibleCells().map(cell => {\n const meta = cell.column.columnDef.meta as { columnStyles?: SystemStyleObject };\n const isDisabled = isCellDisabled(row.original as DisabledRowData, cell.column.id);\n return (\n <Td\n data-test-id={`CT_Component_TableCell_${cell.id}`}\n key={cell.id}\n fontSize=\"text.sm\"\n sx={getCommonPinningStyles(cell.column)}\n {...styles?.tableCell}\n >\n <Flex\n height={'100%'}\n width={'100%'}\n align=\"center\"\n opacity={isDisabled ? 0.5 : 1}\n sx={{ ...(meta && meta.columnStyles ? meta.columnStyles : {}) }}\n >\n <Flex\n tabIndex={0}\n cursor=\"auto\"\n data-test-id={`CT_Component_TableCell_Content-${cell.id}`}\n onMouseUp={e => e.stopPropagation()}\n onMouseDown={e => e.stopPropagation()}\n onClick={e => {\n e.stopPropagation();\n }}\n noOfLines={2}\n sx={{\n display: '-webkit-inline-box',\n }}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </Flex>\n </Flex>\n </Td>\n );\n })}\n </Tr>\n );\n })}\n </Tbody>\n </Table>\n )}\n </Box>\n );\n});\n\nexport default DataTable as <T>(\n props: DataTableProps<T> & {\n ref?: React.Ref<DataTableRefs<T>>;\n }\n) => JSX.Element;\n","import { FormControl, FormErrorMessage, FormHelperText, IconButton } from '@chakra-ui/react';\nimport { cx } from '@chakra-ui/shared-utils';\nimport { Calendar, Close } from '@ctlyst.id/internal-icon';\nimport { offset } from '@floating-ui/react';\nimport React from 'react';\nimport type { DatePickerProps } from 'react-datepicker';\nimport ReactDatePicker from 'react-datepicker';\n\nimport { id as idLocale } from '../../../utils/locale';\nimport { Field } from '../../field';\nimport { InputElementRight, InputField } from '../../form';\nimport Styles from './styles';\nimport TimeInput from './time-input';\n\nexport type DatepickerProps = DatePickerProps & {\n id?: string;\n isRequired?: boolean;\n label?: string;\n error?: string | React.ReactNode;\n isError?: boolean;\n helperText?: string | React.ReactNode;\n withTime?: boolean;\n onClear?: () => void;\n showMonth?: boolean;\n shortMonth?: boolean;\n timezoneLabel?: string;\n};\n\nconst Datepicker: React.FC<DatepickerProps> = ({\n id,\n label,\n error,\n isError,\n helperText,\n isRequired,\n withTime,\n value,\n name,\n onClear,\n showMonth,\n shortMonth,\n timezoneLabel,\n ...props\n}) => {\n const selected = value ? new Date(value) : undefined;\n const timezoneLabelFormat = timezoneLabel ? `${timezoneLabel}` : '';\n const dateFormat = props.dateFormat ?? withTime ? `dd MMM yyyy, HH:mm '${timezoneLabelFormat}` : 'dd MMM yyyy';\n\n const getTimeProps = (): Pick<DatePickerProps, 'showTimeInput' | 'customTimeInput' | 'timeInputLabel'> => {\n if (!withTime) return {};\n return {\n timeInputLabel: '',\n showTimeInput: true,\n customTimeInput: <TimeInput />,\n };\n };\n\n const hasMultipleMonthShow = (props?.monthsShown ?? 1) < 2;\n const component = (\n <>\n <Styles showHeader={!hasMultipleMonthShow} />\n\n <Field label={label} isRequired={isRequired} isError={isError}>\n <ReactDatePicker\n id={id}\n name={name}\n onChangeRaw={e => {\n if (props.selectsRange) e?.preventDefault();\n }}\n selected={selected}\n popperModifiers={[\n offset(4),\n {\n name: 'placement',\n fn: state => {\n const { placement, y } = state;\n\n return {\n ...state,\n y: placement.startsWith('bottom') ? y - 10 : y + 14, // condition for auto placement\n };\n },\n },\n ]}\n customInput={\n <InputField\n autoComplete=\"off\"\n isError={isError}\n name={name}\n sx={props.selectsRange ? { caretColor: 'transparent' } : {}}\n addOnRight={\n <InputElementRight alignSelf={'center'} bottom={0} flexDir=\"row-reverse\" width={'auto'} mr={2} gap={2}>\n <Calendar size={4} color={'neutral.400'} />\n {value && !props.disabled && (\n <IconButton\n data-test-id=\"H0rseVCzGIaqoLho-EPbu\"\n display={'flex'}\n alignItems={'center'}\n variant={'unstyled'}\n aria-label=\"Remove\"\n onClick={onClear}\n cursor=\"pointer\"\n size=\"sm\"\n minW={'unset'}\n icon={<Close size={4} color={'neutral.600'} />}\n />\n )}\n </InputElementRight>\n }\n />\n }\n showPopperArrow={false}\n calendarClassName={cx({ inline: props.inline })}\n dropdownMode=\"select\"\n showMonthDropdown={hasMultipleMonthShow}\n showYearDropdown={hasMultipleMonthShow}\n shouldCloseOnSelect={!(props.selectsRange || withTime)}\n useShortMonthInDropdown={showMonth ? shortMonth : false}\n dateFormat={dateFormat}\n locale={idLocale}\n {...getTimeProps()}\n {...props}\n />\n </Field>\n </>\n );\n\n if (props.inline) {\n return component;\n }\n\n return (\n <FormControl data-test-id=\"CT_Component_datepicker_wrapper\" isInvalid={isError}>\n {component}\n {!isError ? (\n <FormHelperText fontSize=\"text.xs\" mt={1}>\n {helperText}\n </FormHelperText>\n ) : (\n <FormErrorMessage fontSize=\"text.xs\" mt={1}>\n {error}\n </FormErrorMessage>\n )}\n </FormControl>\n );\n};\n\nDatepicker.defaultProps = {\n id: undefined,\n isRequired: undefined,\n label: undefined,\n error: undefined,\n isError: undefined,\n helperText: undefined,\n withTime: undefined,\n onClear: undefined,\n shortMonth: false,\n showMonth: false,\n};\n\nexport default Datepicker;\n","export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n","/* eslint-disable no-unused-vars */\n\n/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n","export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"kurang dari 1 detik\",\n other: \"kurang dari {{count}} detik\",\n },\n\n xSeconds: {\n one: \"1 detik\",\n other: \"{{count}} detik\",\n },\n\n halfAMinute: \"setengah menit\",\n\n lessThanXMinutes: {\n one: \"kurang dari 1 menit\",\n other: \"kurang dari {{count}} menit\",\n },\n\n xMinutes: {\n one: \"1 menit\",\n other: \"{{count}} menit\",\n },\n\n aboutXHours: {\n one: \"sekitar 1 jam\",\n other: \"sekitar {{count}} jam\",\n },\n\n xHours: {\n one: \"1 jam\",\n other: \"{{count}} jam\",\n },\n\n xDays: {\n one: \"1 hari\",\n other: \"{{count}} hari\",\n },\n\n aboutXWeeks: {\n one: \"sekitar 1 minggu\",\n other: \"sekitar {{count}} minggu\",\n },\n\n xWeeks: {\n one: \"1 minggu\",\n other: \"{{count}} minggu\",\n },\n\n aboutXMonths: {\n one: \"sekitar 1 bulan\",\n other: \"sekitar {{count}} bulan\",\n },\n\n xMonths: {\n one: \"1 bulan\",\n other: \"{{count}} bulan\",\n },\n\n aboutXYears: {\n one: \"sekitar 1 tahun\",\n other: \"sekitar {{count}} tahun\",\n },\n\n xYears: {\n one: \"1 tahun\",\n other: \"{{count}} tahun\",\n },\n\n overXYears: {\n one: \"lebih dari 1 tahun\",\n other: \"lebih dari {{count}} tahun\",\n },\n\n almostXYears: {\n one: \"hampir 1 tahun\",\n other: \"hampir {{count}} tahun\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"dalam waktu \" + result;\n } else {\n return result + \" yang lalu\";\n }\n }\n\n return result;\n};\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.mjs\";\n\nconst dateFormats = {\n full: \"EEEE, d MMMM yyyy\",\n long: \"d MMMM yyyy\",\n medium: \"d MMM yyyy\",\n short: \"d/M/yyyy\",\n};\n\nconst timeFormats = {\n full: \"HH.mm.ss\",\n long: \"HH.mm.ss\",\n medium: \"HH.mm\",\n short: \"HH.mm\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'pukul' {{time}}\",\n long: \"{{date}} 'pukul' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: \"eeee 'lalu pukul' p\",\n yesterday: \"'Kemarin pukul' p\",\n today: \"'Hari ini pukul' p\",\n tomorrow: \"'Besok pukul' p\",\n nextWeek: \"eeee 'pukul' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.mjs\";\n\n// All data for localization are taken from this page\n// https://www.unicode.org/cldr/charts/32/summary/id.html\nconst eraValues = {\n narrow: [\"SM\", \"M\"],\n abbreviated: [\"SM\", \"M\"],\n wide: [\"Sebelum Masehi\", \"Masehi\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"K1\", \"K2\", \"K3\", \"K4\"],\n wide: [\"Kuartal ke-1\", \"Kuartal ke-2\", \"Kuartal ke-3\", \"Kuartal ke-4\"],\n};\n\n// Note: in Indonesian, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"Mei\",\n \"Jun\",\n \"Jul\",\n \"Agt\",\n \"Sep\",\n \"Okt\",\n \"Nov\",\n \"Des\",\n ],\n\n wide: [\n \"Januari\",\n \"Februari\",\n \"Maret\",\n \"April\",\n \"Mei\",\n \"Juni\",\n \"Juli\",\n \"Agustus\",\n \"September\",\n \"Oktober\",\n \"November\",\n \"Desember\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"M\", \"S\", \"S\", \"R\", \"K\", \"J\", \"S\"],\n short: [\"Min\", \"Sen\", \"Sel\", \"Rab\", \"Kam\", \"Jum\", \"Sab\"],\n abbreviated: [\"Min\", \"Sen\", \"Sel\", \"Rab\", \"Kam\", \"Jum\", \"Sab\"],\n wide: [\"Minggu\", \"Senin\", \"Selasa\", \"Rabu\", \"Kamis\", \"Jumat\", \"Sabtu\"],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n wide: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n wide: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // Can't use \"pertama\", \"kedua\" because can't be parsed\n\n return \"ke-\" + number;\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.mjs\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.mjs\";\n\nconst matchOrdinalNumberPattern = /^ke-(\\d+)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(sm|m)/i,\n abbreviated: /^(s\\.?\\s?m\\.?|s\\.?\\s?e\\.?\\s?u\\.?|m\\.?|e\\.?\\s?u\\.?)/i,\n wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i,\n};\nconst parseEraPatterns = {\n any: [/^s/i, /^(m|e)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^K-?\\s[1234]/i,\n wide: /^Kuartal ke-?\\s?[1234]/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,\n wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^ma/i,\n /^ap/i,\n /^me/i,\n /^jun/i,\n /^jul/i,\n /^ag/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[srkjm]/i,\n short: /^(min|sen|sel|rab|kam|jum|sab)/i,\n abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i,\n wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i],\n any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|tengah m|tengah h|(di(\\swaktu)?) (pagi|siang|sore|malam))/i,\n any: /^([ap]\\.?\\s?m\\.?|tengah malam|tengah hari|(di(\\swaktu)?) (pagi|siang|sore|malam))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^pm/i,\n midnight: /^tengah m/i,\n noon: /^tengah h/i,\n morning: /pagi/i,\n afternoon: /siang/i,\n evening: /sore/i,\n night: /malam/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { formatDistance } from \"./id/_lib/formatDistance.mjs\";\nimport { formatLong } from \"./id/_lib/formatLong.mjs\";\nimport { formatRelative } from \"./id/_lib/formatRelative.mjs\";\nimport { localize } from \"./id/_lib/localize.mjs\";\nimport { match } from \"./id/_lib/match.mjs\";\n\n/**\n * @category Locales\n * @summary Indonesian locale.\n * @language Indonesian\n * @iso-639-2 ind\n * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso)\n * @author Benget Nata [@bentinata](https://github.com/bentinata)\n * @author Budi Irawan [@deerawan](https://github.com/deerawan)\n * @author Try Ajitiono [@imballinst](https://github.com/imballinst)\n */\nexport const id = {\n code: \"id\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default id;\n","import type { Day, Era, LocalizeFn, Month, Quarter } from 'date-fns';\nimport type { LocaleDayPeriod, LocaleUnitValue, LocaleWidth } from 'date-fns/locale';\n\nexport type BuildLocalizeFnArgs<\n Value extends LocaleUnitValue,\n ArgCallback extends LocalizeFnArgCallback<Value> | undefined,\n> = {\n values: LocalizePeriodValuesMap<Value>;\n defaultWidth: LocaleWidth;\n formattingValues?: LocalizePeriodValuesMap<Value>;\n defaultFormattingWidth?: LocaleWidth;\n} & (ArgCallback extends undefined\n ? { argumentCallback?: undefined }\n : { argumentCallback: LocalizeFnArgCallback<Value> });\n\n/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\nexport type LocalizeFnArgCallback<Value extends LocaleUnitValue | number> = (value: Value) => LocalizeUnitIndex<Value>;\n\n/**\n * The map of localized values for each width.\n */\nexport type LocalizePeriodValuesMap<Value extends LocaleUnitValue> = {\n [Pattern in LocaleWidth]?: LocalizeValues<Value>;\n};\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\nexport type LocalizeUnitIndex<Value extends LocaleUnitValue | number> = Value extends LocaleUnitValue\n ? keyof LocalizeValues<Value>\n : number;\n\n/**\n * Converts the unit value to the tuple of values.\n */\nexport type LocalizeValues<Value extends LocaleUnitValue> = Value extends LocaleDayPeriod\n ? Record<LocaleDayPeriod, string>\n : Value extends Era\n ? LocalizeEraValues\n : Value extends Quarter\n ? LocalizeQuarterValues\n : Value extends Day\n ? LocalizeDayValues\n : Value extends Month\n ? LocalizeMonthValues\n : never;\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\nexport type LocalizeEraValues = readonly [string, string];\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\nexport type LocalizeQuarterValues = readonly [string, string, string, string];\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\nexport type LocalizeDayValues = readonly [string, string, string, string, string, string, string];\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\nexport type LocalizeMonthValues = readonly [\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n];\n\nexport function buildLocalizeFn<\n Value extends LocaleUnitValue,\n ArgCallback extends LocalizeFnArgCallback<Value> | undefined,\n>(args: BuildLocalizeFnArgs<Value, ArgCallback>): LocalizeFn<Value> {\n return (value, options) => {\n const context = options?.context ? String(options.context) : 'standalone';\n\n let valuesArray: LocalizeValues<Value>;\n if (context === 'formatting' && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = (options?.width ? String(options.width) : defaultWidth) as LocaleWidth;\n valuesArray = (args.formattingValues[width] || args.formattingValues[defaultWidth]) as LocalizeValues<Value>;\n } else {\n const { defaultWidth } = args;\n const width = (options?.width ? String(options.width) : args.defaultWidth) as LocaleWidth;\n valuesArray = (args.values[width] || args.values[defaultWidth]) as LocalizeValues<Value>;\n }\n const index = (args.argumentCallback ? args.argumentCallback(value as Value) : value) as LocalizeUnitIndex<Value>;\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","/* eslint-disable import/prefer-default-export */\nimport { id } from 'date-fns/locale';\n\nimport { buildLocalizeFn } from '../_lib/buildLocalizeFn';\n\nconst monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'] as const,\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agu', 'Sep', 'Okt', 'Nov', 'Des'] as const,\n wide: [\n 'Januari',\n 'Februari',\n 'Maret',\n 'April',\n 'Mei',\n 'Juni',\n 'Juli',\n 'Agustus',\n 'September',\n 'Oktober',\n 'November',\n 'Desember',\n ] as const,\n};\nid.localize.month = buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide',\n});\nexport { id };\n","import { useColorMode } from '@chakra-ui/system';\nimport { Global } from '@emotion/react';\n\nconst Styles = ({ showHeader }: { showHeader: boolean }) => {\n const { colorMode } = useColorMode();\n\n return (\n <Global\n styles={`\n @charset \"UTF-8\";\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow, .react-datepicker__navigation-icon::before {\n border-color: ${colorMode === 'light' ? '#6E6B7B' : '#d0d1d2'};\n border-style: solid;\n border-width: 1px 1px 0 0;\n content: \"\";\n display: block;\n height: 7px;\n position: absolute;\n top: 13px;\n width: 7px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n margin-left: -4px;\n position: absolute;\n width: 0;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n box-sizing: content-box;\n position: absolute;\n border: 8px solid transparent;\n height: 0;\n width: 1px;\n content: \"\";\n z-index: -1;\n border-width: 8px;\n left: -8px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n border-bottom-color: #aeaeae;\n }\n\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n top: 0;\n margin-top: -8px;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n border-top: none;\n border-bottom-color: #f0f0f0;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n top: 0;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n top: -1px;\n border-bottom-color: #aeaeae;\n }\n\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n bottom: 0;\n margin-bottom: -8px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n border-bottom: none;\n border-top-color: #fff;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n bottom: 0;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before {\n bottom: -1px;\n border-top-color: #aeaeae;\n }\n\n .react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n width: 100%;\n }\n\n .react-datepicker {\n font-family: Poppins;\n background-color: ${colorMode === 'light' ? '#ffffff' : '#283046'};\n color: ${colorMode === 'light' ? '#000' : '#d0d1d2'};\n filter: drop-shadow(0px 3px 10px rgba(0, 0, 0, 0.08));\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n }\n\n .react-datepicker.inline {\n filter: none;\n }\n\n .react-datepicker--time-only .react-datepicker__triangle {\n left: 35px;\n }\n .react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n }\n .react-datepicker--time-only .react-datepicker__time,\n .react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n }\n\n .react-datepicker__triangle {\n position: absolute;\n left: 50px;\n }\n\n .react-datepicker-popper {\n z-index: 1;\n }\n .react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle, .react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle {\n left: auto;\n right: 50px;\n }\n .react-datepicker-popper[data-placement^=right] {\n padding-left: 8px;\n }\n .react-datepicker-popper[data-placement^=right] .react-datepicker__triangle {\n left: auto;\n right: 42px;\n }\n .react-datepicker-popper[data-placement^=left] {\n padding-right: 8px;\n }\n .react-datepicker-popper[data-placement^=left] .react-datepicker__triangle {\n left: 42px;\n right: auto;\n }\n\n .react-datepicker__header {\n text-align: center;\n background-color: '#ffffff';\n border-top-left-radius: 0.3rem;\n padding-top:16px;\n position: relative;\n }\n .react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n }\n .react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n }\n .react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n display: inline-block;\n margin: 0 2px;\n }\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--select {\n font-weight: 600;\n line-height: 22px;\n color: #111111;\n }\n\n .react-datepicker__current-month,\n .react-datepicker-time__header,\n .react-datepicker-year-header {\n display:${showHeader ? 'block' : 'none'};\n margin-top: 0;\n color: ${colorMode === 'light' ? '#111111' : '#d0d1d2'};\n font-size:14px;\n font-weight:600;\n }\n\n .react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n\n .react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 10px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n }\n .react-datepicker__navigation--previous {\n left: 22px;\n border:1px solid var(--chakra-colors-neutral-400);\n border-radius:4px;\n }\n .react-datepicker__navigation--next {\n right: 22px;\n border:1px solid var(--chakra-colors-neutral-400);\n border-radius:4px;\n }\n .react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n }\n .react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n }\n .react-datepicker__navigation--years-previous {\n top: 4px;\n }\n .react-datepicker__navigation--years-upcoming {\n top: -4px;\n }\n .react-datepicker__navigation:hover *::before {\n border-color: #a6a6a6;\n }\n\n .react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n }\n .react-datepicker__navigation-icon--next {\n left: -2px;\n }\n .react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -4px;\n }\n .react-datepicker__navigation-icon--previous {\n right: -2px;\n }\n .react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -4px;\n }\n\n .react-datepicker__month-container {\n float: left;\n border-radius: 8px;\n }\n\n .react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n }\n .react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n }\n .react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n }\n\n .react-datepicker__month {\n padding: 0 1rem 1rem 1rem;\n text-align: center;\n }\n .react-datepicker__month .react-datepicker__month-text,\n .react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n }\n\n .react-datepicker__input-time-container {\n width: 100%;\n }\n .react-datepicker__input-time-container .react-datepicker-time__caption {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n width: 100%;\n display: inline-block;\n }\n\n .react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n }\n .react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -72px;\n top: 0;\n }\n .react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + (1.7rem / 2));\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n color: white;\n font-weight: bold;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: ${colorMode === 'light' ? '#ccc' : '#d0d1d2'};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n }\n\n .react-datepicker__week-number {\n color: ${colorMode === 'light' ? '#ccc' : '#d0d1d2'};\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n }\n .react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n }\n .react-datepicker__week-number.react-datepicker__week-number--clickable:hover {\n border-radius: 0.3rem;\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n }\n\n .react-datepicker__day-names,\n .react-datepicker__week {\n white-space: nowrap;\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0px;\n margin-top: 8px;\n }\n\n .react-datepicker__day-name,\n .react-datepicker__day,\n .react-datepicker__time-name {\n colors: #000;\n display: inline-block;\n width: 2.25rem;\n line-height: 2.25rem;\n text-align: center;\n }\n .react-datepicker__day-name{\n color:var(--chakra-colors-black-medium)\n }\n\n .react-datepicker__month--selected, .react-datepicker__month--in-selecting-range, .react-datepicker__month--in-range,\n .react-datepicker__quarter--selected,\n .react-datepicker__quarter--in-selecting-range,\n .react-datepicker__quarter--in-range {\n border-radius: 0.3rem;\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n color: #fff;\n }\n .react-datepicker__month--selected:hover, .react-datepicker__month--in-selecting-range:hover, .react-datepicker__month--in-range:hover,\n .react-datepicker__quarter--selected:hover,\n .react-datepicker__quarter--in-selecting-range:hover,\n .react-datepicker__quarter--in-range:hover {\n background-color: ${colorMode === 'light' ? '#075331' : '#131620'};\n }\n .react-datepicker__month--disabled,\n .react-datepicker__quarter--disabled {\n color: #ccc;\n pointer-events: none;\n }\n .react-datepicker__month--disabled:hover,\n .react-datepicker__quarter--disabled:hover {\n cursor: default;\n background-color: transparent;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n cursor: pointer;\n }\n .react-datepicker__day:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-radius: 2rem;\n background-color: var(--chakra-colors-neutral-200);\n }\n .react-datepicker__day--highlighted,\n .react-datepicker__month-text--highlighted,\n .react-datepicker__quarter-text--highlighted,\n .react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n }\n .react-datepicker__day--highlighted:hover,\n .react-datepicker__month-text--highlighted:hover,\n .react-datepicker__quarter-text--highlighted:hover,\n .react-datepicker__year-text--highlighted:hover {\n background-color: #32be3f;\n }\n .react-datepicker__day--highlighted-custom-1,\n .react-datepicker__month-text--highlighted-custom-1,\n .react-datepicker__quarter-text--highlighted-custom-1,\n .react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n }\n .react-datepicker__day--highlighted-custom-2,\n .react-datepicker__month-text--highlighted-custom-2,\n .react-datepicker__quarter-text--highlighted-custom-2,\n .react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n }\n .react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n .react-datepicker__month-text--selected,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--selected,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--selected,\n .react-datepicker__year-text--in-selecting-range,\n .react-datepicker__year-text--in-range {\n border-radius: var(--chakra-radii-2xl);\n background-color: var(--chakra-colors-primary-500);\n color: #fff;\n }\n .react-datepicker__day--selected:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,\n .react-datepicker__month-text--selected:hover,\n .react-datepicker__month-text--in-selecting-range:hover,\n .react-datepicker__month-text--in-range:hover,\n .react-datepicker__quarter-text--selected:hover,\n .react-datepicker__quarter-text--in-selecting-range:hover,\n .react-datepicker__quarter-text--in-range:hover,\n .react-datepicker__year-text--selected:hover,\n .react-datepicker__year-text--in-selecting-range:hover,\n .react-datepicker__year-text--in-range:hover {\n background-color: var(--chakra-colors-primary-500);\n }\n .react-datepicker__day--keyboard-selected,\n .react-datepicker__month-text--keyboard-selected,\n .react-datepicker__quarter-text--keyboard-selected,\n .react-datepicker__year-text--keyboard-selected {\n border-radius: 2rem;\n background-color: ${colorMode === 'light' ? '#075331' : '#131620'};\n color: #fff;\n }\n .react-datepicker__day--keyboard-selected:hover,\n .react-datepicker__month-text--keyboard-selected:hover,\n .react-datepicker__quarter-text--keyboard-selected:hover,\n .react-datepicker__year-text--keyboard-selected:hover {\n background-color: ${colorMode === 'light' ? '#075331' : '#131620'};\n }\n .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range) {\n background-color: var(--chakra-colors-primary-50);\n color: ${colorMode === 'light' ? '#000' : '#d0d1d2'};\n }\n .react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range) {\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n color: ${colorMode === 'light' ? '#000' : '#d0d1d2'};\n }\n .react-datepicker__day--disabled,\n .react-datepicker__month-text--disabled,\n .react-datepicker__quarter-text--disabled,\n .react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n }\n .react-datepicker__day--disabled:hover,\n .react-datepicker__month-text--disabled:hover,\n .react-datepicker__quarter-text--disabled:hover,\n .react-datepicker__year-text--disabled:hover {\n background-color: transparent;\n }\n\n .react-datepicker__month-text.react-datepicker__month--selected:hover, .react-datepicker__month-text.react-datepicker__month--in-range:hover, .react-datepicker__month-text.react-datepicker__quarter--selected:hover, .react-datepicker__month-text.react-datepicker__quarter--in-range:hover,\n .react-datepicker__quarter-text.react-datepicker__month--selected:hover,\n .react-datepicker__quarter-text.react-datepicker__month--in-range:hover,\n .react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,\n .react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover {\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n }\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover {\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n }\n\n .react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n }\n\n .react-datepicker__year-read-view,\n .react-datepicker__month-read-view,\n .react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n }\n .react-datepicker__year-read-view:hover,\n .react-datepicker__month-read-view:hover,\n .react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n }\n .react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: #b3b3b3;\n }\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n transform: rotate(135deg);\n right: -16px;\n top: 5px;\n width: 5px;\n height: 5px;\n fill: #111111;\n\n }\n .react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n background:var(--chakra-colors-neutral-50);\n\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n }\n .react-datepicker__year-dropdown:hover,\n .react-datepicker__month-dropdown:hover,\n .react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n }\n .react-datepicker__year-dropdown--scrollable,\n .react-datepicker__month-dropdown--scrollable,\n .react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\n }\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type {\n border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n }\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: #ccc;\n }\n .react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n .react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n .react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: #b3b3b3;\n }\n .react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n .react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n .react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: #b3b3b3;\n }\n .react-datepicker__year-option--selected,\n .react-datepicker__month-option--selected,\n .react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n }\n\n .react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n }\n .react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: \"×\";\n }\n\n .react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n }\n\n .react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n }\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n }\n @media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n }\n .react-datepicker__portal .react-datepicker__current-month,\n .react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n }\n\n /** injected styles **/\n .react-datepicker__day--outside-month {\n color: ${colorMode === 'light' ? '#B9B9C3' : '#4D4D4D'};\n }\n .react-datepicker__day.react-datepicker__day--in-range {\n border-radius: 0;\n background: var(--chakra-colors-primary-50);\n color: #111111;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range,\n .react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {\n background: var(--chakra-colors-primary-500);\n color: #fff;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range {\n border-radius: 100px 0px 0px 100px;\n }\n .react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {\n border-radius: 0px 100px 100px 0px;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day.react-datepicker__day--range-end {\n border-radius: 100px;\n padding: 0;\n }\n .react-datepicker__day.react-datepicker__day--outside-month:empty {\n padding: 0;\n }\n .react-datepicker.inline .react-datepicker__header {\n background-color: inherit;\n }\n .react-datepicker__day--keyboard-selected, .react-datepicker__day--keyboard-selected:hover {\n background-color: var(--chakra-colors-primary-50);\n color: inherit;\n }\n .react-datepicker__day--today, .react-datepicker__day--today:hover {\n border-radius: 2rem;\n border-color: var(--chakra-colors-primary-500);\n border-width: 1px;\n line-height: 34px;\n }\n .react-datepicker__day--today:hover:not(.react-datepicker__day--in-range) {\n background: var(--chakra-colors-neutral-200);\n border-color:transparent;\n color:var(--chakra-colors-black-high);\n }\n .react-datepicker__day--selected.react-datepicker__day--today {\n color: white;\n background: var(--chakra-colors-primary-500);\n }\n .react-datepicker__aria-live {\n position: absolute;\n clip-path: circle(0);\n border: 0;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n width: 1px;\n white-space: nowrap;\n }\n .react-datepicker__month-select,.react-datepicker__year-select {\n background-color:transparent;\n font-size:14px;\n font-weight:600;\n text-align:center;\n }\n `}\n />\n );\n};\n\nexport default Styles;\n","import { Flex, Input, InputGroup, InputRightAddon, Text } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface TimeInputProps {\n value?: string;\n onChange?: (time: string) => void;\n label?: string;\n rightAddon?: React.ReactNode | string;\n}\n\nconst TimeInput: React.FC<TimeInputProps> = ({ value, onChange, label, rightAddon }) => {\n const [time, setTime] = React.useState(value || '00:00');\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setTime(e.target?.value || '00:00');\n if (onChange) onChange(e.target?.value || '00:00');\n };\n\n return (\n <Flex flexDir=\"column\" p={4} pt={0}>\n <Text mb={2}>{label}</Text>\n <InputGroup alignItems=\"center\" borderColor=\"neutral.400\">\n <Input\n onChange={handleChange}\n type=\"time\"\n value={time}\n data-test-id=\"CT_Component_datepicker_input_time\"\n flex={1}\n borderRadius=\"sm\"\n border=\"1px solid\"\n borderColor=\"inherit\"\n _focusWithin={{\n borderColor: 'primary.500',\n }}\n />\n {rightAddon && <InputRightAddon>{rightAddon}</InputRightAddon>}\n </InputGroup>\n </Flex>\n );\n};\n\nTimeInput.displayName = 'DatepickerTimeInput';\n\nTimeInput.defaultProps = {\n value: '00:00',\n onChange: undefined,\n label: 'Pilih Waktu',\n rightAddon: 'WIB',\n};\nexport default TimeInput;\n","import { Box, Input } from '@chakra-ui/react';\nimport { css } from '@emotion/react';\nimport type { FC } from 'react';\nimport React from 'react';\n\nexport interface DatePickerMonthProps {\n onChange: (date: string) => void;\n\n 'data-test-id'?: string;\n min: string;\n max: string;\n}\n\nconst DatePickerMonth: FC<DatePickerMonthProps> = ({ onChange, min, max, ...props }) => {\n const [date, setDate] = React.useState<string | null>(null);\n return (\n <Box\n fontSize={'12px'}\n lineHeight={'18px'}\n css={css`\n input[type='date']::-webkit-inner-spin-button,\n input[type='date']::-webkit-calendar-picker-indicator {\n display: none;\n -webkit-appearance: none;\n }\n input[value=''] {\n width: 58px;\n }\n `}\n >\n <Input\n data-test-id={props['data-test-id']}\n type=\"date\"\n width={date ? '51px' : '58px'}\n onChange={e => {\n onChange(e.target.value);\n setDate(e.target.value);\n }}\n p={'8px'}\n min={min}\n max={max}\n required\n css={css`\n border: 1px solid transparent;\n\n &:focus,\n &:hover {\n border: 1px solid transparent;\n }\n\n &::placeholder {\n color: #111111;\n }\n `}\n value={date ?? ''}\n />\n </Box>\n );\n};\n\nDatePickerMonth.defaultProps = {\n 'data-test-id': '',\n};\n\nexport default DatePickerMonth;\n","import { Box } from '@chakra-ui/react';\nimport styled from '@emotion/styled';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport DatePickerMonth from './datepicker-month';\n\nexport interface MultiDatePickerMonthProps {\n onChange: (startDate: string | null, endDate: string | null) => void;\n\n min?: string;\n max?: string;\n isError?: boolean;\n}\n\nconst MultiDateWrapper = styled(Box)<{ isError: boolean }>`\n display: flex;\n align-items: center;\n width: fit-content;\n border: 1px solid;\n box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);\n border-radius: 4px;\n border-color: ${({ isError }) => (isError ? 'var(--chakra-colors-danger-500)' : 'var(--chakra-colors-primary-500)')};\n`;\n\nconst MultiDatePickerMonth: FC<MultiDatePickerMonthProps> = ({\n onChange,\n isError = false,\n min = '2020-01-01',\n max = '2020-12-31',\n}) => {\n const [date, setDate] = React.useState<(string | null)[]>([null, null]);\n return (\n <MultiDateWrapper isError={isError}>\n <DatePickerMonth\n data-test-id=\"CT_DatePickerMonth_StartDate\"\n onChange={val => {\n onChange(val, date[1]);\n setDate([val, date[1]]);\n }}\n min={min}\n max={max}\n />\n <Box>-</Box>\n <DatePickerMonth\n data-test-id=\"CT_DatePickerMonth_EndDate\"\n onChange={val => {\n onChange(date[0], val);\n setDate([date[0], val]);\n }}\n min={min}\n max={max}\n />\n </MultiDateWrapper>\n );\n};\n\nMultiDatePickerMonth.defaultProps = {\n min: '2020-01-01',\n max: '2020-12-31',\n isError: false,\n};\n\nexport default MultiDatePickerMonth;\n","import type { ModalProps as ChakraModalProps } from '@chakra-ui/react';\nimport { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Text } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface DialogProps extends Omit<ChakraModalProps, 'children'> {\n title: string;\n content: React.ReactNode;\n footer: React.ReactNode;\n isModalOverlay?: boolean;\n width?: string;\n isOverlayClickable?: boolean;\n}\n\nconst Dialog: React.FC<DialogProps> = ({\n title,\n content,\n footer,\n isModalOverlay,\n width,\n isOverlayClickable,\n ...props\n}) => {\n return (\n <Modal {...props}>\n {isModalOverlay && <ModalOverlay pointerEvents={isOverlayClickable ? 'auto' : 'none'} />}\n\n <ModalContent bgColor=\"neutral.50\" fontFamily=\"Poppins\" width={width} minW={'400px'}>\n <ModalHeader bgColor=\"neutral.200\" py={2} px={4} borderTopRadius={'sm'}>\n <Text textStyle=\"text.lg\" fontWeight=\"normal\">\n {title}\n </Text>\n </ModalHeader>\n <ModalBody p={4} textStyle=\"text.md\">\n {content}\n </ModalBody>\n <ModalFooter bgColor=\"neutral.200\" p={4} borderBottomRadius={'sm'}>\n {footer}\n </ModalFooter>\n </ModalContent>\n </Modal>\n );\n};\n\nDialog.defaultProps = {\n isModalOverlay: true,\n width: '400px',\n isOverlayClickable: true,\n};\n\nexport default Dialog;\n","/* eslint-disable import/prefer-default-export */\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nimport type { EmptyStateProps } from './layout';\nimport BaseEmptyState from './layout';\n\nconst EmptyStateData: React.FC<EmptyStateProps> = ({\n title = 'Belum ada data',\n description = 'Jika data tersedia, akan tampil di sini.',\n icon = <Icon.ImgFolder size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStatePage: React.FC<EmptyStateProps> = ({\n title = 'Halaman tidak ditemukan',\n description = 'Halaman yang dituju mungkin\\n telah berubah atau dihapus.',\n icon = <Icon.Img404 size={110} />,\n buttonText = 'Kembali ke Home',\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} buttonText={buttonText} {...rest} />;\n};\n\nconst EmptyStateFilter: React.FC<EmptyStateProps> = ({\n title = 'Halaman filter tidak ditemukan',\n description = 'Coba ubah atau reset filter.',\n icon = <Icon.ImgNotFound size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStateSearch: React.FC<EmptyStateProps> = ({\n title = 'Pencarian tidak ditemukan',\n description = 'Keyword yang dicari tidak ditemukan.\\n Coba gunakan keyword lainnya.',\n icon = <Icon.ImgNotFound size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStateNoConnection: React.FC<EmptyStateProps> = ({\n title = 'Koneksi terputus',\n description = 'Silakan cek koneksi internet Anda\\n dan coba lagi.',\n icon = <Icon.ImgLostConnection size={110} />,\n buttonText,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} buttonText={buttonText} />;\n};\n\nconst EmptyStateMaintenance: React.FC<EmptyStateProps> = ({\n title = 'Sistem dalam perbaikan',\n description = 'Silakan cek kembali nanti.',\n icon = <Icon.ImgWarning size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStateNotAuthorize: React.FC<EmptyStateProps> = ({\n title = 'Halaman tidak dapat diakses',\n description = 'Anda tidak memiliki izin untuk mengakses halaman ini.',\n icon = <Icon.ImgWarning size={110} />,\n buttonText = 'Kembali ke Home',\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} buttonText={buttonText} />;\n};\n\ntype EmptyStateComponent = React.FC<EmptyStateProps> & {\n Data: React.FC<EmptyStateProps>;\n Page: React.FC<EmptyStateProps>;\n Filter: React.FC<EmptyStateProps>;\n Search: React.FC<EmptyStateProps>;\n NoConnection: React.FC<EmptyStateProps>;\n Maintenance: React.FC<EmptyStateProps>;\n NotAuthorize: React.FC<EmptyStateProps>;\n};\n\nconst EmptyState = BaseEmptyState as EmptyStateComponent;\n\nEmptyState.Data = EmptyStateData;\nEmptyState.Page = EmptyStatePage;\nEmptyState.Filter = EmptyStateFilter;\nEmptyState.Search = EmptyStateSearch;\nEmptyState.NoConnection = EmptyStateNoConnection;\nEmptyState.Maintenance = EmptyStateMaintenance;\nEmptyState.NotAuthorize = EmptyStateNotAuthorize;\n\nexport default EmptyState;\n","/* eslint-disable react/no-unused-prop-types */\n/* eslint-disable react/require-default-props */\nimport { Box, Button, Flex, Text, VStack } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface EmptyStateProps {\n icon?: React.ReactNode;\n title?: string;\n description?: string;\n buttonText?: string;\n onClick?: () => void;\n}\n\nconst EmptyState = (props: EmptyStateProps) => {\n const { icon, title, description, buttonText, onClick } = props;\n\n const handleClick = () => {\n if (onClick) {\n onClick();\n }\n };\n\n return (\n <Flex align=\"center\" justify=\"center\">\n <VStack textAlign=\"center\">\n {icon}\n\n <VStack spacing={2} textAlign=\"center\" mt={3}>\n <Text textStyle=\"text.lg\" fontWeight=\"bold\">\n {title}\n </Text>\n <Text textStyle=\"text.md\" color=\"black.medium\" whiteSpace=\"pre-wrap\">\n {description}\n </Text>\n </VStack>\n\n {buttonText && (\n <Box mt={3}>\n <Button size=\"lg\" data-test-id=\"CT_component-action-button\" onClick={handleClick}>\n {buttonText}\n </Button>\n </Box>\n )}\n </VStack>\n </Flex>\n );\n};\n\nexport default EmptyState;\n","import type { BadgeProps, BoxProps } from '@chakra-ui/react';\nimport { Flex, HStack } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport type { HeaderDataProps } from '../types';\nimport { Logo } from './logo';\nimport { Profile } from './profile';\nimport SwitchMode from './switch-mode';\nimport { Version } from './version';\n\nexport type HeaderProps = BoxProps & {\n brandColor?: BoxProps['bgColor'];\n data?: HeaderDataProps;\n onLogout?: () => void;\n onOpenModalRelease?: () => void;\n hideSwitchMode?: boolean;\n mainLogo?: string;\n mainLogoSize?: BoxProps['h'];\n centerLogo?: string;\n centerLogoSize?: BoxProps['h'];\n hideEnv?: boolean;\n urlLogo?: string;\n profile?: React.ReactNode;\n versionStyle?: BadgeProps;\n};\n\nexport const Header: React.FC<HeaderProps> = ({\n brandColor,\n data,\n onLogout,\n onOpenModalRelease,\n hideSwitchMode,\n mainLogo,\n centerLogo,\n mainLogoSize,\n centerLogoSize = 4,\n hideEnv = false,\n urlLogo,\n children,\n profile,\n bg = 'white',\n versionStyle,\n ...props\n}) => (\n <Flex minH={15} bg={bg} shadow=\"raised\" px={6} py={3} alignItems=\"center\" {...props}>\n <Flex\n h=\"auto\"\n w=\"full\"\n alignItems=\"center\"\n justifyContent={!mainLogo ? 'flex-end' : 'space-between'}\n pos=\"relative\"\n >\n {mainLogo && (\n <Flex alignItems=\"center\">\n <Logo url={urlLogo} imageUrl={mainLogo} height={mainLogoSize} />\n {children && children}\n </Flex>\n )}\n\n {centerLogo && (\n <HStack w=\"fit-content\" spacing={2} alignItems=\"center\" pos=\"absolute\" left=\"50%\" transform=\"translate(-50%,0)\">\n <Logo url={urlLogo} imageUrl={centerLogo} height={centerLogoSize} />\n <Version\n hideEnv={hideEnv}\n version={data?.version}\n environment={data?.environment}\n onOpenModalRelease={onOpenModalRelease}\n versionStyle={versionStyle}\n />\n </HStack>\n )}\n\n {profile || (\n <Flex alignItems=\"center\">\n {!hideSwitchMode && <SwitchMode />}\n <Profile color={props.color} brandColor={brandColor} data={data} onLogout={onLogout} />\n </Flex>\n )}\n </Flex>\n </Flex>\n);\n\nHeader.defaultProps = {\n brandColor: undefined,\n data: undefined,\n onLogout: undefined,\n onOpenModalRelease: undefined,\n hideSwitchMode: true,\n mainLogo: undefined,\n mainLogoSize: undefined,\n centerLogo: undefined,\n centerLogoSize: undefined,\n hideEnv: false,\n urlLogo: undefined,\n profile: undefined,\n versionStyle: undefined,\n};\n\nexport default Header;\n","import type { BoxProps } from '@chakra-ui/react';\nimport { Box, Image, useColorModeValue } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface LogoProps {\n url?: string;\n imageUrl: string;\n height?: BoxProps['h'];\n}\nexport const Logo: React.FC<LogoProps> = ({ url, imageUrl, height }) => {\n if (url)\n return (\n <Box as=\"a\" href={url} cursor=\"pointer\" target=\"_self\">\n <Image w=\"initial\" h={height ?? 9} maxH={height ?? 9} src={imageUrl} alt={imageUrl} objectFit=\"contain\" />\n </Box>\n );\n\n return <Image w=\"initial\" h={height ?? 9} maxH={height ?? 9} src={imageUrl} alt={imageUrl} objectFit=\"contain\" />;\n};\n\nexport const XMSLogo = () => (\n <Image\n height={8}\n src={useColorModeValue('https://assets.voila.id/xms/logo-xms.jpg', 'https://assets.voila.id/xms/logo-xms-dark.png')}\n />\n);\n\nexport const VoilaLogo = () => (\n <Image\n src=\"https://assets.voila.id/xms/logo-voila-black.png?v=1\"\n filter={useColorModeValue('none', 'invert(1)')}\n maxW={24}\n />\n);\n\nLogo.defaultProps = {\n url: undefined,\n height: undefined,\n};\n","import type { BoxProps, HTMLChakraProps } from '@chakra-ui/react';\nimport {\n Avatar,\n Box,\n Flex,\n HStack,\n Popover,\n PopoverArrow,\n PopoverBody,\n PopoverContent,\n PopoverTrigger,\n Text,\n useDisclosure,\n VStack,\n} from '@chakra-ui/react';\nimport * as React from 'react';\nimport { FiPower } from 'react-icons/fi';\n\nimport type { BadgeProps } from '../../badge';\nimport { Badge } from '../../badge';\nimport { NavItem } from '../../nav-item';\nimport { Tooltip } from '../../tooltip';\nimport type { HeaderDataProps } from '../types';\n\nexport interface ProfileProps extends BoxProps {\n brandColor?: BoxProps['bgColor'];\n data?: HeaderDataProps;\n onLogout?: () => void;\n badgeStyle?: BadgeProps;\n officeContainer?: Omit<HTMLChakraProps<'div'>, 'color'>;\n}\n\nexport const Profile = ({\n color,\n brandColor,\n data,\n badgeStyle,\n children,\n onLogout,\n officeContainer,\n ...props\n}: ProfileProps) => {\n const { isOpen, onToggle, onClose } = useDisclosure();\n\n return (\n <Popover placement=\"bottom-end\" isOpen={isOpen} onClose={onClose}>\n <Box\n data-test-id=\"CTA_Navbar_Profile_wrapper\"\n as=\"button\"\n cursor=\"pointer\"\n w=\"fit-content\"\n _hover={{\n textDecor: 'none',\n '.catalyst-header-avatar': {\n border: '2px solid',\n borderColor: 'primary.100',\n },\n }}\n onClick={onToggle}\n color={color}\n {...props}\n >\n <HStack>\n <VStack alignItems=\"flex-end\" spacing=\"0\" ml=\"2\" color={color}>\n <Text textStyle=\"text.xs\" mb=\"1\">\n {data?.email}\n </Text>\n <Flex alignItems=\"center\">\n {data?.userRole && (\n <>\n <Text textStyle=\"text.xs\">{data?.userRole || 'user'}</Text>\n {!!data.office?.length && (\n <Box\n className=\"catalyst_header-profile-divider\"\n h=\"3\"\n mx=\"1\"\n borderLeft=\"1px solid\"\n borderColor=\"neutral.400\"\n />\n )}\n </>\n )}\n {typeof data?.office === 'object' ? (\n <Flex align=\"center\" justify=\"center\">\n <Text textStyle=\"text.xs\">{data.office[0]}</Text>\n {data.office.length > 1 && (\n <Tooltip\n isInteractive\n hasArrow\n p=\"2\"\n label={\n <Box>\n <Text>Akses Office:</Text>\n <Text>{data.office.sort().join(', ')}</Text>\n </Box>\n }\n textAlign=\"left\"\n placement=\"bottom-end\"\n cursor=\"text\"\n portal\n popoverProps={{\n offset: [10, 8],\n }}\n width={300}\n {...officeContainer}\n >\n <Box ml={1}>\n <Badge\n rounded=\"full\"\n variant=\"neutral-light\"\n boxSize=\"5\"\n justifyContent=\"center\"\n p=\"0.5\"\n {...badgeStyle}\n >\n {data.office.length - 1}+\n </Badge>\n </Box>\n </Tooltip>\n )}\n </Flex>\n ) : (\n <Text textStyle=\"text.xs\">{data?.office || 'office'}</Text>\n )}\n </Flex>\n </VStack>\n <PopoverTrigger>\n <Box border=\"2px solid\" borderColor=\"transparent\" className=\"catalyst-header-avatar\" rounded=\"full\">\n <Avatar size=\"sm\" bg={brandColor} color=\"white\" name={data?.name ?? data?.email} />\n </Box>\n </PopoverTrigger>\n </HStack>\n </Box>\n {children || (\n <PopoverContent bg=\"white\" maxW={200}>\n <PopoverArrow bg=\"white\" />\n <PopoverBody py=\"1\" px=\"0\">\n <NavItem data-test-id=\"CTA_Navbar_logout-button\" onClick={onLogout} rounded=\"none\" px=\"4\">\n <Box display=\"flex\" alignItems=\"center\">\n <FiPower />\n <Text ml=\"2\">Logout</Text>\n </Box>\n </NavItem>\n </PopoverBody>\n </PopoverContent>\n )}\n </Popover>\n );\n};\n\nProfile.defaultProps = {\n brandColor: 'primary.500',\n data: undefined,\n onLogout: undefined,\n badgeStyle: undefined,\n};\n\nexport default Profile;\n","import type { LinkProps } from '@chakra-ui/react';\nimport { Link } from '@chakra-ui/react';\nimport { cx } from '@chakra-ui/shared-utils';\nimport type { PropsWithChildren } from 'react';\nimport * as React from 'react';\n\nexport interface NavItemProps extends LinkProps, PropsWithChildren {\n isActive?: boolean;\n isChild?: boolean;\n isDisabled?: boolean;\n 'data-test-id'?: string;\n}\n\nexport const NavItem = ({ children, isActive, isChild, isDisabled, ...props }: NavItemProps) => {\n return (\n <Link\n data-test-id={props['data-test-id']}\n opacity={isDisabled ? '0.3' : 'initial'}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n h=\"7.5\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n w=\"full\"\n p=\"2\"\n pl={isChild ? '7' : '2'}\n color={isActive ? 'primary.500' : 'black.high'}\n bg={isActive ? 'primary.100' : 'white'}\n className={cx('catalyst-nav-item', props.className)}\n textStyle=\"text.xs\"\n fontWeight={isActive ? 'semibold' : 'regular'}\n rounded=\"sm\"\n _active={\n isDisabled\n ? {}\n : {\n bg: 'primary.100',\n }\n }\n _hover={\n isDisabled\n ? {}\n : {\n textDecoration: 'none',\n bg: isActive ? 'primary.100' : 'primary.50',\n }\n }\n {...props}\n onClick={isDisabled ? undefined : props.onClick}\n >\n {children}\n </Link>\n );\n};\n\nNavItem.displayName = 'NavItem';\nNavItem.defaultProps = {\n isActive: false,\n isChild: false,\n isDisabled: false,\n 'data-test-id': undefined,\n};\n\nexport default NavItem;\n","/* eslint-disable react/destructuring-assignment */\nimport type {\n ColorProps,\n PopoverContentProps,\n PopoverProps,\n TooltipProps as ChakraTooltipProps,\n} from '@chakra-ui/react';\nimport {\n Popover,\n PopoverArrow,\n PopoverBody,\n PopoverContent,\n PopoverTrigger,\n Portal,\n Tooltip as ChakraTooltip,\n} from '@chakra-ui/react';\n\nexport interface BaseTooltipProps extends Omit<ChakraTooltipProps, 'color'> {\n isInteractive?: false;\n color?: ColorProps['color'];\n}\n\nexport interface InteractiveTooltipProps\n extends PopoverContentProps,\n Pick<ChakraTooltipProps, 'hasArrow' | 'placement' | 'children' | 'label'> {\n isInteractive?: true;\n portal?: boolean;\n popoverProps?: PopoverProps;\n}\n\nexport type TooltipProps = BaseTooltipProps | InteractiveTooltipProps;\n\nexport const Tooltip = (props: TooltipProps) => {\n const {\n children,\n bg = 'neutral.700',\n textStyle = 'text.sm',\n color = 'white',\n width,\n borderRadius = 4,\n fontWeight = '400',\n } = props;\n\n const content = ({ onClose }: { onClose: () => void }) => (\n <PopoverContent\n data-test-id=\"\"\n border=\"none\"\n bg={bg}\n textStyle={textStyle}\n width={width}\n placeItems=\"center\"\n borderRadius={borderRadius}\n onClick={e => {\n e.stopPropagation();\n onClose();\n }}\n >\n {props.hasArrow && <PopoverArrow color={color} bg={bg} shadow=\"none\" />}\n <PopoverBody color={color} {...props} fontWeight={fontWeight}>\n {props.label}\n </PopoverBody>\n </PopoverContent>\n );\n\n return props.isInteractive === true ? (\n <Popover trigger=\"hover\" placement={props.placement} {...props.popoverProps}>\n {({ onClose }) => (\n <>\n <PopoverTrigger>{children}</PopoverTrigger>\n {props.portal ? <Portal>{content({ onClose })}</Portal> : content({ onClose })}\n </>\n )}\n </Popover>\n ) : (\n <ChakraTooltip {...props}>{children}</ChakraTooltip>\n );\n};\n\nexport default Tooltip;\n","import { Box, useColorMode } from '@chakra-ui/react';\nimport * as React from 'react';\nimport { FiMoon, FiSun } from 'react-icons/fi';\n\nconst SwitchMode: React.FC = () => {\n const { colorMode, toggleColorMode } = useColorMode();\n return (\n <Box data-test-id=\"rhYuTDCiWkFqr96upiEEh\" mx={5} onClick={toggleColorMode} cursor=\"pointer\">\n {colorMode === 'light' ? <FiMoon size={20} /> : <FiSun size={20} />}\n </Box>\n );\n};\n\nexport default SwitchMode;\n","/* eslint-disable react-hooks/rules-of-hooks */\nimport { Box } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport type { BadgeProps } from '../../badge';\nimport { Badge } from '../../badge';\nimport type { Environment } from '../types';\nimport { environmentName } from '../utils/formatter';\n\nexport type VersionProps = {\n hideEnv?: boolean;\n environment?: Environment;\n version?: React.ReactNode;\n versionStyle?: BadgeProps;\n onOpenModalRelease?: () => void;\n};\n\nexport const Version: React.FC<VersionProps> = ({\n hideEnv,\n version,\n environment,\n onOpenModalRelease,\n versionStyle,\n}) => (\n <>\n {typeof version === 'string' ? (\n <Badge\n data-test-id=\"CTA_header-version-badge\"\n fontSize=\"8px\"\n variant=\"neutral-light\"\n px=\"2\"\n py=\"px\"\n onClick={onOpenModalRelease}\n cursor={onOpenModalRelease ? 'pointer' : 'auto'}\n {...versionStyle}\n >\n {version}\n </Badge>\n ) : (\n version\n )}\n\n {!hideEnv && environmentName(environment) !== null && version && (\n <Box\n background=\"primary.50\"\n color=\"primary.500\"\n fontSize=\"text.xs\"\n py={1}\n px={2.5}\n fontWeight=\"bold\"\n borderRadius=\"md\"\n >\n {environmentName(environment)}\n </Box>\n )}\n </>\n);\n\nVersion.defaultProps = {\n hideEnv: false,\n environment: undefined,\n version: undefined,\n onOpenModalRelease: undefined,\n versionStyle: undefined,\n};\n\nexport default Version;\n","import type { Environment } from '../types';\n\n// eslint-disable-next-line import/prefer-default-export\nexport function environmentName(env?: Environment) {\n switch (env) {\n case 'DEVELOPMENT':\n return 'Dev';\n case 'STAGING':\n return 'Staging';\n default:\n return null;\n }\n}\n","import { Flex, type FlexProps } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface NavbarProps extends FlexProps {}\n\nexport const Navbar = ({ bg = 'white', children, ...props }: NavbarProps) => {\n return (\n <Flex\n minH=\"15\"\n h=\"15\"\n w=\"full\"\n bg={bg}\n shadow=\"raised\"\n px={6}\n py={2}\n alignItems=\"center\"\n position=\"relative\"\n justifyContent=\"space-between\"\n {...props}\n >\n {children}\n </Flex>\n );\n};\n\nNavbar.displayName = 'Navbar';\n\nexport default Navbar;\n","export { Icon, IconProps, Image, ImageProps } from '@chakra-ui/react';\n","export {\n Box,\n BoxProps,\n Center,\n Container,\n ContainerProps,\n Divider,\n DividerProps,\n Flex,\n FlexProps,\n Grid,\n GridItem,\n GridItemProps,\n GridProps,\n HStack,\n SimpleGrid,\n Spacer,\n Stack,\n StackProps,\n VStack,\n Wrap,\n WrapItem,\n WrapItemProps,\n WrapProps,\n} from '@chakra-ui/react';\n","export { List, ListIcon, ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from '@chakra-ui/react';\n","import { ChevronLeftIcon } from '@chakra-ui/icons';\nimport { IconButton } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface ModalBackButtonProps {\n onClick: () => void;\n}\n\nconst ModalBackButton = ({ onClick }: ModalBackButtonProps) => {\n return (\n <IconButton\n icon={<ChevronLeftIcon w=\"4.5\" h=\"4.5\" />}\n size=\"sm\"\n minW=\"6\"\n h=\"6\"\n rounded=\"sm\"\n variant=\"solid\"\n bg=\"white\"\n onClick={onClick}\n _hover={{ bg: 'white' }}\n color=\"black\"\n aria-label=\"Back\"\n data-test-id=\"modal-back-button\"\n />\n );\n};\n\nexport default ModalBackButton;\n","export { default as ModalBackButton } from './components/modal-back-button';\n// export { default as ModalBody } from './components/modal-body';\n// export { default as ModalCloseButton } from './components/modal-close-button';\n// export { default as ModalFooter } from './components/modal-footer';\n// export { default as ModalHeader } from './components/modal-header';\nexport {\n AlertDialog,\n ModalBody as AlertDialogBody,\n ModalCloseButton as AlertDialogCloseButton,\n AlertDialogContent,\n ModalFooter as AlertDialogFooter,\n ModalHeader as AlertDialogHeader,\n ModalOverlay as AlertDialogOverlay,\n AlertDialogProps,\n Drawer,\n ModalBody as DrawerBody,\n ModalCloseButton as DrawerCloseButton,\n DrawerContent,\n DrawerContentProps,\n ModalFooter as DrawerFooter,\n ModalHeader as DrawerHeader,\n ModalOverlay as DrawerOverlay,\n DrawerProps,\n Modal,\n ModalBody,\n ModalBodyProps,\n ModalCloseButton,\n ModalContent,\n ModalContentProps,\n ModalContextProvider,\n ModalFocusScope,\n ModalFooter,\n ModalFooterProps,\n ModalHeader,\n ModalHeaderProps,\n ModalOverlay,\n ModalOverlayProps,\n ModalProps,\n useDrawerContext,\n useModal,\n useModalContext,\n UseModalProps,\n UseModalReturn,\n useModalStyles,\n} from '@chakra-ui/react';\n","/* eslint-disable react-hooks/rules-of-hooks */\n\nimport type { As, BoxProps } from '@chakra-ui/react';\nimport {\n Box,\n Button,\n Flex,\n Link,\n Popover,\n PopoverContent,\n PopoverTrigger,\n Portal,\n Text,\n useColorModeValue,\n} from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport { css } from '@emotion/react';\nimport * as React from 'react';\n\nimport type { NavigationLink } from '../types';\nimport { mappingIcon } from './mapping-icon';\n\nexport type NavigationProps = BoxProps & {\n navigations?: NavigationLink[];\n activePath: string;\n as?: As;\n host?: string;\n};\n\nconst Navigation: React.FC<NavigationProps> = ({ navigations, activePath, as, host, ...props }) => {\n return (\n <Box borderRadius=\"md\" overflowX=\"auto\" {...props}>\n <Flex\n bg=\"white\"\n w=\"full\"\n rounded={'md'}\n flexWrap=\"wrap\"\n alignItems=\"center\"\n shadow=\"raised\"\n gap={1}\n px={4}\n py={2}\n >\n {navigations?.map(navigation => {\n const isActive = activePath.startsWith(navigation.navLink || '');\n const activeBg = isActive ? 'primary.500' : undefined;\n return (\n <Popover key={navigation.title} trigger=\"hover\" placement=\"bottom-start\">\n {({ isOpen }) => (\n <>\n <PopoverTrigger>\n <Button\n h={7.5}\n p={2}\n size=\"sm\"\n variant=\"ghost\"\n data-test-id={`CT_component_navigation_button-${navigation.title}${isActive ? '-active' : ''}`}\n _hover={{\n backgroundColor: !isActive ? 'neutral.400' : activeBg,\n }}\n backgroundColor={isOpen && !isActive ? 'neutral.400' : activeBg}\n color={isActive ? 'primary.50' : 'black.high'}\n leftIcon={mappingIcon.get(navigation.title)}\n rightIcon={<Icon.ChevronDown size={4} color=\"inherit\" />}\n >\n {navigation.title}\n </Button>\n </PopoverTrigger>\n {navigation.children && (\n <Portal>\n <Box zIndex=\"popover\">\n <PopoverContent\n key={navigation.title}\n bg={useColorModeValue('white', 'ebony-clay.800')}\n maxW={250}\n border=\"none\"\n borderRadius=\"md\"\n boxShadow=\"0 5px 25px rgb(0 0 0 / 10%)\"\n >\n {navigation.children.map(({ title, navHost, navLink }) => {\n const link = navHost ? `${navHost}${navLink}` : navLink;\n const isLocalLink = host === navHost;\n const isActiveSub = activePath === navLink;\n return (\n <Link\n as={isLocalLink ? as : undefined}\n key={title}\n href={link}\n _hover={{\n textDecoration: 'none',\n }}\n >\n <Box\n display=\"flex\"\n position=\"relative\"\n alignItems=\"center\"\n cursor=\"pointer\"\n transition=\"padding 0.35s ease 0s\"\n _hover={{\n backgroundColor: useColorModeValue('dove-gray.50', 'mirage.900'),\n color: useColorModeValue('primary.500', 'dove-gray.600'),\n px: 5,\n py: 4,\n _first: { borderTopRadius: 'md' },\n _last: { borderBottomRadius: 'md' },\n }}\n color={isActiveSub ? 'primary.500' : 'inherit'}\n css={css`\n border-spacing: 4px;\n `}\n px={6}\n py={4}\n >\n {mappingIcon.get(navigation.title)}\n <Text fontSize=\"text.sm\" ml={3}>\n {title}\n </Text>\n {isActiveSub && (\n <Box\n width={0.5}\n height={8}\n position=\"absolute\"\n bg=\"primary.500\"\n right={0}\n zIndex=\"popover\"\n />\n )}\n </Box>\n </Link>\n );\n })}\n </PopoverContent>\n </Box>\n </Portal>\n )}\n </>\n )}\n </Popover>\n );\n })}\n </Flex>\n </Box>\n );\n};\n\nNavigation.defaultProps = {\n navigations: undefined,\n as: 'a',\n host: undefined,\n};\n\nexport default Navigation;\n","/* eslint-disable import/prefer-default-export */\nimport * as Icon from '@ctlyst.id/internal-icon';\n\nexport const mappingIcon = new Map([\n ['Order', <Icon.ShoppingBag size={4} key=\"order\" color=\"inherit\" />],\n ['Fulfillment', <Icon.ShoppingCart size={4} key=\"fullfilment\" color=\"inherit\" />],\n ['Transfer Stock', <Icon.Repeat size={4} key=\"transfer-stock\" color=\"inherit\" />],\n ['Stock', <Icon.Box size={4} key=\"stock\" color=\"inherit\" />],\n ['Product Database', <Icon.Layers size={4} key=\"product-database\" color=\"inherit\" />],\n ['Purchasing', <Icon.DollarSign size={4} key=\"purchasing\" color=\"inherit\" />],\n ['Reseller', <Icon.Users size={4} key=\"reseller\" color=\"inherit\" />],\n ['Retur', <Icon.RotateCcw size={4} key=\"retur\" color=\"inherit\" />],\n ['Other', <Icon.Settings size={4} key=\"other\" color=\"inherit\" />],\n ['Content', <Icon.Layout size={4} key=\"content\" color=\"inherit\" />],\n ['Customer', <Icon.HelpCircle size={4} key=\"content\" color=\"inherit\" />],\n ['Voucher', <Icon.Gift size={4} key=\"content\" color=\"inherit\" />],\n]);\n","/* eslint-disable react-hooks/rules-of-hooks */\nimport type { BoxProps } from '@chakra-ui/react';\nimport { Box, Button, Flex, Link, Popover, PopoverContent, PopoverTrigger, Text } from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nimport type { Menu, SubMenu } from '../types';\n\nexport type NavigationBarProps = BoxProps & {\n navigations?: Menu[];\n isFetched: boolean;\n pathname: string;\n asPath: string;\n mappingIcon: Map<string, JSX.Element>;\n};\n\nconst NavigationBar: React.FC<NavigationBarProps> = ({\n navigations,\n isFetched,\n pathname,\n asPath,\n mappingIcon,\n ...props\n}) => {\n const urlMenu = (subMenu: SubMenu) => {\n if (window.location.hostname === 'localhost') {\n return subMenu.navLink;\n }\n return subMenu.navHost + subMenu.navLink;\n };\n\n return (\n <Box hidden={isFetched && navigations === undefined} data-test-id=\"CT_component_navigation_cms\" {...props}>\n <Flex\n bg=\"white\"\n w=\"full\"\n rounded={'md'}\n flexWrap=\"wrap\"\n alignItems=\"center\"\n shadow=\"raised\"\n gap={1}\n px={4}\n py={2}\n >\n {navigations?.map((item: Menu) => {\n const childMenu = item.children.filter(subMenu => asPath?.includes(subMenu.navLink));\n\n const isActive = pathname?.startsWith(childMenu[0]?.navLink);\n const activeBg = isActive ? 'primary.500' : undefined;\n\n return (\n <Popover isLazy key={item.id} trigger=\"hover\" placement=\"bottom-start\" openDelay={100} closeDelay={100}>\n {({ isOpen, onClose }) => (\n <>\n <PopoverTrigger>\n <Button\n h={7.5}\n p={2}\n size=\"sm\"\n variant=\"ghost\"\n data-test-id={`CT_component_navigation_button-${item.title}${isActive ? '-active' : ''}`}\n _hover={{\n backgroundColor: !isActive ? 'neutral.400' : activeBg,\n }}\n backgroundColor={isOpen && !isActive ? 'neutral.400' : activeBg}\n color={isActive ? 'primary.50' : 'black.high'}\n leftIcon={mappingIcon.get(item.title)}\n rightIcon={<Icon.ChevronDown size={4} color=\"inherit\" />}\n >\n {item.title}\n </Button>\n </PopoverTrigger>\n\n {item.children && (\n <PopoverContent bg=\"white\" boxShadow=\"raised\" borderRadius=\"md\" py={1} width={240}>\n {item.children.map((subMenu: SubMenu) => (\n <Link\n key={subMenu.id}\n href={urlMenu(subMenu)}\n display=\"flex\"\n alignItems=\"center\"\n transition=\"padding 0.35s ease 0s\"\n _hover={{\n pl: 6,\n }}\n py={3}\n px={4}\n color={pathname?.startsWith(subMenu.navLink) ? 'primary.800' : 'black.high'}\n onClick={onClose}\n background={pathname?.startsWith(subMenu.navLink) ? 'primary.50' : 'transparent'}\n data-test-id={`CT_component_navigation_link-${item.id}`}\n >\n {mappingIcon.get(item.title)}\n <Text textStyle=\"text-sm\" ml={3}>\n {subMenu.title}\n </Text>\n </Link>\n ))}\n </PopoverContent>\n )}\n </>\n )}\n </Popover>\n );\n })}\n </Flex>\n </Box>\n );\n};\n\nNavigationBar.defaultProps = {\n navigations: undefined,\n};\n\nexport default NavigationBar;\n","import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon, ChevronRightIcon } from '@chakra-ui/icons';\nimport { Box, Text, useColorModeValue } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport PaginationButton from './pagination-button';\nimport PaginationButtonTrigger from './pagination-button-trigger';\n\nexport interface PaginationProps {\n /** Additional CSS classes to give to the pagination. */\n className?: string;\n /** The current page number. */\n current: number;\n /** Total number of pages. */\n total: number;\n /**\n * Callback to run when a page number is selected. You can use this to e.g.\n * run setState on your component's page state.\n */\n onSelect?: (page: number) => void;\n}\n\nconst Pagination: React.FC<PaginationProps> = ({ className, current, total, onSelect }) => {\n const btnColorDisabled = useColorModeValue('secondary.100', 'primary.500');\n const btnColor = useColorModeValue('primary.500', 'secondary.100');\n const disabledPrevious = current === 1;\n const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;\n const disabledNext = current === total;\n const nextButtonColor = disabledNext ? btnColorDisabled : btnColor;\n\n const handleSelectPage = (page: number) => {\n if (onSelect) {\n onSelect(page);\n }\n };\n\n const generatePages = (): (number | string)[] => {\n const maxButtons = 5;\n const pageButtons: (number | string)[] = [];\n\n let startPage: number;\n let endPage: number;\n\n if (maxButtons && maxButtons < total) {\n startPage = Math.max(Math.min(current - Math.floor(maxButtons / 2), total - maxButtons + 1), 1);\n endPage = startPage + maxButtons - 1;\n } else {\n startPage = 1;\n endPage = total;\n }\n\n // eslint-disable-next-line no-plusplus\n for (let page = startPage; page <= endPage; ++page) {\n pageButtons.push(page);\n }\n\n return pageButtons;\n };\n\n return (\n <Box className={className} display=\"inline-flex\" alignItems=\"center\">\n <Box mr={1}>\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={previousButtonColor}\n isDisabled={disabledPrevious}\n onClick={() => handleSelectPage(1)}\n visuallyHidden=\"First Page\"\n icon={<ArrowLeftIcon width={2} />}\n />\n </Box>\n <Box bg=\"neutral.300\" borderRadius=\"full\">\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={previousButtonColor}\n isDisabled={disabledPrevious}\n onClick={() => handleSelectPage(current - 1)}\n visuallyHidden=\"Previous Page\"\n icon={<ChevronLeftIcon />}\n />\n {generatePages().map(page => {\n return (\n <PaginationButton\n data-test-id=\"Pagination-Button\"\n key={page}\n isActive={page === current}\n onClick={() => (typeof page === 'number' ? handleSelectPage(page) : null)}\n >\n <Text scale={300} fontSize=\"text.sm\" lineHeight={18} fontWeight={500}>\n {page}\n </Text>\n </PaginationButton>\n );\n })}\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={nextButtonColor}\n isDisabled={disabledNext}\n onClick={() => handleSelectPage(current + 1)}\n visuallyHidden=\"Next Page\"\n icon={<ChevronRightIcon />}\n />\n </Box>\n <Box ml={1}>\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={nextButtonColor}\n isDisabled={disabledNext}\n onClick={() => handleSelectPage(total)}\n visuallyHidden=\"Last Page\"\n icon={<ArrowRightIcon width={2} />}\n />\n </Box>\n </Box>\n );\n};\n\nPagination.defaultProps = {\n className: undefined,\n onSelect: undefined,\n};\n\nPagination.displayName = 'Pagination';\n\nexport default Pagination;\n","import type { ButtonProps } from '@chakra-ui/react';\nimport { Button, forwardRef, useColorModeValue } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface PaginationButtonProps {\n isActive?: boolean;\n}\n\nconst PaginationButton = forwardRef<ButtonProps, 'button'>(({ className, style, isActive, children, ...rest }, ref) => {\n const btnBg = useColorModeValue('neutral.300', 'mirage.900');\n const btnColor = useColorModeValue('black.high', 'primary.300');\n const btnNotActiveBg = useColorModeValue('secondary.50', 'primary.500');\n const btnNotActiveColor = useColorModeValue('primary.500', 'white');\n return (\n <Button\n data-test-id=\"Pagination-Button\"\n ref={ref}\n className={className}\n style={style}\n borderRadius=\"full\"\n fontWeight=\"semibold\"\n m={0}\n px={3}\n py={2}\n h={8}\n minW=\"auto\"\n width={8}\n background={isActive ? 'primary.500' : btnBg}\n color={isActive ? 'white' : btnColor}\n _hover={\n !isActive\n ? {\n background: btnNotActiveBg,\n color: btnNotActiveColor,\n }\n : {}\n }\n _active={{\n background: 'primary.500',\n color: 'neutral.300',\n }}\n _disabled={{\n background: useColorModeValue('neutral.300', 'mirage.900'),\n color: 'neutral.600',\n pointerEvents: 'none',\n }}\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nPaginationButton.displayName = 'PaginationButton';\n\nPaginationButton.defaultProps = {\n isActive: undefined,\n};\n\nexport default PaginationButton;\n","import { VisuallyHidden } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport PaginationButton from './pagination-button';\n\ntype PaginationButtonTriggerProps = {\n color?: string;\n isDisabled?: boolean;\n onClick?: () => void;\n visuallyHidden?: string;\n icon?: React.ReactNode;\n};\n\nconst PaginationButtonTrigger: React.FC<PaginationButtonTriggerProps> = ({\n color,\n isDisabled,\n onClick,\n visuallyHidden,\n icon,\n}) => (\n <PaginationButton data-test-id=\"DLVCc_fBK35spHm5WxjcJ\" color={color} isDisabled={isDisabled} onClick={onClick}>\n <VisuallyHidden>{visuallyHidden}</VisuallyHidden>\n {icon}\n </PaginationButton>\n);\n\nPaginationButtonTrigger.defaultProps = {\n color: undefined,\n isDisabled: undefined,\n onClick: undefined,\n visuallyHidden: undefined,\n icon: undefined,\n};\n\nexport default PaginationButtonTrigger;\n","import type { TextProps } from '@chakra-ui/react';\nimport { Text } from '@chakra-ui/react';\nimport * as React from 'react';\n\nexport interface PaginationDetailProps extends TextProps {\n // Current page of pages\n page: number;\n /** Total limit of pages. */\n limit: number;\n // Length of data\n length: number;\n}\n\nconst PaginationDetail: React.FC<PaginationDetailProps> = ({\n page,\n limit,\n length,\n scale = 300,\n fontSize = 'xs',\n lineHeight = 18,\n ...rest\n}) => {\n return (\n <Text scale={scale} fontSize={fontSize} lineHeight={lineHeight} {...rest}>\n {`${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item`}\n </Text>\n );\n};\n\nexport default PaginationDetail;\n","import { Box, Select, Text, useColorModeValue } from '@chakra-ui/react';\nimport * as React from 'react';\nimport { FiChevronDown } from 'react-icons/fi';\n\nexport interface PaginationFilterProps<T> {\n /** Total limit of pages. */\n limit?: number;\n /** Label in front of select input */\n label?: string;\n /** Label items. */\n items: T[];\n /** The change handler for the select. */\n onChange: (changes: T) => void;\n}\n\nconst PaginationFilter: React.FC<PaginationFilterProps<number>> = ({\n limit,\n label = 'Baris per halaman:',\n items,\n onChange,\n ...rest\n}) => {\n const [value, setValue] = React.useState(limit);\n\n return (\n <Box display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Text fontSize=\"text.sm\" lineHeight={18} color={useColorModeValue('neutral.900', 'white')} {...rest}>\n {label}\n </Text>\n <Select\n textAlign=\"center\"\n size=\"xs\"\n outline=\"none\"\n border=\"none\"\n boxShadow=\"none\"\n width={18}\n icon={<FiChevronDown />}\n _focusVisible={{ boxShadow: 'none' }}\n onChange={e => {\n const numberValue = Number(e.target.value);\n onChange(numberValue);\n setValue(numberValue);\n }}\n value={value}\n >\n {items.map(item => {\n return (\n <option key={item} value={item}>\n {item}\n </option>\n );\n })}\n </Select>\n </Box>\n );\n};\n\nPaginationFilter.defaultProps = {\n limit: 10,\n label: undefined,\n};\n\nexport default PaginationFilter;\n","export {\n PinInput,\n PinInputContext,\n PinInputDescendantsProvider,\n PinInputField,\n PinInputFieldProps,\n PinInputProps,\n PinInputProvider,\n usePinInput,\n usePinInputContext,\n usePinInputField,\n UsePinInputFieldProps,\n UsePinInputProps,\n UsePinInputReturn,\n} from '@chakra-ui/react';\n","export {\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverArrowProps,\n PopoverBody,\n PopoverBodyProps,\n PopoverCloseButton,\n PopoverContent,\n PopoverContentProps,\n PopoverFooter,\n PopoverFooterProps,\n PopoverHeader,\n PopoverHeaderProps,\n PopoverProps,\n PopoverTrigger,\n Portal,\n PortalProps,\n} from '@chakra-ui/react';\n","export {\n Progress,\n ProgressFilledTrackProps,\n ProgressLabel,\n ProgressLabelProps,\n ProgressProps,\n ProgressTrackProps,\n useProgressStyles,\n} from '@chakra-ui/react';\n","/* eslint-disable no-nested-ternary */\nimport type { RadioProps as ChakraRadioProps } from '@chakra-ui/react';\nimport { Box, Radio as ChakraRadio, Text } from '@chakra-ui/react';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nexport interface RadioProps extends ChakraRadioProps, PropsWithChildren {\n isError?: boolean;\n helpText?: string;\n errorText?: string;\n}\n\nexport const Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }: RadioProps) => {\n const variant = isError ? 'errors' : 'unstyled';\n return (\n <Box>\n <Box display=\"flex\">\n <ChakraRadio variant={variant} {...rest} isDisabled={isDisabled}>\n {children && (\n <Text as=\"span\" display=\"block\" textStyle=\"text.sm\" color={isDisabled ? 'black.medium' : 'black.high'}>\n {children}\n </Text>\n )}\n </ChakraRadio>\n </Box>\n {isError && errorText ? (\n <Box mt=\"2\" ml=\"6\">\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"danger.500\">\n {errorText}\n </Text>\n </Box>\n ) : helpText ? (\n <Box mt=\"2\" ml=\"6\">\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"black.medium\">\n {helpText}\n </Text>\n </Box>\n ) : null}\n </Box>\n );\n};\n\nRadio.displayName = 'Radio';\nRadio.defaultProps = {\n isError: false,\n helpText: undefined,\n errorText: undefined,\n};\n\nexport default Radio;\n","/* eslint-disable no-nested-ternary */\nimport type { RadioGroupProps } from '@chakra-ui/react';\nimport { Box, RadioGroup as ChakraRadioGroup, Stack } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { FieldProps } from '../../field';\nimport { Field } from '../../field';\n\nexport interface RadioGroupComponentProps extends FieldProps, RadioGroupProps {\n label: string;\n helpText?: string;\n isError?: boolean;\n errorMessage?: string;\n}\n\nexport const RadioGroup = ({\n children,\n label,\n helpText,\n isError,\n errorMessage,\n ...props\n}: RadioGroupComponentProps) => {\n return (\n <Field {...props} label={label} leftHelperText={helpText} isError={isError} errorMessage={errorMessage}>\n <Box mt=\"2\" mb=\"1\">\n <ChakraRadioGroup {...props}>\n <Stack spacing={[1, '16px']} direction={['column', 'row']}>\n {children}\n </Stack>\n </ChakraRadioGroup>\n </Box>\n </Field>\n );\n};\nRadioGroup.displayName = 'RadioGroup';\nRadioGroup.defaultProps = {\n helpText: '',\n isError: false,\n errorMessage: '',\n};\n\nexport default RadioGroup;\n","export * from './components/radio';\nexport * from './components/radio-group';\nexport {\n RadioGroupContext,\n useRadio,\n useRadioGroup,\n useRadioGroupContext,\n UseRadioGroupReturn,\n UseRadioProps,\n UseRadioReturn,\n} from '@chakra-ui/react';\n","import { Grid } from '@chakra-ui/react';\nimport { Rating as RatingIcon } from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\ntype PropsValue = 0 | 1 | 2 | 3 | 4 | 5;\n\nexport interface RatingProps {\n value: PropsValue;\n}\n\nconst Rating = ({ value }: RatingProps) => {\n return (\n <Grid gap={'4px'} display=\"flex\">\n {[...Array(5)].map((_, i) => (\n <RatingIcon color={i < value ? '#FFA230' : '#E0E0E0'} size={24} />\n ))}\n </Grid>\n );\n};\n\nexport default Rating;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/require-default-props */\nimport { Badge, Center, Flex } from '@chakra-ui/react';\nimport { useColorMode } from '@chakra-ui/system';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport React from 'react';\nimport type {\n ClearIndicatorProps,\n DropdownIndicatorProps,\n GroupBase,\n MultiValueProps,\n MultiValueRemoveProps,\n Props as ReactSelectProps,\n} from 'react-select';\nimport ReactSelect, { components as componentRS } from 'react-select';\n\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectProps<\n Option = unknown,\n IsMulti extends boolean = boolean,\n Group extends GroupBase<Option> = GroupBase<Option>,\n> = ReactSelectProps<Option, IsMulti, Group> & ExtendedSelectProps;\n\nexport function DropdownIndicator<OptionType>(props: DropdownIndicatorProps<OptionType>) {\n return (\n <componentRS.DropdownIndicator {...props}>\n <Icon.ChevronDown size={4} color=\"neutral.400\" />\n </componentRS.DropdownIndicator>\n );\n}\n\nexport function ClearIndicator<OptionType, Group extends GroupBase<OptionType>, IsMulti extends boolean = false>(\n props: ClearIndicatorProps<OptionType, IsMulti, Group>\n) {\n const { hasValue } = props;\n\n return (\n <componentRS.ClearIndicator {...props}>\n <Icon.Close size={4} color={hasValue ? 'black.medium' : 'neutral.400'} />\n </componentRS.ClearIndicator>\n );\n}\n\nexport function MultiValue(props: MultiValueProps<any>) {\n return (\n <componentRS.MultiValue {...props}>\n <Badge pr={0} variant=\"neutral-light\">\n {props?.data.label}\n </Badge>\n </componentRS.MultiValue>\n );\n}\n\nexport function MultiValueRemove(props: MultiValueRemoveProps<any>) {\n return (\n <componentRS.MultiValueRemove {...props}>\n <Flex align=\"center\" justify=\"center\">\n <Icon.Close size={2.5} color=\"inherit\" />\n </Flex>\n </componentRS.MultiValueRemove>\n );\n}\n\nexport function NoOptionsMessage(props: any) {\n return (\n <Center textStyle=\"text.xs\" py=\"1.5\" color={'black.medium'}>\n {props?.options.length === 0 ? 'Opsi tidak tersedia' : 'Hasil tidak ditemukan'}\n </Center>\n );\n}\n\nfunction Select<OptionType, Group extends GroupBase<OptionType>, IsMulti extends boolean = false>({\n styles,\n isError = false,\n ...rest\n}: SelectProps<OptionType, IsMulti, Group>) {\n const { colorMode } = useColorMode();\n const { components, value, onChange } = rest;\n\n return (\n <ReactSelect<OptionType, IsMulti, Group>\n data-test-id=\"\"\n classNamePrefix=\"react-select\"\n components={{\n DropdownIndicator,\n ClearIndicator,\n MultiValue,\n MultiValueRemove,\n NoOptionsMessage,\n ...components,\n }}\n value={value}\n maxMenuHeight={320}\n onChange={onChange}\n styles={{ ...selectStyles(colorMode, isError), ...styles }}\n theme={themeSelect}\n {...rest}\n />\n );\n}\n\nexport default Select;\n","import { theme } from '@chakra-ui/react';\n\nconst shadows = {\n ...theme.shadows,\n raised: '0px 4px 20px rgba(0, 0, 0, 0.05)',\n};\n\nexport default shadows;\n","import { theme } from '@chakra-ui/react';\r\n\r\nconst sizes = {\r\n ...theme.sizes,\r\n 4.5: '1.125rem',\r\n 9.5: '2.375rem',\r\n 18: '4.5rem',\r\n 22: '5.5rem',\r\n 26: '6.5rem',\r\n 30: '7.5rem',\r\n};\r\n\r\nexport default sizes;\r\n","import { theme } from '@chakra-ui/react';\r\n\r\nconst spacing = {\r\n ...theme.space,\r\n 4.5: '1.125rem',\r\n 9.5: '2.375rem',\r\n 18: '4.5rem',\r\n 22: '5.5rem',\r\n 26: '6.5rem',\r\n 30: '7.5rem',\r\n};\r\n\r\nexport default spacing;\r\n","const fonts = {\r\n heading: `'Poppins', sans-serif`,\r\n body: `'Poppins', sans-serif`,\r\n};\r\n\r\nconst fontWeights = {\r\n hairline: 100,\r\n thin: 200,\r\n light: 300,\r\n normal: 400,\r\n medium: 500,\r\n semibold: 600,\r\n bold: 700,\r\n extrabold: 800,\r\n black: 900,\r\n};\r\n\r\nconst lineHeights = {\r\n normal: 'normal',\r\n none: 1,\r\n shorter: 1.25,\r\n short: 1.375,\r\n base: 1.5,\r\n tall: 1.625,\r\n 64: '4rem', // 64px\r\n 56: '3.5rem', // 56px\r\n 48: '3rem', // 48px\r\n 40: '2.5rem', // 40px\r\n 36: '2.25rem', // 36px\r\n 34: '2.125rem', // 34px\r\n 32: '2rem', // 32px\r\n 30: '1.875rem', // 30px\r\n 28: '1.75', // 28px\r\n 26: '1.625rem', // 26px\r\n 24: '1.5rem', // 24px\r\n 22: '1.375rem', // 22px\r\n 20: '1.25rem', // 20px\r\n 18: '1.125rem', // 18px\r\n 16: '1rem', // 16px\r\n 14: '0.875rem', // 14px\r\n 12: '0.75rem', // 12px\r\n};\r\n\r\nconst letterSpacings = {\r\n tighter: '-0.05em',\r\n tight: '-0.025em',\r\n normal: '0',\r\n wide: '0.025em',\r\n wider: '0.05em',\r\n widest: '0.1em',\r\n};\r\n\r\nconst fontSizes = {\r\n heading: {\r\n 1: '2.5rem', // 40px\r\n 2: '2rem', // 32px\r\n 3: '1.75rem', // 28px\r\n 4: '1.5rem', // 24px\r\n 5: '1.375rem', // 22px\r\n 6: '1.125rem', // 18px\r\n },\r\n text: {\r\n xl: '1.125rem', // 18px\r\n lg: '1rem', // 16px\r\n md: '0.875rem', // 14px\r\n sm: '0.75rem', // 12px\r\n xs: '0.625rem', // 10px\r\n },\r\n button: {\r\n lg: '1.125rem', // 18px\r\n md: '0.875rem', // 14px\r\n sm: '0.625rem', // 10px\r\n },\r\n field: {\r\n lg: '1rem', // 16px\r\n md: '0.875rem', // 14px\r\n sm: '0.75rem', // 12px\r\n },\r\n table: {\r\n header: '0.75rem', // 12px\r\n },\r\n};\r\n\r\nconst heading = {\r\n 1: {\r\n fontSize: fontSizes.heading[1],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[64],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 2: {\r\n fontSize: fontSizes.heading[2],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[56],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 3: {\r\n fontSize: fontSizes.heading[3],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[48],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 4: {\r\n fontSize: fontSizes.heading[4],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[40],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 5: {\r\n fontSize: fontSizes.heading[5],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[36],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 6: {\r\n fontSize: fontSizes.heading[6],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[32],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n};\r\n\r\nconst text = {\r\n xl: {\r\n fontSize: fontSizes.text.xl,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[28],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n lg: {\r\n fontSize: fontSizes.text.lg,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[24],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n md: {\r\n fontSize: fontSizes.text.md,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[22],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n sm: {\r\n fontSize: fontSizes.text.sm,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[18],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n xs: {\r\n fontSize: fontSizes.text.xs,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[14],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n};\r\n\r\nconst button = {\r\n lg: {\r\n fontSize: fontSizes.button.lg,\r\n lineHeight: lineHeights[28],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n md: {\r\n fontSize: fontSizes.button.md,\r\n lineHeight: lineHeights[22],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n sm: {\r\n fontSize: fontSizes.button.sm,\r\n lineHeight: lineHeights[14],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n};\r\n\r\nconst field = {\r\n lg: {\r\n fontSize: fontSizes.field.lg,\r\n lineHeight: lineHeights[24],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n md: {\r\n fontSize: fontSizes.field.md,\r\n lineHeight: lineHeights[22],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n sm: {\r\n fontSize: fontSizes.field.sm,\r\n lineHeight: lineHeights[18],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n};\r\n\r\nconst textStyles = {\r\n heading,\r\n text,\r\n button,\r\n field,\r\n};\r\n\r\nexport { fonts, fontSizes, fontWeights, letterSpacings, lineHeights, textStyles };\r\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable no-nested-ternary */\n/* eslint-disable import/prefer-default-export */\nimport type { ColorMode } from '@chakra-ui/system';\nimport type { CSSObjectWithLabel, GroupBase, StylesConfig, Theme } from 'react-select';\n\nimport { textStyles } from '../../../config/theme/foundations';\n\nconst styleMd = textStyles.text.sm;\nconst selectStyle = {\n fontSize: styleMd.fontSize,\n lineHeight: styleMd.lineHeight,\n letterSpacing: 0,\n};\n\nexport function selectStyles<\n OptionType = unknown,\n IsMulti extends boolean = boolean,\n Group extends GroupBase<OptionType> = GroupBase<OptionType>,\n>(colorMode: ColorMode, _isError: boolean): StylesConfig<OptionType, IsMulti, Group> | undefined {\n return {\n control: (base, { isFocused, isMulti }) => {\n const style: CSSObjectWithLabel = {\n ...base,\n minHeight: 40,\n height: isMulti ? 'fit-content' : 40,\n flexWrap: 'nowrap',\n borderColor: isFocused ? 'var(--chakra-colors-primary-500)' : 'var(--chakra-colors-neutral-400)',\n boxShadow: 'none',\n color: 'var(--chakra-colors-black-low)',\n '&:hover': {\n borderColor: _isError\n ? ''\n : isFocused\n ? 'var(--chakra-colors-primary-500)'\n : 'var(--chakra-colors-neutral-500)',\n },\n };\n if (_isError) {\n return {\n ...style,\n borderColor: 'var(--chakra-colors-danger-500)',\n };\n }\n return style;\n },\n option: (base: CSSObjectWithLabel) => ({\n ...base,\n ...selectStyle,\n color: 'var(--chakra-colors-neutral-900)',\n padding: 12,\n height: 42,\n }),\n menu: (base: CSSObjectWithLabel) => {\n return {\n ...base,\n ...selectStyle,\n zIndex: 5,\n };\n },\n singleValue: (base: CSSObjectWithLabel) => {\n return {\n ...base,\n ...selectStyle,\n marginLeft: 0,\n };\n },\n input: (base: CSSObjectWithLabel) => {\n return {\n ...base,\n ...selectStyle,\n padding: 0,\n margin: 0,\n };\n },\n dropdownIndicator: (base: CSSObjectWithLabel) => {\n return { ...base, ...selectStyle, color: 'var(--chakra-colors-neutral-400)' };\n },\n indicatorSeparator: (base: CSSObjectWithLabel) => {\n return { ...base, background: 'var(--chakra-colors-neutral-400)', borderRadius: 10 };\n },\n valueContainer: (base: CSSObjectWithLabel, { isMulti }) => {\n return {\n ...base,\n ...selectStyle,\n marginLeft: 0,\n };\n },\n placeholder: (base: CSSObjectWithLabel) => {\n return { ...base, ...selectStyle, color: 'var(--chakra-colors-black-low)', marginLeft: 0 };\n },\n clearIndicator: (base: CSSObjectWithLabel) => {\n return { ...base, cursor: 'pointer' };\n },\n multiValue: base => {\n return {\n ...base,\n borderRadius: 4,\n backgroundColor: 'var(--chakra-colors-neutral-200)',\n };\n },\n multiValueLabel: base => ({\n ...base,\n borderRadius: 4,\n fontWeight: 'bold',\n padding: 0,\n paddingLeft: 0,\n }),\n multiValueRemove: base => ({\n ...base,\n color: 'var(--chakra-colors-neutral-900)',\n ':hover': {\n backgroundColor: 'transparent',\n },\n }),\n };\n}\n\nexport const themeSelect = (theme: Theme) => {\n return {\n ...theme,\n colors: {\n ...theme.colors,\n primary: 'var(--chakra-colors-primary-100)',\n primary25: 'var(--chakra-colors-primary-50)',\n primary50: 'var(--chakra-colors-primary-100)',\n primary75: 'var(--chakra-colors-primary-200)',\n },\n };\n};\n","import { useColorMode } from '@chakra-ui/system';\nimport type { GroupBase } from 'react-select';\nimport type { AsyncPaginateProps } from 'react-select-async-paginate';\nimport { AsyncPaginate } from 'react-select-async-paginate';\n\nimport { ClearIndicator, DropdownIndicator, NoOptionsMessage } from './select';\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectAsyncProps<\n OptionType = unknown,\n Group extends GroupBase<OptionType> = GroupBase<OptionType>,\n Additional = unknown,\n IsMulti extends boolean = false,\n> = AsyncPaginateProps<OptionType, Group, Additional, IsMulti> & ExtendedSelectProps;\n\nfunction SelectAsync<OptionType, Group extends GroupBase<OptionType>, Additional, IsMulti extends boolean = false>({\n styles,\n isError = false,\n ...rest\n}: SelectAsyncProps<OptionType, Group, Additional, IsMulti>) {\n const { colorMode } = useColorMode();\n\n return (\n <AsyncPaginate<OptionType, Group, Additional, IsMulti>\n classNamePrefix=\"react-select\"\n maxMenuHeight={320}\n components={{\n DropdownIndicator,\n ClearIndicator,\n NoOptionsMessage,\n }}\n {...(rest as AsyncPaginateProps<OptionType, Group, Additional, IsMulti>)}\n styles={{ ...selectStyles<OptionType, IsMulti, Group>(colorMode, isError), ...styles }}\n theme={themeSelect}\n />\n );\n}\n\nexport default SelectAsync;\n","import { useColorMode } from '@chakra-ui/system';\nimport React from 'react';\nimport type { GroupBase } from 'react-select';\nimport type { AsyncCreatableProps } from 'react-select/async-creatable';\nimport ReactSelectAsyncCreatable from 'react-select/async-creatable';\n\nimport { ClearIndicator, DropdownIndicator, NoOptionsMessage } from './select';\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectAsyncCreatableProps<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n> = AsyncCreatableProps<Option, IsMulti, Group> & ExtendedSelectProps;\n\nexport default function SelectAsyncCreatable<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n>({ styles, isError = false, ...rest }: SelectAsyncCreatableProps<Option, IsMulti, Group>) {\n const { colorMode } = useColorMode();\n\n return (\n <ReactSelectAsyncCreatable\n classNamePrefix=\"react-select\"\n maxMenuHeight={320}\n components={{\n DropdownIndicator,\n ClearIndicator,\n NoOptionsMessage,\n }}\n {...(rest as SelectAsyncCreatableProps<Option, IsMulti, Group>)}\n styles={{ ...selectStyles<Option, IsMulti, Group>(colorMode, isError), ...styles }}\n theme={themeSelect}\n />\n );\n}\n","import { useColorMode } from '@chakra-ui/system';\nimport React from 'react';\nimport type { GroupBase } from 'react-select';\nimport type { CreatableProps } from 'react-select/creatable';\nimport ReactSelectCreatable from 'react-select/creatable';\n\nimport { ClearIndicator, DropdownIndicator, NoOptionsMessage } from './select';\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectCreatableProps<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n> = CreatableProps<Option, IsMulti, Group> & ExtendedSelectProps;\n\nexport default function SelectCreatable<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n>({ styles, isError = false, ...rest }: SelectCreatableProps<Option, IsMulti, Group>) {\n const { colorMode } = useColorMode();\n\n return (\n <ReactSelectCreatable\n classNamePrefix=\"react-select\"\n maxMenuHeight={320}\n components={{\n DropdownIndicator,\n ClearIndicator,\n NoOptionsMessage,\n }}\n {...(rest as SelectCreatableProps<Option, IsMulti, Group>)}\n styles={{ ...selectStyles<Option, IsMulti, Group>(colorMode, isError), ...styles }}\n theme={themeSelect}\n />\n );\n}\n","/* eslint-disable react/no-unstable-nested-components */\n/* eslint-disable react/require-default-props */\n\nimport { Checkbox, Flex, Text } from '@chakra-ui/react';\nimport { useColorMode } from '@chakra-ui/system';\nimport type { MultiValue as MultiValueType, OptionProps, Props as ReactSelectProps } from 'react-select';\nimport ReactSelect, { components as ComponentRS } from 'react-select';\n\nimport { ClearIndicator, DropdownIndicator, MultiValue, MultiValueRemove, NoOptionsMessage } from './select';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type OptionGroup<Option> = {\n label: string;\n value: string | number | boolean;\n selectAllCheckbox?: boolean;\n} & Partial<Option>;\n\nexport type OptionMultiGroup<Option = unknown> = {\n label: string;\n value: string | number | boolean;\n group: string;\n selectAllCheckbox?: boolean;\n} & Partial<Option>;\n\nexport type OptionsGroup<Option> = {\n readonly label: string;\n readonly options: readonly OptionMultiGroup<Option>[];\n}[];\n\nexport const CHECKBOX_STATE = {\n UNCHECKED: 0,\n INDETERMINATE: 1,\n CHECKED: 2,\n} as const;\n\nexport const getSelectAllCheckboxState = (totalSelected: number, totalOption: number) => {\n if (totalSelected < 0 || totalOption < 0) {\n throw new Error('value less than 0');\n }\n if (totalSelected > totalOption) {\n throw new Error(\"totalSelected couldn't be more than totalOption\");\n }\n if (totalSelected === 0) {\n return CHECKBOX_STATE.UNCHECKED;\n }\n if (totalSelected < totalOption) {\n return CHECKBOX_STATE.INDETERMINATE;\n }\n if (totalSelected === totalOption) {\n return CHECKBOX_STATE.CHECKED;\n }\n return CHECKBOX_STATE.UNCHECKED;\n};\n\nconst InputOption = <T, IsMulti extends boolean>({\n getStyles,\n isDisabled,\n isFocused,\n isSelected,\n children,\n innerProps,\n data,\n checkedState,\n isMulti,\n ...rest\n}: OptionProps<OptionGroup<T>, IsMulti> & {\n checkedState: number;\n}) => {\n const style = {\n alignItems: 'center',\n color: 'inherit',\n display: 'flex ',\n };\n\n const props: JSX.IntrinsicElements['div'] = {\n ...innerProps,\n 'aria-disabled': isDisabled,\n onClick: isDisabled ? undefined : innerProps.onClick,\n style,\n };\n\n return (\n <>\n <ComponentRS.Option\n isMulti\n data={data}\n isDisabled={isDisabled}\n isFocused={isFocused}\n isSelected={isSelected}\n getStyles={getStyles}\n innerProps={props}\n {...rest}\n >\n <Flex\n alignItems=\"center\"\n width=\"100%\"\n gap={2}\n data-test-id=\"CT_component_select-checkbox_options\"\n cursor={isDisabled ? 'not-allowed' : 'default'}\n >\n {data?.selectAllCheckbox ? (\n <Checkbox\n isChecked={checkedState === CHECKBOX_STATE.CHECKED}\n isIndeterminate={checkedState === CHECKBOX_STATE.INDETERMINATE}\n isDisabled={isDisabled}\n pointerEvents=\"none\"\n data-test-id=\"CT_component_select-checkbox_select-all-option\"\n />\n ) : (\n <Checkbox\n pointerEvents=\"none\"\n isChecked={isSelected}\n data-test-id=\"CT_component_select-checkbox_option-checkbox\"\n />\n )}\n <Text textStyle=\"text.sm\" data-test-id={`select-checkbox-option-label-${data.value}`}>\n {children}\n </Text>\n </Flex>\n </ComponentRS.Option>\n {data?.selectAllCheckbox ? <hr /> : null}\n </>\n );\n};\n\nexport interface SelectWithCheckboxBaseProps<\n T = OptionGroup<never> | OptionMultiGroup<never>,\n IsMulti extends boolean = boolean,\n> extends ReactSelectProps<T, IsMulti> {\n isError?: boolean;\n}\n\nconst SelectWithCheckboxBase = <T, IsMulti extends boolean>({\n styles,\n isError = false,\n components,\n options,\n onChange,\n value,\n ...rest\n}: SelectWithCheckboxBaseProps<T, IsMulti>) => {\n const { colorMode } = useColorMode();\n\n return (\n <ReactSelect<T, IsMulti>\n data-test-id=\"\"\n classNamePrefix=\"react-select\"\n options={options}\n value={value}\n onChange={onChange}\n styles={{ ...selectStyles(colorMode, !!isError), ...styles }}\n theme={themeSelect}\n maxMenuHeight={320}\n closeMenuOnSelect={false}\n hideSelectedOptions={false}\n components={components}\n {...rest}\n />\n );\n};\n\nconst SelectCheckbox = <T, IsMulti extends boolean = boolean>(\n props: SelectWithCheckboxBaseProps<OptionGroup<T>, IsMulti>\n) => {\n const { isMulti, options, value, components, ...rest } = props;\n const selectValue = (value || []) as MultiValueType<OptionGroup<T>>;\n\n const defaultComponents = {\n DropdownIndicator,\n ClearIndicator,\n MultiValue,\n MultiValueRemove,\n NoOptionsMessage,\n Option: (optionProps: OptionProps<OptionGroup<T>>) => {\n const { isSelected, data } = optionProps;\n\n const optionLength = options?.length ? options.length - 1 : 0;\n const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;\n const checkedState = data.selectAllCheckbox\n ? getSelectAllCheckboxState(selectValue?.length, optionLength)\n : selectedValue;\n return <InputOption {...optionProps} checkedState={checkedState} />;\n },\n };\n\n return (\n <SelectWithCheckboxBase\n data-test-id=\"\"\n isMulti={isMulti}\n options={options}\n value={value}\n components={{\n ...defaultComponents,\n ...components,\n }}\n {...rest}\n />\n );\n};\n\nexport default SelectCheckbox;\n","import type { BoxProps } from '@chakra-ui/react';\nimport { Flex } from '@chakra-ui/react';\nimport { motion } from 'framer-motion';\nimport React from 'react';\n\nexport interface SidebarProps extends BoxProps {\n isCollapse: boolean;\n}\n\nexport const Sidebar = ({ isCollapse, children, ...props }: SidebarProps) => {\n const { width = '220px' } = props;\n\n return (\n <Flex\n position=\"relative\"\n as={motion.div}\n w={width}\n bg=\"pureWhite\"\n h={props.h}\n flexDirection=\"column\"\n overflow=\"hidden\"\n shadow=\"raised\"\n initial={{ width: isCollapse ? '62px' : width }}\n animate={{ width: isCollapse ? '62px' : width }}\n {...props}\n >\n {children}\n </Flex>\n );\n};\n\nSidebar.displayName = 'Sidebar';\n\nexport default Sidebar;\n","import { Box, Flex, Text } from '@chakra-ui/react';\nimport { ArrowRight } from '@ctlyst.id/internal-icon';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport React from 'react';\n\nexport interface SidebarHeaderProps {\n isCollapse: boolean;\n setCollapse: (k: boolean) => void;\n title?: string;\n}\n\nexport const SidebarHeader = ({ isCollapse, setCollapse, title }: SidebarHeaderProps) => {\n return (\n <Box\n px=\"2\"\n color=\"neutral.900\"\n borderY=\"1px solid\"\n borderColor=\"neutral.300\"\n _hover={{\n color: 'primary.500',\n }}\n >\n <Flex\n data-test-id=\"nLkz69YipW818FioeAxVI\"\n direction=\"row\"\n alignItems=\"center\"\n p=\"2\"\n onClick={() => setCollapse(!isCollapse)}\n cursor=\"pointer\"\n >\n <Box\n as={motion.div}\n boxSize=\"4\"\n initial={{ rotate: 0, x: 8 }}\n animate={{ rotate: isCollapse ? 0 : -180, x: isCollapse ? 8 : 0 }}\n transitionTimingFunction=\"linear\"\n aria-label=\"toggle sidebar\"\n >\n <ArrowRight size={4} color=\"inherit\" />\n </Box>\n <AnimatePresence>\n {!isCollapse && (\n <Box h=\"3.5\" position=\"relative\" ml=\"2\">\n <Text\n as={motion.div}\n w=\"max-content\"\n position=\"absolute\"\n textStyle=\"text.xs\"\n initial={{ opacity: 0, x: 16 }}\n animate={{ opacity: 1, x: 0 }}\n exit={{ opacity: 0, x: 16 }}\n transition=\"10ms linear\"\n userSelect=\"none\"\n >\n {title}\n </Text>\n </Box>\n )}\n </AnimatePresence>\n </Flex>\n </Box>\n );\n};\n\nSidebarHeader.displayName = 'SidebarHeader';\nSidebarHeader.defaultProps = {\n title: 'Sembunyikan menu',\n};\n\nexport default SidebarHeader;\n","import {\n Accordion,\n AccordionButton,\n AccordionItem,\n AccordionPanel,\n Box,\n Fade,\n Popover,\n PopoverBody,\n PopoverContent,\n PopoverHeader,\n PopoverTrigger,\n Portal,\n Text,\n} from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport { motion } from 'framer-motion';\nimport React from 'react';\n\nimport type { NavItemProps } from '../../nav-item';\nimport { NavItem } from '../../nav-item';\nimport type { MenuItem } from '../types';\n\nexport interface SidebarMenuProps {\n menu: MenuItem[];\n isCollapse: boolean;\n active: string | undefined;\n setActive: (active: string) => void;\n itemStyles?: NavItemProps;\n mappingIcon?: Map<string, JSX.Element>;\n}\n\nexport const SidebarMenu = ({ menu, isCollapse, mappingIcon, itemStyles, setActive, active }: SidebarMenuProps) => {\n return (\n <Box\n as={motion.div}\n transitionTimingFunction=\"linear\"\n initial={{ padding: '8px' }}\n animate={{ padding: isCollapse ? '8px 16px' : '8px' }}\n >\n <Accordion index={menu.findIndex(item => item.children.some(child => child.navLink === active))}>\n {menu.map(item => {\n const isActive = active?.includes(item.navLink);\n return (\n <AccordionItem key={item.id} mt=\"4\">\n {({ isExpanded }) => {\n const isOpenOptions = isCollapse || (!isCollapse && !isExpanded);\n const noChild = !item.children.length;\n // eslint-disable-next-line no-nested-ternary\n const offsetStyle: [number, number] = isCollapse ? (noChild ? [-5, 16] : [-1, 16]) : [-1, 8];\n return (\n <>\n <Popover key={item.id} trigger=\"hover\" placement=\"right-start\" offset={offsetStyle}>\n {({ isOpen, onClose }) => {\n const activeOption = isOpen ? 'primary.50' : 'white';\n const backgroundColor = isOpen && !isActive ? 'primary.50' : 'primary.100';\n const activeParent = isActive ? backgroundColor : activeOption;\n\n return (\n <>\n <PopoverTrigger key={item.id}>\n <AccordionButton\n key={item.id}\n data-test-id={`CTA_button-accordion-${item.title}`}\n p=\"0\"\n h=\"fit-content\"\n >\n <NavItem\n key={item.id}\n as={motion.div}\n transitionTimingFunction=\"linear\"\n justifyContent={isCollapse ? 'center' : 'space-between'}\n isActive={isActive}\n bg={activeParent}\n data-test-id={`CTA_nav-item-${item.title}`}\n onClick={() =>\n setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink)\n }\n position=\"relative\"\n {...itemStyles}\n >\n {mappingIcon && (\n <Box display=\"flex\" boxSize=\"3\" transition=\"50ms linear\">\n {mappingIcon.get(item.icon || '')}\n </Box>\n )}\n\n {!isCollapse && (\n <Box\n display=\"flex\"\n w=\"full\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n ml=\"2\"\n as={motion.div}\n transition=\"20ms linear\"\n transitionTimingFunction=\"linear\"\n initial={{ opacity: 0, x: 24 }}\n animate={{ opacity: 1, x: 0 }}\n exit={{ opacity: 0, x: 16 }}\n >\n <Box h=\"3.5\" position=\"relative\">\n <Text textStyle=\"text.xs\" w=\"max-content\" position=\"absolute\">\n {item.title}\n </Text>\n </Box>\n {!!item.children.length && (\n <Box\n display=\"flex\"\n boxSize=\"3\"\n as={motion.div}\n transitionTimingFunction=\"linear\"\n animate={{ transform: isExpanded ? 'rotate(-180deg)' : 'rotate(0)' }}\n >\n <Icon.ChevronDown size={3} />\n </Box>\n )}\n </Box>\n )}\n </NavItem>\n </AccordionButton>\n </PopoverTrigger>\n {isOpenOptions && (\n <Portal>\n {item.children.length > 0 ? (\n <PopoverContent w=\"176px\" borderColor=\"neutral.200\" bg=\"white\" rounded=\"sm\">\n <PopoverHeader borderColor=\"neutral.300\" textStyle=\"text.xs\" p=\"2\">\n {mappingIcon && (\n <Box display=\"flex\" alignItems=\"center\">\n {mappingIcon.get(item.icon || '')}\n <Box as=\"span\" ml=\"2\">\n {item.title}\n </Box>\n </Box>\n )}\n </PopoverHeader>\n {!!item.children.length && (\n <PopoverBody pb=\"1\" px=\"0\" pt=\"0\">\n {item.children.map(submenu => (\n <NavItem\n data-test-id={`CTA_Sidebar-popover-item-${submenu.id}`}\n key={submenu.id}\n isChild\n isActive={active === submenu.navLink}\n onClick={() => {\n setActive(submenu.navLink);\n onClose();\n }}\n rounded=\"none\"\n {...itemStyles}\n >\n {submenu.title}\n </NavItem>\n ))}\n </PopoverBody>\n )}\n </PopoverContent>\n ) : (\n isCollapse && (\n <PopoverContent w=\"174px\" borderColor=\"neutral.200\" bg=\"white\" rounded=\"sm\">\n <PopoverBody py=\"1\" px=\"0\">\n <NavItem\n data-test-id={`CTA_Sidebar-popover-item-${item.id}`}\n key={item.id}\n justifyContent=\"flex-start\"\n isActive={active === item.navLink}\n onClick={() => {\n setActive(item.navLink);\n onClose();\n }}\n rounded=\"none\"\n {...itemStyles}\n >\n {mappingIcon && (\n <Box display=\"flex\" boxSize=\"3\" transition=\"50ms linear\">\n {mappingIcon.get(item.icon || '')}\n </Box>\n )}\n <Box h=\"3.5\" position=\"relative\" ml=\"2\">\n <Text textStyle=\"text.xs\" w=\"max-content\" position=\"absolute\">\n {item.title}\n </Text>\n </Box>\n </NavItem>\n </PopoverBody>\n </PopoverContent>\n )\n )}\n </Portal>\n )}\n </>\n );\n }}\n </Popover>\n {!isCollapse && (\n <Fade\n in\n transition={{\n enter: { duration: 0.5 },\n }}\n >\n <AccordionPanel mt=\"1\" p=\"0\">\n {item.children.map(submenu => (\n <NavItem\n mt=\"1\"\n key={submenu.id}\n data-test-id={`CTA_Sidebar-accordion-item-${submenu.id}`}\n isActive={active === submenu.navLink}\n isChild\n {...itemStyles}\n onClick={() => setActive(submenu.navLink)}\n >\n {submenu.title}\n </NavItem>\n ))}\n </AccordionPanel>\n </Fade>\n )}\n </>\n );\n }}\n </AccordionItem>\n );\n })}\n </Accordion>\n </Box>\n );\n};\n\nSidebarMenu.displayName = 'SidebarMenu';\nSidebarMenu.defaultProps = {\n itemStyles: undefined,\n mappingIcon: undefined,\n};\n\nexport default SidebarMenu;\n","import type {\n HTMLChakraProps,\n ResponsiveValue,\n SystemProps,\n SystemStyleObject,\n ThemingProps,\n UseCheckboxProps,\n} from '@chakra-ui/react';\nimport { chakra, Flex, forwardRef, omitThemingProps, useCheckbox, useMultiStyleConfig } from '@chakra-ui/react';\nimport { cx, dataAttr } from '@chakra-ui/shared-utils';\nimport { Check, Close } from '@ctlyst.id/internal-icon';\nimport React, { useMemo } from 'react';\n\nexport interface SwitchProps\n extends Omit<UseCheckboxProps, 'isIndeterminate'>,\n Omit<HTMLChakraProps<'label'>, keyof UseCheckboxProps>,\n ThemingProps<'Switch'> {\n /**\n * The spacing between the switch and its label text\n * @default 0.5rem\n * @type SystemProps[\"marginLeft\"]\n */\n spacing?: SystemProps['marginLeft'];\n size?: 'sm' | 'md' | 'lg';\n}\n\n/**\n * The `Switch` component is used as an alternative for the checkbox component for switching between \"enabled\" and \"disabled\" states.\n *\n * @see Docs https://chakra-ui.com/docs/components/switch\n * @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/switch/\n */\nconst Switch = forwardRef<SwitchProps, 'input'>(function Switch(props, ref) {\n const styles = useMultiStyleConfig('Switch', props);\n\n const { spacing = '0.5rem', children, ...ownProps } = omitThemingProps(props);\n\n const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = useCheckbox(ownProps);\n\n const containerStyles: SystemStyleObject = useMemo(\n () => ({\n display: 'inline-block',\n position: 'relative',\n verticalAlign: 'middle',\n lineHeight: 0,\n ...styles.container,\n }),\n [styles.container]\n );\n\n const trackStyles: SystemStyleObject = useMemo(\n () => ({\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'flex-start',\n boxSizing: 'content-box',\n cursor: 'pointer',\n width: 200,\n ...styles.track,\n }),\n [styles.track]\n );\n\n const labelStyles: SystemStyleObject = useMemo(\n () => ({\n userSelect: 'none',\n marginStart: spacing,\n ...styles.label,\n }),\n [spacing, styles.label]\n );\n\n const getIconSize = (value?: ResponsiveValue<'sm' | 'md' | 'lg'>) => {\n const iconSize = {\n sm: 3,\n md: 4,\n lg: 5,\n };\n\n return iconSize[value as keyof typeof iconSize];\n };\n\n return (\n <chakra.label\n {...getRootProps()}\n display=\"flex\"\n alignItems=\"center\"\n className={cx('chakra-switch', props.className)}\n __css={containerStyles}\n >\n <input data-test-id=\"\" className=\"chakra-switch__input\" {...getInputProps({}, ref)} />\n <chakra.span {...getCheckboxProps()} className=\"chakra-switch__track\" pos=\"relative\" __css={trackStyles}>\n <Flex gap={1} pos=\"absolute\" top=\"50%\" left=\"50%\" transform=\"translate(-50%, -50%)\">\n <Check color=\"white\" size={getIconSize(props.size)} />\n <Close color={state.isDisabled ? 'neutral.600' : 'neutral.900'} size={getIconSize(props.size)} />\n </Flex>\n <chakra.span\n __css={styles.thumb}\n className=\"chakra-switch__thumb\"\n data-checked={dataAttr(state.isChecked)}\n data-hover={dataAttr(state.isHovered)}\n />\n </chakra.span>\n {children && (\n <chakra.span\n className=\"chakra-switch__label\"\n color={state.isDisabled ? 'black.low' : 'black.high'}\n cursor=\"pointer\"\n {...getLabelProps()}\n __css={labelStyles}\n >\n {children}\n </chakra.span>\n )}\n </chakra.label>\n );\n});\n\nSwitch.defaultProps = {\n size: 'sm',\n};\n\nexport default Switch;\n","export {\n Table as ChakraTable,\n TableBodyProps,\n TableCellProps,\n TableColumnHeaderProps,\n TableHeadProps,\n TableProps,\n TableRowProps,\n Tbody,\n Td,\n Th,\n Thead,\n Tr,\n} from '@chakra-ui/react';\n","import type { TabProps as ChakraTabProps } from '@chakra-ui/react';\nimport { Button, Flex, forwardRef, useMultiStyleConfig, useTab } from '@chakra-ui/react';\nimport * as React from 'react';\n\ntype AddonProps = {\n isSelected: boolean;\n};\n\ntype TabProps = ChakraTabProps & {\n 'data-test-id'?: string;\n leftAddon?({ isSelected }: AddonProps): React.ReactNode;\n rightAddon?({ isSelected }: AddonProps): React.ReactNode;\n};\n\nconst Tab = forwardRef<TabProps, 'button'>((props, ref) => {\n const tabProps = useTab({ ...props, ref });\n const isSelected = !!tabProps['aria-selected'];\n const styles = useMultiStyleConfig('Tabs', tabProps);\n return (\n <Button\n data-test-id={props['data-test-id']}\n p={4}\n fontSize=\"text.md\"\n _selected={{\n borderColor: 'primary.500',\n color: 'primary.500',\n _hover: {\n '& .chakra-badge': {\n bg: 'primary.500',\n },\n color: 'primary.500',\n },\n }}\n color=\"black.medium\"\n _focus={{ bg: 'none' }}\n _hover={{\n '& .chakra-badge': {\n bg: 'primary.400',\n },\n color: 'primary.400',\n }}\n __css={styles.tab}\n {...tabProps}\n >\n <Flex alignItems=\"center\">\n {props.leftAddon?.({ isSelected })}\n {tabProps.children}\n {props.rightAddon?.({ isSelected })}\n </Flex>\n </Button>\n );\n});\n\nexport default Tab;\n","export { default as Tab } from './components/tab';\n// export { default as TabList } from './components/tab-list';\n// export { default as TabPanel } from './components/tab-panel';\nexport {\n TabIndicator,\n TabIndicatorProps,\n TabList,\n TabListProps,\n TabPanel,\n TabPanelProps,\n TabPanels,\n TabPanelsProps,\n TabProps,\n Tabs,\n TabsDescendantsProvider,\n TabsProps,\n TabsProvider,\n useTab,\n useTabIndicator,\n useTabList,\n UseTabListProps,\n UseTabListReturn,\n UseTabOptions,\n useTabPanel,\n useTabPanels,\n UseTabPanelsProps,\n UseTabProps,\n useTabs,\n useTabsContext,\n useTabsDescendant,\n useTabsDescendants,\n useTabsDescendantsContext,\n UseTabsProps,\n UseTabsReturn,\n useTabsStyles,\n} from '@chakra-ui/react';\n","export { Code, CodeProps, Heading, HeadingProps, Link, LinkProps, Text, TextProps } from '@chakra-ui/react';\n","import type { BoxProps, InputProps } from '@chakra-ui/react';\nimport { Box, Flex, forwardRef, Input, InputGroup } from '@chakra-ui/react';\nimport { Clock } from '@ctlyst.id/internal-icon';\nimport { useEffect, useImperativeHandle } from 'react';\n\nimport { Field } from '../../field';\nimport { useTimescape } from './integration';\n\nexport type TimeOptions = {\n date?: Date;\n hour12?: boolean;\n digits?: 'numeric' | '2-digit';\n wrapAround?: boolean;\n snapToStep?: boolean;\n};\nconst timeDigitFormat = (number: number) => {\n if (number.toString().length === 1) {\n return `0${number}`;\n }\n return number;\n};\n\nexport class Time {\n hours: number;\n\n minutes: number;\n\n seconds: number;\n\n constructor(hours?: number, minutes?: number, seconds?: number) {\n this.hours = hours ?? 0;\n this.minutes = minutes ?? 0;\n this.seconds = seconds ?? 0;\n }\n\n toString(): string {\n return `${timeDigitFormat(this.hours)}:${timeDigitFormat(this.minutes)}:${timeDigitFormat(this.seconds)}`;\n }\n}\n\nexport const timeFromString = (timeString: string) => {\n const [hours, minutes, seconds] = timeString.split(':');\n return new Time(Number(hours), Number(minutes), Number(seconds));\n};\n\nexport interface TimeInputProps {\n name?: string;\n config?: TimeOptions;\n value?: Time;\n seconds?: boolean;\n onChangeTime?: (time: Time) => void;\n isDisabled?: boolean;\n isRequired?: boolean;\n label?: string;\n isError?: boolean;\n errorMessage?: string;\n isSuccess?: boolean;\n boxProps?: BoxProps;\n addOnRight?: React.ReactNode;\n}\n\nconst InputTimeArea = forwardRef<InputProps, 'input'>((props, ref) => {\n return (\n <Input\n _focusWithin={{\n bg: 'neutral.300',\n }}\n boxSizing=\"content-box\"\n height=\"22px\"\n ref={ref}\n px={'2px'}\n py={0}\n sx={{\n fontVariantNumeric: 'tabular-nums',\n fontSize: 12,\n }}\n {...props}\n />\n );\n});\n\nexport const TimeInput = forwardRef<TimeInputProps, 'div'>(\n (\n {\n name,\n config,\n label,\n isError,\n isRequired,\n errorMessage,\n value,\n seconds,\n isDisabled,\n boxProps,\n addOnRight,\n isSuccess,\n onChangeTime,\n },\n ref\n ) => {\n const timeVal = value ?? new Time(0, 0, 0);\n const dateVal = new Date();\n dateVal.setHours(timeVal.hours, timeVal.minutes, timeVal.seconds, 0);\n\n const defaultDate = new Date();\n defaultDate.setHours(0, 0, 0, 0);\n\n const date = dateVal || defaultDate;\n\n const timeValue = new Time();\n const { getRootProps, getInputProps, options, update, _manager } = useTimescape({\n date,\n ...config,\n });\n\n useEffect(() => {\n timeValue.hours = options?.date?.getHours() ?? 0;\n timeValue.minutes = options?.date?.getMinutes() ?? 0;\n timeValue.seconds = options?.date?.getSeconds() ?? 0;\n if (onChangeTime) {\n onChangeTime(timeValue);\n }\n }, [options.date]);\n\n useImperativeHandle(ref, () => ({\n focus() {\n _manager.focusField('hours');\n },\n }));\n const rootProps = getRootProps();\n const hoursProps = getInputProps('hours');\n\n const getProperties = () => {\n let outlineColor = 'neutral.400';\n let focusColor = 'primary.500';\n\n if (isError || isDisabled || isSuccess) {\n if (isError) outlineColor = 'danger.500';\n else if (isSuccess) outlineColor = 'success.500';\n focusColor = outlineColor;\n }\n\n return {\n outlineColor,\n focusColor,\n };\n };\n\n const { outlineColor, focusColor } = getProperties();\n return (\n <Box {...boxProps} {...rootProps}>\n <Field\n isError={isError}\n label={label}\n isRequired={isRequired}\n errorMessage={errorMessage}\n isDisabled={isDisabled}\n isSuccess={isSuccess}\n >\n <Box\n transition=\"all 0.15s\"\n boxShadow=\"none\"\n borderRadius=\"sm\"\n border=\"1px solid\"\n borderColor={outlineColor}\n _focusWithin={{\n borderColor: focusColor,\n }}\n >\n <InputGroup\n borderRadius=\"sm\"\n backgroundColor={isDisabled ? 'neutral.300' : 'white.high'}\n cursor={isDisabled ? 'not-allowed' : 'default'}\n alignItems=\"center\"\n gap={3}\n data-test-id={`CT_Component_TimeInput${name ? `_${name}` : ''}`}\n >\n <Flex gap={'1px'} width=\"100%\" alignItems=\"center\" pl={2}>\n <InputTimeArea data-test-id=\"start-time\" {...hoursProps} />\n <span>:</span>\n\n <InputTimeArea data-test-id=\"end-time\" {...getInputProps('minutes')} />\n\n {seconds && (\n <>\n <span>:</span>\n <InputTimeArea {...getInputProps('seconds')} />\n </>\n )}\n {options.hour12 && <Input p={0} {...getInputProps('am/pm')} />}\n </Flex>\n\n <Clock color=\"neutral.400\" size={4} />\n {addOnRight}\n </InputGroup>\n </Box>\n </Field>\n </Box>\n );\n }\n);\n","/* eslint-disable no-underscore-dangle */\nimport { $NOW, type DateType, type Options, type RangeOptions, TimescapeManager } from '@zamiru/timescape';\nimport { marry } from '@zamiru/timescape';\nimport {\n type Dispatch,\n type MutableRefObject,\n type SetStateAction,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\ntype ReactOptions = Options & {\n onChangeDate?: (nextDate: Date | undefined) => void;\n};\n\nexport type ReactRangeOptions = RangeOptions & {\n from?: { onChangeDate?: (nextDate: Date | undefined) => void };\n to?: { onChangeDate?: (nextDate: Date | undefined) => void };\n};\nexport { $NOW, type DateType, type ReactOptions as Options, type ReactRangeOptions as RangeOptions };\n\nexport type UpdateFn = Dispatch<SetStateAction<Options>>;\n\nexport const useTimescape = (options: ReactOptions = {}) => {\n const { date, onChangeDate, ...rest } = options;\n const [manager] = useState(() => new TimescapeManager(date, rest));\n const onChangeDateRef = useRef(onChangeDate);\n useLayoutEffect(() => {\n onChangeDateRef.current = onChangeDate;\n }, [onChangeDate]);\n const [optionsState, update] = useState<ReactOptions>(() => ({\n date,\n ...rest,\n }));\n\n useEffect(() => {\n // this is to work around StrictMode shenanigans\n manager.resync();\n\n return () => {\n manager.remove();\n };\n }, [manager]);\n\n useEffect(() => {\n return manager.on('changeDate', nextDate => {\n onChangeDateRef.current?.(nextDate);\n update(value => ({ ...value, date: nextDate }));\n });\n }, [manager]);\n\n const timestamp = optionsState.date?.getTime();\n\n useEffect(() => {\n manager.date = timestamp;\n manager.minDate = optionsState.minDate;\n manager.maxDate = optionsState.maxDate;\n manager.hour12 = optionsState.hour12;\n manager.wrapAround = optionsState.wrapAround;\n manager.digits = optionsState.digits;\n manager.snapToStep = optionsState.snapToStep;\n }, [\n manager,\n timestamp,\n optionsState.minDate,\n optionsState.maxDate,\n optionsState.hour12,\n optionsState.wrapAround,\n optionsState.digits,\n optionsState.snapToStep,\n ]);\n\n return {\n _manager: manager,\n getInputProps: (\n type: DateType,\n opts?: {\n ref?: MutableRefObject<HTMLInputElement | null>;\n autofocus?: boolean;\n }\n ) => ({\n _ref: (element: HTMLInputElement | null) => {\n if (!element) return;\n manager.registerElement(element, type, opts?.autofocus);\n // eslint-disable-next-line no-param-reassign\n if (opts?.ref) opts.ref.current = element;\n },\n get ref() {\n // eslint-disable-next-line no-underscore-dangle\n return this._ref;\n },\n set ref(value) {\n // eslint-disable-next-line no-underscore-dangle\n this._ref = value;\n },\n }),\n getRootProps: () => ({\n ref: (element: HTMLElement | null) => element && manager.registerRoot(element),\n }),\n options: optionsState,\n update,\n } as const;\n};\n\nexport const useTimescapeRange = (options: ReactRangeOptions) => {\n const from = useTimescape(options.from);\n const to = useTimescape(options.to);\n\n useEffect(() => {\n marry(from._manager, to._manager);\n }, [from._manager, to._manager]);\n\n return {\n getRootProps: () => ({\n ref: (element: HTMLElement | null) => {\n if (!element) return;\n from._manager.registerRoot(element);\n to._manager.registerRoot(element);\n },\n }),\n from: {\n getInputProps: from.getInputProps,\n options: from.options,\n update: from.update,\n },\n to: {\n getInputProps: to.getInputProps,\n options: to.options,\n update: to.update,\n },\n } as const;\n};\n","/* eslint-disable import/prefer-default-export */\nimport { Box, chakra, Flex, Link, useToken } from '@chakra-ui/react';\nimport { Close } from '@ctlyst.id/internal-icon';\nimport type { ToastOptions, ToastPosition } from 'react-toastify';\nimport { Bounce, toast } from 'react-toastify';\nimport type { CloseButtonProps } from 'react-toastify/dist/components';\nimport type { Id, ToastIcon, TypeOptions } from 'react-toastify/dist/types';\n\nimport Styles from './styles';\n\ninterface CustomIconProps {\n theme: 'light' | 'dark' | 'colored' | 'auto';\n type: TypeOptions;\n}\n\ninterface CustomToastOptions extends Omit<ToastOptions, 'icon'> {\n icon?: ToastIcon;\n link?: { url: string; label: string };\n}\n\ninterface ToastOptionsWithDefaults extends CustomToastOptions {\n position?: ToastPosition;\n autoClose?: number;\n hideProgressBar?: boolean;\n closeOnClick?: boolean;\n pauseOnHover?: boolean;\n draggable?: boolean;\n progress?: undefined;\n}\n\nconst CustomCloseButton = (props: CloseButtonProps) => {\n const { closeToast } = props;\n\n return (\n <Box p={2} mb={1} alignItems=\"center\" display=\"flex\" data-test-id=\"\" cursor=\"pointer\" onClick={closeToast}>\n <Close size={4} color=\"white\" />\n </Box>\n );\n};\n\nconst DEFAULT_OPTIONS: ToastOptionsWithDefaults = {\n position: 'top-right',\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n icon: false,\n theme: 'colored',\n closeButton: CustomCloseButton,\n className: 'container-toast',\n transition: Bounce,\n};\n\nconst renderIcon = (icon: ToastIcon, type: TypeOptions) => {\n const iconProps: CustomIconProps = { theme: 'colored', type };\n if (typeof icon === 'function') {\n return icon(iconProps);\n }\n return icon;\n};\n\nexport const useToast = () => {\n const [primary500, neutral500, info500, danger500, warning500, success500] = useToken('colors', [\n 'primary.500',\n 'neutral.500',\n 'info.500',\n 'danger.500',\n 'warning.500',\n 'success.500',\n ]);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const content = (icon: any, message: string, link?: { url: string; label: string }) => {\n return (\n <>\n <Styles />\n <Flex justifyContent=\"space-between\" alignItems=\"center\" gap={4} mb={1}>\n <Flex alignItems=\"center\">\n {icon && (\n <chakra.span mr={2} w={4} h={4}>\n {renderIcon(icon, 'default')}\n </chakra.span>\n )}\n <chakra.span noOfLines={2}>{message}</chakra.span>\n </Flex>\n {link && (\n <Link\n href={link.url}\n textDecoration=\"underline\"\n minW=\"max-content\"\n textAlign=\"right\"\n textStyle=\"text.sm\"\n fontWeight=\"semibold\"\n >\n {link.label}\n </Link>\n )}\n </Flex>\n </>\n );\n };\n\n return {\n primary: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.success(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: primary500 },\n });\n },\n neutral: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.success(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: neutral500 },\n });\n },\n success: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.success(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: success500 },\n });\n },\n error: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.error(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: danger500 },\n });\n },\n warning: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.warning(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: warning500 },\n });\n },\n info: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.info(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: info500 },\n });\n },\n custom: (message: string, options?: CustomToastOptions) => {\n const { icon, link, style, ...restOptions } = options || {};\n toast.info(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: style?.backgroundColor, color: style?.color },\n });\n },\n dismiss: (id?: Id) => toast.dismiss(id),\n };\n};\n","import { Global } from '@emotion/react';\n\nconst Styles = () => {\n return (\n <Global\n styles={`\n .Toastify__toast-container {\n width: 380px;\n }\n\n .container-toast {\n height: 64px;\n width: 380px;\n border-radius: 4px;\n font-family: Poppins;\n }\n\n @media (max-width: 480px) {\n .container-toast {\n margin: 16px !important;\n width: calc(100% - 32px); /* Adjust width to fit within the margin */\n }\n\n .Toastify__toast-container {\n width: 100%;\n }\n }\n `}\n />\n );\n};\n\nexport default Styles;\n","// eslint-disable-next-line import/prefer-default-export\nexport * from './components/toast';\nexport { ToastContainer } from 'react-toastify';\n","/* eslint-disable react/jsx-no-useless-fragment */\n/* eslint-disable react/require-default-props */\nimport {\n Box,\n Button,\n Flex,\n FormControl,\n FormLabel,\n Heading,\n Image as ChakraImage,\n ListItem,\n RequiredIndicator,\n Text,\n UnorderedList,\n} from '@chakra-ui/react';\nimport { Close as X, Plus } from '@ctlyst.id/internal-icon';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport type { FileError, FileRejection } from 'react-dropzone';\nimport { useDropzone } from 'react-dropzone';\n\nimport { useToast } from '../../toast/components/toast';\nimport { DEFAULT_IMAGE_MIME_TYPE, messages } from '../constants';\nimport type { UploaderProps } from '../types';\nimport { defaultOnHandleRejections } from '../utils/handler';\n\nconst Uploader: React.FC<UploaderProps> = ({\n onHandleUploadFile,\n onHandleRejections,\n dragActiveText,\n dragInActiveText,\n dragReplaceText,\n changeFileText,\n uploadFileText,\n helperText,\n label,\n isRequired,\n isDisabled,\n dimension,\n acceptFormat = {\n validate: DEFAULT_IMAGE_MIME_TYPE,\n },\n maxFileSize,\n customValidation,\n value,\n isShowCloseButton = true,\n testId,\n isError,\n errorText,\n isShowReupload = true,\n size = 'lg',\n validatorExt,\n ...props\n}) => {\n const [filePreview, setFilePreview] = useState<string>();\n\n const toast = useToast();\n\n const handleRejection = useCallback(\n (message: string, file: File, image: HTMLImageElement | null) => {\n if (onHandleRejections) {\n onHandleRejections(file, image);\n }\n\n return toast.error(message);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [onHandleRejections]\n );\n\n const onDropAccepted = useCallback(\n (files: File[]) => {\n const file = files[0];\n const imageUrl = URL.createObjectURL(file);\n const img = new Image();\n\n img.src = imageUrl as string;\n img.onload = () => {\n const imgWidth = img.width;\n const imgheight = img.height;\n\n // == deprecated ==\n // validate by provided custom validator\n if (customValidation && customValidation(file, img) !== null) {\n return handleRejection(customValidation(file, img) as string, file, img);\n }\n\n // == deprecated ==\n // validate image dimension\n if (dimension && (imgWidth !== dimension.validate[0] || imgheight !== dimension.validate[1])) {\n return handleRejection(dimension.message, file, img);\n }\n\n onHandleUploadFile?.(file, img);\n setFilePreview(URL.createObjectURL(file));\n\n return null;\n };\n\n return null;\n },\n [acceptFormat, customValidation, dimension, handleRejection, maxFileSize, onHandleUploadFile]\n );\n\n const onDropRejected = useCallback((fileRejections: FileRejection[]) => {\n defaultOnHandleRejections(fileRejections, { acceptFormat, maxFileSize }, handleRejection);\n }, []);\n\n const validator = useCallback(\n (file: File) => {\n const result: FileError | FileError[] | null = [];\n if (validatorExt) {\n validatorExt.forEach(validatorFn => {\n const error = validatorFn(file);\n if (Array.isArray(error)) {\n result.push(...error);\n } else if (error) result.push(error);\n });\n }\n if (result.length > 0) return result;\n\n return null;\n },\n\n [validatorExt]\n );\n const acceptFile = acceptFormat.validate.map(type => [`image/${type}`, []]);\n const { getRootProps, getInputProps, isDragActive, acceptedFiles, open } = useDropzone({\n onDropAccepted,\n onDropRejected,\n accept: Object.fromEntries(acceptFile),\n maxFiles: 1,\n maxSize: maxFileSize?.validate,\n noClick: isDisabled,\n noDrag: isDisabled,\n validator,\n });\n\n const renderHelperText = () => {\n if (Array.isArray(helperText)) {\n return (\n <UnorderedList\n pl={2}\n fontSize={12}\n color=\"black.medium\"\n data-test-id=\"CT_component_base-image-uploader_helperText\"\n >\n {helperText.map(text => (\n <ListItem key={text}>{text}</ListItem>\n ))}\n </UnorderedList>\n );\n }\n\n return helperText;\n };\n\n const renderErrorText = (text: string | undefined) => (\n <Box mb={2}>\n <Text textStyle=\"text.xs\" color=\"danger.500\">\n {text}\n </Text>\n </Box>\n );\n\n const handleRemove = (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n e.stopPropagation();\n setFilePreview(undefined);\n onHandleUploadFile?.(null, null);\n acceptedFiles.pop();\n };\n\n /**\n * Immediately set file preview if value exist\n */\n useEffect(() => {\n if (value) {\n if (typeof value === 'string') {\n setFilePreview(value);\n } else {\n setFilePreview(URL.createObjectURL(value));\n }\n } else {\n setFilePreview(undefined);\n acceptedFiles.pop();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n\n const isSmall = size === 'sm';\n const color = isDisabled ? 'neutral.500' : 'primary.500';\n const containerHeight = !isSmall ? '160px' : '120px';\n const cursorType = filePreview ? 'initial' : 'pointer';\n\n return (\n <FormControl isRequired={isRequired}>\n {label && typeof label === 'string' ? (\n // eslint-disable-next-line react/jsx-no-useless-fragment\n <FormLabel requiredIndicator={<></>} fontSize=\"text.sm\">\n {isRequired && <RequiredIndicator mr={1} ml={0} />}\n {label}\n </FormLabel>\n ) : (\n label\n )}\n <Flex\n minH={containerHeight}\n maxW={!isSmall ? 'full' : '120px'}\n mb={2}\n bg=\"white\"\n border=\"1px dashed\"\n rounded=\"sm\"\n borderColor={isError ? 'danger.500' : color}\n alignItems=\"center\"\n justifyContent=\"center\"\n cursor={isDisabled ? 'not-allowed' : cursorType}\n pos=\"relative\"\n _hover={{ bg: !filePreview && !isDisabled ? 'primary.50' : '' }}\n {...props}\n {...getRootProps()}\n >\n {filePreview && isShowCloseButton && (\n <Box position=\"absolute\" top={1} right={1}>\n <Button\n data-test-id={`CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ''}`}\n aria-label=\"remove-image\"\n rounded=\"full\"\n variant=\"icon\"\n bg=\"neutral.600\"\n _hover={{ bg: 'neutral.700' }}\n size=\"sm\"\n h=\"20px\"\n w=\"20px\"\n border=\"none\"\n zIndex={1}\n onClick={handleRemove}\n >\n <X size={3} color=\"white\" />\n </Button>\n </Box>\n )}\n\n {filePreview && (\n <Box w=\"full\">\n <Flex\n position=\"relative\"\n data-test-id={`CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ''}`}\n justify=\"center\"\n align=\"center\"\n >\n <ChakraImage\n h={size === 'lg' ? '120' : '100'}\n src={filePreview}\n alt=\"uploader-preview\"\n objectFit={'contain'}\n />\n </Flex>\n </Box>\n )}\n\n {!filePreview && (\n <>\n {isDragActive ? (\n <Text>{dragActiveText ?? messages.dragActive}</Text>\n ) : (\n <Flex gap={2} flexDirection=\"column\" alignItems=\"center\" color={isError ? 'danger.500' : color}>\n {size === 'sm' && <Plus size={6} color={color} />}\n <Box>\n {!filePreview && (\n <Heading\n fontWeight=\"400\"\n fontSize={size === 'sm' ? 'text.md' : 'text.xl'}\n mb={size === 'sm' ? '0' : '2'}\n textAlign=\"center\"\n >\n {uploadFileText && size === 'lg' ? uploadFileText : 'Upload'}\n </Heading>\n )}\n\n {size === 'lg' && (\n <Text fontSize={12}>\n {filePreview\n ? dragReplaceText ?? messages.dragReplace\n : dragInActiveText ?? messages.dragInActive}\n </Text>\n )}\n </Box>\n </Flex>\n )}\n </>\n )}\n </Flex>\n <input\n {...getInputProps()}\n data-test-id={`CT_component_base-image-uploader_change-img${testId ? `_${testId}` : ''}`}\n />\n {filePreview && !isSmall && (\n <Flex align=\"center\" justify=\"center\" my={2}>\n {isShowReupload && (\n <Button\n data-test-id={`CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ''}`}\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n onClick={open}\n >\n Ubah Foto\n </Button>\n )}\n </Flex>\n )}\n {renderErrorText(errorText)}\n {renderHelperText()}\n </FormControl>\n );\n};\n\nexport default Uploader;\n","/* eslint-disable prefer-destructuring */\n/* eslint-disable no-underscore-dangle */\nexport const ONE_MEGA_BYTE = 1000000;\nexport const messages = {\n dragActive: 'Drop file disini...',\n dragInActive: `(Klik atau drag untuk input file)`,\n dragReplace: `(Klik atau drag untuk mengganti file)`,\n replaceFile: 'Ganti File',\n uploadFile: 'Upload File',\n};\n\nexport const IMG_EXT = {\n jpg: 'jpg',\n jpeg: 'jpeg',\n png: 'png',\n gif: 'gif',\n} as const;\n\nexport const DEFAULT_IMAGE_MIME_TYPE = [IMG_EXT.jpg, IMG_EXT.jpeg, IMG_EXT.png, IMG_EXT.gif];\n\nexport const concatList = (list: string[]) => {\n let _concatedList = '';\n if (list.length > 1) {\n _concatedList = `${list.slice(0, -1).join(', ')} dan ${list[list.length - 1]}`;\n } else {\n _concatedList = list[0];\n }\n return _concatedList;\n};\n\nexport const formatValidationMessage = (extension: string[]) =>\n `Foto harus dalam format ${concatList(extension.map(ext => `.${ext}`))}.`;\n","enum ErrorCode {\n FileInvalidType = 'file-invalid-type',\n FileTooLarge = 'file-too-large',\n FileTooSmall = 'file-too-small',\n TooManyFiles = 'too-many-files',\n FileInvalidDimension = 'file-invalid-dimension',\n}\nexport default ErrorCode;\n","/* eslint-disable import/prefer-default-export */\nimport type { FileRejection } from 'react-dropzone';\n\nimport { formatValidationMessage } from '../constants';\nimport type { UploaderProps } from '../types';\nimport ErrorCode from './error-code';\n\nexport const defaultOnHandleRejections = (\n fileRejection: FileRejection[],\n config: Pick<UploaderProps, 'acceptFormat' | 'maxFileSize'>,\n handleRejection: (message: string, file: File, image: HTMLImageElement | null) => void\n) => {\n const { file, errors } = fileRejection[0];\n switch (errors[0].code) {\n case ErrorCode.FileInvalidType: {\n const fileFormat = file.name.split('.').pop() as string;\n if (!config?.acceptFormat) return;\n\n // validate file format\n if (!config?.acceptFormat?.validate.includes(fileFormat)) {\n handleRejection(\n config.acceptFormat?.message ?? formatValidationMessage(config.acceptFormat?.validate),\n file,\n null\n );\n }\n break;\n }\n case ErrorCode.FileTooLarge: {\n if (config.maxFileSize) {\n handleRejection(config.maxFileSize.message, file, null);\n }\n break;\n }\n default:\n handleRejection(errors[0].message, file, null);\n break;\n }\n};\n","/* eslint-disable import/prefer-default-export */\ninterface ImageRes {\n width: number;\n height: number;\n}\nexport const isRatioEqual = (base: ImageRes, img: ImageRes) => {\n const baseRatio = (base.width / base.height).toFixed(2);\n const imgRatio = (img.width / img.height).toFixed(2);\n return baseRatio === imgRatio;\n};\n","/* eslint-disable import/prefer-default-export */\nimport type { FileError } from 'react-dropzone';\n\nimport ErrorCode from '../utils/error-code';\nimport { isRatioEqual } from '../utils/is-ratio-equal';\n\n/**\n * @param dimension [[width, height]]\n * @param message\n */\nexport const dimensionValidator: (dimension: [number, number], message?: string) => (file: File) => FileError | null = (\n dimension,\n message\n) => {\n return (file: File) => {\n const imageUrl = URL.createObjectURL(file);\n const img = new Image();\n\n img.src = imageUrl as string;\n\n img.onload = () => {};\n const isRatioValid = isRatioEqual(\n { width: dimension[0], height: dimension[1] },\n { width: img.width, height: img.height }\n );\n\n if (isRatioValid) {\n return null;\n }\n\n return {\n code: ErrorCode.FileInvalidDimension,\n message: message ?? 'File has invalid dimension',\n };\n };\n};\n","export * from './accordion';\nexport * from './alert';\nexport * from './anchor';\nexport * from './badge';\nexport * from './breadcrumb';\nexport * from './button';\nexport * from './card';\nexport * from './checkbox';\nexport * from './chips';\nexport * from './counter';\nexport * from './data-table';\nexport * from './datepicker';\nexport * from './dialog';\nexport * from './empty-state';\nexport * from './field';\nexport * from './form';\nexport * from './header';\nexport * from './image';\nexport * from './layouting';\nexport * from './list';\nexport * from './loader';\nexport * from './modal';\nexport * from './nav-item';\nexport * from './navigation';\nexport * from './pagination';\nexport * from './pin-input';\nexport * from './popover';\nexport * from './progress';\nexport * from './radio';\nexport * from './rating';\nexport * from './select';\nexport * from './sidebar';\nexport * from './switch';\nexport * from './table';\nexport * from './tabs';\nexport * from './text';\nexport * from './time-input';\nexport * from './toast';\nexport * from './tooltip';\nexport * from './uploader';\nexport {\n Avatar,\n AvatarBadge,\n AvatarBadgeProps,\n AvatarGroup,\n AvatarGroupProps,\n AvatarProps,\n Collapse,\n CollapseProps,\n Fade,\n FadeProps,\n Hide,\n HideProps,\n Img,\n ImgProps,\n ScaleFade,\n ScaleFadeProps,\n Show,\n ShowProps,\n Slide,\n SlideFade,\n SlideFadeProps,\n SlideProps,\n Step,\n StepDescription,\n StepIcon,\n StepIndicator,\n StepNumber,\n Stepper,\n StepSeparator,\n StepStatus,\n StepTitle,\n useBreakpoint,\n UseBreakpointOptions,\n useColorModePreference,\n useImage,\n UseImageProps,\n UseImageReturn,\n UseMediaQueryOptions,\n useQuery,\n UseQueryProps,\n useSteps,\n VisuallyHidden,\n VisuallyHiddenInput,\n} from '@chakra-ui/react';\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n extendTheme as _chakraExtendTheme,\n isChakraTheme,\n mergeThemeOverride,\n type ThemeConfig,\n type ThemeOverride,\n} from '@chakra-ui/react';\n\nimport * as components from './components';\n\nconst config: ThemeConfig = {\n initialColorMode: 'light',\n useSystemColorMode: false,\n};\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isFunction<T extends Function = Function>(value: any): value is T {\n return typeof value === 'function';\n}\n\nfunction pipe<R>(...fns: Array<(a: R) => R>) {\n return (v: R) => fns.reduce((a, b) => b(a), v);\n}\n\nexport const createExtendTheme = (theme: Record<string, any>) => {\n return function extendTheme(\n ...extensions: Array<Record<string, any> | ((theme: Record<string, any>) => Record<string, any>)>\n ): Record<string, any> {\n let overrides = [...extensions];\n let activeTheme = extensions[extensions.length - 1];\n\n if (\n isChakraTheme(activeTheme) &&\n // this ensures backward compatibility\n // previously only `extendTheme(override, activeTheme?)` was allowed\n overrides.length > 1\n ) {\n overrides = overrides.slice(0, overrides.length - 1);\n } else {\n activeTheme = theme;\n }\n\n return pipe(\n ...overrides.map(\n extension => (prevTheme: any) =>\n isFunction(extension) ? (extension as any)(prevTheme) : mergeThemeOverride(prevTheme, extension)\n )\n )(activeTheme);\n };\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getTheme = (foundations: Record<string, any>) => {\n return _chakraExtendTheme({\n ...foundations,\n components: {\n ...components,\n },\n styles: {\n global: () => ({\n body: {\n background: 'bg-default',\n fontSize: 'text.sm',\n color: 'black.high',\n },\n }),\n },\n config,\n });\n};\n\nconst theme = _chakraExtendTheme(<ThemeOverride>{\n components: {\n ...components,\n },\n styles: {\n global: {\n '*::-webkit-scrollbar-thumb': {\n background: 'neutral.400',\n },\n body: {\n fontSize: 'text.sm',\n color: 'black.high',\n },\n },\n },\n config,\n});\n\ntype Theme = typeof theme;\n\nexport type { Theme };\nexport { theme };\nexport { ThemeTypings } from '@chakra-ui/styled-system';\n","export { default as Accordion } from './accordion';\r\nexport { default as Alert } from './alert';\r\nexport { default as Badge } from './badge';\r\nexport { default as Button } from './button';\r\nexport { default as Card } from './card';\r\nexport { default as Checkbox } from './checkbox';\r\nexport { default as Tag } from './chips';\r\nexport { default as FormLabel } from './form-label';\r\nexport { default as Input } from './input';\r\nexport { default as LoaderStyle } from './loader';\r\nexport { default as Modal } from './modal';\r\nexport { default as Popover } from './popover';\r\nexport { default as Radio } from './radio';\r\nexport { default as Switch } from './switch';\r\nexport { default as Table } from './table';\r\nexport { default as Tabs } from './tabs';\r\nexport { default as Textarea } from './textarea';\r\nexport { default as Tooltip } from './tooltip';\r\n","import { accordionAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\n\nconst baseStyleContainer = defineStyle({\n border: 'none',\n});\n\nconst baseStyleButton = defineStyle({\n height: 14,\n transitionProperty: 'common',\n transitionDuration: 'normal',\n gap: 4,\n fontSize: 'text.md',\n bg: 'neutral.50',\n _expanded: {\n bg: 'neutral.100',\n },\n _focusVisible: {\n bg: 'neutral.100',\n },\n _hover: {\n bg: 'neutral.100',\n '.eye-icon': {\n display: 'block',\n opacity: 1,\n visibility: 'visible',\n },\n },\n _disabled: {\n opacity: 0.4,\n cursor: 'not-allowed',\n },\n py: 2,\n px: 4,\n position: 'relative',\n '.eye-icon': {\n visibility: 'hidden',\n },\n});\n\nconst baseStylePanel = defineStyle({\n pt: '2',\n px: '4',\n pb: '5',\n});\n\nconst baseStyleIcon = defineStyle({\n fontSize: '1.25em',\n boxSize: 6,\n p: 1,\n});\n\nconst baseStyle = definePartsStyle({\n container: baseStyleContainer,\n button: baseStyleButton,\n panel: baseStylePanel,\n icon: baseStyleIcon,\n});\n\nconst collapseStyleButton = defineStyle({\n height: 13,\n borderRadius: 'sm',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'neutral.300',\n bg: 'neutral.50',\n _expanded: {\n bg: 'neutral.50',\n },\n});\n\nconst collapseStylePanel = defineStyle({\n py: 0,\n pr: 0,\n pl: 12,\n borderBottomRadius: 'sm',\n overflow: 'hidden',\n backgroundColor: 'neutral.200',\n});\nconst collapse = definePartsStyle({\n button: collapseStyleButton,\n panel: collapseStylePanel,\n});\n\nconst accordionTheme = defineMultiStyleConfig({\n baseStyle,\n variants: {\n collapse,\n },\n defaultProps: {\n variant: undefined,\n },\n});\nexport default accordionTheme;\n","import { alertAnatomy as parts } from '@chakra-ui/anatomy';\nimport type { StyleFunctionProps } from '@chakra-ui/styled-system';\nimport { createMultiStyleConfigHelpers, cssVar } from '@chakra-ui/styled-system';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\n\nconst $fg = cssVar('alert-fg');\nconst $bg = cssVar('alert-bg');\n\nconst baseStyle = definePartsStyle(props => {\n return {\n container: {\n bg: $bg.reference,\n px: '4',\n py: '2',\n borderRadius: 'sm',\n },\n title: {\n fontWeight: 'regular',\n textStyle: 'text.sm',\n marginEnd: '2',\n },\n description: {\n lineHeight: '6',\n },\n icon: {\n color: $fg.reference,\n flexShrink: 0,\n marginEnd: '3',\n w: '4',\n h: '4',\n },\n action: {\n color: props.colorScheme === 'neutral' && props.variant === 'light' ? 'primary.500' : 'inherit',\n '& +.chakra-alert__close': {\n ml: '3',\n },\n },\n close: {\n color: $fg.reference,\n w: '4',\n h: '4',\n },\n\n spinner: {\n color: $fg.reference,\n flexShrink: 0,\n marginEnd: '3',\n w: '5',\n h: '5',\n },\n };\n});\n\nfunction getBg(props: StyleFunctionProps) {\n const { colorScheme: c } = props;\n\n return {\n light: c === 'neutral' ? `colors.${c}.200` : `colors.${c}.50`,\n };\n}\n\nconst variantLight = definePartsStyle(props => {\n const { colorScheme: c } = props;\n const bg = getBg(props);\n return {\n container: {\n [$fg.variable]: c === 'neutral' ? `colors.black.high` : `colors.${c}.700`,\n [$bg.variable]: bg.light,\n color: $fg.reference,\n },\n };\n});\n\nconst variantSolid = definePartsStyle(props => {\n const { colorScheme: c } = props;\n return {\n container: {\n [$fg.variable]: `colors.white.high`,\n [$bg.variable]: c === 'neutral' ? `colors.${c}.700` : `colors.${c}.500`,\n },\n };\n});\n\nconst variants = {\n light: variantLight,\n solid: variantSolid,\n};\n\nconst alertTheme = defineMultiStyleConfig({\n baseStyle,\n variants,\n defaultProps: {\n variant: 'light',\n colorScheme: 'info',\n },\n});\n\nexport default alertTheme;\n","import type { ComponentStyleConfig } from '@chakra-ui/theme';\n\nconst Badge: ComponentStyleConfig = {\n baseStyle: {\n h: 'fit-content',\n display: 'inline-block',\n fontSize: 'text.xs',\n fontWeight: 'semibold',\n lineHeight: '14',\n textTransform: 'none',\n px: 2,\n py: '0.5',\n },\n variants: {\n 'primary-solid': {\n bg: 'primary.500',\n color: 'white',\n },\n 'success-solid': {\n bg: 'success.500',\n color: 'white',\n },\n 'info-solid': {\n bg: 'info.500',\n color: 'white',\n },\n 'warning-solid': {\n bg: 'warning.500',\n color: 'white',\n },\n 'danger-solid': {\n bg: 'danger.500',\n color: 'white',\n },\n 'neutral-solid': {\n bg: 'neutral.900',\n color: 'white',\n },\n 'disabled-solid': {\n bg: 'neutral.600',\n color: 'white',\n },\n 'primary-light': {\n bg: 'primary.50',\n color: 'primary.500',\n },\n 'success-light': {\n bg: 'success.50',\n color: 'success.500',\n },\n 'info-light': {\n bg: 'info.50',\n color: 'info.500',\n },\n 'warning-light': {\n bg: 'warning.50',\n color: 'warning.500',\n },\n 'danger-light': {\n bg: 'danger.50',\n color: 'danger.500',\n },\n 'neutral-light': {\n bg: 'neutral.200',\n color: 'neutral.900',\n },\n 'disabled-light': {\n bg: 'neutral.200',\n color: 'neutral.600',\n },\n },\n // The default size and variant values\n defaultProps: {\n variant: 'primary-solid',\n },\n};\n\nexport default Badge;\n","import { defineStyleConfig } from '@chakra-ui/styled-system';\r\nimport type { ComponentStyleConfig } from '@chakra-ui/theme';\r\n\r\n// You can also use the more specific type for\r\n// a single part component: ComponentSingleStyleConfig\r\n\r\nconst Button: ComponentStyleConfig = defineStyleConfig({\r\n // The styles all button have in common\r\n baseStyle: {\r\n fontSize: 'body.1',\r\n fontWeight: 'normal',\r\n px: 4,\r\n py: 2.5,\r\n borderRadius: 'sm',\r\n\r\n _disabled: {\r\n opacity: 1,\r\n bg: 'neutral.300',\r\n color: 'black.low',\r\n },\r\n\r\n _hover: {\r\n _disabled: {\r\n bg: 'neutral.300',\r\n color: 'black.low',\r\n },\r\n },\r\n },\r\n\r\n sizes: {\r\n lg: props => {\r\n const { variant } = props;\r\n const base = {\r\n fontSize: 'text.xl',\r\n h: 12,\r\n px: 4,\r\n py: 2.5,\r\n };\r\n const icon = {\r\n h: 10,\r\n w: 10,\r\n p: 0,\r\n };\r\n return variant === 'icon' ? icon : base;\r\n },\r\n md: props => {\r\n const { variant } = props;\r\n const base = {\r\n fontSize: 'text.md',\r\n h: 9,\r\n px: 3,\r\n py: 2,\r\n };\r\n const icon = {\r\n h: 9,\r\n w: 9,\r\n p: 0,\r\n };\r\n return variant === 'icon' ? icon : base;\r\n },\r\n sm: props => {\r\n const { variant } = props;\r\n const base = {\r\n fontSize: 'text.sm',\r\n h: '26px',\r\n lineHeight: 4,\r\n px: 2,\r\n py: '5px',\r\n };\r\n const icon = {\r\n h: '26px',\r\n w: '26px',\r\n p: 0,\r\n };\r\n return variant === 'icon' ? icon : base;\r\n },\r\n },\r\n\r\n variants: {\r\n primary: props => {\r\n const { isLoading } = props;\r\n\r\n const basePrimary = {\r\n color: 'white.high',\r\n bg: 'primary.500',\r\n _hover: {\r\n bg: 'primary.600',\r\n },\r\n _active: {\r\n bg: 'primary.700',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n _disabled: {\r\n bg: 'primary.500',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'primary.500',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : basePrimary;\r\n },\r\n secondary: props => {\r\n const { isLoading } = props;\r\n\r\n const baseSecondary = {\r\n color: 'primary.500',\r\n borderWidth: 1,\r\n borderStyle: 'inside',\r\n bg: 'white.high',\r\n borderColor: 'primary.500',\r\n _hover: {\r\n bg: 'primary.50',\r\n },\r\n _active: {\r\n bg: 'primary.100',\r\n },\r\n _disabled: {\r\n border: 0,\r\n },\r\n '.chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)': {\r\n marginEnd: '-1px',\r\n },\r\n '.chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)': {\r\n marginBottom: '-1px',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseSecondary,\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseSecondary;\r\n },\r\n\r\n tertiary: props => {\r\n const { isLoading } = props;\r\n\r\n const baseTertiary = {\r\n color: 'primary.500',\r\n _hover: {\r\n bg: 'primary.50',\r\n },\r\n _active: {\r\n bg: 'primary.100',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseTertiary,\r\n _disabled: {\r\n bg: 'transparent',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'transparent',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseTertiary;\r\n },\r\n\r\n danger: props => {\r\n const { isLoading } = props;\r\n\r\n const baseDanger = {\r\n bg: 'danger.500',\r\n color: 'white.high',\r\n _hover: {\r\n bg: 'danger.600',\r\n },\r\n _active: {\r\n bg: 'danger.700',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseDanger,\r\n _disabled: {\r\n bg: 'danger.500',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'danger.500',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseDanger;\r\n },\r\n\r\n 'outline-danger': props => {\r\n const { isLoading } = props;\r\n\r\n const baseSecondary = {\r\n color: 'danger.500',\r\n borderWidth: 1,\r\n borderStyle: 'inside',\r\n bg: 'white.high',\r\n borderColor: 'danger.500',\r\n _hover: {\r\n bg: 'danger.50',\r\n },\r\n _active: {\r\n bg: 'danger.100',\r\n },\r\n _disabled: {\r\n border: 0,\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseSecondary,\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseSecondary;\r\n },\r\n\r\n link: {\r\n bg: 'transparent',\r\n color: 'primary.500',\r\n _disabled: {\r\n opacity: '1',\r\n bg: 'transparent',\r\n color: 'black.medium',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'transparent',\r\n color: 'black.medium',\r\n },\r\n },\r\n },\r\n\r\n outline: {\r\n bg: 'transparent',\r\n color: 'primary.500',\r\n },\r\n\r\n icon: {\r\n bg: 'neutral.50',\r\n minW: 0,\r\n borderColor: 'neutral.200',\r\n borderWidth: '1px',\r\n\r\n _active: {\r\n bg: 'neutral.500',\r\n borderColor: 'neutral.50',\r\n },\r\n _disabled: {\r\n bg: 'neutral.500',\r\n opacity: 0.3,\r\n borderColor: 'neutral.50',\r\n },\r\n _hover: {\r\n bg: 'neutral.400',\r\n _disabled: {\r\n bg: 'neutral.500',\r\n opacity: 0.3,\r\n borderColor: 'neutral.50',\r\n },\r\n },\r\n },\r\n },\r\n\r\n defaultProps: {\r\n size: 'md',\r\n variant: 'primary',\r\n colorScheme: 'primary',\r\n },\r\n});\r\n\r\nexport default Button;\r\n","import { defineStyleConfig } from '@chakra-ui/styled-system';\n\nconst CardStyle = defineStyleConfig({\n baseStyle: props => {\n return {\n shadow: props.withShadow ? 'raised' : 'none',\n borderRadius: props.isRounded ? 'sm' : 'none',\n };\n },\n});\n\nexport default CardStyle;\n","import { checkboxAnatomy } from '@chakra-ui/anatomy';\r\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\r\n\r\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(checkboxAnatomy.keys);\r\n\r\nconst baseStyle = definePartsStyle({\r\n control: {\r\n borderRadius: 'sm',\r\n w: 4,\r\n h: 4,\r\n border: '1px solid',\r\n },\r\n icon: {\r\n color: 'neutral.50',\r\n },\r\n label: {\r\n textStyle: 'text.sm',\r\n color: 'black.high',\r\n ml: 2,\r\n },\r\n _disabled: {\r\n background: 'neutral.200',\r\n border: '0',\r\n borderColor: 'neutral.500',\r\n cursor: 'not-allowed',\r\n },\r\n});\r\n\r\nconst errors = definePartsStyle({\r\n control: {\r\n borderColor: 'danger.500',\r\n _checked: {\r\n borderColor: 'danger.500',\r\n backgroundColor: 'danger.500',\r\n _hover: {\r\n borderColor: 'danger.600',\r\n backgroundColor: 'danger.600',\r\n },\r\n },\r\n _indeterminate: {\r\n borderColor: 'danger.500',\r\n backgroundColor: 'danger.500',\r\n },\r\n },\r\n label: {\r\n textStyle: 'text.xs',\r\n },\r\n icon: {\r\n fontSize: '8px',\r\n },\r\n});\r\n\r\nconst unstyled = definePartsStyle({\r\n control: {\r\n borderColor: 'neutral.600',\r\n _checked: {\r\n borderColor: 'primary.500',\r\n backgroundColor: 'primary.500',\r\n _hover: {\r\n borderColor: 'primary.600',\r\n backgroundColor: 'primary.600',\r\n },\r\n _disabled: {\r\n backgroundColor: 'primary.500',\r\n borderColor: 'primary.500',\r\n opacity: 0.3,\r\n },\r\n },\r\n _disabled: {\r\n backgroundColor: 'neutral.200',\r\n borderColor: 'neutral.200',\r\n },\r\n _indeterminate: {\r\n borderColor: 'primary.500',\r\n backgroundColor: 'primary.500',\r\n _disabled: {\r\n backgroundColor: 'primary.500',\r\n borderColor: 'primary.500',\r\n opacity: 0.3,\r\n },\r\n },\r\n },\r\n label: {\r\n textStyle: 'text.xs',\r\n _disabled: {\r\n opacity: 1,\r\n },\r\n },\r\n icon: {\r\n fontSize: '8px',\r\n },\r\n});\r\n\r\nconst variants = {\r\n errors,\r\n unstyled,\r\n};\r\n\r\nconst Checkbox = defineMultiStyleConfig({\r\n baseStyle,\r\n variants,\r\n defaultProps: {\r\n variant: 'unstyled',\r\n },\r\n});\r\n\r\nexport default Checkbox;\r\n","import { tagAnatomy } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(tagAnatomy.keys);\n\nconst baseStyle = definePartsStyle({\n container: {\n px: 3,\n py: 1,\n color: 'primary.500',\n userSelect: 'none',\n boxShadow: 'none',\n border: '1px solid',\n borderColor: 'primary.500',\n bg: 'transparent',\n cursor: 'pointer',\n fontWeight: 400,\n },\n});\n\nconst solid = definePartsStyle({\n container: {\n bg: 'primary.500',\n color: 'white',\n },\n closeButton: {\n color: 'white',\n opacity: 1,\n },\n});\n\nconst outline = definePartsStyle({\n container: {\n bg: 'transparent',\n _hover: {\n bg: 'primary.50',\n },\n },\n closeButton: {\n color: 'primary.500',\n opacity: 1,\n },\n});\n\nconst disabled = definePartsStyle({\n container: {\n bg: 'neutral.200',\n color: 'black.low',\n borderColor: 'neutral.200',\n cursor: 'not-allowed',\n _hover: {\n bg: 'neutral.200',\n },\n },\n closeButton: {\n color: 'neutral.500',\n opacity: 1,\n },\n});\n\nconst Tag = defineMultiStyleConfig({\n baseStyle,\n sizes: {\n sm: {\n container: {\n textStyle: 'text.sm',\n },\n },\n md: {\n container: {\n textStyle: 'text.md',\n py: 2,\n },\n },\n },\n variants: {\n solid,\n outline,\n disabled,\n },\n});\n\nexport default Tag;\n","import { defineStyle, defineStyleConfig } from '@chakra-ui/styled-system';\r\n\r\nconst baseStyle = defineStyle({\r\n fontSize: 'field.sm',\r\n fontWeight: 'normal',\r\n marginEnd: 1,\r\n mb: 1,\r\n});\r\n\r\nconst FormLabel = defineStyleConfig({\r\n baseStyle,\r\n});\r\n\r\nexport default FormLabel;\r\n","import { inputAnatomy as parts } from '@chakra-ui/anatomy';\r\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\r\nimport { mode } from '@chakra-ui/theme-tools';\r\n\r\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\r\n\r\nconst baseStyle = definePartsStyle({\r\n field: {\r\n width: '100%',\r\n minWidth: 0,\r\n outline: 0,\r\n px: 2,\r\n py: 2,\r\n paddingInlineStart: 2,\r\n paddingInlineEnd: 2,\r\n position: 'relative',\r\n appearance: 'none',\r\n color: 'black.high',\r\n _disabled: {\r\n bg: 'neutral.300',\r\n border: 0,\r\n cursor: 'not-allowed',\r\n opacity: 1,\r\n boxShadow: 'none',\r\n color: 'black.medium',\r\n },\r\n _placeholder: {\r\n color: 'black.low',\r\n },\r\n },\r\n});\r\n\r\nconst size = {\r\n lg: defineStyle({\r\n textStyle: 'text.lg',\r\n h: 12,\r\n borderRadius: 'sm',\r\n }),\r\n md: defineStyle({\r\n textStyle: 'text.md',\r\n h: 10,\r\n borderRadius: 'sm',\r\n }),\r\n sm: defineStyle({\r\n textStyle: 'text.sm',\r\n h: 9.5,\r\n borderRadius: 'sm',\r\n }),\r\n xs: defineStyle({\r\n textStyle: 'text.sm',\r\n p: 1,\r\n h: 5.5,\r\n borderRadius: 'sm',\r\n }),\r\n};\r\n\r\nconst sizes = {\r\n lg: definePartsStyle({\r\n field: size.lg,\r\n addon: size.lg,\r\n }),\r\n md: definePartsStyle({\r\n field: size.md,\r\n addon: size.md,\r\n }),\r\n sm: definePartsStyle({\r\n field: size.sm,\r\n addon: size.sm,\r\n }),\r\n xs: definePartsStyle({\r\n field: size.xs,\r\n addon: size.xs,\r\n }),\r\n};\r\n\r\nconst outline = definePartsStyle(props => {\r\n const field = {\r\n border: 0,\r\n outline: 0,\r\n bg: mode('white', 'inherit')(props),\r\n color: mode('inherit', 'white')(props),\r\n\r\n _hover: {\r\n borderColor: mode('neutral.400', 'inherit')(props),\r\n },\r\n _invalid: {\r\n boxShadow: 'none',\r\n },\r\n _focusVisible: {\r\n zIndex: 1,\r\n boxShadow: 'none',\r\n },\r\n };\r\n\r\n return {\r\n field,\r\n };\r\n});\r\n\r\nconst unstyled = definePartsStyle({\r\n field: {\r\n bg: 'transparent',\r\n px: '0',\r\n height: 'auto',\r\n },\r\n addon: {\r\n bg: 'transparent',\r\n px: '0',\r\n height: 'auto',\r\n },\r\n});\r\n\r\nconst variants = {\r\n outline,\r\n unstyled,\r\n};\r\n\r\nconst Input = defineMultiStyleConfig({\r\n baseStyle,\r\n sizes,\r\n variants,\r\n defaultProps: {\r\n size: 'sm',\r\n variant: 'outline',\r\n },\r\n});\r\n\r\nexport default Input;\r\n","/* eslint-disable prefer-destructuring */\nimport { defineStyleConfig } from '@chakra-ui/styled-system';\nimport { keyframes } from '@emotion/react';\n\nconst rotate = keyframes({\n '0%': {\n transform: 'rotate(0deg)',\n },\n '100%': {\n transform: 'rotate(360deg)',\n },\n});\n\nconst getLoaderColor = (color: string) => {\n if (!color) {\n return 'var(--chakra-colors-white-high)';\n }\n\n const colorValue = color.split('.');\n let backgroundColor: string;\n\n switch (colorValue.length) {\n case 1:\n backgroundColor = colorValue[0];\n break;\n case 2:\n backgroundColor = `var(--chakra-colors-${colorValue[0]}-${colorValue[1]})`;\n break;\n default:\n backgroundColor = 'var(--chakra-colors-white-high)';\n break;\n }\n\n if (color === 'primary') return 'var(--chakra-colors-primary-600)';\n if (color === 'danger') return 'var(--chakra-colors-danger-500)';\n if (color === 'warning') return 'var(--chakra-colors-warning-700)';\n return backgroundColor;\n};\n\nconst LoaderStyle = defineStyleConfig({\n baseStyle: props => {\n const colors = getLoaderColor(props.color);\n return {\n borderRadius: '50%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n animation: `${rotate} 1s linear infinite`,\n background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,\n ':before': {\n content: `''`,\n display: 'block',\n borderRadius: '50%',\n width: '6px',\n height: '6px',\n position: 'absolute',\n bottom: 0,\n background: colors,\n },\n };\n },\n sizes: {\n xs: {\n width: '12px',\n height: '12px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 1.4px),#000 0);',\n ':before': {\n width: '1.4px',\n height: '1.4px',\n },\n },\n sm: {\n width: '16px',\n height: '16px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 1.87px),#000 0);',\n ':before': {\n width: '1.87px',\n height: '1.87px',\n },\n },\n md: {\n width: '24px',\n height: '24px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 2.8px),#000 0);',\n ':before': {\n width: '2.8px',\n height: '2.8px',\n },\n },\n lg: {\n width: '50px',\n height: '50px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 5.83px),#000 0);',\n ':before': {\n width: '5.83px',\n height: '5.83px',\n },\n },\n xl: {\n width: '75px',\n height: '75px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 8.75px),#000 0);',\n ':before': {\n width: '8.75px',\n height: '8.75px',\n },\n },\n xxl: {\n width: '100px',\n height: '100px',\n WebkitMask: `radial-gradient(farthest-side,#0000 calc(100% - 11.67px),#000 0);`,\n ':before': {\n width: '11.67px',\n height: '11.67px',\n },\n },\n },\n defaultProps: {\n size: 'lg',\n },\n});\n\nexport default LoaderStyle;\n","import { modalAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst baseStyleHeader = defineStyle({\n borderTopRadius: 'sm',\n bg: 'neutral.200',\n px: 4,\n py: 2,\n fontSize: 'text.lg',\n fontWeight: 'normal',\n lineHeight: 24,\n textStyle: 'text.lg',\n});\n\nconst baseStyleCloseButton = defineStyle({\n p: 1,\n top: 2,\n right: 2,\n bg: 'white',\n fontSize: '9px',\n w: 6,\n h: 6,\n borderRadius: 'sm',\n});\n\nconst baseStyleBody = defineStyle({\n bg: 'white',\n p: 4,\n});\n\nconst baseStyleFooter = defineStyle({\n p: 4,\n bg: 'neutral.200',\n borderBottomRadius: 'sm',\n});\n\nconst baseStyle = definePartsStyle({\n header: baseStyleHeader,\n closeButton: baseStyleCloseButton,\n body: baseStyleBody,\n footer: baseStyleFooter,\n});\n\nconst sizes = {\n sm: {\n dialog: { minW: 400 },\n closeButton: {\n size: 'sm',\n },\n },\n md: {\n dialog: { minW: 600 },\n closeButton: {\n size: 'sm',\n },\n },\n lg: {\n dialog: { minW: 800 },\n closeButton: {\n size: 'xl',\n },\n },\n};\n\nexport const modalTheme = defineMultiStyleConfig({\n baseStyle,\n sizes,\n defaultProps: { size: 'md' },\n});\n\nexport default modalTheme;\n","import { popoverAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\nconst baseStyle = definePartsStyle({\n content: {\n bg: 'white',\n },\n});\nconst popoverTheme = defineMultiStyleConfig({ baseStyle });\n\nexport default popoverTheme;\n","import { radioAnatomy } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(radioAnatomy.keys);\n\nconst baseStyle = definePartsStyle({\n control: {\n border: '1px solid',\n width: 4,\n height: 4,\n },\n label: {\n marginLeft: 2,\n textStyle: 'text.sm',\n color: 'black.high',\n _disabled: {\n opacity: 1,\n color: 'black.medium',\n },\n },\n});\n\nconst errors = definePartsStyle({\n control: {\n borderColor: 'danger.500',\n _checked: {\n borderColor: 'danger.500',\n bg: 'white',\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'danger.500',\n },\n _hover: {\n borderColor: 'danger.500',\n bg: 'neutral.200',\n },\n _disabled: {\n borderColor: 'danger.500',\n bg: 'white.high',\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'primary.500',\n opacity: 0.3,\n },\n },\n },\n _disabled: {\n borderColor: 'danger.500',\n bg: 'neutral.200',\n },\n },\n label: {\n textStyle: 'text.sm',\n },\n});\n\nconst unstyled = definePartsStyle({\n control: {\n borderColor: 'neutral.600',\n _checked: {\n borderColor: 'primary.500',\n bg: 'white',\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'primary.500',\n },\n _hover: {\n borderColor: 'primary.500',\n bg: 'transparent',\n },\n _disabled: {\n borderColor: 'primary.500',\n bg: 'white.high',\n opacity: 0.3,\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'primary.500',\n },\n },\n },\n _disabled: {\n borderColor: 'neutral.200',\n bg: 'neutral.200',\n },\n },\n label: {\n textStyle: 'text.sm',\n },\n});\n\nconst variants = {\n errors,\n unstyled,\n};\n\nconst Radio = defineMultiStyleConfig({\n baseStyle,\n variants,\n defaultProps: {\n variant: 'unstyled',\n },\n});\n\nexport default Radio;\n","import { switchAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\nimport { calc, cssVar } from '@chakra-ui/theme-tools';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst $width = cssVar('switch-track-width');\nconst $height = cssVar('switch-track-height');\nconst $diff = cssVar('switch-track-diff');\nconst diffValue = calc.subtract($width, $height);\nconst $translateX = cssVar('switch-thumb-x');\n\nconst baseStyleThumb = defineStyle({\n bg: 'white',\n transitionProperty: 'transform',\n transitionDuration: 'normal',\n borderRadius: 'inherit',\n width: [$height.reference],\n height: [$height.reference],\n _checked: {\n transform: `translateX(${$translateX.reference})`,\n },\n});\n\nconst baseStyle = definePartsStyle(() => ({\n container: {\n [$diff.variable]: diffValue,\n [$translateX.variable]: $diff.reference,\n _rtl: {\n [$translateX.variable]: calc($diff).negate().toString(),\n },\n },\n track: {\n bg: 'neutral.400',\n p: 1,\n _checked: {\n bg: 'primary.500',\n _disabled: {\n bg: 'neutral.600',\n },\n },\n _disabled: {\n bg: 'neutral.500',\n opacity: '100%',\n },\n },\n thumb: baseStyleThumb,\n}));\n\nconst sizes = {\n sm: definePartsStyle({\n container: {\n [$width.variable]: '1.875rem',\n [$height.variable]: '0.8rem',\n },\n thumb: {\n [$width.variable]: '0.8rem',\n [$height.variable]: '0.8rem',\n },\n }),\n md: definePartsStyle({\n container: {\n [$width.variable]: '2.375rem',\n [$height.variable]: '1rem',\n },\n thumb: {\n [$width.variable]: '1rem',\n [$height.variable]: '1rem',\n },\n }),\n lg: definePartsStyle({\n container: {\n [$width.variable]: '3.25rem',\n [$height.variable]: '1.375rem',\n },\n thumb: {\n [$width.variable]: '1.375rem',\n [$height.variable]: '1.375rem',\n },\n }),\n};\n\nconst Switch = defineMultiStyleConfig({\n baseStyle,\n sizes,\n defaultProps: {\n size: 'md',\n },\n});\n\nexport default Switch;\n","import { tableAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\nimport { mode } from '@chakra-ui/theme-tools';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst baseStyle = definePartsStyle({\n table: {\n fontVariantNumeric: 'lining-nums tabular-nums',\n borderCollapse: 'separate',\n borderSpacing: 0,\n width: 'full',\n tableLayout: 'fixed',\n '&:not([data-loading=true])': {\n tbody: {\n tr: {\n _hover: {\n td: {\n backgroundColor: 'neutral.100',\n },\n },\n '&[data-active=\"true\"]': {\n td: {\n backgroundColor: 'neutral.200',\n },\n },\n },\n },\n },\n },\n th: {\n fontFamily: 'heading',\n fontWeight: 'semibold',\n textTransform: 'uppercase',\n letterSpacing: 'normal',\n textAlign: 'start',\n height: '50px',\n color: 'black.high',\n fontSize: 'text.sm',\n lineHeight: '18px',\n backgroundColor: 'neutral.50',\n },\n\n td: {\n // backgroundColor: 'neutral.50',\n textAlign: 'start',\n minHeight: '56px',\n\n _disabled: {\n opacity: 0.5,\n },\n },\n caption: {\n mt: 4,\n fontFamily: 'heading',\n textAlign: 'center',\n fontWeight: 'medium',\n },\n});\n\nconst numericStyles = defineStyle({\n '&[data-is-numeric=true]': {\n textAlign: 'end',\n },\n});\n\nconst variantSimple = definePartsStyle(props => {\n const { colorScheme: c } = props;\n\n return {\n th: {\n color: 'black.high',\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n td: {\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n caption: {\n color: mode('gray.600', 'gray.100')(props),\n },\n tfoot: {\n tr: {\n '&:last-of-type': {\n th: { borderBottomWidth: 0 },\n },\n },\n },\n };\n});\n\nconst variantStripe = definePartsStyle(props => {\n const { colorScheme: c } = props;\n\n return {\n th: {\n color: 'black.high',\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n td: {\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n caption: {\n color: mode('gray.600', 'gray.100')(props),\n },\n tbody: {\n tr: {\n '&:nth-of-type(odd)': {\n 'th, td': {\n borderBottomWidth: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n },\n td: {\n background: mode(`${c}.100`, `${c}.700`)(props),\n },\n },\n },\n },\n tfoot: {\n tr: {\n '&:last-of-type': {\n th: { borderBottomWidth: 0 },\n },\n },\n },\n };\n});\n\nconst variants = {\n simple: variantSimple,\n striped: variantStripe,\n unstyled: defineStyle({}),\n};\n\nconst sizes = {\n sm: definePartsStyle({\n th: {\n px: '2',\n py: '4',\n lineHeight: '4',\n fontSize: 'xs',\n },\n td: {\n px: '2',\n py: '4',\n fontSize: 'sm',\n lineHeight: '4',\n },\n caption: {\n px: '4',\n py: '2',\n fontSize: 'xs',\n },\n }),\n md: definePartsStyle({\n th: {\n px: '2',\n py: '4',\n lineHeight: '4',\n fontSize: 'xs',\n },\n td: {\n px: '2',\n py: '4',\n lineHeight: '5',\n },\n caption: {\n px: '6',\n py: '2',\n fontSize: 'sm',\n },\n }),\n lg: definePartsStyle({\n th: {\n px: '2',\n py: '4',\n lineHeight: '5',\n fontSize: 'sm',\n },\n td: {\n px: '2',\n py: '4',\n lineHeight: '6',\n },\n caption: {\n px: '6',\n py: '2',\n fontSize: 'md',\n },\n }),\n};\n\nconst tableTheme = defineMultiStyleConfig({\n baseStyle,\n variants,\n sizes,\n defaultProps: {\n variant: 'simple',\n size: 'md',\n colorScheme: 'gray',\n },\n});\nexport default tableTheme;\n","import { tabsAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/styled-system';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst variantLine = definePartsStyle(props => {\n const { orientation } = props;\n const isVertical = orientation === 'vertical';\n const borderProp = isVertical ? 'borderStart' : 'borderBottom';\n const marginProp = isVertical ? 'marginStart' : 'marginBottom';\n\n return {\n tablist: {\n [borderProp]: '1px solid',\n borderColor: 'inherit',\n },\n tab: {\n [borderProp]: '1px solid',\n borderColor: 'neutral.400',\n [marginProp]: '-1px',\n },\n };\n});\n\nconst variantUnstyled = definePartsStyle({});\n\nconst variants = {\n line: variantLine,\n unstyled: variantUnstyled,\n};\n\nconst tabsTheme = defineMultiStyleConfig({\n variants,\n defaultProps: {\n size: 'md',\n variant: 'line',\n },\n});\n\nexport default tabsTheme;\n","import { defineStyle, defineStyleConfig } from '@chakra-ui/react';\nimport type { TextAreaProps } from 'packages/internal-ui/src/components/form';\n\nconst getProps = (props: TextAreaProps) => {\n const { isError, isSuccess, isDisabled } = props;\n\n let borderColor = 'neutral.400';\n let focusBorderColor = 'primary.500';\n\n if (isError) {\n borderColor = 'danger.500';\n focusBorderColor = 'danger.500';\n } else if (isSuccess) {\n borderColor = 'success.500';\n focusBorderColor = 'success.500';\n } else if (isDisabled && !isError && !isSuccess) {\n borderColor = 'neutral.400';\n focusBorderColor = 'danger.500';\n }\n\n return {\n focusBorderColor,\n borderColor,\n };\n};\n\nconst outline = defineStyle(props => {\n const { focusBorderColor, borderColor } = getProps(props);\n\n return {\n background: 'white.high',\n color: 'black.high',\n borderColor,\n fontSize: 'text.sm',\n padding: 2,\n borderRadius: 'sm',\n borderWidth: '1px',\n outline: 'none',\n\n _disabled: {\n opacity: 1,\n color: 'black.medium',\n background: 'neutral.300',\n },\n _placeholder: {\n color: 'black.low',\n },\n _hover: {\n borderColor,\n },\n _focus: {\n outline: 'none',\n borderColor: focusBorderColor,\n boxShadow: 'none',\n },\n _focusVisible: {\n outline: 'none',\n borderColor: focusBorderColor,\n boxShadow: 'none',\n },\n _focusWithin: {\n outline: 'none',\n borderColor: focusBorderColor,\n boxShadow: 'none',\n },\n _invalid: {\n outline: 'none',\n borderColor: 'danger.500',\n boxShadow: 'none',\n },\n };\n});\n\nexport const Textarea = defineStyleConfig({\n variants: { outline },\n defaultProps: {\n variant: 'outline',\n },\n});\n\nexport default Textarea;\n","import type { ComponentStyleConfig } from '@chakra-ui/react';\nimport { cssVar, defineStyleConfig } from '@chakra-ui/react';\n\nconst $arrowBg = cssVar('popper-arrow-bg');\nconst baseStyle = {\n bg: 'neutral.700',\n textStyle: 'text.sm',\n fontSize: 'text.sm',\n [$arrowBg.variable]: 'var(--chakra-colors-neutral-700)',\n};\n\nconst Tooltip: ComponentStyleConfig = defineStyleConfig({ baseStyle });\n\nexport default Tooltip;\n","import type { AxiosRequestConfig } from 'axios';\nimport axios from 'axios';\nimport { useMemo } from 'react';\n\nimport { useInternalUI } from '../provider';\n\nexport default function useFetcher() {\n const { instance } = useInternalUI();\n const axiosInstance = useMemo(() => instance || axios, [instance]);\n\n const fetcher = async <TResponse = unknown>({ url, data, method, headers, ...config }: AxiosRequestConfig) => {\n const response = await axiosInstance.request<TResponse>({\n data,\n url,\n method,\n headers: {\n 'Content-Type': 'application/json; charset=utf-8',\n ...headers,\n },\n ...config,\n });\n return response;\n };\n\n return {\n fetcher,\n };\n}\n","import axios from 'axios';\nimport type { FC } from 'react';\nimport React, { createContext, useContext, useEffect, useMemo, useRef } from 'react';\nimport { ToastContainer } from 'react-toastify';\n\nimport type { ProviderContextObject, ProviderProps } from '../types';\n\nexport const ProviderContext = createContext<ProviderContextObject>({\n instance: undefined,\n});\n\nexport const useInternalUI = (): ProviderContextObject => {\n const { instance } = useContext(ProviderContext);\n return { instance };\n};\n\nconst Provider: FC<ProviderProps> = ({ children, config, requestInterceptors, responseInterceptors }) => {\n const instanceRef = useRef(axios.create(config));\n\n useEffect(() => {\n requestInterceptors?.forEach(interceptor => {\n instanceRef.current.interceptors.request.use(interceptor);\n });\n responseInterceptors?.forEach(interceptor => {\n instanceRef.current.interceptors.response.use(interceptor);\n });\n }, [requestInterceptors, responseInterceptors]);\n\n const provider = useMemo(() => ({ instance: instanceRef.current }), []);\n\n return (\n <ProviderContext.Provider value={provider}>\n <ToastContainer />\n {children}\n </ProviderContext.Provider>\n );\n};\n\nProvider.displayName = 'Provider';\n\nexport default Provider;\n","export { default as Provider } from './components/provider';\nexport * from './components/provider';\nexport {\n ChakraProvider,\n ChakraProviderProps,\n ColorMode,\n ColorModeScript,\n ColorModeScriptProps,\n} from '@chakra-ui/react';\n","export { default as useFetcher } from './useFetcher';\nexport {\n useBoolean,\n useClipboard,\n useColorMode,\n useColorModeValue,\n useConst,\n useControllableProp,\n useControllableState,\n useDimensions,\n useDisclosure,\n UseDisclosureProps,\n useMergeRefs,\n useOutsideClick,\n useTheme,\n useToken,\n} from '@chakra-ui/react';\n","export * from './components';\nexport * from './config';\nexport * from './hooks';\nexport * from './provider';\nexport * from './utils';\nexport { extendTheme, forwardRef } from '@chakra-ui/react';\n"],"mappings":";;;;;;;;;;AAAA,SAAS,WAAW;AACpB,SAAS,WAAW;AASd;AAPC,IAAM,eAAe,CAAC,EAAE,WAAW,OAAO,MAAuC;AACtF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS;AAAA,MACT,WAAU;AAAA,MACT,GAAI,aAAa,UAAU,EAAE,UAAU,YAAY,QAAQ,GAAG,SAAS,OAAO,IAAI,CAAC;AAAA,MAEpF,8BAAC,OAAI,MAAM,GAAG;AAAA;AAAA,EAChB;AAEJ;;;ACbA,SAAS,OAAAA,MAAK,6BAA6B;AAKhC,gBAAAC,YAAA;AAHJ,IAAM,qBAAqB,MAAM;AACtC,QAAM,EAAE,OAAO,IAAI,sBAAsB;AACzC,MAAI,QAAQ;AACV,WAAO,gBAAAA,KAACD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AAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;AFFQ,SAAR,aAA8B;AACnC,QAAM,EAAE,SAAS,IAAI,cAAc;AACnC,QAAM,gBAAgBI,SAAQ,MAAM,YAAYC,QAAO,CAAC,QAAQ,CAAC;AAEjE,QAAM,UAAU,OAA4B,EAAE,KAAK,MAAM,QAAQ,SAAS,GAAGC,QAAO,MAA0B;AAC5G,UAAM,WAAW,MAAM,cAAc,QAAmB;AAAA,MACtD;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS;AAAA,QACP,gBAAgB;AAAA,QAChB,GAAG;AAAA,MACL;AAAA,MACA,GAAGA;AAAA,IACL,CAAC;AACD,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,EACF;AACF;;;AG1BA;AAAA,EACE;AAAA,EACA;AAAA,EACA,gBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAAC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAAC;AAAA,OACK;;;ACXP,SAAS,aAAa,cAAAC,oBAAkB;","names":["Box","jsx","useAccordionItemState","jsx","jsx","Alert","cx","forwardRef","Box","forwardRef","jsx","jsx","forwardRef","size","getLoaderColor","jsx","css","cx","cx","chakra","jsx","css","chakra","cx","cx","chakra","forwardRef","jsx","forwardRef","AlertDescription","chakra","cx","cx","chakra","jsx","css","chakra","cx","cx","chakra","forwardRef","jsx","forwardRef","AlertTitle","chakra","cx","cx","jsx","jsx","Box","jsx","spacing","IconButton","useStyleConfig","forwardRef","jsx","Box","forwardRef","Text","jsx","jsxs","Box","Box","jsx","jsxs","id","jsx","Box","useCheckbox","jsx","jsxs","size","Box","IconButton","Text","jsx","Box","Close","Eye","React","jsx","jsxs","React","size","outlineColor","focusColor","Box","Close","Eye","Box","React","jsx","jsxs","React","Box","FormControl","FormErrorMessage","FormHelperText","FormLabel","InputGroup","InputLeftAddon","InputLeftElement","InputRightAddon","InputRightElement","jsx","jsxs","size","disabled","Box","IconButton","Text","Box","Checkbox","Flex","Skeleton","React","jsx","jsxs","table","_a","_b","_c","_d","_e","FormControl","FormErrorMessage","FormHelperText","IconButton","cx","Close","buildLocalizeFn","monthValues","buildLocalizeFn","jsx","Flex","InputGroup","InputRightAddon","Text","React","jsx","jsxs","Fragment","jsx","jsxs","id","IconButton","Close","cx","FormControl","FormHelperText","FormErrorMessage","Box","Input","css","React","jsx","Box","React","jsx","jsxs","Box","React","Text","jsx","jsxs","Icon","Box","Button","Flex","Text","jsx","jsxs","jsx","EmptyState","Flex","HStack","Box","Image","useColorModeValue","jsx","Box","Flex","HStack","Popover","PopoverArrow","PopoverBody","PopoverContent","PopoverTrigger","Text","VStack","Link","cx","jsx","Fragment","jsx","jsxs","Fragment","jsx","jsxs","Popover","Box","HStack","VStack","Text","Flex","PopoverTrigger","PopoverContent","PopoverArrow","PopoverBody","Box","useColorMode","jsx","Box","Fragment","jsx","jsxs","Box","jsx","jsxs","Flex","HStack","Flex","jsx","Icon","Image","Box","Flex","HStack","Stack","VStack","IconButton","jsx","ModalBody","ModalFooter","ModalHeader","ModalOverlay","ModalCloseButton","Modal","ModalContent","Box","Button","Flex","Link","Popover","PopoverContent","PopoverTrigger","Portal","Text","useColorModeValue","Icon","css","Icon","jsx","Fragment","jsx","jsxs","Box","Flex","Popover","PopoverTrigger","Button","Portal","PopoverContent","useColorModeValue","Link","css","Text","Box","Button","Flex","Link","Popover","PopoverContent","PopoverTrigger","Text","Icon","Fragment","jsx","jsxs","mappingIcon","ChevronLeftIcon","Box","Text","useColorModeValue","Button","forwardRef","useColorModeValue","jsx","jsx","jsxs","jsx","jsxs","useColorModeValue","Box","ChevronLeftIcon","Text","Text","jsx","Box","Text","useColorModeValue","React","jsx","jsxs","Popover","PopoverArrow","PopoverBody","PopoverContent","PopoverTrigger","Portal","Box","Text","jsx","jsxs","Box","Stack","jsx","Box","Stack","Grid","jsx","Badge","Center","Flex","useColorMode","Icon","theme","theme","theme","jsx","Badge","Flex","Center","Select","useColorMode","useColorMode","jsx","useColorMode","useColorMode","jsx","useColorMode","useColorMode","jsx","useColorMode","Checkbox","Flex","Text","useColorMode","ReactSelect","Fragment","jsx","jsxs","Flex","Checkbox","Text","useColorMode","ReactSelect","Flex","jsx","Box","Flex","Text","motion","jsx","jsxs","Accordion","AccordionButton","AccordionItem","AccordionPanel","Box","Popover","PopoverBody","PopoverContent","PopoverHeader","PopoverTrigger","Portal","Text","Icon","motion","Fragment","jsx","jsxs","mappingIcon","Box","motion","Accordion","AccordionItem","Popover","PopoverTrigger","AccordionButton","Text","Portal","PopoverContent","PopoverHeader","PopoverBody","AccordionPanel","chakra","Flex","forwardRef","omitThemingProps","useCheckbox","useMultiStyleConfig","cx","Check","Close","useMemo","jsx","jsxs","Switch","spacing","Table","Tbody","Td","Th","Thead","Tr","Button","Flex","forwardRef","useMultiStyleConfig","jsx","jsxs","useTab","Link","Text","Box","Flex","forwardRef","Input","InputGroup","useEffect","useImperativeHandle","useEffect","useRef","useState","useState","useRef","useEffect","_a","Fragment","jsx","jsxs","forwardRef","Input","TimeInput","config","useEffect","useImperativeHandle","outlineColor","focusColor","Box","InputGroup","Flex","Box","chakra","Flex","Link","Close","Global","jsx","Styles","styles_default","Fragment","jsx","jsxs","Box","Close","styles_default","Flex","chakra","Link","id","Box","Button","Flex","FormControl","FormLabel","Heading","ListItem","RequiredIndicator","Text","UnorderedList","useCallback","useEffect","useState","ErrorCode","config","errors","Fragment","jsx","jsxs","size","useState","toast","useCallback","UnorderedList","text","ListItem","Box","Text","useEffect","FormControl","FormLabel","RequiredIndicator","Flex","Button","Heading","Avatar","Fade","VisuallyHidden","badge_default","button_default","card_default","checkbox_default","loader_default","switch_default","chips_default","textarea_default","parts","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","Badge","badge_default","Button","button_default","defineStyleConfig","card_default","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","variants","Checkbox","checkbox_default","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","Tag","chips_default","defineStyle","defineStyleConfig","baseStyle","FormLabel","parts","createMultiStyleConfigHelpers","defineStyle","definePartsStyle","defineMultiStyleConfig","baseStyle","sizes","outline","field","unstyled","variants","Input","defineStyleConfig","loader_default","parts","createMultiStyleConfigHelpers","defineStyle","defineMultiStyleConfig","definePartsStyle","baseStyle","sizes","parts","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","errors","unstyled","variants","Radio","parts","createMultiStyleConfigHelpers","defineStyle","cssVar","defineMultiStyleConfig","definePartsStyle","baseStyle","sizes","Switch","switch_default","parts","createMultiStyleConfigHelpers","defineStyle","mode","defineMultiStyleConfig","definePartsStyle","baseStyle","variants","sizes","parts","createMultiStyleConfigHelpers","defineMultiStyleConfig","definePartsStyle","variants","defineStyle","defineStyleConfig","outline","textarea_default","cssVar","defineStyleConfig","baseStyle","Tooltip","theme","extendTheme","axios","useMemo","createContext","useEffect","useMemo","useRef","ToastContainer","jsx","jsxs","config","useMemo","axios","config","useColorMode","useColorModeValue","useDisclosure","useToken","forwardRef"]}
|
1
|
+
{"version":3,"sources":["../src/components/accordion/components/accordion-eye.tsx","../src/components/accordion/components/accordion-indicator.tsx","../src/components/accordion/components/index.ts","../src/components/alert/components/alert.tsx","../src/components/alert/components/alert-context.ts","../src/components/alert/components/icons.tsx","../src/components/alert/components/alert-action.tsx","../src/components/button/components/button.tsx","../src/components/loader/components/loader.tsx","../src/components/loader/index.ts","../src/components/alert/components/alert-close.tsx","../src/components/alert/components/alert-description.tsx","../src/components/alert/components/alert-icon.tsx","../src/components/alert/components/alert-title.tsx","../src/components/anchor/components/anchor.tsx","../src/components/badge/components/badge.tsx","../src/components/breadcrumb/components/bread-crumb.tsx","../src/components/button/index.ts","../src/components/card/components/card.tsx","../src/components/checkbox/components/checkbox.tsx","../src/components/checkbox/components/checkbox-group.tsx","../src/components/field/components/field.tsx","../src/components/checkbox/index.ts","../src/components/chips/components/chips.tsx","../src/components/counter/components/counter.tsx","../src/components/form/components/input-addon.tsx","../src/components/form/components/input-element.tsx","../src/components/form/components/input-field.tsx","../src/components/form/components/textarea.tsx","../src/components/form/index.ts","../src/components/data-table/components/data-table.tsx","../src/components/datepicker/components/datepicker.tsx","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatDistance.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatLong.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/formatRelative.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/localize.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id/_lib/match.mjs","../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/id.mjs","../src/utils/locale/_lib/buildLocalizeFn/index.ts","../src/utils/locale/id/index.ts","../src/components/datepicker/components/styles.tsx","../src/components/datepicker/components/time-input.tsx","../src/components/datepicker/components/datepicker-month/datepicker-month.tsx","../src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx","../src/components/dialog/components/dialog.tsx","../src/components/empty-state/components/empty-state.tsx","../src/components/empty-state/components/layout.tsx","../src/components/header/components/header.tsx","../src/components/header/components/logo.tsx","../src/components/header/components/profile.tsx","../src/components/nav-item/components/nav-item.tsx","../src/components/tooltip/components/tooltip.tsx","../src/components/header/components/switch-mode.tsx","../src/components/header/components/version.tsx","../src/components/header/utils/formatter.ts","../src/components/header/components/navbar.tsx","../src/components/image/index.ts","../src/components/layouting/index.ts","../src/components/list/index.tsx","../src/components/modal/components/modal-back-button.tsx","../src/components/modal/index.ts","../src/components/navigation/components/navigation.tsx","../src/components/navigation/components/mapping-icon.tsx","../src/components/navigation/components/navigation-bar.tsx","../src/components/pagination/components/pagination.tsx","../src/components/pagination/components/pagination-button.tsx","../src/components/pagination/components/pagination-button-trigger.tsx","../src/components/pagination/components/pagination-detail.tsx","../src/components/pagination/components/pagination-filter.tsx","../src/components/pin-input/index.ts","../src/components/popover/index.ts","../src/components/progress/index.ts","../src/components/radio/components/radio.tsx","../src/components/radio/components/radio-group.tsx","../src/components/radio/index.ts","../src/components/rating/components/rating.tsx","../src/components/select/components/select.tsx","../src/config/theme/foundations/shadows.ts","../src/config/theme/foundations/sizes.ts","../src/config/theme/foundations/spacing.ts","../src/config/theme/foundations/typography.ts","../src/components/select/components/utils.ts","../src/components/select/components/select-async.tsx","../src/components/select/components/select-async-creatable.tsx","../src/components/select/components/select-creatable.tsx","../src/components/select/components/select-with-checkbox.tsx","../src/components/sidebar/components/sidebar.tsx","../src/components/sidebar/components/sidebar-header.tsx","../src/components/sidebar/components/sidebar-menu.tsx","../src/components/switch/components/switch.tsx","../src/components/table/index.tsx","../src/components/tabs/components/tab.tsx","../src/components/tabs/index.ts","../src/components/text/index.ts","../src/components/time-input/components/index.tsx","../src/components/time-input/components/integration.tsx","../src/components/toast/components/toast.tsx","../src/components/toast/components/styles.tsx","../src/components/toast/index.ts","../src/components/uploader/components/uploader.tsx","../src/components/uploader/constants.ts","../src/components/uploader/utils/error-code.ts","../src/components/uploader/utils/handler.ts","../src/components/uploader/utils/is-ratio-equal.ts","../src/components/uploader/components/validator.ts","../src/components/index.ts","../src/config/theme/themeConfiguration.ts","../src/config/theme/components/index.ts","../src/config/theme/components/accordion.ts","../src/config/theme/components/alert.ts","../src/config/theme/components/badge.ts","../src/config/theme/components/button.ts","../src/config/theme/components/card.ts","../src/config/theme/components/checkbox.ts","../src/config/theme/components/chips.ts","../src/config/theme/components/form-label.ts","../src/config/theme/components/input.ts","../src/config/theme/components/loader.ts","../src/config/theme/components/modal.ts","../src/config/theme/components/popover.ts","../src/config/theme/components/radio.ts","../src/config/theme/components/switch.ts","../src/config/theme/components/table.ts","../src/config/theme/components/tabs.ts","../src/config/theme/components/textarea.ts","../src/config/theme/components/tooltip.ts","../src/hooks/useFetcher.ts","../src/provider/components/provider.tsx","../src/provider/index.ts","../src/hooks/index.ts","../src/index.ts"],"sourcesContent":["import { Box } from '@chakra-ui/react';\nimport { Eye } from '@ctlyst.id/internal-icon';\n// eslint-disable-next-line import/prefer-default-export, react/require-default-props\nexport const AccordionEye = ({ position = 'left' }: { position?: 'left' | 'right' }) => {\n return (\n <Box\n boxSize={4}\n className=\"eye-icon\"\n {...(position === 'right' ? { position: 'relative', zIndex: 2, display: 'none' } : {})}\n >\n <Eye size={4} />\n </Box>\n );\n};\n","import { Box, useAccordionItemState } from '@chakra-ui/react';\n// eslint-disable-next-line import/prefer-default-export\nexport const AccordionIndicator = () => {\n const { isOpen } = useAccordionItemState();\n if (isOpen) {\n return <Box position=\"absolute\" left={0} width=\"2px\" height=\"100%\" bg=\"primary.500\" />;\n }\n return null;\n};\n","export * from './accordion-eye';\nexport * from './accordion-indicator';\nexport type {\n AccordionButtonProps,\n AccordionIconProps,\n AccordionItemProps,\n AccordionPanelProps,\n AccordionProps,\n UseAccordionItemProps,\n UseAccordionItemReturn,\n UseAccordionProps,\n UseAccordionReturn,\n} from '@chakra-ui/react';\nexport {\n Accordion,\n AccordionButton,\n AccordionIcon,\n AccordionItem,\n AccordionPanel,\n AccordionProvider,\n useAccordion,\n useAccordionContext,\n useAccordionItem,\n useAccordionItemState,\n useAccordionStyles,\n} from '@chakra-ui/react';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps, SystemStyleObject, ThemingProps } from '@chakra-ui/system';\nimport { chakra, forwardRef, omitThemingProps, useMultiStyleConfig } from '@chakra-ui/system';\nimport React from 'react';\n\nimport type { AlertStatus } from './alert-context';\nimport { AlertProvider, AlertStylesProvider, getStatusColorScheme } from './alert-context';\n\ninterface AlertOptions {\n /**\n * The status of the alert\n * @default \"info\"\n */\n status?: AlertStatus;\n}\nexport type AlertVariant = 'solid' | 'light';\n\nexport interface AlertProps extends HTMLChakraProps<'div'>, AlertOptions, ThemingProps<'Alert'> {\n /**\n * @default false\n */\n addRole?: boolean;\n}\n\n/**\n * Alert is used to communicate the state or status of a\n * page, feature or action\n *\n * @see Docs https://chakra-ui.com/docs/components/alert\n * @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/alert/\n */\nexport const Alert = forwardRef<AlertProps, 'div'>(function Alert(props, ref) {\n const { status = 'info', addRole = true, children, ...rest } = omitThemingProps(props);\n const colorScheme = props.colorScheme ?? getStatusColorScheme(status);\n\n const styles = useMultiStyleConfig('Alert', { ...props, colorScheme });\n\n const alertStyles: SystemStyleObject = {\n width: '100%',\n display: 'grid',\n gridTemplateColumns: 'auto 1fr auto auto',\n alignItems: 'center',\n position: 'relative',\n overflow: 'hidden',\n ...styles.container,\n };\n\n return (\n <AlertProvider value={{ status }}>\n <AlertStylesProvider value={styles}>\n <chakra.div\n data-status={status}\n role={addRole ? 'alert' : undefined}\n ref={ref}\n {...rest}\n className={cx('chakra-alert', props.className)}\n __css={alertStyles}\n >\n {children}\n </chakra.div>\n </AlertStylesProvider>\n </AlertProvider>\n );\n});\n\nAlert.displayName = 'Alert';\n","import { createContext } from '@chakra-ui/react-context';\nimport type { SystemStyleObject } from '@chakra-ui/system';\n\nimport { CheckIcon, InfoIcon, WarningIcon } from './icons';\n\nexport const [AlertProvider, useAlertContext] = createContext<AlertContext>({\n name: 'AlertContext',\n hookName: 'useAlertContext',\n providerName: '<Alert />',\n});\n\nexport const [AlertStylesProvider, useAlertStyles] = createContext<Record<string, SystemStyleObject>>({\n name: `AlertStylesContext`,\n hookName: `useAlertStyles`,\n providerName: '<Alert />',\n});\n\nconst STATUSES = {\n info: { icon: InfoIcon, colorScheme: 'info' },\n warning: { icon: InfoIcon, colorScheme: 'warning' },\n success: { icon: CheckIcon, colorScheme: 'success' },\n error: { icon: WarningIcon, colorScheme: 'danger' },\n neutral: { icon: InfoIcon, colorScheme: 'neutral' },\n};\n\nexport function getStatusColorScheme(status: AlertStatus) {\n return STATUSES[status].colorScheme;\n}\n\nexport function getStatusIcon(status: AlertStatus) {\n return STATUSES[status].icon;\n}\n\nexport type AlertStatus = keyof typeof STATUSES;\n\nexport interface AlertContext {\n status: AlertStatus;\n}\n","/* eslint-disable react/require-default-props */\nimport { AlertTriangle, CheckCircle, Info } from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nexport function CheckIcon() {\n return <CheckCircle color=\"inherit\" size={4} />;\n}\n\nexport function InfoIcon() {\n return <Info color=\"inherit\" size={4} />;\n}\n\nexport function WarningIcon() {\n return <AlertTriangle color=\"inherit\" size={4} />;\n}\n","/* eslint-disable import/prefer-default-export */\nimport { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\n\nimport Button from '../../button/components/button';\nimport { useAlertStyles } from './alert-context';\n\nexport type AlertActionProps = HTMLChakraProps<'button'>;\n\nexport function AlertAction({ children, className }: AlertActionProps) {\n const styles = useAlertStyles();\n const css = styles.action;\n\n return (\n <Button\n data-test-id=\"alert-action\"\n className={cx('chakra-alert__action', className)}\n variant=\"link\"\n fontWeight=\"semibold\"\n textStyle=\"text.xs\"\n __css={css}\n >\n {children}\n </Button>\n );\n}\n\nAlertAction.displayName = 'AlertAction';\n","/* eslint-disable test-selectors/button */\nimport type { ButtonProps as ButtonChakraProps } from '@chakra-ui/react';\nimport { Button as ButtonChakra, forwardRef } from '@chakra-ui/react';\nimport React from 'react';\n\nimport { Loader } from '../../loader';\n\nexport type ButtonProps = ButtonChakraProps;\n\nconst Button = forwardRef<ButtonProps, 'button'>((props, ref) => {\n const { children, variant, size, ...rest } = props;\n\n const getLoaderSize = () => {\n if (size === 'lg') return 'md';\n if (size === 'md') return 'sm';\n return 'xs';\n };\n\n const getLoaderColor = () => {\n if (variant === 'primary' || variant === 'danger') return 'white';\n if (variant === 'outline-danger') return 'danger';\n return 'primary';\n };\n\n return (\n <ButtonChakra\n size={size}\n variant={variant}\n spinner={<Loader size={getLoaderSize()} color={getLoaderColor()} />}\n ref={ref}\n {...rest}\n >\n {children}\n </ButtonChakra>\n );\n});\n\nexport default Button;\n","import type { HTMLChakraProps, ThemingProps } from '@chakra-ui/react';\nimport { Box, forwardRef, useStyleConfig } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface LoaderProps {\n size?: string;\n variant?: string;\n thickness?: string;\n}\n\nexport interface CustomLoaderProps\n extends HTMLChakraProps<'span'>,\n Omit<ThemingProps, 'size' | 'variant'>,\n LoaderProps {}\n\nconst Loader = forwardRef<CustomLoaderProps, 'div'>((props: CustomLoaderProps, ref) => {\n const styles = useStyleConfig('LoaderStyle', props);\n\n return <Box ref={ref} __css={styles} />;\n});\n\nLoader.defaultProps = {\n size: 'md',\n};\n\nexport default Loader;\n","export { default as Loader } from './components/loader';\nexport * from './components/loader';\nexport { Skeleton } from '@chakra-ui/react';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\nimport { chakra } from '@chakra-ui/system';\nimport { Close } from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nimport { useAlertStyles } from './alert-context';\n\nexport type AlertCloseProps = HTMLChakraProps<'span'>;\n\nexport function AlertClose({ className, children, ...rest }: AlertCloseProps) {\n const styles = useAlertStyles();\n const css = styles.close;\n\n return (\n <chakra.span\n display=\"inherit\"\n data-status={'alert-close'}\n {...rest}\n className={cx('chakra-alert__close', className)}\n __css={css}\n >\n {children || <Close color=\"inherit\" size={4} />}\n </chakra.span>\n );\n}\n\nAlertClose.displayName = 'AlertClose';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps, SystemStyleObject } from '@chakra-ui/system';\nimport { chakra, forwardRef } from '@chakra-ui/system';\nimport React from 'react';\n\nimport { useAlertContext, useAlertStyles } from './alert-context';\n\nexport type AlertDescriptionProps = HTMLChakraProps<'div'>;\n\nexport const AlertDescription = forwardRef<AlertDescriptionProps, 'div'>(function AlertDescription(props, ref) {\n const styles = useAlertStyles();\n const { status } = useAlertContext();\n const descriptionStyles: SystemStyleObject = {\n display: 'inline',\n ...styles.description,\n };\n\n return (\n <chakra.div\n ref={ref}\n data-status={status}\n {...props}\n className={cx('chakra-alert__desc', props.className)}\n __css={descriptionStyles}\n />\n );\n});\n\nAlertDescription.displayName = 'AlertDescription';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\nimport { chakra } from '@chakra-ui/system';\nimport React from 'react';\n\nimport { getStatusIcon, useAlertContext, useAlertStyles } from './alert-context';\n\nexport type AlertIconProps = HTMLChakraProps<'span'>;\n\nexport function AlertIcon({ className, children, ...rest }: AlertIconProps) {\n const { status } = useAlertContext();\n const BaseIcon = getStatusIcon(status);\n const styles = useAlertStyles();\n const css = styles.icon;\n\n return (\n <chakra.span\n display=\"inherit\"\n data-status={status}\n {...rest}\n className={cx('chakra-alert__icon', className)}\n __css={css}\n >\n {children || <BaseIcon />}\n </chakra.span>\n );\n}\n\nAlertIcon.displayName = 'AlertIcon';\n","import { cx } from '@chakra-ui/shared-utils';\nimport type { HTMLChakraProps } from '@chakra-ui/system';\nimport { chakra, forwardRef } from '@chakra-ui/system';\nimport React from 'react';\n\nimport { useAlertContext, useAlertStyles } from './alert-context';\n\nexport type AlertTitleProps = HTMLChakraProps<'div'>;\n\nexport const AlertTitle = forwardRef<AlertTitleProps, 'div'>(function AlertTitle(props, ref) {\n const styles = useAlertStyles();\n const { status } = useAlertContext();\n\n return (\n <chakra.div\n ref={ref}\n data-status={status}\n {...props}\n className={cx('chakra-alert__title', props.className)}\n __css={styles.title}\n />\n );\n});\n\nAlertTitle.displayName = 'AlertTitle';\n","import type { LinkProps } from '@chakra-ui/react';\nimport { Link } from '@chakra-ui/react';\nimport { cx } from '@chakra-ui/shared-utils';\nimport type { PropsWithChildren } from 'react';\nimport * as React from 'react';\n\nexport interface AnchorProps extends LinkProps, PropsWithChildren {\n isActive?: boolean;\n isChild?: boolean;\n}\n\nexport const Anchor = ({ children, isActive, isChild, ...props }: AnchorProps) => {\n return (\n <Link\n display=\"inline-block\"\n w=\"full\"\n p=\"4\"\n textStyle=\"text.md\"\n pl={isChild ? '10' : '4'}\n borderLeft=\"1px solid\"\n borderLeftColor={isActive ? 'primary.500' : 'neutral.400'}\n color={isActive ? 'primary.500' : 'black.high'}\n bg={isActive ? 'neutral.100' : 'white'}\n className={cx('catalyst-anchor', props.className)}\n _hover={{\n textDecoration: 'none',\n }}\n {...props}\n >\n {children}\n </Link>\n );\n};\n\nAnchor.displayName = 'Anchor';\nAnchor.defaultProps = {\n isActive: false,\n isChild: false,\n};\n\nexport default Anchor;\n","/* eslint-disable test-selectors/button */\nimport type { BadgeProps as BadgeChakraProps } from '@chakra-ui/react';\nimport { Badge as BadgeChakra } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface BadgeProps extends BadgeChakraProps {\n pill?: boolean;\n}\n\nconst Badge = (props: BadgeProps) => {\n const { children, pill, ...rest } = props;\n\n return (\n <BadgeChakra\n borderRadius={pill ? 'xl' : 'sm'}\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n textTransform=\"none\"\n {...rest}\n >\n {children}\n </BadgeChakra>\n );\n};\n\nBadge.defaultProps = {\n pill: false,\n};\n\nexport default Badge;\n","import { Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, IconButton, Text } from '@chakra-ui/react';\nimport { ChevronLeft, ChevronsRight, Home } from '@ctlyst.id/internal-icon';\nimport * as React from 'react';\n\nexport interface BreadCrumbParentProps {\n name: string;\n onClick?: () => void;\n disable?: boolean;\n link?: string;\n}\n\nexport interface BreadCrumbProps {\n title: string;\n children?: React.ReactNode;\n parents?: BreadCrumbParentProps[];\n className?: string;\n disableHome?: boolean;\n spacing?: number;\n backButton?: () => void;\n hideTitle?: boolean;\n homeButton?: () => void;\n}\n\nconst BreadCrumb: React.FC<BreadCrumbProps> = props => {\n const { title, children, parents, className, disableHome, spacing = 2, backButton, homeButton, hideTitle } = props;\n\n return (\n <Box\n data-test-id=\"CT_component_breadcrumb\"\n className={className}\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n <Box display=\"flex\" alignItems=\"center\">\n {!hideTitle && (\n <>\n <Flex gap={2} align=\"center\">\n {backButton && (\n <IconButton\n data-test-id=\"\"\n border=\"1px solid\"\n borderColor=\"neutral.100\"\n size=\"sm\"\n minH=\"9\"\n minW=\"9\"\n bg=\"white\"\n variant=\"ghost\"\n aria-label=\"Edit\"\n icon={<ChevronLeft size={5} />}\n onClick={backButton}\n />\n )}\n <Text pr=\"2\" textStyle=\"heading.6\" color=\"neutral.700\">\n {title}\n </Text>\n </Flex>\n <Box h=\"5.5\" borderLeft=\"1px solid\" borderColor=\"neutral.600\" />\n </>\n )}\n <Breadcrumb\n alignItems=\"center\"\n separator={\n <Box boxSize=\"3.5\">\n <ChevronsRight color=\"neutral.600\" size={3.5} />\n </Box>\n }\n pl=\"2\"\n pr=\"4\"\n spacing={spacing}\n >\n <BreadcrumbItem>\n <BreadcrumbLink\n data-test-id=\"\"\n alignItems=\"center\"\n href={homeButton || disableHome ? undefined : '/'}\n style={{ ...(disableHome && { cursor: 'default' }) }}\n onClick={homeButton}\n >\n <Box boxSize=\"3.5\">\n <Home size={3.5} color=\"primary.500\" />\n </Box>\n </BreadcrumbLink>\n </BreadcrumbItem>\n {parents?.map(val => (\n <BreadcrumbItem key={val.name}>\n <BreadcrumbLink\n data-test-id=\"\"\n href={!val.disable && val.link ? val.link : undefined}\n onClick={val.onClick}\n style={{\n ...(val.disable && {\n cursor: 'default',\n }),\n }}\n _hover={{ textDecoration: 'none' }}\n >\n <Text color={val.disable ? 'neutral.600' : 'primary.500'} textStyle=\"text.sm\">\n {val.name}\n </Text>\n </BreadcrumbLink>\n </BreadcrumbItem>\n ))}\n <BreadcrumbItem>\n <BreadcrumbLink _hover={{ textDecor: 'none', cursor: 'default' }}>\n <Text color=\"neutral.600\" textStyle=\"text.sm\">\n {title}\n </Text>\n </BreadcrumbLink>\n </BreadcrumbItem>\n </Breadcrumb>\n </Box>\n {children && <Box>{children}</Box>}\n </Box>\n );\n};\n\nBreadCrumb.defaultProps = {\n children: undefined,\n parents: undefined,\n className: undefined,\n disableHome: undefined,\n spacing: 2,\n backButton: undefined,\n hideTitle: false,\n};\n\nexport default BreadCrumb;\n","export { default as Button } from './components/button';\nexport * from './components/button';\nexport {\n ButtonGroup,\n ButtonGroupProps,\n CloseButton,\n CloseButtonProps,\n IconButton,\n IconButtonProps,\n} from '@chakra-ui/react';\n","import type { BoxProps } from '@chakra-ui/react';\nimport { Card, useStyleConfig } from '@chakra-ui/react';\nimport React, { forwardRef } from 'react';\n\nexport interface CardProps extends BoxProps {\n withShadow?: boolean;\n isRounded?: boolean;\n}\n\nconst CardCustom = forwardRef<HTMLDivElement, CardProps>(({ children, ...rest }, ref) => {\n const styles = useStyleConfig('Card', rest);\n\n return (\n <Card __css={styles} backgroundColor=\"white.high\" ref={ref} {...rest}>\n {children}\n </Card>\n );\n});\n\nCardCustom.defaultProps = {\n withShadow: true,\n isRounded: true,\n};\n\nexport default CardCustom;\n","/* eslint-disable no-nested-ternary */\nimport type { BoxProps, CheckboxProps } from '@chakra-ui/react';\nimport { Box, Checkbox, forwardRef, Text, useCheckbox } from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nexport interface CheckboxComponentProps extends CheckboxProps, PropsWithChildren {\n isError?: boolean;\n helpText?: string;\n errorText?: string;\n boxProps?: BoxProps;\n}\n\nconst CheckboxComponent = forwardRef<CheckboxComponentProps, 'input'>(\n ({ isError = false, helpText, errorText, boxProps, children, isDisabled, ...rest }, ref) => {\n const { state } = useCheckbox(rest);\n const variant = isError ? 'errors' : 'unstyled';\n\n return (\n <Box>\n <Box display=\"flex\" {...boxProps}>\n <Checkbox\n variant={variant}\n ref={ref}\n {...rest}\n isDisabled={isDisabled}\n color=\"white\"\n icon={\n state.isIndeterminate ? (\n <Icon.MinusLine size={3} color=\"inherit\" />\n ) : (\n <Icon.Check size={3} color=\"inherit\" />\n )\n }\n >\n {children && (\n <Text as=\"span\" display=\"block\" textStyle=\"text.sm\" color={isDisabled ? 'black.medium' : 'black.high'}>\n {children}\n </Text>\n )}\n </Checkbox>\n </Box>\n {((isError && errorText) || helpText) && (\n <Box mt=\"1\" ml=\"6\">\n {isError ? (\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"danger.500\">\n {errorText}\n </Text>\n ) : (\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"black.medium\">\n {helpText}\n </Text>\n )}\n </Box>\n )}\n </Box>\n );\n }\n);\n\nCheckboxComponent.displayName = 'Checkbox';\nCheckboxComponent.defaultProps = {\n isError: false,\n helpText: undefined,\n errorText: undefined,\n boxProps: undefined,\n};\n\nexport default CheckboxComponent;\n","/* eslint-disable no-nested-ternary */\nimport type { CheckboxGroupProps } from '@chakra-ui/react';\nimport { Box, CheckboxGroup, Stack } from '@chakra-ui/react';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { FieldProps } from '../../field';\nimport { Field } from '../../field';\n\nexport interface CheckboxGroupComponentProps extends FieldProps, CheckboxGroupProps, PropsWithChildren {\n label: string;\n helpText?: string;\n isError?: boolean;\n errorMessage?: string;\n}\n\nfunction CheckboxGroupComponent(props: CheckboxGroupComponentProps) {\n const { children, label, helpText, isError, errorMessage, ...rest } = props;\n return (\n <Field {...rest} label={label} leftHelperText={helpText} isError={isError} errorMessage={errorMessage}>\n <Box mt=\"2\" mb=\"1\">\n <CheckboxGroup {...rest}>\n <Stack spacing={[1, '16px']} direction={['column', 'row']}>\n {children}\n </Stack>\n </CheckboxGroup>\n </Box>\n </Field>\n );\n}\n\nCheckboxGroupComponent.defaultProps = {\n helpText: '',\n isError: false,\n errorMessage: '',\n};\n\nexport default CheckboxGroupComponent;\n","/* eslint-disable no-nested-ternary */\nimport type { FormControlProps } from '@chakra-ui/react';\nimport { Box, FormControl, FormErrorMessage, FormHelperText, FormLabel } from '@chakra-ui/react';\nimport type { FC, PropsWithChildren, ReactNode } from 'react';\nimport React from 'react';\n\nexport interface Props {\n id?: string;\n label?: string | ReactNode;\n isError?: boolean;\n isSuccess?: boolean;\n errorMessage?: string | ReactNode;\n leftHelperText?: string | ReactNode;\n rightHelperText?: string | ReactNode;\n isRequired?: boolean;\n isDisabled?: boolean;\n boxProps?: FormControlProps;\n}\n\nexport type FieldProps<T = unknown> = Props & T;\n\nconst Field: FC<PropsWithChildren<Props>> = props => {\n const {\n id,\n label,\n isError,\n errorMessage,\n leftHelperText,\n rightHelperText,\n isRequired,\n children,\n isSuccess,\n isDisabled,\n boxProps = {},\n } = props;\n\n const getHelperColor = () => {\n if (isError) return 'danger.500';\n if (isSuccess) return 'success.500';\n return 'black.medium';\n };\n\n const getJustifyContentHelper = () => {\n if (rightHelperText && (!leftHelperText || (isError && !errorMessage))) return 'flex-end';\n return 'space-between';\n };\n\n const helperColor = getHelperColor();\n const justifyHelper = getJustifyContentHelper();\n\n return (\n <FormControl isInvalid={isError} id={id} {...boxProps}>\n {label &&\n (typeof label === 'string' ? (\n <FormLabel mb={1} fontSize=\"text.sm\" requiredIndicator={undefined}>\n {isRequired && (\n <Box as=\"span\" color=\"danger.500\" ml={0} mr={1}>\n *\n </Box>\n )}\n {label}\n </FormLabel>\n ) : (\n label\n ))}\n\n {children}\n {((isError && errorMessage) || leftHelperText || rightHelperText) && (\n <Box display=\"flex\" width=\"full\" justifyContent={justifyHelper}>\n {!isError ? (\n leftHelperText &&\n (typeof leftHelperText === 'string' ? (\n <FormHelperText fontSize=\"text.xs\" color={helperColor} mt={1}>\n {leftHelperText}\n </FormHelperText>\n ) : (\n leftHelperText\n ))\n ) : typeof errorMessage === 'string' ? (\n <FormErrorMessage fontSize=\"text.xs\" color=\"danger.500\" mt={1}>\n {errorMessage}\n </FormErrorMessage>\n ) : (\n errorMessage\n )}\n {rightHelperText &&\n (typeof rightHelperText === 'string' ? (\n <FormHelperText fontSize=\"text.xs\" color={helperColor} mt={1}>\n {rightHelperText}\n </FormHelperText>\n ) : (\n rightHelperText\n ))}\n </Box>\n )}\n </FormControl>\n );\n};\n\nField.defaultProps = {\n label: '',\n isError: false,\n isSuccess: false,\n errorMessage: undefined,\n leftHelperText: undefined,\n rightHelperText: undefined,\n isRequired: false,\n boxProps: {},\n};\n\nexport default Field;\n","export { default as Checkbox } from './components/checkbox';\nexport * from './components/checkbox';\nexport { default as CheckboxGroup } from './components/checkbox-group';\nexport * from './components/checkbox-group';\nexport {\n CheckboxGroupContext,\n CheckboxGroupProps,\n CheckboxIcon,\n CheckboxIconProps,\n CheckboxState,\n useCheckbox,\n useCheckboxGroup,\n UseCheckboxGroupProps,\n UseCheckboxGroupReturn,\n UseCheckboxProps,\n UseCheckboxReturn,\n} from '@chakra-ui/react';\n","/* eslint-disable react/require-default-props */\nimport { Tag, TagCloseButton, TagLabel } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface ChipsProps {\n isDisabled?: boolean;\n isActive?: boolean;\n onClose?: () => void;\n label?: string;\n size?: 'sm' | 'md';\n onClick?: () => void;\n}\n\nconst Chips = ({ label, size, onClick, ...rest }: ChipsProps) => {\n const { isActive, isDisabled, onClose } = rest;\n\n const variant = isDisabled ? 'disabled' : 'outline';\n\n const handleClose = (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n if (onClose) {\n e.stopPropagation();\n onClose();\n }\n };\n\n return (\n <Tag\n data-test-id=\"\"\n onClick={onClick}\n size={size}\n key={size}\n borderRadius=\"full\"\n variant={isActive ? 'solid' : variant}\n >\n <TagLabel>{label}</TagLabel>\n {onClose && <TagCloseButton data-test-id=\"\" onClick={handleClose} />}\n </Tag>\n );\n};\n\nChips.defaultProps = {\n isDisabled: false,\n isActive: false,\n onClose: undefined,\n label: undefined,\n size: 'sm',\n};\n\nexport default Chips;\n","/* eslint-disable react/require-default-props */\nimport { Box, HStack, IconButton, Text } from '@chakra-ui/react';\nimport React, { useCallback } from 'react';\nimport { FiMinus, FiPlus } from 'react-icons/fi';\n\nimport { InputField } from '../../form';\n\nexport interface CounterProps {\n value: number;\n size?: string;\n min?: number;\n max?: number;\n onChange: (val: number) => void;\n isError?: boolean;\n disabled?: boolean;\n error?: string | React.ReactNode;\n helperText?: string | React.ReactNode;\n isReadOnly?: boolean;\n}\n\nconst Counter = ({\n value,\n size = 'xs',\n min = 0,\n max = 9999,\n onChange,\n isError = false,\n disabled = false,\n error = '',\n helperText = '',\n isReadOnly = false,\n}: CounterProps) => {\n const decrement = () => {\n onChange(value - 1);\n };\n\n const increment = () => {\n onChange(value + 1);\n };\n\n const handleChangeInput = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const inputValue = e.target.value;\n const cleanedInputValue = inputValue.replace(/^0+/, '') || '0';\n const parsedValue = parseInt(cleanedInputValue, 10);\n const newValue = Math.max(Math.min(parsedValue, max), min);\n e.target.value = newValue.toString();\n\n onChange(newValue);\n },\n [onChange, max, min]\n );\n\n return (\n <Box>\n <HStack gap=\"1\">\n <IconButton\n aria-label=\"minus\"\n data-test-id=\"CT_Component_Counter_decrement\"\n onClick={decrement}\n isDisabled={disabled || +value <= min}\n size={size}\n icon={<FiMinus />}\n />\n <InputField\n data-test-id=\"CT_Component_Counter_input\"\n value={value}\n isError={isError}\n isDisabled={disabled || max === 0}\n textAlign=\"center\"\n size={size}\n min={min}\n max={max}\n onChange={handleChangeInput}\n isReadOnly={isReadOnly}\n width={11.5}\n type=\"number\"\n onFocus={e => e.target.select()}\n borderColor={isError ? 'danger.500' : 'neutral.400'}\n />\n <IconButton\n aria-label=\"plus\"\n data-test-id=\"CT_Component_Counter_decrement\"\n onClick={increment}\n isDisabled={disabled || +value >= max}\n size={size}\n icon={<FiPlus />}\n />\n </HStack>\n {!isError ? (\n <Text mt={1} color=\"black.medium\" textStyle={'text.xs'}>\n {helperText}\n </Text>\n ) : (\n <Text mt={1} color=\"danger.500\" textStyle={'text.xs'}>\n {error}\n </Text>\n )}\n </Box>\n );\n};\n\nexport default Counter;\n","import { InputLeftAddon, InputRightAddon } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface InputAddonProps {\n children: React.ReactNode;\n}\n\nexport const InputAddonLeft = ({ children, ...props }: InputAddonProps) => {\n return (\n <InputLeftAddon backgroundColor=\"neutral.200\" px={3} py={2.5} style={{ border: 0, marginInlineEnd: 0 }} {...props}>\n {children}\n </InputLeftAddon>\n );\n};\n\nexport const InputAddonRight = ({ children, ...props }: InputAddonProps) => {\n return (\n <InputRightAddon\n backgroundColor=\"neutral.200\"\n px={3}\n py={2.5}\n style={{ border: 0, marginInlineStart: 0 }}\n {...props}\n >\n {children}\n </InputRightAddon>\n );\n};\n","export { InputLeftElement as InputElementLeft } from '@chakra-ui/react';\nexport { InputRightElement as InputElementRight } from '@chakra-ui/react';\n","import type { InputProps as ChakraInputProps } from '@chakra-ui/react';\nimport { Box, Input as ChakraInput, InputGroup } from '@chakra-ui/react';\nimport { Close, Eye, EyeOff } from '@ctlyst.id/internal-icon';\nimport type { ReactNode } from 'react';\nimport React, { useMemo, useState } from 'react';\n\nimport type { FieldProps } from '../../field/components/field';\nimport Field from '../../field/components/field';\nimport { Loader } from '../../loader';\n\nexport interface InputFieldProps extends ChakraInputProps, FieldProps {\n addOnLeft?: ReactNode;\n addOnRight?: ReactNode;\n withClear?: boolean;\n isLoading?: boolean;\n onClear?: () => void;\n}\n\nconst InputField = React.forwardRef<HTMLInputElement, InputFieldProps>((props, ref) => {\n const {\n value,\n type,\n addOnLeft,\n addOnRight,\n size,\n isRequired,\n label,\n isError,\n isSuccess,\n isDisabled,\n errorMessage,\n leftHelperText,\n rightHelperText,\n withClear,\n onClear,\n isLoading,\n ...inputProps\n } = props;\n\n const getProperties = () => {\n let outlineColor = 'neutral.400';\n let focusColor = 'primary.500';\n\n if (isError || isDisabled || isSuccess) {\n if (isError) outlineColor = 'danger.500';\n else if (isSuccess) outlineColor = 'success.500';\n focusColor = outlineColor;\n }\n\n return {\n outlineColor,\n focusColor,\n };\n };\n\n const [isShowPassword, setIsShowPassword] = useState(false);\n\n const inputType = useMemo(() => {\n return type === 'password' && isShowPassword ? 'text' : type;\n }, [isShowPassword, type]);\n\n const fontSize = useMemo(() => {\n if (type === 'password') {\n if (!isShowPassword && value) return 'text.xl';\n }\n return 'text.sm';\n }, [isShowPassword, type, value]);\n\n const iconColor = useMemo(() => {\n return isDisabled ? 'black.low' : 'black.medium';\n }, [isDisabled]);\n\n const { outlineColor, focusColor } = getProperties();\n return (\n <Field\n id={props.id || props.name}\n label={label}\n isSuccess={isSuccess}\n isError={isError}\n errorMessage={errorMessage}\n leftHelperText={leftHelperText}\n rightHelperText={rightHelperText}\n isRequired={isRequired}\n >\n <Box\n transition=\"all 0.15s\"\n boxShadow=\"none\"\n borderRadius=\"sm\"\n border=\"1px solid\"\n borderColor={outlineColor}\n _focusWithin={{\n borderColor: focusColor,\n }}\n >\n <InputGroup\n size={size}\n borderRadius=\"sm\"\n backgroundColor={isDisabled ? 'neutral.300' : 'white.high'}\n cursor={isDisabled ? 'not-allowed' : 'default'}\n >\n {addOnLeft}\n <ChakraInput\n ref={ref}\n type={inputType}\n value={value}\n data-test-id={`CT_Component_InputField${props.name ? `_${props.name}` : ''}`}\n isDisabled={isDisabled}\n isSuccess={isSuccess}\n {...inputProps}\n fontSize={fontSize}\n />\n {(withClear || isLoading || type === 'password') && (\n <Box\n data-test-id=\"CT_Component_ClearInput\"\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n width=\"16px\"\n mr=\"10px\"\n >\n {withClear && !isLoading && (\n <Box\n display=\"flex\"\n justifyContent=\"center\"\n onClick={!isDisabled ? onClear : undefined}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n >\n <Close size={4} color={iconColor} />\n </Box>\n )}\n {type === 'password' && !isShowPassword && !isLoading && (\n <Box\n data-test-id=\"q2Bj2G4FlamXyHuRKMZ1Q\"\n onClick={() => {\n if (!isDisabled) setIsShowPassword(true);\n }}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n display=\"flex\"\n justifyContent=\"center\"\n >\n <EyeOff size={4} color={iconColor} />\n </Box>\n )}\n {type === 'password' && isShowPassword && !isLoading && (\n <Box\n data-test-id=\"sfc2388bmeXBmdla45Ibk\"\n onClick={() => {\n if (!isDisabled) setIsShowPassword(false);\n }}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n display=\"flex\"\n justifyContent=\"center\"\n >\n <Eye size={4} color={iconColor} />\n </Box>\n )}\n {isLoading && <Loader size=\"sm\" />}\n </Box>\n )}\n {addOnRight}\n </InputGroup>\n </Box>\n </Field>\n );\n});\n\nInputField.displayName = 'InputField';\nInputField.defaultProps = {\n addOnLeft: undefined,\n addOnRight: undefined,\n withClear: undefined,\n isLoading: undefined,\n onClear: undefined,\n};\n\nexport default InputField;\n","import type { TextareaProps as ChakraTextareaProps } from '@chakra-ui/react';\nimport { Box, Textarea as ChakraTextarea } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { FieldProps } from '../../field';\nimport { Field } from '../../field';\nimport { Loader } from '../../loader';\n\nexport interface TextAreaProps extends ChakraTextareaProps, FieldProps {\n isLoading?: boolean;\n}\n\nconst TextareaField = React.forwardRef<HTMLTextAreaElement, TextAreaProps>((props, ref) => {\n const { value, isLoading, ...inputProps } = props;\n\n return (\n <Field {...inputProps}>\n <Box position=\"relative\">\n <ChakraTextarea ref={ref} value={value} {...inputProps} />\n {isLoading && (\n <Box zIndex={999} top={2} right={2} position=\"absolute\">\n <Loader size=\"sm\" />\n </Box>\n )}\n </Box>\n </Field>\n );\n});\n\nTextareaField.defaultProps = {\n isLoading: undefined,\n};\n\nexport default TextareaField;\n","export * from './components/input-addon';\nexport * from './components/input-element';\nexport { default as InputField } from './components/input-field';\nexport * from './components/input-field';\nexport { default as TextareaField } from './components/textarea';\nexport * from './components/textarea';\nexport {\n FormControl,\n FormControlProps,\n FormErrorMessage,\n FormHelperText,\n FormLabel,\n FormLabelProps,\n InputGroup,\n InputGroupProps,\n InputLeftAddon,\n InputLeftAddonProps,\n InputLeftElement,\n InputLeftElementProps,\n InputProps,\n InputRightAddon,\n InputRightAddonProps,\n InputRightElement,\n InputRightElementProps,\n RequiredIndicator,\n RequiredIndicatorProps,\n} from '@chakra-ui/react';\n","/* eslint-disable react-hooks/exhaustive-deps */\n/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable react/no-unstable-nested-components */\nimport { ChevronDownIcon, ChevronUpIcon, UpDownIcon } from '@chakra-ui/icons';\nimport type {\n BoxProps,\n SystemStyleObject,\n TableBodyProps,\n TableCellProps,\n TableColumnHeaderProps,\n TableHeadProps,\n TableProps,\n TableRowProps,\n} from '@chakra-ui/react';\nimport { Box, Checkbox, Flex, Skeleton, Table, Tbody, Td, Th, Thead, Tr, useColorModeValue } from '@chakra-ui/react';\nimport { css } from '@emotion/react';\nimport type {\n Column,\n ColumnDef,\n ColumnPinningState,\n OnChangeFn,\n RowSelectionInstance,\n RowSelectionState,\n SortingState,\n Updater,\n} from '@tanstack/react-table';\nimport { flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';\nimport * as React from 'react';\n\nexport interface TableStyleProps {\n table?: TableProps;\n tableHead?: TableHeadProps;\n tableRow?: TableRowProps;\n tableBody?: TableBodyProps;\n tableColumnHeader?: TableColumnHeaderProps;\n tableCell?: TableCellProps;\n}\nexport type DisabledRowData = { disabled?: Record<string, boolean> };\n\nexport interface DataTableProps<T> {\n container?: BoxProps;\n styles?: TableStyleProps;\n columns: ColumnDef<T>[];\n dataSource: T[] | undefined;\n isLoading?: boolean;\n withSelectedRow?: boolean | undefined;\n onSelectedRow?: (data: T[]) => void;\n onSort?: (data: SortingState) => void;\n manualSorting?: boolean;\n sortingState?: SortingState;\n sortDescFirst?: boolean;\n headerSticky?: boolean;\n columnPinning?: ColumnPinningState;\n onRowClick?: (data: T) => void;\n isRowDisabled?: (row: T) => boolean;\n}\n\nexport const isCellDisabled = (row: DisabledRowData, cellId: string) => {\n if (row.disabled) {\n return row.disabled[cellId];\n }\n return false;\n};\n\nconst getCommonPinningStyles = <T,>(column: Column<T>): SystemStyleObject => {\n const isPinned = column.getIsPinned();\n const isFirstLeftPinnedColumn = isPinned === 'left' && column.getIsFirstColumn('left');\n const isLastLeftPinnedColumn = isPinned === 'left' && column.getIsLastColumn('left');\n const isFirstRightPinnedColumn = isPinned === 'right' && column.getIsFirstColumn('right');\n const isLastRightPinnedColumn = isPinned === 'right' && column.getIsLastColumn('right');\n\n return {\n left: isPinned === 'left' ? `${column.getStart('left')}px` : undefined,\n right: isPinned === 'right' ? `${column.getAfter('right')}px` : undefined,\n position: isPinned ? 'sticky' : 'relative',\n zIndex: isPinned ? 1 : 0,\n backgroundColor: 'white',\n ...(isFirstLeftPinnedColumn\n ? {\n pl: '16px',\n }\n : { pl: '8px' }),\n ...(isLastRightPinnedColumn\n ? {\n pr: '16px',\n }\n : { pr: '8px' }),\n ...(isLastLeftPinnedColumn\n ? {\n py: '16px',\n pr: '8px',\n '&:after': {\n transition: 'all 0.3s',\n content: \"''\",\n position: 'absolute',\n width: '30px',\n right: '0px',\n bottom: '-1px',\n top: 0,\n transform: 'translateX(100%)',\n },\n '[data-pin-left=true] &:after': {\n boxShadow: 'inset 14px 0px 20px -10px #00000010',\n },\n }\n : {}),\n ...(isFirstRightPinnedColumn\n ? {\n py: '16px',\n pl: '8px',\n '&:after': {\n transition: 'all 0.3s',\n content: \"''\",\n position: 'absolute',\n width: '30px',\n left: '0%',\n top: 0,\n bottom: '-1px',\n transform: 'translateX(-100%)',\n },\n '[data-pin-right=true] &:after': {\n boxShadow: 'inset -14px 0px 20px -10px #00000010',\n },\n }\n : {}),\n };\n};\nexport type DataTableRefs<T> = Pick<RowSelectionInstance<T>, 'toggleAllRowsSelected'>;\n\nexport const useDataTable = <T,>({\n columns,\n dataSource = [],\n withSelectedRow,\n onSelectedRow,\n onSort,\n sortDescFirst,\n sortingState,\n manualSorting,\n columnPinning,\n}: DataTableProps<T>) => {\n const [isFirstLoad, setIsFirstLoad] = React.useState<boolean>(true);\n const [sorting, setSorting] = React.useState<SortingState>(sortingState ?? []);\n const [rowSelection, onRowSelectionChange] = React.useState<RowSelectionState>({});\n const dataColumns = React.useMemo<ColumnDef<T>[]>(() => columns, [columns]);\n const checkboxColumn = React.useMemo<ColumnDef<T>[]>(\n () => [\n {\n id: 'select',\n size: 32,\n header: ({ table }) => (\n <Checkbox\n data-test-id=\"select-header-data-table\"\n {...{\n isChecked: table.getIsAllRowsSelected(),\n isIndeterminate: table.getIsSomeRowsSelected(),\n onChange: table.getToggleAllRowsSelectedHandler(),\n }}\n />\n ),\n cell: ({ row }) => (\n <Checkbox\n data-test-id={`select-data-table-${row.index}`}\n {...{\n isChecked: row.getIsSelected(),\n isIndeterminate: row.getIsSomeSelected(),\n onChange: row.getToggleSelectedHandler(),\n }}\n />\n ),\n },\n ],\n []\n );\n\n const generateColumn = () => {\n if (withSelectedRow) {\n return [...checkboxColumn, ...dataColumns];\n }\n return dataColumns;\n };\n\n const onSortingChange: OnChangeFn<SortingState> = (data: Updater<SortingState>) => {\n setSorting(data);\n };\n\n const table = useReactTable({\n data: dataSource,\n columns: generateColumn(),\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n manualPagination: true,\n manualSorting,\n sortDescFirst,\n state: {\n sorting,\n rowSelection,\n ...(columnPinning ? { columnPinning } : {}),\n },\n onRowSelectionChange,\n onSortingChange,\n });\n\n const { getSelectedRowModel, toggleAllRowsSelected } = table;\n const { flatRows } = getSelectedRowModel();\n React.useEffect(() => {\n const rowData = flatRows.map(row => row.original);\n if (onSelectedRow) {\n onSelectedRow(rowData);\n }\n }, [flatRows]);\n\n React.useEffect(() => {\n if (onSort && !isFirstLoad) {\n onSort(sorting);\n }\n }, [sorting]);\n\n React.useEffect(() => {\n setIsFirstLoad(false);\n }, []);\n return {\n table,\n toggleAllRowsSelected,\n generateColumn,\n };\n};\n\nconst DataTable = React.forwardRef(<T,>(props: DataTableProps<T>, ref?: React.Ref<DataTableRefs<T>>) => {\n const { isLoading, styles, headerSticky, onRowClick, container, columnPinning, isRowDisabled } = props;\n const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);\n const refTable = React.useRef<HTMLDivElement>(null);\n React.useImperativeHandle(ref, () => ({\n toggleAllRowsSelected,\n }));\n const tableResizeHandler = () => {\n if (refTable.current?.offsetWidth === refTable.current?.scrollWidth) {\n refTable.current?.removeAttribute('data-pin-right');\n refTable.current?.removeAttribute('data-pin-left');\n } else {\n refTable.current?.setAttribute('data-pin-right', 'true');\n }\n };\n\n let lastPinnedColumn = 0;\n React.useEffect(() => {\n refTable.current?.addEventListener('scroll', s => {\n const element = s.currentTarget as HTMLDivElement;\n if (element.scrollLeft > 0) {\n refTable.current?.setAttribute('data-pin-left', 'true');\n } else {\n refTable.current?.removeAttribute('data-pin-left');\n }\n\n if (element.scrollLeft < element.scrollWidth - (lastPinnedColumn + element.offsetWidth)) {\n refTable.current?.setAttribute('data-pin-right', 'true');\n } else {\n refTable.current?.removeAttribute('data-pin-right');\n }\n });\n\n window.addEventListener('resize', tableResizeHandler);\n return () => {\n window.removeEventListener('resize', tableResizeHandler);\n };\n }, []);\n\n const hasScroll =\n refTable?.current?.offsetWidth &&\n refTable?.current?.scrollWidth &&\n refTable?.current?.offsetWidth < refTable?.current?.scrollWidth;\n\n return (\n <Box\n overflowX=\"auto\"\n overflowY=\"hidden\"\n position=\"relative\"\n pl={columnPinning?.left?.length ? 0 : 4}\n pr={columnPinning?.right?.length ? 0 : 4}\n maxW=\"100%\"\n w=\"full\"\n ref={refTable}\n {...(columnPinning?.right?.length && hasScroll ? { 'data-pin-right': true } : {})}\n {...container}\n >\n {isLoading ? (\n <Table {...styles?.table} data-loading=\"true\">\n <Thead {...(styles?.tableHead, headerSticky ? { position: 'sticky', top: 0, bg: 'white', zIndex: 1 } : {})}>\n {table.getHeaderGroups().map(headerGroup => (\n <Tr mx=\"2\" key={headerGroup.id} {...styles?.tableRow}>\n {headerGroup.headers.map((header, index) => (\n <Th\n key={header.id}\n colSpan={header.colSpan}\n width={`${header.getSize()}px`}\n {...styles?.tableColumnHeader}\n >\n <Flex\n data-test-id=\"CT_component_data-table_loader\"\n textTransform=\"capitalize\"\n align=\"center\"\n gap={2}\n >\n {flexRender(header.column.columnDef.header, header.getContext())}\n </Flex>\n </Th>\n ))}\n </Tr>\n ))}\n </Thead>\n\n <Tbody>\n {[...Array(5)].map(num => (\n <Tr mx=\"2\" key={num}>\n {[...Array(generateColumn().length)].map(i => (\n <Td key={i} width={210}>\n <Skeleton startColor=\"neutral.100\" endColor=\"neutral.200\" key={i} h=\"20px\" w=\"70%\" />\n </Td>\n ))}\n </Tr>\n ))}\n </Tbody>\n </Table>\n ) : (\n <Table {...styles?.table}>\n <Thead\n maxH=\"50px\"\n {...(styles?.tableHead, headerSticky ? { position: 'sticky', top: 0, bg: 'white', zIndex: 1 } : {})}\n >\n {table.getHeaderGroups().map(headerGroup => (\n <Tr key={headerGroup.id} bg={useColorModeValue('initial', 'ebony-clay.700')} {...styles?.tableRow}>\n {headerGroup.headers.map((header, index) => {\n if (!!columnPinning?.right?.length && header.column.getIsFirstColumn('right')) {\n lastPinnedColumn = header.column.getAfter('right');\n }\n return (\n <Th\n key={header.id}\n colSpan={header.colSpan}\n sx={getCommonPinningStyles(header.column)}\n width={`${header.getSize()}px`}\n {...styles?.tableColumnHeader}\n >\n <Flex\n backgroundColor=\"white\"\n height={'100%'}\n data-test-id={`CT_Container_TableHeader_${header.id}`}\n textTransform=\"capitalize\"\n userSelect=\"none\"\n align=\"center\"\n gap={2}\n >\n {flexRender(header.column.columnDef.header, header.getContext())}\n {(header.column.getCanSort() &&\n {\n asc: <ChevronUpIcon h={4} w={4} color=\"neutral.500\" />,\n desc: <ChevronDownIcon h={4} w={4} color=\"neutral.500\" />,\n }[header.column.getIsSorted() as string]) ?? (\n <Box\n as=\"span\"\n cursor={header.column.getCanSort() ? 'pointer' : 'default'}\n data-test-id={`CT_Container_SortingIcon_${header.id}`}\n onClick={header.column.getToggleSortingHandler()}\n >\n <Box display=\"flex\" justifyContent=\"center\" alignItems=\"center\" boxSize={4}>\n <UpDownIcon color=\"neutral.500\" />\n </Box>\n </Box>\n )}\n </Flex>\n </Th>\n );\n })}\n </Tr>\n ))}\n </Thead>\n <Tbody {...styles?.tableBody}>\n {table.getRowModel().rows.map(row => {\n const disabledRow = isRowDisabled && isRowDisabled(row.original);\n\n return (\n <Tr\n data-test-id=\"-RU0hNYGRzeVM3HQ4cXHl\"\n tabindex=\"0\"\n key={row.id}\n {...styles?.tableRow}\n aria-disabled={disabledRow}\n css={css`\n &:last-child {\n td {\n border-bottom: none;\n }\n }\n `}\n cursor={disabledRow ? 'default' : 'pointer'}\n onMouseDown={e => {\n if (!disabledRow) {\n e.currentTarget?.setAttribute('data-active', 'true');\n }\n }}\n onMouseUp={e => {\n e.currentTarget?.removeAttribute('data-active');\n }}\n onClick={() => {\n if (onRowClick) {\n if (disabledRow) return;\n onRowClick(row.original);\n }\n }}\n >\n {row.getVisibleCells().map(cell => {\n const meta = cell.column.columnDef.meta as { columnStyles?: SystemStyleObject };\n const isDisabled = isCellDisabled(row.original as DisabledRowData, cell.column.id);\n return (\n <Td\n data-test-id={`CT_Component_TableCell_${cell.id}`}\n key={cell.id}\n fontSize=\"text.sm\"\n sx={getCommonPinningStyles(cell.column)}\n {...styles?.tableCell}\n >\n <Flex\n height={'100%'}\n width={'100%'}\n align=\"center\"\n opacity={isDisabled ? 0.5 : 1}\n sx={{ ...(meta && meta.columnStyles ? meta.columnStyles : {}) }}\n >\n <Flex\n tabIndex={0}\n cursor=\"auto\"\n data-test-id={`CT_Component_TableCell_Content-${cell.id}`}\n onMouseUp={e => e.stopPropagation()}\n onMouseDown={e => e.stopPropagation()}\n onClick={e => {\n e.stopPropagation();\n }}\n noOfLines={2}\n sx={{\n display: '-webkit-inline-box',\n }}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </Flex>\n </Flex>\n </Td>\n );\n })}\n </Tr>\n );\n })}\n </Tbody>\n </Table>\n )}\n </Box>\n );\n});\n\nexport default DataTable as <T>(\n props: DataTableProps<T> & {\n ref?: React.Ref<DataTableRefs<T>>;\n }\n) => JSX.Element;\n","import { FormControl, FormErrorMessage, FormHelperText, IconButton } from '@chakra-ui/react';\nimport { cx } from '@chakra-ui/shared-utils';\nimport { Calendar, Close } from '@ctlyst.id/internal-icon';\nimport { offset } from '@floating-ui/react';\nimport React from 'react';\nimport type { DatePickerProps } from 'react-datepicker';\nimport ReactDatePicker from 'react-datepicker';\n\nimport { id as idLocale } from '../../../utils/locale';\nimport { Field } from '../../field';\nimport { InputElementRight, InputField } from '../../form';\nimport Styles from './styles';\nimport TimeInput from './time-input';\n\nexport type DatepickerProps = DatePickerProps & {\n id?: string;\n isRequired?: boolean;\n label?: string;\n error?: string | React.ReactNode;\n isError?: boolean;\n helperText?: string | React.ReactNode;\n withTime?: boolean;\n onClear?: () => void;\n showMonth?: boolean;\n shortMonth?: boolean;\n timezoneLabel?: string;\n};\n\nconst Datepicker: React.FC<DatepickerProps> = ({\n id,\n label,\n error,\n isError,\n helperText,\n isRequired,\n withTime,\n value,\n name,\n onClear,\n showMonth,\n shortMonth,\n timezoneLabel,\n ...props\n}) => {\n const selected = value ? new Date(value) : undefined;\n const timezoneLabelFormat = timezoneLabel ? `${timezoneLabel}` : '';\n const dateFormat = props.dateFormat ?? withTime ? `dd MMM yyyy, HH:mm '${timezoneLabelFormat}` : 'dd MMM yyyy';\n\n const getTimeProps = (): Pick<DatePickerProps, 'showTimeInput' | 'customTimeInput' | 'timeInputLabel'> => {\n if (!withTime) return {};\n return {\n timeInputLabel: '',\n showTimeInput: true,\n customTimeInput: <TimeInput />,\n };\n };\n\n const hasMultipleMonthShow = (props?.monthsShown ?? 1) < 2;\n const component = (\n <>\n <Styles showHeader={!hasMultipleMonthShow} />\n\n <Field label={label} isRequired={isRequired} isError={isError}>\n <ReactDatePicker\n id={id}\n name={name}\n onChangeRaw={e => {\n if (props.selectsRange) e?.preventDefault();\n }}\n selected={selected}\n popperModifiers={[\n offset(4),\n {\n name: 'placement',\n fn: state => {\n const { placement, y } = state;\n\n return {\n ...state,\n y: placement.startsWith('bottom') ? y - 10 : y + 14, // condition for auto placement\n };\n },\n },\n ]}\n customInput={\n <InputField\n autoComplete=\"off\"\n isError={isError}\n name={name}\n sx={props.selectsRange ? { caretColor: 'transparent' } : {}}\n addOnRight={\n <InputElementRight alignSelf={'center'} bottom={0} flexDir=\"row-reverse\" width={'auto'} mr={2} gap={2}>\n <Calendar size={4} color={'neutral.400'} />\n {value && !props.disabled && (\n <IconButton\n data-test-id=\"H0rseVCzGIaqoLho-EPbu\"\n display={'flex'}\n alignItems={'center'}\n variant={'unstyled'}\n aria-label=\"Remove\"\n onClick={onClear}\n cursor=\"pointer\"\n size=\"sm\"\n minW={'unset'}\n icon={<Close size={4} color={'neutral.600'} />}\n />\n )}\n </InputElementRight>\n }\n />\n }\n showPopperArrow={false}\n calendarClassName={cx({ inline: props.inline })}\n dropdownMode=\"select\"\n showMonthDropdown={hasMultipleMonthShow}\n showYearDropdown={hasMultipleMonthShow}\n shouldCloseOnSelect={!(props.selectsRange || withTime)}\n useShortMonthInDropdown={showMonth ? shortMonth : false}\n dateFormat={dateFormat}\n locale={idLocale}\n {...getTimeProps()}\n {...props}\n />\n </Field>\n </>\n );\n\n if (props.inline) {\n return component;\n }\n\n return (\n <FormControl data-test-id=\"CT_Component_datepicker_wrapper\" isInvalid={isError}>\n {component}\n {!isError ? (\n <FormHelperText fontSize=\"text.xs\" mt={1}>\n {helperText}\n </FormHelperText>\n ) : (\n <FormErrorMessage fontSize=\"text.xs\" mt={1}>\n {error}\n </FormErrorMessage>\n )}\n </FormControl>\n );\n};\n\nDatepicker.defaultProps = {\n id: undefined,\n isRequired: undefined,\n label: undefined,\n error: undefined,\n isError: undefined,\n helperText: undefined,\n withTime: undefined,\n onClear: undefined,\n shortMonth: false,\n showMonth: false,\n};\n\nexport default Datepicker;\n","export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n","/* eslint-disable no-unused-vars */\n\n/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n","export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"kurang dari 1 detik\",\n other: \"kurang dari {{count}} detik\",\n },\n\n xSeconds: {\n one: \"1 detik\",\n other: \"{{count}} detik\",\n },\n\n halfAMinute: \"setengah menit\",\n\n lessThanXMinutes: {\n one: \"kurang dari 1 menit\",\n other: \"kurang dari {{count}} menit\",\n },\n\n xMinutes: {\n one: \"1 menit\",\n other: \"{{count}} menit\",\n },\n\n aboutXHours: {\n one: \"sekitar 1 jam\",\n other: \"sekitar {{count}} jam\",\n },\n\n xHours: {\n one: \"1 jam\",\n other: \"{{count}} jam\",\n },\n\n xDays: {\n one: \"1 hari\",\n other: \"{{count}} hari\",\n },\n\n aboutXWeeks: {\n one: \"sekitar 1 minggu\",\n other: \"sekitar {{count}} minggu\",\n },\n\n xWeeks: {\n one: \"1 minggu\",\n other: \"{{count}} minggu\",\n },\n\n aboutXMonths: {\n one: \"sekitar 1 bulan\",\n other: \"sekitar {{count}} bulan\",\n },\n\n xMonths: {\n one: \"1 bulan\",\n other: \"{{count}} bulan\",\n },\n\n aboutXYears: {\n one: \"sekitar 1 tahun\",\n other: \"sekitar {{count}} tahun\",\n },\n\n xYears: {\n one: \"1 tahun\",\n other: \"{{count}} tahun\",\n },\n\n overXYears: {\n one: \"lebih dari 1 tahun\",\n other: \"lebih dari {{count}} tahun\",\n },\n\n almostXYears: {\n one: \"hampir 1 tahun\",\n other: \"hampir {{count}} tahun\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"dalam waktu \" + result;\n } else {\n return result + \" yang lalu\";\n }\n }\n\n return result;\n};\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.mjs\";\n\nconst dateFormats = {\n full: \"EEEE, d MMMM yyyy\",\n long: \"d MMMM yyyy\",\n medium: \"d MMM yyyy\",\n short: \"d/M/yyyy\",\n};\n\nconst timeFormats = {\n full: \"HH.mm.ss\",\n long: \"HH.mm.ss\",\n medium: \"HH.mm\",\n short: \"HH.mm\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'pukul' {{time}}\",\n long: \"{{date}} 'pukul' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: \"eeee 'lalu pukul' p\",\n yesterday: \"'Kemarin pukul' p\",\n today: \"'Hari ini pukul' p\",\n tomorrow: \"'Besok pukul' p\",\n nextWeek: \"eeee 'pukul' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.mjs\";\n\n// All data for localization are taken from this page\n// https://www.unicode.org/cldr/charts/32/summary/id.html\nconst eraValues = {\n narrow: [\"SM\", \"M\"],\n abbreviated: [\"SM\", \"M\"],\n wide: [\"Sebelum Masehi\", \"Masehi\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"K1\", \"K2\", \"K3\", \"K4\"],\n wide: [\"Kuartal ke-1\", \"Kuartal ke-2\", \"Kuartal ke-3\", \"Kuartal ke-4\"],\n};\n\n// Note: in Indonesian, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"Mei\",\n \"Jun\",\n \"Jul\",\n \"Agt\",\n \"Sep\",\n \"Okt\",\n \"Nov\",\n \"Des\",\n ],\n\n wide: [\n \"Januari\",\n \"Februari\",\n \"Maret\",\n \"April\",\n \"Mei\",\n \"Juni\",\n \"Juli\",\n \"Agustus\",\n \"September\",\n \"Oktober\",\n \"November\",\n \"Desember\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"M\", \"S\", \"S\", \"R\", \"K\", \"J\", \"S\"],\n short: [\"Min\", \"Sen\", \"Sel\", \"Rab\", \"Kam\", \"Jum\", \"Sab\"],\n abbreviated: [\"Min\", \"Sen\", \"Sel\", \"Rab\", \"Kam\", \"Jum\", \"Sab\"],\n wide: [\"Minggu\", \"Senin\", \"Selasa\", \"Rabu\", \"Kamis\", \"Jumat\", \"Sabtu\"],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n wide: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n wide: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"tengah malam\",\n noon: \"tengah hari\",\n morning: \"pagi\",\n afternoon: \"siang\",\n evening: \"sore\",\n night: \"malam\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // Can't use \"pertama\", \"kedua\" because can't be parsed\n\n return \"ke-\" + number;\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.mjs\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.mjs\";\n\nconst matchOrdinalNumberPattern = /^ke-(\\d+)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(sm|m)/i,\n abbreviated: /^(s\\.?\\s?m\\.?|s\\.?\\s?e\\.?\\s?u\\.?|m\\.?|e\\.?\\s?u\\.?)/i,\n wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i,\n};\nconst parseEraPatterns = {\n any: [/^s/i, /^(m|e)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^K-?\\s[1234]/i,\n wide: /^Kuartal ke-?\\s?[1234]/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,\n wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^ma/i,\n /^ap/i,\n /^me/i,\n /^jun/i,\n /^jul/i,\n /^ag/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[srkjm]/i,\n short: /^(min|sen|sel|rab|kam|jum|sab)/i,\n abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i,\n wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i],\n any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|tengah m|tengah h|(di(\\swaktu)?) (pagi|siang|sore|malam))/i,\n any: /^([ap]\\.?\\s?m\\.?|tengah malam|tengah hari|(di(\\swaktu)?) (pagi|siang|sore|malam))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^pm/i,\n midnight: /^tengah m/i,\n noon: /^tengah h/i,\n morning: /pagi/i,\n afternoon: /siang/i,\n evening: /sore/i,\n night: /malam/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { formatDistance } from \"./id/_lib/formatDistance.mjs\";\nimport { formatLong } from \"./id/_lib/formatLong.mjs\";\nimport { formatRelative } from \"./id/_lib/formatRelative.mjs\";\nimport { localize } from \"./id/_lib/localize.mjs\";\nimport { match } from \"./id/_lib/match.mjs\";\n\n/**\n * @category Locales\n * @summary Indonesian locale.\n * @language Indonesian\n * @iso-639-2 ind\n * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso)\n * @author Benget Nata [@bentinata](https://github.com/bentinata)\n * @author Budi Irawan [@deerawan](https://github.com/deerawan)\n * @author Try Ajitiono [@imballinst](https://github.com/imballinst)\n */\nexport const id = {\n code: \"id\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default id;\n","import type { Day, Era, LocalizeFn, Month, Quarter } from 'date-fns';\nimport type { LocaleDayPeriod, LocaleUnitValue, LocaleWidth } from 'date-fns/locale';\n\nexport type BuildLocalizeFnArgs<\n Value extends LocaleUnitValue,\n ArgCallback extends LocalizeFnArgCallback<Value> | undefined,\n> = {\n values: LocalizePeriodValuesMap<Value>;\n defaultWidth: LocaleWidth;\n formattingValues?: LocalizePeriodValuesMap<Value>;\n defaultFormattingWidth?: LocaleWidth;\n} & (ArgCallback extends undefined\n ? { argumentCallback?: undefined }\n : { argumentCallback: LocalizeFnArgCallback<Value> });\n\n/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\nexport type LocalizeFnArgCallback<Value extends LocaleUnitValue | number> = (value: Value) => LocalizeUnitIndex<Value>;\n\n/**\n * The map of localized values for each width.\n */\nexport type LocalizePeriodValuesMap<Value extends LocaleUnitValue> = {\n [Pattern in LocaleWidth]?: LocalizeValues<Value>;\n};\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\nexport type LocalizeUnitIndex<Value extends LocaleUnitValue | number> = Value extends LocaleUnitValue\n ? keyof LocalizeValues<Value>\n : number;\n\n/**\n * Converts the unit value to the tuple of values.\n */\nexport type LocalizeValues<Value extends LocaleUnitValue> = Value extends LocaleDayPeriod\n ? Record<LocaleDayPeriod, string>\n : Value extends Era\n ? LocalizeEraValues\n : Value extends Quarter\n ? LocalizeQuarterValues\n : Value extends Day\n ? LocalizeDayValues\n : Value extends Month\n ? LocalizeMonthValues\n : never;\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\nexport type LocalizeEraValues = readonly [string, string];\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\nexport type LocalizeQuarterValues = readonly [string, string, string, string];\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\nexport type LocalizeDayValues = readonly [string, string, string, string, string, string, string];\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\nexport type LocalizeMonthValues = readonly [\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n string,\n];\n\nexport function buildLocalizeFn<\n Value extends LocaleUnitValue,\n ArgCallback extends LocalizeFnArgCallback<Value> | undefined,\n>(args: BuildLocalizeFnArgs<Value, ArgCallback>): LocalizeFn<Value> {\n return (value, options) => {\n const context = options?.context ? String(options.context) : 'standalone';\n\n let valuesArray: LocalizeValues<Value>;\n if (context === 'formatting' && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = (options?.width ? String(options.width) : defaultWidth) as LocaleWidth;\n valuesArray = (args.formattingValues[width] || args.formattingValues[defaultWidth]) as LocalizeValues<Value>;\n } else {\n const { defaultWidth } = args;\n const width = (options?.width ? String(options.width) : args.defaultWidth) as LocaleWidth;\n valuesArray = (args.values[width] || args.values[defaultWidth]) as LocalizeValues<Value>;\n }\n const index = (args.argumentCallback ? args.argumentCallback(value as Value) : value) as LocalizeUnitIndex<Value>;\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","/* eslint-disable import/prefer-default-export */\nimport { id } from 'date-fns/locale';\n\nimport { buildLocalizeFn } from '../_lib/buildLocalizeFn';\n\nconst monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'] as const,\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agu', 'Sep', 'Okt', 'Nov', 'Des'] as const,\n wide: [\n 'Januari',\n 'Februari',\n 'Maret',\n 'April',\n 'Mei',\n 'Juni',\n 'Juli',\n 'Agustus',\n 'September',\n 'Oktober',\n 'November',\n 'Desember',\n ] as const,\n};\nid.localize.month = buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide',\n});\nexport { id };\n","import { useColorMode } from '@chakra-ui/system';\nimport { Global } from '@emotion/react';\n\nconst Styles = ({ showHeader }: { showHeader: boolean }) => {\n const { colorMode } = useColorMode();\n\n return (\n <Global\n styles={`\n @charset \"UTF-8\";\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow, .react-datepicker__navigation-icon::before {\n border-color: ${colorMode === 'light' ? '#6E6B7B' : '#d0d1d2'};\n border-style: solid;\n border-width: 1px 1px 0 0;\n content: \"\";\n display: block;\n height: 7px;\n position: absolute;\n top: 13px;\n width: 7px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n margin-left: -4px;\n position: absolute;\n width: 0;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n box-sizing: content-box;\n position: absolute;\n border: 8px solid transparent;\n height: 0;\n width: 1px;\n content: \"\";\n z-index: -1;\n border-width: 8px;\n left: -8px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n border-bottom-color: #aeaeae;\n }\n\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n top: 0;\n margin-top: -8px;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n border-top: none;\n border-bottom-color: #f0f0f0;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n top: 0;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n top: -1px;\n border-bottom-color: #aeaeae;\n }\n\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n bottom: 0;\n margin-bottom: -8px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n border-bottom: none;\n border-top-color: #fff;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n bottom: 0;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before {\n bottom: -1px;\n border-top-color: #aeaeae;\n }\n\n .react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n width: 100%;\n }\n\n .react-datepicker {\n font-family: Poppins;\n background-color: ${colorMode === 'light' ? '#ffffff' : '#283046'};\n color: ${colorMode === 'light' ? '#000' : '#d0d1d2'};\n filter: drop-shadow(0px 3px 10px rgba(0, 0, 0, 0.08));\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n }\n\n .react-datepicker.inline {\n filter: none;\n }\n\n .react-datepicker--time-only .react-datepicker__triangle {\n left: 35px;\n }\n .react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n }\n .react-datepicker--time-only .react-datepicker__time,\n .react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n }\n\n .react-datepicker__triangle {\n position: absolute;\n left: 50px;\n }\n\n .react-datepicker-popper {\n z-index: 1;\n }\n .react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle, .react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle {\n left: auto;\n right: 50px;\n }\n .react-datepicker-popper[data-placement^=right] {\n padding-left: 8px;\n }\n .react-datepicker-popper[data-placement^=right] .react-datepicker__triangle {\n left: auto;\n right: 42px;\n }\n .react-datepicker-popper[data-placement^=left] {\n padding-right: 8px;\n }\n .react-datepicker-popper[data-placement^=left] .react-datepicker__triangle {\n left: 42px;\n right: auto;\n }\n\n .react-datepicker__header {\n text-align: center;\n background-color: '#ffffff';\n border-top-left-radius: 0.3rem;\n padding-top:16px;\n position: relative;\n }\n .react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n }\n .react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n }\n .react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n display: inline-block;\n margin: 0 2px;\n }\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--select {\n font-weight: 600;\n line-height: 22px;\n color: #111111;\n }\n\n .react-datepicker__current-month,\n .react-datepicker-time__header,\n .react-datepicker-year-header {\n display:${showHeader ? 'block' : 'none'};\n margin-top: 0;\n color: ${colorMode === 'light' ? '#111111' : '#d0d1d2'};\n font-size:14px;\n font-weight:600;\n }\n\n .react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n\n .react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 10px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n }\n .react-datepicker__navigation--previous {\n left: 22px;\n border:1px solid var(--chakra-colors-neutral-400);\n border-radius:4px;\n }\n .react-datepicker__navigation--next {\n right: 22px;\n border:1px solid var(--chakra-colors-neutral-400);\n border-radius:4px;\n }\n .react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n }\n .react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n }\n .react-datepicker__navigation--years-previous {\n top: 4px;\n }\n .react-datepicker__navigation--years-upcoming {\n top: -4px;\n }\n .react-datepicker__navigation:hover *::before {\n border-color: #a6a6a6;\n }\n\n .react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n }\n .react-datepicker__navigation-icon--next {\n left: -2px;\n }\n .react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -4px;\n }\n .react-datepicker__navigation-icon--previous {\n right: -2px;\n }\n .react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -4px;\n }\n\n .react-datepicker__month-container {\n float: left;\n border-radius: 8px;\n }\n\n .react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n }\n .react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n }\n .react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n }\n\n .react-datepicker__month {\n padding: 0 1rem 1rem 1rem;\n text-align: center;\n }\n .react-datepicker__month .react-datepicker__month-text,\n .react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n }\n\n .react-datepicker__input-time-container {\n width: 100%;\n }\n .react-datepicker__input-time-container .react-datepicker-time__caption {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n width: 100%;\n display: inline-block;\n }\n\n .react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n }\n .react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -72px;\n top: 0;\n }\n .react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + (1.7rem / 2));\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n color: white;\n font-weight: bold;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: ${colorMode === 'light' ? '#ccc' : '#d0d1d2'};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n }\n\n .react-datepicker__week-number {\n color: ${colorMode === 'light' ? '#ccc' : '#d0d1d2'};\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n }\n .react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n }\n .react-datepicker__week-number.react-datepicker__week-number--clickable:hover {\n border-radius: 0.3rem;\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n }\n\n .react-datepicker__day-names,\n .react-datepicker__week {\n white-space: nowrap;\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0px;\n margin-top: 8px;\n }\n\n .react-datepicker__day-name,\n .react-datepicker__day,\n .react-datepicker__time-name {\n colors: #000;\n display: inline-block;\n width: 2.25rem;\n line-height: 2.25rem;\n text-align: center;\n }\n .react-datepicker__day-name{\n color:var(--chakra-colors-black-medium)\n }\n\n .react-datepicker__month--selected, .react-datepicker__month--in-selecting-range, .react-datepicker__month--in-range,\n .react-datepicker__quarter--selected,\n .react-datepicker__quarter--in-selecting-range,\n .react-datepicker__quarter--in-range {\n border-radius: 0.3rem;\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n color: #fff;\n }\n .react-datepicker__month--selected:hover, .react-datepicker__month--in-selecting-range:hover, .react-datepicker__month--in-range:hover,\n .react-datepicker__quarter--selected:hover,\n .react-datepicker__quarter--in-selecting-range:hover,\n .react-datepicker__quarter--in-range:hover {\n background-color: ${colorMode === 'light' ? '#075331' : '#131620'};\n }\n .react-datepicker__month--disabled,\n .react-datepicker__quarter--disabled {\n color: #ccc;\n pointer-events: none;\n }\n .react-datepicker__month--disabled:hover,\n .react-datepicker__quarter--disabled:hover {\n cursor: default;\n background-color: transparent;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n cursor: pointer;\n }\n .react-datepicker__day:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-radius: 2rem;\n background-color: var(--chakra-colors-neutral-200);\n }\n .react-datepicker__day--highlighted,\n .react-datepicker__month-text--highlighted,\n .react-datepicker__quarter-text--highlighted,\n .react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n }\n .react-datepicker__day--highlighted:hover,\n .react-datepicker__month-text--highlighted:hover,\n .react-datepicker__quarter-text--highlighted:hover,\n .react-datepicker__year-text--highlighted:hover {\n background-color: #32be3f;\n }\n .react-datepicker__day--highlighted-custom-1,\n .react-datepicker__month-text--highlighted-custom-1,\n .react-datepicker__quarter-text--highlighted-custom-1,\n .react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n }\n .react-datepicker__day--highlighted-custom-2,\n .react-datepicker__month-text--highlighted-custom-2,\n .react-datepicker__quarter-text--highlighted-custom-2,\n .react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n }\n .react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n .react-datepicker__month-text--selected,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--selected,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--selected,\n .react-datepicker__year-text--in-selecting-range,\n .react-datepicker__year-text--in-range {\n border-radius: var(--chakra-radii-2xl);\n background-color: var(--chakra-colors-primary-500);\n color: #fff;\n }\n .react-datepicker__day--selected:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,\n .react-datepicker__month-text--selected:hover,\n .react-datepicker__month-text--in-selecting-range:hover,\n .react-datepicker__month-text--in-range:hover,\n .react-datepicker__quarter-text--selected:hover,\n .react-datepicker__quarter-text--in-selecting-range:hover,\n .react-datepicker__quarter-text--in-range:hover,\n .react-datepicker__year-text--selected:hover,\n .react-datepicker__year-text--in-selecting-range:hover,\n .react-datepicker__year-text--in-range:hover {\n background-color: var(--chakra-colors-primary-500);\n }\n .react-datepicker__day--keyboard-selected,\n .react-datepicker__month-text--keyboard-selected,\n .react-datepicker__quarter-text--keyboard-selected,\n .react-datepicker__year-text--keyboard-selected {\n border-radius: 2rem;\n background-color: ${colorMode === 'light' ? '#075331' : '#131620'};\n color: #fff;\n }\n .react-datepicker__day--keyboard-selected:hover,\n .react-datepicker__month-text--keyboard-selected:hover,\n .react-datepicker__quarter-text--keyboard-selected:hover,\n .react-datepicker__year-text--keyboard-selected:hover {\n background-color: ${colorMode === 'light' ? '#075331' : '#131620'};\n }\n .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range) {\n background-color: var(--chakra-colors-primary-50);\n color: ${colorMode === 'light' ? '#000' : '#d0d1d2'};\n }\n .react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range) {\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n color: ${colorMode === 'light' ? '#000' : '#d0d1d2'};\n }\n .react-datepicker__day--disabled,\n .react-datepicker__month-text--disabled,\n .react-datepicker__quarter-text--disabled,\n .react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n }\n .react-datepicker__day--disabled:hover,\n .react-datepicker__month-text--disabled:hover,\n .react-datepicker__quarter-text--disabled:hover,\n .react-datepicker__year-text--disabled:hover {\n background-color: transparent;\n }\n\n .react-datepicker__month-text.react-datepicker__month--selected:hover, .react-datepicker__month-text.react-datepicker__month--in-range:hover, .react-datepicker__month-text.react-datepicker__quarter--selected:hover, .react-datepicker__month-text.react-datepicker__quarter--in-range:hover,\n .react-datepicker__quarter-text.react-datepicker__month--selected:hover,\n .react-datepicker__quarter-text.react-datepicker__month--in-range:hover,\n .react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,\n .react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover {\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n }\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover {\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n }\n\n .react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n }\n\n .react-datepicker__year-read-view,\n .react-datepicker__month-read-view,\n .react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n }\n .react-datepicker__year-read-view:hover,\n .react-datepicker__month-read-view:hover,\n .react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n }\n .react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: #b3b3b3;\n }\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n transform: rotate(135deg);\n right: -16px;\n top: 5px;\n width: 5px;\n height: 5px;\n fill: #111111;\n\n }\n .react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n background:var(--chakra-colors-neutral-50);\n\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ${colorMode === 'light' ? '#f0f0f0' : '#131620'};\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n }\n .react-datepicker__year-dropdown:hover,\n .react-datepicker__month-dropdown:hover,\n .react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n }\n .react-datepicker__year-dropdown--scrollable,\n .react-datepicker__month-dropdown--scrollable,\n .react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\n }\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type {\n border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n }\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: #ccc;\n }\n .react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n .react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n .react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: #b3b3b3;\n }\n .react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n .react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n .react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: #b3b3b3;\n }\n .react-datepicker__year-option--selected,\n .react-datepicker__month-option--selected,\n .react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n }\n\n .react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n }\n .react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: ${colorMode === 'light' ? '#12784A' : '#131620'};\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: \"×\";\n }\n\n .react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n }\n\n .react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n }\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n }\n @media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n }\n .react-datepicker__portal .react-datepicker__current-month,\n .react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n }\n\n /** injected styles **/\n .react-datepicker__day--outside-month {\n color: ${colorMode === 'light' ? '#B9B9C3' : '#4D4D4D'};\n }\n .react-datepicker__day.react-datepicker__day--in-range {\n border-radius: 0;\n background: var(--chakra-colors-primary-50);\n color: #111111;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range,\n .react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {\n background: var(--chakra-colors-primary-500);\n color: #fff;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range {\n border-radius: 100px 0px 0px 100px;\n }\n .react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {\n border-radius: 0px 100px 100px 0px;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day.react-datepicker__day--range-end {\n border-radius: 100px;\n padding: 0;\n }\n .react-datepicker__day.react-datepicker__day--outside-month:empty {\n padding: 0;\n }\n .react-datepicker.inline .react-datepicker__header {\n background-color: inherit;\n }\n .react-datepicker__day--keyboard-selected, .react-datepicker__day--keyboard-selected:hover {\n background-color: var(--chakra-colors-primary-50);\n color: inherit;\n }\n .react-datepicker__day--today, .react-datepicker__day--today:hover {\n border-radius: 2rem;\n border-color: var(--chakra-colors-primary-500);\n border-width: 1px;\n line-height: 34px;\n }\n .react-datepicker__day--today:hover:not(.react-datepicker__day--in-range) {\n background: var(--chakra-colors-neutral-200);\n border-color:transparent;\n color:var(--chakra-colors-black-high);\n }\n .react-datepicker__day--selected.react-datepicker__day--today {\n color: white;\n background: var(--chakra-colors-primary-500);\n }\n .react-datepicker__aria-live {\n position: absolute;\n clip-path: circle(0);\n border: 0;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n width: 1px;\n white-space: nowrap;\n }\n .react-datepicker__month-select,.react-datepicker__year-select {\n background-color:transparent;\n font-size:14px;\n font-weight:600;\n text-align:center;\n }\n `}\n />\n );\n};\n\nexport default Styles;\n","import { Flex, Input, InputGroup, InputRightAddon, Text } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface TimeInputProps {\n value?: string;\n onChange?: (time: string) => void;\n label?: string;\n rightAddon?: React.ReactNode | string;\n}\n\nconst TimeInput: React.FC<TimeInputProps> = ({ value, onChange, label, rightAddon }) => {\n const [time, setTime] = React.useState(value || '00:00');\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setTime(e.target?.value || '00:00');\n if (onChange) onChange(e.target?.value || '00:00');\n };\n\n return (\n <Flex flexDir=\"column\" p={4} pt={0}>\n <Text mb={2}>{label}</Text>\n <InputGroup alignItems=\"center\" borderColor=\"neutral.400\">\n <Input\n onChange={handleChange}\n type=\"time\"\n value={time}\n data-test-id=\"CT_Component_datepicker_input_time\"\n flex={1}\n borderRadius=\"sm\"\n border=\"1px solid\"\n borderColor=\"inherit\"\n _focusWithin={{\n borderColor: 'primary.500',\n }}\n />\n {rightAddon && <InputRightAddon>{rightAddon}</InputRightAddon>}\n </InputGroup>\n </Flex>\n );\n};\n\nTimeInput.displayName = 'DatepickerTimeInput';\n\nTimeInput.defaultProps = {\n value: '00:00',\n onChange: undefined,\n label: 'Pilih Waktu',\n rightAddon: 'WIB',\n};\nexport default TimeInput;\n","import { Box, Input } from '@chakra-ui/react';\nimport { css } from '@emotion/react';\nimport type { FC } from 'react';\nimport React from 'react';\n\nexport interface DatePickerMonthProps {\n onChange: (date: string) => void;\n\n 'data-test-id'?: string;\n min: string;\n max: string;\n}\n\nconst DatePickerMonth: FC<DatePickerMonthProps> = ({ onChange, min, max, ...props }) => {\n const [date, setDate] = React.useState<string | null>(null);\n return (\n <Box\n fontSize={'12px'}\n lineHeight={'18px'}\n css={css`\n input[type='date']::-webkit-inner-spin-button,\n input[type='date']::-webkit-calendar-picker-indicator {\n display: none;\n -webkit-appearance: none;\n }\n input[value=''] {\n width: 58px;\n }\n `}\n >\n <Input\n data-test-id={props['data-test-id']}\n type=\"date\"\n width={date ? '51px' : '58px'}\n onChange={e => {\n onChange(e.target.value);\n setDate(e.target.value);\n }}\n p={'8px'}\n min={min}\n max={max}\n required\n css={css`\n border: 1px solid transparent;\n\n &:focus,\n &:hover {\n border: 1px solid transparent;\n }\n\n &::placeholder {\n color: #111111;\n }\n `}\n value={date ?? ''}\n />\n </Box>\n );\n};\n\nDatePickerMonth.defaultProps = {\n 'data-test-id': '',\n};\n\nexport default DatePickerMonth;\n","import { Box } from '@chakra-ui/react';\nimport styled from '@emotion/styled';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport DatePickerMonth from './datepicker-month';\n\nexport interface MultiDatePickerMonthProps {\n onChange: (startDate: string | null, endDate: string | null) => void;\n\n min?: string;\n max?: string;\n isError?: boolean;\n}\n\nconst MultiDateWrapper = styled(Box)<{ isError: boolean }>`\n display: flex;\n align-items: center;\n width: fit-content;\n border: 1px solid;\n box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);\n border-radius: 4px;\n border-color: ${({ isError }) => (isError ? 'var(--chakra-colors-danger-500)' : 'var(--chakra-colors-primary-500)')};\n`;\n\nconst MultiDatePickerMonth: FC<MultiDatePickerMonthProps> = ({\n onChange,\n isError = false,\n min = '2020-01-01',\n max = '2020-12-31',\n}) => {\n const [date, setDate] = React.useState<(string | null)[]>([null, null]);\n return (\n <MultiDateWrapper isError={isError}>\n <DatePickerMonth\n data-test-id=\"CT_DatePickerMonth_StartDate\"\n onChange={val => {\n onChange(val, date[1]);\n setDate([val, date[1]]);\n }}\n min={min}\n max={max}\n />\n <Box>-</Box>\n <DatePickerMonth\n data-test-id=\"CT_DatePickerMonth_EndDate\"\n onChange={val => {\n onChange(date[0], val);\n setDate([date[0], val]);\n }}\n min={min}\n max={max}\n />\n </MultiDateWrapper>\n );\n};\n\nMultiDatePickerMonth.defaultProps = {\n min: '2020-01-01',\n max: '2020-12-31',\n isError: false,\n};\n\nexport default MultiDatePickerMonth;\n","import type { ModalProps as ChakraModalProps } from '@chakra-ui/react';\nimport { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Text } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface DialogProps extends Omit<ChakraModalProps, 'children'> {\n title: string;\n content: React.ReactNode;\n footer: React.ReactNode;\n isModalOverlay?: boolean;\n width?: string;\n isOverlayClickable?: boolean;\n}\n\nconst Dialog: React.FC<DialogProps> = ({\n title,\n content,\n footer,\n isModalOverlay,\n width,\n isOverlayClickable,\n ...props\n}) => {\n return (\n <Modal {...props}>\n {isModalOverlay && <ModalOverlay pointerEvents={isOverlayClickable ? 'auto' : 'none'} />}\n\n <ModalContent bgColor=\"neutral.50\" fontFamily=\"Poppins\" width={width} minW={'400px'}>\n <ModalHeader bgColor=\"neutral.200\" py={2} px={4} borderTopRadius={'sm'}>\n <Text textStyle=\"text.lg\" fontWeight=\"normal\">\n {title}\n </Text>\n </ModalHeader>\n <ModalBody p={4} textStyle=\"text.md\">\n {content}\n </ModalBody>\n <ModalFooter bgColor=\"neutral.200\" p={4} borderBottomRadius={'sm'}>\n {footer}\n </ModalFooter>\n </ModalContent>\n </Modal>\n );\n};\n\nDialog.defaultProps = {\n isModalOverlay: true,\n width: '400px',\n isOverlayClickable: true,\n};\n\nexport default Dialog;\n","/* eslint-disable import/prefer-default-export */\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nimport type { EmptyStateProps } from './layout';\nimport BaseEmptyState from './layout';\n\nconst EmptyStateData: React.FC<EmptyStateProps> = ({\n title = 'Belum ada data',\n description = 'Jika data tersedia, akan tampil di sini.',\n icon = <Icon.ImgFolder size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStatePage: React.FC<EmptyStateProps> = ({\n title = 'Halaman tidak ditemukan',\n description = 'Halaman yang dituju mungkin\\n telah berubah atau dihapus.',\n icon = <Icon.Img404 size={110} />,\n buttonText = 'Kembali ke Home',\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} buttonText={buttonText} {...rest} />;\n};\n\nconst EmptyStateFilter: React.FC<EmptyStateProps> = ({\n title = 'Halaman filter tidak ditemukan',\n description = 'Coba ubah atau reset filter.',\n icon = <Icon.ImgNotFound size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStateSearch: React.FC<EmptyStateProps> = ({\n title = 'Pencarian tidak ditemukan',\n description = 'Keyword yang dicari tidak ditemukan.\\n Coba gunakan keyword lainnya.',\n icon = <Icon.ImgNotFound size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStateNoConnection: React.FC<EmptyStateProps> = ({\n title = 'Koneksi terputus',\n description = 'Silakan cek koneksi internet Anda\\n dan coba lagi.',\n icon = <Icon.ImgLostConnection size={110} />,\n buttonText,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} buttonText={buttonText} />;\n};\n\nconst EmptyStateMaintenance: React.FC<EmptyStateProps> = ({\n title = 'Sistem dalam perbaikan',\n description = 'Silakan cek kembali nanti.',\n icon = <Icon.ImgWarning size={110} />,\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} />;\n};\n\nconst EmptyStateNotAuthorize: React.FC<EmptyStateProps> = ({\n title = 'Halaman tidak dapat diakses',\n description = 'Anda tidak memiliki izin untuk mengakses halaman ini.',\n icon = <Icon.ImgWarning size={110} />,\n buttonText = 'Kembali ke Home',\n ...rest\n}) => {\n return <BaseEmptyState title={title} description={description} icon={icon} {...rest} buttonText={buttonText} />;\n};\n\ntype EmptyStateComponent = React.FC<EmptyStateProps> & {\n Data: React.FC<EmptyStateProps>;\n Page: React.FC<EmptyStateProps>;\n Filter: React.FC<EmptyStateProps>;\n Search: React.FC<EmptyStateProps>;\n NoConnection: React.FC<EmptyStateProps>;\n Maintenance: React.FC<EmptyStateProps>;\n NotAuthorize: React.FC<EmptyStateProps>;\n};\n\nconst EmptyState = BaseEmptyState as EmptyStateComponent;\n\nEmptyState.Data = EmptyStateData;\nEmptyState.Page = EmptyStatePage;\nEmptyState.Filter = EmptyStateFilter;\nEmptyState.Search = EmptyStateSearch;\nEmptyState.NoConnection = EmptyStateNoConnection;\nEmptyState.Maintenance = EmptyStateMaintenance;\nEmptyState.NotAuthorize = EmptyStateNotAuthorize;\n\nexport default EmptyState;\n","/* eslint-disable react/no-unused-prop-types */\n/* eslint-disable react/require-default-props */\nimport { Box, Button, Flex, Text, VStack } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface EmptyStateProps {\n icon?: React.ReactNode;\n title?: string;\n description?: string;\n buttonText?: string;\n onClick?: () => void;\n}\n\nconst EmptyState = (props: EmptyStateProps) => {\n const { icon, title, description, buttonText, onClick } = props;\n\n const handleClick = () => {\n if (onClick) {\n onClick();\n }\n };\n\n return (\n <Flex align=\"center\" justify=\"center\">\n <VStack textAlign=\"center\">\n {icon}\n\n <VStack spacing={2} textAlign=\"center\" mt={3}>\n <Text textStyle=\"text.lg\" fontWeight=\"bold\">\n {title}\n </Text>\n <Text textStyle=\"text.md\" color=\"black.medium\" whiteSpace=\"pre-wrap\">\n {description}\n </Text>\n </VStack>\n\n {buttonText && (\n <Box mt={3}>\n <Button size=\"lg\" data-test-id=\"CT_component-action-button\" onClick={handleClick}>\n {buttonText}\n </Button>\n </Box>\n )}\n </VStack>\n </Flex>\n );\n};\n\nexport default EmptyState;\n","import type { BadgeProps, BoxProps } from '@chakra-ui/react';\nimport { Flex, HStack } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport type { HeaderDataProps } from '../types';\nimport { Logo } from './logo';\nimport { Profile } from './profile';\nimport SwitchMode from './switch-mode';\nimport { Version } from './version';\n\nexport type HeaderProps = BoxProps & {\n brandColor?: BoxProps['bgColor'];\n data?: HeaderDataProps;\n onLogout?: () => void;\n onOpenModalRelease?: () => void;\n hideSwitchMode?: boolean;\n mainLogo?: string;\n mainLogoSize?: BoxProps['h'];\n centerLogo?: string;\n centerLogoSize?: BoxProps['h'];\n hideEnv?: boolean;\n urlLogo?: string;\n profile?: React.ReactNode;\n versionStyle?: BadgeProps;\n};\n\nexport const Header: React.FC<HeaderProps> = ({\n brandColor,\n data,\n onLogout,\n onOpenModalRelease,\n hideSwitchMode,\n mainLogo,\n centerLogo,\n mainLogoSize,\n centerLogoSize = 4,\n hideEnv = false,\n urlLogo,\n children,\n profile,\n bg = 'white',\n versionStyle,\n ...props\n}) => (\n <Flex minH={15} bg={bg} shadow=\"raised\" px={6} py={3} alignItems=\"center\" {...props}>\n <Flex\n h=\"auto\"\n w=\"full\"\n alignItems=\"center\"\n justifyContent={!mainLogo ? 'flex-end' : 'space-between'}\n pos=\"relative\"\n >\n {mainLogo && (\n <Flex alignItems=\"center\">\n <Logo url={urlLogo} imageUrl={mainLogo} height={mainLogoSize} />\n {children && children}\n </Flex>\n )}\n\n {centerLogo && (\n <HStack w=\"fit-content\" spacing={2} alignItems=\"center\" pos=\"absolute\" left=\"50%\" transform=\"translate(-50%,0)\">\n <Logo url={urlLogo} imageUrl={centerLogo} height={centerLogoSize} />\n <Version\n hideEnv={hideEnv}\n version={data?.version}\n environment={data?.environment}\n onOpenModalRelease={onOpenModalRelease}\n versionStyle={versionStyle}\n />\n </HStack>\n )}\n\n {profile || (\n <Flex alignItems=\"center\">\n {!hideSwitchMode && <SwitchMode />}\n <Profile color={props.color} brandColor={brandColor} data={data} onLogout={onLogout} />\n </Flex>\n )}\n </Flex>\n </Flex>\n);\n\nHeader.defaultProps = {\n brandColor: undefined,\n data: undefined,\n onLogout: undefined,\n onOpenModalRelease: undefined,\n hideSwitchMode: true,\n mainLogo: undefined,\n mainLogoSize: undefined,\n centerLogo: undefined,\n centerLogoSize: undefined,\n hideEnv: false,\n urlLogo: undefined,\n profile: undefined,\n versionStyle: undefined,\n};\n\nexport default Header;\n","import type { BoxProps } from '@chakra-ui/react';\nimport { Box, Image, useColorModeValue } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface LogoProps {\n url?: string;\n imageUrl: string;\n height?: BoxProps['h'];\n}\nexport const Logo: React.FC<LogoProps> = ({ url, imageUrl, height }) => {\n if (url)\n return (\n <Box as=\"a\" href={url} cursor=\"pointer\" target=\"_self\">\n <Image w=\"initial\" h={height ?? 9} maxH={height ?? 9} src={imageUrl} alt={imageUrl} objectFit=\"contain\" />\n </Box>\n );\n\n return <Image w=\"initial\" h={height ?? 9} maxH={height ?? 9} src={imageUrl} alt={imageUrl} objectFit=\"contain\" />;\n};\n\nexport const XMSLogo = () => (\n <Image\n height={8}\n src={useColorModeValue('https://assets.voila.id/xms/logo-xms.jpg', 'https://assets.voila.id/xms/logo-xms-dark.png')}\n />\n);\n\nexport const VoilaLogo = () => (\n <Image\n src=\"https://assets.voila.id/xms/logo-voila-black.png?v=1\"\n filter={useColorModeValue('none', 'invert(1)')}\n maxW={24}\n />\n);\n\nLogo.defaultProps = {\n url: undefined,\n height: undefined,\n};\n","import type { BoxProps, HTMLChakraProps } from '@chakra-ui/react';\nimport {\n Avatar,\n Box,\n Flex,\n HStack,\n Popover,\n PopoverArrow,\n PopoverBody,\n PopoverContent,\n PopoverTrigger,\n Text,\n useDisclosure,\n VStack,\n} from '@chakra-ui/react';\nimport * as React from 'react';\nimport { FiPower } from 'react-icons/fi';\n\nimport type { BadgeProps } from '../../badge';\nimport { Badge } from '../../badge';\nimport { NavItem } from '../../nav-item';\nimport { Tooltip } from '../../tooltip';\nimport type { HeaderDataProps } from '../types';\n\nexport interface ProfileProps extends BoxProps {\n brandColor?: BoxProps['bgColor'];\n data?: HeaderDataProps;\n onLogout?: () => void;\n badgeStyle?: BadgeProps;\n officeContainer?: Omit<HTMLChakraProps<'div'>, 'color'>;\n}\n\nexport const Profile = ({\n color,\n brandColor,\n data,\n badgeStyle,\n children,\n onLogout,\n officeContainer,\n ...props\n}: ProfileProps) => {\n const { isOpen, onToggle, onClose } = useDisclosure();\n\n return (\n <Popover placement=\"bottom-end\" isOpen={isOpen} onClose={onClose}>\n <Box\n data-test-id=\"CTA_Navbar_Profile_wrapper\"\n as=\"button\"\n cursor=\"pointer\"\n w=\"fit-content\"\n _hover={{\n textDecor: 'none',\n '.catalyst-header-avatar': {\n border: '2px solid',\n borderColor: 'primary.100',\n },\n }}\n onClick={onToggle}\n color={color}\n {...props}\n >\n <HStack>\n <VStack alignItems=\"flex-end\" spacing=\"0\" ml=\"2\" color={color}>\n <Text textStyle=\"text.xs\" mb=\"1\">\n {data?.email}\n </Text>\n <Flex alignItems=\"center\">\n {data?.userRole && (\n <>\n <Text textStyle=\"text.xs\">{data?.userRole || 'user'}</Text>\n {!!data.office?.length && (\n <Box\n className=\"catalyst_header-profile-divider\"\n h=\"3\"\n mx=\"1\"\n borderLeft=\"1px solid\"\n borderColor=\"neutral.400\"\n />\n )}\n </>\n )}\n {typeof data?.office === 'object' ? (\n <Flex align=\"center\" justify=\"center\">\n <Text textStyle=\"text.xs\">{data.office[0]}</Text>\n {data.office.length > 1 && (\n <Tooltip\n isInteractive\n hasArrow\n p=\"2\"\n label={\n <Box>\n <Text>Akses Office:</Text>\n <Text>{data.office.sort().join(', ')}</Text>\n </Box>\n }\n textAlign=\"left\"\n placement=\"bottom-end\"\n cursor=\"text\"\n portal\n popoverProps={{\n offset: [10, 8],\n }}\n width={300}\n {...officeContainer}\n >\n <Box ml={1}>\n <Badge\n rounded=\"full\"\n variant=\"neutral-light\"\n boxSize=\"5\"\n justifyContent=\"center\"\n p=\"0.5\"\n {...badgeStyle}\n >\n {data.office.length - 1}+\n </Badge>\n </Box>\n </Tooltip>\n )}\n </Flex>\n ) : (\n <Text textStyle=\"text.xs\">{data?.office || 'office'}</Text>\n )}\n </Flex>\n </VStack>\n <PopoverTrigger>\n <Box border=\"2px solid\" borderColor=\"transparent\" className=\"catalyst-header-avatar\" rounded=\"full\">\n <Avatar size=\"sm\" bg={brandColor} color=\"white\" name={data?.name ?? data?.email} />\n </Box>\n </PopoverTrigger>\n </HStack>\n </Box>\n {children || (\n <PopoverContent bg=\"white\" maxW={200}>\n <PopoverArrow bg=\"white\" />\n <PopoverBody py=\"1\" px=\"0\">\n <NavItem data-test-id=\"CTA_Navbar_logout-button\" onClick={onLogout} rounded=\"none\" px=\"4\">\n <Box display=\"flex\" alignItems=\"center\">\n <FiPower />\n <Text ml=\"2\">Logout</Text>\n </Box>\n </NavItem>\n </PopoverBody>\n </PopoverContent>\n )}\n </Popover>\n );\n};\n\nProfile.defaultProps = {\n brandColor: 'primary.500',\n data: undefined,\n onLogout: undefined,\n badgeStyle: undefined,\n};\n\nexport default Profile;\n","import type { LinkProps } from '@chakra-ui/react';\nimport { Link } from '@chakra-ui/react';\nimport { cx } from '@chakra-ui/shared-utils';\nimport type { PropsWithChildren } from 'react';\nimport * as React from 'react';\n\nexport interface NavItemProps extends LinkProps, PropsWithChildren {\n isActive?: boolean;\n isChild?: boolean;\n isDisabled?: boolean;\n 'data-test-id'?: string;\n}\n\nexport const NavItem = ({ children, isActive, isChild, isDisabled, ...props }: NavItemProps) => {\n return (\n <Link\n data-test-id={props['data-test-id']}\n opacity={isDisabled ? '0.3' : 'initial'}\n cursor={isDisabled ? 'not-allowed' : 'pointer'}\n h=\"7.5\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n w=\"full\"\n p=\"2\"\n pl={isChild ? '7' : '2'}\n color={isActive ? 'primary.500' : 'black.high'}\n bg={isActive ? 'primary.100' : 'white'}\n className={cx('catalyst-nav-item', props.className)}\n textStyle=\"text.xs\"\n fontWeight={isActive ? 'semibold' : 'regular'}\n rounded=\"sm\"\n _active={\n isDisabled\n ? {}\n : {\n bg: 'primary.100',\n }\n }\n _hover={\n isDisabled\n ? {}\n : {\n textDecoration: 'none',\n bg: isActive ? 'primary.100' : 'primary.50',\n }\n }\n {...props}\n onClick={isDisabled ? undefined : props.onClick}\n >\n {children}\n </Link>\n );\n};\n\nNavItem.displayName = 'NavItem';\nNavItem.defaultProps = {\n isActive: false,\n isChild: false,\n isDisabled: false,\n 'data-test-id': undefined,\n};\n\nexport default NavItem;\n","/* eslint-disable react/destructuring-assignment */\nimport type {\n ColorProps,\n PopoverContentProps,\n PopoverProps,\n TooltipProps as ChakraTooltipProps,\n} from '@chakra-ui/react';\nimport {\n Popover,\n PopoverArrow,\n PopoverBody,\n PopoverContent,\n PopoverTrigger,\n Portal,\n Tooltip as ChakraTooltip,\n} from '@chakra-ui/react';\n\nexport interface BaseTooltipProps extends Omit<ChakraTooltipProps, 'color'> {\n isInteractive?: false;\n color?: ColorProps['color'];\n}\n\nexport interface InteractiveTooltipProps\n extends PopoverContentProps,\n Pick<ChakraTooltipProps, 'hasArrow' | 'placement' | 'children' | 'label'> {\n isInteractive?: true;\n portal?: boolean;\n popoverProps?: PopoverProps;\n}\n\nexport type TooltipProps = BaseTooltipProps | InteractiveTooltipProps;\n\nexport const Tooltip = (props: TooltipProps) => {\n const {\n children,\n bg = 'neutral.700',\n textStyle = 'text.sm',\n color = 'white',\n width,\n borderRadius = 4,\n fontWeight = '400',\n } = props;\n\n const content = ({ onClose }: { onClose: () => void }) => (\n <PopoverContent\n data-test-id=\"\"\n border=\"none\"\n bg={bg}\n textStyle={textStyle}\n width={width}\n placeItems=\"center\"\n borderRadius={borderRadius}\n onClick={e => {\n e.stopPropagation();\n onClose();\n }}\n >\n {props.hasArrow && <PopoverArrow color={color} bg={bg} shadow=\"none\" />}\n <PopoverBody color={color} {...props} fontWeight={fontWeight}>\n {props.label}\n </PopoverBody>\n </PopoverContent>\n );\n\n return props.isInteractive === true ? (\n <Popover trigger=\"hover\" placement={props.placement} {...props.popoverProps}>\n {({ onClose }) => (\n <>\n <PopoverTrigger>{children}</PopoverTrigger>\n {props.portal ? <Portal>{content({ onClose })}</Portal> : content({ onClose })}\n </>\n )}\n </Popover>\n ) : (\n <ChakraTooltip {...props}>{children}</ChakraTooltip>\n );\n};\n\nexport default Tooltip;\n","import { Box, useColorMode } from '@chakra-ui/react';\nimport * as React from 'react';\nimport { FiMoon, FiSun } from 'react-icons/fi';\n\nconst SwitchMode: React.FC = () => {\n const { colorMode, toggleColorMode } = useColorMode();\n return (\n <Box data-test-id=\"rhYuTDCiWkFqr96upiEEh\" mx={5} onClick={toggleColorMode} cursor=\"pointer\">\n {colorMode === 'light' ? <FiMoon size={20} /> : <FiSun size={20} />}\n </Box>\n );\n};\n\nexport default SwitchMode;\n","/* eslint-disable react-hooks/rules-of-hooks */\nimport { Box } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport type { BadgeProps } from '../../badge';\nimport { Badge } from '../../badge';\nimport type { Environment } from '../types';\nimport { environmentName } from '../utils/formatter';\n\nexport type VersionProps = {\n hideEnv?: boolean;\n environment?: Environment;\n version?: React.ReactNode;\n versionStyle?: BadgeProps;\n onOpenModalRelease?: () => void;\n};\n\nexport const Version: React.FC<VersionProps> = ({\n hideEnv,\n version,\n environment,\n onOpenModalRelease,\n versionStyle,\n}) => (\n <>\n {typeof version === 'string' ? (\n <Badge\n data-test-id=\"CTA_header-version-badge\"\n fontSize=\"8px\"\n variant=\"neutral-light\"\n px=\"2\"\n py=\"px\"\n onClick={onOpenModalRelease}\n cursor={onOpenModalRelease ? 'pointer' : 'auto'}\n {...versionStyle}\n >\n {version}\n </Badge>\n ) : (\n version\n )}\n\n {!hideEnv && environmentName(environment) !== null && version && (\n <Box\n background=\"primary.50\"\n color=\"primary.500\"\n fontSize=\"text.xs\"\n py={1}\n px={2.5}\n fontWeight=\"bold\"\n borderRadius=\"md\"\n >\n {environmentName(environment)}\n </Box>\n )}\n </>\n);\n\nVersion.defaultProps = {\n hideEnv: false,\n environment: undefined,\n version: undefined,\n onOpenModalRelease: undefined,\n versionStyle: undefined,\n};\n\nexport default Version;\n","import type { Environment } from '../types';\n\n// eslint-disable-next-line import/prefer-default-export\nexport function environmentName(env?: Environment) {\n switch (env) {\n case 'DEVELOPMENT':\n return 'Dev';\n case 'STAGING':\n return 'Staging';\n default:\n return null;\n }\n}\n","import { Flex, type FlexProps } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface NavbarProps extends FlexProps {}\n\nexport const Navbar = ({ bg = 'white', children, ...props }: NavbarProps) => {\n return (\n <Flex\n minH=\"15\"\n h=\"15\"\n w=\"full\"\n bg={bg}\n shadow=\"raised\"\n px={6}\n py={2}\n alignItems=\"center\"\n position=\"relative\"\n justifyContent=\"space-between\"\n {...props}\n >\n {children}\n </Flex>\n );\n};\n\nNavbar.displayName = 'Navbar';\n\nexport default Navbar;\n","export { Icon, IconProps, Image, ImageProps } from '@chakra-ui/react';\n","export {\n Box,\n BoxProps,\n Center,\n Container,\n ContainerProps,\n Divider,\n DividerProps,\n Flex,\n FlexProps,\n Grid,\n GridItem,\n GridItemProps,\n GridProps,\n HStack,\n SimpleGrid,\n Spacer,\n Stack,\n StackProps,\n VStack,\n Wrap,\n WrapItem,\n WrapItemProps,\n WrapProps,\n} from '@chakra-ui/react';\n","export { List, ListIcon, ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from '@chakra-ui/react';\n","import { ChevronLeftIcon } from '@chakra-ui/icons';\nimport { IconButton } from '@chakra-ui/react';\nimport React from 'react';\n\ninterface ModalBackButtonProps {\n onClick: () => void;\n}\n\nconst ModalBackButton = ({ onClick }: ModalBackButtonProps) => {\n return (\n <IconButton\n icon={<ChevronLeftIcon w=\"4.5\" h=\"4.5\" />}\n size=\"sm\"\n minW=\"6\"\n h=\"6\"\n rounded=\"sm\"\n variant=\"solid\"\n bg=\"white\"\n onClick={onClick}\n _hover={{ bg: 'white' }}\n color=\"black\"\n aria-label=\"Back\"\n data-test-id=\"modal-back-button\"\n />\n );\n};\n\nexport default ModalBackButton;\n","export { default as ModalBackButton } from './components/modal-back-button';\n// export { default as ModalBody } from './components/modal-body';\n// export { default as ModalCloseButton } from './components/modal-close-button';\n// export { default as ModalFooter } from './components/modal-footer';\n// export { default as ModalHeader } from './components/modal-header';\nexport {\n AlertDialog,\n ModalBody as AlertDialogBody,\n ModalCloseButton as AlertDialogCloseButton,\n AlertDialogContent,\n ModalFooter as AlertDialogFooter,\n ModalHeader as AlertDialogHeader,\n ModalOverlay as AlertDialogOverlay,\n AlertDialogProps,\n Drawer,\n ModalBody as DrawerBody,\n ModalCloseButton as DrawerCloseButton,\n DrawerContent,\n DrawerContentProps,\n ModalFooter as DrawerFooter,\n ModalHeader as DrawerHeader,\n ModalOverlay as DrawerOverlay,\n DrawerProps,\n Modal,\n ModalBody,\n ModalBodyProps,\n ModalCloseButton,\n ModalContent,\n ModalContentProps,\n ModalContextProvider,\n ModalFocusScope,\n ModalFooter,\n ModalFooterProps,\n ModalHeader,\n ModalHeaderProps,\n ModalOverlay,\n ModalOverlayProps,\n ModalProps,\n useDrawerContext,\n useModal,\n useModalContext,\n UseModalProps,\n UseModalReturn,\n useModalStyles,\n} from '@chakra-ui/react';\n","/* eslint-disable react-hooks/rules-of-hooks */\n\nimport type { As, BoxProps } from '@chakra-ui/react';\nimport {\n Box,\n Button,\n Flex,\n Link,\n Popover,\n PopoverContent,\n PopoverTrigger,\n Portal,\n Text,\n useColorModeValue,\n} from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport { css } from '@emotion/react';\nimport * as React from 'react';\n\nimport type { NavigationLink } from '../types';\nimport { mappingIcon } from './mapping-icon';\n\nexport type NavigationProps = BoxProps & {\n navigations?: NavigationLink[];\n activePath: string;\n as?: As;\n host?: string;\n};\n\nconst Navigation: React.FC<NavigationProps> = ({ navigations, activePath, as, host, ...props }) => {\n return (\n <Box borderRadius=\"md\" overflowX=\"auto\" {...props}>\n <Flex\n bg=\"white\"\n w=\"full\"\n rounded={'md'}\n flexWrap=\"wrap\"\n alignItems=\"center\"\n shadow=\"raised\"\n gap={1}\n px={4}\n py={2}\n >\n {navigations?.map(navigation => {\n const isActive = activePath.startsWith(navigation.navLink || '');\n const activeBg = isActive ? 'primary.500' : undefined;\n return (\n <Popover key={navigation.title} trigger=\"hover\" placement=\"bottom-start\">\n {({ isOpen }) => (\n <>\n <PopoverTrigger>\n <Button\n h={7.5}\n p={2}\n size=\"sm\"\n variant=\"ghost\"\n data-test-id={`CT_component_navigation_button-${navigation.title}${isActive ? '-active' : ''}`}\n _hover={{\n backgroundColor: !isActive ? 'neutral.400' : activeBg,\n }}\n backgroundColor={isOpen && !isActive ? 'neutral.400' : activeBg}\n color={isActive ? 'primary.50' : 'black.high'}\n leftIcon={mappingIcon.get(navigation.title)}\n rightIcon={<Icon.ChevronDown size={4} color=\"inherit\" />}\n >\n {navigation.title}\n </Button>\n </PopoverTrigger>\n {navigation.children && (\n <Portal>\n <Box zIndex=\"popover\">\n <PopoverContent\n key={navigation.title}\n bg={useColorModeValue('white', 'ebony-clay.800')}\n maxW={250}\n border=\"none\"\n borderRadius=\"md\"\n boxShadow=\"0 5px 25px rgb(0 0 0 / 10%)\"\n >\n {navigation.children.map(({ title, navHost, navLink }) => {\n const link = navHost ? `${navHost}${navLink}` : navLink;\n const isLocalLink = host === navHost;\n const isActiveSub = activePath === navLink;\n return (\n <Link\n as={isLocalLink ? as : undefined}\n key={title}\n href={link}\n _hover={{\n textDecoration: 'none',\n }}\n >\n <Box\n display=\"flex\"\n position=\"relative\"\n alignItems=\"center\"\n cursor=\"pointer\"\n transition=\"padding 0.35s ease 0s\"\n _hover={{\n backgroundColor: useColorModeValue('dove-gray.50', 'mirage.900'),\n color: useColorModeValue('primary.500', 'dove-gray.600'),\n px: 5,\n py: 4,\n _first: { borderTopRadius: 'md' },\n _last: { borderBottomRadius: 'md' },\n }}\n color={isActiveSub ? 'primary.500' : 'inherit'}\n css={css`\n border-spacing: 4px;\n `}\n px={6}\n py={4}\n >\n {mappingIcon.get(navigation.title)}\n <Text fontSize=\"text.sm\" ml={3}>\n {title}\n </Text>\n {isActiveSub && (\n <Box\n width={0.5}\n height={8}\n position=\"absolute\"\n bg=\"primary.500\"\n right={0}\n zIndex=\"popover\"\n />\n )}\n </Box>\n </Link>\n );\n })}\n </PopoverContent>\n </Box>\n </Portal>\n )}\n </>\n )}\n </Popover>\n );\n })}\n </Flex>\n </Box>\n );\n};\n\nNavigation.defaultProps = {\n navigations: undefined,\n as: 'a',\n host: undefined,\n};\n\nexport default Navigation;\n","/* eslint-disable import/prefer-default-export */\nimport * as Icon from '@ctlyst.id/internal-icon';\n\nexport const mappingIcon = new Map([\n ['Order', <Icon.ShoppingBag size={4} key=\"order\" color=\"inherit\" />],\n ['Fulfillment', <Icon.ShoppingCart size={4} key=\"fullfilment\" color=\"inherit\" />],\n ['Transfer Stock', <Icon.Repeat size={4} key=\"transfer-stock\" color=\"inherit\" />],\n ['Stock', <Icon.Box size={4} key=\"stock\" color=\"inherit\" />],\n ['Product Database', <Icon.Layers size={4} key=\"product-database\" color=\"inherit\" />],\n ['Purchasing', <Icon.DollarSign size={4} key=\"purchasing\" color=\"inherit\" />],\n ['Reseller', <Icon.Users size={4} key=\"reseller\" color=\"inherit\" />],\n ['Retur', <Icon.RotateCcw size={4} key=\"retur\" color=\"inherit\" />],\n ['Other', <Icon.Settings size={4} key=\"other\" color=\"inherit\" />],\n ['Content', <Icon.Layout size={4} key=\"content\" color=\"inherit\" />],\n ['Customer', <Icon.HelpCircle size={4} key=\"content\" color=\"inherit\" />],\n ['Voucher', <Icon.Gift size={4} key=\"content\" color=\"inherit\" />],\n]);\n","/* eslint-disable react-hooks/rules-of-hooks */\nimport type { BoxProps } from '@chakra-ui/react';\nimport { Box, Button, Flex, Link, Popover, PopoverContent, PopoverTrigger, Text } from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\nimport type { Menu, SubMenu } from '../types';\n\nexport type NavigationBarProps = BoxProps & {\n navigations?: Menu[];\n isFetched: boolean;\n pathname: string;\n asPath: string;\n mappingIcon: Map<string, JSX.Element>;\n};\n\nconst NavigationBar: React.FC<NavigationBarProps> = ({\n navigations,\n isFetched,\n pathname,\n asPath,\n mappingIcon,\n ...props\n}) => {\n const urlMenu = (subMenu: SubMenu) => {\n if (window.location.hostname === 'localhost') {\n return subMenu.navLink;\n }\n return subMenu.navHost + subMenu.navLink;\n };\n\n return (\n <Box hidden={isFetched && navigations === undefined} data-test-id=\"CT_component_navigation_cms\" {...props}>\n <Flex\n bg=\"white\"\n w=\"full\"\n rounded={'md'}\n flexWrap=\"wrap\"\n alignItems=\"center\"\n shadow=\"raised\"\n gap={1}\n px={4}\n py={2}\n >\n {navigations?.map((item: Menu) => {\n const childMenu = item.children.filter(subMenu => asPath?.includes(subMenu.navLink));\n\n const isActive = pathname?.startsWith(childMenu[0]?.navLink);\n const activeBg = isActive ? 'primary.500' : undefined;\n\n return (\n <Popover isLazy key={item.id} trigger=\"hover\" placement=\"bottom-start\" openDelay={100} closeDelay={100}>\n {({ isOpen, onClose }) => (\n <>\n <PopoverTrigger>\n <Button\n h={7.5}\n p={2}\n size=\"sm\"\n variant=\"ghost\"\n data-test-id={`CT_component_navigation_button-${item.title}${isActive ? '-active' : ''}`}\n _hover={{\n backgroundColor: !isActive ? 'neutral.400' : activeBg,\n }}\n backgroundColor={isOpen && !isActive ? 'neutral.400' : activeBg}\n color={isActive ? 'primary.50' : 'black.high'}\n leftIcon={mappingIcon.get(item.title)}\n rightIcon={<Icon.ChevronDown size={4} color=\"inherit\" />}\n >\n {item.title}\n </Button>\n </PopoverTrigger>\n\n {item.children && (\n <PopoverContent bg=\"white\" boxShadow=\"raised\" borderRadius=\"md\" py={1} width={240}>\n {item.children.map((subMenu: SubMenu) => (\n <Link\n key={subMenu.id}\n href={urlMenu(subMenu)}\n display=\"flex\"\n alignItems=\"center\"\n transition=\"padding 0.35s ease 0s\"\n _hover={{\n pl: 6,\n }}\n py={3}\n px={4}\n color={pathname?.startsWith(subMenu.navLink) ? 'primary.800' : 'black.high'}\n onClick={onClose}\n background={pathname?.startsWith(subMenu.navLink) ? 'primary.50' : 'transparent'}\n data-test-id={`CT_component_navigation_link-${item.id}`}\n >\n {mappingIcon.get(item.title)}\n <Text textStyle=\"text-sm\" ml={3}>\n {subMenu.title}\n </Text>\n </Link>\n ))}\n </PopoverContent>\n )}\n </>\n )}\n </Popover>\n );\n })}\n </Flex>\n </Box>\n );\n};\n\nNavigationBar.defaultProps = {\n navigations: undefined,\n};\n\nexport default NavigationBar;\n","import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon, ChevronRightIcon } from '@chakra-ui/icons';\nimport { Box, Text, useColorModeValue } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport PaginationButton from './pagination-button';\nimport PaginationButtonTrigger from './pagination-button-trigger';\n\nexport interface PaginationProps {\n /** Additional CSS classes to give to the pagination. */\n className?: string;\n /** The current page number. */\n current: number;\n /** Total number of pages. */\n total: number;\n /**\n * Callback to run when a page number is selected. You can use this to e.g.\n * run setState on your component's page state.\n */\n onSelect?: (page: number) => void;\n}\n\nconst Pagination: React.FC<PaginationProps> = ({ className, current, total, onSelect }) => {\n const btnColorDisabled = useColorModeValue('secondary.100', 'primary.500');\n const btnColor = useColorModeValue('primary.500', 'secondary.100');\n const disabledPrevious = current === 1;\n const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;\n const disabledNext = current === total;\n const nextButtonColor = disabledNext ? btnColorDisabled : btnColor;\n\n const handleSelectPage = (page: number) => {\n if (onSelect) {\n onSelect(page);\n }\n };\n\n const generatePages = (): (number | string)[] => {\n const maxButtons = 5;\n const pageButtons: (number | string)[] = [];\n\n let startPage: number;\n let endPage: number;\n\n if (maxButtons && maxButtons < total) {\n startPage = Math.max(Math.min(current - Math.floor(maxButtons / 2), total - maxButtons + 1), 1);\n endPage = startPage + maxButtons - 1;\n } else {\n startPage = 1;\n endPage = total;\n }\n\n // eslint-disable-next-line no-plusplus\n for (let page = startPage; page <= endPage; ++page) {\n pageButtons.push(page);\n }\n\n return pageButtons;\n };\n\n return (\n <Box className={className} display=\"inline-flex\" alignItems=\"center\">\n <Box mr={1}>\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={previousButtonColor}\n isDisabled={disabledPrevious}\n onClick={() => handleSelectPage(1)}\n visuallyHidden=\"First Page\"\n icon={<ArrowLeftIcon width={2} />}\n />\n </Box>\n <Box bg=\"neutral.300\" borderRadius=\"full\">\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={previousButtonColor}\n isDisabled={disabledPrevious}\n onClick={() => handleSelectPage(current - 1)}\n visuallyHidden=\"Previous Page\"\n icon={<ChevronLeftIcon />}\n />\n {generatePages().map(page => {\n return (\n <PaginationButton\n data-test-id=\"Pagination-Button\"\n key={page}\n isActive={page === current}\n onClick={() => (typeof page === 'number' ? handleSelectPage(page) : null)}\n >\n <Text scale={300} fontSize=\"text.sm\" lineHeight={18} fontWeight={500}>\n {page}\n </Text>\n </PaginationButton>\n );\n })}\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={nextButtonColor}\n isDisabled={disabledNext}\n onClick={() => handleSelectPage(current + 1)}\n visuallyHidden=\"Next Page\"\n icon={<ChevronRightIcon />}\n />\n </Box>\n <Box ml={1}>\n <PaginationButtonTrigger\n data-test-id=\"Pagination-Button\"\n color={nextButtonColor}\n isDisabled={disabledNext}\n onClick={() => handleSelectPage(total)}\n visuallyHidden=\"Last Page\"\n icon={<ArrowRightIcon width={2} />}\n />\n </Box>\n </Box>\n );\n};\n\nPagination.defaultProps = {\n className: undefined,\n onSelect: undefined,\n};\n\nPagination.displayName = 'Pagination';\n\nexport default Pagination;\n","import type { ButtonProps } from '@chakra-ui/react';\nimport { Button, forwardRef, useColorModeValue } from '@chakra-ui/react';\nimport React from 'react';\n\nexport interface PaginationButtonProps {\n isActive?: boolean;\n}\n\nconst PaginationButton = forwardRef<ButtonProps, 'button'>(({ className, style, isActive, children, ...rest }, ref) => {\n const btnBg = useColorModeValue('neutral.300', 'mirage.900');\n const btnColor = useColorModeValue('black.high', 'primary.300');\n const btnNotActiveBg = useColorModeValue('secondary.50', 'primary.500');\n const btnNotActiveColor = useColorModeValue('primary.500', 'white');\n return (\n <Button\n data-test-id=\"Pagination-Button\"\n ref={ref}\n className={className}\n style={style}\n borderRadius=\"full\"\n fontWeight=\"semibold\"\n m={0}\n px={3}\n py={2}\n h={8}\n minW=\"auto\"\n width={8}\n background={isActive ? 'primary.500' : btnBg}\n color={isActive ? 'white' : btnColor}\n _hover={\n !isActive\n ? {\n background: btnNotActiveBg,\n color: btnNotActiveColor,\n }\n : {}\n }\n _active={{\n background: 'primary.500',\n color: 'neutral.300',\n }}\n _disabled={{\n background: useColorModeValue('neutral.300', 'mirage.900'),\n color: 'neutral.600',\n pointerEvents: 'none',\n }}\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nPaginationButton.displayName = 'PaginationButton';\n\nPaginationButton.defaultProps = {\n isActive: undefined,\n};\n\nexport default PaginationButton;\n","import { VisuallyHidden } from '@chakra-ui/react';\nimport * as React from 'react';\n\nimport PaginationButton from './pagination-button';\n\ntype PaginationButtonTriggerProps = {\n color?: string;\n isDisabled?: boolean;\n onClick?: () => void;\n visuallyHidden?: string;\n icon?: React.ReactNode;\n};\n\nconst PaginationButtonTrigger: React.FC<PaginationButtonTriggerProps> = ({\n color,\n isDisabled,\n onClick,\n visuallyHidden,\n icon,\n}) => (\n <PaginationButton data-test-id=\"DLVCc_fBK35spHm5WxjcJ\" color={color} isDisabled={isDisabled} onClick={onClick}>\n <VisuallyHidden>{visuallyHidden}</VisuallyHidden>\n {icon}\n </PaginationButton>\n);\n\nPaginationButtonTrigger.defaultProps = {\n color: undefined,\n isDisabled: undefined,\n onClick: undefined,\n visuallyHidden: undefined,\n icon: undefined,\n};\n\nexport default PaginationButtonTrigger;\n","import type { TextProps } from '@chakra-ui/react';\nimport { Text } from '@chakra-ui/react';\nimport * as React from 'react';\n\nexport interface PaginationDetailProps extends TextProps {\n // Current page of pages\n page: number;\n /** Total limit of pages. */\n limit: number;\n // Length of data\n length: number;\n}\n\nconst PaginationDetail: React.FC<PaginationDetailProps> = ({\n page,\n limit,\n length,\n scale = 300,\n fontSize = 'xs',\n lineHeight = 18,\n ...rest\n}) => {\n return (\n <Text scale={scale} fontSize={fontSize} lineHeight={lineHeight} {...rest}>\n {`${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item`}\n </Text>\n );\n};\n\nexport default PaginationDetail;\n","import { Box, Select, Text, useColorModeValue } from '@chakra-ui/react';\nimport * as React from 'react';\nimport { FiChevronDown } from 'react-icons/fi';\n\nexport interface PaginationFilterProps<T> {\n /** Total limit of pages. */\n limit?: number;\n /** Label in front of select input */\n label?: string;\n /** Label items. */\n items: T[];\n /** The change handler for the select. */\n onChange: (changes: T) => void;\n}\n\nconst PaginationFilter: React.FC<PaginationFilterProps<number>> = ({\n limit,\n label = 'Baris per halaman:',\n items,\n onChange,\n ...rest\n}) => {\n const [value, setValue] = React.useState(limit);\n\n return (\n <Box display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Text fontSize=\"text.sm\" lineHeight={18} color={useColorModeValue('neutral.900', 'white')} {...rest}>\n {label}\n </Text>\n <Select\n textAlign=\"center\"\n size=\"xs\"\n outline=\"none\"\n border=\"none\"\n boxShadow=\"none\"\n width={18}\n icon={<FiChevronDown />}\n _focusVisible={{ boxShadow: 'none' }}\n onChange={e => {\n const numberValue = Number(e.target.value);\n onChange(numberValue);\n setValue(numberValue);\n }}\n value={value}\n >\n {items.map(item => {\n return (\n <option key={item} value={item}>\n {item}\n </option>\n );\n })}\n </Select>\n </Box>\n );\n};\n\nPaginationFilter.defaultProps = {\n limit: 10,\n label: undefined,\n};\n\nexport default PaginationFilter;\n","export {\n PinInput,\n PinInputContext,\n PinInputDescendantsProvider,\n PinInputField,\n PinInputFieldProps,\n PinInputProps,\n PinInputProvider,\n usePinInput,\n usePinInputContext,\n usePinInputField,\n UsePinInputFieldProps,\n UsePinInputProps,\n UsePinInputReturn,\n} from '@chakra-ui/react';\n","export {\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverArrowProps,\n PopoverBody,\n PopoverBodyProps,\n PopoverCloseButton,\n PopoverContent,\n PopoverContentProps,\n PopoverFooter,\n PopoverFooterProps,\n PopoverHeader,\n PopoverHeaderProps,\n PopoverProps,\n PopoverTrigger,\n Portal,\n PortalProps,\n} from '@chakra-ui/react';\n","export {\n Progress,\n ProgressFilledTrackProps,\n ProgressLabel,\n ProgressLabelProps,\n ProgressProps,\n ProgressTrackProps,\n useProgressStyles,\n} from '@chakra-ui/react';\n","/* eslint-disable no-nested-ternary */\nimport type { RadioProps as ChakraRadioProps } from '@chakra-ui/react';\nimport { Box, Radio as ChakraRadio, Text } from '@chakra-ui/react';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nexport interface RadioProps extends ChakraRadioProps, PropsWithChildren {\n isError?: boolean;\n helpText?: string;\n errorText?: string;\n}\n\nexport const Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }: RadioProps) => {\n const variant = isError ? 'errors' : 'unstyled';\n return (\n <Box>\n <Box display=\"flex\">\n <ChakraRadio variant={variant} {...rest} isDisabled={isDisabled}>\n {children && (\n <Text as=\"span\" display=\"block\" textStyle=\"text.sm\" color={isDisabled ? 'black.medium' : 'black.high'}>\n {children}\n </Text>\n )}\n </ChakraRadio>\n </Box>\n {isError && errorText ? (\n <Box mt=\"2\" ml=\"6\">\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"danger.500\">\n {errorText}\n </Text>\n </Box>\n ) : helpText ? (\n <Box mt=\"2\" ml=\"6\">\n <Text as=\"span\" display=\"block\" textStyle=\"text.xs\" color=\"black.medium\">\n {helpText}\n </Text>\n </Box>\n ) : null}\n </Box>\n );\n};\n\nRadio.displayName = 'Radio';\nRadio.defaultProps = {\n isError: false,\n helpText: undefined,\n errorText: undefined,\n};\n\nexport default Radio;\n","/* eslint-disable no-nested-ternary */\nimport type { RadioGroupProps } from '@chakra-ui/react';\nimport { Box, RadioGroup as ChakraRadioGroup, Stack } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { FieldProps } from '../../field';\nimport { Field } from '../../field';\n\nexport interface RadioGroupComponentProps extends FieldProps, RadioGroupProps {\n label: string;\n helpText?: string;\n isError?: boolean;\n errorMessage?: string;\n}\n\nexport const RadioGroup = ({\n children,\n label,\n helpText,\n isError,\n errorMessage,\n ...props\n}: RadioGroupComponentProps) => {\n return (\n <Field {...props} label={label} leftHelperText={helpText} isError={isError} errorMessage={errorMessage}>\n <Box mt=\"2\" mb=\"1\">\n <ChakraRadioGroup {...props}>\n <Stack spacing={[1, '16px']} direction={['column', 'row']}>\n {children}\n </Stack>\n </ChakraRadioGroup>\n </Box>\n </Field>\n );\n};\nRadioGroup.displayName = 'RadioGroup';\nRadioGroup.defaultProps = {\n helpText: '',\n isError: false,\n errorMessage: '',\n};\n\nexport default RadioGroup;\n","export * from './components/radio';\nexport * from './components/radio-group';\nexport {\n RadioGroupContext,\n useRadio,\n useRadioGroup,\n useRadioGroupContext,\n UseRadioGroupReturn,\n UseRadioProps,\n UseRadioReturn,\n} from '@chakra-ui/react';\n","import { Grid } from '@chakra-ui/react';\nimport { Rating as RatingIcon } from '@ctlyst.id/internal-icon';\nimport React from 'react';\n\ntype PropsValue = 0 | 1 | 2 | 3 | 4 | 5;\n\nexport interface RatingProps {\n value: PropsValue;\n}\n\nconst Rating = ({ value }: RatingProps) => {\n return (\n <Grid gap={'4px'} display=\"flex\">\n {[...Array(5)].map((_, i) => (\n <RatingIcon color={i < value ? '#FFA230' : '#E0E0E0'} size={24} />\n ))}\n </Grid>\n );\n};\n\nexport default Rating;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/require-default-props */\nimport { Badge, Center, Flex } from '@chakra-ui/react';\nimport { useColorMode } from '@chakra-ui/system';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport React from 'react';\nimport type {\n ClearIndicatorProps,\n DropdownIndicatorProps,\n GroupBase,\n MultiValueProps,\n MultiValueRemoveProps,\n Props as ReactSelectProps,\n} from 'react-select';\nimport ReactSelect, { components as componentRS } from 'react-select';\n\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectProps<\n Option = unknown,\n IsMulti extends boolean = boolean,\n Group extends GroupBase<Option> = GroupBase<Option>,\n> = ReactSelectProps<Option, IsMulti, Group> & ExtendedSelectProps;\n\nexport function DropdownIndicator<OptionType>(props: DropdownIndicatorProps<OptionType>) {\n return (\n <componentRS.DropdownIndicator {...props}>\n <Icon.ChevronDown size={4} color=\"neutral.400\" />\n </componentRS.DropdownIndicator>\n );\n}\n\nexport function ClearIndicator<OptionType, Group extends GroupBase<OptionType>, IsMulti extends boolean = false>(\n props: ClearIndicatorProps<OptionType, IsMulti, Group>\n) {\n const { hasValue } = props;\n\n return (\n <componentRS.ClearIndicator {...props}>\n <Icon.Close size={4} color={hasValue ? 'black.medium' : 'neutral.400'} />\n </componentRS.ClearIndicator>\n );\n}\n\nexport function MultiValue(props: MultiValueProps<any>) {\n return (\n <componentRS.MultiValue {...props}>\n <Badge pr={0} variant=\"neutral-light\">\n {props?.data.label}\n </Badge>\n </componentRS.MultiValue>\n );\n}\n\nexport function MultiValueRemove(props: MultiValueRemoveProps<any>) {\n return (\n <componentRS.MultiValueRemove {...props}>\n <Flex align=\"center\" justify=\"center\">\n <Icon.Close size={2.5} color=\"inherit\" />\n </Flex>\n </componentRS.MultiValueRemove>\n );\n}\n\nexport function NoOptionsMessage(props: any) {\n return (\n <Center textStyle=\"text.xs\" py=\"1.5\" color={'black.medium'}>\n {props?.options.length === 0 ? 'Opsi tidak tersedia' : 'Hasil tidak ditemukan'}\n </Center>\n );\n}\n\nfunction Select<OptionType, Group extends GroupBase<OptionType>, IsMulti extends boolean = false>({\n styles,\n isError = false,\n ...rest\n}: SelectProps<OptionType, IsMulti, Group>) {\n const { colorMode } = useColorMode();\n const { components, value, onChange } = rest;\n\n return (\n <ReactSelect<OptionType, IsMulti, Group>\n data-test-id=\"\"\n classNamePrefix=\"react-select\"\n components={{\n DropdownIndicator,\n ClearIndicator,\n MultiValue,\n MultiValueRemove,\n NoOptionsMessage,\n ...components,\n }}\n value={value}\n maxMenuHeight={320}\n onChange={onChange}\n styles={{ ...selectStyles(colorMode, isError), ...styles }}\n theme={themeSelect}\n {...rest}\n />\n );\n}\n\nexport default Select;\n","import { theme } from '@chakra-ui/react';\n\nconst shadows = {\n ...theme.shadows,\n raised: '0px 4px 20px rgba(0, 0, 0, 0.05)',\n};\n\nexport default shadows;\n","import { theme } from '@chakra-ui/react';\r\n\r\nconst sizes = {\r\n ...theme.sizes,\r\n 4.5: '1.125rem',\r\n 9.5: '2.375rem',\r\n 18: '4.5rem',\r\n 22: '5.5rem',\r\n 26: '6.5rem',\r\n 30: '7.5rem',\r\n};\r\n\r\nexport default sizes;\r\n","import { theme } from '@chakra-ui/react';\r\n\r\nconst spacing = {\r\n ...theme.space,\r\n 4.5: '1.125rem',\r\n 9.5: '2.375rem',\r\n 18: '4.5rem',\r\n 22: '5.5rem',\r\n 26: '6.5rem',\r\n 30: '7.5rem',\r\n};\r\n\r\nexport default spacing;\r\n","const fonts = {\r\n heading: `'Poppins', sans-serif`,\r\n body: `'Poppins', sans-serif`,\r\n};\r\n\r\nconst fontWeights = {\r\n hairline: 100,\r\n thin: 200,\r\n light: 300,\r\n normal: 400,\r\n medium: 500,\r\n semibold: 600,\r\n bold: 700,\r\n extrabold: 800,\r\n black: 900,\r\n};\r\n\r\nconst lineHeights = {\r\n normal: 'normal',\r\n none: 1,\r\n shorter: 1.25,\r\n short: 1.375,\r\n base: 1.5,\r\n tall: 1.625,\r\n 64: '4rem', // 64px\r\n 56: '3.5rem', // 56px\r\n 48: '3rem', // 48px\r\n 40: '2.5rem', // 40px\r\n 36: '2.25rem', // 36px\r\n 34: '2.125rem', // 34px\r\n 32: '2rem', // 32px\r\n 30: '1.875rem', // 30px\r\n 28: '1.75', // 28px\r\n 26: '1.625rem', // 26px\r\n 24: '1.5rem', // 24px\r\n 22: '1.375rem', // 22px\r\n 20: '1.25rem', // 20px\r\n 18: '1.125rem', // 18px\r\n 16: '1rem', // 16px\r\n 14: '0.875rem', // 14px\r\n 12: '0.75rem', // 12px\r\n};\r\n\r\nconst letterSpacings = {\r\n tighter: '-0.05em',\r\n tight: '-0.025em',\r\n normal: '0',\r\n wide: '0.025em',\r\n wider: '0.05em',\r\n widest: '0.1em',\r\n};\r\n\r\nconst fontSizes = {\r\n heading: {\r\n 1: '2.5rem', // 40px\r\n 2: '2rem', // 32px\r\n 3: '1.75rem', // 28px\r\n 4: '1.5rem', // 24px\r\n 5: '1.375rem', // 22px\r\n 6: '1.125rem', // 18px\r\n },\r\n text: {\r\n xl: '1.125rem', // 18px\r\n lg: '1rem', // 16px\r\n md: '0.875rem', // 14px\r\n sm: '0.75rem', // 12px\r\n xs: '0.625rem', // 10px\r\n },\r\n button: {\r\n lg: '1.125rem', // 18px\r\n md: '0.875rem', // 14px\r\n sm: '0.625rem', // 10px\r\n },\r\n field: {\r\n lg: '1rem', // 16px\r\n md: '0.875rem', // 14px\r\n sm: '0.75rem', // 12px\r\n },\r\n table: {\r\n header: '0.75rem', // 12px\r\n },\r\n};\r\n\r\nconst heading = {\r\n 1: {\r\n fontSize: fontSizes.heading[1],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[64],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 2: {\r\n fontSize: fontSizes.heading[2],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[56],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 3: {\r\n fontSize: fontSizes.heading[3],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[48],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 4: {\r\n fontSize: fontSizes.heading[4],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[40],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 5: {\r\n fontSize: fontSizes.heading[5],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[36],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n 6: {\r\n fontSize: fontSizes.heading[6],\r\n fontWeight: fontWeights.semibold,\r\n lineHeight: lineHeights[32],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n};\r\n\r\nconst text = {\r\n xl: {\r\n fontSize: fontSizes.text.xl,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[28],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n lg: {\r\n fontSize: fontSizes.text.lg,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[24],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n md: {\r\n fontSize: fontSizes.text.md,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[22],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n sm: {\r\n fontSize: fontSizes.text.sm,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[18],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n xs: {\r\n fontSize: fontSizes.text.xs,\r\n fontWeight: fontWeights.normal,\r\n lineHeight: lineHeights[14],\r\n letterSpacing: letterSpacings.normal,\r\n },\r\n};\r\n\r\nconst button = {\r\n lg: {\r\n fontSize: fontSizes.button.lg,\r\n lineHeight: lineHeights[28],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n md: {\r\n fontSize: fontSizes.button.md,\r\n lineHeight: lineHeights[22],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n sm: {\r\n fontSize: fontSizes.button.sm,\r\n lineHeight: lineHeights[14],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n};\r\n\r\nconst field = {\r\n lg: {\r\n fontSize: fontSizes.field.lg,\r\n lineHeight: lineHeights[24],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n md: {\r\n fontSize: fontSizes.field.md,\r\n lineHeight: lineHeights[22],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n sm: {\r\n fontSize: fontSizes.field.sm,\r\n lineHeight: lineHeights[18],\r\n letterSpacing: letterSpacings.normal,\r\n fontWeight: fontWeights.normal,\r\n },\r\n};\r\n\r\nconst textStyles = {\r\n heading,\r\n text,\r\n button,\r\n field,\r\n};\r\n\r\nexport { fonts, fontSizes, fontWeights, letterSpacings, lineHeights, textStyles };\r\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable no-nested-ternary */\n/* eslint-disable import/prefer-default-export */\nimport type { ColorMode } from '@chakra-ui/system';\nimport type { CSSObjectWithLabel, GroupBase, StylesConfig, Theme } from 'react-select';\n\nimport { textStyles } from '../../../config/theme/foundations';\n\nconst styleMd = textStyles.text.sm;\nconst selectStyle = {\n fontSize: styleMd.fontSize,\n lineHeight: styleMd.lineHeight,\n letterSpacing: 0,\n};\n\nexport function selectStyles<\n OptionType = unknown,\n IsMulti extends boolean = boolean,\n Group extends GroupBase<OptionType> = GroupBase<OptionType>,\n>(colorMode: ColorMode, _isError: boolean): StylesConfig<OptionType, IsMulti, Group> | undefined {\n return {\n control: (base, { isFocused, isMulti }) => {\n const style: CSSObjectWithLabel = {\n ...base,\n minHeight: 40,\n height: isMulti ? 'fit-content' : 40,\n flexWrap: 'nowrap',\n borderColor: isFocused ? 'var(--chakra-colors-primary-500)' : 'var(--chakra-colors-neutral-400)',\n boxShadow: 'none',\n color: 'var(--chakra-colors-black-low)',\n '&:hover': {\n borderColor: _isError\n ? ''\n : isFocused\n ? 'var(--chakra-colors-primary-500)'\n : 'var(--chakra-colors-neutral-500)',\n },\n };\n if (_isError) {\n return {\n ...style,\n borderColor: 'var(--chakra-colors-danger-500)',\n };\n }\n return style;\n },\n option: (base: CSSObjectWithLabel) => ({\n ...base,\n ...selectStyle,\n color: 'var(--chakra-colors-neutral-900)',\n padding: 12,\n height: 42,\n }),\n menu: (base: CSSObjectWithLabel) => {\n return {\n ...base,\n ...selectStyle,\n zIndex: 5,\n };\n },\n singleValue: (base: CSSObjectWithLabel) => {\n return {\n ...base,\n ...selectStyle,\n marginLeft: 0,\n };\n },\n input: (base: CSSObjectWithLabel) => {\n return {\n ...base,\n ...selectStyle,\n padding: 0,\n margin: 0,\n };\n },\n dropdownIndicator: (base: CSSObjectWithLabel) => {\n return { ...base, ...selectStyle, color: 'var(--chakra-colors-neutral-400)' };\n },\n indicatorSeparator: (base: CSSObjectWithLabel) => {\n return { ...base, background: 'var(--chakra-colors-neutral-400)', borderRadius: 10 };\n },\n valueContainer: (base: CSSObjectWithLabel, { isMulti }) => {\n return {\n ...base,\n ...selectStyle,\n marginLeft: 0,\n };\n },\n placeholder: (base: CSSObjectWithLabel) => {\n return { ...base, ...selectStyle, color: 'var(--chakra-colors-black-low)', marginLeft: 0 };\n },\n clearIndicator: (base: CSSObjectWithLabel) => {\n return { ...base, cursor: 'pointer' };\n },\n multiValue: base => {\n return {\n ...base,\n borderRadius: 4,\n backgroundColor: 'var(--chakra-colors-neutral-200)',\n };\n },\n multiValueLabel: base => ({\n ...base,\n borderRadius: 4,\n fontWeight: 'bold',\n padding: 0,\n paddingLeft: 0,\n }),\n multiValueRemove: base => ({\n ...base,\n color: 'var(--chakra-colors-neutral-900)',\n ':hover': {\n backgroundColor: 'transparent',\n },\n }),\n };\n}\n\nexport const themeSelect = (theme: Theme) => {\n return {\n ...theme,\n colors: {\n ...theme.colors,\n primary: 'var(--chakra-colors-primary-100)',\n primary25: 'var(--chakra-colors-primary-50)',\n primary50: 'var(--chakra-colors-primary-100)',\n primary75: 'var(--chakra-colors-primary-200)',\n },\n };\n};\n","import { useColorMode } from '@chakra-ui/system';\nimport type { GroupBase } from 'react-select';\nimport type { AsyncPaginateProps } from 'react-select-async-paginate';\nimport { AsyncPaginate } from 'react-select-async-paginate';\n\nimport { ClearIndicator, DropdownIndicator, NoOptionsMessage } from './select';\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectAsyncProps<\n OptionType = unknown,\n Group extends GroupBase<OptionType> = GroupBase<OptionType>,\n Additional = unknown,\n IsMulti extends boolean = false,\n> = AsyncPaginateProps<OptionType, Group, Additional, IsMulti> & ExtendedSelectProps;\n\nfunction SelectAsync<OptionType, Group extends GroupBase<OptionType>, Additional, IsMulti extends boolean = false>({\n styles,\n isError = false,\n ...rest\n}: SelectAsyncProps<OptionType, Group, Additional, IsMulti>) {\n const { colorMode } = useColorMode();\n\n return (\n <AsyncPaginate<OptionType, Group, Additional, IsMulti>\n classNamePrefix=\"react-select\"\n maxMenuHeight={320}\n components={{\n DropdownIndicator,\n ClearIndicator,\n NoOptionsMessage,\n }}\n {...(rest as AsyncPaginateProps<OptionType, Group, Additional, IsMulti>)}\n styles={{ ...selectStyles<OptionType, IsMulti, Group>(colorMode, isError), ...styles }}\n theme={themeSelect}\n />\n );\n}\n\nexport default SelectAsync;\n","import { useColorMode } from '@chakra-ui/system';\nimport React from 'react';\nimport type { GroupBase } from 'react-select';\nimport type { AsyncCreatableProps } from 'react-select/async-creatable';\nimport ReactSelectAsyncCreatable from 'react-select/async-creatable';\n\nimport { ClearIndicator, DropdownIndicator, NoOptionsMessage } from './select';\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectAsyncCreatableProps<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n> = AsyncCreatableProps<Option, IsMulti, Group> & ExtendedSelectProps;\n\nexport default function SelectAsyncCreatable<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n>({ styles, isError = false, ...rest }: SelectAsyncCreatableProps<Option, IsMulti, Group>) {\n const { colorMode } = useColorMode();\n\n return (\n <ReactSelectAsyncCreatable\n classNamePrefix=\"react-select\"\n maxMenuHeight={320}\n components={{\n DropdownIndicator,\n ClearIndicator,\n NoOptionsMessage,\n }}\n {...(rest as SelectAsyncCreatableProps<Option, IsMulti, Group>)}\n styles={{ ...selectStyles<Option, IsMulti, Group>(colorMode, isError), ...styles }}\n theme={themeSelect}\n />\n );\n}\n","import { useColorMode } from '@chakra-ui/system';\nimport React from 'react';\nimport type { GroupBase } from 'react-select';\nimport type { CreatableProps } from 'react-select/creatable';\nimport ReactSelectCreatable from 'react-select/creatable';\n\nimport { ClearIndicator, DropdownIndicator, NoOptionsMessage } from './select';\nimport type { ExtendedSelectProps } from './types/select.types';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type SelectCreatableProps<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n> = CreatableProps<Option, IsMulti, Group> & ExtendedSelectProps;\n\nexport default function SelectCreatable<\n Option = unknown,\n IsMulti extends boolean = false,\n Group extends GroupBase<Option> = GroupBase<Option>,\n>({ styles, isError = false, ...rest }: SelectCreatableProps<Option, IsMulti, Group>) {\n const { colorMode } = useColorMode();\n\n return (\n <ReactSelectCreatable\n classNamePrefix=\"react-select\"\n maxMenuHeight={320}\n components={{\n DropdownIndicator,\n ClearIndicator,\n NoOptionsMessage,\n }}\n {...(rest as SelectCreatableProps<Option, IsMulti, Group>)}\n styles={{ ...selectStyles<Option, IsMulti, Group>(colorMode, isError), ...styles }}\n theme={themeSelect}\n />\n );\n}\n","/* eslint-disable react/no-unstable-nested-components */\n/* eslint-disable react/require-default-props */\n\nimport { Checkbox, Flex, Text } from '@chakra-ui/react';\nimport { useColorMode } from '@chakra-ui/system';\nimport type { MultiValue as MultiValueType, OptionProps, Props as ReactSelectProps } from 'react-select';\nimport ReactSelect, { components as ComponentRS } from 'react-select';\n\nimport { ClearIndicator, DropdownIndicator, MultiValue, MultiValueRemove, NoOptionsMessage } from './select';\nimport { selectStyles, themeSelect } from './utils';\n\nexport type OptionGroup<Option> = {\n label: string;\n value: string | number | boolean;\n selectAllCheckbox?: boolean;\n} & Partial<Option>;\n\nexport type OptionMultiGroup<Option = unknown> = {\n label: string;\n value: string | number | boolean;\n group: string;\n selectAllCheckbox?: boolean;\n} & Partial<Option>;\n\nexport type OptionsGroup<Option> = {\n readonly label: string;\n readonly options: readonly OptionMultiGroup<Option>[];\n}[];\n\nexport const CHECKBOX_STATE = {\n UNCHECKED: 0,\n INDETERMINATE: 1,\n CHECKED: 2,\n} as const;\n\nexport const getSelectAllCheckboxState = (totalSelected: number, totalOption: number) => {\n if (totalSelected < 0 || totalOption < 0) {\n throw new Error('value less than 0');\n }\n if (totalSelected > totalOption) {\n throw new Error(\"totalSelected couldn't be more than totalOption\");\n }\n if (totalSelected === 0) {\n return CHECKBOX_STATE.UNCHECKED;\n }\n if (totalSelected < totalOption) {\n return CHECKBOX_STATE.INDETERMINATE;\n }\n if (totalSelected === totalOption) {\n return CHECKBOX_STATE.CHECKED;\n }\n return CHECKBOX_STATE.UNCHECKED;\n};\n\nconst InputOption = <T, IsMulti extends boolean>({\n getStyles,\n isDisabled,\n isFocused,\n isSelected,\n children,\n innerProps,\n data,\n checkedState,\n isMulti,\n ...rest\n}: OptionProps<OptionGroup<T>, IsMulti> & {\n checkedState: number;\n}) => {\n const style = {\n alignItems: 'center',\n color: 'inherit',\n display: 'flex ',\n };\n\n const props: JSX.IntrinsicElements['div'] = {\n ...innerProps,\n 'aria-disabled': isDisabled,\n onClick: isDisabled ? undefined : innerProps.onClick,\n style,\n };\n\n return (\n <>\n <ComponentRS.Option\n isMulti\n data={data}\n isDisabled={isDisabled}\n isFocused={isFocused}\n isSelected={isSelected}\n getStyles={getStyles}\n innerProps={props}\n {...rest}\n >\n <Flex\n alignItems=\"center\"\n width=\"100%\"\n gap={2}\n data-test-id=\"CT_component_select-checkbox_options\"\n cursor={isDisabled ? 'not-allowed' : 'default'}\n >\n {data?.selectAllCheckbox ? (\n <Checkbox\n isChecked={checkedState === CHECKBOX_STATE.CHECKED}\n isIndeterminate={checkedState === CHECKBOX_STATE.INDETERMINATE}\n isDisabled={isDisabled}\n pointerEvents=\"none\"\n data-test-id=\"CT_component_select-checkbox_select-all-option\"\n />\n ) : (\n <Checkbox\n pointerEvents=\"none\"\n isChecked={isSelected}\n data-test-id=\"CT_component_select-checkbox_option-checkbox\"\n />\n )}\n <Text textStyle=\"text.sm\" data-test-id={`select-checkbox-option-label-${data.value}`}>\n {children}\n </Text>\n </Flex>\n </ComponentRS.Option>\n {data?.selectAllCheckbox ? <hr /> : null}\n </>\n );\n};\n\nexport interface SelectWithCheckboxBaseProps<\n T = OptionGroup<never> | OptionMultiGroup<never>,\n IsMulti extends boolean = boolean,\n> extends ReactSelectProps<T, IsMulti> {\n isError?: boolean;\n}\n\nconst SelectWithCheckboxBase = <T, IsMulti extends boolean>({\n styles,\n isError = false,\n components,\n options,\n onChange,\n value,\n ...rest\n}: SelectWithCheckboxBaseProps<T, IsMulti>) => {\n const { colorMode } = useColorMode();\n\n return (\n <ReactSelect<T, IsMulti>\n data-test-id=\"\"\n classNamePrefix=\"react-select\"\n options={options}\n value={value}\n onChange={onChange}\n styles={{ ...selectStyles(colorMode, !!isError), ...styles }}\n theme={themeSelect}\n maxMenuHeight={320}\n closeMenuOnSelect={false}\n hideSelectedOptions={false}\n components={components}\n {...rest}\n />\n );\n};\n\nconst SelectCheckbox = <T, IsMulti extends boolean = boolean>(\n props: SelectWithCheckboxBaseProps<OptionGroup<T>, IsMulti>\n) => {\n const { isMulti, options, value, components, ...rest } = props;\n const selectValue = (value || []) as MultiValueType<OptionGroup<T>>;\n\n const defaultComponents = {\n DropdownIndicator,\n ClearIndicator,\n MultiValue,\n MultiValueRemove,\n NoOptionsMessage,\n Option: (optionProps: OptionProps<OptionGroup<T>>) => {\n const { isSelected, data } = optionProps;\n\n const optionLength = options?.length ? options.length - 1 : 0;\n const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;\n const checkedState = data.selectAllCheckbox\n ? getSelectAllCheckboxState(selectValue?.length, optionLength)\n : selectedValue;\n return <InputOption {...optionProps} checkedState={checkedState} />;\n },\n };\n\n return (\n <SelectWithCheckboxBase\n data-test-id=\"\"\n isMulti={isMulti}\n options={options}\n value={value}\n components={{\n ...defaultComponents,\n ...components,\n }}\n {...rest}\n />\n );\n};\n\nexport default SelectCheckbox;\n","import type { BoxProps } from '@chakra-ui/react';\nimport { Flex } from '@chakra-ui/react';\nimport { motion } from 'framer-motion';\nimport React from 'react';\n\nexport interface SidebarProps extends BoxProps {\n isCollapse: boolean;\n}\n\nexport const Sidebar = ({ isCollapse, children, ...props }: SidebarProps) => {\n const { width = '220px' } = props;\n\n return (\n <Flex\n position=\"relative\"\n as={motion.div}\n w={width}\n bg=\"pureWhite\"\n h={props.h}\n flexDirection=\"column\"\n overflow=\"hidden\"\n shadow=\"raised\"\n initial={{ width: isCollapse ? '62px' : width }}\n animate={{ width: isCollapse ? '62px' : width }}\n {...props}\n >\n {children}\n </Flex>\n );\n};\n\nSidebar.displayName = 'Sidebar';\n\nexport default Sidebar;\n","import { Box, Flex, Text } from '@chakra-ui/react';\nimport { ArrowRight } from '@ctlyst.id/internal-icon';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport React from 'react';\n\nexport interface SidebarHeaderProps {\n isCollapse: boolean;\n setCollapse: (k: boolean) => void;\n title?: string;\n}\n\nexport const SidebarHeader = ({ isCollapse, setCollapse, title }: SidebarHeaderProps) => {\n return (\n <Box\n px=\"2\"\n color=\"neutral.900\"\n borderY=\"1px solid\"\n borderColor=\"neutral.300\"\n _hover={{\n color: 'primary.500',\n }}\n >\n <Flex\n data-test-id=\"nLkz69YipW818FioeAxVI\"\n direction=\"row\"\n alignItems=\"center\"\n p=\"2\"\n onClick={() => setCollapse(!isCollapse)}\n cursor=\"pointer\"\n >\n <Box\n as={motion.div}\n boxSize=\"4\"\n initial={{ rotate: 0, x: 8 }}\n animate={{ rotate: isCollapse ? 0 : -180, x: isCollapse ? 8 : 0 }}\n transitionTimingFunction=\"linear\"\n aria-label=\"toggle sidebar\"\n >\n <ArrowRight size={4} color=\"inherit\" />\n </Box>\n <AnimatePresence>\n {!isCollapse && (\n <Box h=\"3.5\" position=\"relative\" ml=\"2\">\n <Text\n as={motion.div}\n w=\"max-content\"\n position=\"absolute\"\n textStyle=\"text.xs\"\n initial={{ opacity: 0, x: 16 }}\n animate={{ opacity: 1, x: 0 }}\n exit={{ opacity: 0, x: 16 }}\n transition=\"10ms linear\"\n userSelect=\"none\"\n >\n {title}\n </Text>\n </Box>\n )}\n </AnimatePresence>\n </Flex>\n </Box>\n );\n};\n\nSidebarHeader.displayName = 'SidebarHeader';\nSidebarHeader.defaultProps = {\n title: 'Sembunyikan menu',\n};\n\nexport default SidebarHeader;\n","import {\n Accordion,\n AccordionButton,\n AccordionItem,\n AccordionPanel,\n Box,\n Fade,\n Popover,\n PopoverBody,\n PopoverContent,\n PopoverHeader,\n PopoverTrigger,\n Portal,\n Text,\n} from '@chakra-ui/react';\nimport * as Icon from '@ctlyst.id/internal-icon';\nimport { motion } from 'framer-motion';\nimport React from 'react';\n\nimport type { NavItemProps } from '../../nav-item';\nimport { NavItem } from '../../nav-item';\nimport type { MenuItem } from '../types';\n\nexport interface SidebarMenuProps {\n menu: MenuItem[];\n isCollapse: boolean;\n active: string | undefined;\n setActive: (active: string, fromParent?: boolean) => void;\n itemStyles?: NavItemProps;\n mappingIcon?: Map<string, JSX.Element>;\n}\n\nexport const SidebarMenu = ({ menu, isCollapse, mappingIcon, itemStyles, setActive, active }: SidebarMenuProps) => {\n return (\n <Box\n as={motion.div}\n transitionTimingFunction=\"linear\"\n initial={{ padding: '8px' }}\n animate={{ padding: isCollapse ? '8px 16px' : '8px' }}\n >\n <Accordion index={menu.findIndex(item => item.children.some(child => child.navLink === active))}>\n {menu.map(item => {\n const isActive = active?.includes(item.navLink);\n return (\n <AccordionItem key={item.id} mt=\"4\">\n {({ isExpanded }) => {\n const isOpenOptions = isCollapse || (!isCollapse && !isExpanded);\n const noChild = !item.children.length;\n // eslint-disable-next-line no-nested-ternary\n const offsetStyle: [number, number] = isCollapse ? (noChild ? [-5, 16] : [-1, 16]) : [-1, 8];\n return (\n <>\n <Popover key={item.id} trigger=\"hover\" placement=\"right-start\" offset={offsetStyle}>\n {({ isOpen, onClose }) => {\n const activeOption = isOpen ? 'primary.50' : 'white';\n const backgroundColor = isOpen && !isActive ? 'primary.50' : 'primary.100';\n const activeParent = isActive ? backgroundColor : activeOption;\n\n return (\n <>\n <PopoverTrigger key={item.id}>\n <AccordionButton\n key={item.id}\n data-test-id={`CTA_button-accordion-${item.title}`}\n p=\"0\"\n h=\"fit-content\"\n >\n <NavItem\n key={item.id}\n as={motion.div}\n transitionTimingFunction=\"linear\"\n justifyContent={isCollapse ? 'center' : 'space-between'}\n isActive={isActive}\n bg={activeParent}\n data-test-id={`CTA_nav-item-${item.title}`}\n onClick={() =>\n setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink, true)\n }\n position=\"relative\"\n {...itemStyles}\n >\n {mappingIcon && (\n <Box display=\"flex\" boxSize=\"3\" transition=\"50ms linear\">\n {mappingIcon.get(item.icon || '')}\n </Box>\n )}\n\n {!isCollapse && (\n <Box\n display=\"flex\"\n w=\"full\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n ml=\"2\"\n as={motion.div}\n transition=\"20ms linear\"\n transitionTimingFunction=\"linear\"\n initial={{ opacity: 0, x: 24 }}\n animate={{ opacity: 1, x: 0 }}\n exit={{ opacity: 0, x: 16 }}\n >\n <Box h=\"3.5\" position=\"relative\">\n <Text textStyle=\"text.xs\" w=\"max-content\" position=\"absolute\">\n {item.title}\n </Text>\n </Box>\n {!!item.children.length && (\n <Box\n display=\"flex\"\n boxSize=\"3\"\n as={motion.div}\n transitionTimingFunction=\"linear\"\n animate={{ transform: isExpanded ? 'rotate(-180deg)' : 'rotate(0)' }}\n >\n <Icon.ChevronDown size={3} />\n </Box>\n )}\n </Box>\n )}\n </NavItem>\n </AccordionButton>\n </PopoverTrigger>\n {isOpenOptions && (\n <Portal>\n {item.children.length > 0 ? (\n <PopoverContent w=\"176px\" borderColor=\"neutral.200\" bg=\"white\" rounded=\"sm\">\n <PopoverHeader borderColor=\"neutral.300\" textStyle=\"text.xs\" p=\"2\">\n {mappingIcon && (\n <Box display=\"flex\" alignItems=\"center\">\n {mappingIcon.get(item.icon || '')}\n <Box as=\"span\" ml=\"2\">\n {item.title}\n </Box>\n </Box>\n )}\n </PopoverHeader>\n {!!item.children.length && (\n <PopoverBody pb=\"1\" px=\"0\" pt=\"0\">\n {item.children.map(submenu => (\n <NavItem\n data-test-id={`CTA_Sidebar-popover-item-${submenu.id}`}\n key={submenu.id}\n isChild\n isActive={active === submenu.navLink}\n onClick={() => {\n setActive(submenu.navLink);\n onClose();\n }}\n rounded=\"none\"\n {...itemStyles}\n >\n {submenu.title}\n </NavItem>\n ))}\n </PopoverBody>\n )}\n </PopoverContent>\n ) : (\n isCollapse && (\n <PopoverContent w=\"174px\" borderColor=\"neutral.200\" bg=\"white\" rounded=\"sm\">\n <PopoverBody py=\"1\" px=\"0\">\n <NavItem\n data-test-id={`CTA_Sidebar-popover-item-${item.id}`}\n key={item.id}\n justifyContent=\"flex-start\"\n isActive={active === item.navLink}\n onClick={() => {\n setActive(item.navLink);\n onClose();\n }}\n rounded=\"none\"\n {...itemStyles}\n >\n {mappingIcon && (\n <Box display=\"flex\" boxSize=\"3\" transition=\"50ms linear\">\n {mappingIcon.get(item.icon || '')}\n </Box>\n )}\n <Box h=\"3.5\" position=\"relative\" ml=\"2\">\n <Text textStyle=\"text.xs\" w=\"max-content\" position=\"absolute\">\n {item.title}\n </Text>\n </Box>\n </NavItem>\n </PopoverBody>\n </PopoverContent>\n )\n )}\n </Portal>\n )}\n </>\n );\n }}\n </Popover>\n {!isCollapse && (\n <Fade\n in\n transition={{\n enter: { duration: 0.5 },\n }}\n >\n <AccordionPanel mt=\"1\" p=\"0\">\n {item.children.map(submenu => (\n <NavItem\n mt=\"1\"\n key={submenu.id}\n data-test-id={`CTA_Sidebar-accordion-item-${submenu.id}`}\n isActive={active === submenu.navLink}\n isChild\n {...itemStyles}\n onClick={() => setActive(submenu.navLink)}\n >\n {submenu.title}\n </NavItem>\n ))}\n </AccordionPanel>\n </Fade>\n )}\n </>\n );\n }}\n </AccordionItem>\n );\n })}\n </Accordion>\n </Box>\n );\n};\n\nSidebarMenu.displayName = 'SidebarMenu';\nSidebarMenu.defaultProps = {\n itemStyles: undefined,\n mappingIcon: undefined,\n};\n\nexport default SidebarMenu;\n","import type {\n HTMLChakraProps,\n ResponsiveValue,\n SystemProps,\n SystemStyleObject,\n ThemingProps,\n UseCheckboxProps,\n} from '@chakra-ui/react';\nimport { chakra, Flex, forwardRef, omitThemingProps, useCheckbox, useMultiStyleConfig } from '@chakra-ui/react';\nimport { cx, dataAttr } from '@chakra-ui/shared-utils';\nimport { Check, Close } from '@ctlyst.id/internal-icon';\nimport React, { useMemo } from 'react';\n\nexport interface SwitchProps\n extends Omit<UseCheckboxProps, 'isIndeterminate'>,\n Omit<HTMLChakraProps<'label'>, keyof UseCheckboxProps>,\n ThemingProps<'Switch'> {\n /**\n * The spacing between the switch and its label text\n * @default 0.5rem\n * @type SystemProps[\"marginLeft\"]\n */\n spacing?: SystemProps['marginLeft'];\n size?: 'sm' | 'md' | 'lg';\n}\n\n/**\n * The `Switch` component is used as an alternative for the checkbox component for switching between \"enabled\" and \"disabled\" states.\n *\n * @see Docs https://chakra-ui.com/docs/components/switch\n * @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/switch/\n */\nconst Switch = forwardRef<SwitchProps, 'input'>(function Switch(props, ref) {\n const styles = useMultiStyleConfig('Switch', props);\n\n const { spacing = '0.5rem', children, ...ownProps } = omitThemingProps(props);\n\n const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = useCheckbox(ownProps);\n\n const containerStyles: SystemStyleObject = useMemo(\n () => ({\n display: 'inline-block',\n position: 'relative',\n verticalAlign: 'middle',\n lineHeight: 0,\n ...styles.container,\n }),\n [styles.container]\n );\n\n const trackStyles: SystemStyleObject = useMemo(\n () => ({\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'flex-start',\n boxSizing: 'content-box',\n cursor: 'pointer',\n width: 200,\n ...styles.track,\n }),\n [styles.track]\n );\n\n const labelStyles: SystemStyleObject = useMemo(\n () => ({\n userSelect: 'none',\n marginStart: spacing,\n ...styles.label,\n }),\n [spacing, styles.label]\n );\n\n const getIconSize = (value?: ResponsiveValue<'sm' | 'md' | 'lg'>) => {\n const iconSize = {\n sm: 3,\n md: 4,\n lg: 5,\n };\n\n return iconSize[value as keyof typeof iconSize];\n };\n\n return (\n <chakra.label\n {...getRootProps()}\n display=\"flex\"\n alignItems=\"center\"\n className={cx('chakra-switch', props.className)}\n __css={containerStyles}\n >\n <input data-test-id=\"\" className=\"chakra-switch__input\" {...getInputProps({}, ref)} />\n <chakra.span {...getCheckboxProps()} className=\"chakra-switch__track\" pos=\"relative\" __css={trackStyles}>\n <Flex gap={1} pos=\"absolute\" top=\"50%\" left=\"50%\" transform=\"translate(-50%, -50%)\">\n <Check color=\"white\" size={getIconSize(props.size)} />\n <Close color={state.isDisabled ? 'neutral.600' : 'neutral.900'} size={getIconSize(props.size)} />\n </Flex>\n <chakra.span\n __css={styles.thumb}\n className=\"chakra-switch__thumb\"\n data-checked={dataAttr(state.isChecked)}\n data-hover={dataAttr(state.isHovered)}\n />\n </chakra.span>\n {children && (\n <chakra.span\n className=\"chakra-switch__label\"\n color={state.isDisabled ? 'black.low' : 'black.high'}\n cursor=\"pointer\"\n {...getLabelProps()}\n __css={labelStyles}\n >\n {children}\n </chakra.span>\n )}\n </chakra.label>\n );\n});\n\nSwitch.defaultProps = {\n size: 'sm',\n};\n\nexport default Switch;\n","export {\n Table as ChakraTable,\n TableBodyProps,\n TableCellProps,\n TableColumnHeaderProps,\n TableHeadProps,\n TableProps,\n TableRowProps,\n Tbody,\n Td,\n Th,\n Thead,\n Tr,\n} from '@chakra-ui/react';\n","import type { TabProps as ChakraTabProps } from '@chakra-ui/react';\nimport { Button, Flex, forwardRef, useMultiStyleConfig, useTab } from '@chakra-ui/react';\nimport * as React from 'react';\n\ntype AddonProps = {\n isSelected: boolean;\n};\n\ntype TabProps = ChakraTabProps & {\n 'data-test-id'?: string;\n leftAddon?({ isSelected }: AddonProps): React.ReactNode;\n rightAddon?({ isSelected }: AddonProps): React.ReactNode;\n};\n\nconst Tab = forwardRef<TabProps, 'button'>((props, ref) => {\n const tabProps = useTab({ ...props, ref });\n const isSelected = !!tabProps['aria-selected'];\n const styles = useMultiStyleConfig('Tabs', tabProps);\n return (\n <Button\n data-test-id={props['data-test-id']}\n p={4}\n fontSize=\"text.md\"\n _selected={{\n borderColor: 'primary.500',\n color: 'primary.500',\n _hover: {\n '& .chakra-badge': {\n bg: 'primary.500',\n },\n color: 'primary.500',\n },\n }}\n color=\"black.medium\"\n _focus={{ bg: 'none' }}\n _hover={{\n '& .chakra-badge': {\n bg: 'primary.400',\n },\n color: 'primary.400',\n }}\n __css={styles.tab}\n {...tabProps}\n >\n <Flex alignItems=\"center\">\n {props.leftAddon?.({ isSelected })}\n {tabProps.children}\n {props.rightAddon?.({ isSelected })}\n </Flex>\n </Button>\n );\n});\n\nexport default Tab;\n","export { default as Tab } from './components/tab';\n// export { default as TabList } from './components/tab-list';\n// export { default as TabPanel } from './components/tab-panel';\nexport {\n TabIndicator,\n TabIndicatorProps,\n TabList,\n TabListProps,\n TabPanel,\n TabPanelProps,\n TabPanels,\n TabPanelsProps,\n TabProps,\n Tabs,\n TabsDescendantsProvider,\n TabsProps,\n TabsProvider,\n useTab,\n useTabIndicator,\n useTabList,\n UseTabListProps,\n UseTabListReturn,\n UseTabOptions,\n useTabPanel,\n useTabPanels,\n UseTabPanelsProps,\n UseTabProps,\n useTabs,\n useTabsContext,\n useTabsDescendant,\n useTabsDescendants,\n useTabsDescendantsContext,\n UseTabsProps,\n UseTabsReturn,\n useTabsStyles,\n} from '@chakra-ui/react';\n","export { Code, CodeProps, Heading, HeadingProps, Link, LinkProps, Text, TextProps } from '@chakra-ui/react';\n","import type { BoxProps, InputProps } from '@chakra-ui/react';\nimport { Box, Flex, forwardRef, Input, InputGroup } from '@chakra-ui/react';\nimport { Clock } from '@ctlyst.id/internal-icon';\nimport { useEffect, useImperativeHandle } from 'react';\n\nimport { Field } from '../../field';\nimport { useTimescape } from './integration';\n\nexport type TimeOptions = {\n date?: Date;\n hour12?: boolean;\n digits?: 'numeric' | '2-digit';\n wrapAround?: boolean;\n snapToStep?: boolean;\n};\nconst timeDigitFormat = (number: number) => {\n if (number.toString().length === 1) {\n return `0${number}`;\n }\n return number;\n};\n\nexport class Time {\n hours: number;\n\n minutes: number;\n\n seconds: number;\n\n constructor(hours?: number, minutes?: number, seconds?: number) {\n this.hours = hours ?? 0;\n this.minutes = minutes ?? 0;\n this.seconds = seconds ?? 0;\n }\n\n toString(): string {\n return `${timeDigitFormat(this.hours)}:${timeDigitFormat(this.minutes)}:${timeDigitFormat(this.seconds)}`;\n }\n}\n\nexport const timeFromString = (timeString: string) => {\n const [hours, minutes, seconds] = timeString.split(':');\n return new Time(Number(hours), Number(minutes), Number(seconds));\n};\n\nexport interface TimeInputProps {\n name?: string;\n config?: TimeOptions;\n value?: Time;\n seconds?: boolean;\n onChangeTime?: (time: Time) => void;\n isDisabled?: boolean;\n isRequired?: boolean;\n label?: string;\n isError?: boolean;\n errorMessage?: string;\n isSuccess?: boolean;\n boxProps?: BoxProps;\n addOnRight?: React.ReactNode;\n}\n\nconst InputTimeArea = forwardRef<InputProps, 'input'>((props, ref) => {\n return (\n <Input\n _focusWithin={{\n bg: 'neutral.300',\n }}\n boxSizing=\"content-box\"\n height=\"22px\"\n ref={ref}\n px={'2px'}\n py={0}\n sx={{\n fontVariantNumeric: 'tabular-nums',\n fontSize: 12,\n }}\n {...props}\n />\n );\n});\n\nexport const TimeInput = forwardRef<TimeInputProps, 'div'>(\n (\n {\n name,\n config,\n label,\n isError,\n isRequired,\n errorMessage,\n value,\n seconds,\n isDisabled,\n boxProps,\n addOnRight,\n isSuccess,\n onChangeTime,\n },\n ref\n ) => {\n const timeVal = value ?? new Time(0, 0, 0);\n const dateVal = new Date();\n dateVal.setHours(timeVal.hours, timeVal.minutes, timeVal.seconds, 0);\n\n const defaultDate = new Date();\n defaultDate.setHours(0, 0, 0, 0);\n\n const date = dateVal || defaultDate;\n\n const timeValue = new Time();\n const { getRootProps, getInputProps, options, update, _manager } = useTimescape({\n date,\n ...config,\n });\n\n useEffect(() => {\n timeValue.hours = options?.date?.getHours() ?? 0;\n timeValue.minutes = options?.date?.getMinutes() ?? 0;\n timeValue.seconds = options?.date?.getSeconds() ?? 0;\n if (onChangeTime) {\n onChangeTime(timeValue);\n }\n }, [options.date]);\n\n useImperativeHandle(ref, () => ({\n focus() {\n _manager.focusField('hours');\n },\n }));\n const rootProps = getRootProps();\n const hoursProps = getInputProps('hours');\n\n const getProperties = () => {\n let outlineColor = 'neutral.400';\n let focusColor = 'primary.500';\n\n if (isError || isDisabled || isSuccess) {\n if (isError) outlineColor = 'danger.500';\n else if (isSuccess) outlineColor = 'success.500';\n focusColor = outlineColor;\n }\n\n return {\n outlineColor,\n focusColor,\n };\n };\n\n const { outlineColor, focusColor } = getProperties();\n return (\n <Box {...boxProps} {...rootProps}>\n <Field\n isError={isError}\n label={label}\n isRequired={isRequired}\n errorMessage={errorMessage}\n isDisabled={isDisabled}\n isSuccess={isSuccess}\n >\n <Box\n transition=\"all 0.15s\"\n boxShadow=\"none\"\n borderRadius=\"sm\"\n border=\"1px solid\"\n borderColor={outlineColor}\n _focusWithin={{\n borderColor: focusColor,\n }}\n >\n <InputGroup\n borderRadius=\"sm\"\n backgroundColor={isDisabled ? 'neutral.300' : 'white.high'}\n cursor={isDisabled ? 'not-allowed' : 'default'}\n alignItems=\"center\"\n gap={3}\n data-test-id={`CT_Component_TimeInput${name ? `_${name}` : ''}`}\n >\n <Flex gap={'1px'} width=\"100%\" alignItems=\"center\" pl={2}>\n <InputTimeArea data-test-id=\"start-time\" {...hoursProps} />\n <span>:</span>\n\n <InputTimeArea data-test-id=\"end-time\" {...getInputProps('minutes')} />\n\n {seconds && (\n <>\n <span>:</span>\n <InputTimeArea {...getInputProps('seconds')} />\n </>\n )}\n {options.hour12 && <Input p={0} {...getInputProps('am/pm')} />}\n </Flex>\n\n <Clock color=\"neutral.400\" size={4} />\n {addOnRight}\n </InputGroup>\n </Box>\n </Field>\n </Box>\n );\n }\n);\n","/* eslint-disable no-underscore-dangle */\nimport { $NOW, type DateType, type Options, type RangeOptions, TimescapeManager } from '@zamiru/timescape';\nimport { marry } from '@zamiru/timescape';\nimport {\n type Dispatch,\n type MutableRefObject,\n type SetStateAction,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\ntype ReactOptions = Options & {\n onChangeDate?: (nextDate: Date | undefined) => void;\n};\n\nexport type ReactRangeOptions = RangeOptions & {\n from?: { onChangeDate?: (nextDate: Date | undefined) => void };\n to?: { onChangeDate?: (nextDate: Date | undefined) => void };\n};\nexport { $NOW, type DateType, type ReactOptions as Options, type ReactRangeOptions as RangeOptions };\n\nexport type UpdateFn = Dispatch<SetStateAction<Options>>;\n\nexport const useTimescape = (options: ReactOptions = {}) => {\n const { date, onChangeDate, ...rest } = options;\n const [manager] = useState(() => new TimescapeManager(date, rest));\n const onChangeDateRef = useRef(onChangeDate);\n useLayoutEffect(() => {\n onChangeDateRef.current = onChangeDate;\n }, [onChangeDate]);\n const [optionsState, update] = useState<ReactOptions>(() => ({\n date,\n ...rest,\n }));\n\n useEffect(() => {\n // this is to work around StrictMode shenanigans\n manager.resync();\n\n return () => {\n manager.remove();\n };\n }, [manager]);\n\n useEffect(() => {\n return manager.on('changeDate', nextDate => {\n onChangeDateRef.current?.(nextDate);\n update(value => ({ ...value, date: nextDate }));\n });\n }, [manager]);\n\n const timestamp = optionsState.date?.getTime();\n\n useEffect(() => {\n manager.date = timestamp;\n manager.minDate = optionsState.minDate;\n manager.maxDate = optionsState.maxDate;\n manager.hour12 = optionsState.hour12;\n manager.wrapAround = optionsState.wrapAround;\n manager.digits = optionsState.digits;\n manager.snapToStep = optionsState.snapToStep;\n }, [\n manager,\n timestamp,\n optionsState.minDate,\n optionsState.maxDate,\n optionsState.hour12,\n optionsState.wrapAround,\n optionsState.digits,\n optionsState.snapToStep,\n ]);\n\n return {\n _manager: manager,\n getInputProps: (\n type: DateType,\n opts?: {\n ref?: MutableRefObject<HTMLInputElement | null>;\n autofocus?: boolean;\n }\n ) => ({\n _ref: (element: HTMLInputElement | null) => {\n if (!element) return;\n manager.registerElement(element, type, opts?.autofocus);\n // eslint-disable-next-line no-param-reassign\n if (opts?.ref) opts.ref.current = element;\n },\n get ref() {\n // eslint-disable-next-line no-underscore-dangle\n return this._ref;\n },\n set ref(value) {\n // eslint-disable-next-line no-underscore-dangle\n this._ref = value;\n },\n }),\n getRootProps: () => ({\n ref: (element: HTMLElement | null) => element && manager.registerRoot(element),\n }),\n options: optionsState,\n update,\n } as const;\n};\n\nexport const useTimescapeRange = (options: ReactRangeOptions) => {\n const from = useTimescape(options.from);\n const to = useTimescape(options.to);\n\n useEffect(() => {\n marry(from._manager, to._manager);\n }, [from._manager, to._manager]);\n\n return {\n getRootProps: () => ({\n ref: (element: HTMLElement | null) => {\n if (!element) return;\n from._manager.registerRoot(element);\n to._manager.registerRoot(element);\n },\n }),\n from: {\n getInputProps: from.getInputProps,\n options: from.options,\n update: from.update,\n },\n to: {\n getInputProps: to.getInputProps,\n options: to.options,\n update: to.update,\n },\n } as const;\n};\n","/* eslint-disable import/prefer-default-export */\nimport { Box, chakra, Flex, Link, useToken } from '@chakra-ui/react';\nimport { Close } from '@ctlyst.id/internal-icon';\nimport type { ToastOptions, ToastPosition } from 'react-toastify';\nimport { Bounce, toast } from 'react-toastify';\nimport type { CloseButtonProps } from 'react-toastify/dist/components';\nimport type { Id, ToastIcon, TypeOptions } from 'react-toastify/dist/types';\n\nimport Styles from './styles';\n\ninterface CustomIconProps {\n theme: 'light' | 'dark' | 'colored' | 'auto';\n type: TypeOptions;\n}\n\ninterface CustomToastOptions extends Omit<ToastOptions, 'icon'> {\n icon?: ToastIcon;\n link?: { url: string; label: string };\n}\n\ninterface ToastOptionsWithDefaults extends CustomToastOptions {\n position?: ToastPosition;\n autoClose?: number;\n hideProgressBar?: boolean;\n closeOnClick?: boolean;\n pauseOnHover?: boolean;\n draggable?: boolean;\n progress?: undefined;\n}\n\nconst CustomCloseButton = (props: CloseButtonProps) => {\n const { closeToast } = props;\n\n return (\n <Box p={2} mb={1} alignItems=\"center\" display=\"flex\" data-test-id=\"\" cursor=\"pointer\" onClick={closeToast}>\n <Close size={4} color=\"white\" />\n </Box>\n );\n};\n\nconst DEFAULT_OPTIONS: ToastOptionsWithDefaults = {\n position: 'top-right',\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n icon: false,\n theme: 'colored',\n closeButton: CustomCloseButton,\n className: 'container-toast',\n transition: Bounce,\n};\n\nconst renderIcon = (icon: ToastIcon, type: TypeOptions) => {\n const iconProps: CustomIconProps = { theme: 'colored', type };\n if (typeof icon === 'function') {\n return icon(iconProps);\n }\n return icon;\n};\n\nexport const useToast = () => {\n const [primary500, neutral500, info500, danger500, warning500, success500] = useToken('colors', [\n 'primary.500',\n 'neutral.500',\n 'info.500',\n 'danger.500',\n 'warning.500',\n 'success.500',\n ]);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const content = (icon: any, message: string, link?: { url: string; label: string }) => {\n return (\n <>\n <Styles />\n <Flex justifyContent=\"space-between\" alignItems=\"center\" gap={4} mb={1}>\n <Flex alignItems=\"center\">\n {icon && (\n <chakra.span mr={2} w={4} h={4}>\n {renderIcon(icon, 'default')}\n </chakra.span>\n )}\n <chakra.span noOfLines={2}>{message}</chakra.span>\n </Flex>\n {link && (\n <Link\n href={link.url}\n textDecoration=\"underline\"\n minW=\"max-content\"\n textAlign=\"right\"\n textStyle=\"text.sm\"\n fontWeight=\"semibold\"\n >\n {link.label}\n </Link>\n )}\n </Flex>\n </>\n );\n };\n\n return {\n primary: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.success(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: primary500 },\n });\n },\n neutral: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.success(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: neutral500 },\n });\n },\n success: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.success(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: success500 },\n });\n },\n error: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.error(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: danger500 },\n });\n },\n warning: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.warning(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: warning500 },\n });\n },\n info: (message: string, options?: CustomToastOptions) => {\n const { icon, link, ...restOptions } = options || {};\n toast.info(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: info500 },\n });\n },\n custom: (message: string, options?: CustomToastOptions) => {\n const { icon, link, style, ...restOptions } = options || {};\n toast.info(content(icon, message, link), {\n ...DEFAULT_OPTIONS,\n ...restOptions,\n style: { backgroundColor: style?.backgroundColor, color: style?.color },\n });\n },\n dismiss: (id?: Id) => toast.dismiss(id),\n };\n};\n","import { Global } from '@emotion/react';\n\nconst Styles = () => {\n return (\n <Global\n styles={`\n .Toastify__toast-container {\n width: 380px;\n }\n\n .container-toast {\n height: 64px;\n width: 380px;\n border-radius: 4px;\n font-family: Poppins;\n }\n\n @media (max-width: 480px) {\n .container-toast {\n margin: 16px !important;\n width: calc(100% - 32px); /* Adjust width to fit within the margin */\n }\n\n .Toastify__toast-container {\n width: 100%;\n }\n }\n `}\n />\n );\n};\n\nexport default Styles;\n","// eslint-disable-next-line import/prefer-default-export\nexport * from './components/toast';\nexport { ToastContainer } from 'react-toastify';\n","/* eslint-disable react/jsx-no-useless-fragment */\n/* eslint-disable react/require-default-props */\nimport {\n Box,\n Button,\n Flex,\n FormControl,\n FormLabel,\n Heading,\n Image as ChakraImage,\n ListItem,\n RequiredIndicator,\n Text,\n UnorderedList,\n} from '@chakra-ui/react';\nimport { Close as X, Plus } from '@ctlyst.id/internal-icon';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport type { FileError, FileRejection } from 'react-dropzone';\nimport { useDropzone } from 'react-dropzone';\n\nimport { useToast } from '../../toast/components/toast';\nimport { DEFAULT_IMAGE_MIME_TYPE, messages } from '../constants';\nimport type { UploaderProps } from '../types';\nimport { defaultOnHandleRejections } from '../utils/handler';\n\nconst Uploader: React.FC<UploaderProps> = ({\n onHandleUploadFile,\n onHandleRejections,\n dragActiveText,\n dragInActiveText,\n dragReplaceText,\n changeFileText,\n uploadFileText,\n helperText,\n label,\n isRequired,\n isDisabled,\n dimension,\n acceptFormat = {\n validate: DEFAULT_IMAGE_MIME_TYPE,\n },\n maxFileSize,\n customValidation,\n value,\n isShowCloseButton = true,\n testId,\n isError,\n errorText,\n isShowReupload = true,\n size = 'lg',\n validatorExt,\n ...props\n}) => {\n const [filePreview, setFilePreview] = useState<string>();\n\n const toast = useToast();\n\n const handleRejection = useCallback(\n (message: string, file: File, image: HTMLImageElement | null) => {\n if (onHandleRejections) {\n onHandleRejections(file, image);\n }\n\n return toast.error(message);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [onHandleRejections]\n );\n\n const onDropAccepted = useCallback(\n (files: File[]) => {\n const file = files[0];\n const imageUrl = URL.createObjectURL(file);\n const img = new Image();\n\n img.src = imageUrl as string;\n img.onload = () => {\n const imgWidth = img.width;\n const imgheight = img.height;\n\n // == deprecated ==\n // validate by provided custom validator\n if (customValidation && customValidation(file, img) !== null) {\n return handleRejection(customValidation(file, img) as string, file, img);\n }\n\n // == deprecated ==\n // validate image dimension\n if (dimension && (imgWidth !== dimension.validate[0] || imgheight !== dimension.validate[1])) {\n return handleRejection(dimension.message, file, img);\n }\n\n onHandleUploadFile?.(file, img);\n setFilePreview(URL.createObjectURL(file));\n\n return null;\n };\n\n return null;\n },\n [acceptFormat, customValidation, dimension, handleRejection, maxFileSize, onHandleUploadFile]\n );\n\n const onDropRejected = useCallback((fileRejections: FileRejection[]) => {\n defaultOnHandleRejections(fileRejections, { acceptFormat, maxFileSize }, handleRejection);\n }, []);\n\n const validator = useCallback(\n (file: File) => {\n const result: FileError | FileError[] | null = [];\n if (validatorExt) {\n validatorExt.forEach(validatorFn => {\n const error = validatorFn(file);\n if (Array.isArray(error)) {\n result.push(...error);\n } else if (error) result.push(error);\n });\n }\n if (result.length > 0) return result;\n\n return null;\n },\n\n [validatorExt]\n );\n const acceptFile = acceptFormat.validate.map(type => [`image/${type}`, []]);\n const { getRootProps, getInputProps, isDragActive, acceptedFiles, open } = useDropzone({\n onDropAccepted,\n onDropRejected,\n accept: Object.fromEntries(acceptFile),\n maxFiles: 1,\n maxSize: maxFileSize?.validate,\n noClick: isDisabled,\n noDrag: isDisabled,\n validator,\n });\n\n const renderHelperText = () => {\n if (Array.isArray(helperText)) {\n return (\n <UnorderedList\n pl={2}\n fontSize={12}\n color=\"black.medium\"\n data-test-id=\"CT_component_base-image-uploader_helperText\"\n >\n {helperText.map(text => (\n <ListItem key={text}>{text}</ListItem>\n ))}\n </UnorderedList>\n );\n }\n\n return helperText;\n };\n\n const renderErrorText = (text: string | undefined) => (\n <Box mb={2}>\n <Text textStyle=\"text.xs\" color=\"danger.500\">\n {text}\n </Text>\n </Box>\n );\n\n const handleRemove = (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n e.stopPropagation();\n setFilePreview(undefined);\n onHandleUploadFile?.(null, null);\n acceptedFiles.pop();\n };\n\n /**\n * Immediately set file preview if value exist\n */\n useEffect(() => {\n if (value) {\n if (typeof value === 'string') {\n setFilePreview(value);\n } else {\n setFilePreview(URL.createObjectURL(value));\n }\n } else {\n setFilePreview(undefined);\n acceptedFiles.pop();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n\n const isSmall = size === 'sm';\n const color = isDisabled ? 'neutral.500' : 'primary.500';\n const containerHeight = !isSmall ? '160px' : '120px';\n const cursorType = filePreview ? 'initial' : 'pointer';\n\n return (\n <FormControl isRequired={isRequired}>\n {label && typeof label === 'string' ? (\n // eslint-disable-next-line react/jsx-no-useless-fragment\n <FormLabel requiredIndicator={<></>} fontSize=\"text.sm\">\n {isRequired && <RequiredIndicator mr={1} ml={0} />}\n {label}\n </FormLabel>\n ) : (\n label\n )}\n <Flex\n minH={containerHeight}\n maxW={!isSmall ? 'full' : '120px'}\n mb={2}\n bg=\"white\"\n border=\"1px dashed\"\n rounded=\"sm\"\n borderColor={isError ? 'danger.500' : color}\n alignItems=\"center\"\n justifyContent=\"center\"\n cursor={isDisabled ? 'not-allowed' : cursorType}\n pos=\"relative\"\n _hover={{ bg: !filePreview && !isDisabled ? 'primary.50' : '' }}\n {...props}\n {...getRootProps()}\n >\n {filePreview && isShowCloseButton && (\n <Box position=\"absolute\" top={1} right={1}>\n <Button\n data-test-id={`CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ''}`}\n aria-label=\"remove-image\"\n rounded=\"full\"\n variant=\"icon\"\n bg=\"neutral.600\"\n _hover={{ bg: 'neutral.700' }}\n size=\"sm\"\n h=\"20px\"\n w=\"20px\"\n border=\"none\"\n zIndex={1}\n onClick={handleRemove}\n >\n <X size={3} color=\"white\" />\n </Button>\n </Box>\n )}\n\n {filePreview && (\n <Box w=\"full\">\n <Flex\n position=\"relative\"\n data-test-id={`CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ''}`}\n justify=\"center\"\n align=\"center\"\n >\n <ChakraImage\n h={size === 'lg' ? '120' : '100'}\n src={filePreview}\n alt=\"uploader-preview\"\n objectFit={'contain'}\n />\n </Flex>\n </Box>\n )}\n\n {!filePreview && (\n <>\n {isDragActive ? (\n <Text>{dragActiveText ?? messages.dragActive}</Text>\n ) : (\n <Flex gap={2} flexDirection=\"column\" alignItems=\"center\" color={isError ? 'danger.500' : color}>\n {size === 'sm' && <Plus size={6} color={color} />}\n <Box>\n {!filePreview && (\n <Heading\n fontWeight=\"400\"\n fontSize={size === 'sm' ? 'text.md' : 'text.xl'}\n mb={size === 'sm' ? '0' : '2'}\n textAlign=\"center\"\n >\n {uploadFileText && size === 'lg' ? uploadFileText : 'Upload'}\n </Heading>\n )}\n\n {size === 'lg' && (\n <Text fontSize={12}>\n {filePreview\n ? dragReplaceText ?? messages.dragReplace\n : dragInActiveText ?? messages.dragInActive}\n </Text>\n )}\n </Box>\n </Flex>\n )}\n </>\n )}\n </Flex>\n <input\n {...getInputProps()}\n data-test-id={`CT_component_base-image-uploader_change-img${testId ? `_${testId}` : ''}`}\n />\n {filePreview && !isSmall && (\n <Flex align=\"center\" justify=\"center\" my={2}>\n {isShowReupload && (\n <Button\n data-test-id={`CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ''}`}\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n onClick={open}\n >\n Ubah Foto\n </Button>\n )}\n </Flex>\n )}\n {renderErrorText(errorText)}\n {renderHelperText()}\n </FormControl>\n );\n};\n\nexport default Uploader;\n","/* eslint-disable prefer-destructuring */\n/* eslint-disable no-underscore-dangle */\nexport const ONE_MEGA_BYTE = 1000000;\nexport const messages = {\n dragActive: 'Drop file disini...',\n dragInActive: `(Klik atau drag untuk input file)`,\n dragReplace: `(Klik atau drag untuk mengganti file)`,\n replaceFile: 'Ganti File',\n uploadFile: 'Upload File',\n};\n\nexport const IMG_EXT = {\n jpg: 'jpg',\n jpeg: 'jpeg',\n png: 'png',\n gif: 'gif',\n} as const;\n\nexport const DEFAULT_IMAGE_MIME_TYPE = [IMG_EXT.jpg, IMG_EXT.jpeg, IMG_EXT.png, IMG_EXT.gif];\n\nexport const concatList = (list: string[]) => {\n let _concatedList = '';\n if (list.length > 1) {\n _concatedList = `${list.slice(0, -1).join(', ')} dan ${list[list.length - 1]}`;\n } else {\n _concatedList = list[0];\n }\n return _concatedList;\n};\n\nexport const formatValidationMessage = (extension: string[]) =>\n `Foto harus dalam format ${concatList(extension.map(ext => `.${ext}`))}.`;\n","enum ErrorCode {\n FileInvalidType = 'file-invalid-type',\n FileTooLarge = 'file-too-large',\n FileTooSmall = 'file-too-small',\n TooManyFiles = 'too-many-files',\n FileInvalidDimension = 'file-invalid-dimension',\n}\nexport default ErrorCode;\n","/* eslint-disable import/prefer-default-export */\nimport type { FileRejection } from 'react-dropzone';\n\nimport { formatValidationMessage } from '../constants';\nimport type { UploaderProps } from '../types';\nimport ErrorCode from './error-code';\n\nexport const defaultOnHandleRejections = (\n fileRejection: FileRejection[],\n config: Pick<UploaderProps, 'acceptFormat' | 'maxFileSize'>,\n handleRejection: (message: string, file: File, image: HTMLImageElement | null) => void\n) => {\n const { file, errors } = fileRejection[0];\n switch (errors[0].code) {\n case ErrorCode.FileInvalidType: {\n const fileFormat = file.name.split('.').pop() as string;\n if (!config?.acceptFormat) return;\n\n // validate file format\n if (!config?.acceptFormat?.validate.includes(fileFormat)) {\n handleRejection(\n config.acceptFormat?.message ?? formatValidationMessage(config.acceptFormat?.validate),\n file,\n null\n );\n }\n break;\n }\n case ErrorCode.FileTooLarge: {\n if (config.maxFileSize) {\n handleRejection(config.maxFileSize.message, file, null);\n }\n break;\n }\n default:\n handleRejection(errors[0].message, file, null);\n break;\n }\n};\n","/* eslint-disable import/prefer-default-export */\ninterface ImageRes {\n width: number;\n height: number;\n}\nexport const isRatioEqual = (base: ImageRes, img: ImageRes) => {\n const baseRatio = (base.width / base.height).toFixed(2);\n const imgRatio = (img.width / img.height).toFixed(2);\n return baseRatio === imgRatio;\n};\n","/* eslint-disable import/prefer-default-export */\nimport type { FileError } from 'react-dropzone';\n\nimport ErrorCode from '../utils/error-code';\nimport { isRatioEqual } from '../utils/is-ratio-equal';\n\n/**\n * @param dimension [[width, height]]\n * @param message\n */\nexport const dimensionValidator: (dimension: [number, number], message?: string) => (file: File) => FileError | null = (\n dimension,\n message\n) => {\n return (file: File) => {\n const imageUrl = URL.createObjectURL(file);\n const img = new Image();\n\n img.src = imageUrl as string;\n\n img.onload = () => {};\n const isRatioValid = isRatioEqual(\n { width: dimension[0], height: dimension[1] },\n { width: img.width, height: img.height }\n );\n\n if (isRatioValid) {\n return null;\n }\n\n return {\n code: ErrorCode.FileInvalidDimension,\n message: message ?? 'File has invalid dimension',\n };\n };\n};\n","export * from './accordion';\nexport * from './alert';\nexport * from './anchor';\nexport * from './badge';\nexport * from './breadcrumb';\nexport * from './button';\nexport * from './card';\nexport * from './checkbox';\nexport * from './chips';\nexport * from './counter';\nexport * from './data-table';\nexport * from './datepicker';\nexport * from './dialog';\nexport * from './empty-state';\nexport * from './field';\nexport * from './form';\nexport * from './header';\nexport * from './image';\nexport * from './layouting';\nexport * from './list';\nexport * from './loader';\nexport * from './modal';\nexport * from './nav-item';\nexport * from './navigation';\nexport * from './pagination';\nexport * from './pin-input';\nexport * from './popover';\nexport * from './progress';\nexport * from './radio';\nexport * from './rating';\nexport * from './select';\nexport * from './sidebar';\nexport * from './switch';\nexport * from './table';\nexport * from './tabs';\nexport * from './text';\nexport * from './time-input';\nexport * from './toast';\nexport * from './tooltip';\nexport * from './uploader';\nexport {\n Avatar,\n AvatarBadge,\n AvatarBadgeProps,\n AvatarGroup,\n AvatarGroupProps,\n AvatarProps,\n Collapse,\n CollapseProps,\n Fade,\n FadeProps,\n Hide,\n HideProps,\n Img,\n ImgProps,\n ScaleFade,\n ScaleFadeProps,\n Show,\n ShowProps,\n Slide,\n SlideFade,\n SlideFadeProps,\n SlideProps,\n Step,\n StepDescription,\n StepIcon,\n StepIndicator,\n StepNumber,\n Stepper,\n StepSeparator,\n StepStatus,\n StepTitle,\n useBreakpoint,\n UseBreakpointOptions,\n useColorModePreference,\n useImage,\n UseImageProps,\n UseImageReturn,\n UseMediaQueryOptions,\n useQuery,\n UseQueryProps,\n useSteps,\n VisuallyHidden,\n VisuallyHiddenInput,\n} from '@chakra-ui/react';\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n extendTheme as _chakraExtendTheme,\n isChakraTheme,\n mergeThemeOverride,\n type ThemeConfig,\n type ThemeOverride,\n} from '@chakra-ui/react';\n\nimport * as components from './components';\n\nconst config: ThemeConfig = {\n initialColorMode: 'light',\n useSystemColorMode: false,\n};\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isFunction<T extends Function = Function>(value: any): value is T {\n return typeof value === 'function';\n}\n\nfunction pipe<R>(...fns: Array<(a: R) => R>) {\n return (v: R) => fns.reduce((a, b) => b(a), v);\n}\n\nexport const createExtendTheme = (theme: Record<string, any>) => {\n return function extendTheme(\n ...extensions: Array<Record<string, any> | ((theme: Record<string, any>) => Record<string, any>)>\n ): Record<string, any> {\n let overrides = [...extensions];\n let activeTheme = extensions[extensions.length - 1];\n\n if (\n isChakraTheme(activeTheme) &&\n // this ensures backward compatibility\n // previously only `extendTheme(override, activeTheme?)` was allowed\n overrides.length > 1\n ) {\n overrides = overrides.slice(0, overrides.length - 1);\n } else {\n activeTheme = theme;\n }\n\n return pipe(\n ...overrides.map(\n extension => (prevTheme: any) =>\n isFunction(extension) ? (extension as any)(prevTheme) : mergeThemeOverride(prevTheme, extension)\n )\n )(activeTheme);\n };\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getTheme = (foundations: Record<string, any>) => {\n return _chakraExtendTheme({\n ...foundations,\n components: {\n ...components,\n },\n styles: {\n global: () => ({\n body: {\n background: 'bg-default',\n fontSize: 'text.sm',\n color: 'black.high',\n },\n }),\n },\n config,\n });\n};\n\nconst theme = _chakraExtendTheme(<ThemeOverride>{\n components: {\n ...components,\n },\n styles: {\n global: {\n '*::-webkit-scrollbar-thumb': {\n background: 'neutral.400',\n },\n body: {\n fontSize: 'text.sm',\n color: 'black.high',\n },\n },\n },\n config,\n});\n\ntype Theme = typeof theme;\n\nexport type { Theme };\nexport { theme };\nexport { ThemeTypings } from '@chakra-ui/styled-system';\n","export { default as Accordion } from './accordion';\r\nexport { default as Alert } from './alert';\r\nexport { default as Badge } from './badge';\r\nexport { default as Button } from './button';\r\nexport { default as Card } from './card';\r\nexport { default as Checkbox } from './checkbox';\r\nexport { default as Tag } from './chips';\r\nexport { default as FormLabel } from './form-label';\r\nexport { default as Input } from './input';\r\nexport { default as LoaderStyle } from './loader';\r\nexport { default as Modal } from './modal';\r\nexport { default as Popover } from './popover';\r\nexport { default as Radio } from './radio';\r\nexport { default as Switch } from './switch';\r\nexport { default as Table } from './table';\r\nexport { default as Tabs } from './tabs';\r\nexport { default as Textarea } from './textarea';\r\nexport { default as Tooltip } from './tooltip';\r\n","import { accordionAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\n\nconst baseStyleContainer = defineStyle({\n border: 'none',\n});\n\nconst baseStyleButton = defineStyle({\n height: 14,\n transitionProperty: 'common',\n transitionDuration: 'normal',\n gap: 4,\n fontSize: 'text.md',\n bg: 'neutral.50',\n _expanded: {\n bg: 'neutral.100',\n },\n _focusVisible: {\n bg: 'neutral.100',\n },\n _hover: {\n bg: 'neutral.100',\n '.eye-icon': {\n display: 'block',\n opacity: 1,\n visibility: 'visible',\n },\n },\n _disabled: {\n opacity: 0.4,\n cursor: 'not-allowed',\n },\n py: 2,\n px: 4,\n position: 'relative',\n '.eye-icon': {\n visibility: 'hidden',\n },\n});\n\nconst baseStylePanel = defineStyle({\n pt: '2',\n px: '4',\n pb: '5',\n});\n\nconst baseStyleIcon = defineStyle({\n fontSize: '1.25em',\n boxSize: 6,\n p: 1,\n});\n\nconst baseStyle = definePartsStyle({\n container: baseStyleContainer,\n button: baseStyleButton,\n panel: baseStylePanel,\n icon: baseStyleIcon,\n});\n\nconst collapseStyleButton = defineStyle({\n height: 13,\n borderRadius: 'sm',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'neutral.300',\n bg: 'neutral.50',\n _expanded: {\n bg: 'neutral.50',\n },\n});\n\nconst collapseStylePanel = defineStyle({\n py: 0,\n pr: 0,\n pl: 12,\n borderBottomRadius: 'sm',\n overflow: 'hidden',\n backgroundColor: 'neutral.200',\n});\nconst collapse = definePartsStyle({\n button: collapseStyleButton,\n panel: collapseStylePanel,\n});\n\nconst accordionTheme = defineMultiStyleConfig({\n baseStyle,\n variants: {\n collapse,\n },\n defaultProps: {\n variant: undefined,\n },\n});\nexport default accordionTheme;\n","import { alertAnatomy as parts } from '@chakra-ui/anatomy';\nimport type { StyleFunctionProps } from '@chakra-ui/styled-system';\nimport { createMultiStyleConfigHelpers, cssVar } from '@chakra-ui/styled-system';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\n\nconst $fg = cssVar('alert-fg');\nconst $bg = cssVar('alert-bg');\n\nconst baseStyle = definePartsStyle(props => {\n return {\n container: {\n bg: $bg.reference,\n px: '4',\n py: '2',\n borderRadius: 'sm',\n },\n title: {\n fontWeight: 'regular',\n textStyle: 'text.sm',\n marginEnd: '2',\n },\n description: {\n lineHeight: '6',\n },\n icon: {\n color: $fg.reference,\n flexShrink: 0,\n marginEnd: '3',\n w: '4',\n h: '4',\n },\n action: {\n color: props.colorScheme === 'neutral' && props.variant === 'light' ? 'primary.500' : 'inherit',\n '& +.chakra-alert__close': {\n ml: '3',\n },\n },\n close: {\n color: $fg.reference,\n w: '4',\n h: '4',\n },\n\n spinner: {\n color: $fg.reference,\n flexShrink: 0,\n marginEnd: '3',\n w: '5',\n h: '5',\n },\n };\n});\n\nfunction getBg(props: StyleFunctionProps) {\n const { colorScheme: c } = props;\n\n return {\n light: c === 'neutral' ? `colors.${c}.200` : `colors.${c}.50`,\n };\n}\n\nconst variantLight = definePartsStyle(props => {\n const { colorScheme: c } = props;\n const bg = getBg(props);\n return {\n container: {\n [$fg.variable]: c === 'neutral' ? `colors.black.high` : `colors.${c}.700`,\n [$bg.variable]: bg.light,\n color: $fg.reference,\n },\n };\n});\n\nconst variantSolid = definePartsStyle(props => {\n const { colorScheme: c } = props;\n return {\n container: {\n [$fg.variable]: `colors.white.high`,\n [$bg.variable]: c === 'neutral' ? `colors.${c}.700` : `colors.${c}.500`,\n },\n };\n});\n\nconst variants = {\n light: variantLight,\n solid: variantSolid,\n};\n\nconst alertTheme = defineMultiStyleConfig({\n baseStyle,\n variants,\n defaultProps: {\n variant: 'light',\n colorScheme: 'info',\n },\n});\n\nexport default alertTheme;\n","import type { ComponentStyleConfig } from '@chakra-ui/theme';\n\nconst Badge: ComponentStyleConfig = {\n baseStyle: {\n h: 'fit-content',\n display: 'inline-block',\n fontSize: 'text.xs',\n fontWeight: 'semibold',\n lineHeight: '14',\n textTransform: 'none',\n px: 2,\n py: '0.5',\n },\n variants: {\n 'primary-solid': {\n bg: 'primary.500',\n color: 'white',\n },\n 'success-solid': {\n bg: 'success.500',\n color: 'white',\n },\n 'info-solid': {\n bg: 'info.500',\n color: 'white',\n },\n 'warning-solid': {\n bg: 'warning.500',\n color: 'white',\n },\n 'danger-solid': {\n bg: 'danger.500',\n color: 'white',\n },\n 'neutral-solid': {\n bg: 'neutral.900',\n color: 'white',\n },\n 'disabled-solid': {\n bg: 'neutral.600',\n color: 'white',\n },\n 'primary-light': {\n bg: 'primary.50',\n color: 'primary.500',\n },\n 'success-light': {\n bg: 'success.50',\n color: 'success.500',\n },\n 'info-light': {\n bg: 'info.50',\n color: 'info.500',\n },\n 'warning-light': {\n bg: 'warning.50',\n color: 'warning.500',\n },\n 'danger-light': {\n bg: 'danger.50',\n color: 'danger.500',\n },\n 'neutral-light': {\n bg: 'neutral.200',\n color: 'neutral.900',\n },\n 'disabled-light': {\n bg: 'neutral.200',\n color: 'neutral.600',\n },\n },\n // The default size and variant values\n defaultProps: {\n variant: 'primary-solid',\n },\n};\n\nexport default Badge;\n","import { defineStyleConfig } from '@chakra-ui/styled-system';\r\nimport type { ComponentStyleConfig } from '@chakra-ui/theme';\r\n\r\n// You can also use the more specific type for\r\n// a single part component: ComponentSingleStyleConfig\r\n\r\nconst Button: ComponentStyleConfig = defineStyleConfig({\r\n // The styles all button have in common\r\n baseStyle: {\r\n fontSize: 'body.1',\r\n fontWeight: 'normal',\r\n px: 4,\r\n py: 2.5,\r\n borderRadius: 'sm',\r\n\r\n _disabled: {\r\n opacity: 1,\r\n bg: 'neutral.300',\r\n color: 'black.low',\r\n },\r\n\r\n _hover: {\r\n _disabled: {\r\n bg: 'neutral.300',\r\n color: 'black.low',\r\n },\r\n },\r\n },\r\n\r\n sizes: {\r\n lg: props => {\r\n const { variant } = props;\r\n const base = {\r\n fontSize: 'text.xl',\r\n h: 12,\r\n px: 4,\r\n py: 2.5,\r\n };\r\n const icon = {\r\n h: 10,\r\n w: 10,\r\n p: 0,\r\n };\r\n return variant === 'icon' ? icon : base;\r\n },\r\n md: props => {\r\n const { variant } = props;\r\n const base = {\r\n fontSize: 'text.md',\r\n h: 9,\r\n px: 3,\r\n py: 2,\r\n };\r\n const icon = {\r\n h: 9,\r\n w: 9,\r\n p: 0,\r\n };\r\n return variant === 'icon' ? icon : base;\r\n },\r\n sm: props => {\r\n const { variant } = props;\r\n const base = {\r\n fontSize: 'text.sm',\r\n h: '26px',\r\n lineHeight: 4,\r\n px: 2,\r\n py: '5px',\r\n };\r\n const icon = {\r\n h: '26px',\r\n w: '26px',\r\n p: 0,\r\n };\r\n return variant === 'icon' ? icon : base;\r\n },\r\n },\r\n\r\n variants: {\r\n primary: props => {\r\n const { isLoading } = props;\r\n\r\n const basePrimary = {\r\n color: 'white.high',\r\n bg: 'primary.500',\r\n _hover: {\r\n bg: 'primary.600',\r\n },\r\n _active: {\r\n bg: 'primary.700',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n _disabled: {\r\n bg: 'primary.500',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'primary.500',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : basePrimary;\r\n },\r\n secondary: props => {\r\n const { isLoading } = props;\r\n\r\n const baseSecondary = {\r\n color: 'primary.500',\r\n borderWidth: 1,\r\n borderStyle: 'inside',\r\n bg: 'white.high',\r\n borderColor: 'primary.500',\r\n _hover: {\r\n bg: 'primary.50',\r\n },\r\n _active: {\r\n bg: 'primary.100',\r\n },\r\n _disabled: {\r\n border: 0,\r\n },\r\n '.chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)': {\r\n marginEnd: '-1px',\r\n },\r\n '.chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)': {\r\n marginBottom: '-1px',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseSecondary,\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseSecondary;\r\n },\r\n\r\n tertiary: props => {\r\n const { isLoading } = props;\r\n\r\n const baseTertiary = {\r\n color: 'primary.500',\r\n _hover: {\r\n bg: 'primary.50',\r\n },\r\n _active: {\r\n bg: 'primary.100',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseTertiary,\r\n _disabled: {\r\n bg: 'transparent',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'transparent',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseTertiary;\r\n },\r\n\r\n danger: props => {\r\n const { isLoading } = props;\r\n\r\n const baseDanger = {\r\n bg: 'danger.500',\r\n color: 'white.high',\r\n _hover: {\r\n bg: 'danger.600',\r\n },\r\n _active: {\r\n bg: 'danger.700',\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseDanger,\r\n _disabled: {\r\n bg: 'danger.500',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'danger.500',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseDanger;\r\n },\r\n\r\n 'outline-danger': props => {\r\n const { isLoading } = props;\r\n\r\n const baseSecondary = {\r\n color: 'danger.500',\r\n borderWidth: 1,\r\n borderStyle: 'inside',\r\n bg: 'white.high',\r\n borderColor: 'danger.500',\r\n _hover: {\r\n bg: 'danger.50',\r\n },\r\n _active: {\r\n bg: 'danger.100',\r\n },\r\n _disabled: {\r\n border: 0,\r\n },\r\n };\r\n\r\n const disabledLoading = {\r\n ...baseSecondary,\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'white.high',\r\n },\r\n },\r\n };\r\n\r\n return isLoading ? disabledLoading : baseSecondary;\r\n },\r\n\r\n link: {\r\n bg: 'transparent',\r\n color: 'primary.500',\r\n _disabled: {\r\n opacity: '1',\r\n bg: 'transparent',\r\n color: 'black.medium',\r\n },\r\n _hover: {\r\n _disabled: {\r\n bg: 'transparent',\r\n color: 'black.medium',\r\n },\r\n },\r\n },\r\n\r\n outline: {\r\n bg: 'transparent',\r\n color: 'primary.500',\r\n },\r\n\r\n icon: {\r\n bg: 'neutral.50',\r\n minW: 0,\r\n borderColor: 'neutral.200',\r\n borderWidth: '1px',\r\n\r\n _active: {\r\n bg: 'neutral.500',\r\n borderColor: 'neutral.50',\r\n },\r\n _disabled: {\r\n bg: 'neutral.500',\r\n opacity: 0.3,\r\n borderColor: 'neutral.50',\r\n },\r\n _hover: {\r\n bg: 'neutral.400',\r\n _disabled: {\r\n bg: 'neutral.500',\r\n opacity: 0.3,\r\n borderColor: 'neutral.50',\r\n },\r\n },\r\n },\r\n },\r\n\r\n defaultProps: {\r\n size: 'md',\r\n variant: 'primary',\r\n colorScheme: 'primary',\r\n },\r\n});\r\n\r\nexport default Button;\r\n","import { defineStyleConfig } from '@chakra-ui/styled-system';\n\nconst CardStyle = defineStyleConfig({\n baseStyle: props => {\n return {\n shadow: props.withShadow ? 'raised' : 'none',\n borderRadius: props.isRounded ? 'sm' : 'none',\n };\n },\n});\n\nexport default CardStyle;\n","import { checkboxAnatomy } from '@chakra-ui/anatomy';\r\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\r\n\r\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(checkboxAnatomy.keys);\r\n\r\nconst baseStyle = definePartsStyle({\r\n control: {\r\n borderRadius: 'sm',\r\n w: 4,\r\n h: 4,\r\n border: '1px solid',\r\n },\r\n icon: {\r\n color: 'neutral.50',\r\n },\r\n label: {\r\n textStyle: 'text.sm',\r\n color: 'black.high',\r\n ml: 2,\r\n },\r\n _disabled: {\r\n background: 'neutral.200',\r\n border: '0',\r\n borderColor: 'neutral.500',\r\n cursor: 'not-allowed',\r\n },\r\n});\r\n\r\nconst errors = definePartsStyle({\r\n control: {\r\n borderColor: 'danger.500',\r\n _checked: {\r\n borderColor: 'danger.500',\r\n backgroundColor: 'danger.500',\r\n _hover: {\r\n borderColor: 'danger.600',\r\n backgroundColor: 'danger.600',\r\n },\r\n },\r\n _indeterminate: {\r\n borderColor: 'danger.500',\r\n backgroundColor: 'danger.500',\r\n },\r\n },\r\n label: {\r\n textStyle: 'text.xs',\r\n },\r\n icon: {\r\n fontSize: '8px',\r\n },\r\n});\r\n\r\nconst unstyled = definePartsStyle({\r\n control: {\r\n borderColor: 'neutral.600',\r\n _checked: {\r\n borderColor: 'primary.500',\r\n backgroundColor: 'primary.500',\r\n _hover: {\r\n borderColor: 'primary.600',\r\n backgroundColor: 'primary.600',\r\n },\r\n _disabled: {\r\n backgroundColor: 'primary.500',\r\n borderColor: 'primary.500',\r\n opacity: 0.3,\r\n },\r\n },\r\n _disabled: {\r\n backgroundColor: 'neutral.200',\r\n borderColor: 'neutral.200',\r\n },\r\n _indeterminate: {\r\n borderColor: 'primary.500',\r\n backgroundColor: 'primary.500',\r\n _disabled: {\r\n backgroundColor: 'primary.500',\r\n borderColor: 'primary.500',\r\n opacity: 0.3,\r\n },\r\n },\r\n },\r\n label: {\r\n textStyle: 'text.xs',\r\n _disabled: {\r\n opacity: 1,\r\n },\r\n },\r\n icon: {\r\n fontSize: '8px',\r\n },\r\n});\r\n\r\nconst variants = {\r\n errors,\r\n unstyled,\r\n};\r\n\r\nconst Checkbox = defineMultiStyleConfig({\r\n baseStyle,\r\n variants,\r\n defaultProps: {\r\n variant: 'unstyled',\r\n },\r\n});\r\n\r\nexport default Checkbox;\r\n","import { tagAnatomy } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(tagAnatomy.keys);\n\nconst baseStyle = definePartsStyle({\n container: {\n px: 3,\n py: 1,\n color: 'primary.500',\n userSelect: 'none',\n boxShadow: 'none',\n border: '1px solid',\n borderColor: 'primary.500',\n bg: 'transparent',\n cursor: 'pointer',\n fontWeight: 400,\n },\n});\n\nconst solid = definePartsStyle({\n container: {\n bg: 'primary.500',\n color: 'white',\n },\n closeButton: {\n color: 'white',\n opacity: 1,\n },\n});\n\nconst outline = definePartsStyle({\n container: {\n bg: 'transparent',\n _hover: {\n bg: 'primary.50',\n },\n },\n closeButton: {\n color: 'primary.500',\n opacity: 1,\n },\n});\n\nconst disabled = definePartsStyle({\n container: {\n bg: 'neutral.200',\n color: 'black.low',\n borderColor: 'neutral.200',\n cursor: 'not-allowed',\n _hover: {\n bg: 'neutral.200',\n },\n },\n closeButton: {\n color: 'neutral.500',\n opacity: 1,\n },\n});\n\nconst Tag = defineMultiStyleConfig({\n baseStyle,\n sizes: {\n sm: {\n container: {\n textStyle: 'text.sm',\n },\n },\n md: {\n container: {\n textStyle: 'text.md',\n py: 2,\n },\n },\n },\n variants: {\n solid,\n outline,\n disabled,\n },\n});\n\nexport default Tag;\n","import { defineStyle, defineStyleConfig } from '@chakra-ui/styled-system';\r\n\r\nconst baseStyle = defineStyle({\r\n fontSize: 'field.sm',\r\n fontWeight: 'normal',\r\n marginEnd: 1,\r\n mb: 1,\r\n});\r\n\r\nconst FormLabel = defineStyleConfig({\r\n baseStyle,\r\n});\r\n\r\nexport default FormLabel;\r\n","import { inputAnatomy as parts } from '@chakra-ui/anatomy';\r\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\r\nimport { mode } from '@chakra-ui/theme-tools';\r\n\r\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\r\n\r\nconst baseStyle = definePartsStyle({\r\n field: {\r\n width: '100%',\r\n minWidth: 0,\r\n outline: 0,\r\n px: 2,\r\n py: 2,\r\n paddingInlineStart: 2,\r\n paddingInlineEnd: 2,\r\n position: 'relative',\r\n appearance: 'none',\r\n color: 'black.high',\r\n _disabled: {\r\n bg: 'neutral.300',\r\n border: 0,\r\n cursor: 'not-allowed',\r\n opacity: 1,\r\n boxShadow: 'none',\r\n color: 'black.medium',\r\n },\r\n _placeholder: {\r\n color: 'black.low',\r\n },\r\n },\r\n});\r\n\r\nconst size = {\r\n lg: defineStyle({\r\n textStyle: 'text.lg',\r\n h: 12,\r\n borderRadius: 'sm',\r\n }),\r\n md: defineStyle({\r\n textStyle: 'text.md',\r\n h: 10,\r\n borderRadius: 'sm',\r\n }),\r\n sm: defineStyle({\r\n textStyle: 'text.sm',\r\n h: 9.5,\r\n borderRadius: 'sm',\r\n }),\r\n xs: defineStyle({\r\n textStyle: 'text.sm',\r\n p: 1,\r\n h: 5.5,\r\n borderRadius: 'sm',\r\n }),\r\n};\r\n\r\nconst sizes = {\r\n lg: definePartsStyle({\r\n field: size.lg,\r\n addon: size.lg,\r\n }),\r\n md: definePartsStyle({\r\n field: size.md,\r\n addon: size.md,\r\n }),\r\n sm: definePartsStyle({\r\n field: size.sm,\r\n addon: size.sm,\r\n }),\r\n xs: definePartsStyle({\r\n field: size.xs,\r\n addon: size.xs,\r\n }),\r\n};\r\n\r\nconst outline = definePartsStyle(props => {\r\n const field = {\r\n border: 0,\r\n outline: 0,\r\n bg: mode('white', 'inherit')(props),\r\n color: mode('inherit', 'white')(props),\r\n\r\n _hover: {\r\n borderColor: mode('neutral.400', 'inherit')(props),\r\n },\r\n _invalid: {\r\n boxShadow: 'none',\r\n },\r\n _focusVisible: {\r\n zIndex: 1,\r\n boxShadow: 'none',\r\n },\r\n };\r\n\r\n return {\r\n field,\r\n };\r\n});\r\n\r\nconst unstyled = definePartsStyle({\r\n field: {\r\n bg: 'transparent',\r\n px: '0',\r\n height: 'auto',\r\n },\r\n addon: {\r\n bg: 'transparent',\r\n px: '0',\r\n height: 'auto',\r\n },\r\n});\r\n\r\nconst variants = {\r\n outline,\r\n unstyled,\r\n};\r\n\r\nconst Input = defineMultiStyleConfig({\r\n baseStyle,\r\n sizes,\r\n variants,\r\n defaultProps: {\r\n size: 'sm',\r\n variant: 'outline',\r\n },\r\n});\r\n\r\nexport default Input;\r\n","/* eslint-disable prefer-destructuring */\nimport { defineStyleConfig } from '@chakra-ui/styled-system';\nimport { keyframes } from '@emotion/react';\n\nconst rotate = keyframes({\n '0%': {\n transform: 'rotate(0deg)',\n },\n '100%': {\n transform: 'rotate(360deg)',\n },\n});\n\nconst getLoaderColor = (color: string) => {\n if (!color) {\n return 'var(--chakra-colors-white-high)';\n }\n\n const colorValue = color.split('.');\n let backgroundColor: string;\n\n switch (colorValue.length) {\n case 1:\n backgroundColor = colorValue[0];\n break;\n case 2:\n backgroundColor = `var(--chakra-colors-${colorValue[0]}-${colorValue[1]})`;\n break;\n default:\n backgroundColor = 'var(--chakra-colors-white-high)';\n break;\n }\n\n if (color === 'primary') return 'var(--chakra-colors-primary-600)';\n if (color === 'danger') return 'var(--chakra-colors-danger-500)';\n if (color === 'warning') return 'var(--chakra-colors-warning-700)';\n return backgroundColor;\n};\n\nconst LoaderStyle = defineStyleConfig({\n baseStyle: props => {\n const colors = getLoaderColor(props.color);\n return {\n borderRadius: '50%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n animation: `${rotate} 1s linear infinite`,\n background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,\n ':before': {\n content: `''`,\n display: 'block',\n borderRadius: '50%',\n width: '6px',\n height: '6px',\n position: 'absolute',\n bottom: 0,\n background: colors,\n },\n };\n },\n sizes: {\n xs: {\n width: '12px',\n height: '12px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 1.4px),#000 0);',\n ':before': {\n width: '1.4px',\n height: '1.4px',\n },\n },\n sm: {\n width: '16px',\n height: '16px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 1.87px),#000 0);',\n ':before': {\n width: '1.87px',\n height: '1.87px',\n },\n },\n md: {\n width: '24px',\n height: '24px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 2.8px),#000 0);',\n ':before': {\n width: '2.8px',\n height: '2.8px',\n },\n },\n lg: {\n width: '50px',\n height: '50px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 5.83px),#000 0);',\n ':before': {\n width: '5.83px',\n height: '5.83px',\n },\n },\n xl: {\n width: '75px',\n height: '75px',\n WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 8.75px),#000 0);',\n ':before': {\n width: '8.75px',\n height: '8.75px',\n },\n },\n xxl: {\n width: '100px',\n height: '100px',\n WebkitMask: `radial-gradient(farthest-side,#0000 calc(100% - 11.67px),#000 0);`,\n ':before': {\n width: '11.67px',\n height: '11.67px',\n },\n },\n },\n defaultProps: {\n size: 'lg',\n },\n});\n\nexport default LoaderStyle;\n","import { modalAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst baseStyleHeader = defineStyle({\n borderTopRadius: 'sm',\n bg: 'neutral.200',\n px: 4,\n py: 2,\n fontSize: 'text.lg',\n fontWeight: 'normal',\n lineHeight: 24,\n textStyle: 'text.lg',\n});\n\nconst baseStyleCloseButton = defineStyle({\n p: 1,\n top: 2,\n right: 2,\n bg: 'white',\n fontSize: '9px',\n w: 6,\n h: 6,\n borderRadius: 'sm',\n});\n\nconst baseStyleBody = defineStyle({\n bg: 'white',\n p: 4,\n});\n\nconst baseStyleFooter = defineStyle({\n p: 4,\n bg: 'neutral.200',\n borderBottomRadius: 'sm',\n});\n\nconst baseStyle = definePartsStyle({\n header: baseStyleHeader,\n closeButton: baseStyleCloseButton,\n body: baseStyleBody,\n footer: baseStyleFooter,\n});\n\nconst sizes = {\n sm: {\n dialog: { minW: 400 },\n closeButton: {\n size: 'sm',\n },\n },\n md: {\n dialog: { minW: 600 },\n closeButton: {\n size: 'sm',\n },\n },\n lg: {\n dialog: { minW: 800 },\n closeButton: {\n size: 'xl',\n },\n },\n};\n\nexport const modalTheme = defineMultiStyleConfig({\n baseStyle,\n sizes,\n defaultProps: { size: 'md' },\n});\n\nexport default modalTheme;\n","import { popoverAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);\nconst baseStyle = definePartsStyle({\n content: {\n bg: 'white',\n },\n});\nconst popoverTheme = defineMultiStyleConfig({ baseStyle });\n\nexport default popoverTheme;\n","import { radioAnatomy } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/react';\n\nconst { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(radioAnatomy.keys);\n\nconst baseStyle = definePartsStyle({\n control: {\n border: '1px solid',\n width: 4,\n height: 4,\n },\n label: {\n marginLeft: 2,\n textStyle: 'text.sm',\n color: 'black.high',\n _disabled: {\n opacity: 1,\n color: 'black.medium',\n },\n },\n});\n\nconst errors = definePartsStyle({\n control: {\n borderColor: 'danger.500',\n _checked: {\n borderColor: 'danger.500',\n bg: 'white',\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'danger.500',\n },\n _hover: {\n borderColor: 'danger.500',\n bg: 'neutral.200',\n },\n _disabled: {\n borderColor: 'danger.500',\n bg: 'white.high',\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'primary.500',\n opacity: 0.3,\n },\n },\n },\n _disabled: {\n borderColor: 'danger.500',\n bg: 'neutral.200',\n },\n },\n label: {\n textStyle: 'text.sm',\n },\n});\n\nconst unstyled = definePartsStyle({\n control: {\n borderColor: 'neutral.600',\n _checked: {\n borderColor: 'primary.500',\n bg: 'white',\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'primary.500',\n },\n _hover: {\n borderColor: 'primary.500',\n bg: 'transparent',\n },\n _disabled: {\n borderColor: 'primary.500',\n bg: 'white.high',\n opacity: 0.3,\n _before: {\n h: 2.5,\n w: 2.5,\n bg: 'primary.500',\n },\n },\n },\n _disabled: {\n borderColor: 'neutral.200',\n bg: 'neutral.200',\n },\n },\n label: {\n textStyle: 'text.sm',\n },\n});\n\nconst variants = {\n errors,\n unstyled,\n};\n\nconst Radio = defineMultiStyleConfig({\n baseStyle,\n variants,\n defaultProps: {\n variant: 'unstyled',\n },\n});\n\nexport default Radio;\n","import { switchAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\nimport { calc, cssVar } from '@chakra-ui/theme-tools';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst $width = cssVar('switch-track-width');\nconst $height = cssVar('switch-track-height');\nconst $diff = cssVar('switch-track-diff');\nconst diffValue = calc.subtract($width, $height);\nconst $translateX = cssVar('switch-thumb-x');\n\nconst baseStyleThumb = defineStyle({\n bg: 'white',\n transitionProperty: 'transform',\n transitionDuration: 'normal',\n borderRadius: 'inherit',\n width: [$height.reference],\n height: [$height.reference],\n _checked: {\n transform: `translateX(${$translateX.reference})`,\n },\n});\n\nconst baseStyle = definePartsStyle(() => ({\n container: {\n [$diff.variable]: diffValue,\n [$translateX.variable]: $diff.reference,\n _rtl: {\n [$translateX.variable]: calc($diff).negate().toString(),\n },\n },\n track: {\n bg: 'neutral.400',\n p: 1,\n _checked: {\n bg: 'primary.500',\n _disabled: {\n bg: 'neutral.600',\n },\n },\n _disabled: {\n bg: 'neutral.500',\n opacity: '100%',\n },\n },\n thumb: baseStyleThumb,\n}));\n\nconst sizes = {\n sm: definePartsStyle({\n container: {\n [$width.variable]: '1.875rem',\n [$height.variable]: '0.8rem',\n },\n thumb: {\n [$width.variable]: '0.8rem',\n [$height.variable]: '0.8rem',\n },\n }),\n md: definePartsStyle({\n container: {\n [$width.variable]: '2.375rem',\n [$height.variable]: '1rem',\n },\n thumb: {\n [$width.variable]: '1rem',\n [$height.variable]: '1rem',\n },\n }),\n lg: definePartsStyle({\n container: {\n [$width.variable]: '3.25rem',\n [$height.variable]: '1.375rem',\n },\n thumb: {\n [$width.variable]: '1.375rem',\n [$height.variable]: '1.375rem',\n },\n }),\n};\n\nconst Switch = defineMultiStyleConfig({\n baseStyle,\n sizes,\n defaultProps: {\n size: 'md',\n },\n});\n\nexport default Switch;\n","import { tableAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';\nimport { mode } from '@chakra-ui/theme-tools';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst baseStyle = definePartsStyle({\n table: {\n fontVariantNumeric: 'lining-nums tabular-nums',\n borderCollapse: 'separate',\n borderSpacing: 0,\n width: 'full',\n tableLayout: 'fixed',\n '&:not([data-loading=true])': {\n tbody: {\n tr: {\n _hover: {\n td: {\n backgroundColor: 'neutral.100',\n },\n },\n '&[data-active=\"true\"]': {\n td: {\n backgroundColor: 'neutral.200',\n },\n },\n },\n },\n },\n },\n th: {\n fontFamily: 'heading',\n fontWeight: 'semibold',\n textTransform: 'uppercase',\n letterSpacing: 'normal',\n textAlign: 'start',\n height: '50px',\n color: 'black.high',\n fontSize: 'text.sm',\n lineHeight: '18px',\n backgroundColor: 'neutral.50',\n },\n\n td: {\n // backgroundColor: 'neutral.50',\n textAlign: 'start',\n minHeight: '56px',\n\n _disabled: {\n opacity: 0.5,\n },\n },\n caption: {\n mt: 4,\n fontFamily: 'heading',\n textAlign: 'center',\n fontWeight: 'medium',\n },\n});\n\nconst numericStyles = defineStyle({\n '&[data-is-numeric=true]': {\n textAlign: 'end',\n },\n});\n\nconst variantSimple = definePartsStyle(props => {\n const { colorScheme: c } = props;\n\n return {\n th: {\n color: 'black.high',\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n td: {\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n caption: {\n color: mode('gray.600', 'gray.100')(props),\n },\n tfoot: {\n tr: {\n '&:last-of-type': {\n th: { borderBottomWidth: 0 },\n },\n },\n },\n };\n});\n\nconst variantStripe = definePartsStyle(props => {\n const { colorScheme: c } = props;\n\n return {\n th: {\n color: 'black.high',\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n td: {\n borderBottom: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n ...numericStyles,\n },\n caption: {\n color: mode('gray.600', 'gray.100')(props),\n },\n tbody: {\n tr: {\n '&:nth-of-type(odd)': {\n 'th, td': {\n borderBottomWidth: '1px',\n borderColor: mode(`${c}.100`, `${c}.700`)(props),\n },\n td: {\n background: mode(`${c}.100`, `${c}.700`)(props),\n },\n },\n },\n },\n tfoot: {\n tr: {\n '&:last-of-type': {\n th: { borderBottomWidth: 0 },\n },\n },\n },\n };\n});\n\nconst variants = {\n simple: variantSimple,\n striped: variantStripe,\n unstyled: defineStyle({}),\n};\n\nconst sizes = {\n sm: definePartsStyle({\n th: {\n px: '2',\n py: '4',\n lineHeight: '4',\n fontSize: 'xs',\n },\n td: {\n px: '2',\n py: '4',\n fontSize: 'sm',\n lineHeight: '4',\n },\n caption: {\n px: '4',\n py: '2',\n fontSize: 'xs',\n },\n }),\n md: definePartsStyle({\n th: {\n px: '2',\n py: '4',\n lineHeight: '4',\n fontSize: 'xs',\n },\n td: {\n px: '2',\n py: '4',\n lineHeight: '5',\n },\n caption: {\n px: '6',\n py: '2',\n fontSize: 'sm',\n },\n }),\n lg: definePartsStyle({\n th: {\n px: '2',\n py: '4',\n lineHeight: '5',\n fontSize: 'sm',\n },\n td: {\n px: '2',\n py: '4',\n lineHeight: '6',\n },\n caption: {\n px: '6',\n py: '2',\n fontSize: 'md',\n },\n }),\n};\n\nconst tableTheme = defineMultiStyleConfig({\n baseStyle,\n variants,\n sizes,\n defaultProps: {\n variant: 'simple',\n size: 'md',\n colorScheme: 'gray',\n },\n});\nexport default tableTheme;\n","import { tabsAnatomy as parts } from '@chakra-ui/anatomy';\nimport { createMultiStyleConfigHelpers } from '@chakra-ui/styled-system';\n\nconst { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys);\n\nconst variantLine = definePartsStyle(props => {\n const { orientation } = props;\n const isVertical = orientation === 'vertical';\n const borderProp = isVertical ? 'borderStart' : 'borderBottom';\n const marginProp = isVertical ? 'marginStart' : 'marginBottom';\n\n return {\n tablist: {\n [borderProp]: '1px solid',\n borderColor: 'inherit',\n },\n tab: {\n [borderProp]: '1px solid',\n borderColor: 'neutral.400',\n [marginProp]: '-1px',\n },\n };\n});\n\nconst variantUnstyled = definePartsStyle({});\n\nconst variants = {\n line: variantLine,\n unstyled: variantUnstyled,\n};\n\nconst tabsTheme = defineMultiStyleConfig({\n variants,\n defaultProps: {\n size: 'md',\n variant: 'line',\n },\n});\n\nexport default tabsTheme;\n","import { defineStyle, defineStyleConfig } from '@chakra-ui/react';\nimport type { TextAreaProps } from 'packages/internal-ui/src/components/form';\n\nconst getProps = (props: TextAreaProps) => {\n const { isError, isSuccess, isDisabled } = props;\n\n let borderColor = 'neutral.400';\n let focusBorderColor = 'primary.500';\n\n if (isError) {\n borderColor = 'danger.500';\n focusBorderColor = 'danger.500';\n } else if (isSuccess) {\n borderColor = 'success.500';\n focusBorderColor = 'success.500';\n } else if (isDisabled && !isError && !isSuccess) {\n borderColor = 'neutral.400';\n focusBorderColor = 'danger.500';\n }\n\n return {\n focusBorderColor,\n borderColor,\n };\n};\n\nconst outline = defineStyle(props => {\n const { focusBorderColor, borderColor } = getProps(props);\n\n return {\n background: 'white.high',\n color: 'black.high',\n borderColor,\n fontSize: 'text.sm',\n padding: 2,\n borderRadius: 'sm',\n borderWidth: '1px',\n outline: 'none',\n\n _disabled: {\n opacity: 1,\n color: 'black.medium',\n background: 'neutral.300',\n },\n _placeholder: {\n color: 'black.low',\n },\n _hover: {\n borderColor,\n },\n _focus: {\n outline: 'none',\n borderColor: focusBorderColor,\n boxShadow: 'none',\n },\n _focusVisible: {\n outline: 'none',\n borderColor: focusBorderColor,\n boxShadow: 'none',\n },\n _focusWithin: {\n outline: 'none',\n borderColor: focusBorderColor,\n boxShadow: 'none',\n },\n _invalid: {\n outline: 'none',\n borderColor: 'danger.500',\n boxShadow: 'none',\n },\n };\n});\n\nexport const Textarea = defineStyleConfig({\n variants: { outline },\n defaultProps: {\n variant: 'outline',\n },\n});\n\nexport default Textarea;\n","import type { ComponentStyleConfig } from '@chakra-ui/react';\nimport { cssVar, defineStyleConfig } from '@chakra-ui/react';\n\nconst $arrowBg = cssVar('popper-arrow-bg');\nconst baseStyle = {\n bg: 'neutral.700',\n textStyle: 'text.sm',\n fontSize: 'text.sm',\n [$arrowBg.variable]: 'var(--chakra-colors-neutral-700)',\n};\n\nconst Tooltip: ComponentStyleConfig = defineStyleConfig({ baseStyle });\n\nexport default Tooltip;\n","import type { AxiosRequestConfig } from 'axios';\nimport axios from 'axios';\nimport { useMemo } from 'react';\n\nimport { useInternalUI } from '../provider';\n\nexport default function useFetcher() {\n const { instance } = useInternalUI();\n const axiosInstance = useMemo(() => instance || axios, [instance]);\n\n const fetcher = async <TResponse = unknown>({ url, data, method, headers, ...config }: AxiosRequestConfig) => {\n const response = await axiosInstance.request<TResponse>({\n data,\n url,\n method,\n headers: {\n 'Content-Type': 'application/json; charset=utf-8',\n ...headers,\n },\n ...config,\n });\n return response;\n };\n\n return {\n fetcher,\n };\n}\n","import axios from 'axios';\nimport type { FC } from 'react';\nimport React, { createContext, useContext, useEffect, useMemo, useRef } from 'react';\nimport { ToastContainer } from 'react-toastify';\n\nimport type { ProviderContextObject, ProviderProps } from '../types';\n\nexport const ProviderContext = createContext<ProviderContextObject>({\n instance: undefined,\n});\n\nexport const useInternalUI = (): ProviderContextObject => {\n const { instance } = useContext(ProviderContext);\n return { instance };\n};\n\nconst Provider: FC<ProviderProps> = ({ children, config, requestInterceptors, responseInterceptors }) => {\n const instanceRef = useRef(axios.create(config));\n\n useEffect(() => {\n requestInterceptors?.forEach(interceptor => {\n instanceRef.current.interceptors.request.use(interceptor);\n });\n responseInterceptors?.forEach(interceptor => {\n instanceRef.current.interceptors.response.use(interceptor);\n });\n }, [requestInterceptors, responseInterceptors]);\n\n const provider = useMemo(() => ({ instance: instanceRef.current }), []);\n\n return (\n <ProviderContext.Provider value={provider}>\n <ToastContainer />\n {children}\n </ProviderContext.Provider>\n );\n};\n\nProvider.displayName = 'Provider';\n\nexport default Provider;\n","export { default as Provider } from './components/provider';\nexport * from './components/provider';\nexport {\n ChakraProvider,\n ChakraProviderProps,\n ColorMode,\n ColorModeScript,\n ColorModeScriptProps,\n} from '@chakra-ui/react';\n","export { default as useFetcher } from './useFetcher';\nexport {\n useBoolean,\n useClipboard,\n useColorMode,\n useColorModeValue,\n useConst,\n useControllableProp,\n useControllableState,\n useDimensions,\n useDisclosure,\n UseDisclosureProps,\n useMergeRefs,\n useOutsideClick,\n useTheme,\n useToken,\n} from '@chakra-ui/react';\n","export * from './components';\nexport * from './config';\nexport * from './hooks';\nexport * from './provider';\nexport * from './utils';\nexport { extendTheme, forwardRef } from '@chakra-ui/react';\n"],"mappings":";;;;;;;;;;AAAA,SAAS,WAAW;AACpB,SAAS,WAAW;AASd;AAPC,IAAM,eAAe,CAAC,EAAE,WAAW,OAAO,MAAuC;AACtF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS;AAAA,MACT,WAAU;AAAA,MACT,GAAI,aAAa,UAAU,EAAE,UAAU,YAAY,QAAQ,GAAG,SAAS,OAAO,IAAI,CAAC;AAAA,MAEpF,8BAAC,OAAI,MAAM,GAAG;AAAA;AAAA,EAChB;AAEJ;;;ACbA,SAAS,OAAAA,MAAK,6BAA6B;AAKhC,gBAAAC,YAAA;AAHJ,IAAM,qBAAqB,MAAM;AACtC,QAAM,EAAE,OAAO,IAAI,sBAAsB;AACzC,MAAI,QAAQ;AACV,WAAO,gBAAAA,KAACD,MAAA,EAAI,UAAS,YAAW,MAAM,GAAG,OAAM,OAAM,QAAO,QAAO,IAAG,eAAc;AAAA,EACtF;AACA,SAAO;AACT;;;ACKA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,yBAAAE;AAAA,EACA;AAAA,OACK;;;ACzBP,SAAS,UAAU;AAEnB,SAAS,QAAQ,YAAY,kBAAkB,2BAA2B;;;ACF1E,SAAS,qBAAqB;;;ACC9B,SAAS,eAAe,aAAa,YAAY;AAIxC,gBAAAC,YAAA;AADF,SAAS,YAAY;AAC1B,SAAO,gBAAAA,KAAC,eAAY,OAAM,WAAU,MAAM,GAAG;AAC/C;AAEO,SAAS,WAAW;AACzB,SAAO,gBAAAA,KAAC,QAAK,OAAM,WAAU,MAAM,GAAG;AACxC;AAEO,SAAS,cAAc;AAC5B,SAAO,gBAAAA,KAAC,iBAAc,OAAM,WAAU,MAAM,GAAG;AACjD;;;ADTO,IAAM,CAAC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ACA;AAAA,EACA;AAAA,EACA,YAAAC;AAAA,OACK;;;ACXP,SAAS,aAAa,cAAAC,oBAAkB;","names":["Box","jsx","useAccordionItemState","jsx","jsx","Alert","cx","forwardRef","Box","forwardRef","jsx","jsx","forwardRef","size","getLoaderColor","jsx","css","cx","cx","chakra","jsx","css","chakra","cx","cx","chakra","forwardRef","jsx","forwardRef","AlertDescription","chakra","cx","cx","chakra","jsx","css","chakra","cx","cx","chakra","forwardRef","jsx","forwardRef","AlertTitle","chakra","cx","cx","jsx","jsx","Box","jsx","spacing","IconButton","useStyleConfig","forwardRef","jsx","Box","forwardRef","Text","jsx","jsxs","Box","Box","jsx","jsxs","id","jsx","Box","useCheckbox","jsx","jsxs","size","Box","IconButton","Text","jsx","Box","Close","Eye","React","jsx","jsxs","React","size","outlineColor","focusColor","Box","Close","Eye","Box","React","jsx","jsxs","React","Box","FormControl","FormErrorMessage","FormHelperText","FormLabel","InputGroup","InputLeftAddon","InputLeftElement","InputRightAddon","InputRightElement","jsx","jsxs","size","disabled","Box","IconButton","Text","Box","Checkbox","Flex","Skeleton","React","jsx","jsxs","table","_a","_b","_c","_d","_e","FormControl","FormErrorMessage","FormHelperText","IconButton","cx","Close","buildLocalizeFn","monthValues","buildLocalizeFn","jsx","Flex","InputGroup","InputRightAddon","Text","React","jsx","jsxs","Fragment","jsx","jsxs","id","IconButton","Close","cx","FormControl","FormHelperText","FormErrorMessage","Box","Input","css","React","jsx","Box","React","jsx","jsxs","Box","React","Text","jsx","jsxs","Icon","Box","Button","Flex","Text","jsx","jsxs","jsx","EmptyState","Flex","HStack","Box","Image","useColorModeValue","jsx","Box","Flex","HStack","Popover","PopoverArrow","PopoverBody","PopoverContent","PopoverTrigger","Text","VStack","Link","cx","jsx","Fragment","jsx","jsxs","Fragment","jsx","jsxs","Popover","Box","HStack","VStack","Text","Flex","PopoverTrigger","PopoverContent","PopoverArrow","PopoverBody","Box","useColorMode","jsx","Box","Fragment","jsx","jsxs","Box","jsx","jsxs","Flex","HStack","Flex","jsx","Icon","Image","Box","Flex","HStack","Stack","VStack","IconButton","jsx","ModalBody","ModalFooter","ModalHeader","ModalOverlay","ModalCloseButton","Modal","ModalContent","Box","Button","Flex","Link","Popover","PopoverContent","PopoverTrigger","Portal","Text","useColorModeValue","Icon","css","Icon","jsx","Fragment","jsx","jsxs","Box","Flex","Popover","PopoverTrigger","Button","Portal","PopoverContent","useColorModeValue","Link","css","Text","Box","Button","Flex","Link","Popover","PopoverContent","PopoverTrigger","Text","Icon","Fragment","jsx","jsxs","mappingIcon","ChevronLeftIcon","Box","Text","useColorModeValue","Button","forwardRef","useColorModeValue","jsx","jsx","jsxs","jsx","jsxs","useColorModeValue","Box","ChevronLeftIcon","Text","Text","jsx","Box","Text","useColorModeValue","React","jsx","jsxs","Popover","PopoverArrow","PopoverBody","PopoverContent","PopoverTrigger","Portal","Box","Text","jsx","jsxs","Box","Stack","jsx","Box","Stack","Grid","jsx","Badge","Center","Flex","useColorMode","Icon","theme","theme","theme","jsx","Badge","Flex","Center","Select","useColorMode","useColorMode","jsx","useColorMode","useColorMode","jsx","useColorMode","useColorMode","jsx","useColorMode","Checkbox","Flex","Text","useColorMode","ReactSelect","Fragment","jsx","jsxs","Flex","Checkbox","Text","useColorMode","ReactSelect","Flex","jsx","Box","Flex","Text","motion","jsx","jsxs","Accordion","AccordionButton","AccordionItem","AccordionPanel","Box","Popover","PopoverBody","PopoverContent","PopoverHeader","PopoverTrigger","Portal","Text","Icon","motion","Fragment","jsx","jsxs","mappingIcon","Box","motion","Accordion","AccordionItem","Popover","PopoverTrigger","AccordionButton","Text","Portal","PopoverContent","PopoverHeader","PopoverBody","AccordionPanel","chakra","Flex","forwardRef","omitThemingProps","useCheckbox","useMultiStyleConfig","cx","Check","Close","useMemo","jsx","jsxs","Switch","spacing","Table","Tbody","Td","Th","Thead","Tr","Button","Flex","forwardRef","useMultiStyleConfig","jsx","jsxs","useTab","Link","Text","Box","Flex","forwardRef","Input","InputGroup","useEffect","useImperativeHandle","useEffect","useRef","useState","useState","useRef","useEffect","_a","Fragment","jsx","jsxs","forwardRef","Input","TimeInput","config","useEffect","useImperativeHandle","outlineColor","focusColor","Box","InputGroup","Flex","Box","chakra","Flex","Link","Close","Global","jsx","Styles","styles_default","Fragment","jsx","jsxs","Box","Close","styles_default","Flex","chakra","Link","id","Box","Button","Flex","FormControl","FormLabel","Heading","ListItem","RequiredIndicator","Text","UnorderedList","useCallback","useEffect","useState","ErrorCode","config","errors","Fragment","jsx","jsxs","size","useState","toast","useCallback","UnorderedList","text","ListItem","Box","Text","useEffect","FormControl","FormLabel","RequiredIndicator","Flex","Button","Heading","Avatar","Fade","VisuallyHidden","badge_default","button_default","card_default","checkbox_default","loader_default","switch_default","chips_default","textarea_default","parts","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","Badge","badge_default","Button","button_default","defineStyleConfig","card_default","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","variants","Checkbox","checkbox_default","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","Tag","chips_default","defineStyle","defineStyleConfig","baseStyle","FormLabel","parts","createMultiStyleConfigHelpers","defineStyle","definePartsStyle","defineMultiStyleConfig","baseStyle","sizes","outline","field","unstyled","variants","Input","defineStyleConfig","loader_default","parts","createMultiStyleConfigHelpers","defineStyle","defineMultiStyleConfig","definePartsStyle","baseStyle","sizes","parts","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","createMultiStyleConfigHelpers","definePartsStyle","defineMultiStyleConfig","baseStyle","errors","unstyled","variants","Radio","parts","createMultiStyleConfigHelpers","defineStyle","cssVar","defineMultiStyleConfig","definePartsStyle","baseStyle","sizes","Switch","switch_default","parts","createMultiStyleConfigHelpers","defineStyle","mode","defineMultiStyleConfig","definePartsStyle","baseStyle","variants","sizes","parts","createMultiStyleConfigHelpers","defineMultiStyleConfig","definePartsStyle","variants","defineStyle","defineStyleConfig","outline","textarea_default","cssVar","defineStyleConfig","baseStyle","Tooltip","theme","extendTheme","axios","useMemo","createContext","useEffect","useMemo","useRef","ToastContainer","jsx","jsxs","config","useMemo","axios","config","useColorMode","useColorModeValue","useDisclosure","useToken","forwardRef"]}
|