@6thbridge/hexa 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-lint.log +1 -1
- package/dist/index.d.mts +27 -1
- package/dist/index.d.ts +27 -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/dist/output.css +200 -0
- package/package.json +7 -5
package/dist/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/components/label/FormLabel.tsx","../src/components/label/index.tsx","../src/utils/index.ts","../src/components/loader/index.tsx","../src/components/button/index.tsx","../src/components/input/index.tsx","../src/components/form/ErrorMessage.tsx","../src/components/form/FormDescription.tsx","../src/components/password-input/index.tsx","../src/components/password-input/icons/Eye.tsx","../src/components/password-input/icons/EyeOff.tsx","../src/components/password-input/icons/Check.tsx","../src/components/password-input/icons/Fail.tsx","../src/components/textarea/index.tsx","../src/components/searcheable/index.tsx","../src/components/command/index.tsx","../src/components/dialog/index.tsx","../src/components/dialog/icon/CloseIcon.tsx","../src/components/popover/index.tsx","../src/components/scroll-area/index.tsx","../src/components/country/data.ts","../src/components/phone-input/index.tsx","../src/components/phone-input/Flag.tsx","../src/components/country/index.tsx","../src/components/select/index.tsx","../src/components/otp/index.tsx","../src/components/copyable-label/index.tsx","../src/components/debounced-input/index.tsx","../src/components/status/index.tsx","../src/components/table/index.tsx","../src/components/table/pagination/index.tsx","../src/components/table/pagination/utils.tsx","../src/components/table/TableBody.tsx","../src/components/dev-banner/index.tsx","../src/components/banner/index.tsx","../src/components/locale-selctor/icons/Check.tsx","../src/components/locale-selctor/icons/EnglishFlag.tsx","../src/components/locale-selctor/icons/FrenchFlag.tsx","../src/components/locale-selctor/icons/UpDownIcon.tsx","../src/components/locale-selctor/index.tsx","../src/actions/amount.action.ts","../src/actions/date.action.ts"],"sourcesContent":["import React from \"react\";\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Label } from \".\";\nimport { cn } from \"@/src/utils\";\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & {\n showAsterisk?: boolean;\n error?: string;\n formItemId?: string;\n }\n>(({ className, children, showAsterisk, error, ...props }, ref) => {\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-red-500\", className)}\n // htmlFor={formItemId}\n {...props}\n >\n {showAsterisk ? (\n <p>\n {children}\n <span className=\"text-red-500\">*</span>\n </p>\n ) : (\n children\n )}\n </Label>\n );\n});\n\nFormLabel.displayName = \"FormLabel\";\n\nexport { FormLabel };\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/utils\";\n\nconst labelVariants = cva(\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\ntype Status =\n | string\n | \"unpaid\"\n | \"partial-payment\"\n | \"active\"\n | \"paid\"\n | \"inactive\"\n | \"in-progress\"\n | \"failed\"\n | \"abandoned\"\n | \"success\";\n\ntype Variant = \"success\" | \"failed\" | \"pending\" | \"abandoned\";\ntype StatusVariantMap = Record<Status, Variant>;\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function areObjectsEqual<T extends object>(obj1: T, obj2: T): boolean {\n const keys1 = Object.keys(obj1);\n const keys2 = Object.keys(obj2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (const key of keys1) {\n const val1 = obj1[key as keyof T];\n const val2 = obj2[key as keyof T];\n\n if (\n typeof val1 === \"object\" &&\n val1 !== null &&\n typeof val2 === \"object\" &&\n val2 !== null\n ) {\n if (!areObjectsEqual(val1, val2)) {\n return false;\n }\n } else if (val1 !== val2) {\n return false;\n }\n }\n\n return true;\n}\n\nconst defaultStatusGroups: StatusVariantMap = {\n unpaid: \"pending\",\n \"partial-payment\": \"pending\",\n active: \"success\",\n paid: \"success\",\n inactive: \"abandoned\",\n \"in-progress\": \"pending\",\n failed: \"failed\",\n abandoned: \"abandoned\",\n success: \"success\",\n};\n\nexport const getStatusVariant = (\n status: Status,\n customGroups?: Partial<StatusVariantMap>,\n): Variant => {\n const mergedGroups = { ...defaultStatusGroups, ...customGroups };\n return mergedGroups[status] || \"pending\";\n};\n","type Colours = \"primary\" | \"secondary\";\n\nexport const Loader = ({\n size = 16,\n colour = \"primary\",\n}: {\n size?: number;\n colour?: Colours;\n}) => {\n return (\n <svg\n className=\"animate-spin\"\n width={size}\n height={size}\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <circle cx=\"10\" cy=\"10\" r=\"9.25\" stroke=\"transparent\" strokeWidth=\"1.5\" />\n <path\n d=\"M10 0.595792C10 0.266746 10.267 -0.00185055 10.5954 0.0177417C11.9786 0.100242 13.3318 0.469461 14.5682 1.1044C15.9816 1.83021 17.2016 2.88235 18.1273 4.17366C19.0531 5.46496 19.6578 6.95826 19.8913 8.52984C20.1249 10.1014 19.9807 11.706 19.4705 13.2108C18.9604 14.7155 18.0991 16.077 16.9579 17.1825C15.8167 18.288 14.4285 19.1056 12.9084 19.5677C11.3882 20.0298 9.77982 20.123 8.21646 19.8397C6.84883 19.5918 5.55009 19.0619 4.40196 18.2863C4.12931 18.1021 4.08072 17.7265 4.28083 17.4653C4.48094 17.2041 4.85388 17.1564 5.12801 17.3384C6.12474 18.0001 7.24768 18.4531 8.42898 18.6672C9.80606 18.9168 11.2228 18.8347 12.5618 18.4276C13.9008 18.0206 15.1236 17.3004 16.1288 16.3266C17.134 15.3528 17.8927 14.1536 18.342 12.8282C18.7914 11.5027 18.9185 10.0893 18.7127 8.70502C18.507 7.32071 17.9743 6.00535 17.1589 4.86792C16.3435 3.73048 15.2688 2.80371 14.0238 2.16439C12.9559 1.61596 11.789 1.29259 10.5954 1.21173C10.2671 1.18949 10 0.92484 10 0.595792Z\"\n fill={colour === \"primary\" ? \"#ffffff\" : \"currentColor\"}\n className=\"rounded\"\n />\n </svg>\n );\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/utils\";\nimport { Loader } from \"../loader\";\nimport { ButtonHTMLAttributes } from \"react\";\nimport { DetailedHTMLProps } from \"react\";\n\nconst buttonVariants = cva(\n \"overflow-hidden isolate inline-flex h-fit items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background dark:ring-offset-transparent transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:!pointer-events-none\",\n {\n variants: {\n variant: {\n primary:\n \"border-primary-main bg-primary-main hover:bg-primary-main/70 disabled:bg-primary-main/70 text-white font-bold\",\n danger:\n \"border-red-600 bg-red-600 hover:bg-red-600/70 disabled:bg-red-600/70 text-white font-bold\",\n neutral:\n \"!border-0 bg-transparent text-primary-main hover:opacity-80 disabled:opacity-60\",\n outlined:\n \"border border-primary-main text-primary-main hover:opacity-80 disabled:opacity-60\",\n \"danger-outlined\":\n \"border border-red-600 text-red-600 hover:opacity-80 disabled:opacity-60\",\n \"light-outlined\":\n \"border-white text-white hover:opacity-80 disabled:opacity-60\",\n \"dark-text\":\n \"border-transparent bg-transparent hover:bg-opacity-70 disabled:bg-opacity-70 text-black font-medium\",\n light:\n \"border-white bg-white hover:bg-opacity-70 disabled:bg-opacity-70 text-primary-main font-semibold\",\n },\n size: {\n // lg: \"h-15 px-8 items-center\",\n // sm: \"h-10 px-3.5 items-center text-sm\",\n default:\n \"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg\",\n sm: \"py-[0.375rem] px-[1rem] leading-[1rem] font-normal text-sm rounded-lg\",\n lg: \"py-[0.75rem] px-[1.5rem] text-[1rem] leading-[1.5rem] font-medium rounded-lg\",\n md: \"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg\",\n \"icon-sm\":\n \"h-[1.75rem] w-[1.75rem] flex justify-center items-center font-medium rounded-lg\",\n icon: \"h-[2.5rem] w-[2.75rem] flex justify-center items-center font-medium rounded-lg\",\n \"icon-lg\":\n \"h-[3rem] w-[3rem] flex justify-center items-center font-medium rounded-lg\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n // extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n extends DetailedHTMLProps<\n ButtonHTMLAttributes<HTMLButtonElement>,\n HTMLButtonElement\n >,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n isLoading?: boolean;\n leftNode?: React.ReactNode;\n rightNode?: React.ReactNode;\n LoaderSize?: number;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant = \"primary\",\n size,\n asChild = false,\n isLoading = false,\n leftNode,\n rightNode,\n LoaderSize,\n // ref,\n ...props\n },\n ref,\n ) => {\n const Component = asChild ? Slot : \"button\";\n\n const { children, disabled, ...rest } = props;\n const reference = React.useRef<HTMLButtonElement>(null);\n\n return (\n <Component\n className={cn(buttonVariants({ variant, size, className }))}\n ref={reference || ref}\n disabled={disabled || isLoading}\n {...rest}\n children={\n <div className=\"flex font-medium justify-center items-center gap-2\">\n {/* {leftNode}\n {children}\n {rightNode}\n {isLoading && <Loader />} */}\n\n {isLoading ? (\n <>\n <span className=\"mx-auto\">\n <Loader size={LoaderSize} colour=\"secondary\" />\n </span>\n </>\n ) : (\n <>\n {leftNode}\n {children}\n {rightNode}\n </>\n )}\n </div>\n }\n />\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/src/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\nimport { FormDescription } from \"../form/FormDescription\";\n\nexport const inputVariants = cva(\n \"!p-0 flex h-full w-full !border-transparent !bg-transparent text-base focus-visible:bg-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50\",\n {\n variants: {\n status: {\n default: \"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]\",\n error: \"placeholder:text-red-500 text-red-500\",\n loading: \"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]\",\n prefilled: \"\",\n neutral: \"\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\nexport interface BaseInnerInputProps\n extends React.InputHTMLAttributes<HTMLInputElement>,\n VariantProps<typeof inputVariants> {}\n\nconst BaseInnerInput = React.forwardRef<HTMLInputElement, BaseInnerInputProps>(\n ({ className, status, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(inputVariants({ status }), className)}\n ref={ref}\n {...props}\n />\n );\n },\n);\nBaseInnerInput.displayName = \"BaseInnerInput\";\n\nexport const inputContainerVariants = cva(\n \"flex relative h-10 w-full rounded-[4px] dark:!bg-transparent border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]\",\n {\n variants: {\n status: {\n default:\n \"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-text-primary focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-status-error-bg-dark text-red-500 focus-within:bg-red-50 focus-within:border-red-500\",\n loading: \"\",\n prefilled:\n \"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n neutral:\n \"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\nexport const sideVariants = cva(\n \"top-0 flex justify-center items-center h-full min-w-[50px] max-w-[100px] dark:!bg-transparent transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]\",\n {\n variants: {\n side: {\n left: \"left-0 rounded-l-[8px] border-r\",\n right: \"right-0 rounded-r-[8px] border-l\",\n },\n status: {\n default:\n \"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-red-50 text-red-500 focus-within:bg-red-50 focus-within:border-red-500\",\n loading: \"\",\n prefilled:\n \"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n neutral: \"bg-transparent border-0 caret-[#DEDEDE] !px-0\",\n },\n },\n defaultVariants: {\n status: \"default\",\n side: \"left\",\n },\n },\n);\n\nexport interface InputProps\n extends BaseInnerInputProps,\n VariantProps<typeof inputContainerVariants> {\n isLoading?: boolean;\n error?: string;\n leftNode?: React.ReactNode;\n rightNode?: React.ReactNode;\n sideNodeClassName?: string;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n className,\n status = \"default\",\n disabled,\n error,\n isLoading,\n sideNodeClassName,\n showAsterisk,\n label,\n description,\n ...props\n },\n ref,\n ) => {\n let containerStatus: VariantProps<typeof inputContainerVariants>[\"status\"] =\n status;\n\n if (error) containerStatus = \"error\";\n if (isLoading) containerStatus = \"loading\";\n if (disabled) containerStatus = \"prefilled\";\n\n return (\n <div className=\"relative space-y-1 w-full\">\n {label && (\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n )}\n <div\n className={cn(\n inputContainerVariants({ status: containerStatus }),\n props.leftNode ? \"pl-0\" : \"\",\n props.rightNode ? \"pr-0\" : \"\",\n className,\n )}\n >\n {props.leftNode ? (\n <div\n className={cn(\n sideVariants({\n status: containerStatus,\n side: \"left\",\n }),\n sideNodeClassName,\n )}\n >\n {props.leftNode}\n </div>\n ) : null}\n <BaseInnerInput\n ref={ref}\n disabled={isLoading || disabled}\n className={cn({\n \"!pl-3\": props.leftNode && status !== \"neutral\",\n \"!pr-3\": props.rightNode && status !== \"neutral\",\n })}\n {...props}\n />\n {props.rightNode ? (\n <div\n className={cn(\n sideVariants({\n status: containerStatus,\n side: \"right\",\n }),\n sideNodeClassName,\n )}\n >\n {props.rightNode}\n </div>\n ) : null}\n </div>\n {description && (\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n )}\n <ErrorMessage error={error} />\n </div>\n );\n },\n);\n\n// const Input = ({\n// className,\n// status = \"default\",\n// disabled,\n// error,\n// isLoading,\n// sideNodeClassName,\n// showAsterisk,\n// label,\n// description,\n// ref,\n// ...props\n// }: InputProps) => {\n// let containerStatus: VariantProps<typeof inputContainerVariants>[\"status\"] =\n// status;\n\n// if (error) containerStatus = \"error\";\n// if (isLoading) containerStatus = \"loading\";\n// if (disabled) containerStatus = \"prefilled\";\n\n// return (\n// <div className=\"relative space-y-1 w-full\">\n// {label && (\n// <FormLabel showAsterisk={showAsterisk} error={error}>\n// {label}\n// </FormLabel>\n// )}\n// <div\n// className={cn(\n// inputContainerVariants({ status: containerStatus }),\n// props.leftNode ? \"pl-0\" : \"\",\n// props.rightNode ? \"pr-0\" : \"\",\n// className,\n// )}\n// >\n// {props.leftNode ? (\n// <div\n// className={cn(\n// sideVariants({\n// status: containerStatus,\n// side: \"left\",\n// }),\n// sideNodeClassName,\n// )}\n// >\n// {props.leftNode}\n// </div>\n// ) : null}\n// <BaseInnerInput\n// ref={ref}\n// disabled={isLoading || disabled}\n// className={cn({\n// \"!pl-3\": props.leftNode && status !== \"neutral\",\n// \"!pr-3\": props.rightNode && status !== \"neutral\",\n// })}\n// {...props}\n// />\n// {props.rightNode ? (\n// <div\n// className={cn(\n// sideVariants({\n// status: containerStatus,\n// side: \"right\",\n// }),\n// sideNodeClassName,\n// )}\n// >\n// {props.rightNode}\n// </div>\n// ) : null}\n// </div>\n// {description && (\n// <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n// {description}\n// </FormDescription>\n// )}\n// <ErrorMessage error={error} />\n// </div>\n// );\n// };\n\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { cn } from \"@/src/utils\";\nimport React from \"react\";\n\nconst ErrorMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & {\n error?: string;\n }\n>(({ className, children, error, ...props }, ref) => {\n const body = error ?? children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n className={cn(\"text-xs font-normal text-[#F04248]\", className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nErrorMessage.displayName = \"ErrorMessage\";\n\nexport { ErrorMessage };\n","import { cn } from \"@/src/utils\";\nimport React from \"react\";\n\nconst FormDescription = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\"text-sm text-[#8E98A8\", className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = \"FormDescription\";\n\nexport { FormDescription };\n","import { useMemo, useState } from \"react\";\nimport { Eye } from \"./icons/Eye\";\nimport { EyeOff } from \"./icons/EyeOff\";\nimport { Input, InputProps } from \"../input\";\nimport { cn } from \"@/src/utils\";\nimport { Check } from \"./icons/Check\";\nimport { Fail } from \"./icons/Fail\";\n\nconst validationOptions = [\n {\n label: \"Uppercase\",\n key: \"uppercase\",\n RegExp: /[A-Z]/,\n validated: false,\n },\n {\n label: \"Lowercase\",\n key: \"lowercase\",\n RegExp: /[a-z]/,\n validated: false,\n },\n {\n label: \"Number\",\n key: \"number\",\n RegExp: /\\d/,\n validated: false,\n },\n {\n label: \"8 Characters\",\n key: \"eight-chars\",\n RegExp: /.{8}/,\n validated: false,\n },\n];\n\ntype PasswordInputProps = InputProps & {\n /**\n * onValidate(validated: boolean, value: string) => void\n * args - validated: this is boolean value that indicated that all validation options were met\n * args - value: this is the string input value\n */\n onValidate?: (validated: boolean, value: string) => void;\n disableValidation?: boolean;\n};\nconst PasswordInput = ({\n onValidate,\n onChange,\n disableValidation,\n ...props\n}: PasswordInputProps) => {\n const [passwordVisible, setPasswordVisible] = useState(false);\n const [validatedValues, setValidatedValues] = useState(validationOptions);\n\n const validatePassword = (value: string) => {\n return validationOptions.map((option) => ({\n ...option,\n validated: option.RegExp.test(value),\n }));\n };\n\n const checkPasswordStrength = (value: string) => {\n const validatedOptions = validatePassword(value);\n const allValidated = validatedOptions.every((option) => option.validated);\n\n setValidatedValues(validatedOptions);\n\n return allValidated;\n };\n\n const handlePaswordInputChange: React.ChangeEventHandler<HTMLInputElement> = (\n e,\n ) => {\n if (onChange) onChange(e);\n\n if (disableValidation) return;\n\n const value = e?.target?.value;\n const validated = checkPasswordStrength(value);\n\n if (onValidate) onValidate(validated, value);\n };\n\n const ValidateComp = useMemo(() => {\n return (\n <div className=\"flex items-center gap-2\">\n {validatedValues?.map((value) => (\n <div\n className={cn(\"text-xs flex items-center gap-0.5\", {\n \"text-[#62C554]\": value?.validated,\n \"text-[#8E98A8]\": !value?.validated,\n })}\n key={value?.key}\n >\n <span className=\"\">{value?.validated ? <Check /> : <Fail />}</span>\n <span className=\"\">{value?.label}</span>\n </div>\n ))}\n </div>\n );\n }, [validatedValues]);\n\n return (\n <Input\n sideNodeClassName=\"!border-l-0\"\n rightNode={\n passwordVisible ? (\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((val) => !val)}\n >\n <Eye />\n </button>\n ) : (\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((val) => !val)}\n >\n <EyeOff />\n </button>\n )\n }\n type={passwordVisible ? \"text\" : \"password\"}\n onChange={handlePaswordInputChange}\n description={!disableValidation && ValidateComp}\n {...props}\n />\n );\n};\n\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n","export const Eye = () => {\n return (\n <svg\n width=\"18\"\n height=\"14\"\n viewBox=\"0 0 18 14\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1.54639 7.26103C1.48389 7.09264 1.48389 6.90741 1.54639 6.73903C2.15517 5.26292 3.18853 4.00081 4.51547 3.1127C5.84241 2.22459 7.40317 1.75049 8.99989 1.75049C10.5966 1.75049 12.1574 2.22459 13.4843 3.1127C14.8113 4.00081 15.8446 5.26292 16.4534 6.73903C16.5159 6.90741 16.5159 7.09264 16.4534 7.26103C15.8446 8.73713 14.8113 9.99925 13.4843 10.8874C12.1574 11.7755 10.5966 12.2496 8.99989 12.2496C7.40317 12.2496 5.84241 11.7755 4.51547 10.8874C3.18853 9.99925 2.15517 8.73713 1.54639 7.26103Z\"\n stroke=\"#8E98A8\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M9 9.25C10.2426 9.25 11.25 8.24264 11.25 7C11.25 5.75736 10.2426 4.75 9 4.75C7.75736 4.75 6.75 5.75736 6.75 7C6.75 8.24264 7.75736 9.25 9 9.25Z\"\n stroke=\"#8E98A8\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","export const EyeOff = () => {\n return (\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 18 18\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.08759 12.69C3.26171 11.9072 2.61006 10.9591 2.17509 9.90752C2.10081 9.73454 2.0625 9.54826 2.0625 9.36001C2.0625 9.17177 2.10081 8.98549 2.17509 8.81252C2.75274 7.4073 3.72095 6.19704 4.96509 5.32502C6.14597 4.4998 7.55989 4.07405 9.00009 4.11002C10.0363 4.084 11.064 4.30239 12.0001 4.74752M13.9201 6.03752C14.7415 6.81964 15.3904 7.76486 15.8251 8.81252C15.8994 8.98549 15.9377 9.17177 15.9377 9.36001C15.9377 9.54826 15.8994 9.73454 15.8251 9.90752C15.2474 11.3127 14.2792 12.523 13.0351 13.395C11.8542 14.2202 10.4403 14.646 9.00009 14.61C7.9639 14.636 6.93616 14.4176 6.00009 13.9725\"\n stroke=\"#8E98A8\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M6.5325 10.2375C6.42732 9.95694 6.37395 9.65962 6.375 9.36C6.375 8.66381 6.65156 7.99613 7.14384 7.50384C7.63613 7.01156 8.30381 6.735 9 6.735C9.3 6.7335 9.597 6.7875 9.8775 6.8925M11.4675 8.4825C11.5725 8.763 11.6265 9.06 11.625 9.36C11.625 10.0562 11.3484 10.7239 10.8562 11.2162C10.3639 11.7084 9.69619 11.985 9 11.985C8.70038 11.986 8.40306 11.9327 8.1225 11.8275M2.25 15L14.25 3\"\n stroke=\"#8E98A8\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","export const Check = () => {\n return (\n <svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8.89802 2.93408L9.70202 3.49808L6.21602 8.52608H5.41202L3.46802 5.80208L4.27202 5.05208L5.81402 6.49208L8.89802 2.93408Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n","export const Fail = () => {\n return (\n <svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3.37891 8.62142L6.00041 5.99992L8.62191 8.62142M8.62191 3.37842L5.99991 5.99992L3.37891 3.37842\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","import * as React from \"react\";\n\nimport { cn } from \"@/src/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { inputContainerVariants } from \"../input\";\nimport { DetailedHTMLProps } from \"react\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst textareaContainerVariants = cva(\n \"flex relative min-h-[80px] w-full rounded-[8px] border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50\",\n {\n variants: {\n status: {\n default:\n \"border-[#D7D7D7] dark:border-[#676767] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:border-[#9299A2] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-status-error-fill bg-status-error-bg border-status-error-fill dark:!bg-status-error-bg-dark text-status-error-fill focus-within:bg-status-error-bg focus-within:border-status-error-fill\",\n loading: \"placeholder:text-[#C4C4C4]\",\n prefilled:\n \"resize-none bg-[#F6F6F6] border-[#D7D7D7] dark:!bg-transparent caret-[#D7D7D7] focus-within:bg-[#F6F6F6] focus-within:border-[#D7D7D7] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n neutral: \"\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\nexport interface TextareaProps\n extends DetailedHTMLProps<\n React.TextareaHTMLAttributes<HTMLTextAreaElement>,\n HTMLTextAreaElement\n >,\n VariantProps<typeof inputContainerVariants> {\n isLoading?: boolean;\n error?: string;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n}\n\nconst Textarea = ({\n className,\n status = \"default\",\n disabled,\n error,\n isLoading,\n showAsterisk,\n label,\n description,\n ...props\n}: TextareaProps) => {\n let containerStatus: VariantProps<\n typeof textareaContainerVariants\n >[\"status\"] = status;\n\n if (error) containerStatus = \"error\";\n if (isLoading) containerStatus = \"loading\";\n if (disabled) containerStatus = \"prefilled\";\n\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <textarea\n className={cn(\n \"min-h-[80px]\",\n inputContainerVariants({ status: containerStatus }),\n className,\n )}\n disabled={isLoading || disabled}\n {...props}\n />\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n};\n\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n","(\"use client\");\n\nimport * as React from \"react\";\n\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"../command\";\nimport { PopoverContent, PopoverRoot, PopoverTrigger } from \"../popover\";\nimport { cn } from \"@/src/utils\";\nimport { ScrollArea } from \"../scroll-area\";\nimport { VariantProps } from \"class-variance-authority\";\nimport { inputContainerVariants } from \"../input\";\n\ntype SearchableDataType = {\n value: string;\n label: string;\n} & {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any; // Allows for additional properties\n};\n\ninterface SearchableProps {\n modal?: boolean;\n hideSearch?: boolean;\n loading?: boolean;\n inputValue?: string;\n onInputValueChange?: (arg: string) => void;\n disabled?: boolean;\n placeholder?: string;\n value?: SearchableDataType;\n options: SearchableDataType[] | [];\n optionComponent?: (arg: SearchableDataType) => React.ReactNode;\n className?: string;\n containerClassName?: string;\n onChange: (value: SearchableDataType) => void;\n onValueChange?: (value: string) => void;\n children?: React.ReactNode;\n}\n\ninterface SearchableTriggerProps\n extends VariantProps<typeof inputContainerVariants> {\n disabled?: boolean;\n placeholder?: string;\n value?: string;\n className?: string;\n}\n\nconst SearchableTrigger = ({\n className,\n value,\n placeholder = \"\",\n status,\n disabled,\n}: SearchableTriggerProps) => {\n return (\n <PopoverTrigger asChild disabled={disabled}>\n <button\n disabled={disabled}\n className={cn(\n inputContainerVariants({ status }),\n \"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup\",\n value ? \"\" : \"text-[#79818C]\",\n className,\n )}\n >\n {value ?? placeholder ?? \"Select options...\"}\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n className=\" data-[state=open]:goup-rotate-180\"\n >\n <path\n d=\"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeMiterlimit=\"10\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n </PopoverTrigger>\n );\n};\n\nconst Searchable = ({\n options = [],\n value,\n onChange,\n containerClassName,\n placeholder,\n disabled,\n loading,\n optionComponent,\n children,\n modal = false,\n hideSearch,\n className,\n inputValue,\n onValueChange,\n onInputValueChange,\n}: SearchableProps) => {\n const [open, setOpen] = React.useState(false);\n\n const triggerRef = React.useRef<HTMLDivElement | null>(null);\n\n const [width, setWidth] = React.useState<number | undefined>(undefined);\n\n React.useLayoutEffect(() => {\n if (triggerRef.current) {\n setWidth(triggerRef.current.clientWidth);\n }\n }, [triggerRef.current]);\n\n return (\n <PopoverRoot modal={modal} open={open} onOpenChange={setOpen}>\n <div className={cn(\"w-full\", className)} ref={triggerRef}>\n {children}\n </div>\n <PopoverContent\n portal={!modal}\n className=\"p-0 min-w-[200px]\"\n style={{ width }}\n >\n <Command\n className={cn(\"relative max-h-[270px]\", {\n \"mt-2\": !hideSearch,\n })}\n >\n {!hideSearch && (\n <CommandInput\n loading={loading}\n placeholder={placeholder ?? \"Search options...\"}\n onValueChange={onInputValueChange}\n value={inputValue}\n CommandInputContainerClassName=\"mx-2 border rounded-md border-[#DEDEDE]\"\n />\n )}\n <ScrollArea\n viewPortClassName=\"max-h-[225px]\"\n className={cn(\n \"w-full px-0 h-full overflow-y-auto\",\n containerClassName,\n )}\n >\n <CommandList>\n {!hideSearch && <CommandEmpty>No result found.</CommandEmpty>}\n <CommandGroup className=\"w-full\">\n {options?.map((option) => (\n <CommandItem\n defaultValue={value?.label}\n key={option.value}\n value={option.label}\n disabled={disabled}\n onSelect={() => {\n onChange(option);\n setOpen(false);\n onValueChange?.(option?.value);\n }}\n >\n {!optionComponent ? option.label : optionComponent(option)}\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </ScrollArea>\n </Command>\n </PopoverContent>\n </PopoverRoot>\n );\n};\n\nexport { Searchable, SearchableTrigger };\n\nexport type { SearchableProps, SearchableTriggerProps, SearchableDataType };\n","\"use client\";\n\nimport * as React from \"react\";\nimport { type DialogProps } from \"@radix-ui/react-dialog\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { Search } from \"lucide-react\";\n\nimport { cn } from \"@/src/utils\";\nimport { Dialog, DialogContent } from \"@/src/components/dialog\";\nimport { Loader } from \"../loader\";\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground\",\n className,\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {\n trigger?: React.ReactNode;\n}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props} trigger={props?.trigger ?? <></>}>\n <DialogContent className=\"overflow-hidden p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\ninterface CommandInputProps\n extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> {\n CommandInputContainerClassName?: string;\n loading?: boolean;\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n CommandInputProps\n>(({ className, CommandInputContainerClassName, loading, ...props }, ref) => (\n <div\n className={cn(\n \"flex items-center border-0 px-3 gap-2\",\n CommandInputContainerClassName,\n )}\n cmdk-input-wrapper=\"\"\n >\n {loading ? (\n <Loader size={16} colour=\"secondary\" />\n ) : (\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n )}\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n \"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n disabled={loading}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn(\"overflow-y-auto overflow-x-hidden\", className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty\n ref={ref}\n className=\"py-6 text-center text-sm\"\n {...props}\n />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n \"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 h-px bg-border\", className)}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n \"relative text=[#222222] flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary-accent data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n};\nCommandShortcut.displayName = \"CommandShortcut\";\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\n\nimport { cn } from \"@/src/utils\";\nimport { CloseIcon } from \"./icon/CloseIcon\";\n\nconst DialogRoot = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n hideCloseButton?: boolean;\n }\n>(({ className, hideCloseButton, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-transparent bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg\",\n className,\n )}\n {...props}\n >\n {children}\n {!hideCloseButton && (\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <CloseIcon />\n\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col space-y-1.5 text-left\", className)}\n {...props}\n />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-row justify-end sm:space-x-2\", className)}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n \"text-xl font-semibold leading-none tracking-tight\",\n className,\n )}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-gray-500\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport type DialogPropsType = {\n trigger?: React.ReactNode;\n children: React.ReactNode;\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n hideCloseButton?: boolean;\n contentClassName?: string;\n headerClassName?: string;\n titleClassName?: string;\n descriptionClassName?: string;\n footerClassName?: string;\n asChild?: boolean;\n onOpenAutoFocus?: (e: Event) => void;\n onCloseAutoFocus?: (e: Event) => void;\n onInteractOutside?: (e: Event) => void;\n onPointerDownOutside?: (e: Event) => void;\n onEscapeKeyDown?: (e: KeyboardEvent) => void;\n};\n\nconst Dialog = ({\n trigger = undefined,\n children,\n open,\n onOpenChange,\n hideCloseButton,\n footer,\n title,\n description,\n contentClassName,\n headerClassName,\n titleClassName,\n descriptionClassName,\n footerClassName,\n asChild = true,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onEscapeKeyDown,\n onInteractOutside,\n onPointerDownOutside,\n ...props\n}: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> &\n DialogPropsType) => {\n return (\n <DialogRoot {...props} open={open} onOpenChange={onOpenChange}>\n <DialogTrigger asChild={asChild}>{trigger}</DialogTrigger>\n <DialogPortal>\n <DialogContent\n className={contentClassName}\n hideCloseButton={hideCloseButton}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onInteractOutside={onInteractOutside}\n >\n {title || description ? (\n <DialogHeader className={headerClassName}>\n {title && (\n <DialogTitle className={titleClassName}>{title}</DialogTitle>\n )}\n {description && (\n <DialogDescription className={descriptionClassName}>\n {description}\n </DialogDescription>\n )}\n </DialogHeader>\n ) : (\n <></>\n )}\n {children}\n {footer && (\n <DialogFooter className={footerClassName}>{footer}</DialogFooter>\n )}\n </DialogContent>\n </DialogPortal>\n </DialogRoot>\n );\n};\nDialog.displayName = DialogPrimitive.Dialog.displayName;\n\nexport { Dialog, DialogRoot, DialogContent };\n","export const CloseIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-x\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"@/src/utils\";\n\nconst PopoverRoot = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {\n portal?: boolean;\n }\n>(\n (\n { className, align = \"center\", sideOffset = 4, portal = true, ...props },\n ref,\n ) =>\n portal ? (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n {...props}\n />\n </PopoverPrimitive.Portal>\n ) : (\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n {...props}\n />\n ),\n);\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport type PopoverPropsType = {\n trigger: React.ReactNode;\n children: React.ReactNode;\n contentClassName?: string;\n triggerClassName?: string;\n asChild?: boolean;\n align?: PopoverPrimitive.PopoverContentProps[\"align\"];\n side?: PopoverPrimitive.PopoverContentProps[\"side\"];\n alignOffset?: number | undefined;\n sideOffset?: number | undefined;\n onOpenAutoFocus?: (e: Event) => void;\n onCloseAutoFocus?: (e: Event) => void;\n portal?: boolean;\n};\n\nconst Popover = ({\n trigger,\n children,\n open,\n onOpenChange,\n contentClassName,\n asChild = true,\n align,\n side,\n alignOffset,\n triggerClassName,\n sideOffset,\n onOpenAutoFocus,\n onCloseAutoFocus,\n portal = true,\n ...props\n}: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> &\n PopoverPropsType) => {\n return (\n <PopoverRoot {...props} open={open} onOpenChange={onOpenChange}>\n <PopoverTrigger asChild={asChild} className={triggerClassName}>\n {trigger}\n </PopoverTrigger>\n <PopoverContent\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n side={side}\n align={align}\n className={contentClassName}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n portal={portal}\n >\n {children}\n </PopoverContent>\n </PopoverRoot>\n );\n};\nPopover.displayName = PopoverPrimitive.Root.displayName;\n\nexport { Popover, PopoverRoot, PopoverTrigger, PopoverContent };\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\n\nimport { cn } from \"@/src/utils\";\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {\n viewPortClassName?: string;\n }\n>(({ className, viewPortClassName, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n className={cn(\"h-full w-full rounded-[inherit]\", viewPortClassName)}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n","export const countryData = [\n {\n countryCode: \"GLOBAL\",\n countryName: \"Global\",\n currency: \"Dollars\",\n currencyCode: \"USD\",\n internetCountryCode: \"GLOBAL\",\n },\n {\n countryName: \"Benin\",\n countryCode: \"+229\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"BJ\",\n },\n {\n countryName: \"Burkina Faso\",\n countryCode: \"+226\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"BF\",\n },\n {\n countryName: \"Cameroon\",\n countryCode: \"+237\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"CM\",\n },\n {\n countryName: \"Chad\",\n countryCode: \"+235\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"TD\",\n },\n {\n countryName: \"DR Congo\",\n countryCode: \"+243\",\n currency: \"Congolese franc\",\n currencyCode: \"CDF\",\n currencyIcon: \"FC\",\n internetCountryCode: \"CD\",\n },\n {\n countryName: \"Eswatini\",\n countryCode: \"+268\",\n currency: \"Swazi lilangeni\",\n currencyCode: \"SZL\",\n currencyIcon: \"L\",\n internetCountryCode: \"SZ\",\n },\n {\n countryName: \"Gabon\",\n countryCode: \"+241\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"GA\",\n },\n {\n countryName: \"Ghana\",\n countryCode: \"+233\",\n currency: \"Ghanaian cedi\",\n currencyCode: \"GHS\",\n currencyIcon: \"₵\",\n internetCountryCode: \"GH\",\n },\n {\n countryName: \"Guinea\",\n countryCode: \"+224\",\n currency: \"Guinean franc\",\n currencyCode: \"GNF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"GN\",\n },\n {\n countryName: \"Ivory Coast\",\n countryCode: \"+225\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"CI\",\n },\n {\n countryName: \"Kenya\",\n countryCode: \"+254\",\n currency: \"Kenyan shilling\",\n currencyCode: \"KES\",\n currencyIcon: \"Sh\",\n internetCountryCode: \"KE\",\n },\n {\n countryName: \"Lesotho\",\n countryCode: \"+266\",\n currency: \"Lesotho loti\",\n currencyCode: \"LSL\",\n currencyIcon: \"L\",\n internetCountryCode: \"LS\",\n },\n {\n countryName: \"Liberia\",\n countryCode: \"+231\",\n currency: \"Liberian dollar\",\n currencyCode: \"LRD\",\n currencyIcon: \"$\",\n internetCountryCode: \"LR\",\n },\n {\n countryName: \"Madagascar\",\n countryCode: \"+261\",\n currency: \"Malagasy ariary\",\n currencyCode: \"MGA\",\n currencyIcon: \"Ar\",\n internetCountryCode: \"MG\",\n },\n {\n countryName: \"Malawi\",\n countryCode: \"+265\",\n currency: \"Malawian kwacha\",\n currencyCode: \"MWK\",\n currencyIcon: \"MK\",\n internetCountryCode: \"MW\",\n },\n {\n countryName: \"Mali\",\n countryCode: \"+223\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"ML\",\n },\n {\n countryName: \"Mozambique\",\n countryCode: \"+258\",\n currency: \"Mozambican metical\",\n currencyCode: \"MZN\",\n currencyIcon: \"MT\",\n internetCountryCode: \"MZ\",\n },\n {\n countryName: \"Namibia\",\n countryCode: \"+264\",\n currency: \"Namibian dollar\",\n currencyCode: \"NAD\",\n currencyIcon: \"$\",\n internetCountryCode: \"NA\",\n },\n {\n countryName: \"Niger\",\n countryCode: \"+227\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"NE\",\n },\n {\n countryName: \"Nigeria\",\n countryCode: \"+234\",\n currency: \"Nigerian naira\",\n currencyCode: \"NGN\",\n currencyIcon: \"₦\",\n internetCountryCode: \"NG\",\n },\n {\n countryName: \"Republic of the Congo\",\n countryCode: \"+242\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"CG\",\n },\n {\n countryName: \"Rwanda\",\n countryCode: \"+250\",\n currency: \"Rwandan franc\",\n currencyCode: \"RWF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"RW\",\n },\n {\n countryName: \"Senegal\",\n countryCode: \"+221\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"SN\",\n },\n {\n countryName: \"Seychelles\",\n countryCode: \"+248\",\n currency: \"Seychellois rupee\",\n currencyCode: \"SCR\",\n currencyIcon: \"₨\",\n internetCountryCode: \"SC\",\n },\n {\n countryName: \"South Africa\",\n countryCode: \"+27\",\n currency: \"South African rand\",\n currencyCode: \"ZAR\",\n currencyIcon: \"R\",\n internetCountryCode: \"ZA\",\n },\n {\n countryName: \"South Sudan\",\n countryCode: \"+211\",\n currency: \"South Sudanese pound\",\n currencyCode: \"SSP\",\n currencyIcon: \"£\",\n internetCountryCode: \"SS\",\n },\n {\n countryName: \"Tanzania\",\n countryCode: \"+255\",\n currency: \"Tanzanian shilling\",\n currencyCode: \"TZS\",\n currencyIcon: \"Sh\",\n internetCountryCode: \"TZ\",\n },\n {\n countryName: \"Togo\",\n countryCode: \"+228\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"TG\",\n },\n {\n countryName: \"Uganda\",\n countryCode: \"+256\",\n currency: \"Ugandan shilling\",\n currencyCode: \"UGX\",\n currencyIcon: \"Sh\",\n internetCountryCode: \"UG\",\n },\n {\n countryName: \"Zambia\",\n countryCode: \"+260\",\n currency: \"Zambian kwacha\",\n currencyCode: \"ZMW\",\n currencyIcon: \"ZK\",\n internetCountryCode: \"ZM\",\n },\n];\n\nexport const getCountryDataMap = () => {\n const frequency = {} as Record<string, string>;\n\n countryData?.forEach((country) => {\n frequency[country?.internetCountryCode] = country?.countryName;\n });\n\n return frequency;\n};\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport * as RPNInput from \"react-phone-number-input\";\n\nimport flags from \"react-phone-number-input/flags\";\n\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"../command\";\nimport { Input, InputProps, inputContainerVariants } from \"../input\";\nimport { PopoverRoot, PopoverContent, PopoverTrigger } from \"../popover\";\n\nimport { cn } from \"@/src/utils\";\nimport { ScrollArea } from \"../scroll-area\";\nimport { VariantProps } from \"class-variance-authority\";\nimport FlatGlobeIcon from \"./Flag\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\n\nexport type PhoneInputValue = RPNInput.Value;\n\nexport type PhoneInputProps = Omit<\n React.InputHTMLAttributes<HTMLInputElement>,\n \"onChange\" | \"value\"\n> &\n Omit<RPNInput.Props<typeof RPNInput.default>, \"onChange\"> & {\n onChange?: (value: RPNInput.Value) => void;\n } & {\n status?: VariantProps<typeof inputContainerVariants>[\"status\"];\n defaultCountry?: RPNInput.Country;\n modal?: boolean;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n error?: string;\n };\n\nconst PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =\n React.forwardRef<React.ElementRef<typeof RPNInput.default>, PhoneInputProps>(\n (\n {\n className,\n onChange,\n defaultCountry = \"NG\",\n modal,\n showAsterisk,\n label,\n description,\n error,\n ...props\n },\n ref,\n ) => {\n /**\n * did this so I can pass the status prop to the country\n * select so I can change the appearance based on the status\n */\n const CountrySelectWrapper = (innerProps: CountrySelectProps) => {\n return (\n <CountrySelect {...innerProps} status={props.status} modal={modal} />\n );\n };\n\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <RPNInput.default\n ref={ref}\n className={cn(\"flex\", className)}\n flagComponent={FlagComponent}\n countrySelectComponent={CountrySelectWrapper}\n inputComponent={InputComponent}\n defaultCountry={defaultCountry}\n /**\n * Handles the onChange event.\n *\n * react-phone-number-input might trigger the onChange event as undefined\n * when a valid phone number is not entered. To prevent this,\n * the value is coerced to an empty string.\n *\n * @param {E164Number | undefined} value - The entered value\n */\n onChange={(value) => {\n if (onChange) {\n onChange?.(value as RPNInput.Value);\n }\n }}\n {...props}\n />\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n },\n );\nPhoneInput.displayName = \"PhoneInput\";\n\nconst InputComponent = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, ...props }, ref) => {\n return (\n <Input\n className={cn(\"!rounded-s-none h-10\", className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\nInputComponent.displayName = \"InputComponent\";\n\ntype CountrySelectOption = { label: string; value: RPNInput.Country };\n\ntype CountrySelectProps = {\n disabled?: boolean;\n modal?: boolean;\n value: RPNInput.Country;\n onChange: (value: RPNInput.Country) => void;\n options: CountrySelectOption[];\n status?: VariantProps<typeof inputContainerVariants>[\"status\"];\n};\n\nconst CountrySelect = ({\n disabled,\n value,\n onChange,\n options,\n status,\n modal,\n}: CountrySelectProps) => {\n const handleSelect = React.useCallback(\n (country: RPNInput.Country) => {\n onChange(country);\n },\n [onChange],\n );\n\n return (\n <PopoverRoot modal={modal}>\n <PopoverTrigger disabled={disabled}>\n <div\n className={cn(\n inputContainerVariants({ status }),\n \"transition justify-center items-center disabled:text-base-500 flex gap-3 h-10 rounded-e-none border-e-0 pl-2 pr-2\",\n )}\n >\n <FlagComponent country={value} countryName={value} />\n <svg\n className={cn(\n \"mr-0.5 h-4 w-4 opacity-50\",\n disabled ? \"hidden\" : \"opacity-100\",\n )}\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825\"\n stroke=\"#959595\"\n strokeWidth=\"1.5\"\n strokeMiterlimit=\"10\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n </PopoverTrigger>\n <PopoverContent portal={!modal} className=\"w-[200px] md:w-[300px] p-0\">\n <Command>\n <CommandList>\n <ScrollArea className=\"h-72\">\n <CommandInput placeholder=\"Search country...\" />\n <CommandEmpty>No country found.</CommandEmpty>\n <CommandGroup>\n {options\n .filter((x) => x.value)\n .map((option) => (\n <CommandItem\n className=\"gap-2\"\n key={`${option.value}-${option.label}`}\n onSelect={() => handleSelect(option.value)}\n >\n <FlagComponent\n country={option.value}\n countryName={option.label}\n />\n <span className=\"flex-1 text-sm\">{option.label}</span>\n {option.value && (\n <span className=\"text-[#191919]/50 text-sm dark:text-white\">\n {`+${RPNInput.getCountryCallingCode(option.value)}`}\n </span>\n )}\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className={cn(\n \"ml-auto\",\n option.value === value ? \"opacity-100\" : \"opacity-0\",\n )}\n >\n <path\n d=\"M4 8.00008L6.66353 10.6636L12 5.33655\"\n stroke=\"#959595\"\n strokeWidth=\"1.06667\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </CommandItem>\n ))}\n </CommandGroup>\n </ScrollArea>\n </CommandList>\n </Command>\n </PopoverContent>\n </PopoverRoot>\n );\n};\n\ntype FlagComponentProps = RPNInput.FlagProps & {\n className?: string;\n};\n\nconst FlagComponent = ({\n country,\n countryName,\n className,\n}: FlagComponentProps) => {\n const Flag = flags[country];\n\n if (country === (\"GLOBAL\" as unknown))\n return (\n <span\n className={cn(\n \"bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm\",\n className,\n )}\n >\n <FlatGlobeIcon className=\"w-full h-[90%]\" />\n </span>\n );\n\n return (\n <span\n className={cn(\n \"bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm\",\n className,\n )}\n >\n {Flag && <Flag title={countryName} />}\n </span>\n );\n};\nFlagComponent.displayName = \"FlagComponent\";\n\nexport { PhoneInput, FlagComponent };\n","// import React from 'react'\n\n// export const Flag = () => {\n// return (\n// <div>Flag</div>\n// )\n// }\n\nimport type React from \"react\";\n\nconst FlatGlobeIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n {...props}\n >\n <rect width=\"32\" height=\"32\" fill=\"#60A5FA\" /> {/* Ocean color */}\n {/* Continents */}\n <path\n d=\"M3 10L7 8L10 9L13 8L16 10L19 9L22 11L25 10L28 12V15L26 17L28 19L27 22L29 24L27 26L24 25L21 26L18 24L15 25L12 23L9 24L6 22L4 23L2 21V18L4 16L3 13L5 11L3 10Z\"\n fill=\"#34D399\"\n />\n {/* Antarctica */}\n <rect x=\"2\" y=\"28\" width=\"28\" height=\"3\" fill=\"#D1D5DB\" />\n {/* Grid lines */}\n <path\n d=\"M0 16H32M8 0V32M16 0V32M24 0V32\"\n stroke=\"#2563EB\"\n strokeWidth=\"0.5\"\n vectorEffect=\"non-scaling-stroke\"\n />\n {/* Equator */}\n <path\n d=\"M0 16H32\"\n stroke=\"#2563EB\"\n strokeWidth=\"1\"\n vectorEffect=\"non-scaling-stroke\"\n />\n </svg>\n );\n};\n\nexport default FlatGlobeIcon;\n","import { inputContainerVariants } from \"../input\";\nimport { Searchable, SearchableDataType } from \"../searcheable\";\nimport { VariantProps } from \"class-variance-authority\";\nimport { countryData, getCountryDataMap } from \"./data\";\nimport { PopoverTrigger } from \"../popover\";\nimport { cn } from \"@/src/utils\";\nimport { FlagComponent } from \"../phone-input\";\nimport { Country as CountryCode } from \"react-phone-number-input\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\n\ntype CountryPropsStatus = VariantProps<typeof inputContainerVariants>[\"status\"];\n\ninterface CountryProps {\n modal?: boolean;\n hideSearch?: boolean;\n loading?: boolean;\n inputValue?: string;\n onInputValueChange?: (arg: string) => void;\n disabled?: boolean;\n placeholder?: string;\n value?: SearchableDataType;\n optionComponent?: (arg: SearchableDataType) => React.ReactNode;\n className?: string;\n containerClassName?: string;\n onChange: (value: SearchableDataType) => void;\n status?: CountryPropsStatus;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n error?: string;\n}\n\ninterface CountryTriggerProps\n extends VariantProps<typeof inputContainerVariants> {\n disabled?: boolean;\n placeholder?: string;\n value?: string;\n className?: string;\n}\n\nconst countryMap = getCountryDataMap();\n\nconst CountryTrigger = ({\n className,\n value,\n placeholder = \"\",\n status,\n disabled,\n}: CountryTriggerProps) => {\n return (\n <PopoverTrigger asChild disabled={disabled}>\n <button\n disabled={disabled}\n className={cn(\n inputContainerVariants({ status }),\n \"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup\",\n value ? \"\" : \"text-[#79818C]\",\n className,\n )}\n >\n {value ? (\n <div className=\"flex gap-2 items-center\">\n <FlagComponent\n country={value as CountryCode}\n countryName={value}\n className=\"ml-1 !w-6 h-5\"\n />\n <span className=\"\"> {countryMap[value]}</span>\n </div>\n ) : (\n (placeholder ?? \"Select options...\")\n )}\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n className=\" data-[state=open]:goup-rotate-180\"\n >\n <path\n d=\"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeMiterlimit=\"10\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n </PopoverTrigger>\n );\n};\n\nconst Country = ({\n hideSearch = true,\n showAsterisk,\n label,\n description,\n error,\n ...props\n}: CountryProps) => {\n const options = countryData?.map((country) => ({\n value: country?.internetCountryCode,\n label: country?.countryName,\n ...country,\n }));\n\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <Searchable\n options={options}\n hideSearch={hideSearch}\n optionComponent={(arg) => {\n return (\n <div className=\"w-full flex items-center gap-2\">\n <FlagComponent\n country={arg?.internetCountryCode}\n countryName={arg?.label}\n className=\"ml-2 !w-6 !h-5\"\n />\n <span className=\"flex-1 text-sm\">{arg?.label}</span>\n </div>\n );\n }}\n {...props}\n >\n <CountryTrigger\n value={props?.value?.value}\n status={props?.status}\n placeholder={props?.placeholder ?? \" Select Country\"}\n />\n </Searchable>\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n};\n\nexport { Country };\nexport type { CountryProps };\n\n//Todo -\n// dataSource - array of countries\n// availableCountries - countries to be filtered by countryCode\n","import { ErrorMessage } from \"../form/ErrorMessage\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { inputContainerVariants } from \"../input\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport {\n Searchable,\n SearchableDataType,\n SearchableTrigger,\n} from \"../searcheable\";\nimport { VariantProps } from \"class-variance-authority\";\n\ntype SelectPropsStatus = VariantProps<typeof inputContainerVariants>[\"status\"];\n\ninterface SelectProps {\n modal?: boolean;\n hideSearch?: boolean;\n loading?: boolean;\n inputValue?: string;\n onInputValueChange?: (arg: string) => void;\n disabled?: boolean;\n placeholder?: string;\n value?: SearchableDataType;\n options: SearchableDataType[];\n optionComponent?: (arg: SearchableDataType) => React.ReactNode;\n className?: string;\n containerClassName?: string;\n onChange: (value: SearchableDataType) => void;\n status?: SelectPropsStatus;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n error?: string;\n}\n\nconst Select = ({\n showAsterisk,\n label,\n description,\n error,\n hideSearch = true,\n status,\n ...props\n}: SelectProps) => {\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <Searchable\n hideSearch={hideSearch}\n {...props}\n containerClassName=\"h-full\"\n >\n <SearchableTrigger\n disabled={props?.disabled}\n placeholder=\"Select or search email\"\n status={status}\n value={props?.value?.label ?? props?.value?.value}\n />\n </Searchable>\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n};\n\nexport { Select };\nexport type { SelectProps };\n\n//Todo\n// onchange value\n","import OtpInput, { OTPInputProps as InputProps } from \"react-otp-input\";\nimport { cn } from \"@/src/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { useMemo } from \"react\";\n\nconst otpInputVariants = cva(\n \"transition cursor-default placeholder:text-black dark:placeholder:text-white rounded-lg !h-14 !w-14 border aspect-square text-base font-semibold tracking-normal outline-none placeholder:text-sm placeholder:font-normal text-black focus:bg-white\",\n {\n variants: {\n status: {\n default:\n \"border-gray-300 dark:border-[#d4d4d4] focus:border-gray-400 focus-visible:!ring-offset-gray-200 focus:ring-offset-gray-200 !ring-gray-200 !focus-visible:ring-1 bg-white dark:!bg-transparent dark:focus-visible:!ring-0 dark:focus-within:!bg-transparent dark:text-white dark:focus-within:border-[#9299A2] dark:border-[#676767] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-red-600 bg-red-50 border-red-600 text-red-600 focus-within:bg-red-50 focus-within:border-red-600\",\n loading: \"placeholder:text-[#C4C4C4]\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\ntype DefailtInputProps = Omit<InputProps, \"renderInput\">;\n\nexport type OTPInputProps = DefailtInputProps &\n VariantProps<typeof otpInputVariants> & {};\n\nexport const OTPInput = ({\n numInputs = 4,\n inputStyle,\n containerStyle,\n placeholder = \"-\",\n status,\n ...props\n}: OTPInputProps) => {\n const placeholderValue = useMemo(() => {\n if (placeholder) return placeholder;\n\n const numInputArr = new Array<string>(numInputs).fill(\"\");\n const result = numInputArr.reduce((accumulator, currentValue) => {\n return (accumulator += currentValue);\n }, \"\");\n\n return result;\n }, [numInputs, placeholder]);\n\n return (\n <OtpInput\n numInputs={numInputs}\n placeholder={placeholderValue}\n containerStyle={cn(\"w-full\", containerStyle)}\n inputStyle={cn(otpInputVariants({ status }), inputStyle)}\n renderInput={(props) => <input {...props} />}\n {...props}\n />\n );\n};\n","import { useState } from \"react\";\nimport { Copy, CheckIcon } from \"lucide-react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport { cn } from \"@/src/utils\";\n\ninterface CopyableLabelProps {\n text: string;\n textToCopy?: string; //this is coppied to the clipboard if passed as a prop instead of the text prop passed else defaults to the text prop\n onCopy?: () => void;\n iconsPosition?: \"left\" | \"right\";\n clampText?: boolean;\n textClassName?: string;\n}\n\nconst CopyableLabel: React.FC<CopyableLabelProps> = ({\n text,\n textToCopy,\n onCopy,\n iconsPosition = \"right\",\n clampText = true,\n textClassName,\n}) => {\n const [copied, setCopied] = useState(false);\n\n const copyToClipboard = () => {\n navigator.clipboard.writeText(textToCopy ?? text).then(() => {\n setCopied(true);\n onCopy?.();\n setTimeout(() => setCopied(false), 2000);\n });\n };\n\n const Icon = copied ? CheckIcon : Copy;\n\n return (\n <div className=\"flex items-center space-x-2 cursor-pointer text-[#717171] bg-gray-100 w-fit max-w-full rounded-md p-1 px-2\">\n {iconsPosition === \"left\" && (\n <AnimatedIcon Icon={Icon} onClick={copyToClipboard} copied={copied} />\n )}\n <span\n className={cn({ \"truncate max-w-[100px]\": clampText }, textClassName)}\n >\n {text}\n </span>\n {iconsPosition === \"right\" && (\n <AnimatedIcon Icon={Icon} onClick={copyToClipboard} copied={copied} />\n )}\n </div>\n );\n};\n\nconst AnimatedIcon: React.FC<{\n Icon: React.ElementType;\n onClick: () => void;\n copied: boolean;\n}> = ({ Icon, onClick, copied }) => (\n <AnimatePresence mode=\"wait\">\n <motion.div\n key={copied ? \"check\" : \"copy\"}\n initial={{ opacity: 0, scale: 0.8 }}\n animate={{ opacity: 1, scale: 1 }}\n exit={{ opacity: 0, scale: 0.8 }}\n transition={{ duration: 0.2 }}\n onClick={onClick}\n >\n <Icon\n className={`w-5 h-5 ${copied ? \"text-green-500\" : \"text-gray-500 hover:text-gray-700 transition\"}`}\n />\n </motion.div>\n </AnimatePresence>\n);\n\nexport { CopyableLabel };\n","import React, { ChangeEvent, useEffect, useState } from \"react\";\nimport { BaseInnerInputProps, Input } from \"../input\";\nimport { cn } from \"@/src/utils\";\nimport { Search } from \"lucide-react\";\n\ntype DebouncedInputProps = {\n value?: string;\n\n onChange: (e: string) => void;\n debounce?: number;\n addon?: React.ReactNode;\n} & Omit<BaseInnerInputProps, \"onChange\" | \"size\">;\n\nexport const DebouncedInput = ({\n value: initialValue,\n onChange,\n debounce = 500,\n addon,\n ...props\n}: DebouncedInputProps) => {\n const [value, setValue] = useState<string>(initialValue ?? \"\");\n\n const handleInputChange = (event: ChangeEvent<HTMLInputElement>) =>\n setValue(event.target.value);\n\n useEffect(() => {\n if (!initialValue) return;\n setValue(initialValue);\n }, [initialValue]);\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n onChange(value);\n }, debounce);\n\n return () => clearTimeout(timeout);\n }, [value, debounce, onChange]);\n\n return (\n <Input\n leftNode={\n (addon as React.ReactElement) ?? (\n <Search className=\" w-4 h-4 text-gray-400\" />\n )\n }\n sideNodeClassName=\"bg-transparent !pr-0 !w-4 border-0 !min-w-[40px]\"\n {...props}\n className={cn(\n \"!pl-0 py-1 border-[.5px] border-[#E9EBF8] rounded-xl text-sm w-full h-8 focus:outline-none focus:placeholder:hidden focus:!ring-2 !focus:ring-primary-main bg-[#F5F8FF] focus-within:!bg-transparent placeholder:text-xs\",\n props?.className,\n )}\n onChange={handleInputChange}\n value={value}\n />\n );\n};\n","import { cn } from \"@/src/utils\";\n\ntype Variant = \"success\" | \"failed\" | \"pending\" | \"abandoned\";\n\nexport const Status = ({\n status,\n variant,\n className,\n}: {\n status: string;\n variant: Variant;\n className?: string;\n}) => {\n return (\n <div>\n <div\n className={cn(\n \"order-first max-w-max flex-none rounded-full px-2 py-1 text-xs font-medium ring-1 ring-inset ring-current sm:order-none text-[14px] capitalize\",\n {\n \"bg-green-500/20 text-green-500\": variant === \"success\",\n },\n {\n \"bg-gray-500/20 text-white\": variant === \"abandoned\",\n },\n {\n \"bg-red-500/20 text-red-500\": variant === \"failed\",\n },\n {\n \"bg-yellow-500/20 text-yellow-500\": variant === \"pending\",\n },\n className,\n )}\n >\n <p>{status.replace(\"-\", \" \")}</p>\n </div>\n </div>\n );\n};\n","import { cn } from \"@/src/utils\";\nimport { Table as ReactTable, Row, RowData } from \"@tanstack/react-table\";\nimport { Download, ListFilter, Loader, RotateCw } from \"lucide-react\";\nimport { ReactNode } from \"react\";\nimport { Button, buttonVariants } from \"../button\";\nimport { DebouncedInput } from \"../debounced-input\";\nimport { Popover } from \"../popover\";\nimport { Pagination, PaginationProps } from \"./pagination\";\nimport { TableBody } from \"./TableBody\";\n\ntype TableSearchProps = {\n enabled: boolean;\n debounceRate?: number;\n onSearch?: (query: string) => void;\n};\n\nexport type TableDownloadProps = {\n //could not us\n enabled: boolean;\n buttonId?: string;\n onDownload?: () => void;\n buttonText?: string;\n};\nexport type TablePaginationProps = {\n enabled: boolean;\n} & PaginationProps;\n\ntype TableProps<T extends RowData> = {\n ExtraNode?: ReactNode;\n FilterMenu?: ReactNode;\n buttonClassName?: string;\n download?: TableDownloadProps;\n id?: string;\n isLoading?: boolean;\n isMobile?: boolean;\n isRefetching?: boolean;\n onExport?: () => void;\n onRefetch?: () => void;\n onRowClick?: (row: Row<T>) => void;\n pagination?: TablePaginationProps;\n search?: TableSearchProps;\n table: ReactTable<T>;\n};\n\nexport const Table = <T extends RowData>({\n table,\n isMobile = false,\n onRowClick,\n id,\n onRefetch,\n isRefetching,\n FilterMenu,\n ExtraNode,\n //deprecated: onExport - use download\n onExport,\n search = {\n enabled: false,\n debounceRate: 700,\n },\n download = {\n enabled: false,\n buttonId: \"download_button\",\n buttonText: \"Export\",\n },\n isLoading,\n pagination,\n}: TableProps<T>) => {\n const handleRefetch = () => {\n try {\n onRefetch?.();\n } catch (e) {\n console.error(\"Error while refetching data\", e);\n }\n };\n\n const handleSearch = (e: string) => {\n search?.onSearch?.(e);\n };\n\n return (\n <div className={cn(\"relative w-full rounded-b border-0 overflow-x-auto\")}>\n {(onRefetch ||\n search?.enabled ||\n FilterMenu ||\n ExtraNode ||\n onExport) && (\n <div className=\"w-full flex flex-col sm:flex-row justify-between items-start sm:items-center bg-white p-2 gap-2\">\n <div className=\"flex flex-1 flex-col sm:flex-row items-center gap-2 justify-start\">\n <div className=\" w-full flex gap-x-3\">\n {search?.enabled && (\n <section className=\"sm:w-56\">\n <DebouncedInput\n type=\"text\"\n placeholder=\"Enter search here...\"\n className=\"h-9\"\n onChange={handleSearch}\n debounce={search?.debounceRate}\n />\n </section>\n )}\n <div className=\" flex gap-2\">\n {onRefetch && (\n <Button\n onClick={handleRefetch}\n title=\"Refetch Data\"\n disabled={isRefetching}\n variant=\"outlined\"\n className=\"!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px] \"\n size={\"sm\"}\n >\n <RotateCw\n className={cn(\"w-4 h-4\", {\n \"animate-spin\": isRefetching,\n })}\n size={5}\n />\n </Button>\n )}\n\n {FilterMenu && (\n <Popover\n trigger={\n <button\n title=\"Filter\"\n className={cn(\n \"!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px]\",\n buttonVariants({\n variant: \"outlined\",\n size: \"sm\",\n }),\n )}\n >\n <ListFilter className=\"w-4 h-4\" size={5} />\n </button>\n }\n >\n {FilterMenu}\n </Popover>\n )}\n </div>\n </div>\n </div>\n <div className=\"flex items-start flex-col gap-2 justify-center\">\n <section className=\"flex flex-col-reverse sm:flex-row gap-2\">\n <div className=\"flex gap-2\">\n {ExtraNode && ExtraNode}\n\n {onExport && (\n <Button variant=\"primary\" onClick={onExport} size={\"sm\"}>\n Export\n </Button>\n )}\n {download?.enabled && (\n <Button\n variant=\"primary\"\n leftNode={\n <Download\n className={cn(\"w-4 h-4\", {\n \"animate-spin\": isRefetching,\n })}\n size={5}\n />\n }\n onClick={download?.onDownload}\n id={download.buttonId}\n size={\"sm\"}\n >\n {download?.buttonText}\n </Button>\n )}\n </div>\n </section>\n </div>\n </div>\n )}\n\n <main className=\"w-full overflow-x-auto mt-5\">\n {isLoading ? (\n <div className=\"py-10 flex flex-col justify-center w-full items-center space-x-2\">\n <Loader size={20} className=\"animate-spin\" />\n <p className=\"mt-3 text-center text-gray-600 text-sm opacity-70 animate-pulse\">\n Loading...\n </p>\n </div>\n ) : table.getRowModel().rows.length < 1 ? (\n <div className=\"py-10 flex flex-col justify-center w-full items-center\">\n <p className=\"text-center text-gray-600 text-sm opacity-70\">\n No data available\n </p>\n </div>\n ) : (\n <div className=\"flex flex-col gap-2\">\n <TableBody\n table={table}\n isMobile={isMobile}\n onRowClick={onRowClick}\n id={id}\n />\n </div>\n )}\n </main>\n\n {!isLoading &&\n pagination?.enabled &&\n table.getRowModel().rows.length > 0 && (\n <Pagination\n {...pagination}\n currentPage={pagination?.currentPage ?? 1}\n totalPages={\n pagination?.totalPages ??\n Math.ceil(\n (pagination?.totalItems ?? 0) /\n Math.max(pagination?.itemsPerPage ?? 1, 1),\n ) ??\n 1\n }\n onPageChange={(page) => pagination?.onPageChange?.(page)}\n />\n )}\n </div>\n );\n};\n","import { ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\";\nimport { renderPageNumbers } from \"./utils\";\n\nexport type PaginationProps = {\n currentPage?: number;\n totalPages?: number;\n onPageChange?: (page: number) => void;\n totalItems?: number;\n itemsPerPage?: number;\n};\n\n/**\n * Pagination component for displaying pagination controls.\n * @param {number} currentPage - The current page number.\n * @param {number} totalPages - The total number of pages.\n * @param {function} onPageChange - Callback function to handle page change.\n * @param {number | undefined} itemsPerPage - The number of items per page.\n */\nexport const Pagination = ({\n currentPage = 1,\n totalPages = 1,\n onPageChange,\n itemsPerPage = 0,\n totalItems = 0,\n}: PaginationProps) => {\n const handlePageClick = (page: number) => {\n if (page >= 1 && page <= totalPages) {\n onPageChange?.(page);\n }\n };\n const visibleRangeStart =\n itemsPerPage === 0 ? 1 : itemsPerPage * (currentPage - 1) + 1;\n const visibleRangeEnd =\n currentPage === totalPages\n ? totalItems\n : Math.min(visibleRangeStart + itemsPerPage - 1, totalItems);\n return (\n <div className=\"flex items-center justify-between border-t border-gray-200 px-4 py-3 sm:px-6 w-full flex-wrap gap-y-10 sm:gap-y-0\">\n {totalItems && (\n <section className=\"text-[#717171] text-[12px]\">\n <p className=\"\">\n Showing {visibleRangeStart} - {visibleRangeEnd} of {totalItems}\n </p>\n </section>\n )}\n <div className=\"flex items-center justify-center sm:justify-end \">\n <nav className=\" inline-flex gap-x-1 sm:gap-x-[10px] items-center\">\n <button\n onClick={() => handlePageClick(currentPage - 1)}\n disabled={currentPage === 1}\n className=\"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden\"\n >\n <ChevronLeftIcon className=\"size-5\" />\n </button>\n {renderPageNumbers({ currentPage, totalPages, handlePageClick })}\n <button\n onClick={() => handlePageClick(currentPage + 1)}\n disabled={currentPage === totalPages}\n className=\"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden\"\n >\n <ChevronRightIcon className=\"size-5\" />\n </button>\n </nav>\n </div>\n </div>\n );\n};\n","type RenderPageNumbersProps = {\n totalPages: number;\n currentPage: number;\n handlePageClick: (page: number) => void;\n};\n\nconst PageButton = ({\n page,\n currentPage,\n onClick,\n}: {\n page: number | string;\n currentPage: number;\n onClick?: () => void;\n}) => {\n if (typeof page === \"string\") {\n return (\n <span className=\"px-3 py-1 sm:px-4 sm:py-2 text-xs sm:text-sm font-semibold text-gray-500\">\n {page}\n </span>\n );\n }\n\n return (\n <button\n onClick={onClick}\n className={`p-1 w-8 h-8 text-xs sm:text-sm rounded-full ${\n page === currentPage\n ? \"bg-primary-main text-white\"\n : \"text-[#717171] hover:bg-primary-main/10\"\n }`}\n >\n {page}\n </button>\n );\n};\n\nexport const renderPageNumbers = ({\n totalPages,\n currentPage,\n handlePageClick,\n}: RenderPageNumbersProps) => {\n const maxVisiblePages = 3;\n\n const getWindowBounds = () => {\n const halfWindow = Math.floor(maxVisiblePages / 2);\n let start = Math.max(1, currentPage - halfWindow);\n let end = Math.min(totalPages, start + maxVisiblePages - 1);\n\n if (end > totalPages) {\n start = Math.max(1, totalPages - maxVisiblePages + 1);\n end = totalPages;\n }\n\n return { start, end };\n };\n\n const { start, end } = getWindowBounds();\n const pages: (number | string)[] = [];\n\n if (start > 1) pages.push(1);\n if (start > 2) pages.push(\"...\");\n pages.push(...Array.from({ length: end - start + 1 }, (_, i) => start + i));\n if (end < totalPages - 1) pages.push(\"...\");\n if (end < totalPages) pages.push(totalPages);\n\n return pages.map((page, idx) => (\n <PageButton\n key={idx}\n page={page}\n currentPage={currentPage}\n onClick={\n typeof page === \"number\" ? () => handlePageClick(page) : undefined\n }\n />\n ));\n};\n","import {\n flexRender,\n Row,\n RowData,\n Table as ReactTable,\n} from \"@tanstack/react-table\";\nimport { cn } from \"@/src/utils\";\n\ntype TableBodyProps<T extends RowData> = {\n table: ReactTable<T>;\n isMobile: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onRowClick?: (row: Row<any>) => void;\n id?: string;\n};\n\nexport const TableBody = <T extends RowData>({\n table,\n isMobile,\n onRowClick,\n id,\n}: TableBodyProps<T>) => {\n return (\n <div className={cn(\"relative w-full rounded-b border-0\", {})}>\n <table id={id ?? \"table\"} className=\"w-full overflow-x-scroll\">\n <thead>\n {table.getHeaderGroups().map((headerGroup) => (\n <tr\n className={cn(\n \" rounded text-[#717171] border-b- bg-[#FCFCFC]\",\n {},\n )}\n key={headerGroup.id}\n >\n {headerGroup.headers.map((header) => (\n <th\n className=\"relative py-3 text-base whitespace-nowrap pl-2.5 text-left font-normal capitalize\"\n colSpan={header.colSpan}\n key={header.id}\n style={{\n width: header.getSize(),\n }}\n >\n {header.isPlaceholder ? null : (\n <div\n className={cn(\"flex items-center\", {\n \"cursor-pointer select-none\":\n header.column.getCanSort(),\n })}\n onClick={header.column.getToggleSortingHandler()}\n >\n {header.isPlaceholder\n ? null\n : flexRender(\n header.column.columnDef.header,\n header.getContext(),\n )}\n </div>\n )}\n </th>\n ))}\n </tr>\n ))}\n </thead>\n <tbody className=\" pl-2.5\">\n {table?.getFilteredRowModel().rows.map((row) => (\n <tr\n className={cn(\n \"first-letter border-b border-zinc-100\",\n {\n \"hover:bg-gray-50\": !isMobile,\n },\n {\n \"hover:bg-gray-50 hover:cursor-pointer\": onRowClick,\n },\n )}\n key={row.id}\n onClick={() => (onRowClick ? onRowClick(row) : {})}\n >\n {row.getVisibleCells().map((cell) => (\n <td\n className={cn(\"\", {\n // block: false,\n })}\n key={cell.id}\n >\n <div\n className={cn(\"\", {\n \"w-max p-4 pl-2.5 text-black text-sm\": true,\n })}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </div>\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n};\n","import { useEffect } from \"react\";\nimport { X } from \"lucide-react\";\n\ntype Props = {\n environment: \"staging\" | \"sandbox\" | \"production\";\n branch: string;\n version: string;\n deployTime: string;\n onClose: () => void;\n showBanner: boolean;\n initDefault: () => void;\n removeFromStorage: () => void;\n syncLocalStorageToState: () => void;\n};\nexport const DevBanner = (props: Props) => {\n const {\n environment,\n branch,\n version,\n deployTime,\n showBanner,\n onClose,\n initDefault,\n removeFromStorage,\n syncLocalStorageToState,\n } = props;\n\n const currentEnv = environment || process.env.NEXT_PUBLIC_NODE_ENV;\n\n // Early return must happen before any hooks\n if (currentEnv !== \"staging\" && currentEnv !== \"sandbox\") {\n return null;\n }\n\n useEffect(() => {\n // Sync localstorage value to showBanner state\n syncLocalStorageToState();\n }, [syncLocalStorageToState]);\n\n useEffect(() => {\n let interval: NodeJS.Timeout;\n\n if (currentEnv === \"staging\" || currentEnv === \"sandbox\") {\n interval = setInterval(\n () => {\n removeFromStorage();\n initDefault();\n },\n 5 * 60 * 1000, // 5 minutes in milliseconds\n );\n }\n\n return () => {\n if (interval) {\n clearInterval(interval);\n }\n };\n }, [\n showBanner,\n environment,\n onClose,\n removeFromStorage,\n initDefault,\n currentEnv,\n ]);\n\n if (!showBanner) return null;\n\n return (\n <div className=\"w-fit p-4 border shadow-md bg-white rounded-md z-[99999] absolute top-2 right-2 min-w-96\">\n <button onClick={onClose} className=\"absolute top-2 right-2\">\n <X />\n </button>\n <div className=\"space-y-2 text-sm\">\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Environment:</span>\n <span className=\"text-blue-600 capitalize\">{currentEnv}</span>\n </div>\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Branch:</span>\n <span className=\"text-green-600 capitalize\">\n {branch || process.env.NEXT_PUBLIC_DEPLOY_BRANCH}\n </span>\n </div>\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Version:</span>\n <span className=\"text-purple-600\">\n {version || process.env.NEXT_PUBLIC_DEPLOY_VERSION}\n </span>\n </div>\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Deploy Time:</span>\n <span className=\"text-orange-600\">\n {deployTime || process.env.NEXT_PUBLIC_DEPLOY_TIME}\n </span>\n </div>\n </div>\n </div>\n );\n};\n","import { useState, useEffect } from \"react\";\n\ninterface BannerTypes {\n type?: \"gray\" | \"info\" | \"warning\" | \"success\" | \"danger\";\n}\n\ninterface BannerProps extends BannerTypes {\n title?: React.ReactNode;\n description?: React.ReactNode;\n showIcon?: boolean;\n showCloseButton?: boolean;\n bottomNode?: React.ReactNode;\n sideNode?: React.ReactNode;\n open: boolean;\n onClose?: () => void;\n}\n\nconst Icon = ({ type }: BannerTypes) => {\n if (type === \"gray\") {\n return (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10 0C4.49 0 0 4.49 0 10C0 15.51 4.49 20 10 20C15.51 20 20 15.51 20 10C20 4.49 15.51 0 10 0ZM14.78 7.7L9.11 13.37C8.97 13.51 8.78 13.59 8.58 13.59C8.38 13.59 8.19 13.51 8.05 13.37L5.22 10.54C4.93 10.25 4.93 9.77 5.22 9.48C5.51 9.19 5.99 9.19 6.28 9.48L8.58 11.78L13.72 6.64C14.01 6.35 14.49 6.35 14.78 6.64C15.07 6.93 15.07 7.4 14.78 7.7Z\"\n fill=\"#79818C\"\n />\n </svg>\n );\n } else if (type === \"info\") {\n return (\n <svg\n stroke=\"#70B6F6\"\n fill=\"#70B6F6\"\n stroke-width=\"0\"\n viewBox=\"0 0 16 16\"\n height=\"24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2\"></path>\n </svg>\n );\n } else if (type === \"warning\") {\n return (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z\"\n fill=\"#FFC700\"\n />\n </svg>\n );\n } else if (type === \"success\") {\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z\"\n fill=\"#00D488\"\n />\n </svg>\n );\n } else {\n return (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z\"\n fill=\"#F04248\"\n />\n </svg>\n );\n }\n};\n\nexport const Banner = ({\n type = \"info\",\n title,\n description,\n open,\n showCloseButton,\n bottomNode,\n sideNode,\n onClose,\n showIcon = true,\n}: BannerProps) => {\n const [isOpen, setIsOpen] = useState<boolean>(open);\n\n useEffect(() => {\n setIsOpen(open);\n }, [open]);\n\n let bgColor = \"\";\n let stripeColor = \"\";\n switch (type) {\n case \"gray\":\n bgColor = \"#eeeef0\";\n stripeColor = \"#79818c\";\n break;\n case \"info\":\n bgColor = \"#ebf5fd\";\n stripeColor = \"#70B6F6\";\n break;\n case \"warning\":\n bgColor = \"#fff8df\";\n stripeColor = \"#ffc700\";\n break;\n case \"success\":\n bgColor = \"#e0f9f0\";\n stripeColor = \"#49e0aa\";\n break;\n case \"danger\":\n bgColor = \"#fde8e9\";\n stripeColor = \"#f3777c\";\n break;\n default:\n bgColor = \"#eeeef0\";\n stripeColor = \"#79818c\";\n break;\n }\n\n function handleClose() {\n setIsOpen(false);\n if (onClose) {\n onClose();\n }\n }\n\n if (!isOpen) {\n return null;\n }\n\n return (\n <div\n className=\"w-full shadow-lg transform flex items-center rounded-md\"\n style={{\n background: bgColor || \"#ebf5fd\",\n }}\n >\n <div\n className=\"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0\"\n style={{\n background: stripeColor || \"#70B6F6\",\n }}\n />\n\n <div className=\"w-full gap-3 h-full flex flex-row justify-between px-4 md:px-4 py-3 md:py-4\">\n <div className=\"flex flex-row gap-2.5 items-start w-full h-full\">\n {showIcon && (\n <div className=\"h-full flex justify-end\">\n <Icon type={type} />\n </div>\n )}\n\n <div className=\"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between\">\n <div className=\"flex-1 gap-3 h-full flex flex-col items-start justify-between\">\n {(title || description) && (\n <div>\n {title && (\n <div className=\"text-sm font-bold text-[#191919]\">\n {title}\n </div>\n )}\n {description && (\n <div className=\"text-sm font-normal text-[#5D5D5D] mt-1\">\n {description}\n </div>\n )}\n </div>\n )}\n\n {bottomNode}\n </div>\n {sideNode}\n </div>\n </div>\n\n {showCloseButton && (\n <div className=\"w-1/10 h-full flex flex-col justify-start items-center\">\n <button onClick={handleClose}>\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3.3335 3.33337L12.6662 12.6661\"\n stroke=\"#191919\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M3.33429 12.6661L12.667 3.33337\"\n stroke=\"#191919\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n </div>\n )}\n </div>\n </div>\n );\n};\n","export const Check = () => {\n return (\n <svg\n stroke=\"currentColor\"\n fill=\"currentColor\"\n strokeWidth=\"0\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n className=\"h-5 w-5\"\n height=\"1em\"\n width=\"1em\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n d=\"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n );\n};\n","import { SVGProps } from \"react\";\n\nexport const EnglishFlag = (props: SVGProps<SVGSVGElement>) => {\n return (\n <svg\n viewBox=\"0 0 60 30\"\n className=\"w-full max-w-md h-auto\"\n aria-label=\"Union Jack - Flag of the United Kingdom\"\n {...props}\n >\n {/* Blue background */}\n <rect width=\"60\" height=\"30\" fill=\"#00247D\" />\n\n {/* White diagonal crosses */}\n <path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#FFFFFF\" strokeWidth=\"6\" />\n\n {/* Red diagonal crosses */}\n <path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#CF142B\" strokeWidth=\"4\" />\n\n {/* White cross */}\n <path d=\"M30,0 L30,30 M0,15 L60,15\" stroke=\"#FFFFFF\" strokeWidth=\"10\" />\n\n {/* Red cross */}\n <path d=\"M30,0 L30,30 M0,15 L60,15\" stroke=\"#CF142B\" strokeWidth=\"6\" />\n </svg>\n );\n};\n","import { SVGProps } from \"react\";\n\nexport const FrenchFlag = (props: SVGProps<SVGSVGElement>) => {\n return (\n <svg\n viewBox=\"0 0 60 40\"\n className=\"w-full max-w-md h-auto\"\n aria-label=\"Tricolore - Flag of France\"\n {...props}\n >\n {/* Blue stripe */}\n <rect x=\"0\" y=\"0\" width=\"20\" height=\"40\" fill=\"#002395\" />\n\n {/* White stripe */}\n <rect x=\"20\" y=\"0\" width=\"20\" height=\"40\" fill=\"#FFFFFF\" />\n\n {/* Red stripe */}\n <rect x=\"40\" y=\"0\" width=\"20\" height=\"40\" fill=\"#ED2939\" />\n </svg>\n );\n};\n","export const UpDownIcon = () => {\n return (\n <svg\n width=\"20\"\n height=\"18\"\n viewBox=\"0 0 8 18\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","import { cn } from \"@/src/utils\";\nimport { PopoverContent, PopoverRoot, PopoverTrigger } from \"../popover\";\nimport { Check } from \"./icons/Check\";\nimport { EnglishFlag } from \"./icons/EnglishFlag\";\nimport { FrenchFlag } from \"./icons/FrenchFlag\";\nimport { UpDownIcon } from \"./icons/UpDownIcon\";\nimport { PopoverClose } from \"@radix-ui/react-popover\";\n\nconst localeListOptons = [\n {\n key: \"en\",\n label: \"English\",\n },\n {\n key: \"fr\",\n label: \"French\",\n },\n];\n\ntype LocaleOption = {\n key: string;\n label: string;\n};\n\nconst LocaleIcon = ({ locale }: { locale?: string }) => {\n if (locale === \"fr\") return <FrenchFlag width={10} />;\n return <EnglishFlag width={10} />;\n};\n\nconst LocaleTrigger = ({ locale }: { locale?: string }) => {\n return (\n <div className=\"px-2 py-1 \">\n <div className=\"flex items-center gap-2.5\">\n <LocaleIcon locale={locale} />{\" \"}\n <span className=\"uppercase\">{locale}</span>\n <UpDownIcon />\n </div>\n </div>\n );\n};\n\nexport const LocaleSelector = ({\n locale = \"en\",\n onChange,\n locales = localeListOptons,\n}: {\n locale?: string;\n onChange?: (locale: string) => void;\n locales?: LocaleOption[];\n}) => {\n return (\n <PopoverRoot>\n <div className=\"flex items-center gap-2 px-2 py-1 rounded-lg shadow border-[0.5px] border-gray-50/50 text-current bg-white/10 \">\n <PopoverTrigger className={\"!p-0 !bg-transparent \"}>\n <LocaleTrigger locale={locale} />\n </PopoverTrigger>\n </div>\n <PopoverContent\n side=\"bottom\"\n className=\"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2\"\n >\n <div>\n {locales?.map((_locale) => (\n <PopoverClose\n type=\"button\"\n key={_locale?.key}\n className={cn(\n \"flex items-center gap-3 px-3 py-1 text-sm hover:bg-blue-50 w-full transition-all\",\n { \"bg-blue-100\": locale && locale === _locale?.key },\n )}\n onClick={() => onChange?.(_locale?.key)}\n >\n {_locale?.label} {locale && locale === _locale?.key && <Check />}\n </PopoverClose>\n ))}\n </div>\n </PopoverContent>\n </PopoverRoot>\n );\n};\n","export const CurrencySymbolMap: Record<string, string> = {\n USD: \"$\",\n CAD: \"CA$\",\n EUR: \"€\",\n AED: \"AED\",\n AFN: \"Af\",\n ALL: \"ALL\",\n AMD: \"AMD\",\n ARS: \"AR$\",\n AUD: \"AU$\",\n AZN: \"man.\",\n BAM: \"KM\",\n BDT: \"Tk\",\n BGN: \"BGN\",\n BHD: \"BD\",\n BIF: \"FBu\",\n BND: \"BN$\",\n BOB: \"Bs\",\n BRL: \"R$\",\n BWP: \"BWP\",\n BYN: \"Br\",\n BZD: \"BZ$\",\n CDF: \"CDF\",\n CHF: \"CHF\",\n CLP: \"CL$\",\n CNY: \"CN¥\",\n COP: \"CO$\",\n CRC: \"₡\",\n CVE: \"CV$\",\n CZK: \"Kč\",\n DJF: \"Fdj\",\n DKK: \"Dkr\",\n DOP: \"RD$\",\n DZD: \"DA\",\n EEK: \"Ekr\",\n EGP: \"EGP\",\n ERN: \"Nfk\",\n ETB: \"Br\",\n GBP: \"£\",\n GEL: \"GEL\",\n GHS: \"GH₵\",\n GNF: \"FG\",\n GTQ: \"GTQ\",\n HKD: \"HK$\",\n HNL: \"HNL\",\n HRK: \"kn\",\n HUF: \"Ft\",\n IDR: \"Rp\",\n ILS: \"₪\",\n INR: \"₹\",\n IQD: \"IQD\",\n IRR: \"IRR\",\n ISK: \"Ikr\",\n JMD: \"J$\",\n JOD: \"JD\",\n JPY: \"¥\",\n KES: \"Ksh\",\n KHR: \"KHR\",\n KMF: \"CF\",\n KRW: \"₩\",\n KWD: \"KD\",\n KZT: \"KZT\",\n LBP: \"L.L.\",\n LKR: \"SLRs\",\n LTL: \"Lt\",\n LVL: \"Ls\",\n LYD: \"LD\",\n MAD: \"MAD\",\n MDL: \"MDL\",\n MGA: \"MGA\",\n MKD: \"MKD\",\n MMK: \"MMK\",\n MOP: \"MOP$\",\n MUR: \"MURs\",\n MXN: \"MX$\",\n MYR: \"RM\",\n MZN: \"MTn\",\n NAD: \"N$\",\n NGN: \"₦\",\n NIO: \"C$\",\n NOK: \"Nkr\",\n NPR: \"NPRs\",\n NZD: \"NZ$\",\n OMR: \"OMR\",\n PAB: \"B/.\",\n PEN: \"S/.\",\n PHP: \"₱\",\n PKR: \"PKRs\",\n PLN: \"zł\",\n PYG: \"₲\",\n QAR: \"QR\",\n RON: \"RON\",\n RSD: \"din.\",\n RUB: \"RUB\",\n RWF: \"RWF\",\n SAR: \"SR\",\n SDG: \"SDG\",\n SEK: \"Skr\",\n SGD: \"S$\",\n SOS: \"Ssh\",\n SYP: \"SY£\",\n THB: \"฿\",\n TND: \"DT\",\n TOP: \"T$\",\n TRY: \"TL\",\n TTD: \"TT$\",\n TWD: \"NT$\",\n TZS: \"TSh\",\n UAH: \"₴\",\n UGX: \"USh\",\n UYU: \"$U\",\n UZS: \"UZS\",\n VEF: \"Bs.F.\",\n VND: \"₫\",\n XAF: \"F CFA\",\n XOF: \"CFA\",\n YER: \"YR\",\n ZAR: \"R\",\n ZMK: \"ZK\",\n ZWL: \"ZWL$\",\n};\nexport interface FormatCurrencyOptions {\n convertToMajorCurrency?: boolean;\n locale?: string;\n}\nexport class AmountAction {\n static getCurrencyLocaleMap(currency: string): string {\n const localeMap: Record<string, string> = {\n XOF: \"fr\",\n XAF: \"fr\",\n };\n return localeMap[currency] || \"en\";\n }\n static koboToNaira(amount: number | string) {\n return +amount / 100;\n }\n\n static nairaToKobo(amount: number | string) {\n return +amount * 100;\n }\n\n static getCurrencySymbol(currency: string): string {\n return CurrencySymbolMap[currency] || currency;\n }\n\n static formatAmountAndCurrency = (\n currency: string,\n value: number | string,\n options: FormatCurrencyOptions,\n ) => {\n const formatted = new Intl.NumberFormat(\n options?.locale || this.getCurrencyLocaleMap(currency),\n {\n maximumFractionDigits: 3,\n style: \"currency\",\n currency: currency,\n currencyDisplay: \"symbol\",\n },\n )\n .format(\n options?.convertToMajorCurrency\n ? this.koboToNaira(Number(value))\n : Number(value),\n )\n .replace(/^(\\D+)/, \"$1 \")\n .replace(\" \", \" \")\n .replace(/\\s+/, \"\");\n\n // Now replace the currency code with the desired symbol from the map\n const customSymbol = CurrencySymbolMap[currency] || currency;\n\n // Replace the currency code with our custom symbol\n return formatted.replace(currency, customSymbol);\n };\n}\n","// import dayjs from \"dayjs\";\nimport dayjs from \"dayjs\";\nexport class DateAction {\n static getDateLibrary(): dayjs.Dayjs {\n return dayjs();\n }\n static formatTimestampToDate(timestamp: number, dateFormat?: string) {\n return dayjs\n .unix(timestamp)\n .format(dateFormat || \"ddd, MMM, YYYY | HH:mm:ss\");\n }\n\n static formatDateToTimestamp(date: string) {\n return dayjs(date).unix();\n }\n}\n\n// console.log(\"Date\", dayjs().format(\"DD, MMM, YYYY | HH:mm:ss\"));\n"],"mappings":"yKAAA,OAAOA,OAAW,QCElB,UAAYC,OAAW,QACvB,UAAYC,OAAoB,wBAChC,OAAS,OAAAC,OAA8B,2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EAEA,SAAAb,GAACgC,GAAA,CACE,WAACd,GAAcnB,EAACkC,GAAA,CAAa,4BAAgB,EAC9ClC,EAACmC,GAAA,CAAa,UAAU,SACrB,SAAAvB,GAAS,IAAKwB,GACbpC,EAACqC,GAAA,CACC,aAAcjC,GAAO,MAErB,MAAOgC,EAAO,MACd,SAAU7B,EACV,SAAU,IAAM,CACdM,EAASuB,CAAM,EACfZ,GAAQ,EAAK,EACbH,IAAgBe,GAAQ,KAAK,CAC/B,EAEC,SAACpB,EAAiCA,EAAgBoB,CAAM,EAArCA,EAAO,OATtBA,EAAO,KAUd,CACD,EACH,GACF,EACF,GACF,EACF,GACF,CAEJ,EMjLO,IAAME,GAAc,CACzB,CACE,YAAa,SACb,YAAa,SACb,SAAU,UACV,aAAc,MACd,oBAAqB,QACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,eACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,WACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,OACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,WACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,WACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,gBACV,aAAc,MACd,aAAc,SACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,gBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,cACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,eACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,aACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,OACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,aACb,YAAa,OACb,SAAU,qBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,iBACV,aAAc,MACd,aAAc,SACd,oBAAqB,IACvB,EACA,CACE,YAAa,wBACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,gBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,aACb,YAAa,OACb,SAAU,oBACV,aAAc,MACd,aAAc,SACd,oBAAqB,IACvB,EACA,CACE,YAAa,eACb,YAAa,MACb,SAAU,qBACV,aAAc,MACd,aAA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AK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,OACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,SACL,IAAK,MACL,IAAK,SACL,IAAK,MACL,IAAK,UACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,OACL,IAAK,MACL,IAAK,WACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,IAAK,SACL,IAAK,SACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,OACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,SACL,IAAK,KACL,IAAK,MACL,IAAK,OACL,IAAK,OACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,OACL,IAAK,OACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,KACL,IAAK,SACL,IAAK,KACL,IAAK,MACL,IAAK,OACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,SACL,IAAK,OACL,IAAK,UACL,IAAK,SACL,IAAK,KACL,IAAK,MACL,IAAK,OACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,SACL,IAAK,SACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,SACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,QACL,IAAK,SACL,IAAK,QACL,IAAK,MACL,IAAK,KACL,IAAK,IACL,IAAK,KACL,IAAK,MACP,EAKaC,GAAN,MAAMA,EAAa,CACxB,OAAO,qBAAqBC,EAA0B,CAKpD,MAJ0C,CACxC,IAAK,KACL,IAAK,IACP,EACiBA,CAAQ,GAAK,IAChC,CACA,OAAO,YAAYC,EAAyB,CAC1C,MAAO,CAACA,EAAS,GACnB,CAEA,OAAO,YAAYA,EAAyB,CAC1C,MAAO,CAACA,EAAS,GACnB,CAEA,OAAO,kBAAkBD,EAA0B,CACjD,OAAOF,GAAkBE,CAAQ,GAAKA,CACxC,CA+BF,EA7BEE,GApBWH,GAoBJ,0BAA0B,CAC/BC,EACAG,EACAC,IACG,CACH,IAAMC,EAAY,IAAI,KAAK,aACzBD,GAAS,QAAUL,GAAK,qBAAqBC,CAAQ,EACrD,CACE,sBAAuB,EACvB,MAAO,WACP,SAAUA,EACV,gBAAiB,QACnB,CACF,EACG,OACCI,GAAS,uBACLL,GAAK,YAAY,OAAOI,CAAK,CAAC,EAC9B,OAAOA,CAAK,CAClB,EACC,QAAQ,SAAU,KAAK,EACvB,QAAQ,SAAK,GAAG,EAChB,QAAQ,MAAO,EAAE,EAGdG,EAAeR,GAAkBE,CAAQ,GAAKA,EAGpD,OAAOK,EAAU,QAAQL,EAAUM,CAAY,CACjD,GAhDK,IAAMC,GAANR,GC5HP,OAAOS,OAAW,QACX,IAAMC,GAAN,KAAiB,CACtB,OAAO,gBAA8B,CACnC,OAAOD,GAAM,CACf,CACA,OAAO,sBAAsBE,EAAmBC,EAAqB,CACnE,OAAOH,GACJ,KAAKE,CAAS,EACd,OAAOC,GAAc,2BAA2B,CACrD,CAEA,OAAO,sBAAsBC,EAAc,CACzC,OAAOJ,GAAMI,CAAI,EAAE,KAAK,CAC1B,CACF","names":["React","React","LabelPrimitive","cva","clsx","twMerge","cn","inputs","jsx","labelVariants","cva","Label","className","props","ref","cn","jsx","jsxs","FormLabel","React","className","children","showAsterisk","error","props","ref","Label","cn","jsx","jsxs","Loader","size","colour","React","Slot","cva","Fragment","jsx","jsxs","buttonVariants","cva","Button","className","variant","size","asChild","isLoading","leftNode","rightNode","LoaderSize","props","ref","Component","Slot","children","disabled","rest","reference","cn","Loader","React","cva","React","jsx","ErrorMessage","className","children","error","props","ref","body","cn","React","jsx","FormDescription","className","props","ref","cn","jsx","jsxs","inputVariants","cva","BaseInnerInput","className","status","type","props","ref","cn","inputContainerVariants","sideVariants","Input","disabled","error","isLoading","sideNodeClassName","showAsterisk","label","description","containerStatus","FormLabel","FormDescription","ErrorMessage","useMemo","useState","jsx","jsxs","Eye","jsx","jsxs","EyeOff","jsx","Check","jsx","Fail","jsx","jsxs","validationOptions","PasswordInput","onValidate","onChange","disableValidation","props","passwordVisible","setPasswordVisible","useState","validatedValues","setValidatedValues","validatePassword","value","option","checkPasswordStrength","validatedOptions","allValidated","handlePaswordInputChange","e","validated","ValidateComp","useMemo","cn","Check","Fail","Input","val","Eye","EyeOff","cva","jsx","jsxs","textareaContainerVariants","cva","Textarea","className","status","disabled","error","isLoading","showAsterisk","label","description","props","containerStatus","FormLabel","cn","inputContainerVariants","FormDescription","ErrorMessage","React","React","CommandPrimitive","Search","React","DialogPrimitive","jsx","jsxs","CloseIcon","Fragment","jsx","jsxs","DialogRoot","DialogTrigger","DialogPortal","DialogOverlay","className","props","ref","cn","DialogContent","hideCloseButton","children","CloseIcon","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Dialog","trigger","open","onOpenChange","footer","title","description","contentClassName","headerClassName","titleClassName","descriptionClassName","footerClassName","asChild","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onInteractOutside","onPointerDownOutside","Fragment","jsx","jsxs","Command","className","props","ref","CommandPrimitive","cn","CommandInput","className","CommandInputContainerClassName","loading","props","ref","jsxs","cn","jsx","Loader","Search","CommandPrimitive","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","React","PopoverPrimitive","jsx","jsxs","PopoverRoot","PopoverTrigger","PopoverContent","className","align","sideOffset","portal","props","ref","cn","Popover","trigger","children","open","onOpenChange","contentClassName","asChild","side","alignOffset","triggerClassName","onOpenAutoFocus","onCloseAutoFocus","React","ScrollAreaPrimitive","jsx","jsxs","ScrollArea","className","viewPortClassName","children","props","ref","cn","ScrollBar","orientation","jsx","jsxs","SearchableTrigger","className","value","placeholder","status","disabled","PopoverTrigger","cn","inputContainerVariants","Searchable","options","onChange","containerClassName","loading","optionComponent","children","modal","hideSearch","inputValue","onValueChange","onInputValueChange","open","setOpen","triggerRef","width","setWidth","PopoverRoot","PopoverContent","Command","CommandInput","ScrollArea","CommandList","CommandEmpty","CommandGroup","option","CommandItem","countryData","getCountryDataMap","frequency","country","React","RPNInput","flags","jsx","jsxs","FlatGlobeIcon","props","Flag_default","jsx","jsxs","PhoneInput","className","onChange","defaultCountry","modal","showAsterisk","label","description","error","props","ref","CountrySelectWrapper","innerProps","CountrySelect","FormLabel","cn","FlagComponent","InputComponent","value","FormDescription","ErrorMessage","Input","disabled","options","status","handleSelect","country","PopoverRoot","PopoverTrigger","inputContainerVariants","PopoverContent","Command","CommandList","ScrollArea","CommandInput","CommandEmpty","CommandGroup","x","option","CommandItem","countryName","Flag","flags","Flag_default","jsx","jsxs","countryMap","getCountryDataMap","CountryTrigger","className","value","placeholder","status","disabled","PopoverTrigger","cn","inputContainerVariants","FlagComponent","Country","hideSearch","showAsterisk","label","description","error","props","options","countryData","country","FormLabel","Searchable","arg","FormDescription","ErrorMessage","jsx","jsxs","Select","showAsterisk","label","description","error","hideSearch","status","props","FormLabel","Searchable","SearchableTrigger","FormDescription","ErrorMessage","OtpInput","cva","useMemo","jsx","otpInputVariants","OTPInput","numInputs","inputStyle","containerStyle","placeholder","status","props","placeholderValue","accumulator","currentValue","OtpInput","cn","useState","Copy","CheckIcon","motion","AnimatePresence","jsx","jsxs","CopyableLabel","text","textToCopy","onCopy","iconsPosition","clampText","textClassName","copied","setCopied","useState","copyToClipboard","Icon","CheckIcon","Copy","AnimatedIcon","cn","onClick","AnimatePresence","motion","useEffect","useState","Search","jsx","DebouncedInput","initialValue","onChange","debounce","addon","props","value","setValue","useState","handleInputChange","event","useEffect","timeout","Input","cn","jsx","Status","status","variant","className","cn","Download","ListFilter","Loader","RotateCw","ChevronLeftIcon","ChevronRightIcon","jsx","PageButton","page","currentPage","onClick","renderPageNumbers","totalPages","handlePageClick","getWindowBounds","halfWindow","start","end","pages","_","i","idx","jsx","jsxs","Pagination","currentPage","totalPages","onPageChange","itemsPerPage","totalItems","handlePageClick","page","visibleRangeStart","visibleRangeEnd","ChevronLeftIcon","renderPageNumbers","ChevronRightIcon","flexRender","jsx","jsxs","TableBody","table","isMobile","onRowClick","id","cn","headerGroup","header","flexRender","row","cell","jsx","jsxs","Table","table","isMobile","onRowClick","id","onRefetch","isRefetching","FilterMenu","ExtraNode","onExport","search","download","isLoading","pagination","handleRefetch","e","handleSearch","cn","DebouncedInput","Button","RotateCw","Popover","buttonVariants","ListFilter","Download","Loader","TableBody","Pagination","page","useEffect","X","jsx","jsxs","DevBanner","props","environment","branch","version","deployTime","showBanner","onClose","initDefault","removeFromStorage","syncLocalStorageToState","currentEnv","interval","useState","useEffect","jsx","jsxs","Icon","type","Banner","title","description","open","showCloseButton","bottomNode","sideNode","onClose","showIcon","isOpen","setIsOpen","bgColor","stripeColor","handleClose","jsx","Check","jsx","jsxs","EnglishFlag","props","jsx","jsxs","FrenchFlag","props","jsx","jsxs","UpDownIcon","PopoverClose","jsx","jsxs","localeListOptons","LocaleIcon","locale","FrenchFlag","EnglishFlag","LocaleTrigger","UpDownIcon","LocaleSelector","onChange","locales","PopoverRoot","PopoverTrigger","PopoverContent","_locale","cn","Check","CurrencySymbolMap","_AmountAction","currency","amount","__publicField","value","options","formatted","customSymbol","AmountAction","dayjs","DateAction","timestamp","dateFormat","date"]}
|
1
|
+
{"version":3,"sources":["../src/components/label/FormLabel.tsx","../src/components/label/index.tsx","../src/utils/index.ts","../src/components/loader/index.tsx","../src/components/button/index.tsx","../src/components/input/index.tsx","../src/components/form/ErrorMessage.tsx","../src/components/form/FormDescription.tsx","../src/components/password-input/index.tsx","../src/components/password-input/icons/Eye.tsx","../src/components/password-input/icons/EyeOff.tsx","../src/components/password-input/icons/Check.tsx","../src/components/password-input/icons/Fail.tsx","../src/components/textarea/index.tsx","../src/components/searcheable/index.tsx","../src/components/command/index.tsx","../src/components/dialog/index.tsx","../src/components/dialog/icon/CloseIcon.tsx","../src/components/popover/index.tsx","../src/components/scroll-area/index.tsx","../src/components/country/data.ts","../src/components/phone-input/index.tsx","../src/components/phone-input/Flag.tsx","../src/components/country/index.tsx","../src/components/select/index.tsx","../src/components/otp/index.tsx","../src/components/copyable-label/index.tsx","../src/components/debounced-input/index.tsx","../src/components/status/index.tsx","../src/components/table/index.tsx","../src/components/table/pagination/index.tsx","../src/components/table/pagination/utils.tsx","../src/components/table/TableBody.tsx","../src/components/dev-banner/index.tsx","../src/components/banner/index.tsx","../src/components/locale-selctor/icons/Check.tsx","../src/components/locale-selctor/icons/EnglishFlag.tsx","../src/components/locale-selctor/icons/FrenchFlag.tsx","../src/components/locale-selctor/icons/UpDownIcon.tsx","../src/components/locale-selctor/index.tsx","../src/components/drawer/index.tsx","../src/components/drawer/icon/CloseIcon.tsx","../src/actions/amount.action.ts","../src/actions/date.action.ts"],"sourcesContent":["import React from \"react\";\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Label } from \".\";\nimport { cn } from \"@/src/utils\";\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & {\n showAsterisk?: boolean;\n error?: string;\n formItemId?: string;\n }\n>(({ className, children, showAsterisk, error, ...props }, ref) => {\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-red-500\", className)}\n // htmlFor={formItemId}\n {...props}\n >\n {showAsterisk ? (\n <p>\n {children}\n <span className=\"text-red-500\">*</span>\n </p>\n ) : (\n children\n )}\n </Label>\n );\n});\n\nFormLabel.displayName = \"FormLabel\";\n\nexport { FormLabel };\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/utils\";\n\nconst labelVariants = cva(\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\ntype Status =\n | string\n | \"unpaid\"\n | \"partial-payment\"\n | \"active\"\n | \"paid\"\n | \"inactive\"\n | \"in-progress\"\n | \"failed\"\n | \"abandoned\"\n | \"success\";\n\ntype Variant = \"success\" | \"failed\" | \"pending\" | \"abandoned\";\ntype StatusVariantMap = Record<Status, Variant>;\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function areObjectsEqual<T extends object>(obj1: T, obj2: T): boolean {\n const keys1 = Object.keys(obj1);\n const keys2 = Object.keys(obj2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (const key of keys1) {\n const val1 = obj1[key as keyof T];\n const val2 = obj2[key as keyof T];\n\n if (\n typeof val1 === \"object\" &&\n val1 !== null &&\n typeof val2 === \"object\" &&\n val2 !== null\n ) {\n if (!areObjectsEqual(val1, val2)) {\n return false;\n }\n } else if (val1 !== val2) {\n return false;\n }\n }\n\n return true;\n}\n\nconst defaultStatusGroups: StatusVariantMap = {\n unpaid: \"pending\",\n \"partial-payment\": \"pending\",\n active: \"success\",\n paid: \"success\",\n inactive: \"abandoned\",\n \"in-progress\": \"pending\",\n failed: \"failed\",\n abandoned: \"abandoned\",\n success: \"success\",\n};\n\nexport const getStatusVariant = (\n status: Status,\n customGroups?: Partial<StatusVariantMap>,\n): Variant => {\n const mergedGroups = { ...defaultStatusGroups, ...customGroups };\n return mergedGroups[status] || \"pending\";\n};\n","type Colours = \"primary\" | \"secondary\";\n\nexport const Loader = ({\n size = 16,\n colour = \"primary\",\n}: {\n size?: number;\n colour?: Colours;\n}) => {\n return (\n <svg\n className=\"animate-spin\"\n width={size}\n height={size}\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <circle cx=\"10\" cy=\"10\" r=\"9.25\" stroke=\"transparent\" strokeWidth=\"1.5\" />\n <path\n d=\"M10 0.595792C10 0.266746 10.267 -0.00185055 10.5954 0.0177417C11.9786 0.100242 13.3318 0.469461 14.5682 1.1044C15.9816 1.83021 17.2016 2.88235 18.1273 4.17366C19.0531 5.46496 19.6578 6.95826 19.8913 8.52984C20.1249 10.1014 19.9807 11.706 19.4705 13.2108C18.9604 14.7155 18.0991 16.077 16.9579 17.1825C15.8167 18.288 14.4285 19.1056 12.9084 19.5677C11.3882 20.0298 9.77982 20.123 8.21646 19.8397C6.84883 19.5918 5.55009 19.0619 4.40196 18.2863C4.12931 18.1021 4.08072 17.7265 4.28083 17.4653C4.48094 17.2041 4.85388 17.1564 5.12801 17.3384C6.12474 18.0001 7.24768 18.4531 8.42898 18.6672C9.80606 18.9168 11.2228 18.8347 12.5618 18.4276C13.9008 18.0206 15.1236 17.3004 16.1288 16.3266C17.134 15.3528 17.8927 14.1536 18.342 12.8282C18.7914 11.5027 18.9185 10.0893 18.7127 8.70502C18.507 7.32071 17.9743 6.00535 17.1589 4.86792C16.3435 3.73048 15.2688 2.80371 14.0238 2.16439C12.9559 1.61596 11.789 1.29259 10.5954 1.21173C10.2671 1.18949 10 0.92484 10 0.595792Z\"\n fill={colour === \"primary\" ? \"#ffffff\" : \"currentColor\"}\n className=\"rounded\"\n />\n </svg>\n );\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/utils\";\nimport { Loader } from \"../loader\";\nimport { ButtonHTMLAttributes } from \"react\";\nimport { DetailedHTMLProps } from \"react\";\n\nconst buttonVariants = cva(\n \"overflow-hidden isolate inline-flex h-fit items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background dark:ring-offset-transparent transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:!pointer-events-none\",\n {\n variants: {\n variant: {\n primary:\n \"border-primary-main bg-primary-main hover:bg-primary-main/70 disabled:bg-primary-main/70 text-white font-bold\",\n danger:\n \"border-red-600 bg-red-600 hover:bg-red-600/70 disabled:bg-red-600/70 text-white font-bold\",\n neutral:\n \"!border-0 bg-transparent text-primary-main hover:opacity-80 disabled:opacity-60\",\n outlined:\n \"border border-primary-main text-primary-main hover:opacity-80 disabled:opacity-60\",\n \"danger-outlined\":\n \"border border-red-600 text-red-600 hover:opacity-80 disabled:opacity-60\",\n \"light-outlined\":\n \"border-white text-white hover:opacity-80 disabled:opacity-60\",\n \"dark-text\":\n \"border-transparent bg-transparent hover:bg-opacity-70 disabled:bg-opacity-70 text-black font-medium\",\n light:\n \"border-white bg-white hover:bg-opacity-70 disabled:bg-opacity-70 text-primary-main font-semibold\",\n },\n size: {\n // lg: \"h-15 px-8 items-center\",\n // sm: \"h-10 px-3.5 items-center text-sm\",\n default:\n \"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg\",\n sm: \"py-[0.375rem] px-[1rem] leading-[1rem] font-normal text-sm rounded-lg\",\n lg: \"py-[0.75rem] px-[1.5rem] text-[1rem] leading-[1.5rem] font-medium rounded-lg\",\n md: \"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg\",\n \"icon-sm\":\n \"h-[1.75rem] w-[1.75rem] flex justify-center items-center font-medium rounded-lg\",\n icon: \"h-[2.5rem] w-[2.75rem] flex justify-center items-center font-medium rounded-lg\",\n \"icon-lg\":\n \"h-[3rem] w-[3rem] flex justify-center items-center font-medium rounded-lg\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n // extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n extends DetailedHTMLProps<\n ButtonHTMLAttributes<HTMLButtonElement>,\n HTMLButtonElement\n >,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n isLoading?: boolean;\n leftNode?: React.ReactNode;\n rightNode?: React.ReactNode;\n LoaderSize?: number;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant = \"primary\",\n size,\n asChild = false,\n isLoading = false,\n leftNode,\n rightNode,\n LoaderSize,\n // ref,\n ...props\n },\n ref,\n ) => {\n const Component = asChild ? Slot : \"button\";\n\n const { children, disabled, ...rest } = props;\n const reference = React.useRef<HTMLButtonElement>(null);\n\n return (\n <Component\n className={cn(buttonVariants({ variant, size, className }))}\n ref={reference || ref}\n disabled={disabled || isLoading}\n {...rest}\n children={\n <div className=\"flex font-medium justify-center items-center gap-2\">\n {/* {leftNode}\n {children}\n {rightNode}\n {isLoading && <Loader />} */}\n\n {isLoading ? (\n <>\n <span className=\"mx-auto\">\n <Loader size={LoaderSize} colour=\"secondary\" />\n </span>\n </>\n ) : (\n <>\n {leftNode}\n {children}\n {rightNode}\n </>\n )}\n </div>\n }\n />\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/src/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\nimport { FormDescription } from \"../form/FormDescription\";\n\nexport const inputVariants = cva(\n \"!p-0 flex h-full w-full !border-transparent !bg-transparent text-base focus-visible:bg-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50\",\n {\n variants: {\n status: {\n default: \"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]\",\n error: \"placeholder:text-red-500 text-red-500\",\n loading: \"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]\",\n prefilled: \"\",\n neutral: \"\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\nexport interface BaseInnerInputProps\n extends React.InputHTMLAttributes<HTMLInputElement>,\n VariantProps<typeof inputVariants> {}\n\nconst BaseInnerInput = React.forwardRef<HTMLInputElement, BaseInnerInputProps>(\n ({ className, status, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(inputVariants({ status }), className)}\n ref={ref}\n {...props}\n />\n );\n },\n);\nBaseInnerInput.displayName = \"BaseInnerInput\";\n\nexport const inputContainerVariants = cva(\n \"flex relative h-10 w-full rounded-[4px] dark:!bg-transparent border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]\",\n {\n variants: {\n status: {\n default:\n \"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-text-primary focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-status-error-bg-dark text-red-500 focus-within:bg-red-50 focus-within:border-red-500\",\n loading: \"\",\n prefilled:\n \"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n neutral:\n \"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\nexport const sideVariants = cva(\n \"top-0 flex justify-center items-center h-full min-w-[50px] max-w-[100px] dark:!bg-transparent transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]\",\n {\n variants: {\n side: {\n left: \"left-0 rounded-l-[8px] border-r\",\n right: \"right-0 rounded-r-[8px] border-l\",\n },\n status: {\n default:\n \"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-red-50 text-red-500 focus-within:bg-red-50 focus-within:border-red-500\",\n loading: \"\",\n prefilled:\n \"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n neutral: \"bg-transparent border-0 caret-[#DEDEDE] !px-0\",\n },\n },\n defaultVariants: {\n status: \"default\",\n side: \"left\",\n },\n },\n);\n\nexport interface InputProps\n extends BaseInnerInputProps,\n VariantProps<typeof inputContainerVariants> {\n isLoading?: boolean;\n error?: string;\n leftNode?: React.ReactNode;\n rightNode?: React.ReactNode;\n sideNodeClassName?: string;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n className,\n status = \"default\",\n disabled,\n error,\n isLoading,\n sideNodeClassName,\n showAsterisk,\n label,\n description,\n ...props\n },\n ref,\n ) => {\n let containerStatus: VariantProps<typeof inputContainerVariants>[\"status\"] =\n status;\n\n if (error) containerStatus = \"error\";\n if (isLoading) containerStatus = \"loading\";\n if (disabled) containerStatus = \"prefilled\";\n\n return (\n <div className=\"relative space-y-1 w-full\">\n {label && (\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n )}\n <div\n className={cn(\n inputContainerVariants({ status: containerStatus }),\n props.leftNode ? \"pl-0\" : \"\",\n props.rightNode ? \"pr-0\" : \"\",\n className,\n )}\n >\n {props.leftNode ? (\n <div\n className={cn(\n sideVariants({\n status: containerStatus,\n side: \"left\",\n }),\n sideNodeClassName,\n )}\n >\n {props.leftNode}\n </div>\n ) : null}\n <BaseInnerInput\n ref={ref}\n disabled={isLoading || disabled}\n className={cn({\n \"!pl-3\": props.leftNode && status !== \"neutral\",\n \"!pr-3\": props.rightNode && status !== \"neutral\",\n })}\n {...props}\n />\n {props.rightNode ? (\n <div\n className={cn(\n sideVariants({\n status: containerStatus,\n side: \"right\",\n }),\n sideNodeClassName,\n )}\n >\n {props.rightNode}\n </div>\n ) : null}\n </div>\n {description && (\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n )}\n <ErrorMessage error={error} />\n </div>\n );\n },\n);\n\n// const Input = ({\n// className,\n// status = \"default\",\n// disabled,\n// error,\n// isLoading,\n// sideNodeClassName,\n// showAsterisk,\n// label,\n// description,\n// ref,\n// ...props\n// }: InputProps) => {\n// let containerStatus: VariantProps<typeof inputContainerVariants>[\"status\"] =\n// status;\n\n// if (error) containerStatus = \"error\";\n// if (isLoading) containerStatus = \"loading\";\n// if (disabled) containerStatus = \"prefilled\";\n\n// return (\n// <div className=\"relative space-y-1 w-full\">\n// {label && (\n// <FormLabel showAsterisk={showAsterisk} error={error}>\n// {label}\n// </FormLabel>\n// )}\n// <div\n// className={cn(\n// inputContainerVariants({ status: containerStatus }),\n// props.leftNode ? \"pl-0\" : \"\",\n// props.rightNode ? \"pr-0\" : \"\",\n// className,\n// )}\n// >\n// {props.leftNode ? (\n// <div\n// className={cn(\n// sideVariants({\n// status: containerStatus,\n// side: \"left\",\n// }),\n// sideNodeClassName,\n// )}\n// >\n// {props.leftNode}\n// </div>\n// ) : null}\n// <BaseInnerInput\n// ref={ref}\n// disabled={isLoading || disabled}\n// className={cn({\n// \"!pl-3\": props.leftNode && status !== \"neutral\",\n// \"!pr-3\": props.rightNode && status !== \"neutral\",\n// })}\n// {...props}\n// />\n// {props.rightNode ? (\n// <div\n// className={cn(\n// sideVariants({\n// status: containerStatus,\n// side: \"right\",\n// }),\n// sideNodeClassName,\n// )}\n// >\n// {props.rightNode}\n// </div>\n// ) : null}\n// </div>\n// {description && (\n// <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n// {description}\n// </FormDescription>\n// )}\n// <ErrorMessage error={error} />\n// </div>\n// );\n// };\n\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { cn } from \"@/src/utils\";\nimport React from \"react\";\n\nconst ErrorMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & {\n error?: string;\n }\n>(({ className, children, error, ...props }, ref) => {\n const body = error ?? children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n className={cn(\"text-xs font-normal text-[#F04248]\", className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nErrorMessage.displayName = \"ErrorMessage\";\n\nexport { ErrorMessage };\n","import { cn } from \"@/src/utils\";\nimport React from \"react\";\n\nconst FormDescription = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\"text-sm text-[#8E98A8\", className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = \"FormDescription\";\n\nexport { FormDescription };\n","import { useMemo, useState } from \"react\";\nimport { Eye } from \"./icons/Eye\";\nimport { EyeOff } from \"./icons/EyeOff\";\nimport { Input, InputProps } from \"../input\";\nimport { cn } from \"@/src/utils\";\nimport { Check } from \"./icons/Check\";\nimport { Fail } from \"./icons/Fail\";\n\nconst validationOptions = [\n {\n label: \"Uppercase\",\n key: \"uppercase\",\n RegExp: /[A-Z]/,\n validated: false,\n },\n {\n label: \"Lowercase\",\n key: \"lowercase\",\n RegExp: /[a-z]/,\n validated: false,\n },\n {\n label: \"Number\",\n key: \"number\",\n RegExp: /\\d/,\n validated: false,\n },\n {\n label: \"8 Characters\",\n key: \"eight-chars\",\n RegExp: /.{8}/,\n validated: false,\n },\n];\n\ntype PasswordInputProps = InputProps & {\n /**\n * onValidate(validated: boolean, value: string) => void\n * args - validated: this is boolean value that indicated that all validation options were met\n * args - value: this is the string input value\n */\n onValidate?: (validated: boolean, value: string) => void;\n disableValidation?: boolean;\n};\nconst PasswordInput = ({\n onValidate,\n onChange,\n disableValidation,\n ...props\n}: PasswordInputProps) => {\n const [passwordVisible, setPasswordVisible] = useState(false);\n const [validatedValues, setValidatedValues] = useState(validationOptions);\n\n const validatePassword = (value: string) => {\n return validationOptions.map((option) => ({\n ...option,\n validated: option.RegExp.test(value),\n }));\n };\n\n const checkPasswordStrength = (value: string) => {\n const validatedOptions = validatePassword(value);\n const allValidated = validatedOptions.every((option) => option.validated);\n\n setValidatedValues(validatedOptions);\n\n return allValidated;\n };\n\n const handlePaswordInputChange: React.ChangeEventHandler<HTMLInputElement> = (\n e,\n ) => {\n if (onChange) onChange(e);\n\n if (disableValidation) return;\n\n const value = e?.target?.value;\n const validated = checkPasswordStrength(value);\n\n if (onValidate) onValidate(validated, value);\n };\n\n const ValidateComp = useMemo(() => {\n return (\n <div className=\"flex items-center gap-2\">\n {validatedValues?.map((value) => (\n <div\n className={cn(\"text-xs flex items-center gap-0.5\", {\n \"text-[#62C554]\": value?.validated,\n \"text-[#8E98A8]\": !value?.validated,\n })}\n key={value?.key}\n >\n <span className=\"\">{value?.validated ? <Check /> : <Fail />}</span>\n <span className=\"\">{value?.label}</span>\n </div>\n ))}\n </div>\n );\n }, [validatedValues]);\n\n return (\n <Input\n sideNodeClassName=\"!border-l-0\"\n rightNode={\n passwordVisible ? (\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((val) => !val)}\n >\n <Eye />\n </button>\n ) : (\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((val) => !val)}\n >\n <EyeOff />\n </button>\n )\n }\n type={passwordVisible ? \"text\" : \"password\"}\n onChange={handlePaswordInputChange}\n description={!disableValidation && ValidateComp}\n {...props}\n />\n );\n};\n\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n","export const Eye = () => {\n return (\n <svg\n width=\"18\"\n height=\"14\"\n viewBox=\"0 0 18 14\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1.54639 7.26103C1.48389 7.09264 1.48389 6.90741 1.54639 6.73903C2.15517 5.26292 3.18853 4.00081 4.51547 3.1127C5.84241 2.22459 7.40317 1.75049 8.99989 1.75049C10.5966 1.75049 12.1574 2.22459 13.4843 3.1127C14.8113 4.00081 15.8446 5.26292 16.4534 6.73903C16.5159 6.90741 16.5159 7.09264 16.4534 7.26103C15.8446 8.73713 14.8113 9.99925 13.4843 10.8874C12.1574 11.7755 10.5966 12.2496 8.99989 12.2496C7.40317 12.2496 5.84241 11.7755 4.51547 10.8874C3.18853 9.99925 2.15517 8.73713 1.54639 7.26103Z\"\n stroke=\"#8E98A8\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M9 9.25C10.2426 9.25 11.25 8.24264 11.25 7C11.25 5.75736 10.2426 4.75 9 4.75C7.75736 4.75 6.75 5.75736 6.75 7C6.75 8.24264 7.75736 9.25 9 9.25Z\"\n stroke=\"#8E98A8\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","export const EyeOff = () => {\n return (\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 18 18\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.08759 12.69C3.26171 11.9072 2.61006 10.9591 2.17509 9.90752C2.10081 9.73454 2.0625 9.54826 2.0625 9.36001C2.0625 9.17177 2.10081 8.98549 2.17509 8.81252C2.75274 7.4073 3.72095 6.19704 4.96509 5.32502C6.14597 4.4998 7.55989 4.07405 9.00009 4.11002C10.0363 4.084 11.064 4.30239 12.0001 4.74752M13.9201 6.03752C14.7415 6.81964 15.3904 7.76486 15.8251 8.81252C15.8994 8.98549 15.9377 9.17177 15.9377 9.36001C15.9377 9.54826 15.8994 9.73454 15.8251 9.90752C15.2474 11.3127 14.2792 12.523 13.0351 13.395C11.8542 14.2202 10.4403 14.646 9.00009 14.61C7.9639 14.636 6.93616 14.4176 6.00009 13.9725\"\n stroke=\"#8E98A8\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M6.5325 10.2375C6.42732 9.95694 6.37395 9.65962 6.375 9.36C6.375 8.66381 6.65156 7.99613 7.14384 7.50384C7.63613 7.01156 8.30381 6.735 9 6.735C9.3 6.7335 9.597 6.7875 9.8775 6.8925M11.4675 8.4825C11.5725 8.763 11.6265 9.06 11.625 9.36C11.625 10.0562 11.3484 10.7239 10.8562 11.2162C10.3639 11.7084 9.69619 11.985 9 11.985C8.70038 11.986 8.40306 11.9327 8.1225 11.8275M2.25 15L14.25 3\"\n stroke=\"#8E98A8\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","export const Check = () => {\n return (\n <svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8.89802 2.93408L9.70202 3.49808L6.21602 8.52608H5.41202L3.46802 5.80208L4.27202 5.05208L5.81402 6.49208L8.89802 2.93408Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n","export const Fail = () => {\n return (\n <svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3.37891 8.62142L6.00041 5.99992L8.62191 8.62142M8.62191 3.37842L5.99991 5.99992L3.37891 3.37842\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","import * as React from \"react\";\n\nimport { cn } from \"@/src/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { inputContainerVariants } from \"../input\";\nimport { DetailedHTMLProps } from \"react\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst textareaContainerVariants = cva(\n \"flex relative min-h-[80px] w-full rounded-[8px] border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50\",\n {\n variants: {\n status: {\n default:\n \"border-[#D7D7D7] dark:border-[#676767] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:border-[#9299A2] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-status-error-fill bg-status-error-bg border-status-error-fill dark:!bg-status-error-bg-dark text-status-error-fill focus-within:bg-status-error-bg focus-within:border-status-error-fill\",\n loading: \"placeholder:text-[#C4C4C4]\",\n prefilled:\n \"resize-none bg-[#F6F6F6] border-[#D7D7D7] dark:!bg-transparent caret-[#D7D7D7] focus-within:bg-[#F6F6F6] focus-within:border-[#D7D7D7] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]\",\n neutral: \"\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\nexport interface TextareaProps\n extends DetailedHTMLProps<\n React.TextareaHTMLAttributes<HTMLTextAreaElement>,\n HTMLTextAreaElement\n >,\n VariantProps<typeof inputContainerVariants> {\n isLoading?: boolean;\n error?: string;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n}\n\nconst Textarea = ({\n className,\n status = \"default\",\n disabled,\n error,\n isLoading,\n showAsterisk,\n label,\n description,\n ...props\n}: TextareaProps) => {\n let containerStatus: VariantProps<\n typeof textareaContainerVariants\n >[\"status\"] = status;\n\n if (error) containerStatus = \"error\";\n if (isLoading) containerStatus = \"loading\";\n if (disabled) containerStatus = \"prefilled\";\n\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <textarea\n className={cn(\n \"min-h-[80px]\",\n inputContainerVariants({ status: containerStatus }),\n className,\n )}\n disabled={isLoading || disabled}\n {...props}\n />\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n};\n\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n","(\"use client\");\n\nimport * as React from \"react\";\n\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"../command\";\nimport { PopoverContent, PopoverRoot, PopoverTrigger } from \"../popover\";\nimport { cn } from \"@/src/utils\";\nimport { ScrollArea } from \"../scroll-area\";\nimport { VariantProps } from \"class-variance-authority\";\nimport { inputContainerVariants } from \"../input\";\n\ntype SearchableDataType = {\n value: string;\n label: string;\n} & {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any; // Allows for additional properties\n};\n\ninterface SearchableProps {\n modal?: boolean;\n hideSearch?: boolean;\n loading?: boolean;\n inputValue?: string;\n onInputValueChange?: (arg: string) => void;\n disabled?: boolean;\n placeholder?: string;\n value?: SearchableDataType;\n options: SearchableDataType[] | [];\n optionComponent?: (arg: SearchableDataType) => React.ReactNode;\n className?: string;\n containerClassName?: string;\n onChange: (value: SearchableDataType) => void;\n onValueChange?: (value: string) => void;\n children?: React.ReactNode;\n}\n\ninterface SearchableTriggerProps\n extends VariantProps<typeof inputContainerVariants> {\n disabled?: boolean;\n placeholder?: string;\n value?: string;\n className?: string;\n}\n\nconst SearchableTrigger = ({\n className,\n value,\n placeholder = \"\",\n status,\n disabled,\n}: SearchableTriggerProps) => {\n return (\n <PopoverTrigger asChild disabled={disabled}>\n <button\n disabled={disabled}\n className={cn(\n inputContainerVariants({ status }),\n \"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup\",\n value ? \"\" : \"text-[#79818C]\",\n className,\n )}\n >\n {value ?? placeholder ?? \"Select options...\"}\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n className=\" data-[state=open]:goup-rotate-180\"\n >\n <path\n d=\"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeMiterlimit=\"10\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n </PopoverTrigger>\n );\n};\n\nconst Searchable = ({\n options = [],\n value,\n onChange,\n containerClassName,\n placeholder,\n disabled,\n loading,\n optionComponent,\n children,\n modal = false,\n hideSearch,\n className,\n inputValue,\n onValueChange,\n onInputValueChange,\n}: SearchableProps) => {\n const [open, setOpen] = React.useState(false);\n\n const triggerRef = React.useRef<HTMLDivElement | null>(null);\n\n const [width, setWidth] = React.useState<number | undefined>(undefined);\n\n React.useLayoutEffect(() => {\n if (triggerRef.current) {\n setWidth(triggerRef.current.clientWidth);\n }\n }, [triggerRef.current]);\n\n return (\n <PopoverRoot modal={modal} open={open} onOpenChange={setOpen}>\n <div className={cn(\"w-full\", className)} ref={triggerRef}>\n {children}\n </div>\n <PopoverContent\n portal={!modal}\n className=\"p-0 min-w-[200px]\"\n style={{ width }}\n >\n <Command\n className={cn(\"relative max-h-[270px]\", {\n \"mt-2\": !hideSearch,\n })}\n >\n {!hideSearch && (\n <CommandInput\n loading={loading}\n placeholder={placeholder ?? \"Search options...\"}\n onValueChange={onInputValueChange}\n value={inputValue}\n CommandInputContainerClassName=\"mx-2 border rounded-md border-[#DEDEDE]\"\n />\n )}\n <ScrollArea\n viewPortClassName=\"max-h-[225px]\"\n className={cn(\n \"w-full px-0 h-full overflow-y-auto\",\n containerClassName,\n )}\n >\n <CommandList>\n {!hideSearch && <CommandEmpty>No result found.</CommandEmpty>}\n <CommandGroup className=\"w-full\">\n {options?.map((option) => (\n <CommandItem\n defaultValue={value?.label}\n key={option.value}\n value={option.label}\n disabled={disabled}\n onSelect={() => {\n onChange(option);\n setOpen(false);\n onValueChange?.(option?.value);\n }}\n >\n {!optionComponent ? option.label : optionComponent(option)}\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </ScrollArea>\n </Command>\n </PopoverContent>\n </PopoverRoot>\n );\n};\n\nexport { Searchable, SearchableTrigger };\n\nexport type { SearchableProps, SearchableTriggerProps, SearchableDataType };\n","\"use client\";\n\nimport * as React from \"react\";\nimport { type DialogProps } from \"@radix-ui/react-dialog\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { Search } from \"lucide-react\";\n\nimport { cn } from \"@/src/utils\";\nimport { Dialog, DialogContent } from \"@/src/components/dialog\";\nimport { Loader } from \"../loader\";\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground\",\n className,\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {\n trigger?: React.ReactNode;\n}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props} trigger={props?.trigger ?? <></>}>\n <DialogContent className=\"overflow-hidden p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\ninterface CommandInputProps\n extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> {\n CommandInputContainerClassName?: string;\n loading?: boolean;\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n CommandInputProps\n>(({ className, CommandInputContainerClassName, loading, ...props }, ref) => (\n <div\n className={cn(\n \"flex items-center border-0 px-3 gap-2\",\n CommandInputContainerClassName,\n )}\n cmdk-input-wrapper=\"\"\n >\n {loading ? (\n <Loader size={16} colour=\"secondary\" />\n ) : (\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n )}\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n \"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n disabled={loading}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn(\"overflow-y-auto overflow-x-hidden\", className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty\n ref={ref}\n className=\"py-6 text-center text-sm\"\n {...props}\n />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n \"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 h-px bg-border\", className)}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n \"relative text=[#222222] flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary-accent data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n};\nCommandShortcut.displayName = \"CommandShortcut\";\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\n\nimport { cn } from \"@/src/utils\";\nimport { CloseIcon } from \"./icon/CloseIcon\";\n\nconst DialogRoot = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n hideCloseButton?: boolean;\n }\n>(({ className, hideCloseButton, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-transparent bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg\",\n className,\n )}\n {...props}\n >\n {children}\n {!hideCloseButton && (\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <CloseIcon />\n\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col space-y-1.5 text-left\", className)}\n {...props}\n />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-row justify-end sm:space-x-2\", className)}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n \"text-xl font-semibold leading-none tracking-tight\",\n className,\n )}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-gray-500\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport type DialogPropsType = {\n trigger?: React.ReactNode;\n children: React.ReactNode;\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n hideCloseButton?: boolean;\n contentClassName?: string;\n headerClassName?: string;\n titleClassName?: string;\n descriptionClassName?: string;\n footerClassName?: string;\n asChild?: boolean;\n onOpenAutoFocus?: (e: Event) => void;\n onCloseAutoFocus?: (e: Event) => void;\n onInteractOutside?: (e: Event) => void;\n onPointerDownOutside?: (e: Event) => void;\n onEscapeKeyDown?: (e: KeyboardEvent) => void;\n};\n\nconst Dialog = ({\n trigger = undefined,\n children,\n open,\n onOpenChange,\n hideCloseButton,\n footer,\n title,\n description,\n contentClassName,\n headerClassName,\n titleClassName,\n descriptionClassName,\n footerClassName,\n asChild = true,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onEscapeKeyDown,\n onInteractOutside,\n onPointerDownOutside,\n ...props\n}: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> &\n DialogPropsType) => {\n return (\n <DialogRoot {...props} open={open} onOpenChange={onOpenChange}>\n <DialogTrigger asChild={asChild}>{trigger}</DialogTrigger>\n <DialogPortal>\n <DialogContent\n className={contentClassName}\n hideCloseButton={hideCloseButton}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onInteractOutside={onInteractOutside}\n >\n {title || description ? (\n <DialogHeader className={headerClassName}>\n {title && (\n <DialogTitle className={titleClassName}>{title}</DialogTitle>\n )}\n {description && (\n <DialogDescription className={descriptionClassName}>\n {description}\n </DialogDescription>\n )}\n </DialogHeader>\n ) : (\n <></>\n )}\n {children}\n {footer && (\n <DialogFooter className={footerClassName}>{footer}</DialogFooter>\n )}\n </DialogContent>\n </DialogPortal>\n </DialogRoot>\n );\n};\nDialog.displayName = DialogPrimitive.Dialog.displayName;\n\nexport { Dialog, DialogRoot, DialogContent };\n","export const CloseIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-x\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"@/src/utils\";\n\nconst PopoverRoot = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {\n portal?: boolean;\n }\n>(\n (\n { className, align = \"center\", sideOffset = 4, portal = true, ...props },\n ref,\n ) =>\n portal ? (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n {...props}\n />\n </PopoverPrimitive.Portal>\n ) : (\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n onOpenAutoFocus={props.onOpenAutoFocus}\n onCloseAutoFocus={props.onCloseAutoFocus}\n {...props}\n />\n ),\n);\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport type PopoverPropsType = {\n trigger: React.ReactNode;\n children: React.ReactNode;\n contentClassName?: string;\n triggerClassName?: string;\n asChild?: boolean;\n align?: PopoverPrimitive.PopoverContentProps[\"align\"];\n side?: PopoverPrimitive.PopoverContentProps[\"side\"];\n alignOffset?: number | undefined;\n sideOffset?: number | undefined;\n onOpenAutoFocus?: (e: Event) => void;\n onCloseAutoFocus?: (e: Event) => void;\n portal?: boolean;\n};\n\nconst Popover = ({\n trigger,\n children,\n open,\n onOpenChange,\n contentClassName,\n asChild = true,\n align,\n side,\n alignOffset,\n triggerClassName,\n sideOffset,\n onOpenAutoFocus,\n onCloseAutoFocus,\n portal = true,\n ...props\n}: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> &\n PopoverPropsType) => {\n return (\n <PopoverRoot {...props} open={open} onOpenChange={onOpenChange}>\n <PopoverTrigger asChild={asChild} className={triggerClassName}>\n {trigger}\n </PopoverTrigger>\n <PopoverContent\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n side={side}\n align={align}\n className={contentClassName}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n portal={portal}\n >\n {children}\n </PopoverContent>\n </PopoverRoot>\n );\n};\nPopover.displayName = PopoverPrimitive.Root.displayName;\n\nexport { Popover, PopoverRoot, PopoverTrigger, PopoverContent };\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\n\nimport { cn } from \"@/src/utils\";\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {\n viewPortClassName?: string;\n }\n>(({ className, viewPortClassName, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n className={cn(\"h-full w-full rounded-[inherit]\", viewPortClassName)}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n","export const countryData = [\n {\n countryCode: \"GLOBAL\",\n countryName: \"Global\",\n currency: \"Dollars\",\n currencyCode: \"USD\",\n internetCountryCode: \"GLOBAL\",\n },\n {\n countryName: \"Benin\",\n countryCode: \"+229\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"BJ\",\n },\n {\n countryName: \"Burkina Faso\",\n countryCode: \"+226\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"BF\",\n },\n {\n countryName: \"Cameroon\",\n countryCode: \"+237\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"CM\",\n },\n {\n countryName: \"Chad\",\n countryCode: \"+235\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"TD\",\n },\n {\n countryName: \"DR Congo\",\n countryCode: \"+243\",\n currency: \"Congolese franc\",\n currencyCode: \"CDF\",\n currencyIcon: \"FC\",\n internetCountryCode: \"CD\",\n },\n {\n countryName: \"Eswatini\",\n countryCode: \"+268\",\n currency: \"Swazi lilangeni\",\n currencyCode: \"SZL\",\n currencyIcon: \"L\",\n internetCountryCode: \"SZ\",\n },\n {\n countryName: \"Gabon\",\n countryCode: \"+241\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"GA\",\n },\n {\n countryName: \"Ghana\",\n countryCode: \"+233\",\n currency: \"Ghanaian cedi\",\n currencyCode: \"GHS\",\n currencyIcon: \"₵\",\n internetCountryCode: \"GH\",\n },\n {\n countryName: \"Guinea\",\n countryCode: \"+224\",\n currency: \"Guinean franc\",\n currencyCode: \"GNF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"GN\",\n },\n {\n countryName: \"Ivory Coast\",\n countryCode: \"+225\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"CI\",\n },\n {\n countryName: \"Kenya\",\n countryCode: \"+254\",\n currency: \"Kenyan shilling\",\n currencyCode: \"KES\",\n currencyIcon: \"Sh\",\n internetCountryCode: \"KE\",\n },\n {\n countryName: \"Lesotho\",\n countryCode: \"+266\",\n currency: \"Lesotho loti\",\n currencyCode: \"LSL\",\n currencyIcon: \"L\",\n internetCountryCode: \"LS\",\n },\n {\n countryName: \"Liberia\",\n countryCode: \"+231\",\n currency: \"Liberian dollar\",\n currencyCode: \"LRD\",\n currencyIcon: \"$\",\n internetCountryCode: \"LR\",\n },\n {\n countryName: \"Madagascar\",\n countryCode: \"+261\",\n currency: \"Malagasy ariary\",\n currencyCode: \"MGA\",\n currencyIcon: \"Ar\",\n internetCountryCode: \"MG\",\n },\n {\n countryName: \"Malawi\",\n countryCode: \"+265\",\n currency: \"Malawian kwacha\",\n currencyCode: \"MWK\",\n currencyIcon: \"MK\",\n internetCountryCode: \"MW\",\n },\n {\n countryName: \"Mali\",\n countryCode: \"+223\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"ML\",\n },\n {\n countryName: \"Mozambique\",\n countryCode: \"+258\",\n currency: \"Mozambican metical\",\n currencyCode: \"MZN\",\n currencyIcon: \"MT\",\n internetCountryCode: \"MZ\",\n },\n {\n countryName: \"Namibia\",\n countryCode: \"+264\",\n currency: \"Namibian dollar\",\n currencyCode: \"NAD\",\n currencyIcon: \"$\",\n internetCountryCode: \"NA\",\n },\n {\n countryName: \"Niger\",\n countryCode: \"+227\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"NE\",\n },\n {\n countryName: \"Nigeria\",\n countryCode: \"+234\",\n currency: \"Nigerian naira\",\n currencyCode: \"NGN\",\n currencyIcon: \"₦\",\n internetCountryCode: \"NG\",\n },\n {\n countryName: \"Republic of the Congo\",\n countryCode: \"+242\",\n currency: \"Central African CFA franc\",\n currencyCode: \"XAF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"CG\",\n },\n {\n countryName: \"Rwanda\",\n countryCode: \"+250\",\n currency: \"Rwandan franc\",\n currencyCode: \"RWF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"RW\",\n },\n {\n countryName: \"Senegal\",\n countryCode: \"+221\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"SN\",\n },\n {\n countryName: \"Seychelles\",\n countryCode: \"+248\",\n currency: \"Seychellois rupee\",\n currencyCode: \"SCR\",\n currencyIcon: \"₨\",\n internetCountryCode: \"SC\",\n },\n {\n countryName: \"South Africa\",\n countryCode: \"+27\",\n currency: \"South African rand\",\n currencyCode: \"ZAR\",\n currencyIcon: \"R\",\n internetCountryCode: \"ZA\",\n },\n {\n countryName: \"South Sudan\",\n countryCode: \"+211\",\n currency: \"South Sudanese pound\",\n currencyCode: \"SSP\",\n currencyIcon: \"£\",\n internetCountryCode: \"SS\",\n },\n {\n countryName: \"Tanzania\",\n countryCode: \"+255\",\n currency: \"Tanzanian shilling\",\n currencyCode: \"TZS\",\n currencyIcon: \"Sh\",\n internetCountryCode: \"TZ\",\n },\n {\n countryName: \"Togo\",\n countryCode: \"+228\",\n currency: \"West African CFA franc\",\n currencyCode: \"XOF\",\n currencyIcon: \"Fr\",\n internetCountryCode: \"TG\",\n },\n {\n countryName: \"Uganda\",\n countryCode: \"+256\",\n currency: \"Ugandan shilling\",\n currencyCode: \"UGX\",\n currencyIcon: \"Sh\",\n internetCountryCode: \"UG\",\n },\n {\n countryName: \"Zambia\",\n countryCode: \"+260\",\n currency: \"Zambian kwacha\",\n currencyCode: \"ZMW\",\n currencyIcon: \"ZK\",\n internetCountryCode: \"ZM\",\n },\n];\n\nexport const getCountryDataMap = () => {\n const frequency = {} as Record<string, string>;\n\n countryData?.forEach((country) => {\n frequency[country?.internetCountryCode] = country?.countryName;\n });\n\n return frequency;\n};\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport * as RPNInput from \"react-phone-number-input\";\n\nimport flags from \"react-phone-number-input/flags\";\n\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"../command\";\nimport { Input, InputProps, inputContainerVariants } from \"../input\";\nimport { PopoverRoot, PopoverContent, PopoverTrigger } from \"../popover\";\n\nimport { cn } from \"@/src/utils\";\nimport { ScrollArea } from \"../scroll-area\";\nimport { VariantProps } from \"class-variance-authority\";\nimport FlatGlobeIcon from \"./Flag\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\n\nexport type PhoneInputValue = RPNInput.Value;\n\nexport type PhoneInputProps = Omit<\n React.InputHTMLAttributes<HTMLInputElement>,\n \"onChange\" | \"value\"\n> &\n Omit<RPNInput.Props<typeof RPNInput.default>, \"onChange\"> & {\n onChange?: (value: RPNInput.Value) => void;\n } & {\n status?: VariantProps<typeof inputContainerVariants>[\"status\"];\n defaultCountry?: RPNInput.Country;\n modal?: boolean;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n error?: string;\n };\n\nconst PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =\n React.forwardRef<React.ElementRef<typeof RPNInput.default>, PhoneInputProps>(\n (\n {\n className,\n onChange,\n defaultCountry = \"NG\",\n modal,\n showAsterisk,\n label,\n description,\n error,\n ...props\n },\n ref,\n ) => {\n /**\n * did this so I can pass the status prop to the country\n * select so I can change the appearance based on the status\n */\n const CountrySelectWrapper = (innerProps: CountrySelectProps) => {\n return (\n <CountrySelect {...innerProps} status={props.status} modal={modal} />\n );\n };\n\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <RPNInput.default\n ref={ref}\n className={cn(\"flex\", className)}\n flagComponent={FlagComponent}\n countrySelectComponent={CountrySelectWrapper}\n inputComponent={InputComponent}\n defaultCountry={defaultCountry}\n /**\n * Handles the onChange event.\n *\n * react-phone-number-input might trigger the onChange event as undefined\n * when a valid phone number is not entered. To prevent this,\n * the value is coerced to an empty string.\n *\n * @param {E164Number | undefined} value - The entered value\n */\n onChange={(value) => {\n if (onChange) {\n onChange?.(value as RPNInput.Value);\n }\n }}\n {...props}\n />\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n },\n );\nPhoneInput.displayName = \"PhoneInput\";\n\nconst InputComponent = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, ...props }, ref) => {\n return (\n <Input\n className={cn(\"!rounded-s-none h-10\", className)}\n {...props}\n ref={ref}\n />\n );\n },\n);\nInputComponent.displayName = \"InputComponent\";\n\ntype CountrySelectOption = { label: string; value: RPNInput.Country };\n\ntype CountrySelectProps = {\n disabled?: boolean;\n modal?: boolean;\n value: RPNInput.Country;\n onChange: (value: RPNInput.Country) => void;\n options: CountrySelectOption[];\n status?: VariantProps<typeof inputContainerVariants>[\"status\"];\n};\n\nconst CountrySelect = ({\n disabled,\n value,\n onChange,\n options,\n status,\n modal,\n}: CountrySelectProps) => {\n const handleSelect = React.useCallback(\n (country: RPNInput.Country) => {\n onChange(country);\n },\n [onChange],\n );\n\n return (\n <PopoverRoot modal={modal}>\n <PopoverTrigger disabled={disabled}>\n <div\n className={cn(\n inputContainerVariants({ status }),\n \"transition justify-center items-center disabled:text-base-500 flex gap-3 h-10 rounded-e-none border-e-0 pl-2 pr-2\",\n )}\n >\n <FlagComponent country={value} countryName={value} />\n <svg\n className={cn(\n \"mr-0.5 h-4 w-4 opacity-50\",\n disabled ? \"hidden\" : \"opacity-100\",\n )}\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825\"\n stroke=\"#959595\"\n strokeWidth=\"1.5\"\n strokeMiterlimit=\"10\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n </PopoverTrigger>\n <PopoverContent portal={!modal} className=\"w-[200px] md:w-[300px] p-0\">\n <Command>\n <CommandList>\n <ScrollArea className=\"h-72\">\n <CommandInput placeholder=\"Search country...\" />\n <CommandEmpty>No country found.</CommandEmpty>\n <CommandGroup>\n {options\n .filter((x) => x.value)\n .map((option) => (\n <CommandItem\n className=\"gap-2\"\n key={`${option.value}-${option.label}`}\n onSelect={() => handleSelect(option.value)}\n >\n <FlagComponent\n country={option.value}\n countryName={option.label}\n />\n <span className=\"flex-1 text-sm\">{option.label}</span>\n {option.value && (\n <span className=\"text-[#191919]/50 text-sm dark:text-white\">\n {`+${RPNInput.getCountryCallingCode(option.value)}`}\n </span>\n )}\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className={cn(\n \"ml-auto\",\n option.value === value ? \"opacity-100\" : \"opacity-0\",\n )}\n >\n <path\n d=\"M4 8.00008L6.66353 10.6636L12 5.33655\"\n stroke=\"#959595\"\n strokeWidth=\"1.06667\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </CommandItem>\n ))}\n </CommandGroup>\n </ScrollArea>\n </CommandList>\n </Command>\n </PopoverContent>\n </PopoverRoot>\n );\n};\n\ntype FlagComponentProps = RPNInput.FlagProps & {\n className?: string;\n};\n\nconst FlagComponent = ({\n country,\n countryName,\n className,\n}: FlagComponentProps) => {\n const Flag = flags[country];\n\n if (country === (\"GLOBAL\" as unknown))\n return (\n <span\n className={cn(\n \"bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm\",\n className,\n )}\n >\n <FlatGlobeIcon className=\"w-full h-[90%]\" />\n </span>\n );\n\n return (\n <span\n className={cn(\n \"bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm\",\n className,\n )}\n >\n {Flag && <Flag title={countryName} />}\n </span>\n );\n};\nFlagComponent.displayName = \"FlagComponent\";\n\nexport { PhoneInput, FlagComponent };\n","// import React from 'react'\n\n// export const Flag = () => {\n// return (\n// <div>Flag</div>\n// )\n// }\n\nimport type React from \"react\";\n\nconst FlatGlobeIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n {...props}\n >\n <rect width=\"32\" height=\"32\" fill=\"#60A5FA\" /> {/* Ocean color */}\n {/* Continents */}\n <path\n d=\"M3 10L7 8L10 9L13 8L16 10L19 9L22 11L25 10L28 12V15L26 17L28 19L27 22L29 24L27 26L24 25L21 26L18 24L15 25L12 23L9 24L6 22L4 23L2 21V18L4 16L3 13L5 11L3 10Z\"\n fill=\"#34D399\"\n />\n {/* Antarctica */}\n <rect x=\"2\" y=\"28\" width=\"28\" height=\"3\" fill=\"#D1D5DB\" />\n {/* Grid lines */}\n <path\n d=\"M0 16H32M8 0V32M16 0V32M24 0V32\"\n stroke=\"#2563EB\"\n strokeWidth=\"0.5\"\n vectorEffect=\"non-scaling-stroke\"\n />\n {/* Equator */}\n <path\n d=\"M0 16H32\"\n stroke=\"#2563EB\"\n strokeWidth=\"1\"\n vectorEffect=\"non-scaling-stroke\"\n />\n </svg>\n );\n};\n\nexport default FlatGlobeIcon;\n","import { inputContainerVariants } from \"../input\";\nimport { Searchable, SearchableDataType } from \"../searcheable\";\nimport { VariantProps } from \"class-variance-authority\";\nimport { countryData, getCountryDataMap } from \"./data\";\nimport { PopoverTrigger } from \"../popover\";\nimport { cn } from \"@/src/utils\";\nimport { FlagComponent } from \"../phone-input\";\nimport { Country as CountryCode } from \"react-phone-number-input\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { ErrorMessage } from \"../form/ErrorMessage\";\n\ntype CountryPropsStatus = VariantProps<typeof inputContainerVariants>[\"status\"];\n\ninterface CountryProps {\n modal?: boolean;\n hideSearch?: boolean;\n loading?: boolean;\n inputValue?: string;\n onInputValueChange?: (arg: string) => void;\n disabled?: boolean;\n placeholder?: string;\n value?: SearchableDataType;\n optionComponent?: (arg: SearchableDataType) => React.ReactNode;\n className?: string;\n containerClassName?: string;\n onChange: (value: SearchableDataType) => void;\n status?: CountryPropsStatus;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n error?: string;\n}\n\ninterface CountryTriggerProps\n extends VariantProps<typeof inputContainerVariants> {\n disabled?: boolean;\n placeholder?: string;\n value?: string;\n className?: string;\n}\n\nconst countryMap = getCountryDataMap();\n\nconst CountryTrigger = ({\n className,\n value,\n placeholder = \"\",\n status,\n disabled,\n}: CountryTriggerProps) => {\n return (\n <PopoverTrigger asChild disabled={disabled}>\n <button\n disabled={disabled}\n className={cn(\n inputContainerVariants({ status }),\n \"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup\",\n value ? \"\" : \"text-[#79818C]\",\n className,\n )}\n >\n {value ? (\n <div className=\"flex gap-2 items-center\">\n <FlagComponent\n country={value as CountryCode}\n countryName={value}\n className=\"ml-1 !w-6 h-5\"\n />\n <span className=\"\"> {countryMap[value]}</span>\n </div>\n ) : (\n (placeholder ?? \"Select options...\")\n )}\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n className=\" data-[state=open]:goup-rotate-180\"\n >\n <path\n d=\"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeMiterlimit=\"10\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n </PopoverTrigger>\n );\n};\n\nconst Country = ({\n hideSearch = true,\n showAsterisk,\n label,\n description,\n error,\n ...props\n}: CountryProps) => {\n const options = countryData?.map((country) => ({\n value: country?.internetCountryCode,\n label: country?.countryName,\n ...country,\n }));\n\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <Searchable\n options={options}\n hideSearch={hideSearch}\n optionComponent={(arg) => {\n return (\n <div className=\"w-full flex items-center gap-2\">\n <FlagComponent\n country={arg?.internetCountryCode}\n countryName={arg?.label}\n className=\"ml-2 !w-6 !h-5\"\n />\n <span className=\"flex-1 text-sm\">{arg?.label}</span>\n </div>\n );\n }}\n {...props}\n >\n <CountryTrigger\n value={props?.value?.value}\n status={props?.status}\n placeholder={props?.placeholder ?? \" Select Country\"}\n />\n </Searchable>\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n};\n\nexport { Country };\nexport type { CountryProps };\n\n//Todo -\n// dataSource - array of countries\n// availableCountries - countries to be filtered by countryCode\n","import { ErrorMessage } from \"../form/ErrorMessage\";\nimport { FormDescription } from \"../form/FormDescription\";\nimport { inputContainerVariants } from \"../input\";\nimport { FormLabel } from \"../label/FormLabel\";\nimport {\n Searchable,\n SearchableDataType,\n SearchableTrigger,\n} from \"../searcheable\";\nimport { VariantProps } from \"class-variance-authority\";\n\ntype SelectPropsStatus = VariantProps<typeof inputContainerVariants>[\"status\"];\n\ninterface SelectProps {\n modal?: boolean;\n hideSearch?: boolean;\n loading?: boolean;\n inputValue?: string;\n onInputValueChange?: (arg: string) => void;\n disabled?: boolean;\n placeholder?: string;\n value?: SearchableDataType;\n options: SearchableDataType[];\n optionComponent?: (arg: SearchableDataType) => React.ReactNode;\n className?: string;\n containerClassName?: string;\n onChange: (value: SearchableDataType) => void;\n status?: SelectPropsStatus;\n label?: string;\n showAsterisk?: boolean;\n description?: React.ReactNode;\n error?: string;\n}\n\nconst Select = ({\n showAsterisk,\n label,\n description,\n error,\n hideSearch = true,\n status,\n ...props\n}: SelectProps) => {\n return (\n <div className=\"relative space-y-1\">\n <FormLabel showAsterisk={showAsterisk} error={error}>\n {label}\n </FormLabel>\n <Searchable\n hideSearch={hideSearch}\n {...props}\n containerClassName=\"h-full\"\n >\n <SearchableTrigger\n disabled={props?.disabled}\n placeholder=\"Select or search email\"\n status={status}\n value={props?.value?.label ?? props?.value?.value}\n />\n </Searchable>\n <FormDescription className=\"text-gray-400 text-sm !font-normal\">\n {description}\n </FormDescription>\n <ErrorMessage error={error} />\n </div>\n );\n};\n\nexport { Select };\nexport type { SelectProps };\n\n//Todo\n// onchange value\n","import OtpInput, { OTPInputProps as InputProps } from \"react-otp-input\";\nimport { cn } from \"@/src/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { useMemo } from \"react\";\n\nconst otpInputVariants = cva(\n \"transition cursor-default placeholder:text-black dark:placeholder:text-white rounded-lg !h-14 !w-14 border aspect-square text-base font-semibold tracking-normal outline-none placeholder:text-sm placeholder:font-normal text-black focus:bg-white\",\n {\n variants: {\n status: {\n default:\n \"border-gray-300 dark:border-[#d4d4d4] focus:border-gray-400 focus-visible:!ring-offset-gray-200 focus:ring-offset-gray-200 !ring-gray-200 !focus-visible:ring-1 bg-white dark:!bg-transparent dark:focus-visible:!ring-0 dark:focus-within:!bg-transparent dark:text-white dark:focus-within:border-[#9299A2] dark:border-[#676767] dark:disabled:!border-[#9299A2]\",\n error:\n \"placeholder:text-red-600 bg-red-50 border-red-600 text-red-600 focus-within:bg-red-50 focus-within:border-red-600\",\n loading: \"placeholder:text-[#C4C4C4]\",\n },\n },\n defaultVariants: {\n status: \"default\",\n },\n },\n);\n\ntype DefailtInputProps = Omit<InputProps, \"renderInput\">;\n\nexport type OTPInputProps = DefailtInputProps &\n VariantProps<typeof otpInputVariants> & {};\n\nexport const OTPInput = ({\n numInputs = 4,\n inputStyle,\n containerStyle,\n placeholder = \"-\",\n status,\n ...props\n}: OTPInputProps) => {\n const placeholderValue = useMemo(() => {\n if (placeholder) return placeholder;\n\n const numInputArr = new Array<string>(numInputs).fill(\"\");\n const result = numInputArr.reduce((accumulator, currentValue) => {\n return (accumulator += currentValue);\n }, \"\");\n\n return result;\n }, [numInputs, placeholder]);\n\n return (\n <OtpInput\n numInputs={numInputs}\n placeholder={placeholderValue}\n containerStyle={cn(\"w-full\", containerStyle)}\n inputStyle={cn(otpInputVariants({ status }), inputStyle)}\n renderInput={(props) => <input {...props} />}\n {...props}\n />\n );\n};\n","import { useState } from \"react\";\nimport { Copy, CheckIcon } from \"lucide-react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport { cn } from \"@/src/utils\";\n\ninterface CopyableLabelProps {\n text: string;\n textToCopy?: string; //this is coppied to the clipboard if passed as a prop instead of the text prop passed else defaults to the text prop\n onCopy?: () => void;\n iconsPosition?: \"left\" | \"right\";\n clampText?: boolean;\n textClassName?: string;\n}\n\nconst CopyableLabel: React.FC<CopyableLabelProps> = ({\n text,\n textToCopy,\n onCopy,\n iconsPosition = \"right\",\n clampText = true,\n textClassName,\n}) => {\n const [copied, setCopied] = useState(false);\n\n const copyToClipboard = () => {\n navigator.clipboard.writeText(textToCopy ?? text).then(() => {\n setCopied(true);\n onCopy?.();\n setTimeout(() => setCopied(false), 2000);\n });\n };\n\n const Icon = copied ? CheckIcon : Copy;\n\n return (\n <div className=\"flex items-center space-x-2 cursor-pointer text-[#717171] bg-gray-100 w-fit max-w-full rounded-md p-1 px-2\">\n {iconsPosition === \"left\" && (\n <AnimatedIcon Icon={Icon} onClick={copyToClipboard} copied={copied} />\n )}\n <span\n className={cn({ \"truncate max-w-[100px]\": clampText }, textClassName)}\n >\n {text}\n </span>\n {iconsPosition === \"right\" && (\n <AnimatedIcon Icon={Icon} onClick={copyToClipboard} copied={copied} />\n )}\n </div>\n );\n};\n\nconst AnimatedIcon: React.FC<{\n Icon: React.ElementType;\n onClick: () => void;\n copied: boolean;\n}> = ({ Icon, onClick, copied }) => (\n <AnimatePresence mode=\"wait\">\n <motion.div\n key={copied ? \"check\" : \"copy\"}\n initial={{ opacity: 0, scale: 0.8 }}\n animate={{ opacity: 1, scale: 1 }}\n exit={{ opacity: 0, scale: 0.8 }}\n transition={{ duration: 0.2 }}\n onClick={onClick}\n >\n <Icon\n className={`w-5 h-5 ${copied ? \"text-green-500\" : \"text-gray-500 hover:text-gray-700 transition\"}`}\n />\n </motion.div>\n </AnimatePresence>\n);\n\nexport { CopyableLabel };\n","import React, { ChangeEvent, useEffect, useState } from \"react\";\nimport { BaseInnerInputProps, Input } from \"../input\";\nimport { cn } from \"@/src/utils\";\nimport { Search } from \"lucide-react\";\n\ntype DebouncedInputProps = {\n value?: string;\n\n onChange: (e: string) => void;\n debounce?: number;\n addon?: React.ReactNode;\n} & Omit<BaseInnerInputProps, \"onChange\" | \"size\">;\n\nexport const DebouncedInput = ({\n value: initialValue,\n onChange,\n debounce = 500,\n addon,\n ...props\n}: DebouncedInputProps) => {\n const [value, setValue] = useState<string>(initialValue ?? \"\");\n\n const handleInputChange = (event: ChangeEvent<HTMLInputElement>) =>\n setValue(event.target.value);\n\n useEffect(() => {\n if (!initialValue) return;\n setValue(initialValue);\n }, [initialValue]);\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n onChange(value);\n }, debounce);\n\n return () => clearTimeout(timeout);\n }, [value, debounce, onChange]);\n\n return (\n <Input\n leftNode={\n (addon as React.ReactElement) ?? (\n <Search className=\" w-4 h-4 text-gray-400\" />\n )\n }\n sideNodeClassName=\"bg-transparent !pr-0 !w-4 border-0 !min-w-[40px]\"\n {...props}\n className={cn(\n \"!pl-0 py-1 border-[.5px] border-[#E9EBF8] rounded-xl text-sm w-full h-8 focus:outline-none focus:placeholder:hidden focus:!ring-2 !focus:ring-primary-main bg-[#F5F8FF] focus-within:!bg-transparent placeholder:text-xs\",\n props?.className,\n )}\n onChange={handleInputChange}\n value={value}\n />\n );\n};\n","import { cn } from \"@/src/utils\";\n\ntype Variant = \"success\" | \"failed\" | \"pending\" | \"abandoned\";\n\nexport const Status = ({\n status,\n variant,\n className,\n}: {\n status: string;\n variant: Variant;\n className?: string;\n}) => {\n return (\n <div>\n <div\n className={cn(\n \"order-first max-w-max flex-none rounded-full px-2 py-1 text-xs font-medium ring-1 ring-inset ring-current sm:order-none text-[14px] capitalize\",\n {\n \"bg-green-500/20 text-green-500\": variant === \"success\",\n },\n {\n \"bg-gray-500/20 text-white\": variant === \"abandoned\",\n },\n {\n \"bg-red-500/20 text-red-500\": variant === \"failed\",\n },\n {\n \"bg-yellow-500/20 text-yellow-500\": variant === \"pending\",\n },\n className,\n )}\n >\n <p>{status.replace(\"-\", \" \")}</p>\n </div>\n </div>\n );\n};\n","import { cn } from \"@/src/utils\";\nimport { Table as ReactTable, Row, RowData } from \"@tanstack/react-table\";\nimport { Download, ListFilter, Loader, RotateCw } from \"lucide-react\";\nimport { ReactNode } from \"react\";\nimport { Button, buttonVariants } from \"../button\";\nimport { DebouncedInput } from \"../debounced-input\";\nimport { Popover } from \"../popover\";\nimport { Pagination, PaginationProps } from \"./pagination\";\nimport { TableBody } from \"./TableBody\";\n\ntype TableSearchProps = {\n enabled: boolean;\n debounceRate?: number;\n onSearch?: (query: string) => void;\n};\n\nexport type TableDownloadProps = {\n //could not us\n enabled: boolean;\n buttonId?: string;\n onDownload?: () => void;\n buttonText?: string;\n};\nexport type TablePaginationProps = {\n enabled: boolean;\n} & PaginationProps;\n\ntype TableProps<T extends RowData> = {\n ExtraNode?: ReactNode;\n FilterMenu?: ReactNode;\n buttonClassName?: string;\n download?: TableDownloadProps;\n id?: string;\n isLoading?: boolean;\n isMobile?: boolean;\n isRefetching?: boolean;\n onExport?: () => void;\n onRefetch?: () => void;\n onRowClick?: (row: Row<T>) => void;\n pagination?: TablePaginationProps;\n search?: TableSearchProps;\n table: ReactTable<T>;\n};\n\nexport const Table = <T extends RowData>({\n table,\n isMobile = false,\n onRowClick,\n id,\n onRefetch,\n isRefetching,\n FilterMenu,\n ExtraNode,\n //deprecated: onExport - use download\n onExport,\n search = {\n enabled: false,\n debounceRate: 700,\n },\n download = {\n enabled: false,\n buttonId: \"download_button\",\n buttonText: \"Export\",\n },\n isLoading,\n pagination,\n}: TableProps<T>) => {\n const handleRefetch = () => {\n try {\n onRefetch?.();\n } catch (e) {\n console.error(\"Error while refetching data\", e);\n }\n };\n\n const handleSearch = (e: string) => {\n search?.onSearch?.(e);\n };\n\n return (\n <div className={cn(\"relative w-full rounded-b border-0 overflow-x-auto\")}>\n {(onRefetch ||\n search?.enabled ||\n FilterMenu ||\n ExtraNode ||\n onExport) && (\n <div className=\"w-full flex flex-col sm:flex-row justify-between items-start sm:items-center bg-white p-2 gap-2\">\n <div className=\"flex flex-1 flex-col sm:flex-row items-center gap-2 justify-start\">\n <div className=\" w-full flex gap-x-3\">\n {search?.enabled && (\n <section className=\"sm:w-56\">\n <DebouncedInput\n type=\"text\"\n placeholder=\"Enter search here...\"\n className=\"h-9\"\n onChange={handleSearch}\n debounce={search?.debounceRate}\n />\n </section>\n )}\n <div className=\" flex gap-2\">\n {onRefetch && (\n <Button\n onClick={handleRefetch}\n title=\"Refetch Data\"\n disabled={isRefetching}\n variant=\"outlined\"\n className=\"!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px] \"\n size={\"sm\"}\n >\n <RotateCw\n className={cn(\"w-4 h-4\", {\n \"animate-spin\": isRefetching,\n })}\n size={5}\n />\n </Button>\n )}\n\n {FilterMenu && (\n <Popover\n trigger={\n <button\n title=\"Filter\"\n className={cn(\n \"!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px]\",\n buttonVariants({\n variant: \"outlined\",\n size: \"sm\",\n }),\n )}\n >\n <ListFilter className=\"w-4 h-4\" size={5} />\n </button>\n }\n >\n {FilterMenu}\n </Popover>\n )}\n </div>\n </div>\n </div>\n <div className=\"flex items-start flex-col gap-2 justify-center\">\n <section className=\"flex flex-col-reverse sm:flex-row gap-2\">\n <div className=\"flex gap-2\">\n {ExtraNode && ExtraNode}\n\n {onExport && (\n <Button variant=\"primary\" onClick={onExport} size={\"sm\"}>\n Export\n </Button>\n )}\n {download?.enabled && (\n <Button\n variant=\"primary\"\n leftNode={\n <Download\n className={cn(\"w-4 h-4\", {\n \"animate-spin\": isRefetching,\n })}\n size={5}\n />\n }\n onClick={download?.onDownload}\n id={download.buttonId}\n size={\"sm\"}\n >\n {download?.buttonText}\n </Button>\n )}\n </div>\n </section>\n </div>\n </div>\n )}\n\n <main className=\"w-full overflow-x-auto mt-5\">\n {isLoading ? (\n <div className=\"py-10 flex flex-col justify-center w-full items-center space-x-2\">\n <Loader size={20} className=\"animate-spin\" />\n <p className=\"mt-3 text-center text-gray-600 text-sm opacity-70 animate-pulse\">\n Loading...\n </p>\n </div>\n ) : table.getRowModel().rows.length < 1 ? (\n <div className=\"py-10 flex flex-col justify-center w-full items-center\">\n <p className=\"text-center text-gray-600 text-sm opacity-70\">\n No data available\n </p>\n </div>\n ) : (\n <div className=\"flex flex-col gap-2\">\n <TableBody\n table={table}\n isMobile={isMobile}\n onRowClick={onRowClick}\n id={id}\n />\n </div>\n )}\n </main>\n\n {!isLoading &&\n pagination?.enabled &&\n table.getRowModel().rows.length > 0 && (\n <Pagination\n {...pagination}\n currentPage={pagination?.currentPage ?? 1}\n totalPages={\n pagination?.totalPages ??\n Math.ceil(\n (pagination?.totalItems ?? 0) /\n Math.max(pagination?.itemsPerPage ?? 1, 1),\n ) ??\n 1\n }\n onPageChange={(page) => pagination?.onPageChange?.(page)}\n />\n )}\n </div>\n );\n};\n","import { ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\";\nimport { renderPageNumbers } from \"./utils\";\n\nexport type PaginationProps = {\n currentPage?: number;\n totalPages?: number;\n onPageChange?: (page: number) => void;\n totalItems?: number;\n itemsPerPage?: number;\n};\n\n/**\n * Pagination component for displaying pagination controls.\n * @param {number} currentPage - The current page number.\n * @param {number} totalPages - The total number of pages.\n * @param {function} onPageChange - Callback function to handle page change.\n * @param {number | undefined} itemsPerPage - The number of items per page.\n */\nexport const Pagination = ({\n currentPage = 1,\n totalPages = 1,\n onPageChange,\n itemsPerPage = 0,\n totalItems = 0,\n}: PaginationProps) => {\n const handlePageClick = (page: number) => {\n if (page >= 1 && page <= totalPages) {\n onPageChange?.(page);\n }\n };\n const visibleRangeStart =\n itemsPerPage === 0 ? 1 : itemsPerPage * (currentPage - 1) + 1;\n const visibleRangeEnd =\n currentPage === totalPages\n ? totalItems\n : Math.min(visibleRangeStart + itemsPerPage - 1, totalItems);\n return (\n <div className=\"flex items-center justify-between border-t border-gray-200 px-4 py-3 sm:px-6 w-full flex-wrap gap-y-10 sm:gap-y-0\">\n {totalItems && (\n <section className=\"text-[#717171] text-[12px]\">\n <p className=\"\">\n Showing {visibleRangeStart} - {visibleRangeEnd} of {totalItems}\n </p>\n </section>\n )}\n <div className=\"flex items-center justify-center sm:justify-end \">\n <nav className=\" inline-flex gap-x-1 sm:gap-x-[10px] items-center\">\n <button\n onClick={() => handlePageClick(currentPage - 1)}\n disabled={currentPage === 1}\n className=\"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden\"\n >\n <ChevronLeftIcon className=\"size-5\" />\n </button>\n {renderPageNumbers({ currentPage, totalPages, handlePageClick })}\n <button\n onClick={() => handlePageClick(currentPage + 1)}\n disabled={currentPage === totalPages}\n className=\"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden\"\n >\n <ChevronRightIcon className=\"size-5\" />\n </button>\n </nav>\n </div>\n </div>\n );\n};\n","type RenderPageNumbersProps = {\n totalPages: number;\n currentPage: number;\n handlePageClick: (page: number) => void;\n};\n\nconst PageButton = ({\n page,\n currentPage,\n onClick,\n}: {\n page: number | string;\n currentPage: number;\n onClick?: () => void;\n}) => {\n if (typeof page === \"string\") {\n return (\n <span className=\"px-3 py-1 sm:px-4 sm:py-2 text-xs sm:text-sm font-semibold text-gray-500\">\n {page}\n </span>\n );\n }\n\n return (\n <button\n onClick={onClick}\n className={`p-1 w-8 h-8 text-xs sm:text-sm rounded-full ${\n page === currentPage\n ? \"bg-primary-main text-white\"\n : \"text-[#717171] hover:bg-primary-main/10\"\n }`}\n >\n {page}\n </button>\n );\n};\n\nexport const renderPageNumbers = ({\n totalPages,\n currentPage,\n handlePageClick,\n}: RenderPageNumbersProps) => {\n const maxVisiblePages = 3;\n\n const getWindowBounds = () => {\n const halfWindow = Math.floor(maxVisiblePages / 2);\n let start = Math.max(1, currentPage - halfWindow);\n let end = Math.min(totalPages, start + maxVisiblePages - 1);\n\n if (end > totalPages) {\n start = Math.max(1, totalPages - maxVisiblePages + 1);\n end = totalPages;\n }\n\n return { start, end };\n };\n\n const { start, end } = getWindowBounds();\n const pages: (number | string)[] = [];\n\n if (start > 1) pages.push(1);\n if (start > 2) pages.push(\"...\");\n pages.push(...Array.from({ length: end - start + 1 }, (_, i) => start + i));\n if (end < totalPages - 1) pages.push(\"...\");\n if (end < totalPages) pages.push(totalPages);\n\n return pages.map((page, idx) => (\n <PageButton\n key={idx}\n page={page}\n currentPage={currentPage}\n onClick={\n typeof page === \"number\" ? () => handlePageClick(page) : undefined\n }\n />\n ));\n};\n","import {\n flexRender,\n Row,\n RowData,\n Table as ReactTable,\n} from \"@tanstack/react-table\";\nimport { cn } from \"@/src/utils\";\n\ntype TableBodyProps<T extends RowData> = {\n table: ReactTable<T>;\n isMobile: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onRowClick?: (row: Row<any>) => void;\n id?: string;\n};\n\nexport const TableBody = <T extends RowData>({\n table,\n isMobile,\n onRowClick,\n id,\n}: TableBodyProps<T>) => {\n return (\n <div className={cn(\"relative w-full rounded-b border-0\", {})}>\n <table id={id ?? \"table\"} className=\"w-full overflow-x-scroll\">\n <thead>\n {table.getHeaderGroups().map((headerGroup) => (\n <tr\n className={cn(\n \" rounded text-[#717171] border-b- bg-[#FCFCFC]\",\n {},\n )}\n key={headerGroup.id}\n >\n {headerGroup.headers.map((header) => (\n <th\n className=\"relative py-3 text-base whitespace-nowrap pl-2.5 text-left font-normal capitalize\"\n colSpan={header.colSpan}\n key={header.id}\n style={{\n width: header.getSize(),\n }}\n >\n {header.isPlaceholder ? null : (\n <div\n className={cn(\"flex items-center\", {\n \"cursor-pointer select-none\":\n header.column.getCanSort(),\n })}\n onClick={header.column.getToggleSortingHandler()}\n >\n {header.isPlaceholder\n ? null\n : flexRender(\n header.column.columnDef.header,\n header.getContext(),\n )}\n </div>\n )}\n </th>\n ))}\n </tr>\n ))}\n </thead>\n <tbody className=\" pl-2.5\">\n {table?.getFilteredRowModel().rows.map((row) => (\n <tr\n className={cn(\n \"first-letter border-b border-zinc-100\",\n {\n \"hover:bg-gray-50\": !isMobile,\n },\n {\n \"hover:bg-gray-50 hover:cursor-pointer\": onRowClick,\n },\n )}\n key={row.id}\n onClick={() => (onRowClick ? onRowClick(row) : {})}\n >\n {row.getVisibleCells().map((cell) => (\n <td\n className={cn(\"\", {\n // block: false,\n })}\n key={cell.id}\n >\n <div\n className={cn(\"\", {\n \"w-max p-4 pl-2.5 text-black text-sm\": true,\n })}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </div>\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n};\n","import { useEffect } from \"react\";\nimport { X } from \"lucide-react\";\n\ntype Props = {\n environment: \"staging\" | \"sandbox\" | \"production\";\n branch: string;\n version: string;\n deployTime: string;\n onClose: () => void;\n showBanner: boolean;\n initDefault: () => void;\n removeFromStorage: () => void;\n syncLocalStorageToState: () => void;\n};\nexport const DevBanner = (props: Props) => {\n const {\n environment,\n branch,\n version,\n deployTime,\n showBanner,\n onClose,\n initDefault,\n removeFromStorage,\n syncLocalStorageToState,\n } = props;\n\n const currentEnv = environment || process.env.NEXT_PUBLIC_NODE_ENV;\n\n // Early return must happen before any hooks\n if (currentEnv !== \"staging\" && currentEnv !== \"sandbox\") {\n return null;\n }\n\n useEffect(() => {\n // Sync localstorage value to showBanner state\n syncLocalStorageToState();\n }, [syncLocalStorageToState]);\n\n useEffect(() => {\n let interval: NodeJS.Timeout;\n\n if (currentEnv === \"staging\" || currentEnv === \"sandbox\") {\n interval = setInterval(\n () => {\n removeFromStorage();\n initDefault();\n },\n 5 * 60 * 1000, // 5 minutes in milliseconds\n );\n }\n\n return () => {\n if (interval) {\n clearInterval(interval);\n }\n };\n }, [\n showBanner,\n environment,\n onClose,\n removeFromStorage,\n initDefault,\n currentEnv,\n ]);\n\n if (!showBanner) return null;\n\n return (\n <div className=\"w-fit p-4 border shadow-md bg-white rounded-md z-[99999] absolute top-2 right-2 min-w-96\">\n <button onClick={onClose} className=\"absolute top-2 right-2\">\n <X />\n </button>\n <div className=\"space-y-2 text-sm\">\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Environment:</span>\n <span className=\"text-blue-600 capitalize\">{currentEnv}</span>\n </div>\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Branch:</span>\n <span className=\"text-green-600 capitalize\">\n {branch || process.env.NEXT_PUBLIC_DEPLOY_BRANCH}\n </span>\n </div>\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Version:</span>\n <span className=\"text-purple-600\">\n {version || process.env.NEXT_PUBLIC_DEPLOY_VERSION}\n </span>\n </div>\n <div className=\"flex gap-2\">\n <span className=\"font-medium\">Deploy Time:</span>\n <span className=\"text-orange-600\">\n {deployTime || process.env.NEXT_PUBLIC_DEPLOY_TIME}\n </span>\n </div>\n </div>\n </div>\n );\n};\n","import { useState, useEffect } from \"react\";\n\ninterface BannerTypes {\n type?: \"gray\" | \"info\" | \"warning\" | \"success\" | \"danger\";\n}\n\ninterface BannerProps extends BannerTypes {\n title?: React.ReactNode;\n description?: React.ReactNode;\n showIcon?: boolean;\n showCloseButton?: boolean;\n bottomNode?: React.ReactNode;\n sideNode?: React.ReactNode;\n open: boolean;\n onClose?: () => void;\n}\n\nconst Icon = ({ type }: BannerTypes) => {\n if (type === \"gray\") {\n return (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10 0C4.49 0 0 4.49 0 10C0 15.51 4.49 20 10 20C15.51 20 20 15.51 20 10C20 4.49 15.51 0 10 0ZM14.78 7.7L9.11 13.37C8.97 13.51 8.78 13.59 8.58 13.59C8.38 13.59 8.19 13.51 8.05 13.37L5.22 10.54C4.93 10.25 4.93 9.77 5.22 9.48C5.51 9.19 5.99 9.19 6.28 9.48L8.58 11.78L13.72 6.64C14.01 6.35 14.49 6.35 14.78 6.64C15.07 6.93 15.07 7.4 14.78 7.7Z\"\n fill=\"#79818C\"\n />\n </svg>\n );\n } else if (type === \"info\") {\n return (\n <svg\n stroke=\"#70B6F6\"\n fill=\"#70B6F6\"\n stroke-width=\"0\"\n viewBox=\"0 0 16 16\"\n height=\"24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2\"></path>\n </svg>\n );\n } else if (type === \"warning\") {\n return (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z\"\n fill=\"#FFC700\"\n />\n </svg>\n );\n } else if (type === \"success\") {\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z\"\n fill=\"#00D488\"\n />\n </svg>\n );\n } else {\n return (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z\"\n fill=\"#F04248\"\n />\n </svg>\n );\n }\n};\n\nexport const Banner = ({\n type = \"info\",\n title,\n description,\n open,\n showCloseButton,\n bottomNode,\n sideNode,\n onClose,\n showIcon = true,\n}: BannerProps) => {\n const [isOpen, setIsOpen] = useState<boolean>(open);\n\n useEffect(() => {\n setIsOpen(open);\n }, [open]);\n\n let bgColor = \"\";\n let stripeColor = \"\";\n switch (type) {\n case \"gray\":\n bgColor = \"#eeeef0\";\n stripeColor = \"#79818c\";\n break;\n case \"info\":\n bgColor = \"#ebf5fd\";\n stripeColor = \"#70B6F6\";\n break;\n case \"warning\":\n bgColor = \"#fff8df\";\n stripeColor = \"#ffc700\";\n break;\n case \"success\":\n bgColor = \"#e0f9f0\";\n stripeColor = \"#49e0aa\";\n break;\n case \"danger\":\n bgColor = \"#fde8e9\";\n stripeColor = \"#f3777c\";\n break;\n default:\n bgColor = \"#eeeef0\";\n stripeColor = \"#79818c\";\n break;\n }\n\n function handleClose() {\n setIsOpen(false);\n if (onClose) {\n onClose();\n }\n }\n\n if (!isOpen) {\n return null;\n }\n\n return (\n <div\n className=\"w-full shadow-lg transform flex items-center rounded-md\"\n style={{\n background: bgColor || \"#ebf5fd\",\n }}\n >\n <div\n className=\"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0\"\n style={{\n background: stripeColor || \"#70B6F6\",\n }}\n />\n\n <div className=\"w-full gap-3 h-full flex flex-row justify-between px-4 md:px-4 py-3 md:py-4\">\n <div className=\"flex flex-row gap-2.5 items-start w-full h-full\">\n {showIcon && (\n <div className=\"h-full flex justify-end\">\n <Icon type={type} />\n </div>\n )}\n\n <div className=\"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between\">\n <div className=\"flex-1 gap-3 h-full flex flex-col items-start justify-between\">\n {(title || description) && (\n <div>\n {title && (\n <div className=\"text-sm font-bold text-[#191919]\">\n {title}\n </div>\n )}\n {description && (\n <div className=\"text-sm font-normal text-[#5D5D5D] mt-1\">\n {description}\n </div>\n )}\n </div>\n )}\n\n {bottomNode}\n </div>\n {sideNode}\n </div>\n </div>\n\n {showCloseButton && (\n <div className=\"w-1/10 h-full flex flex-col justify-start items-center\">\n <button onClick={handleClose}>\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3.3335 3.33337L12.6662 12.6661\"\n stroke=\"#191919\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M3.33429 12.6661L12.667 3.33337\"\n stroke=\"#191919\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n </div>\n )}\n </div>\n </div>\n );\n};\n","export const Check = () => {\n return (\n <svg\n stroke=\"currentColor\"\n fill=\"currentColor\"\n strokeWidth=\"0\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n className=\"h-5 w-5\"\n height=\"1em\"\n width=\"1em\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n d=\"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n );\n};\n","import { SVGProps } from \"react\";\n\nexport const EnglishFlag = (props: SVGProps<SVGSVGElement>) => {\n return (\n <svg\n viewBox=\"0 0 60 30\"\n className=\"w-full max-w-md h-auto\"\n aria-label=\"Union Jack - Flag of the United Kingdom\"\n {...props}\n >\n {/* Blue background */}\n <rect width=\"60\" height=\"30\" fill=\"#00247D\" />\n\n {/* White diagonal crosses */}\n <path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#FFFFFF\" strokeWidth=\"6\" />\n\n {/* Red diagonal crosses */}\n <path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#CF142B\" strokeWidth=\"4\" />\n\n {/* White cross */}\n <path d=\"M30,0 L30,30 M0,15 L60,15\" stroke=\"#FFFFFF\" strokeWidth=\"10\" />\n\n {/* Red cross */}\n <path d=\"M30,0 L30,30 M0,15 L60,15\" stroke=\"#CF142B\" strokeWidth=\"6\" />\n </svg>\n );\n};\n","import { SVGProps } from \"react\";\n\nexport const FrenchFlag = (props: SVGProps<SVGSVGElement>) => {\n return (\n <svg\n viewBox=\"0 0 60 40\"\n className=\"w-full max-w-md h-auto\"\n aria-label=\"Tricolore - Flag of France\"\n {...props}\n >\n {/* Blue stripe */}\n <rect x=\"0\" y=\"0\" width=\"20\" height=\"40\" fill=\"#002395\" />\n\n {/* White stripe */}\n <rect x=\"20\" y=\"0\" width=\"20\" height=\"40\" fill=\"#FFFFFF\" />\n\n {/* Red stripe */}\n <rect x=\"40\" y=\"0\" width=\"20\" height=\"40\" fill=\"#ED2939\" />\n </svg>\n );\n};\n","export const UpDownIcon = () => {\n return (\n <svg\n width=\"20\"\n height=\"18\"\n viewBox=\"0 0 8 18\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n","import { cn } from \"@/src/utils\";\nimport { PopoverContent, PopoverRoot, PopoverTrigger } from \"../popover\";\nimport { Check } from \"./icons/Check\";\nimport { EnglishFlag } from \"./icons/EnglishFlag\";\nimport { FrenchFlag } from \"./icons/FrenchFlag\";\nimport { UpDownIcon } from \"./icons/UpDownIcon\";\nimport { PopoverClose } from \"@radix-ui/react-popover\";\n\nconst localeListOptons = [\n {\n key: \"en\",\n label: \"English\",\n },\n {\n key: \"fr\",\n label: \"French\",\n },\n];\n\ntype LocaleOption = {\n key: string;\n label: string;\n};\n\nconst LocaleIcon = ({ locale }: { locale?: string }) => {\n if (locale === \"fr\") return <FrenchFlag width={10} />;\n return <EnglishFlag width={10} />;\n};\n\nconst LocaleTrigger = ({ locale }: { locale?: string }) => {\n return (\n <div className=\"px-2 py-1 \">\n <div className=\"flex items-center gap-2.5\">\n <LocaleIcon locale={locale} />{\" \"}\n <span className=\"uppercase\">{locale}</span>\n <UpDownIcon />\n </div>\n </div>\n );\n};\n\nexport const LocaleSelector = ({\n locale = \"en\",\n onChange,\n locales = localeListOptons,\n}: {\n locale?: string;\n onChange?: (locale: string) => void;\n locales?: LocaleOption[];\n}) => {\n return (\n <PopoverRoot>\n <div className=\"flex items-center gap-2 px-2 py-1 rounded-lg shadow border-[0.5px] border-gray-50/50 text-current bg-white/10 \">\n <PopoverTrigger className={\"!p-0 !bg-transparent \"}>\n <LocaleTrigger locale={locale} />\n </PopoverTrigger>\n </div>\n <PopoverContent\n side=\"bottom\"\n className=\"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2\"\n >\n <div>\n {locales?.map((_locale) => (\n <PopoverClose\n type=\"button\"\n key={_locale?.key}\n className={cn(\n \"flex items-center gap-3 px-3 py-1 text-sm hover:bg-blue-50 w-full transition-all\",\n { \"bg-blue-100\": locale && locale === _locale?.key },\n )}\n onClick={() => onChange?.(_locale?.key)}\n >\n {_locale?.label} {locale && locale === _locale?.key && <Check />}\n </PopoverClose>\n ))}\n </div>\n </PopoverContent>\n </PopoverRoot>\n );\n};\n","// import React from 'react'\n\n// export const Drawer = () => {\n// return (\n// <div>Drawer</div>\n// )\n// }\n\n\"use client\";\n\nimport * as React from \"react\";\nimport { Drawer as DrawerPrimitive } from \"vaul\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/utils\";\nimport { useWindowSize } from \"react-use\";\nimport { DialogCloseProps } from \"@radix-ui/react-dialog\";\nimport { CloseIcon } from \"./icon/CloseIcon\";\n\ntype DrawerRootType = React.ComponentProps<typeof DrawerPrimitive.Root>;\n\nconst DrawerRoot = ({\n shouldScaleBackground = true,\n ...props\n}: DrawerRootType) => (\n <DrawerPrimitive.Root\n direction=\"right\"\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n);\n\nDrawerRoot.displayName = \"Drawer\";\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerClose: React.ForwardRefExoticComponent<\n DialogCloseProps & React.RefAttributes<HTMLButtonElement>\n> = DrawerPrimitive.Close;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-40 bg-black/75 !m-0 !p-0 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n ref={ref}\n />\n));\n\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;\n\nconst DrawerVariants = cva(\n \"fixed focus-visible:outline-0 z-50 gap-4 bg-white shadow-lg dark:bg-[#2B2B2B] dark:text-white transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:border-none\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top rounded-b-lg\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom rounded-t-lg\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-[512px] \",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-[512px]\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n }\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>,\n VariantProps<typeof DrawerVariants> {}\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n SheetContentProps & {\n hideCloseButton?: boolean;\n }\n>(({ side = \"right\", hideCloseButton, className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(DrawerVariants({ side }), className)}\n {...props}\n >\n <button className=\"bg-gray-300 block md:hidden mx-auto mt-4 h-1.5 w-[80px] rounded-full opacity-70 transition-opacity hover:opacity-100\" />\n {children}\n {!hideCloseButton && (\n <DrawerPrimitive.Close className=\"absolute right-2 top-3 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <CloseIcon />\n\n <span className=\"sr-only\">Close</span>\n </DrawerPrimitive.Close>\n )}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\n\nDrawerContent.displayName = DrawerPrimitive.Content.displayName;\n\nconst DrawerHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"text-2xl flex flex-col border-b-0 border-b-gray-200 space-y-1 text-left w-full p-3 py-4\",\n className\n )}\n {...props}\n />\n);\n\nDrawerHeader.displayName = \"DrawerHeader\";\n\nconst DrawerFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row m-auto right-0 left-0 p-3 sm:space-x-2 border-t border-t-[#EDEDED] dark:border-t-[#242424] w-full\",\n className\n )}\n {...props}\n />\n);\n\nDrawerFooter.displayName = \"DrawerFooter\";\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn(\n \"text-xl font-semibold text-[#191919] dark:text-white\",\n className\n )}\n {...props}\n />\n));\n\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description\n ref={ref}\n className={cn(\"text-xs text-[#5d5c5c] dark:text-white\", className)}\n {...props}\n />\n));\n\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\nexport type DrawerPropsType = {\n trigger?: React.ReactNode;\n children: React.ReactNode;\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n hideCloseButton?: boolean;\n contentClassName?: string;\n headerClassName?: string;\n titleClassName?: string;\n descriptionClassName?: string;\n footerClassName?: string;\n asChild?: boolean;\n onOpenAutoFocus?: (e: Event) => void;\n onCloseAutoFocus?: (e: Event) => void;\n};\n\nconst Drawer = ({\n trigger = undefined,\n children,\n open = undefined,\n onOpenChange = undefined,\n hideCloseButton,\n footer,\n title,\n description,\n contentClassName,\n headerClassName,\n titleClassName,\n descriptionClassName,\n footerClassName,\n asChild = true,\n onOpenAutoFocus,\n onCloseAutoFocus,\n}: Omit<DrawerRootType, \"value\"> & DrawerPropsType) => {\n const { width } = useWindowSize();\n const direction = width < 768 ? \"bottom\" : \"right\";\n\n return (\n <DrawerRoot open={open} onOpenChange={onOpenChange} direction={direction}>\n <DrawerTrigger className=\"cursor-pointer\" asChild={asChild}>\n {trigger}\n </DrawerTrigger>\n <DrawerContent\n className={cn(\n \"flex flex-col gap-0 justify-start items-start max-h-[90vh] md:max-h-full w-full max-w-[500px]\",\n contentClassName\n )}\n side={direction}\n hideCloseButton={hideCloseButton}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n >\n {title || description ? (\n <DrawerHeader className={headerClassName}>\n {title && (\n <DrawerTitle className={titleClassName}>{title}</DrawerTitle>\n )}\n {description && (\n <DrawerDescription className={descriptionClassName}>\n {description}\n </DrawerDescription>\n )}\n </DrawerHeader>\n ) : (\n <></>\n )}\n\n <div\n className={cn(\n \"flex w-full overflow-y-auto flex-col justify-start items-start p-4 flex-1 h-[30px]\"\n )}\n >\n {children}\n </div>\n\n {footer && (\n <DrawerFooter className={footerClassName}>{footer}</DrawerFooter>\n )}\n </DrawerContent>\n </DrawerRoot>\n );\n};\n\nexport { Drawer, DrawerRoot, DrawerClose };\n","export const CloseIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-x\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n};\n","export const CurrencySymbolMap: Record<string, string> = {\n USD: \"$\",\n CAD: \"CA$\",\n EUR: \"€\",\n AED: \"AED\",\n AFN: \"Af\",\n ALL: \"ALL\",\n AMD: \"AMD\",\n ARS: \"AR$\",\n AUD: \"AU$\",\n AZN: \"man.\",\n BAM: \"KM\",\n BDT: \"Tk\",\n BGN: \"BGN\",\n BHD: \"BD\",\n BIF: \"FBu\",\n BND: \"BN$\",\n BOB: \"Bs\",\n BRL: \"R$\",\n BWP: \"BWP\",\n BYN: \"Br\",\n BZD: \"BZ$\",\n CDF: \"CDF\",\n CHF: \"CHF\",\n CLP: \"CL$\",\n CNY: \"CN¥\",\n COP: \"CO$\",\n CRC: \"₡\",\n CVE: \"CV$\",\n CZK: \"Kč\",\n DJF: \"Fdj\",\n DKK: \"Dkr\",\n DOP: \"RD$\",\n DZD: \"DA\",\n EEK: \"Ekr\",\n EGP: \"EGP\",\n ERN: \"Nfk\",\n ETB: \"Br\",\n GBP: \"£\",\n GEL: \"GEL\",\n GHS: \"GH₵\",\n GNF: \"FG\",\n GTQ: \"GTQ\",\n HKD: \"HK$\",\n HNL: \"HNL\",\n HRK: \"kn\",\n HUF: \"Ft\",\n IDR: \"Rp\",\n ILS: \"₪\",\n INR: \"₹\",\n IQD: \"IQD\",\n IRR: \"IRR\",\n ISK: \"Ikr\",\n JMD: \"J$\",\n JOD: \"JD\",\n JPY: \"¥\",\n KES: \"Ksh\",\n KHR: \"KHR\",\n KMF: \"CF\",\n KRW: \"₩\",\n KWD: \"KD\",\n KZT: \"KZT\",\n LBP: \"L.L.\",\n LKR: \"SLRs\",\n LTL: \"Lt\",\n LVL: \"Ls\",\n LYD: \"LD\",\n MAD: \"MAD\",\n MDL: \"MDL\",\n MGA: \"MGA\",\n MKD: \"MKD\",\n MMK: \"MMK\",\n MOP: \"MOP$\",\n MUR: \"MURs\",\n MXN: \"MX$\",\n MYR: \"RM\",\n MZN: \"MTn\",\n NAD: \"N$\",\n NGN: \"₦\",\n NIO: \"C$\",\n NOK: \"Nkr\",\n NPR: \"NPRs\",\n NZD: \"NZ$\",\n OMR: \"OMR\",\n PAB: \"B/.\",\n PEN: \"S/.\",\n PHP: \"₱\",\n PKR: \"PKRs\",\n PLN: \"zł\",\n PYG: \"₲\",\n QAR: \"QR\",\n RON: \"RON\",\n RSD: \"din.\",\n RUB: \"RUB\",\n RWF: \"RWF\",\n SAR: \"SR\",\n SDG: \"SDG\",\n SEK: \"Skr\",\n SGD: \"S$\",\n SOS: \"Ssh\",\n SYP: \"SY£\",\n THB: \"฿\",\n TND: \"DT\",\n TOP: \"T$\",\n TRY: \"TL\",\n TTD: \"TT$\",\n TWD: \"NT$\",\n TZS: \"TSh\",\n UAH: \"₴\",\n UGX: \"USh\",\n UYU: \"$U\",\n UZS: \"UZS\",\n VEF: \"Bs.F.\",\n VND: \"₫\",\n XAF: \"F CFA\",\n XOF: \"CFA\",\n YER: \"YR\",\n ZAR: \"R\",\n ZMK: \"ZK\",\n ZWL: \"ZWL$\",\n};\nexport interface FormatCurrencyOptions {\n convertToMajorCurrency?: boolean;\n locale?: string;\n}\nexport class AmountAction {\n static getCurrencyLocaleMap(currency: string): string {\n const localeMap: Record<string, string> = {\n XOF: \"fr\",\n XAF: \"fr\",\n };\n return localeMap[currency] || \"en\";\n }\n static koboToNaira(amount: number | string) {\n return +amount / 100;\n }\n\n static nairaToKobo(amount: number | string) {\n return +amount * 100;\n }\n\n static getCurrencySymbol(currency: string): string {\n return CurrencySymbolMap[currency] || currency;\n }\n\n static formatAmountAndCurrency = (\n currency: string,\n value: number | string,\n options: FormatCurrencyOptions,\n ) => {\n const formatted = new Intl.NumberFormat(\n options?.locale || this.getCurrencyLocaleMap(currency),\n {\n maximumFractionDigits: 3,\n style: \"currency\",\n currency: currency,\n currencyDisplay: \"symbol\",\n },\n )\n .format(\n options?.convertToMajorCurrency\n ? this.koboToNaira(Number(value))\n : Number(value),\n )\n .replace(/^(\\D+)/, \"$1 \")\n .replace(\" \", \" \")\n .replace(/\\s+/, \"\");\n\n // Now replace the currency code with the desired symbol from the map\n const customSymbol = CurrencySymbolMap[currency] || currency;\n\n // Replace the currency code with our custom symbol\n return formatted.replace(currency, customSymbol);\n };\n}\n","// import dayjs from \"dayjs\";\nimport dayjs from \"dayjs\";\nexport class DateAction {\n static getDateLibrary(): dayjs.Dayjs {\n return dayjs();\n }\n static formatTimestampToDate(timestamp: number, dateFormat?: string) {\n return dayjs\n .unix(timestamp)\n .format(dateFormat || \"ddd, MMM, YYYY | HH:mm:ss\");\n }\n\n static formatDateToTimestamp(date: string) {\n return dayjs(date).unix();\n }\n}\n\n// console.log(\"Date\", dayjs().format(\"DD, MMM, YYYY | HH:mm:ss\"));\n"],"mappings":"yKAAA,OAAOA,OAAW,QCElB,UAAYC,OAAW,QACvB,UAAYC,OAAoB,wBAChC,OAAS,OAAAC,OAA8B,2BCJvC,OAAS,QAAAC,OAA6B,OACtC,OAAS,WAAAC,OAAe,iBAiBjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,GAAQD,GAAKG,CAAM,CAAC,CAC7B,CDHE,cAAAC,OAAA,oBATF,IAAMC,GAAgBC,GACpB,4FACF,EAEMC,GAAc,cAIlB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BN,GAAgB,QAAf,CACC,IAAKM,EACL,UAAWC,EAAGN,GAAc,EAAGG,CAAS,EACvC,GAAGC,EACN,CACD,EACDF,GAAM,YAA6B,QAAK,YDDhC,OAEE,OAAAK,GAFF,QAAAC,OAAA,oBAhBR,IAAMC,EAAYC,GAAM,WAOtB,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,aAAAC,EAAc,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAEvDT,GAACU,GAAA,CACC,IAAKD,EACL,UAAWE,EAAGJ,GAAS,eAAgBH,CAAS,EAE/C,GAAGI,EAEH,SAAAF,EACCL,GAAC,KACE,UAAAI,EACDL,GAAC,QAAK,UAAU,eAAe,aAAC,GAClC,EAEAK,E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,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,OACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,WACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,WACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,gBACV,aAAc,MACd,aAAc,SACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,gBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,cACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,eACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,aACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,OACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,aACb,YAAa,OACb,SAAU,qBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,kBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,QACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,iBACV,aAAc,MACd,aAAc,SACd,oBAAqB,IACvB,EACA,CACE,YAAa,wBACb,YAAa,OACb,SAAU,4BACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,gBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,UACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,aACb,YAAa,OACb,SAAU,oBACV,aAAc,MACd,aAAc,SACd,oBAAqB,IACvB,EACA,CACE,YAAa,eACb,YAAa,MACb,SAAU,qBACV,aAAc,MACd,aAAc,IACd,oBAAqB,IACvB,EACA,CACE,YAAa,cACb,YAAa,OACb,SAAU,uBACV,aAAc,MACd,aAAc,OACd,oBAAqB,IACvB,EACA,CACE,YAAa,WACb,YAAa,OACb,SAAU,qBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,OACb,YAAa,OACb,SAAU,yBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,mBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,EACA,CACE,YAAa,SACb,YAAa,OACb,SAAU,iBACV,aAAc,MACd,aAAc,KACd,oBAAqB,IACvB,CACF,EAEaC,GAAoB,IAAM,CACrC,IAAMC,EAAY,CAAC,EAEnB,OAAAF,IAAa,QAASG,GAAY,CAChCD,EAAUC,GAAS,mBAAmB,EAAIA,GAAS,WACrD,CAAC,EAEMD,CACT,EChQA,UAAYE,OAAW,QAEvB,UAAYC,OAAc,2BAE1B,OAAOC,OAAW,iCCMd,OAME,OAAAC,GANF,QAAAC,OAAA,oBAFJ,IAAMC,GAA0DC,GAE5DF,GAAC,OAC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AK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,OACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,SACL,IAAK,MACL,IAAK,SACL,IAAK,MACL,IAAK,UACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,OACL,IAAK,MACL,IAAK,WACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,IAAK,SACL,IAAK,SACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,OACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,SACL,IAAK,KACL,IAAK,MACL,IAAK,OACL,IAAK,OACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,OACL,IAAK,OACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,KACL,IAAK,SACL,IAAK,KACL,IAAK,MACL,IAAK,OACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,SACL,IAAK,OACL,IAAK,UACL,IAAK,SACL,IAAK,KACL,IAAK,MACL,IAAK,OACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,SACL,IAAK,SACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,SACL,IAAK,MACL,IAAK,KACL,IAAK,MACL,IAAK,QACL,IAAK,SACL,IAAK,QACL,IAAK,MACL,IAAK,KACL,IAAK,IACL,IAAK,KACL,IAAK,MACP,EAKaC,GAAN,MAAMA,EAAa,CACxB,OAAO,qBAAqBC,EAA0B,CAKpD,MAJ0C,CACxC,IAAK,KACL,IAAK,IACP,EACiBA,CAAQ,GAAK,IAChC,CACA,OAAO,YAAYC,EAAyB,CAC1C,MAAO,CAACA,EAAS,GACnB,CAEA,OAAO,YAAYA,EAAyB,CAC1C,MAAO,CAACA,EAAS,GACnB,CAEA,OAAO,kBAAkBD,EAA0B,CACjD,OAAOF,GAAkBE,CAAQ,GAAKA,CACxC,CA+BF,EA7BEE,GApBWH,GAoBJ,0BAA0B,CAC/BC,EACAG,EACAC,IACG,CACH,IAAMC,EAAY,IAAI,KAAK,aACzBD,GAAS,QAAUL,GAAK,qBAAqBC,CAAQ,EACrD,CACE,sBAAuB,EACvB,MAAO,WACP,SAAUA,EACV,gBAAiB,QACnB,CACF,EACG,OACCI,GAAS,uBACLL,GAAK,YAAY,OAAOI,CAAK,CAAC,EAC9B,OAAOA,CAAK,CAClB,EACC,QAAQ,SAAU,KAAK,EACvB,QAAQ,SAAK,GAAG,EAChB,QAAQ,MAAO,EAAE,EAGdG,EAAeR,GAAkBE,CAAQ,GAAKA,EAGpD,OAAOK,EAAU,QAAQL,EAAUM,CAAY,CACjD,GAhDK,IAAMC,GAANR,GC5HP,OAAOS,OAAW,QACX,IAAMC,GAAN,KAAiB,CACtB,OAAO,gBAA8B,CACnC,OAAOD,GAAM,CACf,CACA,OAAO,sBAAsBE,EAAmBC,EAAqB,CACnE,OAAOH,GACJ,KAAKE,CAAS,EACd,OAAOC,GAAc,2BAA2B,CACrD,CAEA,OAAO,sBAAsBC,EAAc,CACzC,OAAOJ,GAAMI,CAAI,EAAE,KAAK,CAC1B,CACF","names":["React","React","LabelPrimitive","cva","clsx","twMerge","cn","inputs","jsx","labelVariants","cva","Label","className","props","ref","cn","jsx","jsxs","FormLabel","React","className","children","showAsterisk","error","props","ref","Label","cn","jsx","jsxs","Loader","size","colour","React","Slot","cva","Fragment","jsx","jsxs","buttonVariants","cva","Button","className","variant","size","asChild","isLoading","leftNode","rightNode","LoaderSize","props","ref","Component","Slot","children","disabled","rest","reference","cn","Loader","React","cva","React","jsx","ErrorMessage","className","children","error","props","ref","body","cn","React","jsx","FormDescription","className","props","ref","cn","jsx","jsxs","inputVariants","cva","BaseInnerInput","className","status","type","props","ref","cn","inputContainerVariants","sideVariants","Input","disabled","error","isLoading","sideNodeClassName","showAsterisk","label","description","containerStatus","FormLabel","FormDescription","ErrorMessage","useMemo","useState","jsx","jsxs","Eye","jsx","jsxs","EyeOff","jsx","Check","jsx","Fail","jsx","jsxs","validationOptions","PasswordInput","onValidate","onChange","disableValidation","props","passwordVisible","setPasswordVisible","useState","validatedValues","setValidatedValues","validatePassword","value","option","checkPasswordStrength","validatedOptions","allValidated","handlePaswordInputChange","e","validated","ValidateComp","useMemo","cn","Check","Fail","Input","val","Eye","EyeOff","cva","jsx","jsxs","textareaContainerVariants","cva","Textarea","className","status","disabled","error","isLoading","showAsterisk","label","description","props","containerStatus","FormLabel","cn","inputContainerVariants","FormDescription","ErrorMessage","React","React","CommandPrimitive","Search","React","DialogPrimitive","jsx","jsxs","CloseIcon","Fragment","jsx","jsxs","DialogRoot","DialogTrigger","DialogPortal","DialogOverlay","className","props","ref","cn","DialogContent","hideCloseButton","children","CloseIcon","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Dialog","trigger","open","onOpenChange","footer","title","description","contentClassName","headerClassName","titleClassName","descriptionClassName","footerClassName","asChild","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onInteractOutside","onPointerDownOutside","Fragment","jsx","jsxs","Command","className","props","ref","CommandPrimitive","cn","CommandInput","className","CommandInputContainerClassName","loading","props","ref","jsxs","cn","jsx","Loader","Search","CommandPrimitive","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","React","PopoverPrimitive","jsx","jsxs","PopoverRoot","PopoverTrigger","PopoverContent","className","align","sideOffset","portal","props","ref","cn","Popover","trigger","children","open","onOpenChange","contentClassName","asChild","side","alignOffset","triggerClassName","onOpenAutoFocus","onCloseAutoFocus","React","ScrollAreaPrimitive","jsx","jsxs","ScrollArea","className","viewPortClassName","children","props","ref","cn","ScrollBar","orientation","jsx","jsxs","SearchableTrigger","className","value","placeholder","status","disabled","PopoverTrigger","cn","inputContainerVariants","Searchable","options","onChange","containerClassName","loading","optionComponent","children","modal","hideSearch","inputValue","onValueChange","onInputValueChange","open","setOpen","triggerRef","width","setWidth","PopoverRoot","PopoverContent","Command","CommandInput","ScrollArea","CommandList","CommandEmpty","CommandGroup","option","CommandItem","countryData","getCountryDataMap","frequency","country","React","RPNInput","flags","jsx","jsxs","FlatGlobeIcon","props","Flag_default","jsx","jsxs","PhoneInput","className","onChange","defaultCountry","modal","showAsterisk","label","description","error","props","ref","CountrySelectWrapper","innerProps","CountrySelect","FormLabel","cn","FlagComponent","InputComponent","value","FormDescription","ErrorMessage","Input","disabled","options","status","handleSelect","country","PopoverRoot","PopoverTrigger","inputContainerVariants","PopoverContent","Command","CommandList","ScrollArea","CommandInput","CommandEmpty","CommandGroup","x","option","CommandItem","countryName","Flag","flags","Flag_default","jsx","jsxs","countryMap","getCountryDataMap","CountryTrigger","className","value","placeholder","status","disabled","PopoverTrigger","cn","inputContainerVariants","FlagComponent","Country","hideSearch","showAsterisk","label","description","error","props","options","countryData","country","FormLabel","Searchable","arg","FormDescription","ErrorMessage","jsx","jsxs","Select","showAsterisk","label","description","error","hideSearch","status","props","FormLabel","Searchable","SearchableTrigger","FormDescription","ErrorMessage","OtpInput","cva","useMemo","jsx","otpInputVariants","OTPInput","numInputs","inputStyle","containerStyle","placeholder","status","props","placeholderValue","accumulator","currentValue","OtpInput","cn","useState","Copy","CheckIcon","motion","AnimatePresence","jsx","jsxs","CopyableLabel","text","textToCopy","onCopy","iconsPosition","clampText","textClassName","copied","setCopied","useState","copyToClipboard","Icon","CheckIcon","Copy","AnimatedIcon","cn","onClick","AnimatePresence","motion","useEffect","useState","Search","jsx","DebouncedInput","initialValue","onChange","debounce","addon","props","value","setValue","useState","handleInputChange","event","useEffect","timeout","Input","cn","jsx","Status","status","variant","className","cn","Download","ListFilter","Loader","RotateCw","ChevronLeftIcon","ChevronRightIcon","jsx","PageButton","page","currentPage","onClick","renderPageNumbers","totalPages","handlePageClick","getWindowBounds","halfWindow","start","end","pages","_","i","idx","jsx","jsxs","Pagination","currentPage","totalPages","onPageChange","itemsPerPage","totalItems","handlePageClick","page","visibleRangeStart","visibleRangeEnd","ChevronLeftIcon","renderPageNumbers","ChevronRightIcon","flexRender","jsx","jsxs","TableBody","table","isMobile","onRowClick","id","cn","headerGroup","header","flexRender","row","cell","jsx","jsxs","Table","table","isMobile","onRowClick","id","onRefetch","isRefetching","FilterMenu","ExtraNode","onExport","search","download","isLoading","pagination","handleRefetch","e","handleSearch","cn","DebouncedInput","Button","RotateCw","Popover","buttonVariants","ListFilter","Download","Loader","TableBody","Pagination","page","useEffect","X","jsx","jsxs","DevBanner","props","environment","branch","version","deployTime","showBanner","onClose","initDefault","removeFromStorage","syncLocalStorageToState","currentEnv","interval","useState","useEffect","jsx","jsxs","Icon","type","Banner","title","description","open","showCloseButton","bottomNode","sideNode","onClose","showIcon","isOpen","setIsOpen","bgColor","stripeColor","handleClose","jsx","Check","jsx","jsxs","EnglishFlag","props","jsx","jsxs","FrenchFlag","props","jsx","jsxs","UpDownIcon","PopoverClose","jsx","jsxs","localeListOptons","LocaleIcon","locale","FrenchFlag","EnglishFlag","LocaleTrigger","UpDownIcon","LocaleSelector","onChange","locales","PopoverRoot","PopoverTrigger","PopoverContent","_locale","cn","Check","React","DrawerPrimitive","cva","useWindowSize","jsx","jsxs","CloseIcon","Fragment","jsx","jsxs","DrawerRoot","shouldScaleBackground","props","DrawerPrimitive","DrawerTrigger","DrawerClose","DrawerPortal","DrawerOverlay","className","ref","cn","DrawerVariants","cva","DrawerContent","side","hideCloseButton","children","CloseIcon","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription","Drawer","trigger","open","onOpenChange","footer","title","description","contentClassName","headerClassName","titleClassName","descriptionClassName","footerClassName","asChild","onOpenAutoFocus","onCloseAutoFocus","width","useWindowSize","direction","CurrencySymbolMap","_AmountAction","currency","amount","__publicField","value","options","formatted","customSymbol","AmountAction","dayjs","DateAction","timestamp","dateFormat","date"]}
|