@yanolja-next/next-hub-ui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +30 -0
  2. package/css/index.css +3070 -0
  3. package/dist/index.cjs +1 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +2942 -0
  6. package/dist/src/components/alert.d.ts +9 -0
  7. package/dist/src/components/assistant-ui/assistant-sidebar.d.ts +2 -0
  8. package/dist/src/components/assistant-ui/attachment.d.ts +4 -0
  9. package/dist/src/components/assistant-ui/markdown-text.d.ts +1 -0
  10. package/dist/src/components/assistant-ui/thread.d.ts +7 -0
  11. package/dist/src/components/assistant-ui/tool-fallback.d.ts +31 -0
  12. package/dist/src/components/assistant-ui/tooltip-icon-button.d.ts +7 -0
  13. package/dist/src/components/avatar.d.ts +11 -0
  14. package/dist/src/components/breadcrumb.d.ts +11 -0
  15. package/dist/src/components/button.d.ts +10 -0
  16. package/dist/src/components/card.d.ts +9 -0
  17. package/dist/src/components/collapsible.d.ts +5 -0
  18. package/dist/src/components/dialog.d.ts +17 -0
  19. package/dist/src/components/dropdown-menu.d.ts +25 -0
  20. package/dist/src/components/field.d.ts +24 -0
  21. package/dist/src/components/input.d.ts +3 -0
  22. package/dist/src/components/label.d.ts +4 -0
  23. package/dist/src/components/radio-group.d.ts +5 -0
  24. package/dist/src/components/resizable.d.ts +7 -0
  25. package/dist/src/components/select.d.ts +15 -0
  26. package/dist/src/components/separator.d.ts +4 -0
  27. package/dist/src/components/sheet.d.ts +13 -0
  28. package/dist/src/components/sidebar.d.ts +69 -0
  29. package/dist/src/components/skeleton.d.ts +2 -0
  30. package/dist/src/components/switch.d.ts +4 -0
  31. package/dist/src/components/table.d.ts +14 -0
  32. package/dist/src/components/textarea.d.ts +3 -0
  33. package/dist/src/components/tooltip.d.ts +7 -0
  34. package/dist/src/components/typography.d.ts +9 -0
  35. package/dist/src/hooks/use-mobile.d.ts +1 -0
  36. package/dist/src/index.d.ts +28 -0
  37. package/dist/src/lib/utils.d.ts +2 -0
  38. package/dist/vite.config.d.ts +2 -0
  39. package/package.json +74 -0
