@chaibuilder/sdk 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,821 @@
1
+ import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import * as g from "@radix-ui/react-accordion";
4
+ import { ChevronDownIcon as $, Cross2Icon as D, MagnifyingGlassIcon as B, ChevronRightIcon as E, CheckIcon as q, DotFilledIcon as J } from "@radix-ui/react-icons";
5
+ import { cva as h } from "class-variance-authority";
6
+ import * as m from "@radix-ui/react-alert-dialog";
7
+ import { Slot as T } from "@radix-ui/react-slot";
8
+ import * as y from "@radix-ui/react-avatar";
9
+ import { Command as c } from "cmdk";
10
+ import * as n from "@radix-ui/react-dialog";
11
+ import * as l from "@radix-ui/react-dropdown-menu";
12
+ import { FormProvider as K, Controller as Q, useFormContext as U } from "react-hook-form";
13
+ import * as I from "@radix-ui/react-label";
14
+ import * as v from "@radix-ui/react-hover-card";
15
+ import * as x from "@radix-ui/react-popover";
16
+ import * as u from "@radix-ui/react-scroll-area";
17
+ import * as S from "@radix-ui/react-separator";
18
+ import { useTheme as W } from "next-themes";
19
+ import { Toaster as X } from "sonner";
20
+ import * as R from "@radix-ui/react-switch";
21
+ import * as b from "@radix-ui/react-tabs";
22
+ import * as N from "@radix-ui/react-tooltip";
23
+ import { clsx as Y } from "clsx";
24
+ import { twMerge as Z } from "tailwind-merge";
25
+ const s = (...e) => Z(Y(e)), ka = g.Root, ee = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(g.Item, { ref: t, className: s("border-b", e), ...a }));
26
+ ee.displayName = "AccordionItem";
27
+ const ae = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o(g.Header, { className: "flex", children: /* @__PURE__ */ f(
28
+ g.Trigger,
29
+ {
30
+ ref: d,
31
+ className: s(
32
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
33
+ e
34
+ ),
35
+ ...t,
36
+ children: [
37
+ a,
38
+ t.hideArrow ? null : /* @__PURE__ */ o($, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
39
+ ]
40
+ }
41
+ ) }));
42
+ ae.displayName = g.Trigger.displayName;
43
+ const te = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o(
44
+ g.Content,
45
+ {
46
+ ref: d,
47
+ className: s(
48
+ "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
49
+ e
50
+ ),
51
+ ...t,
52
+ children: /* @__PURE__ */ o("div", { className: "pb-4 pt-0", children: a })
53
+ }
54
+ ));
55
+ te.displayName = g.Content.displayName;
56
+ const oe = h(
57
+ "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
58
+ {
59
+ variants: {
60
+ variant: {
61
+ default: "bg-background text-foreground",
62
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
63
+ }
64
+ },
65
+ defaultVariants: {
66
+ variant: "default"
67
+ }
68
+ }
69
+ ), se = r.forwardRef(({ className: e, variant: a, ...t }, d) => /* @__PURE__ */ o("div", { ref: d, role: "alert", className: s(oe({ variant: a }), e), ...t }));
70
+ se.displayName = "Alert";
71
+ const re = r.forwardRef(
72
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
73
+ );
74
+ re.displayName = "AlertTitle";
75
+ const de = r.forwardRef(
76
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm [&_p]:leading-relaxed", e), ...a })
77
+ );
78
+ de.displayName = "AlertDescription";
79
+ const k = h(
80
+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
81
+ {
82
+ variants: {
83
+ variant: {
84
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
85
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
86
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
87
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
88
+ ghost: "hover:bg-accent hover:text-accent-foreground",
89
+ link: "text-primary underline-offset-4 hover:underline"
90
+ },
91
+ size: {
92
+ default: "h-9 px-4 py-2",
93
+ sm: "h-8 rounded-md px-3 text-xs",
94
+ lg: "h-10 rounded-md px-8",
95
+ icon: "h-9 w-9"
96
+ }
97
+ },
98
+ defaultVariants: {
99
+ variant: "default",
100
+ size: "default"
101
+ }
102
+ }
103
+ ), ne = r.forwardRef(
104
+ ({ className: e, variant: a, size: t, asChild: d = !1, ...i }, p) => /* @__PURE__ */ o(d ? T : "button", { className: s(k({ variant: a, size: t, className: e })), ref: p, ...i })
105
+ );
106
+ ne.displayName = "Button";
107
+ const Da = m.Root, Ta = m.Trigger, A = ({ className: e, ...a }) => /* @__PURE__ */ o(m.Portal, { className: s(e), ...a });
108
+ A.displayName = m.Portal.displayName;
109
+ const F = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
110
+ m.Overlay,
111
+ {
112
+ className: s(
113
+ "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
114
+ e
115
+ ),
116
+ ...a,
117
+ ref: t
118
+ }
119
+ ));
120
+ F.displayName = m.Overlay.displayName;
121
+ const ie = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ f(A, { children: [
122
+ /* @__PURE__ */ o(F, {}),
123
+ /* @__PURE__ */ o(
124
+ m.Content,
125
+ {
126
+ ref: t,
127
+ className: s(
128
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
129
+ e
130
+ ),
131
+ ...a
132
+ }
133
+ )
134
+ ] }));
135
+ ie.displayName = m.Content.displayName;
136
+ const le = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
137
+ le.displayName = "AlertDialogHeader";
138
+ const me = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
139
+ me.displayName = "AlertDialogFooter";
140
+ const ce = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(m.Title, { ref: t, className: s("text-lg font-semibold", e), ...a }));
141
+ ce.displayName = m.Title.displayName;
142
+ const fe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(m.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
143
+ fe.displayName = m.Description.displayName;
144
+ const pe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(m.Action, { ref: t, className: s(k(), e), ...a }));
145
+ pe.displayName = m.Action.displayName;
146
+ const ue = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
147
+ m.Cancel,
148
+ {
149
+ ref: t,
150
+ className: s(k({ variant: "outline" }), "mt-2 sm:mt-0", e),
151
+ ...a
152
+ }
153
+ ));
154
+ ue.displayName = m.Cancel.displayName;
155
+ const ge = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
156
+ y.Root,
157
+ {
158
+ ref: t,
159
+ className: s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
160
+ ...a
161
+ }
162
+ ));
163
+ ge.displayName = y.Root.displayName;
164
+ const be = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(y.Image, { ref: t, className: s("aspect-square h-full w-full", e), ...a }));
165
+ be.displayName = y.Image.displayName;
166
+ const ye = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
167
+ y.Fallback,
168
+ {
169
+ ref: t,
170
+ className: s("flex h-full w-full items-center justify-center rounded-full bg-muted", e),
171
+ ...a
172
+ }
173
+ ));
174
+ ye.displayName = y.Fallback.displayName;
175
+ const Ne = h(
176
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
177
+ {
178
+ variants: {
179
+ variant: {
180
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
181
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
182
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
183
+ outline: "text-foreground"
184
+ }
185
+ },
186
+ defaultVariants: {
187
+ variant: "default"
188
+ }
189
+ }
190
+ ), Ia = ({ className: e, variant: a, ...t }) => /* @__PURE__ */ o("div", { className: s(Ne({ variant: a }), e), ...t }), xe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", e), ...a }));
191
+ xe.displayName = "Card";
192
+ const he = r.forwardRef(
193
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", e), ...a })
194
+ );
195
+ he.displayName = "CardHeader";
196
+ const ve = r.forwardRef(
197
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("h3", { ref: t, className: s("font-semibold leading-none tracking-tight", e), ...a })
198
+ );
199
+ ve.displayName = "CardTitle";
200
+ const we = r.forwardRef(
201
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("p", { ref: t, className: s("text-sm text-muted-foreground", e), ...a })
202
+ );
203
+ we.displayName = "CardDescription";
204
+ const Ce = r.forwardRef(
205
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("p-6 pt-0", e), ...a })
206
+ );
207
+ Ce.displayName = "CardContent";
208
+ const Re = r.forwardRef(
209
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s(" flex items-center p-6 pt-0", e), ...a })
210
+ );
211
+ Re.displayName = "CardFooter";
212
+ const ke = n.Root, Sa = n.Trigger, P = ({ className: e, ...a }) => /* @__PURE__ */ o(n.Portal, { className: s(e), ...a });
213
+ P.displayName = n.Portal.displayName;
214
+ const z = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
215
+ n.Overlay,
216
+ {
217
+ ref: t,
218
+ className: s(
219
+ "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
220
+ e
221
+ ),
222
+ ...a
223
+ }
224
+ ));
225
+ z.displayName = n.Overlay.displayName;
226
+ const M = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ f(P, { children: [
227
+ /* @__PURE__ */ o(z, {}),
228
+ /* @__PURE__ */ f(
229
+ n.Content,
230
+ {
231
+ ref: d,
232
+ className: s(
233
+ "fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
234
+ e
235
+ ),
236
+ ...t,
237
+ children: [
238
+ a,
239
+ /* @__PURE__ */ f(n.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
240
+ /* @__PURE__ */ o(D, { className: "h-4 w-4" }),
241
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
242
+ ] })
243
+ ]
244
+ }
245
+ )
246
+ ] }));
247
+ M.displayName = n.Content.displayName;
248
+ const De = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", e), ...a });
249
+ De.displayName = "DialogHeader";
250
+ const Te = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
251
+ Te.displayName = "DialogFooter";
252
+ const Ie = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
253
+ n.Title,
254
+ {
255
+ ref: t,
256
+ className: s("text-lg font-semibold leading-none tracking-tight", e),
257
+ ...a
258
+ }
259
+ ));
260
+ Ie.displayName = n.Title.displayName;
261
+ const Se = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
262
+ Se.displayName = n.Description.displayName;
263
+ const _ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
264
+ c,
265
+ {
266
+ ref: t,
267
+ className: s(
268
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
269
+ e
270
+ ),
271
+ ...a
272
+ }
273
+ ));
274
+ _.displayName = c.displayName;
275
+ const Aa = ({ children: e, ...a }) => /* @__PURE__ */ o(ke, { ...a, children: /* @__PURE__ */ o(M, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(_, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), Ae = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ f("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
276
+ /* @__PURE__ */ o(B, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
277
+ /* @__PURE__ */ o(
278
+ c.Input,
279
+ {
280
+ ref: t,
281
+ className: s(
282
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
283
+ e
284
+ ),
285
+ ...a
286
+ }
287
+ )
288
+ ] }));
289
+ Ae.displayName = c.Input.displayName;
290
+ const Fe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
291
+ c.List,
292
+ {
293
+ ref: t,
294
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
295
+ ...a
296
+ }
297
+ ));
298
+ Fe.displayName = c.List.displayName;
299
+ const Pe = r.forwardRef((e, a) => /* @__PURE__ */ o(c.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
300
+ Pe.displayName = c.Empty.displayName;
301
+ const ze = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
302
+ c.Group,
303
+ {
304
+ ref: t,
305
+ className: s(
306
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
307
+ e
308
+ ),
309
+ ...a
310
+ }
311
+ ));
312
+ ze.displayName = c.Group.displayName;
313
+ const Me = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(c.Separator, { ref: t, className: s("-mx-1 h-px bg-border", e), ...a }));
314
+ Me.displayName = c.Separator.displayName;
315
+ const _e = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
316
+ c.Item,
317
+ {
318
+ ref: t,
319
+ className: s(
320
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
321
+ e
322
+ ),
323
+ ...a
324
+ }
325
+ ));
326
+ _e.displayName = c.Item.displayName;
327
+ const He = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
328
+ He.displayName = "CommandShortcut";
329
+ const Fa = l.Root, Pa = l.Trigger, za = l.Group, Ma = l.Portal, _a = l.Sub, Ha = l.RadioGroup, je = r.forwardRef(({ className: e, inset: a, children: t, ...d }, i) => /* @__PURE__ */ f(
330
+ l.SubTrigger,
331
+ {
332
+ ref: i,
333
+ className: s(
334
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
335
+ a && "pl-8",
336
+ e
337
+ ),
338
+ ...d,
339
+ children: [
340
+ t,
341
+ /* @__PURE__ */ o(E, { className: "ml-auto h-4 w-4" })
342
+ ]
343
+ }
344
+ ));
345
+ je.displayName = l.SubTrigger.displayName;
346
+ const Le = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
347
+ l.SubContent,
348
+ {
349
+ ref: t,
350
+ className: s(
351
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
352
+ e
353
+ ),
354
+ ...a
355
+ }
356
+ ));
357
+ Le.displayName = l.SubContent.displayName;
358
+ const Oe = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, d) => /* @__PURE__ */ o(l.Portal, { children: /* @__PURE__ */ o(
359
+ l.Content,
360
+ {
361
+ ref: d,
362
+ sideOffset: a,
363
+ className: s(
364
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
365
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
366
+ e
367
+ ),
368
+ ...t
369
+ }
370
+ ) }));
371
+ Oe.displayName = l.Content.displayName;
372
+ const Ve = r.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o(
373
+ l.Item,
374
+ {
375
+ ref: d,
376
+ className: s(
377
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
378
+ a && "pl-8",
379
+ e
380
+ ),
381
+ ...t
382
+ }
383
+ ));
384
+ Ve.displayName = l.Item.displayName;
385
+ const Ge = r.forwardRef(({ className: e, children: a, checked: t, ...d }, i) => /* @__PURE__ */ f(
386
+ l.CheckboxItem,
387
+ {
388
+ ref: i,
389
+ className: s(
390
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
391
+ e
392
+ ),
393
+ checked: t,
394
+ ...d,
395
+ children: [
396
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(l.ItemIndicator, { children: /* @__PURE__ */ o(q, { className: "h-4 w-4" }) }) }),
397
+ a
398
+ ]
399
+ }
400
+ ));
401
+ Ge.displayName = l.CheckboxItem.displayName;
402
+ const $e = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ f(
403
+ l.RadioItem,
404
+ {
405
+ ref: d,
406
+ className: s(
407
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
408
+ e
409
+ ),
410
+ ...t,
411
+ children: [
412
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(l.ItemIndicator, { children: /* @__PURE__ */ o(J, { className: "h-4 w-4 fill-current" }) }) }),
413
+ a
414
+ ]
415
+ }
416
+ ));
417
+ $e.displayName = l.RadioItem.displayName;
418
+ const Be = r.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o(
419
+ l.Label,
420
+ {
421
+ ref: d,
422
+ className: s("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
423
+ ...t
424
+ }
425
+ ));
426
+ Be.displayName = l.Label.displayName;
427
+ const Ee = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(l.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
428
+ Ee.displayName = l.Separator.displayName;
429
+ const qe = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...a });
430
+ qe.displayName = "DropdownMenuShortcut";
431
+ const Je = h("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), H = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(I.Root, { ref: t, className: s(Je(), e), ...a }));
432
+ H.displayName = I.Root.displayName;
433
+ const ja = K, j = r.createContext({}), La = ({
434
+ ...e
435
+ }) => /* @__PURE__ */ o(j.Provider, { value: { name: e.name }, children: /* @__PURE__ */ o(Q, { ...e }) }), w = () => {
436
+ const e = r.useContext(j), a = r.useContext(L), { getFieldState: t, formState: d } = U(), i = t(e.name, d);
437
+ if (!e)
438
+ throw new Error("useFormField should be used within <FormField>");
439
+ const { id: p } = a;
440
+ return {
441
+ id: p,
442
+ name: e.name,
443
+ formItemId: `${p}-form-item`,
444
+ formDescriptionId: `${p}-form-item-description`,
445
+ formMessageId: `${p}-form-item-message`,
446
+ ...i
447
+ };
448
+ }, L = r.createContext({}), Ke = r.forwardRef(
449
+ ({ className: e, ...a }, t) => {
450
+ const d = r.useId();
451
+ return /* @__PURE__ */ o(L.Provider, { value: { id: d }, children: /* @__PURE__ */ o("div", { ref: t, className: s("space-y-2", e), ...a }) });
452
+ }
453
+ );
454
+ Ke.displayName = "FormItem";
455
+ const Qe = r.forwardRef(({ className: e, ...a }, t) => {
456
+ const { error: d, formItemId: i } = w();
457
+ return /* @__PURE__ */ o(H, { ref: t, className: s(d && "text-destructive", e), htmlFor: i, ...a });
458
+ });
459
+ Qe.displayName = "FormLabel";
460
+ const Ue = r.forwardRef(
461
+ ({ ...e }, a) => {
462
+ const { error: t, formItemId: d, formDescriptionId: i, formMessageId: p } = w();
463
+ return /* @__PURE__ */ o(
464
+ T,
465
+ {
466
+ ref: a,
467
+ id: d,
468
+ "aria-describedby": t ? `${i} ${p}` : `${i}`,
469
+ "aria-invalid": !!t,
470
+ ...e
471
+ }
472
+ );
473
+ }
474
+ );
475
+ Ue.displayName = "FormControl";
476
+ const We = r.forwardRef(
477
+ ({ className: e, ...a }, t) => {
478
+ const { formDescriptionId: d } = w();
479
+ return /* @__PURE__ */ o("p", { ref: t, id: d, className: s("text-sm text-muted-foreground", e), ...a });
480
+ }
481
+ );
482
+ We.displayName = "FormDescription";
483
+ const Xe = r.forwardRef(
484
+ ({ className: e, children: a, ...t }, d) => {
485
+ const { error: i, formMessageId: p } = w(), C = i ? String(i == null ? void 0 : i.message) : a;
486
+ return C ? /* @__PURE__ */ o("p", { ref: d, id: p, className: s("text-sm font-medium text-destructive", e), ...t, children: C }) : null;
487
+ }
488
+ );
489
+ Xe.displayName = "FormMessage";
490
+ const Oa = v.Root, Va = v.Trigger, Ye = r.forwardRef(({ className: e, align: a = "center", sideOffset: t = 4, ...d }, i) => /* @__PURE__ */ o(
491
+ v.Content,
492
+ {
493
+ ref: i,
494
+ align: a,
495
+ sideOffset: t,
496
+ className: s(
497
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
498
+ e
499
+ ),
500
+ ...d
501
+ }
502
+ ));
503
+ Ye.displayName = v.Content.displayName;
504
+ const Ze = r.forwardRef(({ className: e, type: a, ...t }, d) => /* @__PURE__ */ o(
505
+ "input",
506
+ {
507
+ type: a,
508
+ className: s(
509
+ "flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
510
+ e
511
+ ),
512
+ ref: d,
513
+ ...t,
514
+ autoCapitalize: "off",
515
+ autoCorrect: "off",
516
+ spellCheck: "false"
517
+ }
518
+ ));
519
+ Ze.displayName = "Input";
520
+ const Ga = x.Root, $a = x.Trigger, ea = r.forwardRef(({ className: e, align: a = "center", sideOffset: t = 4, ...d }, i) => /* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(
521
+ x.Content,
522
+ {
523
+ ref: i,
524
+ align: a,
525
+ sideOffset: t,
526
+ className: s(
527
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
528
+ e
529
+ ),
530
+ ...d
531
+ }
532
+ ) }));
533
+ ea.displayName = x.Content.displayName;
534
+ const aa = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ f(u.Root, { ref: d, className: s("relative overflow-hidden", e), ...t, children: [
535
+ /* @__PURE__ */ o(u.Viewport, { className: "h-full w-full rounded-[inherit]", children: a }),
536
+ /* @__PURE__ */ o(O, {}),
537
+ /* @__PURE__ */ o(u.Corner, {})
538
+ ] }));
539
+ aa.displayName = u.Root.displayName;
540
+ const O = r.forwardRef(({ className: e, orientation: a = "vertical", ...t }, d) => /* @__PURE__ */ o(
541
+ u.ScrollAreaScrollbar,
542
+ {
543
+ ref: d,
544
+ orientation: a,
545
+ className: s(
546
+ "flex touch-none select-none transition-colors",
547
+ a === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
548
+ a === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
549
+ e
550
+ ),
551
+ ...t,
552
+ children: /* @__PURE__ */ o(u.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
553
+ }
554
+ ));
555
+ O.displayName = u.ScrollAreaScrollbar.displayName;
556
+ const ta = r.forwardRef(({ className: e, orientation: a = "horizontal", decorative: t = !0, ...d }, i) => /* @__PURE__ */ o(
557
+ S.Root,
558
+ {
559
+ ref: i,
560
+ decorative: t,
561
+ orientation: a,
562
+ className: s("shrink-0 bg-border", a === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
563
+ ...d
564
+ }
565
+ ));
566
+ ta.displayName = S.Root.displayName;
567
+ const Ba = n.Root, Ea = n.Trigger, qa = n.Close, V = ({ className: e, ...a }) => /* @__PURE__ */ o(n.Portal, { className: s(e), ...a });
568
+ V.displayName = n.Portal.displayName;
569
+ const G = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
570
+ n.Overlay,
571
+ {
572
+ className: s(
573
+ "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
574
+ e
575
+ ),
576
+ ...a,
577
+ ref: t
578
+ }
579
+ ));
580
+ G.displayName = n.Overlay.displayName;
581
+ const oa = h(
582
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
583
+ {
584
+ variants: {
585
+ side: {
586
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
587
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
588
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
589
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
590
+ }
591
+ },
592
+ defaultVariants: {
593
+ side: "right"
594
+ }
595
+ }
596
+ ), sa = r.forwardRef(
597
+ ({ side: e = "right", className: a, children: t, ...d }, i) => /* @__PURE__ */ f(V, { children: [
598
+ /* @__PURE__ */ o(G, {}),
599
+ /* @__PURE__ */ f(n.Content, { ref: i, className: s(oa({ side: e }), a), ...d, children: [
600
+ t,
601
+ /* @__PURE__ */ f(n.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
602
+ /* @__PURE__ */ o(D, { className: "h-4 w-4" }),
603
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
604
+ ] })
605
+ ] })
606
+ ] })
607
+ );
608
+ sa.displayName = n.Content.displayName;
609
+ const ra = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
610
+ ra.displayName = "SheetHeader";
611
+ const da = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
612
+ da.displayName = "SheetFooter";
613
+ const na = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Title, { ref: t, className: s("text-lg font-semibold text-foreground", e), ...a }));
614
+ na.displayName = n.Title.displayName;
615
+ const ia = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
616
+ ia.displayName = n.Description.displayName;
617
+ const Ja = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("animate-pulse rounded-md bg-primary/10", e), ...a }), Ka = ({ ...e }) => {
618
+ const { theme: a = "system" } = W();
619
+ return /* @__PURE__ */ o(
620
+ X,
621
+ {
622
+ theme: a,
623
+ className: "toaster group",
624
+ toastOptions: {
625
+ classNames: {
626
+ toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
627
+ description: "group-[.toast]:text-muted-foreground",
628
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
629
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
630
+ }
631
+ },
632
+ ...e
633
+ }
634
+ );
635
+ }, la = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
636
+ R.Root,
637
+ {
638
+ className: s(
639
+ "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
640
+ e
641
+ ),
642
+ ...a,
643
+ ref: t,
644
+ children: /* @__PURE__ */ o(
645
+ R.Thumb,
646
+ {
647
+ className: s(
648
+ "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
649
+ )
650
+ }
651
+ )
652
+ }
653
+ ));
654
+ la.displayName = R.Root.displayName;
655
+ const Qa = b.Root, ma = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
656
+ b.List,
657
+ {
658
+ ref: t,
659
+ className: s(
660
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
661
+ e
662
+ ),
663
+ ...a
664
+ }
665
+ ));
666
+ ma.displayName = b.List.displayName;
667
+ const ca = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
668
+ b.Trigger,
669
+ {
670
+ ref: t,
671
+ className: s(
672
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
673
+ e
674
+ ),
675
+ ...a
676
+ }
677
+ ));
678
+ ca.displayName = b.Trigger.displayName;
679
+ const fa = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
680
+ b.Content,
681
+ {
682
+ ref: t,
683
+ className: s(
684
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
685
+ e
686
+ ),
687
+ ...a
688
+ }
689
+ ));
690
+ fa.displayName = b.Content.displayName;
691
+ const pa = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
692
+ "textarea",
693
+ {
694
+ className: s(
695
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
696
+ e
697
+ ),
698
+ ref: t,
699
+ ...a,
700
+ autoCapitalize: "off",
701
+ autoCorrect: "off",
702
+ spellCheck: "false"
703
+ }
704
+ ));
705
+ pa.displayName = "Textarea";
706
+ const Ua = N.Portal, Wa = N.Provider, Xa = N.Root, Ya = N.Trigger, ua = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, d) => /* @__PURE__ */ o(
707
+ N.Content,
708
+ {
709
+ ref: d,
710
+ sideOffset: a,
711
+ className: s(
712
+ "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
713
+ e
714
+ ),
715
+ ...t
716
+ }
717
+ ));
718
+ ua.displayName = N.Content.displayName;
719
+ export {
720
+ Ee as $,
721
+ ka as A,
722
+ ne as B,
723
+ xe as C,
724
+ Ce as D,
725
+ _ as E,
726
+ Aa as F,
727
+ Ae as G,
728
+ Fe as H,
729
+ Pe as I,
730
+ ze as J,
731
+ _e as K,
732
+ He as L,
733
+ Me as M,
734
+ ke as N,
735
+ Sa as O,
736
+ M as P,
737
+ De as Q,
738
+ Te as R,
739
+ Ie as S,
740
+ Se as T,
741
+ Fa as U,
742
+ Pa as V,
743
+ Oe as W,
744
+ Ve as X,
745
+ Ge as Y,
746
+ $e as Z,
747
+ Be as _,
748
+ ee as a,
749
+ qe as a0,
750
+ za as a1,
751
+ Ma as a2,
752
+ _a as a3,
753
+ Le as a4,
754
+ je as a5,
755
+ Ha as a6,
756
+ ja as a7,
757
+ Ue as a8,
758
+ We as a9,
759
+ la as aA,
760
+ Qa as aB,
761
+ ma as aC,
762
+ ca as aD,
763
+ fa as aE,
764
+ pa as aF,
765
+ Xa as aG,
766
+ Ya as aH,
767
+ ua as aI,
768
+ Wa as aJ,
769
+ Ua as aK,
770
+ La as aa,
771
+ Ke as ab,
772
+ Qe as ac,
773
+ Xe as ad,
774
+ w as ae,
775
+ Oa as af,
776
+ Va as ag,
777
+ Ye as ah,
778
+ Ze as ai,
779
+ H as aj,
780
+ Ga as ak,
781
+ $a as al,
782
+ ea as am,
783
+ aa as an,
784
+ O as ao,
785
+ ta as ap,
786
+ Ba as aq,
787
+ Ea as ar,
788
+ qa as as,
789
+ sa as at,
790
+ ra as au,
791
+ da as av,
792
+ na as aw,
793
+ ia as ax,
794
+ Ja as ay,
795
+ Ka as az,
796
+ ae as b,
797
+ s as c,
798
+ te as d,
799
+ se as e,
800
+ re as f,
801
+ de as g,
802
+ Da as h,
803
+ Ta as i,
804
+ ie as j,
805
+ le as k,
806
+ me as l,
807
+ ce as m,
808
+ fe as n,
809
+ pe as o,
810
+ ue as p,
811
+ ge as q,
812
+ ye as r,
813
+ be as s,
814
+ Ia as t,
815
+ Ne as u,
816
+ k as v,
817
+ he as w,
818
+ Re as x,
819
+ ve as y,
820
+ we as z
821
+ };