@gv-tech/ui-native 2.22.0 → 2.22.2

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,8 +1,20 @@
1
1
  import { CarouselBaseProps, CarouselContentBaseProps, CarouselItemBaseProps, CarouselNextBaseProps, CarouselPreviousBaseProps } from '@gv-tech/ui-core';
2
+ import { ScrollView, View } from 'react-native';
2
3
  import * as React from 'react';
3
- export declare const Carousel: React.FC<CarouselBaseProps>;
4
- export declare const CarouselContent: React.FC<CarouselContentBaseProps>;
5
- export declare const CarouselItem: React.FC<CarouselItemBaseProps>;
6
- export declare const CarouselPrevious: React.FC<CarouselPreviousBaseProps>;
7
- export declare const CarouselNext: React.FC<CarouselNextBaseProps>;
4
+ type CarouselApi = unknown;
5
+ export type CarouselProps = CarouselBaseProps & {
6
+ opts?: unknown;
7
+ plugins?: unknown;
8
+ setApi?: (api: CarouselApi) => void;
9
+ };
10
+ export declare const Carousel: React.ForwardRefExoticComponent<CarouselBaseProps & {
11
+ opts?: unknown;
12
+ plugins?: unknown;
13
+ setApi?: (api: CarouselApi) => void;
14
+ } & React.RefAttributes<View>>;
15
+ export declare const CarouselContent: React.ForwardRefExoticComponent<CarouselContentBaseProps & React.RefAttributes<ScrollView>>;
16
+ export declare const CarouselItem: React.ForwardRefExoticComponent<CarouselItemBaseProps & React.RefAttributes<View>>;
17
+ export declare const CarouselPrevious: React.ForwardRefExoticComponent<CarouselPreviousBaseProps & React.RefAttributes<View>>;
18
+ export declare const CarouselNext: React.ForwardRefExoticComponent<CarouselNextBaseProps & React.RefAttributes<View>>;
19
+ export {};
8
20
  //# sourceMappingURL=carousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../src/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM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C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=carousel.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.test.d.ts","sourceRoot":"","sources":["../src/carousel.test.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../src/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,qBAAqB,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,IAAI,EAAE,MAAM,cAAc,CAAC;AAM1D,eAAO,MAAM,YAAY;;;;;;;CAA6B,CAAC;AAEvD,eAAO,MAAM,mBAAmB;;;;;;;;CAAgC,CAAC;AAEjE,eAAO,MAAM,kBAAkB,qCAA+B,CAAC;AAE/D,eAAO,MAAM,iBAAiB;;;;;CAA8B,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;;;;;;CAAmC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;;;;;;;CAA4B,CAAC;AAsBzD,eAAO,MAAM,mBAAmB,2FAqB9B,CAAC;AAGH,eAAO,MAAM,gBAAgB,wFAiB3B,CAAC;AAGH,eAAO,MAAM,wBAAwB,gGAuBnC,CAAC;AAGH,eAAO,MAAM,qBAAqB,6FAsBhC,CAAC;AAGH,eAAO,MAAM,iBAAiB,gHAa5B,CAAC;AAGH,eAAO,MAAM,qBAAqB,6FAOhC,CAAC;AAGH,eAAO,MAAM,oBAAoB;wCAAuC,6BAA6B;;CAMpG,CAAC;AAGF,eAAO,MAAM,sBAAsB,8FAkBjC,CAAC;AAGH,eAAO,MAAM,sBAAsB,8FAgBjC,CAAC"}
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../src/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,qBAAqB,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,IAAI,EAAE,MAAM,cAAc,CAAC;AAM1D,eAAO,MAAM,YAAY;;;;;;;CAA6B,CAAC;AAEvD,eAAO,MAAM,mBAAmB;;;;;;;;CAAgC,CAAC;AAEjE,eAAO,MAAM,kBAAkB,qCAA+B,CAAC;AAE/D,eAAO,MAAM,iBAAiB;;;;;CAA8B,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;;;;;;CAAmC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;;;;;;;CAA4B,CAAC;AAsBzD,eAAO,MAAM,mBAAmB,2FAqB9B,CAAC;AAGH,eAAO,MAAM,gBAAgB,wFAkB3B,CAAC;AAGH,eAAO,MAAM,wBAAwB,gGAuBnC,CAAC;AAGH,eAAO,MAAM,qBAAqB,6FAsBhC,CAAC;AAGH,eAAO,MAAM,iBAAiB,gHAa5B,CAAC;AAGH,eAAO,MAAM,qBAAqB,6FAOhC,CAAC;AAGH,eAAO,MAAM,oBAAoB;wCAAuC,6BAA6B;;CAMpG,CAAC;AAGF,eAAO,MAAM,sBAAsB,8FAkBjC,CAAC;AAGH,eAAO,MAAM,sBAAsB,8FAgBjC,CAAC"}
package/dist/form.d.ts CHANGED
@@ -1,2 +1,31 @@
1
- export declare const Form: () => import("react/jsx-runtime").JSX.Element;
1
+ import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
2
+ import { Text, View } from 'react-native';
3
+ import { FormControlBaseProps, FormDescriptionBaseProps, FormItemBaseProps, FormLabelBaseProps, FormMessageBaseProps } from '@gv-tech/ui-core';
4
+ import * as React from 'react';
5
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
6
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const useFormField: () => {
8
+ invalid: boolean;
9
+ isDirty: boolean;
10
+ isTouched: boolean;
11
+ isValidating: boolean;
12
+ error?: import('react-hook-form').FieldError;
13
+ id: string;
14
+ name: string;
15
+ formItemId: string;
16
+ formDescriptionId: string;
17
+ formMessageId: string;
18
+ };
19
+ declare const FormItem: React.ForwardRefExoticComponent<import('react-native').ViewProps & FormItemBaseProps & React.RefAttributes<View>>;
20
+ declare const FormLabel: React.ForwardRefExoticComponent<Omit<Omit<import('react-native').TextProps & {
21
+ asChild?: boolean;
22
+ } & {
23
+ nativeID?: string;
24
+ htmlFor?: string;
25
+ } & React.RefAttributes<Text>, "ref"> & React.RefAttributes<Text>, "ref"> & FormLabelBaseProps & React.RefAttributes<Text>>;
26
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<Omit<any, "ref">, "ref"> & React.RefAttributes<unknown>>;
27
+ declare const FormDescription: React.ForwardRefExoticComponent<import('react-native').TextProps & FormDescriptionBaseProps & React.RefAttributes<Text>>;
28
+ declare const FormMessage: React.ForwardRefExoticComponent<import('react-native').TextProps & FormMessageBaseProps & React.RefAttributes<Text>>;
29
+ export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
30
+ export type { FormControlBaseProps as FormControlProps, FormDescriptionBaseProps as FormDescriptionProps, FormItemBaseProps as FormItemProps, FormLabelBaseProps as FormLabelProps, FormMessageBaseProps as FormMessageProps, };
2
31
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,+CAMhB,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAM1B,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAyBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,mHAWZ,CAAC;AAGH,QAAA,MAAM,SAAS;;;;;2HAOb,CAAC;AAGH,QAAA,MAAM,WAAW,+FAef,CAAC;AAGH,QAAA,MAAM,eAAe,0HAcnB,CAAC;AAGH,QAAA,MAAM,WAAW,sHAqBf,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AACzG,YAAY,EACV,oBAAoB,IAAI,gBAAgB,EACxC,wBAAwB,IAAI,oBAAoB,EAChD,iBAAiB,IAAI,aAAa,EAClC,kBAAkB,IAAI,cAAc,EACpC,oBAAoB,IAAI,gBAAgB,GACzC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.test.d.ts","sourceRoot":"","sources":["../src/form.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,49 @@
1
+ export declare function useTheme(): {
2
+ theme: "light" | "dark" | undefined;
3
+ setTheme: (scheme: Parameters<(value: "light" | "dark" | "system") => void>[0]) => void;
4
+ resolvedTheme: "light" | "dark";
5
+ tokens: {
6
+ readonly background: "hsl(0 0% 9%)";
7
+ readonly foreground: "hsl(0 0% 100%)";
8
+ readonly card: "hsl(0 0% 14%)";
9
+ readonly cardForeground: "hsl(0 0% 100%)";
10
+ readonly popover: "hsl(0 0% 11%)";
11
+ readonly popoverForeground: "hsl(0 0% 100%)";
12
+ readonly primary: "hsl(227 96% 71%)";
13
+ readonly primaryForeground: "hsl(0 0% 9%)";
14
+ readonly secondary: "hsl(96 44% 61%)";
15
+ readonly secondaryForeground: "hsl(0 0% 9%)";
16
+ readonly muted: "hsl(0 0% 6%)";
17
+ readonly mutedForeground: "hsl(0 0% 70%)";
18
+ readonly accent: "hsl(0 0% 15%)";
19
+ readonly accentForeground: "hsl(0 0% 100%)";
20
+ readonly destructive: "hsl(0 62.8% 30.6%)";
21
+ readonly destructiveForeground: "hsl(0 0% 100%)";
22
+ readonly border: "hsl(0 0% 18%)";
23
+ readonly input: "hsl(0 0% 18%)";
24
+ readonly ring: "hsl(0 0% 90%)";
25
+ readonly radius: "0.5rem";
26
+ } | {
27
+ readonly background: "hsl(0 0% 96%)";
28
+ readonly foreground: "hsl(222 47% 11%)";
29
+ readonly card: "hsl(0 0% 100%)";
30
+ readonly cardForeground: "hsl(222 47% 11%)";
31
+ readonly popover: "hsl(0 0% 100%)";
32
+ readonly popoverForeground: "hsl(222 47% 11%)";
33
+ readonly primary: "hsl(225 73% 57%)";
34
+ readonly primaryForeground: "hsl(0 0% 100%)";
35
+ readonly secondary: "hsl(93 28% 54%)";
36
+ readonly secondaryForeground: "hsl(0 0% 100%)";
37
+ readonly muted: "hsl(0 0% 92%)";
38
+ readonly mutedForeground: "hsl(215 16% 47%)";
39
+ readonly accent: "hsl(0 0% 88%)";
40
+ readonly accentForeground: "hsl(222 47% 11%)";
41
+ readonly destructive: "hsl(0 84.2% 60.2%)";
42
+ readonly destructiveForeground: "hsl(0 0% 100%)";
43
+ readonly border: "hsl(0 0% 89%)";
44
+ readonly input: "hsl(0 0% 89%)";
45
+ readonly ring: "hsl(222 47% 11%)";
46
+ readonly radius: "0.5rem";
47
+ };
48
+ };
49
+ //# sourceMappingURL=use-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-theme.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=use-theme.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-theme.test.d.ts","sourceRoot":"","sources":["../../src/hooks/use-theme.test.tsx"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -61,6 +61,7 @@ export { toast, useToast } from './hooks/use-toast';
61
61
  export { Toast } from './toast';
62
62
  export type { ToastProps } from './toast';
63
63
  export { ThemeProvider } from './theme-provider';
64
+ export { useTheme } from './hooks/use-theme';
64
65
  export { ThemeToggle } from './theme-toggle';
65
66
  export { Toaster } from './toaster';
66
67
  export { TableOfContents, TableOfContentsContent, TableOfContentsHeading, TableOfContentsList, } from './table-of-contents';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAq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,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAQ,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,UAAU,wFActB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAElD,CAAC"}