package/dist/index.js ADDED
@@ -0,0 +1,2942 @@
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
+ import { cva as L } from "class-variance-authority";
3
+ import { clsx as Sn } from "clsx";
4
+ import { twMerge as In } from "tailwind-merge";
5
+ import { MessagePrimitive as C, ComposerPrimitive as h, useAui as Tn, useAuiState as F, AttachmentPrimitive as $, useScrollLock as _n, ThreadPrimitive as T, AuiIf as D, SuggestionPrimitive as V, ActionBarPrimitive as _, ActionBarMorePrimitive as j, BranchPickerPrimitive as A, ErrorPrimitive as tn } from "@assistant-ui/react";
6
+ import { XIcon as W, PlusIcon as Rn, FileText as Mn, CopyIcon as pn, CheckIcon as P, ChevronDownIcon as K, LoaderIcon as An, XCircleIcon as Dn, AlertCircleIcon as Pn, ArrowDownIcon as Bn, ArrowUpIcon as En, SquareIcon as jn, RefreshCwIcon as Fn, MoreHorizontalIcon as Ln, DownloadIcon as Gn, PencilIcon as On, ChevronLeftIcon as Un, ChevronRightIcon as sn, GripVerticalIcon as Vn, ChevronRight as Hn, MoreHorizontal as $n, CircleIcon as ln, ChevronUpIcon as qn, PanelLeftIcon as Wn } from "lucide-react";
7
+ import * as f from "react";
8
+ import Kn, { forwardRef as Xn, useState as G, useEffect as Jn, memo as dn, useRef as Yn, useCallback as Qn, useMemo as Zn } from "react";
9
+ import { useShallow as ne } from "zustand/shallow";
10
+ import { Slottable as ee, Slot as M } from "@radix-ui/react-slot";
11
+ import { Slot as te, Tooltip as R, Avatar as X, Dialog as v, Collapsible as J, RadioGroup as q } from "radix-ui";
12
+ import { unstable_memoizeMarkdownComponents as ce, useIsMarkdownCodeBlock as ae, MarkdownTextPrimitive as re } from "@assistant-ui/react-markdown";
13
+ import oe from "remark-gfm";
14
+ import * as Y from "react-resizable-panels";
15
+ import * as d from "@radix-ui/react-dropdown-menu";
16
+ import * as pe from "@radix-ui/react-label";
17
+ import * as ie from "@radix-ui/react-separator";
18
+ import * as u from "@radix-ui/react-select";
19
+ import * as S from "@radix-ui/react-dialog";
20
+ import * as cn from "@radix-ui/react-switch";
21
+ function a(...n) {
22
+ return In(Sn(n));
23
+ }
24
+ const se = L(
25
+ "ncp:relative ncp:w-full ncp:rounded-lg ncp:border ncp:px-4 ncp:py-3 ncp:text-sm ncp:grid ncp:has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] ncp:grid-cols-[0_1fr] ncp:has-[>svg]:gap-x-3 ncp:gap-y-0.5 ncp:items-start ncp:[&>svg]:size-4 ncp:[&>svg]:translate-y-0.5 ncp:[&>svg]:text-current",
26
+ {
27
+ variants: {
28
+ variant: {
29
+ default: "ncp:bg-card ncp:text-card-foreground",
30
+ destructive: "ncp:text-destructive ncp:bg-card ncp:[&>svg]:text-current ncp:*:data-[slot=alert-description]:text-destructive/90"
31
+ }
32
+ },
33
+ defaultVariants: {
34
+ variant: "default"
35
+ }
36
+ }
37
+ );
38
+ function At({
39
+ className: n,
40
+ variant: t,
41
+ ...c
42
+ }) {
43
+ return /* @__PURE__ */ e(
44
+ "div",
45
+ {
46
+ "data-slot": "alert",
47
+ role: "alert",
48
+ className: a(se({ variant: t }), n),
49
+ ...c
50
+ }
51
+ );
52
+ }
53
+ function Dt({ className: n, ...t }) {
54
+ return /* @__PURE__ */ e(
55
+ "div",
56
+ {
57
+ "data-slot": "alert-title",
58
+ className: a(
59
+ "ncp:col-start-2 ncp:line-clamp-1 ncp:min-h-4 ncp:font-medium ncp:tracking-tight",
60
+ n
61
+ ),
62
+ ...t
63
+ }
64
+ );
65
+ }
66
+ function Pt({ className: n, ...t }) {
67
+ return /* @__PURE__ */ e(
68
+ "div",
69
+ {
70
+ "data-slot": "alert-description",
71
+ className: a(
72
+ "ncp:text-muted-foreground ncp:col-start-2 ncp:grid ncp:justify-items-start ncp:gap-1 ncp:text-sm ncp:[&_p]:leading-relaxed",
73
+ n
74
+ ),
75
+ ...t
76
+ }
77
+ );
78
+ }
79
+ const le = L(
80
+ "ncp:inline-flex ncp:items-center ncp:justify-center ncp:gap-2 ncp:whitespace-nowrap ncp:rounded-md ncp:text-sm ncp:font-medium ncp:transition-all ncp:disabled:pointer-events-none ncp:disabled:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg:not([class*=size-])]:size-4 ncp:shrink-0 ncp:[&_svg]:shrink-0 ncp:outline-none ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:focus-visible:ring-[3px] ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive",
81
+ {
82
+ variants: {
83
+ variant: {
84
+ default: "ncp:bg-primary ncp:text-primary-foreground ncp:hover:bg-primary/90",
85
+ destructive: "ncp:bg-destructive ncp:text-white ncp:hover:bg-destructive/90 ncp:focus-visible:ring-destructive/20 ncp:dark:focus-visible:ring-destructive/40 ncp:dark:bg-destructive/60",
86
+ outline: "ncp:border ncp:bg-background ncp:shadow-xs ncp:hover:bg-accent ncp:hover:text-accent-foreground ncp:dark:bg-input/30 ncp:dark:border-input ncp:dark:hover:bg-input/50",
87
+ secondary: "ncp:bg-secondary ncp:text-secondary-foreground ncp:hover:bg-secondary/80",
88
+ ghost: "ncp:hover:bg-accent ncp:hover:text-accent-foreground ncp:dark:hover:bg-accent/50",
89
+ link: "ncp:text-primary ncp:underline-offset-4 ncp:hover:underline"
90
+ },
91
+ size: {
92
+ default: "ncp:h-9 ncp:px-4 ncp:py-2 ncp:has-[>svg]:px-3",
93
+ xs: "ncp:h-6 ncp:gap-1 ncp:rounded-md ncp:px-2 ncp:text-xs ncp:has-[>svg]:px-1.5 ncp:[&_svg:not([class*=size-])]:size-3",
94
+ sm: "ncp:h-8 ncp:rounded-md ncp:gap-1.5 ncp:px-3 ncp:has-[>svg]:px-2.5",
95
+ lg: "ncp:h-10 ncp:rounded-md ncp:px-6 ncp:has-[>svg]:px-4",
96
+ icon: "ncp:size-9",
97
+ "icon-xs": "ncp:size-6 ncp:rounded-md ncp:[&_svg:not([class*=size-])]:size-3",
98
+ "icon-sm": "ncp:size-8",
99
+ "icon-lg": "ncp:size-10"
100
+ }
101
+ },
102
+ defaultVariants: {
103
+ variant: "default",
104
+ size: "default"
105
+ }
106
+ }
107
+ );
108
+ function I({
109
+ className: n,
110
+ variant: t = "default",
111
+ size: c = "default",
112
+ asChild: r = !1,
113
+ ...p
114
+ }) {
115
+ const i = r ? te.Root : "button";
116
+ return /* @__PURE__ */ e(
117
+ i,
118
+ {
119
+ "data-slot": "button",
120
+ "data-variant": t,
121
+ "data-size": c,
122
+ className: a(le({ variant: t, size: c, className: n })),
123
+ ...p
124
+ }
125
+ );
126
+ }
127
+ function un({
128
+ delayDuration: n = 0,
129
+ ...t
130
+ }) {
131
+ return /* @__PURE__ */ e(
132
+ R.Provider,
133
+ {
134
+ "data-slot": "tooltip-provider",
135
+ delayDuration: n,
136
+ ...t
137
+ }
138
+ );
139
+ }
140
+ function Q({ ...n }) {
141
+ return /* @__PURE__ */ e(un, { children: /* @__PURE__ */ e(R.Root, { "data-slot": "tooltip", ...n }) });
142
+ }
143
+ function Z({ ...n }) {
144
+ return /* @__PURE__ */ e(R.Trigger, { "data-slot": "tooltip-trigger", ...n });
145
+ }
146
+ function nn({
147
+ className: n,
148
+ sideOffset: t = 0,
149
+ children: c,
150
+ ...r
151
+ }) {
152
+ return /* @__PURE__ */ e(R.Portal, { children: /* @__PURE__ */ o(
153
+ R.Content,
154
+ {
155
+ "data-slot": "tooltip-content",
156
+ sideOffset: t,
157
+ className: a(
158
+ "ncp:bg-foreground ncp:text-background ncp:animate-in ncp:fade-in-0 ncp:zoom-in-95 ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:z-50 ncp:w-fit ncp:origin-(--radix-tooltip-content-transform-origin) ncp:rounded-md ncp:px-3 ncp:py-1.5 ncp:text-xs ncp:text-balance",
159
+ n
160
+ ),
161
+ ...r,
162
+ children: [
163
+ c,
164
+ /* @__PURE__ */ e(R.Arrow, { className: "ncp:bg-foreground ncp:fill-foreground ncp:z-50 ncp:size-2.5 ncp:translate-y-[calc(-50%_-_2px)] ncp:rotate-45 ncp:rounded-[2px]" })
165
+ ]
166
+ }
167
+ ) });
168
+ }
169
+ const g = Xn(
170
+ ({ children: n, tooltip: t, side: c = "bottom", className: r, ...p }, i) => /* @__PURE__ */ o(Q, { children: [
171
+ /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ o(
172
+ I,
173
+ {
174
+ variant: "ghost",
175
+ size: "icon",
176
+ ...p,
177
+ className: a("ncp:aui-button-icon ncp:size-6 ncp:p-1", r),
178
+ ref: i,
179
+ children: [
180
+ /* @__PURE__ */ e(ee, { children: n }),
181
+ /* @__PURE__ */ e("span", { className: "ncp:aui-sr-only ncp:sr-only", children: t })
182
+ ]
183
+ }
184
+ ) }),
185
+ /* @__PURE__ */ e(nn, { side: c, children: t })
186
+ ] })
187
+ );
188
+ g.displayName = "TooltipIconButton";
189
+ function de({
190
+ className: n,
191
+ size: t = "default",
192
+ ...c
193
+ }) {
194
+ return /* @__PURE__ */ e(
195
+ X.Root,
196
+ {
197
+ "data-slot": "avatar",
198
+ "data-size": t,
199
+ className: a(
200
+ "ncp:group/avatar ncp:relative ncp:flex ncp:size-8 ncp:shrink-0 ncp:overflow-hidden ncp:rounded-full ncp:select-none ncp:data-[size=lg]:size-10 ncp:data-[size=sm]:size-6",
201
+ n
202
+ ),
203
+ ...c
204
+ }
205
+ );
206
+ }
207
+ function ue({ className: n, ...t }) {
208
+ return /* @__PURE__ */ e(
209
+ X.Image,
210
+ {
211
+ "data-slot": "avatar-image",
212
+ className: a("ncp:aspect-square ncp:size-full", n),
213
+ ...t
214
+ }
215
+ );
216
+ }
217
+ function me({
218
+ className: n,
219
+ ...t
220
+ }) {
221
+ return /* @__PURE__ */ e(
222
+ X.Fallback,
223
+ {
224
+ "data-slot": "avatar-fallback",
225
+ className: a(
226
+ "ncp:bg-muted ncp:text-muted-foreground ncp:flex ncp:size-full ncp:items-center ncp:justify-center ncp:rounded-full ncp:text-sm ncp:group-data-[size=sm]/avatar:text-xs",
227
+ n
228
+ ),
229
+ ...t
230
+ }
231
+ );
232
+ }
233
+ function Bt({ className: n, ...t }) {
234
+ return /* @__PURE__ */ e(
235
+ "span",
236
+ {
237
+ "data-slot": "avatar-badge",
238
+ className: a(
239
+ "ncp:bg-primary ncp:text-primary-foreground ncp:ring-background ncp:absolute ncp:right-0 ncp:bottom-0 ncp:z-10 ncp:inline-flex ncp:items-center ncp:justify-center ncp:rounded-full ncp:ring-2 ncp:select-none",
240
+ "ncp:group-data-[size=sm]/avatar:size-2 ncp:group-data-[size=sm]/avatar:[&>svg]:hidden",
241
+ "ncp:group-data-[size=default]/avatar:size-2.5 ncp:group-data-[size=default]/avatar:[&>svg]:size-2",
242
+ "ncp:group-data-[size=lg]/avatar:size-3 ncp:group-data-[size=lg]/avatar:[&>svg]:size-2",
243
+ n
244
+ ),
245
+ ...t
246
+ }
247
+ );
248
+ }
249
+ function Et({ className: n, ...t }) {
250
+ return /* @__PURE__ */ e(
251
+ "div",
252
+ {
253
+ "data-slot": "avatar-group",
254
+ className: a(
255
+ "ncp:*:data-[slot=avatar]:ring-background ncp:group/avatar-group ncp:flex ncp:-space-x-2 ncp:*:data-[slot=avatar]:ring-2",
256
+ n
257
+ ),
258
+ ...t
259
+ }
260
+ );
261
+ }
262
+ function jt({ className: n, ...t }) {
263
+ return /* @__PURE__ */ e(
264
+ "div",
265
+ {
266
+ "data-slot": "avatar-group-count",
267
+ className: a(
268
+ "ncp:bg-muted ncp:text-muted-foreground ncp:ring-background ncp:relative ncp:flex ncp:size-8 ncp:shrink-0 ncp:items-center ncp:justify-center ncp:rounded-full ncp:text-sm ncp:ring-2 ncp:group-has-data-[size=lg]/avatar-group:size-10 ncp:group-has-data-[size=sm]/avatar-group:size-6 ncp:[&>svg]:size-4 ncp:group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 ncp:group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
269
+ n
270
+ ),
271
+ ...t
272
+ }
273
+ );
274
+ }
275
+ function fe({ ...n }) {
276
+ return /* @__PURE__ */ e(v.Root, { "data-slot": "dialog", ...n });
277
+ }
278
+ function ge({ ...n }) {
279
+ return /* @__PURE__ */ e(v.Trigger, { "data-slot": "dialog-trigger", ...n });
280
+ }
281
+ function be({ ...n }) {
282
+ return /* @__PURE__ */ e(v.Portal, { "data-slot": "dialog-portal", ...n });
283
+ }
284
+ function Ft({ ...n }) {
285
+ return /* @__PURE__ */ e(v.Close, { "data-slot": "dialog-close", ...n });
286
+ }
287
+ function he({
288
+ className: n,
289
+ ...t
290
+ }) {
291
+ return /* @__PURE__ */ e(
292
+ v.Overlay,
293
+ {
294
+ "data-slot": "dialog-overlay",
295
+ className: a(
296
+ "ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:fixed ncp:inset-0 ncp:z-50 ncp:bg-black/50",
297
+ n
298
+ ),
299
+ ...t
300
+ }
301
+ );
302
+ }
303
+ function xe({
304
+ className: n,
305
+ children: t,
306
+ showCloseButton: c = !0,
307
+ ...r
308
+ }) {
309
+ return /* @__PURE__ */ o(be, { "data-slot": "dialog-portal", children: [
310
+ /* @__PURE__ */ e(he, {}),
311
+ /* @__PURE__ */ o(
312
+ v.Content,
313
+ {
314
+ "data-slot": "dialog-content",
315
+ className: a(
316
+ "ncp:bg-background ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:fixed ncp:top-[50%] ncp:left-[50%] ncp:z-50 ncp:grid ncp:w-full ncp:max-w-[calc(100%-2rem)] ncp:translate-x-[-50%] ncp:translate-y-[-50%] ncp:gap-4 ncp:rounded-lg ncp:border ncp:p-6 ncp:shadow-lg ncp:duration-200 ncp:outline-none ncp:sm:max-w-lg",
317
+ n
318
+ ),
319
+ ...r,
320
+ children: [
321
+ t,
322
+ c && /* @__PURE__ */ o(
323
+ v.Close,
324
+ {
325
+ "data-slot": "dialog-close",
326
+ className: "ncp:ring-offset-background ncp:focus:ring-ring ncp:data-[state=open]:bg-accent ncp:data-[state=open]:text-muted-foreground ncp:absolute ncp:top-4 ncp:right-4 ncp:rounded-xs ncp:opacity-70 ncp:transition-opacity ncp:hover:opacity-100 ncp:focus:ring-2 ncp:focus:ring-offset-2 ncp:focus:outline-hidden ncp:disabled:pointer-events-none ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",
327
+ children: [
328
+ /* @__PURE__ */ e(W, {}),
329
+ /* @__PURE__ */ e("span", { className: "ncp:sr-only", children: "Close" })
330
+ ]
331
+ }
332
+ )
333
+ ]
334
+ }
335
+ )
336
+ ] });
337
+ }
338
+ function Lt({ className: n, ...t }) {
339
+ return /* @__PURE__ */ e(
340
+ "div",
341
+ {
342
+ "data-slot": "dialog-header",
343
+ className: a("ncp:flex ncp:flex-col ncp:gap-2 ncp:text-center ncp:sm:text-left", n),
344
+ ...t
345
+ }
346
+ );
347
+ }
348
+ function Gt({
349
+ className: n,
350
+ showCloseButton: t = !1,
351
+ children: c,
352
+ ...r
353
+ }) {
354
+ return /* @__PURE__ */ o(
355
+ "div",
356
+ {
357
+ "data-slot": "dialog-footer",
358
+ className: a(
359
+ "ncp:flex ncp:flex-col-reverse ncp:gap-2 ncp:sm:flex-row ncp:sm:justify-end",
360
+ n
361
+ ),
362
+ ...r,
363
+ children: [
364
+ c,
365
+ t && /* @__PURE__ */ e(v.Close, { asChild: !0, children: /* @__PURE__ */ e(I, { variant: "outline", children: "Close" }) })
366
+ ]
367
+ }
368
+ );
369
+ }
370
+ function ve({ className: n, ...t }) {
371
+ return /* @__PURE__ */ e(
372
+ v.Title,
373
+ {
374
+ "data-slot": "dialog-title",
375
+ className: a("ncp:text-lg ncp:leading-none ncp:font-semibold", n),
376
+ ...t
377
+ }
378
+ );
379
+ }
380
+ function Ot({
381
+ className: n,
382
+ ...t
383
+ }) {
384
+ return /* @__PURE__ */ e(
385
+ v.Description,
386
+ {
387
+ "data-slot": "dialog-description",
388
+ className: a("ncp:text-muted-foreground ncp:text-sm", n),
389
+ ...t
390
+ }
391
+ );
392
+ }
393
+ const we = (n) => {
394
+ const [t, c] = G(void 0);
395
+ return Jn(() => {
396
+ if (!n) {
397
+ c(void 0);
398
+ return;
399
+ }
400
+ const r = URL.createObjectURL(n);
401
+ return c(r), () => {
402
+ URL.revokeObjectURL(r);
403
+ };
404
+ }, [n]), t;
405
+ }, mn = () => {
406
+ const { file: n, src: t } = F(
407
+ ne((c) => {
408
+ var p, i;
409
+ if (c.attachment.type !== "image")
410
+ return {};
411
+ if (c.attachment.file)
412
+ return { file: c.attachment.file };
413
+ const r = (i = (p = c.attachment.content) == null ? void 0 : p.filter((l) => l.type === "image")[0]) == null ? void 0 : i.image;
414
+ return r ? { src: r } : {};
415
+ })
416
+ );
417
+ return we(n) ?? t;
418
+ }, Ne = ({ src: n }) => {
419
+ const [t, c] = G(!1);
420
+ return /* @__PURE__ */ e(
421
+ "img",
422
+ {
423
+ src: n,
424
+ alt: "Attachment preview",
425
+ className: a(
426
+ "ncp:block ncp:h-auto ncp:max-h-[80vh] ncp:w-auto ncp:max-w-full ncp:object-contain",
427
+ t ? "ncp:aui-attachment-preview-image-loaded" : "ncp:aui-attachment-preview-image-loading ncp:invisible"
428
+ ),
429
+ onLoad: () => c(!0)
430
+ }
431
+ );
432
+ }, ye = ({ children: n }) => {
433
+ const t = mn();
434
+ return t ? /* @__PURE__ */ o(fe, { children: [
435
+ /* @__PURE__ */ e(
436
+ ge,
437
+ {
438
+ className: "ncp:aui-attachment-preview-trigger ncp:cursor-pointer ncp:transition-colors ncp:hover:bg-accent/50",
439
+ asChild: !0,
440
+ children: n
441
+ }
442
+ ),
443
+ /* @__PURE__ */ o(xe, { className: "ncp:aui-attachment-preview-dialog-content ncp:p-2 ncp:sm:max-w-3xl ncp:[&>button]:rounded-full ncp:[&>button]:bg-foreground/60 ncp:[&>button]:p-1 ncp:[&>button]:opacity-100 ncp:[&>button]:ring-0! ncp:[&_svg]:text-background ncp:[&>button]:hover:[&_svg]:text-destructive", children: [
444
+ /* @__PURE__ */ e(ve, { className: "ncp:aui-sr-only ncp:sr-only", children: "Image Attachment Preview" }),
445
+ /* @__PURE__ */ e("div", { className: "ncp:aui-attachment-preview ncp:relative ncp:mx-auto ncp:flex ncp:max-h-[80dvh] ncp:w-full ncp:items-center ncp:justify-center ncp:overflow-hidden ncp:bg-background", children: /* @__PURE__ */ e(Ne, { src: t }) })
446
+ ] })
447
+ ] }) : n;
448
+ }, ke = () => {
449
+ const n = F((c) => c.attachment.type === "image"), t = mn();
450
+ return /* @__PURE__ */ o(de, { className: "ncp:aui-attachment-tile-avatar ncp:h-full ncp:w-full ncp:rounded-none", children: [
451
+ /* @__PURE__ */ e(
452
+ ue,
453
+ {
454
+ src: t,
455
+ alt: "Attachment preview",
456
+ className: "ncp:aui-attachment-tile-image ncp:object-cover"
457
+ }
458
+ ),
459
+ /* @__PURE__ */ e(me, { delayMs: n ? 200 : 0, children: /* @__PURE__ */ e(Mn, { className: "ncp:aui-attachment-tile-fallback-icon ncp:size-8 ncp:text-muted-foreground" }) })
460
+ ] });
461
+ }, fn = () => {
462
+ const t = Tn().attachment.source === "composer", c = F((p) => p.attachment.type === "image"), r = F((p) => {
463
+ const i = p.attachment.type;
464
+ switch (i) {
465
+ case "image":
466
+ return "Image";
467
+ case "document":
468
+ return "Document";
469
+ case "file":
470
+ return "File";
471
+ default: {
472
+ const l = i;
473
+ throw new Error(`Unknown attachment type: ${l}`);
474
+ }
475
+ }
476
+ });
477
+ return /* @__PURE__ */ o(Q, { children: [
478
+ /* @__PURE__ */ o(
479
+ $.Root,
480
+ {
481
+ className: a(
482
+ "ncp:aui-attachment-root ncp:relative",
483
+ c && "ncp:aui-attachment-root-composer ncp:only:[&>#attachment-tile]:size-24"
484
+ ),
485
+ children: [
486
+ /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ e(
487
+ "div",
488
+ {
489
+ className: a(
490
+ "ncp:aui-attachment-tile ncp:size-14 ncp:cursor-pointer ncp:overflow-hidden ncp:rounded-[14px] ncp:border ncp:bg-muted ncp:transition-opacity ncp:hover:opacity-75",
491
+ t && "ncp:aui-attachment-tile-composer ncp:border-foreground/20"
492
+ ),
493
+ role: "button",
494
+ id: "attachment-tile",
495
+ "aria-label": `${r} attachment`,
496
+ children: /* @__PURE__ */ e(ke, {})
497
+ }
498
+ ) }) }),
499
+ t && /* @__PURE__ */ e(ze, {})
500
+ ]
501
+ }
502
+ ),
503
+ /* @__PURE__ */ e(nn, { side: "top", children: /* @__PURE__ */ e($.Name, {}) })
504
+ ] });
505
+ }, ze = () => /* @__PURE__ */ e($.Remove, { asChild: !0, children: /* @__PURE__ */ e(
506
+ g,
507
+ {
508
+ tooltip: "Remove file",
509
+ className: "ncp:aui-attachment-tile-remove ncp:absolute ncp:top-1.5 ncp:right-1.5 ncp:size-3.5 ncp:rounded-full ncp:bg-white ncp:text-muted-foreground ncp:opacity-100 ncp:shadow-sm ncp:hover:bg-white! ncp:[&_svg]:text-black ncp:hover:[&_svg]:text-destructive",
510
+ side: "top",
511
+ children: /* @__PURE__ */ e(W, { className: "ncp:aui-attachment-remove-icon ncp:size-3 ncp:dark:stroke-[2.5px]" })
512
+ }
513
+ ) }), Ce = () => /* @__PURE__ */ e("div", { className: "ncp:aui-user-message-attachments-end ncp:col-span-full ncp:col-start-1 ncp:row-start-1 ncp:flex ncp:w-full ncp:flex-row ncp:justify-end ncp:gap-2", children: /* @__PURE__ */ e(C.Attachments, { components: { Attachment: fn } }) }), Se = () => /* @__PURE__ */ e("div", { className: "ncp:aui-composer-attachments ncp:mb-2 ncp:flex ncp:w-full ncp:flex-row ncp:items-center ncp:gap-2 ncp:overflow-x-auto ncp:px-1.5 ncp:pt-0.5 ncp:pb-1 ncp:empty:hidden", children: /* @__PURE__ */ e(h.Attachments, { components: { Attachment: fn } }) }), Ie = () => /* @__PURE__ */ e(h.AddAttachment, { asChild: !0, children: /* @__PURE__ */ e(
514
+ g,
515
+ {
516
+ tooltip: "Add Attachment",
517
+ side: "bottom",
518
+ variant: "ghost",
519
+ size: "icon",
520
+ className: "ncp:aui-composer-add-attachment ncp:size-8.5 ncp:rounded-full ncp:p-1 ncp:font-semibold ncp:text-xs ncp:hover:bg-muted-foreground/15 ncp:dark:border-muted-foreground/15 ncp:dark:hover:bg-muted-foreground/30",
521
+ "aria-label": "Add Attachment",
522
+ children: /* @__PURE__ */ e(Rn, { className: "ncp:aui-attachment-add-icon ncp:size-5 ncp:stroke-[1.5px]" })
523
+ }
524
+ ) }), Te = () => /* @__PURE__ */ e(
525
+ re,
526
+ {
527
+ remarkPlugins: [oe],
528
+ className: "aui-md",
529
+ components: Ae
530
+ }
531
+ ), _e = dn(Te), Re = ({ language: n, code: t }) => {
532
+ const { isCopied: c, copyToClipboard: r } = Me();
533
+ return /* @__PURE__ */ o("div", { className: "ncp:aui-code-header-root ncp:mt-2.5 ncp:flex ncp:items-center ncp:justify-between ncp:rounded-t-lg ncp:border ncp:border-border/50 ncp:border-b-0 ncp:bg-muted/50 ncp:px-3 ncp:py-1.5 ncp:text-xs", children: [
534
+ /* @__PURE__ */ e("span", { className: "ncp:aui-code-header-language ncp:font-medium ncp:text-muted-foreground ncp:lowercase", children: n }),
535
+ /* @__PURE__ */ o(g, { tooltip: "Copy", onClick: () => {
536
+ !t || c || r(t);
537
+ }, children: [
538
+ !c && /* @__PURE__ */ e(pn, {}),
539
+ c && /* @__PURE__ */ e(P, {})
540
+ ] })
541
+ ] });
542
+ }, Me = ({ copiedDuration: n = 3e3 } = {}) => {
543
+ const [t, c] = G(!1);
544
+ return { isCopied: t, copyToClipboard: (p) => {
545
+ p && navigator.clipboard.writeText(p).then(() => {
546
+ c(!0), setTimeout(() => c(!1), n);
547
+ });
548
+ } };
549
+ }, Ae = ce({
550
+ h1: ({ className: n, ...t }) => /* @__PURE__ */ e(
551
+ "h1",
552
+ {
553
+ className: a(
554
+ "ncp:aui-md-h1 ncp:mb-2 ncp:scroll-m-20 ncp:font-semibold ncp:text-base ncp:first:mt-0 ncp:last:mb-0",
555
+ n
556
+ ),
557
+ ...t
558
+ }
559
+ ),
560
+ h2: ({ className: n, ...t }) => /* @__PURE__ */ e(
561
+ "h2",
562
+ {
563
+ className: a(
564
+ "ncp:aui-md-h2 ncp:mt-3 ncp:mb-1.5 ncp:scroll-m-20 ncp:font-semibold ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",
565
+ n
566
+ ),
567
+ ...t
568
+ }
569
+ ),
570
+ h3: ({ className: n, ...t }) => /* @__PURE__ */ e(
571
+ "h3",
572
+ {
573
+ className: a(
574
+ "ncp:aui-md-h3 ncp:mt-2.5 ncp:mb-1 ncp:scroll-m-20 ncp:font-semibold ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",
575
+ n
576
+ ),
577
+ ...t
578
+ }
579
+ ),
580
+ h4: ({ className: n, ...t }) => /* @__PURE__ */ e(
581
+ "h4",
582
+ {
583
+ className: a(
584
+ "ncp:aui-md-h4 ncp:mt-2 ncp:mb-1 ncp:scroll-m-20 ncp:font-medium ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",
585
+ n
586
+ ),
587
+ ...t
588
+ }
589
+ ),
590
+ h5: ({ className: n, ...t }) => /* @__PURE__ */ e(
591
+ "h5",
592
+ {
593
+ className: a(
594
+ "ncp:aui-md-h5 ncp:mt-2 ncp:mb-1 ncp:font-medium ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",
595
+ n
596
+ ),
597
+ ...t
598
+ }
599
+ ),
600
+ h6: ({ className: n, ...t }) => /* @__PURE__ */ e(
601
+ "h6",
602
+ {
603
+ className: a(
604
+ "ncp:aui-md-h6 ncp:mt-2 ncp:mb-1 ncp:font-medium ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",
605
+ n
606
+ ),
607
+ ...t
608
+ }
609
+ ),
610
+ p: ({ className: n, ...t }) => /* @__PURE__ */ e(
611
+ "p",
612
+ {
613
+ className: a(
614
+ "ncp:aui-md-p ncp:my-2.5 ncp:leading-normal ncp:first:mt-0 ncp:last:mb-0",
615
+ n
616
+ ),
617
+ ...t
618
+ }
619
+ ),
620
+ a: ({ className: n, ...t }) => /* @__PURE__ */ e(
621
+ "a",
622
+ {
623
+ className: a(
624
+ "ncp:aui-md-a ncp:text-primary ncp:underline ncp:underline-offset-2 ncp:hover:text-primary/80",
625
+ n
626
+ ),
627
+ ...t
628
+ }
629
+ ),
630
+ blockquote: ({ className: n, ...t }) => /* @__PURE__ */ e(
631
+ "blockquote",
632
+ {
633
+ className: a(
634
+ "ncp:aui-md-blockquote ncp:my-2.5 ncp:border-muted-foreground/30 ncp:border-l-2 ncp:pl-3 ncp:text-muted-foreground ncp:italic",
635
+ n
636
+ ),
637
+ ...t
638
+ }
639
+ ),
640
+ ul: ({ className: n, ...t }) => /* @__PURE__ */ e(
641
+ "ul",
642
+ {
643
+ className: a(
644
+ "ncp:aui-md-ul ncp:my-2 ncp:ml-4 ncp:list-disc ncp:marker:text-muted-foreground ncp:[&>li]:mt-1",
645
+ n
646
+ ),
647
+ ...t
648
+ }
649
+ ),
650
+ ol: ({ className: n, ...t }) => /* @__PURE__ */ e(
651
+ "ol",
652
+ {
653
+ className: a(
654
+ "ncp:aui-md-ol ncp:my-2 ncp:ml-4 ncp:list-decimal ncp:marker:text-muted-foreground ncp:[&>li]:mt-1",
655
+ n
656
+ ),
657
+ ...t
658
+ }
659
+ ),
660
+ hr: ({ className: n, ...t }) => /* @__PURE__ */ e(
661
+ "hr",
662
+ {
663
+ className: a("ncp:aui-md-hr ncp:my-2 ncp:border-muted-foreground/20", n),
664
+ ...t
665
+ }
666
+ ),
667
+ table: ({ className: n, ...t }) => /* @__PURE__ */ e(
668
+ "table",
669
+ {
670
+ className: a(
671
+ "ncp:aui-md-table ncp:my-2 ncp:w-full ncp:border-separate ncp:border-spacing-0 ncp:overflow-y-auto",
672
+ n
673
+ ),
674
+ ...t
675
+ }
676
+ ),
677
+ th: ({ className: n, ...t }) => /* @__PURE__ */ e(
678
+ "th",
679
+ {
680
+ className: a(
681
+ "ncp:aui-md-th ncp:bg-muted ncp:px-2 ncp:py-1 ncp:text-left ncp:font-medium ncp:first:rounded-tl-lg ncp:last:rounded-tr-lg ncp:[[align=center]]:text-center ncp:[[align=right]]:text-right",
682
+ n
683
+ ),
684
+ ...t
685
+ }
686
+ ),
687
+ td: ({ className: n, ...t }) => /* @__PURE__ */ e(
688
+ "td",
689
+ {
690
+ className: a(
691
+ "ncp:aui-md-td ncp:border-muted-foreground/20 ncp:border-b ncp:border-l ncp:px-2 ncp:py-1 ncp:text-left ncp:last:border-r ncp:[[align=center]]:text-center ncp:[[align=right]]:text-right",
692
+ n
693
+ ),
694
+ ...t
695
+ }
696
+ ),
697
+ tr: ({ className: n, ...t }) => /* @__PURE__ */ e(
698
+ "tr",
699
+ {
700
+ className: a(
701
+ "ncp:aui-md-tr ncp:m-0 ncp:border-b ncp:p-0 ncp:first:border-t ncp:[&:last-child>td:first-child]:rounded-bl-lg ncp:[&:last-child>td:last-child]:rounded-br-lg",
702
+ n
703
+ ),
704
+ ...t
705
+ }
706
+ ),
707
+ li: ({ className: n, ...t }) => /* @__PURE__ */ e("li", { className: a("ncp:aui-md-li ncp:leading-normal", n), ...t }),
708
+ sup: ({ className: n, ...t }) => /* @__PURE__ */ e(
709
+ "sup",
710
+ {
711
+ className: a("ncp:aui-md-sup ncp:[&>a]:text-xs ncp:[&>a]:no-underline", n),
712
+ ...t
713
+ }
714
+ ),
715
+ pre: ({ className: n, ...t }) => /* @__PURE__ */ e(
716
+ "pre",
717
+ {
718
+ className: a(
719
+ "ncp:aui-md-pre ncp:overflow-x-auto ncp:rounded-t-none ncp:rounded-b-lg ncp:border ncp:border-border/50 ncp:border-t-0 ncp:bg-muted/30 ncp:p-3 ncp:text-xs ncp:leading-relaxed",
720
+ n
721
+ ),
722
+ ...t
723
+ }
724
+ ),
725
+ code({ className: n, ...t }) {
726
+ const c = ae();
727
+ return /* @__PURE__ */ e(
728
+ "code",
729
+ {
730
+ className: a(
731
+ !c && "ncp:aui-md-inline-code ncp:rounded-md ncp:border ncp:border-border/50 ncp:bg-muted/50 ncp:px-1.5 ncp:py-0.5 ncp:font-mono ncp:text-[0.85em]",
732
+ n
733
+ ),
734
+ ...t
735
+ }
736
+ );
737
+ },
738
+ CodeHeader: Re
739
+ });
740
+ function De({ ...n }) {
741
+ return /* @__PURE__ */ e(J.Root, { "data-slot": "collapsible", ...n });
742
+ }
743
+ function Pe({
744
+ ...n
745
+ }) {
746
+ return /* @__PURE__ */ e(J.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...n });
747
+ }
748
+ function Be({
749
+ ...n
750
+ }) {
751
+ return /* @__PURE__ */ e(J.CollapsibleContent, { "data-slot": "collapsible-content", ...n });
752
+ }
753
+ const an = 200;
754
+ function gn({
755
+ className: n,
756
+ open: t,
757
+ onOpenChange: c,
758
+ defaultOpen: r = !1,
759
+ children: p,
760
+ ...i
761
+ }) {
762
+ const l = Yn(null), [s, m] = G(r), b = _n(l, an), w = t !== void 0, U = w ? t : s, z = Qn(
763
+ (N) => {
764
+ N || b(), w || m(N), c == null || c(N);
765
+ },
766
+ [b, w, c]
767
+ );
768
+ return /* @__PURE__ */ e(
769
+ De,
770
+ {
771
+ ref: l,
772
+ "data-slot": "tool-fallback-root",
773
+ open: U,
774
+ onOpenChange: z,
775
+ className: a(
776
+ "ncp:aui-tool-fallback-root ncp:group/tool-fallback-root ncp:w-full ncp:rounded-lg ncp:border ncp:py-3",
777
+ n
778
+ ),
779
+ style: {
780
+ "--animation-duration": `${an}ms`
781
+ },
782
+ ...i,
783
+ children: p
784
+ }
785
+ );
786
+ }
787
+ const Ee = {
788
+ running: An,
789
+ complete: P,
790
+ incomplete: Dn,
791
+ "requires-action": Pn
792
+ };
793
+ function bn({
794
+ toolName: n,
795
+ status: t,
796
+ className: c,
797
+ ...r
798
+ }) {
799
+ const p = (t == null ? void 0 : t.type) ?? "complete", i = p === "running", l = (t == null ? void 0 : t.type) === "incomplete" && t.reason === "cancelled", s = Ee[p], m = l ? "Cancelled tool" : "Used tool";
800
+ return /* @__PURE__ */ o(
801
+ Pe,
802
+ {
803
+ "data-slot": "tool-fallback-trigger",
804
+ className: a(
805
+ "ncp:aui-tool-fallback-trigger ncp:group/trigger ncp:flex ncp:w-full ncp:items-center ncp:gap-2 ncp:px-4 ncp:text-sm ncp:transition-colors",
806
+ c
807
+ ),
808
+ ...r,
809
+ children: [
810
+ /* @__PURE__ */ e(
811
+ s,
812
+ {
813
+ "data-slot": "tool-fallback-trigger-icon",
814
+ className: a(
815
+ "ncp:aui-tool-fallback-trigger-icon ncp:size-4 ncp:shrink-0",
816
+ l && "ncp:text-muted-foreground",
817
+ i && "ncp:animate-spin"
818
+ )
819
+ }
820
+ ),
821
+ /* @__PURE__ */ o(
822
+ "span",
823
+ {
824
+ "data-slot": "tool-fallback-trigger-label",
825
+ className: a(
826
+ "ncp:aui-tool-fallback-trigger-label-wrapper ncp:relative ncp:inline-block ncp:grow ncp:text-left ncp:leading-none",
827
+ l && "ncp:text-muted-foreground ncp:line-through"
828
+ ),
829
+ children: [
830
+ /* @__PURE__ */ o("span", { children: [
831
+ m,
832
+ ": ",
833
+ /* @__PURE__ */ e("b", { children: n })
834
+ ] }),
835
+ i && /* @__PURE__ */ o(
836
+ "span",
837
+ {
838
+ "aria-hidden": !0,
839
+ "data-slot": "tool-fallback-trigger-shimmer",
840
+ className: "ncp:aui-tool-fallback-trigger-shimmer ncp:shimmer ncp:pointer-events-none ncp:absolute ncp:inset-0 ncp:motion-reduce:animate-none",
841
+ children: [
842
+ m,
843
+ ": ",
844
+ /* @__PURE__ */ e("b", { children: n })
845
+ ]
846
+ }
847
+ )
848
+ ]
849
+ }
850
+ ),
851
+ /* @__PURE__ */ e(
852
+ K,
853
+ {
854
+ "data-slot": "tool-fallback-trigger-chevron",
855
+ className: a(
856
+ "ncp:aui-tool-fallback-trigger-chevron ncp:size-4 ncp:shrink-0",
857
+ "ncp:transition-transform ncp:duration-(--animation-duration) ncp:ease-out",
858
+ "ncp:group-data-[state=closed]/trigger:-rotate-90",
859
+ "ncp:group-data-[state=open]/trigger:rotate-0"
860
+ )
861
+ }
862
+ )
863
+ ]
864
+ }
865
+ );
866
+ }
867
+ function hn({
868
+ className: n,
869
+ children: t,
870
+ ...c
871
+ }) {
872
+ return /* @__PURE__ */ e(
873
+ Be,
874
+ {
875
+ "data-slot": "tool-fallback-content",
876
+ className: a(
877
+ "ncp:aui-tool-fallback-content ncp:relative ncp:overflow-hidden ncp:text-sm ncp:outline-none",
878
+ "ncp:group/collapsible-content ncp:ease-out",
879
+ "ncp:data-[state=closed]:animate-collapsible-up",
880
+ "ncp:data-[state=open]:animate-collapsible-down",
881
+ "ncp:data-[state=closed]:fill-mode-forwards",
882
+ "ncp:data-[state=closed]:pointer-events-none",
883
+ "ncp:data-[state=open]:duration-(--animation-duration)",
884
+ "ncp:data-[state=closed]:duration-(--animation-duration)",
885
+ n
886
+ ),
887
+ ...c,
888
+ children: /* @__PURE__ */ e("div", { className: "ncp:mt-3 ncp:flex ncp:flex-col ncp:gap-2 ncp:border-t ncp:pt-2", children: t })
889
+ }
890
+ );
891
+ }
892
+ function xn({
893
+ argsText: n,
894
+ className: t,
895
+ ...c
896
+ }) {
897
+ return n ? /* @__PURE__ */ e(
898
+ "div",
899
+ {
900
+ "data-slot": "tool-fallback-args",
901
+ className: a("ncp:aui-tool-fallback-args ncp:px-4", t),
902
+ ...c,
903
+ children: /* @__PURE__ */ e("pre", { className: "ncp:aui-tool-fallback-args-value ncp:whitespace-pre-wrap", children: n })
904
+ }
905
+ ) : null;
906
+ }
907
+ function vn({
908
+ result: n,
909
+ className: t,
910
+ ...c
911
+ }) {
912
+ return n === void 0 ? null : /* @__PURE__ */ o(
913
+ "div",
914
+ {
915
+ "data-slot": "tool-fallback-result",
916
+ className: a(
917
+ "ncp:aui-tool-fallback-result ncp:border-t ncp:border-dashed ncp:px-4 ncp:pt-2",
918
+ t
919
+ ),
920
+ ...c,
921
+ children: [
922
+ /* @__PURE__ */ e("p", { className: "ncp:aui-tool-fallback-result-header ncp:font-semibold", children: "Result:" }),
923
+ /* @__PURE__ */ e("pre", { className: "ncp:aui-tool-fallback-result-content ncp:whitespace-pre-wrap", children: typeof n == "string" ? n : JSON.stringify(n, null, 2) })
924
+ ]
925
+ }
926
+ );
927
+ }
928
+ function wn({
929
+ status: n,
930
+ className: t,
931
+ ...c
932
+ }) {
933
+ if ((n == null ? void 0 : n.type) !== "incomplete")
934
+ return null;
935
+ const r = n.error, p = r ? typeof r == "string" ? r : JSON.stringify(r) : null;
936
+ if (!p)
937
+ return null;
938
+ const l = n.reason === "cancelled" ? "Cancelled reason:" : "Error:";
939
+ return /* @__PURE__ */ o(
940
+ "div",
941
+ {
942
+ "data-slot": "tool-fallback-error",
943
+ className: a("ncp:aui-tool-fallback-error ncp:px-4", t),
944
+ ...c,
945
+ children: [
946
+ /* @__PURE__ */ e("p", { className: "ncp:aui-tool-fallback-error-header ncp:font-semibold ncp:text-muted-foreground", children: l }),
947
+ /* @__PURE__ */ e("p", { className: "ncp:aui-tool-fallback-error-reason ncp:text-muted-foreground", children: p })
948
+ ]
949
+ }
950
+ );
951
+ }
952
+ const je = ({ toolName: n, argsText: t, result: c, status: r }) => {
953
+ const p = (r == null ? void 0 : r.type) === "incomplete" && r.reason === "cancelled";
954
+ return /* @__PURE__ */ o(
955
+ gn,
956
+ {
957
+ className: a(p && "ncp:border-muted-foreground/30 ncp:bg-muted/30"),
958
+ children: [
959
+ /* @__PURE__ */ e(bn, { toolName: n, status: r }),
960
+ /* @__PURE__ */ o(hn, { children: [
961
+ /* @__PURE__ */ e(wn, { status: r }),
962
+ /* @__PURE__ */ e(xn, { argsText: t, className: a(p && "ncp:opacity-60") }),
963
+ !p && /* @__PURE__ */ e(vn, { result: c })
964
+ ] })
965
+ ]
966
+ }
967
+ );
968
+ }, k = dn(je);
969
+ k.displayName = "ToolFallback";
970
+ k.Root = gn;
971
+ k.Trigger = bn;
972
+ k.Content = hn;
973
+ k.Args = xn;
974
+ k.Result = vn;
975
+ k.Error = wn;
976
+ const Fe = ({ turnAnchor: n }) => /* @__PURE__ */ e(
977
+ T.Root,
978
+ {
979
+ className: "ncp:aui-root ncp:aui-thread-root ncp:@container ncp:flex ncp:h-full ncp:flex-col ncp:bg-background",
980
+ style: {
981
+ "--thread-max-width": "44rem"
982
+ },
983
+ children: /* @__PURE__ */ o(
984
+ T.Viewport,
985
+ {
986
+ turnAnchor: n,
987
+ className: "ncp:aui-thread-viewport ncp:relative ncp:flex ncp:flex-1 ncp:flex-col ncp:overflow-x-auto ncp:overflow-y-scroll ncp:scroll-smooth ncp:px-4 ncp:pt-4",
988
+ children: [
989
+ /* @__PURE__ */ e(D, { condition: (t) => t.thread.isEmpty, children: /* @__PURE__ */ e(Ge, {}) }),
990
+ /* @__PURE__ */ e(
991
+ T.Messages,
992
+ {
993
+ components: {
994
+ UserMessage: Ke,
995
+ EditComposer: Je,
996
+ AssistantMessage: qe
997
+ }
998
+ }
999
+ ),
1000
+ /* @__PURE__ */ o(T.ViewportFooter, { className: "ncp:aui-thread-viewport-footer ncp:sticky ncp:bottom-0 ncp:mx-auto ncp:mt-auto ncp:flex ncp:w-full ncp:max-w-(--thread-max-width) ncp:flex-col ncp:gap-4 ncp:overflow-visible ncp:rounded-t-3xl ncp:pb-4 ncp:md:pb-6", children: [
1001
+ /* @__PURE__ */ e(Le, {}),
1002
+ /* @__PURE__ */ e(Ve, {})
1003
+ ] })
1004
+ ]
1005
+ }
1006
+ )
1007
+ }
1008
+ ), Le = () => /* @__PURE__ */ e(T.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ e(
1009
+ g,
1010
+ {
1011
+ tooltip: "Scroll to bottom",
1012
+ variant: "outline",
1013
+ className: "ncp:aui-thread-scroll-to-bottom ncp:absolute ncp:-top-12 ncp:z-10 ncp:self-center ncp:rounded-full ncp:p-4 ncp:disabled:invisible ncp:dark:bg-background ncp:dark:hover:bg-accent",
1014
+ children: /* @__PURE__ */ e(Bn, {})
1015
+ }
1016
+ ) }), Ge = () => /* @__PURE__ */ o("div", { className: "ncp:aui-thread-welcome-root ncp:mx-auto ncp:my-auto ncp:flex ncp:w-full ncp:max-w-(--thread-max-width) ncp:grow ncp:flex-col", children: [
1017
+ /* @__PURE__ */ e("div", { className: "ncp:aui-thread-welcome-center ncp:flex ncp:w-full ncp:grow ncp:flex-col ncp:items-center ncp:justify-center", children: /* @__PURE__ */ o("div", { className: "ncp:aui-thread-welcome-message ncp:flex ncp:size-full ncp:flex-col ncp:justify-center ncp:px-4", children: [
1018
+ /* @__PURE__ */ e("h1", { className: "ncp:aui-thread-welcome-message-inner ncp:fade-in ncp:slide-in-from-bottom-1 ncp:animate-in ncp:font-semibold ncp:text-2xl ncp:duration-200", children: "Hello there!" }),
1019
+ /* @__PURE__ */ e("p", { className: "ncp:aui-thread-welcome-message-inner ncp:fade-in ncp:slide-in-from-bottom-1 ncp:animate-in ncp:text-muted-foreground ncp:text-xl ncp:delay-75 ncp:duration-200", children: "How can I help you today?" })
1020
+ ] }) }),
1021
+ /* @__PURE__ */ e(Oe, {})
1022
+ ] }), Oe = () => /* @__PURE__ */ e("div", { className: "ncp:aui-thread-welcome-suggestions ncp:grid ncp:w-full ncp:@md:grid-cols-2 ncp:gap-2 ncp:pb-4", children: /* @__PURE__ */ e(
1023
+ T.Suggestions,
1024
+ {
1025
+ components: {
1026
+ Suggestion: Ue
1027
+ }
1028
+ }
1029
+ ) }), Ue = () => /* @__PURE__ */ e("div", { className: "ncp:aui-thread-welcome-suggestion-display ncp:fade-in ncp:slide-in-from-bottom-2 ncp:@md:nth-[n+3]:block ncp:nth-[n+3]:hidden ncp:animate-in ncp:fill-mode-both ncp:duration-200", children: /* @__PURE__ */ e(V.Trigger, { send: !0, asChild: !0, children: /* @__PURE__ */ o(
1030
+ I,
1031
+ {
1032
+ variant: "ghost",
1033
+ className: "ncp:aui-thread-welcome-suggestion ncp:h-auto ncp:w-full ncp:@md:flex-col ncp:flex-wrap ncp:items-start ncp:justify-start ncp:gap-1 ncp:rounded-2xl ncp:border ncp:px-4 ncp:py-3 ncp:text-left ncp:text-sm ncp:transition-colors ncp:hover:bg-muted",
1034
+ children: [
1035
+ /* @__PURE__ */ e("span", { className: "ncp:aui-thread-welcome-suggestion-text-1 ncp:font-medium", children: /* @__PURE__ */ e(V.Title, {}) }),
1036
+ /* @__PURE__ */ e("span", { className: "ncp:aui-thread-welcome-suggestion-text-2 ncp:text-muted-foreground", children: /* @__PURE__ */ e(V.Description, {}) })
1037
+ ]
1038
+ }
1039
+ ) }) }), Ve = () => /* @__PURE__ */ e(h.Root, { className: "ncp:aui-composer-root ncp:relative ncp:flex ncp:w-full ncp:flex-col", children: /* @__PURE__ */ o(h.AttachmentDropzone, { className: "ncp:aui-composer-attachment-dropzone ncp:flex ncp:w-full ncp:flex-col ncp:rounded-2xl ncp:border ncp:border-input ncp:bg-background ncp:px-1 ncp:pt-2 ncp:outline-none ncp:transition-shadow ncp:has-[textarea:focus-visible]:border-ring ncp:has-[textarea:focus-visible]:ring-2 ncp:has-[textarea:focus-visible]:ring-ring/20 ncp:data-[dragging=true]:border-ring ncp:data-[dragging=true]:border-dashed ncp:data-[dragging=true]:bg-accent/50", children: [
1040
+ /* @__PURE__ */ e(Se, {}),
1041
+ /* @__PURE__ */ e(
1042
+ h.Input,
1043
+ {
1044
+ placeholder: "Send a message...",
1045
+ className: "ncp:aui-composer-input ncp:mb-1 ncp:max-h-32 ncp:min-h-14 ncp:w-full ncp:resize-none ncp:bg-transparent ncp:px-4 ncp:pt-2 ncp:pb-3 ncp:text-sm ncp:outline-none ncp:placeholder:text-muted-foreground ncp:focus-visible:ring-0",
1046
+ rows: 1,
1047
+ autoFocus: !0,
1048
+ "aria-label": "Message input"
1049
+ }
1050
+ ),
1051
+ /* @__PURE__ */ e(He, {})
1052
+ ] }) }), He = () => /* @__PURE__ */ o("div", { className: "ncp:aui-composer-action-wrapper ncp:relative ncp:mx-2 ncp:mb-2 ncp:flex ncp:items-center ncp:justify-between", children: [
1053
+ /* @__PURE__ */ e(Ie, {}),
1054
+ /* @__PURE__ */ e(D, { condition: (n) => !n.thread.isRunning, children: /* @__PURE__ */ e(h.Send, { asChild: !0, children: /* @__PURE__ */ e(
1055
+ g,
1056
+ {
1057
+ tooltip: "Send message",
1058
+ side: "bottom",
1059
+ type: "submit",
1060
+ variant: "default",
1061
+ size: "icon",
1062
+ className: "ncp:aui-composer-send ncp:size-8 ncp:rounded-full",
1063
+ "aria-label": "Send message",
1064
+ children: /* @__PURE__ */ e(En, { className: "ncp:aui-composer-send-icon ncp:size-4" })
1065
+ }
1066
+ ) }) }),
1067
+ /* @__PURE__ */ e(D, { condition: (n) => n.thread.isRunning, children: /* @__PURE__ */ e(h.Cancel, { asChild: !0, children: /* @__PURE__ */ e(
1068
+ I,
1069
+ {
1070
+ type: "button",
1071
+ variant: "default",
1072
+ size: "icon",
1073
+ className: "ncp:aui-composer-cancel ncp:size-8 ncp:rounded-full",
1074
+ "aria-label": "Stop generating",
1075
+ children: /* @__PURE__ */ e(jn, { className: "ncp:aui-composer-cancel-icon ncp:size-3 ncp:fill-current" })
1076
+ }
1077
+ ) }) })
1078
+ ] }), $e = () => /* @__PURE__ */ e(C.Error, { children: /* @__PURE__ */ e(tn.Root, { className: "ncp:aui-message-error-root ncp:mt-2 ncp:rounded-md ncp:border ncp:border-destructive ncp:bg-destructive/10 ncp:p-3 ncp:text-destructive ncp:text-sm ncp:dark:bg-destructive/5 ncp:dark:text-red-200", children: /* @__PURE__ */ e(tn.Message, { className: "ncp:aui-message-error-message ncp:line-clamp-2" }) }) }), qe = () => /* @__PURE__ */ o(
1079
+ C.Root,
1080
+ {
1081
+ className: "ncp:aui-assistant-message-root ncp:fade-in ncp:slide-in-from-bottom-1 ncp:relative ncp:mx-auto ncp:w-full ncp:max-w-(--thread-max-width) ncp:animate-in ncp:py-3 ncp:duration-150",
1082
+ "data-role": "assistant",
1083
+ children: [
1084
+ /* @__PURE__ */ o("div", { className: "ncp:aui-assistant-message-content ncp:wrap-break-word ncp:px-2 ncp:text-foreground ncp:leading-relaxed", children: [
1085
+ /* @__PURE__ */ e(
1086
+ C.Parts,
1087
+ {
1088
+ components: {
1089
+ Text: _e,
1090
+ tools: { Fallback: k }
1091
+ }
1092
+ }
1093
+ ),
1094
+ /* @__PURE__ */ e($e, {})
1095
+ ] }),
1096
+ /* @__PURE__ */ o("div", { className: "ncp:aui-assistant-message-footer ncp:mt-1 ncp:ml-2 ncp:flex", children: [
1097
+ /* @__PURE__ */ e(Nn, {}),
1098
+ /* @__PURE__ */ e(We, {})
1099
+ ] })
1100
+ ]
1101
+ }
1102
+ ), We = () => /* @__PURE__ */ o(
1103
+ _.Root,
1104
+ {
1105
+ hideWhenRunning: !0,
1106
+ autohide: "not-last",
1107
+ autohideFloat: "single-branch",
1108
+ className: "ncp:aui-assistant-action-bar-root ncp:col-start-3 ncp:row-start-2 ncp:-ml-1 ncp:flex ncp:gap-1 ncp:text-muted-foreground ncp:data-floating:absolute ncp:data-floating:rounded-md ncp:data-floating:border ncp:data-floating:bg-background ncp:data-floating:p-1 ncp:data-floating:shadow-sm",
1109
+ children: [
1110
+ /* @__PURE__ */ e(_.Copy, { asChild: !0, children: /* @__PURE__ */ o(g, { tooltip: "Copy", children: [
1111
+ /* @__PURE__ */ e(D, { condition: (n) => n.message.isCopied, children: /* @__PURE__ */ e(P, {}) }),
1112
+ /* @__PURE__ */ e(D, { condition: (n) => !n.message.isCopied, children: /* @__PURE__ */ e(pn, {}) })
1113
+ ] }) }),
1114
+ /* @__PURE__ */ e(_.Reload, { asChild: !0, children: /* @__PURE__ */ e(g, { tooltip: "Refresh", children: /* @__PURE__ */ e(Fn, {}) }) }),
1115
+ /* @__PURE__ */ o(j.Root, { children: [
1116
+ /* @__PURE__ */ e(j.Trigger, { asChild: !0, children: /* @__PURE__ */ e(g, { tooltip: "More", className: "ncp:data-[state=open]:bg-accent", children: /* @__PURE__ */ e(Ln, {}) }) }),
1117
+ /* @__PURE__ */ e(
1118
+ j.Content,
1119
+ {
1120
+ side: "bottom",
1121
+ align: "start",
1122
+ className: "ncp:aui-action-bar-more-content ncp:z-50 ncp:min-w-32 ncp:overflow-hidden ncp:rounded-md ncp:border ncp:bg-popover ncp:p-1 ncp:text-popover-foreground ncp:shadow-md",
1123
+ children: /* @__PURE__ */ e(_.ExportMarkdown, { asChild: !0, children: /* @__PURE__ */ o(j.Item, { className: "ncp:aui-action-bar-more-item ncp:flex ncp:cursor-pointer ncp:select-none ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:outline-none ncp:hover:bg-accent ncp:hover:text-accent-foreground ncp:focus:bg-accent ncp:focus:text-accent-foreground", children: [
1124
+ /* @__PURE__ */ e(Gn, { className: "ncp:size-4" }),
1125
+ "Export as Markdown"
1126
+ ] }) })
1127
+ }
1128
+ )
1129
+ ] })
1130
+ ]
1131
+ }
1132
+ ), Ke = () => /* @__PURE__ */ o(
1133
+ C.Root,
1134
+ {
1135
+ className: "ncp:aui-user-message-root ncp:fade-in ncp:slide-in-from-bottom-1 ncp:mx-auto ncp:grid ncp:w-full ncp:max-w-(--thread-max-width) ncp:animate-in ncp:auto-rows-auto ncp:grid-cols-[minmax(72px,1fr)_auto] ncp:content-start ncp:gap-y-2 ncp:px-2 ncp:py-3 ncp:duration-150 ncp:[&:where(>*)]:col-start-2",
1136
+ "data-role": "user",
1137
+ children: [
1138
+ /* @__PURE__ */ e(Ce, {}),
1139
+ /* @__PURE__ */ o("div", { className: "ncp:aui-user-message-content-wrapper ncp:relative ncp:col-start-2 ncp:min-w-0", children: [
1140
+ /* @__PURE__ */ e("div", { className: "ncp:aui-user-message-content ncp:wrap-break-word ncp:rounded-2xl ncp:bg-muted ncp:px-4 ncp:py-2.5 ncp:text-foreground", children: /* @__PURE__ */ e(C.Parts, {}) }),
1141
+ /* @__PURE__ */ e("div", { className: "ncp:aui-user-action-bar-wrapper ncp:absolute ncp:top-1/2 ncp:left-0 ncp:-translate-x-full ncp:-translate-y-1/2 ncp:pr-2", children: /* @__PURE__ */ e(Xe, {}) })
1142
+ ] }),
1143
+ /* @__PURE__ */ e(Nn, { className: "ncp:aui-user-branch-picker ncp:col-span-full ncp:col-start-1 ncp:row-start-3 ncp:-mr-1 ncp:justify-end" })
1144
+ ]
1145
+ }
1146
+ ), Xe = () => /* @__PURE__ */ e(
1147
+ _.Root,
1148
+ {
1149
+ hideWhenRunning: !0,
1150
+ autohide: "not-last",
1151
+ className: "ncp:aui-user-action-bar-root ncp:flex ncp:flex-col ncp:items-end",
1152
+ children: /* @__PURE__ */ e(_.Edit, { asChild: !0, children: /* @__PURE__ */ e(g, { tooltip: "Edit", className: "ncp:aui-user-action-edit ncp:p-4", children: /* @__PURE__ */ e(On, {}) }) })
1153
+ }
1154
+ ), Je = () => /* @__PURE__ */ e(C.Root, { className: "ncp:aui-edit-composer-wrapper ncp:mx-auto ncp:flex ncp:w-full ncp:max-w-(--thread-max-width) ncp:flex-col ncp:px-2 ncp:py-3", children: /* @__PURE__ */ o(h.Root, { className: "ncp:aui-edit-composer-root ncp:ml-auto ncp:flex ncp:w-full ncp:max-w-[85%] ncp:flex-col ncp:rounded-2xl ncp:bg-muted", children: [
1155
+ /* @__PURE__ */ e(
1156
+ h.Input,
1157
+ {
1158
+ className: "ncp:aui-edit-composer-input ncp:min-h-14 ncp:w-full ncp:resize-none ncp:bg-transparent ncp:p-4 ncp:text-foreground ncp:text-sm ncp:outline-none",
1159
+ autoFocus: !0
1160
+ }
1161
+ ),
1162
+ /* @__PURE__ */ o("div", { className: "ncp:aui-edit-composer-footer ncp:mx-3 ncp:mb-3 ncp:flex ncp:items-center ncp:gap-2 ncp:self-end", children: [
1163
+ /* @__PURE__ */ e(h.Cancel, { asChild: !0, children: /* @__PURE__ */ e(I, { variant: "ghost", size: "sm", children: "Cancel" }) }),
1164
+ /* @__PURE__ */ e(h.Send, { asChild: !0, children: /* @__PURE__ */ e(I, { size: "sm", children: "Update" }) })
1165
+ ] })
1166
+ ] }) }), Nn = ({ className: n, ...t }) => /* @__PURE__ */ o(
1167
+ A.Root,
1168
+ {
1169
+ hideWhenSingleBranch: !0,
1170
+ className: a(
1171
+ "ncp:aui-branch-picker-root ncp:mr-2 ncp:-ml-2 ncp:inline-flex ncp:items-center ncp:text-muted-foreground ncp:text-xs",
1172
+ n
1173
+ ),
1174
+ ...t,
1175
+ children: [
1176
+ /* @__PURE__ */ e(A.Previous, { asChild: !0, children: /* @__PURE__ */ e(g, { tooltip: "Previous", children: /* @__PURE__ */ e(Un, {}) }) }),
1177
+ /* @__PURE__ */ o("span", { className: "ncp:aui-branch-picker-state ncp:font-medium", children: [
1178
+ /* @__PURE__ */ e(A.Number, {}),
1179
+ " / ",
1180
+ /* @__PURE__ */ e(A.Count, {})
1181
+ ] }),
1182
+ /* @__PURE__ */ e(A.Next, { asChild: !0, children: /* @__PURE__ */ e(g, { tooltip: "Next", children: /* @__PURE__ */ e(sn, {}) }) })
1183
+ ]
1184
+ }
1185
+ );
1186
+ function Ye({ className: n, ...t }) {
1187
+ return /* @__PURE__ */ e(
1188
+ Y.Group,
1189
+ {
1190
+ "data-slot": "resizable-panel-group",
1191
+ className: a(
1192
+ "ncp:flex ncp:h-full ncp:w-full ncp:aria-[orientation=vertical]:flex-col",
1193
+ n
1194
+ ),
1195
+ ...t
1196
+ }
1197
+ );
1198
+ }
1199
+ function rn({ ...n }) {
1200
+ return /* @__PURE__ */ e(Y.Panel, { "data-slot": "resizable-panel", ...n });
1201
+ }
1202
+ function Qe({
1203
+ withHandle: n,
1204
+ className: t,
1205
+ ...c
1206
+ }) {
1207
+ return /* @__PURE__ */ e(
1208
+ Y.Separator,
1209
+ {
1210
+ "data-slot": "resizable-handle",
1211
+ className: a(
1212
+ "ncp:bg-border ncp:focus-visible:ring-ring ncp:relative ncp:flex ncp:w-px ncp:items-center ncp:justify-center ncp:after:absolute ncp:after:inset-y-0 ncp:after:left-1/2 ncp:after:w-1 ncp:after:-translate-x-1/2 ncp:focus-visible:ring-1 ncp:focus-visible:ring-offset-1 ncp:focus-visible:outline-hidden ncp:aria-[orientation=horizontal]:h-px ncp:aria-[orientation=horizontal]:w-full ncp:aria-[orientation=horizontal]:after:left-0 ncp:aria-[orientation=horizontal]:after:h-1 ncp:aria-[orientation=horizontal]:after:w-full ncp:aria-[orientation=horizontal]:after:translate-x-0 ncp:aria-[orientation=horizontal]:after:-translate-y-1/2 ncp:[&[aria-orientation=horizontal]>div]:rotate-90",
1213
+ t
1214
+ ),
1215
+ ...c,
1216
+ children: n && /* @__PURE__ */ e("div", { className: "ncp:bg-border ncp:z-10 ncp:flex ncp:h-4 ncp:w-3 ncp:items-center ncp:justify-center ncp:rounded-xs ncp:border", children: /* @__PURE__ */ e(Vn, { className: "ncp:size-2.5" }) })
1217
+ }
1218
+ );
1219
+ }
1220
+ const Ut = ({ children: n }) => /* @__PURE__ */ o(Ye, { orientation: "horizontal", children: [
1221
+ /* @__PURE__ */ e(rn, { children: n }),
1222
+ /* @__PURE__ */ e(Qe, {}),
1223
+ /* @__PURE__ */ e(rn, { children: /* @__PURE__ */ e(Fe, {}) })
1224
+ ] });
1225
+ function Vt({ ...n }) {
1226
+ return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...n });
1227
+ }
1228
+ function Ht({ className: n, ...t }) {
1229
+ return /* @__PURE__ */ e(
1230
+ "ol",
1231
+ {
1232
+ "data-slot": "breadcrumb-list",
1233
+ className: a(
1234
+ "ncp:text-muted-foreground ncp:flex ncp:flex-wrap ncp:items-center ncp:gap-1.5 ncp:text-sm ncp:break-words ncp:sm:gap-2.5",
1235
+ n
1236
+ ),
1237
+ ...t
1238
+ }
1239
+ );
1240
+ }
1241
+ function $t({ className: n, ...t }) {
1242
+ return /* @__PURE__ */ e(
1243
+ "li",
1244
+ {
1245
+ "data-slot": "breadcrumb-item",
1246
+ className: a("ncp:inline-flex ncp:items-center ncp:gap-1.5", n),
1247
+ ...t
1248
+ }
1249
+ );
1250
+ }
1251
+ function qt({
1252
+ asChild: n,
1253
+ className: t,
1254
+ ...c
1255
+ }) {
1256
+ return /* @__PURE__ */ e(
1257
+ n ? M : "a",
1258
+ {
1259
+ "data-slot": "breadcrumb-link",
1260
+ className: a("ncp:hover:text-foreground ncp:transition-colors", t),
1261
+ ...c
1262
+ }
1263
+ );
1264
+ }
1265
+ function Wt({ className: n, ...t }) {
1266
+ return /* @__PURE__ */ e(
1267
+ "span",
1268
+ {
1269
+ "data-slot": "breadcrumb-page",
1270
+ role: "link",
1271
+ "aria-disabled": "true",
1272
+ "aria-current": "page",
1273
+ className: a("ncp:text-foreground ncp:font-normal", n),
1274
+ ...t,
1275
+ tabIndex: 0
1276
+ }
1277
+ );
1278
+ }
1279
+ function Kt({ children: n, className: t, ...c }) {
1280
+ return /* @__PURE__ */ e(
1281
+ "li",
1282
+ {
1283
+ "data-slot": "breadcrumb-separator",
1284
+ role: "presentation",
1285
+ "aria-hidden": "true",
1286
+ className: a("ncp:[&>svg]:size-3.5", t),
1287
+ ...c,
1288
+ children: n ?? /* @__PURE__ */ e(Hn, {})
1289
+ }
1290
+ );
1291
+ }
1292
+ function Xt({ className: n, ...t }) {
1293
+ return /* @__PURE__ */ o(
1294
+ "span",
1295
+ {
1296
+ "data-slot": "breadcrumb-ellipsis",
1297
+ role: "presentation",
1298
+ "aria-hidden": "true",
1299
+ className: a("ncp:flex ncp:size-9 ncp:items-center ncp:justify-center", n),
1300
+ ...t,
1301
+ children: [
1302
+ /* @__PURE__ */ e($n, { className: "ncp:size-4" }),
1303
+ /* @__PURE__ */ e("span", { className: "ncp:sr-only", children: "More" })
1304
+ ]
1305
+ }
1306
+ );
1307
+ }
1308
+ function Jt({ className: n, ...t }) {
1309
+ return /* @__PURE__ */ e(
1310
+ "div",
1311
+ {
1312
+ "data-slot": "card",
1313
+ className: a(
1314
+ "ncp:bg-card ncp:text-card-foreground ncp:flex ncp:flex-col ncp:gap-6 ncp:rounded-xl ncp:border ncp:py-6 ncp:shadow-sm",
1315
+ n
1316
+ ),
1317
+ ...t
1318
+ }
1319
+ );
1320
+ }
1321
+ function Yt({ className: n, ...t }) {
1322
+ return /* @__PURE__ */ e(
1323
+ "div",
1324
+ {
1325
+ "data-slot": "card-header",
1326
+ className: a(
1327
+ "ncp:@container/card-header ncp:grid ncp:auto-rows-min ncp:grid-rows-[auto_auto] ncp:items-start ncp:gap-2 ncp:px-6 ncp:has-data-[slot=card-action]:grid-cols-[1fr_auto] ncp:[.border-b]:pb-6",
1328
+ n
1329
+ ),
1330
+ ...t
1331
+ }
1332
+ );
1333
+ }
1334
+ function Qt({ className: n, ...t }) {
1335
+ return /* @__PURE__ */ e(
1336
+ "div",
1337
+ {
1338
+ "data-slot": "card-title",
1339
+ className: a("ncp:leading-none ncp:font-semibold", n),
1340
+ ...t
1341
+ }
1342
+ );
1343
+ }
1344
+ function Zt({ className: n, ...t }) {
1345
+ return /* @__PURE__ */ e(
1346
+ "div",
1347
+ {
1348
+ "data-slot": "card-description",
1349
+ className: a("ncp:text-muted-foreground ncp:text-sm", n),
1350
+ ...t
1351
+ }
1352
+ );
1353
+ }
1354
+ function nc({ className: n, ...t }) {
1355
+ return /* @__PURE__ */ e(
1356
+ "div",
1357
+ {
1358
+ "data-slot": "card-action",
1359
+ className: a(
1360
+ "ncp:col-start-2 ncp:row-span-2 ncp:row-start-1 ncp:self-start ncp:justify-self-end",
1361
+ n
1362
+ ),
1363
+ ...t
1364
+ }
1365
+ );
1366
+ }
1367
+ function ec({ className: n, ...t }) {
1368
+ return /* @__PURE__ */ e("div", { "data-slot": "card-content", className: a("ncp:px-6", n), ...t });
1369
+ }
1370
+ function tc({ className: n, ...t }) {
1371
+ return /* @__PURE__ */ e(
1372
+ "div",
1373
+ {
1374
+ "data-slot": "card-footer",
1375
+ className: a("ncp:flex ncp:items-center ncp:px-6 ncp:[.border-t]:pt-6", n),
1376
+ ...t
1377
+ }
1378
+ );
1379
+ }
1380
+ function cc({ ...n }) {
1381
+ return /* @__PURE__ */ e(d.Root, { "data-slot": "dropdown-menu", ...n });
1382
+ }
1383
+ function ac({
1384
+ ...n
1385
+ }) {
1386
+ return /* @__PURE__ */ e(d.Portal, { "data-slot": "dropdown-menu-portal", ...n });
1387
+ }
1388
+ function rc({
1389
+ ...n
1390
+ }) {
1391
+ return /* @__PURE__ */ e(d.Trigger, { "data-slot": "dropdown-menu-trigger", ...n });
1392
+ }
1393
+ function oc({
1394
+ className: n,
1395
+ sideOffset: t = 4,
1396
+ ...c
1397
+ }) {
1398
+ return /* @__PURE__ */ e(d.Portal, { children: /* @__PURE__ */ e(
1399
+ d.Content,
1400
+ {
1401
+ "data-slot": "dropdown-menu-content",
1402
+ sideOffset: t,
1403
+ className: a(
1404
+ "ncp:bg-popover ncp:text-popover-foreground ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:z-50 ncp:max-h-(--radix-dropdown-menu-content-available-height) ncp:min-w-[8rem] ncp:origin-(--radix-dropdown-menu-content-transform-origin) ncp:overflow-x-hidden ncp:overflow-y-auto ncp:rounded-md ncp:border ncp:p-1 ncp:shadow-md",
1405
+ n
1406
+ ),
1407
+ ...c
1408
+ }
1409
+ ) });
1410
+ }
1411
+ function pc({ ...n }) {
1412
+ return /* @__PURE__ */ e(d.Group, { "data-slot": "dropdown-menu-group", ...n });
1413
+ }
1414
+ function ic({
1415
+ className: n,
1416
+ inset: t,
1417
+ variant: c = "default",
1418
+ ...r
1419
+ }) {
1420
+ return /* @__PURE__ */ e(
1421
+ d.Item,
1422
+ {
1423
+ "data-slot": "dropdown-menu-item",
1424
+ "data-inset": t,
1425
+ "data-variant": c,
1426
+ className: a(
1427
+ "ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:data-[variant=destructive]:text-destructive ncp:data-[variant=destructive]:focus:bg-destructive/10 ncp:dark:data-[variant=destructive]:focus:bg-destructive/20 ncp:data-[variant=destructive]:focus:text-destructive ncp:data-[variant=destructive]:*:[svg]:!text-destructive ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:relative ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:data-[inset]:pl-8 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",
1428
+ n
1429
+ ),
1430
+ ...r
1431
+ }
1432
+ );
1433
+ }
1434
+ function sc({
1435
+ className: n,
1436
+ children: t,
1437
+ checked: c,
1438
+ ...r
1439
+ }) {
1440
+ return /* @__PURE__ */ o(
1441
+ d.CheckboxItem,
1442
+ {
1443
+ "data-slot": "dropdown-menu-checkbox-item",
1444
+ className: a(
1445
+ "ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:relative ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:py-1.5 ncp:pr-2 ncp:pl-8 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",
1446
+ n
1447
+ ),
1448
+ checked: c,
1449
+ ...r,
1450
+ children: [
1451
+ /* @__PURE__ */ e("span", { className: "ncp:pointer-events-none ncp:absolute ncp:left-2 ncp:flex ncp:size-3.5 ncp:items-center ncp:justify-center", children: /* @__PURE__ */ e(d.ItemIndicator, { children: /* @__PURE__ */ e(P, { className: "ncp:size-4" }) }) }),
1452
+ t
1453
+ ]
1454
+ }
1455
+ );
1456
+ }
1457
+ function lc({
1458
+ ...n
1459
+ }) {
1460
+ return /* @__PURE__ */ e(d.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...n });
1461
+ }
1462
+ function dc({
1463
+ className: n,
1464
+ children: t,
1465
+ ...c
1466
+ }) {
1467
+ return /* @__PURE__ */ o(
1468
+ d.RadioItem,
1469
+ {
1470
+ "data-slot": "dropdown-menu-radio-item",
1471
+ className: a(
1472
+ "ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:relative ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:py-1.5 ncp:pr-2 ncp:pl-8 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",
1473
+ n
1474
+ ),
1475
+ ...c,
1476
+ children: [
1477
+ /* @__PURE__ */ e("span", { className: "ncp:pointer-events-none ncp:absolute ncp:left-2 ncp:flex ncp:size-3.5 ncp:items-center ncp:justify-center", children: /* @__PURE__ */ e(d.ItemIndicator, { children: /* @__PURE__ */ e(ln, { className: "ncp:size-2 ncp:fill-current" }) }) }),
1478
+ t
1479
+ ]
1480
+ }
1481
+ );
1482
+ }
1483
+ function uc({
1484
+ className: n,
1485
+ inset: t,
1486
+ ...c
1487
+ }) {
1488
+ return /* @__PURE__ */ e(
1489
+ d.Label,
1490
+ {
1491
+ "data-slot": "dropdown-menu-label",
1492
+ "data-inset": t,
1493
+ className: a(
1494
+ "ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:font-medium ncp:data-[inset]:pl-8",
1495
+ n
1496
+ ),
1497
+ ...c
1498
+ }
1499
+ );
1500
+ }
1501
+ function mc({
1502
+ className: n,
1503
+ ...t
1504
+ }) {
1505
+ return /* @__PURE__ */ e(
1506
+ d.Separator,
1507
+ {
1508
+ "data-slot": "dropdown-menu-separator",
1509
+ className: a("ncp:bg-border ncp:-mx-1 ncp:my-1 ncp:h-px", n),
1510
+ ...t
1511
+ }
1512
+ );
1513
+ }
1514
+ function fc({ className: n, ...t }) {
1515
+ return /* @__PURE__ */ e(
1516
+ "span",
1517
+ {
1518
+ "data-slot": "dropdown-menu-shortcut",
1519
+ className: a(
1520
+ "ncp:text-muted-foreground ncp:ml-auto ncp:text-xs ncp:tracking-widest",
1521
+ n
1522
+ ),
1523
+ ...t
1524
+ }
1525
+ );
1526
+ }
1527
+ function gc({ ...n }) {
1528
+ return /* @__PURE__ */ e(d.Sub, { "data-slot": "dropdown-menu-sub", ...n });
1529
+ }
1530
+ function bc({
1531
+ className: n,
1532
+ inset: t,
1533
+ children: c,
1534
+ ...r
1535
+ }) {
1536
+ return /* @__PURE__ */ o(
1537
+ d.SubTrigger,
1538
+ {
1539
+ "data-slot": "dropdown-menu-sub-trigger",
1540
+ "data-inset": t,
1541
+ className: a(
1542
+ "ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:data-[state=open]:bg-accent ncp:data-[state=open]:text-accent-foreground ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[inset]:pl-8 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",
1543
+ n
1544
+ ),
1545
+ ...r,
1546
+ children: [
1547
+ c,
1548
+ /* @__PURE__ */ e(sn, { className: "ncp:ml-auto ncp:size-4" })
1549
+ ]
1550
+ }
1551
+ );
1552
+ }
1553
+ function hc({
1554
+ className: n,
1555
+ ...t
1556
+ }) {
1557
+ return /* @__PURE__ */ e(
1558
+ d.SubContent,
1559
+ {
1560
+ "data-slot": "dropdown-menu-sub-content",
1561
+ className: a(
1562
+ "ncp:bg-popover ncp:text-popover-foreground ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:z-50 ncp:min-w-[8rem] ncp:origin-(--radix-dropdown-menu-content-transform-origin) ncp:overflow-hidden ncp:rounded-md ncp:border ncp:p-1 ncp:shadow-lg",
1563
+ n
1564
+ ),
1565
+ ...t
1566
+ }
1567
+ );
1568
+ }
1569
+ function Ze({ className: n, ...t }) {
1570
+ return /* @__PURE__ */ e(
1571
+ pe.Root,
1572
+ {
1573
+ "data-slot": "label",
1574
+ className: a(
1575
+ "ncp:flex ncp:items-center ncp:gap-2 ncp:text-sm ncp:leading-none ncp:font-medium ncp:select-none ncp:group-data-[disabled=true]:pointer-events-none ncp:group-data-[disabled=true]:opacity-50 ncp:peer-disabled:cursor-not-allowed ncp:peer-disabled:opacity-50",
1576
+ n
1577
+ ),
1578
+ ...t
1579
+ }
1580
+ );
1581
+ }
1582
+ function yn({
1583
+ className: n,
1584
+ orientation: t = "horizontal",
1585
+ decorative: c = !0,
1586
+ ...r
1587
+ }) {
1588
+ return /* @__PURE__ */ e(
1589
+ ie.Root,
1590
+ {
1591
+ "data-slot": "separator",
1592
+ decorative: c,
1593
+ orientation: t,
1594
+ className: a(
1595
+ "ncp:bg-border ncp:shrink-0 ncp:data-[orientation=horizontal]:h-px ncp:data-[orientation=horizontal]:w-full ncp:data-[orientation=vertical]:h-full ncp:data-[orientation=vertical]:w-px",
1596
+ n
1597
+ ),
1598
+ ...r
1599
+ }
1600
+ );
1601
+ }
1602
+ function xc({ className: n, ...t }) {
1603
+ return /* @__PURE__ */ e(
1604
+ "fieldset",
1605
+ {
1606
+ "data-slot": "field-set",
1607
+ className: a(
1608
+ "ncp:flex ncp:flex-col ncp:gap-6",
1609
+ "has-[>[data-slot=checkbox-group]]:ncp:gap-3 has-[>[data-slot=radio-group]]:ncp:gap-3",
1610
+ n
1611
+ ),
1612
+ ...t
1613
+ }
1614
+ );
1615
+ }
1616
+ function vc({
1617
+ className: n,
1618
+ variant: t = "legend",
1619
+ ...c
1620
+ }) {
1621
+ return /* @__PURE__ */ e(
1622
+ "legend",
1623
+ {
1624
+ "data-slot": "field-legend",
1625
+ "data-variant": t,
1626
+ className: a(
1627
+ "ncp:mb-3 ncp:font-medium",
1628
+ "data-[variant=legend]:ncp:text-base",
1629
+ "data-[variant=label]:ncp:text-sm",
1630
+ n
1631
+ ),
1632
+ ...c
1633
+ }
1634
+ );
1635
+ }
1636
+ function wc({ className: n, ...t }) {
1637
+ return /* @__PURE__ */ e(
1638
+ "div",
1639
+ {
1640
+ "data-slot": "field-group",
1641
+ className: a(
1642
+ "ncp:group/field-group @container/field-group ncp:flex ncp:w-full ncp:flex-col ncp:gap-7 data-[slot=checkbox-group]:ncp:gap-3 [&>[data-slot=field-group]]:ncp:gap-4",
1643
+ n
1644
+ ),
1645
+ ...t
1646
+ }
1647
+ );
1648
+ }
1649
+ const nt = L(
1650
+ "ncp:group/field ncp:flex ncp:w-full ncp:gap-3 data-[invalid=true]:ncp:text-destructive",
1651
+ {
1652
+ variants: {
1653
+ orientation: {
1654
+ vertical: ["ncp:flex-col [&>*]:ncp:w-full [&>.sr-only]:ncp:w-auto"],
1655
+ horizontal: [
1656
+ "ncp:flex-row ncp:items-center",
1657
+ "[&>[data-slot=field-label]]:ncp:flex-auto",
1658
+ "has-[>[data-slot=field-content]]:ncp:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:ncp:mt-px"
1659
+ ],
1660
+ responsive: [
1661
+ "ncp:flex-col [&>*]:ncp:w-full [&>.sr-only]:ncp:w-auto @md/field-group:ncp:flex-row @md/field-group:ncp:items-center @md/field-group:[&>*]:ncp:w-auto",
1662
+ "@md/field-group:[&>[data-slot=field-label]]:ncp:flex-auto",
1663
+ "@md/field-group:has-[>[data-slot=field-content]]:ncp:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:ncp:mt-px"
1664
+ ]
1665
+ }
1666
+ },
1667
+ defaultVariants: {
1668
+ orientation: "vertical"
1669
+ }
1670
+ }
1671
+ );
1672
+ function Nc({
1673
+ className: n,
1674
+ orientation: t = "vertical",
1675
+ ...c
1676
+ }) {
1677
+ return /* @__PURE__ */ e(
1678
+ "div",
1679
+ {
1680
+ role: "group",
1681
+ "data-slot": "field",
1682
+ "data-orientation": t,
1683
+ className: a(nt({ orientation: t }), n),
1684
+ ...c
1685
+ }
1686
+ );
1687
+ }
1688
+ function yc({ className: n, ...t }) {
1689
+ return /* @__PURE__ */ e(
1690
+ "div",
1691
+ {
1692
+ "data-slot": "field-content",
1693
+ className: a(
1694
+ "ncp:group/field-content ncp:flex ncp:flex-1 ncp:flex-col ncp:gap-1.5 ncp:leading-snug",
1695
+ n
1696
+ ),
1697
+ ...t
1698
+ }
1699
+ );
1700
+ }
1701
+ function kc({ className: n, ...t }) {
1702
+ return /* @__PURE__ */ e(
1703
+ Ze,
1704
+ {
1705
+ "data-slot": "field-label",
1706
+ className: a(
1707
+ "ncp:group/field-label ncp:peer/field-label ncp:flex ncp:w-fit ncp:gap-2 ncp:leading-snug group-data-[disabled=true]/field:ncp:opacity-50",
1708
+ "has-[>[data-slot=field]]:ncp:w-full has-[>[data-slot=field]]:ncp:flex-col has-[>[data-slot=field]]:ncp:rounded-md has-[>[data-slot=field]]:ncp:border [&>*]:data-[slot=field]:ncp:p-4",
1709
+ "has-data-[state=checked]:ncp:bg-primary/5 has-data-[state=checked]:ncp:border-primary dark:has-data-[state=checked]:ncp:bg-primary/10",
1710
+ n
1711
+ ),
1712
+ ...t
1713
+ }
1714
+ );
1715
+ }
1716
+ function zc({ className: n, ...t }) {
1717
+ return /* @__PURE__ */ e(
1718
+ "div",
1719
+ {
1720
+ "data-slot": "field-label",
1721
+ className: a(
1722
+ "ncp:flex ncp:w-fit ncp:items-center ncp:gap-2 ncp:text-sm ncp:leading-snug ncp:font-medium group-data-[disabled=true]/field:ncp:opacity-50",
1723
+ n
1724
+ ),
1725
+ ...t
1726
+ }
1727
+ );
1728
+ }
1729
+ function Cc({ className: n, ...t }) {
1730
+ return /* @__PURE__ */ e(
1731
+ "p",
1732
+ {
1733
+ "data-slot": "field-description",
1734
+ className: a(
1735
+ "ncp:text-muted-foreground ncp:text-sm ncp:leading-normal ncp:font-normal group-has-[[data-orientation=horizontal]]/field:ncp:text-balance",
1736
+ "last:ncp:mt-0 nth-last-2:ncp:-mt-1 [[data-variant=legend]+&]:ncp:-mt-1.5",
1737
+ "[&>a:hover]:ncp:text-primary [&>a]:ncp:underline [&>a]:ncp:underline-offset-4",
1738
+ n
1739
+ ),
1740
+ ...t
1741
+ }
1742
+ );
1743
+ }
1744
+ function Sc({
1745
+ children: n,
1746
+ className: t,
1747
+ ...c
1748
+ }) {
1749
+ return /* @__PURE__ */ o(
1750
+ "div",
1751
+ {
1752
+ "data-slot": "field-separator",
1753
+ "data-content": !!n,
1754
+ className: a(
1755
+ "ncp:relative ncp:-my-2 ncp:h-5 ncp:text-sm group-data-[variant=outline]/field-group:ncp:-mb-2",
1756
+ t
1757
+ ),
1758
+ ...c,
1759
+ children: [
1760
+ /* @__PURE__ */ e(yn, { className: "ncp:absolute ncp:inset-0 ncp:top-1/2" }),
1761
+ n && /* @__PURE__ */ e(
1762
+ "span",
1763
+ {
1764
+ className: "ncp:bg-background ncp:text-muted-foreground ncp:relative ncp:mx-auto ncp:block ncp:w-fit ncp:px-2",
1765
+ "data-slot": "field-separator-content",
1766
+ children: n
1767
+ }
1768
+ )
1769
+ ]
1770
+ }
1771
+ );
1772
+ }
1773
+ function Ic({
1774
+ className: n,
1775
+ children: t,
1776
+ errors: c,
1777
+ ...r
1778
+ }) {
1779
+ const p = Zn(() => {
1780
+ var l;
1781
+ if (t)
1782
+ return t;
1783
+ if (!(c != null && c.length))
1784
+ return null;
1785
+ const i = [...new Map(c.map((s) => [s == null ? void 0 : s.message, s])).values()];
1786
+ return (i == null ? void 0 : i.length) === 1 ? (l = i[0]) == null ? void 0 : l.message : /* @__PURE__ */ e("ul", { className: "ncp:ml-4 ncp:flex ncp:list-disc ncp:flex-col ncp:gap-1", children: i.map((s, m) => (s == null ? void 0 : s.message) && /* @__PURE__ */ e("li", { children: s.message }, m)) });
1787
+ }, [t, c]);
1788
+ return p ? /* @__PURE__ */ e(
1789
+ "div",
1790
+ {
1791
+ role: "alert",
1792
+ "data-slot": "field-error",
1793
+ className: a("ncp:text-destructive ncp:text-sm ncp:font-normal", n),
1794
+ ...r,
1795
+ children: p
1796
+ }
1797
+ ) : null;
1798
+ }
1799
+ function et({ className: n, type: t, ...c }) {
1800
+ return /* @__PURE__ */ e(
1801
+ "input",
1802
+ {
1803
+ type: t,
1804
+ "data-slot": "input",
1805
+ className: a(
1806
+ "ncp:file:text-foreground ncp:placeholder:text-muted-foreground ncp:selection:bg-primary ncp:selection:text-primary-foreground ncp:dark:bg-input/30 ncp:border-input ncp:h-9 ncp:w-full ncp:min-w-0 ncp:rounded-md ncp:border ncp:bg-transparent ncp:px-3 ncp:py-1 ncp:text-base ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:file:inline-flex ncp:file:h-7 ncp:file:border-0 ncp:file:bg-transparent ncp:file:text-sm ncp:file:font-medium ncp:disabled:pointer-events-none ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50 ncp:md:text-sm",
1807
+ "ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:focus-visible:ring-[3px]",
1808
+ "ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive",
1809
+ n
1810
+ ),
1811
+ ...c
1812
+ }
1813
+ );
1814
+ }
1815
+ function Tc({
1816
+ className: n,
1817
+ ...t
1818
+ }) {
1819
+ return /* @__PURE__ */ e(
1820
+ q.Root,
1821
+ {
1822
+ "data-slot": "radio-group",
1823
+ className: a("ncp:grid ncp:gap-3", n),
1824
+ ...t
1825
+ }
1826
+ );
1827
+ }
1828
+ function _c({
1829
+ className: n,
1830
+ ...t
1831
+ }) {
1832
+ return /* @__PURE__ */ e(
1833
+ q.Item,
1834
+ {
1835
+ "data-slot": "radio-group-item",
1836
+ className: a(
1837
+ "ncp:border-input ncp:text-primary ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive ncp:dark:bg-input/30 ncp:aspect-square ncp:size-4 ncp:shrink-0 ncp:rounded-full ncp:border ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50",
1838
+ n
1839
+ ),
1840
+ ...t,
1841
+ children: /* @__PURE__ */ e(
1842
+ q.Indicator,
1843
+ {
1844
+ "data-slot": "radio-group-indicator",
1845
+ className: "ncp:relative ncp:flex ncp:items-center ncp:justify-center",
1846
+ children: /* @__PURE__ */ e(ln, { className: "ncp:fill-primary ncp:absolute ncp:top-1/2 ncp:left-1/2 ncp:size-2 ncp:-translate-x-1/2 ncp:-translate-y-1/2" })
1847
+ }
1848
+ )
1849
+ }
1850
+ );
1851
+ }
1852
+ function Rc({ ...n }) {
1853
+ return /* @__PURE__ */ e(u.Root, { "data-slot": "select", ...n });
1854
+ }
1855
+ function Mc({ ...n }) {
1856
+ return /* @__PURE__ */ e(u.Group, { "data-slot": "select-group", ...n });
1857
+ }
1858
+ function Ac({ ...n }) {
1859
+ return /* @__PURE__ */ e(u.Value, { "data-slot": "select-value", ...n });
1860
+ }
1861
+ function Dc({
1862
+ className: n,
1863
+ size: t = "default",
1864
+ children: c,
1865
+ ...r
1866
+ }) {
1867
+ return /* @__PURE__ */ o(
1868
+ u.Trigger,
1869
+ {
1870
+ "data-slot": "select-trigger",
1871
+ "data-size": t,
1872
+ className: a(
1873
+ "ncp:border-input ncp:data-[placeholder]:text-muted-foreground ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive ncp:dark:bg-input/30 ncp:dark:hover:bg-input/50 ncp:flex ncp:w-fit ncp:items-center ncp:justify-between ncp:gap-2 ncp:rounded-md ncp:border ncp:bg-transparent ncp:px-3 ncp:py-2 ncp:text-sm ncp:whitespace-nowrap ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50 ncp:data-[size=default]:h-9 ncp:data-[size=sm]:h-8 ncp:*:data-[slot=select-value]:line-clamp-1 ncp:*:data-[slot=select-value]:flex ncp:*:data-[slot=select-value]:items-center ncp:*:data-[slot=select-value]:gap-2 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",
1874
+ n
1875
+ ),
1876
+ ...r,
1877
+ children: [
1878
+ c,
1879
+ /* @__PURE__ */ e(u.Icon, { asChild: !0, children: /* @__PURE__ */ e(K, { className: "ncp:size-4 ncp:opacity-50" }) })
1880
+ ]
1881
+ }
1882
+ );
1883
+ }
1884
+ function Pc({
1885
+ className: n,
1886
+ children: t,
1887
+ position: c = "popper",
1888
+ align: r = "center",
1889
+ ...p
1890
+ }) {
1891
+ return /* @__PURE__ */ e(u.Portal, { children: /* @__PURE__ */ o(
1892
+ u.Content,
1893
+ {
1894
+ "data-slot": "select-content",
1895
+ className: a(
1896
+ "ncp:bg-popover ncp:text-popover-foreground ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:relative ncp:z-50 ncp:max-h-(--radix-select-content-available-height) ncp:min-w-[8rem] ncp:origin-(--radix-select-content-transform-origin) ncp:overflow-x-hidden ncp:overflow-y-auto ncp:rounded-md ncp:border ncp:shadow-md",
1897
+ c === "popper" && "ncp:data-[side=bottom]:translate-y-1 ncp:data-[side=left]:-translate-x-1 ncp:data-[side=right]:translate-x-1 ncp:data-[side=top]:-translate-y-1",
1898
+ n
1899
+ ),
1900
+ position: c,
1901
+ align: r,
1902
+ ...p,
1903
+ children: [
1904
+ /* @__PURE__ */ e(tt, {}),
1905
+ /* @__PURE__ */ e(
1906
+ u.Viewport,
1907
+ {
1908
+ className: a(
1909
+ "ncp:p-1",
1910
+ c === "popper" && "ncp:h-[var(--radix-select-trigger-height)] ncp:w-full ncp:min-w-[var(--radix-select-trigger-width)] ncp:scroll-my-1"
1911
+ ),
1912
+ children: t
1913
+ }
1914
+ ),
1915
+ /* @__PURE__ */ e(ct, {})
1916
+ ]
1917
+ }
1918
+ ) });
1919
+ }
1920
+ function Bc({ className: n, ...t }) {
1921
+ return /* @__PURE__ */ e(
1922
+ u.Label,
1923
+ {
1924
+ "data-slot": "select-label",
1925
+ className: a("ncp:text-muted-foreground ncp:px-2 ncp:py-1.5 ncp:text-xs", n),
1926
+ ...t
1927
+ }
1928
+ );
1929
+ }
1930
+ function Ec({
1931
+ className: n,
1932
+ children: t,
1933
+ ...c
1934
+ }) {
1935
+ return /* @__PURE__ */ o(
1936
+ u.Item,
1937
+ {
1938
+ "data-slot": "select-item",
1939
+ className: a(
1940
+ "ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:relative ncp:flex ncp:w-full ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:py-1.5 ncp:pr-8 ncp:pl-2 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4 ncp:*:[span]:last:flex ncp:*:[span]:last:items-center ncp:*:[span]:last:gap-2",
1941
+ n
1942
+ ),
1943
+ ...c,
1944
+ children: [
1945
+ /* @__PURE__ */ e("span", { className: "ncp:absolute ncp:right-2 ncp:flex ncp:size-3.5 ncp:items-center ncp:justify-center", children: /* @__PURE__ */ e(u.ItemIndicator, { children: /* @__PURE__ */ e(P, { className: "ncp:size-4" }) }) }),
1946
+ /* @__PURE__ */ e(u.ItemText, { children: t })
1947
+ ]
1948
+ }
1949
+ );
1950
+ }
1951
+ function jc({
1952
+ className: n,
1953
+ ...t
1954
+ }) {
1955
+ return /* @__PURE__ */ e(
1956
+ u.Separator,
1957
+ {
1958
+ "data-slot": "select-separator",
1959
+ className: a("ncp:bg-border ncp:pointer-events-none ncp:-mx-1 ncp:my-1 ncp:h-px", n),
1960
+ ...t
1961
+ }
1962
+ );
1963
+ }
1964
+ function tt({
1965
+ className: n,
1966
+ ...t
1967
+ }) {
1968
+ return /* @__PURE__ */ e(
1969
+ u.ScrollUpButton,
1970
+ {
1971
+ "data-slot": "select-scroll-up-button",
1972
+ className: a(
1973
+ "ncp:flex ncp:cursor-default ncp:items-center ncp:justify-center ncp:py-1",
1974
+ n
1975
+ ),
1976
+ ...t,
1977
+ children: /* @__PURE__ */ e(qn, { className: "ncp:size-4" })
1978
+ }
1979
+ );
1980
+ }
1981
+ function ct({
1982
+ className: n,
1983
+ ...t
1984
+ }) {
1985
+ return /* @__PURE__ */ e(
1986
+ u.ScrollDownButton,
1987
+ {
1988
+ "data-slot": "select-scroll-down-button",
1989
+ className: a(
1990
+ "ncp:flex ncp:cursor-default ncp:items-center ncp:justify-center ncp:py-1",
1991
+ n
1992
+ ),
1993
+ ...t,
1994
+ children: /* @__PURE__ */ e(K, { className: "ncp:size-4" })
1995
+ }
1996
+ );
1997
+ }
1998
+ function at({ ...n }) {
1999
+ return /* @__PURE__ */ e(S.Root, { "data-slot": "sheet", ...n });
2000
+ }
2001
+ function rt({ ...n }) {
2002
+ return /* @__PURE__ */ e(S.Portal, { "data-slot": "sheet-portal", ...n });
2003
+ }
2004
+ function ot({
2005
+ className: n,
2006
+ ...t
2007
+ }) {
2008
+ return /* @__PURE__ */ e(
2009
+ S.Overlay,
2010
+ {
2011
+ "data-slot": "sheet-overlay",
2012
+ className: a(
2013
+ "ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:fixed ncp:inset-0 ncp:z-50 ncp:bg-black/50",
2014
+ n
2015
+ ),
2016
+ ...t
2017
+ }
2018
+ );
2019
+ }
2020
+ function pt({
2021
+ className: n,
2022
+ children: t,
2023
+ side: c = "right",
2024
+ ...r
2025
+ }) {
2026
+ return /* @__PURE__ */ o(rt, { children: [
2027
+ /* @__PURE__ */ e(ot, {}),
2028
+ /* @__PURE__ */ o(
2029
+ S.Content,
2030
+ {
2031
+ "data-slot": "sheet-content",
2032
+ className: a(
2033
+ "ncp:bg-background ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:fixed ncp:z-50 ncp:flex ncp:flex-col ncp:gap-4 ncp:shadow-lg ncp:transition ncp:ease-in-out ncp:data-[state=closed]:duration-300 ncp:data-[state=open]:duration-500",
2034
+ c === "right" && "ncp:data-[state=closed]:slide-out-to-right ncp:data-[state=open]:slide-in-from-right ncp:inset-y-0 ncp:right-0 ncp:h-full ncp:w-3/4 ncp:border-l ncp:sm:max-w-sm",
2035
+ c === "left" && "ncp:data-[state=closed]:slide-out-to-left ncp:data-[state=open]:slide-in-from-left ncp:inset-y-0 ncp:left-0 ncp:h-full ncp:w-3/4 ncp:border-r ncp:sm:max-w-sm",
2036
+ c === "top" && "ncp:data-[state=closed]:slide-out-to-top ncp:data-[state=open]:slide-in-from-top ncp:inset-x-0 ncp:top-0 ncp:h-auto ncp:border-b",
2037
+ c === "bottom" && "ncp:data-[state=closed]:slide-out-to-bottom ncp:data-[state=open]:slide-in-from-bottom ncp:inset-x-0 ncp:bottom-0 ncp:h-auto ncp:border-t",
2038
+ n
2039
+ ),
2040
+ ...r,
2041
+ children: [
2042
+ t,
2043
+ /* @__PURE__ */ o(S.Close, { className: "ncp:ring-offset-background ncp:focus:ring-ring ncp:data-[state=open]:bg-secondary ncp:absolute ncp:top-4 ncp:right-4 ncp:rounded-xs ncp:opacity-70 ncp:transition-opacity ncp:hover:opacity-100 ncp:focus:ring-2 ncp:focus:ring-offset-2 ncp:focus:outline-hidden ncp:disabled:pointer-events-none", children: [
2044
+ /* @__PURE__ */ e(W, { className: "ncp:size-4" }),
2045
+ /* @__PURE__ */ e("span", { className: "ncp:sr-only", children: "Close" })
2046
+ ] })
2047
+ ]
2048
+ }
2049
+ )
2050
+ ] });
2051
+ }
2052
+ function it({ className: n, ...t }) {
2053
+ return /* @__PURE__ */ e(
2054
+ "div",
2055
+ {
2056
+ "data-slot": "sheet-header",
2057
+ className: a("ncp:flex ncp:flex-col ncp:gap-1.5 ncp:p-4", n),
2058
+ ...t
2059
+ }
2060
+ );
2061
+ }
2062
+ function st({ className: n, ...t }) {
2063
+ return /* @__PURE__ */ e(
2064
+ S.Title,
2065
+ {
2066
+ "data-slot": "sheet-title",
2067
+ className: a("ncp:text-foreground ncp:font-semibold", n),
2068
+ ...t
2069
+ }
2070
+ );
2071
+ }
2072
+ function lt({
2073
+ className: n,
2074
+ ...t
2075
+ }) {
2076
+ return /* @__PURE__ */ e(
2077
+ S.Description,
2078
+ {
2079
+ "data-slot": "sheet-description",
2080
+ className: a("ncp:text-muted-foreground ncp:text-sm", n),
2081
+ ...t
2082
+ }
2083
+ );
2084
+ }
2085
+ function on({ className: n, ...t }) {
2086
+ return /* @__PURE__ */ e(
2087
+ "div",
2088
+ {
2089
+ "data-slot": "skeleton",
2090
+ className: a("ncp:bg-accent ncp:animate-pulse ncp:rounded-md", n),
2091
+ ...t
2092
+ }
2093
+ );
2094
+ }
2095
+ const H = 768;
2096
+ function dt() {
2097
+ const [n, t] = f.useState(void 0);
2098
+ return f.useEffect(() => {
2099
+ const c = window.matchMedia(`(max-width: ${H - 1}px)`), r = () => {
2100
+ t(window.innerWidth < H);
2101
+ };
2102
+ return c.addEventListener("change", r), t(window.innerWidth < H), () => c.removeEventListener("change", r);
2103
+ }, []), !!n;
2104
+ }
2105
+ const ut = "sidebar_state", mt = 60 * 60 * 24 * 7, ft = "16rem", gt = "18rem", bt = "3rem", ht = "b", kn = f.createContext(null);
2106
+ function O() {
2107
+ const n = f.useContext(kn);
2108
+ if (!n)
2109
+ throw new Error("useSidebar must be used within a SidebarProvider.");
2110
+ return n;
2111
+ }
2112
+ function Fc({
2113
+ defaultOpen: n = !0,
2114
+ open: t,
2115
+ onOpenChange: c,
2116
+ className: r,
2117
+ style: p,
2118
+ children: i,
2119
+ ...l
2120
+ }) {
2121
+ const s = dt(), [m, b] = f.useState(!1), [w, U] = f.useState(n), z = t ?? w, N = f.useCallback(
2122
+ (x) => {
2123
+ const y = typeof x == "function" ? x(z) : x;
2124
+ c ? c(y) : U(y), document.cookie = `${ut}=${y}; path=/; max-age=${mt}`;
2125
+ },
2126
+ [c, z]
2127
+ ), E = f.useCallback(() => s ? b((x) => !x) : N((x) => !x), [s, N, b]);
2128
+ f.useEffect(() => {
2129
+ const x = (y) => {
2130
+ y.key === ht && (y.metaKey || y.ctrlKey) && (y.preventDefault(), E());
2131
+ };
2132
+ return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
2133
+ }, [E]);
2134
+ const en = z ? "expanded" : "collapsed", Cn = f.useMemo(
2135
+ () => ({
2136
+ state: en,
2137
+ open: z,
2138
+ setOpen: N,
2139
+ isMobile: s,
2140
+ openMobile: m,
2141
+ setOpenMobile: b,
2142
+ toggleSidebar: E
2143
+ }),
2144
+ [en, z, N, s, m, b, E]
2145
+ );
2146
+ return /* @__PURE__ */ e(kn.Provider, { value: Cn, children: /* @__PURE__ */ e(un, { delayDuration: 0, children: /* @__PURE__ */ e(
2147
+ "div",
2148
+ {
2149
+ "data-slot": "sidebar-wrapper",
2150
+ style: {
2151
+ "--sidebar-width": ft,
2152
+ "--sidebar-width-icon": bt,
2153
+ ...p
2154
+ },
2155
+ className: a(
2156
+ "ncp:group/sidebar-wrapper ncp:has-data-[variant=inset]:bg-sidebar ncp:flex ncp:min-h-svh ncp:w-full",
2157
+ r
2158
+ ),
2159
+ ...l,
2160
+ children: i
2161
+ }
2162
+ ) }) });
2163
+ }
2164
+ function Lc({
2165
+ side: n = "left",
2166
+ variant: t = "sidebar",
2167
+ collapsible: c = "offcanvas",
2168
+ className: r,
2169
+ children: p,
2170
+ ...i
2171
+ }) {
2172
+ const { isMobile: l, state: s, openMobile: m, setOpenMobile: b } = O();
2173
+ return c === "none" ? /* @__PURE__ */ e(
2174
+ "div",
2175
+ {
2176
+ "data-slot": "sidebar",
2177
+ className: a(
2178
+ "ncp:bg-sidebar ncp:text-sidebar-foreground ncp:flex ncp:h-full ncp:w-(--sidebar-width) ncp:flex-col",
2179
+ r
2180
+ ),
2181
+ ...i,
2182
+ children: p
2183
+ }
2184
+ ) : l ? /* @__PURE__ */ e(at, { open: m, onOpenChange: b, ...i, children: /* @__PURE__ */ o(
2185
+ pt,
2186
+ {
2187
+ "data-sidebar": "sidebar",
2188
+ "data-slot": "sidebar",
2189
+ "data-mobile": "true",
2190
+ className: "ncp:bg-sidebar ncp:text-sidebar-foreground ncp:w-(--sidebar-width) ncp:p-0 ncp:[&>button]:hidden",
2191
+ style: {
2192
+ "--sidebar-width": gt
2193
+ },
2194
+ side: n,
2195
+ children: [
2196
+ /* @__PURE__ */ o(it, { className: "ncp:sr-only", children: [
2197
+ /* @__PURE__ */ e(st, { children: "Sidebar" }),
2198
+ /* @__PURE__ */ e(lt, { children: "Displays the mobile sidebar." })
2199
+ ] }),
2200
+ /* @__PURE__ */ e("div", { className: "ncp:flex ncp:h-full ncp:w-full ncp:flex-col", children: p })
2201
+ ]
2202
+ }
2203
+ ) }) : /* @__PURE__ */ o(
2204
+ "div",
2205
+ {
2206
+ className: "ncp:group ncp:peer ncp:text-sidebar-foreground ncp:hidden ncp:md:block",
2207
+ "data-state": s,
2208
+ "data-collapsible": s === "collapsed" ? c : "",
2209
+ "data-variant": t,
2210
+ "data-side": n,
2211
+ "data-slot": "sidebar",
2212
+ children: [
2213
+ /* @__PURE__ */ e(
2214
+ "div",
2215
+ {
2216
+ "data-slot": "sidebar-gap",
2217
+ className: a(
2218
+ "ncp:relative ncp:w-(--sidebar-width) ncp:bg-transparent ncp:transition-[width] ncp:duration-200 ncp:ease-linear",
2219
+ "ncp:group-data-[collapsible=offcanvas]:w-0",
2220
+ "ncp:group-data-[side=right]:rotate-180",
2221
+ t === "floating" || t === "inset" ? "ncp:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "ncp:group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
2222
+ )
2223
+ }
2224
+ ),
2225
+ /* @__PURE__ */ e(
2226
+ "div",
2227
+ {
2228
+ "data-slot": "sidebar-container",
2229
+ className: a(
2230
+ "ncp:fixed ncp:inset-y-0 ncp:z-10 ncp:hidden ncp:h-svh ncp:w-(--sidebar-width) ncp:transition-[left,right,width] ncp:duration-200 ncp:ease-linear ncp:md:flex",
2231
+ n === "left" ? "ncp:left-0 ncp:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "ncp:right-0 ncp:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
2232
+ // Adjust the padding for floating and inset variants.
2233
+ t === "floating" || t === "inset" ? "ncp:p-2 ncp:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "ncp:group-data-[collapsible=icon]:w-(--sidebar-width-icon) ncp:group-data-[side=left]:border-r ncp:group-data-[side=right]:border-l",
2234
+ r
2235
+ ),
2236
+ ...i,
2237
+ children: /* @__PURE__ */ e(
2238
+ "div",
2239
+ {
2240
+ "data-sidebar": "sidebar",
2241
+ "data-slot": "sidebar-inner",
2242
+ className: "ncp:bg-sidebar ncp:group-data-[variant=floating]:border-sidebar-border ncp:flex ncp:h-full ncp:w-full ncp:flex-col ncp:group-data-[variant=floating]:rounded-lg ncp:group-data-[variant=floating]:border ncp:group-data-[variant=floating]:shadow-sm",
2243
+ children: p
2244
+ }
2245
+ )
2246
+ }
2247
+ )
2248
+ ]
2249
+ }
2250
+ );
2251
+ }
2252
+ function Gc({ className: n, onClick: t, ...c }) {
2253
+ const { toggleSidebar: r } = O();
2254
+ return /* @__PURE__ */ o(
2255
+ I,
2256
+ {
2257
+ "data-sidebar": "trigger",
2258
+ "data-slot": "sidebar-trigger",
2259
+ variant: "ghost",
2260
+ size: "icon",
2261
+ className: a("ncp:size-7", n),
2262
+ onClick: (p) => {
2263
+ t == null || t(p), r();
2264
+ },
2265
+ ...c,
2266
+ children: [
2267
+ /* @__PURE__ */ e(Wn, {}),
2268
+ /* @__PURE__ */ e("span", { className: "ncp:sr-only", children: "Toggle Sidebar" })
2269
+ ]
2270
+ }
2271
+ );
2272
+ }
2273
+ function Oc({ className: n, ...t }) {
2274
+ const { toggleSidebar: c } = O();
2275
+ return /* @__PURE__ */ e(
2276
+ "button",
2277
+ {
2278
+ "data-sidebar": "rail",
2279
+ "data-slot": "sidebar-rail",
2280
+ "aria-label": "Toggle Sidebar",
2281
+ tabIndex: -1,
2282
+ onClick: c,
2283
+ title: "Toggle Sidebar",
2284
+ className: a(
2285
+ "ncp:hover:after:bg-sidebar-border ncp:absolute ncp:inset-y-0 ncp:z-20 ncp:hidden ncp:w-4 ncp:-translate-x-1/2 ncp:transition-all ncp:ease-linear ncp:group-data-[side=left]:-right-4 ncp:group-data-[side=right]:left-0 ncp:after:absolute ncp:after:inset-y-0 ncp:after:left-1/2 ncp:after:w-[2px] ncp:sm:flex",
2286
+ "ncp:in-data-[side=left]:cursor-w-resize ncp:in-data-[side=right]:cursor-e-resize",
2287
+ "ncp:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize ncp:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
2288
+ "ncp:hover:group-data-[collapsible=offcanvas]:bg-sidebar ncp:group-data-[collapsible=offcanvas]:translate-x-0 ncp:group-data-[collapsible=offcanvas]:after:left-full",
2289
+ "ncp:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
2290
+ "ncp:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
2291
+ n
2292
+ ),
2293
+ ...t
2294
+ }
2295
+ );
2296
+ }
2297
+ function Uc({ className: n, ...t }) {
2298
+ return /* @__PURE__ */ e(
2299
+ "main",
2300
+ {
2301
+ "data-slot": "sidebar-inset",
2302
+ className: a(
2303
+ "ncp:bg-background ncp:relative ncp:flex ncp:w-full ncp:flex-1 ncp:flex-col",
2304
+ "ncp:md:peer-data-[variant=inset]:m-2 ncp:md:peer-data-[variant=inset]:ml-0 ncp:md:peer-data-[variant=inset]:rounded-xl ncp:md:peer-data-[variant=inset]:shadow-sm ncp:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
2305
+ n
2306
+ ),
2307
+ ...t
2308
+ }
2309
+ );
2310
+ }
2311
+ function Vc({ className: n, ...t }) {
2312
+ return /* @__PURE__ */ e(
2313
+ et,
2314
+ {
2315
+ "data-slot": "sidebar-input",
2316
+ "data-sidebar": "input",
2317
+ className: a("ncp:bg-background ncp:h-8 ncp:w-full ncp:shadow-none", n),
2318
+ ...t
2319
+ }
2320
+ );
2321
+ }
2322
+ function Hc({ className: n, ...t }) {
2323
+ return /* @__PURE__ */ e(
2324
+ "div",
2325
+ {
2326
+ "data-slot": "sidebar-header",
2327
+ "data-sidebar": "header",
2328
+ className: a("ncp:flex ncp:flex-col ncp:gap-2 ncp:p-2", n),
2329
+ ...t
2330
+ }
2331
+ );
2332
+ }
2333
+ function $c({ className: n, ...t }) {
2334
+ return /* @__PURE__ */ e(
2335
+ "div",
2336
+ {
2337
+ "data-slot": "sidebar-footer",
2338
+ "data-sidebar": "footer",
2339
+ className: a("ncp:flex ncp:flex-col ncp:gap-2 ncp:p-2", n),
2340
+ ...t
2341
+ }
2342
+ );
2343
+ }
2344
+ function qc({ className: n, ...t }) {
2345
+ return /* @__PURE__ */ e(
2346
+ yn,
2347
+ {
2348
+ "data-slot": "sidebar-separator",
2349
+ "data-sidebar": "separator",
2350
+ className: a("ncp:bg-sidebar-border ncp:mx-2 ncp:w-auto", n),
2351
+ ...t
2352
+ }
2353
+ );
2354
+ }
2355
+ function Wc({ className: n, ...t }) {
2356
+ return /* @__PURE__ */ e(
2357
+ "div",
2358
+ {
2359
+ "data-slot": "sidebar-content",
2360
+ "data-sidebar": "content",
2361
+ className: a(
2362
+ "ncp:flex ncp:min-h-0 ncp:flex-1 ncp:flex-col ncp:gap-2 ncp:overflow-auto ncp:group-data-[collapsible=icon]:overflow-hidden",
2363
+ n
2364
+ ),
2365
+ ...t
2366
+ }
2367
+ );
2368
+ }
2369
+ function Kc({ className: n, ...t }) {
2370
+ return /* @__PURE__ */ e(
2371
+ "div",
2372
+ {
2373
+ "data-slot": "sidebar-group",
2374
+ "data-sidebar": "group",
2375
+ className: a("ncp:relative ncp:flex ncp:w-full ncp:min-w-0 ncp:flex-col ncp:p-2", n),
2376
+ ...t
2377
+ }
2378
+ );
2379
+ }
2380
+ function Xc({
2381
+ className: n,
2382
+ asChild: t = !1,
2383
+ ...c
2384
+ }) {
2385
+ return /* @__PURE__ */ e(
2386
+ t ? M : "div",
2387
+ {
2388
+ "data-slot": "sidebar-group-label",
2389
+ "data-sidebar": "group-label",
2390
+ className: a(
2391
+ "ncp:text-sidebar-foreground/70 ncp:ring-sidebar-ring ncp:flex ncp:h-8 ncp:shrink-0 ncp:items-center ncp:rounded-md ncp:px-2 ncp:text-xs ncp:font-medium ncp:outline-hidden ncp:transition-[margin,opacity] ncp:duration-200 ncp:ease-linear ncp:focus-visible:ring-2 ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0",
2392
+ "ncp:group-data-[collapsible=icon]:-mt-8 ncp:group-data-[collapsible=icon]:opacity-0",
2393
+ n
2394
+ ),
2395
+ ...c
2396
+ }
2397
+ );
2398
+ }
2399
+ function Jc({
2400
+ className: n,
2401
+ asChild: t = !1,
2402
+ ...c
2403
+ }) {
2404
+ return /* @__PURE__ */ e(
2405
+ t ? M : "button",
2406
+ {
2407
+ "data-slot": "sidebar-group-action",
2408
+ "data-sidebar": "group-action",
2409
+ className: a(
2410
+ "ncp:text-sidebar-foreground ncp:ring-sidebar-ring ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:absolute ncp:top-3.5 ncp:right-3 ncp:flex ncp:aspect-square ncp:w-5 ncp:items-center ncp:justify-center ncp:rounded-md ncp:p-0 ncp:outline-hidden ncp:transition-transform ncp:focus-visible:ring-2 ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0",
2411
+ // Increases the hit area of the button on mobile.
2412
+ "ncp:after:absolute ncp:after:-inset-2 ncp:md:after:hidden",
2413
+ "ncp:group-data-[collapsible=icon]:hidden",
2414
+ n
2415
+ ),
2416
+ ...c
2417
+ }
2418
+ );
2419
+ }
2420
+ function Yc({ className: n, ...t }) {
2421
+ return /* @__PURE__ */ e(
2422
+ "div",
2423
+ {
2424
+ "data-slot": "sidebar-group-content",
2425
+ "data-sidebar": "group-content",
2426
+ className: a("ncp:w-full ncp:text-sm", n),
2427
+ ...t
2428
+ }
2429
+ );
2430
+ }
2431
+ function Qc({ className: n, ...t }) {
2432
+ return /* @__PURE__ */ e(
2433
+ "ul",
2434
+ {
2435
+ "data-slot": "sidebar-menu",
2436
+ "data-sidebar": "menu",
2437
+ className: a("ncp:flex ncp:w-full ncp:min-w-0 ncp:flex-col ncp:gap-1", n),
2438
+ ...t
2439
+ }
2440
+ );
2441
+ }
2442
+ function Zc({ className: n, ...t }) {
2443
+ return /* @__PURE__ */ e(
2444
+ "li",
2445
+ {
2446
+ "data-slot": "sidebar-menu-item",
2447
+ "data-sidebar": "menu-item",
2448
+ className: a("ncp:group/menu-item ncp:relative", n),
2449
+ ...t
2450
+ }
2451
+ );
2452
+ }
2453
+ const xt = L(
2454
+ "ncp:peer/menu-button ncp:flex ncp:w-full ncp:items-center ncp:gap-2 ncp:overflow-hidden ncp:rounded-md ncp:p-2 ncp:text-left ncp:text-sm ncp:outline-hidden ncp:ring-sidebar-ring ncp:transition-[width,height,padding] ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:focus-visible:ring-2 ncp:active:bg-sidebar-accent ncp:active:text-sidebar-accent-foreground ncp:disabled:pointer-events-none ncp:disabled:opacity-50 ncp:group-has-data-[sidebar=menu-action]/menu-item:pr-8 ncp:aria-disabled:pointer-events-none ncp:aria-disabled:opacity-50 ncp:data-[active=true]:bg-sidebar-accent ncp:data-[active=true]:font-medium ncp:data-[active=true]:text-sidebar-accent-foreground ncp:data-[state=open]:hover:bg-sidebar-accent ncp:data-[state=open]:hover:text-sidebar-accent-foreground ncp:group-data-[collapsible=icon]:size-8! ncp:group-data-[collapsible=icon]:p-2! ncp:[&>span:last-child]:truncate ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0",
2455
+ {
2456
+ variants: {
2457
+ variant: {
2458
+ default: "ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground",
2459
+ outline: "ncp:bg-background ncp:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
2460
+ },
2461
+ size: {
2462
+ default: "ncp:h-8 ncp:text-sm",
2463
+ sm: "ncp:h-7 ncp:text-xs",
2464
+ lg: "ncp:h-12 ncp:text-sm ncp:group-data-[collapsible=icon]:p-0!"
2465
+ }
2466
+ },
2467
+ defaultVariants: {
2468
+ variant: "default",
2469
+ size: "default"
2470
+ }
2471
+ }
2472
+ );
2473
+ function na({
2474
+ asChild: n = !1,
2475
+ isActive: t = !1,
2476
+ variant: c = "default",
2477
+ size: r = "default",
2478
+ tooltip: p,
2479
+ className: i,
2480
+ ...l
2481
+ }) {
2482
+ const s = n ? M : "button", { isMobile: m, state: b } = O(), w = /* @__PURE__ */ e(
2483
+ s,
2484
+ {
2485
+ "data-slot": "sidebar-menu-button",
2486
+ "data-sidebar": "menu-button",
2487
+ "data-size": r,
2488
+ "data-active": t,
2489
+ className: a(xt({ variant: c, size: r }), i),
2490
+ ...l
2491
+ }
2492
+ );
2493
+ return p ? (typeof p == "string" && (p = {
2494
+ children: p
2495
+ }), /* @__PURE__ */ o(Q, { children: [
2496
+ /* @__PURE__ */ e(Z, { asChild: !0, children: w }),
2497
+ /* @__PURE__ */ e(
2498
+ nn,
2499
+ {
2500
+ side: "right",
2501
+ align: "center",
2502
+ hidden: b !== "collapsed" || m,
2503
+ ...p
2504
+ }
2505
+ )
2506
+ ] })) : w;
2507
+ }
2508
+ function ea({
2509
+ className: n,
2510
+ asChild: t = !1,
2511
+ showOnHover: c = !1,
2512
+ ...r
2513
+ }) {
2514
+ return /* @__PURE__ */ e(
2515
+ t ? M : "button",
2516
+ {
2517
+ "data-slot": "sidebar-menu-action",
2518
+ "data-sidebar": "menu-action",
2519
+ className: a(
2520
+ "ncp:text-sidebar-foreground ncp:ring-sidebar-ring ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:peer-hover/menu-button:text-sidebar-accent-foreground ncp:absolute ncp:top-1.5 ncp:right-1 ncp:flex ncp:aspect-square ncp:w-5 ncp:items-center ncp:justify-center ncp:rounded-md ncp:p-0 ncp:outline-hidden ncp:transition-transform ncp:focus-visible:ring-2 ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0",
2521
+ // Increases the hit area of the button on mobile.
2522
+ "ncp:after:absolute ncp:after:-inset-2 ncp:md:after:hidden",
2523
+ "ncp:peer-data-[size=sm]/menu-button:top-1",
2524
+ "ncp:peer-data-[size=default]/menu-button:top-1.5",
2525
+ "ncp:peer-data-[size=lg]/menu-button:top-2.5",
2526
+ "ncp:group-data-[collapsible=icon]:hidden",
2527
+ c && "ncp:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground ncp:group-focus-within/menu-item:opacity-100 ncp:group-hover/menu-item:opacity-100 ncp:data-[state=open]:opacity-100 ncp:md:opacity-0",
2528
+ n
2529
+ ),
2530
+ ...r
2531
+ }
2532
+ );
2533
+ }
2534
+ function ta({ className: n, ...t }) {
2535
+ return /* @__PURE__ */ e(
2536
+ "div",
2537
+ {
2538
+ "data-slot": "sidebar-menu-badge",
2539
+ "data-sidebar": "menu-badge",
2540
+ className: a(
2541
+ "ncp:text-sidebar-foreground ncp:pointer-events-none ncp:absolute ncp:right-1 ncp:flex ncp:h-5 ncp:min-w-5 ncp:items-center ncp:justify-center ncp:rounded-md ncp:px-1 ncp:text-xs ncp:font-medium ncp:tabular-nums ncp:select-none",
2542
+ "ncp:peer-hover/menu-button:text-sidebar-accent-foreground ncp:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
2543
+ "ncp:peer-data-[size=sm]/menu-button:top-1",
2544
+ "ncp:peer-data-[size=default]/menu-button:top-1.5",
2545
+ "ncp:peer-data-[size=lg]/menu-button:top-2.5",
2546
+ "ncp:group-data-[collapsible=icon]:hidden",
2547
+ n
2548
+ ),
2549
+ ...t
2550
+ }
2551
+ );
2552
+ }
2553
+ function ca({
2554
+ className: n,
2555
+ showIcon: t = !1,
2556
+ ...c
2557
+ }) {
2558
+ const r = f.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
2559
+ return /* @__PURE__ */ o(
2560
+ "div",
2561
+ {
2562
+ "data-slot": "sidebar-menu-skeleton",
2563
+ "data-sidebar": "menu-skeleton",
2564
+ className: a(
2565
+ "ncp:flex ncp:h-8 ncp:items-center ncp:gap-2 ncp:rounded-md ncp:px-2",
2566
+ n
2567
+ ),
2568
+ ...c,
2569
+ children: [
2570
+ t && /* @__PURE__ */ e(on, { className: "ncp:size-4 ncp:rounded-md", "data-sidebar": "menu-skeleton-icon" }),
2571
+ /* @__PURE__ */ e(
2572
+ on,
2573
+ {
2574
+ className: "ncp:h-4 ncp:max-w-(--skeleton-width) ncp:flex-1",
2575
+ "data-sidebar": "menu-skeleton-text",
2576
+ style: {
2577
+ "--skeleton-width": r
2578
+ }
2579
+ }
2580
+ )
2581
+ ]
2582
+ }
2583
+ );
2584
+ }
2585
+ function aa({ className: n, ...t }) {
2586
+ return /* @__PURE__ */ e(
2587
+ "ul",
2588
+ {
2589
+ "data-slot": "sidebar-menu-sub",
2590
+ "data-sidebar": "menu-sub",
2591
+ className: a(
2592
+ "ncp:border-sidebar-border ncp:mx-3.5 ncp:flex ncp:min-w-0 ncp:translate-x-px ncp:flex-col ncp:gap-1 ncp:border-l ncp:px-2.5 ncp:py-0.5",
2593
+ "ncp:group-data-[collapsible=icon]:hidden",
2594
+ n
2595
+ ),
2596
+ ...t
2597
+ }
2598
+ );
2599
+ }
2600
+ function ra({ className: n, ...t }) {
2601
+ return /* @__PURE__ */ e(
2602
+ "li",
2603
+ {
2604
+ "data-slot": "sidebar-menu-sub-item",
2605
+ "data-sidebar": "menu-sub-item",
2606
+ className: a("ncp:group/menu-sub-item ncp:relative", n),
2607
+ ...t
2608
+ }
2609
+ );
2610
+ }
2611
+ function oa({
2612
+ asChild: n = !1,
2613
+ size: t = "md",
2614
+ isActive: c = !1,
2615
+ className: r,
2616
+ ...p
2617
+ }) {
2618
+ return /* @__PURE__ */ e(
2619
+ n ? M : "a",
2620
+ {
2621
+ "data-slot": "sidebar-menu-sub-button",
2622
+ "data-sidebar": "menu-sub-button",
2623
+ "data-size": t,
2624
+ "data-active": c,
2625
+ className: a(
2626
+ "ncp:text-sidebar-foreground ncp:ring-sidebar-ring ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:active:bg-sidebar-accent ncp:active:text-sidebar-accent-foreground ncp:[&>svg]:text-sidebar-accent-foreground ncp:flex ncp:h-7 ncp:min-w-0 ncp:-translate-x-px ncp:items-center ncp:gap-2 ncp:overflow-hidden ncp:rounded-md ncp:px-2 ncp:outline-hidden ncp:focus-visible:ring-2 ncp:disabled:pointer-events-none ncp:disabled:opacity-50 ncp:aria-disabled:pointer-events-none ncp:aria-disabled:opacity-50 ncp:[&>span:last-child]:truncate ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0",
2627
+ "ncp:data-[active=true]:bg-sidebar-accent ncp:data-[active=true]:text-sidebar-accent-foreground",
2628
+ t === "sm" && "ncp:text-xs",
2629
+ t === "md" && "ncp:text-sm",
2630
+ "ncp:group-data-[collapsible=icon]:hidden",
2631
+ r
2632
+ ),
2633
+ ...p
2634
+ }
2635
+ );
2636
+ }
2637
+ function pa({ className: n, ...t }) {
2638
+ return /* @__PURE__ */ e(
2639
+ cn.Root,
2640
+ {
2641
+ "data-slot": "switch",
2642
+ className: a(
2643
+ "ncp:peer ncp:data-[state=checked]:bg-primary ncp:data-[state=unchecked]:bg-input ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:dark:data-[state=unchecked]:bg-input/80 ncp:inline-flex ncp:h-[1.15rem] ncp:w-8 ncp:shrink-0 ncp:items-center ncp:rounded-full ncp:border ncp:border-transparent ncp:shadow-xs ncp:transition-all ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50",
2644
+ n
2645
+ ),
2646
+ ...t,
2647
+ children: /* @__PURE__ */ e(
2648
+ cn.Thumb,
2649
+ {
2650
+ "data-slot": "switch-thumb",
2651
+ className: a(
2652
+ "ncp:bg-background ncp:dark:data-[state=unchecked]:bg-foreground ncp:dark:data-[state=checked]:bg-primary-foreground ncp:pointer-events-none ncp:block ncp:size-4 ncp:rounded-full ncp:ring-0 ncp:transition-transform ncp:data-[state=checked]:translate-x-[calc(100%-2px)] ncp:data-[state=unchecked]:translate-x-0"
2653
+ )
2654
+ }
2655
+ )
2656
+ }
2657
+ );
2658
+ }
2659
+ const zn = f.createContext("inline"), B = () => f.useContext(zn);
2660
+ function ia({ className: n, variant: t, ...c }) {
2661
+ return /* @__PURE__ */ e(zn.Provider, { value: t, children: /* @__PURE__ */ e(
2662
+ "div",
2663
+ {
2664
+ "data-slot": "table-container",
2665
+ className: a(
2666
+ "ncp:relative ncp:w-full ncp:overflow-x-auto",
2667
+ t === "card" && "ncp:border ncp:border-[#ececec] ncp:rounded-lg"
2668
+ ),
2669
+ children: /* @__PURE__ */ e(
2670
+ "table",
2671
+ {
2672
+ "data-slot": "table",
2673
+ className: a("ncp:w-full ncp:caption-bottom ncp:text-sm", n),
2674
+ ...c
2675
+ }
2676
+ )
2677
+ }
2678
+ ) });
2679
+ }
2680
+ function sa({ className: n, ...t }) {
2681
+ const c = B();
2682
+ return /* @__PURE__ */ e(
2683
+ "thead",
2684
+ {
2685
+ "data-slot": "table-header",
2686
+ className: a(
2687
+ "ncp:[&_tr]:border-b",
2688
+ c === "card" && "ncp:bg-[#f9f9f9] ncp:[&_tr]:border-[#ececec]",
2689
+ n
2690
+ ),
2691
+ ...t
2692
+ }
2693
+ );
2694
+ }
2695
+ function la({ className: n, ...t }) {
2696
+ const c = B();
2697
+ return /* @__PURE__ */ e(
2698
+ "tbody",
2699
+ {
2700
+ "data-slot": "table-body",
2701
+ className: a(
2702
+ "ncp:[&_tr:last-child]:border-0",
2703
+ c === "card" && "ncp:bg-white",
2704
+ n
2705
+ ),
2706
+ ...t
2707
+ }
2708
+ );
2709
+ }
2710
+ function da({ className: n, ...t }) {
2711
+ return /* @__PURE__ */ e(
2712
+ "tfoot",
2713
+ {
2714
+ "data-slot": "table-footer",
2715
+ className: a(
2716
+ "ncp:bg-muted/50 ncp:border-t ncp:font-medium ncp:[&>tr]:last:border-b-0",
2717
+ n
2718
+ ),
2719
+ ...t
2720
+ }
2721
+ );
2722
+ }
2723
+ function ua({ className: n, ...t }) {
2724
+ const c = B();
2725
+ return /* @__PURE__ */ e(
2726
+ "tr",
2727
+ {
2728
+ "data-slot": "table-row",
2729
+ className: a(
2730
+ "ncp:border-b ncp:transition-colors",
2731
+ c === "inline" && "ncp:hover:bg-muted/50 ncp:data-[state=selected]:bg-muted",
2732
+ c === "card" && "ncp:border-[#ececec] ncp:hover:bg-[#f9f9f9]",
2733
+ n
2734
+ ),
2735
+ ...t
2736
+ }
2737
+ );
2738
+ }
2739
+ function ma({ className: n, ...t }) {
2740
+ const c = B();
2741
+ return /* @__PURE__ */ e(
2742
+ "th",
2743
+ {
2744
+ "data-slot": "table-head",
2745
+ className: a(
2746
+ "ncp:text-left ncp:align-middle ncp:font-medium ncp:whitespace-nowrap ncp:[&:has([role=checkbox])]:pr-0 ncp:[&>[role=checkbox]]:translate-y-[2px]",
2747
+ c === "inline" && "ncp:text-foreground ncp:h-12 ncp:px-4 ncp:text-muted-foreground",
2748
+ c === "card" && "ncp:py-3 ncp:px-4 ncp:text-sm ncp:text-[#000000]",
2749
+ n
2750
+ ),
2751
+ ...t
2752
+ }
2753
+ );
2754
+ }
2755
+ function fa({ className: n, ...t }) {
2756
+ const c = B();
2757
+ return /* @__PURE__ */ e(
2758
+ "td",
2759
+ {
2760
+ "data-slot": "table-cell",
2761
+ className: a(
2762
+ "ncp:align-middle ncp:whitespace-nowrap ncp:[&:has([role=checkbox])]:pr-0 ncp:[&>[role=checkbox]]:translate-y-[2px]",
2763
+ c === "inline" && "ncp:p-4",
2764
+ c === "card" && "ncp:py-3 ncp:px-4 ncp:text-sm ncp:text-[#000000]",
2765
+ n
2766
+ ),
2767
+ ...t
2768
+ }
2769
+ );
2770
+ }
2771
+ function ga({ className: n, ...t }) {
2772
+ return /* @__PURE__ */ e(
2773
+ "caption",
2774
+ {
2775
+ "data-slot": "table-caption",
2776
+ className: a("ncp:text-muted-foreground ncp:mt-4 ncp:text-sm", n),
2777
+ ...t
2778
+ }
2779
+ );
2780
+ }
2781
+ function ba({ className: n, ...t }) {
2782
+ return /* @__PURE__ */ e(
2783
+ "textarea",
2784
+ {
2785
+ "data-slot": "textarea",
2786
+ className: a(
2787
+ "ncp:border-input ncp:placeholder:text-muted-foreground ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive ncp:dark:bg-input/30 ncp:flex ncp:field-sizing-content ncp:min-h-16 ncp:w-full ncp:rounded-md ncp:border ncp:bg-transparent ncp:px-3 ncp:py-2 ncp:text-base ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50 ncp:md:text-sm",
2788
+ n
2789
+ ),
2790
+ ...t
2791
+ }
2792
+ );
2793
+ }
2794
+ const vt = {
2795
+ h1: "ncp:scroll-m-20 ncp:text-center ncp:text-3xl ncp:font-extrabold ncp:tracking-tight ncp:text-balance",
2796
+ h2: "ncp:scroll-m-20 ncp:text-2xl ncp:font-semibold ncp:tracking-tight",
2797
+ h3: "ncp:scroll-m-20 ncp:text-xl ncp:font-semibold ncp:tracking-tight",
2798
+ h4: "ncp:scroll-m-20 ncp:text-lg ncp:font-semibold ncp:tracking-tight",
2799
+ p: "ncp:leading-7 ncp:whitespace-pre-wrap ncp:text-muted-foreground",
2800
+ small: "ncp:text-sm ncp:leading-none ncp:font-medium ncp:text-muted-foreground"
2801
+ }, ha = ({ variant: n, children: t, className: c }) => Kn.createElement(
2802
+ n,
2803
+ { className: a(vt[n], c) },
2804
+ t
2805
+ );
2806
+ export {
2807
+ At as Alert,
2808
+ Pt as AlertDescription,
2809
+ Dt as AlertTitle,
2810
+ Ut as AssistantSidebar,
2811
+ de as Avatar,
2812
+ Bt as AvatarBadge,
2813
+ me as AvatarFallback,
2814
+ Et as AvatarGroup,
2815
+ jt as AvatarGroupCount,
2816
+ ue as AvatarImage,
2817
+ Vt as Breadcrumb,
2818
+ Xt as BreadcrumbEllipsis,
2819
+ $t as BreadcrumbItem,
2820
+ qt as BreadcrumbLink,
2821
+ Ht as BreadcrumbList,
2822
+ Wt as BreadcrumbPage,
2823
+ Kt as BreadcrumbSeparator,
2824
+ I as Button,
2825
+ Jt as Card,
2826
+ nc as CardAction,
2827
+ ec as CardContent,
2828
+ Zt as CardDescription,
2829
+ tc as CardFooter,
2830
+ Yt as CardHeader,
2831
+ Qt as CardTitle,
2832
+ De as Collapsible,
2833
+ Be as CollapsibleContent,
2834
+ Pe as CollapsibleTrigger,
2835
+ Ie as ComposerAddAttachment,
2836
+ Se as ComposerAttachments,
2837
+ fe as Dialog,
2838
+ Ft as DialogClose,
2839
+ xe as DialogContent,
2840
+ Ot as DialogDescription,
2841
+ Gt as DialogFooter,
2842
+ Lt as DialogHeader,
2843
+ he as DialogOverlay,
2844
+ be as DialogPortal,
2845
+ ve as DialogTitle,
2846
+ ge as DialogTrigger,
2847
+ cc as DropdownMenu,
2848
+ sc as DropdownMenuCheckboxItem,
2849
+ oc as DropdownMenuContent,
2850
+ pc as DropdownMenuGroup,
2851
+ ic as DropdownMenuItem,
2852
+ uc as DropdownMenuLabel,
2853
+ ac as DropdownMenuPortal,
2854
+ lc as DropdownMenuRadioGroup,
2855
+ dc as DropdownMenuRadioItem,
2856
+ mc as DropdownMenuSeparator,
2857
+ fc as DropdownMenuShortcut,
2858
+ gc as DropdownMenuSub,
2859
+ hc as DropdownMenuSubContent,
2860
+ bc as DropdownMenuSubTrigger,
2861
+ rc as DropdownMenuTrigger,
2862
+ Nc as Field,
2863
+ yc as FieldContent,
2864
+ Cc as FieldDescription,
2865
+ Ic as FieldError,
2866
+ wc as FieldGroup,
2867
+ kc as FieldLabel,
2868
+ vc as FieldLegend,
2869
+ Sc as FieldSeparator,
2870
+ xc as FieldSet,
2871
+ zc as FieldTitle,
2872
+ et as Input,
2873
+ Ze as Label,
2874
+ _e as MarkdownText,
2875
+ Tc as RadioGroup,
2876
+ _c as RadioGroupItem,
2877
+ Qe as ResizableHandle,
2878
+ rn as ResizablePanel,
2879
+ Ye as ResizablePanelGroup,
2880
+ Rc as Select,
2881
+ Pc as SelectContent,
2882
+ Mc as SelectGroup,
2883
+ Ec as SelectItem,
2884
+ Bc as SelectLabel,
2885
+ ct as SelectScrollDownButton,
2886
+ tt as SelectScrollUpButton,
2887
+ jc as SelectSeparator,
2888
+ Dc as SelectTrigger,
2889
+ Ac as SelectValue,
2890
+ yn as Separator,
2891
+ Lc as Sidebar,
2892
+ Wc as SidebarContent,
2893
+ $c as SidebarFooter,
2894
+ Kc as SidebarGroup,
2895
+ Jc as SidebarGroupAction,
2896
+ Yc as SidebarGroupContent,
2897
+ Xc as SidebarGroupLabel,
2898
+ Hc as SidebarHeader,
2899
+ Vc as SidebarInput,
2900
+ Uc as SidebarInset,
2901
+ Qc as SidebarMenu,
2902
+ ea as SidebarMenuAction,
2903
+ ta as SidebarMenuBadge,
2904
+ na as SidebarMenuButton,
2905
+ Zc as SidebarMenuItem,
2906
+ ca as SidebarMenuSkeleton,
2907
+ aa as SidebarMenuSub,
2908
+ oa as SidebarMenuSubButton,
2909
+ ra as SidebarMenuSubItem,
2910
+ Fc as SidebarProvider,
2911
+ Oc as SidebarRail,
2912
+ qc as SidebarSeparator,
2913
+ Gc as SidebarTrigger,
2914
+ on as Skeleton,
2915
+ pa as Switch,
2916
+ ia as Table,
2917
+ la as TableBody,
2918
+ ga as TableCaption,
2919
+ fa as TableCell,
2920
+ da as TableFooter,
2921
+ ma as TableHead,
2922
+ sa as TableHeader,
2923
+ ua as TableRow,
2924
+ ba as Textarea,
2925
+ Fe as Thread,
2926
+ k as ToolFallback,
2927
+ xn as ToolFallbackArgs,
2928
+ hn as ToolFallbackContent,
2929
+ wn as ToolFallbackError,
2930
+ vn as ToolFallbackResult,
2931
+ gn as ToolFallbackRoot,
2932
+ bn as ToolFallbackTrigger,
2933
+ Q as Tooltip,
2934
+ nn as TooltipContent,
2935
+ g as TooltipIconButton,
2936
+ un as TooltipProvider,
2937
+ Z as TooltipTrigger,
2938
+ ha as Typography,
2939
+ Ce as UserMessageAttachments,
2940
+ le as buttonVariants,
2941
+ O as useSidebar
2942
+ };