@chaibuilder/sdk 1.2.90 → 1.2.92

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.
Files changed (45) hide show
  1. package/dist/CodeEditor-awVVPqel.cjs +1 -0
  2. package/dist/{CodeEditor-t2oVfSyK.js → CodeEditor-orTEdw7a.js} +31 -28
  3. package/dist/Topbar--KOfsR94.cjs +1 -0
  4. package/dist/{Topbar-x0tjZaWC.js → Topbar-OPlOc1Ha.js} +22 -19
  5. package/dist/{UnsplashImages-965l8pGL.js → UnsplashImages-WaGyNL1z.js} +36 -33
  6. package/dist/UnsplashImages-g-8MvB9W.cjs +1 -0
  7. package/dist/{UploadImages-glp4ZyQm.js → UploadImages-GiKofaXX.js} +37 -61
  8. package/dist/UploadImages-Ic_iZgWY.cjs +1 -0
  9. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  10. package/dist/_commonjsHelpers-f52AuuUj.cjs +1 -0
  11. package/dist/button-9Duvj2dH.js +42 -0
  12. package/dist/button-oQgWN0j0.cjs +1 -0
  13. package/dist/context-menu-8MWP_Ikf.cjs +1 -0
  14. package/dist/context-menu-yLeOsx9j.js +943 -0
  15. package/dist/core.cjs +1 -1
  16. package/dist/core.d.ts +34 -11
  17. package/dist/core.js +81 -76
  18. package/dist/iconBase-BnEC5_qG.js +1583 -0
  19. package/dist/iconBase-_bgMuxa5.cjs +1 -0
  20. package/dist/index-Hj8wMhx_.cjs +223 -0
  21. package/dist/{index-qptv-vi2.js → index-yJ1H6b2C.js} +9771 -10776
  22. package/dist/plugin-02QsHeBE.cjs +1 -0
  23. package/dist/{plugin-P0tpo_XZ.cjs → plugin-BXpjdQxx.cjs} +1 -1
  24. package/dist/{plugin-f5uJtdXY.js → plugin-DdKuAR7p.js} +1 -1
  25. package/dist/plugin-VDzc8jUO.js +52 -0
  26. package/dist/render.cjs +2 -2
  27. package/dist/render.js +7 -6
  28. package/dist/tailwind.cjs +1 -1
  29. package/dist/tailwind.js +7 -6
  30. package/dist/ui.cjs +1 -1
  31. package/dist/ui.js +242 -301
  32. package/dist/web-blocks.cjs +1 -1
  33. package/dist/web-blocks.js +344 -289
  34. package/package.json +2 -2
  35. package/dist/CodeEditor-gqhS0hpB.cjs +0 -1
  36. package/dist/Topbar-s9YVXp9Z.cjs +0 -1
  37. package/dist/UnsplashImages-DRQaQoM-.cjs +0 -1
  38. package/dist/UploadImages-CumBJ3oE.cjs +0 -1
  39. package/dist/context-menu--DZnHfxj.cjs +0 -1
  40. package/dist/context-menu-DeUUflYX.js +0 -910
  41. package/dist/iconBase-vJD0OXxU.cjs +0 -1
  42. package/dist/iconBase-zweRWSz0.js +0 -323
  43. package/dist/index-BuZrwlQG.cjs +0 -223
  44. package/dist/plugin-_F-KZp1i.cjs +0 -1
  45. package/dist/plugin-sJ3Hzvpv.js +0 -57
