@chaibuilder/sdk 2.0.0-beta.99 → 2.0.0

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,647 @@
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import * as u from "@radix-ui/react-accordion";
4
+ import { ChevronDownIcon as A, Cross2Icon as _, MagnifyingGlassIcon as M, ChevronRightIcon as j, CheckIcon as H, DotFilledIcon as L } from "@radix-ui/react-icons";
5
+ import * as i from "@radix-ui/react-alert-dialog";
6
+ import { Slot as G } from "@radix-ui/react-slot";
7
+ import { cva as h } from "class-variance-authority";
8
+ import { Command as l } from "cmdk";
9
+ import * as m from "@radix-ui/react-dialog";
10
+ import * as n from "@radix-ui/react-dropdown-menu";
11
+ import * as N from "@radix-ui/react-hover-card";
12
+ import * as v from "@radix-ui/react-label";
13
+ import * as y from "@radix-ui/react-popover";
14
+ import * as f from "@radix-ui/react-scroll-area";
15
+ import * as C from "@radix-ui/react-separator";
16
+ import { useTheme as F } from "next-themes";
17
+ import { Toaster as O } from "sonner";
18
+ import * as x from "@radix-ui/react-switch";
19
+ import * as g from "@radix-ui/react-tabs";
20
+ import * as b from "@radix-ui/react-tooltip";
21
+ import { clsx as B } from "clsx";
22
+ import { twMerge as V } from "tailwind-merge";
23
+ const s = (...a) => V(B(a)), Xe = u.Root, E = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(u.Item, { ref: t, className: s("border-b", a), ...e }));
24
+ E.displayName = "AccordionItem";
25
+ const $ = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ o(u.Header, { className: "flex", children: /* @__PURE__ */ p(
26
+ u.Trigger,
27
+ {
28
+ ref: d,
29
+ className: s(
30
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
31
+ a
32
+ ),
33
+ ...t,
34
+ children: [
35
+ e,
36
+ t.hideArrow ? null : /* @__PURE__ */ o(A, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
37
+ ]
38
+ }
39
+ ) }));
40
+ $.displayName = u.Trigger.displayName;
41
+ const q = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ o(
42
+ u.Content,
43
+ {
44
+ ref: d,
45
+ className: s(
46
+ "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
47
+ a
48
+ ),
49
+ ...t,
50
+ children: /* @__PURE__ */ o("div", { className: "pb-4 pt-0", children: e })
51
+ }
52
+ ));
53
+ q.displayName = u.Content.displayName;
54
+ const w = h(
55
+ "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",
56
+ {
57
+ variants: {
58
+ variant: {
59
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
60
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
61
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
62
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
63
+ ghost: "hover:bg-accent hover:text-accent-foreground",
64
+ link: "text-primary underline-offset-4 hover:underline"
65
+ },
66
+ size: {
67
+ default: "h-9 px-4 py-2",
68
+ sm: "h-8 rounded-md px-3 text-xs",
69
+ lg: "h-10 rounded-md px-8",
70
+ icon: "h-9 w-9"
71
+ }
72
+ },
73
+ defaultVariants: {
74
+ variant: "default",
75
+ size: "default"
76
+ }
77
+ }
78
+ ), J = r.forwardRef(
79
+ ({ className: a, variant: e, size: t, asChild: d = !1, ...c }, P) => /* @__PURE__ */ o(d ? G : "button", { className: s(w({ variant: e, size: t, className: a })), ref: P, ...c })
80
+ );
81
+ J.displayName = "Button";
82
+ const Ye = i.Root, Ze = i.Trigger, R = ({ className: a, ...e }) => /* @__PURE__ */ o(i.Portal, { className: s(a), ...e });
83
+ R.displayName = i.Portal.displayName;
84
+ const k = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
85
+ i.Overlay,
86
+ {
87
+ className: s(
88
+ "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",
89
+ a
90
+ ),
91
+ ...e,
92
+ ref: t
93
+ }
94
+ ));
95
+ k.displayName = i.Overlay.displayName;
96
+ const K = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(R, { children: [
97
+ /* @__PURE__ */ o(k, {}),
98
+ /* @__PURE__ */ o(
99
+ i.Content,
100
+ {
101
+ ref: t,
102
+ className: s(
103
+ "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",
104
+ a
105
+ ),
106
+ ...e
107
+ }
108
+ )
109
+ ] }));
110
+ K.displayName = i.Content.displayName;
111
+ const Q = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
112
+ Q.displayName = "AlertDialogHeader";
113
+ const U = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
114
+ U.displayName = "AlertDialogFooter";
115
+ const W = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
116
+ W.displayName = i.Title.displayName;
117
+ const X = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
118
+ X.displayName = i.Description.displayName;
119
+ const Y = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Action, { ref: t, className: s(w(), a), ...e }));
120
+ Y.displayName = i.Action.displayName;
121
+ const Z = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
122
+ i.Cancel,
123
+ {
124
+ ref: t,
125
+ className: s(w({ variant: "outline" }), "mt-2 sm:mt-0", a),
126
+ ...e
127
+ }
128
+ ));
129
+ Z.displayName = i.Cancel.displayName;
130
+ const ee = h(
131
+ "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",
132
+ {
133
+ variants: {
134
+ variant: {
135
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
136
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
137
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
138
+ outline: "text-foreground"
139
+ }
140
+ },
141
+ defaultVariants: {
142
+ variant: "default"
143
+ }
144
+ }
145
+ ), ea = ({ className: a, variant: e, ...t }) => /* @__PURE__ */ o("div", { className: s(ee({ variant: e }), a), ...t }), ae = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", a), ...e }));
146
+ ae.displayName = "Card";
147
+ const te = r.forwardRef(
148
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", a), ...e })
149
+ );
150
+ te.displayName = "CardHeader";
151
+ const oe = r.forwardRef(
152
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("h3", { ref: t, className: s("font-semibold leading-none tracking-tight", a), ...e })
153
+ );
154
+ oe.displayName = "CardTitle";
155
+ const se = r.forwardRef(
156
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("p", { ref: t, className: s("text-sm text-muted-foreground", a), ...e })
157
+ );
158
+ se.displayName = "CardDescription";
159
+ const re = r.forwardRef(
160
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("p-6 pt-0", a), ...e })
161
+ );
162
+ re.displayName = "CardContent";
163
+ const de = r.forwardRef(
164
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s(" flex items-center p-6 pt-0", a), ...e })
165
+ );
166
+ de.displayName = "CardFooter";
167
+ const ne = m.Root, aa = m.Trigger, D = ({ className: a, ...e }) => /* @__PURE__ */ o(m.Portal, { className: s(a), ...e });
168
+ D.displayName = m.Portal.displayName;
169
+ const T = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
170
+ m.Overlay,
171
+ {
172
+ ref: t,
173
+ className: s(
174
+ "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",
175
+ a
176
+ ),
177
+ ...e
178
+ }
179
+ ));
180
+ T.displayName = m.Overlay.displayName;
181
+ const S = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ p(D, { children: [
182
+ /* @__PURE__ */ o(T, {}),
183
+ /* @__PURE__ */ p(
184
+ m.Content,
185
+ {
186
+ ref: d,
187
+ className: s(
188
+ "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",
189
+ a
190
+ ),
191
+ ...t,
192
+ children: [
193
+ e,
194
+ /* @__PURE__ */ p(m.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: [
195
+ /* @__PURE__ */ o(_, { className: "h-4 w-4" }),
196
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
197
+ ] })
198
+ ]
199
+ }
200
+ )
201
+ ] }));
202
+ S.displayName = m.Content.displayName;
203
+ const ie = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
204
+ ie.displayName = "DialogHeader";
205
+ const le = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
206
+ le.displayName = "DialogFooter";
207
+ const me = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
208
+ m.Title,
209
+ {
210
+ ref: t,
211
+ className: s("text-lg font-semibold leading-none tracking-tight", a),
212
+ ...e
213
+ }
214
+ ));
215
+ me.displayName = m.Title.displayName;
216
+ const ce = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(m.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
217
+ ce.displayName = m.Description.displayName;
218
+ const z = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
219
+ l,
220
+ {
221
+ ref: t,
222
+ className: s(
223
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
224
+ a
225
+ ),
226
+ ...e
227
+ }
228
+ ));
229
+ z.displayName = l.displayName;
230
+ const ta = ({ children: a, ...e }) => /* @__PURE__ */ o(ne, { ...e, children: /* @__PURE__ */ o(S, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(z, { 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: a }) }) }), pe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
231
+ /* @__PURE__ */ o(M, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
232
+ /* @__PURE__ */ o(
233
+ l.Input,
234
+ {
235
+ ref: t,
236
+ className: s(
237
+ "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",
238
+ a
239
+ ),
240
+ ...e
241
+ }
242
+ )
243
+ ] }));
244
+ pe.displayName = l.Input.displayName;
245
+ const fe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
246
+ l.List,
247
+ {
248
+ ref: t,
249
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", a),
250
+ ...e
251
+ }
252
+ ));
253
+ fe.displayName = l.List.displayName;
254
+ const ue = r.forwardRef((a, e) => /* @__PURE__ */ o(l.Empty, { ref: e, className: "py-6 text-center text-sm", ...a }));
255
+ ue.displayName = l.Empty.displayName;
256
+ const ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
257
+ l.Group,
258
+ {
259
+ ref: t,
260
+ className: s(
261
+ "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",
262
+ a
263
+ ),
264
+ ...e
265
+ }
266
+ ));
267
+ ge.displayName = l.Group.displayName;
268
+ const be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Separator, { ref: t, className: s("-mx-1 h-px bg-border", a), ...e }));
269
+ be.displayName = l.Separator.displayName;
270
+ const ye = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
271
+ l.Item,
272
+ {
273
+ ref: t,
274
+ className: s(
275
+ "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",
276
+ a
277
+ ),
278
+ ...e
279
+ }
280
+ ));
281
+ ye.displayName = l.Item.displayName;
282
+ const Ne = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
283
+ Ne.displayName = "CommandShortcut";
284
+ const oa = n.Root, sa = n.Trigger, ra = n.Group, da = n.Portal, na = n.Sub, ia = n.RadioGroup, xe = r.forwardRef(({ className: a, inset: e, children: t, ...d }, c) => /* @__PURE__ */ p(
285
+ n.SubTrigger,
286
+ {
287
+ ref: c,
288
+ className: s(
289
+ "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",
290
+ e && "pl-8",
291
+ a
292
+ ),
293
+ ...d,
294
+ children: [
295
+ t,
296
+ /* @__PURE__ */ o(j, { className: "ml-auto h-4 w-4" })
297
+ ]
298
+ }
299
+ ));
300
+ xe.displayName = n.SubTrigger.displayName;
301
+ const he = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
302
+ n.SubContent,
303
+ {
304
+ ref: t,
305
+ className: s(
306
+ "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",
307
+ a
308
+ ),
309
+ ...e
310
+ }
311
+ ));
312
+ he.displayName = n.SubContent.displayName;
313
+ const we = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, d) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
314
+ n.Content,
315
+ {
316
+ ref: d,
317
+ sideOffset: e,
318
+ className: s(
319
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
320
+ "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",
321
+ a
322
+ ),
323
+ ...t
324
+ }
325
+ ) }));
326
+ we.displayName = n.Content.displayName;
327
+ const ve = r.forwardRef(({ className: a, inset: e, ...t }, d) => /* @__PURE__ */ o(
328
+ n.Item,
329
+ {
330
+ ref: d,
331
+ className: s(
332
+ "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",
333
+ e && "pl-8",
334
+ a
335
+ ),
336
+ ...t
337
+ }
338
+ ));
339
+ ve.displayName = n.Item.displayName;
340
+ const Ce = r.forwardRef(({ className: a, children: e, checked: t, ...d }, c) => /* @__PURE__ */ p(
341
+ n.CheckboxItem,
342
+ {
343
+ ref: c,
344
+ className: s(
345
+ "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",
346
+ a
347
+ ),
348
+ checked: t,
349
+ ...d,
350
+ children: [
351
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(H, { className: "h-4 w-4" }) }) }),
352
+ e
353
+ ]
354
+ }
355
+ ));
356
+ Ce.displayName = n.CheckboxItem.displayName;
357
+ const Re = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ p(
358
+ n.RadioItem,
359
+ {
360
+ ref: d,
361
+ className: s(
362
+ "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",
363
+ a
364
+ ),
365
+ ...t,
366
+ children: [
367
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(L, { className: "h-4 w-4 fill-current" }) }) }),
368
+ e
369
+ ]
370
+ }
371
+ ));
372
+ Re.displayName = n.RadioItem.displayName;
373
+ const ke = r.forwardRef(({ className: a, inset: e, ...t }, d) => /* @__PURE__ */ o(
374
+ n.Label,
375
+ {
376
+ ref: d,
377
+ className: s("px-2 py-1.5 text-sm font-semibold", e && "pl-8", a),
378
+ ...t
379
+ }
380
+ ));
381
+ ke.displayName = n.Label.displayName;
382
+ const De = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
383
+ De.displayName = n.Separator.displayName;
384
+ const Te = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest opacity-60", a), ...e });
385
+ Te.displayName = "DropdownMenuShortcut";
386
+ const la = N.Root, ma = N.Trigger, Se = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...d }, c) => /* @__PURE__ */ o(
387
+ N.Content,
388
+ {
389
+ ref: c,
390
+ align: e,
391
+ sideOffset: t,
392
+ className: s(
393
+ "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",
394
+ a
395
+ ),
396
+ ...d
397
+ }
398
+ ));
399
+ Se.displayName = N.Content.displayName;
400
+ const ze = r.forwardRef(({ className: a, type: e, ...t }, d) => /* @__PURE__ */ o(
401
+ "input",
402
+ {
403
+ type: e,
404
+ className: s(
405
+ "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",
406
+ a
407
+ ),
408
+ ref: d,
409
+ ...t,
410
+ autoCapitalize: "off",
411
+ autoCorrect: "off",
412
+ spellCheck: "false"
413
+ }
414
+ ));
415
+ ze.displayName = "Input";
416
+ const Ie = h("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Pe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(v.Root, { ref: t, className: s(Ie(), a), ...e }));
417
+ Pe.displayName = v.Root.displayName;
418
+ const ca = y.Root, pa = y.Trigger, Ae = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...d }, c) => /* @__PURE__ */ o(y.Portal, { children: /* @__PURE__ */ o(
419
+ y.Content,
420
+ {
421
+ ref: c,
422
+ align: e,
423
+ sideOffset: t,
424
+ className: s(
425
+ "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",
426
+ a
427
+ ),
428
+ ...d
429
+ }
430
+ ) }));
431
+ Ae.displayName = y.Content.displayName;
432
+ const _e = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ p(f.Root, { ref: d, className: s("relative overflow-hidden", a), ...t, children: [
433
+ /* @__PURE__ */ o(f.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
434
+ /* @__PURE__ */ o(I, {}),
435
+ /* @__PURE__ */ o(f.Corner, {})
436
+ ] }));
437
+ _e.displayName = f.Root.displayName;
438
+ const I = r.forwardRef(({ className: a, orientation: e = "vertical", ...t }, d) => /* @__PURE__ */ o(
439
+ f.ScrollAreaScrollbar,
440
+ {
441
+ ref: d,
442
+ orientation: e,
443
+ className: s(
444
+ "flex touch-none select-none transition-colors",
445
+ e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
446
+ e === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
447
+ a
448
+ ),
449
+ ...t,
450
+ children: /* @__PURE__ */ o(f.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
451
+ }
452
+ ));
453
+ I.displayName = f.ScrollAreaScrollbar.displayName;
454
+ const Me = r.forwardRef(({ className: a, orientation: e = "horizontal", decorative: t = !0, ...d }, c) => /* @__PURE__ */ o(
455
+ C.Root,
456
+ {
457
+ ref: c,
458
+ decorative: t,
459
+ orientation: e,
460
+ className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
461
+ ...d
462
+ }
463
+ ));
464
+ Me.displayName = C.Root.displayName;
465
+ const fa = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("animate-pulse rounded-md bg-primary/10", a), ...e }), ua = ({ ...a }) => {
466
+ const { theme: e = "system" } = F();
467
+ return /* @__PURE__ */ o(
468
+ O,
469
+ {
470
+ theme: e,
471
+ className: "toaster group",
472
+ toastOptions: {
473
+ classNames: {
474
+ toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
475
+ description: "group-[.toast]:text-muted-foreground",
476
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
477
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
478
+ }
479
+ },
480
+ ...a
481
+ }
482
+ );
483
+ }, je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
484
+ x.Root,
485
+ {
486
+ className: s(
487
+ "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",
488
+ a
489
+ ),
490
+ ...e,
491
+ ref: t,
492
+ children: /* @__PURE__ */ o(
493
+ x.Thumb,
494
+ {
495
+ className: s(
496
+ "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"
497
+ )
498
+ }
499
+ )
500
+ }
501
+ ));
502
+ je.displayName = x.Root.displayName;
503
+ const ga = g.Root, He = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
504
+ g.List,
505
+ {
506
+ ref: t,
507
+ className: s(
508
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
509
+ a
510
+ ),
511
+ ...e
512
+ }
513
+ ));
514
+ He.displayName = g.List.displayName;
515
+ const Le = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
516
+ g.Trigger,
517
+ {
518
+ ref: t,
519
+ className: s(
520
+ "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",
521
+ a
522
+ ),
523
+ ...e
524
+ }
525
+ ));
526
+ Le.displayName = g.Trigger.displayName;
527
+ const Ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
528
+ g.Content,
529
+ {
530
+ ref: t,
531
+ className: s(
532
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
533
+ a
534
+ ),
535
+ ...e
536
+ }
537
+ ));
538
+ Ge.displayName = g.Content.displayName;
539
+ const Fe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
540
+ "textarea",
541
+ {
542
+ className: s(
543
+ "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",
544
+ a
545
+ ),
546
+ ref: t,
547
+ ...e,
548
+ autoCapitalize: "off",
549
+ autoCorrect: "off",
550
+ spellCheck: "false"
551
+ }
552
+ ));
553
+ Fe.displayName = "Textarea";
554
+ const ba = b.Portal, ya = b.Provider, Na = b.Root, xa = b.Trigger, Oe = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, d) => /* @__PURE__ */ o(
555
+ b.Content,
556
+ {
557
+ ref: d,
558
+ sideOffset: e,
559
+ className: s(
560
+ "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",
561
+ a
562
+ ),
563
+ ...t
564
+ }
565
+ ));
566
+ Oe.displayName = b.Content.displayName;
567
+ export {
568
+ he as $,
569
+ Xe as A,
570
+ J as B,
571
+ ae as C,
572
+ ge as D,
573
+ ye as E,
574
+ Ne as F,
575
+ be as G,
576
+ ne as H,
577
+ aa as I,
578
+ S as J,
579
+ ie as K,
580
+ le as L,
581
+ me as M,
582
+ ce as N,
583
+ oa as O,
584
+ sa as P,
585
+ we as Q,
586
+ ve as R,
587
+ fa as S,
588
+ Ce as T,
589
+ Re as U,
590
+ ke as V,
591
+ De as W,
592
+ Te as X,
593
+ ra as Y,
594
+ da as Z,
595
+ na as _,
596
+ E as a,
597
+ xe as a0,
598
+ ia as a1,
599
+ la as a2,
600
+ ma as a3,
601
+ Se as a4,
602
+ ze as a5,
603
+ Pe as a6,
604
+ ca as a7,
605
+ pa as a8,
606
+ Ae as a9,
607
+ _e as aa,
608
+ I as ab,
609
+ Me as ac,
610
+ ua as ad,
611
+ je as ae,
612
+ ga as af,
613
+ He as ag,
614
+ Le as ah,
615
+ Ge as ai,
616
+ Fe as aj,
617
+ Na as ak,
618
+ xa as al,
619
+ Oe as am,
620
+ ya as an,
621
+ ba as ao,
622
+ $ as b,
623
+ s as c,
624
+ q as d,
625
+ Ye as e,
626
+ Ze as f,
627
+ K as g,
628
+ Q as h,
629
+ U as i,
630
+ W as j,
631
+ X as k,
632
+ Y as l,
633
+ Z as m,
634
+ ea as n,
635
+ ee as o,
636
+ w as p,
637
+ te as q,
638
+ de as r,
639
+ oe as s,
640
+ se as t,
641
+ re as u,
642
+ z as v,
643
+ ta as w,
644
+ pe as x,
645
+ fe as y,
646
+ ue as z
647
+ };