1
+ {"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../src/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAQ,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,UAAU,wFActB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAIlD,CAAC"}
package/dist/search.d.ts CHANGED
@@ -1,3 +1,10 @@
1
- export declare const Search: () => import("react/jsx-runtime").JSX.Element;
2
- export declare const SearchTrigger: () => import("react/jsx-runtime").JSX.Element;
1
+ import { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
2
+ import { View } from 'react-native';
3
+ import { Button } from './button';
4
+ import * as React from 'react';
5
+ export type SearchProps = SearchBaseProps;
6
+ export declare function Search({ children, open: customOpen, onOpenChange }: SearchProps): import("react/jsx-runtime").JSX.Element;
7
+ export interface SearchTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Button>, 'variant'>, SearchTriggerBaseProps {
8
+ }
9
+ export declare const SearchTrigger: React.ForwardRefExoticComponent<SearchTriggerProps & React.RefAttributes<View>>;
3
10
  //# sourceMappingURL=search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,+CAMlB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAMzB,CAAC"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkB,IAAI,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,WAAW,2CAqB/E;AAED,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,sBAAsB;CAAG;AAEnG,eAAO,MAAM,aAAa,iFAyCzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../src/sonner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAE7C,CAAC"}
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../src/sonner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAM7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../src/theme-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AASxD,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAAE,OAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CA+E1G"}
1
+ {"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../src/theme-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AASxD,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAAE,OAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAgF1G"}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react");c=s(c);let l=require("react-native"),u=require("react/jsx-runtime"),d=require("clsx"),f=require("tailwind-merge"),p=require("@rn-primitives/accordion");p=s(p);let m=require("lucide-react-native"),h=require("react-native-reanimated");h=s(h);let g=require("class-variance-authority"),_=require("@rn-primitives/alert-dialog");_=s(_);let v=require("@rn-primitives/aspect-ratio");v=s(v);let y=require("@rn-primitives/avatar");y=s(y);let b=require("@rn-primitives/slot"),x=require("@rn-primitives/checkbox");x=s(x);let S=require("@rn-primitives/collapsible");S=s(S);let C=require("@rn-primitives/context-menu");C=s(C);let w=require("@rn-primitives/dialog");w=s(w);let T=require("@rn-primitives/dropdown-menu");T=s(T);let E=require("@rn-primitives/hover-card");E=s(E);let D=require("@rn-primitives/label");D=s(D);let O=require("@rn-primitives/menubar");O=s(O);let k=require("@rn-primitives/navigation-menu");k=s(k);let A=require("@rn-primitives/radio-group");A=s(A);let j=require("@rn-primitives/select");j=s(j);let M=require("@rn-primitives/separator");M=s(M);let N=require("@rn-primitives/slider");N=s(N);let P=require("@rn-primitives/switch");P=s(P);let F=require("@rn-primitives/tabs");F=s(F);let I=require("@gv-tech/ui-core"),L=require("@rn-primitives/toggle");L=s(L);let R=require("@rn-primitives/toggle-group");R=s(R);let z=require("@rn-primitives/tooltip");z=s(z);let B=require("@rn-primitives/toast");B=s(B);let ee=require("nativewind");function V(e,t=l.Text,n={}){return c.Children.map(e,e=>typeof e==`string`||typeof e==`number`?(0,u.jsx)(t,{...n,children:e}):e)}function H(...e){return(0,f.twMerge)((0,d.clsx)(e))}function te(e){return e.toString().toLowerCase().trim().replace(/\s+/g,`-`).replace(/[^\w-]+/g,``).replace(/--+/g,`-`)}var ne=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Root,{ref:n,className:H(`web:gap-0`,e),...t}));ne.displayName=p.Root?.displayName||`Accordion`;var re=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Item,{ref:n,className:H(`border-border overflow-hidden border-b`,e),...t}));re.displayName=p.Item?.displayName||`AccordionItem`;var ie=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Header,{ref:n,className:H(`flex flex-row`,e),...t}));ie.displayName=p.Header?.displayName||`AccordionHeader`;var ae=c.forwardRef(({className:e,children:t,...n},r)=>{let{isExpanded:i}=p.useItemContext(),a=(0,h.useDerivedValue)(()=>i?(0,h.withTiming)(1,{duration:250}):(0,h.withTiming)(0,{duration:200})),o=(0,h.useAnimatedStyle)(()=>({transform:[{rotate:`${a.value*180}deg`}],opacity:(0,h.interpolate)(a.value,[0,1],[1,.8],h.Extrapolation.CLAMP)}));return(0,u.jsx)(p.Header,{className:`flex`,children:(0,u.jsxs)(p.Trigger,{ref:r,className:H(`flex flex-row items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[(0,u.jsx)(u.Fragment,{children:t}),(0,u.jsx)(h.default.View,{style:o,children:(0,u.jsx)(m.ChevronDown,{className:`text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200`})})]})})});ae.displayName=p.Trigger?.displayName||`AccordionTrigger`;var oe=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(p.Content,{ref:r,className:H(`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all`,e),...n,children:(0,u.jsx)(l.View,{className:H(`pt-0 pb-4`,e),children:t})}));oe.displayName=p.Content?.displayName||`AccordionContent`;var se=(0,g.cva)(`relative w-full rounded-lg border p-4`,{variants:{variant:{default:`bg-background border-border`,destructive:`border-destructive/50 bg-destructive/10`,warning:`border-amber-500/50 bg-amber-500/10`,info:`border-blue-500/50 bg-blue-500/10`}},defaultVariants:{variant:`default`}}),ce=c.forwardRef(({className:e,variant:t,children:n,...r},i)=>(0,u.jsx)(l.View,{ref:i,className:H(se({variant:t}),e),...r,children:V(n)}));ce.displayName=`Alert`;var le=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:H(`text-foreground mb-1 leading-none font-medium tracking-tight`,e),...t}));le.displayName=`AlertTitle`;var ue=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:H(`text-muted-foreground text-sm leading-relaxed`,e),...t}));ue.displayName=`AlertDescription`;var U=(0,g.cva)(`flex-row items-center justify-center gap-2 rounded-md transition-colors active:opacity-80`,{variants:{variant:{default:`bg-primary shadow-sm`,destructive:`bg-destructive shadow-sm`,outline:`border border-input bg-transparent shadow-sm`,secondary:`bg-secondary shadow-sm`,ghost:`bg-transparent`,link:`bg-transparent`},size:{default:`h-10 px-4 py-2`,sm:`h-9 px-3`,lg:`h-12 px-8`,icon:`h-10 w-10`}},defaultVariants:{variant:`default`,size:`default`}}),de=(0,g.cva)(`text-sm font-medium`,{variants:{variant:{default:`text-primary-foreground`,destructive:`text-destructive-foreground`,outline:`text-foreground`,secondary:`text-secondary-foreground`,ghost:`text-foreground`,link:`text-primary underline`}},defaultVariants:{variant:`default`}}),W=c.forwardRef(({className:e,variant:t,size:n,onPress:r,children:i,disabled:a,...o},s)=>(0,u.jsx)(l.Pressable,{ref:s,onPress:r,disabled:a,className:H(U({variant:t,size:n,className:e}),a&&`opacity-50`),...o,children:V(i,l.Text,{className:H(de({variant:t}))})}));W.displayName=`Button`;var fe=_.Root,pe=_.Trigger,me=_.Portal,G=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Overlay,{style:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`z-50 flex items-center justify-center bg-black/80 p-2`,e)})}));G.displayName=_.Overlay?.displayName||`AlertDialogOverlay`;var he=c.forwardRef(({className:e,portalHost:t,overlayClassName:n,overlayStyle:r,...i},a)=>(0,u.jsxs)(me,{hostName:t,children:[(0,u.jsx)(G,{className:n,style:r}),(0,u.jsx)(_.Content,{ref:a,asChild:!0,...i,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`border-border bg-background z-50 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e)})})]}));he.displayName=_.Content?.displayName||`AlertDialogContent`;var ge=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col gap-2 text-center sm:text-left`,e),...t});ge.displayName=`AlertDialogHeader`;var _e=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});_e.displayName=`AlertDialogFooter`;var ve=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Title,{ref:n,className:H(`native:text-xl text-foreground text-lg font-semibold`,e),...t}));ve.displayName=_.Title?.displayName||`AlertDialogTitle`;var ye=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Description,{ref:n,className:H(`native:text-base text-muted-foreground text-sm`,e),...t}));ye.displayName=_.Description?.displayName||`AlertDialogDescription`;var be=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Action,{ref:n,className:H(U(),e),...t}));be.displayName=_.Action?.displayName||`AlertDialogAction`;var xe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Cancel,{ref:n,className:H(U({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));xe.displayName=_.Cancel?.displayName||`AlertDialogCancel`;var Se=({children:e,className:t,ratio:n=1})=>(0,u.jsx)(v.Root,{ratio:n,className:H(`w-full`,t),children:e});Se.displayName=`AspectRatio`;var Ce=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Root,{ref:n,className:H(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));Ce.displayName=y.Root?.displayName||`Avatar`;var we=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Image,{ref:n,className:H(`aspect-square h-full w-full`,e),...t}));we.displayName=y.Image?.displayName||`AvatarImage`;var Te=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Fallback,{ref:n,className:H(`bg-muted flex h-full w-full items-center justify-center rounded-full`,e),...t}));Te.displayName=y.Fallback?.displayName||`AvatarFallback`;var Ee=(0,g.cva)(`flex-row items-center rounded-md border px-2 py-0.5`,{variants:{variant:{default:`border-transparent bg-primary`,secondary:`border-transparent bg-secondary`,destructive:`border-transparent bg-destructive`,outline:`border-border bg-transparent`}},defaultVariants:{variant:`default`}}),De=(0,g.cva)(`text-xs font-semibold`,{variants:{variant:{default:`text-primary-foreground`,secondary:`text-secondary-foreground`,destructive:`text-destructive-foreground`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function Oe({className:e,textClassName:t,variant:n,children:r,...i}){return(0,u.jsx)(l.View,{className:H(Ee({variant:n}),e),...i,children:V(r,l.Text,{className:H(De({variant:n}),t)})})}var ke=c.createContext(void 0),Ae=(0,g.cva)(`text-foreground`,{variants:{variant:{h1:`text-4xl font-extrabold tracking-tight`,h2:`text-3xl font-semibold tracking-tight`,h3:`text-2xl font-semibold tracking-tight`,h4:`text-xl font-semibold tracking-tight`,body:`text-base leading-7`,bodySmall:`text-sm leading-6`,caption:`text-xs text-muted-foreground`,label:`text-sm font-medium`,overline:`text-xs font-semibold uppercase tracking-widest text-muted-foreground`}},defaultVariants:{variant:`body`}}),K=c.forwardRef(({className:e,variant:t=`body`,children:n,...r},i)=>(0,u.jsx)(l.Text,{ref:i,className:H(Ae({variant:t,className:e})),...r,children:n}));K.displayName=`Text`;var je=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,"aria-label":`breadcrumb`,className:H(`flex flex-row`,e),...n,children:t}));je.displayName=`Breadcrumb`;var Me=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:H(`text-muted-foreground flex flex-row flex-wrap items-center gap-1.5 break-words sm:gap-2.5`,e),...n,children:t}));Me.displayName=`BreadcrumbList`;var Ne=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:H(`flex flex-row items-center gap-1.5`,e),...n,children:t}));Ne.displayName=`BreadcrumbItem`;var Pe=c.forwardRef(({asChild:e,className:t,children:n,onPress:r,...i},a)=>(0,u.jsx)(e?b.Slot:l.Pressable,{ref:a,onPress:r,className:H(`hover:text-foreground active:text-foreground flex flex-row items-center transition-colors`,t),...i,children:V(n,K,{className:`text-muted-foreground hover:text-foreground text-sm font-medium`})}));Pe.displayName=`BreadcrumbLink`;var Fe=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,role:`link`,"aria-disabled":!0,"aria-current":`page`,className:H(`flex flex-row items-center`,e),...n,children:V(t,K,{className:`text-foreground text-sm font-normal`})}));Fe.displayName=`BreadcrumbPage`;var Ie=({children:e,className:t,...n})=>(0,u.jsx)(l.View,{role:`presentation`,"aria-hidden":!0,className:H(`flex flex-row items-center justify-center`,t),...n,children:e??(0,u.jsx)(m.ChevronRight,{size:14,className:`text-muted-foreground`})});Ie.displayName=`BreadcrumbSeparator`;var Le=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{role:`presentation`,"aria-hidden":!0,className:H(`flex h-9 w-9 flex-row items-center justify-center`,e),...n,children:t??(0,u.jsx)(m.MoreHorizontal,{size:14,className:`text-muted-foreground`})});Le.displayName=`BreadcrumbEllipsis`;var Re=({className:e})=>(0,u.jsx)(l.View,{className:e}),ze=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`border-border bg-card rounded-xl border shadow-sm`,e),...t}));ze.displayName=`Card`;var Be=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`flex flex-col space-y-1.5 p-6`,e),...t}));Be.displayName=`CardHeader`;var Ve=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:H(`text-card-foreground text-lg leading-none font-semibold tracking-tight`,e),...t}));Ve.displayName=`CardTitle`;var He=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:H(`text-muted-foreground text-sm`,e),...t}));He.displayName=`CardDescription`;var Ue=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`p-6 pt-0`,e),...t,children:V(t.children,l.Text,{className:`text-sm text-card-foreground`})}));Ue.displayName=`CardContent`;var We=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`flex flex-row items-center p-6 pt-0`,e),...t}));We.displayName=`CardFooter`;var Ge=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),Ke=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),qe=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),Je=({className:e})=>(0,u.jsx)(l.View,{className:e}),Ye=({className:e})=>(0,u.jsx)(l.View,{className:e}),Xe=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),Ze=({className:e})=>(0,u.jsx)(l.View,{className:e}),Qe=({className:e})=>(0,u.jsx)(l.View,{className:e}),$e=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),et=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),tt=()=>null,nt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(x.Root,{ref:n,className:H(`web:peer native:h-[20] native:w-[20] native:rounded border-primary web:ring-offset-background web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:opacity-50`,t.checked&&`bg-primary`,e),...t,children:(0,u.jsx)(x.Indicator,{className:H(`h-full w-full items-center justify-center`),children:(0,u.jsx)(m.Check,{size:12,strokeWidth:l.Platform.OS===`web`?2.5:3.5,className:`text-primary-foreground`})})}));nt.displayName=x.Root?.displayName||`Checkbox`;var rt=S.Root,it=S.Trigger,at=S.Content,ot=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:V(e)}),st=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),ct=({className:e})=>(0,u.jsx)(l.View,{className:e}),lt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:V(e)}),ut=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:V(e)}),dt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:V(e)}),ft=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:V(e)}),pt=({className:e})=>(0,u.jsx)(l.View,{className:e}),mt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:V(e)}),ht=C.Root,gt=C.Trigger,_t=C.Portal,vt=C.Group,yt=C.RadioGroup,bt=C.Sub,xt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(C.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(100),exiting:h.FadeOut.duration(100),className:H(`absolute inset-0 z-50 bg-black/30`,e)})}));xt.displayName=`ContextMenuOverlay`;var St=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(_t,{children:[(0,u.jsx)(xt,{}),(0,u.jsx)(C.Content,{ref:r,className:H(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t})]}));St.displayName=`ContextMenuContent`;var Ct=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(C.Item,{ref:i,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:V(t,K)}));Ct.displayName=`ContextMenuItem`;var wt=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(C.CheckboxItem,{ref:a,checked:!!n,onCheckedChange:r||(()=>{}),className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...i,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(C.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),V(t,K)]}));wt.displayName=`ContextMenuCheckboxItem`;var Tt=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(C.RadioItem,{ref:i,value:n,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(C.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),V(t,K)]}));Tt.displayName=`ContextMenuRadioItem`;var Et=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(C.Label,{ref:i,className:H(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:V(t,K)}));Et.displayName=`ContextMenuLabel`;var Dt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(C.Separator,{ref:n,className:H(`bg-border -mx-1 my-1 h-px`,e),...t}));Dt.displayName=`ContextMenuSeparator`;var Ot=({className:e,children:t,...n})=>(0,u.jsx)(K,{className:H(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});Ot.displayName=`ContextMenuShortcut`;var kt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(C.SubTrigger,{ref:i,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:[(0,u.jsx)(l.View,{className:`flex flex-row items-center gap-1.5`,children:V(t,K)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));kt.displayName=`ContextMenuSubTrigger`;var At=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(C.SubContent,{ref:r,className:H(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t}));At.displayName=`ContextMenuSubContent`;var jt=w.Root,Mt=w.Trigger,Nt=w.Portal,Pt=w.Close,Ft=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Overlay,{style:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`z-50 flex items-center justify-center bg-black/80 p-2`,e)})}));Ft.displayName=w.Overlay?.displayName||`DialogOverlay`;var It=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Nt,{hostName:n,children:[(0,u.jsx)(Ft,{className:r,style:i}),(0,u.jsx)(w.Content,{ref:o,asChild:!0,...a,children:(0,u.jsxs)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`border-border bg-background z-50 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e),children:[t,(0,u.jsxs)(w.Close,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none`,children:[(0,u.jsx)(m.X,{size:18,className:`text-muted-foreground`}),(0,u.jsx)(l.View,{className:`sr-only`,children:(0,u.jsx)(w.Title,{children:`Close`})})]})]})})]}));It.displayName=w.Content?.displayName||`DialogContent`;var Lt=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col gap-1.5 text-center sm:text-left`,e),...t});Lt.displayName=`DialogHeader`;var Rt=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});Rt.displayName=`DialogFooter`;var zt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Title,{ref:n,className:H(`native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight`,e),...t}));zt.displayName=w.Title?.displayName||`DialogTitle`;var Bt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Description,{ref:n,className:H(`native:text-base text-muted-foreground text-sm`,e),...t}));Bt.displayName=w.Description?.displayName||`DialogDescription`;var Vt=({children:e})=>(0,u.jsx)(w.Root,{children:e});Vt.displayName=`Drawer`;var Ht=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(w.Trigger,{ref:r,className:t,...n,children:V(e)}));Ht.displayName=`DrawerTrigger`;var Ut=w.Portal,Wt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Overlay,{style:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`z-50 bg-black/80`,e)})}));Wt.displayName=`DrawerOverlay`;var Gt=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Ut,{hostName:n,children:[(0,u.jsx)(Wt,{className:r,style:i}),(0,u.jsx)(w.Content,{ref:o,asChild:!0,...a,children:(0,u.jsxs)(h.default.View,{entering:h.SlideInDown.duration(200),exiting:h.SlideOutDown.duration(200),className:H(`border-border bg-background fixed inset-x-0 bottom-0 z-50 flex h-auto flex-col rounded-t-xl border p-6 pb-10 shadow-lg`,e),children:[(0,u.jsx)(l.View,{className:`bg-muted mx-auto mb-4 h-1.5 w-12 rounded-full`}),t]})})]}));Gt.displayName=`DrawerContent`;var Kt=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{className:H(`flex flex-col gap-1.5 text-center sm:text-left`,e),...n,children:V(t)});Kt.displayName=`DrawerHeader`;var qt=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{className:H(`mt-auto flex flex-col gap-2`,e),...n,children:V(t)});qt.displayName=`DrawerFooter`;var Jt=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(w.Close,{ref:r,className:t,...n,children:V(e)}));Jt.displayName=`DrawerClose`;var Yt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(w.Title,{ref:r,className:H(`text-foreground text-lg leading-none font-semibold tracking-tight`,e),...n,children:V(t)}));Yt.displayName=`DrawerTitle`;var Xt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(w.Description,{ref:r,className:H(`text-muted-foreground text-sm`,e),...n,children:V(t)}));Xt.displayName=`DrawerDescription`;var Zt=T.Root,Qt=T.Trigger,$t=T.Portal,en=T.Group,tn=T.RadioGroup,nn=T.Sub,rn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(100),exiting:h.FadeOut.duration(100),className:H(`absolute inset-0 z-50 bg-black/30`,e)})}));rn.displayName=`DropdownMenuOverlay`;var an=c.forwardRef(({className:e,children:t,side:n,...r},i)=>{let a=n===`left`||n===`right`?`bottom`:n;return(0,u.jsxs)($t,{children:[(0,u.jsx)(rn,{}),(0,u.jsx)(T.Content,{ref:i,side:a,className:H(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...r,children:t})]})});an.displayName=`DropdownMenuContent`;var q=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(T.Item,{ref:i,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:V(t,K)}));q.displayName=`DropdownMenuItem`;var on=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(T.CheckboxItem,{ref:a,checked:!!n,onCheckedChange:r||(()=>{}),className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...i,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(T.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),V(t,K)]}));on.displayName=`DropdownMenuCheckboxItem`;var sn=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(T.RadioItem,{ref:i,value:n,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(T.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),V(t,K)]}));sn.displayName=`DropdownMenuRadioItem`;var cn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(T.Label,{ref:i,className:H(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:V(t,K)}));cn.displayName=`DropdownMenuLabel`;var ln=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Separator,{ref:n,className:H(`bg-border -mx-1 my-1 h-px`,e),...t}));ln.displayName=`DropdownMenuSeparator`;var un=({className:e,children:t,...n})=>(0,u.jsx)(K,{className:H(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});un.displayName=`DropdownMenuShortcut`;var dn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(T.SubTrigger,{ref:i,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:[(0,u.jsx)(l.View,{className:`flex flex-row items-center gap-1.5`,children:V(t,K)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));dn.displayName=`DropdownMenuSubTrigger`;var fn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(T.SubContent,{ref:r,className:H(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t}));fn.displayName=`DropdownMenuSubContent`;var pn=()=>(0,u.jsx)(l.View,{children:(0,u.jsx)(l.Text,{children:`form is not yet implemented for React Native`})}),mn=E.Root,hn=E.Trigger,gn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(E.Portal,{children:(0,u.jsx)(E.Content,{ref:r,className:H(`bg-popover text-popover-foreground border-border z-50 w-64 rounded-md border p-4 shadow-md`,e),...n,children:t})}));gn.displayName=E.Content?.displayName||`HoverCardContent`;var _n=c.forwardRef(({className:e,placeholderClassName:t,...n},r)=>(0,u.jsx)(l.TextInput,{ref:r,className:H(`border-input text-foreground placeholder:text-muted-foreground focus:border-ring flex h-10 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50`,e),placeholderClassName:H(`text-muted-foreground`,t),...n}));_n.displayName=`Input`;var vn=c.forwardRef(({className:e,onPress:t,onLongPress:n,onPressIn:r,onPressOut:i,...a},o)=>(0,u.jsx)(D.Root,{className:`web:cursor-default`,onPress:t,onLongPress:n,onPressIn:r,onPressOut:i,children:(0,u.jsx)(D.Text,{ref:o,className:H(`text-foreground native:text-base web:peer-disabled:cursor-not-allowed web:peer-disabled:opacity-70 text-sm leading-none font-medium`,e),...a})}));vn.displayName=D.Root?.displayName||`Label`;var yn=c.forwardRef(({className:e,children:t,value:n,onValueChange:r,...i},a)=>{let[o,s]=c.useState(n||``),l=n===void 0?o:n;return(0,u.jsx)(O.Root,{ref:a,value:l,onValueChange:e=>{s(e),r?.(e||``)},className:H(`bg-background border-border flex flex-row items-center space-x-1 rounded-md border p-1 shadow-sm`,e),...i,children:t})});yn.displayName=`Menubar`;var bn=O.Menu,xn=O.Portal,Sn=O.Group,Cn=O.RadioGroup,wn=O.Sub,Tn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(O.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(100),exiting:h.FadeOut.duration(100),className:H(`absolute inset-0 z-50 bg-black/30`,e)})}));Tn.displayName=`MenubarOverlay`;var En=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(O.Trigger,{ref:r,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none`,e),...n,children:V(t,K)}));En.displayName=`MenubarTrigger`;var Dn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(xn,{children:[(0,u.jsx)(Tn,{}),(0,u.jsx)(O.Content,{ref:r,className:H(`bg-popover border-border z-50 min-w-[12rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t})]}));Dn.displayName=`MenubarContent`;var On=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(O.Item,{ref:i,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:V(t,K)}));On.displayName=`MenubarItem`;var kn=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(O.CheckboxItem,{ref:a,checked:!!n,onCheckedChange:r||(()=>{}),className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...i,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(O.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),V(t,K)]}));kn.displayName=`MenubarCheckboxItem`;var An=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(O.RadioItem,{ref:i,value:n,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(O.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),V(t,K)]}));An.displayName=`MenubarRadioItem`;var jn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(O.Label,{ref:i,className:H(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:V(t,K)}));jn.displayName=`MenubarLabel`;var Mn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(O.Separator,{ref:n,className:H(`bg-border -mx-1 my-1 h-px`,e),...t}));Mn.displayName=`MenubarSeparator`;var Nn=({className:e,children:t,...n})=>(0,u.jsx)(K,{className:H(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});Nn.displayName=`MenubarShortcut`;var Pn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(O.SubTrigger,{ref:i,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:[(0,u.jsx)(l.View,{className:`flex flex-row items-center gap-1.5`,children:V(t,K)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));Pn.displayName=`MenubarSubTrigger`;var Fn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(O.SubContent,{ref:r,className:H(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t}));Fn.displayName=`MenubarSubContent`;var In=c.forwardRef(({className:e,children:t,value:n,onValueChange:r,dir:i,orientation:a,delayDuration:o,skipDelayDuration:s,...c},l)=>(0,u.jsx)(k.Root,{ref:l,value:n,onValueChange:r?e=>r(e||``):()=>{},delayDuration:o,skipDelayDuration:s,className:H(`relative z-10 flex flex-row items-center justify-center`,e),...c,children:t}));In.displayName=`NavigationMenu`;var Ln=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(k.List,{ref:r,className:H(`group flex flex-1 list-none flex-row items-center justify-center gap-1`,e),...n,children:t}));Ln.displayName=`NavigationMenuList`;var Rn=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsx)(k.Item,{ref:i,value:n||``,className:H(`relative`,e),...r,children:t}));Rn.displayName=`NavigationMenuItem`;var zn=c.forwardRef(({className:e,children:t,disabled:n,...r},i)=>(0,u.jsxs)(k.Trigger,{ref:i,disabled:n,className:H(`group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center justify-center gap-1 rounded-md px-4 py-2 text-sm font-medium transition-colors disabled:opacity-50`,e),...r,children:[(0,u.jsx)(u.Fragment,{children:t}),(0,u.jsx)(m.ChevronDown,{size:12,className:`text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180`})]}));zn.displayName=`NavigationMenuTrigger`;var Bn=c.forwardRef(({className:e,children:t,forceMount:n,...r},i)=>(0,u.jsx)(k.Portal,{children:(0,u.jsx)(k.Content,{ref:i,...r,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`bg-popover border-border z-50 overflow-hidden rounded-md border p-4 shadow-md`,e),children:t})})}));Bn.displayName=`NavigationMenuContent`;var Vn=c.forwardRef(({className:e,children:t,active:n,onSelect:r,onPress:i,href:a,...o},s)=>(0,u.jsx)(k.Link,{ref:s,active:n,onPress:e=>{i&&i(),r&&r(e)},className:H(`hover:bg-accent hover:text-accent-foreground active:bg-accent active:text-accent-foreground rounded-md px-3 py-2 text-sm font-medium transition-colors`,n&&`bg-accent text-accent-foreground`,e),...o,children:t}));Vn.displayName=`NavigationMenuLink`;var Hn=c.forwardRef(({className:e,forceMount:t,...n},r)=>(0,u.jsx)(l.View,{className:`absolute top-full left-0 flex justify-center`,children:(0,u.jsx)(k.Viewport,{ref:r,className:H(`origin-top-center bg-popover text-popover-foreground border-border relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]`,e),...n})}));Hn.displayName=`NavigationMenuViewport`;var Un=c.forwardRef(({className:e,forceMount:t,...n},r)=>(0,u.jsx)(k.Indicator,{ref:r,className:H(`z-10 flex h-1.5 items-end justify-center overflow-hidden transition-all duration-200`,e),...n,children:(0,u.jsx)(l.View,{className:`bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md`})}));Un.displayName=`NavigationMenuIndicator`;var Wn=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{role:`navigation`,"aria-label":`pagination`,className:H(`mx-auto flex w-full flex-row justify-center`,e),...n,children:t});Wn.displayName=`Pagination`;var Gn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:H(`flex flex-row items-center gap-1`,e),...n,children:t}));Gn.displayName=`PaginationContent`;var Kn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:H(``,e),...n,children:t}));Kn.displayName=`PaginationItem`;var J=({className:e,isActive:t,size:n=`icon`,children:r,onPress:i,...a})=>(0,u.jsx)(W,{variant:t?`outline`:`ghost`,size:n,onPress:i,className:e,...a,children:r});J.displayName=`PaginationLink`;var qn=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(J,{"aria-label":`Go to previous page`,size:`default`,className:H(`flex flex-row items-center gap-1 pl-2.5`,e),onPress:n,...r,children:[(0,u.jsx)(m.ChevronLeft,{size:16,className:`text-foreground`}),(0,u.jsx)(K,{className:`text-sm font-medium`,children:`Previous`})]});qn.displayName=`PaginationPrevious`;var Jn=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(J,{"aria-label":`Go to next page`,size:`default`,className:H(`flex flex-row items-center gap-1 pr-2.5`,e),onPress:n,...r,children:[(0,u.jsx)(K,{className:`text-sm font-medium`,children:`Next`}),(0,u.jsx)(m.ChevronRight,{size:16,className:`text-foreground`})]});Jn.displayName=`PaginationNext`;var Yn=({className:e,...t})=>(0,u.jsx)(l.View,{"aria-hidden":!0,className:H(`flex h-9 w-9 flex-row items-center justify-center`,e),...t,children:(0,u.jsx)(m.MoreHorizontal,{size:16,className:`text-foreground`})});Yn.displayName=`PaginationEllipsis`;var Xn=c.createContext({open:!1,setOpen:()=>{}}),Zn=c.forwardRef(({children:e,open:t,onOpenChange:n,...r},i)=>{let[a,o]=c.useState(!1),s=t!==void 0,d=s?t:a,f=s?n||(()=>{}):o;return(0,u.jsx)(Xn.Provider,{value:{open:d,setOpen:f},children:(0,u.jsx)(l.View,{ref:i,...r,children:e})})});Zn.displayName=`Popover`;var Qn=c.forwardRef(({children:e,...t},n)=>{let{setOpen:r}=c.useContext(Xn);return(0,u.jsx)(l.Pressable,{ref:n,onPress:()=>r(!0),...t,children:e})});Qn.displayName=`PopoverTrigger`;var $n=c.forwardRef(({...e},t)=>(0,u.jsx)(l.View,{ref:t,...e}));$n.displayName=`PopoverAnchor`;var er=c.forwardRef(({className:e,children:t,...n},r)=>{let{open:i,setOpen:a}=c.useContext(Xn);return(0,u.jsx)(l.Modal,{visible:i,transparent:!0,animationType:`fade`,onRequestClose:()=>a(!1),children:(0,u.jsx)(l.Pressable,{className:`flex-1`,onPress:()=>a(!1),children:(0,u.jsx)(l.View,{className:`flex-1 items-center justify-center bg-black/50`,children:(0,u.jsx)(l.Pressable,{onPress:()=>{},children:(0,u.jsx)(l.View,{ref:r,className:H(`bg-popover border-border mx-4 w-full max-w-sm rounded-md border p-4 shadow-lg`,e),...n,children:t})})})})})});er.displayName=`PopoverContent`;var tr=c.forwardRef(({className:e,value:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:H(`bg-muted relative h-2 w-full overflow-hidden rounded-full`,e),accessibilityRole:`progressbar`,role:`progressbar`,...n,children:(0,u.jsx)(l.View,{className:`bg-primary h-full rounded-full`,style:{width:`${t||0}%`}})}));tr.displayName=`Progress`;var nr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(A.Root,{className:H(`web:grid gap-2`,e),...t,ref:n}));nr.displayName=A.Root?.displayName||`RadioGroup`;var rr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(A.Item,{ref:n,className:H(`native:h-5 native:w-5 border-primary text-primary web:ring-offset-background web:focus:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 aspect-square h-4 w-4 rounded-full border`,t.disabled&&`web:cursor-not-allowed opacity-50`,e),...t,children:(0,u.jsx)(A.Indicator,{className:`flex items-center justify-center`,children:(0,u.jsx)(m.Circle,{className:`h-2.5 w-2.5 fill-current text-current`})})}));rr.displayName=A.Item?.displayName||`RadioGroupItem`;var ir=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),ar=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),or=({className:e})=>(0,u.jsx)(l.View,{className:e}),sr=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(l.ScrollView,{ref:r,className:H(`flex-1`,t),showsVerticalScrollIndicator:!1,showsHorizontalScrollIndicator:!1,...n,children:(0,u.jsx)(l.View,{children:e})}));sr.displayName=`ScrollArea`;var cr=()=>null;cr.displayName=`ScrollBar`;var lr=()=>(0,u.jsx)(l.View,{children:(0,u.jsx)(l.Text,{children:`Search is not yet implemented for React Native`})}),ur=j.Root,dr=j.Group,fr=j.Value,pr=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(j.Trigger,{ref:r,className:H(`native:h-12 border-input bg-background text-muted-foreground web:ring-offset-background web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 flex h-10 flex-row items-center justify-between rounded-md border px-3 py-2 text-sm [&>span]:line-clamp-1`,n.disabled&&`web:cursor-not-allowed opacity-50`,e),...n,children:[(0,u.jsx)(u.Fragment,{children:t}),(0,u.jsx)(m.ChevronDown,{size:16,"aria-hidden":!0,className:`text-foreground opacity-50`})]}));pr.displayName=j.Trigger?.displayName||`SelectTrigger`;var mr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.ScrollUpButton,{ref:n,className:H(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronUp,{size:14,className:`text-foreground`})}));mr.displayName=j.ScrollUpButton?.displayName||`SelectScrollUpButton`;var hr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.ScrollDownButton,{ref:n,className:H(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronDown,{size:14,className:`text-foreground`})}));hr.displayName=j.ScrollDownButton?.displayName||`SelectScrollDownButton`;var gr=c.forwardRef(({className:e,children:t,position:n=`popper`,portalHost:r,overlayClassName:i,overlayStyle:a,...o},s)=>{let{open:c}=j.useRootContext();return(0,u.jsxs)(j.Portal,{hostName:r,children:[(0,u.jsx)(j.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,asChild:!0,children:(0,u.jsx)(h.default.View,{className:i,style:a})}),(0,u.jsxs)(j.Content,{ref:s,className:H(`border-border bg-popover 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 relative z-50 max-h-96 min-w-[8rem] rounded-md border shadow-md`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,c?`web:zoom-in-95 web:animate-in web:fade-in-0`:`web:zoom-out-95 web:animate-out web:fade-out-0`,e),position:n,...o,children:[(0,u.jsx)(mr,{}),(0,u.jsx)(j.Viewport,{className:H(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,u.jsx)(hr,{})]})]})});gr.displayName=j.Content?.displayName||`SelectContent`;var _r=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.Label,{ref:n,className:H(`text-popover-foreground py-1.5 pr-2 pl-8 text-sm font-semibold`,e),...t}));_r.displayName=j.Label?.displayName||`SelectLabel`;var vr=c.forwardRef(({className:e,children:t,label:n,...r},i)=>{let a=n||(typeof t==`string`?t:``);return(0,u.jsxs)(j.Item,{ref:i,label:a,className:H(`web:hover:bg-accent/50 web:focus:bg-accent web:focus:text-accent-foreground web:hover:text-accent-foreground relative flex w-full cursor-default flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:opacity-50`,r.disabled&&`web:pointer-events-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(j.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,strokeWidth:3,className:`text-popover-foreground`})})}),(0,u.jsx)(j.ItemText,{className:`text-popover-foreground native:text-base text-sm`,children:t})]})});vr.displayName=j.Item?.displayName||`SelectItem`;var yr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.Separator,{ref:n,className:H(`bg-muted -mx-1 my-1 h-px`,e),...t}));yr.displayName=j.Separator?.displayName||`SelectSeparator`;var br=c.forwardRef(({threshold:e=240,exitDuration:t=450,behavior:n,label:r=`Scroll to top`,className:i,scrollRef:a,animationDuration:o=300,...s},d)=>{let[f,p]=c.useState(!1),[h,g]=c.useState(!1),_=c.useRef(new l.Animated.Value(0)).current,v=c.useRef(new l.Animated.Value(20)).current,y=()=>{l.Animated.parallel([l.Animated.timing(_,{toValue:1,duration:o,useNativeDriver:!0}),l.Animated.timing(v,{toValue:0,duration:o,useNativeDriver:!0})]).start()},b=()=>{l.Animated.parallel([l.Animated.timing(_,{toValue:0,duration:o,useNativeDriver:!0}),l.Animated.timing(v,{toValue:20,duration:o,useNativeDriver:!0})]).start(()=>{h||p(!1)})},x=t=>{let n=t.nativeEvent.contentOffset.y;if(h){n<=e&&(p(!1),g(!1));return}n>e&&!f?(p(!0),y()):n<=e&&f&&b()},S=()=>{g(!0),b(),setTimeout(()=>{if(a?.current){let e=a.current;`scrollToOffset`in e&&typeof e.scrollToOffset==`function`?e.scrollToOffset({offset:0,animated:n!==`auto`}):`scrollTo`in e&&typeof e.scrollTo==`function`&&e.scrollTo({y:0,animated:n!==`auto`})}(l.Platform.OS===`ios`||l.Platform.OS===`android`)&&l.AccessibilityInfo.announceForAccessibility(`Scrolled to top`)},t)};return c.useImperativeHandle(d,()=>({handleScroll:x,scrollToTop:S})),!f&&!h?null:(0,u.jsx)(l.View,{pointerEvents:`box-none`,style:{position:`absolute`,bottom:24,right:24,zIndex:50},children:(0,u.jsx)(l.Animated.View,{style:{opacity:_,transform:[{translateY:v}]},children:(0,u.jsx)(W,{variant:`outline`,size:`icon`,className:H(`bg-background/80 h-12 w-12 rounded-full border-2 shadow-lg`,i),onPress:S,"aria-label":r,...s,children:(0,u.jsx)(m.ArrowUp,{size:24,className:`text-foreground`})})})})});br.displayName=`ScrollToTop`;var xr=e=>{let t=e.trim();return t.endsWith(`/`)?t.slice(0,-1):t},Sr=e=>e.trim().replace(/^@+/,``),Cr=(e,t)=>`${xr(e)}/${encodeURIComponent(Sr(t))}`;function wr({supportUrl:e=`https://www.buymeacoffee.com`,creatorId:t,title:n=`Buy me a coffee`,description:r=`Support the project directly from this panel.`,open:i,defaultOpen:a=!1,onOpenChange:o,positionClassName:s,buttonClassName:d,panelClassName:f,className:p,...h}){let g=i!==void 0,[_,v]=c.useState(a),y=g?i:_,b=c.useCallback(e=>{g||v(e),o?.(e)},[g,o]),x=c.useMemo(()=>Cr(e,t),[t,e]),S=c.useCallback(async()=>{try{await l.Linking.openURL(x)}catch(e){console.warn(`Failed to open external link:`,e)}},[x]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.View,{style:{position:`absolute`,bottom:24,right:24,zIndex:50},className:s,children:(0,u.jsx)(W,{variant:`outline`,size:`icon`,className:H(`h-14 w-14 rounded-full border border-black/15 bg-[#ffdd00] shadow-lg`,d,p),onPress:()=>b(!0),"aria-label":`Support this project`,...h,children:(0,u.jsx)(m.Coffee,{size:24,className:`text-black`})})}),(0,u.jsx)(jt,{open:y,onOpenChange:b,children:(0,u.jsxs)(It,{className:H(`max-w-sm`,f),children:[(0,u.jsxs)(Lt,{children:[(0,u.jsx)(zt,{children:n}),(0,u.jsx)(Bt,{children:r})]}),(0,u.jsxs)(l.View,{className:`flex flex-col gap-4`,children:[(0,u.jsx)(l.View,{className:`overflow-hidden rounded-md border`,children:(0,u.jsx)(l.View,{className:`bg-muted flex h-48 items-center justify-center`,children:(0,u.jsxs)(K,{className:`text-muted-foreground text-center text-sm`,children:[`Embedded support form would appear here on web.`,`
2
- `,`On mobile, this opens the external support page.`]})})}),(0,u.jsxs)(l.View,{className:`text-muted-foreground flex items-center justify-between gap-2 text-xs`,children:[(0,u.jsx)(K,{className:`text-muted-foreground flex-1 text-xs`,children:`If the embedded checkout is unavailable, open the support page directly.`}),(0,u.jsxs)(W,{variant:`outline`,size:`sm`,onPress:S,className:`flex flex-row items-center gap-1`,children:[(0,u.jsx)(K,{className:`text-xs`,children:`Open Buy Me a Coffee`}),(0,u.jsx)(m.ExternalLink,{size:12,className:`text-muted-foreground`})]})]})]})]})})]})}var Tr=c.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,u.jsx)(M.Root,{ref:i,decorative:n,orientation:t,className:H(`bg-border shrink-0`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Tr.displayName=M.Root?.displayName||`Separator`;var Er=w.Root,Dr=w.Trigger,Or=w.Close,kr=w.Portal,Ar=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`web:cursor-default absolute inset-0 z-50 bg-black/80`,e)})}));Ar.displayName=w.Overlay?.displayName||`SheetOverlay`;var jr=c.forwardRef(({className:e,children:t,side:n=`right`,overlayClassName:r,overlayStyle:i,...a},o)=>{let s=l.Platform.OS===`web`,c=s?void 0:h.SlideInRight,d=s?void 0:h.SlideOutRight;return(0,u.jsxs)(kr,{children:[(0,u.jsx)(Ar,{className:r,style:i}),(0,u.jsx)(w.Content,{ref:o,asChild:!0,...a,children:(0,u.jsxs)(h.default.View,{entering:c,exiting:d,className:H(`bg-background web:cursor-default web:duration-200 web:ease-in-out absolute z-50 h-full w-3/4 gap-4 p-6 shadow-lg`,n===`right`&&`border-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right top-0 right-0 border-l`,n===`left`&&`border-border data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left top-0 left-0 border-r`,n===`top`&&`border-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top top-0 w-full border-b`,n===`bottom`&&`border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom bottom-0 w-full border-t`,e),children:[t,(0,u.jsxs)(w.Close,{className:H(`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none`,`web:absolute web:right-4 web:top-4`),children:[(0,u.jsx)(m.X,{size:24,className:`text-muted-foreground`}),(0,u.jsx)(K,{className:`sr-only`,children:`Close`})]})]})})]})});jr.displayName=w.Content?.displayName||`SheetContent`;var Mr=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Mr.displayName=`SheetHeader`;var Nr=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Nr.displayName=`SheetFooter`;var Pr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Title,{ref:n,className:H(`text-foreground text-lg font-semibold`,e),...t}));Pr.displayName=w.Title?.displayName||`SheetTitle`;var Fr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Description,{ref:n,className:H(`text-muted-foreground text-sm`,e),...t}));Fr.displayName=w.Description?.displayName||`SheetDescription`;function Ir({className:e,...t}){let n=(0,h.useSharedValue)(.5);c.useEffect(()=>{n.value=(0,h.withRepeat)((0,h.withSequence)((0,h.withTiming)(.2,{duration:500}),(0,h.withTiming)(.5,{duration:500})),-1,!0)},[]);let r=(0,h.useAnimatedStyle)(()=>({opacity:n.value}));return(0,u.jsx)(h.default.View,{className:H(`bg-muted rounded-md`,e),style:r,...t})}var Lr=({className:e,value:t,onValueChange:n,defaultValue:r,min:i=0,max:a=100,step:o=1,disabled:s=!1,...c})=>{let l=t===void 0?i:t[0];return(0,u.jsxs)(N.Root,{value:l,onValueChange:e=>{n&&n(Array.isArray(e)?e:[e])},min:i,max:a,step:o,disabled:s,className:H(`relative flex w-full touch-none items-center select-none`,s&&`opacity-50`,e),...c,children:[(0,u.jsx)(N.Track,{className:`bg-secondary relative h-2 w-full grow rounded-full`,children:(0,u.jsx)(N.Range,{className:`bg-primary absolute h-full rounded-full`})}),(0,u.jsx)(N.Thumb,{className:`border-primary bg-background focus-visible:ring-ring block h-5 w-5 rounded-full border-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`})]})};Lr.displayName=`Slider`;var Rr=({className:e})=>(0,u.jsx)(l.View,{className:e}),zr=c.forwardRef(({className:e,checked:t,onCheckedChange:n,...r},i)=>(0,u.jsx)(P.Root,{className:H(`peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50`,e),...r,checked:t??!1,onCheckedChange:n||(()=>{}),ref:i,children:(0,u.jsx)(P.Thumb,{className:H(`bg-background pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})}));zr.displayName=P.Root?.displayName||`Switch`;var Br=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`w-full caption-bottom text-sm`,e),...t}));Br.displayName=`Table`;var Vr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`border-border border-b`,e),...t}));Vr.displayName=`TableHeader`;var Hr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`flex-1`,e),...t}));Hr.displayName=`TableBody`;var Ur=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`bg-muted/50 font-medium [&>tr]:last:border-b-0`,e),...t}));Ur.displayName=`TableFooter`;var Wr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`border-border hover:bg-muted/50 data-[state=selected]:bg-muted flex-row border-b transition-colors`,e),...t}));Wr.displayName=`TableRow`;var Gr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(K,{ref:n,className:H(`text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0`,e),...t}));Gr.displayName=`TableHead`;var Kr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(K,{ref:n,className:H(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,e),...t}));Kr.displayName=`TableCell`;var qr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(K,{ref:n,className:H(`text-muted-foreground mt-4 text-sm`,e),...t}));qr.displayName=`TableCaption`;var Jr=c.forwardRef((e,t)=>(0,u.jsx)(F.Root,{ref:t,...e}));Jr.displayName=`Tabs`;var Yr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(F.List,{ref:n,className:H(`bg-muted text-muted-foreground inline-flex h-10 flex-row items-center justify-center rounded-md p-1`,e),...t}));Yr.displayName=F.List?.displayName||`TabsList`;var Xr=c.forwardRef(({className:e,...t},n)=>{let{value:r}=F.useRootContext();return(0,u.jsx)(ke.Provider,{value:H(`text-sm native:text-base font-medium text-muted-foreground web:transition-all`,r===t.value&&`text-foreground`),children:(0,u.jsx)(F.Trigger,{ref:n,className:H(`ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,t.disabled&&`opacity-50`,r===t.value&&`bg-background shadow-foreground/10 shadow-sm`,e),...t})})});Xr.displayName=F.Trigger?.displayName||`TabsTrigger`;var Zr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(F.Content,{ref:n,className:H(`ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`,e),...t}));Zr.displayName=F.Content?.displayName||`TabsContent`;var Qr=c.forwardRef(({className:e,placeholderClassName:t,...n},r)=>(0,u.jsx)(l.TextInput,{ref:r,multiline:!0,numberOfLines:n.numberOfLines||3,className:H(`border-input bg-background text-foreground placeholder:text-muted-foreground focus:border-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50`,e),placeholderClassName:H(`text-muted-foreground`,t),textAlignVertical:`top`,...n}));Qr.displayName=`Textarea`;var $r=c.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,u.jsx)(ke.Provider,{value:H(`text-sm native:text-base text-foreground font-medium`,r.pressed&&`text-accent-foreground`,e),children:(0,u.jsx)(L.Root,{ref:i,className:H((0,I.toggleVariants)({variant:t,size:n,className:e})),...r,pressed:r.pressed||!1,onPressedChange:r.onPressedChange||(()=>{})})}));$r.displayName=L.Root?.displayName||`Toggle`;var ei=c.createContext({size:`default`,variant:`default`}),ti=c.forwardRef(({className:e,variant:t,size:n,children:r,type:i,value:a,onValueChange:o,...s},c)=>(0,u.jsx)(R.Root,{ref:c,type:i,value:a,onValueChange:o,className:H(`flex flex-row items-center justify-center gap-1`,e),...s,children:(0,u.jsx)(ei.Provider,{value:{variant:t,size:n},children:r})}));ti.displayName=R.Root?.displayName||`ToggleGroup`;var ni=c.forwardRef(({className:e,children:t,variant:n,size:r,value:i,...a},o)=>{let s=c.useContext(ei);return(0,u.jsx)(ke.Provider,{value:H(`text-sm native:text-base text-foreground font-medium`,a.disabled&&`web:cursor-not-allowed opacity-50`,i===``&&`text-accent-foreground`,e),children:(0,u.jsx)(R.Item,{ref:o,value:i,className:H((0,I.toggleVariants)({variant:s.variant||n,size:s.size||r}),e),...a,children:t})})});ni.displayName=R.Item?.displayName||`ToggleGroupItem`;var ri=z.Root,ii=z.Trigger,ai=c.forwardRef(({className:e,portalHost:t,...n},r)=>(0,u.jsx)(z.Portal,{hostName:t,children:(0,u.jsx)(z.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn,exiting:h.FadeOut,className:H(`border-border bg-popover web:animate-in web:fade-in-0 web: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 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md`,e),children:(0,u.jsx)(K,{className:`text-popover-foreground native:text-base text-sm`,children:n.children})})})}));ai.displayName=z.Content?.displayName||`TooltipContent`;var oi=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),si=5,ci=1e6,Y={ADD_TOAST:`ADD_TOAST`,UPDATE_TOAST:`UPDATE_TOAST`,DISMISS_TOAST:`DISMISS_TOAST`,REMOVE_TOAST:`REMOVE_TOAST`},li=0;function ui(){return li=(li+1)%(2**53-1),li.toString()}var di=new Map,fi=e=>{if(di.has(e))return;let t=setTimeout(()=>{di.delete(e),Q({type:`REMOVE_TOAST`,toastId:e})},ci);di.set(e,t)},pi=(e,t)=>{switch(t.type){case Y.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,si)};case Y.UPDATE_TOAST:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case Y.DISMISS_TOAST:{let{toastId:n}=t;return n?fi(n):e.toasts.forEach(e=>{fi(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case Y.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},X=[],Z={toasts:[]};function Q(e){Z=pi(Z,e),X.forEach(e=>{e(Z)})}function mi({...e}){let t=ui(),n=e=>Q({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>Q({type:`DISMISS_TOAST`,toastId:t});return Q({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function hi(){let[e,t]=c.useState(Z);return c.useEffect(()=>(X.push(t),()=>{let e=X.indexOf(t);e>-1&&X.splice(e,1)}),[]),{...e,toast:mi,dismiss:e=>Q({type:`DISMISS_TOAST`,toastId:e})}}var gi=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),_i=c.forwardRef(({className:e,variant:t=`default`,...n},r)=>(0,u.jsx)(B.Root,{ref:r,className:H(`group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg`,t===`default`?`border-border bg-background`:`border-destructive bg-destructive`,e),...n,children:(0,u.jsx)(h.default.View,{entering:h.FadeInUp,exiting:h.FadeOutDown,layout:h.Layout,className:`w-full flex-row items-center`,children:n.children})}));_i.displayName=B.Root?.displayName||`Toast`;var vi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(B.Title,{ref:n,className:H(`text-foreground text-sm font-semibold`,e),...t}));vi.displayName=B.Title?.displayName||`ToastTitle`;var yi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(B.Description,{ref:n,className:H(`text-muted-foreground text-sm opacity-90`,e),...t}));yi.displayName=B.Description?.displayName||`ToastDescription`;var bi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(B.Close,{ref:n,className:H(`text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100 focus:ring-1 focus:outline-none`,e),...t,children:(0,u.jsx)(m.X,{size:16,className:`text-muted-foreground`})}));bi.displayName=B.Close?.displayName||`ToastClose`;var xi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(B.Action,{ref:n,className:H(`hover:bg-secondary focus:ring-ring inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50`,e),...t}));xi.displayName=B.Action?.displayName||`ToastAction`;function Si({children:e,className:t}){let{colorScheme:n}=(0,ee.useColorScheme)();return(0,u.jsx)(l.View,{className:H(`flex-1`,n===`dark`?`dark`:``,t),children:e})}function Ci({variant:e=`binary`,onThemeChange:t,customTheme:n,className:r}){let{colorScheme:i,setColorScheme:a}=(0,ee.useColorScheme)(),o=n??i,s=o===`dark`,c=o===`system`,d=e=>{t?t(e):a(e)},f=()=>(0,u.jsxs)(l.View,{className:`flex items-center justify-center`,children:[(0,u.jsx)(m.Sun,{size:18,className:H(`text-foreground transition-all`,!c&&!s?`scale-100 rotate-0 opacity-100`:`absolute scale-0 -rotate-90 opacity-0`)}),(0,u.jsx)(m.Moon,{size:18,className:H(`text-foreground transition-all`,!c&&s?`scale-100 rotate-0 opacity-100`:`absolute scale-0 rotate-90 opacity-0`)}),(0,u.jsx)(m.SunMoon,{size:18,className:H(`text-foreground transition-all`,c?`scale-100 rotate-0 opacity-100`:`absolute scale-0 rotate-90 opacity-0`)})]});return e===`ternary`?(0,u.jsxs)(Zt,{children:[(0,u.jsx)(Qt,{asChild:!0,children:(0,u.jsx)(W,{variant:`ghost`,size:`icon`,className:H(`relative h-9 w-9`,r),children:(0,u.jsx)(f,{})})}),(0,u.jsxs)(an,{align:`end`,children:[(0,u.jsxs)(q,{onPress:()=>d(`light`),children:[(0,u.jsx)(m.Sun,{size:14,className:`text-foreground mr-2`}),(0,u.jsx)(K,{children:`Light`})]}),(0,u.jsxs)(q,{onPress:()=>d(`dark`),children:[(0,u.jsx)(m.Moon,{size:14,className:`text-foreground mr-2`}),(0,u.jsx)(K,{children:`Dark`})]}),(0,u.jsxs)(q,{onPress:()=>d(`system`),children:[(0,u.jsx)(m.SunMoon,{size:14,className:`text-foreground mr-2`}),(0,u.jsx)(K,{children:`System`})]})]})]}):(0,u.jsx)(W,{variant:`ghost`,size:`icon`,className:H(`relative h-9 w-9`,r),onPress:()=>d(o===`dark`?`light`:`dark`),children:(0,u.jsx)(f,{})})}var wi=()=>{let{toasts:e}=hi();return(0,u.jsx)(gi,{children:(0,u.jsx)(l.View,{className:`pointer-events-none absolute right-6 bottom-6 left-6 z-50 flex flex-col gap-2`,children:e.map(({id:e,title:t,description:n,action:r,...i})=>(0,u.jsxs)(_i,{...i,className:`pointer-events-auto`,children:[(0,u.jsxs)(l.View,{className:`flex flex-1 flex-col gap-1`,children:[t&&(0,u.jsx)(vi,{children:t}),n&&(0,u.jsx)(yi,{children:n})]}),r,(0,u.jsx)(bi,{})]},e))})})},Ti=c.createContext(void 0);function Ei(){let e=c.useContext(Ti);if(!e)throw Error(`useTOC must be used within a TableOfContents provider`);return e}function $({children:e,activeId:t}){let[n,r]=c.useState([]),[i,a]=c.useState(null),o=c.useRef(null),s=c.useMemo(()=>{let e=t||i;return n.find(t=>t.id===e)?.text||null},[n,i,t]),d=c.useCallback((e,t,n,i)=>{r(r=>{let a=r.find(t=>t.id===e);return a&&Math.abs(a.pageY-i)<1?r:(a?r.map(r=>r.id===e?{id:e,text:t,level:n,pageY:i}:r):[...r,{id:e,text:t,level:n,pageY:i}]).sort((e,t)=>e.pageY-t.pageY)})},[]),f=c.useCallback(e=>{r(t=>t.filter(t=>t.id!==e))},[]),p=c.useCallback(e=>{let t=n.find(t=>t.id===e);t&&o.current&&o.current.scrollTo({y:t.pageY-20,animated:!0})},[n]),m=c.useCallback(e=>{let t=e.nativeEvent.contentOffset.y,r=null;for(let e=n.length-1;e>=0;e--)if(t>=n[e].pageY-100){r=n[e].id;break}r!==i&&a(r)},[n,i]),h=c.useMemo(()=>({headings:n,activeId:t||i,activeHeadingText:s,registerHeading:d,unregisterHeading:f,scrollToHeading:p,onScroll:m,scrollViewRef:o}),[n,i,t,s,d,f,p,m]);return(0,u.jsx)(Ti.Provider,{value:h,children:(0,u.jsx)(l.View,{className:`flex-1`,children:e})})}function Di({children:e,level:t=2,id:n,className:r}){let{registerHeading:i,unregisterHeading:a}=Ei(),o=n||te(e),s=c.useCallback(n=>{let{y:r}=n.nativeEvent.layout;i(o,e,t,r)},[o,e,t,i]);return c.useEffect(()=>()=>a(o),[o,a]),(0,u.jsx)(l.View,{onLayout:s,children:(0,u.jsx)(K,{variant:t===1?`h1`:t===2?`h2`:t===3?`h3`:`h4`,className:r,children:e})})}function Oi({className:e}){let{headings:t,activeId:n,scrollToHeading:r}=Ei();if(t.length===0)return null;let i=Math.min(...t.map(e=>e.level));return(0,u.jsxs)(l.View,{className:H(`space-y-2 p-4`,e),children:[(0,u.jsx)(K,{variant:`overline`,className:`mb-2 font-bold`,children:`On this page`}),t.map(e=>{let t=n===e.id;return(0,u.jsx)(l.TouchableOpacity,{onPress:()=>r(e.id),style:{paddingLeft:(e.level-i)*16},className:`py-1`,children:(0,u.jsx)(l.Text,{className:H(`text-sm`,t?`text-primary font-bold`:`text-muted-foreground`),children:e.text})},e.id)})]})}function ki({children:e,className:t}){let{scrollViewRef:n,onScroll:r}=Ei();return(0,u.jsx)(l.ScrollView,{ref:n,onScroll:r,className:H(`flex-1`,t),...l.Platform.OS!==`web`&&{scrollEventThrottle:16,contentContainerStyle:{padding:16}},children:e})}$.List=Oi,$.Content=ki,$.Heading=Di,exports.Accordion=ne,exports.AccordionContent=oe,exports.AccordionItem=re,exports.AccordionTrigger=ae,exports.Alert=ce,exports.AlertDescription=ue,exports.AlertDialog=fe,exports.AlertDialogAction=be,exports.AlertDialogCancel=xe,exports.AlertDialogContent=he,exports.AlertDialogDescription=ye,exports.AlertDialogFooter=_e,exports.AlertDialogHeader=ge,exports.AlertDialogOverlay=G,exports.AlertDialogPortal=me,exports.AlertDialogTitle=ve,exports.AlertDialogTrigger=pe,exports.AlertTitle=le,exports.AspectRatio=Se,exports.Avatar=Ce,exports.AvatarFallback=Te,exports.AvatarImage=we,exports.Badge=Oe,exports.Breadcrumb=je,exports.BreadcrumbEllipsis=Le,exports.BreadcrumbItem=Ne,exports.BreadcrumbLink=Pe,exports.BreadcrumbList=Me,exports.BreadcrumbPage=Fe,exports.BreadcrumbSeparator=Ie,exports.Button=W,exports.Calendar=Re,exports.Card=ze,exports.CardContent=Ue,exports.CardDescription=He,exports.CardFooter=We,exports.CardHeader=Be,exports.CardTitle=Ve,exports.Carousel=Ge,exports.CarouselContent=Ke,exports.CarouselItem=qe,exports.CarouselNext=Ye,exports.CarouselPrevious=Je,exports.ChartContainer=Xe,exports.ChartLegend=et,exports.ChartLegendContent=Qe,exports.ChartStyle=tt,exports.ChartTooltip=$e,exports.ChartTooltipContent=Ze,exports.Checkbox=nt,exports.Collapsible=rt,exports.CollapsibleContent=at,exports.CollapsibleTrigger=it,exports.Command=ot,exports.CommandDialog=st,exports.CommandEmpty=ut,exports.CommandGroup=dt,exports.CommandInput=ct,exports.CommandItem=ft,exports.CommandList=lt,exports.CommandSeparator=pt,exports.CommandShortcut=mt,exports.ContextMenu=ht,exports.ContextMenuCheckboxItem=wt,exports.ContextMenuContent=St,exports.ContextMenuGroup=vt,exports.ContextMenuItem=Ct,exports.ContextMenuLabel=Et,exports.ContextMenuPortal=_t,exports.ContextMenuRadioGroup=yt,exports.ContextMenuRadioItem=Tt,exports.ContextMenuSeparator=Dt,exports.ContextMenuShortcut=Ot,exports.ContextMenuSub=bt,exports.ContextMenuSubContent=At,exports.ContextMenuSubTrigger=kt,exports.ContextMenuTrigger=gt,exports.Dialog=jt,exports.DialogClose=Pt,exports.DialogContent=It,exports.DialogDescription=Bt,exports.DialogFooter=Rt,exports.DialogHeader=Lt,exports.DialogTitle=zt,exports.DialogTrigger=Mt,exports.Drawer=Vt,exports.DrawerClose=Jt,exports.DrawerContent=Gt,exports.DrawerDescription=Xt,exports.DrawerFooter=qt,exports.DrawerHeader=Kt,exports.DrawerOverlay=Wt,exports.DrawerPortal=Ut,exports.DrawerTitle=Yt,exports.DrawerTrigger=Ht,exports.DropdownMenu=Zt,exports.DropdownMenuCheckboxItem=on,exports.DropdownMenuContent=an,exports.DropdownMenuGroup=en,exports.DropdownMenuItem=q,exports.DropdownMenuLabel=cn,exports.DropdownMenuPortal=$t,exports.DropdownMenuRadioGroup=tn,exports.DropdownMenuRadioItem=sn,exports.DropdownMenuSeparator=ln,exports.DropdownMenuShortcut=un,exports.DropdownMenuSub=nn,exports.DropdownMenuSubContent=fn,exports.DropdownMenuSubTrigger=dn,exports.DropdownMenuTrigger=Qt,exports.Form=pn,exports.HoverCard=mn,exports.HoverCardContent=gn,exports.HoverCardTrigger=hn,exports.Input=_n,exports.Label=vn,exports.Menubar=yn,exports.MenubarCheckboxItem=kn,exports.MenubarContent=Dn,exports.MenubarGroup=Sn,exports.MenubarItem=On,exports.MenubarLabel=jn,exports.MenubarMenu=bn,exports.MenubarPortal=xn,exports.MenubarRadioGroup=Cn,exports.MenubarRadioItem=An,exports.MenubarSeparator=Mn,exports.MenubarShortcut=Nn,exports.MenubarSub=wn,exports.MenubarSubContent=Fn,exports.MenubarSubTrigger=Pn,exports.MenubarTrigger=En,exports.NavigationMenu=In,exports.NavigationMenuContent=Bn,exports.NavigationMenuIndicator=Un,exports.NavigationMenuItem=Rn,exports.NavigationMenuLink=Vn,exports.NavigationMenuList=Ln,exports.NavigationMenuTrigger=zn,exports.NavigationMenuViewport=Hn,exports.Pagination=Wn,exports.PaginationContent=Gn,exports.PaginationEllipsis=Yn,exports.PaginationItem=Kn,exports.PaginationLink=J,exports.PaginationNext=Jn,exports.PaginationPrevious=qn,exports.Popover=Zn,exports.PopoverAnchor=$n,exports.PopoverContent=er,exports.PopoverTrigger=Qn,exports.Progress=tr,exports.RadioGroup=nr,exports.RadioGroupItem=rr,exports.ResizableHandle=or,exports.ResizablePanel=ar,exports.ResizablePanelGroup=ir,exports.ScrollArea=sr,exports.ScrollToTop=br,exports.Search=lr,exports.Select=ur,exports.SelectContent=gr,exports.SelectGroup=dr,exports.SelectItem=vr,exports.SelectLabel=_r,exports.SelectScrollDownButton=hr,exports.SelectScrollUpButton=mr,exports.SelectSeparator=yr,exports.SelectTrigger=pr,exports.SelectValue=fr,exports.Separator=Tr,exports.Sheet=Er,exports.SheetClose=Or,exports.SheetContent=jr,exports.SheetDescription=Fr,exports.SheetFooter=Nr,exports.SheetHeader=Mr,exports.SheetOverlay=Ar,exports.SheetPortal=kr,exports.SheetTitle=Pr,exports.SheetTrigger=Dr,exports.Skeleton=Ir,exports.Slider=Lr,exports.Sonner=Rr,exports.SupportFab=wr,exports.Switch=zr,exports.Table=Br,exports.TableBody=Hr,exports.TableCaption=qr,exports.TableCell=Kr,exports.TableFooter=Ur,exports.TableHead=Gr,exports.TableHeader=Vr,exports.TableOfContents=$,exports.TableOfContentsContent=ki,exports.TableOfContentsHeading=Di,exports.TableOfContentsList=Oi,exports.TableRow=Wr,exports.Tabs=Jr,exports.TabsContent=Zr,exports.TabsList=Yr,exports.TabsTrigger=Xr,exports.Text=K,exports.Textarea=Qr,exports.ThemeProvider=Si,exports.ThemeToggle=Ci,exports.Toast=_i,exports.Toaster=wi,exports.Toggle=$r,exports.ToggleGroup=ti,exports.ToggleGroupItem=ni,exports.Tooltip=ri,exports.TooltipContent=ai,exports.TooltipProvider=oi,exports.TooltipTrigger=ii,exports.badgeVariants=Ee,exports.buttonVariants=U,exports.cn=H,exports.textVariants=Ae,exports.toast=mi,exports.toggleVariants=I.toggleVariants,exports.useToast=hi,exports.wrapTextChildren=V;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react");c=s(c);let l=require("react-native"),u=require("react/jsx-runtime"),d=require("clsx"),f=require("tailwind-merge"),p=require("@rn-primitives/accordion");p=s(p);let m=require("lucide-react-native"),h=require("react-native-reanimated");h=s(h);let g=require("class-variance-authority"),_=require("@rn-primitives/alert-dialog");_=s(_);let v=require("@rn-primitives/aspect-ratio");v=s(v);let y=require("@rn-primitives/avatar");y=s(y);let b=require("@rn-primitives/slot");b=s(b);let x=require("@rn-primitives/checkbox");x=s(x);let S=require("@rn-primitives/collapsible");S=s(S);let C=require("@rn-primitives/context-menu");C=s(C);let w=require("@rn-primitives/dialog");w=s(w);let T=require("@rn-primitives/dropdown-menu");T=s(T);let ee=require("react-hook-form"),E=require("@rn-primitives/label");E=s(E);let D=require("@rn-primitives/hover-card");D=s(D);let O=require("@rn-primitives/menubar");O=s(O);let k=require("@rn-primitives/navigation-menu");k=s(k);let A=require("@rn-primitives/radio-group");A=s(A);let j=require("@rn-primitives/select");j=s(j);let M=require("@rn-primitives/separator");M=s(M);let N=require("@rn-primitives/slider");N=s(N);let P=require("@rn-primitives/toast");P=s(P);let F=require("@rn-primitives/switch");F=s(F);let I=require("@rn-primitives/tabs");I=s(I);let te=require("@gv-tech/ui-core"),L=require("@rn-primitives/toggle");L=s(L);let R=require("@rn-primitives/toggle-group");R=s(R);let z=require("@rn-primitives/tooltip");z=s(z);let ne=require("nativewind"),re=require("@gv-tech/design-tokens");function B(e,t=l.Text,n={}){return c.Children.map(e,e=>typeof e==`string`||typeof e==`number`?(0,u.jsx)(t,{...n,children:e}):e)}function V(...e){return(0,f.twMerge)((0,d.clsx)(e))}function ie(e){return e.toString().toLowerCase().trim().replace(/\s+/g,`-`).replace(/[^\w-]+/g,``).replace(/--+/g,`-`)}var ae=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Root,{ref:n,className:V(`web:gap-0`,e),...t}));ae.displayName=p.Root?.displayName||`Accordion`;var oe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Item,{ref:n,className:V(`border-border overflow-hidden border-b`,e),...t}));oe.displayName=p.Item?.displayName||`AccordionItem`;var se=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Header,{ref:n,className:V(`flex flex-row`,e),...t}));se.displayName=p.Header?.displayName||`AccordionHeader`;var ce=c.forwardRef(({className:e,children:t,...n},r)=>{let{isExpanded:i}=p.useItemContext(),a=(0,h.useDerivedValue)(()=>i?(0,h.withTiming)(1,{duration:250}):(0,h.withTiming)(0,{duration:200})),o=(0,h.useAnimatedStyle)(()=>({transform:[{rotate:`${a.value*180}deg`}],opacity:(0,h.interpolate)(a.value,[0,1],[1,.8],h.Extrapolation.CLAMP)}));return(0,u.jsx)(p.Header,{className:`flex`,children:(0,u.jsxs)(p.Trigger,{ref:r,className:V(`flex flex-row items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[(0,u.jsx)(u.Fragment,{children:t}),(0,u.jsx)(h.default.View,{style:o,children:(0,u.jsx)(m.ChevronDown,{className:`text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200`})})]})})});ce.displayName=p.Trigger?.displayName||`AccordionTrigger`;var le=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(p.Content,{ref:r,className:V(`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all`,e),...n,children:(0,u.jsx)(l.View,{className:V(`pt-0 pb-4`,e),children:t})}));le.displayName=p.Content?.displayName||`AccordionContent`;var ue=(0,g.cva)(`relative w-full rounded-lg border p-4`,{variants:{variant:{default:`bg-background border-border`,destructive:`border-destructive/50 bg-destructive/10`,warning:`border-amber-500/50 bg-amber-500/10`,info:`border-blue-500/50 bg-blue-500/10`}},defaultVariants:{variant:`default`}}),de=c.forwardRef(({className:e,variant:t,children:n,...r},i)=>(0,u.jsx)(l.View,{ref:i,className:V(ue({variant:t}),e),...r,children:B(n)}));de.displayName=`Alert`;var fe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:V(`text-foreground mb-1 leading-none font-medium tracking-tight`,e),...t}));fe.displayName=`AlertTitle`;var pe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:V(`text-muted-foreground text-sm leading-relaxed`,e),...t}));pe.displayName=`AlertDescription`;var H=(0,g.cva)(`flex-row items-center justify-center gap-2 rounded-md transition-colors active:opacity-80`,{variants:{variant:{default:`bg-primary shadow-sm`,destructive:`bg-destructive shadow-sm`,outline:`border border-input bg-transparent shadow-sm`,secondary:`bg-secondary shadow-sm`,ghost:`bg-transparent`,link:`bg-transparent`},size:{default:`h-10 px-4 py-2`,sm:`h-9 px-3`,lg:`h-12 px-8`,icon:`h-10 w-10`}},defaultVariants:{variant:`default`,size:`default`}}),me=(0,g.cva)(`text-sm font-medium`,{variants:{variant:{default:`text-primary-foreground`,destructive:`text-destructive-foreground`,outline:`text-foreground`,secondary:`text-secondary-foreground`,ghost:`text-foreground`,link:`text-primary underline`}},defaultVariants:{variant:`default`}}),U=c.forwardRef(({className:e,variant:t,size:n,onPress:r,children:i,disabled:a,...o},s)=>(0,u.jsx)(l.Pressable,{ref:s,onPress:r,disabled:a,className:V(H({variant:t,size:n,className:e}),a&&`opacity-50`),...o,children:B(i,l.Text,{className:V(me({variant:t}))})}));U.displayName=`Button`;var he=_.Root,ge=_.Trigger,_e=_.Portal,ve=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Overlay,{style:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`z-50 flex items-center justify-center bg-black/80 p-2`,e)})}));ve.displayName=_.Overlay?.displayName||`AlertDialogOverlay`;var ye=c.forwardRef(({className:e,portalHost:t,overlayClassName:n,overlayStyle:r,...i},a)=>(0,u.jsxs)(_e,{hostName:t,children:[(0,u.jsx)(ve,{className:n,style:r}),(0,u.jsx)(_.Content,{ref:a,asChild:!0,...i,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`border-border bg-background z-50 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e)})})]}));ye.displayName=_.Content?.displayName||`AlertDialogContent`;var be=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col gap-2 text-center sm:text-left`,e),...t});be.displayName=`AlertDialogHeader`;var xe=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});xe.displayName=`AlertDialogFooter`;var Se=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Title,{ref:n,className:V(`native:text-xl text-foreground text-lg font-semibold`,e),...t}));Se.displayName=_.Title?.displayName||`AlertDialogTitle`;var Ce=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Description,{ref:n,className:V(`native:text-base text-muted-foreground text-sm`,e),...t}));Ce.displayName=_.Description?.displayName||`AlertDialogDescription`;var we=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Action,{ref:n,className:V(H(),e),...t}));we.displayName=_.Action?.displayName||`AlertDialogAction`;var Te=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Cancel,{ref:n,className:V(H({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));Te.displayName=_.Cancel?.displayName||`AlertDialogCancel`;var Ee=({children:e,className:t,ratio:n=1})=>(0,u.jsx)(v.Root,{ratio:n,className:V(`w-full`,t),children:e});Ee.displayName=`AspectRatio`;var De=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Root,{ref:n,className:V(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));De.displayName=y.Root?.displayName||`Avatar`;var Oe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Image,{ref:n,className:V(`aspect-square h-full w-full`,e),...t}));Oe.displayName=y.Image?.displayName||`AvatarImage`;var ke=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Fallback,{ref:n,className:V(`bg-muted flex h-full w-full items-center justify-center rounded-full`,e),...t}));ke.displayName=y.Fallback?.displayName||`AvatarFallback`;var Ae=(0,g.cva)(`flex-row items-center rounded-md border px-2 py-0.5`,{variants:{variant:{default:`border-transparent bg-primary`,secondary:`border-transparent bg-secondary`,destructive:`border-transparent bg-destructive`,outline:`border-border bg-transparent`}},defaultVariants:{variant:`default`}}),je=(0,g.cva)(`text-xs font-semibold`,{variants:{variant:{default:`text-primary-foreground`,secondary:`text-secondary-foreground`,destructive:`text-destructive-foreground`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function Me({className:e,textClassName:t,variant:n,children:r,...i}){return(0,u.jsx)(l.View,{className:V(Ae({variant:n}),e),...i,children:B(r,l.Text,{className:V(je({variant:n}),t)})})}var Ne=c.createContext(void 0),Pe=(0,g.cva)(`text-foreground`,{variants:{variant:{h1:`text-4xl font-extrabold tracking-tight`,h2:`text-3xl font-semibold tracking-tight`,h3:`text-2xl font-semibold tracking-tight`,h4:`text-xl font-semibold tracking-tight`,body:`text-base leading-7`,bodySmall:`text-sm leading-6`,caption:`text-xs text-muted-foreground`,label:`text-sm font-medium`,overline:`text-xs font-semibold uppercase tracking-widest text-muted-foreground`}},defaultVariants:{variant:`body`}}),W=c.forwardRef(({className:e,variant:t=`body`,children:n,...r},i)=>(0,u.jsx)(l.Text,{ref:i,className:V(Pe({variant:t,className:e})),...r,children:n}));W.displayName=`Text`;var Fe=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,"aria-label":`breadcrumb`,className:V(`flex flex-row`,e),...n,children:t}));Fe.displayName=`Breadcrumb`;var Ie=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:V(`text-muted-foreground flex flex-row flex-wrap items-center gap-1.5 break-words sm:gap-2.5`,e),...n,children:t}));Ie.displayName=`BreadcrumbList`;var Le=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:V(`flex flex-row items-center gap-1.5`,e),...n,children:t}));Le.displayName=`BreadcrumbItem`;var Re=c.forwardRef(({asChild:e,className:t,children:n,onPress:r,...i},a)=>(0,u.jsx)(e?b.Slot:l.Pressable,{ref:a,onPress:r,className:V(`hover:text-foreground active:text-foreground flex flex-row items-center transition-colors`,t),...i,children:B(n,W,{className:`text-muted-foreground hover:text-foreground text-sm font-medium`})}));Re.displayName=`BreadcrumbLink`;var ze=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,role:`link`,"aria-disabled":!0,"aria-current":`page`,className:V(`flex flex-row items-center`,e),...n,children:B(t,W,{className:`text-foreground text-sm font-normal`})}));ze.displayName=`BreadcrumbPage`;var Be=({children:e,className:t,...n})=>(0,u.jsx)(l.View,{role:`presentation`,"aria-hidden":!0,className:V(`flex flex-row items-center justify-center`,t),...n,children:e??(0,u.jsx)(m.ChevronRight,{size:14,className:`text-muted-foreground`})});Be.displayName=`BreadcrumbSeparator`;var Ve=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{role:`presentation`,"aria-hidden":!0,className:V(`flex h-9 w-9 flex-row items-center justify-center`,e),...n,children:t??(0,u.jsx)(m.MoreHorizontal,{size:14,className:`text-muted-foreground`})});Ve.displayName=`BreadcrumbEllipsis`;var He=({className:e})=>(0,u.jsx)(l.View,{className:e}),Ue=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`border-border bg-card rounded-xl border shadow-sm`,e),...t}));Ue.displayName=`Card`;var We=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`flex flex-col space-y-1.5 p-6`,e),...t}));We.displayName=`CardHeader`;var Ge=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:V(`text-card-foreground text-lg leading-none font-semibold tracking-tight`,e),...t}));Ge.displayName=`CardTitle`;var Ke=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:V(`text-muted-foreground text-sm`,e),...t}));Ke.displayName=`CardDescription`;var qe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`p-6 pt-0`,e),...t,children:B(t.children,l.Text,{className:`text-sm text-card-foreground`})}));qe.displayName=`CardContent`;var Je=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`flex flex-row items-center p-6 pt-0`,e),...t}));Je.displayName=`CardFooter`;var Ye=c.createContext(null);function G(){let e=c.useContext(Ye);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var Xe=c.forwardRef(({children:e,className:t,opts:n,orientation:r=`horizontal`,setApi:i,plugins:a,...o},s)=>{let d=c.useRef(null),[f,p]=c.useState(!0),[m,h]=c.useState(!1),[g,_]=c.useState(l.Dimensions.get(`window`).width),[v,y]=c.useState(0),b=c.useCallback(()=>{d.current?.scrollTo({x:(v+1)*g,animated:!0})},[v,g]),x=c.useCallback(()=>{d.current?.scrollTo({x:Math.max(0,v-1)*g,animated:!0})},[v,g]);return c.useEffect(()=>{i&&i({scrollNext:b,scrollPrev:x,canScrollNext:()=>f,canScrollPrev:()=>m,on:()=>{},off:()=>{}})},[i,b,x,f,m]),(0,u.jsx)(Ye.Provider,{value:{orientation:r,scrollRef:d,scrollNext:b,scrollPrev:x,canScrollNext:f,canScrollPrev:m,itemWidth:g,setItemWidth:_},children:(0,u.jsx)(l.View,{ref:s,className:V(`relative`,t),...o,children:e})})});Xe.displayName=`Carousel`;var Ze=c.forwardRef(({children:e,className:t,...n},r)=>{let{scrollRef:i,orientation:a}=G();return(0,u.jsx)(l.View,{className:`overflow-hidden`,children:(0,u.jsx)(l.ScrollView,{ref:i,horizontal:a===`horizontal`,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,pagingEnabled:!0,snapToInterval:a===`horizontal`?l.Dimensions.get(`window`).width:void 0,decelerationRate:`fast`,className:V(`flex`,a===`horizontal`?`flex-row`:`flex-col`,t),...n,children:e})})});Ze.displayName=`CarouselContent`;var Qe=c.forwardRef(({children:e,className:t,...n},r)=>{let{orientation:i,setItemWidth:a}=G();return(0,u.jsx)(l.View,{ref:r,onLayout:e=>{i===`horizontal`&&a(e.nativeEvent.layout.width)},className:V(`min-w-0 shrink-0 grow-0 basis-full`,t),...n,children:e})});Qe.displayName=`CarouselItem`;var $e=c.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollPrev:o,canScrollPrev:s}=G();return(0,u.jsx)(U,{ref:i,variant:t,size:n,className:V(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onPress:o,...r,children:(0,u.jsx)(m.ArrowLeft,{className:`text-foreground h-4 w-4`,size:16})})});$e.displayName=`CarouselPrevious`;var et=c.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollNext:o,canScrollNext:s}=G();return(0,u.jsx)(U,{ref:i,variant:t,size:n,className:V(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onPress:o,...r,children:(0,u.jsx)(m.ArrowRight,{className:`text-foreground h-4 w-4`,size:16})})});et.displayName=`CarouselNext`;var tt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),nt=({className:e})=>(0,u.jsx)(l.View,{className:e}),rt=({className:e})=>(0,u.jsx)(l.View,{className:e}),it=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),at=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),ot=()=>null,st=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(x.Root,{ref:n,className:V(`web:peer native:h-[20] native:w-[20] native:rounded border-primary web:ring-offset-background web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:opacity-50`,t.checked&&`bg-primary`,e),...t,children:(0,u.jsx)(x.Indicator,{className:V(`h-full w-full items-center justify-center`),children:(0,u.jsx)(m.Check,{size:12,strokeWidth:l.Platform.OS===`web`?2.5:3.5,className:`text-primary-foreground`})})}));st.displayName=x.Root?.displayName||`Checkbox`;var ct=S.Root,lt=S.Trigger,ut=S.Content,dt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:B(e)}),ft=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),pt=({className:e})=>(0,u.jsx)(l.View,{className:e}),mt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:B(e)}),ht=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:B(e)}),gt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:B(e)}),_t=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:B(e)}),vt=({className:e})=>(0,u.jsx)(l.View,{className:e}),yt=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:B(e)}),bt=C.Root,xt=C.Trigger,St=C.Portal,Ct=C.Group,wt=C.RadioGroup,Tt=C.Sub,Et=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(C.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(100),exiting:h.FadeOut.duration(100),className:V(`absolute inset-0 z-50 bg-black/30`,e)})}));Et.displayName=`ContextMenuOverlay`;var Dt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(St,{children:[(0,u.jsx)(Et,{}),(0,u.jsx)(C.Content,{ref:r,className:V(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t})]}));Dt.displayName=`ContextMenuContent`;var Ot=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(C.Item,{ref:i,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:B(t,W)}));Ot.displayName=`ContextMenuItem`;var kt=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(C.CheckboxItem,{ref:a,checked:!!n,onCheckedChange:r||(()=>{}),className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...i,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(C.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),B(t,W)]}));kt.displayName=`ContextMenuCheckboxItem`;var At=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(C.RadioItem,{ref:i,value:n,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(C.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),B(t,W)]}));At.displayName=`ContextMenuRadioItem`;var jt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(C.Label,{ref:i,className:V(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:B(t,W)}));jt.displayName=`ContextMenuLabel`;var Mt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(C.Separator,{ref:n,className:V(`bg-border -mx-1 my-1 h-px`,e),...t}));Mt.displayName=`ContextMenuSeparator`;var Nt=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:V(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});Nt.displayName=`ContextMenuShortcut`;var Pt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(C.SubTrigger,{ref:i,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:[(0,u.jsx)(l.View,{className:`flex flex-row items-center gap-1.5`,children:B(t,W)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));Pt.displayName=`ContextMenuSubTrigger`;var Ft=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(C.SubContent,{ref:r,className:V(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t}));Ft.displayName=`ContextMenuSubContent`;var It=w.Root,Lt=w.Trigger,Rt=w.Portal,zt=w.Close,Bt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Overlay,{style:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`z-50 flex items-center justify-center bg-black/80 p-2`,e)})}));Bt.displayName=w.Overlay?.displayName||`DialogOverlay`;var Vt=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Rt,{hostName:n,children:[(0,u.jsx)(Bt,{className:r,style:i}),(0,u.jsx)(w.Content,{ref:o,asChild:!0,...a,children:(0,u.jsxs)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`border-border bg-background z-50 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e),children:[t,(0,u.jsxs)(w.Close,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none`,children:[(0,u.jsx)(m.X,{size:18,className:`text-muted-foreground`}),(0,u.jsx)(l.View,{className:`sr-only`,children:(0,u.jsx)(w.Title,{children:`Close`})})]})]})})]}));Vt.displayName=w.Content?.displayName||`DialogContent`;var Ht=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col gap-1.5 text-center sm:text-left`,e),...t});Ht.displayName=`DialogHeader`;var Ut=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});Ut.displayName=`DialogFooter`;var Wt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Title,{ref:n,className:V(`native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight`,e),...t}));Wt.displayName=w.Title?.displayName||`DialogTitle`;var Gt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Description,{ref:n,className:V(`native:text-base text-muted-foreground text-sm`,e),...t}));Gt.displayName=w.Description?.displayName||`DialogDescription`;var Kt=({children:e})=>(0,u.jsx)(w.Root,{children:e});Kt.displayName=`Drawer`;var qt=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(w.Trigger,{ref:r,className:t,...n,children:B(e)}));qt.displayName=`DrawerTrigger`;var Jt=w.Portal,Yt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Overlay,{style:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`z-50 bg-black/80`,e)})}));Yt.displayName=`DrawerOverlay`;var Xt=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Jt,{hostName:n,children:[(0,u.jsx)(Yt,{className:r,style:i}),(0,u.jsx)(w.Content,{ref:o,asChild:!0,...a,children:(0,u.jsxs)(h.default.View,{entering:h.SlideInDown.duration(200),exiting:h.SlideOutDown.duration(200),className:V(`border-border bg-background fixed inset-x-0 bottom-0 z-50 flex h-auto flex-col rounded-t-xl border p-6 pb-10 shadow-lg`,e),children:[(0,u.jsx)(l.View,{className:`bg-muted mx-auto mb-4 h-1.5 w-12 rounded-full`}),t]})})]}));Xt.displayName=`DrawerContent`;var Zt=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{className:V(`flex flex-col gap-1.5 text-center sm:text-left`,e),...n,children:B(t)});Zt.displayName=`DrawerHeader`;var Qt=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{className:V(`mt-auto flex flex-col gap-2`,e),...n,children:B(t)});Qt.displayName=`DrawerFooter`;var $t=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(w.Close,{ref:r,className:t,...n,children:B(e)}));$t.displayName=`DrawerClose`;var en=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(w.Title,{ref:r,className:V(`text-foreground text-lg leading-none font-semibold tracking-tight`,e),...n,children:B(t)}));en.displayName=`DrawerTitle`;var tn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(w.Description,{ref:r,className:V(`text-muted-foreground text-sm`,e),...n,children:B(t)}));tn.displayName=`DrawerDescription`;var nn=T.Root,rn=T.Trigger,an=T.Portal,on=T.Group,sn=T.RadioGroup,cn=T.Sub,ln=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(100),exiting:h.FadeOut.duration(100),className:V(`absolute inset-0 z-50 bg-black/30`,e)})}));ln.displayName=`DropdownMenuOverlay`;var un=c.forwardRef(({className:e,children:t,side:n,...r},i)=>{let a=n===`left`||n===`right`?`bottom`:n;return(0,u.jsxs)(an,{children:[(0,u.jsx)(ln,{}),(0,u.jsx)(T.Content,{ref:i,side:a,className:V(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...r,children:t})]})});un.displayName=`DropdownMenuContent`;var K=c.forwardRef(({className:e,children:t,inset:n,onSelect:r,...i},a)=>(0,u.jsx)(T.Item,{ref:a,onPress:()=>r?.(new Event(`select`)),className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...i,children:B(t,W)}));K.displayName=`DropdownMenuItem`;var dn=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(T.CheckboxItem,{ref:a,checked:!!n,onCheckedChange:r||(()=>{}),className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...i,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(T.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),B(t,W)]}));dn.displayName=`DropdownMenuCheckboxItem`;var fn=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(T.RadioItem,{ref:i,value:n,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(T.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),B(t,W)]}));fn.displayName=`DropdownMenuRadioItem`;var pn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(T.Label,{ref:i,className:V(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:B(t,W)}));pn.displayName=`DropdownMenuLabel`;var mn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Separator,{ref:n,className:V(`bg-border -mx-1 my-1 h-px`,e),...t}));mn.displayName=`DropdownMenuSeparator`;var hn=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:V(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});hn.displayName=`DropdownMenuShortcut`;var gn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(T.SubTrigger,{ref:i,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:[(0,u.jsx)(l.View,{className:`flex flex-row items-center gap-1.5`,children:B(t,W)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));gn.displayName=`DropdownMenuSubTrigger`;var _n=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(T.SubContent,{ref:r,className:V(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t}));_n.displayName=`DropdownMenuSubContent`;var vn=c.forwardRef(({className:e,onPress:t,onLongPress:n,onPressIn:r,onPressOut:i,...a},o)=>(0,u.jsx)(E.Root,{className:`web:cursor-default`,onPress:t,onLongPress:n,onPressIn:r,onPressOut:i,children:(0,u.jsx)(E.Text,{ref:o,className:V(`text-foreground native:text-base web:peer-disabled:cursor-not-allowed web:peer-disabled:opacity-70 text-sm leading-none font-medium`,e),...a})}));vn.displayName=E.Root?.displayName||`Label`;var yn=ee.FormProvider,bn=c.createContext(null),q=()=>{let e=c.useContext(bn),t=c.useContext(xn),{getFieldState:n,formState:r}=(0,ee.useFormContext)();if(!e)throw Error(`useFormField should be used within <FormField>`);if(!t)throw Error(`useFormField should be used within <FormItem>`);let i=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},xn=c.createContext(null),Sn=c.forwardRef(({className:e,...t},n)=>{let r=c.useId();return(0,u.jsx)(xn.Provider,{value:{id:r},children:(0,u.jsx)(l.View,{ref:n,className:V(`space-y-2`,e),...t})})});Sn.displayName=`FormItem`;var Cn=c.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=q();return(0,u.jsx)(vn,{ref:n,className:V(r&&`text-destructive`,e),nativeID:i,...t})});Cn.displayName=`FormLabel`;var wn=c.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=q();return(0,u.jsx)(b.Slot,{ref:t,nativeID:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});wn.displayName=`FormControl`;var Tn=c.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=q();return(0,u.jsx)(l.Text,{ref:n,nativeID:r,className:V(`text-muted-foreground text-[13px]`,e),...t})});Tn.displayName=`FormDescription`;var En=c.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=q(),o=i?String(i?.message??``):t;return o?(0,u.jsx)(l.Text,{ref:r,nativeID:a,className:V(`text-destructive text-[13px] font-medium`,e),...n,children:o}):null});En.displayName=`FormMessage`;var Dn=D.Root,On=D.Trigger,kn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(D.Portal,{children:(0,u.jsx)(D.Content,{ref:r,className:V(`bg-popover text-popover-foreground border-border z-50 w-64 rounded-md border p-4 shadow-md`,e),...n,children:t})}));kn.displayName=D.Content?.displayName||`HoverCardContent`;var An=c.forwardRef(({className:e,placeholderClassName:t,...n},r)=>(0,u.jsx)(l.TextInput,{ref:r,className:V(`border-input text-foreground placeholder:text-muted-foreground focus:border-ring flex h-10 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50`,e),placeholderClassName:V(`text-muted-foreground`,t),...n}));An.displayName=`Input`;var jn=c.forwardRef(({className:e,children:t,value:n,onValueChange:r,...i},a)=>{let[o,s]=c.useState(n||``),l=n===void 0?o:n;return(0,u.jsx)(O.Root,{ref:a,value:l,onValueChange:e=>{s(e),r?.(e||``)},className:V(`bg-background border-border flex flex-row items-center space-x-1 rounded-md border p-1 shadow-sm`,e),...i,children:t})});jn.displayName=`Menubar`;var Mn=O.Menu,Nn=O.Portal,Pn=O.Group,Fn=O.RadioGroup,In=O.Sub,Ln=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(O.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(100),exiting:h.FadeOut.duration(100),className:V(`absolute inset-0 z-50 bg-black/30`,e)})}));Ln.displayName=`MenubarOverlay`;var Rn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(O.Trigger,{ref:r,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none`,e),...n,children:B(t,W)}));Rn.displayName=`MenubarTrigger`;var zn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(Nn,{children:[(0,u.jsx)(Ln,{}),(0,u.jsx)(O.Content,{ref:r,className:V(`bg-popover border-border z-50 min-w-[12rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t})]}));zn.displayName=`MenubarContent`;var Bn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(O.Item,{ref:i,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:B(t,W)}));Bn.displayName=`MenubarItem`;var Vn=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(O.CheckboxItem,{ref:a,checked:!!n,onCheckedChange:r||(()=>{}),className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...i,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(O.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),B(t,W)]}));Vn.displayName=`MenubarCheckboxItem`;var Hn=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(O.RadioItem,{ref:i,value:n,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(O.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),B(t,W)]}));Hn.displayName=`MenubarRadioItem`;var Un=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(O.Label,{ref:i,className:V(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:B(t,W)}));Un.displayName=`MenubarLabel`;var Wn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(O.Separator,{ref:n,className:V(`bg-border -mx-1 my-1 h-px`,e),...t}));Wn.displayName=`MenubarSeparator`;var Gn=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:V(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});Gn.displayName=`MenubarShortcut`;var Kn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(O.SubTrigger,{ref:i,className:V(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none`,n&&`pl-8`,e),...r,children:[(0,u.jsx)(l.View,{className:`flex flex-row items-center gap-1.5`,children:B(t,W)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));Kn.displayName=`MenubarSubTrigger`;var qn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(O.SubContent,{ref:r,className:V(`bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,e),...n,children:t}));qn.displayName=`MenubarSubContent`;var Jn=c.forwardRef(({className:e,children:t,value:n,onValueChange:r,dir:i,orientation:a,delayDuration:o,skipDelayDuration:s,...c},l)=>(0,u.jsx)(k.Root,{ref:l,value:n,onValueChange:r?e=>r(e||``):()=>{},delayDuration:o,skipDelayDuration:s,className:V(`relative z-10 flex flex-row items-center justify-center`,e),...c,children:t}));Jn.displayName=`NavigationMenu`;var Yn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(k.List,{ref:r,className:V(`group flex flex-1 list-none flex-row items-center justify-center gap-1`,e),...n,children:t}));Yn.displayName=`NavigationMenuList`;var Xn=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsx)(k.Item,{ref:i,value:n||``,className:V(`relative`,e),...r,children:t}));Xn.displayName=`NavigationMenuItem`;var Zn=c.forwardRef(({className:e,children:t,disabled:n,...r},i)=>(0,u.jsxs)(k.Trigger,{ref:i,disabled:n,className:V(`group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center justify-center gap-1 rounded-md px-4 py-2 text-sm font-medium transition-colors disabled:opacity-50`,e),...r,children:[(0,u.jsx)(u.Fragment,{children:t}),(0,u.jsx)(m.ChevronDown,{size:12,className:`text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180`})]}));Zn.displayName=`NavigationMenuTrigger`;var Qn=c.forwardRef(({className:e,children:t,forceMount:n,...r},i)=>(0,u.jsx)(k.Portal,{children:(0,u.jsx)(k.Content,{ref:i,...r,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`bg-popover border-border z-50 overflow-hidden rounded-md border p-4 shadow-md`,e),children:t})})}));Qn.displayName=`NavigationMenuContent`;var $n=c.forwardRef(({className:e,children:t,active:n,onSelect:r,onPress:i,href:a,...o},s)=>(0,u.jsx)(k.Link,{ref:s,active:n,onPress:e=>{i&&i(),r&&r(e)},className:V(`hover:bg-accent hover:text-accent-foreground active:bg-accent active:text-accent-foreground rounded-md px-3 py-2 text-sm font-medium transition-colors`,n&&`bg-accent text-accent-foreground`,e),...o,children:t}));$n.displayName=`NavigationMenuLink`;var er=c.forwardRef(({className:e,forceMount:t,...n},r)=>(0,u.jsx)(l.View,{className:`absolute top-full left-0 flex justify-center`,children:(0,u.jsx)(k.Viewport,{ref:r,className:V(`origin-top-center bg-popover text-popover-foreground border-border relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]`,e),...n})}));er.displayName=`NavigationMenuViewport`;var tr=c.forwardRef(({className:e,forceMount:t,...n},r)=>(0,u.jsx)(k.Indicator,{ref:r,className:V(`z-10 flex h-1.5 items-end justify-center overflow-hidden transition-all duration-200`,e),...n,children:(0,u.jsx)(l.View,{className:`bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md`})}));tr.displayName=`NavigationMenuIndicator`;var nr=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{role:`navigation`,"aria-label":`pagination`,className:V(`mx-auto flex w-full flex-row justify-center`,e),...n,children:t});nr.displayName=`Pagination`;var rr=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:V(`flex flex-row items-center gap-1`,e),...n,children:t}));rr.displayName=`PaginationContent`;var ir=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:V(``,e),...n,children:t}));ir.displayName=`PaginationItem`;var J=({className:e,isActive:t,size:n=`icon`,children:r,onPress:i,...a})=>(0,u.jsx)(U,{variant:t?`outline`:`ghost`,size:n,onPress:i,className:e,...a,children:r});J.displayName=`PaginationLink`;var ar=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(J,{"aria-label":`Go to previous page`,size:`default`,className:V(`flex flex-row items-center gap-1 pl-2.5`,e),onPress:n,...r,children:[(0,u.jsx)(m.ChevronLeft,{size:16,className:`text-foreground`}),(0,u.jsx)(W,{className:`text-sm font-medium`,children:`Previous`})]});ar.displayName=`PaginationPrevious`;var or=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(J,{"aria-label":`Go to next page`,size:`default`,className:V(`flex flex-row items-center gap-1 pr-2.5`,e),onPress:n,...r,children:[(0,u.jsx)(W,{className:`text-sm font-medium`,children:`Next`}),(0,u.jsx)(m.ChevronRight,{size:16,className:`text-foreground`})]});or.displayName=`PaginationNext`;var sr=({className:e,...t})=>(0,u.jsx)(l.View,{"aria-hidden":!0,className:V(`flex h-9 w-9 flex-row items-center justify-center`,e),...t,children:(0,u.jsx)(m.MoreHorizontal,{size:16,className:`text-foreground`})});sr.displayName=`PaginationEllipsis`;var cr=c.createContext({open:!1,setOpen:()=>{}}),lr=c.forwardRef(({children:e,open:t,onOpenChange:n,...r},i)=>{let[a,o]=c.useState(!1),s=t!==void 0,d=s?t:a,f=s?n||(()=>{}):o;return(0,u.jsx)(cr.Provider,{value:{open:d,setOpen:f},children:(0,u.jsx)(l.View,{ref:i,...r,children:e})})});lr.displayName=`Popover`;var ur=c.forwardRef(({children:e,...t},n)=>{let{setOpen:r}=c.useContext(cr);return(0,u.jsx)(l.Pressable,{ref:n,onPress:()=>r(!0),...t,children:e})});ur.displayName=`PopoverTrigger`;var dr=c.forwardRef(({...e},t)=>(0,u.jsx)(l.View,{ref:t,...e}));dr.displayName=`PopoverAnchor`;var fr=c.forwardRef(({className:e,children:t,...n},r)=>{let{open:i,setOpen:a}=c.useContext(cr);return(0,u.jsx)(l.Modal,{visible:i,transparent:!0,animationType:`fade`,onRequestClose:()=>a(!1),children:(0,u.jsx)(l.Pressable,{className:`flex-1`,onPress:()=>a(!1),children:(0,u.jsx)(l.View,{className:`flex-1 items-center justify-center bg-black/50`,children:(0,u.jsx)(l.Pressable,{onPress:()=>{},children:(0,u.jsx)(l.View,{ref:r,className:V(`bg-popover border-border mx-4 w-full max-w-sm rounded-md border p-4 shadow-lg`,e),...n,children:t})})})})})});fr.displayName=`PopoverContent`;var pr=c.forwardRef(({className:e,value:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:V(`bg-muted relative h-2 w-full overflow-hidden rounded-full`,e),accessibilityRole:`progressbar`,role:`progressbar`,...n,children:(0,u.jsx)(l.View,{className:`bg-primary h-full rounded-full`,style:{width:`${t||0}%`}})}));pr.displayName=`Progress`;var mr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(A.Root,{className:V(`web:grid gap-2`,e),...t,ref:n}));mr.displayName=A.Root?.displayName||`RadioGroup`;var hr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(A.Item,{ref:n,className:V(`native:h-5 native:w-5 border-primary text-primary web:ring-offset-background web:focus:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 aspect-square h-4 w-4 rounded-full border`,t.disabled&&`web:cursor-not-allowed opacity-50`,e),...t,children:(0,u.jsx)(A.Indicator,{className:`flex items-center justify-center`,children:(0,u.jsx)(m.Circle,{className:`h-2.5 w-2.5 fill-current text-current`})})}));hr.displayName=A.Item?.displayName||`RadioGroupItem`;var gr=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),_r=({children:e,className:t})=>(0,u.jsx)(l.View,{className:t,children:e}),vr=({className:e})=>(0,u.jsx)(l.View,{className:e}),yr=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(l.ScrollView,{ref:r,className:V(`flex-1`,t),showsVerticalScrollIndicator:!0,showsHorizontalScrollIndicator:!0,...n,children:(0,u.jsx)(l.View,{children:e})}));yr.displayName=`ScrollArea`;var br=()=>null;br.displayName=`ScrollBar`;function xr({children:e,open:t,onOpenChange:n}){let[r,i]=c.useState(!1),a=t!==void 0;return(0,u.jsx)(It,{open:a?t:r,onOpenChange:c.useCallback(e=>{a?n?.(e):i(e)},[a,n]),children:e})}var Sr=c.forwardRef(({className:e,placeholder:t,variant:n=`default`,responsive:r=!1,...i},a)=>{let o=t||(n===`compact`?`Search...`:`Search docs...`);return(0,u.jsxs)(U,{variant:`outline`,className:V(`relative h-12 flex-row justify-start pl-3 text-sm transition-all sm:h-9`,n===`default`?`w-full pr-12`:V(`w-12 px-0 sm:w-9 sm:justify-center`,r&&`md:w-48 md:justify-start md:px-3 md:pr-12`),e),ref:a,...i,children:[(0,u.jsxs)(l.View,{className:`flex-row items-center gap-2`,children:[(0,u.jsx)(m.Search,{className:`text-muted-foreground shrink-0`,size:18}),(0,u.jsx)(l.Text,{className:V(`text-muted-foreground truncate`,n===`compact`&&(r?`hidden md:flex`:`hidden`)),children:o})]}),(0,u.jsx)(l.View,{className:V(`bg-muted absolute top-2 right-2 hidden h-6 flex-row items-center gap-1 rounded border px-1.5 opacity-100`,n===`default`&&l.Platform.OS!==`android`&&l.Platform.OS!==`ios`&&`sm:flex`,n===`compact`&&r&&l.Platform.OS!==`android`&&l.Platform.OS!==`ios`&&`md:flex`),children:(0,u.jsx)(l.Text,{className:`text-muted-foreground font-mono text-[10px] font-medium`,children:`⌘K`})})]})});Sr.displayName=`SearchTrigger`;var Cr=j.Root,wr=j.Group,Tr=j.Value,Er=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(j.Trigger,{ref:r,className:V(`native:h-12 border-input bg-background text-muted-foreground web:ring-offset-background web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 flex h-10 flex-row items-center justify-between rounded-md border px-3 py-2 text-sm [&>span]:line-clamp-1`,n.disabled&&`web:cursor-not-allowed opacity-50`,e),...n,children:[(0,u.jsx)(u.Fragment,{children:t}),(0,u.jsx)(m.ChevronDown,{size:16,"aria-hidden":!0,className:`text-foreground opacity-50`})]}));Er.displayName=j.Trigger?.displayName||`SelectTrigger`;var Dr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.ScrollUpButton,{ref:n,className:V(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronUp,{size:14,className:`text-foreground`})}));Dr.displayName=j.ScrollUpButton?.displayName||`SelectScrollUpButton`;var Or=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.ScrollDownButton,{ref:n,className:V(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronDown,{size:14,className:`text-foreground`})}));Or.displayName=j.ScrollDownButton?.displayName||`SelectScrollDownButton`;var kr=c.forwardRef(({className:e,children:t,position:n=`popper`,portalHost:r,overlayClassName:i,overlayStyle:a,...o},s)=>{let{open:c}=j.useRootContext();return(0,u.jsxs)(j.Portal,{hostName:r,children:[(0,u.jsx)(j.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,asChild:!0,children:(0,u.jsx)(h.default.View,{className:i,style:a})}),(0,u.jsxs)(j.Content,{ref:s,className:V(`border-border bg-popover 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 relative z-50 max-h-96 min-w-[8rem] rounded-md border shadow-md`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,c?`web:zoom-in-95 web:animate-in web:fade-in-0`:`web:zoom-out-95 web:animate-out web:fade-out-0`,e),position:n,...o,children:[(0,u.jsx)(Dr,{}),(0,u.jsx)(j.Viewport,{className:V(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,u.jsx)(Or,{})]})]})});kr.displayName=j.Content?.displayName||`SelectContent`;var Ar=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.Label,{ref:n,className:V(`text-popover-foreground py-1.5 pr-2 pl-8 text-sm font-semibold`,e),...t}));Ar.displayName=j.Label?.displayName||`SelectLabel`;var jr=c.forwardRef(({className:e,children:t,label:n,...r},i)=>{let a=n||(typeof t==`string`?t:``);return(0,u.jsxs)(j.Item,{ref:i,label:a,className:V(`web:hover:bg-accent/50 web:focus:bg-accent web:focus:text-accent-foreground web:hover:text-accent-foreground relative flex w-full cursor-default flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:opacity-50`,r.disabled&&`web:pointer-events-none`,e),...r,children:[(0,u.jsx)(l.View,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(j.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,strokeWidth:3,className:`text-popover-foreground`})})}),(0,u.jsx)(j.ItemText,{className:`text-popover-foreground native:text-base text-sm`,children:t})]})});jr.displayName=j.Item?.displayName||`SelectItem`;var Mr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.Separator,{ref:n,className:V(`bg-muted -mx-1 my-1 h-px`,e),...t}));Mr.displayName=j.Separator?.displayName||`SelectSeparator`;var Nr=c.forwardRef(({threshold:e=240,exitDuration:t=450,behavior:n,label:r=`Scroll to top`,className:i,scrollRef:a,animationDuration:o=300,...s},d)=>{let[f,p]=c.useState(!1),[h,g]=c.useState(!1),_=c.useRef(new l.Animated.Value(0)).current,v=c.useRef(new l.Animated.Value(20)).current,y=()=>{l.Animated.parallel([l.Animated.timing(_,{toValue:1,duration:o,useNativeDriver:!0}),l.Animated.timing(v,{toValue:0,duration:o,useNativeDriver:!0})]).start()},b=()=>{l.Animated.parallel([l.Animated.timing(_,{toValue:0,duration:o,useNativeDriver:!0}),l.Animated.timing(v,{toValue:20,duration:o,useNativeDriver:!0})]).start(()=>{h||p(!1)})},x=t=>{let n=t.nativeEvent.contentOffset.y;if(h){n<=e&&(p(!1),g(!1));return}n>e&&!f?(p(!0),y()):n<=e&&f&&b()},S=()=>{g(!0),b(),setTimeout(()=>{if(a?.current){let e=a.current;`scrollToOffset`in e&&typeof e.scrollToOffset==`function`?e.scrollToOffset({offset:0,animated:n!==`auto`}):`scrollTo`in e&&typeof e.scrollTo==`function`&&e.scrollTo({y:0,animated:n!==`auto`})}(l.Platform.OS===`ios`||l.Platform.OS===`android`)&&l.AccessibilityInfo.announceForAccessibility(`Scrolled to top`)},t)};return c.useImperativeHandle(d,()=>({handleScroll:x,scrollToTop:S})),!f&&!h?null:(0,u.jsx)(l.View,{pointerEvents:`box-none`,style:{position:`absolute`,bottom:24,right:24,zIndex:50},children:(0,u.jsx)(l.Animated.View,{style:{opacity:_,transform:[{translateY:v}]},children:(0,u.jsx)(U,{variant:`outline`,size:`icon`,className:V(`bg-background/80 h-12 w-12 rounded-full border-2 shadow-lg`,i),onPress:S,"aria-label":r,...s,children:(0,u.jsx)(m.ArrowUp,{size:24,className:`text-foreground`})})})})});Nr.displayName=`ScrollToTop`;var Pr=e=>{let t=e.trim();return t.endsWith(`/`)?t.slice(0,-1):t},Fr=e=>e.trim().replace(/^@+/,``),Ir=(e,t)=>`${Pr(e)}/${encodeURIComponent(Fr(t))}`;function Lr({supportUrl:e=`https://www.buymeacoffee.com`,creatorId:t,title:n=`Buy me a coffee`,description:r=`Support the project directly from this panel.`,open:i,defaultOpen:a=!1,onOpenChange:o,positionClassName:s,buttonClassName:d,panelClassName:f,className:p,...h}){let g=i!==void 0,[_,v]=c.useState(a),y=g?i:_,b=c.useCallback(e=>{g||v(e),o?.(e)},[g,o]),x=c.useMemo(()=>Ir(e,t),[t,e]),S=c.useCallback(async()=>{try{await l.Linking.openURL(x)}catch(e){console.warn(`Failed to open external link:`,e)}},[x]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.View,{style:{position:`absolute`,bottom:24,right:24,zIndex:50},className:s,children:(0,u.jsx)(U,{variant:`outline`,size:`icon`,className:V(`h-14 w-14 rounded-full border border-black/15 bg-[#ffdd00] shadow-lg`,d,p),onPress:()=>b(!0),"aria-label":`Support this project`,...h,children:(0,u.jsx)(m.Coffee,{size:24,className:`text-black`})})}),(0,u.jsx)(It,{open:y,onOpenChange:b,children:(0,u.jsxs)(Vt,{className:V(`max-w-sm`,f),children:[(0,u.jsxs)(Ht,{children:[(0,u.jsx)(Wt,{children:n}),(0,u.jsx)(Gt,{children:r})]}),(0,u.jsxs)(l.View,{className:`flex flex-col gap-4`,children:[(0,u.jsx)(l.View,{className:`overflow-hidden rounded-md border`,children:(0,u.jsx)(l.View,{className:`bg-muted flex h-48 items-center justify-center`,children:(0,u.jsxs)(W,{className:`text-muted-foreground text-center text-sm`,children:[`Embedded support form would appear here on web.`,`
2
+ `,`On mobile, this opens the external support page.`]})})}),(0,u.jsxs)(l.View,{className:`text-muted-foreground flex items-center justify-between gap-2 text-xs`,children:[(0,u.jsx)(W,{className:`text-muted-foreground flex-1 text-xs`,children:`If the embedded checkout is unavailable, open the support page directly.`}),(0,u.jsxs)(U,{variant:`outline`,size:`sm`,onPress:S,className:`flex flex-row items-center gap-1`,children:[(0,u.jsx)(W,{className:`text-xs`,children:`Open Buy Me a Coffee`}),(0,u.jsx)(m.ExternalLink,{size:12,className:`text-muted-foreground`})]})]})]})]})})]})}var Rr=c.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,u.jsx)(M.Root,{ref:i,decorative:n,orientation:t,className:V(`bg-border shrink-0`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Rr.displayName=M.Root?.displayName||`Separator`;var zr=w.Root,Br=w.Trigger,Vr=w.Close,Hr=w.Portal,Ur=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,asChild:!0,ref:n,...t,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`web:cursor-default absolute inset-0 z-50 bg-black/80`,e)})}));Ur.displayName=w.Overlay?.displayName||`SheetOverlay`;var Wr=c.forwardRef(({className:e,children:t,side:n=`right`,overlayClassName:r,overlayStyle:i,...a},o)=>{let s=l.Platform.OS===`web`,c=s?void 0:h.SlideInRight,d=s?void 0:h.SlideOutRight;return(0,u.jsxs)(Hr,{children:[(0,u.jsx)(Ur,{className:r,style:i}),(0,u.jsx)(w.Content,{ref:o,asChild:!0,...a,children:(0,u.jsxs)(h.default.View,{entering:c,exiting:d,className:V(`bg-background web:cursor-default web:duration-200 web:ease-in-out absolute z-50 h-full w-3/4 gap-4 p-6 shadow-lg`,n===`right`&&`border-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right top-0 right-0 border-l`,n===`left`&&`border-border data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left top-0 left-0 border-r`,n===`top`&&`border-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top top-0 w-full border-b`,n===`bottom`&&`border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom bottom-0 w-full border-t`,e),children:[t,(0,u.jsxs)(w.Close,{className:V(`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none`,`web:absolute web:right-4 web:top-4`),children:[(0,u.jsx)(m.X,{size:24,className:`text-muted-foreground`}),(0,u.jsx)(W,{className:`sr-only`,children:`Close`})]})]})})]})});Wr.displayName=w.Content?.displayName||`SheetContent`;var Gr=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Gr.displayName=`SheetHeader`;var Kr=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Kr.displayName=`SheetFooter`;var qr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Title,{ref:n,className:V(`text-foreground text-lg font-semibold`,e),...t}));qr.displayName=w.Title?.displayName||`SheetTitle`;var Jr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Description,{ref:n,className:V(`text-muted-foreground text-sm`,e),...t}));Jr.displayName=w.Description?.displayName||`SheetDescription`;function Yr({className:e,...t}){let n=(0,h.useSharedValue)(.5);c.useEffect(()=>{n.value=(0,h.withRepeat)((0,h.withSequence)((0,h.withTiming)(.2,{duration:500}),(0,h.withTiming)(.5,{duration:500})),-1,!0)},[]);let r=(0,h.useAnimatedStyle)(()=>({opacity:n.value}));return(0,u.jsx)(h.default.View,{className:V(`bg-muted rounded-md`,e),style:r,...t})}var Xr=({className:e,value:t,onValueChange:n,defaultValue:r,min:i=0,max:a=100,step:o=1,disabled:s=!1,...c})=>{let l=t===void 0?i:t[0];return(0,u.jsxs)(N.Root,{value:l,onValueChange:e=>{n&&n(Array.isArray(e)?e:[e])},min:i,max:a,step:o,disabled:s,className:V(`relative flex w-full touch-none items-center select-none`,s&&`opacity-50`,e),...c,children:[(0,u.jsx)(N.Track,{className:`bg-secondary relative h-2 w-full grow rounded-full`,children:(0,u.jsx)(N.Range,{className:`bg-primary absolute h-full rounded-full`})}),(0,u.jsx)(N.Thumb,{className:`border-primary bg-background focus-visible:ring-ring block h-5 w-5 rounded-full border-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`})]})};Xr.displayName=`Slider`;var Zr=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),Qr=()=>null,$r=c.forwardRef(({className:e,variant:t=`default`,...n},r)=>(0,u.jsx)(P.Root,{ref:r,className:V(`group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg`,t===`default`?`border-border bg-background`:`border-destructive bg-destructive`,e),...n,children:(0,u.jsx)(h.default.View,{entering:h.FadeInUp,exiting:h.FadeOutDown,layout:h.Layout,className:`w-full flex-row items-center`,children:n.children})}));$r.displayName=P.Root?.displayName||`Toast`;var ei=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(P.Title,{ref:n,className:V(`text-foreground text-sm font-semibold`,e),...t}));ei.displayName=P.Title?.displayName||`ToastTitle`;var ti=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(P.Description,{ref:n,className:V(`text-muted-foreground text-sm opacity-90`,e),...t}));ti.displayName=P.Description?.displayName||`ToastDescription`;var ni=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(P.Close,{ref:n,className:V(`text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100 focus:ring-1 focus:outline-none`,e),...t,children:(0,u.jsx)(m.X,{size:16,className:`text-muted-foreground`})}));ni.displayName=P.Close?.displayName||`ToastClose`;var ri=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(P.Action,{ref:n,className:V(`hover:bg-secondary focus:ring-ring inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50`,e),...t}));ri.displayName=P.Action?.displayName||`ToastAction`;var ii=()=>(0,u.jsx)(Zr,{children:(0,u.jsx)(Qr,{})}),ai=c.forwardRef(({className:e,checked:t,onCheckedChange:n,...r},i)=>(0,u.jsx)(F.Root,{className:V(`peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50`,e),...r,checked:t??!1,onCheckedChange:n||(()=>{}),ref:i,children:(0,u.jsx)(F.Thumb,{className:V(`bg-background pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})}));ai.displayName=F.Root?.displayName||`Switch`;var oi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`w-full caption-bottom text-sm`,e),...t}));oi.displayName=`Table`;var si=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`border-border border-b`,e),...t}));si.displayName=`TableHeader`;var ci=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`flex-1`,e),...t}));ci.displayName=`TableBody`;var li=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`bg-muted/50 font-medium [&>tr]:last:border-b-0`,e),...t}));li.displayName=`TableFooter`;var ui=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`border-border hover:bg-muted/50 data-[state=selected]:bg-muted flex-row border-b transition-colors`,e),...t}));ui.displayName=`TableRow`;var di=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:V(`text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0`,e),...t}));di.displayName=`TableHead`;var fi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:V(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,e),...t}));fi.displayName=`TableCell`;var pi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:V(`text-muted-foreground mt-4 text-sm`,e),...t}));pi.displayName=`TableCaption`;var mi=c.forwardRef((e,t)=>(0,u.jsx)(I.Root,{ref:t,...e}));mi.displayName=`Tabs`;var hi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(I.List,{ref:n,className:V(`bg-muted text-muted-foreground inline-flex h-10 flex-row items-center justify-center rounded-md p-1`,e),...t}));hi.displayName=I.List?.displayName||`TabsList`;var gi=c.forwardRef(({className:e,...t},n)=>{let{value:r}=I.useRootContext();return(0,u.jsx)(Ne.Provider,{value:V(`text-sm native:text-base font-medium text-muted-foreground web:transition-all`,r===t.value&&`text-foreground`),children:(0,u.jsx)(I.Trigger,{ref:n,className:V(`ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,t.disabled&&`opacity-50`,r===t.value&&`bg-background shadow-foreground/10 shadow-sm`,e),...t})})});gi.displayName=I.Trigger?.displayName||`TabsTrigger`;var _i=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(I.Content,{ref:n,className:V(`ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`,e),...t}));_i.displayName=I.Content?.displayName||`TabsContent`;var vi=c.forwardRef(({className:e,placeholderClassName:t,...n},r)=>(0,u.jsx)(l.TextInput,{ref:r,multiline:!0,numberOfLines:n.numberOfLines||3,className:V(`border-input bg-background text-foreground placeholder:text-muted-foreground focus:border-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50`,e),placeholderClassName:V(`text-muted-foreground`,t),textAlignVertical:`top`,...n}));vi.displayName=`Textarea`;var yi=c.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,u.jsx)(Ne.Provider,{value:V(`text-sm native:text-base text-foreground font-medium`,r.pressed&&`text-accent-foreground`,e),children:(0,u.jsx)(L.Root,{ref:i,className:V((0,te.toggleVariants)({variant:t,size:n,className:e})),...r,pressed:r.pressed||!1,onPressedChange:r.onPressedChange||(()=>{})})}));yi.displayName=L.Root?.displayName||`Toggle`;var bi=c.createContext({size:`default`,variant:`default`}),xi=c.forwardRef(({className:e,variant:t,size:n,children:r,type:i,value:a,onValueChange:o,...s},c)=>(0,u.jsx)(R.Root,{ref:c,type:i,value:a,onValueChange:o,className:V(`flex flex-row items-center justify-center gap-1`,e),...s,children:(0,u.jsx)(bi.Provider,{value:{variant:t,size:n},children:r})}));xi.displayName=R.Root?.displayName||`ToggleGroup`;var Si=c.forwardRef(({className:e,children:t,variant:n,size:r,value:i,...a},o)=>{let s=c.useContext(bi);return(0,u.jsx)(Ne.Provider,{value:V(`text-sm native:text-base text-foreground font-medium`,a.disabled&&`web:cursor-not-allowed opacity-50`,i===``&&`text-accent-foreground`,e),children:(0,u.jsx)(R.Item,{ref:o,value:i,className:V((0,te.toggleVariants)({variant:s.variant||n,size:s.size||r}),e),...a,children:t})})});Si.displayName=R.Item?.displayName||`ToggleGroupItem`;var Ci=z.Root,wi=z.Trigger,Ti=c.forwardRef(({className:e,portalHost:t,...n},r)=>(0,u.jsx)(z.Portal,{hostName:t,children:(0,u.jsx)(z.Overlay,{style:l.Platform.OS===`web`?void 0:l.StyleSheet.absoluteFill,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn,exiting:h.FadeOut,className:V(`border-border bg-popover web:animate-in web:fade-in-0 web: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 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md`,e),children:(0,u.jsx)(W,{className:`text-popover-foreground native:text-base text-sm`,children:n.children})})})}));Ti.displayName=z.Content?.displayName||`TooltipContent`;var Ei=({children:e})=>(0,u.jsx)(u.Fragment,{children:e}),Di=5,Oi=1e6,Y={ADD_TOAST:`ADD_TOAST`,UPDATE_TOAST:`UPDATE_TOAST`,DISMISS_TOAST:`DISMISS_TOAST`,REMOVE_TOAST:`REMOVE_TOAST`},ki=0;function Ai(){return ki=(ki+1)%(2**53-1),ki.toString()}var ji=new Map,Mi=e=>{if(ji.has(e))return;let t=setTimeout(()=>{ji.delete(e),Q({type:`REMOVE_TOAST`,toastId:e})},Oi);ji.set(e,t)},Ni=(e,t)=>{switch(t.type){case Y.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,Di)};case Y.UPDATE_TOAST:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case Y.DISMISS_TOAST:{let{toastId:n}=t;return n?Mi(n):e.toasts.forEach(e=>{Mi(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case Y.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},X=[],Z={toasts:[]};function Q(e){Z=Ni(Z,e),X.forEach(e=>{e(Z)})}function Pi({...e}){let t=Ai(),n=e=>Q({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>Q({type:`DISMISS_TOAST`,toastId:t});return Q({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function Fi(){let[e,t]=c.useState(Z);return c.useEffect(()=>(X.push(t),()=>{let e=X.indexOf(t);e>-1&&X.splice(e,1)}),[]),{...e,toast:Pi,dismiss:e=>Q({type:`DISMISS_TOAST`,toastId:e})}}function Ii({children:e,className:t}){let{colorScheme:n}=(0,ne.useColorScheme)();return(0,u.jsx)(l.View,{className:V(`flex-1`,n===`dark`?`dark`:``,t),children:e})}function Li(){let{colorScheme:e,setColorScheme:t}=(0,ne.useColorScheme)(),n=e;return{theme:e,setTheme:t,resolvedTheme:n,tokens:n===`dark`?re.theme.dark:re.theme.light}}function Ri({variant:e=`binary`,onThemeChange:t,customTheme:n,className:r}){let{theme:i,setTheme:a,resolvedTheme:o}=Li(),s=n??i,c=(n||o)===`dark`,d=s===`system`,f=e=>{t?t(e):a(e)},p=()=>(0,u.jsxs)(l.View,{className:`flex items-center justify-center`,children:[(0,u.jsx)(m.Sun,{size:18,className:V(`text-foreground transition-all`,!d&&!c?`scale-100 rotate-0 opacity-100`:`absolute scale-0 -rotate-90 opacity-0`)}),(0,u.jsx)(m.Moon,{size:18,className:V(`text-foreground transition-all`,!d&&c?`scale-100 rotate-0 opacity-100`:`absolute scale-0 rotate-90 opacity-0`)}),(0,u.jsx)(m.SunMoon,{size:18,className:V(`text-foreground transition-all`,d?`scale-100 rotate-0 opacity-100`:`absolute scale-0 rotate-90 opacity-0`)})]});return e===`ternary`?(0,u.jsxs)(nn,{children:[(0,u.jsx)(rn,{asChild:!0,children:(0,u.jsx)(U,{variant:`ghost`,size:`icon`,className:V(`relative h-9 w-9`,r),children:(0,u.jsx)(p,{})})}),(0,u.jsxs)(un,{align:`end`,children:[(0,u.jsxs)(K,{onSelect:()=>f(`light`),children:[(0,u.jsx)(m.Sun,{size:14,className:`text-foreground mr-2`}),(0,u.jsx)(W,{children:`Light`})]}),(0,u.jsxs)(K,{onSelect:()=>f(`dark`),children:[(0,u.jsx)(m.Moon,{size:14,className:`text-foreground mr-2`}),(0,u.jsx)(W,{children:`Dark`})]}),(0,u.jsxs)(K,{onSelect:()=>f(`system`),children:[(0,u.jsx)(m.SunMoon,{size:14,className:`text-foreground mr-2`}),(0,u.jsx)(W,{children:`System`})]})]})]}):(0,u.jsx)(U,{variant:`ghost`,size:`icon`,className:V(`relative h-9 w-9`,r),onPress:()=>f(s===`dark`?`light`:`dark`),children:(0,u.jsx)(p,{})})}var zi=()=>{let{toasts:e}=Fi();return(0,u.jsx)(Zr,{children:(0,u.jsx)(l.View,{className:`pointer-events-none absolute right-6 bottom-6 left-6 z-50 flex flex-col gap-2`,children:e.map(({id:e,title:t,description:n,action:r,...i})=>(0,u.jsxs)($r,{...i,className:`pointer-events-auto`,children:[(0,u.jsxs)(l.View,{className:`flex flex-1 flex-col gap-1`,children:[t&&(0,u.jsx)(ei,{children:t}),n&&(0,u.jsx)(ti,{children:n})]}),r,(0,u.jsx)(ni,{})]},e))})})},Bi=c.createContext(void 0);function Vi(){let e=c.useContext(Bi);if(!e)throw Error(`useTOC must be used within a TableOfContents provider`);return e}function $({children:e,activeId:t}){let[n,r]=c.useState([]),[i,a]=c.useState(null),o=c.useRef(null),s=c.useMemo(()=>{let e=t||i;return n.find(t=>t.id===e)?.text||null},[n,i,t]),d=c.useCallback((e,t,n,i)=>{r(r=>{let a=r.find(t=>t.id===e);return a&&Math.abs(a.pageY-i)<1?r:(a?r.map(r=>r.id===e?{id:e,text:t,level:n,pageY:i}:r):[...r,{id:e,text:t,level:n,pageY:i}]).sort((e,t)=>e.pageY-t.pageY)})},[]),f=c.useCallback(e=>{r(t=>t.filter(t=>t.id!==e))},[]),p=c.useCallback(e=>{let t=n.find(t=>t.id===e);t&&o.current&&o.current.scrollTo({y:t.pageY-20,animated:!0})},[n]),m=c.useCallback(e=>{let t=e.nativeEvent.contentOffset.y,r=null;for(let e=n.length-1;e>=0;e--)if(t>=n[e].pageY-100){r=n[e].id;break}r!==i&&a(r)},[n,i]),h=c.useMemo(()=>({headings:n,activeId:t||i,activeHeadingText:s,registerHeading:d,unregisterHeading:f,scrollToHeading:p,onScroll:m,scrollViewRef:o}),[n,i,t,s,d,f,p,m]);return(0,u.jsx)(Bi.Provider,{value:h,children:(0,u.jsx)(l.View,{className:`flex-1`,children:e})})}function Hi({children:e,level:t=2,id:n,className:r}){let{registerHeading:i,unregisterHeading:a}=Vi(),o=n||ie(e),s=c.useCallback(n=>{let{y:r}=n.nativeEvent.layout;i(o,e,t,r)},[o,e,t,i]);return c.useEffect(()=>()=>a(o),[o,a]),(0,u.jsx)(l.View,{onLayout:s,children:(0,u.jsx)(W,{variant:t===1?`h1`:t===2?`h2`:t===3?`h3`:`h4`,className:r,children:e})})}function Ui({className:e}){let{headings:t,activeId:n,scrollToHeading:r}=Vi();if(t.length===0)return null;let i=Math.min(...t.map(e=>e.level));return(0,u.jsxs)(l.View,{className:V(`space-y-2 p-4`,e),children:[(0,u.jsx)(W,{variant:`overline`,className:`mb-2 font-bold`,children:`On this page`}),t.map(e=>{let t=n===e.id;return(0,u.jsx)(l.TouchableOpacity,{onPress:()=>r(e.id),style:{paddingLeft:(e.level-i)*16},className:`py-1`,children:(0,u.jsx)(l.Text,{className:V(`text-sm`,t?`text-primary font-bold`:`text-muted-foreground`),children:e.text})},e.id)})]})}function Wi({children:e,className:t}){let{scrollViewRef:n,onScroll:r}=Vi();return(0,u.jsx)(l.ScrollView,{ref:n,onScroll:r,className:V(`flex-1`,t),...l.Platform.OS!==`web`&&{scrollEventThrottle:16,contentContainerStyle:{padding:16}},children:e})}$.List=Ui,$.Content=Wi,$.Heading=Hi,exports.Accordion=ae,exports.AccordionContent=le,exports.AccordionItem=oe,exports.AccordionTrigger=ce,exports.Alert=de,exports.AlertDescription=pe,exports.AlertDialog=he,exports.AlertDialogAction=we,exports.AlertDialogCancel=Te,exports.AlertDialogContent=ye,exports.AlertDialogDescription=Ce,exports.AlertDialogFooter=xe,exports.AlertDialogHeader=be,exports.AlertDialogOverlay=ve,exports.AlertDialogPortal=_e,exports.AlertDialogTitle=Se,exports.AlertDialogTrigger=ge,exports.AlertTitle=fe,exports.AspectRatio=Ee,exports.Avatar=De,exports.AvatarFallback=ke,exports.AvatarImage=Oe,exports.Badge=Me,exports.Breadcrumb=Fe,exports.BreadcrumbEllipsis=Ve,exports.BreadcrumbItem=Le,exports.BreadcrumbLink=Re,exports.BreadcrumbList=Ie,exports.BreadcrumbPage=ze,exports.BreadcrumbSeparator=Be,exports.Button=U,exports.Calendar=He,exports.Card=Ue,exports.CardContent=qe,exports.CardDescription=Ke,exports.CardFooter=Je,exports.CardHeader=We,exports.CardTitle=Ge,exports.Carousel=Xe,exports.CarouselContent=Ze,exports.CarouselItem=Qe,exports.CarouselNext=et,exports.CarouselPrevious=$e,exports.ChartContainer=tt,exports.ChartLegend=at,exports.ChartLegendContent=rt,exports.ChartStyle=ot,exports.ChartTooltip=it,exports.ChartTooltipContent=nt,exports.Checkbox=st,exports.Collapsible=ct,exports.CollapsibleContent=ut,exports.CollapsibleTrigger=lt,exports.Command=dt,exports.CommandDialog=ft,exports.CommandEmpty=ht,exports.CommandGroup=gt,exports.CommandInput=pt,exports.CommandItem=_t,exports.CommandList=mt,exports.CommandSeparator=vt,exports.CommandShortcut=yt,exports.ContextMenu=bt,exports.ContextMenuCheckboxItem=kt,exports.ContextMenuContent=Dt,exports.ContextMenuGroup=Ct,exports.ContextMenuItem=Ot,exports.ContextMenuLabel=jt,exports.ContextMenuPortal=St,exports.ContextMenuRadioGroup=wt,exports.ContextMenuRadioItem=At,exports.ContextMenuSeparator=Mt,exports.ContextMenuShortcut=Nt,exports.ContextMenuSub=Tt,exports.ContextMenuSubContent=Ft,exports.ContextMenuSubTrigger=Pt,exports.ContextMenuTrigger=xt,exports.Dialog=It,exports.DialogClose=zt,exports.DialogContent=Vt,exports.DialogDescription=Gt,exports.DialogFooter=Ut,exports.DialogHeader=Ht,exports.DialogTitle=Wt,exports.DialogTrigger=Lt,exports.Drawer=Kt,exports.DrawerClose=$t,exports.DrawerContent=Xt,exports.DrawerDescription=tn,exports.DrawerFooter=Qt,exports.DrawerHeader=Zt,exports.DrawerOverlay=Yt,exports.DrawerPortal=Jt,exports.DrawerTitle=en,exports.DrawerTrigger=qt,exports.DropdownMenu=nn,exports.DropdownMenuCheckboxItem=dn,exports.DropdownMenuContent=un,exports.DropdownMenuGroup=on,exports.DropdownMenuItem=K,exports.DropdownMenuLabel=pn,exports.DropdownMenuPortal=an,exports.DropdownMenuRadioGroup=sn,exports.DropdownMenuRadioItem=fn,exports.DropdownMenuSeparator=mn,exports.DropdownMenuShortcut=hn,exports.DropdownMenuSub=cn,exports.DropdownMenuSubContent=_n,exports.DropdownMenuSubTrigger=gn,exports.DropdownMenuTrigger=rn,exports.Form=yn,exports.HoverCard=Dn,exports.HoverCardContent=kn,exports.HoverCardTrigger=On,exports.Input=An,exports.Label=vn,exports.Menubar=jn,exports.MenubarCheckboxItem=Vn,exports.MenubarContent=zn,exports.MenubarGroup=Pn,exports.MenubarItem=Bn,exports.MenubarLabel=Un,exports.MenubarMenu=Mn,exports.MenubarPortal=Nn,exports.MenubarRadioGroup=Fn,exports.MenubarRadioItem=Hn,exports.MenubarSeparator=Wn,exports.MenubarShortcut=Gn,exports.MenubarSub=In,exports.MenubarSubContent=qn,exports.MenubarSubTrigger=Kn,exports.MenubarTrigger=Rn,exports.NavigationMenu=Jn,exports.NavigationMenuContent=Qn,exports.NavigationMenuIndicator=tr,exports.NavigationMenuItem=Xn,exports.NavigationMenuLink=$n,exports.NavigationMenuList=Yn,exports.NavigationMenuTrigger=Zn,exports.NavigationMenuViewport=er,exports.Pagination=nr,exports.PaginationContent=rr,exports.PaginationEllipsis=sr,exports.PaginationItem=ir,exports.PaginationLink=J,exports.PaginationNext=or,exports.PaginationPrevious=ar,exports.Popover=lr,exports.PopoverAnchor=dr,exports.PopoverContent=fr,exports.PopoverTrigger=ur,exports.Progress=pr,exports.RadioGroup=mr,exports.RadioGroupItem=hr,exports.ResizableHandle=vr,exports.ResizablePanel=_r,exports.ResizablePanelGroup=gr,exports.ScrollArea=yr,exports.ScrollToTop=Nr,exports.Search=xr,exports.Select=Cr,exports.SelectContent=kr,exports.SelectGroup=wr,exports.SelectItem=jr,exports.SelectLabel=Ar,exports.SelectScrollDownButton=Or,exports.SelectScrollUpButton=Dr,exports.SelectSeparator=Mr,exports.SelectTrigger=Er,exports.SelectValue=Tr,exports.Separator=Rr,exports.Sheet=zr,exports.SheetClose=Vr,exports.SheetContent=Wr,exports.SheetDescription=Jr,exports.SheetFooter=Kr,exports.SheetHeader=Gr,exports.SheetOverlay=Ur,exports.SheetPortal=Hr,exports.SheetTitle=qr,exports.SheetTrigger=Br,exports.Skeleton=Yr,exports.Slider=Xr,exports.Sonner=ii,exports.SupportFab=Lr,exports.Switch=ai,exports.Table=oi,exports.TableBody=ci,exports.TableCaption=pi,exports.TableCell=fi,exports.TableFooter=li,exports.TableHead=di,exports.TableHeader=si,exports.TableOfContents=$,exports.TableOfContentsContent=Wi,exports.TableOfContentsHeading=Hi,exports.TableOfContentsList=Ui,exports.TableRow=ui,exports.Tabs=mi,exports.TabsContent=_i,exports.TabsList=hi,exports.TabsTrigger=gi,exports.Text=W,exports.Textarea=vi,exports.ThemeProvider=Ii,exports.ThemeToggle=Ri,exports.Toast=$r,exports.Toaster=zi,exports.Toggle=yi,exports.ToggleGroup=xi,exports.ToggleGroupItem=Si,exports.Tooltip=Ci,exports.TooltipContent=Ti,exports.TooltipProvider=Ei,exports.TooltipTrigger=wi,exports.badgeVariants=Ae,exports.buttonVariants=H,exports.cn=V,exports.textVariants=Pe,exports.toast=Pi,exports.toggleVariants=te.toggleVariants,exports.useTheme=Li,exports.useToast=Fi,exports.wrapTextChildren=B;