@@ -0,0 +1,943 @@
1
+ import { j as o } from "./jsx-runtime-Sp0orL4X.js";
2
+ import * as T from "@radix-ui/react-switch";
3
+ import * as r from "react";
4
+ import { c as s, b as I } from "./button-9Duvj2dH.js";
5
+ import * as g from "@radix-ui/react-accordion";
6
+ import { ChevronDownIcon as X, Cross2Icon as A, CaretSortIcon as Y, CheckIcon as S, ChevronRightIcon as M, DotFilledIcon as P, MagnifyingGlassIcon as $ } from "@radix-ui/react-icons";
7
+ import { cva as D } from "class-variance-authority";
8
+ import * as m from "@radix-ui/react-alert-dialog";
9
+ import * as z from "@radix-ui/react-label";
10
+ import * as x from "@radix-ui/react-scroll-area";
11
+ import * as b from "@radix-ui/react-tabs";
12
+ import * as N from "@radix-ui/react-tooltip";
13
+ import * as h from "@radix-ui/react-popover";
14
+ import * as j from "@radix-ui/react-hover-card";
15
+ import * as c from "@radix-ui/react-select";
16
+ import * as n from "@radix-ui/react-dropdown-menu";
17
+ import * as _ from "@radix-ui/react-separator";
18
+ import * as u from "@radix-ui/react-toast";
19
+ import { Command as p } from "cmdk";
20
+ import * as f from "@radix-ui/react-dialog";
21
+ import * as i from "@radix-ui/react-context-menu";
22
+ const W = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
23
+ T.Root,
24
+ {
25
+ className: s(
26
+ "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",
27
+ e
28
+ ),
29
+ ...a,
30
+ ref: t,
31
+ children: /* @__PURE__ */ o.jsx(
32
+ T.Thumb,
33
+ {
34
+ className: s(
35
+ "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"
36
+ )
37
+ }
38
+ )
39
+ }
40
+ ));
41
+ W.displayName = T.Root.displayName;
42
+ const ja = g.Root, Z = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(g.Item, { ref: t, className: s("border-b", e), ...a }));
43
+ Z.displayName = "AccordionItem";
44
+ const ee = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsx(g.Header, { className: "flex", children: /* @__PURE__ */ o.jsxs(
45
+ g.Trigger,
46
+ {
47
+ ref: d,
48
+ className: s(
49
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
50
+ e
51
+ ),
52
+ ...t,
53
+ children: [
54
+ a,
55
+ t.hideArrow ? null : /* @__PURE__ */ o.jsx(X, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
56
+ ]
57
+ }
58
+ ) }));
59
+ ee.displayName = g.Trigger.displayName;
60
+ const ae = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsx(
61
+ g.Content,
62
+ {
63
+ ref: d,
64
+ className: s(
65
+ "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
66
+ e
67
+ ),
68
+ ...t,
69
+ children: /* @__PURE__ */ o.jsx("div", { className: "pb-4 pt-0", children: a })
70
+ }
71
+ ));
72
+ ae.displayName = g.Content.displayName;
73
+ const te = D(
74
+ "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",
75
+ {
76
+ variants: {
77
+ variant: {
78
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
79
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
80
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
81
+ outline: "text-foreground"
82
+ }
83
+ },
84
+ defaultVariants: {
85
+ variant: "default"
86
+ }
87
+ }
88
+ ), Ca = ({ className: e, variant: a, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s(te({ variant: a }), e), ...t }), Ra = m.Root, Ta = m.Trigger, O = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx(m.Portal, { className: s(e), ...a });
89
+ O.displayName = m.Portal.displayName;
90
+ const L = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
91
+ m.Overlay,
92
+ {
93
+ className: s(
94
+ "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",
95
+ e
96
+ ),
97
+ ...a,
98
+ ref: t
99
+ }
100
+ ));
101
+ L.displayName = m.Overlay.displayName;
102
+ const oe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsxs(O, { children: [
103
+ /* @__PURE__ */ o.jsx(L, {}),
104
+ /* @__PURE__ */ o.jsx(
105
+ m.Content,
106
+ {
107
+ ref: t,
108
+ className: s(
109
+ "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",
110
+ e
111
+ ),
112
+ ...a
113
+ }
114
+ )
115
+ ] }));
116
+ oe.displayName = m.Content.displayName;
117
+ const se = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
118
+ se.displayName = "AlertDialogHeader";
119
+ const re = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
120
+ re.displayName = "AlertDialogFooter";
121
+ const de = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(m.Title, { ref: t, className: s("text-lg font-semibold", e), ...a }));
122
+ de.displayName = m.Title.displayName;
123
+ const ne = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(m.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
124
+ ne.displayName = m.Description.displayName;
125
+ const ie = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(m.Action, { ref: t, className: s(I(), e), ...a }));
126
+ ie.displayName = m.Action.displayName;
127
+ const le = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
128
+ m.Cancel,
129
+ {
130
+ ref: t,
131
+ className: s(I({ variant: "outline" }), "mt-2 sm:mt-0", e),
132
+ ...a
133
+ }
134
+ ));
135
+ le.displayName = m.Cancel.displayName;
136
+ const ce = f.Root, Sa = f.Trigger, E = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx(f.Portal, { className: s(e), ...a });
137
+ E.displayName = f.Portal.displayName;
138
+ const V = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
139
+ f.Overlay,
140
+ {
141
+ ref: t,
142
+ className: s(
143
+ "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",
144
+ e
145
+ ),
146
+ ...a
147
+ }
148
+ ));
149
+ V.displayName = f.Overlay.displayName;
150
+ const G = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(E, { children: [
151
+ /* @__PURE__ */ o.jsx(V, {}),
152
+ /* @__PURE__ */ o.jsxs(
153
+ f.Content,
154
+ {
155
+ ref: d,
156
+ className: s(
157
+ "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",
158
+ e
159
+ ),
160
+ ...t,
161
+ children: [
162
+ a,
163
+ /* @__PURE__ */ o.jsxs(f.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: [
164
+ /* @__PURE__ */ o.jsx(A, { className: "h-4 w-4" }),
165
+ /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
166
+ ] })
167
+ ]
168
+ }
169
+ )
170
+ ] }));
171
+ G.displayName = f.Content.displayName;
172
+ const me = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", e), ...a });
173
+ me.displayName = "DialogHeader";
174
+ const pe = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
175
+ pe.displayName = "DialogFooter";
176
+ const fe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
177
+ f.Title,
178
+ {
179
+ ref: t,
180
+ className: s("text-lg font-semibold leading-none tracking-tight", e),
181
+ ...a
182
+ }
183
+ ));
184
+ fe.displayName = f.Title.displayName;
185
+ const ue = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(f.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
186
+ ue.displayName = f.Description.displayName;
187
+ const xe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", e), ...a }));
188
+ xe.displayName = "Card";
189
+ const ge = r.forwardRef(
190
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", e), ...a })
191
+ );
192
+ ge.displayName = "CardHeader";
193
+ const be = r.forwardRef(
194
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("h3", { ref: t, className: s("font-semibold leading-none tracking-tight", e), ...a })
195
+ );
196
+ be.displayName = "CardTitle";
197
+ const Ne = r.forwardRef(
198
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("p", { ref: t, className: s("text-sm text-muted-foreground", e), ...a })
199
+ );
200
+ Ne.displayName = "CardDescription";
201
+ const ye = r.forwardRef(
202
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: s("p-6 pt-0", e), ...a })
203
+ );
204
+ ye.displayName = "CardContent";
205
+ const he = r.forwardRef(
206
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: s(" flex items-center p-6 pt-0", e), ...a })
207
+ );
208
+ he.displayName = "CardFooter";
209
+ const we = r.forwardRef(({ className: e, type: a, ...t }, d) => /* @__PURE__ */ o.jsx(
210
+ "input",
211
+ {
212
+ type: a,
213
+ className: s(
214
+ "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",
215
+ e
216
+ ),
217
+ ref: d,
218
+ ...t,
219
+ autoCapitalize: "off",
220
+ autoCorrect: "off",
221
+ spellCheck: "false"
222
+ }
223
+ ));
224
+ we.displayName = "Input";
225
+ const ve = D("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), je = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(z.Root, { ref: t, className: s(ve(), e), ...a }));
226
+ je.displayName = z.Root.displayName;
227
+ const Ce = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
228
+ "textarea",
229
+ {
230
+ className: s(
231
+ "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",
232
+ e
233
+ ),
234
+ ref: t,
235
+ ...a,
236
+ autoCapitalize: "off",
237
+ autoCorrect: "off",
238
+ spellCheck: "false"
239
+ }
240
+ ));
241
+ Ce.displayName = "Textarea";
242
+ const Re = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(x.Root, { ref: d, className: s("relative overflow-hidden", e), ...t, children: [
243
+ /* @__PURE__ */ o.jsx(x.Viewport, { className: "h-full w-full rounded-[inherit]", children: a }),
244
+ /* @__PURE__ */ o.jsx(H, {}),
245
+ /* @__PURE__ */ o.jsx(x.Corner, {})
246
+ ] }));
247
+ Re.displayName = x.Root.displayName;
248
+ const H = r.forwardRef(({ className: e, orientation: a = "vertical", ...t }, d) => /* @__PURE__ */ o.jsx(
249
+ x.ScrollAreaScrollbar,
250
+ {
251
+ ref: d,
252
+ orientation: a,
253
+ className: s(
254
+ "flex touch-none select-none transition-colors",
255
+ a === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
256
+ a === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
257
+ e
258
+ ),
259
+ ...t,
260
+ children: /* @__PURE__ */ o.jsx(x.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
261
+ }
262
+ ));
263
+ H.displayName = x.ScrollAreaScrollbar.displayName;
264
+ const Da = b.Root, Te = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
265
+ b.List,
266
+ {
267
+ ref: t,
268
+ className: s(
269
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
270
+ e
271
+ ),
272
+ ...a
273
+ }
274
+ ));
275
+ Te.displayName = b.List.displayName;
276
+ const Se = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
277
+ b.Trigger,
278
+ {
279
+ ref: t,
280
+ className: s(
281
+ "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",
282
+ e
283
+ ),
284
+ ...a
285
+ }
286
+ ));
287
+ Se.displayName = b.Trigger.displayName;
288
+ const De = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
289
+ b.Content,
290
+ {
291
+ ref: t,
292
+ className: s(
293
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
294
+ e
295
+ ),
296
+ ...a
297
+ }
298
+ ));
299
+ De.displayName = b.Content.displayName;
300
+ const ka = N.Portal, Ia = N.Provider, Aa = N.Root, Ma = N.Trigger, ke = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, d) => /* @__PURE__ */ o.jsx(
301
+ N.Content,
302
+ {
303
+ ref: d,
304
+ sideOffset: a,
305
+ className: s(
306
+ "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",
307
+ e
308
+ ),
309
+ ...t
310
+ }
311
+ ));
312
+ ke.displayName = N.Content.displayName;
313
+ const Pa = h.Root, za = h.Trigger, Ie = r.forwardRef(({ className: e, align: a = "center", sideOffset: t = 4, ...d }, l) => /* @__PURE__ */ o.jsx(h.Portal, { children: /* @__PURE__ */ o.jsx(
314
+ h.Content,
315
+ {
316
+ ref: l,
317
+ align: a,
318
+ sideOffset: t,
319
+ className: s(
320
+ "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",
321
+ e
322
+ ),
323
+ ...d
324
+ }
325
+ ) }));
326
+ Ie.displayName = h.Content.displayName;
327
+ const _a = j.Root, Oa = j.Trigger, Ae = r.forwardRef(({ className: e, align: a = "center", sideOffset: t = 4, ...d }, l) => /* @__PURE__ */ o.jsx(
328
+ j.Content,
329
+ {
330
+ ref: l,
331
+ align: a,
332
+ sideOffset: t,
333
+ className: s(
334
+ "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",
335
+ e
336
+ ),
337
+ ...d
338
+ }
339
+ ));
340
+ Ae.displayName = j.Content.displayName;
341
+ const La = c.Root, Ea = c.Group, Va = c.Value, Me = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(
342
+ c.Trigger,
343
+ {
344
+ ref: d,
345
+ className: s(
346
+ "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
347
+ e
348
+ ),
349
+ ...t,
350
+ children: [
351
+ a,
352
+ /* @__PURE__ */ o.jsx(c.Icon, { asChild: !0, children: /* @__PURE__ */ o.jsx(Y, { className: "h-4 w-4 opacity-50" }) })
353
+ ]
354
+ }
355
+ ));
356
+ Me.displayName = c.Trigger.displayName;
357
+ const Pe = r.forwardRef(({ className: e, children: a, position: t = "popper", ...d }, l) => /* @__PURE__ */ o.jsx(c.Portal, { children: /* @__PURE__ */ o.jsx(
358
+ c.Content,
359
+ {
360
+ ref: l,
361
+ className: s(
362
+ "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
363
+ t === "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",
364
+ e
365
+ ),
366
+ position: t,
367
+ ...d,
368
+ children: /* @__PURE__ */ o.jsx(
369
+ c.Viewport,
370
+ {
371
+ className: s(
372
+ "p-1",
373
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
374
+ ),
375
+ children: a
376
+ }
377
+ )
378
+ }
379
+ ) }));
380
+ Pe.displayName = c.Content.displayName;
381
+ const ze = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(c.Label, { ref: t, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
382
+ ze.displayName = c.Label.displayName;
383
+ const _e = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(
384
+ c.Item,
385
+ {
386
+ ref: d,
387
+ className: s(
388
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
389
+ e
390
+ ),
391
+ ...t,
392
+ children: [
393
+ /* @__PURE__ */ o.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(c.ItemIndicator, { children: /* @__PURE__ */ o.jsx(S, { className: "h-4 w-4" }) }) }),
394
+ /* @__PURE__ */ o.jsx(c.ItemText, { children: a })
395
+ ]
396
+ }
397
+ ));
398
+ _e.displayName = c.Item.displayName;
399
+ const Oe = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(c.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
400
+ Oe.displayName = c.Separator.displayName;
401
+ const Ga = n.Root, Ha = n.Trigger, Fa = n.Group, Ba = n.Portal, Ua = n.Sub, qa = n.RadioGroup, Le = r.forwardRef(({ className: e, inset: a, children: t, ...d }, l) => /* @__PURE__ */ o.jsxs(
402
+ n.SubTrigger,
403
+ {
404
+ ref: l,
405
+ className: s(
406
+ "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",
407
+ a && "pl-8",
408
+ e
409
+ ),
410
+ ...d,
411
+ children: [
412
+ t,
413
+ /* @__PURE__ */ o.jsx(M, { className: "ml-auto h-4 w-4" })
414
+ ]
415
+ }
416
+ ));
417
+ Le.displayName = n.SubTrigger.displayName;
418
+ const Ee = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
419
+ n.SubContent,
420
+ {
421
+ ref: t,
422
+ className: s(
423
+ "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",
424
+ e
425
+ ),
426
+ ...a
427
+ }
428
+ ));
429
+ Ee.displayName = n.SubContent.displayName;
430
+ const Ve = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, d) => /* @__PURE__ */ o.jsx(n.Portal, { children: /* @__PURE__ */ o.jsx(
431
+ n.Content,
432
+ {
433
+ ref: d,
434
+ sideOffset: a,
435
+ className: s(
436
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
437
+ "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",
438
+ e
439
+ ),
440
+ ...t
441
+ }
442
+ ) }));
443
+ Ve.displayName = n.Content.displayName;
444
+ const Ge = r.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
445
+ n.Item,
446
+ {
447
+ ref: d,
448
+ className: s(
449
+ "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",
450
+ a && "pl-8",
451
+ e
452
+ ),
453
+ ...t
454
+ }
455
+ ));
456
+ Ge.displayName = n.Item.displayName;
457
+ const He = r.forwardRef(({ className: e, children: a, checked: t, ...d }, l) => /* @__PURE__ */ o.jsxs(
458
+ n.CheckboxItem,
459
+ {
460
+ ref: l,
461
+ className: s(
462
+ "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",
463
+ e
464
+ ),
465
+ checked: t,
466
+ ...d,
467
+ children: [
468
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(n.ItemIndicator, { children: /* @__PURE__ */ o.jsx(S, { className: "h-4 w-4" }) }) }),
469
+ a
470
+ ]
471
+ }
472
+ ));
473
+ He.displayName = n.CheckboxItem.displayName;
474
+ const Fe = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(
475
+ n.RadioItem,
476
+ {
477
+ ref: d,
478
+ className: s(
479
+ "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",
480
+ e
481
+ ),
482
+ ...t,
483
+ children: [
484
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(n.ItemIndicator, { children: /* @__PURE__ */ o.jsx(P, { className: "h-4 w-4 fill-current" }) }) }),
485
+ a
486
+ ]
487
+ }
488
+ ));
489
+ Fe.displayName = n.RadioItem.displayName;
490
+ const Be = r.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
491
+ n.Label,
492
+ {
493
+ ref: d,
494
+ className: s("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
495
+ ...t
496
+ }
497
+ ));
498
+ Be.displayName = n.Label.displayName;
499
+ const Ue = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(n.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
500
+ Ue.displayName = n.Separator.displayName;
501
+ const qe = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...a });
502
+ qe.displayName = "DropdownMenuShortcut";
503
+ const Je = r.forwardRef(({ className: e, orientation: a = "horizontal", decorative: t = !0, ...d }, l) => /* @__PURE__ */ o.jsx(
504
+ _.Root,
505
+ {
506
+ ref: l,
507
+ decorative: t,
508
+ orientation: a,
509
+ className: s("shrink-0 bg-border", a === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
510
+ ...d
511
+ }
512
+ ));
513
+ Je.displayName = _.Root.displayName;
514
+ const Ke = 1, Qe = 1e6;
515
+ let C = 0;
516
+ function Xe() {
517
+ return C = (C + 1) % Number.MAX_VALUE, C.toString();
518
+ }
519
+ const R = /* @__PURE__ */ new Map(), k = (e) => {
520
+ if (R.has(e))
521
+ return;
522
+ const a = setTimeout(() => {
523
+ R.delete(e), y({
524
+ type: "REMOVE_TOAST",
525
+ toastId: e
526
+ });
527
+ }, Qe);
528
+ R.set(e, a);
529
+ }, Ye = (e, a) => {
530
+ switch (a.type) {
531
+ case "ADD_TOAST":
532
+ return {
533
+ ...e,
534
+ toasts: [a.toast, ...e.toasts].slice(0, Ke)
535
+ };
536
+ case "UPDATE_TOAST":
537
+ return {
538
+ ...e,
539
+ toasts: e.toasts.map((t) => t.id === a.toast.id ? { ...t, ...a.toast } : t)
540
+ };
541
+ case "DISMISS_TOAST": {
542
+ const { toastId: t } = a;
543
+ return t ? k(t) : e.toasts.forEach((d) => {
544
+ k(d.id);
545
+ }), {
546
+ ...e,
547
+ toasts: e.toasts.map(
548
+ (d) => d.id === t || t === void 0 ? {
549
+ ...d,
550
+ open: !1
551
+ } : d
552
+ )
553
+ };
554
+ }
555
+ case "REMOVE_TOAST":
556
+ return a.toastId === void 0 ? {
557
+ ...e,
558
+ toasts: []
559
+ } : {
560
+ ...e,
561
+ toasts: e.toasts.filter((t) => t.id !== a.toastId)
562
+ };
563
+ }
564
+ }, w = [];
565
+ let v = { toasts: [] };
566
+ function y(e) {
567
+ v = Ye(v, e), w.forEach((a) => {
568
+ a(v);
569
+ });
570
+ }
571
+ function $e({ ...e }) {
572
+ const a = Xe(), t = (l) => y({
573
+ type: "UPDATE_TOAST",
574
+ toast: { ...l, id: a }
575
+ }), d = () => y({ type: "DISMISS_TOAST", toastId: a });
576
+ return y({
577
+ type: "ADD_TOAST",
578
+ toast: {
579
+ ...e,
580
+ id: a,
581
+ open: !0,
582
+ onOpenChange: (l) => {
583
+ l || d();
584
+ }
585
+ }
586
+ }), {
587
+ id: a,
588
+ dismiss: d,
589
+ update: t
590
+ };
591
+ }
592
+ function We() {
593
+ const [e, a] = r.useState(v);
594
+ return r.useEffect(() => (w.push(a), () => {
595
+ const t = w.indexOf(a);
596
+ t > -1 && w.splice(t, 1);
597
+ }), [e]), {
598
+ ...e,
599
+ toast: $e,
600
+ dismiss: (t) => y({ type: "DISMISS_TOAST", toastId: t })
601
+ };
602
+ }
603
+ const Ze = u.Provider, F = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
604
+ u.Viewport,
605
+ {
606
+ ref: t,
607
+ className: s(
608
+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
609
+ e
610
+ ),
611
+ ...a
612
+ }
613
+ ));
614
+ F.displayName = u.Viewport.displayName;
615
+ const ea = D(
616
+ "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 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
617
+ {
618
+ variants: {
619
+ variant: {
620
+ default: "border bg-background",
621
+ destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
622
+ }
623
+ },
624
+ defaultVariants: {
625
+ variant: "default"
626
+ }
627
+ }
628
+ ), B = r.forwardRef(({ className: e, variant: a, ...t }, d) => /* @__PURE__ */ o.jsx(u.Root, { ref: d, className: s(ea({ variant: a }), e), ...t }));
629
+ B.displayName = u.Root.displayName;
630
+ const aa = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
631
+ u.Action,
632
+ {
633
+ ref: t,
634
+ className: s(
635
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
636
+ e
637
+ ),
638
+ ...a
639
+ }
640
+ ));
641
+ aa.displayName = u.Action.displayName;
642
+ const U = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
643
+ u.Close,
644
+ {
645
+ ref: t,
646
+ className: s(
647
+ "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
648
+ e
649
+ ),
650
+ "toast-close": "",
651
+ ...a,
652
+ children: /* @__PURE__ */ o.jsx(A, { className: "h-4 w-4" })
653
+ }
654
+ ));
655
+ U.displayName = u.Close.displayName;
656
+ const q = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(u.Title, { ref: t, className: s("text-sm font-semibold [&+div]:text-xs", e), ...a }));
657
+ q.displayName = u.Title.displayName;
658
+ const J = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(u.Description, { ref: t, className: s("text-sm opacity-90", e), ...a }));
659
+ J.displayName = u.Description.displayName;
660
+ function Ja() {
661
+ const { toasts: e } = We();
662
+ return /* @__PURE__ */ o.jsxs(Ze, { children: [
663
+ e.map(({ id: a, title: t, description: d, action: l, ...Q }) => /* @__PURE__ */ o.jsxs(B, { ...Q, children: [
664
+ /* @__PURE__ */ o.jsxs("div", { className: "grid gap-1", children: [
665
+ t && /* @__PURE__ */ o.jsx(q, { children: t }),
666
+ d && /* @__PURE__ */ o.jsx(J, { children: d })
667
+ ] }),
668
+ l,
669
+ /* @__PURE__ */ o.jsx(U, {})
670
+ ] }, a)),
671
+ /* @__PURE__ */ o.jsx(F, {})
672
+ ] });
673
+ }
674
+ const Ka = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: s("animate-pulse rounded-md bg-primary/10", e), ...a }), K = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
675
+ p,
676
+ {
677
+ ref: t,
678
+ className: s(
679
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
680
+ e
681
+ ),
682
+ ...a
683
+ }
684
+ ));
685
+ K.displayName = p.displayName;
686
+ const Qa = ({ children: e, ...a }) => /* @__PURE__ */ o.jsx(ce, { ...a, children: /* @__PURE__ */ o.jsx(G, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o.jsx(K, { 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 }) }) }), ta = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
687
+ /* @__PURE__ */ o.jsx($, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
688
+ /* @__PURE__ */ o.jsx(
689
+ p.Input,
690
+ {
691
+ ref: t,
692
+ className: s(
693
+ "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",
694
+ e
695
+ ),
696
+ ...a
697
+ }
698
+ )
699
+ ] }));
700
+ ta.displayName = p.Input.displayName;
701
+ const oa = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
702
+ p.List,
703
+ {
704
+ ref: t,
705
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
706
+ ...a
707
+ }
708
+ ));
709
+ oa.displayName = p.List.displayName;
710
+ const sa = r.forwardRef((e, a) => /* @__PURE__ */ o.jsx(p.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
711
+ sa.displayName = p.Empty.displayName;
712
+ const ra = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
713
+ p.Group,
714
+ {
715
+ ref: t,
716
+ className: s(
717
+ "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",
718
+ e
719
+ ),
720
+ ...a
721
+ }
722
+ ));
723
+ ra.displayName = p.Group.displayName;
724
+ const da = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(p.Separator, { ref: t, className: s("-mx-1 h-px bg-border", e), ...a }));
725
+ da.displayName = p.Separator.displayName;
726
+ const na = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
727
+ p.Item,
728
+ {
729
+ ref: t,
730
+ className: s(
731
+ "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",
732
+ e
733
+ ),
734
+ ...a
735
+ }
736
+ ));
737
+ na.displayName = p.Item.displayName;
738
+ const ia = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
739
+ ia.displayName = "CommandShortcut";
740
+ const Xa = i.Root, Ya = i.Trigger, $a = i.Group, Wa = i.Portal, Za = i.Sub, et = i.RadioGroup, la = r.forwardRef(({ className: e, inset: a, children: t, ...d }, l) => /* @__PURE__ */ o.jsxs(
741
+ i.SubTrigger,
742
+ {
743
+ ref: l,
744
+ className: s(
745
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
746
+ a && "pl-8",
747
+ e
748
+ ),
749
+ ...d,
750
+ children: [
751
+ t,
752
+ /* @__PURE__ */ o.jsx(M, { className: "ml-auto h-4 w-4" })
753
+ ]
754
+ }
755
+ ));
756
+ la.displayName = i.SubTrigger.displayName;
757
+ const ca = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
758
+ i.SubContent,
759
+ {
760
+ ref: t,
761
+ className: s(
762
+ "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",
763
+ e
764
+ ),
765
+ ...a
766
+ }
767
+ ));
768
+ ca.displayName = i.SubContent.displayName;
769
+ const ma = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(i.Portal, { children: /* @__PURE__ */ o.jsx(
770
+ i.Content,
771
+ {
772
+ ref: t,
773
+ className: s(
774
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",
775
+ e
776
+ ),
777
+ ...a
778
+ }
779
+ ) }));
780
+ ma.displayName = i.Content.displayName;
781
+ const pa = r.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
782
+ i.Item,
783
+ {
784
+ ref: d,
785
+ className: s(
786
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
787
+ a && "pl-8",
788
+ e
789
+ ),
790
+ ...t
791
+ }
792
+ ));
793
+ pa.displayName = i.Item.displayName;
794
+ const fa = r.forwardRef(({ className: e, children: a, checked: t, ...d }, l) => /* @__PURE__ */ o.jsxs(
795
+ i.CheckboxItem,
796
+ {
797
+ ref: l,
798
+ className: s(
799
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
800
+ e
801
+ ),
802
+ checked: t,
803
+ ...d,
804
+ children: [
805
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(i.ItemIndicator, { children: /* @__PURE__ */ o.jsx(S, { className: "h-4 w-4" }) }) }),
806
+ a
807
+ ]
808
+ }
809
+ ));
810
+ fa.displayName = i.CheckboxItem.displayName;
811
+ const ua = r.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(
812
+ i.RadioItem,
813
+ {
814
+ ref: d,
815
+ className: s(
816
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
817
+ e
818
+ ),
819
+ ...t,
820
+ children: [
821
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(i.ItemIndicator, { children: /* @__PURE__ */ o.jsx(P, { className: "h-4 w-4 fill-current" }) }) }),
822
+ a
823
+ ]
824
+ }
825
+ ));
826
+ ua.displayName = i.RadioItem.displayName;
827
+ const xa = r.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
828
+ i.Label,
829
+ {
830
+ ref: d,
831
+ className: s("px-2 py-1.5 text-sm font-semibold text-foreground", a && "pl-8", e),
832
+ ...t
833
+ }
834
+ ));
835
+ xa.displayName = i.Label.displayName;
836
+ const ga = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(i.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-border", e), ...a }));
837
+ ga.displayName = i.Separator.displayName;
838
+ const ba = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
839
+ ba.displayName = "ContextMenuShortcut";
840
+ export {
841
+ oe as $,
842
+ Te as A,
843
+ Se as B,
844
+ Xa as C,
845
+ ce as D,
846
+ De as E,
847
+ W as F,
848
+ ja as G,
849
+ Z as H,
850
+ ee as I,
851
+ ae as J,
852
+ We as K,
853
+ je as L,
854
+ we as M,
855
+ ka as N,
856
+ Ga as O,
857
+ Pa as P,
858
+ Ha as Q,
859
+ Ve as R,
860
+ Ka as S,
861
+ Aa as T,
862
+ Re as U,
863
+ Be as V,
864
+ Ue as W,
865
+ Fa as X,
866
+ Ge as Y,
867
+ qe as Z,
868
+ Ra as _,
869
+ Ya as a,
870
+ se as a0,
871
+ de as a1,
872
+ Ta as a2,
873
+ ne as a3,
874
+ re as a4,
875
+ le as a5,
876
+ ie as a6,
877
+ He as a7,
878
+ _a as a8,
879
+ Oa as a9,
880
+ da as aA,
881
+ fa as aB,
882
+ ua as aC,
883
+ xa as aD,
884
+ ga as aE,
885
+ ba as aF,
886
+ $a as aG,
887
+ Wa as aH,
888
+ Za as aI,
889
+ ca as aJ,
890
+ la as aK,
891
+ et as aL,
892
+ Ae as aa,
893
+ Je as ab,
894
+ Ca as ac,
895
+ La as ad,
896
+ Me as ae,
897
+ Va as af,
898
+ Pe as ag,
899
+ _e as ah,
900
+ Ia as ai,
901
+ Ja as aj,
902
+ te as ak,
903
+ be as al,
904
+ H as am,
905
+ Ea as an,
906
+ ze as ao,
907
+ Oe as ap,
908
+ Fe as aq,
909
+ Ba as ar,
910
+ Ua as as,
911
+ Ee as at,
912
+ Le as au,
913
+ qa as av,
914
+ Ye as aw,
915
+ $e as ax,
916
+ Qa as ay,
917
+ ia as az,
918
+ ma as b,
919
+ pa as c,
920
+ Ma as d,
921
+ ke as e,
922
+ xe as f,
923
+ ge as g,
924
+ Ne as h,
925
+ ye as i,
926
+ Ce as j,
927
+ he as k,
928
+ Sa as l,
929
+ G as m,
930
+ me as n,
931
+ fe as o,
932
+ ue as p,
933
+ pe as q,
934
+ za as r,
935
+ Ie as s,
936
+ K as t,
937
+ ta as u,
938
+ oa as v,
939
+ sa as w,
940
+ ra as x,
941
+ na as y,
942
+ Da as z
943
+ };