@niledatabase/react 5.1.0 → 5.2.0-alpha.3

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/EmailSignIn/Form.tsx","../components/ui/form.tsx","../lib/utils.ts","../../../node_modules/clsx/dist/clsx.mjs","../../../node_modules/tailwind-merge/src/lib/class-group-utils.ts","../../../node_modules/tailwind-merge/src/lib/lru-cache.ts","../../../node_modules/tailwind-merge/src/lib/parse-class-name.ts","../../../node_modules/tailwind-merge/src/lib/sort-modifiers.ts","../../../node_modules/tailwind-merge/src/lib/config-utils.ts","../../../node_modules/tailwind-merge/src/lib/merge-classlist.ts","../../../node_modules/tailwind-merge/src/lib/tw-join.ts","../../../node_modules/tailwind-merge/src/lib/create-tailwind-merge.ts","../../../node_modules/tailwind-merge/src/lib/from-theme.ts","../../../node_modules/tailwind-merge/src/lib/validators.ts","../../../node_modules/tailwind-merge/src/lib/default-config.ts","../../../node_modules/tailwind-merge/src/lib/merge-configs.ts","../../../node_modules/tailwind-merge/src/lib/extend-tailwind-merge.ts","../../../node_modules/tailwind-merge/src/lib/tw-merge.ts","../lib/queryClient.ts","../components/ui/label.tsx","../../../node_modules/class-variance-authority/dist/index.mjs","../components/ui/input.tsx","../components/ui/button.tsx","../src/EmailSignIn/hooks.ts","../src/EmailSignIn/EmailSignInButton.tsx","../src/GoogleLoginButton/GoogleLoginButton.tsx","../src/AzureSignInButton/index.tsx","../src/DiscordSignInButton/index.tsx","../src/GitHubSignInButton/index.tsx","../src/HubSpotSignInButton/index.tsx","../src/LinkedInSignInButton/index.tsx","../src/SlackSignInButton/index.tsx","../src/XSignInButton/index.tsx","../src/OktaSignInButton/index.tsx","../src/SignUpForm/SignUpForm.tsx","../src/SignUpForm/Form.tsx","../src/SignUpForm/hooks.tsx","../src/SignInForm/SignInForm.tsx","../src/SignInForm/Form.tsx","../src/SignInForm/hooks.tsx","../src/SignOutButton/index.tsx","../src/SignedIn/index.tsx","../lib/auth/index.tsx","../src/SignedOut/index.tsx","../src/TenantSelector/index.tsx","../components/ui/dropdown-menu.tsx","../components/ui/dialog.tsx","../src/TenantSelector/hooks.ts","../../server/src/utils/constants.ts","../src/UserInfo/index.tsx","../src/UserInfo/hooks.tsx","../src/resetPassword/PasswordResetRequestForm/index.tsx","../src/resetPassword/PasswordResetRequestForm/Form.tsx","../src/resetPassword/hooks.ts","../src/resetPassword/ForgotPassword/index.tsx","../src/resetPassword/ForgotPassword/Form.tsx","../src/index.ts"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\nimport { Mail } from 'lucide-react';\n\nimport { Email, Form } from '../../components/ui/form';\nimport { Button } from '../../components/ui/button';\n\nimport { EmailSignInInfo, Props } from './types';\nimport { useEmailSignIn } from './hooks';\n\nconst queryClient = new QueryClient();\n\nexport default function EmailSigningIn(props: Props) {\n const { client, ...remaining } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <EmailSignInForm {...remaining} />\n </QueryClientProvider>\n );\n}\nexport function EmailSignInForm(props: Props & EmailSignInInfo) {\n const signIn = useEmailSignIn(props);\n const form = useForm({ defaultValues: { email: '' } });\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(({ email }) => signIn && signIn({ email }))}\n className=\"space-y-8\"\n >\n <Email />\n <Button type=\"submit\" className=\"flex flex-row gap-2\">\n <Mail />\n Sign in with email\n </Button>\n </form>\n </Form>\n );\n}\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from 'react-hook-form';\n\nimport { cn } from '../../lib/utils';\n\nimport { Label } from './label';\nimport { Input } from './input';\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n);\n\ntype FormFieldType = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>(\n props: ControllerProps<TFieldValues, TName>\n) => React.ReactElement;\n\nconst FormField: FormFieldType = ({ ...props }) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n);\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('py-2', className)} {...props} />\n </FormItemContext.Provider>\n );\n});\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ComponentRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return (\n <Label\n ref={ref}\n className={cn(error && 'text-destructive', className)}\n htmlFor={formItemId}\n {...props}\n />\n );\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<\n React.ComponentRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } =\n useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-sm font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nconst Email = ({ hide }: { hide?: boolean }) => {\n const form = useFormContext();\n\n return (\n <FormField\n control={form.control}\n name=\"email\"\n render={({ field }) => {\n if (hide) {\n return <input type=\"hidden\" {...field} />;\n }\n return (\n <FormItem>\n <FormLabel htmlFor={field.name}>Email</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Email\"\n {...field}\n aria-label={field.name}\n autoComplete=\"current-email\"\n required\n />\n </FormControl>\n <FormDescription>Your email address</FormDescription>\n <FormMessage />\n </FormItem>\n );\n }}\n />\n );\n};\n\nconst Password = () => {\n const form = useFormContext();\n return (\n <FormField\n control={form.control}\n name=\"password\"\n render={({ field }) => {\n return (\n <FormItem>\n <FormLabel htmlFor={field.name}>Password</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Password\"\n {...field}\n type=\"password\"\n aria-label={field.name}\n autoComplete=\"current-password\"\n required\n />\n </FormControl>\n <FormDescription>The desired password</FormDescription>\n <FormMessage />\n </FormItem>\n );\n }}\n />\n );\n};\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n Email,\n Password,\n};\n","import { QueryClient, useQuery } from '@tanstack/react-query';\nimport { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nimport {\n auth as authorizer,\n PartialAuthorizer,\n Authorizer,\n} from '@niledatabase/client';\n\nimport { useQueryClientOrDefault } from './queryClient';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\nexport type ComponentFetchProps = {\n auth?: Authorizer | PartialAuthorizer;\n init?: RequestInit;\n baseUrl?: string;\n basePath?: string;\n};\nexport function componentFetch(\n fetchUrl: string,\n opts: RequestInit | ComponentFetchProps = {},\n props?: ComponentFetchProps\n) {\n let init;\n let rest = opts;\n\n if ('init' in opts) {\n const { init: _init, ..._rest } = opts;\n init = _init;\n rest = _rest;\n }\n\n if ('auth' in opts) {\n const { auth, ..._rest } = opts;\n init = { ...init, ...(auth?.requestInit ? auth.requestInit : {}) };\n rest = _rest;\n }\n const newOpts: RequestInit = {\n ...rest,\n ...(init ? init : {}),\n ...(props?.init ? props.init : {}),\n ...(props?.auth?.requestInit ? props.auth.requestInit : {}),\n ...(rest ? rest : {}),\n };\n newOpts.headers = {\n ...('headers' in opts ? opts.headers : {}),\n 'content-type': 'application/json; charset=UTF-8',\n };\n // maybe a single `auth` object was passed, so prefer that over props\n // if we don't have a FQDN\n let url = fetchUrl;\n if (!('fetchUrl' in opts) && fetchUrl.startsWith('/')) {\n const auth: Authorizer | PartialAuthorizer | undefined =\n 'auth' in opts ? opts.auth : props?.auth;\n const basePath = getBasePath(props, opts, auth);\n const baseUrl = getBaseUrl(props, opts, auth);\n url = `${baseUrl}${basePath}${fetchUrl}`;\n }\n return fetch(url, newOpts);\n}\nconst getBaseUrl = (\n props: ComponentFetchProps | undefined,\n opts: RequestInit | ComponentFetchProps = {},\n auth: Authorizer | PartialAuthorizer | undefined\n) => {\n if (props?.baseUrl) {\n return props.baseUrl;\n }\n\n if ('baseUrl' in opts) {\n return opts.baseUrl;\n }\n\n if (auth?.state?.baseUrl) {\n return auth?.state?.baseUrl;\n }\n if (authorizer.state.baseUrl) {\n return authorizer.state.baseUrl;\n }\n};\nconst getBasePath = (\n props: ComponentFetchProps | undefined,\n opts: RequestInit | ComponentFetchProps = {},\n auth: Authorizer | PartialAuthorizer | undefined\n) => {\n if (props?.basePath) {\n return props.basePath;\n }\n\n if ('basePath' in opts) {\n return opts.basePath;\n }\n\n if (auth?.state?.basePath) {\n return auth?.state?.basePath;\n }\n if (authorizer.state.basePath) {\n return authorizer.state.basePath;\n }\n};\n\nexport type PrefetchParams = {\n baseUrl?: string;\n disableQuery?: boolean;\n init?: RequestInit;\n client?: QueryClient;\n fetchUrl?: string;\n};\nexport function usePrefetch(params?: PrefetchParams) {\n const { baseUrl = '', disableQuery, init, client, fetchUrl } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n useQuery(\n {\n queryKey: ['providers', baseUrl],\n queryFn: async () => {\n return await fetch(fetchUrl ?? `${baseUrl}/api/auth/providers`, init);\n },\n enabled: disableQuery !== true,\n },\n queryClient\n );\n useCsrf(params);\n}\nexport function useCsrf(params?: PrefetchParams) {\n const { baseUrl = '', disableQuery, init, client, fetchUrl } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n useQuery(\n {\n queryKey: ['csrf', baseUrl],\n queryFn: async () => {\n return await fetch(fetchUrl ?? `${baseUrl}/api/auth/csrf`, init);\n },\n enabled: disableQuery !== true,\n },\n queryClient\n );\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import {\n AnyClassGroupIds,\n AnyConfig,\n AnyThemeGroupIds,\n ClassGroup,\n ClassValidator,\n Config,\n ThemeGetter,\n ThemeObject,\n} from './types'\n\nexport interface ClassPartObject {\n nextPart: Map<string, ClassPartObject>\n validators: ClassValidatorObject[]\n classGroupId?: AnyClassGroupIds\n}\n\ninterface ClassValidatorObject {\n classGroupId: AnyClassGroupIds\n validator: ClassValidator\n}\n\nconst CLASS_PART_SEPARATOR = '-'\n\nexport const createClassGroupUtils = (config: AnyConfig) => {\n const classMap = createClassMap(config)\n const { conflictingClassGroups, conflictingClassGroupModifiers } = config\n\n const getClassGroupId = (className: string) => {\n const classParts = className.split(CLASS_PART_SEPARATOR)\n\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift()\n }\n\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className)\n }\n\n const getConflictingClassGroupIds = (\n classGroupId: AnyClassGroupIds,\n hasPostfixModifier: boolean,\n ) => {\n const conflicts = conflictingClassGroups[classGroupId] || []\n\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]!]\n }\n\n return conflicts\n }\n\n return {\n getClassGroupId,\n getConflictingClassGroupIds,\n }\n}\n\nconst getGroupRecursive = (\n classParts: string[],\n classPartObject: ClassPartObject,\n): AnyClassGroupIds | undefined => {\n if (classParts.length === 0) {\n return classPartObject.classGroupId\n }\n\n const currentClassPart = classParts[0]!\n const nextClassPartObject = classPartObject.nextPart.get(currentClassPart)\n const classGroupFromNextClassPart = nextClassPartObject\n ? getGroupRecursive(classParts.slice(1), nextClassPartObject)\n : undefined\n\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart\n }\n\n if (classPartObject.validators.length === 0) {\n return undefined\n }\n\n const classRest = classParts.join(CLASS_PART_SEPARATOR)\n\n return classPartObject.validators.find(({ validator }) => validator(classRest))?.classGroupId\n}\n\nconst arbitraryPropertyRegex = /^\\[(.+)\\]$/\n\nconst getGroupIdForArbitraryProperty = (className: string) => {\n if (arbitraryPropertyRegex.test(className)) {\n const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)![1]\n const property = arbitraryPropertyClassName?.substring(\n 0,\n arbitraryPropertyClassName.indexOf(':'),\n )\n\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property\n }\n }\n}\n\n/**\n * Exported for testing only\n */\nexport const createClassMap = (config: Config<AnyClassGroupIds, AnyThemeGroupIds>) => {\n const { theme, classGroups } = config\n const classMap: ClassPartObject = {\n nextPart: new Map<string, ClassPartObject>(),\n validators: [],\n }\n\n for (const classGroupId in classGroups) {\n processClassesRecursively(classGroups[classGroupId]!, classMap, classGroupId, theme)\n }\n\n return classMap\n}\n\nconst processClassesRecursively = (\n classGroup: ClassGroup<AnyThemeGroupIds>,\n classPartObject: ClassPartObject,\n classGroupId: AnyClassGroupIds,\n theme: ThemeObject<AnyThemeGroupIds>,\n) => {\n classGroup.forEach((classDefinition) => {\n if (typeof classDefinition === 'string') {\n const classPartObjectToEdit =\n classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition)\n classPartObjectToEdit.classGroupId = classGroupId\n return\n }\n\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(\n classDefinition(theme),\n classPartObject,\n classGroupId,\n theme,\n )\n return\n }\n\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId,\n })\n\n return\n }\n\n Object.entries(classDefinition).forEach(([key, classGroup]) => {\n processClassesRecursively(\n classGroup,\n getPart(classPartObject, key),\n classGroupId,\n theme,\n )\n })\n })\n}\n\nconst getPart = (classPartObject: ClassPartObject, path: string) => {\n let currentClassPartObject = classPartObject\n\n path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: [],\n })\n }\n\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart)!\n })\n\n return currentClassPartObject\n}\n\nconst isThemeGetter = (func: ClassValidator | ThemeGetter): func is ThemeGetter =>\n (func as ThemeGetter).isThemeGetter\n","// Export is needed because TypeScript complains about an error otherwise:\n// Error: …/tailwind-merge/src/config-utils.ts(8,17): semantic error TS4058: Return type of exported function has or is using name 'LruCache' from external module \"…/tailwind-merge/src/lru-cache\" but cannot be named.\nexport interface LruCache<Key, Value> {\n get(key: Key): Value | undefined\n set(key: Key, value: Value): void\n}\n\n// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nexport const createLruCache = <Key, Value>(maxCacheSize: number): LruCache<Key, Value> => {\n if (maxCacheSize < 1) {\n return {\n get: () => undefined,\n set: () => {},\n }\n }\n\n let cacheSize = 0\n let cache = new Map<Key, Value>()\n let previousCache = new Map<Key, Value>()\n\n const update = (key: Key, value: Value) => {\n cache.set(key, value)\n cacheSize++\n\n if (cacheSize > maxCacheSize) {\n cacheSize = 0\n previousCache = cache\n cache = new Map()\n }\n }\n\n return {\n get(key) {\n let value = cache.get(key)\n\n if (value !== undefined) {\n return value\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value)\n return value\n }\n },\n set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value)\n } else {\n update(key, value)\n }\n },\n }\n}\n","import { AnyConfig, ParsedClassName } from './types'\n\nexport const IMPORTANT_MODIFIER = '!'\nconst MODIFIER_SEPARATOR = ':'\nconst MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length\n\nexport const createParseClassName = (config: AnyConfig) => {\n const { prefix, experimentalParseClassName } = config\n\n /**\n * Parse class name into parts.\n *\n * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n */\n let parseClassName = (className: string): ParsedClassName => {\n const modifiers = []\n\n let bracketDepth = 0\n let parenDepth = 0\n let modifierStart = 0\n let postfixModifierPosition: number | undefined\n\n for (let index = 0; index < className.length; index++) {\n let currentCharacter = className[index]\n\n if (bracketDepth === 0 && parenDepth === 0) {\n if (currentCharacter === MODIFIER_SEPARATOR) {\n modifiers.push(className.slice(modifierStart, index))\n modifierStart = index + MODIFIER_SEPARATOR_LENGTH\n continue\n }\n\n if (currentCharacter === '/') {\n postfixModifierPosition = index\n continue\n }\n }\n\n if (currentCharacter === '[') {\n bracketDepth++\n } else if (currentCharacter === ']') {\n bracketDepth--\n } else if (currentCharacter === '(') {\n parenDepth++\n } else if (currentCharacter === ')') {\n parenDepth--\n }\n }\n\n const baseClassNameWithImportantModifier =\n modifiers.length === 0 ? className : className.substring(modifierStart)\n const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier)\n const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier\n const maybePostfixModifierPosition =\n postfixModifierPosition && postfixModifierPosition > modifierStart\n ? postfixModifierPosition - modifierStart\n : undefined\n\n return {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition,\n }\n }\n\n if (prefix) {\n const fullPrefix = prefix + MODIFIER_SEPARATOR\n const parseClassNameOriginal = parseClassName\n parseClassName = (className) =>\n className.startsWith(fullPrefix)\n ? parseClassNameOriginal(className.substring(fullPrefix.length))\n : {\n isExternal: true,\n modifiers: [],\n hasImportantModifier: false,\n baseClassName: className,\n maybePostfixModifierPosition: undefined,\n }\n }\n\n if (experimentalParseClassName) {\n const parseClassNameOriginal = parseClassName\n parseClassName = (className) =>\n experimentalParseClassName({ className, parseClassName: parseClassNameOriginal })\n }\n\n return parseClassName\n}\n\nconst stripImportantModifier = (baseClassName: string) => {\n if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {\n return baseClassName.substring(0, baseClassName.length - 1)\n }\n\n /**\n * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.\n * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864\n */\n if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {\n return baseClassName.substring(1)\n }\n\n return baseClassName\n}\n","import { AnyConfig } from './types'\n\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nexport const createSortModifiers = (config: AnyConfig) => {\n const orderSensitiveModifiers = Object.fromEntries(\n config.orderSensitiveModifiers.map((modifier) => [modifier, true]),\n )\n\n const sortModifiers = (modifiers: string[]) => {\n if (modifiers.length <= 1) {\n return modifiers\n }\n\n const sortedModifiers: string[] = []\n let unsortedModifiers: string[] = []\n\n modifiers.forEach((modifier) => {\n const isPositionSensitive = modifier[0] === '[' || orderSensitiveModifiers[modifier]\n\n if (isPositionSensitive) {\n sortedModifiers.push(...unsortedModifiers.sort(), modifier)\n unsortedModifiers = []\n } else {\n unsortedModifiers.push(modifier)\n }\n })\n\n sortedModifiers.push(...unsortedModifiers.sort())\n\n return sortedModifiers\n }\n\n return sortModifiers\n}\n","import { createClassGroupUtils } from './class-group-utils'\nimport { createLruCache } from './lru-cache'\nimport { createParseClassName } from './parse-class-name'\nimport { createSortModifiers } from './sort-modifiers'\nimport { AnyConfig } from './types'\n\nexport type ConfigUtils = ReturnType<typeof createConfigUtils>\n\nexport const createConfigUtils = (config: AnyConfig) => ({\n cache: createLruCache<string, string>(config.cacheSize),\n parseClassName: createParseClassName(config),\n sortModifiers: createSortModifiers(config),\n ...createClassGroupUtils(config),\n})\n","import { ConfigUtils } from './config-utils'\nimport { IMPORTANT_MODIFIER } from './parse-class-name'\n\nconst SPLIT_CLASSES_REGEX = /\\s+/\n\nexport const mergeClassList = (classList: string, configUtils: ConfigUtils) => {\n const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } =\n configUtils\n\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n const classGroupsInConflict: string[] = []\n const classNames = classList.trim().split(SPLIT_CLASSES_REGEX)\n\n let result = ''\n\n for (let index = classNames.length - 1; index >= 0; index -= 1) {\n const originalClassName = classNames[index]!\n\n const {\n isExternal,\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition,\n } = parseClassName(originalClassName)\n\n if (isExternal) {\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n continue\n }\n\n let hasPostfixModifier = !!maybePostfixModifierPosition\n let classGroupId = getClassGroupId(\n hasPostfixModifier\n ? baseClassName.substring(0, maybePostfixModifierPosition)\n : baseClassName,\n )\n\n if (!classGroupId) {\n if (!hasPostfixModifier) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n continue\n }\n\n classGroupId = getClassGroupId(baseClassName)\n\n if (!classGroupId) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n continue\n }\n\n hasPostfixModifier = false\n }\n\n const variantModifier = sortModifiers(modifiers).join(':')\n\n const modifierId = hasImportantModifier\n ? variantModifier + IMPORTANT_MODIFIER\n : variantModifier\n\n const classId = modifierId + classGroupId\n\n if (classGroupsInConflict.includes(classId)) {\n // Tailwind class omitted due to conflict\n continue\n }\n\n classGroupsInConflict.push(classId)\n\n const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier)\n for (let i = 0; i < conflictGroups.length; ++i) {\n const group = conflictGroups[i]!\n classGroupsInConflict.push(modifierId + group)\n }\n\n // Tailwind class not in conflict\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n }\n\n return result\n}\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)\n */\n\nexport type ClassNameValue = ClassNameArray | string | null | undefined | 0 | 0n | false\ntype ClassNameArray = ClassNameValue[]\n\nexport function twJoin(...classLists: ClassNameValue[]): string\nexport function twJoin() {\n let index = 0\n let argument: ClassNameValue\n let resolvedValue: string\n let string = ''\n\n while (index < arguments.length) {\n if ((argument = arguments[index++])) {\n if ((resolvedValue = toValue(argument))) {\n string && (string += ' ')\n string += resolvedValue\n }\n }\n }\n return string\n}\n\nconst toValue = (mix: ClassNameArray | string) => {\n if (typeof mix === 'string') {\n return mix\n }\n\n let resolvedValue: string\n let string = ''\n\n for (let k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if ((resolvedValue = toValue(mix[k] as ClassNameArray | string))) {\n string && (string += ' ')\n string += resolvedValue\n }\n }\n }\n\n return string\n}\n","import { createConfigUtils } from './config-utils'\nimport { mergeClassList } from './merge-classlist'\nimport { ClassNameValue, twJoin } from './tw-join'\nimport { AnyConfig } from './types'\n\ntype CreateConfigFirst = () => AnyConfig\ntype CreateConfigSubsequent = (config: AnyConfig) => AnyConfig\ntype TailwindMerge = (...classLists: ClassNameValue[]) => string\ntype ConfigUtils = ReturnType<typeof createConfigUtils>\n\nexport function createTailwindMerge(\n createConfigFirst: CreateConfigFirst,\n ...createConfigRest: CreateConfigSubsequent[]\n): TailwindMerge {\n let configUtils: ConfigUtils\n let cacheGet: ConfigUtils['cache']['get']\n let cacheSet: ConfigUtils['cache']['set']\n let functionToCall = initTailwindMerge\n\n function initTailwindMerge(classList: string) {\n const config = createConfigRest.reduce(\n (previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig),\n createConfigFirst() as AnyConfig,\n )\n\n configUtils = createConfigUtils(config)\n cacheGet = configUtils.cache.get\n cacheSet = configUtils.cache.set\n functionToCall = tailwindMerge\n\n return tailwindMerge(classList)\n }\n\n function tailwindMerge(classList: string) {\n const cachedResult = cacheGet(classList)\n\n if (cachedResult) {\n return cachedResult\n }\n\n const result = mergeClassList(classList, configUtils)\n cacheSet(classList, result)\n\n return result\n }\n\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments as any))\n }\n}\n","import { DefaultThemeGroupIds, NoInfer, ThemeGetter, ThemeObject } from './types'\n\nexport const fromTheme = <\n AdditionalThemeGroupIds extends string = never,\n DefaultThemeGroupIdsInner extends string = DefaultThemeGroupIds,\n>(key: NoInfer<DefaultThemeGroupIdsInner | AdditionalThemeGroupIds>): ThemeGetter => {\n const themeGetter = (theme: ThemeObject<DefaultThemeGroupIdsInner | AdditionalThemeGroupIds>) =>\n theme[key] || []\n\n themeGetter.isThemeGetter = true as const\n\n return themeGetter\n}\n","const arbitraryValueRegex = /^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i\nconst arbitraryVariableRegex = /^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i\nconst fractionRegex = /^\\d+\\/\\d+$/\nconst tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/\nconst lengthUnitRegex =\n /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/\nconst colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\\(.+\\)$/\n// Shadow always begins with x and y offset separated by underscore optionally prepended by inset\nconst shadowRegex = /^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/\nconst imageRegex =\n /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/\n\nexport const isFraction = (value: string) => fractionRegex.test(value)\n\nexport const isNumber = (value: string) => !!value && !Number.isNaN(Number(value))\n\nexport const isInteger = (value: string) => !!value && Number.isInteger(Number(value))\n\nexport const isPercent = (value: string) => value.endsWith('%') && isNumber(value.slice(0, -1))\n\nexport const isTshirtSize = (value: string) => tshirtUnitRegex.test(value)\n\nexport const isAny = () => true\n\nconst isLengthOnly = (value: string) =>\n // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.\n // For example, `hsl(0 0% 0%)` would be classified as a length without this check.\n // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.\n lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)\n\nconst isNever = () => false\n\nconst isShadow = (value: string) => shadowRegex.test(value)\n\nconst isImage = (value: string) => imageRegex.test(value)\n\nexport const isAnyNonArbitrary = (value: string) =>\n !isArbitraryValue(value) && !isArbitraryVariable(value)\n\nexport const isArbitrarySize = (value: string) => getIsArbitraryValue(value, isLabelSize, isNever)\n\nexport const isArbitraryValue = (value: string) => arbitraryValueRegex.test(value)\n\nexport const isArbitraryLength = (value: string) =>\n getIsArbitraryValue(value, isLabelLength, isLengthOnly)\n\nexport const isArbitraryNumber = (value: string) =>\n getIsArbitraryValue(value, isLabelNumber, isNumber)\n\nexport const isArbitraryPosition = (value: string) =>\n getIsArbitraryValue(value, isLabelPosition, isNever)\n\nexport const isArbitraryImage = (value: string) => getIsArbitraryValue(value, isLabelImage, isImage)\n\nexport const isArbitraryShadow = (value: string) =>\n getIsArbitraryValue(value, isLabelShadow, isShadow)\n\nexport const isArbitraryVariable = (value: string) => arbitraryVariableRegex.test(value)\n\nexport const isArbitraryVariableLength = (value: string) =>\n getIsArbitraryVariable(value, isLabelLength)\n\nexport const isArbitraryVariableFamilyName = (value: string) =>\n getIsArbitraryVariable(value, isLabelFamilyName)\n\nexport const isArbitraryVariablePosition = (value: string) =>\n getIsArbitraryVariable(value, isLabelPosition)\n\nexport const isArbitraryVariableSize = (value: string) => getIsArbitraryVariable(value, isLabelSize)\n\nexport const isArbitraryVariableImage = (value: string) =>\n getIsArbitraryVariable(value, isLabelImage)\n\nexport const isArbitraryVariableShadow = (value: string) =>\n getIsArbitraryVariable(value, isLabelShadow, true)\n\n// Helpers\n\nconst getIsArbitraryValue = (\n value: string,\n testLabel: (label: string) => boolean,\n testValue: (value: string) => boolean,\n) => {\n const result = arbitraryValueRegex.exec(value)\n\n if (result) {\n if (result[1]) {\n return testLabel(result[1])\n }\n\n return testValue(result[2]!)\n }\n\n return false\n}\n\nconst getIsArbitraryVariable = (\n value: string,\n testLabel: (label: string) => boolean,\n shouldMatchNoLabel = false,\n) => {\n const result = arbitraryVariableRegex.exec(value)\n\n if (result) {\n if (result[1]) {\n return testLabel(result[1])\n }\n return shouldMatchNoLabel\n }\n\n return false\n}\n\n// Labels\n\nconst isLabelPosition = (label: string) => label === 'position' || label === 'percentage'\n\nconst isLabelImage = (label: string) => label === 'image' || label === 'url'\n\nconst isLabelSize = (label: string) => label === 'length' || label === 'size' || label === 'bg-size'\n\nconst isLabelLength = (label: string) => label === 'length'\n\nconst isLabelNumber = (label: string) => label === 'number'\n\nconst isLabelFamilyName = (label: string) => label === 'family-name'\n\nconst isLabelShadow = (label: string) => label === 'shadow'\n","import { fromTheme } from './from-theme'\nimport { Config, DefaultClassGroupIds, DefaultThemeGroupIds } from './types'\nimport {\n isAny,\n isAnyNonArbitrary,\n isArbitraryImage,\n isArbitraryLength,\n isArbitraryNumber,\n isArbitraryPosition,\n isArbitraryShadow,\n isArbitrarySize,\n isArbitraryValue,\n isArbitraryVariable,\n isArbitraryVariableFamilyName,\n isArbitraryVariableImage,\n isArbitraryVariableLength,\n isArbitraryVariablePosition,\n isArbitraryVariableShadow,\n isArbitraryVariableSize,\n isFraction,\n isInteger,\n isNumber,\n isPercent,\n isTshirtSize,\n} from './validators'\n\nexport const getDefaultConfig = () => {\n /**\n * Theme getters for theme variable namespaces\n * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces\n */\n /***/\n\n const themeColor = fromTheme('color')\n const themeFont = fromTheme('font')\n const themeText = fromTheme('text')\n const themeFontWeight = fromTheme('font-weight')\n const themeTracking = fromTheme('tracking')\n const themeLeading = fromTheme('leading')\n const themeBreakpoint = fromTheme('breakpoint')\n const themeContainer = fromTheme('container')\n const themeSpacing = fromTheme('spacing')\n const themeRadius = fromTheme('radius')\n const themeShadow = fromTheme('shadow')\n const themeInsetShadow = fromTheme('inset-shadow')\n const themeTextShadow = fromTheme('text-shadow')\n const themeDropShadow = fromTheme('drop-shadow')\n const themeBlur = fromTheme('blur')\n const themePerspective = fromTheme('perspective')\n const themeAspect = fromTheme('aspect')\n const themeEase = fromTheme('ease')\n const themeAnimate = fromTheme('animate')\n\n /**\n * Helpers to avoid repeating the same scales\n *\n * We use functions that create a new array every time they're called instead of static arrays.\n * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.\n */\n /***/\n\n const scaleBreak = () =>\n ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'] as const\n const scalePosition = () =>\n [\n 'center',\n 'top',\n 'bottom',\n 'left',\n 'right',\n 'top-left',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'left-top',\n 'top-right',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'right-top',\n 'bottom-right',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'right-bottom',\n 'bottom-left',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'left-bottom',\n ] as const\n const scalePositionWithArbitrary = () =>\n [...scalePosition(), isArbitraryVariable, isArbitraryValue] as const\n const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'] as const\n const scaleOverscroll = () => ['auto', 'contain', 'none'] as const\n const scaleUnambiguousSpacing = () =>\n [isArbitraryVariable, isArbitraryValue, themeSpacing] as const\n const scaleInset = () => [isFraction, 'full', 'auto', ...scaleUnambiguousSpacing()] as const\n const scaleGridTemplateColsRows = () =>\n [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue] as const\n const scaleGridColRowStartAndEnd = () =>\n [\n 'auto',\n { span: ['full', isInteger, isArbitraryVariable, isArbitraryValue] },\n isInteger,\n isArbitraryVariable,\n isArbitraryValue,\n ] as const\n const scaleGridColRowStartOrEnd = () =>\n [isInteger, 'auto', isArbitraryVariable, isArbitraryValue] as const\n const scaleGridAutoColsRows = () =>\n ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue] as const\n const scaleAlignPrimaryAxis = () =>\n [\n 'start',\n 'end',\n 'center',\n 'between',\n 'around',\n 'evenly',\n 'stretch',\n 'baseline',\n 'center-safe',\n 'end-safe',\n ] as const\n const scaleAlignSecondaryAxis = () =>\n ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'] as const\n const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()] as const\n const scaleSizing = () =>\n [\n isFraction,\n 'auto',\n 'full',\n 'dvw',\n 'dvh',\n 'lvw',\n 'lvh',\n 'svw',\n 'svh',\n 'min',\n 'max',\n 'fit',\n ...scaleUnambiguousSpacing(),\n ] as const\n const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue] as const\n const scaleBgPosition = () =>\n [\n ...scalePosition(),\n isArbitraryVariablePosition,\n isArbitraryPosition,\n { position: [isArbitraryVariable, isArbitraryValue] },\n ] as const\n const scaleBgRepeat = () => ['no-repeat', { repeat: ['', 'x', 'y', 'space', 'round'] }] as const\n const scaleBgSize = () =>\n [\n 'auto',\n 'cover',\n 'contain',\n isArbitraryVariableSize,\n isArbitrarySize,\n { size: [isArbitraryVariable, isArbitraryValue] },\n ] as const\n const scaleGradientStopPosition = () =>\n [isPercent, isArbitraryVariableLength, isArbitraryLength] as const\n const scaleRadius = () =>\n [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n 'full',\n themeRadius,\n isArbitraryVariable,\n isArbitraryValue,\n ] as const\n const scaleBorderWidth = () =>\n ['', isNumber, isArbitraryVariableLength, isArbitraryLength] as const\n const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'] as const\n const scaleBlendMode = () =>\n [\n 'normal',\n 'multiply',\n 'screen',\n 'overlay',\n 'darken',\n 'lighten',\n 'color-dodge',\n 'color-burn',\n 'hard-light',\n 'soft-light',\n 'difference',\n 'exclusion',\n 'hue',\n 'saturation',\n 'color',\n 'luminosity',\n ] as const\n const scaleMaskImagePosition = () =>\n [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition] as const\n const scaleBlur = () =>\n [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n themeBlur,\n isArbitraryVariable,\n isArbitraryValue,\n ] as const\n const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue] as const\n const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue] as const\n const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue] as const\n const scaleTranslate = () => [isFraction, 'full', ...scaleUnambiguousSpacing()] as const\n\n return {\n cacheSize: 500,\n theme: {\n animate: ['spin', 'ping', 'pulse', 'bounce'],\n aspect: ['video'],\n blur: [isTshirtSize],\n breakpoint: [isTshirtSize],\n color: [isAny],\n container: [isTshirtSize],\n 'drop-shadow': [isTshirtSize],\n ease: ['in', 'out', 'in-out'],\n font: [isAnyNonArbitrary],\n 'font-weight': [\n 'thin',\n 'extralight',\n 'light',\n 'normal',\n 'medium',\n 'semibold',\n 'bold',\n 'extrabold',\n 'black',\n ],\n 'inset-shadow': [isTshirtSize],\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose'],\n perspective: ['dramatic', 'near', 'normal', 'midrange', 'distant', 'none'],\n radius: [isTshirtSize],\n shadow: [isTshirtSize],\n spacing: ['px', isNumber],\n text: [isTshirtSize],\n 'text-shadow': [isTshirtSize],\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest'],\n },\n classGroups: {\n // --------------\n // --- Layout ---\n // --------------\n\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [\n {\n aspect: [\n 'auto',\n 'square',\n isFraction,\n isArbitraryValue,\n isArbitraryVariable,\n themeAspect,\n ],\n },\n ],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n * @deprecated since Tailwind CSS v4.0.0\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [\n { columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer] },\n ],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{ 'break-after': scaleBreak() }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{ 'break-before': scaleBreak() }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column'] }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{ 'box-decoration': ['slice', 'clone'] }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{ box: ['border', 'content'] }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: [\n 'block',\n 'inline-block',\n 'inline',\n 'flex',\n 'inline-flex',\n 'table',\n 'inline-table',\n 'table-caption',\n 'table-cell',\n 'table-column',\n 'table-column-group',\n 'table-footer-group',\n 'table-header-group',\n 'table-row-group',\n 'table-row',\n 'flow-root',\n 'grid',\n 'inline-grid',\n 'contents',\n 'list-item',\n 'hidden',\n ],\n /**\n * Screen Reader Only\n * @see https://tailwindcss.com/docs/display#screen-reader-only\n */\n sr: ['sr-only', 'not-sr-only'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n float: [{ float: ['right', 'left', 'none', 'start', 'end'] }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{ clear: ['left', 'right', 'both', 'none', 'start', 'end'] }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{ object: ['contain', 'cover', 'fill', 'none', 'scale-down'] }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{ object: scalePositionWithArbitrary() }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{ overflow: scaleOverflow() }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{ 'overflow-x': scaleOverflow() }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{ 'overflow-y': scaleOverflow() }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{ overscroll: scaleOverscroll() }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{ 'overscroll-x': scaleOverscroll() }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{ 'overscroll-y': scaleOverscroll() }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{ inset: scaleInset() }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{ 'inset-x': scaleInset() }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{ 'inset-y': scaleInset() }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{ start: scaleInset() }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{ end: scaleInset() }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{ top: scaleInset() }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{ right: scaleInset() }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{ bottom: scaleInset() }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{ left: scaleInset() }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{ z: [isInteger, 'auto', isArbitraryVariable, isArbitraryValue] }],\n\n // ------------------------\n // --- Flexbox and Grid ---\n // ------------------------\n\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [\n {\n basis: [\n isFraction,\n 'full',\n 'auto',\n themeContainer,\n ...scaleUnambiguousSpacing(),\n ],\n },\n ],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{ flex: ['row', 'row-reverse', 'col', 'col-reverse'] }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{ flex: ['nowrap', 'wrap', 'wrap-reverse'] }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{ flex: [isNumber, isFraction, 'auto', 'initial', 'none', isArbitraryValue] }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{ grow: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{ shrink: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [\n {\n order: [\n isInteger,\n 'first',\n 'last',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{ 'grid-cols': scaleGridTemplateColsRows() }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{ col: scaleGridColRowStartAndEnd() }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{ 'col-start': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{ 'col-end': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{ 'grid-rows': scaleGridTemplateColsRows() }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{ row: scaleGridColRowStartAndEnd() }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{ 'row-start': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{ 'row-end': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense'] }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{ 'auto-cols': scaleGridAutoColsRows() }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{ 'auto-rows': scaleGridAutoColsRows() }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{ gap: scaleUnambiguousSpacing() }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{ 'gap-x': scaleUnambiguousSpacing() }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{ 'gap-y': scaleUnambiguousSpacing() }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{ justify: [...scaleAlignPrimaryAxis(), 'normal'] }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{ 'justify-items': [...scaleAlignSecondaryAxis(), 'normal'] }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{ 'justify-self': ['auto', ...scaleAlignSecondaryAxis()] }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{ content: ['normal', ...scaleAlignPrimaryAxis()] }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{ items: [...scaleAlignSecondaryAxis(), { baseline: ['', 'last'] }] }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [\n { self: ['auto', ...scaleAlignSecondaryAxis(), { baseline: ['', 'last'] }] },\n ],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{ 'place-content': scaleAlignPrimaryAxis() }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{ 'place-items': [...scaleAlignSecondaryAxis(), 'baseline'] }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{ 'place-self': ['auto', ...scaleAlignSecondaryAxis()] }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{ p: scaleUnambiguousSpacing() }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{ px: scaleUnambiguousSpacing() }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{ py: scaleUnambiguousSpacing() }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{ ps: scaleUnambiguousSpacing() }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{ pe: scaleUnambiguousSpacing() }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{ pt: scaleUnambiguousSpacing() }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{ pr: scaleUnambiguousSpacing() }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{ pb: scaleUnambiguousSpacing() }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{ pl: scaleUnambiguousSpacing() }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{ m: scaleMargin() }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{ mx: scaleMargin() }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{ my: scaleMargin() }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{ ms: scaleMargin() }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{ me: scaleMargin() }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{ mt: scaleMargin() }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{ mr: scaleMargin() }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{ mb: scaleMargin() }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{ ml: scaleMargin() }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-x': [{ 'space-x': scaleUnambiguousSpacing() }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-y': [{ 'space-y': scaleUnambiguousSpacing() }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-y-reverse': ['space-y-reverse'],\n\n // --------------\n // --- Sizing ---\n // --------------\n\n /**\n * Size\n * @see https://tailwindcss.com/docs/width#setting-both-width-and-height\n */\n size: [{ size: scaleSizing() }],\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{ w: [themeContainer, 'screen', ...scaleSizing()] }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [\n {\n 'min-w': [\n themeContainer,\n 'screen',\n /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n 'none',\n ...scaleSizing(),\n ],\n },\n ],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [\n {\n 'max-w': [\n themeContainer,\n 'screen',\n 'none',\n /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n 'prose',\n /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n { screen: [themeBreakpoint] },\n ...scaleSizing(),\n ],\n },\n ],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{ h: ['screen', 'lh', ...scaleSizing()] }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{ 'min-h': ['screen', 'lh', 'none', ...scaleSizing()] }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{ 'max-h': ['screen', 'lh', ...scaleSizing()] }],\n\n // ------------------\n // --- Typography ---\n // ------------------\n\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [\n { text: ['base', themeText, isArbitraryVariableLength, isArbitraryLength] },\n ],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{ font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber] }],\n /**\n * Font Stretch\n * @see https://tailwindcss.com/docs/font-stretch\n */\n 'font-stretch': [\n {\n 'font-stretch': [\n 'ultra-condensed',\n 'extra-condensed',\n 'condensed',\n 'semi-condensed',\n 'normal',\n 'semi-expanded',\n 'expanded',\n 'extra-expanded',\n 'ultra-expanded',\n isPercent,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{ font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont] }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [\n { 'line-clamp': [isNumber, 'none', isArbitraryVariable, isArbitraryNumber] },\n ],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [\n {\n leading: [\n /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n themeLeading,\n ...scaleUnambiguousSpacing(),\n ],\n },\n ],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{ 'list-image': ['none', isArbitraryVariable, isArbitraryValue] }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{ list: ['inside', 'outside'] }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [\n { list: ['disc', 'decimal', 'none', isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{ text: ['left', 'center', 'right', 'justify', 'start', 'end'] }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://v3.tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{ placeholder: scaleColor() }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{ text: scaleColor() }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{ decoration: [...scaleLineStyle(), 'wavy'] }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [\n {\n decoration: [\n isNumber,\n 'from-font',\n 'auto',\n isArbitraryVariable,\n isArbitraryLength,\n ],\n },\n ],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{ decoration: scaleColor() }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [\n { 'underline-offset': [isNumber, 'auto', isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Wrap\n * @see https://tailwindcss.com/docs/text-wrap\n */\n 'text-wrap': [{ text: ['wrap', 'nowrap', 'balance', 'pretty'] }],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{ indent: scaleUnambiguousSpacing() }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [\n {\n align: [\n 'baseline',\n 'top',\n 'middle',\n 'bottom',\n 'text-top',\n 'text-bottom',\n 'sub',\n 'super',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [\n { whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'] },\n ],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n break: [{ break: ['normal', 'words', 'all', 'keep'] }],\n /**\n * Overflow Wrap\n * @see https://tailwindcss.com/docs/overflow-wrap\n */\n wrap: [{ wrap: ['break-word', 'anywhere', 'normal'] }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{ hyphens: ['none', 'manual', 'auto'] }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{ content: ['none', isArbitraryVariable, isArbitraryValue] }],\n\n // -------------------\n // --- Backgrounds ---\n // -------------------\n\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{ bg: ['fixed', 'local', 'scroll'] }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{ 'bg-clip': ['border', 'padding', 'content', 'text'] }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{ 'bg-origin': ['border', 'padding', 'content'] }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{ bg: scaleBgPosition() }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{ bg: scaleBgRepeat() }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{ bg: scaleBgSize() }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [\n {\n bg: [\n 'none',\n {\n linear: [\n { to: ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl'] },\n isInteger,\n isArbitraryVariable,\n isArbitraryValue,\n ],\n radial: ['', isArbitraryVariable, isArbitraryValue],\n conic: [isInteger, isArbitraryVariable, isArbitraryValue],\n },\n isArbitraryVariableImage,\n isArbitraryImage,\n ],\n },\n ],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{ bg: scaleColor() }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{ from: scaleGradientStopPosition() }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{ via: scaleGradientStopPosition() }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{ to: scaleGradientStopPosition() }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{ from: scaleColor() }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{ via: scaleColor() }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{ to: scaleColor() }],\n\n // ---------------\n // --- Borders ---\n // ---------------\n\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{ rounded: scaleRadius() }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{ 'rounded-s': scaleRadius() }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{ 'rounded-e': scaleRadius() }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{ 'rounded-t': scaleRadius() }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{ 'rounded-r': scaleRadius() }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{ 'rounded-b': scaleRadius() }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{ 'rounded-l': scaleRadius() }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{ 'rounded-ss': scaleRadius() }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{ 'rounded-se': scaleRadius() }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{ 'rounded-ee': scaleRadius() }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{ 'rounded-es': scaleRadius() }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{ 'rounded-tl': scaleRadius() }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{ 'rounded-tr': scaleRadius() }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{ 'rounded-br': scaleRadius() }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{ 'rounded-bl': scaleRadius() }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{ border: scaleBorderWidth() }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{ 'border-x': scaleBorderWidth() }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{ 'border-y': scaleBorderWidth() }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{ 'border-s': scaleBorderWidth() }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{ 'border-e': scaleBorderWidth() }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{ 'border-t': scaleBorderWidth() }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{ 'border-r': scaleBorderWidth() }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{ 'border-b': scaleBorderWidth() }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{ 'border-l': scaleBorderWidth() }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-x': [{ 'divide-x': scaleBorderWidth() }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-y': [{ 'divide-y': scaleBorderWidth() }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{ border: [...scaleLineStyle(), 'hidden', 'none'] }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style\n */\n 'divide-style': [{ divide: [...scaleLineStyle(), 'hidden', 'none'] }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{ border: scaleColor() }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{ 'border-x': scaleColor() }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{ 'border-y': scaleColor() }],\n /**\n * Border Color S\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-s': [{ 'border-s': scaleColor() }],\n /**\n * Border Color E\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-e': [{ 'border-e': scaleColor() }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{ 'border-t': scaleColor() }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{ 'border-r': scaleColor() }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{ 'border-b': scaleColor() }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{ 'border-l': scaleColor() }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{ divide: scaleColor() }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{ outline: [...scaleLineStyle(), 'none', 'hidden'] }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [\n { 'outline-offset': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [\n { outline: ['', isNumber, isArbitraryVariableLength, isArbitraryLength] },\n ],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{ outline: scaleColor() }],\n\n // ---------------\n // --- Effects ---\n // ---------------\n\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [\n {\n shadow: [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n themeShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color\n */\n 'shadow-color': [{ shadow: scaleColor() }],\n /**\n * Inset Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow\n */\n 'inset-shadow': [\n {\n 'inset-shadow': [\n 'none',\n themeInsetShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Inset Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color\n */\n 'inset-shadow-color': [{ 'inset-shadow': scaleColor() }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring\n */\n 'ring-w': [{ ring: scaleBorderWidth() }],\n /**\n * Ring Width Inset\n * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings\n * @deprecated since Tailwind CSS v4.0.0\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color\n */\n 'ring-color': [{ ring: scaleColor() }],\n /**\n * Ring Offset Width\n * @see https://v3.tailwindcss.com/docs/ring-offset-width\n * @deprecated since Tailwind CSS v4.0.0\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158\n */\n 'ring-offset-w': [{ 'ring-offset': [isNumber, isArbitraryLength] }],\n /**\n * Ring Offset Color\n * @see https://v3.tailwindcss.com/docs/ring-offset-color\n * @deprecated since Tailwind CSS v4.0.0\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158\n */\n 'ring-offset-color': [{ 'ring-offset': scaleColor() }],\n /**\n * Inset Ring Width\n * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring\n */\n 'inset-ring-w': [{ 'inset-ring': scaleBorderWidth() }],\n /**\n * Inset Ring Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color\n */\n 'inset-ring-color': [{ 'inset-ring': scaleColor() }],\n /**\n * Text Shadow\n * @see https://tailwindcss.com/docs/text-shadow\n */\n 'text-shadow': [\n {\n 'text-shadow': [\n 'none',\n themeTextShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Text Shadow Color\n * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color\n */\n 'text-shadow-color': [{ 'text-shadow': scaleColor() }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{ opacity: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{ 'mix-blend': [...scaleBlendMode(), 'plus-darker', 'plus-lighter'] }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{ 'bg-blend': scaleBlendMode() }],\n /**\n * Mask Clip\n * @see https://tailwindcss.com/docs/mask-clip\n */\n 'mask-clip': [\n { 'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view'] },\n 'mask-no-clip',\n ],\n /**\n * Mask Composite\n * @see https://tailwindcss.com/docs/mask-composite\n */\n 'mask-composite': [{ mask: ['add', 'subtract', 'intersect', 'exclude'] }],\n /**\n * Mask Image\n * @see https://tailwindcss.com/docs/mask-image\n */\n 'mask-image-linear-pos': [{ 'mask-linear': [isNumber] }],\n 'mask-image-linear-from-pos': [{ 'mask-linear-from': scaleMaskImagePosition() }],\n 'mask-image-linear-to-pos': [{ 'mask-linear-to': scaleMaskImagePosition() }],\n 'mask-image-linear-from-color': [{ 'mask-linear-from': scaleColor() }],\n 'mask-image-linear-to-color': [{ 'mask-linear-to': scaleColor() }],\n 'mask-image-t-from-pos': [{ 'mask-t-from': scaleMaskImagePosition() }],\n 'mask-image-t-to-pos': [{ 'mask-t-to': scaleMaskImagePosition() }],\n 'mask-image-t-from-color': [{ 'mask-t-from': scaleColor() }],\n 'mask-image-t-to-color': [{ 'mask-t-to': scaleColor() }],\n 'mask-image-r-from-pos': [{ 'mask-r-from': scaleMaskImagePosition() }],\n 'mask-image-r-to-pos': [{ 'mask-r-to': scaleMaskImagePosition() }],\n 'mask-image-r-from-color': [{ 'mask-r-from': scaleColor() }],\n 'mask-image-r-to-color': [{ 'mask-r-to': scaleColor() }],\n 'mask-image-b-from-pos': [{ 'mask-b-from': scaleMaskImagePosition() }],\n 'mask-image-b-to-pos': [{ 'mask-b-to': scaleMaskImagePosition() }],\n 'mask-image-b-from-color': [{ 'mask-b-from': scaleColor() }],\n 'mask-image-b-to-color': [{ 'mask-b-to': scaleColor() }],\n 'mask-image-l-from-pos': [{ 'mask-l-from': scaleMaskImagePosition() }],\n 'mask-image-l-to-pos': [{ 'mask-l-to': scaleMaskImagePosition() }],\n 'mask-image-l-from-color': [{ 'mask-l-from': scaleColor() }],\n 'mask-image-l-to-color': [{ 'mask-l-to': scaleColor() }],\n 'mask-image-x-from-pos': [{ 'mask-x-from': scaleMaskImagePosition() }],\n 'mask-image-x-to-pos': [{ 'mask-x-to': scaleMaskImagePosition() }],\n 'mask-image-x-from-color': [{ 'mask-x-from': scaleColor() }],\n 'mask-image-x-to-color': [{ 'mask-x-to': scaleColor() }],\n 'mask-image-y-from-pos': [{ 'mask-y-from': scaleMaskImagePosition() }],\n 'mask-image-y-to-pos': [{ 'mask-y-to': scaleMaskImagePosition() }],\n 'mask-image-y-from-color': [{ 'mask-y-from': scaleColor() }],\n 'mask-image-y-to-color': [{ 'mask-y-to': scaleColor() }],\n 'mask-image-radial': [{ 'mask-radial': [isArbitraryVariable, isArbitraryValue] }],\n 'mask-image-radial-from-pos': [{ 'mask-radial-from': scaleMaskImagePosition() }],\n 'mask-image-radial-to-pos': [{ 'mask-radial-to': scaleMaskImagePosition() }],\n 'mask-image-radial-from-color': [{ 'mask-radial-from': scaleColor() }],\n 'mask-image-radial-to-color': [{ 'mask-radial-to': scaleColor() }],\n 'mask-image-radial-shape': [{ 'mask-radial': ['circle', 'ellipse'] }],\n 'mask-image-radial-size': [\n { 'mask-radial': [{ closest: ['side', 'corner'], farthest: ['side', 'corner'] }] },\n ],\n 'mask-image-radial-pos': [{ 'mask-radial-at': scalePosition() }],\n 'mask-image-conic-pos': [{ 'mask-conic': [isNumber] }],\n 'mask-image-conic-from-pos': [{ 'mask-conic-from': scaleMaskImagePosition() }],\n 'mask-image-conic-to-pos': [{ 'mask-conic-to': scaleMaskImagePosition() }],\n 'mask-image-conic-from-color': [{ 'mask-conic-from': scaleColor() }],\n 'mask-image-conic-to-color': [{ 'mask-conic-to': scaleColor() }],\n /**\n * Mask Mode\n * @see https://tailwindcss.com/docs/mask-mode\n */\n 'mask-mode': [{ mask: ['alpha', 'luminance', 'match'] }],\n /**\n * Mask Origin\n * @see https://tailwindcss.com/docs/mask-origin\n */\n 'mask-origin': [\n { 'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view'] },\n ],\n /**\n * Mask Position\n * @see https://tailwindcss.com/docs/mask-position\n */\n 'mask-position': [{ mask: scaleBgPosition() }],\n /**\n * Mask Repeat\n * @see https://tailwindcss.com/docs/mask-repeat\n */\n 'mask-repeat': [{ mask: scaleBgRepeat() }],\n /**\n * Mask Size\n * @see https://tailwindcss.com/docs/mask-size\n */\n 'mask-size': [{ mask: scaleBgSize() }],\n /**\n * Mask Type\n * @see https://tailwindcss.com/docs/mask-type\n */\n 'mask-type': [{ 'mask-type': ['alpha', 'luminance'] }],\n /**\n * Mask Image\n * @see https://tailwindcss.com/docs/mask-image\n */\n 'mask-image': [{ mask: ['none', isArbitraryVariable, isArbitraryValue] }],\n\n // ---------------\n // --- Filters ---\n // ---------------\n\n /**\n * Filter\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [\n {\n filter: [\n // Deprecated since Tailwind CSS v3.0.0\n '',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{ blur: scaleBlur() }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{ brightness: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{ contrast: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [\n {\n 'drop-shadow': [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n themeDropShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Drop Shadow Color\n * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color\n */\n 'drop-shadow-color': [{ 'drop-shadow': scaleColor() }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{ grayscale: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{ 'hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{ invert: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{ saturate: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{ sepia: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Backdrop Filter\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [\n {\n 'backdrop-filter': [\n // Deprecated since Tailwind CSS v3.0.0\n '',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{ 'backdrop-blur': scaleBlur() }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [\n { 'backdrop-brightness': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [\n { 'backdrop-contrast': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [\n { 'backdrop-grayscale': ['', isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [\n { 'backdrop-hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [\n { 'backdrop-invert': ['', isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [\n { 'backdrop-opacity': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [\n { 'backdrop-saturate': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [\n { 'backdrop-sepia': ['', isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n\n // --------------\n // --- Tables ---\n // --------------\n\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{ border: ['collapse', 'separate'] }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{ 'border-spacing': scaleUnambiguousSpacing() }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{ 'border-spacing-x': scaleUnambiguousSpacing() }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{ 'border-spacing-y': scaleUnambiguousSpacing() }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{ table: ['auto', 'fixed'] }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{ caption: ['top', 'bottom'] }],\n\n // ---------------------------------\n // --- Transitions and Animation ---\n // ---------------------------------\n\n /**\n * Transition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [\n {\n transition: [\n '',\n 'all',\n 'colors',\n 'opacity',\n 'shadow',\n 'transform',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Transition Behavior\n * @see https://tailwindcss.com/docs/transition-behavior\n */\n 'transition-behavior': [{ transition: ['normal', 'discrete'] }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{ duration: [isNumber, 'initial', isArbitraryVariable, isArbitraryValue] }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [\n { ease: ['linear', 'initial', themeEase, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{ delay: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{ animate: ['none', themeAnimate, isArbitraryVariable, isArbitraryValue] }],\n\n // ------------------\n // --- Transforms ---\n // ------------------\n\n /**\n * Backface Visibility\n * @see https://tailwindcss.com/docs/backface-visibility\n */\n backface: [{ backface: ['hidden', 'visible'] }],\n /**\n * Perspective\n * @see https://tailwindcss.com/docs/perspective\n */\n perspective: [\n { perspective: [themePerspective, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Perspective Origin\n * @see https://tailwindcss.com/docs/perspective-origin\n */\n 'perspective-origin': [{ 'perspective-origin': scalePositionWithArbitrary() }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{ rotate: scaleRotate() }],\n /**\n * Rotate X\n * @see https://tailwindcss.com/docs/rotate\n */\n 'rotate-x': [{ 'rotate-x': scaleRotate() }],\n /**\n * Rotate Y\n * @see https://tailwindcss.com/docs/rotate\n */\n 'rotate-y': [{ 'rotate-y': scaleRotate() }],\n /**\n * Rotate Z\n * @see https://tailwindcss.com/docs/rotate\n */\n 'rotate-z': [{ 'rotate-z': scaleRotate() }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{ scale: scaleScale() }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{ 'scale-x': scaleScale() }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{ 'scale-y': scaleScale() }],\n /**\n * Scale Z\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-z': [{ 'scale-z': scaleScale() }],\n /**\n * Scale 3D\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-3d': ['scale-3d'],\n /**\n * Skew\n * @see https://tailwindcss.com/docs/skew\n */\n skew: [{ skew: scaleSkew() }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{ 'skew-x': scaleSkew() }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{ 'skew-y': scaleSkew() }],\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [\n { transform: [isArbitraryVariable, isArbitraryValue, '', 'none', 'gpu', 'cpu'] },\n ],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{ origin: scalePositionWithArbitrary() }],\n /**\n * Transform Style\n * @see https://tailwindcss.com/docs/transform-style\n */\n 'transform-style': [{ transform: ['3d', 'flat'] }],\n /**\n * Translate\n * @see https://tailwindcss.com/docs/translate\n */\n translate: [{ translate: scaleTranslate() }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{ 'translate-x': scaleTranslate() }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{ 'translate-y': scaleTranslate() }],\n /**\n * Translate Z\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-z': [{ 'translate-z': scaleTranslate() }],\n /**\n * Translate None\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-none': ['translate-none'],\n\n // ---------------------\n // --- Interactivity ---\n // ---------------------\n\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{ accent: scaleColor() }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: [{ appearance: ['none', 'auto'] }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{ caret: scaleColor() }],\n /**\n * Color Scheme\n * @see https://tailwindcss.com/docs/color-scheme\n */\n 'color-scheme': [\n { scheme: ['normal', 'dark', 'light', 'light-dark', 'only-dark', 'only-light'] },\n ],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [\n {\n cursor: [\n 'auto',\n 'default',\n 'pointer',\n 'wait',\n 'text',\n 'move',\n 'help',\n 'not-allowed',\n 'none',\n 'context-menu',\n 'progress',\n 'cell',\n 'crosshair',\n 'vertical-text',\n 'alias',\n 'copy',\n 'no-drop',\n 'grab',\n 'grabbing',\n 'all-scroll',\n 'col-resize',\n 'row-resize',\n 'n-resize',\n 'e-resize',\n 's-resize',\n 'w-resize',\n 'ne-resize',\n 'nw-resize',\n 'se-resize',\n 'sw-resize',\n 'ew-resize',\n 'ns-resize',\n 'nesw-resize',\n 'nwse-resize',\n 'zoom-in',\n 'zoom-out',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Field Sizing\n * @see https://tailwindcss.com/docs/field-sizing\n */\n 'field-sizing': [{ 'field-sizing': ['fixed', 'content'] }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{ 'pointer-events': ['auto', 'none'] }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{ resize: ['none', '', 'y', 'x'] }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{ scroll: ['auto', 'smooth'] }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{ 'scroll-m': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{ 'scroll-mx': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{ 'scroll-my': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{ 'scroll-ms': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{ 'scroll-me': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{ 'scroll-mt': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{ 'scroll-mr': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{ 'scroll-mb': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{ 'scroll-ml': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{ 'scroll-p': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{ 'scroll-px': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{ 'scroll-py': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{ 'scroll-ps': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{ 'scroll-pe': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{ 'scroll-pt': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{ 'scroll-pr': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{ 'scroll-pb': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{ 'scroll-pl': scaleUnambiguousSpacing() }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{ snap: ['start', 'end', 'center', 'align-none'] }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{ snap: ['normal', 'always'] }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{ snap: ['none', 'x', 'y', 'both'] }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{ snap: ['mandatory', 'proximity'] }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{ touch: ['auto', 'none', 'manipulation'] }],\n /**\n * Touch Action X\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-x': [{ 'touch-pan': ['x', 'left', 'right'] }],\n /**\n * Touch Action Y\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-y': [{ 'touch-pan': ['y', 'up', 'down'] }],\n /**\n * Touch Action Pinch Zoom\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-pz': ['touch-pinch-zoom'],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{ select: ['none', 'text', 'all', 'auto'] }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [\n {\n 'will-change': [\n 'auto',\n 'scroll',\n 'contents',\n 'transform',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n\n // -----------\n // --- SVG ---\n // -----------\n\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{ fill: ['none', ...scaleColor()] }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [\n {\n stroke: [\n isNumber,\n isArbitraryVariableLength,\n isArbitraryLength,\n isArbitraryNumber,\n ],\n },\n ],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{ stroke: ['none', ...scaleColor()] }],\n\n // ---------------------\n // --- Accessibility ---\n // ---------------------\n\n /**\n * Forced Color Adjust\n * @see https://tailwindcss.com/docs/forced-color-adjust\n */\n 'forced-color-adjust': [{ 'forced-color-adjust': ['auto', 'none'] }],\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n size: ['w', 'h'],\n 'font-size': ['leading'],\n 'fvn-normal': [\n 'fvn-ordinal',\n 'fvn-slashed-zero',\n 'fvn-figure',\n 'fvn-spacing',\n 'fvn-fraction',\n ],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n 'line-clamp': ['display', 'overflow'],\n rounded: [\n 'rounded-s',\n 'rounded-e',\n 'rounded-t',\n 'rounded-r',\n 'rounded-b',\n 'rounded-l',\n 'rounded-ss',\n 'rounded-se',\n 'rounded-ee',\n 'rounded-es',\n 'rounded-tl',\n 'rounded-tr',\n 'rounded-br',\n 'rounded-bl',\n ],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': [\n 'border-w-x',\n 'border-w-y',\n 'border-w-s',\n 'border-w-e',\n 'border-w-t',\n 'border-w-r',\n 'border-w-b',\n 'border-w-l',\n ],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': [\n 'border-color-x',\n 'border-color-y',\n 'border-color-s',\n 'border-color-e',\n 'border-color-t',\n 'border-color-r',\n 'border-color-b',\n 'border-color-l',\n ],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n translate: ['translate-x', 'translate-y', 'translate-none'],\n 'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],\n 'scroll-m': [\n 'scroll-mx',\n 'scroll-my',\n 'scroll-ms',\n 'scroll-me',\n 'scroll-mt',\n 'scroll-mr',\n 'scroll-mb',\n 'scroll-ml',\n ],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': [\n 'scroll-px',\n 'scroll-py',\n 'scroll-ps',\n 'scroll-pe',\n 'scroll-pt',\n 'scroll-pr',\n 'scroll-pb',\n 'scroll-pl',\n ],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb'],\n touch: ['touch-x', 'touch-y', 'touch-pz'],\n 'touch-x': ['touch'],\n 'touch-y': ['touch'],\n 'touch-pz': ['touch'],\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading'],\n },\n orderSensitiveModifiers: [\n '*',\n '**',\n 'after',\n 'backdrop',\n 'before',\n 'details-content',\n 'file',\n 'first-letter',\n 'first-line',\n 'marker',\n 'placeholder',\n 'selection',\n ],\n } as const satisfies Config<DefaultClassGroupIds, DefaultThemeGroupIds>\n}\n","import { AnyConfig, ConfigExtension, NoInfer } from './types'\n\n/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nexport const mergeConfigs = <ClassGroupIds extends string, ThemeGroupIds extends string = never>(\n baseConfig: AnyConfig,\n {\n cacheSize,\n prefix,\n experimentalParseClassName,\n extend = {},\n override = {},\n }: ConfigExtension<ClassGroupIds, ThemeGroupIds>,\n) => {\n overrideProperty(baseConfig, 'cacheSize', cacheSize)\n overrideProperty(baseConfig, 'prefix', prefix)\n overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName)\n\n overrideConfigProperties(baseConfig.theme, override.theme)\n overrideConfigProperties(baseConfig.classGroups, override.classGroups)\n overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups)\n overrideConfigProperties(\n baseConfig.conflictingClassGroupModifiers,\n override.conflictingClassGroupModifiers,\n )\n overrideProperty(baseConfig, 'orderSensitiveModifiers', override.orderSensitiveModifiers)\n\n mergeConfigProperties(baseConfig.theme, extend.theme)\n mergeConfigProperties(baseConfig.classGroups, extend.classGroups)\n mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups)\n mergeConfigProperties(\n baseConfig.conflictingClassGroupModifiers,\n extend.conflictingClassGroupModifiers,\n )\n mergeArrayProperties(baseConfig, extend, 'orderSensitiveModifiers')\n\n return baseConfig\n}\n\nconst overrideProperty = <T extends object, K extends keyof T>(\n baseObject: T,\n overrideKey: K,\n overrideValue: T[K] | undefined,\n) => {\n if (overrideValue !== undefined) {\n baseObject[overrideKey] = overrideValue\n }\n}\n\nconst overrideConfigProperties = (\n baseObject: Partial<Record<string, readonly unknown[]>>,\n overrideObject: Partial<Record<string, readonly unknown[]>> | undefined,\n) => {\n if (overrideObject) {\n for (const key in overrideObject) {\n overrideProperty(baseObject, key, overrideObject[key])\n }\n }\n}\n\nconst mergeConfigProperties = (\n baseObject: Partial<Record<string, readonly unknown[]>>,\n mergeObject: Partial<Record<string, readonly unknown[]>> | undefined,\n) => {\n if (mergeObject) {\n for (const key in mergeObject) {\n mergeArrayProperties(baseObject, mergeObject, key)\n }\n }\n}\n\nconst mergeArrayProperties = <Key extends string>(\n baseObject: Partial<Record<NoInfer<Key>, readonly unknown[]>>,\n mergeObject: Partial<Record<NoInfer<Key>, readonly unknown[]>>,\n key: Key,\n) => {\n const mergeValue = mergeObject[key]\n\n if (mergeValue !== undefined) {\n baseObject[key] = baseObject[key] ? baseObject[key].concat(mergeValue) : mergeValue\n }\n}\n","import { createTailwindMerge } from './create-tailwind-merge'\nimport { getDefaultConfig } from './default-config'\nimport { mergeConfigs } from './merge-configs'\nimport { AnyConfig, ConfigExtension, DefaultClassGroupIds, DefaultThemeGroupIds } from './types'\n\ntype CreateConfigSubsequent = (config: AnyConfig) => AnyConfig\n\nexport const extendTailwindMerge = <\n AdditionalClassGroupIds extends string = never,\n AdditionalThemeGroupIds extends string = never,\n>(\n configExtension:\n | ConfigExtension<\n DefaultClassGroupIds | AdditionalClassGroupIds,\n DefaultThemeGroupIds | AdditionalThemeGroupIds\n >\n | CreateConfigSubsequent,\n ...createConfig: CreateConfigSubsequent[]\n) =>\n typeof configExtension === 'function'\n ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig)\n : createTailwindMerge(\n () => mergeConfigs(getDefaultConfig(), configExtension),\n ...createConfig,\n )\n","import { createTailwindMerge } from './create-tailwind-merge'\nimport { getDefaultConfig } from './default-config'\n\nexport const twMerge = createTailwindMerge(getDefaultConfig)\n","import { useContext } from 'react';\nimport { QueryClient, QueryClientContext } from '@tanstack/react-query';\n\nconst fallbackQueryClient = new QueryClient();\n\nexport function useQueryClientOrDefault(client?: QueryClient): QueryClient {\n const contextClient = useContext(QueryClientContext);\n return client ?? contextClient ?? fallbackQueryClient;\n}\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../../lib/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.ComponentRef<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","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","import * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nexport type InputProps = React.InputHTMLAttributes<HTMLInputElement>;\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nInput.displayName = 'Input';\n\nexport { Input };\n","import * as React from 'react';\nimport { Slottable, Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Loader2 } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 gap-1',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n outline:\n 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n loading?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n asChild = false,\n children,\n className,\n disabled,\n loading,\n size,\n variant,\n ...props\n },\n ref\n ) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={loading || disabled}\n {...props}\n >\n <Slottable>\n {loading ? (\n <div className=\"relative flex items-center justify-center\">\n <div className=\"absolute\">\n <Loader2 className=\"animate-spin\" />\n </div>\n <span className=\"opacity-0\">{children}</span>\n </div>\n ) : (\n children\n )}\n </Slottable>\n </Comp>\n );\n }\n);\n\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n","import { useMutation } from '@tanstack/react-query';\nimport { signIn } from '@niledatabase/client';\n\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { Props } from './types';\n\nexport function useEmailSignIn(params?: Props) {\n const {\n onSuccess,\n onError,\n beforeMutate,\n callbackUrl,\n redirect = false,\n init,\n client,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n const mutation = useMutation(\n {\n mutationFn: async (_data) => {\n const d = { ..._data, callbackUrl, redirect };\n const possibleData = beforeMutate && beforeMutate(d);\n const data = possibleData ?? d;\n const res = await signIn('email', { init, ...data });\n if (res?.error) {\n throw new Error(res.error);\n }\n return res as unknown as Response;\n },\n onSuccess,\n onError,\n },\n queryClient\n );\n return mutation.mutate;\n}\n","'use client';\nimport { Slot } from '@radix-ui/react-slot';\nimport React from 'react';\nimport { Mail } from 'lucide-react';\nimport { signIn } from '@niledatabase/client';\n\nimport { ButtonProps, buttonVariants } from '../../components/ui/button';\nimport { cn } from '../../lib/utils';\nimport { SSOButtonProps } from '../types';\n\ntype EmailError = void | {\n error: string;\n ok: boolean;\n status: number;\n url: null | string;\n};\ntype AllProps = ButtonProps &\n SSOButtonProps & {\n callbackUrl?: string;\n redirect?: boolean;\n email: string;\n onSent?: () => void;\n onFailure?: (error: EmailError) => void;\n buttonText?: string;\n };\n\n/**\n * This works when the email identity provider is configured in the admin dashboard.\n * @param props callbackUrl: the url to send the user to from their email\n * @param props redirect: redirect to the default (unbranded) 'check your email' page. default is false\n * @param props email: the email to send to\n * @param props onSent: called if the email was sent\n * @param props onFailure: called if there was a reportable\n * @returns a JSX.Element to render\n */\n\nconst EmailSignInButton = ({\n callbackUrl,\n className,\n variant,\n size,\n asChild = false,\n redirect = false,\n buttonText = 'Continue with Email',\n email,\n onFailure,\n onSent,\n fetchUrl,\n baseUrl,\n auth,\n ...props\n}: AllProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n data-slot=\"email-signin-button\"\n onClick={async () => {\n const res = await signIn('email', {\n email,\n callbackUrl,\n redirect,\n fetchUrl,\n baseUrl,\n auth,\n });\n\n if (res && 'error' in res) {\n onFailure && onFailure(res as EmailError);\n } else {\n onSent && onSent();\n }\n }}\n {...props}\n >\n {props.children ? (\n props.children\n ) : (\n <div className=\"flex flex-row gap-2 items-center\">\n <Mail />\n {buttonText}\n </div>\n )}\n </Comp>\n );\n};\n\nEmailSignInButton.displayName = 'EmailSignInButton';\nexport default EmailSignInButton;\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\n/**\n * A component for a Google login button, according to their design language.\n * This works when an identity provider is configured in the admin dashboard.\n * @param props callbackUrl: a string to override the URL provided by the context\n * @returns a JSX.Element to render\n */\nconst GoogleSSOButton = ({\n callbackUrl,\n className,\n variant,\n size,\n buttonText = 'Continue with Google',\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"google-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#4285f4] hover:bg-[#4285f4] hover:bg-opacity-85 pl-[3px] text-white'\n )}\n onClick={async (e) => {\n const res = await signIn('google', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <div className=\"inline-flex items-center flex-1 justify-between font-roboto rounded-[4px] gap-4 google-logo\">\n <div\n style={{\n background: 'white',\n borderRadius: '4px',\n padding: '0.5rem',\n }}\n >\n <GoogleLogo />\n </div>\n {buttonText}\n </div>\n </Comp>\n );\n};\nGoogleSSOButton.displayName = 'GoogleSSOButton';\nexport default GoogleSSOButton;\n\nfunction GoogleLogo() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\">\n <g fill=\"#000\" fillRule=\"evenodd\">\n <path\n d=\"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z\"\n fill=\"#EA4335\"\n />\n <path\n d=\"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z\"\n fill=\"#4285F4\"\n />\n <path\n d=\"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z\"\n fill=\"#FBBC05\"\n />\n <path\n d=\"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z\"\n fill=\"#34A853\"\n />\n <path fill=\"none\" d=\"M0 0h18v18H0z\" />\n </g>\n </svg>\n );\n}\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst AzureSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Microsoft',\n variant,\n size,\n init,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"azure-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#0078d4] hover:bg-[#0078d4] hover:bg-opacity-85 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n onClick={async (e) => {\n const res = await signIn('azure-ad', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <MicrosoftIcon />\n {buttonText}\n </Comp>\n );\n};\n\nAzureSignInButton.displayName = 'AzureSignInButton';\nexport default AzureSignInButton;\n\nconst MicrosoftIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 23 23\"\n className=\"w-5 h-5 ml-3\"\n >\n <path fill=\"#f3f3f3\" d=\"M0 0h23v23H0z\" />\n <path fill=\"#f35325\" d=\"M1 1h10v10H1z\" />\n <path fill=\"#81bc06\" d=\"M12 1h10v10H12z\" />\n <path fill=\"#05a6f0\" d=\"M1 12h10v10H1z\" />\n <path fill=\"#ffba08\" d=\"M12 12h10v10H12z\" />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst DiscordSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Discord',\n variant,\n size,\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#5865F2] hover:bg-[#5865F2] hover:bg-opacity-85 pl-[3px] gap-4 transition-colors border shadow-md text-white'\n )}\n data-slot=\"discord-button\"\n onClick={async (e) => {\n const res = await signIn('discord', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nDiscordSignInButton.displayName = 'DiscordSignInButton';\nexport default DiscordSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n className=\"w-5 h-5 ml-3\"\n viewBox=\"0 0 75 59\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>discord-icon</title>\n <g\n id=\"Page-1\"\n stroke=\"none\"\n strokeWidth=\"1\"\n fill=\"none\"\n fillRule=\"evenodd\"\n >\n <g\n id=\"discord-icon\"\n transform=\"translate(2.000000, 2.411745)\"\n fillRule=\"nonzero\"\n stroke=\"#636262\"\n strokeWidth=\"0\"\n >\n <path\n d=\"M60.1044999,4.48605546 C55.5791999,2.40965546 50.7264999,0.879855461 45.6526999,0.00367546142 C45.5602999,-0.0132345386 45.4679999,0.0290244614 45.4203999,0.113544461 C44.7962999,1.22355546 44.1049999,2.67165546 43.6208999,3.80985546 C38.1636999,2.99285546 32.7344999,2.99285546 27.3891999,3.80985546 C26.9049999,2.64635546 26.1885999,1.22355546 25.5616999,0.113544461 C25.5140999,0.0318444614 25.4217999,-0.0104145386 25.3293999,0.00367546142 C20.2583999,0.877055461 15.4056999,2.40685546 10.8775999,4.48605546 C10.8383999,4.50295546 10.8047999,4.53115546 10.7824999,4.56775546 C1.57794989,18.3191555 -0.94356111,31.7325555 0.29340789,44.9796555 C0.29900489,45.0444555 0.33538589,45.1064555 0.38576089,45.1458555 C6.45865989,49.6056555 12.3412999,52.3131555 18.1146999,54.1077555 C18.2070999,54.1359555 18.3049999,54.1021555 18.3637999,54.0260555 C19.7294999,52.1610555 20.9468999,50.1945555 21.9906999,48.1265555 C22.0522999,48.0054555 21.9934999,47.8617555 21.8675999,47.8138555 C19.9365999,47.0813555 18.0978999,46.1882555 16.3291999,45.1740555 C16.1892999,45.0923555 16.1780999,44.8922555 16.3067999,44.7964555 C16.6789999,44.5175555 17.0512999,44.2273555 17.4066999,43.9343555 C17.4709999,43.8808555 17.5605999,43.8695555 17.6361999,43.9033555 C29.2557999,49.2084555 41.8353999,49.2084555 53.3178999,43.9033555 C53.3934999,43.8667555 53.4830999,43.8780555 53.5501999,43.9315555 C53.9056999,44.2245555 54.2778999,44.5175555 54.6528999,44.7964555 C54.7815999,44.8922555 54.7731999,45.0923555 54.6332999,45.1740555 C52.8645999,46.2079555 51.0258999,47.0813555 49.0920999,47.8110555 C48.9661999,47.8589555 48.9101999,48.0054555 48.9717999,48.1265555 C50.0379999,50.1916555 51.2553999,52.1581555 52.5958999,54.0232555 C52.6518999,54.1021555 52.7525999,54.1359555 52.8449999,54.1077555 C58.6463999,52.3131555 64.5289999,49.6056555 70.6018999,45.1458555 C70.6550999,45.1064555 70.6886999,45.0472555 70.6942999,44.9824555 C72.1746999,29.6673555 68.2146999,16.3639555 60.1967999,4.57055546 C60.1771999,4.53115546 60.1436999,4.50295546 60.1044999,4.48605546 Z M23.7258999,36.9135555 C20.2275999,36.9135555 17.3450999,33.7018555 17.3450999,29.7575555 C17.3450999,25.8132555 20.1716999,22.6015555 23.7258999,22.6015555 C27.3079999,22.6015555 30.1625999,25.8414555 30.1065999,29.7575555 C30.1065999,33.7018555 27.2799999,36.9135555 23.7258999,36.9135555 Z M47.3177999,36.9135555 C43.8195999,36.9135555 40.9370999,33.7018555 40.9370999,29.7575555 C40.9370999,25.8132555 43.7635999,22.6015555 47.3177999,22.6015555 C50.8999999,22.6015555 53.7544999,25.8414555 53.6985999,29.7575555 C53.6985999,33.7018555 50.8999999,36.9135555 47.3177999,36.9135555 Z\"\n id=\"Shape\"\n fill=\"white\"\n />\n </g>\n </g>\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst GitHubSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with GitHub',\n variant,\n size,\n init,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"github-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-black hover:bg-slate-800 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n onClick={async (e) => {\n const res = await signIn('github', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nGitHubSignInButton.displayName = 'GitHubSignInButton';\nexport default GitHubSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 32.58 31.77\"\n fill=\"currentColor\"\n className=\"w-5 h-5 ml-3\"\n >\n <path\n fill=\"#FFFFFF\"\n d=\"M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.82.15,1.11-.36,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.36,4.36,0,0,0-1.81-2.39c-1.47-1,.12-1,.12-1a3.43,3.43,0,0,1,2.49,1.68,3.48,3.48,0,0,0,4.74,1.36,3.46,3.46,0,0,1,1-2.18c-3.62-.41-7.42-1.81-7.42-8a6.3,6.3,0,0,1,1.67-4.37,5.94,5.94,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.41,15.41,0,0,1,8.16,0c3.11-2.11,4.47-1.67,4.47-1.67A5.91,5.91,0,0,1,25,11.07a6.3,6.3,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.85,3.85,0,0,1,1.11,3c0,2.18,0,3.94,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst HubSpotSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with HubSpot',\n variant,\n size,\n init,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"hubspot-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#ff7a59] hover:bg-[#ff7a59] hover:bg-opacity-85 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n onClick={async (e) => {\n const res = await signIn('hubspot', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nHubSpotSignInButton.displayName = 'HubSpotSignInButton';\nexport default HubSpotSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n className=\"w-5 h-5 ml-3\"\n viewBox=\"6.20856283 .64498824 244.26943717 251.24701176\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"m191.385 85.694v-29.506a22.722 22.722 0 0 0 13.101-20.48v-.677c0-12.549-10.173-22.722-22.721-22.722h-.678c-12.549 0-22.722 10.173-22.722 22.722v.677a22.722 22.722 0 0 0 13.101 20.48v29.506a64.342 64.342 0 0 0 -30.594 13.47l-80.922-63.03c.577-2.083.878-4.225.912-6.375a25.6 25.6 0 1 0 -25.633 25.55 25.323 25.323 0 0 0 12.607-3.43l79.685 62.007c-14.65 22.131-14.258 50.974.987 72.7l-24.236 24.243c-1.96-.626-4-.959-6.057-.987-11.607.01-21.01 9.423-21.007 21.03.003 11.606 9.412 21.014 21.018 21.017 11.607.003 21.02-9.4 21.03-21.007a20.747 20.747 0 0 0 -.988-6.056l23.976-23.985c21.423 16.492 50.846 17.913 73.759 3.562 22.912-14.352 34.475-41.446 28.985-67.918-5.49-26.473-26.873-46.734-53.603-50.792m-9.938 97.044a33.17 33.17 0 1 1 0-66.316c17.85.625 32 15.272 32.01 33.134.008 17.86-14.127 32.522-31.977 33.165\"\n fill=\"white\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst LinkedInSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with LinkedIn',\n variant,\n size,\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"linkedin-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#0288D1] hover:bg-[#0288D1] pl-[3px] hover:bg-opacity-85 gap-4 transition-colors shadow-md text-white'\n )}\n onClick={async (e) => {\n const res = await signIn('linkedin', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nLinkedInSignInButton.displayName = 'LinkedInSignInButton';\nexport default LinkedInSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 48 48\"\n className=\"w-6 h-6 ml-3\"\n >\n <path\n fill=\"#fff\"\n d=\"M42,37c0,2.762-2.238,5-5,5H11c-2.761,0-5-2.238-5-5V11c0-2.762,2.239-5,5-5h26c2.762,0,5,2.238,5,5V37z\"\n />\n <path\n fill=\"#0288D1\"\n d=\"M12 19H17V36H12zM14.485 17h-.028C12.965 17 12 15.888 12 14.499 12 13.08 12.995 12 14.514 12c1.521 0 2.458 1.08 2.486 2.499C17 15.887 16.035 17 14.485 17zM36 36h-5v-9.099c0-2.198-1.225-3.698-3.192-3.698-1.501 0-2.313 1.012-2.707 1.99C24.957 25.543 25 26.511 25 27v9h-5V19h5v2.616C25.721 20.5 26.85 19 29.738 19c3.578 0 6.261 2.25 6.261 7.274L36 36 36 36z\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst SlackSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Slack',\n variant,\n size,\n init,\n onClick,\n asChild = false,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#4A154B] pl-[3px] hover:bg-opacity-85 gap-4 transition-colors shadow-md text-white'\n )}\n data-slot=\"slack-button\"\n onClick={async (e) => {\n const res = await signIn('slack', { callbackUrl, init });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nSlackSignInButton.displayName = 'SlackSignInButton';\nexport default SlackSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n enableBackground=\"new 0 0 2447.6 2452.5\"\n viewBox=\"0 0 2447.6 2452.5\"\n className=\"w-5 h-5 ml-3\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipRule=\"evenodd\" fillRule=\"evenodd\">\n <path\n d=\"m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z\"\n fill=\"#36c5f0\"\n />\n <path\n d=\"m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z\"\n fill=\"#2eb67d\"\n />\n <path\n d=\"m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z\"\n fill=\"#ecb22e\"\n />\n <path\n d=\"m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0\"\n fill=\"#e01e5a\"\n />\n </g>\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst XSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with X',\n variant,\n size,\n init,\n onClick,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-black hover:bg-slate-800 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n data-slot=\"twitter-button\"\n onClick={async (e) => {\n const res = await signIn('twitter', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nXSignInButton.displayName = 'XSignInButton';\nexport default XSignInButton;\n\nconst Icon = () => {\n return (\n <svg className=\"w-5 h-5 ml-3\" viewBox=\"0 0 24 24\" version=\"1.1\">\n <path\n d=\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\"\n fill=\"#ffffff\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst OktaSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Okta',\n variant,\n size,\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"okta-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#181818] hover:bg-[#3f59e4] pl-[3px] gap-4 transition-colors shadow-md text-white'\n )}\n onClick={async (e) => {\n const res = await signIn('okta', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <OktaLogo />\n {buttonText}\n </Comp>\n );\n};\n\nOktaSignInButton.displayName = 'OktaSignInButton';\nexport default OktaSignInButton;\n\nconst OktaLogo = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 63 63\"\n fill=\"currentColor\"\n className=\"w-5 h-5 ml-3\"\n width=\"18\"\n height=\"18\"\n >\n <g>\n <path\n d=\"M34.6,0.4l-1.3,16c-0.6-0.1-1.2-0.1-1.9-0.1c-0.8,0-1.6,0.1-2.3,0.2l-0.7-7.7c0-0.2,0.2-0.5,0.4-0.5h1.3\n\t\tl-0.6-7.8c0-0.2,0.2-0.5,0.4-0.5h4.3C34.5,0,34.7,0.2,34.6,0.4L34.6,0.4L34.6,0.4z M23.8,1.2c-0.1-0.2-0.3-0.4-0.5-0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\n\t\tc0.2,0.1,0.5-0.1,0.5-0.3l0.7-4.2c0-0.2-0.1-0.5-0.4-0.5l-7.8-0.7l0.2-1.3c0-0.2-0.1-0.5-0.4-0.5l-7.8-0.6c0,1.4-0.3,2.8-0.7,4.1\n\t\tL61.5,40L61.5,40L61.5,40z M57.4,49.6c-0.1,0.2-0.4,0.3-0.6,0.1l-13.2-9.1c0.8-1.1,1.5-2.3,2-3.6l7.1,3.2c0.2,0.1,0.3,0.4,0.2,0.6\n\t\tL52.2,42l7.1,3.4c0.2,0.1,0.3,0.4,0.2,0.6L57.4,49.6C57.4,49.6,57.4,49.6,57.4,49.6z M39.7,44.2L49,57.3c0.1,0.2,0.4,0.2,0.6,0.1\n\t\tl3.3-2.7c0.2-0.2,0.2-0.4,0-0.6l-5.5-5.6l1-0.8c0.2-0.2,0.2-0.4,0-0.6l-5.5-5.5C42,42.6,40.9,43.5,39.7,44.2L39.7,44.2L39.7,44.2z\n\t\t M39.7,62c-0.2,0.1-0.5-0.1-0.5-0.3l-4.2-15.4c1.4-0.3,2.7-0.8,3.9-1.5l3.3,7c0.1,0.2,0,0.5-0.2,0.6l-1.2,0.5l3.3,7.1\n\t\tc0.1,0.2,0,0.5-0.2,0.6L39.7,62L39.7,62L39.7,62z\"\n />\n </g>\n </svg>\n );\n};\n","import React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nimport { Props } from './types';\nimport SignUpForm from './Form';\n\nexport default function SigningUp({ className, ...props }: Props) {\n return (\n <div className={cn(className, 'flex flex-col gap-4')}>\n <div className=\"font-sans text-3xl\">Sign up</div>\n <SignUpForm {...props} />\n </div>\n );\n}\n","'use client';\nimport React from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\n\nimport { Email, Form, Password } from '../../components/ui/form';\nimport { Button } from '../../components/ui/button';\n\nimport { Props } from './types';\nimport { useSignUp } from './hooks';\n\nconst queryClient = new QueryClient();\nexport default function SignUpForm(props: Props) {\n const { client } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <SignInForm {...props} />\n </QueryClientProvider>\n );\n}\n\nexport function SignInForm(props: Props) {\n const signUp = useSignUp(props);\n const form = useForm({ defaultValues: { email: '', password: '' } });\n\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(({ email, password }) =>\n signUp({ email, password })\n )}\n className=\"space-y-8\"\n >\n <Email />\n <Password />\n <Button>Sign up</Button>\n </form>\n </Form>\n );\n}\n","import { QueryClient, useMutation } from '@tanstack/react-query';\nimport { signUp } from '@niledatabase/client';\n\nimport { usePrefetch } from '../../lib/utils';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { Props, SignUpInfo } from './types';\n\nexport function useSignUp<T extends SignUpInfo>(\n params: Props,\n client?: QueryClient\n) {\n const { onSuccess, onError, beforeMutate, ...remaining } = params;\n const queryClient = useQueryClientOrDefault(client);\n\n const mutation = useMutation(\n {\n mutationFn: async (_data) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const payload: T = { ..._data, ...possibleData };\n const { data, error } = await signUp({\n ...remaining,\n ...payload,\n });\n if (error) {\n throw new Error(error);\n }\n return data;\n },\n\n onSuccess,\n onError,\n },\n queryClient\n );\n\n usePrefetch(params);\n\n return mutation.mutate;\n}\n","'use client';\nimport React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nimport FormSignIn from './Form';\nimport { Props } from './types';\n\nexport default function SigningIn({ className, ...props }: Props) {\n return (\n <div className={cn(className, 'flex flex-col gap-4')}>\n <h2 className=\"font-sans text-3xl\">Sign In</h2>\n <FormSignIn {...props} />\n </div>\n );\n}\n","'use client';\nimport React from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\n\nimport { Button } from '../../components/ui/button';\nimport { Email, Form, Password } from '../../components/ui/form';\n\nimport { useSignIn } from './hooks';\nimport { Props } from './types';\n\nconst queryClient = new QueryClient();\n\nexport default function SigningIn(props: Props) {\n const { client, ...remaining } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <SignInForm {...remaining} />\n </QueryClientProvider>\n );\n}\n\nexport function SignInForm(props: Props) {\n const signIn = useSignIn(props);\n const form = useForm({ defaultValues: { email: '', password: '' } });\n\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(\n ({ email, password }) =>\n signIn && signIn({ provider: 'credentials', email, password })\n )}\n className=\"space-y-8\"\n >\n <Email />\n <Password />\n <Button type=\"submit\">Sign In</Button>\n </form>\n </Form>\n );\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { signIn } from '@niledatabase/client';\n\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { Props, LoginInfo } from './types';\n\nexport function useSignIn(params?: Props) {\n const {\n onSuccess,\n onError,\n beforeMutate,\n callbackUrl,\n init,\n baseUrl,\n fetchUrl,\n resetUrl,\n auth,\n redirect,\n client,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n const mutation = useMutation(\n {\n mutationFn: async (_data: LoginInfo) => {\n const d = { ..._data, callbackUrl };\n const possibleData = beforeMutate && beforeMutate(d);\n const data = possibleData ?? d;\n const res = await signIn(data.provider, {\n init,\n auth,\n baseUrl,\n fetchUrl,\n redirect,\n resetUrl,\n ...data,\n });\n if (!res?.ok && res?.error) {\n throw new Error(res.error);\n }\n return res;\n },\n onSuccess,\n onError,\n },\n queryClient\n );\n return mutation.mutate;\n}\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { LogOut } from 'lucide-react';\nimport { signOut } from '@niledatabase/client';\n\nimport { ComponentFetchProps } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\n\ntype Props = ButtonProps &\n ComponentFetchProps & {\n redirect?: boolean;\n callbackUrl?: string;\n buttonText?: string;\n baseUrl?: string;\n fetchUrl?: string;\n basePath?: string;\n };\n\nconst SignOutButton = ({\n callbackUrl,\n redirect,\n className,\n buttonText = 'Sign out',\n variant,\n size,\n baseUrl,\n fetchUrl,\n basePath,\n auth,\n asChild = false,\n ...props\n}: Props) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"signout-button\"\n className={buttonVariants({ variant, size, className })}\n onClick={() => {\n signOut({ callbackUrl, redirect, baseUrl, auth, fetchUrl, basePath });\n }}\n {...props}\n >\n {props.children ? (\n props.children\n ) : (\n <div className=\"flex flex-row gap-2 items-center\">\n <LogOut />\n {buttonText}\n </div>\n )}\n </Comp>\n );\n};\n\nSignOutButton.displayName = 'SignOutButton';\nexport default SignOutButton;\n","'use client';\nimport React from 'react';\nimport { NileSession, NonErrorSession } from '@niledatabase/client';\n\nimport {\n useSession,\n SessionProvider,\n SessionProviderProps,\n} from '../../lib/auth';\n\nexport function convertSession(\n startSession: NileSession\n): NonErrorSession | undefined | null {\n if (startSession && 'exp' in startSession) {\n return {\n ...startSession,\n expires: new Date(startSession.exp * 1000).toISOString(),\n };\n }\n\n // handled previously with `SignedIn`\n return startSession as NonErrorSession;\n}\n\nexport default function SignedIn({\n children,\n session: startSession,\n ...props\n}: SessionProviderProps & {\n className?: string;\n}) {\n if (startSession instanceof Response) {\n return null;\n }\n const session = convertSession(startSession);\n return (\n <SessionProvider {...props} session={session}>\n <SignedInChecker className={props.className}>{children}</SignedInChecker>\n </SessionProvider>\n );\n}\n\nfunction SignedInChecker({\n children,\n className,\n}: {\n className?: string;\n children: React.ReactNode;\n}) {\n const { status } = useSession();\n\n if (status === 'authenticated') {\n if (className) {\n return <div className={className}>{children}</div>;\n }\n return children;\n }\n return null;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n// Note about signIn() and signOut() methods:\n//\n// On signIn() and signOut() we pass 'json: true' to request a response in JSON\n// instead of HTTP as redirect URLs on other domains are not returned to\n// requests made using the fetch API in the browser, and we need to ask the API\n// to return the response as a JSON object (the end point still defaults to\n// returning an HTTP response with a redirect for non-JavaScript clients).\n//\n// We use HTTP POST requests with CSRF Tokens to protect against CSRF attacks.\n\nimport React from 'react';\nimport {\n auth,\n getStatus,\n broadcast,\n Listener,\n NileSession,\n NonErrorSession,\n AuthState,\n} from '@niledatabase/client';\n\nexport interface SessionProviderProps {\n children: React.ReactNode;\n session?: NileSession;\n baseUrl?: string;\n basePath?: string;\n /**\n * A time interval (in seconds) after which the session will be re-fetched.\n * If set to `0` (default), the session is not polled.\n */\n refetchInterval?: number;\n /**\n * `SessionProvider` automatically refetches the session when the user switches between windows.\n * This option activates this behaviour if set to `true` (default).\n */\n refetchOnWindowFocus?: boolean;\n /**\n * Set to `false` to stop polling when the device has no internet access offline (determined by `navigator.onLine`)\n *\n * [`navigator.onLine` documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine)\n */\n refetchWhenOffline?: false;\n}\nfunction useOnline() {\n const [isOnline, setIsOnline] = React.useState(\n typeof navigator !== 'undefined' ? navigator.onLine : false\n );\n\n const setOnline = () => setIsOnline(true);\n const setOffline = () => setIsOnline(false);\n\n React.useEffect(() => {\n window.addEventListener('online', setOnline);\n window.addEventListener('offline', setOffline);\n\n return () => {\n window.removeEventListener('online', setOnline);\n window.removeEventListener('offline', setOffline);\n };\n }, []);\n\n return isOnline;\n}\n\nconst subscribeToAuthorizer = (onStoreChange: () => void) => {\n const handler: Listener = () => {\n onStoreChange();\n };\n auth.addListener(handler);\n return () => auth.removeListener(handler);\n};\n\nconst getAuthorizerSnapshot = () => auth.state;\n\nfunction useAuthorizerState() {\n return React.useSyncExternalStore(\n subscribeToAuthorizer,\n getAuthorizerSnapshot,\n getAuthorizerSnapshot\n );\n}\n\ntype UpdateSession = (\n data?: any\n) => Promise<NonErrorSession | null | undefined>;\n\ntype SessionContextBase = {\n update: UpdateSession;\n state: AuthState;\n};\n\ntype SessionContextRequired =\n | (SessionContextBase & {\n data: NonErrorSession;\n status: 'authenticated';\n })\n | (SessionContextBase & {\n data: null | undefined;\n status: 'loading';\n });\n\ntype SessionContextOptional =\n | (SessionContextBase & {\n data: NonErrorSession;\n status: 'authenticated';\n })\n | (SessionContextBase & {\n data: null | undefined;\n status: 'unauthenticated' | 'loading';\n });\n\nexport type SessionContextValue<R extends boolean = false> = R extends true\n ? SessionContextRequired\n : SessionContextOptional;\n\nexport const SessionContext = React.createContext?.<\n SessionContextValue | undefined\n>(undefined);\n\nexport interface UseSessionOptions<R extends boolean> {\n required: R;\n /** Defaults to `signIn` */\n onUnauthenticated?: () => void;\n}\n/**\n * React Hook that gives you access\n * to the logged in user's session data.\n *\n * [Documentation](https://next-auth.js.org/getting-started/client#usesession)\n */\nexport function useSession<R extends boolean>(\n options?: UseSessionOptions<R>\n): SessionContextValue<R> {\n if (!SessionContext) {\n throw new Error('React Context is unavailable in Server Components');\n }\n\n // @ts-expect-error Satisfy TS if branch on line below\n const value: SessionContextValue<R> = React.useContext(SessionContext);\n\n const { required, onUnauthenticated } = options ?? {};\n\n const requiredAndNotLoading = required && value.status === 'unauthenticated';\n\n React.useEffect(() => {\n if (requiredAndNotLoading) {\n const url = `/api/auth/signin?${new URLSearchParams({\n error: 'SessionRequired',\n callbackUrl: window.location.href,\n })}`;\n if (onUnauthenticated) onUnauthenticated();\n else window.location.href = url;\n }\n }, [requiredAndNotLoading, onUnauthenticated]);\n\n if (requiredAndNotLoading) {\n return {\n data: value.data,\n update: value.update,\n status: 'loading',\n state: value.state,\n };\n }\n\n return value;\n}\n\n/**\n * Signs the user out, by removing the session cookie.\n * Automatically adds the CSRF token to the request.\n *\n * [Documentation](https://next-auth.js.org/getting-started/client#signout)\n */\n\n/**\n * Provider to wrap the app in to make session data available globally.\n * Can also be used to throttle the number of requests to the endpoint\n * `/api/auth/session`.\n *\n * [Documentation](https://next-auth.js.org/getting-started/client#sessionprovider)\n */\nexport function SessionProvider(props: SessionProviderProps) {\n if (!SessionContext) {\n throw new Error('React Context is unavailable in Server Components');\n }\n const {\n children,\n refetchWhenOffline,\n refetchInterval,\n refetchOnWindowFocus,\n } = props;\n const state = useAuthorizerState();\n\n if (props.basePath) auth.state.basePath = props.basePath;\n\n const providedSession =\n props.session && !(props.session instanceof Response)\n ? props.session\n : undefined;\n\n const session =\n state.session === undefined\n ? providedSession ?? null\n : state.session ?? null;\n\n React.useEffect(() => {\n if (props.session && !(props.session instanceof Response)) {\n auth.initialize({ baseUrl: props.baseUrl, session: props.session });\n } else {\n if (!auth.status) {\n auth.getSession({ baseUrl: props.baseUrl });\n }\n }\n }, [props.baseUrl, props.session]);\n\n const isOnline = useOnline();\n const shouldRefetch = refetchWhenOffline !== false || isOnline;\n\n const visibilityHandler = React.useCallback(() => {\n if (document.visibilityState === 'visible') {\n auth.sync('visibilitychange');\n }\n }, []);\n\n React.useEffect(() => {\n if (refetchInterval && shouldRefetch) {\n const refetchIntervalTimer = setInterval(() => {\n if (auth.state.session) {\n auth.state.getSession({ event: 'poll' });\n }\n }, refetchInterval * 1000);\n return () => clearInterval(refetchIntervalTimer);\n }\n }, [refetchInterval, shouldRefetch]);\n\n React.useEffect(() => {\n if (refetchOnWindowFocus) {\n document.addEventListener('visibilitychange', visibilityHandler, false);\n } else {\n document.removeEventListener('visibilitychange', visibilityHandler);\n }\n\n const unsubscribe = broadcast.receive(() => auth.sync('storage'));\n\n return () => {\n auth.state.lastSync = 0;\n auth.state.session = undefined;\n auth.state.getSession = () => undefined;\n unsubscribe();\n document.removeEventListener(\n 'visibilitychange',\n visibilityHandler,\n false\n );\n };\n }, [refetchOnWindowFocus, visibilityHandler]);\n\n const status = getStatus(state.loading, session);\n const value = React.useMemo(() => {\n return {\n data: session ?? null,\n status,\n state,\n async update() {\n return await auth.refreshSession();\n },\n };\n }, [session, state, status]);\n return (\n <SessionContext.Provider value={value as any}>\n {children}\n </SessionContext.Provider>\n );\n}\n","'use client';\nimport React from 'react';\nimport { SessionProviderProps } from 'packages/react/lib/auth';\n\nimport { useSession, SessionProvider } from '../../lib/auth';\nimport { convertSession } from '../SignedIn';\n\nexport default function SignedOut({\n children,\n session: startSession,\n ...props\n}: SessionProviderProps & {\n className?: string;\n}) {\n if (startSession instanceof Response) {\n return null;\n }\n const session = convertSession(startSession);\n return (\n <SessionProvider {...props} session={session}>\n <SignedOutChecker className={props.className}>\n {children}\n </SignedOutChecker>\n </SessionProvider>\n );\n}\nfunction SignedOutChecker({\n className,\n children,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n const { status } = useSession();\n if (status === 'unauthenticated') {\n if (className) {\n return <div className={className}>{children}</div>;\n }\n return children;\n }\n return null;\n}\n","'use client';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport {\n QueryClient,\n QueryClientProvider,\n useMutation,\n} from '@tanstack/react-query';\nimport { ArrowLeftRight, ChevronDown, Plus } from 'lucide-react';\nimport { useForm } from 'react-hook-form';\n\nimport { Tenant } from '../../../server/src/tenants/types';\nimport { Input } from '../../components/ui/input';\nimport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '../../components/ui/form';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '../../components/ui/dropdown-menu';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from '../../components/ui/dialog';\nimport { Button } from '../../components/ui/button';\nimport { cn, componentFetch, ComponentFetchProps } from '../../lib/utils';\n\nimport { useTenantId, useTenants } from './hooks';\nimport { ComponentProps } from './types';\n\nexport { useTenantId, useTenants } from './hooks';\n\nconst queryClient = new QueryClient();\n\nexport default function TenantSelector(props: ComponentProps) {\n const { client } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <SelectTenant {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction SelectTenant(props: ComponentProps) {\n const {\n data: tenants = props.tenants ?? [],\n isLoading,\n refetch,\n } = useTenants(props);\n const {\n buttonText = 'Create an organization',\n emptyText = 'You are not part of an organization.',\n } = props;\n\n const [tenantId, setActiveTenant] = useTenantId(props);\n const [open, setOpen] = useState(false);\n\n const tenant = tenants.find((t) => t.id === tenantId);\n\n useEffect(() => {\n // set the first tenant if no tenant is selected\n if (!props.tenants?.length && tenants?.length > 0 && !tenant) {\n setActiveTenant(tenants[0].id);\n }\n // only react to `useTenants`\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.tenants?.length, tenants]);\n\n if ((!isLoading && !tenantId) || !tenant?.name) {\n // the user isn't part of any tenants, so ask them to add one\n return (\n <div className={cn('flex flex-col items-center gap-2', props.className)}>\n <p>{emptyText}</p>\n <CreateTenant\n {...props}\n onSuccess={(d) => {\n setActiveTenant(d.id);\n setOpen(false);\n refetch();\n }}\n trigger={\n <Button>\n <Plus size={18} /> {buttonText}\n </Button>\n }\n />\n </div>\n );\n }\n\n return (\n <div>\n <div className={cn(props.className)}>\n <div className=\"text-sm pb-1.5 opacity-70 flex flex-row gap-1 items-center\">\n <ArrowLeftRight size={14} />\n Switch organization\n </div>\n <div className=\"flex flex-row w-full flex-1 items-center gap-1\">\n <DropdownMenu open={open} onOpenChange={setOpen}>\n <DropdownMenuTrigger\n className=\"group w-80 font-medium text-sm\"\n disabled={!tenant?.name}\n onClick={() => {\n setOpen(true);\n }}\n >\n {tenant?.name ?? 'Loading...'}\n <ChevronDown className=\"transition-transform duration-200 ease-in-out group-data-[state=open]:rotate-180\" />\n </DropdownMenuTrigger>\n\n <DropdownMenuContent className=\"flex flex-col gap-0.5 max-h-96 overflow-auto custom-scrollbar w-80\">\n {tenants?.map((t) => (\n <DropdownMenuItem\n key={t.id}\n onClick={() => setActiveTenant(t.id)}\n active={t.id === tenant?.id}\n >\n {t.name}\n </DropdownMenuItem>\n ))}\n <DropdownMenuSeparator />\n <CreateTenant\n {...props}\n onSuccess={(d) => {\n setOpen(false);\n setActiveTenant(d.id);\n refetch();\n }}\n trigger={\n <Button variant=\"ghost\" className=\"self-center\">\n <Plus size={18} /> Create new organization\n </Button>\n }\n />\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n </div>\n </div>\n );\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type AllowedAny = any;\ntype CreateTenantProps = ComponentFetchProps & {\n trigger: React.ReactElement;\n fetchUrl?: string;\n beforeMutate?: (data: AllowedAny) => AllowedAny;\n onSuccess?: (res: Tenant) => void;\n onError?: (error: Error, data: AllowedAny) => void;\n baseUrl?: string;\n};\ntype FormValues = { name: string };\nfunction CreateTenant(props: CreateTenantProps) {\n const [open, setOpen] = useState(false);\n const { trigger, beforeMutate, onSuccess, onError } = props;\n const form = useForm<FormValues>({ defaultValues: { name: '' } });\n const mutation = useMutation({\n mutationFn: async (_data) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const data = possibleData ?? _data;\n\n const response = await componentFetch(\n props?.fetchUrl ?? '/tenants',\n {\n method: 'POST',\n body: JSON.stringify(data),\n },\n props\n );\n if (!response.ok) {\n throw new Error('Failed to fetch tenants');\n }\n\n return response.json();\n },\n onSuccess: async (data: AllowedAny) => {\n setOpen(false);\n\n onSuccess && onSuccess(data);\n },\n onError,\n });\n const onSubmit = useCallback(\n (data: FormValues) => {\n mutation.mutate(data);\n },\n [mutation]\n );\n return (\n <Dialog open={open} onOpenChange={setOpen}>\n <DialogTrigger asChild>{trigger}</DialogTrigger>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Create an organization</DialogTitle>\n <DialogDescription>\n An organization is a group of users.\n </DialogDescription>\n </DialogHeader>\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)}>\n <FormField\n control={form.control}\n name=\"name\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Name</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Organization name\"\n {...field}\n autoFocus\n />\n </FormControl>\n <FormDescription>\n This is the name of your organization.\n </FormDescription>\n <FormMessage />\n </FormItem>\n )}\n />\n <Button type=\"submit\" className=\"py-2\" loading={mutation.isPending}>\n Submit\n </Button>\n </form>\n </Form>\n </DialogContent>\n </Dialog>\n );\n}\n","'use client';\n\nimport * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Trigger\n ref={ref}\n className={cn(\n 'focus-visible:outline-hidden hover:bg-accent focus:bg-accent flex flex-row gap-2 items-center justify-between px-4 py-2 rounded-lg border data-disabled:pointer-events-none data-disabled:opacity-50',\n className\n )}\n {...props}\n />\n));\nDropdownMenuTrigger.displayName = DropdownMenuPrimitive.Trigger.displayName;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 {...props}\n />\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n '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 {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n active?: boolean;\n }\n>(({ className, inset, active, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n active && 'bg-accent text-accent-foreground',\n className\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n 'px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n {...props}\n />\n );\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n};\n","'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ComponentRef<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/80 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.ComponentRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, 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 bg-background 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%] sm:rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden 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 <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\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(\n 'flex flex-col space-y-1.5 text-center sm:text-left',\n className\n )}\n {...props}\n />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\n className\n )}\n {...props}\n />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ComponentRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'text-lg 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.ComponentRef<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-muted-foreground', className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import React, { useCallback, useEffect } from 'react';\nimport { useQuery } from '@tanstack/react-query';\n\nimport { Tenant } from '../../../server/src/tenants/types';\nimport { TENANT_COOKIE } from '../../../server/src/utils/constants';\nimport { componentFetch } from '../../lib/utils';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { HookProps } from './types';\n\nexport function useTenants(params: HookProps & { disableQuery?: boolean }) {\n const { disableQuery, tenants, baseUrl = '' } = params;\n const queryClient = useQueryClientOrDefault(params.client);\n\n // Using useQuery to fetch tenants data\n const query = useQuery<Tenant[]>(\n {\n queryKey: ['tenants', baseUrl],\n queryFn: async () => {\n const response = await componentFetch(\n params.fetchUrl ?? '/tenants',\n {\n headers: {\n 'content-type': 'application/json',\n },\n },\n params\n );\n\n if (!response.ok) {\n throw new Error('Failed to fetch tenants');\n }\n\n return response.json();\n },\n enabled: !disableQuery || tenants?.length === 0,\n initialData: tenants,\n },\n queryClient\n );\n\n return query;\n}\n\nexport function useTenantId(\n params?: HookProps & { tenant?: Tenant }\n): [string | undefined, (tenant: string) => void] {\n const [tenant, setTenant] = React.useState<string | undefined>(\n params?.activeTenant ?? params?.tenant?.id\n );\n const { refetch } = useTenants({ disableQuery: true, ...params });\n\n useEffect(() => {\n if (!tenant) {\n // can't trust this value until we get the tenant id, which probably needs set in a call.\n const tenantId = getCookie(TENANT_COOKIE);\n if (tenantId) {\n setTenant(tenantId);\n } else {\n // if there's nothing in the cookie, we need to ask for tenants again\n refetch();\n }\n }\n }, [refetch, tenant]);\n const { onTenantChange } = params ?? {};\n\n const handleTenantSet = useCallback(\n (tenant: string) => {\n setTenant(tenant);\n setCookie(TENANT_COOKIE, tenant);\n onTenantChange ? onTenantChange(tenant) : null;\n },\n [onTenantChange]\n );\n return [tenant, handleTenantSet];\n}\n\nconst getCookie = (name: string) => {\n const cookieArr = document.cookie.split('; ');\n for (const cookie of cookieArr) {\n const [cookieName, cookieValue] = cookie.split('=');\n if (cookieName === name) {\n return cookieValue;\n }\n }\n return null;\n};\n\nconst setCookie = (name: string, value: string) => {\n document.cookie = `${name}=${value}; path=/; samesite=lax`;\n};\n","// these two are a pass though\nexport const TENANT_COOKIE = 'nile.tenant-id';\nexport const USER_COOKIE = 'nile.user-id';\nexport const HEADER_ORIGIN = 'nile-origin';\n// this one is not\nexport const HEADER_SECURE_COOKIES = 'nile-secure-cookies';\n","'use client';\nimport { BadgeCheck, CalendarCheck, CircleUserRound, Mail } from 'lucide-react';\nimport React, { useMemo } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nimport { cn } from '../../lib/utils';\n\nimport { HookProps, useMe } from './hooks';\n\nexport { useMe } from './hooks';\n\ntype Props = HookProps & {\n profilePicturePlaceholder?: React.ReactElement;\n className?: string;\n};\nconst queryClient = new QueryClient();\nexport default function UserInfo(props: Props) {\n return (\n <QueryClientProvider client={queryClient ?? props.client}>\n <UserInfoC {...props} />\n </QueryClientProvider>\n );\n}\nfunction UserInfoC(props: Props) {\n const user = useMe(props);\n const picture = React.useMemo(() => {\n if (user && typeof user === 'object' && 'picture' in user && user.picture) {\n return (\n <img\n src={user.picture}\n alt={`${user.name} profile picture`}\n referrerPolicy=\"no-referrer\"\n />\n );\n }\n\n if (props.profilePicturePlaceholder) {\n return props.profilePicturePlaceholder;\n }\n return (\n <div\n className=\"drop-shadow-md\"\n style={{\n background: 'linear-gradient(90deg, #F4C587, #D6D3E9, #99D2EC)',\n }}\n >\n <CircleUserRound\n size={100}\n className=\"opacity-70 stroke-black\"\n style={{ strokeWidth: '.5px' }}\n />\n </div>\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [user == null]);\n\n const name = useMemo(() => {\n if (user?.name) {\n return user?.name;\n }\n let out = '';\n if (user?.givenName) {\n out = user?.givenName;\n }\n if (user?.familyName) {\n out = `${out} ${user?.familyName}`;\n }\n return out;\n }, [user?.familyName, user?.givenName, user?.name]);\n\n if (!user) {\n return 'Loading...';\n }\n return (\n <div className={cn(props.className, 'flex flex-col gap-2 items-center')}>\n <div className=\"flex flex-col gap-5 pb-2 items-center\">\n <div className=\"flex flex-col gap-2 items-center w-36 mx-auto\">\n <div className=\"rounded-full border border-background overflow-hidden shadow-md\">\n {picture}\n </div>\n </div>\n <div className=\"font-bold flex flex-row gap-1 capitalize\">{name}</div>\n </div>\n <div className=\"flex flex-row gap-5 justify-between w-full\">\n <div className=\"flex flex-row gap-2 text-sm items-center w-36\">\n <Mail size={14} />\n Email:\n </div>\n <div className=\"flex flex-row gap-1 items-center\">\n {user.emailVerified ? (\n <BadgeCheck className=\"stroke-white fill-green-700\" size={14} />\n ) : (\n <BadgeCheck className=\"opacity-40\" size={14} />\n )}\n {user.email}{' '}\n </div>\n </div>\n {user.created ? (\n <div className=\"flex flex-row gap-5 justify-between w-full\">\n <div className=\"flex flex-row gap-2 text-sm items-center w-36\">\n <CalendarCheck size={14} />\n Created:\n </div>\n {new Date(user.created).toLocaleString()}\n </div>\n ) : null}\n </div>\n );\n}\n","'use client';\nimport { QueryClient, useQuery } from '@tanstack/react-query';\nimport { ActiveSession } from '@niledatabase/client';\n\nimport { componentFetch, ComponentFetchProps } from '../../lib/utils';\nimport { User } from '../../../server/src/users/types';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nexport type HookProps = ComponentFetchProps & {\n user?: User | undefined | null;\n baseUrl?: string;\n client?: QueryClient;\n fetchUrl?: string;\n};\n\nexport function useMe(props?: HookProps): User | null {\n const { baseUrl = '', fetchUrl, client, user, auth } = props ?? {};\n const queryClient = useQueryClientOrDefault(client);\n const { data, isLoading } = useQuery(\n {\n queryKey: ['me', baseUrl],\n queryFn: async () => {\n const res = await componentFetch(fetchUrl ?? '/me', props);\n return await res.json();\n },\n enabled: user == null,\n },\n queryClient\n );\n\n if (user || data) {\n return user ?? data;\n }\n // we possibly have email, so return that while we wait for `me` to load\n if (auth && !(user && isLoading)) {\n return (auth.state?.session as ActiveSession)?.user ?? data;\n }\n return null;\n}\n","import React from 'react';\n\nimport { Props } from '../types';\n\nimport FormReset from './Form';\n\nexport default function ResetPasswordForm(props: Props) {\n return (\n <div className=\"flex flex-col gap-4\">\n <h2 className=\"font-sans text-3xl\">Request password reset</h2>\n <FormReset {...props} />\n </div>\n );\n}\n","'use client';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\nimport React from 'react';\n\nimport { Button } from '../../../components/ui/button';\nimport { Email, Form } from '../../../components/ui/form';\nimport { useResetPassword } from '../hooks';\nimport { Props } from '../types';\n\nconst queryClient = new QueryClient();\nexport default function ResetPasswordForm(props: Props) {\n return (\n <QueryClientProvider client={props.client ?? queryClient}>\n <ResetForm {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction ResetForm(props: Props) {\n const { defaultValues, ...params } = props;\n const form = useForm({ defaultValues: { email: '', ...defaultValues } });\n const resetPassword = useResetPassword({ ...params, redirect: true });\n return (\n <Form {...form}>\n <form\n className=\"py-2\"\n onSubmit={form.handleSubmit(({ email }) => {\n resetPassword({ email });\n })}\n >\n <Email />\n <Button type=\"submit\">Reset password</Button>\n </form>\n </Form>\n );\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { resetPassword, forgotPassword } from '@niledatabase/client';\n\nimport { useCsrf } from '../../lib/utils';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { MutateFnParams, Params } from './types';\n\nexport function useResetPassword(params?: Params) {\n const {\n auth,\n baseUrl = '',\n beforeMutate,\n client,\n callbackUrl,\n fetchUrl,\n init,\n onError,\n onSuccess,\n redirect = false,\n client: paramsClient,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client ?? paramsClient);\n const mutation = useMutation(\n {\n mutationFn: async (_data: MutateFnParams) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const data = possibleData ?? _data;\n\n return await resetPassword({\n auth,\n baseUrl,\n callbackUrl,\n fetchUrl,\n init,\n redirect,\n ...data,\n });\n },\n onSuccess: (data) => {\n onSuccess && onSuccess(data);\n },\n onError,\n },\n queryClient\n );\n\n useCsrf(params);\n\n return mutation.mutate;\n}\n\nexport function useForgotPassword(params?: Params) {\n const {\n auth,\n baseUrl = '',\n beforeMutate,\n callbackUrl,\n fetchUrl,\n init,\n client,\n onError,\n onSuccess,\n redirect = false,\n client: paramsClient,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client ?? paramsClient);\n const mutation = useMutation(\n {\n mutationFn: async (_data: { password: string }) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const data = possibleData ?? _data;\n\n return await forgotPassword({\n auth,\n baseUrl,\n callbackUrl,\n fetchUrl,\n init,\n redirect,\n ...data,\n });\n },\n onSuccess: (data) => {\n onSuccess && onSuccess(data);\n },\n onError,\n },\n queryClient\n );\n\n useCsrf(params);\n\n return mutation.mutate;\n}\n","'use client';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport React from 'react';\n\nimport { Props } from '../types';\nimport { cn } from '../../../lib/utils';\n\nimport PasswordResetForm from './Form';\n\nconst queryClient = new QueryClient();\n\nexport default function ResetPasswordForm(params: Props) {\n const { client, ...props } = params;\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <ResetForm {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction ResetForm({ className, ...props }: Props) {\n return (\n <div className={cn(className, 'flex flex-col gap-4')}>\n <h2 className=\"font-sans text-3xl\">Reset password</h2>\n <PasswordResetForm {...props} />\n </div>\n );\n}\n","'use client';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\nimport React, { useEffect, useState } from 'react';\n\nimport { Input } from '../../../components/ui/input';\nimport { Button } from '../../../components/ui/button';\nimport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n Password,\n} from '../../../components/ui/form';\nimport { useForgotPassword, useResetPassword } from '../hooks';\nimport { Props } from '../types';\n\nconst queryClient = new QueryClient();\nexport default function ResetPasswordForm(props: Props) {\n return (\n <QueryClientProvider client={props.client ?? queryClient}>\n <ResetForm {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction ResetForm(props: Props) {\n const { defaultValues, ...params } = props;\n const form = useForm({\n defaultValues: {\n email: '',\n password: '',\n confirmPassword: '',\n ...defaultValues,\n },\n });\n const forgotPassword = useForgotPassword(params);\n const resetPassword = useResetPassword(params);\n const password = form.watch('password');\n const confirmPassword = form.watch('confirmPassword');\n const [disabled, setDisabled] = useState(true);\n\n useEffect(() => {\n form.clearErrors();\n if (!password || !confirmPassword) {\n setDisabled(true);\n } else if (confirmPassword && password !== confirmPassword) {\n if (password !== confirmPassword) {\n form.setError('confirmPassword', {\n message: 'Passwords must match.',\n });\n if (!disabled) {\n setDisabled(true);\n }\n }\n } else {\n setDisabled(false);\n }\n }, [password, confirmPassword, disabled, form]);\n\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(({ email, password }) => {\n if (!email) {\n forgotPassword({ password });\n } else {\n resetPassword({ email, password });\n }\n })}\n className=\"py-2\"\n >\n {defaultValues?.email ? (\n <FormItem>\n <FormLabel>Email address</FormLabel>\n <Input value={defaultValues.email} disabled />\n </FormItem>\n ) : null}\n <Password />\n <FormField\n control={form.control}\n name=\"confirmPassword\"\n render={({ field }) => {\n return (\n <FormItem>\n <FormLabel>Confirm password</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Password\"\n {...field}\n type=\"password\"\n autoComplete=\"new-password\"\n />\n </FormControl>\n <FormDescription>Confirm your new password</FormDescription>\n <FormMessage />\n </FormItem>\n );\n }}\n />\n <Button\n type=\"submit\"\n disabled={Object.keys(form.formState.errors).length > 0 || disabled}\n >\n Update password\n </Button>\n </form>\n </Form>\n );\n}\n","export {\n default as EmailSignIn,\n EmailSignInButton,\n useEmailSignIn,\n} from './EmailSignIn';\n\nexport { default as Google } from './GoogleLoginButton';\n\nexport { default as Azure } from './AzureSignInButton';\n\nexport { default as Discord } from './DiscordSignInButton';\n\nexport { default as GitHub } from './GitHubSignInButton';\n\nexport { default as HubSpot } from './HubSpotSignInButton';\n\nexport { default as LinkedIn } from './LinkedInSignInButton';\n\nexport { default as Slack } from './SlackSignInButton';\n\nexport { default as X } from './XSignInButton';\n\nexport { default as Okta } from './OktaSignInButton';\n\nexport { default as SignUpForm, useSignUp } from './SignUpForm';\n\nexport { default as SignInForm, useSignIn } from './SignInForm';\n\nexport { default as SignOutButton } from './SignOutButton';\n\nexport { default as SignedIn } from './SignedIn';\n\nexport { default as SignedOut } from './SignedOut';\n\nexport {\n default as TenantSelector,\n useTenantId,\n useTenants,\n} from './TenantSelector';\n\nexport { default as UserInfo, useMe } from './UserInfo';\n\nexport {\n useResetPassword,\n PasswordResetForm,\n PasswordResetRequestForm,\n} from './resetPassword';\n\nexport { Email, Password } from '../components/ui/form';\n\nexport { SessionProvider, SessionContext, useSession } from '../lib/auth';\nexport {\n getSession,\n getCsrfToken,\n getProviders,\n signIn,\n signOut,\n auth,\n Authorizer,\n} from '@niledatabase/client';\n"],"mappings":";AACA,OAAOA,OAAW,QAClB,OAAS,eAAAC,GAAa,uBAAAC,OAA2B,wBACjD,OAAS,WAAAC,OAAe,kBACxB,OAAS,QAAAC,OAAY,eCJrB,UAAYC,MAAW,QAEvB,OAAS,QAAAC,OAAY,uBACrB,OACE,cAAAC,GAIA,gBAAAC,GACA,kBAAAC,OACK,kBCVP,OAAsB,YAAAC,OAAgB,wBCAtC,SAASC,GAAE,EAAE,CAAC,IAAI,EAAEC,EAAEC,EAAE,GAAG,GAAa,OAAO,GAAjB,UAA8B,OAAO,GAAjB,SAAmBA,GAAG,UAAoB,OAAO,GAAjB,SAAmB,GAAG,MAAM,QAAQ,CAAC,EAAE,CAAC,IAAIC,EAAE,EAAE,OAAO,IAAI,EAAE,EAAE,EAAEA,EAAE,IAAI,EAAE,CAAC,IAAIF,EAAED,GAAE,EAAE,CAAC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,KAAM,KAAIA,KAAK,EAAE,EAAEA,CAAC,IAAIC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASE,IAAM,CAAC,QAAQ,EAAE,EAAEH,EAAE,EAAEC,EAAE,GAAGC,EAAE,UAAU,OAAOF,EAAEE,EAAEF,KAAK,EAAE,UAAUA,CAAC,KAAK,EAAED,GAAE,CAAC,KAAKE,IAAIA,GAAG,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B,EAAA,KACCnB,EAAA,cAACoB,EAAA,KAAU,kBAAgB,EAC3BpB,EAAA,cAACyB,GAAA,KACCzB,EAAA,cAACqB,EAAA,CACC,YAAY,WACX,GAAGG,EACJ,KAAK,WACL,aAAa,eACf,CACF,EACAxB,EAAA,cAAC0B,GAAA,KAAgB,2BAAyB,EAC1C1B,EAAA,cAAC2B,GAAA,IAAY,CACf,EAGN,EACA3B,EAAA,cAAC4B,EAAA,CACC,KAAK,SACL,SAAU,OAAO,KAAKvB,EAAK,UAAU,MAAM,EAAE,OAAS,GAAKQ,GAC5D,iBAED,CACF,CACF,CAEJ,CDvGA,IAAMgB,GAAc,IAAIC,GAET,SAARC,GAAmCC,EAAe,CACvD,GAAM,CAAE,OAAAC,EAAQ,GAAGC,CAAM,EAAIF,EAC7B,OACEG,GAAA,cAACC,GAAA,CAAoB,OAAQH,GAAUJ,IACrCM,GAAA,cAACE,GAAA,CAAW,GAAGH,EAAO,CACxB,CAEJ,CAEA,SAASG,GAAU,CAAE,UAAAC,EAAW,GAAGJ,CAAM,EAAU,CACjD,OACEC,GAAA,cAAC,OAAI,UAAWI,EAAGD,EAAW,qBAAqB,GACjDH,GAAA,cAAC,MAAG,UAAU,sBAAqB,gBAAc,EACjDA,GAAA,cAACJ,GAAA,CAAmB,GAAGG,EAAO,CAChC,CAEJ,CEwBA,OACE,cAAAM,GACA,gBAAAC,GACA,gBAAAC,GACA,UAAAC,GACA,WAAAC,GACA,QAAAC,GACA,cAAAC,OACK","names":["React","QueryClient","QueryClientProvider","useForm","Mail","React","Slot","Controller","FormProvider","useFormContext","useQuery","r","f","n","o","clsx","createClassGroupUtils","config","classMap","createClassMap","conflictingClassGroups","conflictingClassGroupModifiers","getClassGroupId","className","classParts","split","CLASS_PART_SEPARATOR","length","shift","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","nextPart","get","classGroupFromNextClassPart","slice","undefined","validators","classRest","join","find","validator","arbitraryPropertyRegex","test","arbitraryPropertyClassName","exec","property","substring","indexOf","theme","classGroups","Map","processClassesRecursively","classGroup","forEach","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","push","Object","entries","key","path","currentClassPartObject","pathPart","has","set","func","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","value","createParseClassName","config","prefix","experimentalParseClassName","parseClassName","className","modifiers","bracketDepth","parenDepth","modifierStart","postfixModifierPosition","index","length","currentCharacter","MODIFIER_SEPARATOR","push","slice","MODIFIER_SEPARATOR_LENGTH","baseClassNameWithImportantModifier","substring","baseClassName","stripImportantModifier","hasImportantModifier","maybePostfixModifierPosition","undefined","fullPrefix","parseClassNameOriginal","startsWith","isExternal","endsWith","IMPORTANT_MODIFIER","createSortModifiers","orderSensitiveModifiers","Object","fromEntries","map","modifier","sortedModifiers","unsortedModifiers","forEach","sort","createConfigUtils","cache","createLruCache","cacheSize","sortModifiers","createClassGroupUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","getClassGroupId","getConflictingClassGroupIds","classGroupsInConflict","classNames","trim","split","result","originalClassName","hasPostfixModifier","classGroupId","variantModifier","join","modifierId","classId","includes","conflictGroups","i","group","twJoin","argument","resolvedValue","string","arguments","toValue","mix","k","createTailwindMerge","createConfigFirst","createConfigRest","cacheGet","cacheSet","functionToCall","initTailwindMerge","reduce","previousConfig","createConfigCurrent","get","set","tailwindMerge","cachedResult","apply","fromTheme","key","themeGetter","theme","isThemeGetter","arbitraryValueRegex","arbitraryVariableRegex","fractionRegex","tshirtUnitRegex","lengthUnitRegex","colorFunctionRegex","shadowRegex","imageRegex","isFraction","value","test","isNumber","Number","isNaN","isInteger","isPercent","isTshirtSize","isAny","isLengthOnly","isNever","isShadow","isImage","isAnyNonArbitrary","isArbitraryValue","isArbitraryVariable","isArbitrarySize","getIsArbitraryValue","isLabelSize","isArbitraryLength","isLabelLength","isArbitraryNumber","isLabelNumber","isArbitraryPosition","isLabelPosition","isArbitraryImage","isLabelImage","isArbitraryShadow","isLabelShadow","isArbitraryVariableLength","getIsArbitraryVariable","isArbitraryVariableFamilyName","isLabelFamilyName","isArbitraryVariablePosition","isArbitraryVariableSize","isArbitraryVariableImage","isArbitraryVariableShadow","testLabel","testValue","exec","shouldMatchNoLabel","label","getDefaultConfig","themeColor","fromTheme","themeFont","themeText","themeFontWeight","themeTracking","themeLeading","themeBreakpoint","themeContainer","themeSpacing","themeRadius","themeShadow","themeInsetShadow","themeTextShadow","themeDropShadow","themeBlur","themePerspective","themeAspect","themeEase","themeAnimate","scaleBreak","scalePosition","scalePositionWithArbitrary","isArbitraryVariable","isArbitraryValue","scaleOverflow","scaleOverscroll","scaleUnambiguousSpacing","scaleInset","isFraction","scaleGridTemplateColsRows","isInteger","scaleGridColRowStartAndEnd","span","scaleGridColRowStartOrEnd","scaleGridAutoColsRows","scaleAlignPrimaryAxis","scaleAlignSecondaryAxis","scaleMargin","scaleSizing","scaleColor","scaleBgPosition","isArbitraryVariablePosition","isArbitraryPosition","position","scaleBgRepeat","repeat","scaleBgSize","isArbitraryVariableSize","isArbitrarySize","size","scaleGradientStopPosition","isPercent","isArbitraryVariableLength","isArbitraryLength","scaleRadius","scaleBorderWidth","isNumber","scaleLineStyle","scaleBlendMode","scaleMaskImagePosition","scaleBlur","scaleRotate","scaleScale","scaleSkew","scaleTranslate","cacheSize","theme","animate","aspect","blur","isTshirtSize","breakpoint","color","isAny","container","ease","font","isAnyNonArbitrary","leading","perspective","radius","shadow","spacing","text","tracking","classGroups","columns","box","display","sr","float","clear","isolation","object","overflow","overscroll","inset","start","end","top","right","bottom","left","visibility","z","basis","flex","grow","shrink","order","col","row","gap","justify","content","items","baseline","self","p","px","py","ps","pe","pt","pr","pb","pl","m","mx","my","ms","me","mt","mr","mb","ml","w","screen","h","isArbitraryNumber","isArbitraryVariableFamilyName","list","placeholder","decoration","indent","align","whitespace","break","wrap","hyphens","bg","linear","to","radial","conic","isArbitraryVariableImage","isArbitraryImage","from","via","rounded","border","divide","outline","isArbitraryVariableShadow","isArbitraryShadow","ring","opacity","mask","closest","farthest","filter","brightness","contrast","grayscale","invert","saturate","sepia","table","caption","transition","duration","delay","backface","rotate","scale","skew","transform","origin","translate","accent","appearance","caret","scheme","cursor","resize","scroll","snap","touch","select","fill","stroke","conflictingClassGroups","conflictingClassGroupModifiers","orderSensitiveModifiers","twMerge","createTailwindMerge","getDefaultConfig","authorizer","useContext","QueryClient","QueryClientContext","fallbackQueryClient","useQueryClientOrDefault","client","contextClient","cn","inputs","twMerge","clsx","componentFetch","fetchUrl","opts","props","init","rest","_init","_rest","auth","newOpts","url","basePath","getBasePath","getBaseUrl","authorizer","usePrefetch","params","baseUrl","disableQuery","client","queryClient","useQueryClientOrDefault","useQuery","useCsrf","React","LabelPrimitive","falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions","labelVariants","cva","Label","className","props","ref","cn","React","Input","className","type","props","ref","cn","Form","FormProvider","FormFieldContext","FormField","props","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body","Email","hide","form","field","Input","Password","React","Slottable","Slot","Loader2","buttonVariants","cva","Button","asChild","children","className","disabled","loading","size","variant","props","ref","Slot","cn","Slottable","Loader2","useMutation","signIn","useEmailSignIn","params","onSuccess","onError","beforeMutate","callbackUrl","redirect","init","client","queryClient","useQueryClientOrDefault","useMutation","_data","data","res","signIn","queryClient","QueryClient","EmailSigningIn","props","client","remaining","React","QueryClientProvider","EmailSignInForm","signIn","useEmailSignIn","form","useForm","Form","email","Email","Button","Mail","Slot","React","Mail","signIn","EmailSignInButton","callbackUrl","className","variant","size","asChild","redirect","buttonText","email","onFailure","onSent","fetchUrl","baseUrl","auth","props","React","Slot","cn","buttonVariants","res","signIn","Mail","EmailSignInButton_default","React","Slot","signIn","GoogleSSOButton","callbackUrl","className","variant","size","buttonText","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","GoogleLogo","GoogleLoginButton_default","React","Slot","signIn","AzureSignInButton","callbackUrl","className","buttonText","variant","size","init","asChild","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","MicrosoftIcon","AzureSignInButton_default","React","Slot","signIn","DiscordSignInButton","callbackUrl","className","buttonText","variant","size","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","DiscordSignInButton_default","React","Slot","signIn","GitHubSignInButton","callbackUrl","className","buttonText","variant","size","init","asChild","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","GitHubSignInButton_default","React","Slot","signIn","HubSpotSignInButton","callbackUrl","className","buttonText","variant","size","init","asChild","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","HubSpotSignInButton_default","React","Slot","signIn","LinkedInSignInButton","callbackUrl","className","buttonText","variant","size","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","LinkedInSignInButton_default","React","Slot","signIn","SlackSignInButton","callbackUrl","className","buttonText","variant","size","init","onClick","asChild","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","SlackSignInButton_default","React","Slot","signIn","XSignInButton","callbackUrl","className","buttonText","variant","size","init","onClick","asChild","auth","fetchUrl","baseUrl","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","XSignInButton_default","React","Slot","signIn","OktaSignInButton","callbackUrl","className","buttonText","variant","size","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","OktaLogo","OktaSignInButton_default","React","React","QueryClient","QueryClientProvider","useForm","useMutation","signUp","useSignUp","params","client","onSuccess","onError","beforeMutate","remaining","queryClient","useQueryClientOrDefault","mutation","useMutation","_data","possibleData","payload","data","error","signUp","usePrefetch","queryClient","QueryClient","SignUpForm","props","client","React","QueryClientProvider","SignInForm","signUp","useSignUp","form","useForm","Form","email","password","Email","Password","Button","SigningUp","className","props","React","cn","SignUpForm","React","React","QueryClient","QueryClientProvider","useForm","useMutation","signIn","useSignIn","params","onSuccess","onError","beforeMutate","callbackUrl","init","baseUrl","fetchUrl","resetUrl","auth","redirect","client","queryClient","useQueryClientOrDefault","useMutation","_data","d","data","res","signIn","queryClient","QueryClient","SigningIn","props","client","remaining","React","QueryClientProvider","SignInForm","signIn","useSignIn","form","useForm","Form","email","password","Email","Password","Button","SigningIn","className","props","React","cn","React","Slot","LogOut","signOut","SignOutButton","callbackUrl","redirect","className","buttonText","variant","size","baseUrl","fetchUrl","basePath","auth","asChild","props","React","Slot","buttonVariants","signOut","LogOut","SignOutButton_default","React","React","auth","getStatus","broadcast","useOnline","isOnline","setIsOnline","setOnline","setOffline","subscribeToAuthorizer","onStoreChange","handler","getAuthorizerSnapshot","useAuthorizerState","SessionContext","useSession","options","value","required","onUnauthenticated","requiredAndNotLoading","url","SessionProvider","props","children","refetchWhenOffline","refetchInterval","refetchOnWindowFocus","state","providedSession","session","shouldRefetch","visibilityHandler","refetchIntervalTimer","unsubscribe","status","convertSession","startSession","SignedIn","children","props","session","React","SessionProvider","SignedInChecker","className","status","useSession","React","SignedOut","children","startSession","props","session","convertSession","React","SessionProvider","SignedOutChecker","className","status","useSession","React","useCallback","useEffect","useState","QueryClient","QueryClientProvider","useMutation","ArrowLeftRight","ChevronDown","Plus","useForm","React","DropdownMenuPrimitive","Check","ChevronRight","Circle","DropdownMenu","DropdownMenuTrigger","className","props","ref","cn","DropdownMenuSubTrigger","className","inset","children","props","ref","cn","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","active","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","React","DialogPrimitive","X","Dialog","DialogTrigger","DialogPortal","DialogOverlay","className","props","ref","cn","DialogContent","children","DialogPortal","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription","React","useCallback","useEffect","useQuery","TENANT_COOKIE","useTenants","params","disableQuery","tenants","baseUrl","queryClient","useQueryClientOrDefault","useQuery","response","componentFetch","useTenantId","tenant","setTenant","React","refetch","useEffect","tenantId","getCookie","TENANT_COOKIE","onTenantChange","handleTenantSet","useCallback","setCookie","name","cookieArr","cookie","cookieName","cookieValue","value","queryClient","QueryClient","TenantSelector","props","client","React","QueryClientProvider","SelectTenant","tenants","isLoading","refetch","useTenants","buttonText","emptyText","tenantId","setActiveTenant","useTenantId","open","setOpen","useState","tenant","t","useEffect","cn","CreateTenant","Button","Plus","ArrowLeftRight","DropdownMenu","DropdownMenuTrigger","ChevronDown","DropdownMenuContent","DropdownMenuItem","DropdownMenuSeparator","trigger","beforeMutate","onSuccess","onError","form","useForm","mutation","useMutation","_data","data","response","componentFetch","onSubmit","useCallback","Dialog","DialogTrigger","DialogContent","DialogHeader","DialogTitle","DialogDescription","Form","FormField","field","FormItem","FormLabel","FormControl","Input","FormDescription","FormMessage","BadgeCheck","CalendarCheck","CircleUserRound","Mail","React","useMemo","QueryClient","QueryClientProvider","useQuery","useMe","props","baseUrl","fetchUrl","client","user","auth","queryClient","useQueryClientOrDefault","data","isLoading","useQuery","componentFetch","queryClient","QueryClient","UserInfo","props","React","QueryClientProvider","UserInfoC","user","useMe","picture","CircleUserRound","name","useMemo","out","cn","Mail","BadgeCheck","CalendarCheck","React","QueryClient","QueryClientProvider","useForm","React","useMutation","resetPassword","forgotPassword","useResetPassword","params","auth","baseUrl","beforeMutate","client","callbackUrl","fetchUrl","init","onError","onSuccess","redirect","paramsClient","queryClient","useQueryClientOrDefault","mutation","useMutation","_data","data","resetPassword","useCsrf","useForgotPassword","forgotPassword","queryClient","QueryClient","ResetPasswordForm","props","React","QueryClientProvider","ResetForm","defaultValues","params","form","useForm","resetPassword","useResetPassword","Form","email","Email","Button","ResetPasswordForm","props","React","QueryClient","QueryClientProvider","React","QueryClient","QueryClientProvider","useForm","React","useEffect","useState","queryClient","QueryClient","ResetPasswordForm","props","React","QueryClientProvider","ResetForm","defaultValues","params","form","useForm","forgotPassword","useForgotPassword","resetPassword","useResetPassword","password","confirmPassword","disabled","setDisabled","useState","useEffect","Form","email","FormItem","FormLabel","Input","Password","FormField","field","FormControl","FormDescription","FormMessage","Button","queryClient","QueryClient","ResetPasswordForm","params","client","props","React","QueryClientProvider","ResetForm","className","cn","getSession","getCsrfToken","getProviders","signIn","signOut","auth","Authorizer"]}
1
+ {"version":3,"sources":["../src/EmailSignIn/Form.tsx","../components/ui/form.tsx","../lib/utils.ts","../../../node_modules/clsx/dist/clsx.mjs","../../../node_modules/tailwind-merge/src/lib/class-group-utils.ts","../../../node_modules/tailwind-merge/src/lib/lru-cache.ts","../../../node_modules/tailwind-merge/src/lib/parse-class-name.ts","../../../node_modules/tailwind-merge/src/lib/sort-modifiers.ts","../../../node_modules/tailwind-merge/src/lib/config-utils.ts","../../../node_modules/tailwind-merge/src/lib/merge-classlist.ts","../../../node_modules/tailwind-merge/src/lib/tw-join.ts","../../../node_modules/tailwind-merge/src/lib/create-tailwind-merge.ts","../../../node_modules/tailwind-merge/src/lib/from-theme.ts","../../../node_modules/tailwind-merge/src/lib/validators.ts","../../../node_modules/tailwind-merge/src/lib/default-config.ts","../../../node_modules/tailwind-merge/src/lib/merge-configs.ts","../../../node_modules/tailwind-merge/src/lib/extend-tailwind-merge.ts","../../../node_modules/tailwind-merge/src/lib/tw-merge.ts","../lib/queryClient.ts","../components/ui/label.tsx","../../../node_modules/class-variance-authority/dist/index.mjs","../components/ui/input.tsx","../components/ui/button.tsx","../src/EmailSignIn/hooks.ts","../src/EmailSignIn/EmailSignInButton.tsx","../src/GoogleLoginButton/GoogleLoginButton.tsx","../src/AzureSignInButton/index.tsx","../src/DiscordSignInButton/index.tsx","../src/GitHubSignInButton/index.tsx","../src/HubSpotSignInButton/index.tsx","../src/LinkedInSignInButton/index.tsx","../src/SlackSignInButton/index.tsx","../src/XSignInButton/index.tsx","../src/OktaSignInButton/index.tsx","../src/SignUpForm/SignUpForm.tsx","../src/SignUpForm/Form.tsx","../src/SignUpForm/hooks.tsx","../src/SignInForm/SignInForm.tsx","../src/SignInForm/Form.tsx","../src/SignInForm/hooks.tsx","../src/SignOutButton/index.tsx","../src/SignedIn/index.tsx","../lib/auth/index.tsx","../src/SignedOut/index.tsx","../src/MultiFactor/hooks.ts","../src/MultiFactor/utils.ts","../src/MultiFactor/SetupAuthenticator.tsx","../src/MultiFactor/RecoveryKeys.tsx","../src/MultiFactor/MultiFactorVerify.tsx","../src/MultiFactor/RecoveryCodeForm.tsx","../src/MultiFactor/SetupEmail.tsx","../src/MultiFactor/ChallengeContent.tsx","../src/TenantSelector/index.tsx","../components/ui/dropdown-menu.tsx","../components/ui/dialog.tsx","../src/TenantSelector/hooks.ts","../../server/src/utils/constants.ts","../src/UserInfo/index.tsx","../src/UserInfo/hooks.tsx","../src/resetPassword/PasswordResetRequestForm/index.tsx","../src/resetPassword/PasswordResetRequestForm/Form.tsx","../src/resetPassword/hooks.ts","../src/resetPassword/ForgotPassword/index.tsx","../src/resetPassword/ForgotPassword/Form.tsx","../src/index.ts"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\nimport { Mail } from 'lucide-react';\n\nimport { Email, Form } from '../../components/ui/form';\nimport { Button } from '../../components/ui/button';\n\nimport { EmailSignInInfo, Props } from './types';\nimport { useEmailSignIn } from './hooks';\n\nconst queryClient = new QueryClient();\n\nexport default function EmailSigningIn(props: Props) {\n const { client, ...remaining } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <EmailSignInForm {...remaining} />\n </QueryClientProvider>\n );\n}\nexport function EmailSignInForm(props: Props & EmailSignInInfo) {\n const signIn = useEmailSignIn(props);\n const form = useForm({ defaultValues: { email: '' } });\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(({ email }) => signIn && signIn({ email }))}\n className=\"space-y-8\"\n >\n <Email />\n <Button type=\"submit\" className=\"flex flex-row gap-2\">\n <Mail />\n Sign in with email\n </Button>\n </form>\n </Form>\n );\n}\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from 'react-hook-form';\n\nimport { cn } from '../../lib/utils';\n\nimport { Label } from './label';\nimport { Input } from './input';\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n);\n\ntype FormFieldType = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>(\n props: ControllerProps<TFieldValues, TName>\n) => React.ReactElement;\n\nconst FormField: FormFieldType = ({ ...props }) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n);\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('py-2', className)} {...props} />\n </FormItemContext.Provider>\n );\n});\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ComponentRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return (\n <Label\n ref={ref}\n className={cn(error && 'text-destructive', className)}\n htmlFor={formItemId}\n {...props}\n />\n );\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<\n React.ComponentRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } =\n useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-sm font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nconst Email = ({ hide }: { hide?: boolean }) => {\n const form = useFormContext();\n\n return (\n <FormField\n control={form.control}\n name=\"email\"\n render={({ field }) => {\n if (hide) {\n return <input type=\"hidden\" {...field} />;\n }\n return (\n <FormItem>\n <FormLabel htmlFor={field.name}>Email</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Email\"\n {...field}\n aria-label={field.name}\n autoComplete=\"current-email\"\n required\n />\n </FormControl>\n <FormDescription>Your email address</FormDescription>\n <FormMessage />\n </FormItem>\n );\n }}\n />\n );\n};\n\nconst Password = () => {\n const form = useFormContext();\n return (\n <FormField\n control={form.control}\n name=\"password\"\n render={({ field }) => {\n return (\n <FormItem>\n <FormLabel htmlFor={field.name}>Password</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Password\"\n {...field}\n type=\"password\"\n aria-label={field.name}\n autoComplete=\"current-password\"\n required\n />\n </FormControl>\n <FormDescription>The desired password</FormDescription>\n <FormMessage />\n </FormItem>\n );\n }}\n />\n );\n};\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n Email,\n Password,\n};\n","import { QueryClient, useQuery } from '@tanstack/react-query';\nimport { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nimport {\n auth as authorizer,\n PartialAuthorizer,\n Authorizer,\n} from '@niledatabase/client';\n\nimport { useQueryClientOrDefault } from './queryClient';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\nexport type ComponentFetchProps = {\n auth?: Authorizer | PartialAuthorizer;\n init?: RequestInit;\n baseUrl?: string;\n basePath?: string;\n};\nexport function componentFetch(\n fetchUrl: string,\n opts: RequestInit | ComponentFetchProps = {},\n props?: ComponentFetchProps\n) {\n let init;\n let rest = opts;\n\n if ('init' in opts) {\n const { init: _init, ..._rest } = opts;\n init = _init;\n rest = _rest;\n }\n\n if ('auth' in opts) {\n const { auth, ..._rest } = opts;\n init = { ...init, ...(auth?.requestInit ? auth.requestInit : {}) };\n rest = _rest;\n }\n const newOpts: RequestInit = {\n ...rest,\n ...(init ? init : {}),\n ...(props?.init ? props.init : {}),\n ...(props?.auth?.requestInit ? props.auth.requestInit : {}),\n ...(rest ? rest : {}),\n };\n newOpts.headers = {\n ...('headers' in opts ? opts.headers : {}),\n 'content-type': 'application/json; charset=UTF-8',\n };\n // maybe a single `auth` object was passed, so prefer that over props\n // if we don't have a FQDN\n let url = fetchUrl;\n if (!('fetchUrl' in opts) && fetchUrl.startsWith('/')) {\n const auth: Authorizer | PartialAuthorizer | undefined =\n 'auth' in opts ? opts.auth : props?.auth;\n const basePath = getBasePath(props, opts, auth);\n const baseUrl = getBaseUrl(props, opts, auth);\n url = `${baseUrl}${basePath}${fetchUrl}`;\n }\n return fetch(url, newOpts);\n}\nconst getBaseUrl = (\n props: ComponentFetchProps | undefined,\n opts: RequestInit | ComponentFetchProps = {},\n auth: Authorizer | PartialAuthorizer | undefined\n) => {\n if (props?.baseUrl) {\n return props.baseUrl;\n }\n\n if ('baseUrl' in opts) {\n return opts.baseUrl;\n }\n\n if (auth?.state?.baseUrl) {\n return auth?.state?.baseUrl;\n }\n if (authorizer.state.baseUrl) {\n return authorizer.state.baseUrl;\n }\n};\nconst getBasePath = (\n props: ComponentFetchProps | undefined,\n opts: RequestInit | ComponentFetchProps = {},\n auth: Authorizer | PartialAuthorizer | undefined\n) => {\n if (props?.basePath) {\n return props.basePath;\n }\n\n if ('basePath' in opts) {\n return opts.basePath;\n }\n\n if (auth?.state?.basePath) {\n return auth?.state?.basePath;\n }\n if (authorizer.state.basePath) {\n return authorizer.state.basePath;\n }\n};\n\nexport type PrefetchParams = {\n baseUrl?: string;\n disableQuery?: boolean;\n init?: RequestInit;\n client?: QueryClient;\n fetchUrl?: string;\n};\nexport function usePrefetch(params?: PrefetchParams) {\n const { baseUrl = '', disableQuery, init, client, fetchUrl } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n useQuery(\n {\n queryKey: ['providers', baseUrl],\n queryFn: async () => {\n return await fetch(fetchUrl ?? `${baseUrl}/api/auth/providers`, init);\n },\n enabled: disableQuery !== true,\n },\n queryClient\n );\n useCsrf(params);\n}\nexport function useCsrf(params?: PrefetchParams) {\n const { baseUrl = '', disableQuery, init, client, fetchUrl } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n useQuery(\n {\n queryKey: ['csrf', baseUrl],\n queryFn: async () => {\n return await fetch(fetchUrl ?? `${baseUrl}/api/auth/csrf`, init);\n },\n enabled: disableQuery !== true,\n },\n queryClient\n );\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import {\n AnyClassGroupIds,\n AnyConfig,\n AnyThemeGroupIds,\n ClassGroup,\n ClassValidator,\n Config,\n ThemeGetter,\n ThemeObject,\n} from './types'\n\nexport interface ClassPartObject {\n nextPart: Map<string, ClassPartObject>\n validators: ClassValidatorObject[]\n classGroupId?: AnyClassGroupIds\n}\n\ninterface ClassValidatorObject {\n classGroupId: AnyClassGroupIds\n validator: ClassValidator\n}\n\nconst CLASS_PART_SEPARATOR = '-'\n\nexport const createClassGroupUtils = (config: AnyConfig) => {\n const classMap = createClassMap(config)\n const { conflictingClassGroups, conflictingClassGroupModifiers } = config\n\n const getClassGroupId = (className: string) => {\n const classParts = className.split(CLASS_PART_SEPARATOR)\n\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift()\n }\n\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className)\n }\n\n const getConflictingClassGroupIds = (\n classGroupId: AnyClassGroupIds,\n hasPostfixModifier: boolean,\n ) => {\n const conflicts = conflictingClassGroups[classGroupId] || []\n\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]!]\n }\n\n return conflicts\n }\n\n return {\n getClassGroupId,\n getConflictingClassGroupIds,\n }\n}\n\nconst getGroupRecursive = (\n classParts: string[],\n classPartObject: ClassPartObject,\n): AnyClassGroupIds | undefined => {\n if (classParts.length === 0) {\n return classPartObject.classGroupId\n }\n\n const currentClassPart = classParts[0]!\n const nextClassPartObject = classPartObject.nextPart.get(currentClassPart)\n const classGroupFromNextClassPart = nextClassPartObject\n ? getGroupRecursive(classParts.slice(1), nextClassPartObject)\n : undefined\n\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart\n }\n\n if (classPartObject.validators.length === 0) {\n return undefined\n }\n\n const classRest = classParts.join(CLASS_PART_SEPARATOR)\n\n return classPartObject.validators.find(({ validator }) => validator(classRest))?.classGroupId\n}\n\nconst arbitraryPropertyRegex = /^\\[(.+)\\]$/\n\nconst getGroupIdForArbitraryProperty = (className: string) => {\n if (arbitraryPropertyRegex.test(className)) {\n const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)![1]\n const property = arbitraryPropertyClassName?.substring(\n 0,\n arbitraryPropertyClassName.indexOf(':'),\n )\n\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property\n }\n }\n}\n\n/**\n * Exported for testing only\n */\nexport const createClassMap = (config: Config<AnyClassGroupIds, AnyThemeGroupIds>) => {\n const { theme, classGroups } = config\n const classMap: ClassPartObject = {\n nextPart: new Map<string, ClassPartObject>(),\n validators: [],\n }\n\n for (const classGroupId in classGroups) {\n processClassesRecursively(classGroups[classGroupId]!, classMap, classGroupId, theme)\n }\n\n return classMap\n}\n\nconst processClassesRecursively = (\n classGroup: ClassGroup<AnyThemeGroupIds>,\n classPartObject: ClassPartObject,\n classGroupId: AnyClassGroupIds,\n theme: ThemeObject<AnyThemeGroupIds>,\n) => {\n classGroup.forEach((classDefinition) => {\n if (typeof classDefinition === 'string') {\n const classPartObjectToEdit =\n classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition)\n classPartObjectToEdit.classGroupId = classGroupId\n return\n }\n\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(\n classDefinition(theme),\n classPartObject,\n classGroupId,\n theme,\n )\n return\n }\n\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId,\n })\n\n return\n }\n\n Object.entries(classDefinition).forEach(([key, classGroup]) => {\n processClassesRecursively(\n classGroup,\n getPart(classPartObject, key),\n classGroupId,\n theme,\n )\n })\n })\n}\n\nconst getPart = (classPartObject: ClassPartObject, path: string) => {\n let currentClassPartObject = classPartObject\n\n path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: [],\n })\n }\n\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart)!\n })\n\n return currentClassPartObject\n}\n\nconst isThemeGetter = (func: ClassValidator | ThemeGetter): func is ThemeGetter =>\n (func as ThemeGetter).isThemeGetter\n","// Export is needed because TypeScript complains about an error otherwise:\n// Error: …/tailwind-merge/src/config-utils.ts(8,17): semantic error TS4058: Return type of exported function has or is using name 'LruCache' from external module \"…/tailwind-merge/src/lru-cache\" but cannot be named.\nexport interface LruCache<Key, Value> {\n get(key: Key): Value | undefined\n set(key: Key, value: Value): void\n}\n\n// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nexport const createLruCache = <Key, Value>(maxCacheSize: number): LruCache<Key, Value> => {\n if (maxCacheSize < 1) {\n return {\n get: () => undefined,\n set: () => {},\n }\n }\n\n let cacheSize = 0\n let cache = new Map<Key, Value>()\n let previousCache = new Map<Key, Value>()\n\n const update = (key: Key, value: Value) => {\n cache.set(key, value)\n cacheSize++\n\n if (cacheSize > maxCacheSize) {\n cacheSize = 0\n previousCache = cache\n cache = new Map()\n }\n }\n\n return {\n get(key) {\n let value = cache.get(key)\n\n if (value !== undefined) {\n return value\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value)\n return value\n }\n },\n set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value)\n } else {\n update(key, value)\n }\n },\n }\n}\n","import { AnyConfig, ParsedClassName } from './types'\n\nexport const IMPORTANT_MODIFIER = '!'\nconst MODIFIER_SEPARATOR = ':'\nconst MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length\n\nexport const createParseClassName = (config: AnyConfig) => {\n const { prefix, experimentalParseClassName } = config\n\n /**\n * Parse class name into parts.\n *\n * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n */\n let parseClassName = (className: string): ParsedClassName => {\n const modifiers = []\n\n let bracketDepth = 0\n let parenDepth = 0\n let modifierStart = 0\n let postfixModifierPosition: number | undefined\n\n for (let index = 0; index < className.length; index++) {\n let currentCharacter = className[index]\n\n if (bracketDepth === 0 && parenDepth === 0) {\n if (currentCharacter === MODIFIER_SEPARATOR) {\n modifiers.push(className.slice(modifierStart, index))\n modifierStart = index + MODIFIER_SEPARATOR_LENGTH\n continue\n }\n\n if (currentCharacter === '/') {\n postfixModifierPosition = index\n continue\n }\n }\n\n if (currentCharacter === '[') {\n bracketDepth++\n } else if (currentCharacter === ']') {\n bracketDepth--\n } else if (currentCharacter === '(') {\n parenDepth++\n } else if (currentCharacter === ')') {\n parenDepth--\n }\n }\n\n const baseClassNameWithImportantModifier =\n modifiers.length === 0 ? className : className.substring(modifierStart)\n const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier)\n const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier\n const maybePostfixModifierPosition =\n postfixModifierPosition && postfixModifierPosition > modifierStart\n ? postfixModifierPosition - modifierStart\n : undefined\n\n return {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition,\n }\n }\n\n if (prefix) {\n const fullPrefix = prefix + MODIFIER_SEPARATOR\n const parseClassNameOriginal = parseClassName\n parseClassName = (className) =>\n className.startsWith(fullPrefix)\n ? parseClassNameOriginal(className.substring(fullPrefix.length))\n : {\n isExternal: true,\n modifiers: [],\n hasImportantModifier: false,\n baseClassName: className,\n maybePostfixModifierPosition: undefined,\n }\n }\n\n if (experimentalParseClassName) {\n const parseClassNameOriginal = parseClassName\n parseClassName = (className) =>\n experimentalParseClassName({ className, parseClassName: parseClassNameOriginal })\n }\n\n return parseClassName\n}\n\nconst stripImportantModifier = (baseClassName: string) => {\n if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {\n return baseClassName.substring(0, baseClassName.length - 1)\n }\n\n /**\n * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.\n * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864\n */\n if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {\n return baseClassName.substring(1)\n }\n\n return baseClassName\n}\n","import { AnyConfig } from './types'\n\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nexport const createSortModifiers = (config: AnyConfig) => {\n const orderSensitiveModifiers = Object.fromEntries(\n config.orderSensitiveModifiers.map((modifier) => [modifier, true]),\n )\n\n const sortModifiers = (modifiers: string[]) => {\n if (modifiers.length <= 1) {\n return modifiers\n }\n\n const sortedModifiers: string[] = []\n let unsortedModifiers: string[] = []\n\n modifiers.forEach((modifier) => {\n const isPositionSensitive = modifier[0] === '[' || orderSensitiveModifiers[modifier]\n\n if (isPositionSensitive) {\n sortedModifiers.push(...unsortedModifiers.sort(), modifier)\n unsortedModifiers = []\n } else {\n unsortedModifiers.push(modifier)\n }\n })\n\n sortedModifiers.push(...unsortedModifiers.sort())\n\n return sortedModifiers\n }\n\n return sortModifiers\n}\n","import { createClassGroupUtils } from './class-group-utils'\nimport { createLruCache } from './lru-cache'\nimport { createParseClassName } from './parse-class-name'\nimport { createSortModifiers } from './sort-modifiers'\nimport { AnyConfig } from './types'\n\nexport type ConfigUtils = ReturnType<typeof createConfigUtils>\n\nexport const createConfigUtils = (config: AnyConfig) => ({\n cache: createLruCache<string, string>(config.cacheSize),\n parseClassName: createParseClassName(config),\n sortModifiers: createSortModifiers(config),\n ...createClassGroupUtils(config),\n})\n","import { ConfigUtils } from './config-utils'\nimport { IMPORTANT_MODIFIER } from './parse-class-name'\n\nconst SPLIT_CLASSES_REGEX = /\\s+/\n\nexport const mergeClassList = (classList: string, configUtils: ConfigUtils) => {\n const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } =\n configUtils\n\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n const classGroupsInConflict: string[] = []\n const classNames = classList.trim().split(SPLIT_CLASSES_REGEX)\n\n let result = ''\n\n for (let index = classNames.length - 1; index >= 0; index -= 1) {\n const originalClassName = classNames[index]!\n\n const {\n isExternal,\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition,\n } = parseClassName(originalClassName)\n\n if (isExternal) {\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n continue\n }\n\n let hasPostfixModifier = !!maybePostfixModifierPosition\n let classGroupId = getClassGroupId(\n hasPostfixModifier\n ? baseClassName.substring(0, maybePostfixModifierPosition)\n : baseClassName,\n )\n\n if (!classGroupId) {\n if (!hasPostfixModifier) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n continue\n }\n\n classGroupId = getClassGroupId(baseClassName)\n\n if (!classGroupId) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n continue\n }\n\n hasPostfixModifier = false\n }\n\n const variantModifier = sortModifiers(modifiers).join(':')\n\n const modifierId = hasImportantModifier\n ? variantModifier + IMPORTANT_MODIFIER\n : variantModifier\n\n const classId = modifierId + classGroupId\n\n if (classGroupsInConflict.includes(classId)) {\n // Tailwind class omitted due to conflict\n continue\n }\n\n classGroupsInConflict.push(classId)\n\n const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier)\n for (let i = 0; i < conflictGroups.length; ++i) {\n const group = conflictGroups[i]!\n classGroupsInConflict.push(modifierId + group)\n }\n\n // Tailwind class not in conflict\n result = originalClassName + (result.length > 0 ? ' ' + result : result)\n }\n\n return result\n}\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)\n */\n\nexport type ClassNameValue = ClassNameArray | string | null | undefined | 0 | 0n | false\ntype ClassNameArray = ClassNameValue[]\n\nexport function twJoin(...classLists: ClassNameValue[]): string\nexport function twJoin() {\n let index = 0\n let argument: ClassNameValue\n let resolvedValue: string\n let string = ''\n\n while (index < arguments.length) {\n if ((argument = arguments[index++])) {\n if ((resolvedValue = toValue(argument))) {\n string && (string += ' ')\n string += resolvedValue\n }\n }\n }\n return string\n}\n\nconst toValue = (mix: ClassNameArray | string) => {\n if (typeof mix === 'string') {\n return mix\n }\n\n let resolvedValue: string\n let string = ''\n\n for (let k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if ((resolvedValue = toValue(mix[k] as ClassNameArray | string))) {\n string && (string += ' ')\n string += resolvedValue\n }\n }\n }\n\n return string\n}\n","import { createConfigUtils } from './config-utils'\nimport { mergeClassList } from './merge-classlist'\nimport { ClassNameValue, twJoin } from './tw-join'\nimport { AnyConfig } from './types'\n\ntype CreateConfigFirst = () => AnyConfig\ntype CreateConfigSubsequent = (config: AnyConfig) => AnyConfig\ntype TailwindMerge = (...classLists: ClassNameValue[]) => string\ntype ConfigUtils = ReturnType<typeof createConfigUtils>\n\nexport function createTailwindMerge(\n createConfigFirst: CreateConfigFirst,\n ...createConfigRest: CreateConfigSubsequent[]\n): TailwindMerge {\n let configUtils: ConfigUtils\n let cacheGet: ConfigUtils['cache']['get']\n let cacheSet: ConfigUtils['cache']['set']\n let functionToCall = initTailwindMerge\n\n function initTailwindMerge(classList: string) {\n const config = createConfigRest.reduce(\n (previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig),\n createConfigFirst() as AnyConfig,\n )\n\n configUtils = createConfigUtils(config)\n cacheGet = configUtils.cache.get\n cacheSet = configUtils.cache.set\n functionToCall = tailwindMerge\n\n return tailwindMerge(classList)\n }\n\n function tailwindMerge(classList: string) {\n const cachedResult = cacheGet(classList)\n\n if (cachedResult) {\n return cachedResult\n }\n\n const result = mergeClassList(classList, configUtils)\n cacheSet(classList, result)\n\n return result\n }\n\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments as any))\n }\n}\n","import { DefaultThemeGroupIds, NoInfer, ThemeGetter, ThemeObject } from './types'\n\nexport const fromTheme = <\n AdditionalThemeGroupIds extends string = never,\n DefaultThemeGroupIdsInner extends string = DefaultThemeGroupIds,\n>(key: NoInfer<DefaultThemeGroupIdsInner | AdditionalThemeGroupIds>): ThemeGetter => {\n const themeGetter = (theme: ThemeObject<DefaultThemeGroupIdsInner | AdditionalThemeGroupIds>) =>\n theme[key] || []\n\n themeGetter.isThemeGetter = true as const\n\n return themeGetter\n}\n","const arbitraryValueRegex = /^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i\nconst arbitraryVariableRegex = /^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i\nconst fractionRegex = /^\\d+\\/\\d+$/\nconst tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/\nconst lengthUnitRegex =\n /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/\nconst colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\\(.+\\)$/\n// Shadow always begins with x and y offset separated by underscore optionally prepended by inset\nconst shadowRegex = /^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/\nconst imageRegex =\n /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/\n\nexport const isFraction = (value: string) => fractionRegex.test(value)\n\nexport const isNumber = (value: string) => !!value && !Number.isNaN(Number(value))\n\nexport const isInteger = (value: string) => !!value && Number.isInteger(Number(value))\n\nexport const isPercent = (value: string) => value.endsWith('%') && isNumber(value.slice(0, -1))\n\nexport const isTshirtSize = (value: string) => tshirtUnitRegex.test(value)\n\nexport const isAny = () => true\n\nconst isLengthOnly = (value: string) =>\n // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.\n // For example, `hsl(0 0% 0%)` would be classified as a length without this check.\n // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.\n lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)\n\nconst isNever = () => false\n\nconst isShadow = (value: string) => shadowRegex.test(value)\n\nconst isImage = (value: string) => imageRegex.test(value)\n\nexport const isAnyNonArbitrary = (value: string) =>\n !isArbitraryValue(value) && !isArbitraryVariable(value)\n\nexport const isArbitrarySize = (value: string) => getIsArbitraryValue(value, isLabelSize, isNever)\n\nexport const isArbitraryValue = (value: string) => arbitraryValueRegex.test(value)\n\nexport const isArbitraryLength = (value: string) =>\n getIsArbitraryValue(value, isLabelLength, isLengthOnly)\n\nexport const isArbitraryNumber = (value: string) =>\n getIsArbitraryValue(value, isLabelNumber, isNumber)\n\nexport const isArbitraryPosition = (value: string) =>\n getIsArbitraryValue(value, isLabelPosition, isNever)\n\nexport const isArbitraryImage = (value: string) => getIsArbitraryValue(value, isLabelImage, isImage)\n\nexport const isArbitraryShadow = (value: string) =>\n getIsArbitraryValue(value, isLabelShadow, isShadow)\n\nexport const isArbitraryVariable = (value: string) => arbitraryVariableRegex.test(value)\n\nexport const isArbitraryVariableLength = (value: string) =>\n getIsArbitraryVariable(value, isLabelLength)\n\nexport const isArbitraryVariableFamilyName = (value: string) =>\n getIsArbitraryVariable(value, isLabelFamilyName)\n\nexport const isArbitraryVariablePosition = (value: string) =>\n getIsArbitraryVariable(value, isLabelPosition)\n\nexport const isArbitraryVariableSize = (value: string) => getIsArbitraryVariable(value, isLabelSize)\n\nexport const isArbitraryVariableImage = (value: string) =>\n getIsArbitraryVariable(value, isLabelImage)\n\nexport const isArbitraryVariableShadow = (value: string) =>\n getIsArbitraryVariable(value, isLabelShadow, true)\n\n// Helpers\n\nconst getIsArbitraryValue = (\n value: string,\n testLabel: (label: string) => boolean,\n testValue: (value: string) => boolean,\n) => {\n const result = arbitraryValueRegex.exec(value)\n\n if (result) {\n if (result[1]) {\n return testLabel(result[1])\n }\n\n return testValue(result[2]!)\n }\n\n return false\n}\n\nconst getIsArbitraryVariable = (\n value: string,\n testLabel: (label: string) => boolean,\n shouldMatchNoLabel = false,\n) => {\n const result = arbitraryVariableRegex.exec(value)\n\n if (result) {\n if (result[1]) {\n return testLabel(result[1])\n }\n return shouldMatchNoLabel\n }\n\n return false\n}\n\n// Labels\n\nconst isLabelPosition = (label: string) => label === 'position' || label === 'percentage'\n\nconst isLabelImage = (label: string) => label === 'image' || label === 'url'\n\nconst isLabelSize = (label: string) => label === 'length' || label === 'size' || label === 'bg-size'\n\nconst isLabelLength = (label: string) => label === 'length'\n\nconst isLabelNumber = (label: string) => label === 'number'\n\nconst isLabelFamilyName = (label: string) => label === 'family-name'\n\nconst isLabelShadow = (label: string) => label === 'shadow'\n","import { fromTheme } from './from-theme'\nimport { Config, DefaultClassGroupIds, DefaultThemeGroupIds } from './types'\nimport {\n isAny,\n isAnyNonArbitrary,\n isArbitraryImage,\n isArbitraryLength,\n isArbitraryNumber,\n isArbitraryPosition,\n isArbitraryShadow,\n isArbitrarySize,\n isArbitraryValue,\n isArbitraryVariable,\n isArbitraryVariableFamilyName,\n isArbitraryVariableImage,\n isArbitraryVariableLength,\n isArbitraryVariablePosition,\n isArbitraryVariableShadow,\n isArbitraryVariableSize,\n isFraction,\n isInteger,\n isNumber,\n isPercent,\n isTshirtSize,\n} from './validators'\n\nexport const getDefaultConfig = () => {\n /**\n * Theme getters for theme variable namespaces\n * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces\n */\n /***/\n\n const themeColor = fromTheme('color')\n const themeFont = fromTheme('font')\n const themeText = fromTheme('text')\n const themeFontWeight = fromTheme('font-weight')\n const themeTracking = fromTheme('tracking')\n const themeLeading = fromTheme('leading')\n const themeBreakpoint = fromTheme('breakpoint')\n const themeContainer = fromTheme('container')\n const themeSpacing = fromTheme('spacing')\n const themeRadius = fromTheme('radius')\n const themeShadow = fromTheme('shadow')\n const themeInsetShadow = fromTheme('inset-shadow')\n const themeTextShadow = fromTheme('text-shadow')\n const themeDropShadow = fromTheme('drop-shadow')\n const themeBlur = fromTheme('blur')\n const themePerspective = fromTheme('perspective')\n const themeAspect = fromTheme('aspect')\n const themeEase = fromTheme('ease')\n const themeAnimate = fromTheme('animate')\n\n /**\n * Helpers to avoid repeating the same scales\n *\n * We use functions that create a new array every time they're called instead of static arrays.\n * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.\n */\n /***/\n\n const scaleBreak = () =>\n ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'] as const\n const scalePosition = () =>\n [\n 'center',\n 'top',\n 'bottom',\n 'left',\n 'right',\n 'top-left',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'left-top',\n 'top-right',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'right-top',\n 'bottom-right',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'right-bottom',\n 'bottom-left',\n // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378\n 'left-bottom',\n ] as const\n const scalePositionWithArbitrary = () =>\n [...scalePosition(), isArbitraryVariable, isArbitraryValue] as const\n const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'] as const\n const scaleOverscroll = () => ['auto', 'contain', 'none'] as const\n const scaleUnambiguousSpacing = () =>\n [isArbitraryVariable, isArbitraryValue, themeSpacing] as const\n const scaleInset = () => [isFraction, 'full', 'auto', ...scaleUnambiguousSpacing()] as const\n const scaleGridTemplateColsRows = () =>\n [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue] as const\n const scaleGridColRowStartAndEnd = () =>\n [\n 'auto',\n { span: ['full', isInteger, isArbitraryVariable, isArbitraryValue] },\n isInteger,\n isArbitraryVariable,\n isArbitraryValue,\n ] as const\n const scaleGridColRowStartOrEnd = () =>\n [isInteger, 'auto', isArbitraryVariable, isArbitraryValue] as const\n const scaleGridAutoColsRows = () =>\n ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue] as const\n const scaleAlignPrimaryAxis = () =>\n [\n 'start',\n 'end',\n 'center',\n 'between',\n 'around',\n 'evenly',\n 'stretch',\n 'baseline',\n 'center-safe',\n 'end-safe',\n ] as const\n const scaleAlignSecondaryAxis = () =>\n ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'] as const\n const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()] as const\n const scaleSizing = () =>\n [\n isFraction,\n 'auto',\n 'full',\n 'dvw',\n 'dvh',\n 'lvw',\n 'lvh',\n 'svw',\n 'svh',\n 'min',\n 'max',\n 'fit',\n ...scaleUnambiguousSpacing(),\n ] as const\n const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue] as const\n const scaleBgPosition = () =>\n [\n ...scalePosition(),\n isArbitraryVariablePosition,\n isArbitraryPosition,\n { position: [isArbitraryVariable, isArbitraryValue] },\n ] as const\n const scaleBgRepeat = () => ['no-repeat', { repeat: ['', 'x', 'y', 'space', 'round'] }] as const\n const scaleBgSize = () =>\n [\n 'auto',\n 'cover',\n 'contain',\n isArbitraryVariableSize,\n isArbitrarySize,\n { size: [isArbitraryVariable, isArbitraryValue] },\n ] as const\n const scaleGradientStopPosition = () =>\n [isPercent, isArbitraryVariableLength, isArbitraryLength] as const\n const scaleRadius = () =>\n [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n 'full',\n themeRadius,\n isArbitraryVariable,\n isArbitraryValue,\n ] as const\n const scaleBorderWidth = () =>\n ['', isNumber, isArbitraryVariableLength, isArbitraryLength] as const\n const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'] as const\n const scaleBlendMode = () =>\n [\n 'normal',\n 'multiply',\n 'screen',\n 'overlay',\n 'darken',\n 'lighten',\n 'color-dodge',\n 'color-burn',\n 'hard-light',\n 'soft-light',\n 'difference',\n 'exclusion',\n 'hue',\n 'saturation',\n 'color',\n 'luminosity',\n ] as const\n const scaleMaskImagePosition = () =>\n [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition] as const\n const scaleBlur = () =>\n [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n themeBlur,\n isArbitraryVariable,\n isArbitraryValue,\n ] as const\n const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue] as const\n const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue] as const\n const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue] as const\n const scaleTranslate = () => [isFraction, 'full', ...scaleUnambiguousSpacing()] as const\n\n return {\n cacheSize: 500,\n theme: {\n animate: ['spin', 'ping', 'pulse', 'bounce'],\n aspect: ['video'],\n blur: [isTshirtSize],\n breakpoint: [isTshirtSize],\n color: [isAny],\n container: [isTshirtSize],\n 'drop-shadow': [isTshirtSize],\n ease: ['in', 'out', 'in-out'],\n font: [isAnyNonArbitrary],\n 'font-weight': [\n 'thin',\n 'extralight',\n 'light',\n 'normal',\n 'medium',\n 'semibold',\n 'bold',\n 'extrabold',\n 'black',\n ],\n 'inset-shadow': [isTshirtSize],\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose'],\n perspective: ['dramatic', 'near', 'normal', 'midrange', 'distant', 'none'],\n radius: [isTshirtSize],\n shadow: [isTshirtSize],\n spacing: ['px', isNumber],\n text: [isTshirtSize],\n 'text-shadow': [isTshirtSize],\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest'],\n },\n classGroups: {\n // --------------\n // --- Layout ---\n // --------------\n\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [\n {\n aspect: [\n 'auto',\n 'square',\n isFraction,\n isArbitraryValue,\n isArbitraryVariable,\n themeAspect,\n ],\n },\n ],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n * @deprecated since Tailwind CSS v4.0.0\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [\n { columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer] },\n ],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{ 'break-after': scaleBreak() }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{ 'break-before': scaleBreak() }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column'] }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{ 'box-decoration': ['slice', 'clone'] }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{ box: ['border', 'content'] }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: [\n 'block',\n 'inline-block',\n 'inline',\n 'flex',\n 'inline-flex',\n 'table',\n 'inline-table',\n 'table-caption',\n 'table-cell',\n 'table-column',\n 'table-column-group',\n 'table-footer-group',\n 'table-header-group',\n 'table-row-group',\n 'table-row',\n 'flow-root',\n 'grid',\n 'inline-grid',\n 'contents',\n 'list-item',\n 'hidden',\n ],\n /**\n * Screen Reader Only\n * @see https://tailwindcss.com/docs/display#screen-reader-only\n */\n sr: ['sr-only', 'not-sr-only'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n float: [{ float: ['right', 'left', 'none', 'start', 'end'] }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{ clear: ['left', 'right', 'both', 'none', 'start', 'end'] }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{ object: ['contain', 'cover', 'fill', 'none', 'scale-down'] }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{ object: scalePositionWithArbitrary() }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{ overflow: scaleOverflow() }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{ 'overflow-x': scaleOverflow() }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{ 'overflow-y': scaleOverflow() }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{ overscroll: scaleOverscroll() }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{ 'overscroll-x': scaleOverscroll() }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{ 'overscroll-y': scaleOverscroll() }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{ inset: scaleInset() }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{ 'inset-x': scaleInset() }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{ 'inset-y': scaleInset() }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{ start: scaleInset() }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{ end: scaleInset() }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{ top: scaleInset() }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{ right: scaleInset() }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{ bottom: scaleInset() }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{ left: scaleInset() }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{ z: [isInteger, 'auto', isArbitraryVariable, isArbitraryValue] }],\n\n // ------------------------\n // --- Flexbox and Grid ---\n // ------------------------\n\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [\n {\n basis: [\n isFraction,\n 'full',\n 'auto',\n themeContainer,\n ...scaleUnambiguousSpacing(),\n ],\n },\n ],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{ flex: ['row', 'row-reverse', 'col', 'col-reverse'] }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{ flex: ['nowrap', 'wrap', 'wrap-reverse'] }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{ flex: [isNumber, isFraction, 'auto', 'initial', 'none', isArbitraryValue] }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{ grow: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{ shrink: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [\n {\n order: [\n isInteger,\n 'first',\n 'last',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{ 'grid-cols': scaleGridTemplateColsRows() }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{ col: scaleGridColRowStartAndEnd() }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{ 'col-start': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{ 'col-end': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{ 'grid-rows': scaleGridTemplateColsRows() }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{ row: scaleGridColRowStartAndEnd() }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{ 'row-start': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{ 'row-end': scaleGridColRowStartOrEnd() }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense'] }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{ 'auto-cols': scaleGridAutoColsRows() }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{ 'auto-rows': scaleGridAutoColsRows() }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{ gap: scaleUnambiguousSpacing() }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{ 'gap-x': scaleUnambiguousSpacing() }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{ 'gap-y': scaleUnambiguousSpacing() }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{ justify: [...scaleAlignPrimaryAxis(), 'normal'] }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{ 'justify-items': [...scaleAlignSecondaryAxis(), 'normal'] }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{ 'justify-self': ['auto', ...scaleAlignSecondaryAxis()] }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{ content: ['normal', ...scaleAlignPrimaryAxis()] }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{ items: [...scaleAlignSecondaryAxis(), { baseline: ['', 'last'] }] }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [\n { self: ['auto', ...scaleAlignSecondaryAxis(), { baseline: ['', 'last'] }] },\n ],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{ 'place-content': scaleAlignPrimaryAxis() }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{ 'place-items': [...scaleAlignSecondaryAxis(), 'baseline'] }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{ 'place-self': ['auto', ...scaleAlignSecondaryAxis()] }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{ p: scaleUnambiguousSpacing() }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{ px: scaleUnambiguousSpacing() }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{ py: scaleUnambiguousSpacing() }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{ ps: scaleUnambiguousSpacing() }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{ pe: scaleUnambiguousSpacing() }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{ pt: scaleUnambiguousSpacing() }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{ pr: scaleUnambiguousSpacing() }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{ pb: scaleUnambiguousSpacing() }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{ pl: scaleUnambiguousSpacing() }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{ m: scaleMargin() }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{ mx: scaleMargin() }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{ my: scaleMargin() }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{ ms: scaleMargin() }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{ me: scaleMargin() }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{ mt: scaleMargin() }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{ mr: scaleMargin() }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{ mb: scaleMargin() }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{ ml: scaleMargin() }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-x': [{ 'space-x': scaleUnambiguousSpacing() }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-y': [{ 'space-y': scaleUnambiguousSpacing() }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/margin#adding-space-between-children\n */\n 'space-y-reverse': ['space-y-reverse'],\n\n // --------------\n // --- Sizing ---\n // --------------\n\n /**\n * Size\n * @see https://tailwindcss.com/docs/width#setting-both-width-and-height\n */\n size: [{ size: scaleSizing() }],\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{ w: [themeContainer, 'screen', ...scaleSizing()] }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [\n {\n 'min-w': [\n themeContainer,\n 'screen',\n /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n 'none',\n ...scaleSizing(),\n ],\n },\n ],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [\n {\n 'max-w': [\n themeContainer,\n 'screen',\n 'none',\n /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n 'prose',\n /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n { screen: [themeBreakpoint] },\n ...scaleSizing(),\n ],\n },\n ],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{ h: ['screen', 'lh', ...scaleSizing()] }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{ 'min-h': ['screen', 'lh', 'none', ...scaleSizing()] }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{ 'max-h': ['screen', 'lh', ...scaleSizing()] }],\n\n // ------------------\n // --- Typography ---\n // ------------------\n\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [\n { text: ['base', themeText, isArbitraryVariableLength, isArbitraryLength] },\n ],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{ font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber] }],\n /**\n * Font Stretch\n * @see https://tailwindcss.com/docs/font-stretch\n */\n 'font-stretch': [\n {\n 'font-stretch': [\n 'ultra-condensed',\n 'extra-condensed',\n 'condensed',\n 'semi-condensed',\n 'normal',\n 'semi-expanded',\n 'expanded',\n 'extra-expanded',\n 'ultra-expanded',\n isPercent,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{ font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont] }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [\n { 'line-clamp': [isNumber, 'none', isArbitraryVariable, isArbitraryNumber] },\n ],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [\n {\n leading: [\n /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */\n themeLeading,\n ...scaleUnambiguousSpacing(),\n ],\n },\n ],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{ 'list-image': ['none', isArbitraryVariable, isArbitraryValue] }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{ list: ['inside', 'outside'] }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [\n { list: ['disc', 'decimal', 'none', isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{ text: ['left', 'center', 'right', 'justify', 'start', 'end'] }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://v3.tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{ placeholder: scaleColor() }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{ text: scaleColor() }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{ decoration: [...scaleLineStyle(), 'wavy'] }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [\n {\n decoration: [\n isNumber,\n 'from-font',\n 'auto',\n isArbitraryVariable,\n isArbitraryLength,\n ],\n },\n ],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{ decoration: scaleColor() }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [\n { 'underline-offset': [isNumber, 'auto', isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Wrap\n * @see https://tailwindcss.com/docs/text-wrap\n */\n 'text-wrap': [{ text: ['wrap', 'nowrap', 'balance', 'pretty'] }],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{ indent: scaleUnambiguousSpacing() }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [\n {\n align: [\n 'baseline',\n 'top',\n 'middle',\n 'bottom',\n 'text-top',\n 'text-bottom',\n 'sub',\n 'super',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [\n { whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'] },\n ],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n break: [{ break: ['normal', 'words', 'all', 'keep'] }],\n /**\n * Overflow Wrap\n * @see https://tailwindcss.com/docs/overflow-wrap\n */\n wrap: [{ wrap: ['break-word', 'anywhere', 'normal'] }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{ hyphens: ['none', 'manual', 'auto'] }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{ content: ['none', isArbitraryVariable, isArbitraryValue] }],\n\n // -------------------\n // --- Backgrounds ---\n // -------------------\n\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{ bg: ['fixed', 'local', 'scroll'] }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{ 'bg-clip': ['border', 'padding', 'content', 'text'] }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{ 'bg-origin': ['border', 'padding', 'content'] }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{ bg: scaleBgPosition() }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{ bg: scaleBgRepeat() }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{ bg: scaleBgSize() }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [\n {\n bg: [\n 'none',\n {\n linear: [\n { to: ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl'] },\n isInteger,\n isArbitraryVariable,\n isArbitraryValue,\n ],\n radial: ['', isArbitraryVariable, isArbitraryValue],\n conic: [isInteger, isArbitraryVariable, isArbitraryValue],\n },\n isArbitraryVariableImage,\n isArbitraryImage,\n ],\n },\n ],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{ bg: scaleColor() }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{ from: scaleGradientStopPosition() }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{ via: scaleGradientStopPosition() }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{ to: scaleGradientStopPosition() }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{ from: scaleColor() }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{ via: scaleColor() }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{ to: scaleColor() }],\n\n // ---------------\n // --- Borders ---\n // ---------------\n\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{ rounded: scaleRadius() }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{ 'rounded-s': scaleRadius() }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{ 'rounded-e': scaleRadius() }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{ 'rounded-t': scaleRadius() }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{ 'rounded-r': scaleRadius() }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{ 'rounded-b': scaleRadius() }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{ 'rounded-l': scaleRadius() }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{ 'rounded-ss': scaleRadius() }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{ 'rounded-se': scaleRadius() }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{ 'rounded-ee': scaleRadius() }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{ 'rounded-es': scaleRadius() }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{ 'rounded-tl': scaleRadius() }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{ 'rounded-tr': scaleRadius() }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{ 'rounded-br': scaleRadius() }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{ 'rounded-bl': scaleRadius() }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{ border: scaleBorderWidth() }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{ 'border-x': scaleBorderWidth() }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{ 'border-y': scaleBorderWidth() }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{ 'border-s': scaleBorderWidth() }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{ 'border-e': scaleBorderWidth() }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{ 'border-t': scaleBorderWidth() }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{ 'border-r': scaleBorderWidth() }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{ 'border-b': scaleBorderWidth() }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{ 'border-l': scaleBorderWidth() }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-x': [{ 'divide-x': scaleBorderWidth() }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-y': [{ 'divide-y': scaleBorderWidth() }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/border-width#between-children\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{ border: [...scaleLineStyle(), 'hidden', 'none'] }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style\n */\n 'divide-style': [{ divide: [...scaleLineStyle(), 'hidden', 'none'] }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{ border: scaleColor() }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{ 'border-x': scaleColor() }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{ 'border-y': scaleColor() }],\n /**\n * Border Color S\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-s': [{ 'border-s': scaleColor() }],\n /**\n * Border Color E\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-e': [{ 'border-e': scaleColor() }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{ 'border-t': scaleColor() }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{ 'border-r': scaleColor() }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{ 'border-b': scaleColor() }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{ 'border-l': scaleColor() }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{ divide: scaleColor() }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{ outline: [...scaleLineStyle(), 'none', 'hidden'] }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [\n { 'outline-offset': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [\n { outline: ['', isNumber, isArbitraryVariableLength, isArbitraryLength] },\n ],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{ outline: scaleColor() }],\n\n // ---------------\n // --- Effects ---\n // ---------------\n\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [\n {\n shadow: [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n themeShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color\n */\n 'shadow-color': [{ shadow: scaleColor() }],\n /**\n * Inset Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow\n */\n 'inset-shadow': [\n {\n 'inset-shadow': [\n 'none',\n themeInsetShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Inset Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color\n */\n 'inset-shadow-color': [{ 'inset-shadow': scaleColor() }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring\n */\n 'ring-w': [{ ring: scaleBorderWidth() }],\n /**\n * Ring Width Inset\n * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings\n * @deprecated since Tailwind CSS v4.0.0\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color\n */\n 'ring-color': [{ ring: scaleColor() }],\n /**\n * Ring Offset Width\n * @see https://v3.tailwindcss.com/docs/ring-offset-width\n * @deprecated since Tailwind CSS v4.0.0\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158\n */\n 'ring-offset-w': [{ 'ring-offset': [isNumber, isArbitraryLength] }],\n /**\n * Ring Offset Color\n * @see https://v3.tailwindcss.com/docs/ring-offset-color\n * @deprecated since Tailwind CSS v4.0.0\n * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158\n */\n 'ring-offset-color': [{ 'ring-offset': scaleColor() }],\n /**\n * Inset Ring Width\n * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring\n */\n 'inset-ring-w': [{ 'inset-ring': scaleBorderWidth() }],\n /**\n * Inset Ring Color\n * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color\n */\n 'inset-ring-color': [{ 'inset-ring': scaleColor() }],\n /**\n * Text Shadow\n * @see https://tailwindcss.com/docs/text-shadow\n */\n 'text-shadow': [\n {\n 'text-shadow': [\n 'none',\n themeTextShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Text Shadow Color\n * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color\n */\n 'text-shadow-color': [{ 'text-shadow': scaleColor() }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{ opacity: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{ 'mix-blend': [...scaleBlendMode(), 'plus-darker', 'plus-lighter'] }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{ 'bg-blend': scaleBlendMode() }],\n /**\n * Mask Clip\n * @see https://tailwindcss.com/docs/mask-clip\n */\n 'mask-clip': [\n { 'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view'] },\n 'mask-no-clip',\n ],\n /**\n * Mask Composite\n * @see https://tailwindcss.com/docs/mask-composite\n */\n 'mask-composite': [{ mask: ['add', 'subtract', 'intersect', 'exclude'] }],\n /**\n * Mask Image\n * @see https://tailwindcss.com/docs/mask-image\n */\n 'mask-image-linear-pos': [{ 'mask-linear': [isNumber] }],\n 'mask-image-linear-from-pos': [{ 'mask-linear-from': scaleMaskImagePosition() }],\n 'mask-image-linear-to-pos': [{ 'mask-linear-to': scaleMaskImagePosition() }],\n 'mask-image-linear-from-color': [{ 'mask-linear-from': scaleColor() }],\n 'mask-image-linear-to-color': [{ 'mask-linear-to': scaleColor() }],\n 'mask-image-t-from-pos': [{ 'mask-t-from': scaleMaskImagePosition() }],\n 'mask-image-t-to-pos': [{ 'mask-t-to': scaleMaskImagePosition() }],\n 'mask-image-t-from-color': [{ 'mask-t-from': scaleColor() }],\n 'mask-image-t-to-color': [{ 'mask-t-to': scaleColor() }],\n 'mask-image-r-from-pos': [{ 'mask-r-from': scaleMaskImagePosition() }],\n 'mask-image-r-to-pos': [{ 'mask-r-to': scaleMaskImagePosition() }],\n 'mask-image-r-from-color': [{ 'mask-r-from': scaleColor() }],\n 'mask-image-r-to-color': [{ 'mask-r-to': scaleColor() }],\n 'mask-image-b-from-pos': [{ 'mask-b-from': scaleMaskImagePosition() }],\n 'mask-image-b-to-pos': [{ 'mask-b-to': scaleMaskImagePosition() }],\n 'mask-image-b-from-color': [{ 'mask-b-from': scaleColor() }],\n 'mask-image-b-to-color': [{ 'mask-b-to': scaleColor() }],\n 'mask-image-l-from-pos': [{ 'mask-l-from': scaleMaskImagePosition() }],\n 'mask-image-l-to-pos': [{ 'mask-l-to': scaleMaskImagePosition() }],\n 'mask-image-l-from-color': [{ 'mask-l-from': scaleColor() }],\n 'mask-image-l-to-color': [{ 'mask-l-to': scaleColor() }],\n 'mask-image-x-from-pos': [{ 'mask-x-from': scaleMaskImagePosition() }],\n 'mask-image-x-to-pos': [{ 'mask-x-to': scaleMaskImagePosition() }],\n 'mask-image-x-from-color': [{ 'mask-x-from': scaleColor() }],\n 'mask-image-x-to-color': [{ 'mask-x-to': scaleColor() }],\n 'mask-image-y-from-pos': [{ 'mask-y-from': scaleMaskImagePosition() }],\n 'mask-image-y-to-pos': [{ 'mask-y-to': scaleMaskImagePosition() }],\n 'mask-image-y-from-color': [{ 'mask-y-from': scaleColor() }],\n 'mask-image-y-to-color': [{ 'mask-y-to': scaleColor() }],\n 'mask-image-radial': [{ 'mask-radial': [isArbitraryVariable, isArbitraryValue] }],\n 'mask-image-radial-from-pos': [{ 'mask-radial-from': scaleMaskImagePosition() }],\n 'mask-image-radial-to-pos': [{ 'mask-radial-to': scaleMaskImagePosition() }],\n 'mask-image-radial-from-color': [{ 'mask-radial-from': scaleColor() }],\n 'mask-image-radial-to-color': [{ 'mask-radial-to': scaleColor() }],\n 'mask-image-radial-shape': [{ 'mask-radial': ['circle', 'ellipse'] }],\n 'mask-image-radial-size': [\n { 'mask-radial': [{ closest: ['side', 'corner'], farthest: ['side', 'corner'] }] },\n ],\n 'mask-image-radial-pos': [{ 'mask-radial-at': scalePosition() }],\n 'mask-image-conic-pos': [{ 'mask-conic': [isNumber] }],\n 'mask-image-conic-from-pos': [{ 'mask-conic-from': scaleMaskImagePosition() }],\n 'mask-image-conic-to-pos': [{ 'mask-conic-to': scaleMaskImagePosition() }],\n 'mask-image-conic-from-color': [{ 'mask-conic-from': scaleColor() }],\n 'mask-image-conic-to-color': [{ 'mask-conic-to': scaleColor() }],\n /**\n * Mask Mode\n * @see https://tailwindcss.com/docs/mask-mode\n */\n 'mask-mode': [{ mask: ['alpha', 'luminance', 'match'] }],\n /**\n * Mask Origin\n * @see https://tailwindcss.com/docs/mask-origin\n */\n 'mask-origin': [\n { 'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view'] },\n ],\n /**\n * Mask Position\n * @see https://tailwindcss.com/docs/mask-position\n */\n 'mask-position': [{ mask: scaleBgPosition() }],\n /**\n * Mask Repeat\n * @see https://tailwindcss.com/docs/mask-repeat\n */\n 'mask-repeat': [{ mask: scaleBgRepeat() }],\n /**\n * Mask Size\n * @see https://tailwindcss.com/docs/mask-size\n */\n 'mask-size': [{ mask: scaleBgSize() }],\n /**\n * Mask Type\n * @see https://tailwindcss.com/docs/mask-type\n */\n 'mask-type': [{ 'mask-type': ['alpha', 'luminance'] }],\n /**\n * Mask Image\n * @see https://tailwindcss.com/docs/mask-image\n */\n 'mask-image': [{ mask: ['none', isArbitraryVariable, isArbitraryValue] }],\n\n // ---------------\n // --- Filters ---\n // ---------------\n\n /**\n * Filter\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [\n {\n filter: [\n // Deprecated since Tailwind CSS v3.0.0\n '',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{ blur: scaleBlur() }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{ brightness: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{ contrast: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [\n {\n 'drop-shadow': [\n // Deprecated since Tailwind CSS v4.0.0\n '',\n 'none',\n themeDropShadow,\n isArbitraryVariableShadow,\n isArbitraryShadow,\n ],\n },\n ],\n /**\n * Drop Shadow Color\n * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color\n */\n 'drop-shadow-color': [{ 'drop-shadow': scaleColor() }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{ grayscale: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{ 'hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{ invert: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{ saturate: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{ sepia: ['', isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Backdrop Filter\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [\n {\n 'backdrop-filter': [\n // Deprecated since Tailwind CSS v3.0.0\n '',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{ 'backdrop-blur': scaleBlur() }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [\n { 'backdrop-brightness': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [\n { 'backdrop-contrast': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [\n { 'backdrop-grayscale': ['', isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [\n { 'backdrop-hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [\n { 'backdrop-invert': ['', isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [\n { 'backdrop-opacity': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [\n { 'backdrop-saturate': [isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [\n { 'backdrop-sepia': ['', isNumber, isArbitraryVariable, isArbitraryValue] },\n ],\n\n // --------------\n // --- Tables ---\n // --------------\n\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{ border: ['collapse', 'separate'] }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{ 'border-spacing': scaleUnambiguousSpacing() }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{ 'border-spacing-x': scaleUnambiguousSpacing() }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{ 'border-spacing-y': scaleUnambiguousSpacing() }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{ table: ['auto', 'fixed'] }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{ caption: ['top', 'bottom'] }],\n\n // ---------------------------------\n // --- Transitions and Animation ---\n // ---------------------------------\n\n /**\n * Transition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [\n {\n transition: [\n '',\n 'all',\n 'colors',\n 'opacity',\n 'shadow',\n 'transform',\n 'none',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Transition Behavior\n * @see https://tailwindcss.com/docs/transition-behavior\n */\n 'transition-behavior': [{ transition: ['normal', 'discrete'] }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{ duration: [isNumber, 'initial', isArbitraryVariable, isArbitraryValue] }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [\n { ease: ['linear', 'initial', themeEase, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{ delay: [isNumber, isArbitraryVariable, isArbitraryValue] }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{ animate: ['none', themeAnimate, isArbitraryVariable, isArbitraryValue] }],\n\n // ------------------\n // --- Transforms ---\n // ------------------\n\n /**\n * Backface Visibility\n * @see https://tailwindcss.com/docs/backface-visibility\n */\n backface: [{ backface: ['hidden', 'visible'] }],\n /**\n * Perspective\n * @see https://tailwindcss.com/docs/perspective\n */\n perspective: [\n { perspective: [themePerspective, isArbitraryVariable, isArbitraryValue] },\n ],\n /**\n * Perspective Origin\n * @see https://tailwindcss.com/docs/perspective-origin\n */\n 'perspective-origin': [{ 'perspective-origin': scalePositionWithArbitrary() }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{ rotate: scaleRotate() }],\n /**\n * Rotate X\n * @see https://tailwindcss.com/docs/rotate\n */\n 'rotate-x': [{ 'rotate-x': scaleRotate() }],\n /**\n * Rotate Y\n * @see https://tailwindcss.com/docs/rotate\n */\n 'rotate-y': [{ 'rotate-y': scaleRotate() }],\n /**\n * Rotate Z\n * @see https://tailwindcss.com/docs/rotate\n */\n 'rotate-z': [{ 'rotate-z': scaleRotate() }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{ scale: scaleScale() }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{ 'scale-x': scaleScale() }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{ 'scale-y': scaleScale() }],\n /**\n * Scale Z\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-z': [{ 'scale-z': scaleScale() }],\n /**\n * Scale 3D\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-3d': ['scale-3d'],\n /**\n * Skew\n * @see https://tailwindcss.com/docs/skew\n */\n skew: [{ skew: scaleSkew() }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{ 'skew-x': scaleSkew() }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{ 'skew-y': scaleSkew() }],\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [\n { transform: [isArbitraryVariable, isArbitraryValue, '', 'none', 'gpu', 'cpu'] },\n ],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{ origin: scalePositionWithArbitrary() }],\n /**\n * Transform Style\n * @see https://tailwindcss.com/docs/transform-style\n */\n 'transform-style': [{ transform: ['3d', 'flat'] }],\n /**\n * Translate\n * @see https://tailwindcss.com/docs/translate\n */\n translate: [{ translate: scaleTranslate() }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{ 'translate-x': scaleTranslate() }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{ 'translate-y': scaleTranslate() }],\n /**\n * Translate Z\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-z': [{ 'translate-z': scaleTranslate() }],\n /**\n * Translate None\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-none': ['translate-none'],\n\n // ---------------------\n // --- Interactivity ---\n // ---------------------\n\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{ accent: scaleColor() }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: [{ appearance: ['none', 'auto'] }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{ caret: scaleColor() }],\n /**\n * Color Scheme\n * @see https://tailwindcss.com/docs/color-scheme\n */\n 'color-scheme': [\n { scheme: ['normal', 'dark', 'light', 'light-dark', 'only-dark', 'only-light'] },\n ],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [\n {\n cursor: [\n 'auto',\n 'default',\n 'pointer',\n 'wait',\n 'text',\n 'move',\n 'help',\n 'not-allowed',\n 'none',\n 'context-menu',\n 'progress',\n 'cell',\n 'crosshair',\n 'vertical-text',\n 'alias',\n 'copy',\n 'no-drop',\n 'grab',\n 'grabbing',\n 'all-scroll',\n 'col-resize',\n 'row-resize',\n 'n-resize',\n 'e-resize',\n 's-resize',\n 'w-resize',\n 'ne-resize',\n 'nw-resize',\n 'se-resize',\n 'sw-resize',\n 'ew-resize',\n 'ns-resize',\n 'nesw-resize',\n 'nwse-resize',\n 'zoom-in',\n 'zoom-out',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n /**\n * Field Sizing\n * @see https://tailwindcss.com/docs/field-sizing\n */\n 'field-sizing': [{ 'field-sizing': ['fixed', 'content'] }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{ 'pointer-events': ['auto', 'none'] }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{ resize: ['none', '', 'y', 'x'] }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{ scroll: ['auto', 'smooth'] }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{ 'scroll-m': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{ 'scroll-mx': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{ 'scroll-my': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{ 'scroll-ms': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{ 'scroll-me': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{ 'scroll-mt': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{ 'scroll-mr': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{ 'scroll-mb': scaleUnambiguousSpacing() }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{ 'scroll-ml': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{ 'scroll-p': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{ 'scroll-px': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{ 'scroll-py': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{ 'scroll-ps': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{ 'scroll-pe': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{ 'scroll-pt': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{ 'scroll-pr': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{ 'scroll-pb': scaleUnambiguousSpacing() }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{ 'scroll-pl': scaleUnambiguousSpacing() }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{ snap: ['start', 'end', 'center', 'align-none'] }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{ snap: ['normal', 'always'] }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{ snap: ['none', 'x', 'y', 'both'] }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{ snap: ['mandatory', 'proximity'] }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{ touch: ['auto', 'none', 'manipulation'] }],\n /**\n * Touch Action X\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-x': [{ 'touch-pan': ['x', 'left', 'right'] }],\n /**\n * Touch Action Y\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-y': [{ 'touch-pan': ['y', 'up', 'down'] }],\n /**\n * Touch Action Pinch Zoom\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-pz': ['touch-pinch-zoom'],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{ select: ['none', 'text', 'all', 'auto'] }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [\n {\n 'will-change': [\n 'auto',\n 'scroll',\n 'contents',\n 'transform',\n isArbitraryVariable,\n isArbitraryValue,\n ],\n },\n ],\n\n // -----------\n // --- SVG ---\n // -----------\n\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{ fill: ['none', ...scaleColor()] }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [\n {\n stroke: [\n isNumber,\n isArbitraryVariableLength,\n isArbitraryLength,\n isArbitraryNumber,\n ],\n },\n ],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{ stroke: ['none', ...scaleColor()] }],\n\n // ---------------------\n // --- Accessibility ---\n // ---------------------\n\n /**\n * Forced Color Adjust\n * @see https://tailwindcss.com/docs/forced-color-adjust\n */\n 'forced-color-adjust': [{ 'forced-color-adjust': ['auto', 'none'] }],\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n size: ['w', 'h'],\n 'font-size': ['leading'],\n 'fvn-normal': [\n 'fvn-ordinal',\n 'fvn-slashed-zero',\n 'fvn-figure',\n 'fvn-spacing',\n 'fvn-fraction',\n ],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n 'line-clamp': ['display', 'overflow'],\n rounded: [\n 'rounded-s',\n 'rounded-e',\n 'rounded-t',\n 'rounded-r',\n 'rounded-b',\n 'rounded-l',\n 'rounded-ss',\n 'rounded-se',\n 'rounded-ee',\n 'rounded-es',\n 'rounded-tl',\n 'rounded-tr',\n 'rounded-br',\n 'rounded-bl',\n ],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': [\n 'border-w-x',\n 'border-w-y',\n 'border-w-s',\n 'border-w-e',\n 'border-w-t',\n 'border-w-r',\n 'border-w-b',\n 'border-w-l',\n ],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': [\n 'border-color-x',\n 'border-color-y',\n 'border-color-s',\n 'border-color-e',\n 'border-color-t',\n 'border-color-r',\n 'border-color-b',\n 'border-color-l',\n ],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n translate: ['translate-x', 'translate-y', 'translate-none'],\n 'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],\n 'scroll-m': [\n 'scroll-mx',\n 'scroll-my',\n 'scroll-ms',\n 'scroll-me',\n 'scroll-mt',\n 'scroll-mr',\n 'scroll-mb',\n 'scroll-ml',\n ],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': [\n 'scroll-px',\n 'scroll-py',\n 'scroll-ps',\n 'scroll-pe',\n 'scroll-pt',\n 'scroll-pr',\n 'scroll-pb',\n 'scroll-pl',\n ],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb'],\n touch: ['touch-x', 'touch-y', 'touch-pz'],\n 'touch-x': ['touch'],\n 'touch-y': ['touch'],\n 'touch-pz': ['touch'],\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading'],\n },\n orderSensitiveModifiers: [\n '*',\n '**',\n 'after',\n 'backdrop',\n 'before',\n 'details-content',\n 'file',\n 'first-letter',\n 'first-line',\n 'marker',\n 'placeholder',\n 'selection',\n ],\n } as const satisfies Config<DefaultClassGroupIds, DefaultThemeGroupIds>\n}\n","import { AnyConfig, ConfigExtension, NoInfer } from './types'\n\n/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nexport const mergeConfigs = <ClassGroupIds extends string, ThemeGroupIds extends string = never>(\n baseConfig: AnyConfig,\n {\n cacheSize,\n prefix,\n experimentalParseClassName,\n extend = {},\n override = {},\n }: ConfigExtension<ClassGroupIds, ThemeGroupIds>,\n) => {\n overrideProperty(baseConfig, 'cacheSize', cacheSize)\n overrideProperty(baseConfig, 'prefix', prefix)\n overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName)\n\n overrideConfigProperties(baseConfig.theme, override.theme)\n overrideConfigProperties(baseConfig.classGroups, override.classGroups)\n overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups)\n overrideConfigProperties(\n baseConfig.conflictingClassGroupModifiers,\n override.conflictingClassGroupModifiers,\n )\n overrideProperty(baseConfig, 'orderSensitiveModifiers', override.orderSensitiveModifiers)\n\n mergeConfigProperties(baseConfig.theme, extend.theme)\n mergeConfigProperties(baseConfig.classGroups, extend.classGroups)\n mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups)\n mergeConfigProperties(\n baseConfig.conflictingClassGroupModifiers,\n extend.conflictingClassGroupModifiers,\n )\n mergeArrayProperties(baseConfig, extend, 'orderSensitiveModifiers')\n\n return baseConfig\n}\n\nconst overrideProperty = <T extends object, K extends keyof T>(\n baseObject: T,\n overrideKey: K,\n overrideValue: T[K] | undefined,\n) => {\n if (overrideValue !== undefined) {\n baseObject[overrideKey] = overrideValue\n }\n}\n\nconst overrideConfigProperties = (\n baseObject: Partial<Record<string, readonly unknown[]>>,\n overrideObject: Partial<Record<string, readonly unknown[]>> | undefined,\n) => {\n if (overrideObject) {\n for (const key in overrideObject) {\n overrideProperty(baseObject, key, overrideObject[key])\n }\n }\n}\n\nconst mergeConfigProperties = (\n baseObject: Partial<Record<string, readonly unknown[]>>,\n mergeObject: Partial<Record<string, readonly unknown[]>> | undefined,\n) => {\n if (mergeObject) {\n for (const key in mergeObject) {\n mergeArrayProperties(baseObject, mergeObject, key)\n }\n }\n}\n\nconst mergeArrayProperties = <Key extends string>(\n baseObject: Partial<Record<NoInfer<Key>, readonly unknown[]>>,\n mergeObject: Partial<Record<NoInfer<Key>, readonly unknown[]>>,\n key: Key,\n) => {\n const mergeValue = mergeObject[key]\n\n if (mergeValue !== undefined) {\n baseObject[key] = baseObject[key] ? baseObject[key].concat(mergeValue) : mergeValue\n }\n}\n","import { createTailwindMerge } from './create-tailwind-merge'\nimport { getDefaultConfig } from './default-config'\nimport { mergeConfigs } from './merge-configs'\nimport { AnyConfig, ConfigExtension, DefaultClassGroupIds, DefaultThemeGroupIds } from './types'\n\ntype CreateConfigSubsequent = (config: AnyConfig) => AnyConfig\n\nexport const extendTailwindMerge = <\n AdditionalClassGroupIds extends string = never,\n AdditionalThemeGroupIds extends string = never,\n>(\n configExtension:\n | ConfigExtension<\n DefaultClassGroupIds | AdditionalClassGroupIds,\n DefaultThemeGroupIds | AdditionalThemeGroupIds\n >\n | CreateConfigSubsequent,\n ...createConfig: CreateConfigSubsequent[]\n) =>\n typeof configExtension === 'function'\n ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig)\n : createTailwindMerge(\n () => mergeConfigs(getDefaultConfig(), configExtension),\n ...createConfig,\n )\n","import { createTailwindMerge } from './create-tailwind-merge'\nimport { getDefaultConfig } from './default-config'\n\nexport const twMerge = createTailwindMerge(getDefaultConfig)\n","import { useContext } from 'react';\nimport { QueryClient, QueryClientContext } from '@tanstack/react-query';\n\nconst fallbackQueryClient = new QueryClient();\n\nexport function useQueryClientOrDefault(client?: QueryClient): QueryClient {\n const contextClient = useContext(QueryClientContext);\n return client ?? contextClient ?? fallbackQueryClient;\n}\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../../lib/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.ComponentRef<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","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","import * as React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nexport type InputProps = React.InputHTMLAttributes<HTMLInputElement>;\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nInput.displayName = 'Input';\n\nexport { Input };\n","import * as React from 'react';\nimport { Slottable, Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Loader2 } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 gap-1',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n outline:\n 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n loading?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n asChild = false,\n children,\n className,\n disabled,\n loading,\n size,\n variant,\n ...props\n },\n ref\n ) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={loading || disabled}\n {...props}\n >\n <Slottable>\n {loading ? (\n <div className=\"relative flex items-center justify-center\">\n <div className=\"absolute\">\n <Loader2 className=\"animate-spin\" />\n </div>\n <span className=\"opacity-0\">{children}</span>\n </div>\n ) : (\n children\n )}\n </Slottable>\n </Comp>\n );\n }\n);\n\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n","import { useMutation } from '@tanstack/react-query';\nimport { signIn } from '@niledatabase/client';\n\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { Props } from './types';\n\nexport function useEmailSignIn(params?: Props) {\n const {\n onSuccess,\n onError,\n beforeMutate,\n callbackUrl,\n redirect = false,\n init,\n client,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n const mutation = useMutation(\n {\n mutationFn: async (_data) => {\n const d = { ..._data, callbackUrl, redirect };\n const possibleData = beforeMutate && beforeMutate(d);\n const data = possibleData ?? d;\n const res = await signIn('email', { init, ...data });\n if (res?.error) {\n throw new Error(res.error);\n }\n return res as unknown as Response;\n },\n onSuccess,\n onError,\n },\n queryClient\n );\n return mutation.mutate;\n}\n","'use client';\nimport { Slot } from '@radix-ui/react-slot';\nimport React from 'react';\nimport { Mail } from 'lucide-react';\nimport { signIn } from '@niledatabase/client';\n\nimport { ButtonProps, buttonVariants } from '../../components/ui/button';\nimport { cn } from '../../lib/utils';\nimport { SSOButtonProps } from '../types';\n\ntype EmailError = void | {\n error: string;\n ok: boolean;\n status: number;\n url: null | string;\n};\ntype AllProps = ButtonProps &\n SSOButtonProps & {\n callbackUrl?: string;\n redirect?: boolean;\n email: string;\n onSent?: () => void;\n onFailure?: (error: EmailError) => void;\n buttonText?: string;\n };\n\n/**\n * This works when the email identity provider is configured in the admin dashboard.\n * @param props callbackUrl: the url to send the user to from their email\n * @param props redirect: redirect to the default (unbranded) 'check your email' page. default is false\n * @param props email: the email to send to\n * @param props onSent: called if the email was sent\n * @param props onFailure: called if there was a reportable\n * @returns a JSX.Element to render\n */\n\nconst EmailSignInButton = ({\n callbackUrl,\n className,\n variant,\n size,\n asChild = false,\n redirect = false,\n buttonText = 'Continue with Email',\n email,\n onFailure,\n onSent,\n fetchUrl,\n baseUrl,\n auth,\n ...props\n}: AllProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n data-slot=\"email-signin-button\"\n onClick={async () => {\n const res = await signIn('email', {\n email,\n callbackUrl,\n redirect,\n fetchUrl,\n baseUrl,\n auth,\n });\n\n if (res && 'error' in res) {\n onFailure && onFailure(res as EmailError);\n } else {\n onSent && onSent();\n }\n }}\n {...props}\n >\n {props.children ? (\n props.children\n ) : (\n <div className=\"flex flex-row gap-2 items-center\">\n <Mail />\n {buttonText}\n </div>\n )}\n </Comp>\n );\n};\n\nEmailSignInButton.displayName = 'EmailSignInButton';\nexport default EmailSignInButton;\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\n/**\n * A component for a Google login button, according to their design language.\n * This works when an identity provider is configured in the admin dashboard.\n * @param props callbackUrl: a string to override the URL provided by the context\n * @returns a JSX.Element to render\n */\nconst GoogleSSOButton = ({\n callbackUrl,\n className,\n variant,\n size,\n buttonText = 'Continue with Google',\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"google-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#4285f4] hover:bg-[#4285f4] hover:bg-opacity-85 pl-[3px] text-white'\n )}\n onClick={async (e) => {\n const res = await signIn('google', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <div className=\"inline-flex items-center flex-1 justify-between font-roboto rounded-[4px] gap-4 google-logo\">\n <div\n style={{\n background: 'white',\n borderRadius: '4px',\n padding: '0.5rem',\n }}\n >\n <GoogleLogo />\n </div>\n {buttonText}\n </div>\n </Comp>\n );\n};\nGoogleSSOButton.displayName = 'GoogleSSOButton';\nexport default GoogleSSOButton;\n\nfunction GoogleLogo() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\">\n <g fill=\"#000\" fillRule=\"evenodd\">\n <path\n d=\"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z\"\n fill=\"#EA4335\"\n />\n <path\n d=\"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z\"\n fill=\"#4285F4\"\n />\n <path\n d=\"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z\"\n fill=\"#FBBC05\"\n />\n <path\n d=\"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z\"\n fill=\"#34A853\"\n />\n <path fill=\"none\" d=\"M0 0h18v18H0z\" />\n </g>\n </svg>\n );\n}\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst AzureSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Microsoft',\n variant,\n size,\n init,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"azure-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#0078d4] hover:bg-[#0078d4] hover:bg-opacity-85 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n onClick={async (e) => {\n const res = await signIn('azure-ad', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <MicrosoftIcon />\n {buttonText}\n </Comp>\n );\n};\n\nAzureSignInButton.displayName = 'AzureSignInButton';\nexport default AzureSignInButton;\n\nconst MicrosoftIcon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 23 23\"\n className=\"w-5 h-5 ml-3\"\n >\n <path fill=\"#f3f3f3\" d=\"M0 0h23v23H0z\" />\n <path fill=\"#f35325\" d=\"M1 1h10v10H1z\" />\n <path fill=\"#81bc06\" d=\"M12 1h10v10H12z\" />\n <path fill=\"#05a6f0\" d=\"M1 12h10v10H1z\" />\n <path fill=\"#ffba08\" d=\"M12 12h10v10H12z\" />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst DiscordSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Discord',\n variant,\n size,\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#5865F2] hover:bg-[#5865F2] hover:bg-opacity-85 pl-[3px] gap-4 transition-colors border shadow-md text-white'\n )}\n data-slot=\"discord-button\"\n onClick={async (e) => {\n const res = await signIn('discord', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nDiscordSignInButton.displayName = 'DiscordSignInButton';\nexport default DiscordSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n className=\"w-5 h-5 ml-3\"\n viewBox=\"0 0 75 59\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>discord-icon</title>\n <g\n id=\"Page-1\"\n stroke=\"none\"\n strokeWidth=\"1\"\n fill=\"none\"\n fillRule=\"evenodd\"\n >\n <g\n id=\"discord-icon\"\n transform=\"translate(2.000000, 2.411745)\"\n fillRule=\"nonzero\"\n stroke=\"#636262\"\n strokeWidth=\"0\"\n >\n <path\n d=\"M60.1044999,4.48605546 C55.5791999,2.40965546 50.7264999,0.879855461 45.6526999,0.00367546142 C45.5602999,-0.0132345386 45.4679999,0.0290244614 45.4203999,0.113544461 C44.7962999,1.22355546 44.1049999,2.67165546 43.6208999,3.80985546 C38.1636999,2.99285546 32.7344999,2.99285546 27.3891999,3.80985546 C26.9049999,2.64635546 26.1885999,1.22355546 25.5616999,0.113544461 C25.5140999,0.0318444614 25.4217999,-0.0104145386 25.3293999,0.00367546142 C20.2583999,0.877055461 15.4056999,2.40685546 10.8775999,4.48605546 C10.8383999,4.50295546 10.8047999,4.53115546 10.7824999,4.56775546 C1.57794989,18.3191555 -0.94356111,31.7325555 0.29340789,44.9796555 C0.29900489,45.0444555 0.33538589,45.1064555 0.38576089,45.1458555 C6.45865989,49.6056555 12.3412999,52.3131555 18.1146999,54.1077555 C18.2070999,54.1359555 18.3049999,54.1021555 18.3637999,54.0260555 C19.7294999,52.1610555 20.9468999,50.1945555 21.9906999,48.1265555 C22.0522999,48.0054555 21.9934999,47.8617555 21.8675999,47.8138555 C19.9365999,47.0813555 18.0978999,46.1882555 16.3291999,45.1740555 C16.1892999,45.0923555 16.1780999,44.8922555 16.3067999,44.7964555 C16.6789999,44.5175555 17.0512999,44.2273555 17.4066999,43.9343555 C17.4709999,43.8808555 17.5605999,43.8695555 17.6361999,43.9033555 C29.2557999,49.2084555 41.8353999,49.2084555 53.3178999,43.9033555 C53.3934999,43.8667555 53.4830999,43.8780555 53.5501999,43.9315555 C53.9056999,44.2245555 54.2778999,44.5175555 54.6528999,44.7964555 C54.7815999,44.8922555 54.7731999,45.0923555 54.6332999,45.1740555 C52.8645999,46.2079555 51.0258999,47.0813555 49.0920999,47.8110555 C48.9661999,47.8589555 48.9101999,48.0054555 48.9717999,48.1265555 C50.0379999,50.1916555 51.2553999,52.1581555 52.5958999,54.0232555 C52.6518999,54.1021555 52.7525999,54.1359555 52.8449999,54.1077555 C58.6463999,52.3131555 64.5289999,49.6056555 70.6018999,45.1458555 C70.6550999,45.1064555 70.6886999,45.0472555 70.6942999,44.9824555 C72.1746999,29.6673555 68.2146999,16.3639555 60.1967999,4.57055546 C60.1771999,4.53115546 60.1436999,4.50295546 60.1044999,4.48605546 Z M23.7258999,36.9135555 C20.2275999,36.9135555 17.3450999,33.7018555 17.3450999,29.7575555 C17.3450999,25.8132555 20.1716999,22.6015555 23.7258999,22.6015555 C27.3079999,22.6015555 30.1625999,25.8414555 30.1065999,29.7575555 C30.1065999,33.7018555 27.2799999,36.9135555 23.7258999,36.9135555 Z M47.3177999,36.9135555 C43.8195999,36.9135555 40.9370999,33.7018555 40.9370999,29.7575555 C40.9370999,25.8132555 43.7635999,22.6015555 47.3177999,22.6015555 C50.8999999,22.6015555 53.7544999,25.8414555 53.6985999,29.7575555 C53.6985999,33.7018555 50.8999999,36.9135555 47.3177999,36.9135555 Z\"\n id=\"Shape\"\n fill=\"white\"\n />\n </g>\n </g>\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst GitHubSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with GitHub',\n variant,\n size,\n init,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"github-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-black hover:bg-slate-800 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n onClick={async (e) => {\n const res = await signIn('github', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nGitHubSignInButton.displayName = 'GitHubSignInButton';\nexport default GitHubSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 32.58 31.77\"\n fill=\"currentColor\"\n className=\"w-5 h-5 ml-3\"\n >\n <path\n fill=\"#FFFFFF\"\n d=\"M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.82.15,1.11-.36,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.36,4.36,0,0,0-1.81-2.39c-1.47-1,.12-1,.12-1a3.43,3.43,0,0,1,2.49,1.68,3.48,3.48,0,0,0,4.74,1.36,3.46,3.46,0,0,1,1-2.18c-3.62-.41-7.42-1.81-7.42-8a6.3,6.3,0,0,1,1.67-4.37,5.94,5.94,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.41,15.41,0,0,1,8.16,0c3.11-2.11,4.47-1.67,4.47-1.67A5.91,5.91,0,0,1,25,11.07a6.3,6.3,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.85,3.85,0,0,1,1.11,3c0,2.18,0,3.94,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst HubSpotSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with HubSpot',\n variant,\n size,\n init,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"hubspot-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#ff7a59] hover:bg-[#ff7a59] hover:bg-opacity-85 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n onClick={async (e) => {\n const res = await signIn('hubspot', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nHubSpotSignInButton.displayName = 'HubSpotSignInButton';\nexport default HubSpotSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n className=\"w-5 h-5 ml-3\"\n viewBox=\"6.20856283 .64498824 244.26943717 251.24701176\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"m191.385 85.694v-29.506a22.722 22.722 0 0 0 13.101-20.48v-.677c0-12.549-10.173-22.722-22.721-22.722h-.678c-12.549 0-22.722 10.173-22.722 22.722v.677a22.722 22.722 0 0 0 13.101 20.48v29.506a64.342 64.342 0 0 0 -30.594 13.47l-80.922-63.03c.577-2.083.878-4.225.912-6.375a25.6 25.6 0 1 0 -25.633 25.55 25.323 25.323 0 0 0 12.607-3.43l79.685 62.007c-14.65 22.131-14.258 50.974.987 72.7l-24.236 24.243c-1.96-.626-4-.959-6.057-.987-11.607.01-21.01 9.423-21.007 21.03.003 11.606 9.412 21.014 21.018 21.017 11.607.003 21.02-9.4 21.03-21.007a20.747 20.747 0 0 0 -.988-6.056l23.976-23.985c21.423 16.492 50.846 17.913 73.759 3.562 22.912-14.352 34.475-41.446 28.985-67.918-5.49-26.473-26.873-46.734-53.603-50.792m-9.938 97.044a33.17 33.17 0 1 1 0-66.316c17.85.625 32 15.272 32.01 33.134.008 17.86-14.127 32.522-31.977 33.165\"\n fill=\"white\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst LinkedInSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with LinkedIn',\n variant,\n size,\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"linkedin-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#0288D1] hover:bg-[#0288D1] pl-[3px] hover:bg-opacity-85 gap-4 transition-colors shadow-md text-white'\n )}\n onClick={async (e) => {\n const res = await signIn('linkedin', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nLinkedInSignInButton.displayName = 'LinkedInSignInButton';\nexport default LinkedInSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 48 48\"\n className=\"w-6 h-6 ml-3\"\n >\n <path\n fill=\"#fff\"\n d=\"M42,37c0,2.762-2.238,5-5,5H11c-2.761,0-5-2.238-5-5V11c0-2.762,2.239-5,5-5h26c2.762,0,5,2.238,5,5V37z\"\n />\n <path\n fill=\"#0288D1\"\n d=\"M12 19H17V36H12zM14.485 17h-.028C12.965 17 12 15.888 12 14.499 12 13.08 12.995 12 14.514 12c1.521 0 2.458 1.08 2.486 2.499C17 15.887 16.035 17 14.485 17zM36 36h-5v-9.099c0-2.198-1.225-3.698-3.192-3.698-1.501 0-2.313 1.012-2.707 1.99C24.957 25.543 25 26.511 25 27v9h-5V19h5v2.616C25.721 20.5 26.85 19 29.738 19c3.578 0 6.261 2.25 6.261 7.274L36 36 36 36z\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst SlackSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Slack',\n variant,\n size,\n init,\n onClick,\n asChild = false,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#4A154B] pl-[3px] hover:bg-opacity-85 gap-4 transition-colors shadow-md text-white'\n )}\n data-slot=\"slack-button\"\n onClick={async (e) => {\n const res = await signIn('slack', { callbackUrl, init });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nSlackSignInButton.displayName = 'SlackSignInButton';\nexport default SlackSignInButton;\n\nconst Icon = () => {\n return (\n <svg\n enableBackground=\"new 0 0 2447.6 2452.5\"\n viewBox=\"0 0 2447.6 2452.5\"\n className=\"w-5 h-5 ml-3\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipRule=\"evenodd\" fillRule=\"evenodd\">\n <path\n d=\"m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z\"\n fill=\"#36c5f0\"\n />\n <path\n d=\"m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z\"\n fill=\"#2eb67d\"\n />\n <path\n d=\"m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z\"\n fill=\"#ecb22e\"\n />\n <path\n d=\"m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0\"\n fill=\"#e01e5a\"\n />\n </g>\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst XSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with X',\n variant,\n size,\n init,\n onClick,\n asChild = false,\n auth,\n fetchUrl,\n baseUrl,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-black hover:bg-slate-800 pl-[3px] text-white gap-4 transition-colors shadow-md'\n )}\n data-slot=\"twitter-button\"\n onClick={async (e) => {\n const res = await signIn('twitter', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <Icon />\n {buttonText}\n </Comp>\n );\n};\n\nXSignInButton.displayName = 'XSignInButton';\nexport default XSignInButton;\n\nconst Icon = () => {\n return (\n <svg className=\"w-5 h-5 ml-3\" viewBox=\"0 0 24 24\" version=\"1.1\">\n <path\n d=\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\"\n fill=\"#ffffff\"\n />\n </svg>\n );\n};\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { signIn } from '@niledatabase/client';\n\nimport { cn } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\nimport { SSOButtonProps } from '../types';\n\nconst OktaSignInButton = ({\n callbackUrl,\n className,\n buttonText = 'Continue with Okta',\n variant,\n size,\n asChild = false,\n init,\n auth,\n fetchUrl,\n baseUrl,\n onClick,\n ...props\n}: ButtonProps & SSOButtonProps) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"okta-button\"\n className={cn(\n buttonVariants({ variant, size, className }),\n 'bg-[#181818] hover:bg-[#3f59e4] pl-[3px] gap-4 transition-colors shadow-md text-white'\n )}\n onClick={async (e) => {\n const res = await signIn('okta', {\n callbackUrl,\n init,\n auth,\n fetchUrl,\n baseUrl,\n });\n onClick && onClick(e, res);\n }}\n {...props}\n >\n <OktaLogo />\n {buttonText}\n </Comp>\n );\n};\n\nOktaSignInButton.displayName = 'OktaSignInButton';\nexport default OktaSignInButton;\n\nconst OktaLogo = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 63 63\"\n fill=\"currentColor\"\n className=\"w-5 h-5 ml-3\"\n width=\"18\"\n height=\"18\"\n >\n <g>\n <path\n d=\"M34.6,0.4l-1.3,16c-0.6-0.1-1.2-0.1-1.9-0.1c-0.8,0-1.6,0.1-2.3,0.2l-0.7-7.7c0-0.2,0.2-0.5,0.4-0.5h1.3\n\t\tl-0.6-7.8c0-0.2,0.2-0.5,0.4-0.5h4.3C34.5,0,34.7,0.2,34.6,0.4L34.6,0.4L34.6,0.4z M23.8,1.2c-0.1-0.2-0.3-0.4-0.5-0.3l-4,1.5\n\t\tC19,2.5,18.9,2.8,19,3l3.3,7.1l-1.2,0.5c-0.2,0.1-0.3,0.3-0.2,0.6l3.3,7c1.2-0.7,2.5-1.2,3.9-1.5L23.8,1.2L23.8,1.2z M14,5.7\n\t\tl9.3,13.1c-1.2,0.8-2.2,1.7-3.1,2.7L14.5,16c-0.2-0.2-0.2-0.5,0-0.6l1-0.8L10,9c-0.2-0.2-0.2-0.5,0-0.6l3.3-2.7\n\t\tC13.5,5.4,13.8,5.5,14,5.7L14,5.7z M6.2,13.2c-0.2-0.1-0.5-0.1-0.6,0.1l-2.1,3.7c-0.1,0.2,0,0.5,0.2,0.6l7.1,3.4l-0.7,1.1\n\t\tc-0.1,0.2,0,0.5,0.2,0.6l7.1,3.2c0.5-1.3,1.2-2.5,2-3.6L6.2,13.2z M0.9,23.3c0-0.2,0.3-0.4,0.5-0.3l15.5,4\n\t\tc-0.4,1.3-0.6,2.7-0.7,4.1l-7.8-0.6c-0.2,0-0.4-0.2-0.4-0.5l0.2-1.3L0.6,28c-0.2,0-0.4-0.2-0.4-0.5L0.9,23.3L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,0.2,0,0.5-0.2,0.6l-1.2,0.5l3.3,7.1\n\t\tc0.1,0.2,0,0.5-0.2,0.6L39.7,62L39.7,62L39.7,62z\"\n />\n </g>\n </svg>\n );\n};\n","import React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nimport { Props } from './types';\nimport SignUpForm from './Form';\n\nexport default function SigningUp({ className, ...props }: Props) {\n return (\n <div className={cn(className, 'flex flex-col gap-4')}>\n <div className=\"font-sans text-3xl\">Sign up</div>\n <SignUpForm {...props} />\n </div>\n );\n}\n","'use client';\nimport React from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\n\nimport { Email, Form, Password } from '../../components/ui/form';\nimport { Button } from '../../components/ui/button';\n\nimport { Props } from './types';\nimport { useSignUp } from './hooks';\n\nconst queryClient = new QueryClient();\nexport default function SignUpForm(props: Props) {\n const { client } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <SignInForm {...props} />\n </QueryClientProvider>\n );\n}\n\nexport function SignInForm(props: Props) {\n const signUp = useSignUp(props);\n const form = useForm({ defaultValues: { email: '', password: '' } });\n\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(({ email, password }) =>\n signUp({ email, password })\n )}\n className=\"space-y-8\"\n >\n <Email />\n <Password />\n <Button>Sign up</Button>\n </form>\n </Form>\n );\n}\n","import { QueryClient, useMutation } from '@tanstack/react-query';\nimport { signUp } from '@niledatabase/client';\n\nimport { usePrefetch } from '../../lib/utils';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { Props, SignUpInfo } from './types';\n\nexport function useSignUp<T extends SignUpInfo>(\n params: Props,\n client?: QueryClient\n) {\n const { onSuccess, onError, beforeMutate, ...remaining } = params;\n const queryClient = useQueryClientOrDefault(client);\n\n const mutation = useMutation(\n {\n mutationFn: async (_data) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const payload: T = { ..._data, ...possibleData };\n const { data, error } = await signUp({\n ...remaining,\n ...payload,\n });\n if (error) {\n throw new Error(error);\n }\n return data;\n },\n\n onSuccess,\n onError,\n },\n queryClient\n );\n\n usePrefetch(params);\n\n return mutation.mutate;\n}\n","'use client';\nimport React from 'react';\n\nimport { cn } from '../../lib/utils';\n\nimport FormSignIn from './Form';\nimport { Props } from './types';\n\nexport default function SigningIn({ className, ...props }: Props) {\n return (\n <div className={cn(className, 'flex flex-col gap-4')}>\n <h2 className=\"font-sans text-3xl\">Sign In</h2>\n <FormSignIn {...props} />\n </div>\n );\n}\n","'use client';\nimport React from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\n\nimport { Button } from '../../components/ui/button';\nimport { Email, Form, Password } from '../../components/ui/form';\n\nimport { useSignIn } from './hooks';\nimport { Props } from './types';\n\nconst queryClient = new QueryClient();\n\nexport default function SigningIn(props: Props) {\n const { client, ...remaining } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <SignInForm {...remaining} />\n </QueryClientProvider>\n );\n}\n\nexport function SignInForm(props: Props) {\n const signIn = useSignIn(props);\n const form = useForm({ defaultValues: { email: '', password: '' } });\n\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(\n ({ email, password }) =>\n signIn && signIn({ provider: 'credentials', email, password })\n )}\n className=\"space-y-8\"\n >\n <Email />\n <Password />\n <Button type=\"submit\">Sign In</Button>\n </form>\n </Form>\n );\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { signIn } from '@niledatabase/client';\n\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { Props, LoginInfo } from './types';\n\nexport function useSignIn(params?: Props) {\n const {\n onSuccess,\n onError,\n beforeMutate,\n callbackUrl,\n init,\n baseUrl,\n fetchUrl,\n resetUrl,\n auth,\n redirect,\n client,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client);\n const mutation = useMutation(\n {\n mutationFn: async (_data: LoginInfo) => {\n const d = { ..._data, callbackUrl };\n const possibleData = beforeMutate && beforeMutate(d);\n const data = possibleData ?? d;\n const res = await signIn(data.provider, {\n init,\n auth,\n baseUrl,\n fetchUrl,\n redirect,\n resetUrl,\n ...data,\n });\n if (!res?.ok && res?.error) {\n throw new Error(res.error);\n }\n return res;\n },\n onSuccess,\n onError,\n },\n queryClient\n );\n return mutation.mutate;\n}\n","'use client';\n\nimport React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { LogOut } from 'lucide-react';\nimport { signOut } from '@niledatabase/client';\n\nimport { ComponentFetchProps } from '../../lib/utils';\nimport { buttonVariants, ButtonProps } from '../../components/ui/button';\n\ntype Props = ButtonProps &\n ComponentFetchProps & {\n redirect?: boolean;\n callbackUrl?: string;\n buttonText?: string;\n baseUrl?: string;\n fetchUrl?: string;\n basePath?: string;\n };\n\nconst SignOutButton = ({\n callbackUrl,\n redirect,\n className,\n buttonText = 'Sign out',\n variant,\n size,\n baseUrl,\n fetchUrl,\n basePath,\n auth,\n asChild = false,\n ...props\n}: Props) => {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n data-slot=\"signout-button\"\n className={buttonVariants({ variant, size, className })}\n onClick={() => {\n signOut({ callbackUrl, redirect, baseUrl, auth, fetchUrl, basePath });\n }}\n {...props}\n >\n {props.children ? (\n props.children\n ) : (\n <div className=\"flex flex-row gap-2 items-center\">\n <LogOut />\n {buttonText}\n </div>\n )}\n </Comp>\n );\n};\n\nSignOutButton.displayName = 'SignOutButton';\nexport default SignOutButton;\n","'use client';\nimport React from 'react';\nimport { NileSession, NonErrorSession } from '@niledatabase/client';\n\nimport {\n useSession,\n SessionProvider,\n SessionProviderProps,\n} from '../../lib/auth';\n\nexport function convertSession(\n startSession: NileSession\n): NonErrorSession | undefined | null {\n if (startSession && 'exp' in startSession) {\n return {\n ...startSession,\n expires: new Date(startSession.exp * 1000).toISOString(),\n };\n }\n\n // handled previously with `SignedIn`\n return startSession as NonErrorSession;\n}\n\nexport default function SignedIn({\n children,\n session: startSession,\n ...props\n}: SessionProviderProps & {\n className?: string;\n}) {\n if (startSession instanceof Response) {\n return null;\n }\n const session = convertSession(startSession);\n return (\n <SessionProvider {...props} session={session}>\n <SignedInChecker className={props.className}>{children}</SignedInChecker>\n </SessionProvider>\n );\n}\n\nfunction SignedInChecker({\n children,\n className,\n}: {\n className?: string;\n children: React.ReactNode;\n}) {\n const { status } = useSession();\n\n if (status === 'authenticated') {\n if (className) {\n return <div className={className}>{children}</div>;\n }\n return children;\n }\n return null;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n// Note about signIn() and signOut() methods:\n//\n// On signIn() and signOut() we pass 'json: true' to request a response in JSON\n// instead of HTTP as redirect URLs on other domains are not returned to\n// requests made using the fetch API in the browser, and we need to ask the API\n// to return the response as a JSON object (the end point still defaults to\n// returning an HTTP response with a redirect for non-JavaScript clients).\n//\n// We use HTTP POST requests with CSRF Tokens to protect against CSRF attacks.\n\nimport React from 'react';\nimport {\n auth,\n getStatus,\n broadcast,\n Listener,\n NileSession,\n NonErrorSession,\n AuthState,\n} from '@niledatabase/client';\n\nexport interface SessionProviderProps {\n children: React.ReactNode;\n session?: NileSession;\n baseUrl?: string;\n basePath?: string;\n /**\n * A time interval (in seconds) after which the session will be re-fetched.\n * If set to `0` (default), the session is not polled.\n */\n refetchInterval?: number;\n /**\n * `SessionProvider` automatically refetches the session when the user switches between windows.\n * This option activates this behaviour if set to `true` (default).\n */\n refetchOnWindowFocus?: boolean;\n /**\n * Set to `false` to stop polling when the device has no internet access offline (determined by `navigator.onLine`)\n *\n * [`navigator.onLine` documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine)\n */\n refetchWhenOffline?: false;\n}\nfunction useOnline() {\n const [isOnline, setIsOnline] = React.useState(\n typeof navigator !== 'undefined' ? navigator.onLine : false\n );\n\n const setOnline = () => setIsOnline(true);\n const setOffline = () => setIsOnline(false);\n\n React.useEffect(() => {\n window.addEventListener('online', setOnline);\n window.addEventListener('offline', setOffline);\n\n return () => {\n window.removeEventListener('online', setOnline);\n window.removeEventListener('offline', setOffline);\n };\n }, []);\n\n return isOnline;\n}\n\nconst subscribeToAuthorizer = (onStoreChange: () => void) => {\n const handler: Listener = () => {\n onStoreChange();\n };\n auth.addListener(handler);\n return () => auth.removeListener(handler);\n};\n\nconst getAuthorizerSnapshot = () => auth.state;\n\nfunction useAuthorizerState() {\n return React.useSyncExternalStore(\n subscribeToAuthorizer,\n getAuthorizerSnapshot,\n getAuthorizerSnapshot\n );\n}\n\ntype UpdateSession = (\n data?: any\n) => Promise<NonErrorSession | null | undefined>;\n\ntype SessionContextBase = {\n update: UpdateSession;\n state: AuthState;\n};\n\ntype SessionContextRequired =\n | (SessionContextBase & {\n data: NonErrorSession;\n status: 'authenticated';\n })\n | (SessionContextBase & {\n data: null | undefined;\n status: 'loading';\n });\n\ntype SessionContextOptional =\n | (SessionContextBase & {\n data: NonErrorSession;\n status: 'authenticated';\n })\n | (SessionContextBase & {\n data: null | undefined;\n status: 'unauthenticated' | 'loading';\n });\n\nexport type SessionContextValue<R extends boolean = false> = R extends true\n ? SessionContextRequired\n : SessionContextOptional;\n\nexport const SessionContext = React.createContext?.<\n SessionContextValue | undefined\n>(undefined);\n\nexport interface UseSessionOptions<R extends boolean> {\n required: R;\n /** Defaults to `signIn` */\n onUnauthenticated?: () => void;\n}\n/**\n * React Hook that gives you access\n * to the logged in user's session data.\n *\n * [Documentation](https://next-auth.js.org/getting-started/client#usesession)\n */\nexport function useSession<R extends boolean>(\n options?: UseSessionOptions<R>\n): SessionContextValue<R> {\n if (!SessionContext) {\n throw new Error('React Context is unavailable in Server Components');\n }\n\n // @ts-expect-error Satisfy TS if branch on line below\n const value: SessionContextValue<R> = React.useContext(SessionContext);\n\n const { required, onUnauthenticated } = options ?? {};\n\n const requiredAndNotLoading = required && value.status === 'unauthenticated';\n\n React.useEffect(() => {\n if (requiredAndNotLoading) {\n const url = `/api/auth/signin?${new URLSearchParams({\n error: 'SessionRequired',\n callbackUrl: window.location.href,\n })}`;\n if (onUnauthenticated) onUnauthenticated();\n else window.location.href = url;\n }\n }, [requiredAndNotLoading, onUnauthenticated]);\n\n if (requiredAndNotLoading) {\n return {\n data: value.data,\n update: value.update,\n status: 'loading',\n state: value.state,\n };\n }\n\n return value;\n}\n\n/**\n * Signs the user out, by removing the session cookie.\n * Automatically adds the CSRF token to the request.\n *\n * [Documentation](https://next-auth.js.org/getting-started/client#signout)\n */\n\n/**\n * Provider to wrap the app in to make session data available globally.\n * Can also be used to throttle the number of requests to the endpoint\n * `/api/auth/session`.\n *\n * [Documentation](https://next-auth.js.org/getting-started/client#sessionprovider)\n */\nexport function SessionProvider(props: SessionProviderProps) {\n if (!SessionContext) {\n throw new Error('React Context is unavailable in Server Components');\n }\n const {\n children,\n refetchWhenOffline,\n refetchInterval,\n refetchOnWindowFocus,\n } = props;\n const state = useAuthorizerState();\n\n if (props.basePath) auth.state.basePath = props.basePath;\n\n const providedSession =\n props.session && !(props.session instanceof Response)\n ? props.session\n : undefined;\n\n const session =\n state.session === undefined\n ? providedSession ?? null\n : state.session ?? null;\n\n React.useEffect(() => {\n if (props.session && !(props.session instanceof Response)) {\n auth.initialize({ baseUrl: props.baseUrl, session: props.session });\n } else {\n if (!auth.status) {\n auth.getSession({ baseUrl: props.baseUrl });\n }\n }\n }, [props.baseUrl, props.session]);\n\n const isOnline = useOnline();\n const shouldRefetch = refetchWhenOffline !== false || isOnline;\n\n const visibilityHandler = React.useCallback(() => {\n if (document.visibilityState === 'visible') {\n auth.sync('visibilitychange');\n }\n }, []);\n\n React.useEffect(() => {\n if (refetchInterval && shouldRefetch) {\n const refetchIntervalTimer = setInterval(() => {\n if (auth.state.session) {\n auth.state.getSession({ event: 'poll' });\n }\n }, refetchInterval * 1000);\n return () => clearInterval(refetchIntervalTimer);\n }\n }, [refetchInterval, shouldRefetch]);\n\n React.useEffect(() => {\n if (refetchOnWindowFocus) {\n document.addEventListener('visibilitychange', visibilityHandler, false);\n } else {\n document.removeEventListener('visibilitychange', visibilityHandler);\n }\n\n const unsubscribe = broadcast.receive(() => auth.sync('storage'));\n\n return () => {\n auth.state.lastSync = 0;\n auth.state.session = undefined;\n auth.state.getSession = () => undefined;\n unsubscribe();\n document.removeEventListener(\n 'visibilitychange',\n visibilityHandler,\n false\n );\n };\n }, [refetchOnWindowFocus, visibilityHandler]);\n\n const status = getStatus(state.loading, session);\n const value = React.useMemo(() => {\n return {\n data: session ?? null,\n status,\n state,\n async update() {\n return await auth.refreshSession();\n },\n };\n }, [session, state, status]);\n return (\n <SessionContext.Provider value={value as any}>\n {children}\n </SessionContext.Provider>\n );\n}\n","'use client';\nimport React from 'react';\nimport { SessionProviderProps } from 'packages/react/lib/auth';\n\nimport { useSession, SessionProvider } from '../../lib/auth';\nimport { convertSession } from '../SignedIn';\n\nexport default function SignedOut({\n children,\n session: startSession,\n ...props\n}: SessionProviderProps & {\n className?: string;\n}) {\n if (startSession instanceof Response) {\n return null;\n }\n const session = convertSession(startSession);\n return (\n <SessionProvider {...props} session={session}>\n <SignedOutChecker className={props.className}>\n {children}\n </SignedOutChecker>\n </SessionProvider>\n );\n}\nfunction SignedOutChecker({\n className,\n children,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n const { status } = useSession();\n if (status === 'unauthenticated') {\n if (className) {\n return <div className={className}>{children}</div>;\n }\n return children;\n }\n return null;\n}\n","import { mfa } from '@niledatabase/client';\nimport { useState, useEffect, useCallback } from 'react';\n\nimport {\n MfaSetup,\n UseMfaEnrollmentOptions,\n UseMfaEnrollmentResult,\n ChallengeRedirect,\n EnrollmentError,\n} from './types';\nimport {\n isRecord,\n parseAuthenticatorResponse,\n parseEmailResponse,\n} from './utils';\n\nexport const useMultiFactor = ({\n method,\n currentMethod,\n onRedirect,\n onChallengeRedirect,\n}: UseMfaEnrollmentOptions): UseMfaEnrollmentResult<MfaSetup> => {\n const [setup, setSetup] = useState<MfaSetup | null>(null);\n const [errorType, setErrorType] = useState<EnrollmentError>(null);\n const [isStartingSetup, setIsStartingSetup] = useState(false);\n const [isRequestingDisable, setIsRequestingDisable] = useState(false);\n const parseResponse =\n method === 'authenticator'\n ? parseAuthenticatorResponse\n : parseEmailResponse;\n const navigate = useCallback(\n (url: string) => {\n if (onRedirect) {\n onRedirect(url);\n return;\n }\n if (typeof window !== 'undefined') {\n window.location.assign(url);\n }\n },\n [onRedirect]\n );\n\n const redirectToPrompt = useCallback(\n (params: ChallengeRedirect) => {\n if (onChallengeRedirect) {\n onChallengeRedirect(params);\n return;\n }\n\n const searchParams = new URLSearchParams({\n token: params.token,\n method: params.method,\n scope: params.scope,\n });\n\n if (params.destination) {\n searchParams.set('destination', params.destination);\n }\n\n navigate(`/mfa/prompt?${searchParams.toString()}`);\n },\n [navigate, onChallengeRedirect]\n );\n\n const startSetup = useCallback(async () => {\n setIsStartingSetup(true);\n setErrorType(null);\n try {\n const response = await mfa({ scope: 'setup', method });\n\n const redirectUrl = getRedirectUrl(response);\n if (redirectUrl) {\n navigate(redirectUrl);\n return;\n }\n\n const parsed = parseResponse(response);\n if (!parsed) {\n setSetup(null);\n setErrorType('parseSetup');\n return;\n }\n\n if (parsed.scope === 'challenge') {\n redirectToPrompt({\n token: parsed.token,\n method: parsed.method,\n scope: parsed.scope,\n destination: 'maskedEmail' in parsed ? parsed.maskedEmail : undefined,\n });\n return;\n }\n\n setSetup(parsed);\n } catch (cause) {\n setErrorType('setup');\n setSetup(null);\n } finally {\n setIsStartingSetup(false);\n }\n }, [method, navigate, parseResponse, redirectToPrompt]);\n\n const startDisable = useCallback(async () => {\n setIsRequestingDisable(true);\n setErrorType(null);\n try {\n const response = await mfa({ method });\n\n const redirectUrl = getRedirectUrl(response);\n if (redirectUrl) {\n navigate(redirectUrl);\n return;\n }\n\n const parsed = parseResponse(response);\n if (!parsed) {\n setErrorType('parseDisable');\n return;\n }\n\n setSetup(parsed);\n } catch (cause) {\n setErrorType('disable');\n } finally {\n setIsRequestingDisable(false);\n }\n }, [method, navigate, parseResponse]);\n\n useEffect(() => {\n setErrorType(null);\n setSetup(null);\n return () => {\n setSetup(null);\n };\n }, [currentMethod]);\n\n return {\n setup,\n loading: isStartingSetup || isRequestingDisable,\n errorType,\n startSetup,\n startDisable,\n };\n};\n\nconst getRedirectUrl = (value: unknown): string | null => {\n if (isRecord(value) && typeof value.url === 'string') {\n return value.url;\n }\n\n if (value instanceof Response && typeof value.url === 'string') {\n return value.url;\n }\n\n return null;\n};\n","import { AuthenticatorSetup, ChallengeScope, EmailSetup } from './types';\n\nexport const isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && value !== null;\n\nexport const isScope = (value: unknown): value is ChallengeScope =>\n value === 'setup' || value === 'challenge';\n\nexport const parseRecoveryKeys = (value: unknown): string[] | undefined => {\n if (!Array.isArray(value)) {\n return undefined;\n }\n\n const keys = value.filter(\n (key): key is string => typeof key === 'string' && key.trim().length > 0\n );\n\n return keys.length > 0 ? keys : undefined;\n};\n\nexport const parseAuthenticatorResponse = (\n value: unknown\n): AuthenticatorSetup | null => {\n if (!isRecord(value) || value.method !== 'authenticator') {\n return null;\n }\n\n if (!isScope(value.scope) || typeof value.token !== 'string') {\n return null;\n }\n\n return {\n method: 'authenticator',\n token: value.token,\n scope: value.scope,\n otpauthUrl:\n typeof value.otpauthUrl === 'string' ? value.otpauthUrl : undefined,\n secret: typeof value.secret === 'string' ? value.secret : undefined,\n recoveryKeys: parseRecoveryKeys(value.recoveryKeys),\n };\n};\n\nexport const parseEmailResponse = (value: unknown): EmailSetup | null => {\n if (!isRecord(value) || value.method !== 'email') {\n return null;\n }\n\n if (!isScope(value.scope) || typeof value.token !== 'string') {\n return null;\n }\n\n return {\n method: 'email',\n token: value.token,\n scope: value.scope,\n maskedEmail:\n typeof value.maskedEmail === 'string' &&\n value.maskedEmail.trim().length > 0\n ? value.maskedEmail\n : undefined,\n };\n};\n","import React from 'react';\nimport QRCode from 'react-qr-code';\n\nimport { AuthenticatorSetupProps } from './types';\nimport RecoverKeys from './RecoveryKeys';\nimport { MultiFactorVerify } from './MultiFactorVerify';\n\nexport function SetupAuthenticator({\n setup,\n onError,\n onSuccess,\n}: AuthenticatorSetupProps) {\n // react-qr-code exposes both default and named exports; normalize for bundlers.\n const QRComponent = (QRCode as unknown as { default?: unknown }).default\n ? (QRCode as unknown as { default: typeof QRCode }).default\n : QRCode;\n\n return (\n <div className=\"flex flex-col items-center gap-4 text-center\">\n {setup.otpauthUrl ? (\n <>\n <div className=\"rounded-md border border-border bg-background p-3\">\n <QRComponent\n value={setup.otpauthUrl}\n size={192}\n className=\"h-48 w-48\"\n />\n </div>\n <p className=\"text-sm text-muted-foreground\">\n Scan the code with your authenticator app, then enter the 6-digit\n code below.\n </p>\n </>\n ) : null}\n\n {setup.recoveryKeys ? (\n <RecoverKeys setup={setup} onError={onError} onSuccess={onSuccess} />\n ) : null}\n\n <MultiFactorVerify\n token={setup.token}\n scope={setup.scope}\n method={setup.method}\n onSuccess={onSuccess}\n />\n </div>\n );\n}\n","import React from 'react';\nimport { Copy, Download } from 'lucide-react';\nimport { useState, useMemo, useEffect } from 'react';\n\nimport { Button } from '../../components/ui/button';\n\nimport { CopyState, AuthenticatorSetupProps } from './types';\n\nexport default function RecoverKeys({\n setup,\n onError,\n}: AuthenticatorSetupProps) {\n const [copyState, setCopyState] = useState<CopyState>('idle');\n const recoveryText = useMemo(\n () => setup.recoveryKeys?.join('\\n') ?? '',\n [setup.recoveryKeys]\n );\n useEffect(() => {\n setCopyState('idle');\n }, [setup.token]);\n return (\n <div className=\"mt-4 flex w-full flex-col items-center gap-3 text-left\">\n <div className=\"w-full max-w-sm space-y-2\">\n <p className=\"text-sm font-medium\">Recovery codes</p>\n <p className=\"text-xs text-muted-foreground\">\n Store these somewhere safe. Use one if you lose your authenticator\n device.\n </p>\n <div className=\"rounded-md border border-dashed bg-muted/30 p-4\">\n <ul className=\"grid gap-2 font-mono text-sm\">\n {setup.recoveryKeys?.map((key) => (\n <li key={key}>{key}</li>\n ))}\n </ul>\n </div>\n <div className=\"flex flex-wrap items-center gap-2\">\n <Button\n type=\"button\"\n size=\"sm\"\n onClick={async () => {\n if (!recoveryText) {\n return;\n }\n\n if (!('clipboard' in navigator)) {\n setCopyState('error');\n return;\n }\n\n try {\n await navigator.clipboard.writeText(recoveryText);\n setCopyState('copied');\n } catch (cause) {\n setCopyState('error');\n }\n }}\n >\n <Copy className=\"size-4\" aria-hidden=\"true\" />\n Copy\n </Button>\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n onClick={() => {\n if (!recoveryText) {\n return;\n }\n\n try {\n const header = 'Nile MFA recovery codes\\n\\n';\n const blob = new Blob([header, recoveryText], {\n type: 'text/plain',\n });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = 'nile-mfa-recovery-codes.txt';\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n URL.revokeObjectURL(url);\n } catch (cause) {\n onError(\n 'We were unable to download the recovery keys. Please try again.'\n );\n }\n }}\n >\n <Download className=\"size-4\" aria-hidden=\"true\" />\n Download\n </Button>\n {copyState === 'copied' ? (\n <span className=\"text-xs text-muted-foreground\">\n Recovery codes copied to clipboard.\n </span>\n ) : copyState === 'error' ? (\n <span className=\"text-xs text-destructive\">\n Unable to copy automatically. Please copy the codes manually.\n </span>\n ) : null}\n </div>\n </div>\n </div>\n );\n}\n","import * as React from 'react';\nimport { mfa } from '@niledatabase/client';\n\nimport { Button } from '../../components/ui/button';\nimport { Input } from '../../components/ui/input';\nimport { cn } from '../../lib/utils';\n\nimport RecoveryCodeForm from './RecoveryCodeForm';\n\ntype MfaVerifyFormProps = {\n token: string;\n scope: 'setup' | 'challenge';\n method: 'email' | 'authenticator';\n remove?: boolean;\n onSuccess?: (scope: 'setup' | 'challenge') => void;\n};\n\nconst CODE_LENGTH = 6;\n\nexport function MultiFactorVerify({\n token,\n scope,\n method,\n remove,\n onSuccess,\n}: MfaVerifyFormProps) {\n const timer = React.useRef<NodeJS.Timeout>(undefined);\n const [values, setValues] = React.useState<string[]>(\n Array(CODE_LENGTH).fill('')\n );\n const [challengeToken, setChallengeToken] = React.useState(token);\n const [error, setError] = React.useState<string | null>(null);\n const [successMessage, setSuccessMessage] = React.useState<string | null>(\n null\n );\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n const [showRecoveryInput, setShowRecoveryInput] = React.useState(false);\n const errorId = React.useId();\n\n const inputRefs = React.useRef<Array<HTMLInputElement | null>>([]);\n\n React.useEffect(() => {\n if (!showRecoveryInput) {\n inputRefs.current[0]?.focus();\n }\n }, [showRecoveryInput]);\n\n React.useEffect(() => {\n setChallengeToken(token);\n }, [token]);\n\n const handleInputChange =\n (index: number) => (event: React.ChangeEvent<HTMLInputElement>) => {\n const raw = event.target.value.replace(/\\D+/g, '');\n if (!raw.length) {\n updateValue(index, '');\n return;\n }\n const nextDigit = raw.at(-1) ?? '';\n updateValue(index, nextDigit);\n if (index < CODE_LENGTH - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n };\n\n const handleKeyDown =\n (index: number) => (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Backspace') {\n if (values[index]) {\n updateValue(index, '');\n } else if (index > 0) {\n inputRefs.current[index - 1]?.focus();\n updateValue(index - 1, '');\n }\n event.preventDefault();\n }\n if (event.key === 'ArrowLeft' && index > 0) {\n inputRefs.current[index - 1]?.focus();\n event.preventDefault();\n }\n if (event.key === 'ArrowRight' && index < CODE_LENGTH - 1) {\n inputRefs.current[index + 1]?.focus();\n event.preventDefault();\n }\n };\n\n const handlePaste = (event: React.ClipboardEvent<HTMLInputElement>) => {\n event.preventDefault();\n const pasted = event.clipboardData\n .getData('text')\n .replace(/\\D+/g, '')\n .slice(0, CODE_LENGTH)\n .split('');\n\n if (!pasted.length) {\n return;\n }\n\n const next = [...values];\n for (let i = 0; i < CODE_LENGTH; i += 1) {\n next[i] = pasted[i] ?? '';\n }\n setValues(next);\n\n const nextFocusIndex = Math.min(pasted.length, CODE_LENGTH - 1);\n inputRefs.current[nextFocusIndex]?.focus();\n };\n\n const updateValue = (index: number, digit: string) => {\n setValues((previous) => {\n const next = [...previous];\n next[index] = digit;\n return next;\n });\n setError(null);\n setSuccessMessage(null);\n };\n\n const code = React.useMemo(() => values.join(''), [values]);\n\n const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n\n if (!challengeToken) {\n setError('Missing MFA challenge token. Please restart the sign-in flow.');\n return;\n }\n\n if (code.length !== CODE_LENGTH) {\n setError('Enter the full 6-digit code to continue.');\n return;\n }\n\n setIsSubmitting(true);\n setError(null);\n setSuccessMessage(null);\n\n try {\n const result = await mfa({\n token: challengeToken,\n code,\n scope,\n method,\n remove,\n });\n if (result?.ok) {\n onSuccess?.(result.scope);\n } else {\n const url = new URL(result.url);\n setError(url.searchParams.get('error'));\n }\n } catch (cause) {\n setError('We ran into a problem verifying the code. Please try again.');\n } finally {\n setIsSubmitting(false);\n }\n };\n\n React.useEffect(() => {\n () => {\n if (timer.current) {\n clearTimeout(timer.current);\n }\n };\n }, []);\n const handleDisableRecovery = () => {\n setShowRecoveryInput(false);\n setValues(Array(CODE_LENGTH).fill(''));\n setError(null);\n setSuccessMessage(null);\n };\n\n const handleEnableRecovery = async () => {\n if (showRecoveryInput) {\n return;\n }\n setError(null);\n setSuccessMessage(null);\n\n setShowRecoveryInput(true);\n };\n\n return (\n <div className=\"space-y-6\">\n {showRecoveryInput ? (\n <RecoveryCodeForm\n token={challengeToken}\n scope={scope}\n method={method}\n remove={remove}\n onSuccess={onSuccess}\n onCancel={handleDisableRecovery}\n />\n ) : (\n <form className=\"space-y-6\" onSubmit={handleSubmit}>\n <fieldset\n className=\"flex flex-col gap-6\"\n disabled={isSubmitting || showRecoveryInput}\n >\n <div className=\"flex justify-center gap-3\">\n {values.map((value, index) => (\n <Input\n key={index}\n ref={(node) => {\n inputRefs.current[index] = node;\n }}\n className={cn(\n 'h-14 w-12 rounded-lg border border-input/80 bg-muted/40 text-center text-2xl font-medium tracking-[0.25em]',\n 'placeholder:text-muted-foreground/80 focus-visible:ring-2 focus-visible:ring-primary/40'\n )}\n inputMode=\"numeric\"\n type=\"text\"\n autoComplete=\"one-time-code\"\n aria-label={`Digit ${index + 1}`}\n aria-invalid={Boolean(error)}\n aria-describedby={error ? errorId : undefined}\n pattern=\"[0-9]*\"\n maxLength={1}\n value={value}\n onChange={handleInputChange(index)}\n onKeyDown={handleKeyDown(index)}\n onPaste={handlePaste}\n />\n ))}\n </div>\n <Button\n className=\"w-full\"\n type=\"submit\"\n size=\"lg\"\n disabled={isSubmitting}\n >\n {isSubmitting ? 'Verifying...' : 'Submit'}\n </Button>\n </fieldset>\n\n {error ? (\n <div className=\"flex flex-col gap-2\">\n <p\n className=\"text-sm font-medium text-destructive\"\n id={errorId}\n role=\"alert\"\n >\n Error: {error}\n </p>\n <Button variant=\"outline\">\n <a href=\"/mfa\">Back to sign in</a>\n </Button>\n </div>\n ) : null}\n </form>\n )}\n {error === 'Invalid MFA code' ? (\n <Button variant=\"link\">\n <a href=\"/mfa\">Return to sign in</a>\n </Button>\n ) : null}\n {!showRecoveryInput && !error ? (\n <div className=\"flex justify-center\">\n <Button\n type=\"button\"\n variant=\"link\"\n className=\"p-0 text-sm\"\n onClick={handleEnableRecovery}\n disabled={isSubmitting || showRecoveryInput}\n >\n Use a recovery code\n </Button>\n </div>\n ) : null}\n {successMessage ? (\n <p className=\"text-sm font-medium text-emerald-600\" role=\"status\">\n {successMessage}\n </p>\n ) : null}\n </div>\n );\n}\n","import React, { useEffect } from 'react';\nimport { mfa } from '@niledatabase/client';\n\nimport { Button } from '../../components/ui/button';\nimport { Input } from '../../components/ui/input';\n\ntype RecoveryCodeFormProps = {\n token: string;\n scope: 'setup' | 'challenge';\n method: 'email' | 'authenticator';\n remove?: boolean;\n onSuccess?: (resultScope: 'setup' | 'challenge') => void;\n onCancel: () => void;\n};\n\nexport default function RecoveryCodeForm({\n token,\n scope,\n method,\n remove,\n onSuccess,\n onCancel,\n}: RecoveryCodeFormProps) {\n const [code, setCode] = React.useState('');\n const [error, setError] = React.useState<string | null>(null);\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n const [message, setMessage] = React.useState('');\n const inputRef = React.useRef<HTMLInputElement | null>(null);\n const errorId = React.useId();\n const timer = React.useRef<NodeJS.Timeout | null>(null);\n\n useEffect(() => {\n setCode('');\n setError(null);\n return () => {\n if (timer.current) {\n clearTimeout(timer.current);\n timer.current = null;\n }\n };\n }, [token]);\n\n const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n\n if (!token) {\n setError('Missing MFA challenge token. Please restart the sign-in flow.');\n return;\n }\n\n const trimmed = code.trim();\n if (!trimmed.length) {\n setError('Enter your recovery code to continue.');\n return;\n }\n\n setIsSubmitting(true);\n setError(null);\n\n try {\n const result = await mfa({\n token,\n code: trimmed,\n scope,\n method,\n remove,\n });\n\n if (result?.ok) {\n setMessage(\n `You have ${result.recoveryCodesRemaining} recovery codes remaining.`\n );\n timer.current = setTimeout(() => {\n onSuccess?.(result.scope ?? scope);\n }, 2000);\n return;\n }\n\n if (result && typeof result === 'object' && 'url' in result) {\n const url = new URL(String(result.url));\n setError(url.searchParams.get('error'));\n return;\n }\n\n setError(\"We couldn't verify that recovery code. Please try again.\");\n } catch (cause) {\n setError('We ran into a problem verifying the code. Please try again.');\n } finally {\n setIsSubmitting(false);\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setCode(event.target.value);\n if (error) {\n setError(null);\n }\n };\n\n return (\n <form className=\"space-y-6\" onSubmit={handleSubmit}>\n <fieldset className=\"flex flex-col gap-6\" disabled={isSubmitting}>\n <Input\n ref={inputRef}\n className=\"h-14\"\n type=\"text\"\n autoComplete=\"one-time-code\"\n aria-invalid={Boolean(error)}\n aria-describedby={error ? errorId : undefined}\n placeholder=\"Enter a recovery code\"\n value={code}\n onChange={handleChange}\n />\n <Button\n className=\"w-full\"\n type=\"submit\"\n size=\"lg\"\n disabled={isSubmitting}\n >\n {isSubmitting ? 'Verifying...' : 'Submit'}\n </Button>\n </fieldset>\n <div className=\"flex justify-center\">\n <Button\n type=\"button\"\n variant=\"link\"\n className=\"p-0 text-sm\"\n onClick={onCancel}\n disabled={isSubmitting}\n >\n Use verification code instead\n </Button>\n </div>\n {error ? (\n <p\n className=\"text-sm font-medium text-destructive\"\n id={errorId}\n role=\"alert\"\n >\n {error}\n </p>\n ) : null}\n {message ? (\n <p className=\"text-sm font-medium text-orange-600\" role=\"alert\">\n {message}\n </p>\n ) : null}\n </form>\n );\n}\n","import React from 'react';\n\nimport { EmailSetup } from './types';\nimport { MultiFactorVerify } from './MultiFactorVerify';\n\nexport function SetupEmail({\n setup,\n onSuccess,\n}: {\n setup: EmailSetup;\n onSuccess: (scope: 'setup' | 'challenge') => void;\n}) {\n return (\n <div className=\"flex w-full max-w-sm flex-col items-center gap-3 text-center\">\n <p className=\"text-sm text-muted-foreground\">\n {setup.maskedEmail\n ? `We sent a 6-digit code to ${setup.maskedEmail}. Enter it below to finish.`\n : 'Check your email for a 6-digit code and enter it below to finish.'}\n </p>\n <MultiFactorVerify\n token={setup.token}\n scope={setup.scope}\n method={setup.method}\n onSuccess={onSuccess}\n />\n </div>\n );\n}\n","import React from 'react';\n\nimport { MultiFactorVerify } from './MultiFactorVerify';\nimport { MfaSetup } from './types';\n\nexport function ChallengeContent({\n payload,\n message,\n isEnrolled,\n onSuccess,\n}: {\n payload: MfaSetup;\n message?: string;\n isEnrolled?: boolean;\n onSuccess?: (scope: 'setup' | 'challenge') => void;\n}) {\n return (\n <div className=\"flex w-full max-w-sm flex-col items-center gap-3 text-center\">\n <p className=\"text-sm text-muted-foreground\">{message}</p>\n <MultiFactorVerify\n token={payload.token}\n scope={payload.scope}\n method={payload.method}\n remove={isEnrolled}\n onSuccess={onSuccess}\n />\n </div>\n );\n}\n","'use client';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport {\n QueryClient,\n QueryClientProvider,\n useMutation,\n} from '@tanstack/react-query';\nimport { ArrowLeftRight, ChevronDown, Plus } from 'lucide-react';\nimport { useForm } from 'react-hook-form';\n\nimport { Tenant } from '../../../server/src/tenants/types';\nimport { Input } from '../../components/ui/input';\nimport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '../../components/ui/form';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '../../components/ui/dropdown-menu';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from '../../components/ui/dialog';\nimport { Button } from '../../components/ui/button';\nimport { cn, componentFetch, ComponentFetchProps } from '../../lib/utils';\n\nimport { useTenantId, useTenants } from './hooks';\nimport { ComponentProps } from './types';\n\nexport { useTenantId, useTenants } from './hooks';\n\nconst queryClient = new QueryClient();\n\nexport default function TenantSelector(props: ComponentProps) {\n const { client } = props ?? {};\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <SelectTenant {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction SelectTenant(props: ComponentProps) {\n const {\n data: tenants = props.tenants ?? [],\n isLoading,\n refetch,\n } = useTenants(props);\n const {\n buttonText = 'Create an organization',\n emptyText = 'You are not part of an organization.',\n } = props;\n\n const [tenantId, setActiveTenant] = useTenantId(props);\n const [open, setOpen] = useState(false);\n\n const tenant = tenants.find((t) => t.id === tenantId);\n\n useEffect(() => {\n // set the first tenant if no tenant is selected\n if (!props.tenants?.length && tenants?.length > 0 && !tenant) {\n setActiveTenant(tenants[0].id);\n }\n // only react to `useTenants`\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.tenants?.length, tenants]);\n\n if ((!isLoading && !tenantId) || !tenant?.name) {\n // the user isn't part of any tenants, so ask them to add one\n return (\n <div className={cn('flex flex-col items-center gap-2', props.className)}>\n <p>{emptyText}</p>\n <CreateTenant\n {...props}\n onSuccess={(d) => {\n setActiveTenant(d.id);\n setOpen(false);\n refetch();\n }}\n trigger={\n <Button>\n <Plus size={18} /> {buttonText}\n </Button>\n }\n />\n </div>\n );\n }\n\n return (\n <div>\n <div className={cn(props.className)}>\n <div className=\"text-sm pb-1.5 opacity-70 flex flex-row gap-1 items-center\">\n <ArrowLeftRight size={14} />\n Switch organization\n </div>\n <div className=\"flex flex-row w-full flex-1 items-center gap-1\">\n <DropdownMenu open={open} onOpenChange={setOpen}>\n <DropdownMenuTrigger\n className=\"group w-80 font-medium text-sm\"\n disabled={!tenant?.name}\n onClick={() => {\n setOpen(true);\n }}\n >\n {tenant?.name ?? 'Loading...'}\n <ChevronDown className=\"transition-transform duration-200 ease-in-out group-data-[state=open]:rotate-180\" />\n </DropdownMenuTrigger>\n\n <DropdownMenuContent className=\"flex flex-col gap-0.5 max-h-96 overflow-auto custom-scrollbar w-80\">\n {tenants?.map((t) => (\n <DropdownMenuItem\n key={t.id}\n onClick={() => setActiveTenant(t.id)}\n active={t.id === tenant?.id}\n >\n {t.name}\n </DropdownMenuItem>\n ))}\n <DropdownMenuSeparator />\n <CreateTenant\n {...props}\n onSuccess={(d) => {\n setOpen(false);\n setActiveTenant(d.id);\n refetch();\n }}\n trigger={\n <Button variant=\"ghost\" className=\"self-center\">\n <Plus size={18} /> Create new organization\n </Button>\n }\n />\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n </div>\n </div>\n );\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type AllowedAny = any;\ntype CreateTenantProps = ComponentFetchProps & {\n trigger: React.ReactElement;\n fetchUrl?: string;\n beforeMutate?: (data: AllowedAny) => AllowedAny;\n onSuccess?: (res: Tenant) => void;\n onError?: (error: Error, data: AllowedAny) => void;\n baseUrl?: string;\n};\ntype FormValues = { name: string };\nfunction CreateTenant(props: CreateTenantProps) {\n const [open, setOpen] = useState(false);\n const { trigger, beforeMutate, onSuccess, onError } = props;\n const form = useForm<FormValues>({ defaultValues: { name: '' } });\n const mutation = useMutation({\n mutationFn: async (_data) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const data = possibleData ?? _data;\n\n const response = await componentFetch(\n props?.fetchUrl ?? '/tenants',\n {\n method: 'POST',\n body: JSON.stringify(data),\n },\n props\n );\n if (!response.ok) {\n throw new Error('Failed to fetch tenants');\n }\n\n return response.json();\n },\n onSuccess: async (data: AllowedAny) => {\n setOpen(false);\n\n onSuccess && onSuccess(data);\n },\n onError,\n });\n const onSubmit = useCallback(\n (data: FormValues) => {\n mutation.mutate(data);\n },\n [mutation]\n );\n return (\n <Dialog open={open} onOpenChange={setOpen}>\n <DialogTrigger asChild>{trigger}</DialogTrigger>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Create an organization</DialogTitle>\n <DialogDescription>\n An organization is a group of users.\n </DialogDescription>\n </DialogHeader>\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)}>\n <FormField\n control={form.control}\n name=\"name\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Name</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Organization name\"\n {...field}\n autoFocus\n />\n </FormControl>\n <FormDescription>\n This is the name of your organization.\n </FormDescription>\n <FormMessage />\n </FormItem>\n )}\n />\n <Button type=\"submit\" className=\"py-2\" loading={mutation.isPending}>\n Submit\n </Button>\n </form>\n </Form>\n </DialogContent>\n </Dialog>\n );\n}\n","'use client';\n\nimport * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Trigger\n ref={ref}\n className={cn(\n 'focus-visible:outline-hidden hover:bg-accent focus:bg-accent flex flex-row gap-2 items-center justify-between px-4 py-2 rounded-lg border data-disabled:pointer-events-none data-disabled:opacity-50',\n className\n )}\n {...props}\n />\n));\nDropdownMenuTrigger.displayName = DropdownMenuPrimitive.Trigger.displayName;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 {...props}\n />\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n '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 {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n active?: boolean;\n }\n>(({ className, inset, active, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n active && 'bg-accent text-accent-foreground',\n className\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n 'px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ComponentRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n {...props}\n />\n );\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n};\n","'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ComponentRef<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/80 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.ComponentRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, 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 bg-background 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%] sm:rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden 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 <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\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(\n 'flex flex-col space-y-1.5 text-center sm:text-left',\n className\n )}\n {...props}\n />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\n className\n )}\n {...props}\n />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ComponentRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'text-lg 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.ComponentRef<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-muted-foreground', className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import React, { useCallback, useEffect } from 'react';\nimport { useQuery } from '@tanstack/react-query';\n\nimport { Tenant } from '../../../server/src/tenants/types';\nimport { TENANT_COOKIE } from '../../../server/src/utils/constants';\nimport { componentFetch } from '../../lib/utils';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { HookProps } from './types';\n\nexport function useTenants(params: HookProps & { disableQuery?: boolean }) {\n const { disableQuery, tenants, baseUrl = '' } = params;\n const queryClient = useQueryClientOrDefault(params.client);\n\n // Using useQuery to fetch tenants data\n const query = useQuery<Tenant[]>(\n {\n queryKey: ['tenants', baseUrl],\n queryFn: async () => {\n const response = await componentFetch(\n params.fetchUrl ?? '/tenants',\n {\n headers: {\n 'content-type': 'application/json',\n },\n },\n params\n );\n\n if (!response.ok) {\n throw new Error('Failed to fetch tenants');\n }\n\n return response.json();\n },\n enabled: !disableQuery || tenants?.length === 0,\n initialData: tenants,\n },\n queryClient\n );\n\n return query;\n}\n\nexport function useTenantId(\n params?: HookProps & { tenant?: Tenant }\n): [string | undefined, (tenant: string) => void] {\n const [tenant, setTenant] = React.useState<string | undefined>(\n params?.activeTenant ?? params?.tenant?.id\n );\n const { refetch } = useTenants({ disableQuery: true, ...params });\n\n useEffect(() => {\n if (!tenant) {\n // can't trust this value until we get the tenant id, which probably needs set in a call.\n const tenantId = getCookie(TENANT_COOKIE);\n if (tenantId) {\n setTenant(tenantId);\n } else {\n // if there's nothing in the cookie, we need to ask for tenants again\n refetch();\n }\n }\n }, [refetch, tenant]);\n const { onTenantChange } = params ?? {};\n\n const handleTenantSet = useCallback(\n (tenant: string) => {\n setTenant(tenant);\n setCookie(TENANT_COOKIE, tenant);\n onTenantChange ? onTenantChange(tenant) : null;\n },\n [onTenantChange]\n );\n return [tenant, handleTenantSet];\n}\n\nconst getCookie = (name: string) => {\n const cookieArr = document.cookie.split('; ');\n for (const cookie of cookieArr) {\n const [cookieName, cookieValue] = cookie.split('=');\n if (cookieName === name) {\n return cookieValue;\n }\n }\n return null;\n};\n\nconst setCookie = (name: string, value: string) => {\n document.cookie = `${name}=${value}; path=/; samesite=lax`;\n};\n","// these two are a pass though\nexport const TENANT_COOKIE = 'nile.tenant-id';\nexport const USER_COOKIE = 'nile.user-id';\nexport const HEADER_ORIGIN = 'nile-origin';\n// this one is not\nexport const HEADER_SECURE_COOKIES = 'nile-secure-cookies';\n","'use client';\nimport { BadgeCheck, CalendarCheck, CircleUserRound, Mail } from 'lucide-react';\nimport React, { useMemo } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nimport { cn } from '../../lib/utils';\n\nimport { HookProps, useMe } from './hooks';\n\nexport { useMe } from './hooks';\n\ntype Props = HookProps & {\n profilePicturePlaceholder?: React.ReactElement;\n className?: string;\n};\nconst queryClient = new QueryClient();\nexport default function UserInfo(props: Props) {\n return (\n <QueryClientProvider client={queryClient ?? props.client}>\n <UserInfoC {...props} />\n </QueryClientProvider>\n );\n}\nfunction UserInfoC(props: Props) {\n const user = useMe(props);\n const picture = React.useMemo(() => {\n if (user && typeof user === 'object' && 'picture' in user && user.picture) {\n return (\n <img\n src={user.picture}\n alt={`${user.name} profile picture`}\n referrerPolicy=\"no-referrer\"\n />\n );\n }\n\n if (props.profilePicturePlaceholder) {\n return props.profilePicturePlaceholder;\n }\n return (\n <div\n className=\"drop-shadow-md\"\n style={{\n background: 'linear-gradient(90deg, #F4C587, #D6D3E9, #99D2EC)',\n }}\n >\n <CircleUserRound\n size={100}\n className=\"opacity-70 stroke-black\"\n style={{ strokeWidth: '.5px' }}\n />\n </div>\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [user == null]);\n\n const name = useMemo(() => {\n if (user?.name) {\n return user?.name;\n }\n let out = '';\n if (user?.givenName) {\n out = user?.givenName;\n }\n if (user?.familyName) {\n out = `${out} ${user?.familyName}`;\n }\n return out;\n }, [user?.familyName, user?.givenName, user?.name]);\n\n if (!user) {\n return 'Loading...';\n }\n return (\n <div className={cn(props.className, 'flex flex-col gap-2 items-center')}>\n <div className=\"flex flex-col gap-5 pb-2 items-center\">\n <div className=\"flex flex-col gap-2 items-center w-36 mx-auto\">\n <div className=\"rounded-full border border-background overflow-hidden shadow-md\">\n {picture}\n </div>\n </div>\n <div className=\"font-bold flex flex-row gap-1 capitalize\">{name}</div>\n </div>\n <div className=\"flex flex-row gap-5 justify-between w-full\">\n <div className=\"flex flex-row gap-2 text-sm items-center w-36\">\n <Mail size={14} />\n Email:\n </div>\n <div className=\"flex flex-row gap-1 items-center\">\n {user.emailVerified ? (\n <BadgeCheck className=\"stroke-white fill-green-700\" size={14} />\n ) : (\n <BadgeCheck className=\"opacity-40\" size={14} />\n )}\n {user.email}{' '}\n </div>\n </div>\n {user.created ? (\n <div className=\"flex flex-row gap-5 justify-between w-full\">\n <div className=\"flex flex-row gap-2 text-sm items-center w-36\">\n <CalendarCheck size={14} />\n Created:\n </div>\n {new Date(user.created).toLocaleString()}\n </div>\n ) : null}\n </div>\n );\n}\n","'use client';\nimport { QueryClient, useQuery } from '@tanstack/react-query';\nimport { ActiveSession } from '@niledatabase/client';\n\nimport { componentFetch, ComponentFetchProps } from '../../lib/utils';\nimport { User } from '../../../server/src/users/types';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nexport type HookProps = ComponentFetchProps & {\n user?: User | undefined | null;\n baseUrl?: string;\n client?: QueryClient;\n fetchUrl?: string;\n};\n\nexport function useMe(props?: HookProps): User | null {\n const { baseUrl = '', fetchUrl, client, user, auth } = props ?? {};\n const queryClient = useQueryClientOrDefault(client);\n const { data, isLoading } = useQuery(\n {\n queryKey: ['me', baseUrl],\n queryFn: async () => {\n const res = await componentFetch(fetchUrl ?? '/me', props);\n return await res.json();\n },\n enabled: user == null,\n },\n queryClient\n );\n\n if (user || data) {\n return user ?? data;\n }\n // we possibly have email, so return that while we wait for `me` to load\n if (auth && !(user && isLoading)) {\n return (auth.state?.session as ActiveSession)?.user ?? data;\n }\n return null;\n}\n","import React from 'react';\n\nimport { Props } from '../types';\n\nimport FormReset from './Form';\n\nexport default function ResetPasswordForm(props: Props) {\n return (\n <div className=\"flex flex-col gap-4\">\n <h2 className=\"font-sans text-3xl\">Request password reset</h2>\n <FormReset {...props} />\n </div>\n );\n}\n","'use client';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\nimport React from 'react';\n\nimport { Button } from '../../../components/ui/button';\nimport { Email, Form } from '../../../components/ui/form';\nimport { useResetPassword } from '../hooks';\nimport { Props } from '../types';\n\nconst queryClient = new QueryClient();\nexport default function ResetPasswordForm(props: Props) {\n return (\n <QueryClientProvider client={props.client ?? queryClient}>\n <ResetForm {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction ResetForm(props: Props) {\n const { defaultValues, ...params } = props;\n const form = useForm({ defaultValues: { email: '', ...defaultValues } });\n const resetPassword = useResetPassword({ ...params, redirect: true });\n return (\n <Form {...form}>\n <form\n className=\"py-2\"\n onSubmit={form.handleSubmit(({ email }) => {\n resetPassword({ email });\n })}\n >\n <Email />\n <Button type=\"submit\">Reset password</Button>\n </form>\n </Form>\n );\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { resetPassword, forgotPassword } from '@niledatabase/client';\n\nimport { useCsrf } from '../../lib/utils';\nimport { useQueryClientOrDefault } from '../../lib/queryClient';\n\nimport { MutateFnParams, Params } from './types';\n\nexport function useResetPassword(params?: Params) {\n const {\n auth,\n baseUrl = '',\n beforeMutate,\n client,\n callbackUrl,\n fetchUrl,\n init,\n onError,\n onSuccess,\n redirect = false,\n client: paramsClient,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client ?? paramsClient);\n const mutation = useMutation(\n {\n mutationFn: async (_data: MutateFnParams) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const data = possibleData ?? _data;\n\n return await resetPassword({\n auth,\n baseUrl,\n callbackUrl,\n fetchUrl,\n init,\n redirect,\n ...data,\n });\n },\n onSuccess: (data) => {\n onSuccess && onSuccess(data);\n },\n onError,\n },\n queryClient\n );\n\n useCsrf(params);\n\n return mutation.mutate;\n}\n\nexport function useForgotPassword(params?: Params) {\n const {\n auth,\n baseUrl = '',\n beforeMutate,\n callbackUrl,\n fetchUrl,\n init,\n client,\n onError,\n onSuccess,\n redirect = false,\n client: paramsClient,\n } = params ?? {};\n const queryClient = useQueryClientOrDefault(client ?? paramsClient);\n const mutation = useMutation(\n {\n mutationFn: async (_data: { password: string }) => {\n const possibleData = beforeMutate && beforeMutate(_data);\n const data = possibleData ?? _data;\n\n return await forgotPassword({\n auth,\n baseUrl,\n callbackUrl,\n fetchUrl,\n init,\n redirect,\n ...data,\n });\n },\n onSuccess: (data) => {\n onSuccess && onSuccess(data);\n },\n onError,\n },\n queryClient\n );\n\n useCsrf(params);\n\n return mutation.mutate;\n}\n","'use client';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport React from 'react';\n\nimport { Props } from '../types';\nimport { cn } from '../../../lib/utils';\n\nimport PasswordResetForm from './Form';\n\nconst queryClient = new QueryClient();\n\nexport default function ResetPasswordForm(params: Props) {\n const { client, ...props } = params;\n return (\n <QueryClientProvider client={client ?? queryClient}>\n <ResetForm {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction ResetForm({ className, ...props }: Props) {\n return (\n <div className={cn(className, 'flex flex-col gap-4')}>\n <h2 className=\"font-sans text-3xl\">Reset password</h2>\n <PasswordResetForm {...props} />\n </div>\n );\n}\n","'use client';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useForm } from 'react-hook-form';\nimport React, { useEffect, useState } from 'react';\n\nimport { Input } from '../../../components/ui/input';\nimport { Button } from '../../../components/ui/button';\nimport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n Password,\n} from '../../../components/ui/form';\nimport { useForgotPassword, useResetPassword } from '../hooks';\nimport { Props } from '../types';\n\nconst queryClient = new QueryClient();\nexport default function ResetPasswordForm(props: Props) {\n return (\n <QueryClientProvider client={props.client ?? queryClient}>\n <ResetForm {...props} />\n </QueryClientProvider>\n );\n}\n\nfunction ResetForm(props: Props) {\n const { defaultValues, ...params } = props;\n const form = useForm({\n defaultValues: {\n email: '',\n password: '',\n confirmPassword: '',\n ...defaultValues,\n },\n });\n const forgotPassword = useForgotPassword(params);\n const resetPassword = useResetPassword(params);\n const password = form.watch('password');\n const confirmPassword = form.watch('confirmPassword');\n const [disabled, setDisabled] = useState(true);\n\n useEffect(() => {\n form.clearErrors();\n if (!password || !confirmPassword) {\n setDisabled(true);\n } else if (confirmPassword && password !== confirmPassword) {\n if (password !== confirmPassword) {\n form.setError('confirmPassword', {\n message: 'Passwords must match.',\n });\n if (!disabled) {\n setDisabled(true);\n }\n }\n } else {\n setDisabled(false);\n }\n }, [password, confirmPassword, disabled, form]);\n\n return (\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(({ email, password }) => {\n if (!email) {\n forgotPassword({ password });\n } else {\n resetPassword({ email, password });\n }\n })}\n className=\"py-2\"\n >\n {defaultValues?.email ? (\n <FormItem>\n <FormLabel>Email address</FormLabel>\n <Input value={defaultValues.email} disabled />\n </FormItem>\n ) : null}\n <Password />\n <FormField\n control={form.control}\n name=\"confirmPassword\"\n render={({ field }) => {\n return (\n <FormItem>\n <FormLabel>Confirm password</FormLabel>\n <FormControl>\n <Input\n placeholder=\"Password\"\n {...field}\n type=\"password\"\n autoComplete=\"new-password\"\n />\n </FormControl>\n <FormDescription>Confirm your new password</FormDescription>\n <FormMessage />\n </FormItem>\n );\n }}\n />\n <Button\n type=\"submit\"\n disabled={Object.keys(form.formState.errors).length > 0 || disabled}\n >\n Update password\n </Button>\n </form>\n </Form>\n );\n}\n","export {\n default as EmailSignIn,\n EmailSignInButton,\n useEmailSignIn,\n} from './EmailSignIn';\n\nexport { default as Google } from './GoogleLoginButton';\n\nexport { default as Azure } from './AzureSignInButton';\n\nexport { default as Discord } from './DiscordSignInButton';\n\nexport { default as GitHub } from './GitHubSignInButton';\n\nexport { default as HubSpot } from './HubSpotSignInButton';\n\nexport { default as LinkedIn } from './LinkedInSignInButton';\n\nexport { default as Slack } from './SlackSignInButton';\n\nexport { default as X } from './XSignInButton';\n\nexport { default as Okta } from './OktaSignInButton';\n\nexport { default as SignUpForm, useSignUp } from './SignUpForm';\n\nexport { default as SignInForm, useSignIn } from './SignInForm';\n\nexport { default as SignOutButton } from './SignOutButton';\n\nexport { default as SignedIn } from './SignedIn';\n\nexport { default as SignedOut } from './SignedOut';\nexport type {\n AuthenticatorSetup,\n EmailSetup,\n EnrollmentError,\n EnrollMfaProps,\n ChallengeRedirect,\n MfaMethod,\n MfaSetup,\n} from './MultiFactor';\nexport {\n useMultiFactor,\n MultiFactorAuthenticator,\n MultiFactorEmail,\n MultiFactorChallenge,\n} from './MultiFactor';\nexport {\n default as TenantSelector,\n useTenantId,\n useTenants,\n} from './TenantSelector';\n\nexport { default as UserInfo, useMe } from './UserInfo';\n\nexport {\n useResetPassword,\n PasswordResetForm,\n PasswordResetRequestForm,\n} from './resetPassword';\n\nexport { Email, Password } from '../components/ui/form';\n\nexport { SessionProvider, SessionContext, useSession } from '../lib/auth';\nexport {\n getSession,\n getCsrfToken,\n getProviders,\n signIn,\n signOut,\n auth,\n Authorizer,\n} from '@niledatabase/client';\n"],"mappings":";AACA,OAAOA,OAAW,QAClB,OAAS,eAAAC,GAAa,uBAAAC,OAA2B,wBACjD,OAAS,WAAAC,OAAe,kBACxB,OAAS,QAAAC,OAAY,eCJrB,UAAYC,MAAW,QAEvB,OAAS,QAAAC,OAAY,uBACrB,OACE,cAAAC,GAIA,gBAAAC,GACA,kBAAAC,OACK,kBCVP,OAAsB,YAAAC,OAAgB,wBCAtC,SAASC,GAAE,EAAE,CAAC,IAAI,EAAEC,EAAEC,EAAE,GAAG,GAAa,OAAO,GAAjB,UAA8B,OAAO,GAAjB,SAAmBA,GAAG,UAAoB,OAAO,GAAjB,SAAmB,GAAG,MAAM,QAAQ,CAAC,EAAE,CAAC,IAAIC,EAAE,EAAE,OAAO,IAAI,EAAE,EAAE,EAAEA,EAAE,IAAI,EAAE,CAAC,IAAIF,EAAED,GAAE,EAAE,CAAC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,KAAM,KAAIA,KAAK,EAAE,EAAEA,CAAC,IAAIC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASE,IAAM,CAAC,QAAQ,EAAE,EAAEH,EAAE,EAAEC,EAAE,GAAGC,EAAE,UAAU,OAAOF,EAAEE,EAAEF,KAAK,EAAE,UAAUA,CAAC,KAAK,EAAED,GAAE,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAG,GAAG,OAAOA,CAAC,CCwBxW,IAAMG,GAAyBC,GAAqB,CACvD,IAAMC,EAAWC,GAAeF,CAAM,EAChC,CAAEG,uBAAAA,EAAwBC,+BAAAA,CAA8B,EAAKJ,EA0BnE,MAAO,CACHK,gBAzBqBC,GAAqB,CAC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,QACd,KAAK,kBACL,OAAQ,CAAC,CAAE,MAAAmB,CAAM,IAEbxB,EAAA,cAACmB,GAAA,KACCnB,EAAA,cAACoB,GAAA,KAAU,kBAAgB,EAC3BpB,EAAA,cAACyB,GAAA,KACCzB,EAAA,cAACqB,EAAA,CACC,YAAY,WACX,GAAGG,EACJ,KAAK,WACL,aAAa,eACf,CACF,EACAxB,EAAA,cAAC0B,GAAA,KAAgB,2BAAyB,EAC1C1B,EAAA,cAAC2B,GAAA,IAAY,CACf,EAGN,EACA3B,EAAA,cAAC4B,EAAA,CACC,KAAK,SACL,SAAU,OAAO,KAAKvB,EAAK,UAAU,MAAM,EAAE,OAAS,GAAKQ,GAC5D,iBAED,CACF,CACF,CAEJ,CDvGA,IAAMgB,GAAc,IAAIC,GAET,SAARC,GAAmCC,EAAe,CACvD,GAAM,CAAE,OAAAC,EAAQ,GAAGC,CAAM,EAAIF,EAC7B,OACEG,GAAA,cAACC,GAAA,CAAoB,OAAQH,GAAUJ,IACrCM,GAAA,cAACE,GAAA,CAAW,GAAGH,EAAO,CACxB,CAEJ,CAEA,SAASG,GAAU,CAAE,UAAAC,EAAW,GAAGJ,CAAM,EAAU,CACjD,OACEC,GAAA,cAAC,OAAI,UAAWI,EAAGD,EAAW,qBAAqB,GACjDH,GAAA,cAAC,MAAG,UAAU,sBAAqB,gBAAc,EACjDA,GAAA,cAACJ,GAAA,CAAmB,GAAGG,EAAO,CAChC,CAEJ,CEsCA,OACE,cAAAM,GACA,gBAAAC,GACA,gBAAAC,GACA,UAAAC,GACA,WAAAC,GACA,QAAAC,GACA,cAAAC,OACK","names":["React","QueryClient","QueryClientProvider","useForm","Mail","React","Slot","Controller","FormProvider","useFormContext","useQuery","r","f","n","o","clsx","createClassGroupUtils","config","classMap","createClassMap","conflictingClassGroups","conflictingClassGroupModifiers","getClassGroupId","className","classParts","split","CLASS_PART_SEPARATOR","length","shift","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","nextPart","get","classGroupFromNextClassPart","slice","undefined","validators","classRest","join","find","validator","arbitraryPropertyRegex","test","arbitraryPropertyClassName","exec","property","substring","indexOf","theme","classGroups","Map","processClassesRecursively","classGroup","forEach","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","push","Object","entries","key","path","currentClassPartObject","pathPart","has","set","func","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","value","createParseClassName","config","prefix","experimentalParseClassName","parseClassName","className","modifiers","bracketDepth","parenDepth","modifierStart","postfixModifierPosition","index","length","currentCharacter","MODIFIER_SEPARATOR","push","slice","MODIFIER_SEPARATOR_LENGTH","baseClassNameWithImportantModifier","substring","baseClassName","stripImportantModifier","hasImportantModifier","maybePostfixModifierPosition","undefined","fullPrefix","parseClassNameOriginal","startsWith","isExternal","endsWith","IMPORTANT_MODIFIER","createSortModifiers","orderSensitiveModifiers","Object","fromEntries","map","modifier","sortedModifiers","unsortedModifiers","forEach","sort","createConfigUtils","cache","createLruCache","cacheSize","sortModifiers","createClassGroupUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","getClassGroupId","getConflictingClassGroupIds","classGroupsInConflict","classNames","trim","split","result","originalClassName","hasPostfixModifier","classGroupId","variantModifier","join","modifierId","classId","includes","conflictGroups","i","group","twJoin","argument","resolvedValue","string","arguments","toValue","mix","k","createTailwindMerge","createConfigFirst","createConfigRest","cacheGet","cacheSet","functionToCall","initTailwindMerge","reduce","previousConfig","createConfigCurrent","get","set","tailwindMerge","cachedResult","apply","fromTheme","key","themeGetter","theme","isThemeGetter","arbitraryValueRegex","arbitraryVariableRegex","fractionRegex","tshirtUnitRegex","lengthUnitRegex","colorFunctionRegex","shadowRegex","imageRegex","isFraction","value","test","isNumber","Number","isNaN","isInteger","isPercent","isTshirtSize","isAny","isLengthOnly","isNever","isShadow","isImage","isAnyNonArbitrary","isArbitraryValue","isArbitraryVariable","isArbitrarySize","getIsArbitraryValue","isLabelSize","isArbitraryLength","isLabelLength","isArbitraryNumber","isLabelNumber","isArbitraryPosition","isLabelPosition","isArbitraryImage","isLabelImage","isArbitraryShadow","isLabelShadow","isArbitraryVariableLength","getIsArbitraryVariable","isArbitraryVariableFamilyName","isLabelFamilyName","isArbitraryVariablePosition","isArbitraryVariableSize","isArbitraryVariableImage","isArbitraryVariableShadow","testLabel","testValue","exec","shouldMatchNoLabel","label","getDefaultConfig","themeColor","fromTheme","themeFont","themeText","themeFontWeight","themeTracking","themeLeading","themeBreakpoint","themeContainer","themeSpacing","themeRadius","themeShadow","themeInsetShadow","themeTextShadow","themeDropShadow","themeBlur","themePerspective","themeAspect","themeEase","themeAnimate","scaleBreak","scalePosition","scalePositionWithArbitrary","isArbitraryVariable","isArbitraryValue","scaleOverflow","scaleOverscroll","scaleUnambiguousSpacing","scaleInset","isFraction","scaleGridTemplateColsRows","isInteger","scaleGridColRowStartAndEnd","span","scaleGridColRowStartOrEnd","scaleGridAutoColsRows","scaleAlignPrimaryAxis","scaleAlignSecondaryAxis","scaleMargin","scaleSizing","scaleColor","scaleBgPosition","isArbitraryVariablePosition","isArbitraryPosition","position","scaleBgRepeat","repeat","scaleBgSize","isArbitraryVariableSize","isArbitrarySize","size","scaleGradientStopPosition","isPercent","isArbitraryVariableLength","isArbitraryLength","scaleRadius","scaleBorderWidth","isNumber","scaleLineStyle","scaleBlendMode","scaleMaskImagePosition","scaleBlur","scaleRotate","scaleScale","scaleSkew","scaleTranslate","cacheSize","theme","animate","aspect","blur","isTshirtSize","breakpoint","color","isAny","container","ease","font","isAnyNonArbitrary","leading","perspective","radius","shadow","spacing","text","tracking","classGroups","columns","box","display","sr","float","clear","isolation","object","overflow","overscroll","inset","start","end","top","right","bottom","left","visibility","z","basis","flex","grow","shrink","order","col","row","gap","justify","content","items","baseline","self","p","px","py","ps","pe","pt","pr","pb","pl","m","mx","my","ms","me","mt","mr","mb","ml","w","screen","h","isArbitraryNumber","isArbitraryVariableFamilyName","list","placeholder","decoration","indent","align","whitespace","break","wrap","hyphens","bg","linear","to","radial","conic","isArbitraryVariableImage","isArbitraryImage","from","via","rounded","border","divide","outline","isArbitraryVariableShadow","isArbitraryShadow","ring","opacity","mask","closest","farthest","filter","brightness","contrast","grayscale","invert","saturate","sepia","table","caption","transition","duration","delay","backface","rotate","scale","skew","transform","origin","translate","accent","appearance","caret","scheme","cursor","resize","scroll","snap","touch","select","fill","stroke","conflictingClassGroups","conflictingClassGroupModifiers","orderSensitiveModifiers","twMerge","createTailwindMerge","getDefaultConfig","authorizer","useContext","QueryClient","QueryClientContext","fallbackQueryClient","useQueryClientOrDefault","client","contextClient","cn","inputs","twMerge","clsx","componentFetch","fetchUrl","opts","props","init","rest","_init","_rest","auth","newOpts","url","basePath","getBasePath","getBaseUrl","authorizer","usePrefetch","params","baseUrl","disableQuery","client","queryClient","useQueryClientOrDefault","useQuery","useCsrf","React","LabelPrimitive","falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions","labelVariants","cva","Label","className","props","ref","cn","React","Input","className","type","props","ref","cn","Form","FormProvider","FormFieldContext","FormField","props","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body","Email","hide","form","field","Input","Password","React","Slottable","Slot","Loader2","buttonVariants","cva","Button","asChild","children","className","disabled","loading","size","variant","props","ref","Slot","cn","Slottable","Loader2","useMutation","signIn","useEmailSignIn","params","onSuccess","onError","beforeMutate","callbackUrl","redirect","init","client","queryClient","useQueryClientOrDefault","useMutation","_data","d","data","res","signIn","queryClient","QueryClient","EmailSigningIn","props","client","remaining","React","QueryClientProvider","EmailSignInForm","signIn","useEmailSignIn","form","useForm","Form","email","Email","Button","Mail","Slot","React","Mail","signIn","EmailSignInButton","callbackUrl","className","variant","size","asChild","redirect","buttonText","email","onFailure","onSent","fetchUrl","baseUrl","auth","props","React","Slot","cn","buttonVariants","res","signIn","Mail","EmailSignInButton_default","React","Slot","signIn","GoogleSSOButton","callbackUrl","className","variant","size","buttonText","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","GoogleLogo","GoogleLoginButton_default","React","Slot","signIn","AzureSignInButton","callbackUrl","className","buttonText","variant","size","init","asChild","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","MicrosoftIcon","AzureSignInButton_default","React","Slot","signIn","DiscordSignInButton","callbackUrl","className","buttonText","variant","size","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","DiscordSignInButton_default","React","Slot","signIn","GitHubSignInButton","callbackUrl","className","buttonText","variant","size","init","asChild","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","GitHubSignInButton_default","React","Slot","signIn","HubSpotSignInButton","callbackUrl","className","buttonText","variant","size","init","asChild","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","HubSpotSignInButton_default","React","Slot","signIn","LinkedInSignInButton","callbackUrl","className","buttonText","variant","size","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","LinkedInSignInButton_default","React","Slot","signIn","SlackSignInButton","callbackUrl","className","buttonText","variant","size","init","onClick","asChild","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","SlackSignInButton_default","React","Slot","signIn","XSignInButton","callbackUrl","className","buttonText","variant","size","init","onClick","asChild","auth","fetchUrl","baseUrl","props","React","Slot","cn","buttonVariants","e","res","signIn","Icon","XSignInButton_default","React","Slot","signIn","OktaSignInButton","callbackUrl","className","buttonText","variant","size","asChild","init","auth","fetchUrl","baseUrl","onClick","props","React","Slot","cn","buttonVariants","e","res","signIn","OktaLogo","OktaSignInButton_default","React","React","QueryClient","QueryClientProvider","useForm","useMutation","signUp","useSignUp","params","client","onSuccess","onError","beforeMutate","remaining","queryClient","useQueryClientOrDefault","mutation","useMutation","_data","possibleData","payload","data","error","signUp","usePrefetch","queryClient","QueryClient","SignUpForm","props","client","React","QueryClientProvider","SignInForm","signUp","useSignUp","form","useForm","Form","email","password","Email","Password","Button","SigningUp","className","props","React","cn","SignUpForm","React","React","QueryClient","QueryClientProvider","useForm","useMutation","signIn","useSignIn","params","onSuccess","onError","beforeMutate","callbackUrl","init","baseUrl","fetchUrl","resetUrl","auth","redirect","client","queryClient","useQueryClientOrDefault","useMutation","_data","d","data","res","signIn","queryClient","QueryClient","SigningIn","props","client","remaining","React","QueryClientProvider","SignInForm","signIn","useSignIn","form","useForm","Form","email","password","Email","Password","Button","SigningIn","className","props","React","cn","React","Slot","LogOut","signOut","SignOutButton","callbackUrl","redirect","className","buttonText","variant","size","baseUrl","fetchUrl","basePath","auth","asChild","props","React","Slot","buttonVariants","signOut","LogOut","SignOutButton_default","React","React","auth","getStatus","broadcast","useOnline","isOnline","setIsOnline","setOnline","setOffline","subscribeToAuthorizer","onStoreChange","handler","getAuthorizerSnapshot","useAuthorizerState","SessionContext","useSession","options","value","required","onUnauthenticated","requiredAndNotLoading","url","SessionProvider","props","children","refetchWhenOffline","refetchInterval","refetchOnWindowFocus","state","providedSession","session","shouldRefetch","visibilityHandler","refetchIntervalTimer","unsubscribe","status","convertSession","startSession","SignedIn","children","props","session","React","SessionProvider","SignedInChecker","className","status","useSession","React","SignedOut","children","startSession","props","session","convertSession","React","SessionProvider","SignedOutChecker","className","status","useSession","mfa","useState","useEffect","useCallback","isRecord","value","isScope","parseRecoveryKeys","keys","key","parseAuthenticatorResponse","parseEmailResponse","useMultiFactor","method","currentMethod","onRedirect","onChallengeRedirect","setup","setSetup","useState","errorType","setErrorType","isStartingSetup","setIsStartingSetup","isRequestingDisable","setIsRequestingDisable","parseResponse","parseAuthenticatorResponse","parseEmailResponse","navigate","useCallback","url","redirectToPrompt","params","searchParams","startSetup","response","mfa","redirectUrl","getRedirectUrl","parsed","startDisable","useEffect","value","isRecord","React","QRCode","React","Copy","Download","useState","useMemo","useEffect","RecoverKeys","setup","onError","copyState","setCopyState","useState","recoveryText","useMemo","useEffect","React","key","Button","Copy","header","blob","url","link","Download","React","mfa","React","useEffect","mfa","RecoveryCodeForm","token","scope","method","remove","onSuccess","onCancel","code","setCode","React","error","setError","isSubmitting","setIsSubmitting","message","setMessage","inputRef","errorId","timer","useEffect","event","trimmed","result","mfa","url","Input","Button","CODE_LENGTH","MultiFactorVerify","token","scope","method","remove","onSuccess","timer","values","setValues","challengeToken","setChallengeToken","error","setError","successMessage","setSuccessMessage","isSubmitting","setIsSubmitting","showRecoveryInput","setShowRecoveryInput","errorId","inputRefs","handleInputChange","index","event","raw","updateValue","nextDigit","handleKeyDown","handlePaste","pasted","next","i","nextFocusIndex","digit","previous","code","handleSubmit","result","mfa","url","handleDisableRecovery","handleEnableRecovery","RecoveryCodeForm","value","Input","node","cn","Button","SetupAuthenticator","setup","onError","onSuccess","QRComponent","QRCode","React","RecoverKeys","MultiFactorVerify","React","SetupEmail","setup","onSuccess","React","MultiFactorVerify","React","ChallengeContent","payload","message","isEnrolled","onSuccess","React","MultiFactorVerify","React","useCallback","useEffect","useState","QueryClient","QueryClientProvider","useMutation","ArrowLeftRight","ChevronDown","Plus","useForm","React","DropdownMenuPrimitive","Check","ChevronRight","Circle","DropdownMenu","DropdownMenuTrigger","className","props","ref","cn","DropdownMenuSubTrigger","className","inset","children","props","ref","cn","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","active","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","React","DialogPrimitive","X","Dialog","DialogTrigger","DialogPortal","DialogOverlay","className","props","ref","cn","DialogContent","children","DialogPortal","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription","React","useCallback","useEffect","useQuery","TENANT_COOKIE","useTenants","params","disableQuery","tenants","baseUrl","queryClient","useQueryClientOrDefault","useQuery","response","componentFetch","useTenantId","tenant","setTenant","React","refetch","useEffect","tenantId","getCookie","TENANT_COOKIE","onTenantChange","handleTenantSet","useCallback","setCookie","name","cookieArr","cookie","cookieName","cookieValue","value","queryClient","QueryClient","TenantSelector","props","client","React","QueryClientProvider","SelectTenant","tenants","isLoading","refetch","useTenants","buttonText","emptyText","tenantId","setActiveTenant","useTenantId","open","setOpen","useState","tenant","t","useEffect","cn","CreateTenant","d","Button","Plus","ArrowLeftRight","DropdownMenu","DropdownMenuTrigger","ChevronDown","DropdownMenuContent","DropdownMenuItem","DropdownMenuSeparator","trigger","beforeMutate","onSuccess","onError","form","useForm","mutation","useMutation","_data","data","response","componentFetch","onSubmit","useCallback","Dialog","DialogTrigger","DialogContent","DialogHeader","DialogTitle","DialogDescription","Form","FormField","field","FormItem","FormLabel","FormControl","Input","FormDescription","FormMessage","BadgeCheck","CalendarCheck","CircleUserRound","Mail","React","useMemo","QueryClient","QueryClientProvider","useQuery","useMe","props","baseUrl","fetchUrl","client","user","auth","queryClient","useQueryClientOrDefault","data","isLoading","useQuery","componentFetch","queryClient","QueryClient","UserInfo","props","React","QueryClientProvider","UserInfoC","user","useMe","picture","CircleUserRound","name","useMemo","out","cn","Mail","BadgeCheck","CalendarCheck","React","QueryClient","QueryClientProvider","useForm","React","useMutation","resetPassword","forgotPassword","useResetPassword","params","auth","baseUrl","beforeMutate","client","callbackUrl","fetchUrl","init","onError","onSuccess","redirect","paramsClient","queryClient","useQueryClientOrDefault","mutation","useMutation","_data","data","resetPassword","useCsrf","useForgotPassword","forgotPassword","queryClient","QueryClient","ResetPasswordForm","props","React","QueryClientProvider","ResetForm","defaultValues","params","form","useForm","resetPassword","useResetPassword","Form","email","Email","Button","ResetPasswordForm","props","React","QueryClient","QueryClientProvider","React","QueryClient","QueryClientProvider","useForm","React","useEffect","useState","queryClient","QueryClient","ResetPasswordForm","props","React","QueryClientProvider","ResetForm","defaultValues","params","form","useForm","forgotPassword","useForgotPassword","resetPassword","useResetPassword","password","confirmPassword","disabled","setDisabled","useState","useEffect","Form","email","FormItem","FormLabel","Input","Password","FormField","field","FormControl","FormDescription","FormMessage","Button","queryClient","QueryClient","ResetPasswordForm","params","client","props","React","QueryClientProvider","ResetForm","className","cn","getSession","getCsrfToken","getProviders","signIn","signOut","auth","Authorizer"]}