@gv-tech/ui-native 2.30.1 → 2.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button.d.ts +4 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/select-event.d.ts +6 -0
- package/dist/lib/select-event.d.ts.map +1 -0
- package/dist/lib/touch-target.d.ts +9 -0
- package/dist/lib/touch-target.d.ts.map +1 -0
- package/dist/menubar.d.ts.map +1 -1
- package/dist/portal-slot.d.ts +11 -0
- package/dist/portal-slot.d.ts.map +1 -0
- package/dist/select.d.ts.map +1 -1
- package/dist/text.d.ts.map +1 -1
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle.d.ts +8 -1
- package/dist/toggle.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.esm.js +913 -1077
- package/package.json +1 -1
- package/src/__contracts.ts +0 -104
- package/src/button.tsx +39 -3
- package/src/context-menu.tsx +14 -11
- package/src/dropdown-menu.tsx +17 -31
- package/src/dropdown-menu.web.tsx +229 -0
- package/src/index.ts +3 -36
- package/src/lib/select-event.ts +10 -0
- package/src/lib/touch-target.ts +16 -0
- package/src/menubar.tsx +14 -11
- package/src/portal-slot.tsx +13 -0
- package/src/portal-slot.web.tsx +16 -0
- package/src/select.tsx +26 -23
- package/src/text.tsx +2 -1
- package/src/toggle-group.tsx +17 -6
- package/src/toggle.tsx +45 -18
- package/dist/__contracts.d.ts +0 -260
- package/dist/__contracts.d.ts.map +0 -1
- package/dist/accordion.test.d.ts +0 -2
- package/dist/accordion.test.d.ts.map +0 -1
- package/dist/alert.test.d.ts +0 -2
- package/dist/alert.test.d.ts.map +0 -1
- package/dist/avatar.test.d.ts +0 -2
- package/dist/avatar.test.d.ts.map +0 -1
- package/dist/badge.test.d.ts +0 -2
- package/dist/badge.test.d.ts.map +0 -1
- package/dist/button-group.test.d.ts +0 -2
- package/dist/button-group.test.d.ts.map +0 -1
- package/dist/button.test.d.ts +0 -2
- package/dist/button.test.d.ts.map +0 -1
- package/dist/card.test.d.ts +0 -2
- package/dist/card.test.d.ts.map +0 -1
- package/dist/carousel.test.d.ts +0 -2
- package/dist/carousel.test.d.ts.map +0 -1
- package/dist/checkbox.test.d.ts +0 -2
- package/dist/checkbox.test.d.ts.map +0 -1
- package/dist/collapsible.test.d.ts +0 -2
- package/dist/collapsible.test.d.ts.map +0 -1
- package/dist/dialog.test.d.ts +0 -2
- package/dist/dialog.test.d.ts.map +0 -1
- package/dist/form.test.d.ts +0 -2
- package/dist/form.test.d.ts.map +0 -1
- package/dist/hooks/use-theme.test.d.ts +0 -2
- package/dist/hooks/use-theme.test.d.ts.map +0 -1
- package/dist/input.test.d.ts +0 -2
- package/dist/input.test.d.ts.map +0 -1
- package/dist/label.test.d.ts +0 -2
- package/dist/label.test.d.ts.map +0 -1
- package/dist/popover.test.d.ts +0 -2
- package/dist/popover.test.d.ts.map +0 -1
- package/dist/progress.test.d.ts +0 -2
- package/dist/progress.test.d.ts.map +0 -1
- package/dist/radio-group.test.d.ts +0 -2
- package/dist/radio-group.test.d.ts.map +0 -1
- package/dist/search.test.d.ts +0 -2
- package/dist/search.test.d.ts.map +0 -1
- package/dist/select.test.d.ts +0 -2
- package/dist/select.test.d.ts.map +0 -1
- package/dist/separator.test.d.ts +0 -2
- package/dist/separator.test.d.ts.map +0 -1
- package/dist/sheet.test.d.ts +0 -2
- package/dist/sheet.test.d.ts.map +0 -1
- package/dist/skeleton.test.d.ts +0 -2
- package/dist/skeleton.test.d.ts.map +0 -1
- package/dist/switch.test.d.ts +0 -2
- package/dist/switch.test.d.ts.map +0 -1
- package/dist/table-of-contents.test.d.ts +0 -2
- package/dist/table-of-contents.test.d.ts.map +0 -1
- package/dist/table.test.d.ts +0 -2
- package/dist/table.test.d.ts.map +0 -1
- package/dist/tabs.test.d.ts +0 -2
- package/dist/tabs.test.d.ts.map +0 -1
- package/dist/text.test.d.ts +0 -2
- package/dist/text.test.d.ts.map +0 -1
- package/dist/textarea.test.d.ts +0 -2
- package/dist/textarea.test.d.ts.map +0 -1
- package/dist/theme-toggle.test.d.ts +0 -2
- package/dist/theme-toggle.test.d.ts.map +0 -1
- package/dist/toast.test.d.ts +0 -2
- package/dist/toast.test.d.ts.map +0 -1
- package/dist/toggle-group.test.d.ts +0 -2
- package/dist/toggle-group.test.d.ts.map +0 -1
- package/dist/toggle.test.d.ts +0 -2
- package/dist/toggle.test.d.ts.map +0 -1
- package/dist/tooltip.test.d.ts +0 -2
- package/dist/tooltip.test.d.ts.map +0 -1
package/dist/ui-native.cjs
CHANGED
|
@@ -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,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,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("@react-native-community/datetimepicker");x=s(x);let S=require("@rn-primitives/checkbox");S=s(S);let C=require("@rn-primitives/collapsible");C=s(C);let w=require("@rn-primitives/context-menu");w=s(w);let T=require("@rn-primitives/dialog");T=s(T);let ee=require("@radix-ui/react-dropdown-menu");ee=s(ee);let E=require("@rn-primitives/dropdown-menu");E=s(E);let te=require("react-hook-form"),D=require("@rn-primitives/label");D=s(D);let O=require("@rn-primitives/hover-card");O=s(O);let k=require("@rn-primitives/menubar");k=s(k);let A=require("@rn-primitives/navigation-menu");A=s(A);let j=require("@rn-primitives/radio-group");j=s(j);let M=require("@rn-primitives/select");M=s(M);let ne=require("@rn-primitives/separator");ne=s(ne);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 re=require("@gv-tech/ui-core"),I=require("@rn-primitives/toggle");I=s(I);let L=require("@rn-primitives/toggle-group");L=s(L);let R=require("@rn-primitives/tooltip");R=s(R);let z=require("@rn-primitives/toast");z=s(z);let B=require("@gv-tech/design-tokens"),ie=require("react-native-css-interop");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 ae(e){return e.toString().toLowerCase().trim().replace(/\s+/g,`-`).replace(/[^\w-]+/g,``).replace(/--+/g,`-`)}var oe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Root,{ref:n,className:H(`web:gap-0`,e),...t}));oe.displayName=p.Root?.displayName||`Accordion`;var se=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Item,{ref:n,className:H(`border-border overflow-hidden border-b`,e),...t}));se.displayName=p.Item?.displayName||`AccordionItem`;var ce=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(p.Header,{ref:n,className:H(`flex flex-row`,e),...t}));ce.displayName=p.Header?.displayName||`AccordionHeader`;var le=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`})})]})})});le.displayName=p.Trigger?.displayName||`AccordionTrigger`;var ue=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})}));ue.displayName=p.Content?.displayName||`AccordionContent`;var de=(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`}}),fe=c.forwardRef(({className:e,variant:t,children:n,...r},i)=>(0,u.jsx)(l.View,{ref:i,className:H(de({variant:t}),e),...r,children:V(n)}));fe.displayName=`Alert`;var pe=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}));pe.displayName=`AlertTitle`;var me=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:H(`text-muted-foreground text-sm leading-relaxed`,e),...t}));me.displayName=`AlertDescription`;var he=(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-input border bg-transparent shadow-sm`,secondary:`bg-secondary shadow-sm`,ghost:`bg-transparent`,link:`bg-transparent`},size:{default:`h-10 px-4 py-2`,xs:`h-7 px-2`,sm:`h-9 px-3`,lg:`h-12 px-8`,icon:`h-10 w-10`,"icon-xs":`h-7 w-7`,"icon-sm":`h-9 w-9`,"icon-lg":`h-12 w-12`}},defaultVariants:{variant:`default`,size:`default`}}),ge=(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:H(he({variant:t,size:n,className:e}),a&&`opacity-50`),...o,children:V(i,l.Text,{className:H(ge({variant:t}))})}));U.displayName=`Button`;var _e=_.Root,ve=_.Trigger,ye=_.Portal,be=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/60 p-2 backdrop-blur-md`,e)})}));be.displayName=_.Overlay?.displayName||`AlertDialogOverlay`;var xe=c.forwardRef(({className:e,portalHost:t,overlayClassName:n,overlayStyle:r,...i},a)=>(0,u.jsxs)(ye,{hostName:t,children:[(0,u.jsx)(be,{className:n,style:r}),(0,u.jsx)(l.View,{pointerEvents:`box-none`,className:H(`absolute inset-0 z-50 flex items-center justify-center p-4`,l.Platform.OS===`web`&&`fixed`),children:(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 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e),children:i.children})})})]}));xe.displayName=_.Content?.displayName||`AlertDialogContent`;var Se=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col gap-2 text-center sm:text-left`,e),...t});Se.displayName=`AlertDialogHeader`;var Ce=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});Ce.displayName=`AlertDialogFooter`;var we=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}));we.displayName=_.Title?.displayName||`AlertDialogTitle`;var Te=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Description,{ref:n,className:H(`native:text-base text-muted-foreground text-sm`,e),...t}));Te.displayName=_.Description?.displayName||`AlertDialogDescription`;var Ee=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Action,{ref:n,className:H(he(),e),...t}));Ee.displayName=_.Action?.displayName||`AlertDialogAction`;var De=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Cancel,{ref:n,className:H(he({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));De.displayName=_.Cancel?.displayName||`AlertDialogCancel`;var Oe=({children:e,className:t,ratio:n=1})=>(0,u.jsx)(v.Root,{ratio:n,className:H(`w-full`,t),children:e});Oe.displayName=`AspectRatio`;var ke=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}));ke.displayName=y.Root?.displayName||`Avatar`;var Ae=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Image,{ref:n,className:H(`aspect-square h-full w-full`,e),...t}));Ae.displayName=y.Image?.displayName||`AvatarImage`;var je=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}));je.displayName=y.Fallback?.displayName||`AvatarFallback`;var Me=(0,g.cva)(`flex-row items-center rounded-md border px-2 py-0.5`,{variants:{variant:{default:`bg-primary border-transparent`,secondary:`bg-secondary border-transparent`,destructive:`bg-destructive border-transparent`,outline:`border-border bg-transparent`}},defaultVariants:{variant:`default`}}),Ne=(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 Pe({className:e,textClassName:t,variant:n,children:r,...i}){return(0,u.jsx)(l.View,{className:H(Me({variant:n}),e),...i,children:V(r,l.Text,{className:H(Ne({variant:n}),t)})})}var Fe=c.createContext(void 0),Ie=(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-muted-foreground text-xs`,label:`text-sm font-medium`,overline:`text-muted-foreground text-xs font-semibold tracking-widest uppercase`}},defaultVariants:{variant:`body`}}),W=c.forwardRef(({className:e,variant:t=`body`,children:n,...r},i)=>(0,u.jsx)(l.Text,{ref:i,className:H(Ie({variant:t,className:e})),...r,children:n}));W.displayName=`Text`;var Le=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}));Le.displayName=`Breadcrumb`;var Re=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}));Re.displayName=`BreadcrumbList`;var ze=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}));ze.displayName=`BreadcrumbItem`;var Be=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,W,{className:`text-muted-foreground hover:text-foreground text-sm font-medium`})}));Be.displayName=`BreadcrumbLink`;var Ve=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,"aria-current":`page`,className:H(`flex flex-row items-center`,e),...n,children:V(t,W,{className:`text-foreground text-sm font-normal`})}));Ve.displayName=`BreadcrumbPage`;var He=({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`})});He.displayName=`BreadcrumbSeparator`;var Ue=({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`})});Ue.displayName=`BreadcrumbEllipsis`;var We=c.forwardRef(({className:e,value:t,onChange:n,showOutsideDays:r,...i},a)=>{let[o,s]=c.useState(()=>t??new Date),[d,f]=c.useState(t);return t!==d&&(f(t),t&&s(t)),(0,u.jsx)(l.View,{ref:a,className:H(`bg-background overflow-hidden rounded-md`,e),children:(0,u.jsx)(x.default,{value:o,mode:`date`,display:`inline`,onValueChange:(e,t)=>{s(t),n&&n(e,t)},onDismiss:()=>{n&&n({type:`dismissed`},o)},...i})})});We.displayName=`Calendar`;var Ge=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}));Ge.displayName=`Card`;var Ke=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}));Ke.displayName=`CardHeader`;var qe=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}));qe.displayName=`CardTitle`;var Je=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:H(`text-muted-foreground text-sm`,e),...t}));Je.displayName=`CardDescription`;var Ye=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`})}));Ye.displayName=`CardContent`;var Xe=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}));Xe.displayName=`CardFooter`;var Ze=c.createContext(null);function G(){let e=c.useContext(Ze);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var Qe=c.forwardRef(({children:e,className:t,opts:n,orientation:r=`horizontal`,setApi:i,plugins:a,...o},s)=>{let d=c.useRef(null),[f]=c.useState(!0),[p]=c.useState(!1),[m,h]=c.useState(l.Dimensions.get(`window`).width),[g]=c.useState(0),_=c.useCallback(()=>{d.current?.scrollTo({x:(g+1)*m,animated:!0})},[g,m]),v=c.useCallback(()=>{d.current?.scrollTo({x:Math.max(0,g-1)*m,animated:!0})},[g,m]);return c.useEffect(()=>{i&&i({scrollNext:_,scrollPrev:v,canScrollNext:()=>f,canScrollPrev:()=>p,on:()=>{},off:()=>{}})},[i,_,v,f,p]),(0,u.jsx)(Ze.Provider,{value:{orientation:r,scrollRef:d,scrollNext:_,scrollPrev:v,canScrollNext:f,canScrollPrev:p,itemWidth:m,setItemWidth:h},children:(0,u.jsx)(l.View,{ref:s,className:H(`relative`,t),...o,children:e})})});Qe.displayName=`Carousel`;var $e=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:H(`flex`,a===`horizontal`?`flex-row`:`flex-col`,t),...n,children:e})})});$e.displayName=`CarouselContent`;var et=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:H(`min-w-0 shrink-0 grow-0 basis-full`,t),...n,children:e})});et.displayName=`CarouselItem`;var tt=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:H(`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})})});tt.displayName=`CarouselPrevious`;var nt=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:H(`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})})});nt.displayName=`CarouselNext`;var rt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(S.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)(S.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`})})}));rt.displayName=S.Root?.displayName||`Checkbox`;var it=C.Root,at=C.Trigger,ot=C.Content,st=w.Root,ct=w.Trigger,lt=w.Portal,ut=w.Group,dt=w.RadioGroup,ft=w.Sub,pt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.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)})}));pt.displayName=`ContextMenuOverlay`;var mt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(lt,{children:[(0,u.jsx)(pt,{}),(0,u.jsx)(w.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})]}));mt.displayName=`ContextMenuContent`;var ht=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(w.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,W)}));ht.displayName=`ContextMenuItem`;var gt=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(w.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)(w.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),V(t,W)]}));gt.displayName=`ContextMenuCheckboxItem`;var _t=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(w.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)(w.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),V(t,W)]}));_t.displayName=`ContextMenuRadioItem`;var vt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(w.Label,{ref:i,className:H(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:V(t,W)}));vt.displayName=`ContextMenuLabel`;var yt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Separator,{ref:n,className:H(`bg-border -mx-1 my-1 h-px`,e),...t}));yt.displayName=`ContextMenuSeparator`;var bt=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:H(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});bt.displayName=`ContextMenuShortcut`;var xt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(w.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,W)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));xt.displayName=`ContextMenuSubTrigger`;var St=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(w.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}));St.displayName=`ContextMenuSubContent`;var K=T.Root,Ct=T.Trigger,wt=T.Portal,Tt=T.Close,Et=c.forwardRef(({className:e,style:t,...n},r)=>(0,u.jsx)(T.Overlay,{style:[{position:l.Platform.OS===`web`?`fixed`:`absolute`,top:0,right:0,bottom:0,left:0,zIndex:50},t],asChild:!0,ref:r,...n,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`flex items-center justify-center bg-black/60 p-2 backdrop-blur-md`,e)})}));Et.displayName=T.Overlay?.displayName||`DialogOverlay`;var q=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(wt,{hostName:n,children:[(0,u.jsx)(Et,{className:r,style:i}),(0,u.jsx)(l.View,{pointerEvents:`box-none`,className:H(`absolute inset-0 z-50 flex items-center justify-center p-4`,l.Platform.OS===`web`&&`fixed`),children:(0,u.jsx)(T.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 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e),children:[t,(0,u.jsxs)(T.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)(W,{className:`sr-only`,children:`Close`})]})]})})})]}));q.displayName=T.Content?.displayName||`DialogContent`;var Dt=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col gap-1.5 text-center sm:text-left`,e),...t});Dt.displayName=`DialogHeader`;var Ot=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});Ot.displayName=`DialogFooter`;var kt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Title,{ref:n,className:H(`native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight`,e),...t}));kt.displayName=T.Title?.displayName||`DialogTitle`;var At=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Description,{ref:n,className:H(`native:text-base text-muted-foreground text-sm`,e),...t}));At.displayName=T.Description?.displayName||`DialogDescription`;var jt=({children:e,...t})=>(0,u.jsx)(T.Root,{...t,children:e});jt.displayName=`Drawer`;var Mt=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(T.Trigger,{ref:r,className:t,...n,children:V(e)}));Mt.displayName=`DrawerTrigger`;var Nt=T.Portal,Pt=c.forwardRef(({className:e,style:t,...n},r)=>(0,u.jsx)(T.Overlay,{style:[{position:l.Platform.OS===`web`?`fixed`:`absolute`,top:0,right:0,bottom:0,left:0,zIndex:50},t],asChild:!0,ref:r,...n,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:H(`bg-black/80`,e)})}));Pt.displayName=`DrawerOverlay`;var Ft=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Nt,{hostName:n,children:[(0,u.jsx)(Pt,{className:r,style:i}),(0,u.jsx)(T.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 z-50 flex h-auto flex-col rounded-t-xl border p-6 pb-10 shadow-lg`,l.Platform.OS===`web`?`fixed inset-x-0 bottom-0`:`absolute inset-x-0 bottom-0`,e),children:[(0,u.jsx)(l.View,{className:`bg-muted mx-auto mb-4 h-1.5 w-12 rounded-full`}),t]})})]}));Ft.displayName=`DrawerContent`;var It=({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)});It.displayName=`DrawerHeader`;var Lt=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{className:H(`mt-auto flex flex-col gap-2`,e),...n,children:V(t)});Lt.displayName=`DrawerFooter`;var Rt=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(T.Close,{ref:r,className:t,...n,children:V(e)}));Rt.displayName=`DrawerClose`;var zt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(T.Title,{ref:r,className:H(`text-foreground text-lg leading-none font-semibold tracking-tight`,e),...n,children:V(t)}));zt.displayName=`DrawerTitle`;var Bt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(T.Description,{ref:r,className:H(`text-muted-foreground text-sm`,e),...n,children:V(t)}));Bt.displayName=`DrawerDescription`;var Vt=E.Root,Ht=E.Trigger,Ut=E.Portal,Wt=E.Group,Gt=E.RadioGroup,Kt=E.Sub,qt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(E.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 backdrop-blur-md`,e)})}));qt.displayName=`DropdownMenuOverlay`;var Jt=c.forwardRef(({className:e,children:t,side:n,...r},i)=>{let a=n===`left`||n===`right`?`bottom`:n;return(0,u.jsxs)(Ut,{children:[(0,u.jsx)(qt,{}),(0,u.jsx)(E.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})]})});Jt.displayName=`DropdownMenuContent`;var J=c.forwardRef(({className:e,children:t,inset:n,onSelect:r,...i},a)=>l.Platform.OS===`web`?(0,u.jsx)(ee.Item,{ref:a,onSelect:r,className:H(`focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex cursor-default flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none`,n&&`pl-8`,e),...i,children:t}):(0,u.jsx)(E.Item,{ref:a,onPress:()=>r?.(new Event(`select`)),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),...i,children:V(t,W)}));J.displayName=`DropdownMenuItem`;var Yt=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(E.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)(E.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),V(t,W)]}));Yt.displayName=`DropdownMenuCheckboxItem`;var Xt=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(E.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)(E.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),V(t,W)]}));Xt.displayName=`DropdownMenuRadioItem`;var Zt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(E.Label,{ref:i,className:H(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:V(t,W)}));Zt.displayName=`DropdownMenuLabel`;var Qt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(E.Separator,{ref:n,className:H(`bg-border -mx-1 my-1 h-px`,e),...t}));Qt.displayName=`DropdownMenuSeparator`;var $t=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:H(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});$t.displayName=`DropdownMenuShortcut`;var en=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(E.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,W)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));en.displayName=`DropdownMenuSubTrigger`;var tn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(E.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}));tn.displayName=`DropdownMenuSubContent`;var nn=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})}));nn.displayName=D.Root?.displayName||`Label`;var rn=te.FormProvider,an=c.createContext(null),on=({...e})=>(0,u.jsx)(an.Provider,{value:{name:e.name},children:(0,u.jsx)(te.Controller,{...e})}),Y=()=>{let e=c.useContext(an),t=c.useContext(sn),{getFieldState:n,formState:r}=(0,te.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}},sn=c.createContext(null),cn=c.forwardRef(({className:e,...t},n)=>{let r=c.useId();return(0,u.jsx)(sn.Provider,{value:{id:r},children:(0,u.jsx)(l.View,{ref:n,className:H(`space-y-2`,e),...t})})});cn.displayName=`FormItem`;var ln=c.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=Y();return(0,u.jsx)(nn,{ref:n,className:H(r&&`text-destructive`,e),nativeID:i,...t})});ln.displayName=`FormLabel`;var un=c.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=Y();return(0,u.jsx)(b.Slot,{ref:t,nativeID:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});un.displayName=`FormControl`;var dn=c.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=Y();return(0,u.jsx)(l.Text,{ref:n,nativeID:r,className:H(`text-muted-foreground text-[13px]`,e),...t})});dn.displayName=`FormDescription`;var fn=c.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=Y(),o=i?String(i?.message??``):t;return o?(0,u.jsx)(l.Text,{ref:r,nativeID:a,className:H(`text-destructive text-[13px] font-medium`,e),...n,children:o}):null});fn.displayName=`FormMessage`;var pn=O.Root,mn=O.Trigger,hn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(O.Portal,{children:(0,u.jsx)(O.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})}));hn.displayName=O.Content?.displayName||`HoverCardContent`;var gn=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}));gn.displayName=`Input`;var _n=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)(k.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})});_n.displayName=`Menubar`;var vn=k.Menu,yn=k.Portal,bn=k.Group,xn=k.RadioGroup,Sn=k.Sub,Cn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(k.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)})}));Cn.displayName=`MenubarOverlay`;var wn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(k.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,W)}));wn.displayName=`MenubarTrigger`;var Tn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(yn,{children:[(0,u.jsx)(Cn,{}),(0,u.jsx)(k.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})]}));Tn.displayName=`MenubarContent`;var En=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(k.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,W)}));En.displayName=`MenubarItem`;var Dn=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(k.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)(k.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),V(t,W)]}));Dn.displayName=`MenubarCheckboxItem`;var On=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(k.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)(k.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),V(t,W)]}));On.displayName=`MenubarRadioItem`;var kn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(k.Label,{ref:i,className:H(`text-foreground px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r,children:V(t,W)}));kn.displayName=`MenubarLabel`;var An=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(k.Separator,{ref:n,className:H(`bg-border -mx-1 my-1 h-px`,e),...t}));An.displayName=`MenubarSeparator`;var jn=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:H(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});jn.displayName=`MenubarShortcut`;var Mn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(k.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,W)}),(0,u.jsx)(m.ChevronRight,{size:14,className:`text-foreground ml-auto`})]}));Mn.displayName=`MenubarSubTrigger`;var Nn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(k.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}));Nn.displayName=`MenubarSubContent`;var Pn=c.forwardRef(({className:e,children:t,value:n,onValueChange:r,dir:i,orientation:a,delayDuration:o,skipDelayDuration:s,...c},l)=>(0,u.jsx)(A.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}));Pn.displayName=`NavigationMenu`;var Fn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(A.List,{ref:r,className:H(`group flex flex-1 list-none flex-row items-center justify-center gap-1`,e),...n,children:t}));Fn.displayName=`NavigationMenuList`;var In=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsx)(A.Item,{ref:i,value:n||``,className:H(`relative`,e),...r,children:t}));In.displayName=`NavigationMenuItem`;var Ln=c.forwardRef(({className:e,children:t,disabled:n,...r},i)=>(0,u.jsxs)(A.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:[t,(0,u.jsx)(m.ChevronDown,{size:12,className:`text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180`})]}));Ln.displayName=`NavigationMenuTrigger`;var Rn=c.forwardRef(({className:e,children:t,forceMount:n,...r},i)=>(0,u.jsx)(A.Portal,{children:(0,u.jsx)(A.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})})}));Rn.displayName=`NavigationMenuContent`;var zn=c.forwardRef(({className:e,children:t,active:n,onSelect:r,onPress:i,href:a,...o},s)=>(0,u.jsx)(A.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}));zn.displayName=`NavigationMenuLink`;var Bn=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)(A.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})}));Bn.displayName=`NavigationMenuViewport`;var Vn=c.forwardRef(({className:e,forceMount:t,...n},r)=>(0,u.jsx)(A.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`})}));Vn.displayName=`NavigationMenuIndicator`;var Hn=({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});Hn.displayName=`Pagination`;var Un=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}));Un.displayName=`PaginationContent`;var Wn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:H(``,e),...n,children:t}));Wn.displayName=`PaginationItem`;var Gn=({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});Gn.displayName=`PaginationLink`;var Kn=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(Gn,{"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)(W,{className:`text-sm font-medium`,children:`Previous`})]});Kn.displayName=`PaginationPrevious`;var qn=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(Gn,{"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)(W,{className:`text-sm font-medium`,children:`Next`}),(0,u.jsx)(m.ChevronRight,{size:16,className:`text-foreground`})]});qn.displayName=`PaginationNext`;var Jn=({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`})});Jn.displayName=`PaginationEllipsis`;var Yn=c.createContext({open:!1,setOpen:()=>{}}),Xn=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)(Yn.Provider,{value:{open:d,setOpen:f},children:(0,u.jsx)(l.View,{ref:i,...r,children:e})})});Xn.displayName=`Popover`;var Zn=c.forwardRef(({children:e,...t},n)=>{let{setOpen:r}=c.useContext(Yn);return(0,u.jsx)(l.Pressable,{ref:n,onPress:()=>r(!0),...t,children:e})});Zn.displayName=`PopoverTrigger`;var Qn=c.forwardRef(({...e},t)=>(0,u.jsx)(l.View,{ref:t,...e}));Qn.displayName=`PopoverAnchor`;var $n=c.forwardRef(({className:e,children:t,...n},r)=>{let{open:i,setOpen:a}=c.useContext(Yn);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})})})})})});$n.displayName=`PopoverContent`;var er=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`,...n,children:(0,u.jsx)(l.View,{className:`bg-primary h-full rounded-full`,style:{width:`${t||0}%`}})}));er.displayName=`Progress`;var tr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.Root,{className:H(`web:grid gap-2`,e),...t,ref:n}));tr.displayName=j.Root?.displayName||`RadioGroup`;var nr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.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)(j.Indicator,{className:`flex items-center justify-center`,children:(0,u.jsx)(m.Circle,{className:`h-2.5 w-2.5 fill-current text-current`})})}));nr.displayName=j.Item?.displayName||`RadioGroupItem`;var rr=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(l.ScrollView,{ref:r,className:H(`flex-1`,t),showsVerticalScrollIndicator:!0,showsHorizontalScrollIndicator:!0,...n,children:(0,u.jsx)(l.View,{children:e})}));rr.displayName=`ScrollArea`;function ir({children:e,open:t,onOpenChange:n}){let[r,i]=c.useState(!1),a=t!==void 0,o=a?t:r,s=c.useCallback(e=>{a?n?.(e):i(e)},[a,n]);return(0,u.jsx)(K,{open:o,onOpenChange:s,children:e})}var ar=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:H(`relative h-12 flex-row justify-start pl-3 text-sm transition-all sm:h-9`,n==="default"?`w-full pr-12`:H(`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:H(`text-muted-foreground truncate`,n===`compact`&&(r?`hidden md:flex`:`hidden`)),children:o})]}),(0,u.jsx)(l.View,{className:H(`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`})})]})});ar.displayName=`SearchTrigger`;var or=M.Root,sr=M.Group,cr=c.forwardRef(({className:e,placeholder:t,...n},r)=>(0,u.jsx)(M.Value,{ref:r,className:H(`text-foreground native:text-base text-sm`,e),placeholder:typeof t==`string`?t:``,...n}));cr.displayName=M.Value?.displayName||`SelectValue`;var lr=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(M.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:[t,(0,u.jsx)(m.ChevronDown,{size:16,"aria-hidden":!0,className:`text-foreground opacity-50`})]}));lr.displayName=M.Trigger?.displayName||`SelectTrigger`;var ur=({className:e,...t})=>(0,u.jsx)(M.ScrollUpButton,{className:H(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronUp,{size:14,className:`text-foreground`})});ur.displayName=`SelectScrollUpButton`;var dr=({className:e,...t})=>(0,u.jsx)(M.ScrollDownButton,{className:H(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronDown,{size:14,className:`text-foreground`})});dr.displayName=`SelectScrollDownButton`;var fr=c.forwardRef(({className:e,children:t,position:n=`popper`,portalHost:r,overlayClassName:i,overlayStyle:a,...o},s)=>{let{open:c}=M.useRootContext();return(0,u.jsxs)(M.Portal,{hostName:r,children:[(0,u.jsx)(M.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)(M.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)(ur,{}),(0,u.jsx)(M.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)(dr,{})]})]})});fr.displayName=M.Content?.displayName||`SelectContent`;var pr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(M.Label,{ref:n,className:H(`text-foreground py-1.5 pr-2 pl-8 text-sm font-semibold`,e),...t}));pr.displayName=M.Label?.displayName||`SelectLabel`;var mr=c.forwardRef(({className:e,children:t,label:n,...r},i)=>{let a=n||(typeof t==`string`?t:``);return(0,u.jsxs)(M.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)(M.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,strokeWidth:3,className:`text-foreground`})})}),(0,u.jsx)(M.ItemText,{className:`text-foreground native:text-base text-sm`})]})});mr.displayName=M.Item?.displayName||`SelectItem`;var hr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(M.Separator,{ref:n,className:H(`bg-muted -mx-1 my-1 h-px`,e),...t}));hr.displayName=M.Separator?.displayName||`SelectSeparator`;var gr=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.useState(()=>new l.Animated.Value(0)),[v]=c.useState(()=>new l.Animated.Value(20)),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;h?n<=e&&(p(!1),g(!1)):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: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`})})})})});gr.displayName=`ScrollToTop`;var _r=`https://www.buymeacoffee.com`,vr=new Set([`buymeacoffee.com`,`www.buymeacoffee.com`]),yr=e=>{let t=e.trim();try{let n=new URL(t),r=n.hostname.toLowerCase();return n.protocol!==`https:`||!vr.has(r)?(console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),_r):t}catch{return console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),_r}},br=e=>{let t=yr(e);return t.endsWith(`/`)?t.slice(0,-1):t},xr=e=>e.trim().replace(/^@+/,``),Sr=(e,t)=>`${br(e)}/${encodeURIComponent(xr(t))}`;function Cr({supportUrl:e=_r,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(()=>Sr(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]),C=(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: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`})})});return(0,u.jsxs)(u.Fragment,{children:[C,(0,u.jsx)(K,{open:y,onOpenChange:b,children:(0,u.jsxs)(q,{className:H(`max-w-sm`,f),children:[(0,u.jsxs)(Dt,{children:[(0,u.jsx)(kt,{children:n}),(0,u.jsx)(At,{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 wr=c.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,u.jsx)(ne.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}));wr.displayName=ne.Root?.displayName||`Separator`;var Tr=T.Root,Er=T.Trigger,Dr=T.Close,Or=T.Portal,kr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.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/60 backdrop-blur-md`,e)})}));kr.displayName=T.Overlay?.displayName||`SheetOverlay`;var Ar=c.forwardRef(({className:e,children:t,side:n=`right`,overlayClassName:r,overlayStyle:i,...a},o)=>{let s=l.Platform.OS===`web`,c,d;return s||(n===`bottom`?(c=h.SlideInDown,d=h.SlideOutDown):n===`top`?(c=h.SlideInUp,d=h.SlideOutUp):n===`left`?(c=h.SlideInLeft,d=h.SlideOutLeft):(c=h.SlideInRight,d=h.SlideOutRight)),(0,u.jsxs)(Or,{children:[(0,u.jsx)(kr,{className:r,style:i}),(0,u.jsx)(T.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)(T.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)(W,{className:`sr-only`,children:`Close`})]})]})})]})});Ar.displayName=T.Content?.displayName||`SheetContent`;var jr=({className:e,...t})=>(0,u.jsx)(l.View,{className:H(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});jr.displayName=`SheetHeader`;var Mr=({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});Mr.displayName=`SheetFooter`;var Nr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Title,{ref:n,className:H(`text-foreground text-lg font-semibold`,e),...t}));Nr.displayName=T.Title?.displayName||`SheetTitle`;var Pr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Description,{ref:n,className:H(`text-muted-foreground text-sm`,e),...t}));Pr.displayName=T.Description?.displayName||`SheetDescription`;function Fr({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)},[n]);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 Ir=({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`})]})};Ir.displayName=`Slider`;var Lr=c.forwardRef(({className:e,checked:t,onCheckedChange:n,...r},i)=>{let a=t??!1,o={dataSet:{state:a?`checked`:`unchecked`}};return(0,u.jsx)(P.Root,{ref:i,checked:a,onCheckedChange:n||(()=>{}),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`,a?`bg-primary`:`bg-input`,e),...r,...o,children:(0,u.jsx)(P.Thumb,{...o,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-[18px] data-[state=unchecked]:translate-x-0`,a?`translate-x-[18px]`:`translate-x-0`)})})});Lr.displayName=P.Root.displayName;var Rr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`w-full caption-bottom text-sm`,e),...t}));Rr.displayName=`Table`;var zr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`border-border border-b`,e),...t}));zr.displayName=`TableHeader`;var Br=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:H(`flex-1`,e),...t}));Br.displayName=`TableBody`;var Vr=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}));Vr.displayName=`TableFooter`;var Hr=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}));Hr.displayName=`TableRow`;var Ur=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:H(`text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0`,e),...t}));Ur.displayName=`TableHead`;var Wr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:H(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,e),...t}));Wr.displayName=`TableCell`;var Gr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:H(`text-muted-foreground mt-4 text-sm`,e),...t}));Gr.displayName=`TableCaption`;var Kr=c.forwardRef(({value:e,defaultValue:t,onValueChange:n,...r},i)=>{let[a,o]=c.useState(t??``),s=e??a;return(0,u.jsx)(F.Root,{ref:i,value:s,onValueChange:e=>{o(e),n?.(e)},...r})});Kr.displayName=`Tabs`;var qr=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}));qr.displayName=F.List?.displayName||`TabsList`;var Jr=c.forwardRef(({className:e,...t},n)=>{let{value:r}=F.useRootContext();return(0,u.jsx)(Fe.Provider,{value:H(`native:text-base text-muted-foreground web:transition-all text-sm font-medium`,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})})});Jr.displayName=F.Trigger?.displayName||`TabsTrigger`;var Yr=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}));Yr.displayName=F.Content?.displayName||`TabsContent`;var Xr=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}));Xr.displayName=`Textarea`;var Zr=c.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,u.jsx)(Fe.Provider,{value:H(`native:text-base text-foreground text-sm font-medium`,r.pressed&&`text-accent-foreground`,e),children:(0,u.jsx)(I.Root,{ref:i,className:H((0,re.toggleVariants)({variant:t,size:n,className:e})),...r,pressed:r.pressed||!1,onPressedChange:r.onPressedChange||(()=>{})})}));Zr.displayName=I.Root?.displayName||`Toggle`;var Qr=c.createContext({size:`default`,variant:`default`}),$r=c.forwardRef(({className:e,variant:t,size:n,children:r,type:i,value:a,onValueChange:o,...s},c)=>(0,u.jsx)(L.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)(Qr.Provider,{value:{variant:t,size:n},children:r})}));$r.displayName=L.Root?.displayName||`ToggleGroup`;var ei=c.forwardRef(({className:e,children:t,variant:n,size:r,value:i,...a},o)=>{let s=c.useContext(Qr);return(0,u.jsx)(Fe.Provider,{value:H(`native:text-base text-foreground text-sm font-medium`,a.disabled&&`web:cursor-not-allowed opacity-50`,i===``&&`text-accent-foreground`,e),children:(0,u.jsx)(L.Item,{ref:o,value:i,className:H((0,re.toggleVariants)({variant:s.variant||n,size:s.size||r}),e),...a,children:t})})});ei.displayName=L.Item?.displayName||`ToggleGroupItem`;var ti=R.Root,ni=R.Trigger,ri=c.forwardRef(({className:e,portalHost:t,...n},r)=>(0,u.jsx)(R.Portal,{hostName:t,children:(0,u.jsx)(R.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)(W,{className:`text-popover-foreground native:text-base text-sm`,children:n.children})})})}));ri.displayName=R.Content?.displayName||`TooltipContent`;var ii=({children:e})=>e,ai=5,oi=1e6,X={ADD_TOAST:`ADD_TOAST`,UPDATE_TOAST:`UPDATE_TOAST`,DISMISS_TOAST:`DISMISS_TOAST`,REMOVE_TOAST:`REMOVE_TOAST`},si=0;function ci(){return si=(si+1)%(2**53-1),si.toString()}var li=new Map,ui=e=>{if(li.has(e))return;let t=setTimeout(()=>{li.delete(e),Z({type:`REMOVE_TOAST`,toastId:e})},oi);li.set(e,t)},di=(e,t)=>{switch(t.type){case X.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,ai)};case X.UPDATE_TOAST:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case X.DISMISS_TOAST:{let{toastId:n}=t;return n?ui(n):e.toasts.forEach(e=>{ui(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case X.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},fi=[],pi={toasts:[]};function Z(e){pi=di(pi,e),fi.forEach(e=>{e(pi)})}function mi({...e}){let t=ci(),n=e=>Z({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>Z({type:`DISMISS_TOAST`,toastId:t});return Z({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(pi);return c.useEffect(()=>(fi.push(t),()=>{let e=fi.indexOf(t);e>-1&&fi.splice(e,1)}),[]),{...e,toast:mi,dismiss:e=>Z({type:`DISMISS_TOAST`,toastId:e})}}var gi=({children:e})=>e,_i=c.forwardRef(({className:e,variant:t=`default`,...n},r)=>(0,u.jsx)(z.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=z.Root?.displayName||`Toast`;var vi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.Title,{ref:n,className:H(`text-foreground text-sm font-semibold`,e),...t}));vi.displayName=z.Title?.displayName||`ToastTitle`;var yi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.Description,{ref:n,className:H(`text-muted-foreground text-sm opacity-90`,e),...t}));yi.displayName=z.Description?.displayName||`ToastDescription`;var bi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.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=z.Close?.displayName||`ToastClose`;var xi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.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=z.Action?.displayName||`ToastAction`;var Si=c.createContext(null);function Ci({children:e,className:t,style:n,value:r,...i}){let a=(0,l.useColorScheme)(),o=r||`system`,s=o===`system`?a===`dark`?`dark`:`light`:o,d=s===`dark`?B.theme.dark:B.theme.light,f=s===`dark`;c.useEffect(()=>{typeof document<`u`&&(document.documentElement.classList.toggle(`dark`,f),document.body&&document.body.classList.toggle(`dark`,f));try{o===`system`?l.Appearance.setColorScheme(`unspecified`):l.Appearance.setColorScheme(f?`dark`:`light`)}catch{}},[o,f]);let p=c.useMemo(()=>({theme:o,resolvedTheme:s,tokens:d}),[o,s,d]);return(0,u.jsx)(Si.Provider,{value:p,children:(0,u.jsx)(l.View,{className:H(`flex-1`,f?`dark`:``,t),style:[{backgroundColor:d.background},n],...i,children:e})})}function wi(){let e=c.useContext(Si),t=(0,l.useColorScheme)();if(e)return e;let n=t;return{theme:t,resolvedTheme:n,tokens:n===`dark`?B.theme.dark:B.theme.light}}function Ti(e){(0,ie.cssInterop)(e,{className:{target:`style`,nativeStyleToProp:{color:!0,opacity:!0}}})}Ti(m.Sun),Ti(m.Moon),Ti(m.SunMoon);function Ei({isDark:e,isSystem:t,foreground:n}){return(0,u.jsxs)(l.View,{className:`flex h-6 w-6 items-center justify-center`,children:[(0,u.jsx)(l.View,{className:H(`items-center justify-center transition-all`,!t&&!e?`rotate-0 opacity-100`:`absolute -rotate-90 opacity-0`),children:(0,u.jsx)(m.Sun,{size:18,color:n})}),(0,u.jsx)(l.View,{className:H(`items-center justify-center transition-all`,!t&&e?`rotate-0 opacity-100`:`absolute rotate-90 opacity-0`),children:(0,u.jsx)(m.Moon,{size:18,color:n})}),(0,u.jsx)(l.View,{className:H(`items-center justify-center transition-all`,t?`rotate-0 opacity-100`:`absolute rotate-90 opacity-0`),children:(0,u.jsx)(m.SunMoon,{size:18,color:n})})]})}function Di({variant:e=`binary`,onThemeChange:t,customTheme:n,className:r}){let{theme:i,resolvedTheme:a,tokens:o}=wi(),s=n??i,c=(n===`system`||!n?a:n)===`dark`,d=s===`system`,f=e=>{t?t(e):e===`system`?l.Appearance.setColorScheme(`unspecified`):l.Appearance.setColorScheme(e)};return e===`ternary`?(0,u.jsxs)(Vt,{children:[(0,u.jsx)(Ht,{className:H(`relative h-9 w-9 flex-row items-center justify-center rounded-md bg-transparent transition-colors active:opacity-80`,r),children:(0,u.jsx)(Ei,{isDark:c,isSystem:d,foreground:o.foreground})}),(0,u.jsxs)(Jt,{align:`end`,children:[(0,u.jsxs)(J,{onSelect:()=>f(`light`),children:[(0,u.jsx)(m.Sun,{size:14,color:o.foreground,className:`mr-2`}),(0,u.jsx)(W,{children:`Light`})]}),(0,u.jsxs)(J,{onSelect:()=>f(`dark`),children:[(0,u.jsx)(m.Moon,{size:14,color:o.foreground,className:`mr-2`}),(0,u.jsx)(W,{children:`Dark`})]}),(0,u.jsxs)(J,{onSelect:()=>f(`system`),children:[(0,u.jsx)(m.SunMoon,{size:14,color:o.foreground,className:`mr-2`}),(0,u.jsx)(W,{children:`System`})]})]})]}):(0,u.jsx)(U,{variant:`ghost`,size:`icon`,className:H(`relative h-9 w-9`,r),onPress:()=>f(s===`dark`?`light`:`dark`),children:(0,u.jsx)(Ei,{isDark:c,isSystem:d,foreground:o.foreground})})}var Oi=()=>{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))})})},ki=c.createContext(void 0);function Ai(){let e=c.useContext(ki);if(!e)throw Error(`useTOC must be used within a TableOfContents provider`);return e}function Q({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}]).toSorted((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)(ki.Provider,{value:h,children:(0,u.jsx)(l.View,{className:`flex-1`,children:e})})}function ji({children:e,level:t=2,id:n,className:r}){let{registerHeading:i,unregisterHeading:a}=Ai(),o=n||ae(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 Mi({className:e}){let{headings:t,activeId:n,scrollToHeading:r}=Ai(),i=c.useMemo(()=>t.length===0?0:Math.min(...t.map(e=>e.level)),[t]);return t.length===0?null:(0,u.jsxs)(l.View,{className:H(`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,a=(e.level-i)*16;return(0,u.jsx)(l.TouchableOpacity,{onPress:()=>r(e.id),style:{paddingLeft:a},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 Ni({children:e,className:t}){let{scrollViewRef:n,onScroll:r}=Ai();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})}Q.List=Mi,Q.Content=Ni,Q.Heading=ji;var Pi=(0,g.cva)(`flex w-fit items-stretch`,{variants:{orientation:{horizontal:`flex-row`,vertical:`flex-col`}},defaultVariants:{orientation:`horizontal`}});function Fi({className:e,orientation:t=`horizontal`,...n}){return(0,u.jsx)(l.View,{className:H(Pi({orientation:t}),e),...n})}function Ii({className:e,asChild:t,...n}){return(0,u.jsx)(l.Text,{className:H(`bg-muted text-foreground rounded-lg border px-2.5 text-sm font-medium`,e),...n})}function Li({className:e,orientation:t=`vertical`,...n}){return(0,u.jsx)(wr,{orientation:t,className:H(`bg-border`,e),...n})}function Ri({children:e}){return e}function zi(){return`ltr`}function Bi({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`border-border flex w-full items-center justify-center rounded-xl border-2 border-dashed p-6`,e),...t})}function Vi({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-col items-center gap-2`,e),...t})}function Hi({className:e,variant:t,...n}){return(0,u.jsx)(l.View,{className:H(`flex items-center justify-center`,e),...n})}function Ui({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`text-foreground text-lg font-semibold`,e),...t})}function Wi({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`text-muted-foreground text-center text-sm`,e),...t})}function Gi({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`mt-4 flex flex-col items-center gap-2`,e),...t})}function Ki({className:e,...t}){return(0,u.jsx)(l.ActivityIndicator,{size:`small`,...t})}function qi({className:e,orientation:t,...n}){return(0,u.jsx)(l.View,{className:H(`flex flex-col gap-2`,e),...n})}function Ji({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-col`,e),...t})}function Yi({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`text-muted-foreground text-sm`,e),...t})}function Xi({className:e,errors:t,children:n,...r}){let i=n||t&&t[0]?.message;return i?(0,u.jsx)(l.Text,{className:H(`text-destructive text-sm`,e),...r,children:i}):null}function Zi({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-col gap-4`,e),...t})}function Qi({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`text-sm font-medium`,e),...t})}function $i({className:e,variant:t,...n}){return(0,u.jsx)(l.Text,{className:H(`font-medium`,t===`label`?`text-sm`:`text-base`,e),...n})}function ea({className:e,children:t,...n}){return(0,u.jsx)(l.View,{className:H(`bg-border my-2 h-px`,e),...n,children:t?(0,u.jsx)(l.Text,{className:`bg-background absolute px-2 text-xs`,children:t}):null})}function ta({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-col gap-4`,e),...t})}function na({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`text-sm font-medium`,e),...t})}function ra({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`border-input flex flex-row items-center rounded-md border`,e),...t})}function ia({className:e,align:t,...n}){return(0,u.jsx)(l.View,{className:H(`p-2`,e),...n})}function aa({className:e,type:t,variant:n,size:r,...i}){return(0,u.jsx)(U,{variant:n,size:r,className:e,...i})}function oa({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`text-muted-foreground text-sm`,e),...t})}function sa({className:e,...t}){return(0,u.jsx)(l.TextInput,{className:H(`text-foreground flex-1 px-3 py-2`,e),...t})}function ca({className:e,...t}){return(0,u.jsx)(l.TextInput,{multiline:!0,className:H(`text-foreground flex-1 px-3 py-2`,e),...t})}function la({className:e,size:t,...n}){return(0,u.jsx)(l.View,{className:H(`border-input rounded-md border p-2`,e),...n,children:(0,u.jsx)(l.Text,{className:`text-muted-foreground`,children:`Select Not Implemented (Use Picker)`})})}function ua({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function da({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function fa({className:e,...t}){return(0,u.jsx)(l.Text,{className:H(`bg-muted text-muted-foreground rounded-sm px-1 font-mono text-xs`,e),...t})}function pa({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-row items-center gap-1`,e),...t})}function ma({className:e,variant:t,size:n,...r}){return(0,u.jsx)(l.View,{className:H(`flex flex-row flex-wrap items-center gap-2 rounded-lg border p-3`,e),...r})}function ha({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-row items-center gap-2`,e),...t})}function ga({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-1 flex-col gap-1`,e),...t})}function _a({className:e,...t}){return(0,u.jsx)(W,{variant:`bodySmall`,className:H(`text-muted-foreground`,e),...t})}function va({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex w-full flex-row items-center justify-between gap-2`,e),...t})}function ya({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-col gap-4`,e),...t})}function ba({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex w-full flex-row items-center justify-between gap-2`,e),...t})}function xa({className:e,variant:t,...n}){return(0,u.jsx)(l.View,{className:H(`flex shrink-0 items-center justify-center gap-2`,e),...n})}function Sa({className:e,orientation:t,...n}){return(0,u.jsx)(l.View,{className:H(`bg-border my-2 h-px w-full`,e),...n})}function Ca({className:e,...t}){return(0,u.jsx)(W,{variant:`bodySmall`,className:H(`font-medium`,e),...t})}var wa=c.createContext(null);function $(){let e=c.useContext(wa);if(!e)throw Error(`Combobox components must be rendered within a Combobox provider`);return e}function Ta({className:e,value:t,onValueChange:n,...r}){let[i,a]=c.useState(!1),[o,s]=c.useState(t||``),[d,f]=c.useState(``),p=t===void 0?o:t;return(0,u.jsx)(wa.Provider,{value:{open:i,setOpen:a,value:p,setValue:e=>{s(e),n?.(e),a(!1)},searchQuery:d,setSearchQuery:f},children:(0,u.jsx)(K,{open:i,onOpenChange:a,children:(0,u.jsx)(l.View,{className:H(`relative`,e),...r})})})}function Ea({className:e,children:t,...n}){let{value:r}=$();return(0,u.jsx)(l.View,{className:e,...n,children:(0,u.jsx)(W,{className:`text-sm`,children:t||r||`Select an item...`})})}function Da({className:e,children:t,...n}){return(0,u.jsx)(Ct,{asChild:!0,children:(0,u.jsxs)(l.Pressable,{className:H(`border-input bg-background text-foreground flex h-10 w-full flex-row items-center justify-between rounded-md border px-3 py-2 text-sm`,e),...n,children:[(0,u.jsx)(l.View,{className:`flex-1 flex-row items-center`,children:V(t,W)}),(0,u.jsx)(m.ChevronDown,{size:16,className:`text-muted-foreground opacity-50`})]})})}function Oa({className:e,children:t,...n}){let{setValue:r}=$();return(0,u.jsx)(l.Pressable,{className:H(`flex items-center justify-center p-1`,e),onPress:()=>r(``),...n,children:t||(0,u.jsx)(m.X,{size:14,className:`text-muted-foreground`})})}function ka({className:e,showClear:t,showTrigger:n,placeholder:r=`Search...`,...i}){let{searchQuery:a,setSearchQuery:o}=$();return(0,u.jsx)(l.View,{className:`border-border flex flex-row items-center border-b px-3`,children:(0,u.jsx)(l.TextInput,{className:H(`flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-none`,e),placeholder:r,placeholderTextColor:`#a1a1aa`,value:a,onChangeText:o,...i})})}function Aa({className:e,side:t,sideOffset:n,align:r,alignOffset:i,anchor:a,...o}){return(0,u.jsx)(q,{className:`p-0`,children:(0,u.jsx)(l.View,{className:H(`bg-popover flex max-h-96 w-full flex-col overflow-hidden rounded-md`,e),...o})})}function ja({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`max-h-[300px] overflow-hidden`,e),...t})}function Ma({className:e,children:t,value:n,...r}){let{value:i,setValue:a,searchQuery:o}=$(),s=c.Children.toArray(t).join(``).toLowerCase();if(o&&!s.includes(o.toLowerCase())&&!n.toLowerCase().includes(o.toLowerCase()))return null;let d=i===n;return(0,u.jsxs)(l.Pressable,{className:H(`active:bg-accent relative flex w-full flex-row items-center rounded-sm py-2.5 pr-8 pl-2 text-sm outline-none`,d&&`bg-accent`,e),onPress:()=>a(n),...r,children:[(0,u.jsx)(l.View,{className:`flex-1`,children:V(t,W,{className:d?`font-semibold`:``})}),d&&(0,u.jsx)(l.View,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(m.Check,{size:16,className:`text-foreground`})})]})}function Na({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`text-foreground overflow-hidden p-1`,e),...t})}function Pa({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`text-muted-foreground px-2 py-1.5 text-xs font-semibold`,e),...t})}function Fa({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function Ia({className:e,children:t,...n}){let{searchQuery:r}=$();return r?(0,u.jsx)(l.View,{className:H(`py-6 text-center text-sm`,e),...n,children:(0,u.jsx)(W,{className:`text-muted-foreground text-center`,children:t||`No results found.`})}):null}function La({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`bg-muted -mx-1 h-px`,e),...t})}function Ra({className:e,...t}){return(0,u.jsx)(l.View,{className:H(`flex flex-row flex-wrap gap-1`,e),...t})}function za({className:e,showRemove:t,children:n,...r}){return(0,u.jsxs)(l.View,{className:H(`bg-secondary text-secondary-foreground flex flex-row items-center rounded-md px-2 py-1`,e),...r,children:[V(n,W,{className:`text-xs`}),t&&(0,u.jsx)(m.X,{size:12,className:`ml-1 opacity-50`})]})}function Ba({className:e,...t}){return(0,u.jsx)(l.TextInput,{className:H(`flex-1 bg-transparent px-2 py-1 outline-none`,e),...t})}function Va(){return c.useRef(null)}function Ha({className:e,containerClassName:t,...n}){return(0,u.jsx)(l.View,{className:H(`border-destructive/50 rounded-md border border-dashed p-4`,t,e),...n,children:(0,u.jsx)(l.Text,{className:`text-destructive font-mono text-xs`,children:`InputOTP (Not Implemented)`})})}function Ua({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function Wa({className:e,index:t,...n}){return(0,u.jsx)(l.View,{className:e,...n})}function Ga({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function Ka({className:e,defaultOpen:t,open:n,onOpenChange:r,...i}){return(0,u.jsx)(l.View,{className:e,...i})}function qa({className:e,side:t,variant:n,collapsible:r,...i}){return(0,u.jsx)(l.View,{className:H(`border-destructive/50 rounded-md border border-dashed p-4`,e),...i,children:(0,u.jsx)(l.Text,{className:`text-destructive font-mono text-xs`,children:`Sidebar (Not Implemented)`})})}function Ja({className:e,...t}){return(0,u.jsx)(l.Pressable,{className:e,...t})}function Ya({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function Xa({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function Za({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function Qa({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function $a({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function eo({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function to({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function no({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function ro({className:e,asChild:t,...n}){return(0,u.jsx)(l.View,{className:e,...n})}function io({className:e,asChild:t,...n}){return(0,u.jsx)(l.Pressable,{className:e,...n})}function ao({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function oo({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function so({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function co({className:e,asChild:t,isActive:n,variant:r,size:i,tooltip:a,...o}){return(0,u.jsx)(l.Pressable,{className:e,...o})}function lo({className:e,asChild:t,showOnHover:n,...r}){return(0,u.jsx)(l.Pressable,{className:e,...r})}function uo({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function fo({className:e,showIcon:t,...n}){return(0,u.jsx)(l.View,{className:e,...n})}function po({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function mo({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function ho({className:e,asChild:t,size:n,isActive:r,...i}){return(0,u.jsx)(l.Pressable,{className:e,...i})}function go(){return{state:`expanded`,open:!0,setOpen:()=>{},openMobile:!1,setOpenMobile:()=>{},isMobile:!1,toggleSidebar:()=>{}}}exports.Accordion=oe,exports.AccordionContent=ue,exports.AccordionItem=se,exports.AccordionTrigger=le,exports.Alert=fe,exports.AlertDescription=me,exports.AlertDialog=_e,exports.AlertDialogAction=Ee,exports.AlertDialogCancel=De,exports.AlertDialogContent=xe,exports.AlertDialogDescription=Te,exports.AlertDialogFooter=Ce,exports.AlertDialogHeader=Se,exports.AlertDialogOverlay=be,exports.AlertDialogPortal=ye,exports.AlertDialogTitle=we,exports.AlertDialogTrigger=ve,exports.AlertTitle=pe,exports.AspectRatio=Oe,exports.Avatar=ke,exports.AvatarFallback=je,exports.AvatarImage=Ae,exports.Badge=Pe,exports.Breadcrumb=Le,exports.BreadcrumbEllipsis=Ue,exports.BreadcrumbItem=ze,exports.BreadcrumbLink=Be,exports.BreadcrumbList=Re,exports.BreadcrumbPage=Ve,exports.BreadcrumbSeparator=He,exports.Button=U,exports.ButtonGroup=Fi,exports.ButtonGroupSeparator=Li,exports.ButtonGroupText=Ii,exports.Calendar=We,exports.Card=Ge,exports.CardContent=Ye,exports.CardDescription=Je,exports.CardFooter=Xe,exports.CardHeader=Ke,exports.CardTitle=qe,exports.Carousel=Qe,exports.CarouselContent=$e,exports.CarouselItem=et,exports.CarouselNext=nt,exports.CarouselPrevious=tt,exports.Checkbox=rt,exports.Collapsible=it,exports.CollapsibleContent=ot,exports.CollapsibleTrigger=at,exports.Combobox=Ta,exports.ComboboxChip=za,exports.ComboboxChips=Ra,exports.ComboboxChipsInput=Ba,exports.ComboboxClear=Oa,exports.ComboboxCollection=Fa,exports.ComboboxContent=Aa,exports.ComboboxEmpty=Ia,exports.ComboboxGroup=Na,exports.ComboboxInput=ka,exports.ComboboxItem=Ma,exports.ComboboxLabel=Pa,exports.ComboboxList=ja,exports.ComboboxSeparator=La,exports.ComboboxTrigger=Da,exports.ComboboxValue=Ea,exports.ContextMenu=st,exports.ContextMenuCheckboxItem=gt,exports.ContextMenuContent=mt,exports.ContextMenuGroup=ut,exports.ContextMenuItem=ht,exports.ContextMenuLabel=vt,exports.ContextMenuPortal=lt,exports.ContextMenuRadioGroup=dt,exports.ContextMenuRadioItem=_t,exports.ContextMenuSeparator=yt,exports.ContextMenuShortcut=bt,exports.ContextMenuSub=ft,exports.ContextMenuSubContent=St,exports.ContextMenuSubTrigger=xt,exports.ContextMenuTrigger=ct,exports.Dialog=K,exports.DialogClose=Tt,exports.DialogContent=q,exports.DialogDescription=At,exports.DialogFooter=Ot,exports.DialogHeader=Dt,exports.DialogTitle=kt,exports.DialogTrigger=Ct,exports.DirectionProvider=Ri,exports.Drawer=jt,exports.DrawerClose=Rt,exports.DrawerContent=Ft,exports.DrawerDescription=Bt,exports.DrawerFooter=Lt,exports.DrawerHeader=It,exports.DrawerOverlay=Pt,exports.DrawerPortal=Nt,exports.DrawerTitle=zt,exports.DrawerTrigger=Mt,exports.DropdownMenu=Vt,exports.DropdownMenuCheckboxItem=Yt,exports.DropdownMenuContent=Jt,exports.DropdownMenuGroup=Wt,exports.DropdownMenuItem=J,exports.DropdownMenuLabel=Zt,exports.DropdownMenuPortal=Ut,exports.DropdownMenuRadioGroup=Gt,exports.DropdownMenuRadioItem=Xt,exports.DropdownMenuSeparator=Qt,exports.DropdownMenuShortcut=$t,exports.DropdownMenuSub=Kt,exports.DropdownMenuSubContent=tn,exports.DropdownMenuSubTrigger=en,exports.DropdownMenuTrigger=Ht,exports.Empty=Bi,exports.EmptyContent=Gi,exports.EmptyDescription=Wi,exports.EmptyHeader=Vi,exports.EmptyMedia=Hi,exports.EmptyTitle=Ui,exports.Field=qi,exports.FieldContent=Ji,exports.FieldDescription=Yi,exports.FieldError=Xi,exports.FieldGroup=Zi,exports.FieldLabel=Qi,exports.FieldLegend=$i,exports.FieldSeparator=ea,exports.FieldSet=ta,exports.FieldTitle=na,exports.Form=rn,exports.FormControl=un,exports.FormDescription=dn,exports.FormField=on,exports.FormItem=cn,exports.FormLabel=ln,exports.FormMessage=fn,exports.HoverCard=pn,exports.HoverCardContent=hn,exports.HoverCardTrigger=mn,exports.Input=gn,exports.InputGroup=ra,exports.InputGroupAddon=ia,exports.InputGroupButton=aa,exports.InputGroupInput=sa,exports.InputGroupText=oa,exports.InputGroupTextarea=ca,exports.InputOTP=Ha,exports.InputOTPGroup=Ua,exports.InputOTPSeparator=Ga,exports.InputOTPSlot=Wa,exports.Item=ma,exports.ItemActions=ha,exports.ItemContent=ga,exports.ItemDescription=_a,exports.ItemFooter=va,exports.ItemGroup=ya,exports.ItemHeader=ba,exports.ItemMedia=xa,exports.ItemSeparator=Sa,exports.ItemTitle=Ca,exports.Kbd=fa,exports.KbdGroup=pa,exports.Label=nn,exports.Menubar=_n,exports.MenubarCheckboxItem=Dn,exports.MenubarContent=Tn,exports.MenubarGroup=bn,exports.MenubarItem=En,exports.MenubarLabel=kn,exports.MenubarMenu=vn,exports.MenubarPortal=yn,exports.MenubarRadioGroup=xn,exports.MenubarRadioItem=On,exports.MenubarSeparator=An,exports.MenubarShortcut=jn,exports.MenubarSub=Sn,exports.MenubarSubContent=Nn,exports.MenubarSubTrigger=Mn,exports.MenubarTrigger=wn,exports.NativeSelect=la,exports.NativeSelectOptGroup=da,exports.NativeSelectOption=ua,exports.NavigationMenu=Pn,exports.NavigationMenuContent=Rn,exports.NavigationMenuIndicator=Vn,exports.NavigationMenuItem=In,exports.NavigationMenuLink=zn,exports.NavigationMenuList=Fn,exports.NavigationMenuTrigger=Ln,exports.NavigationMenuViewport=Bn,exports.Pagination=Hn,exports.PaginationContent=Un,exports.PaginationEllipsis=Jn,exports.PaginationItem=Wn,exports.PaginationLink=Gn,exports.PaginationNext=qn,exports.PaginationPrevious=Kn,exports.Popover=Xn,exports.PopoverAnchor=Qn,exports.PopoverContent=$n,exports.PopoverTrigger=Zn,exports.Progress=er,exports.RadioGroup=tr,exports.RadioGroupItem=nr,exports.ScrollArea=rr,exports.ScrollToTop=gr,exports.Search=ir,exports.Select=or,exports.SelectContent=fr,exports.SelectGroup=sr,exports.SelectItem=mr,exports.SelectLabel=pr,exports.SelectScrollDownButton=dr,exports.SelectScrollUpButton=ur,exports.SelectSeparator=hr,exports.SelectTrigger=lr,exports.SelectValue=cr,exports.Separator=wr,exports.Sheet=Tr,exports.SheetClose=Dr,exports.SheetContent=Ar,exports.SheetDescription=Pr,exports.SheetFooter=Mr,exports.SheetHeader=jr,exports.SheetOverlay=kr,exports.SheetPortal=Or,exports.SheetTitle=Nr,exports.SheetTrigger=Er,exports.Sidebar=qa,exports.SidebarContent=to,exports.SidebarFooter=$a,exports.SidebarGroup=no,exports.SidebarGroupAction=io,exports.SidebarGroupContent=ao,exports.SidebarGroupLabel=ro,exports.SidebarHeader=Qa,exports.SidebarInput=Za,exports.SidebarInset=Xa,exports.SidebarMenu=oo,exports.SidebarMenuAction=lo,exports.SidebarMenuBadge=uo,exports.SidebarMenuButton=co,exports.SidebarMenuItem=so,exports.SidebarMenuSkeleton=fo,exports.SidebarMenuSub=po,exports.SidebarMenuSubButton=ho,exports.SidebarMenuSubItem=mo,exports.SidebarProvider=Ka,exports.SidebarRail=Ya,exports.SidebarSeparator=eo,exports.SidebarTrigger=Ja,exports.Skeleton=Fr,exports.Slider=Ir,exports.Spinner=Ki,exports.SupportFab=Cr,exports.Switch=Lr,exports.Table=Rr,exports.TableBody=Br,exports.TableCaption=Gr,exports.TableCell=Wr,exports.TableFooter=Vr,exports.TableHead=Ur,exports.TableHeader=zr,exports.TableOfContents=Q,exports.TableOfContentsContent=Ni,exports.TableOfContentsHeading=ji,exports.TableOfContentsList=Mi,exports.TableRow=Hr,exports.Tabs=Kr,exports.TabsContent=Yr,exports.TabsList=qr,exports.TabsTrigger=Jr,exports.Text=W,exports.Textarea=Xr,exports.ThemeProvider=Ci,exports.ThemeToggle=Di,exports.Toast=_i,exports.Toaster=Oi,exports.Toggle=Zr,exports.ToggleGroup=$r,exports.ToggleGroupItem=ei,exports.Tooltip=ti,exports.TooltipContent=ri,exports.TooltipProvider=ii,exports.TooltipTrigger=ni,exports.badgeVariants=Me,exports.buttonGroupVariants=Pi,exports.buttonVariants=he,exports.cn=H,exports.textVariants=Ie,exports.toast=mi,Object.defineProperty(exports,"toggleVariants",{enumerable:!0,get:function(){return re.toggleVariants}}),exports.useComboboxAnchor=Va,exports.useDirection=zi,exports.useFormField=Y,exports.useSidebar=go,exports.useTheme=wi,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,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,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("@react-native-community/datetimepicker");x=s(x);let S=require("@rn-primitives/checkbox");S=s(S);let C=require("@rn-primitives/collapsible");C=s(C);let w=require("@rn-primitives/context-menu");w=s(w);let T=require("@rn-primitives/dialog");T=s(T);let E=require("@rn-primitives/dropdown-menu");E=s(E);let ee=require("react-hook-form"),D=require("@rn-primitives/label");D=s(D);let O=require("@rn-primitives/hover-card");O=s(O);let k=require("@rn-primitives/menubar");k=s(k);let A=require("@rn-primitives/navigation-menu");A=s(A);let j=require("@rn-primitives/radio-group");j=s(j);let M=require("@rn-primitives/select");M=s(M);let N=require("@rn-primitives/separator");N=s(N);let P=require("@rn-primitives/slider");P=s(P);let F=require("@rn-primitives/switch");F=s(F);let I=require("@rn-primitives/tabs");I=s(I);let te=require("@rn-primitives/toggle");te=s(te);let L=require("@rn-primitives/toggle-group");L=s(L);let R=require("@rn-primitives/tooltip");R=s(R);let z=require("@rn-primitives/toast");z=s(z);let ne=require("@gv-tech/design-tokens"),re=require("react-native-css-interop");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`;function me(e){if(e>=44)return;let t=Math.ceil((44-e)/2);return{top:t,right:t,bottom:t,left:t}}var he=28;function ge(e){if(e===`xs`||e===`icon-xs`)return me(he)}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-input border bg-transparent shadow-sm`,secondary:`bg-secondary shadow-sm`,ghost:`bg-transparent`,link:`bg-transparent`},size:{default:`h-10 px-4 py-2`,xs:`h-7 px-2`,sm:`h-9 px-3`,lg:`h-12 px-8`,icon:`h-10 w-10`,"icon-xs":`h-7 w-7`,"icon-sm":`h-9 w-9`,"icon-lg":`h-12 w-12`}},defaultVariants:{variant:`default`,size:`default`}}),_e=(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,accessibilityLabel:o,accessibilityState:s,hitSlop:c,...d},f)=>(0,u.jsx)(l.Pressable,{ref:f,onPress:a?void 0:r,disabled:a,hitSlop:c??ge(n),accessibilityRole:`button`,accessibilityLabel:o,accessibilityState:{...s,...a?{disabled:!0}:{}},"aria-busy":s?.busy?!0:void 0,className:V(H({variant:t,size:n,className:e}),a&&`opacity-50`),...d,children:B(i,l.Text,{className:V(_e({variant:t}))})}));U.displayName=`Button`;var ve=_.Root,ye=_.Trigger,be=_.Portal,xe=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/60 p-2 backdrop-blur-md`,e)})}));xe.displayName=_.Overlay?.displayName||`AlertDialogOverlay`;var Se=c.forwardRef(({className:e,portalHost:t,overlayClassName:n,overlayStyle:r,...i},a)=>(0,u.jsxs)(be,{hostName:t,children:[(0,u.jsx)(xe,{className:n,style:r}),(0,u.jsx)(l.View,{pointerEvents:`box-none`,className:V(`absolute inset-0 z-50 flex items-center justify-center p-4`,l.Platform.OS===`web`&&`fixed`),children:(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 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e),children:i.children})})})]}));Se.displayName=_.Content?.displayName||`AlertDialogContent`;var Ce=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col gap-2 text-center sm:text-left`,e),...t});Ce.displayName=`AlertDialogHeader`;var we=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});we.displayName=`AlertDialogFooter`;var Te=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}));Te.displayName=_.Title?.displayName||`AlertDialogTitle`;var Ee=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Description,{ref:n,className:V(`native:text-base text-muted-foreground text-sm`,e),...t}));Ee.displayName=_.Description?.displayName||`AlertDialogDescription`;var De=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Action,{ref:n,className:V(H(),e),...t}));De.displayName=_.Action?.displayName||`AlertDialogAction`;var Oe=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(_.Cancel,{ref:n,className:V(H({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));Oe.displayName=_.Cancel?.displayName||`AlertDialogCancel`;var ke=({children:e,className:t,ratio:n=1})=>(0,u.jsx)(v.Root,{ratio:n,className:V(`w-full`,t),children:e});ke.displayName=`AspectRatio`;var Ae=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}));Ae.displayName=y.Root?.displayName||`Avatar`;var je=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(y.Image,{ref:n,className:V(`aspect-square h-full w-full`,e),...t}));je.displayName=y.Image?.displayName||`AvatarImage`;var Me=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}));Me.displayName=y.Fallback?.displayName||`AvatarFallback`;var Ne=(0,g.cva)(`flex-row items-center rounded-md border px-2 py-0.5`,{variants:{variant:{default:`bg-primary border-transparent`,secondary:`bg-secondary border-transparent`,destructive:`bg-destructive border-transparent`,outline:`border-border bg-transparent`}},defaultVariants:{variant:`default`}}),Pe=(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 Fe({className:e,textClassName:t,variant:n,children:r,...i}){return(0,u.jsx)(l.View,{className:V(Ne({variant:n}),e),...i,children:B(r,l.Text,{className:V(Pe({variant:n}),t)})})}var Ie=c.createContext(void 0),Le=(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-muted-foreground text-xs`,label:`text-sm font-medium`,overline:`text-muted-foreground text-xs font-semibold tracking-widest uppercase`}},defaultVariants:{variant:`body`}}),W=c.forwardRef(({className:e,variant:t=`body`,children:n,...r},i)=>{let a=c.useContext(Ie);return(0,u.jsx)(l.Text,{ref:i,className:V(Le({variant:t}),a,e),...r,children:n})});W.displayName=`Text`;var Re=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}));Re.displayName=`Breadcrumb`;var ze=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}));ze.displayName=`BreadcrumbList`;var Be=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}));Be.displayName=`BreadcrumbItem`;var Ve=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`})}));Ve.displayName=`BreadcrumbLink`;var He=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,"aria-current":`page`,className:V(`flex flex-row items-center`,e),...n,children:B(t,W,{className:`text-foreground text-sm font-normal`})}));He.displayName=`BreadcrumbPage`;var Ue=({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`})});Ue.displayName=`BreadcrumbSeparator`;var We=({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`})});We.displayName=`BreadcrumbEllipsis`;var Ge=c.forwardRef(({className:e,value:t,onChange:n,showOutsideDays:r,...i},a)=>{let[o,s]=c.useState(()=>t??new Date),[d,f]=c.useState(t);return t!==d&&(f(t),t&&s(t)),(0,u.jsx)(l.View,{ref:a,className:V(`bg-background overflow-hidden rounded-md`,e),children:(0,u.jsx)(x.default,{value:o,mode:`date`,display:`inline`,onValueChange:(e,t)=>{s(t),n&&n(e,t)},onDismiss:()=>{n&&n({type:`dismissed`},o)},...i})})});Ge.displayName=`Calendar`;var Ke=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}));Ke.displayName=`Card`;var qe=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}));qe.displayName=`CardHeader`;var Je=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}));Je.displayName=`CardTitle`;var Ye=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.Text,{ref:n,className:V(`text-muted-foreground text-sm`,e),...t}));Ye.displayName=`CardDescription`;var Xe=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`})}));Xe.displayName=`CardContent`;var Ze=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}));Ze.displayName=`CardFooter`;var Qe=c.createContext(null);function G(){let e=c.useContext(Qe);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var $e=c.forwardRef(({children:e,className:t,opts:n,orientation:r=`horizontal`,setApi:i,plugins:a,...o},s)=>{let d=c.useRef(null),[f]=c.useState(!0),[p]=c.useState(!1),[m,h]=c.useState(l.Dimensions.get(`window`).width),[g]=c.useState(0),_=c.useCallback(()=>{d.current?.scrollTo({x:(g+1)*m,animated:!0})},[g,m]),v=c.useCallback(()=>{d.current?.scrollTo({x:Math.max(0,g-1)*m,animated:!0})},[g,m]);return c.useEffect(()=>{i&&i({scrollNext:_,scrollPrev:v,canScrollNext:()=>f,canScrollPrev:()=>p,on:()=>{},off:()=>{}})},[i,_,v,f,p]),(0,u.jsx)(Qe.Provider,{value:{orientation:r,scrollRef:d,scrollNext:_,scrollPrev:v,canScrollNext:f,canScrollPrev:p,itemWidth:m,setItemWidth:h},children:(0,u.jsx)(l.View,{ref:s,className:V(`relative`,t),...o,children:e})})});$e.displayName=`Carousel`;var et=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})})});et.displayName=`CarouselContent`;var tt=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})});tt.displayName=`CarouselItem`;var nt=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})})});nt.displayName=`CarouselPrevious`;var rt=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})})});rt.displayName=`CarouselNext`;var it=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(S.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)(S.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`})})}));it.displayName=S.Root?.displayName||`Checkbox`;var at=C.Root,ot=C.Trigger,st=C.Content,K=c.forwardRef(function({children:e},t){return e}),ct=w.Root,lt=w.Trigger,ut=w.Portal,dt=w.Group,ft=w.RadioGroup,pt=w.Sub,mt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.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)})}));mt.displayName=`ContextMenuOverlay`;var ht=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(ut,{children:(0,u.jsxs)(K,{children:[(0,u.jsx)(mt,{}),(0,u.jsx)(w.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})]})}));ht.displayName=`ContextMenuContent`;var gt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(w.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)}));gt.displayName=`ContextMenuItem`;var _t=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(w.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)(w.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),B(t,W)]}));_t.displayName=`ContextMenuCheckboxItem`;var vt=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(w.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)(w.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),B(t,W)]}));vt.displayName=`ContextMenuRadioItem`;var yt=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(w.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)}));yt.displayName=`ContextMenuLabel`;var bt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(w.Separator,{ref:n,className:V(`bg-border -mx-1 my-1 h-px`,e),...t}));bt.displayName=`ContextMenuSeparator`;var xt=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:V(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});xt.displayName=`ContextMenuShortcut`;var St=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(w.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`})]}));St.displayName=`ContextMenuSubTrigger`;var Ct=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(w.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}));Ct.displayName=`ContextMenuSubContent`;var q=T.Root,wt=T.Trigger,Tt=T.Portal,Et=T.Close,Dt=c.forwardRef(({className:e,style:t,...n},r)=>(0,u.jsx)(T.Overlay,{style:[{position:l.Platform.OS===`web`?`fixed`:`absolute`,top:0,right:0,bottom:0,left:0,zIndex:50},t],asChild:!0,ref:r,...n,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`flex items-center justify-center bg-black/60 p-2 backdrop-blur-md`,e)})}));Dt.displayName=T.Overlay?.displayName||`DialogOverlay`;var J=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Tt,{hostName:n,children:[(0,u.jsx)(Dt,{className:r,style:i}),(0,u.jsx)(l.View,{pointerEvents:`box-none`,className:V(`absolute inset-0 z-50 flex items-center justify-center p-4`,l.Platform.OS===`web`&&`fixed`),children:(0,u.jsx)(T.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 w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg`,e),children:[t,(0,u.jsxs)(T.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)(W,{className:`sr-only`,children:`Close`})]})]})})})]}));J.displayName=T.Content?.displayName||`DialogContent`;var Ot=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col gap-1.5 text-center sm:text-left`,e),...t});Ot.displayName=`DialogHeader`;var kt=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t});kt.displayName=`DialogFooter`;var At=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Title,{ref:n,className:V(`native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight`,e),...t}));At.displayName=T.Title?.displayName||`DialogTitle`;var jt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Description,{ref:n,className:V(`native:text-base text-muted-foreground text-sm`,e),...t}));jt.displayName=T.Description?.displayName||`DialogDescription`;var Mt=({children:e,...t})=>(0,u.jsx)(T.Root,{...t,children:e});Mt.displayName=`Drawer`;var Nt=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(T.Trigger,{ref:r,className:t,...n,children:B(e)}));Nt.displayName=`DrawerTrigger`;var Pt=T.Portal,Ft=c.forwardRef(({className:e,style:t,...n},r)=>(0,u.jsx)(T.Overlay,{style:[{position:l.Platform.OS===`web`?`fixed`:`absolute`,top:0,right:0,bottom:0,left:0,zIndex:50},t],asChild:!0,ref:r,...n,children:(0,u.jsx)(h.default.View,{entering:h.FadeIn.duration(150),exiting:h.FadeOut.duration(150),className:V(`bg-black/80`,e)})}));Ft.displayName=`DrawerOverlay`;var It=c.forwardRef(({className:e,children:t,portalHost:n,overlayClassName:r,overlayStyle:i,...a},o)=>(0,u.jsxs)(Pt,{hostName:n,children:[(0,u.jsx)(Ft,{className:r,style:i}),(0,u.jsx)(T.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 z-50 flex h-auto flex-col rounded-t-xl border p-6 pb-10 shadow-lg`,l.Platform.OS===`web`?`fixed inset-x-0 bottom-0`:`absolute inset-x-0 bottom-0`,e),children:[(0,u.jsx)(l.View,{className:`bg-muted mx-auto mb-4 h-1.5 w-12 rounded-full`}),t]})})]}));It.displayName=`DrawerContent`;var Lt=({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)});Lt.displayName=`DrawerHeader`;var Rt=({className:e,children:t,...n})=>(0,u.jsx)(l.View,{className:V(`mt-auto flex flex-col gap-2`,e),...n,children:B(t)});Rt.displayName=`DrawerFooter`;var zt=c.forwardRef(({children:e,className:t,...n},r)=>(0,u.jsx)(T.Close,{ref:r,className:t,...n,children:B(e)}));zt.displayName=`DrawerClose`;var Bt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(T.Title,{ref:r,className:V(`text-foreground text-lg leading-none font-semibold tracking-tight`,e),...n,children:B(t)}));Bt.displayName=`DrawerTitle`;var Vt=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(T.Description,{ref:r,className:V(`text-muted-foreground text-sm`,e),...n,children:B(t)}));Vt.displayName=`DrawerDescription`;function Ht(){return typeof Event==`function`?new Event(`select`):{type:`select`}}var Ut=E.Root,Wt=E.Trigger,Gt=E.Portal,Kt=E.Group,qt=E.RadioGroup,Jt=E.Sub,Yt=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(E.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 backdrop-blur-md`,e)})}));Yt.displayName=`DropdownMenuOverlay`;var Xt=c.forwardRef(({className:e,children:t,side:n,...r},i)=>{let a=n===`left`||n===`right`?`bottom`:n;return(0,u.jsx)(Gt,{children:(0,u.jsxs)(K,{children:[(0,u.jsx)(Yt,{}),(0,u.jsx)(E.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})]})})});Xt.displayName=`DropdownMenuContent`;var Y=c.forwardRef(({className:e,children:t,inset:n,onSelect:r,...i},a)=>(0,u.jsx)(E.Item,{ref:a,onPress:()=>r?.(Ht()),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)}));Y.displayName=`DropdownMenuItem`;var Zt=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(E.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)(E.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),B(t,W)]}));Zt.displayName=`DropdownMenuCheckboxItem`;var Qt=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(E.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)(E.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),B(t,W)]}));Qt.displayName=`DropdownMenuRadioItem`;var $t=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(E.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)}));$t.displayName=`DropdownMenuLabel`;var en=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(E.Separator,{ref:n,className:V(`bg-border -mx-1 my-1 h-px`,e),...t}));en.displayName=`DropdownMenuSeparator`;var tn=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:V(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n,children:t});tn.displayName=`DropdownMenuShortcut`;var nn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsxs)(E.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`})]}));nn.displayName=`DropdownMenuSubTrigger`;var rn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(E.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}));rn.displayName=`DropdownMenuSubContent`;var an=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: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})}));an.displayName=D.Root?.displayName||`Label`;var on=ee.FormProvider,sn=c.createContext(null),cn=({...e})=>(0,u.jsx)(sn.Provider,{value:{name:e.name},children:(0,u.jsx)(ee.Controller,{...e})}),X=()=>{let e=c.useContext(sn),t=c.useContext(ln),{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}},ln=c.createContext(null),un=c.forwardRef(({className:e,...t},n)=>{let r=c.useId();return(0,u.jsx)(ln.Provider,{value:{id:r},children:(0,u.jsx)(l.View,{ref:n,className:V(`space-y-2`,e),...t})})});un.displayName=`FormItem`;var dn=c.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=X();return(0,u.jsx)(an,{ref:n,className:V(r&&`text-destructive`,e),nativeID:i,...t})});dn.displayName=`FormLabel`;var fn=c.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=X();return(0,u.jsx)(b.Slot,{ref:t,nativeID:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});fn.displayName=`FormControl`;var pn=c.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=X();return(0,u.jsx)(l.Text,{ref:n,nativeID:r,className:V(`text-muted-foreground text-[13px]`,e),...t})});pn.displayName=`FormDescription`;var mn=c.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=X(),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});mn.displayName=`FormMessage`;var hn=O.Root,gn=O.Trigger,_n=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(O.Portal,{children:(0,u.jsx)(O.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})}));_n.displayName=O.Content?.displayName||`HoverCardContent`;var vn=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}));vn.displayName=`Input`;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)(k.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})});yn.displayName=`Menubar`;var bn=k.Menu,xn=k.Portal,Sn=k.Group,Cn=k.RadioGroup,wn=k.Sub,Tn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(k.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)})}));Tn.displayName=`MenubarOverlay`;var En=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(k.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)}));En.displayName=`MenubarTrigger`;var Dn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(xn,{children:(0,u.jsxs)(K,{children:[(0,u.jsx)(Tn,{}),(0,u.jsx)(k.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})]})}));Dn.displayName=`MenubarContent`;var On=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(k.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)}));On.displayName=`MenubarItem`;var kn=c.forwardRef(({className:e,children:t,checked:n,onCheckedChange:r,...i},a)=>(0,u.jsxs)(k.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)(k.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,className:`text-foreground`})})}),B(t,W)]}));kn.displayName=`MenubarCheckboxItem`;var An=c.forwardRef(({className:e,children:t,value:n,...r},i)=>(0,u.jsxs)(k.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)(k.ItemIndicator,{children:(0,u.jsx)(m.Circle,{size:8,className:`text-foreground fill-current`})})}),B(t,W)]}));An.displayName=`MenubarRadioItem`;var jn=c.forwardRef(({className:e,children:t,inset:n,...r},i)=>(0,u.jsx)(k.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)}));jn.displayName=`MenubarLabel`;var Mn=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(k.Separator,{ref:n,className:V(`bg-border -mx-1 my-1 h-px`,e),...t}));Mn.displayName=`MenubarSeparator`;var Nn=({className:e,children:t,...n})=>(0,u.jsx)(W,{className:V(`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)(k.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`})]}));Pn.displayName=`MenubarSubTrigger`;var Fn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(k.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}));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)(A.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}));In.displayName=`NavigationMenu`;var Ln=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(A.List,{ref:r,className:V(`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)(A.Item,{ref:i,value:n||``,className:V(`relative`,e),...r,children:t}));Rn.displayName=`NavigationMenuItem`;var zn=c.forwardRef(({className:e,children:t,disabled:n,...r},i)=>(0,u.jsxs)(A.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:[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)(A.Portal,{children:(0,u.jsx)(A.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})})}));Bn.displayName=`NavigationMenuContent`;var Vn=c.forwardRef(({className:e,children:t,active:n,onSelect:r,onPress:i,href:a,...o},s)=>(0,u.jsx)(A.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}));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)(A.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})}));Hn.displayName=`NavigationMenuViewport`;var Un=c.forwardRef(({className:e,forceMount:t,...n},r)=>(0,u.jsx)(A.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`})}));Un.displayName=`NavigationMenuIndicator`;var Wn=({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});Wn.displayName=`Pagination`;var Gn=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}));Gn.displayName=`PaginationContent`;var Kn=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsx)(l.View,{ref:r,className:V(``,e),...n,children:t}));Kn.displayName=`PaginationItem`;var qn=({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});qn.displayName=`PaginationLink`;var Jn=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(qn,{"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`})]});Jn.displayName=`PaginationPrevious`;var Yn=({className:e,children:t,onPress:n,...r})=>(0,u.jsxs)(qn,{"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`})]});Yn.displayName=`PaginationNext`;var Xn=({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`})});Xn.displayName=`PaginationEllipsis`;var Zn=c.createContext({open:!1,setOpen:()=>{}}),Qn=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)(Zn.Provider,{value:{open:d,setOpen:f},children:(0,u.jsx)(l.View,{ref:i,...r,children:e})})});Qn.displayName=`Popover`;var $n=c.forwardRef(({children:e,...t},n)=>{let{setOpen:r}=c.useContext(Zn);return(0,u.jsx)(l.Pressable,{ref:n,onPress:()=>r(!0),...t,children:e})});$n.displayName=`PopoverTrigger`;var er=c.forwardRef(({...e},t)=>(0,u.jsx)(l.View,{ref:t,...e}));er.displayName=`PopoverAnchor`;var tr=c.forwardRef(({className:e,children:t,...n},r)=>{let{open:i,setOpen:a}=c.useContext(Zn);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})})})})})});tr.displayName=`PopoverContent`;var nr=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`,...n,children:(0,u.jsx)(l.View,{className:`bg-primary h-full rounded-full`,style:{width:`${t||0}%`}})}));nr.displayName=`Progress`;var rr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.Root,{className:V(`web:grid gap-2`,e),...t,ref:n}));rr.displayName=j.Root?.displayName||`RadioGroup`;var ir=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(j.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)(j.Indicator,{className:`flex items-center justify-center`,children:(0,u.jsx)(m.Circle,{className:`h-2.5 w-2.5 fill-current text-current`})})}));ir.displayName=j.Item?.displayName||`RadioGroupItem`;var ar=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})}));ar.displayName=`ScrollArea`;function or({children:e,open:t,onOpenChange:n}){let[r,i]=c.useState(!1),a=t!==void 0,o=a?t:r,s=c.useCallback(e=>{a?n?.(e):i(e)},[a,n]);return(0,u.jsx)(q,{open:o,onOpenChange:s,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=M.Root,lr=M.Group,ur=c.forwardRef(({className:e,placeholder:t,...n},r)=>(0,u.jsx)(M.Value,{ref:r,className:V(`text-foreground native:text-base text-sm`,e),placeholder:typeof t==`string`?t:``,...n}));ur.displayName=M.Value?.displayName||`SelectValue`;var dr=c.forwardRef(({className:e,children:t,...n},r)=>(0,u.jsxs)(M.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:[t,(0,u.jsx)(m.ChevronDown,{size:16,"aria-hidden":!0,className:`text-foreground opacity-50`})]}));dr.displayName=M.Trigger?.displayName||`SelectTrigger`;var fr=({className:e,...t})=>(0,u.jsx)(M.ScrollUpButton,{className:V(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronUp,{size:14,className:`text-foreground`})});fr.displayName=`SelectScrollUpButton`;var pr=({className:e,...t})=>(0,u.jsx)(M.ScrollDownButton,{className:V(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,u.jsx)(m.ChevronDown,{size:14,className:`text-foreground`})});pr.displayName=`SelectScrollDownButton`;var mr=c.forwardRef(({className:e,children:t,position:n=`popper`,portalHost:r,overlayClassName:i,overlayStyle:a,...o},s)=>{let{open:c}=M.useRootContext();return(0,u.jsx)(M.Portal,{hostName:r,children:(0,u.jsxs)(K,{children:[(0,u.jsx)(M.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)(M.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)(fr,{}),(0,u.jsx)(M.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)(pr,{})]})]})})});mr.displayName=M.Content?.displayName||`SelectContent`;var hr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(M.Label,{ref:n,className:V(`text-foreground py-1.5 pr-2 pl-8 text-sm font-semibold`,e),...t}));hr.displayName=M.Label?.displayName||`SelectLabel`;var gr=c.forwardRef(({className:e,children:t,label:n,...r},i)=>{let a=n||(typeof t==`string`?t:``);return(0,u.jsxs)(M.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)(M.ItemIndicator,{children:(0,u.jsx)(m.Check,{size:14,strokeWidth:3,className:`text-foreground`})})}),(0,u.jsx)(M.ItemText,{className:`text-foreground native:text-base text-sm`})]})});gr.displayName=M.Item?.displayName||`SelectItem`;var _r=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(M.Separator,{ref:n,className:V(`bg-muted -mx-1 my-1 h-px`,e),...t}));_r.displayName=M.Separator?.displayName||`SelectSeparator`;var vr=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.useState(()=>new l.Animated.Value(0)),[v]=c.useState(()=>new l.Animated.Value(20)),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;h?n<=e&&(p(!1),g(!1)):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`})})})})});vr.displayName=`ScrollToTop`;var yr=`https://www.buymeacoffee.com`,br=new Set([`buymeacoffee.com`,`www.buymeacoffee.com`]),xr=e=>{let t=e.trim();try{let n=new URL(t),r=n.hostname.toLowerCase();return n.protocol!==`https:`||!br.has(r)?(console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),yr):t}catch{return console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),yr}},Sr=e=>{let t=xr(e);return t.endsWith(`/`)?t.slice(0,-1):t},Cr=e=>e.trim().replace(/^@+/,``),wr=(e,t)=>`${Sr(e)}/${encodeURIComponent(Cr(t))}`;function Tr({supportUrl:e=yr,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(()=>wr(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]),C=(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`})})});return(0,u.jsxs)(u.Fragment,{children:[C,(0,u.jsx)(q,{open:y,onOpenChange:b,children:(0,u.jsxs)(J,{className:V(`max-w-sm`,f),children:[(0,u.jsxs)(Ot,{children:[(0,u.jsx)(At,{children:n}),(0,u.jsx)(jt,{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 Er=c.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,u.jsx)(N.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}));Er.displayName=N.Root?.displayName||`Separator`;var Dr=T.Root,Or=T.Trigger,kr=T.Close,Ar=T.Portal,jr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.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/60 backdrop-blur-md`,e)})}));jr.displayName=T.Overlay?.displayName||`SheetOverlay`;var Mr=c.forwardRef(({className:e,children:t,side:n=`right`,overlayClassName:r,overlayStyle:i,...a},o)=>{let s=l.Platform.OS===`web`,c,d;return s||(n===`bottom`?(c=h.SlideInDown,d=h.SlideOutDown):n===`top`?(c=h.SlideInUp,d=h.SlideOutUp):n===`left`?(c=h.SlideInLeft,d=h.SlideOutLeft):(c=h.SlideInRight,d=h.SlideOutRight)),(0,u.jsxs)(Ar,{children:[(0,u.jsx)(jr,{className:r,style:i}),(0,u.jsx)(T.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)(T.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`})]})]})})]})});Mr.displayName=T.Content?.displayName||`SheetContent`;var Nr=({className:e,...t})=>(0,u.jsx)(l.View,{className:V(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Nr.displayName=`SheetHeader`;var Pr=({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});Pr.displayName=`SheetFooter`;var Fr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Title,{ref:n,className:V(`text-foreground text-lg font-semibold`,e),...t}));Fr.displayName=T.Title?.displayName||`SheetTitle`;var Ir=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(T.Description,{ref:n,className:V(`text-muted-foreground text-sm`,e),...t}));Ir.displayName=T.Description?.displayName||`SheetDescription`;function Lr({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)},[n]);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 Rr=({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)(P.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)(P.Track,{className:`bg-secondary relative h-2 w-full grow rounded-full`,children:(0,u.jsx)(P.Range,{className:`bg-primary absolute h-full rounded-full`})}),(0,u.jsx)(P.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`})]})};Rr.displayName=`Slider`;var zr=c.forwardRef(({className:e,checked:t,onCheckedChange:n,...r},i)=>{let a=t??!1,o={dataSet:{state:a?`checked`:`unchecked`}};return(0,u.jsx)(F.Root,{ref:i,checked:a,onCheckedChange:n||(()=>{}),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`,a?`bg-primary`:`bg-input`,e),...r,...o,children:(0,u.jsx)(F.Thumb,{...o,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-[18px] data-[state=unchecked]:translate-x-0`,a?`translate-x-[18px]`:`translate-x-0`)})})});zr.displayName=F.Root.displayName;var Br=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(l.View,{ref:n,className:V(`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:V(`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:V(`flex-1`,e),...t}));Hr.displayName=`TableBody`;var Ur=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}));Ur.displayName=`TableFooter`;var Wr=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}));Wr.displayName=`TableRow`;var Gr=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}));Gr.displayName=`TableHead`;var Kr=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}));Kr.displayName=`TableCell`;var qr=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(W,{ref:n,className:V(`text-muted-foreground mt-4 text-sm`,e),...t}));qr.displayName=`TableCaption`;var Jr=c.forwardRef(({value:e,defaultValue:t,onValueChange:n,...r},i)=>{let[a,o]=c.useState(t??``),s=e??a;return(0,u.jsx)(I.Root,{ref:i,value:s,onValueChange:e=>{o(e),n?.(e)},...r})});Jr.displayName=`Tabs`;var Yr=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}));Yr.displayName=I.List?.displayName||`TabsList`;var Xr=c.forwardRef(({className:e,...t},n)=>{let{value:r}=I.useRootContext();return(0,u.jsx)(Ie.Provider,{value:V(`native:text-base text-muted-foreground web:transition-all text-sm font-medium`,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})})});Xr.displayName=I.Trigger?.displayName||`TabsTrigger`;var Zr=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}));Zr.displayName=I.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: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}));Qr.displayName=`Textarea`;var $r=(0,g.cva)(`hover:bg-muted hover:text-foreground focus-visible:ring-ring data-[state=on]:bg-muted data-[state=on]:border-primary data-[state=on]:text-primary inline-flex items-center justify-center gap-2 rounded-md border border-transparent text-sm font-medium transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,outline:`border-input hover:bg-muted hover:text-foreground border bg-transparent shadow-sm`},size:{default:`h-9 min-w-9 px-2`,sm:`h-8 min-w-8 px-1.5`,lg:`h-10 min-w-10 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}}),ei=c.forwardRef(({className:e,variant:t,size:n,...r},i)=>{let a=r.pressed||!1,o=a?`on`:`off`;return(0,u.jsx)(Ie.Provider,{value:V(`native:text-base text-foreground text-sm font-medium`,a&&`text-primary`),children:(0,u.jsx)(te.Root,{ref:i,className:V($r({variant:t,size:n}),a&&`bg-muted border-primary`,e),...r,pressed:a,onPressedChange:r.onPressedChange||(()=>{}),dataSet:{state:o}})})});ei.displayName=te.Root?.displayName||`Toggle`;var ti=c.createContext({size:`default`,variant:`default`}),ni=c.forwardRef(({className:e,variant:t,size:n,children:r,type:i,value:a,onValueChange:o,...s},c)=>(0,u.jsx)(L.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)(ti.Provider,{value:{variant:t,size:n,type:i,value:a},children:r})}));ni.displayName=L.Root?.displayName||`ToggleGroup`;var ri=c.forwardRef(({className:e,children:t,variant:n,size:r,value:i,...a},o)=>{let s=c.useContext(ti),l=s.type===`multiple`?Array.isArray(s.value)&&s.value.includes(i):s.value===i,d=l?`on`:`off`;return(0,u.jsx)(Ie.Provider,{value:V(`native:text-base text-foreground text-sm font-medium`,a.disabled&&`web:cursor-not-allowed opacity-50`,l&&`text-primary`),children:(0,u.jsx)(L.Item,{ref:o,value:i,className:V($r({variant:s.variant||n,size:s.size||r}),l&&`bg-muted border-primary`,e),...a,dataSet:{state:d},children:t})})});ri.displayName=L.Item?.displayName||`ToggleGroupItem`;var ii=R.Root,ai=R.Trigger,oi=c.forwardRef(({className:e,portalHost:t,...n},r)=>(0,u.jsx)(R.Portal,{hostName:t,children:(0,u.jsx)(R.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})})})}));oi.displayName=R.Content?.displayName||`TooltipContent`;var si=({children:e})=>e,ci=5,li=1e6,Z={ADD_TOAST:`ADD_TOAST`,UPDATE_TOAST:`UPDATE_TOAST`,DISMISS_TOAST:`DISMISS_TOAST`,REMOVE_TOAST:`REMOVE_TOAST`},ui=0;function di(){return ui=(ui+1)%(2**53-1),ui.toString()}var fi=new Map,pi=e=>{if(fi.has(e))return;let t=setTimeout(()=>{fi.delete(e),Q({type:`REMOVE_TOAST`,toastId:e})},li);fi.set(e,t)},mi=(e,t)=>{switch(t.type){case Z.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,ci)};case Z.UPDATE_TOAST:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case Z.DISMISS_TOAST:{let{toastId:n}=t;return n?pi(n):e.toasts.forEach(e=>{pi(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case Z.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},hi=[],gi={toasts:[]};function Q(e){gi=mi(gi,e),hi.forEach(e=>{e(gi)})}function _i({...e}){let t=di(),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 vi(){let[e,t]=c.useState(gi);return c.useEffect(()=>(hi.push(t),()=>{let e=hi.indexOf(t);e>-1&&hi.splice(e,1)}),[]),{...e,toast:_i,dismiss:e=>Q({type:`DISMISS_TOAST`,toastId:e})}}var yi=({children:e})=>e,bi=c.forwardRef(({className:e,variant:t=`default`,...n},r)=>(0,u.jsx)(z.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})}));bi.displayName=z.Root?.displayName||`Toast`;var xi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.Title,{ref:n,className:V(`text-foreground text-sm font-semibold`,e),...t}));xi.displayName=z.Title?.displayName||`ToastTitle`;var Si=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.Description,{ref:n,className:V(`text-muted-foreground text-sm opacity-90`,e),...t}));Si.displayName=z.Description?.displayName||`ToastDescription`;var Ci=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.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`})}));Ci.displayName=z.Close?.displayName||`ToastClose`;var wi=c.forwardRef(({className:e,...t},n)=>(0,u.jsx)(z.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}));wi.displayName=z.Action?.displayName||`ToastAction`;var Ti=c.createContext(null);function Ei({children:e,className:t,style:n,value:r,...i}){let a=(0,l.useColorScheme)(),o=r||`system`,s=o===`system`?a===`dark`?`dark`:`light`:o,d=s===`dark`?ne.theme.dark:ne.theme.light,f=s===`dark`;c.useEffect(()=>{typeof document<`u`&&(document.documentElement.classList.toggle(`dark`,f),document.body&&document.body.classList.toggle(`dark`,f));try{o===`system`?l.Appearance.setColorScheme(`unspecified`):l.Appearance.setColorScheme(f?`dark`:`light`)}catch{}},[o,f]);let p=c.useMemo(()=>({theme:o,resolvedTheme:s,tokens:d}),[o,s,d]);return(0,u.jsx)(Ti.Provider,{value:p,children:(0,u.jsx)(l.View,{className:V(`flex-1`,f?`dark`:``,t),style:[{backgroundColor:d.background},n],...i,children:e})})}function Di(){let e=c.useContext(Ti),t=(0,l.useColorScheme)();if(e)return e;let n=t;return{theme:t,resolvedTheme:n,tokens:n===`dark`?ne.theme.dark:ne.theme.light}}function Oi(e){(0,re.cssInterop)(e,{className:{target:`style`,nativeStyleToProp:{color:!0,opacity:!0}}})}Oi(m.Sun),Oi(m.Moon),Oi(m.SunMoon);function ki({isDark:e,isSystem:t,foreground:n}){return(0,u.jsxs)(l.View,{className:`flex h-6 w-6 items-center justify-center`,children:[(0,u.jsx)(l.View,{className:V(`items-center justify-center transition-all`,!t&&!e?`rotate-0 opacity-100`:`absolute -rotate-90 opacity-0`),children:(0,u.jsx)(m.Sun,{size:18,color:n})}),(0,u.jsx)(l.View,{className:V(`items-center justify-center transition-all`,!t&&e?`rotate-0 opacity-100`:`absolute rotate-90 opacity-0`),children:(0,u.jsx)(m.Moon,{size:18,color:n})}),(0,u.jsx)(l.View,{className:V(`items-center justify-center transition-all`,t?`rotate-0 opacity-100`:`absolute rotate-90 opacity-0`),children:(0,u.jsx)(m.SunMoon,{size:18,color:n})})]})}function Ai({variant:e=`binary`,onThemeChange:t,customTheme:n,className:r}){let{theme:i,resolvedTheme:a,tokens:o}=Di(),s=n??i,c=(n===`system`||!n?a:n)===`dark`,d=s===`system`,f=e=>{t?t(e):e===`system`?l.Appearance.setColorScheme(`unspecified`):l.Appearance.setColorScheme(e)};return e===`ternary`?(0,u.jsxs)(Ut,{children:[(0,u.jsx)(Wt,{className:V(`relative h-9 w-9 flex-row items-center justify-center rounded-md bg-transparent transition-colors active:opacity-80`,r),children:(0,u.jsx)(ki,{isDark:c,isSystem:d,foreground:o.foreground})}),(0,u.jsxs)(Xt,{align:`end`,children:[(0,u.jsxs)(Y,{onSelect:()=>f(`light`),children:[(0,u.jsx)(m.Sun,{size:14,color:o.foreground,className:`mr-2`}),(0,u.jsx)(W,{children:`Light`})]}),(0,u.jsxs)(Y,{onSelect:()=>f(`dark`),children:[(0,u.jsx)(m.Moon,{size:14,color:o.foreground,className:`mr-2`}),(0,u.jsx)(W,{children:`Dark`})]}),(0,u.jsxs)(Y,{onSelect:()=>f(`system`),children:[(0,u.jsx)(m.SunMoon,{size:14,color:o.foreground,className:`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)(ki,{isDark:c,isSystem:d,foreground:o.foreground})})}var ji=()=>{let{toasts:e}=vi();return(0,u.jsx)(yi,{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)(bi,{...i,className:`pointer-events-auto`,children:[(0,u.jsxs)(l.View,{className:`flex flex-1 flex-col gap-1`,children:[t&&(0,u.jsx)(xi,{children:t}),n&&(0,u.jsx)(Si,{children:n})]}),r,(0,u.jsx)(Ci,{})]},e))})})},Mi=c.createContext(void 0);function Ni(){let e=c.useContext(Mi);if(!e)throw Error(`useTOC must be used within a TableOfContents provider`);return e}function Pi({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}]).toSorted((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)(Mi.Provider,{value:h,children:(0,u.jsx)(l.View,{className:`flex-1`,children:e})})}function Fi({children:e,level:t=2,id:n,className:r}){let{registerHeading:i,unregisterHeading:a}=Ni(),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 Ii({className:e}){let{headings:t,activeId:n,scrollToHeading:r}=Ni(),i=c.useMemo(()=>t.length===0?0:Math.min(...t.map(e=>e.level)),[t]);return t.length===0?null:(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,a=(e.level-i)*16;return(0,u.jsx)(l.TouchableOpacity,{onPress:()=>r(e.id),style:{paddingLeft:a},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 Li({children:e,className:t}){let{scrollViewRef:n,onScroll:r}=Ni();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})}Pi.List=Ii,Pi.Content=Li,Pi.Heading=Fi;var Ri=(0,g.cva)(`flex w-fit items-stretch`,{variants:{orientation:{horizontal:`flex-row`,vertical:`flex-col`}},defaultVariants:{orientation:`horizontal`}});function zi({className:e,orientation:t=`horizontal`,...n}){return(0,u.jsx)(l.View,{className:V(Ri({orientation:t}),e),...n})}function Bi({className:e,asChild:t,...n}){return(0,u.jsx)(l.Text,{className:V(`bg-muted text-foreground rounded-lg border px-2.5 text-sm font-medium`,e),...n})}function Vi({className:e,orientation:t=`vertical`,...n}){return(0,u.jsx)(Er,{orientation:t,className:V(`bg-border`,e),...n})}function Hi({children:e}){return e}function Ui(){return`ltr`}function Wi({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`border-border flex w-full items-center justify-center rounded-xl border-2 border-dashed p-6`,e),...t})}function Gi({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-col items-center gap-2`,e),...t})}function Ki({className:e,variant:t,...n}){return(0,u.jsx)(l.View,{className:V(`flex items-center justify-center`,e),...n})}function qi({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`text-foreground text-lg font-semibold`,e),...t})}function Ji({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`text-muted-foreground text-center text-sm`,e),...t})}function Yi({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`mt-4 flex flex-col items-center gap-2`,e),...t})}function Xi({className:e,...t}){return(0,u.jsx)(l.ActivityIndicator,{size:`small`,...t})}function Zi({className:e,orientation:t,...n}){return(0,u.jsx)(l.View,{className:V(`flex flex-col gap-2`,e),...n})}function Qi({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-col`,e),...t})}function $i({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`text-muted-foreground text-sm`,e),...t})}function ea({className:e,errors:t,children:n,...r}){let i=n||t&&t[0]?.message;return i?(0,u.jsx)(l.Text,{className:V(`text-destructive text-sm`,e),...r,children:i}):null}function ta({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-col gap-4`,e),...t})}function na({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`text-sm font-medium`,e),...t})}function ra({className:e,variant:t,...n}){return(0,u.jsx)(l.Text,{className:V(`font-medium`,t===`label`?`text-sm`:`text-base`,e),...n})}function ia({className:e,children:t,...n}){return(0,u.jsx)(l.View,{className:V(`bg-border my-2 h-px`,e),...n,children:t?(0,u.jsx)(l.Text,{className:`bg-background absolute px-2 text-xs`,children:t}):null})}function aa({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-col gap-4`,e),...t})}function oa({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`text-sm font-medium`,e),...t})}function sa({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`border-input flex flex-row items-center rounded-md border`,e),...t})}function ca({className:e,align:t,...n}){return(0,u.jsx)(l.View,{className:V(`p-2`,e),...n})}function la({className:e,type:t,variant:n,size:r,...i}){return(0,u.jsx)(U,{variant:n,size:r,className:e,...i})}function ua({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`text-muted-foreground text-sm`,e),...t})}function da({className:e,...t}){return(0,u.jsx)(l.TextInput,{className:V(`text-foreground flex-1 px-3 py-2`,e),...t})}function fa({className:e,...t}){return(0,u.jsx)(l.TextInput,{multiline:!0,className:V(`text-foreground flex-1 px-3 py-2`,e),...t})}function pa({className:e,...t}){return(0,u.jsx)(l.Text,{className:V(`bg-muted text-muted-foreground rounded-sm px-1 font-mono text-xs`,e),...t})}function ma({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-row items-center gap-1`,e),...t})}function ha({className:e,variant:t,size:n,...r}){return(0,u.jsx)(l.View,{className:V(`flex flex-row flex-wrap items-center gap-2 rounded-lg border p-3`,e),...r})}function ga({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-row items-center gap-2`,e),...t})}function _a({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-1 flex-col gap-1`,e),...t})}function va({className:e,...t}){return(0,u.jsx)(W,{variant:`bodySmall`,className:V(`text-muted-foreground`,e),...t})}function ya({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex w-full flex-row items-center justify-between gap-2`,e),...t})}function ba({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-col gap-4`,e),...t})}function xa({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex w-full flex-row items-center justify-between gap-2`,e),...t})}function Sa({className:e,variant:t,...n}){return(0,u.jsx)(l.View,{className:V(`flex shrink-0 items-center justify-center gap-2`,e),...n})}function Ca({className:e,orientation:t,...n}){return(0,u.jsx)(l.View,{className:V(`bg-border my-2 h-px w-full`,e),...n})}function wa({className:e,...t}){return(0,u.jsx)(W,{variant:`bodySmall`,className:V(`font-medium`,e),...t})}var Ta=c.createContext(null);function $(){let e=c.useContext(Ta);if(!e)throw Error(`Combobox components must be rendered within a Combobox provider`);return e}function Ea({className:e,value:t,onValueChange:n,...r}){let[i,a]=c.useState(!1),[o,s]=c.useState(t||``),[d,f]=c.useState(``),p=t===void 0?o:t;return(0,u.jsx)(Ta.Provider,{value:{open:i,setOpen:a,value:p,setValue:e=>{s(e),n?.(e),a(!1)},searchQuery:d,setSearchQuery:f},children:(0,u.jsx)(q,{open:i,onOpenChange:a,children:(0,u.jsx)(l.View,{className:V(`relative`,e),...r})})})}function Da({className:e,children:t,...n}){let{value:r}=$();return(0,u.jsx)(l.View,{className:e,...n,children:(0,u.jsx)(W,{className:`text-sm`,children:t||r||`Select an item...`})})}function Oa({className:e,children:t,...n}){return(0,u.jsx)(wt,{asChild:!0,children:(0,u.jsxs)(l.Pressable,{className:V(`border-input bg-background text-foreground flex h-10 w-full flex-row items-center justify-between rounded-md border px-3 py-2 text-sm`,e),...n,children:[(0,u.jsx)(l.View,{className:`flex-1 flex-row items-center`,children:B(t,W)}),(0,u.jsx)(m.ChevronDown,{size:16,className:`text-muted-foreground opacity-50`})]})})}function ka({className:e,children:t,...n}){let{setValue:r}=$();return(0,u.jsx)(l.Pressable,{className:V(`flex items-center justify-center p-1`,e),onPress:()=>r(``),...n,children:t||(0,u.jsx)(m.X,{size:14,className:`text-muted-foreground`})})}function Aa({className:e,showClear:t,showTrigger:n,placeholder:r=`Search...`,...i}){let{searchQuery:a,setSearchQuery:o}=$();return(0,u.jsx)(l.View,{className:`border-border flex flex-row items-center border-b px-3`,children:(0,u.jsx)(l.TextInput,{className:V(`flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-none`,e),placeholder:r,placeholderTextColor:`#a1a1aa`,value:a,onChangeText:o,...i})})}function ja({className:e,side:t,sideOffset:n,align:r,alignOffset:i,anchor:a,...o}){return(0,u.jsx)(J,{className:`p-0`,children:(0,u.jsx)(l.View,{className:V(`bg-popover flex max-h-96 w-full flex-col overflow-hidden rounded-md`,e),...o})})}function Ma({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`max-h-[300px] overflow-hidden`,e),...t})}function Na({className:e,children:t,value:n,...r}){let{value:i,setValue:a,searchQuery:o}=$(),s=c.Children.toArray(t).join(``).toLowerCase();if(o&&!s.includes(o.toLowerCase())&&!n.toLowerCase().includes(o.toLowerCase()))return null;let d=i===n;return(0,u.jsxs)(l.Pressable,{className:V(`active:bg-accent relative flex w-full flex-row items-center rounded-sm py-2.5 pr-8 pl-2 text-sm outline-none`,d&&`bg-accent`,e),onPress:()=>a(n),...r,children:[(0,u.jsx)(l.View,{className:`flex-1`,children:B(t,W,{className:d?`font-semibold`:``})}),d&&(0,u.jsx)(l.View,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,u.jsx)(m.Check,{size:16,className:`text-foreground`})})]})}function Pa({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`text-foreground overflow-hidden p-1`,e),...t})}function Fa({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`text-muted-foreground px-2 py-1.5 text-xs font-semibold`,e),...t})}function Ia({className:e,...t}){return(0,u.jsx)(l.View,{className:e,...t})}function La({className:e,children:t,...n}){let{searchQuery:r}=$();return r?(0,u.jsx)(l.View,{className:V(`py-6 text-center text-sm`,e),...n,children:(0,u.jsx)(W,{className:`text-muted-foreground text-center`,children:t||`No results found.`})}):null}function Ra({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`bg-muted -mx-1 h-px`,e),...t})}function za({className:e,...t}){return(0,u.jsx)(l.View,{className:V(`flex flex-row flex-wrap gap-1`,e),...t})}function Ba({className:e,showRemove:t,children:n,...r}){return(0,u.jsxs)(l.View,{className:V(`bg-secondary text-secondary-foreground flex flex-row items-center rounded-md px-2 py-1`,e),...r,children:[B(n,W,{className:`text-xs`}),t&&(0,u.jsx)(m.X,{size:12,className:`ml-1 opacity-50`})]})}function Va({className:e,...t}){return(0,u.jsx)(l.TextInput,{className:V(`flex-1 bg-transparent px-2 py-1 outline-none`,e),...t})}function Ha(){return c.useRef(null)}exports.Accordion=ae,exports.AccordionContent=le,exports.AccordionItem=oe,exports.AccordionTrigger=ce,exports.Alert=de,exports.AlertDescription=pe,exports.AlertDialog=ve,exports.AlertDialogAction=De,exports.AlertDialogCancel=Oe,exports.AlertDialogContent=Se,exports.AlertDialogDescription=Ee,exports.AlertDialogFooter=we,exports.AlertDialogHeader=Ce,exports.AlertDialogOverlay=xe,exports.AlertDialogPortal=be,exports.AlertDialogTitle=Te,exports.AlertDialogTrigger=ye,exports.AlertTitle=fe,exports.AspectRatio=ke,exports.Avatar=Ae,exports.AvatarFallback=Me,exports.AvatarImage=je,exports.Badge=Fe,exports.Breadcrumb=Re,exports.BreadcrumbEllipsis=We,exports.BreadcrumbItem=Be,exports.BreadcrumbLink=Ve,exports.BreadcrumbList=ze,exports.BreadcrumbPage=He,exports.BreadcrumbSeparator=Ue,exports.Button=U,exports.ButtonGroup=zi,exports.ButtonGroupSeparator=Vi,exports.ButtonGroupText=Bi,exports.Calendar=Ge,exports.Card=Ke,exports.CardContent=Xe,exports.CardDescription=Ye,exports.CardFooter=Ze,exports.CardHeader=qe,exports.CardTitle=Je,exports.Carousel=$e,exports.CarouselContent=et,exports.CarouselItem=tt,exports.CarouselNext=rt,exports.CarouselPrevious=nt,exports.Checkbox=it,exports.Collapsible=at,exports.CollapsibleContent=st,exports.CollapsibleTrigger=ot,exports.Combobox=Ea,exports.ComboboxChip=Ba,exports.ComboboxChips=za,exports.ComboboxChipsInput=Va,exports.ComboboxClear=ka,exports.ComboboxCollection=Ia,exports.ComboboxContent=ja,exports.ComboboxEmpty=La,exports.ComboboxGroup=Pa,exports.ComboboxInput=Aa,exports.ComboboxItem=Na,exports.ComboboxLabel=Fa,exports.ComboboxList=Ma,exports.ComboboxSeparator=Ra,exports.ComboboxTrigger=Oa,exports.ComboboxValue=Da,exports.ContextMenu=ct,exports.ContextMenuCheckboxItem=_t,exports.ContextMenuContent=ht,exports.ContextMenuGroup=dt,exports.ContextMenuItem=gt,exports.ContextMenuLabel=yt,exports.ContextMenuPortal=ut,exports.ContextMenuRadioGroup=ft,exports.ContextMenuRadioItem=vt,exports.ContextMenuSeparator=bt,exports.ContextMenuShortcut=xt,exports.ContextMenuSub=pt,exports.ContextMenuSubContent=Ct,exports.ContextMenuSubTrigger=St,exports.ContextMenuTrigger=lt,exports.Dialog=q,exports.DialogClose=Et,exports.DialogContent=J,exports.DialogDescription=jt,exports.DialogFooter=kt,exports.DialogHeader=Ot,exports.DialogTitle=At,exports.DialogTrigger=wt,exports.DirectionProvider=Hi,exports.Drawer=Mt,exports.DrawerClose=zt,exports.DrawerContent=It,exports.DrawerDescription=Vt,exports.DrawerFooter=Rt,exports.DrawerHeader=Lt,exports.DrawerOverlay=Ft,exports.DrawerPortal=Pt,exports.DrawerTitle=Bt,exports.DrawerTrigger=Nt,exports.DropdownMenu=Ut,exports.DropdownMenuCheckboxItem=Zt,exports.DropdownMenuContent=Xt,exports.DropdownMenuGroup=Kt,exports.DropdownMenuItem=Y,exports.DropdownMenuLabel=$t,exports.DropdownMenuPortal=Gt,exports.DropdownMenuRadioGroup=qt,exports.DropdownMenuRadioItem=Qt,exports.DropdownMenuSeparator=en,exports.DropdownMenuShortcut=tn,exports.DropdownMenuSub=Jt,exports.DropdownMenuSubContent=rn,exports.DropdownMenuSubTrigger=nn,exports.DropdownMenuTrigger=Wt,exports.Empty=Wi,exports.EmptyContent=Yi,exports.EmptyDescription=Ji,exports.EmptyHeader=Gi,exports.EmptyMedia=Ki,exports.EmptyTitle=qi,exports.Field=Zi,exports.FieldContent=Qi,exports.FieldDescription=$i,exports.FieldError=ea,exports.FieldGroup=ta,exports.FieldLabel=na,exports.FieldLegend=ra,exports.FieldSeparator=ia,exports.FieldSet=aa,exports.FieldTitle=oa,exports.Form=on,exports.FormControl=fn,exports.FormDescription=pn,exports.FormField=cn,exports.FormItem=un,exports.FormLabel=dn,exports.FormMessage=mn,exports.HoverCard=hn,exports.HoverCardContent=_n,exports.HoverCardTrigger=gn,exports.Input=vn,exports.InputGroup=sa,exports.InputGroupAddon=ca,exports.InputGroupButton=la,exports.InputGroupInput=da,exports.InputGroupText=ua,exports.InputGroupTextarea=fa,exports.Item=ha,exports.ItemActions=ga,exports.ItemContent=_a,exports.ItemDescription=va,exports.ItemFooter=ya,exports.ItemGroup=ba,exports.ItemHeader=xa,exports.ItemMedia=Sa,exports.ItemSeparator=Ca,exports.ItemTitle=wa,exports.Kbd=pa,exports.KbdGroup=ma,exports.Label=an,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=Xn,exports.PaginationItem=Kn,exports.PaginationLink=qn,exports.PaginationNext=Yn,exports.PaginationPrevious=Jn,exports.Popover=Qn,exports.PopoverAnchor=er,exports.PopoverContent=tr,exports.PopoverTrigger=$n,exports.Progress=nr,exports.RadioGroup=rr,exports.RadioGroupItem=ir,exports.ScrollArea=ar,exports.ScrollToTop=vr,exports.Search=or,exports.Select=cr,exports.SelectContent=mr,exports.SelectGroup=lr,exports.SelectItem=gr,exports.SelectLabel=hr,exports.SelectScrollDownButton=pr,exports.SelectScrollUpButton=fr,exports.SelectSeparator=_r,exports.SelectTrigger=dr,exports.SelectValue=ur,exports.Separator=Er,exports.Sheet=Dr,exports.SheetClose=kr,exports.SheetContent=Mr,exports.SheetDescription=Ir,exports.SheetFooter=Pr,exports.SheetHeader=Nr,exports.SheetOverlay=jr,exports.SheetPortal=Ar,exports.SheetTitle=Fr,exports.SheetTrigger=Or,exports.Skeleton=Lr,exports.Slider=Rr,exports.Spinner=Xi,exports.SupportFab=Tr,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=Pi,exports.TableOfContentsContent=Li,exports.TableOfContentsHeading=Fi,exports.TableOfContentsList=Ii,exports.TableRow=Wr,exports.Tabs=Jr,exports.TabsContent=Zr,exports.TabsList=Yr,exports.TabsTrigger=Xr,exports.Text=W,exports.Textarea=Qr,exports.ThemeProvider=Ei,exports.ThemeToggle=Ai,exports.Toast=bi,exports.Toaster=ji,exports.Toggle=ei,exports.ToggleGroup=ni,exports.ToggleGroupItem=ri,exports.Tooltip=ii,exports.TooltipContent=oi,exports.TooltipProvider=si,exports.TooltipTrigger=ai,exports.badgeVariants=Ne,exports.buttonGroupVariants=Ri,exports.buttonVariants=H,exports.cn=V,exports.textVariants=Le,exports.toast=_i,exports.toggleVariants=$r,exports.useComboboxAnchor=Ha,exports.useDirection=Ui,exports.useFormField=X,exports.useTheme=Di,exports.useToast=vi,exports.wrapTextChildren=B;
|