@viglet/viglet-design-system 2026.3.12 → 2026.3.14

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 (42) hide show
  1. package/README.md +45 -10
  2. package/dist/bento/bento-calendar.d.ts +52 -0
  3. package/dist/bento/bento-calendar.d.ts.map +1 -0
  4. package/dist/bento/bento-change-mark.d.ts +21 -0
  5. package/dist/bento/bento-change-mark.d.ts.map +1 -0
  6. package/dist/bento/bento-data-table.d.ts +8 -1
  7. package/dist/bento/bento-data-table.d.ts.map +1 -1
  8. package/dist/bento/bento-diff.d.ts +10 -1
  9. package/dist/bento/bento-diff.d.ts.map +1 -1
  10. package/dist/bento/bento-split-page.d.ts +31 -0
  11. package/dist/bento/bento-split-page.d.ts.map +1 -0
  12. package/dist/bento/bento-version-rail.d.ts.map +1 -1
  13. package/dist/bento/index.d.ts +4 -1
  14. package/dist/bento/index.d.ts.map +1 -1
  15. package/dist/bento.cjs +4 -4
  16. package/dist/bento.es.js +1430 -787
  17. package/dist/catalogue.json +195 -1
  18. package/dist/components/ui/index.d.ts +1 -1
  19. package/dist/components/ui/index.d.ts.map +1 -1
  20. package/dist/components/ui/viglet-assistant.d.ts +17 -1
  21. package/dist/components/ui/viglet-assistant.d.ts.map +1 -1
  22. package/dist/exports.json +17 -1
  23. package/dist/i18n/index.d.ts +44 -0
  24. package/dist/i18n/index.d.ts.map +1 -1
  25. package/dist/i18n/locales/en/bento.json.d.ts +22 -0
  26. package/dist/i18n/locales/pt/bento.json.d.ts +22 -0
  27. package/dist/i18n.cjs +1 -1
  28. package/dist/i18n.es.js +40 -0
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.es.js +1033 -1117
  31. package/dist/preset.css +1 -1
  32. package/dist/{user.context-BXQ7lgg5.js → user.context-D3kmD3_y.js} +285 -169
  33. package/dist/user.context-gQvBxcwr.cjs +1 -0
  34. package/dist/viglet-design-system.css +1 -1
  35. package/docs/BENTO-AUTHORING.md +13 -2
  36. package/docs/reference/README.md +2 -1
  37. package/docs/reference/canvas.json +10 -1
  38. package/docs/reference/split.dc.html +164 -0
  39. package/package.json +1 -1
  40. package/scripts/lib/contrast.mjs +29 -3
  41. package/scripts/page-reference.mjs +3 -3
  42. package/dist/user.context-D01CI8gq.cjs +0 -1
package/dist/index.es.js CHANGED
@@ -1,40 +1,38 @@
1
1
  "use client";
2
2
  import { a as e, n as t, r as n, t as r } from "./utils-Fk5jmzzb.js";
3
- import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, x as w } from "./badge-locale-Bx7m7tg2.js";
4
- import { A as T, B as ee, C as E, D, E as O, F as k, H as A, I as j, L as M, M as N, N as P, O as te, P as ne, R as F, S as re, T as ie, V as ae, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as I, i as pe, j as me, k as L, l as he, m as ge, n as _e, o as ve, p as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee, z as R } from "./user.context-BXQ7lgg5.js";
5
- import { FloatingFormulasBg as De } from "./floating-formulas-bg.es.js";
6
- import { i as Oe, n as ke, r as Ae } from "./products-Du9KB6Xl.js";
7
- import * as z from "@radix-ui/react-accordion";
8
- import * as B from "react";
9
- import je, { createContext as Me, useCallback as Ne, useContext as Pe, useEffect as V, useMemo as Fe, useRef as H, useState as Ie } from "react";
10
- import { Fragment as Le, jsx as U, jsxs as W } from "react/jsx-runtime";
11
- import * as Re from "@radix-ui/react-avatar";
12
- import { Slot as ze } from "@radix-ui/react-slot";
13
- import { cva as Be } from "class-variance-authority";
14
- import { useTranslation as G } from "react-i18next";
15
- import * as K from "@radix-ui/react-dialog";
16
- import { Drawer as q } from "vaul";
17
- import { Controller as Ve, FormProvider as He, useFormContext as Ue, useFormState as We } from "react-hook-form";
18
- import * as Ge from "@radix-ui/react-label";
19
- import { IconAlertTriangle as Ke, IconAlertTriangleFilled as qe, IconCheck as Je, IconCircleCheck as Ye, IconDeviceFloppy as Xe, IconLoader2 as Ze, IconLogout as Qe, IconRefresh as $e, IconTrash as et, IconUserCircle as tt, IconX as nt } from "@tabler/icons-react";
20
- import * as rt from "@radix-ui/react-switch";
21
- import * as it from "@radix-ui/react-hover-card";
22
- import * as at from "@radix-ui/react-navigation-menu";
23
- import { Progress as ot } from "radix-ui";
24
- import { Group as st, Panel as ct, Separator as lt } from "react-resizable-panels";
3
+ import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as ee, s as b, t as x, u as S, x as C } from "./badge-locale-Bx7m7tg2.js";
4
+ import { A as w, B as T, C as te, D as ne, E, F as D, G as O, H as k, I as A, J as j, K as M, L as re, M as ie, N, O as P, P as F, R as ae, S as oe, T as se, U as ce, V as le, W as ue, X as de, Y as fe, _ as I, a as pe, b as me, c as L, d as he, f as ge, g as _e, h as ve, i as ye, j as be, k as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, q as R, s as De, t as Oe, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./user.context-D3kmD3_y.js";
5
+ import { FloatingFormulasBg as Fe } from "./floating-formulas-bg.es.js";
6
+ import { i as Ie, n as Le, r as Re } from "./products-Du9KB6Xl.js";
7
+ import * as ze from "@radix-ui/react-accordion";
8
+ import * as z from "react";
9
+ import Be, { createContext as Ve, useCallback as He, useContext as Ue, useEffect as B, useMemo as We, useRef as V, useState as Ge } from "react";
10
+ import { Fragment as Ke, jsx as H, jsxs as U } from "react/jsx-runtime";
11
+ import * as qe from "@radix-ui/react-avatar";
12
+ import { Slot as Je } from "@radix-ui/react-slot";
13
+ import { cva as Ye } from "class-variance-authority";
14
+ import { useTranslation as W } from "react-i18next";
15
+ import * as G from "@radix-ui/react-dialog";
16
+ import { Drawer as K } from "vaul";
17
+ import { Controller as Xe, FormProvider as Ze, useFormContext as Qe, useFormState as $e } from "react-hook-form";
18
+ import * as et from "@radix-ui/react-label";
19
+ import { IconAlertTriangle as tt, IconAlertTriangleFilled as nt, IconCheck as rt, IconCircleCheck as it, IconDeviceFloppy as at, IconLoader2 as ot, IconLogout as st, IconRefresh as ct, IconTrash as lt, IconUserCircle as ut, IconX as dt } from "@tabler/icons-react";
20
+ import * as ft from "@radix-ui/react-switch";
21
+ import * as pt from "@radix-ui/react-hover-card";
22
+ import * as q from "@radix-ui/react-navigation-menu";
23
+ import { Progress as mt } from "radix-ui";
25
24
  import * as J from "@radix-ui/react-select";
26
- import * as ut from "@radix-ui/react-separator";
27
- import * as dt from "@radix-ui/react-slider";
28
- import { ThemeProvider as ft, useTheme as pt } from "next-themes";
29
- import { useSonner as mt } from "sonner";
30
- import * as ht from "@radix-ui/react-tabs";
31
- import * as gt from "@radix-ui/react-toggle";
32
- import * as _t from "@radix-ui/react-toggle-group";
25
+ import * as ht from "@radix-ui/react-separator";
26
+ import * as gt from "@radix-ui/react-slider";
27
+ import { ThemeProvider as _t, useTheme as vt } from "next-themes";
28
+ import { useSonner as yt } from "sonner";
29
+ import * as bt from "@radix-ui/react-toggle";
30
+ import * as xt from "@radix-ui/react-toggle-group";
33
31
  import Y from "axios";
34
- import { enUS as vt, ptBR as yt } from "date-fns/locale";
35
- import * as bt from "xlsx";
32
+ import { enUS as St, ptBR as Ct } from "date-fns/locale";
33
+ import * as wt from "xlsx";
36
34
  //#region node_modules/lucide-react/dist/esm/icons/book.mjs
37
- var xt = {
35
+ var Tt = {
38
36
  name: "book",
39
37
  size: 24,
40
38
  node: [["path", {
@@ -42,8 +40,8 @@ var xt = {
42
40
  key: "k3hazp"
43
41
  }]]
44
42
  };
45
- xt.node;
46
- var St = i(xt), Ct = {
43
+ Tt.node;
44
+ var Et = i(Tt), Dt = {
47
45
  name: "chevron-down",
48
46
  size: 24,
49
47
  node: [["path", {
@@ -51,8 +49,8 @@ var St = i(xt), Ct = {
51
49
  key: "qrunsl"
52
50
  }]]
53
51
  };
54
- Ct.node;
55
- var wt = i(Ct), Tt = {
52
+ Dt.node;
53
+ var Ot = i(Dt), kt = {
56
54
  name: "chevron-left",
57
55
  size: 24,
58
56
  node: [["path", {
@@ -60,8 +58,8 @@ var wt = i(Ct), Tt = {
60
58
  key: "1wnfg3"
61
59
  }]]
62
60
  };
63
- Tt.node;
64
- var Et = i(Tt), Dt = {
61
+ kt.node;
62
+ var At = i(kt), jt = {
65
63
  name: "chevron-up",
66
64
  size: 24,
67
65
  node: [["path", {
@@ -69,8 +67,8 @@ var Et = i(Tt), Dt = {
69
67
  key: "153udz"
70
68
  }]]
71
69
  };
72
- Dt.node;
73
- var Ot = i(Dt), kt = {
70
+ jt.node;
71
+ var Mt = i(jt), Nt = {
74
72
  name: "cloud",
75
73
  size: 24,
76
74
  node: [["path", {
@@ -78,8 +76,8 @@ var Ot = i(Dt), kt = {
78
76
  key: "p7xjir"
79
77
  }]]
80
78
  };
81
- kt.node;
82
- var At = i(kt), jt = {
79
+ Nt.node;
80
+ var Pt = i(Nt), Ft = {
83
81
  name: "ellipsis",
84
82
  size: 24,
85
83
  node: [
@@ -104,8 +102,8 @@ var At = i(kt), jt = {
104
102
  ],
105
103
  aliases: ["more-horizontal"]
106
104
  };
107
- jt.node;
108
- var Mt = i(jt), Nt = {
105
+ Ft.node;
106
+ var It = i(Ft), Lt = {
109
107
  name: "external-link",
110
108
  size: 24,
111
109
  node: [
@@ -123,51 +121,8 @@ var Mt = i(jt), Nt = {
123
121
  }]
124
122
  ]
125
123
  };
126
- Nt.node;
127
- var Pt = i(Nt), Ft = {
128
- name: "grip-vertical",
129
- size: 24,
130
- node: [
131
- ["circle", {
132
- cx: "9",
133
- cy: "12",
134
- r: "1",
135
- key: "1vctgf"
136
- }],
137
- ["circle", {
138
- cx: "9",
139
- cy: "5",
140
- r: "1",
141
- key: "hp0tcf"
142
- }],
143
- ["circle", {
144
- cx: "9",
145
- cy: "19",
146
- r: "1",
147
- key: "fkjjf6"
148
- }],
149
- ["circle", {
150
- cx: "15",
151
- cy: "12",
152
- r: "1",
153
- key: "1tmaij"
154
- }],
155
- ["circle", {
156
- cx: "15",
157
- cy: "5",
158
- r: "1",
159
- key: "19l28e"
160
- }],
161
- ["circle", {
162
- cx: "15",
163
- cy: "19",
164
- r: "1",
165
- key: "f4zoj3"
166
- }]
167
- ]
168
- };
169
- Ft.node;
170
- var It = i(Ft), Lt = {
124
+ Lt.node;
125
+ var Rt = i(Lt), zt = {
171
126
  name: "languages",
172
127
  size: 24,
173
128
  node: [
@@ -197,8 +152,8 @@ var It = i(Ft), Lt = {
197
152
  }]
198
153
  ]
199
154
  };
200
- Lt.node;
201
- var Rt = i(Lt), zt = {
155
+ zt.node;
156
+ var Bt = i(zt), Vt = {
202
157
  name: "layout-grid",
203
158
  size: 24,
204
159
  node: [
@@ -236,8 +191,8 @@ var Rt = i(Lt), zt = {
236
191
  }]
237
192
  ]
238
193
  };
239
- zt.node;
240
- var Bt = i(zt), Vt = {
194
+ Vt.node;
195
+ var Ht = i(Vt), Ut = {
241
196
  name: "menu",
242
197
  size: 24,
243
198
  node: [
@@ -255,8 +210,8 @@ var Bt = i(zt), Vt = {
255
210
  }]
256
211
  ]
257
212
  };
258
- Vt.node;
259
- var Ht = i(Vt), Ut = {
213
+ Ut.node;
214
+ var Wt = i(Ut), Gt = {
260
215
  name: "monitor",
261
216
  size: 24,
262
217
  node: [
@@ -284,8 +239,8 @@ var Ht = i(Vt), Ut = {
284
239
  }]
285
240
  ]
286
241
  };
287
- Ut.node;
288
- var Wt = i(Ut), Gt = {
242
+ Gt.node;
243
+ var Kt = i(Gt), qt = {
289
244
  name: "moon",
290
245
  size: 24,
291
246
  node: [["path", {
@@ -293,8 +248,8 @@ var Wt = i(Ut), Gt = {
293
248
  key: "kfwtm"
294
249
  }]]
295
250
  };
296
- Gt.node;
297
- var Kt = i(Gt), qt = {
251
+ qt.node;
252
+ var Jt = i(qt), Yt = {
298
253
  name: "panel-left",
299
254
  size: 24,
300
255
  node: [["rect", {
@@ -310,8 +265,8 @@ var Kt = i(Gt), qt = {
310
265
  }]],
311
266
  aliases: ["sidebar"]
312
267
  };
313
- qt.node;
314
- var Jt = i(qt), Yt = {
268
+ Yt.node;
269
+ var Xt = i(Yt), Zt = {
315
270
  name: "sun",
316
271
  size: 24,
317
272
  node: [
@@ -355,51 +310,51 @@ var Jt = i(qt), Yt = {
355
310
  }]
356
311
  ]
357
312
  };
358
- Yt.node;
359
- var Xt = i(Yt), Zt = z.Root, Qt = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(z.Item, {
313
+ Zt.node;
314
+ var Qt = i(Zt), $t = ze.Root, en = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H(ze.Item, {
360
315
  ref: n,
361
316
  className: r("border-b", e),
362
317
  ...t
363
318
  }));
364
- Qt.displayName = "AccordionItem";
365
- var $t = B.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ U(z.Header, {
319
+ en.displayName = "AccordionItem";
320
+ var tn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(ze.Header, {
366
321
  className: "flex",
367
- children: /* @__PURE__ */ W(z.Trigger, {
322
+ children: /* @__PURE__ */ U(ze.Trigger, {
368
323
  ref: i,
369
324
  className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
370
325
  ...n,
371
- children: [t, /* @__PURE__ */ U(wt, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
326
+ children: [t, /* @__PURE__ */ H(Ot, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
372
327
  })
373
328
  }));
374
- $t.displayName = z.Trigger.displayName;
375
- var en = B.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ U(z.Content, {
329
+ tn.displayName = ze.Trigger.displayName;
330
+ var nn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(ze.Content, {
376
331
  ref: i,
377
332
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
378
333
  ...n,
379
- children: /* @__PURE__ */ U("div", {
334
+ children: /* @__PURE__ */ H("div", {
380
335
  className: r("pb-4 pt-0", e),
381
336
  children: t
382
337
  })
383
338
  }));
384
- en.displayName = z.Content.displayName;
339
+ nn.displayName = ze.Content.displayName;
385
340
  //#endregion
386
341
  //#region src/components/ui/avatar.tsx
387
- function tn({ className: e, ...t }) {
388
- return /* @__PURE__ */ U(Re.Root, {
342
+ function rn({ className: e, ...t }) {
343
+ return /* @__PURE__ */ H(qe.Root, {
389
344
  "data-slot": "avatar",
390
345
  className: r("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
391
346
  ...t
392
347
  });
393
348
  }
394
- function nn({ className: e, ...t }) {
395
- return /* @__PURE__ */ U(Re.Image, {
349
+ function an({ className: e, ...t }) {
350
+ return /* @__PURE__ */ H(qe.Image, {
396
351
  "data-slot": "avatar-image",
397
352
  className: r("aspect-square size-full", e),
398
353
  ...t
399
354
  });
400
355
  }
401
- function rn({ className: e, ...t }) {
402
- return /* @__PURE__ */ U(Re.Fallback, {
356
+ function on({ className: e, ...t }) {
357
+ return /* @__PURE__ */ H(qe.Fallback, {
403
358
  "data-slot": "avatar-fallback",
404
359
  className: r("bg-muted flex size-full items-center justify-center rounded-full", e),
405
360
  ...t
@@ -407,37 +362,37 @@ function rn({ className: e, ...t }) {
407
362
  }
408
363
  //#endregion
409
364
  //#region src/components/ui/breadcrumb.tsx
410
- function an({ ...e }) {
411
- let { t } = G();
412
- return /* @__PURE__ */ U("nav", {
365
+ function sn({ ...e }) {
366
+ let { t } = W();
367
+ return /* @__PURE__ */ H("nav", {
413
368
  "aria-label": t("common.breadcrumb", { defaultValue: "Breadcrumb" }),
414
369
  "data-slot": "breadcrumb",
415
370
  ...e
416
371
  });
417
372
  }
418
- function on({ className: e, ...t }) {
419
- return /* @__PURE__ */ U("ol", {
373
+ function cn({ className: e, ...t }) {
374
+ return /* @__PURE__ */ H("ol", {
420
375
  "data-slot": "breadcrumb-list",
421
376
  className: r("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", e),
422
377
  ...t
423
378
  });
424
379
  }
425
- function sn({ className: e, ...t }) {
426
- return /* @__PURE__ */ U("li", {
380
+ function ln({ className: e, ...t }) {
381
+ return /* @__PURE__ */ H("li", {
427
382
  "data-slot": "breadcrumb-item",
428
383
  className: r("inline-flex items-center gap-1.5", e),
429
384
  ...t
430
385
  });
431
386
  }
432
- function cn({ asChild: e, className: t, ...n }) {
433
- return /* @__PURE__ */ U(e ? ze : "a", {
387
+ function un({ asChild: e, className: t, ...n }) {
388
+ return /* @__PURE__ */ H(e ? Je : "a", {
434
389
  "data-slot": "breadcrumb-link",
435
390
  className: r("hover:text-foreground transition-colors", t),
436
391
  ...n
437
392
  });
438
393
  }
439
- function ln({ className: e, ...t }) {
440
- return /* @__PURE__ */ U("span", {
394
+ function dn({ className: e, ...t }) {
395
+ return /* @__PURE__ */ H("span", {
441
396
  "data-slot": "breadcrumb-page",
442
397
  role: "link",
443
398
  "aria-disabled": "true",
@@ -446,25 +401,25 @@ function ln({ className: e, ...t }) {
446
401
  ...t
447
402
  });
448
403
  }
449
- function un({ children: e, className: t, ...n }) {
450
- return /* @__PURE__ */ U("li", {
404
+ function fn({ children: e, className: t, ...n }) {
405
+ return /* @__PURE__ */ H("li", {
451
406
  "data-slot": "breadcrumb-separator",
452
407
  role: "presentation",
453
408
  "aria-hidden": "true",
454
409
  className: r("[&>svg]:size-3.5", t),
455
410
  ...n,
456
- children: e ?? /* @__PURE__ */ U(ae, {})
411
+ children: e ?? /* @__PURE__ */ H(fe, {})
457
412
  });
458
413
  }
459
- function dn({ className: e, ...t }) {
460
- let { t: n } = G();
461
- return /* @__PURE__ */ W("span", {
414
+ function pn({ className: e, ...t }) {
415
+ let { t: n } = W();
416
+ return /* @__PURE__ */ U("span", {
462
417
  "data-slot": "breadcrumb-ellipsis",
463
418
  role: "presentation",
464
419
  "aria-hidden": "true",
465
420
  className: r("flex size-9 items-center justify-center", e),
466
421
  ...t,
467
- children: [/* @__PURE__ */ U(Mt, { className: "size-4" }), /* @__PURE__ */ U("span", {
422
+ children: [/* @__PURE__ */ H(It, { className: "size-4" }), /* @__PURE__ */ H("span", {
468
423
  className: "sr-only",
469
424
  children: n("common.more", { defaultValue: "More" })
470
425
  })]
@@ -472,50 +427,50 @@ function dn({ className: e, ...t }) {
472
427
  }
473
428
  //#endregion
474
429
  //#region src/components/ui/card.tsx
475
- function fn({ className: e, ...t }) {
476
- return /* @__PURE__ */ U("div", {
430
+ function mn({ className: e, ...t }) {
431
+ return /* @__PURE__ */ H("div", {
477
432
  "data-slot": "card",
478
433
  className: r("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
479
434
  ...t
480
435
  });
481
436
  }
482
- function pn({ className: e, ...t }) {
483
- return /* @__PURE__ */ U("div", {
437
+ function hn({ className: e, ...t }) {
438
+ return /* @__PURE__ */ H("div", {
484
439
  "data-slot": "card-header",
485
440
  className: r("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
486
441
  ...t
487
442
  });
488
443
  }
489
- function mn({ className: e, ...t }) {
490
- return /* @__PURE__ */ U("div", {
444
+ function gn({ className: e, ...t }) {
445
+ return /* @__PURE__ */ H("div", {
491
446
  "data-slot": "card-title",
492
447
  className: r("leading-none font-semibold", e),
493
448
  ...t
494
449
  });
495
450
  }
496
- function hn({ className: e, ...t }) {
497
- return /* @__PURE__ */ U("div", {
451
+ function _n({ className: e, ...t }) {
452
+ return /* @__PURE__ */ H("div", {
498
453
  "data-slot": "card-description",
499
454
  className: r("text-muted-foreground text-sm", e),
500
455
  ...t
501
456
  });
502
457
  }
503
- function gn({ className: e, ...t }) {
504
- return /* @__PURE__ */ U("div", {
458
+ function vn({ className: e, ...t }) {
459
+ return /* @__PURE__ */ H("div", {
505
460
  "data-slot": "card-action",
506
461
  className: r("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
507
462
  ...t
508
463
  });
509
464
  }
510
- function _n({ className: e, ...t }) {
511
- return /* @__PURE__ */ U("div", {
465
+ function yn({ className: e, ...t }) {
466
+ return /* @__PURE__ */ H("div", {
512
467
  "data-slot": "card-content",
513
468
  className: r("px-6", e),
514
469
  ...t
515
470
  });
516
471
  }
517
- function vn({ className: e, ...t }) {
518
- return /* @__PURE__ */ U("div", {
472
+ function bn({ className: e, ...t }) {
473
+ return /* @__PURE__ */ H("div", {
519
474
  "data-slot": "card-footer",
520
475
  className: r("flex items-center px-6 [.border-t]:pt-6", e),
521
476
  ...t
@@ -523,71 +478,71 @@ function vn({ className: e, ...t }) {
523
478
  }
524
479
  //#endregion
525
480
  //#region src/components/ui/drawer.tsx
526
- function yn({ ...e }) {
527
- return /* @__PURE__ */ U(q.Root, {
481
+ function xn({ ...e }) {
482
+ return /* @__PURE__ */ H(K.Root, {
528
483
  "data-slot": "drawer",
529
484
  ...e
530
485
  });
531
486
  }
532
- function bn({ ...e }) {
533
- return /* @__PURE__ */ U(q.Trigger, {
487
+ function Sn({ ...e }) {
488
+ return /* @__PURE__ */ H(K.Trigger, {
534
489
  "data-slot": "drawer-trigger",
535
490
  ...e
536
491
  });
537
492
  }
538
- function xn({ ...e }) {
539
- return /* @__PURE__ */ U(q.Portal, {
493
+ function Cn({ ...e }) {
494
+ return /* @__PURE__ */ H(K.Portal, {
540
495
  "data-slot": "drawer-portal",
541
496
  ...e
542
497
  });
543
498
  }
544
- function Sn({ ...e }) {
545
- return /* @__PURE__ */ U(q.Close, {
499
+ function wn({ ...e }) {
500
+ return /* @__PURE__ */ H(K.Close, {
546
501
  "data-slot": "drawer-close",
547
502
  ...e
548
503
  });
549
504
  }
550
- function Cn({ className: e, ...t }) {
551
- return /* @__PURE__ */ U(q.Overlay, {
505
+ function Tn({ className: e, ...t }) {
506
+ return /* @__PURE__ */ H(K.Overlay, {
552
507
  "data-slot": "drawer-overlay",
553
508
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
554
509
  ...t
555
510
  });
556
511
  }
557
- function wn({ className: e, children: t, ...n }) {
558
- return /* @__PURE__ */ W(xn, {
512
+ function En({ className: e, children: t, ...n }) {
513
+ return /* @__PURE__ */ U(Cn, {
559
514
  "data-slot": "drawer-portal",
560
- children: [/* @__PURE__ */ U(Cn, {}), /* @__PURE__ */ W(q.Content, {
515
+ children: [/* @__PURE__ */ H(Tn, {}), /* @__PURE__ */ U(K.Content, {
561
516
  "data-slot": "drawer-content",
562
517
  className: r("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
563
518
  ...n,
564
- children: [/* @__PURE__ */ U("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
519
+ children: [/* @__PURE__ */ H("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
565
520
  })]
566
521
  });
567
522
  }
568
- function Tn({ className: e, ...t }) {
569
- return /* @__PURE__ */ U("div", {
523
+ function Dn({ className: e, ...t }) {
524
+ return /* @__PURE__ */ H("div", {
570
525
  "data-slot": "drawer-header",
571
526
  className: r("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", e),
572
527
  ...t
573
528
  });
574
529
  }
575
- function En({ className: e, ...t }) {
576
- return /* @__PURE__ */ U("div", {
530
+ function On({ className: e, ...t }) {
531
+ return /* @__PURE__ */ H("div", {
577
532
  "data-slot": "drawer-footer",
578
533
  className: r("mt-auto flex flex-col gap-2 p-4", e),
579
534
  ...t
580
535
  });
581
536
  }
582
- function Dn({ className: e, ...t }) {
583
- return /* @__PURE__ */ U(q.Title, {
537
+ function kn({ className: e, ...t }) {
538
+ return /* @__PURE__ */ H(K.Title, {
584
539
  "data-slot": "drawer-title",
585
540
  className: r("text-foreground font-semibold", e),
586
541
  ...t
587
542
  });
588
543
  }
589
- function On({ className: e, ...t }) {
590
- return /* @__PURE__ */ U(q.Description, {
544
+ function An({ className: e, ...t }) {
545
+ return /* @__PURE__ */ H(K.Description, {
591
546
  "data-slot": "drawer-description",
592
547
  className: r("text-muted-foreground text-sm", e),
593
548
  ...t
@@ -595,8 +550,8 @@ function On({ className: e, ...t }) {
595
550
  }
596
551
  //#endregion
597
552
  //#region src/components/ui/label.tsx
598
- function kn({ className: e, ...t }) {
599
- return /* @__PURE__ */ U(Ge.Root, {
553
+ function jn({ className: e, ...t }) {
554
+ return /* @__PURE__ */ H(et.Root, {
600
555
  "data-slot": "label",
601
556
  className: r("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
602
557
  ...t
@@ -604,17 +559,17 @@ function kn({ className: e, ...t }) {
604
559
  }
605
560
  //#endregion
606
561
  //#region src/components/ui/form.tsx
607
- var An = He, jn = B.createContext({}), Mn = ({ ...e }) => {
608
- let t = !!e.rules?.required, n = B.useMemo(() => ({
562
+ var Mn = Ze, Nn = z.createContext({}), Pn = ({ ...e }) => {
563
+ let t = !!e.rules?.required, n = z.useMemo(() => ({
609
564
  name: e.name,
610
565
  required: t
611
566
  }), [e.name, t]);
612
- return /* @__PURE__ */ U(jn.Provider, {
567
+ return /* @__PURE__ */ H(Nn.Provider, {
613
568
  value: n,
614
- children: /* @__PURE__ */ U(Ve, { ...e })
569
+ children: /* @__PURE__ */ H(Xe, { ...e })
615
570
  });
616
- }, Nn = () => {
617
- let e = B.useContext(jn), t = B.useContext(Pn), { getFieldState: n } = Ue(), r = We({ name: e.name }), i = n(e.name, r);
571
+ }, Fn = () => {
572
+ let e = z.useContext(Nn), t = z.useContext(In), { getFieldState: n } = Qe(), r = $e({ name: e.name }), i = n(e.name, r);
618
573
  if (!e) throw Error("useFormField should be used within <FormField>");
619
574
  let { id: a } = t;
620
575
  return {
@@ -626,35 +581,35 @@ var An = He, jn = B.createContext({}), Mn = ({ ...e }) => {
626
581
  formMessageId: `${a}-form-item-message`,
627
582
  ...i
628
583
  };
629
- }, Pn = B.createContext({});
630
- function Fn({ className: e, ...t }) {
631
- let n = B.useId(), i = B.useMemo(() => ({ id: n }), [n]);
632
- return /* @__PURE__ */ U(Pn.Provider, {
584
+ }, In = z.createContext({});
585
+ function Ln({ className: e, ...t }) {
586
+ let n = z.useId(), i = z.useMemo(() => ({ id: n }), [n]);
587
+ return /* @__PURE__ */ H(In.Provider, {
633
588
  value: i,
634
- children: /* @__PURE__ */ U("div", {
589
+ children: /* @__PURE__ */ H("div", {
635
590
  "data-slot": "form-item",
636
591
  className: r("grid gap-2", e),
637
592
  ...t
638
593
  })
639
594
  });
640
595
  }
641
- function In({ className: e, children: t, ...n }) {
642
- let { error: i, formItemId: a, required: o } = Nn();
643
- return /* @__PURE__ */ W(kn, {
596
+ function Rn({ className: e, children: t, ...n }) {
597
+ let { error: i, formItemId: a, required: o } = Fn();
598
+ return /* @__PURE__ */ U(jn, {
644
599
  "data-slot": "form-label",
645
600
  "data-error": !!i,
646
601
  className: r("data-[error=true]:text-destructive", e),
647
602
  htmlFor: a,
648
603
  ...n,
649
- children: [t, o ? /* @__PURE__ */ U("span", {
604
+ children: [t, o ? /* @__PURE__ */ H("span", {
650
605
  className: "text-destructive",
651
606
  children: " *"
652
607
  }) : null]
653
608
  });
654
609
  }
655
- function Ln({ ...e }) {
656
- let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Nn();
657
- return /* @__PURE__ */ U(ze, {
610
+ function zn({ ...e }) {
611
+ let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Fn();
612
+ return /* @__PURE__ */ H(Je, {
658
613
  "data-slot": "form-control",
659
614
  id: n,
660
615
  "aria-describedby": t ? `${r} ${i}` : `${r}`,
@@ -662,18 +617,18 @@ function Ln({ ...e }) {
662
617
  ...e
663
618
  });
664
619
  }
665
- function Rn({ className: e, ...t }) {
666
- let { formDescriptionId: n } = Nn();
667
- return /* @__PURE__ */ U("p", {
620
+ function Bn({ className: e, ...t }) {
621
+ let { formDescriptionId: n } = Fn();
622
+ return /* @__PURE__ */ H("p", {
668
623
  "data-slot": "form-description",
669
624
  id: n,
670
625
  className: r("text-muted-foreground text-sm", e),
671
626
  ...t
672
627
  });
673
628
  }
674
- function zn({ className: e, ...t }) {
675
- let { error: n, formMessageId: i } = Nn(), a = n ? String(n?.message ?? "") : t.children;
676
- return a ? /* @__PURE__ */ U("p", {
629
+ function Vn({ className: e, ...t }) {
630
+ let { error: n, formMessageId: i } = Fn(), a = n ? String(n?.message ?? "") : t.children;
631
+ return a ? /* @__PURE__ */ H("p", {
677
632
  "data-slot": "form-message",
678
633
  id: i,
679
634
  className: r("text-destructive text-sm", e),
@@ -683,63 +638,63 @@ function zn({ className: e, ...t }) {
683
638
  }
684
639
  //#endregion
685
640
  //#region src/components/ui/form-actions.tsx
686
- function Bn({ children: e, className: t }) {
687
- return /* @__PURE__ */ U("div", {
641
+ function Hn({ children: e, className: t }) {
642
+ return /* @__PURE__ */ H("div", {
688
643
  className: r("flex items-center justify-end gap-3 pt-4 border-t", t),
689
644
  children: e
690
645
  });
691
646
  }
692
- function Vn({ onClick: e, children: t, className: n }) {
693
- let { t: r } = G();
694
- return /* @__PURE__ */ W(v, {
647
+ function Un({ onClick: e, children: t, className: n }) {
648
+ let { t: r } = W();
649
+ return /* @__PURE__ */ U(v, {
695
650
  type: "button",
696
651
  variant: "outline",
697
652
  onClick: e,
698
653
  className: n,
699
- children: [/* @__PURE__ */ U(nt, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
654
+ children: [/* @__PURE__ */ H(dt, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
700
655
  });
701
656
  }
702
- function Hn({ loading: e, disabled: t, children: n, className: r }) {
703
- let { t: i } = G();
704
- return /* @__PURE__ */ W(v, {
657
+ function Wn({ loading: e, disabled: t, children: n, className: r }) {
658
+ let { t: i } = W();
659
+ return /* @__PURE__ */ U(v, {
705
660
  type: "submit",
706
661
  disabled: t || e,
707
662
  className: r,
708
- children: [e ? /* @__PURE__ */ U(Ze, { className: "size-4 animate-spin" }) : /* @__PURE__ */ U(Xe, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
663
+ children: [e ? /* @__PURE__ */ H(ot, { className: "size-4 animate-spin" }) : /* @__PURE__ */ H(at, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
709
664
  });
710
665
  }
711
- function Un({ onClick: e, children: t, className: n }) {
712
- let { t: i } = G();
713
- return /* @__PURE__ */ W(v, {
666
+ function Gn({ onClick: e, children: t, className: n }) {
667
+ let { t: i } = W();
668
+ return /* @__PURE__ */ U(v, {
714
669
  type: "button",
715
670
  variant: "outline",
716
671
  onClick: e,
717
672
  className: r("md:hidden text-destructive border-destructive/30 hover:bg-destructive/10 mr-auto", n),
718
- children: [/* @__PURE__ */ U(et, { className: "size-4" }), t ?? i("forms.formActions.delete")]
673
+ children: [/* @__PURE__ */ H(lt, { className: "size-4" }), t ?? i("forms.formActions.delete")]
719
674
  });
720
675
  }
721
- Bn.Cancel = Vn, Bn.Submit = Hn, Bn.Delete = Un;
722
- var Wn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ U(Fn, { children: /* @__PURE__ */ U("div", {
676
+ Hn.Cancel = Un, Hn.Submit = Wn, Hn.Delete = Gn;
677
+ var Kn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ H(Ln, { children: /* @__PURE__ */ H("div", {
723
678
  className: r("flex w-full flex-row items-center gap-4", e),
724
679
  ...t
725
680
  }) }), {
726
- Left: ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
681
+ Left: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
727
682
  className: r("flex w-1/2 flex-col gap-1", e),
728
683
  ...t
729
684
  }),
730
- Right: ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
685
+ Right: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
731
686
  className: r("flex w-1/2 justify-end", e),
732
687
  ...t
733
688
  }),
734
- Label: ({ className: e, ...t }) => /* @__PURE__ */ U(In, {
689
+ Label: ({ className: e, ...t }) => /* @__PURE__ */ H(Rn, {
735
690
  className: r(e),
736
691
  ...t
737
692
  }),
738
- Description: ({ className: e, ...t }) => /* @__PURE__ */ U(Rn, {
693
+ Description: ({ className: e, ...t }) => /* @__PURE__ */ H(Bn, {
739
694
  className: r(e),
740
695
  ...t
741
696
  })
742
- }), Gn = Be("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
697
+ }), qn = Ye("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
743
698
  variants: { variant: {
744
699
  default: [
745
700
  "data-[state=checked]:bg-gradient-to-r data-[state=checked]:from-[var(--vg-accent-fill-from)] data-[state=checked]:to-[var(--vg-accent-fill-to)]",
@@ -774,12 +729,12 @@ var Wn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ U(Fn, { child
774
729
  } },
775
730
  defaultVariants: { variant: "default" }
776
731
  });
777
- function Kn({ className: e, variant: t, ...n }) {
778
- return /* @__PURE__ */ U(rt.Root, {
732
+ function Jn({ className: e, variant: t, ...n }) {
733
+ return /* @__PURE__ */ H(ft.Root, {
779
734
  "data-slot": "gradient-switch",
780
- className: r(Gn({ variant: t }), e),
735
+ className: r(qn({ variant: t }), e),
781
736
  ...n,
782
- children: /* @__PURE__ */ U(rt.Thumb, {
737
+ children: /* @__PURE__ */ H(ft.Thumb, {
783
738
  "data-slot": "gradient-switch-thumb",
784
739
  className: r("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-primary-foreground")
785
740
  })
@@ -787,11 +742,11 @@ function Kn({ className: e, variant: t, ...n }) {
787
742
  }
788
743
  //#endregion
789
744
  //#region src/components/ui/glass-card.tsx
790
- var qn = "rounded-2xl p-6 sm:p-8";
791
- function Jn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
745
+ var Yn = "rounded-2xl p-6 sm:p-8";
746
+ function Xn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
792
747
  let s = {};
793
- return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ U("div", {
794
- className: r("vig-glass-card", qn, i),
748
+ return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ H("div", {
749
+ className: r("vig-glass-card", Yn, i),
795
750
  style: {
796
751
  ...a ?? {},
797
752
  ...s
@@ -802,9 +757,9 @@ function Jn({ children: e, color: t, colorDark: n, className: i, style: a, ...o
802
757
  }
803
758
  //#endregion
804
759
  //#region src/components/ui/pulse-ring.tsx
805
- function Yn({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
760
+ function Zn({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
806
761
  let c = {};
807
- return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ U("div", {
762
+ return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ H("div", {
808
763
  className: r("vig-pulse-ring", !i && "vig-pulse-ring--active", a),
809
764
  style: {
810
765
  ...o ?? {},
@@ -816,116 +771,116 @@ function Yn({ children: e, color: t, colorDark: n, paused: i, className: a, styl
816
771
  }
817
772
  //#endregion
818
773
  //#region src/components/ui/hover-card.tsx
819
- var Xn = it.Root, Zn = it.Trigger, Qn = B.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ U(it.Content, {
774
+ var Qn = pt.Root, $n = pt.Trigger, er = z.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ H(pt.Content, {
820
775
  ref: a,
821
776
  align: t,
822
777
  sideOffset: n,
823
778
  className: r("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e),
824
779
  ...i
825
780
  }));
826
- Qn.displayName = it.Content.displayName;
781
+ er.displayName = pt.Content.displayName;
827
782
  //#endregion
828
783
  //#region src/components/ui/navigation-menu.tsx
829
- function $n({ className: e, children: t, viewport: n = !0, ...i }) {
830
- let { t: a } = G();
831
- return /* @__PURE__ */ W(at.Root, {
784
+ function tr({ className: e, children: t, viewport: n = !0, ...i }) {
785
+ let { t: a } = W();
786
+ return /* @__PURE__ */ U(q.Root, {
832
787
  "data-slot": "navigation-menu",
833
788
  "data-viewport": n,
834
789
  "aria-label": a("common.mainNavigation", { defaultValue: "Main navigation" }),
835
790
  className: r("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
836
791
  ...i,
837
- children: [t, n && /* @__PURE__ */ U(ar, {})]
792
+ children: [t, n && /* @__PURE__ */ H(sr, {})]
838
793
  });
839
794
  }
840
- function er({ className: e, ...t }) {
841
- return /* @__PURE__ */ U(at.List, {
795
+ function nr({ className: e, ...t }) {
796
+ return /* @__PURE__ */ H(q.List, {
842
797
  "data-slot": "navigation-menu-list",
843
798
  className: r("group flex flex-1 list-none items-center justify-center gap-1", e),
844
799
  ...t
845
800
  });
846
801
  }
847
- function tr({ className: e, ...t }) {
848
- return /* @__PURE__ */ U(at.Item, {
802
+ function rr({ className: e, ...t }) {
803
+ return /* @__PURE__ */ H(q.Item, {
849
804
  "data-slot": "navigation-menu-item",
850
805
  className: r("relative", e),
851
806
  ...t
852
807
  });
853
808
  }
854
- var nr = Be("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
855
- function rr({ className: e, children: t, ...n }) {
856
- return /* @__PURE__ */ W(at.Trigger, {
809
+ var ir = Ye("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
810
+ function ar({ className: e, children: t, ...n }) {
811
+ return /* @__PURE__ */ U(q.Trigger, {
857
812
  "data-slot": "navigation-menu-trigger",
858
- className: r(nr(), "group", e),
813
+ className: r(ir(), "group", e),
859
814
  ...n,
860
815
  children: [
861
816
  t,
862
817
  " ",
863
- /* @__PURE__ */ U(wt, {
818
+ /* @__PURE__ */ H(Ot, {
864
819
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
865
820
  "aria-hidden": "true"
866
821
  })
867
822
  ]
868
823
  });
869
824
  }
870
- function ir({ className: e, ...t }) {
871
- return /* @__PURE__ */ U(at.Content, {
825
+ function or({ className: e, ...t }) {
826
+ return /* @__PURE__ */ H(q.Content, {
872
827
  "data-slot": "navigation-menu-content",
873
828
  className: r("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", e),
874
829
  ...t
875
830
  });
876
831
  }
877
- function ar({ className: e, ...t }) {
878
- return /* @__PURE__ */ U("div", {
832
+ function sr({ className: e, ...t }) {
833
+ return /* @__PURE__ */ H("div", {
879
834
  className: r("absolute top-full left-0 isolate z-50 flex justify-center"),
880
- children: /* @__PURE__ */ U(at.Viewport, {
835
+ children: /* @__PURE__ */ H(q.Viewport, {
881
836
  "data-slot": "navigation-menu-viewport",
882
837
  className: r("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", e),
883
838
  ...t
884
839
  })
885
840
  });
886
841
  }
887
- function or({ className: e, ...t }) {
888
- return /* @__PURE__ */ U(at.Link, {
842
+ function cr({ className: e, ...t }) {
843
+ return /* @__PURE__ */ H(q.Link, {
889
844
  "data-slot": "navigation-menu-link",
890
845
  className: r("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", e),
891
846
  ...t
892
847
  });
893
848
  }
894
- function sr({ className: e, ...t }) {
895
- return /* @__PURE__ */ U(at.Indicator, {
849
+ function lr({ className: e, ...t }) {
850
+ return /* @__PURE__ */ H(q.Indicator, {
896
851
  "data-slot": "navigation-menu-indicator",
897
852
  className: r("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", e),
898
853
  ...t,
899
- children: /* @__PURE__ */ U("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
854
+ children: /* @__PURE__ */ H("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
900
855
  });
901
856
  }
902
857
  //#endregion
903
858
  //#region src/components/ui/pagination.tsx
904
- function cr({ className: e, ...t }) {
905
- let { t: n } = G();
906
- return /* @__PURE__ */ U("nav", {
859
+ function ur({ className: e, ...t }) {
860
+ let { t: n } = W();
861
+ return /* @__PURE__ */ H("nav", {
907
862
  role: "navigation",
908
863
  "aria-label": n("common.pagination", { defaultValue: "Pagination" }),
909
864
  className: r("mx-auto flex w-full justify-center", e),
910
865
  ...t
911
866
  });
912
867
  }
913
- var lr = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U("ol", {
868
+ var dr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("ol", {
914
869
  ref: n,
915
870
  className: r("flex flex-row items-center gap-1", e),
916
871
  ...t
917
872
  }));
918
- lr.displayName = "PaginationContent";
919
- var ur = B.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U("li", {
873
+ dr.displayName = "PaginationContent";
874
+ var fr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("li", {
920
875
  ref: n,
921
876
  className: r("", e),
922
877
  ...t
923
878
  }));
924
- ur.displayName = "PaginationItem";
925
- function dr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
926
- return /* @__PURE__ */ U("a", {
879
+ fr.displayName = "PaginationItem";
880
+ function pr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
881
+ return /* @__PURE__ */ H("a", {
927
882
  "aria-current": t ? "page" : void 0,
928
- className: r(ee({
883
+ className: r(j({
929
884
  variant: t ? "outline" : "ghost",
930
885
  size: n
931
886
  }), t && "bg-accent text-accent-foreground", e),
@@ -933,33 +888,33 @@ function dr({ className: e, isActive: t, size: n = "icon", children: i, ...a })
933
888
  children: i
934
889
  });
935
890
  }
936
- function fr({ className: e, ...t }) {
937
- let { t: n } = G();
938
- return /* @__PURE__ */ W(dr, {
891
+ function mr({ className: e, ...t }) {
892
+ let { t: n } = W();
893
+ return /* @__PURE__ */ U(pr, {
939
894
  "aria-label": n("common.goToPreviousPage", { defaultValue: "Go to previous page" }),
940
895
  size: "default",
941
896
  className: r("gap-1 pl-2.5", e),
942
897
  ...t,
943
- children: [/* @__PURE__ */ U(Et, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
898
+ children: [/* @__PURE__ */ H(At, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
944
899
  });
945
900
  }
946
- function pr({ className: e, ...t }) {
947
- let { t: n } = G();
948
- return /* @__PURE__ */ W(dr, {
901
+ function hr({ className: e, ...t }) {
902
+ let { t: n } = W();
903
+ return /* @__PURE__ */ U(pr, {
949
904
  "aria-label": n("common.goToNextPage", { defaultValue: "Go to next page" }),
950
905
  size: "default",
951
906
  className: r("gap-1 pr-2.5", e),
952
907
  ...t,
953
- children: [/* @__PURE__ */ U("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ U(ae, { className: "h-4 w-4" })]
908
+ children: [/* @__PURE__ */ H("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ H(fe, { className: "h-4 w-4" })]
954
909
  });
955
910
  }
956
- function mr({ className: e, ...t }) {
957
- let { t: n } = G();
958
- return /* @__PURE__ */ W("span", {
911
+ function gr({ className: e, ...t }) {
912
+ let { t: n } = W();
913
+ return /* @__PURE__ */ U("span", {
959
914
  "aria-hidden": "true",
960
915
  className: r("flex h-9 w-9 items-center justify-center", e),
961
916
  ...t,
962
- children: [/* @__PURE__ */ U(Mt, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", {
917
+ children: [/* @__PURE__ */ H(It, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", {
963
918
  className: "sr-only",
964
919
  children: n("common.morePages", { defaultValue: "More pages" })
965
920
  })]
@@ -967,12 +922,12 @@ function mr({ className: e, ...t }) {
967
922
  }
968
923
  //#endregion
969
924
  //#region src/components/ui/progress.tsx
970
- function hr({ className: e, value: t, ...n }) {
971
- return /* @__PURE__ */ U(ot.Root, {
925
+ function _r({ className: e, value: t, ...n }) {
926
+ return /* @__PURE__ */ H(mt.Root, {
972
927
  "data-slot": "progress",
973
928
  className: r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
974
929
  ...n,
975
- children: /* @__PURE__ */ U(ot.Indicator, {
930
+ children: /* @__PURE__ */ H(mt.Indicator, {
976
931
  "data-slot": "progress-indicator",
977
932
  className: "h-full w-full flex-1 bg-primary transition-all",
978
933
  style: { transform: `translateX(-${100 - (t || 0)}%)` }
@@ -980,127 +935,99 @@ function hr({ className: e, value: t, ...n }) {
980
935
  });
981
936
  }
982
937
  //#endregion
983
- //#region src/components/ui/resizable.tsx
984
- function gr({ className: e, ...t }) {
985
- return /* @__PURE__ */ U(st, {
986
- "data-slot": "resizable-panel-group",
987
- className: r("flex h-full w-full", e),
988
- ...t
989
- });
990
- }
991
- function _r({ overflowHidden: e, className: t, ...n }) {
992
- return /* @__PURE__ */ U(ct, {
993
- "data-slot": "resizable-panel",
994
- className: r(e && "[&>div]:overflow-hidden!", t),
995
- style: e ? { overflow: "hidden" } : void 0,
996
- ...n
997
- });
998
- }
999
- function vr({ withHandle: e, className: t, ...n }) {
1000
- return /* @__PURE__ */ U(lt, {
1001
- "data-slot": "resizable-handle",
1002
- className: r("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:-left-2 after:-right-2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden", "[&[aria-orientation=horizontal]]:h-px [&[aria-orientation=horizontal]]:w-full [&[aria-orientation=horizontal]]:after:inset-x-0 [&[aria-orientation=horizontal]]:after:-top-2 [&[aria-orientation=horizontal]]:after:-bottom-2 [&[aria-orientation=horizontal]>div]:rotate-90", t),
1003
- ...n,
1004
- children: e && /* @__PURE__ */ U("div", {
1005
- className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
1006
- children: /* @__PURE__ */ U(It, { className: "size-2.5" })
1007
- })
1008
- });
1009
- }
1010
- //#endregion
1011
938
  //#region src/components/ui/select.tsx
1012
- function yr({ ...e }) {
1013
- return /* @__PURE__ */ U(J.Root, {
939
+ function vr({ ...e }) {
940
+ return /* @__PURE__ */ H(J.Root, {
1014
941
  "data-slot": "select",
1015
942
  ...e
1016
943
  });
1017
944
  }
1018
- function br({ ...e }) {
1019
- return /* @__PURE__ */ U(J.Group, {
945
+ function yr({ ...e }) {
946
+ return /* @__PURE__ */ H(J.Group, {
1020
947
  "data-slot": "select-group",
1021
948
  ...e
1022
949
  });
1023
950
  }
1024
- function xr({ ...e }) {
1025
- return /* @__PURE__ */ U(J.Value, {
951
+ function br({ ...e }) {
952
+ return /* @__PURE__ */ H(J.Value, {
1026
953
  "data-slot": "select-value",
1027
954
  ...e
1028
955
  });
1029
956
  }
1030
- function Sr({ className: e, size: t = "default", children: n, ...i }) {
1031
- return /* @__PURE__ */ W(J.Trigger, {
957
+ function xr({ className: e, size: t = "default", children: n, ...i }) {
958
+ return /* @__PURE__ */ U(J.Trigger, {
1032
959
  "data-slot": "select-trigger",
1033
960
  "data-size": t,
1034
961
  className: r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
1035
962
  ...i,
1036
- children: [n, /* @__PURE__ */ U(J.Icon, {
963
+ children: [n, /* @__PURE__ */ H(J.Icon, {
1037
964
  asChild: !0,
1038
- children: /* @__PURE__ */ U(wt, { className: "size-4 opacity-50" })
965
+ children: /* @__PURE__ */ H(Ot, { className: "size-4 opacity-50" })
1039
966
  })]
1040
967
  });
1041
968
  }
1042
- function Cr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
1043
- return /* @__PURE__ */ U(J.Portal, { children: /* @__PURE__ */ W(J.Content, {
969
+ function Sr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
970
+ return /* @__PURE__ */ H(J.Portal, { children: /* @__PURE__ */ U(J.Content, {
1044
971
  "data-slot": "select-content",
1045
972
  className: r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
1046
973
  position: n,
1047
974
  align: i,
1048
975
  ...a,
1049
976
  children: [
1050
- /* @__PURE__ */ U(Dr, {}),
1051
- /* @__PURE__ */ U(J.Viewport, {
977
+ /* @__PURE__ */ H(Er, {}),
978
+ /* @__PURE__ */ H(J.Viewport, {
1052
979
  className: r("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
1053
980
  children: t
1054
981
  }),
1055
- /* @__PURE__ */ U(Or, {})
982
+ /* @__PURE__ */ H(Dr, {})
1056
983
  ]
1057
984
  }) });
1058
985
  }
1059
- function wr({ className: e, ...t }) {
1060
- return /* @__PURE__ */ U(J.Label, {
986
+ function Cr({ className: e, ...t }) {
987
+ return /* @__PURE__ */ H(J.Label, {
1061
988
  "data-slot": "select-label",
1062
989
  className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
1063
990
  ...t
1064
991
  });
1065
992
  }
1066
- function Tr({ className: e, children: t, ...n }) {
1067
- return /* @__PURE__ */ W(J.Item, {
993
+ function wr({ className: e, children: t, ...n }) {
994
+ return /* @__PURE__ */ U(J.Item, {
1068
995
  "data-slot": "select-item",
1069
996
  className: r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
1070
997
  ...n,
1071
- children: [/* @__PURE__ */ U("span", {
998
+ children: [/* @__PURE__ */ H("span", {
1072
999
  className: "absolute right-2 flex size-3.5 items-center justify-center",
1073
- children: /* @__PURE__ */ U(J.ItemIndicator, { children: /* @__PURE__ */ U(A, { className: "size-4" }) })
1074
- }), /* @__PURE__ */ U(J.ItemText, { children: t })]
1000
+ children: /* @__PURE__ */ H(J.ItemIndicator, { children: /* @__PURE__ */ H(de, { className: "size-4" }) })
1001
+ }), /* @__PURE__ */ H(J.ItemText, { children: t })]
1075
1002
  });
1076
1003
  }
1077
- function Er({ className: e, ...t }) {
1078
- return /* @__PURE__ */ U(J.Separator, {
1004
+ function Tr({ className: e, ...t }) {
1005
+ return /* @__PURE__ */ H(J.Separator, {
1079
1006
  "data-slot": "select-separator",
1080
1007
  className: r("bg-border pointer-events-none -mx-1 my-1 h-px", e),
1081
1008
  ...t
1082
1009
  });
1083
1010
  }
1084
- function Dr({ className: e, ...t }) {
1085
- return /* @__PURE__ */ U(J.ScrollUpButton, {
1011
+ function Er({ className: e, ...t }) {
1012
+ return /* @__PURE__ */ H(J.ScrollUpButton, {
1086
1013
  "data-slot": "select-scroll-up-button",
1087
1014
  className: r("flex cursor-default items-center justify-center py-1", e),
1088
1015
  ...t,
1089
- children: /* @__PURE__ */ U(Ot, { className: "size-4" })
1016
+ children: /* @__PURE__ */ H(Mt, { className: "size-4" })
1090
1017
  });
1091
1018
  }
1092
- function Or({ className: e, ...t }) {
1093
- return /* @__PURE__ */ U(J.ScrollDownButton, {
1019
+ function Dr({ className: e, ...t }) {
1020
+ return /* @__PURE__ */ H(J.ScrollDownButton, {
1094
1021
  "data-slot": "select-scroll-down-button",
1095
1022
  className: r("flex cursor-default items-center justify-center py-1", e),
1096
1023
  ...t,
1097
- children: /* @__PURE__ */ U(wt, { className: "size-4" })
1024
+ children: /* @__PURE__ */ H(Ot, { className: "size-4" })
1098
1025
  });
1099
1026
  }
1100
1027
  //#endregion
1101
1028
  //#region src/components/ui/separator.tsx
1102
- function kr({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1103
- return /* @__PURE__ */ U(ut.Root, {
1029
+ function Or({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1030
+ return /* @__PURE__ */ H(ht.Root, {
1104
1031
  "data-slot": "separator",
1105
1032
  decorative: n,
1106
1033
  orientation: t,
@@ -1110,120 +1037,107 @@ function kr({ className: e, orientation: t = "horizontal", decorative: n = !0, .
1110
1037
  }
1111
1038
  //#endregion
1112
1039
  //#region src/components/ui/sheet.tsx
1113
- function Ar({ ...e }) {
1114
- return /* @__PURE__ */ U(K.Root, {
1040
+ function kr({ ...e }) {
1041
+ return /* @__PURE__ */ H(G.Root, {
1115
1042
  "data-slot": "sheet",
1116
1043
  ...e
1117
1044
  });
1118
1045
  }
1119
- function jr({ ...e }) {
1120
- return /* @__PURE__ */ U(K.Trigger, {
1046
+ function Ar({ ...e }) {
1047
+ return /* @__PURE__ */ H(G.Trigger, {
1121
1048
  "data-slot": "sheet-trigger",
1122
1049
  ...e
1123
1050
  });
1124
1051
  }
1125
- function Mr({ ...e }) {
1126
- return /* @__PURE__ */ U(K.Close, {
1052
+ function jr({ ...e }) {
1053
+ return /* @__PURE__ */ H(G.Close, {
1127
1054
  "data-slot": "sheet-close",
1128
1055
  ...e
1129
1056
  });
1130
1057
  }
1131
- function Nr({ ...e }) {
1132
- return /* @__PURE__ */ U(K.Portal, {
1058
+ function Mr({ ...e }) {
1059
+ return /* @__PURE__ */ H(G.Portal, {
1133
1060
  "data-slot": "sheet-portal",
1134
1061
  ...e
1135
1062
  });
1136
1063
  }
1137
- function Pr({ className: e, ...t }) {
1138
- return /* @__PURE__ */ U(K.Overlay, {
1064
+ function Nr({ className: e, ...t }) {
1065
+ return /* @__PURE__ */ H(G.Overlay, {
1139
1066
  "data-slot": "sheet-overlay",
1140
1067
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
1141
1068
  ...t
1142
1069
  });
1143
1070
  }
1144
- function Fr({ className: e, children: t, side: n = "right", ...i }) {
1145
- let { t: o } = G();
1146
- return /* @__PURE__ */ W(Nr, { children: [/* @__PURE__ */ U(Pr, {}), /* @__PURE__ */ W(K.Content, {
1071
+ function Pr({ className: e, children: t, side: n = "right", ...i }) {
1072
+ let { t: o } = W();
1073
+ return /* @__PURE__ */ U(Mr, { children: [/* @__PURE__ */ H(Nr, {}), /* @__PURE__ */ U(G.Content, {
1147
1074
  "data-slot": "sheet-content",
1148
1075
  className: r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
1149
1076
  ...i,
1150
- children: [t, /* @__PURE__ */ W(K.Close, {
1077
+ children: [t, /* @__PURE__ */ U(G.Close, {
1151
1078
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
1152
- children: [/* @__PURE__ */ U(a, { className: "size-4" }), /* @__PURE__ */ U("span", {
1079
+ children: [/* @__PURE__ */ H(a, { className: "size-4" }), /* @__PURE__ */ H("span", {
1153
1080
  className: "sr-only",
1154
1081
  children: o("dialog.close", { defaultValue: "Close" })
1155
1082
  })]
1156
1083
  })]
1157
1084
  })] });
1158
1085
  }
1159
- function Ir({ className: e, ...t }) {
1160
- return /* @__PURE__ */ U("div", {
1086
+ function Fr({ className: e, ...t }) {
1087
+ return /* @__PURE__ */ H("div", {
1161
1088
  "data-slot": "sheet-header",
1162
1089
  className: r("flex flex-col gap-1.5 p-4", e),
1163
1090
  ...t
1164
1091
  });
1165
1092
  }
1166
- function Lr({ className: e, ...t }) {
1167
- return /* @__PURE__ */ U("div", {
1093
+ function Ir({ className: e, ...t }) {
1094
+ return /* @__PURE__ */ H("div", {
1168
1095
  "data-slot": "sheet-footer",
1169
1096
  className: r("mt-auto flex flex-col gap-2 p-4", e),
1170
1097
  ...t
1171
1098
  });
1172
1099
  }
1173
- function Rr({ className: e, ...t }) {
1174
- return /* @__PURE__ */ U(K.Title, {
1100
+ function Lr({ className: e, ...t }) {
1101
+ return /* @__PURE__ */ H(G.Title, {
1175
1102
  "data-slot": "sheet-title",
1176
1103
  className: r("text-foreground font-semibold", e),
1177
1104
  ...t
1178
1105
  });
1179
1106
  }
1180
- function zr({ className: e, ...t }) {
1181
- return /* @__PURE__ */ U(K.Description, {
1107
+ function Rr({ className: e, ...t }) {
1108
+ return /* @__PURE__ */ H(G.Description, {
1182
1109
  "data-slot": "sheet-description",
1183
1110
  className: r("text-muted-foreground text-sm", e),
1184
1111
  ...t
1185
1112
  });
1186
1113
  }
1187
1114
  //#endregion
1188
- //#region src/hooks/use-mobile.ts
1189
- var Br = "(max-width: 767px)";
1190
- function Vr() {
1191
- return window.matchMedia(Br);
1192
- }
1193
- function Hr(e) {
1194
- let t = Vr();
1195
- return t.addEventListener("change", e), () => t.removeEventListener("change", e);
1196
- }
1197
- function Ur() {
1198
- return B.useSyncExternalStore(Hr, () => Vr().matches, () => !1);
1199
- }
1200
- //#endregion
1201
1115
  //#region src/components/ui/sidebar.tsx
1202
- var Wr = "sidebar_state", Gr = 604800, Kr = "16rem", qr = "18rem", Jr = "3rem", Yr = "b", Xr = B.createContext(null);
1203
- function Zr() {
1204
- let e = B.useContext(Xr);
1116
+ var zr = "sidebar_state", Br = 604800, Vr = "16rem", Hr = "18rem", Ur = "3rem", Wr = "b", Gr = z.createContext(null);
1117
+ function Kr() {
1118
+ let e = z.useContext(Gr);
1205
1119
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
1206
1120
  return e;
1207
1121
  }
1208
- function Qr() {
1209
- return B.useContext(Xr);
1122
+ function qr() {
1123
+ return z.useContext(Gr);
1210
1124
  }
1211
- function $r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1212
- let c = Ur(), [l, u] = B.useState(!1), [d, f] = B.useState(e), p = t ?? d, m = B.useCallback((e) => {
1125
+ function Jr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1126
+ let c = Ee(), [l, u] = z.useState(!1), [d, f] = z.useState(e), p = t ?? d, m = z.useCallback((e) => {
1213
1127
  let t = typeof e == "function" ? e(p) : e;
1214
- n ? n(t) : f(t), document.cookie = `${Wr}=${t}; path=/; max-age=${Gr}`;
1215
- }, [n, p]), h = B.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1128
+ n ? n(t) : f(t), document.cookie = `${zr}=${t}; path=/; max-age=${Br}`;
1129
+ }, [n, p]), h = z.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1216
1130
  c,
1217
1131
  m,
1218
1132
  u
1219
1133
  ]);
1220
- B.useEffect(() => {
1134
+ z.useEffect(() => {
1221
1135
  let e = (e) => {
1222
- e.key === Yr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1136
+ e.key === Wr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1223
1137
  };
1224
1138
  return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
1225
1139
  }, [h]);
1226
- let g = p ? "expanded" : "collapsed", _ = B.useMemo(() => ({
1140
+ let g = p ? "expanded" : "collapsed", _ = z.useMemo(() => ({
1227
1141
  state: g,
1228
1142
  open: p,
1229
1143
  setOpen: m,
@@ -1240,15 +1154,15 @@ function $r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1240
1154
  u,
1241
1155
  h
1242
1156
  ]);
1243
- return /* @__PURE__ */ U(Xr.Provider, {
1157
+ return /* @__PURE__ */ H(Gr.Provider, {
1244
1158
  value: _,
1245
- children: /* @__PURE__ */ U(ue, {
1159
+ children: /* @__PURE__ */ H(_e, {
1246
1160
  delayDuration: 0,
1247
- children: /* @__PURE__ */ U("div", {
1161
+ children: /* @__PURE__ */ H("div", {
1248
1162
  "data-slot": "sidebar-wrapper",
1249
1163
  style: {
1250
- "--sidebar-width": Kr,
1251
- "--sidebar-width-icon": Jr,
1164
+ "--sidebar-width": Vr,
1165
+ "--sidebar-width-icon": Ur,
1252
1166
  ...a
1253
1167
  },
1254
1168
  className: r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
@@ -1258,9 +1172,9 @@ function $r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1258
1172
  })
1259
1173
  });
1260
1174
  }
1261
- function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1262
- let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Zr(), { t: f } = G();
1263
- if (n === "none") return /* @__PURE__ */ U("div", {
1175
+ function Yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1176
+ let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Kr(), { t: f } = W();
1177
+ if (n === "none") return /* @__PURE__ */ H("div", {
1264
1178
  "data-slot": "sidebar",
1265
1179
  className: r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", a),
1266
1180
  ...s,
@@ -1268,10 +1182,10 @@ function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1268
1182
  });
1269
1183
  if (c) {
1270
1184
  let { style: t, ...n } = s;
1271
- return /* @__PURE__ */ U(Ar, {
1185
+ return /* @__PURE__ */ H(kr, {
1272
1186
  open: u,
1273
1187
  onOpenChange: d,
1274
- children: /* @__PURE__ */ W(Fr, {
1188
+ children: /* @__PURE__ */ U(Pr, {
1275
1189
  "data-sidebar": "sidebar",
1276
1190
  "data-slot": "sidebar",
1277
1191
  "data-mobile": "true",
@@ -1279,34 +1193,34 @@ function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1279
1193
  ...n,
1280
1194
  className: r("bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", a),
1281
1195
  style: {
1282
- "--sidebar-width": qr,
1196
+ "--sidebar-width": Hr,
1283
1197
  ...t
1284
1198
  },
1285
- children: [/* @__PURE__ */ W(Ir, {
1199
+ children: [/* @__PURE__ */ U(Fr, {
1286
1200
  className: "sr-only",
1287
- children: [/* @__PURE__ */ U(Rr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ U(zr, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1288
- }), /* @__PURE__ */ U("div", {
1201
+ children: [/* @__PURE__ */ H(Lr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ H(Rr, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1202
+ }), /* @__PURE__ */ H("div", {
1289
1203
  className: "flex h-full w-full flex-col",
1290
1204
  children: o
1291
1205
  })]
1292
1206
  })
1293
1207
  });
1294
1208
  }
1295
- return /* @__PURE__ */ W("div", {
1209
+ return /* @__PURE__ */ U("div", {
1296
1210
  className: r("group peer text-sidebar-foreground hidden md:block", i === "absolute" && "relative"),
1297
1211
  "data-state": l,
1298
1212
  "data-collapsible": l === "collapsed" ? n : "",
1299
1213
  "data-variant": t,
1300
1214
  "data-side": e,
1301
1215
  "data-slot": "sidebar",
1302
- children: [/* @__PURE__ */ U("div", {
1216
+ children: [/* @__PURE__ */ H("div", {
1303
1217
  "data-slot": "sidebar-gap",
1304
1218
  className: r("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
1305
- }), /* @__PURE__ */ U("div", {
1219
+ }), /* @__PURE__ */ H("div", {
1306
1220
  "data-slot": "sidebar-container",
1307
1221
  className: r("inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", i === "absolute" ? "h-full" : "h-svh", i === "absolute" ? "absolute" : "fixed", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", a),
1308
1222
  ...s,
1309
- children: /* @__PURE__ */ U("div", {
1223
+ children: /* @__PURE__ */ H("div", {
1310
1224
  "data-sidebar": "sidebar",
1311
1225
  "data-slot": "sidebar-inner",
1312
1226
  className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
@@ -1315,11 +1229,11 @@ function ei({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1315
1229
  })]
1316
1230
  });
1317
1231
  }
1318
- function ti({ className: e, onClick: t, ...n }) {
1319
- let i = Qr(), { t: a } = G();
1232
+ function Xr({ className: e, onClick: t, ...n }) {
1233
+ let i = qr(), { t: a } = W();
1320
1234
  if (!i) return null;
1321
1235
  let { toggleSidebar: o, isMobile: s } = i;
1322
- return /* @__PURE__ */ W(v, {
1236
+ return /* @__PURE__ */ U(v, {
1323
1237
  "data-sidebar": "trigger",
1324
1238
  "data-slot": "sidebar-trigger",
1325
1239
  variant: "ghost",
@@ -1329,15 +1243,15 @@ function ti({ className: e, onClick: t, ...n }) {
1329
1243
  t?.(e), o();
1330
1244
  },
1331
1245
  ...n,
1332
- children: [U(s ? Ht : Jt, {}), /* @__PURE__ */ U("span", {
1246
+ children: [H(s ? Wt : Xt, {}), /* @__PURE__ */ H("span", {
1333
1247
  className: "sr-only",
1334
1248
  children: a("sidebar.toggle", { defaultValue: "Toggle Sidebar" })
1335
1249
  })]
1336
1250
  });
1337
1251
  }
1338
- function ni({ className: e, ...t }) {
1339
- let { toggleSidebar: n } = Zr(), { t: i } = G(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1340
- return /* @__PURE__ */ U("button", {
1252
+ function Zr({ className: e, ...t }) {
1253
+ let { toggleSidebar: n } = Kr(), { t: i } = W(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1254
+ return /* @__PURE__ */ H("button", {
1341
1255
  "data-sidebar": "rail",
1342
1256
  "data-slot": "sidebar-rail",
1343
1257
  "aria-label": a,
@@ -1348,102 +1262,102 @@ function ni({ className: e, ...t }) {
1348
1262
  ...t
1349
1263
  });
1350
1264
  }
1351
- function ri({ className: e, ...t }) {
1352
- return /* @__PURE__ */ U("main", {
1265
+ function Qr({ className: e, ...t }) {
1266
+ return /* @__PURE__ */ H("main", {
1353
1267
  "data-slot": "sidebar-inset",
1354
1268
  className: r("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
1355
1269
  ...t
1356
1270
  });
1357
1271
  }
1358
- function ii({ className: e, ...t }) {
1359
- return /* @__PURE__ */ U(s, {
1272
+ function $r({ className: e, ...t }) {
1273
+ return /* @__PURE__ */ H(s, {
1360
1274
  "data-slot": "sidebar-input",
1361
1275
  "data-sidebar": "input",
1362
1276
  className: r("bg-background h-8 w-full shadow-none", e),
1363
1277
  ...t
1364
1278
  });
1365
1279
  }
1366
- function ai({ className: e, ...t }) {
1367
- return /* @__PURE__ */ U("div", {
1280
+ function ei({ className: e, ...t }) {
1281
+ return /* @__PURE__ */ H("div", {
1368
1282
  "data-slot": "sidebar-header",
1369
1283
  "data-sidebar": "header",
1370
1284
  className: r("flex flex-col gap-2 p-2", e),
1371
1285
  ...t
1372
1286
  });
1373
1287
  }
1374
- function oi({ className: e, ...t }) {
1375
- return /* @__PURE__ */ U("div", {
1288
+ function ti({ className: e, ...t }) {
1289
+ return /* @__PURE__ */ H("div", {
1376
1290
  "data-slot": "sidebar-footer",
1377
1291
  "data-sidebar": "footer",
1378
1292
  className: r("flex flex-col gap-2 p-2", e),
1379
1293
  ...t
1380
1294
  });
1381
1295
  }
1382
- function si({ className: e, ...t }) {
1383
- return /* @__PURE__ */ U(kr, {
1296
+ function ni({ className: e, ...t }) {
1297
+ return /* @__PURE__ */ H(Or, {
1384
1298
  "data-slot": "sidebar-separator",
1385
1299
  "data-sidebar": "separator",
1386
1300
  className: r("bg-sidebar-border mx-2 w-auto", e),
1387
1301
  ...t
1388
1302
  });
1389
1303
  }
1390
- function ci({ className: e, ...t }) {
1391
- return /* @__PURE__ */ U("div", {
1304
+ function ri({ className: e, ...t }) {
1305
+ return /* @__PURE__ */ H("div", {
1392
1306
  "data-slot": "sidebar-content",
1393
1307
  "data-sidebar": "content",
1394
1308
  className: r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
1395
1309
  ...t
1396
1310
  });
1397
1311
  }
1398
- function li({ className: e, ...t }) {
1399
- return /* @__PURE__ */ U("div", {
1312
+ function ii({ className: e, ...t }) {
1313
+ return /* @__PURE__ */ H("div", {
1400
1314
  "data-slot": "sidebar-group",
1401
1315
  "data-sidebar": "group",
1402
1316
  className: r("relative flex w-full min-w-0 flex-col p-2", e),
1403
1317
  ...t
1404
1318
  });
1405
1319
  }
1406
- function ui({ className: e, asChild: t = !1, ...n }) {
1407
- return /* @__PURE__ */ U(t ? ze : "div", {
1320
+ function ai({ className: e, asChild: t = !1, ...n }) {
1321
+ return /* @__PURE__ */ H(t ? Je : "div", {
1408
1322
  "data-slot": "sidebar-group-label",
1409
1323
  "data-sidebar": "group-label",
1410
1324
  className: r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
1411
1325
  ...n
1412
1326
  });
1413
1327
  }
1414
- function di({ className: e, asChild: t = !1, ...n }) {
1415
- return /* @__PURE__ */ U(t ? ze : "button", {
1328
+ function oi({ className: e, asChild: t = !1, ...n }) {
1329
+ return /* @__PURE__ */ H(t ? Je : "button", {
1416
1330
  "data-slot": "sidebar-group-action",
1417
1331
  "data-sidebar": "group-action",
1418
1332
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
1419
1333
  ...n
1420
1334
  });
1421
1335
  }
1422
- function fi({ className: e, ...t }) {
1423
- return /* @__PURE__ */ U("div", {
1336
+ function si({ className: e, ...t }) {
1337
+ return /* @__PURE__ */ H("div", {
1424
1338
  "data-slot": "sidebar-group-content",
1425
1339
  "data-sidebar": "group-content",
1426
1340
  className: r("w-full text-sm", e),
1427
1341
  ...t
1428
1342
  });
1429
1343
  }
1430
- function pi({ className: e, ...t }) {
1431
- return /* @__PURE__ */ U("ul", {
1344
+ function ci({ className: e, ...t }) {
1345
+ return /* @__PURE__ */ H("ul", {
1432
1346
  "data-slot": "sidebar-menu",
1433
1347
  "data-sidebar": "menu",
1434
1348
  className: r("flex w-full min-w-0 flex-col gap-1", e),
1435
1349
  ...t
1436
1350
  });
1437
1351
  }
1438
- function mi({ className: e, ...t }) {
1439
- return /* @__PURE__ */ U("li", {
1352
+ function li({ className: e, ...t }) {
1353
+ return /* @__PURE__ */ H("li", {
1440
1354
  "data-slot": "sidebar-menu-item",
1441
1355
  "data-sidebar": "menu-item",
1442
1356
  className: r("group/menu-item relative", e),
1443
1357
  ...t
1444
1358
  });
1445
1359
  }
1446
- var hi = Be("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1360
+ var ui = Ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1447
1361
  variants: {
1448
1362
  variant: {
1449
1363
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
@@ -1460,84 +1374,84 @@ var hi = Be("peer/menu-button flex w-full items-center gap-2 overflow-hidden rou
1460
1374
  size: "default"
1461
1375
  }
1462
1376
  });
1463
- function gi({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1464
- let c = e ? ze : "button", { isMobile: l, state: u } = Zr(), d = /* @__PURE__ */ U(c, {
1377
+ function di({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1378
+ let c = e ? Je : "button", { isMobile: l, state: u } = Kr(), d = /* @__PURE__ */ H(c, {
1465
1379
  "data-slot": "sidebar-menu-button",
1466
1380
  "data-sidebar": "menu-button",
1467
1381
  "data-size": i,
1468
1382
  "data-active": t,
1469
- className: r(hi({
1383
+ className: r(ui({
1470
1384
  variant: n,
1471
1385
  size: i
1472
1386
  }), o),
1473
1387
  ...s
1474
1388
  });
1475
- return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ W(he, { children: [/* @__PURE__ */ U(de, {
1389
+ return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ U(Ce, { children: [/* @__PURE__ */ H(I, {
1476
1390
  asChild: !0,
1477
1391
  children: d
1478
- }), /* @__PURE__ */ U(Se, {
1392
+ }), /* @__PURE__ */ H(ve, {
1479
1393
  side: "right",
1480
1394
  align: "center",
1481
1395
  hidden: u !== "collapsed" || l,
1482
1396
  ...a
1483
1397
  })] })) : d;
1484
1398
  }
1485
- function _i({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1486
- return /* @__PURE__ */ U(t ? ze : "button", {
1399
+ function fi({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1400
+ return /* @__PURE__ */ H(t ? Je : "button", {
1487
1401
  "data-slot": "sidebar-menu-action",
1488
1402
  "data-sidebar": "menu-action",
1489
1403
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
1490
1404
  ...i
1491
1405
  });
1492
1406
  }
1493
- function vi({ className: e, ...t }) {
1494
- return /* @__PURE__ */ U("div", {
1407
+ function pi({ className: e, ...t }) {
1408
+ return /* @__PURE__ */ H("div", {
1495
1409
  "data-slot": "sidebar-menu-badge",
1496
1410
  "data-sidebar": "menu-badge",
1497
1411
  className: r("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
1498
1412
  ...t
1499
1413
  });
1500
1414
  }
1501
- function yi(e) {
1415
+ function mi(e) {
1502
1416
  let t = 0;
1503
1417
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) | 0;
1504
1418
  return Math.abs(t);
1505
1419
  }
1506
- function bi({ className: e, showIcon: t = !1, ...n }) {
1507
- let i = `${50 + yi(B.useId()) % 40}%`;
1508
- return /* @__PURE__ */ W("div", {
1420
+ function hi({ className: e, showIcon: t = !1, ...n }) {
1421
+ let i = `${50 + mi(z.useId()) % 40}%`;
1422
+ return /* @__PURE__ */ U("div", {
1509
1423
  "data-slot": "sidebar-menu-skeleton",
1510
1424
  "data-sidebar": "menu-skeleton",
1511
1425
  className: r("flex h-8 items-center gap-2 rounded-md px-2", e),
1512
1426
  ...n,
1513
- children: [t && /* @__PURE__ */ U(m, {
1427
+ children: [t && /* @__PURE__ */ H(m, {
1514
1428
  className: "size-4 rounded-md",
1515
1429
  "data-sidebar": "menu-skeleton-icon"
1516
- }), /* @__PURE__ */ U(m, {
1430
+ }), /* @__PURE__ */ H(m, {
1517
1431
  className: "h-4 max-w-(--skeleton-width) flex-1",
1518
1432
  "data-sidebar": "menu-skeleton-text",
1519
1433
  style: { "--skeleton-width": i }
1520
1434
  })]
1521
1435
  });
1522
1436
  }
1523
- function xi({ className: e, ...t }) {
1524
- return /* @__PURE__ */ U("ul", {
1437
+ function gi({ className: e, ...t }) {
1438
+ return /* @__PURE__ */ H("ul", {
1525
1439
  "data-slot": "sidebar-menu-sub",
1526
1440
  "data-sidebar": "menu-sub",
1527
1441
  className: r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
1528
1442
  ...t
1529
1443
  });
1530
1444
  }
1531
- function Si({ className: e, ...t }) {
1532
- return /* @__PURE__ */ U("li", {
1445
+ function _i({ className: e, ...t }) {
1446
+ return /* @__PURE__ */ H("li", {
1533
1447
  "data-slot": "sidebar-menu-sub-item",
1534
1448
  "data-sidebar": "menu-sub-item",
1535
1449
  className: r("group/menu-sub-item relative", e),
1536
1450
  ...t
1537
1451
  });
1538
1452
  }
1539
- function Ci({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1540
- return /* @__PURE__ */ U(e ? ze : "a", {
1453
+ function vi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1454
+ return /* @__PURE__ */ H(e ? Je : "a", {
1541
1455
  "data-slot": "sidebar-menu-sub-button",
1542
1456
  "data-sidebar": "menu-sub-button",
1543
1457
  "data-size": t,
@@ -1548,61 +1462,61 @@ function Ci({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, .
1548
1462
  }
1549
1463
  //#endregion
1550
1464
  //#region src/components/ui/sticky-save-bar.tsx
1551
- var wi = {
1465
+ var yi = {
1552
1466
  gray: "bg-gray-50 dark:bg-gray-950/30",
1553
1467
  blue: "bg-blue-50 dark:bg-blue-950/30",
1554
1468
  orange: "bg-orange-50 dark:bg-orange-950/30",
1555
1469
  green: "bg-green-50 dark:bg-green-950/30"
1556
1470
  };
1557
- function Ti({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1558
- let { t: s } = G();
1559
- return /* @__PURE__ */ W("div", {
1560
- className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${wi[o]}`,
1561
- children: [/* @__PURE__ */ W("div", {
1471
+ function bi({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1472
+ let { t: s } = W();
1473
+ return /* @__PURE__ */ U("div", {
1474
+ className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${yi[o]}`,
1475
+ children: [/* @__PURE__ */ U("div", {
1562
1476
  className: "flex items-center gap-3 min-w-0",
1563
- children: [/* @__PURE__ */ U("h3", {
1477
+ children: [/* @__PURE__ */ H("h3", {
1564
1478
  className: "text-lg font-semibold text-foreground truncate",
1565
1479
  children: e
1566
- }), t && /* @__PURE__ */ U("div", {
1480
+ }), t && /* @__PURE__ */ H("div", {
1567
1481
  className: "flex items-center gap-1.5 shrink-0",
1568
1482
  children: t
1569
1483
  })]
1570
- }), /* @__PURE__ */ U("div", {
1484
+ }), /* @__PURE__ */ H("div", {
1571
1485
  className: "flex gap-2 shrink-0",
1572
- children: n ?? /* @__PURE__ */ W(Le, { children: [/* @__PURE__ */ W(v, {
1486
+ children: n ?? /* @__PURE__ */ U(Ke, { children: [/* @__PURE__ */ U(v, {
1573
1487
  type: "submit",
1574
1488
  size: "sm",
1575
1489
  loading: i,
1576
1490
  disabled: a,
1577
- children: [/* @__PURE__ */ U(Xe, { className: "size-4" }), s("forms.formActions.saveChanges")]
1578
- }), r && /* @__PURE__ */ W(v, {
1491
+ children: [/* @__PURE__ */ H(at, { className: "size-4" }), s("forms.formActions.saveChanges")]
1492
+ }), r && /* @__PURE__ */ U(v, {
1579
1493
  type: "button",
1580
1494
  variant: "outline",
1581
1495
  size: "sm",
1582
1496
  onClick: r,
1583
- children: [/* @__PURE__ */ U(nt, { className: "size-4" }), s("forms.formActions.cancel")]
1497
+ children: [/* @__PURE__ */ H(dt, { className: "size-4" }), s("forms.formActions.cancel")]
1584
1498
  })] })
1585
1499
  })]
1586
1500
  });
1587
1501
  }
1588
- function Ei({ children: e }) {
1589
- return /* @__PURE__ */ U(c, {
1502
+ function xi({ children: e }) {
1503
+ return /* @__PURE__ */ H(c, {
1590
1504
  variant: "outline",
1591
1505
  className: "text-xs",
1592
1506
  children: e
1593
1507
  });
1594
1508
  }
1595
- Ti.Badge = Ei;
1509
+ bi.Badge = xi;
1596
1510
  //#endregion
1597
1511
  //#region src/components/ui/slider.tsx
1598
- function Di({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1599
- let l = B.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1512
+ function Si({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1513
+ let l = z.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1600
1514
  n,
1601
1515
  t,
1602
1516
  i,
1603
1517
  a
1604
1518
  ]);
1605
- return /* @__PURE__ */ W(dt.Root, {
1519
+ return /* @__PURE__ */ U(gt.Root, {
1606
1520
  "data-slot": "slider",
1607
1521
  defaultValue: t,
1608
1522
  value: n,
@@ -1610,14 +1524,14 @@ function Di({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1610
1524
  max: a,
1611
1525
  className: r("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
1612
1526
  ...c,
1613
- children: [/* @__PURE__ */ U(dt.Track, {
1527
+ children: [/* @__PURE__ */ H(gt.Track, {
1614
1528
  "data-slot": "slider-track",
1615
1529
  className: r("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
1616
- children: /* @__PURE__ */ U(dt.Range, {
1530
+ children: /* @__PURE__ */ H(gt.Range, {
1617
1531
  "data-slot": "slider-range",
1618
1532
  className: r("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
1619
1533
  })
1620
- }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ U(dt.Thumb, {
1534
+ }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ H(gt.Thumb, {
1621
1535
  "data-slot": "slider-thumb",
1622
1536
  "aria-label": o && l.length > 1 ? `${o} ${t + 1}` : o,
1623
1537
  "aria-labelledby": s,
@@ -1627,59 +1541,59 @@ function Di({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1627
1541
  }
1628
1542
  //#endregion
1629
1543
  //#region src/components/ui/tree.tsx
1630
- var Oi = "/";
1631
- function ki(e, t) {
1632
- return e === "" ? t : `${e}${Oi}${t}`;
1544
+ var Ci = "/";
1545
+ function wi(e, t) {
1546
+ return e === "" ? t : `${e}${Ci}${t}`;
1633
1547
  }
1634
- function Ai(e) {
1548
+ function Ti(e) {
1635
1549
  return e.children !== void 0 && e.children.length > 0;
1636
1550
  }
1637
- function ji(e, t, n) {
1638
- if (!n || !Ai(e)) return {
1551
+ function Ei(e, t, n) {
1552
+ if (!n || !Ti(e)) return {
1639
1553
  node: e,
1640
1554
  ids: t
1641
1555
  };
1642
1556
  let r = e.children?.length === 1 ? e.children[0] : void 0;
1643
- return r === void 0 || !Ai(r) ? {
1557
+ return r === void 0 || !Ti(r) ? {
1644
1558
  node: e,
1645
1559
  ids: t
1646
- } : ji(r, [...t, r.id], n);
1560
+ } : Ei(r, [...t, r.id], n);
1647
1561
  }
1648
- function Mi(e, t, n, r = "", i = 1) {
1562
+ function Di(e, t, n, r = "", i = 1) {
1649
1563
  let a = [];
1650
1564
  for (let o of e) {
1651
- let e = ji(o, [o.id], n), s = e.ids.reduce((e, t) => ki(e, t), r), c = Ai(e.node);
1565
+ let e = Ei(o, [o.id], n), s = e.ids.reduce((e, t) => wi(e, t), r), c = Ti(e.node);
1652
1566
  a.push({
1653
1567
  key: s,
1654
1568
  node: e.node,
1655
1569
  ids: e.ids,
1656
1570
  level: i,
1657
1571
  hasChildren: c
1658
- }), c && t.has(s) && a.push(...Mi(e.node.children ?? [], t, n, s, i + 1));
1572
+ }), c && t.has(s) && a.push(...Di(e.node.children ?? [], t, n, s, i + 1));
1659
1573
  }
1660
1574
  return a;
1661
1575
  }
1662
- function Ni(e) {
1663
- return e.ids.length > 1 ? e.ids.join(Oi) : e.node.label;
1576
+ function Oi(e) {
1577
+ return e.ids.length > 1 ? e.ids.join(Ci) : e.node.label;
1664
1578
  }
1665
- function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1666
- let [f, p] = B.useState(i ?? []), m = B.useMemo(() => new Set(n ?? f), [n, f]), h = B.useMemo(() => Mi(e, m, l), [
1579
+ function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1580
+ let [f, p] = z.useState(i ?? []), m = z.useMemo(() => new Set(n ?? f), [n, f]), h = z.useMemo(() => Di(e, m, l), [
1667
1581
  e,
1668
1582
  m,
1669
1583
  l
1670
- ]), [g, _] = B.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = B.useRef(null), b = B.useCallback((e) => {
1584
+ ]), [g, _] = z.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = z.useRef(null), ee = z.useCallback((e) => {
1671
1585
  n === void 0 && p(e), a?.(e);
1672
- }, [n, a]), x = B.useCallback((e, t) => {
1586
+ }, [n, a]), b = z.useCallback((e, t) => {
1673
1587
  let n = [...m];
1674
- t !== m.has(e) && b(t ? [...n, e] : n.filter((t) => t !== e));
1675
- }, [m, b]), S = B.useCallback((e) => {
1588
+ t !== m.has(e) && ee(t ? [...n, e] : n.filter((t) => t !== e));
1589
+ }, [m, ee]), x = z.useCallback((e) => {
1676
1590
  _(e), (y.current?.querySelector(`[data-tree-key="${CSS.escape(e)}"]`))?.focus();
1677
- }, []), C = B.useCallback((e) => {
1591
+ }, []), S = z.useCallback((e) => {
1678
1592
  let t = h.findIndex((e) => e.key === v), n = h[t];
1679
1593
  if (n === void 0) return;
1680
1594
  let r = (e) => {
1681
1595
  let t = h[e];
1682
- t !== void 0 && S(t.key);
1596
+ t !== void 0 && x(t.key);
1683
1597
  };
1684
1598
  switch (e.key) {
1685
1599
  case "ArrowDown":
@@ -1695,24 +1609,24 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1695
1609
  e.preventDefault(), r(h.length - 1);
1696
1610
  return;
1697
1611
  case "ArrowRight":
1698
- e.preventDefault(), n.hasChildren && !m.has(n.key) ? x(n.key, !0) : n.hasChildren && r(t + 1);
1612
+ e.preventDefault(), n.hasChildren && !m.has(n.key) ? b(n.key, !0) : n.hasChildren && r(t + 1);
1699
1613
  return;
1700
1614
  case "ArrowLeft":
1701
1615
  if (e.preventDefault(), n.hasChildren && m.has(n.key)) {
1702
- x(n.key, !1);
1616
+ b(n.key, !1);
1703
1617
  return;
1704
1618
  }
1705
1619
  for (let e = t - 1; e >= 0; --e) {
1706
1620
  let t = h[e];
1707
1621
  if (t !== void 0 && t.level < n.level) {
1708
- S(t.key);
1622
+ x(t.key);
1709
1623
  return;
1710
1624
  }
1711
1625
  }
1712
1626
  return;
1713
1627
  case "Enter":
1714
1628
  case " ":
1715
- e.preventDefault(), n.hasChildren && x(n.key, !m.has(n.key)), s?.(n.key, n.node);
1629
+ e.preventDefault(), n.hasChildren && b(n.key, !m.has(n.key)), s?.(n.key, n.node);
1716
1630
  return;
1717
1631
  default: return;
1718
1632
  }
@@ -1720,20 +1634,20 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1720
1634
  h,
1721
1635
  v,
1722
1636
  m,
1637
+ b,
1723
1638
  x,
1724
- S,
1725
1639
  s
1726
1640
  ]);
1727
- return /* @__PURE__ */ U("div", {
1641
+ return /* @__PURE__ */ H("div", {
1728
1642
  ref: y,
1729
1643
  role: "tree",
1730
1644
  "aria-label": t,
1731
1645
  className: r("flex flex-col text-sm", u),
1732
- onKeyDown: C,
1646
+ onKeyDown: S,
1733
1647
  ...d,
1734
1648
  children: h.map((e) => {
1735
1649
  let t = e.hasChildren && m.has(e.key);
1736
- return /* @__PURE__ */ W("div", {
1650
+ return /* @__PURE__ */ U("div", {
1737
1651
  role: "treeitem",
1738
1652
  "data-tree-key": e.key,
1739
1653
  "aria-level": e.level,
@@ -1746,16 +1660,16 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1746
1660
  _(e.key);
1747
1661
  },
1748
1662
  onClick: () => {
1749
- e.hasChildren && x(e.key, !t), s?.(e.key, e.node);
1663
+ e.hasChildren && b(e.key, !t), s?.(e.key, e.node);
1750
1664
  },
1751
1665
  children: [
1752
- /* @__PURE__ */ U(ae, {
1666
+ /* @__PURE__ */ H(fe, {
1753
1667
  "aria-hidden": "true",
1754
1668
  className: r("size-3.5 shrink-0 transition-transform", e.hasChildren ? "opacity-70" : "opacity-0", t && "rotate-90")
1755
1669
  }),
1756
- /* @__PURE__ */ U("span", {
1670
+ /* @__PURE__ */ H("span", {
1757
1671
  className: "min-w-0 truncate",
1758
- children: Ni(e)
1672
+ children: Oi(e)
1759
1673
  }),
1760
1674
  c?.(e.node, e.key)
1761
1675
  ]
@@ -1763,8 +1677,8 @@ function Pi({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1763
1677
  })
1764
1678
  });
1765
1679
  }
1766
- function Fi(e, t = {}) {
1767
- let n = t.separator ?? Oi, r = [], i = /* @__PURE__ */ new Map();
1680
+ function Ai(e, t = {}) {
1681
+ let n = t.separator ?? Ci, r = [], i = /* @__PURE__ */ new Map();
1768
1682
  for (let t of e) {
1769
1683
  let e = t.split(n).filter((e) => e !== ""), a = r, o = "";
1770
1684
  for (let t of e) {
@@ -1781,64 +1695,64 @@ function Fi(e, t = {}) {
1781
1695
  }
1782
1696
  //#endregion
1783
1697
  //#region src/components/ui/stepper.tsx
1784
- var Ii = Me({
1698
+ var ji = Ve({
1785
1699
  completedSteps: [],
1786
1700
  allDone: !1
1787
1701
  });
1788
- function Li({ completedSteps: e, children: t, className: n }) {
1702
+ function Mi({ completedSteps: e, children: t, className: n }) {
1789
1703
  let i = e.length > 0 && e.every(Boolean);
1790
- return /* @__PURE__ */ U(Ii.Provider, {
1704
+ return /* @__PURE__ */ H(ji.Provider, {
1791
1705
  value: {
1792
1706
  completedSteps: e,
1793
1707
  allDone: i
1794
1708
  },
1795
- children: /* @__PURE__ */ W("div", {
1709
+ children: /* @__PURE__ */ U("div", {
1796
1710
  className: r("relative", n),
1797
- children: [/* @__PURE__ */ U("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1711
+ children: [/* @__PURE__ */ H("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1798
1712
  })
1799
1713
  });
1800
1714
  }
1801
- function Ri({ index: e, children: t, className: n }) {
1802
- let { completedSteps: i } = Pe(Ii), a = i[e] ?? !1, o = e + 1;
1803
- return /* @__PURE__ */ W("div", {
1715
+ function Ni({ index: e, children: t, className: n }) {
1716
+ let { completedSteps: i } = Ue(ji), a = i[e] ?? !1, o = e + 1;
1717
+ return /* @__PURE__ */ U("div", {
1804
1718
  className: r("relative flex items-start gap-4 pb-8", n),
1805
- children: [/* @__PURE__ */ U("div", {
1719
+ children: [/* @__PURE__ */ H("div", {
1806
1720
  className: "flex flex-col items-center",
1807
- children: /* @__PURE__ */ U("div", {
1721
+ children: /* @__PURE__ */ H("div", {
1808
1722
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold transition-all duration-500", a ? "bg-emerald-500 text-white shadow-md shadow-emerald-500/30 scale-105" : "bg-primary text-primary-foreground"),
1809
- children: a ? /* @__PURE__ */ U(Je, { className: "h-4 w-4" }) : o
1723
+ children: a ? /* @__PURE__ */ H(rt, { className: "h-4 w-4" }) : o
1810
1724
  })
1811
- }), /* @__PURE__ */ U("div", {
1725
+ }), /* @__PURE__ */ H("div", {
1812
1726
  className: "flex-1 pt-0.5",
1813
1727
  children: t
1814
1728
  })]
1815
1729
  });
1816
1730
  }
1817
- function zi({ readyLabel: e, pendingLabel: t, className: n }) {
1818
- let { allDone: i } = Pe(Ii), { t: a } = G(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1819
- return /* @__PURE__ */ W("div", {
1731
+ function Pi({ readyLabel: e, pendingLabel: t, className: n }) {
1732
+ let { allDone: i } = Ue(ji), { t: a } = W(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1733
+ return /* @__PURE__ */ U("div", {
1820
1734
  className: r("relative flex items-center gap-4", n),
1821
- children: [/* @__PURE__ */ U("div", {
1735
+ children: [/* @__PURE__ */ H("div", {
1822
1736
  className: "flex flex-col items-center",
1823
- children: /* @__PURE__ */ U("div", {
1737
+ children: /* @__PURE__ */ H("div", {
1824
1738
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full transition-all duration-700", i ? "stepper-ready bg-emerald-500 text-white shadow-lg shadow-emerald-500/40 scale-110" : "bg-muted text-muted-foreground/40"),
1825
- children: /* @__PURE__ */ U(Ye, { className: "h-5 w-5" })
1739
+ children: /* @__PURE__ */ H(it, { className: "h-5 w-5" })
1826
1740
  })
1827
- }), /* @__PURE__ */ U("span", {
1828
- className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground/40"),
1741
+ }), /* @__PURE__ */ H("span", {
1742
+ className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-700 dark:text-emerald-400" : "text-muted-foreground"),
1829
1743
  children: i ? o : s
1830
1744
  })]
1831
1745
  });
1832
1746
  }
1833
- Li.Step = Ri, Li.Completion = zi;
1747
+ Mi.Step = Ni, Mi.Completion = Pi;
1834
1748
  //#endregion
1835
1749
  //#region src/components/ui/switch.tsx
1836
- function Bi({ className: e, ...t }) {
1837
- return /* @__PURE__ */ U(rt.Root, {
1750
+ function Fi({ className: e, ...t }) {
1751
+ return /* @__PURE__ */ H(ft.Root, {
1838
1752
  "data-slot": "switch",
1839
1753
  className: r("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
1840
1754
  ...t,
1841
- children: /* @__PURE__ */ U(rt.Thumb, {
1755
+ children: /* @__PURE__ */ H(ft.Thumb, {
1842
1756
  "data-slot": "switch-thumb",
1843
1757
  className: r("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
1844
1758
  })
@@ -1846,100 +1760,70 @@ function Bi({ className: e, ...t }) {
1846
1760
  }
1847
1761
  //#endregion
1848
1762
  //#region src/components/ui/table.tsx
1849
- function Vi({ className: e, ...t }) {
1850
- return /* @__PURE__ */ U("div", {
1763
+ function Ii({ className: e, ...t }) {
1764
+ return /* @__PURE__ */ H("div", {
1851
1765
  "data-slot": "table-container",
1852
1766
  className: "relative w-full overflow-x-auto",
1853
- children: /* @__PURE__ */ U("table", {
1767
+ children: /* @__PURE__ */ H("table", {
1854
1768
  "data-slot": "table",
1855
1769
  className: r("w-full caption-bottom text-sm", e),
1856
1770
  ...t
1857
1771
  })
1858
1772
  });
1859
1773
  }
1860
- function Hi({ className: e, ...t }) {
1861
- return /* @__PURE__ */ U("thead", {
1774
+ function Li({ className: e, ...t }) {
1775
+ return /* @__PURE__ */ H("thead", {
1862
1776
  "data-slot": "table-header",
1863
1777
  className: r("[&_tr]:border-b", e),
1864
1778
  ...t
1865
1779
  });
1866
1780
  }
1867
- function Ui({ className: e, ...t }) {
1868
- return /* @__PURE__ */ U("tbody", {
1781
+ function Ri({ className: e, ...t }) {
1782
+ return /* @__PURE__ */ H("tbody", {
1869
1783
  "data-slot": "table-body",
1870
1784
  className: r("[&_tr:last-child]:border-0", e),
1871
1785
  ...t
1872
1786
  });
1873
1787
  }
1874
- function Wi({ className: e, ...t }) {
1875
- return /* @__PURE__ */ U("tfoot", {
1788
+ function zi({ className: e, ...t }) {
1789
+ return /* @__PURE__ */ H("tfoot", {
1876
1790
  "data-slot": "table-footer",
1877
1791
  className: r("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
1878
1792
  ...t
1879
1793
  });
1880
1794
  }
1881
- function Gi({ className: e, ...t }) {
1882
- return /* @__PURE__ */ U("tr", {
1795
+ function Bi({ className: e, ...t }) {
1796
+ return /* @__PURE__ */ H("tr", {
1883
1797
  "data-slot": "table-row",
1884
1798
  className: r("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
1885
1799
  ...t
1886
1800
  });
1887
1801
  }
1888
- function Ki({ className: e, ...t }) {
1889
- return /* @__PURE__ */ U("th", {
1802
+ function Vi({ className: e, ...t }) {
1803
+ return /* @__PURE__ */ H("th", {
1890
1804
  "data-slot": "table-head",
1891
1805
  className: r("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1892
1806
  ...t
1893
1807
  });
1894
1808
  }
1895
- function qi({ className: e, ...t }) {
1896
- return /* @__PURE__ */ U("td", {
1809
+ function Hi({ className: e, ...t }) {
1810
+ return /* @__PURE__ */ H("td", {
1897
1811
  "data-slot": "table-cell",
1898
1812
  className: r("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1899
1813
  ...t
1900
1814
  });
1901
1815
  }
1902
- function Ji({ className: e, ...t }) {
1903
- return /* @__PURE__ */ U("caption", {
1816
+ function Ui({ className: e, ...t }) {
1817
+ return /* @__PURE__ */ H("caption", {
1904
1818
  "data-slot": "table-caption",
1905
1819
  className: r("text-muted-foreground mt-4 text-sm", e),
1906
1820
  ...t
1907
1821
  });
1908
1822
  }
1909
1823
  //#endregion
1910
- //#region src/components/ui/tabs.tsx
1911
- function Yi({ className: e, ...t }) {
1912
- return /* @__PURE__ */ U(ht.Root, {
1913
- "data-slot": "tabs",
1914
- className: r("flex flex-col gap-2", e),
1915
- ...t
1916
- });
1917
- }
1918
- function Xi({ className: e, ...t }) {
1919
- return /* @__PURE__ */ U(ht.List, {
1920
- "data-slot": "tabs-list",
1921
- className: r("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
1922
- ...t
1923
- });
1924
- }
1925
- function Zi({ className: e, ...t }) {
1926
- return /* @__PURE__ */ U(ht.Trigger, {
1927
- "data-slot": "tabs-trigger",
1928
- className: r("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
1929
- ...t
1930
- });
1931
- }
1932
- function Qi({ className: e, ...t }) {
1933
- return /* @__PURE__ */ U(ht.Content, {
1934
- "data-slot": "tabs-content",
1935
- className: r("flex-1 outline-none", e),
1936
- ...t
1937
- });
1938
- }
1939
- //#endregion
1940
1824
  //#region src/components/ui/textarea.tsx
1941
- function $i({ className: e, ...t }) {
1942
- return /* @__PURE__ */ U("textarea", {
1825
+ function Wi({ className: e, ...t }) {
1826
+ return /* @__PURE__ */ H("textarea", {
1943
1827
  "data-slot": "textarea",
1944
1828
  className: r("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
1945
1829
  ...t
@@ -1947,7 +1831,7 @@ function $i({ className: e, ...t }) {
1947
1831
  }
1948
1832
  //#endregion
1949
1833
  //#region src/components/ui/toggle.tsx
1950
- var ea = Be("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1834
+ var Gi = Ye("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1951
1835
  variants: {
1952
1836
  variant: {
1953
1837
  default: "bg-transparent",
@@ -1964,10 +1848,10 @@ var ea = Be("inline-flex items-center justify-center gap-2 rounded-md text-sm fo
1964
1848
  size: "default"
1965
1849
  }
1966
1850
  });
1967
- function ta({ className: e, variant: t, size: n, ...i }) {
1968
- return /* @__PURE__ */ U(gt.Root, {
1851
+ function Ki({ className: e, variant: t, size: n, ...i }) {
1852
+ return /* @__PURE__ */ H(bt.Root, {
1969
1853
  "data-slot": "toggle",
1970
- className: r(ea({
1854
+ className: r(Gi({
1971
1855
  variant: t,
1972
1856
  size: n,
1973
1857
  className: e
@@ -1977,13 +1861,13 @@ function ta({ className: e, variant: t, size: n, ...i }) {
1977
1861
  }
1978
1862
  //#endregion
1979
1863
  //#region src/components/ui/toggle-group.tsx
1980
- var na = B.createContext({
1864
+ var qi = z.createContext({
1981
1865
  size: "default",
1982
1866
  variant: "default",
1983
1867
  spacing: 0
1984
1868
  });
1985
- function ra({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1986
- return /* @__PURE__ */ U(_t.Root, {
1869
+ function Ji({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1870
+ return /* @__PURE__ */ H(xt.Root, {
1987
1871
  "data-slot": "toggle-group",
1988
1872
  "data-variant": t,
1989
1873
  "data-size": n,
@@ -1991,7 +1875,7 @@ function ra({ className: e, variant: t, size: n, spacing: i = 0, children: a, ..
1991
1875
  style: { "--gap": i },
1992
1876
  className: r("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", e),
1993
1877
  ...o,
1994
- children: /* @__PURE__ */ U(na.Provider, {
1878
+ children: /* @__PURE__ */ H(qi.Provider, {
1995
1879
  value: {
1996
1880
  variant: t,
1997
1881
  size: n,
@@ -2001,14 +1885,14 @@ function ra({ className: e, variant: t, size: n, spacing: i = 0, children: a, ..
2001
1885
  })
2002
1886
  });
2003
1887
  }
2004
- function ia({ className: e, children: t, variant: n, size: i, ...a }) {
2005
- let o = B.useContext(na);
2006
- return /* @__PURE__ */ U(_t.Item, {
1888
+ function Yi({ className: e, children: t, variant: n, size: i, ...a }) {
1889
+ let o = z.useContext(qi);
1890
+ return /* @__PURE__ */ H(xt.Item, {
2007
1891
  "data-slot": "toggle-group-item",
2008
1892
  "data-variant": o.variant || n,
2009
1893
  "data-size": o.size || i,
2010
1894
  "data-spacing": o.spacing,
2011
- className: r(ea({
1895
+ className: r(Gi({
2012
1896
  variant: o.variant || n,
2013
1897
  size: o.size || i
2014
1898
  }), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l", e),
@@ -2018,11 +1902,11 @@ function ia({ className: e, children: t, variant: n, size: i, ...a }) {
2018
1902
  }
2019
1903
  //#endregion
2020
1904
  //#region src/components/ui/viglet-avatar.tsx
2021
- var aa = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, oa = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
2022
- aa((e >> 16 & 255) / 255),
2023
- aa((e >> 8 & 255) / 255),
2024
- aa((e & 255) / 255)
2025
- ], sa = {
1905
+ var Xi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, Zi = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
1906
+ Xi((e >> 16 & 255) / 255),
1907
+ Xi((e >> 8 & 255) / 255),
1908
+ Xi((e & 255) / 255)
1909
+ ], Qi = {
2026
1910
  idle: {
2027
1911
  center: X(14916170),
2028
1912
  rim: X(11022874),
@@ -2048,8 +1932,8 @@ var aa = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, oa = (e)
2048
1932
  rim: X(11812382),
2049
1933
  glow: .42
2050
1934
  }
2051
- }, ca = 2;
2052
- function la(e) {
1935
+ }, $i = 2;
1936
+ function ea(e) {
2053
1937
  let t = (1 + Math.sqrt(5)) / 2, n = [
2054
1938
  -1,
2055
1939
  t,
@@ -2185,12 +2069,12 @@ function la(e) {
2185
2069
  count: u
2186
2070
  };
2187
2071
  }
2188
- var ua = la(ca), da = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2189
- function fa(e, t, n) {
2190
- let r = da((n - e) / (t - e));
2072
+ var ta = ea($i), na = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2073
+ function ra(e, t, n) {
2074
+ let r = na((n - e) / (t - e));
2191
2075
  return r * r * (3 - 2 * r);
2192
2076
  }
2193
- var pa = .78, ma = [
2077
+ var ia = .78, aa = [
2194
2078
  [
2195
2079
  .59719,
2196
2080
  .35458,
@@ -2206,7 +2090,7 @@ var pa = .78, ma = [
2206
2090
  .13383,
2207
2091
  .83777
2208
2092
  ]
2209
- ], ha = [
2093
+ ], oa = [
2210
2094
  [
2211
2095
  1.60475,
2212
2096
  -.53108,
@@ -2222,182 +2106,182 @@ var pa = .78, ma = [
2222
2106
  -.07276,
2223
2107
  1.07602
2224
2108
  ]
2225
- ], ga = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2226
- function _a(e, t, n, r) {
2227
- let i = t * pa, a = n * pa, o = r * pa;
2109
+ ], sa = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2110
+ function ca(e, t, n, r) {
2111
+ let i = t * ia, a = n * ia, o = r * ia;
2228
2112
  for (let t = 0; t < 3; t += 1) {
2229
- let [n, r, s] = ma[t];
2230
- e[t] = ga(n * i + r * a + s * o);
2113
+ let [n, r, s] = aa[t];
2114
+ e[t] = sa(n * i + r * a + s * o);
2231
2115
  }
2232
2116
  let [s, c, l] = e;
2233
2117
  for (let t = 0; t < 3; t += 1) {
2234
- let [n, r, i] = ha[t];
2235
- e[t] = Math.round(oa(da(n * s + r * c + i * l)) * 255);
2118
+ let [n, r, i] = oa[t];
2119
+ e[t] = Math.round(Zi(na(n * s + r * c + i * l)) * 255);
2236
2120
  }
2237
2121
  }
2238
2122
  function Q(e) {
2239
- let t = e * pa;
2240
- return Math.round(oa(da(ga(t))) * 255);
2123
+ let t = e * ia;
2124
+ return Math.round(Zi(na(sa(t))) * 255);
2241
2125
  }
2242
- var va = 60, ya = "rgba(255,214,150,0.34)";
2243
- function ba(e) {
2126
+ var la = 60, ua = "rgba(255,214,150,0.34)";
2127
+ function da(e) {
2244
2128
  let t = Math.abs(Math.trunc(e)) % 2147483646 + 1;
2245
2129
  return () => (t = t * 16807 % 2147483647, (t - 1) / 2147483646);
2246
2130
  }
2247
- var xa = 1618033;
2248
- function Sa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = xa, className: s, style: c }) {
2249
- let l = H(null), u = H(e), d = H(0), f = H(n), p = H(i), m = H(a), h = H(-Infinity), g = H(null);
2250
- return V(() => {
2131
+ var fa = 1618033;
2132
+ function pa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = fa, className: s, style: c }) {
2133
+ let l = V(null), u = V(e), d = V(0), f = V(n), p = V(i), m = V(a), h = V(-Infinity), g = V(null);
2134
+ return B(() => {
2251
2135
  u.current = e, d.current = typeof performance > "u" ? 0 : performance.now(), g.current?.();
2252
- }, [e]), V(() => {
2136
+ }, [e]), B(() => {
2253
2137
  f.current = n, g.current?.();
2254
- }, [n]), V(() => {
2138
+ }, [n]), B(() => {
2255
2139
  p.current = i, g.current?.();
2256
- }, [i]), V(() => {
2140
+ }, [i]), B(() => {
2257
2141
  m.current = a, g.current?.();
2258
- }, [a]), V(() => {
2142
+ }, [a]), B(() => {
2259
2143
  r && (h.current = performance.now(), g.current?.());
2260
- }, [r]), V(() => {
2144
+ }, [r]), B(() => {
2261
2145
  let r = l.current;
2262
2146
  if (!r) return;
2263
2147
  let i = r.getContext("2d");
2264
2148
  if (!i) return;
2265
2149
  let a = i, s = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, c = Math.min(window.devicePixelRatio || 1, 2);
2266
2150
  r.width = Math.round(t * c), r.height = Math.round(t * c), a.scale(c, c);
2267
- let _ = t / 2, v = t / 2, y = ba(o), b = Array.from({ length: 34 }, () => ({
2151
+ let _ = t / 2, v = t / 2, y = da(o), ee = Array.from({ length: 34 }, () => ({
2268
2152
  x: (y() - .5) * 1.9,
2269
2153
  y: y() * 2.8 - .4,
2270
2154
  z: (y() - .5) * 1.9,
2271
2155
  speed: .05 + y() * .09
2272
- })), x = {
2273
- center: [...sa[e].center],
2274
- rim: [...sa[e].rim],
2275
- glow: sa[e].glow
2276
- }, S = 0, C = va, w = 0, T = 0, ee = performance.now(), E = 0, D = .34, O = n ? 7.4 : 9, k = -Infinity, A = {
2156
+ })), b = {
2157
+ center: [...Qi[e].center],
2158
+ rim: [...Qi[e].rim],
2159
+ glow: Qi[e].glow
2160
+ }, x = 0, S = la, C = 0, w = 0, T = performance.now(), te = 0, ne = .34, E = n ? 7.4 : 9, D = -Infinity, O = {
2277
2161
  x: 0,
2278
2162
  y: 0
2279
- }, j = {
2163
+ }, k = {
2280
2164
  x: 0,
2281
2165
  y: 0
2282
- }, M = (e) => {
2283
- A.x = e.clientX / window.innerWidth * 2 - 1, A.y = -(e.clientY / window.innerHeight * 2 - 1), k = performance.now(), C = va, S ||= requestAnimationFrame(ie);
2284
- }, N = t * (n ? .27 : .24), P = (e, t, n, r) => {
2285
- let i = O / (O - n * r);
2286
- return [_ + e * r * i * N, v - t * r * i * N];
2166
+ }, A = (e) => {
2167
+ O.x = e.clientX / window.innerWidth * 2 - 1, O.y = -(e.clientY / window.innerHeight * 2 - 1), D = performance.now(), S = la, x ||= requestAnimationFrame(F);
2168
+ }, j = t * (n ? .27 : .24), M = (e, t, n, r) => {
2169
+ let i = E / (E - n * r);
2170
+ return [_ + e * r * i * j, v - t * r * i * j];
2287
2171
  };
2288
- function te(e, t, n, r) {
2172
+ function re(e, t, n, r) {
2289
2173
  let i = a.createRadialGradient(e, t, 0, e, t, Math.max(n, .01));
2290
2174
  for (let [e, t] of r) i.addColorStop(e, t);
2291
2175
  return i;
2292
2176
  }
2293
- function ne(e, t, n, r, i, o) {
2177
+ function ie(e, t, n, r, i, o) {
2294
2178
  if (i <= .002) return;
2295
2179
  a.save(), a.globalCompositeOperation = "lighter", a.strokeStyle = r, a.lineWidth = n, a.lineCap = "round", a.beginPath();
2296
2180
  let s = !1;
2297
2181
  for (let n = 0; n <= 96; n += 1) {
2298
- let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(D), u = c * Math.sin(D), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2182
+ let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(ne), u = c * Math.sin(ne), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2299
2183
  if (d !== e || !f) {
2300
2184
  s = !1;
2301
2185
  continue;
2302
2186
  }
2303
- let [p, m] = P(i, l, u, 1);
2187
+ let [p, m] = M(i, l, u, 1);
2304
2188
  s ? a.lineTo(p, m) : (a.moveTo(p, m), s = !0);
2305
2189
  }
2306
2190
  a.globalAlpha = e === -1 ? i * .32 : i, a.stroke(), a.restore();
2307
2191
  }
2308
- let F = new Float64Array(ua.points.length), re = [
2192
+ let N = new Float64Array(ta.points.length), P = [
2309
2193
  0,
2310
2194
  0,
2311
2195
  0
2312
2196
  ];
2313
- function ie(e) {
2314
- S = 0;
2315
- let n = a, r = Math.min((e - ee) / 1e3, .05);
2316
- ee = e;
2317
- let i = u.current, o = sa[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, M = l ? 0 : (e - d.current) / 1e3, ae = l ? Infinity : (e - h.current) / 1e3, oe = !l && e - k < 1200;
2318
- T = l ? 0 : Z(T, +!!oe, oe ? .05 : .02), l || (w += r * (.25 + T * .75));
2319
- let se = c ? 7.4 : 9, ce = !l && Math.abs(O - se) > .01;
2320
- O = l ? se : Z(O, se, .12), (i !== "idle" || ae < 2.2 || p.current || T > .004 || ce) && (C = va);
2197
+ function F(e) {
2198
+ x = 0;
2199
+ let n = a, r = Math.min((e - T) / 1e3, .05);
2200
+ T = e;
2201
+ let i = u.current, o = Qi[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, A = l ? 0 : (e - d.current) / 1e3, ae = l ? Infinity : (e - h.current) / 1e3, oe = !l && e - D < 1200;
2202
+ w = l ? 0 : Z(w, +!!oe, oe ? .05 : .02), l || (C += r * (.25 + w * .75));
2203
+ let se = c ? 7.4 : 9, ce = !l && Math.abs(E - se) > .01;
2204
+ E = l ? se : Z(E, se, .12), (i !== "idle" || ae < 2.2 || p.current || w > .004 || ce) && (S = la);
2321
2205
  let le = l ? 1 : .06;
2322
- for (let e = 0; e < 3; e += 1) x.center[e] = Z(x.center[e], o.center[e], le), x.rim[e] = Z(x.rim[e], o.rim[e], le);
2206
+ for (let e = 0; e < 3; e += 1) b.center[e] = Z(b.center[e], o.center[e], le), b.rim[e] = Z(b.rim[e], o.rim[e], le);
2323
2207
  let ue = o.glow, de = 1;
2324
- ue += Math.sin(w * .9) * .05 * T;
2325
- let fe = ae < 1.8 ? Math.sin(da(ae / 1.8) * Math.PI) * .14 : 0;
2208
+ ue += Math.sin(C * .9) * .05 * w;
2209
+ let fe = ae < 1.8 ? Math.sin(na(ae / 1.8) * Math.PI) * .14 : 0;
2326
2210
  if (ue += fe, i === "working" && (ue += Math.sin(g * 2.2) * .06), i === "success") {
2327
- let e = da(M / 1.4);
2328
- de = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, M > 1.4 && (ue = Z(o.glow, sa.idle.glow + .25, da((M - 1.4) / 2)));
2211
+ let e = na(A / 1.4);
2212
+ de = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, A > 1.4 && (ue = Z(o.glow, Qi.idle.glow + .25, na((A - 1.4) / 2)));
2329
2213
  }
2330
- i === "error" && (de = .94), x.glow = Z(x.glow, ue, l ? 1 : .08);
2331
- let I = x.glow;
2332
- l || (E += r * (.06 + T * .1), D = .34 + Math.sin(w * .6) * .12, j.x = Z(j.x, A.x, .02), j.y = Z(j.y, A.y, .02));
2333
- let pe = l ? 0 : Math.sin(w * .35) * .05 + j.x * .12, me = l ? 0 : -j.y * .08, L = de * (1 + fe * .08);
2334
- n.clearRect(0, 0, t, t), n.fillStyle = te(_, v, N * 1.95, [
2214
+ i === "error" && (de = .94), b.glow = Z(b.glow, ue, l ? 1 : .08);
2215
+ let I = b.glow;
2216
+ l || (te += r * (.06 + w * .1), ne = .34 + Math.sin(C * .6) * .12, k.x = Z(k.x, O.x, .02), k.y = Z(k.y, O.y, .02));
2217
+ let pe = l ? 0 : Math.sin(C * .35) * .05 + k.x * .12, me = l ? 0 : -k.y * .08, L = de * (1 + fe * .08);
2218
+ n.clearRect(0, 0, t, t), n.fillStyle = re(_, v, j * 1.95, [
2335
2219
  [0, "rgba(9,11,15,0.5)"],
2336
2220
  [.52, "rgba(9,11,15,0.3)"],
2337
2221
  [.8, "rgba(9,11,15,0.08)"],
2338
2222
  [1, "rgba(9,11,15,0)"]
2339
2223
  ]), n.fillRect(0, 0, t, t), n.save(), n.globalCompositeOperation = "lighter";
2340
- let he = N * (1.5 + I * .5) * L, ge = .06 + I * .24;
2341
- n.fillStyle = te(_, v, he, [
2342
- [0, `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${ge * .5})`],
2343
- [.34, `rgba(${Q(x.rim[0] * 1.4)},${Q(x.rim[1] * 1.4)},${Q(x.rim[2] * 1.4)},${ge * .2})`],
2224
+ let he = j * (1.5 + I * .5) * L, ge = .06 + I * .24;
2225
+ n.fillStyle = re(_, v, he, [
2226
+ [0, `rgba(${Q(b.center[0])},${Q(b.center[1])},${Q(b.center[2])},${ge * .5})`],
2227
+ [.34, `rgba(${Q(b.rim[0] * 1.4)},${Q(b.rim[1] * 1.4)},${Q(b.rim[2] * 1.4)},${ge * .2})`],
2344
2228
  [1, "rgba(160,50,10,0)"]
2345
2229
  ]), n.fillRect(0, 0, t, t), n.restore();
2346
2230
  let _e = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, ve = g * 1.6 % (Math.PI * 2), ye = 1.5 * L, be = Math.max(1, t * .007), xe = Math.max(1, t * .011), Se = (e) => {
2347
- ne(e, ye, be, "rgba(255,224,160,1)", _e * .45), i === "working" && ne(e, ye, xe, "rgba(255,236,190,1)", .75, [ve, ve + 1.1]);
2231
+ ie(e, ye, be, "rgba(255,224,160,1)", _e * .45), i === "working" && ie(e, ye, xe, "rgba(255,236,190,1)", .75, [ve, ve + 1.1]);
2348
2232
  };
2349
2233
  Se(-1), n.save(), n.globalCompositeOperation = "lighter";
2350
- let Ce = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(T, .12), we = .08 + I * .4;
2351
- n.fillStyle = `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${we})`;
2352
- for (let e of b) {
2234
+ let Ce = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(w, .12), we = .08 + I * .4;
2235
+ n.fillStyle = `rgba(${Q(b.center[0])},${Q(b.center[1])},${Q(b.center[2])},${we})`;
2236
+ for (let e of ee) {
2353
2237
  e.y += e.speed * r * (.4 + I) * Ce, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
2354
- let [i, a] = P(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2238
+ let [i, a] = M(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2355
2239
  n.beginPath(), n.arc(i, a, o, 0, Math.PI * 2), n.fill();
2356
2240
  }
2357
2241
  n.restore();
2358
- let Te = Math.cos(E + pe), Ee = Math.sin(E + pe), R = Math.cos(.32 + me), De = Math.sin(.32 + me), { points: Oe, grain: ke, count: Ae } = ua;
2242
+ let Te = Math.cos(te + pe), Ee = Math.sin(te + pe), R = Math.cos(.32 + me), De = Math.sin(.32 + me), { points: Oe, grain: ke, count: Ae } = ta;
2359
2243
  for (let e = 0; e < Oe.length; e += 3) {
2360
2244
  let t = Oe[e], n = Oe[e + 1], r = Oe[e + 2], i = t * Te + r * Ee, a = -t * Ee + r * Te, o = n * R - a * De, s = n * De + a * R;
2361
- F[e] = i, F[e + 1] = o, F[e + 2] = s;
2245
+ N[e] = i, N[e + 1] = o, N[e + 2] = s;
2362
2246
  }
2363
2247
  for (let e = 0; e < Ae; e += 1) {
2364
- let t = e * 9, r = t + 3, i = t + 6, a = F[r] - F[t], o = F[r + 1] - F[t + 1], s = F[r + 2] - F[t + 2], c = F[i] - F[t], l = F[i + 1] - F[t + 1], u = F[i + 2] - F[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2248
+ let t = e * 9, r = t + 3, i = t + 6, a = N[r] - N[t], o = N[r + 1] - N[t + 1], s = N[r + 2] - N[t + 2], c = N[i] - N[t], l = N[i + 1] - N[t + 1], u = N[i + 2] - N[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2365
2249
  if (p <= 0) continue;
2366
- let m = 1 - p / Math.hypot(d, f, p), h = ke[e], g = .9 + .14 * h + .06 * Math.sin(w * .8 + h * 6.28), _ = fa(.08, .82, m), v = fa(.66, 0, m) * I * .62, y = 1 - .18 * fa(.82, 1, m);
2367
- _a(re, (Z(x.center[0], x.rim[0], _) * g + v) * y, (Z(x.center[1], x.rim[1], _) * g + v * .72) * y, (Z(x.center[2], x.rim[2], _) * g + v * .3) * y);
2368
- let b = `rgb(${re[0]},${re[1]},${re[2]})`, [S, C] = P(F[t], F[t + 1], F[t + 2], L), [T, ee] = P(F[r], F[r + 1], F[r + 2], L), [E, D] = P(F[i], F[i + 1], F[i + 2], L);
2369
- n.beginPath(), n.moveTo(S, C), n.lineTo(T, ee), n.lineTo(E, D), n.closePath(), n.fillStyle = b, n.fill(), n.strokeStyle = ya, n.lineWidth = 1, n.stroke();
2250
+ let m = 1 - p / Math.hypot(d, f, p), h = ke[e], g = .9 + .14 * h + .06 * Math.sin(C * .8 + h * 6.28), _ = ra(.08, .82, m), v = ra(.66, 0, m) * I * .62, y = 1 - .18 * ra(.82, 1, m);
2251
+ ca(P, (Z(b.center[0], b.rim[0], _) * g + v) * y, (Z(b.center[1], b.rim[1], _) * g + v * .72) * y, (Z(b.center[2], b.rim[2], _) * g + v * .3) * y);
2252
+ let ee = `rgb(${P[0]},${P[1]},${P[2]})`, [x, S] = M(N[t], N[t + 1], N[t + 2], L), [w, T] = M(N[r], N[r + 1], N[r + 2], L), [te, ne] = M(N[i], N[i + 1], N[i + 2], L);
2253
+ n.beginPath(), n.moveTo(x, S), n.lineTo(w, T), n.lineTo(te, ne), n.closePath(), n.fillStyle = ee, n.fill(), n.strokeStyle = ua, n.lineWidth = 1, n.stroke();
2370
2254
  }
2371
2255
  Se(1), n.save(), n.globalCompositeOperation = "lighter";
2372
- let z = N * .34 * L;
2373
- if (n.fillStyle = te(_ - N * .38 * L, v - N * .44 * L, z, [
2256
+ let je = j * .34 * L;
2257
+ if (n.fillStyle = re(_ - j * .38 * L, v - j * .44 * L, je, [
2374
2258
  [0, `rgba(255,246,228,${.05 + I * .09})`],
2375
2259
  [.5, `rgba(255,240,214,${.015 + I * .03})`],
2376
2260
  [1, "rgba(255,240,214,0)"]
2377
- ]), n.fillRect(0, 0, t, t), i === "success" && M < 2.6) {
2378
- let e = M / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2379
- ne(-1, n, r, "rgba(255,241,192,1)", i), ne(1, n, r, "rgba(255,241,192,1)", i);
2261
+ ]), n.fillRect(0, 0, t, t), i === "success" && A < 2.6) {
2262
+ let e = A / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2263
+ ie(-1, n, r, "rgba(255,241,192,1)", i), ie(1, n, r, "rgba(255,241,192,1)", i);
2380
2264
  }
2381
2265
  if (n.restore(), i === "attention") {
2382
- let e = da(M / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (M - 2.4) / 2.5);
2266
+ let e = na(A / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (A - 2.4) / 2.5);
2383
2267
  if (i > .002) {
2384
2268
  n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = i, n.strokeStyle = "rgba(255,230,160,1)", n.lineWidth = Math.max(1, t * .009);
2385
- let [, e] = P(0, r, 0, 1);
2386
- n.beginPath(), n.ellipse(_, e, N * 1.6, N * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2269
+ let [, e] = M(0, r, 0, 1);
2270
+ n.beginPath(), n.ellipse(_, e, j * 1.6, j * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2387
2271
  }
2388
2272
  }
2389
2273
  if (!c) {
2390
- let e = v + N * 1.5;
2391
- n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = te(_, e, N * 1.5, [[0, `rgba(220,140,60,${.1 + I * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2274
+ let e = v + j * 1.5;
2275
+ n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = re(_, e, j * 1.5, [[0, `rgba(220,140,60,${.1 + I * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2392
2276
  }
2393
- l || (--C, C > 0 && (S = requestAnimationFrame(ie)));
2277
+ l || (--S, S > 0 && (x = requestAnimationFrame(F)));
2394
2278
  }
2395
2279
  return g.current = () => {
2396
- C = va, ee = performance.now(), S ||= requestAnimationFrame(ie);
2397
- }, s || window.addEventListener("mousemove", M, { passive: !0 }), ie(performance.now()), () => {
2398
- g.current = null, S && cancelAnimationFrame(S), window.removeEventListener("mousemove", M);
2280
+ S = la, T = performance.now(), x ||= requestAnimationFrame(F);
2281
+ }, s || window.addEventListener("mousemove", A, { passive: !0 }), F(performance.now()), () => {
2282
+ g.current = null, x && cancelAnimationFrame(x), window.removeEventListener("mousemove", A);
2399
2283
  };
2400
- }, [t, o]), /* @__PURE__ */ U("canvas", {
2284
+ }, [t, o]), /* @__PURE__ */ H("canvas", {
2401
2285
  ref: l,
2402
2286
  "aria-hidden": "true",
2403
2287
  "data-state": e,
@@ -2412,203 +2296,234 @@ function Sa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0
2412
2296
  }
2413
2297
  //#endregion
2414
2298
  //#region src/components/ui/viglet-assistant.tsx
2415
- var Ca = {
2299
+ var ma = {
2300
+ sm: 44,
2301
+ md: 88,
2302
+ lg: 132
2303
+ }, ha = 76;
2304
+ function ga(e) {
2305
+ return typeof e == "number" ? Math.max(24, Math.round(e)) : ma[e];
2306
+ }
2307
+ function _a(e) {
2308
+ let t = Math.round(e * .88 + 8);
2309
+ return {
2310
+ captionRight: t,
2311
+ captionBottom: Math.round(e * .3),
2312
+ captionMaxWidth: `min(23rem, calc(100vw - ${t + 20}px))`,
2313
+ badgeInset: Math.round(e * .2) - 8
2314
+ };
2315
+ }
2316
+ var va = {
2416
2317
  idle: "assistant.idle",
2417
2318
  working: "assistant.working",
2418
2319
  success: "assistant.success",
2419
2320
  error: "assistant.error",
2420
2321
  attention: "assistant.attention"
2421
- }, wa = {
2322
+ }, ya = {
2422
2323
  idle: "text-muted-foreground",
2423
- working: "text-amber-600 dark:text-amber-400",
2324
+ working: "text-amber-700 dark:text-amber-400",
2424
2325
  success: "text-emerald-700 dark:text-emerald-400",
2425
2326
  error: "text-destructive",
2426
- attention: "text-amber-700 dark:text-amber-300"
2427
- }, Ta = 3;
2428
- function Ea(e) {
2327
+ attention: "text-amber-800 dark:text-amber-300"
2328
+ }, ba = 3;
2329
+ function xa(e) {
2429
2330
  return e.role === "report";
2430
2331
  }
2431
- function Da() {
2332
+ function Sa() {
2432
2333
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2433
2334
  }
2434
- function Oa({ text: e, className: t }) {
2435
- let [n, r] = Ie(0);
2436
- return V(() => {
2437
- let t = e.length;
2438
- if (t === 0) return;
2439
- if (Da()) {
2440
- let e = setTimeout(() => r(t), 0);
2335
+ function Ca({ text: e, still: t = !1, className: n, style: r }) {
2336
+ let [i, a] = Ge(0);
2337
+ return B(() => {
2338
+ let n = e.length;
2339
+ if (n === 0) return;
2340
+ if (t || Sa()) {
2341
+ let e = setTimeout(() => a(n), 0);
2441
2342
  return () => clearTimeout(e);
2442
2343
  }
2443
- let n = Math.max(14, Math.min(34, 1400 / t)), i = setInterval(() => {
2444
- r((e) => e >= t ? (clearInterval(i), e) : e + 1);
2445
- }, n);
2344
+ let r = Math.max(14, Math.min(34, 1400 / n)), i = setInterval(() => {
2345
+ a((e) => e >= n ? (clearInterval(i), e) : e + 1);
2346
+ }, r);
2446
2347
  return () => clearInterval(i);
2447
- }, [e]), /* @__PURE__ */ U("span", {
2448
- className: t,
2449
- children: /* @__PURE__ */ W("span", {
2348
+ }, [e, t]), /* @__PURE__ */ H("span", {
2349
+ className: n,
2350
+ style: r,
2351
+ children: /* @__PURE__ */ U("span", {
2450
2352
  "aria-hidden": "true",
2451
- children: [e.slice(0, n), n < e.length && /* @__PURE__ */ U("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2353
+ children: [e.slice(0, i), i < e.length && /* @__PURE__ */ H("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2452
2354
  })
2453
2355
  });
2454
2356
  }
2455
- function ka({ at: e, locale: t }) {
2357
+ function wa({ at: e, locale: t }) {
2456
2358
  let n = new Date(e);
2457
2359
  if (Number.isNaN(n.getTime())) return null;
2458
2360
  let r = n.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), i = new Intl.DateTimeFormat(t, r ? { timeStyle: "short" } : {
2459
2361
  dateStyle: "short",
2460
2362
  timeStyle: "short"
2461
2363
  }).format(n);
2462
- return /* @__PURE__ */ U("time", {
2364
+ return /* @__PURE__ */ H("time", {
2463
2365
  dateTime: n.toISOString(),
2464
2366
  className: "text-muted-foreground",
2465
2367
  children: i
2466
2368
  });
2467
2369
  }
2468
- function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, activity: f = 0, inline: p = !1, className: m }) {
2469
- let { t: h, i18n: g } = G(), _ = pe(), [v, y] = Ie(o), [b, x] = Ie(""), S = H(null), C = n ?? [], w = C.filter(Ea), T = w.filter((e) => !e.read), ee = T[T.length - 1], E = a ?? v, D = typeof i == "function", O = e ?? ee?.tone ?? "idle", k = t === void 0 ? ee?.text ?? null : t, A = typeof l == "number" ? l : T.length, j = l === !0 || A > 0, [M, N] = Ie({
2470
- source: k,
2471
- text: E ? "" : k ?? ""
2370
+ function Ta({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, activity: f = 0, inline: p = !1, paused: m = !1, size: h = "sm", className: g }) {
2371
+ let _ = ga(h), v = _a(_), { t: y, i18n: ee } = W(), b = ye(), [x, S] = Ge(o), [C, w] = Ge(""), T = V(null), te = n ?? [], ne = te.filter(xa), E = ne.filter((e) => !e.read), D = E[E.length - 1], O = a ?? x, k = typeof i == "function", A = e ?? D?.tone ?? "idle", j = t === void 0 ? D?.text ?? null : t, M = typeof l == "number" ? l : E.length, re = l === !0 || M > 0, [ie, N] = Ge({
2372
+ source: j,
2373
+ text: O ? "" : j ?? ""
2472
2374
  });
2473
- M.source !== k && N({
2474
- source: k,
2475
- text: E ? "" : k ?? ""
2375
+ ie.source !== j && N({
2376
+ source: j,
2377
+ text: O ? "" : j ?? ""
2476
2378
  });
2477
2379
  let P = (e) => {
2478
- if (e !== E) for (let e of T) u?.(e.id);
2479
- a === void 0 && y(e), c?.(e);
2380
+ if (e !== O) for (let e of E) u?.(e.id);
2381
+ a === void 0 && S(e), c?.(e);
2480
2382
  };
2481
- V(() => {
2482
- let e = S.current;
2383
+ B(() => {
2384
+ let e = T.current;
2483
2385
  e && (e.scrollTop = e.scrollHeight);
2484
2386
  }, [n, r]);
2485
- let te = () => {
2486
- let e = b.trim();
2487
- !e || r || !i || (i(e), x(""));
2488
- }, ne = E ? h("assistant.collapse") : [h("assistant.open"), A > 0 ? h("assistant.unreadCount", { count: A }) : null].filter(Boolean).join(", ");
2489
- return /* @__PURE__ */ W("div", {
2387
+ let F = () => {
2388
+ let e = C.trim();
2389
+ !e || r || !i || (i(e), w(""));
2390
+ }, ae = O ? y("assistant.collapse") : [y("assistant.open"), M > 0 ? y("assistant.unreadCount", { count: M }) : null].filter(Boolean).join(", ");
2391
+ return /* @__PURE__ */ U("div", {
2490
2392
  className: [
2491
- p || _ ? "relative" : "fixed bottom-5 right-5 z-50",
2492
- _ ? "pointer-events-auto" : "",
2393
+ p || b ? "relative" : "fixed bottom-5 right-5 z-50",
2394
+ b ? "pointer-events-auto" : "",
2493
2395
  "flex flex-col",
2494
- E ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : "w-[8.25rem] items-end",
2495
- m ?? ""
2396
+ O ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : "w-[var(--vg-assistant-orb)] items-end",
2397
+ g ?? ""
2496
2398
  ].join(" "),
2399
+ style: { "--vg-assistant-orb": `${_}px` },
2497
2400
  onKeyDown: (e) => {
2498
- e.key === "Escape" && E && P(!1);
2401
+ e.key === "Escape" && O && P(!1);
2499
2402
  },
2500
2403
  children: [
2501
- /* @__PURE__ */ U("span", {
2404
+ /* @__PURE__ */ H("span", {
2502
2405
  role: "status",
2503
2406
  "aria-live": "polite",
2504
2407
  className: "sr-only",
2505
- children: M.text
2408
+ children: ie.text
2506
2409
  }),
2507
- !E && k && /* @__PURE__ */ U(Oa, {
2508
- text: k,
2509
- className: "pointer-events-none absolute bottom-11 right-[7.75rem] w-max max-w-[min(23rem,calc(100vw-9rem))] text-right text-sm font-semibold leading-snug text-foreground drop-shadow-sm"
2510
- }, k),
2511
- /* @__PURE__ */ W("div", {
2410
+ !O && j && /* @__PURE__ */ H(Ca, {
2411
+ text: j,
2412
+ still: m,
2413
+ style: {
2414
+ right: v.captionRight,
2415
+ bottom: v.captionBottom,
2416
+ maxWidth: v.captionMaxWidth
2417
+ },
2418
+ className: "pointer-events-none absolute w-max text-right text-sm font-semibold leading-snug text-foreground drop-shadow-sm"
2419
+ }, j),
2420
+ /* @__PURE__ */ U("div", {
2512
2421
  className: "flex flex-none items-center gap-3",
2513
2422
  children: [
2514
- /* @__PURE__ */ W("button", {
2423
+ /* @__PURE__ */ U("button", {
2515
2424
  type: "button",
2516
- "aria-label": ne,
2517
- "aria-expanded": E,
2518
- onClick: () => P(!E),
2425
+ "aria-label": ae,
2426
+ "aria-expanded": O,
2427
+ onClick: () => P(!O),
2519
2428
  className: "relative flex-none rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
2520
- children: [/* @__PURE__ */ U(Sa, {
2521
- state: O,
2522
- compact: !E,
2523
- unread: j,
2429
+ children: [/* @__PURE__ */ H(pa, {
2430
+ state: A,
2431
+ compact: !O,
2432
+ unread: re,
2524
2433
  activity: f,
2525
- size: E ? 76 : 132
2526
- }), !E && A > 0 && /* @__PURE__ */ U("span", {
2434
+ paused: m,
2435
+ size: O ? ha : _
2436
+ }), !O && M > 0 && /* @__PURE__ */ H("span", {
2527
2437
  "aria-hidden": "true",
2528
- className: "absolute right-5 top-5 grid h-5 min-w-5 place-items-center rounded-full bg-primary px-1 text-[0.6875rem] font-semibold leading-none text-primary-foreground",
2529
- children: A
2438
+ style: {
2439
+ right: v.badgeInset,
2440
+ top: v.badgeInset
2441
+ },
2442
+ className: "absolute grid h-5 min-w-5 place-items-center rounded-full bg-primary px-1 text-[0.6875rem] font-semibold leading-none text-primary-foreground",
2443
+ children: M
2530
2444
  })]
2531
2445
  }),
2532
- E && /* @__PURE__ */ W("div", {
2446
+ O && /* @__PURE__ */ U("div", {
2533
2447
  className: "flex min-w-0 flex-1 flex-col gap-0.5",
2534
2448
  children: [
2535
- /* @__PURE__ */ U("span", {
2449
+ /* @__PURE__ */ H("span", {
2536
2450
  className: "text-xs text-muted-foreground",
2537
- children: h("assistant.state")
2451
+ children: y("assistant.state")
2538
2452
  }),
2539
- /* @__PURE__ */ U("span", {
2540
- className: `text-sm font-semibold ${wa[O]}`,
2541
- children: h(Ca[O])
2453
+ /* @__PURE__ */ H("span", {
2454
+ className: `text-sm font-semibold ${ya[A]}`,
2455
+ children: y(va[A])
2542
2456
  }),
2543
- k && /* @__PURE__ */ U(Oa, {
2544
- text: k,
2457
+ j && /* @__PURE__ */ H(Ca, {
2458
+ text: j,
2459
+ still: m,
2545
2460
  className: "text-xs leading-snug text-muted-foreground"
2546
- }, k)
2461
+ }, j)
2547
2462
  ]
2548
2463
  }),
2549
- E && /* @__PURE__ */ U(R, {
2464
+ O && /* @__PURE__ */ H(R, {
2550
2465
  variant: "ghost",
2551
2466
  size: "sm",
2552
2467
  className: "flex-none self-start",
2553
2468
  onClick: () => P(!1),
2554
- children: h("assistant.collapseAction")
2469
+ children: y("assistant.collapseAction")
2555
2470
  })
2556
2471
  ]
2557
2472
  }),
2558
- E && (D || w.length > 0) && /* @__PURE__ */ W("div", {
2559
- ref: S,
2473
+ O && (k || ne.length > 0) && /* @__PURE__ */ U("div", {
2474
+ ref: T,
2560
2475
  role: "log",
2561
- "aria-label": h("assistant.transcript"),
2476
+ "aria-label": y("assistant.transcript"),
2562
2477
  "aria-busy": r,
2563
2478
  className: "mt-3 flex max-h-96 min-h-32 flex-1 flex-col gap-2.5 overflow-y-auto pr-1",
2564
2479
  children: [
2565
- C.length === 0 && !r && /* @__PURE__ */ U("p", {
2480
+ te.length === 0 && !r && /* @__PURE__ */ H("p", {
2566
2481
  className: "m-auto max-w-52 text-center text-xs leading-relaxed text-muted-foreground",
2567
- children: h("assistant.empty")
2482
+ children: y("assistant.empty")
2568
2483
  }),
2569
- C.map((e, t) => Ea(e) ? /* @__PURE__ */ W("div", {
2484
+ te.map((e, t) => xa(e) ? /* @__PURE__ */ U("div", {
2570
2485
  "data-kind": "report",
2571
2486
  className: `w-full rounded-lg border px-3 py-2 text-sm ${e.read ? "border-border/60" : "border-border bg-muted/50"}`,
2572
2487
  children: [
2573
- /* @__PURE__ */ W("div", {
2488
+ /* @__PURE__ */ U("div", {
2574
2489
  className: "flex items-center gap-2 text-xs",
2575
2490
  children: [
2576
- /* @__PURE__ */ U("span", {
2491
+ /* @__PURE__ */ H("span", {
2577
2492
  "aria-hidden": "true",
2578
- className: `size-2 flex-none rounded-full bg-current ${wa[e.tone]}`
2493
+ className: `size-2 flex-none rounded-full bg-current ${ya[e.tone]}`
2579
2494
  }),
2580
- /* @__PURE__ */ U("span", {
2495
+ /* @__PURE__ */ H("span", {
2581
2496
  className: "font-semibold",
2582
- children: h(Ca[e.tone])
2497
+ children: y(va[e.tone])
2583
2498
  }),
2584
- /* @__PURE__ */ U(ka, {
2499
+ /* @__PURE__ */ H(wa, {
2585
2500
  at: e.at,
2586
- locale: g?.resolvedLanguage
2501
+ locale: ee?.resolvedLanguage
2587
2502
  }),
2588
- !e.read && /* @__PURE__ */ U("span", {
2503
+ !e.read && /* @__PURE__ */ H("span", {
2589
2504
  className: "rounded-full border border-border px-1.5 leading-4",
2590
- children: h("assistant.new")
2505
+ children: y("assistant.new")
2591
2506
  }),
2592
- d && /* @__PURE__ */ U(R, {
2507
+ d && /* @__PURE__ */ H(R, {
2593
2508
  variant: "ghost",
2594
2509
  size: "icon",
2595
2510
  className: "ml-auto size-6",
2596
- "aria-label": h("assistant.dismiss"),
2511
+ "aria-label": y("assistant.dismiss"),
2597
2512
  onClick: () => d(e.id),
2598
- children: /* @__PURE__ */ U(nt, {
2513
+ children: /* @__PURE__ */ H(dt, {
2599
2514
  "aria-hidden": "true",
2600
2515
  size: 14
2601
2516
  })
2602
2517
  })
2603
2518
  ]
2604
2519
  }),
2605
- /* @__PURE__ */ U("p", {
2520
+ /* @__PURE__ */ H("p", {
2606
2521
  className: "m-0 mt-1 whitespace-pre-wrap leading-snug",
2607
2522
  children: e.text
2608
2523
  }),
2609
- e.actions && e.actions.length > 0 && /* @__PURE__ */ U("div", {
2524
+ e.actions && e.actions.length > 0 && /* @__PURE__ */ H("div", {
2610
2525
  className: "mt-2 flex flex-wrap gap-2",
2611
- children: e.actions.slice(0, Ta).map((e) => /* @__PURE__ */ U(R, {
2526
+ children: e.actions.slice(0, ba).map((e) => /* @__PURE__ */ H(R, {
2612
2527
  variant: "outline",
2613
2528
  size: "sm",
2614
2529
  onClick: e.onSelect,
@@ -2616,13 +2531,13 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2616
2531
  }, e.label))
2617
2532
  })
2618
2533
  ]
2619
- }, e.id) : /* @__PURE__ */ W("div", {
2534
+ }, e.id) : /* @__PURE__ */ U("div", {
2620
2535
  "data-kind": e.role,
2621
2536
  className: e.role === "user" ? "max-w-[92%] self-end rounded-xl rounded-br-sm bg-accent px-3 py-2 text-sm text-accent-foreground" : "max-w-[92%] self-start rounded-xl rounded-bl-sm border border-border px-3 py-2 text-sm",
2622
- children: [/* @__PURE__ */ U("p", {
2537
+ children: [/* @__PURE__ */ H("p", {
2623
2538
  className: "m-0 whitespace-pre-wrap leading-snug",
2624
2539
  children: e.text
2625
- }), e.action && /* @__PURE__ */ U(R, {
2540
+ }), e.action && /* @__PURE__ */ H(R, {
2626
2541
  variant: "link",
2627
2542
  size: "sm",
2628
2543
  className: "mt-1 h-auto whitespace-normal p-0 text-left",
@@ -2630,28 +2545,28 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2630
2545
  children: e.action.label
2631
2546
  })]
2632
2547
  }, e.id ?? t)),
2633
- r && /* @__PURE__ */ U("p", {
2548
+ r && /* @__PURE__ */ H("p", {
2634
2549
  className: "m-0 self-start px-3 py-2 text-sm text-muted-foreground",
2635
- children: h("assistant.thinking")
2550
+ children: y("assistant.thinking")
2636
2551
  })
2637
2552
  ]
2638
2553
  }),
2639
- E && D && /* @__PURE__ */ W("div", {
2554
+ O && k && /* @__PURE__ */ U("div", {
2640
2555
  className: "mt-3 flex flex-none gap-2",
2641
- children: [/* @__PURE__ */ U(s, {
2642
- value: b,
2556
+ children: [/* @__PURE__ */ H(s, {
2557
+ value: C,
2643
2558
  disabled: r,
2644
- placeholder: h("assistant.placeholder"),
2645
- "aria-label": h("assistant.placeholder"),
2646
- onChange: (e) => x(e.target.value),
2559
+ placeholder: y("assistant.placeholder"),
2560
+ "aria-label": y("assistant.placeholder"),
2561
+ onChange: (e) => w(e.target.value),
2647
2562
  onKeyDown: (e) => {
2648
- e.key === "Enter" && (e.preventDefault(), te());
2563
+ e.key === "Enter" && (e.preventDefault(), F());
2649
2564
  }
2650
- }), /* @__PURE__ */ U(R, {
2565
+ }), /* @__PURE__ */ H(R, {
2651
2566
  variant: "outline",
2652
- disabled: r || b.trim().length === 0,
2653
- onClick: te,
2654
- children: h("assistant.send")
2567
+ disabled: r || C.trim().length === 0,
2568
+ onClick: F,
2569
+ children: y("assistant.send")
2655
2570
  })]
2656
2571
  })
2657
2572
  ]
@@ -2659,15 +2574,15 @@ function Aa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2659
2574
  }
2660
2575
  //#endregion
2661
2576
  //#region src/components/ui/user-menu.tsx
2662
- function ja({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2663
- let { t: s } = G(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2664
- return /* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(M, {
2577
+ function Ea({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2578
+ let { t: s } = W(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2579
+ return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(O, {
2665
2580
  asChild: !0,
2666
- children: /* @__PURE__ */ U("button", {
2581
+ children: /* @__PURE__ */ H("button", {
2667
2582
  type: "button",
2668
2583
  title: c || e.username,
2669
2584
  className: r("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
2670
- children: /* @__PURE__ */ U(se, {
2585
+ children: /* @__PURE__ */ H(pe, {
2671
2586
  givenName: e.firstName,
2672
2587
  familyName: e.lastName,
2673
2588
  name: c || e.username,
@@ -2676,52 +2591,52 @@ function ja({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a,
2676
2591
  className: "hover:ring-2 hover:ring-border transition-all"
2677
2592
  })
2678
2593
  })
2679
- }), /* @__PURE__ */ W(ie, {
2594
+ }), /* @__PURE__ */ U(N, {
2680
2595
  className: "min-w-56 rounded-lg",
2681
2596
  align: o,
2682
2597
  sideOffset: 8,
2683
2598
  children: [
2684
- /* @__PURE__ */ U(te, {
2599
+ /* @__PURE__ */ H(A, {
2685
2600
  className: "p-0 font-normal",
2686
- children: /* @__PURE__ */ W("div", {
2601
+ children: /* @__PURE__ */ U("div", {
2687
2602
  className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
2688
- children: [/* @__PURE__ */ U(se, {
2603
+ children: [/* @__PURE__ */ H(pe, {
2689
2604
  givenName: e.firstName,
2690
2605
  familyName: e.lastName,
2691
2606
  name: c || e.username,
2692
2607
  src: e.avatarUrl || void 0,
2693
2608
  alt: e.username
2694
- }), /* @__PURE__ */ W("div", {
2609
+ }), /* @__PURE__ */ U("div", {
2695
2610
  className: "grid flex-1 text-left text-sm leading-tight",
2696
- children: [c && /* @__PURE__ */ U("span", {
2611
+ children: [c && /* @__PURE__ */ H("span", {
2697
2612
  className: "truncate font-medium",
2698
2613
  children: c
2699
- }), e.email && /* @__PURE__ */ U("span", {
2614
+ }), e.email && /* @__PURE__ */ H("span", {
2700
2615
  className: "text-muted-foreground truncate text-xs",
2701
2616
  children: e.email
2702
2617
  })]
2703
2618
  })]
2704
2619
  })
2705
2620
  }),
2706
- /* @__PURE__ */ U(N, {}),
2707
- /* @__PURE__ */ W(O, { children: [t && /* @__PURE__ */ W(D, {
2621
+ /* @__PURE__ */ H(T, {}),
2622
+ /* @__PURE__ */ U(F, { children: [t && /* @__PURE__ */ U(D, {
2708
2623
  onSelect: t,
2709
2624
  className: "cursor-pointer",
2710
- children: [/* @__PURE__ */ U(tt, {}), s("nav.account")]
2625
+ children: [/* @__PURE__ */ H(ut, {}), s("nav.account")]
2711
2626
  }), i] }),
2712
- (t || i) && /* @__PURE__ */ U(N, {}),
2713
- n && /* @__PURE__ */ W(D, {
2627
+ (t || i) && /* @__PURE__ */ H(T, {}),
2628
+ n && /* @__PURE__ */ U(D, {
2714
2629
  onSelect: n,
2715
2630
  className: "cursor-pointer text-red-500 focus:text-red-500 focus:bg-red-50 dark:focus:bg-red-950",
2716
- children: [/* @__PURE__ */ U(Qe, {}), s("nav.logOut")]
2631
+ children: [/* @__PURE__ */ H(st, {}), s("nav.logOut")]
2717
2632
  })
2718
2633
  ]
2719
2634
  })] });
2720
2635
  }
2721
2636
  //#endregion
2722
2637
  //#region src/components/login/login.tsx
2723
- var Ma = Me({});
2724
- function Na(e) {
2638
+ var Da = Ve({});
2639
+ function Oa(e) {
2725
2640
  if (!e) return null;
2726
2641
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2727
2642
  if (t) {
@@ -2735,18 +2650,18 @@ function Na(e) {
2735
2650
  }
2736
2651
  return null;
2737
2652
  }
2738
- function Pa({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2653
+ function ka({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2739
2654
  let s = {};
2740
2655
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2741
- let c = Na(e);
2656
+ let c = Oa(e);
2742
2657
  c && (s["--ff-color-rgb"] = c);
2743
- let l = Na(t) ?? c;
2744
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ U(Ma.Provider, {
2658
+ let l = Oa(t) ?? c;
2659
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Da.Provider, {
2745
2660
  value: {
2746
2661
  color: e,
2747
2662
  colorDark: t
2748
2663
  },
2749
- children: /* @__PURE__ */ U("div", {
2664
+ children: /* @__PURE__ */ H("div", {
2750
2665
  className: r("vig-login relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-900", i),
2751
2666
  style: {
2752
2667
  ...a ?? {},
@@ -2757,108 +2672,108 @@ function Pa({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2757
2672
  })
2758
2673
  });
2759
2674
  }
2760
- function Fa(e) {
2761
- let { color: t, colorDark: n } = Pe(Ma);
2762
- return /* @__PURE__ */ U(De, {
2675
+ function Aa(e) {
2676
+ let { color: t, colorDark: n } = Ue(Da);
2677
+ return /* @__PURE__ */ H(Fe, {
2763
2678
  color: t,
2764
2679
  colorDark: n,
2765
2680
  ...e
2766
2681
  });
2767
2682
  }
2768
- function Ia({ children: e, className: t, ...n }) {
2769
- return /* @__PURE__ */ U("div", {
2683
+ function ja({ children: e, className: t, ...n }) {
2684
+ return /* @__PURE__ */ H("div", {
2770
2685
  className: r("absolute top-4 right-4 z-30 flex items-center gap-2", t),
2771
2686
  ...n,
2772
2687
  children: e
2773
2688
  });
2774
2689
  }
2775
- function La({ children: e, className: t, ...n }) {
2776
- return /* @__PURE__ */ U("div", {
2690
+ function Ma({ children: e, className: t, ...n }) {
2691
+ return /* @__PURE__ */ H("div", {
2777
2692
  className: r("relative z-20 flex flex-col items-center w-full max-w-md px-6 py-4", t),
2778
2693
  ...n,
2779
2694
  children: e
2780
2695
  });
2781
2696
  }
2782
- function Ra({ children: e, pulsePaused: t, className: n, ...i }) {
2783
- return /* @__PURE__ */ U("div", {
2697
+ function Na({ children: e, pulsePaused: t, className: n, ...i }) {
2698
+ return /* @__PURE__ */ H("div", {
2784
2699
  className: r("vig-login__fade-in mb-3", n),
2785
2700
  ...i,
2786
- children: /* @__PURE__ */ U(Yn, {
2701
+ children: /* @__PURE__ */ H(Zn, {
2787
2702
  paused: t,
2788
- children: /* @__PURE__ */ U("div", {
2703
+ children: /* @__PURE__ */ H("div", {
2789
2704
  className: "flex h-16 w-16 items-center justify-center rounded-2xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-lg ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2790
2705
  children: e
2791
2706
  })
2792
2707
  })
2793
2708
  });
2794
2709
  }
2795
- function za({ children: e, className: t, ...n }) {
2796
- return /* @__PURE__ */ U("div", {
2710
+ function Pa({ children: e, className: t, ...n }) {
2711
+ return /* @__PURE__ */ H("div", {
2797
2712
  className: "vig-login__fade-in-d1 text-center mb-1",
2798
- children: /* @__PURE__ */ U("h1", {
2713
+ children: /* @__PURE__ */ H("h1", {
2799
2714
  className: r("text-2xl font-bold tracking-tight bg-clip-text text-transparent vig-login__title-gradient", t),
2800
2715
  ...n,
2801
2716
  children: e
2802
2717
  })
2803
2718
  });
2804
2719
  }
2805
- function Ba({ children: e, className: t, ...n }) {
2806
- return /* @__PURE__ */ U("div", {
2720
+ function Fa({ children: e, className: t, ...n }) {
2721
+ return /* @__PURE__ */ H("div", {
2807
2722
  className: "vig-login__fade-in-d1 text-center mb-4",
2808
- children: /* @__PURE__ */ U("p", {
2723
+ children: /* @__PURE__ */ H("p", {
2809
2724
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-xs leading-relaxed", t),
2810
2725
  ...n,
2811
2726
  children: e
2812
2727
  })
2813
2728
  });
2814
2729
  }
2815
- function Va({ children: e, className: t, ...n }) {
2816
- return /* @__PURE__ */ U("div", {
2730
+ function Ia({ children: e, className: t, ...n }) {
2731
+ return /* @__PURE__ */ H("div", {
2817
2732
  className: r("vig-login__fade-in-d2 flex flex-wrap justify-center gap-2 mb-5", t),
2818
2733
  ...n,
2819
2734
  children: e
2820
2735
  });
2821
2736
  }
2822
- function Ha({ icon: e, children: t, className: n, ...i }) {
2823
- return /* @__PURE__ */ W("div", {
2737
+ function La({ icon: e, children: t, className: n, ...i }) {
2738
+ return /* @__PURE__ */ U("div", {
2824
2739
  className: r("vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1", n),
2825
2740
  ...i,
2826
- children: [e, /* @__PURE__ */ U("span", {
2741
+ children: [e, /* @__PURE__ */ H("span", {
2827
2742
  className: "text-xs font-medium text-slate-600 dark:text-slate-300",
2828
2743
  children: t
2829
2744
  })]
2830
2745
  });
2831
2746
  }
2832
- function Ua({ children: e, className: t, ...n }) {
2833
- return /* @__PURE__ */ U("div", {
2747
+ function Ra({ children: e, className: t, ...n }) {
2748
+ return /* @__PURE__ */ H("div", {
2834
2749
  className: r("vig-login__fade-in-d3 w-full", t),
2835
2750
  ...n,
2836
- children: /* @__PURE__ */ U(Jn, { children: e })
2751
+ children: /* @__PURE__ */ H(Xn, { children: e })
2837
2752
  });
2838
2753
  }
2839
- function Wa({ children: e, className: t, ...n }) {
2840
- return /* @__PURE__ */ U("div", {
2754
+ function za({ children: e, className: t, ...n }) {
2755
+ return /* @__PURE__ */ H("div", {
2841
2756
  className: "vig-login__fade-in-d3 mt-4 text-center",
2842
- children: /* @__PURE__ */ U("p", {
2757
+ children: /* @__PURE__ */ H("p", {
2843
2758
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2844
2759
  ...n,
2845
2760
  children: e
2846
2761
  })
2847
2762
  });
2848
2763
  }
2849
- var Ga = Object.assign(Pa, {
2850
- Background: Fa,
2851
- Settings: Ia,
2852
- Content: La,
2853
- Logo: Ra,
2854
- Title: za,
2855
- Tagline: Ba,
2856
- Features: Va,
2857
- FeaturePill: Ha,
2858
- Card: Ua,
2859
- Footer: Wa
2860
- }), Ka = Me({});
2861
- function qa(e) {
2764
+ var Ba = Object.assign(ka, {
2765
+ Background: Aa,
2766
+ Settings: ja,
2767
+ Content: Ma,
2768
+ Logo: Na,
2769
+ Title: Pa,
2770
+ Tagline: Fa,
2771
+ Features: Ia,
2772
+ FeaturePill: La,
2773
+ Card: Ra,
2774
+ Footer: za
2775
+ }), Va = Ve({});
2776
+ function Ha(e) {
2862
2777
  if (!e) return null;
2863
2778
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2864
2779
  if (t) {
@@ -2872,18 +2787,18 @@ function qa(e) {
2872
2787
  }
2873
2788
  return null;
2874
2789
  }
2875
- function Ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2790
+ function Ua({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2876
2791
  let s = {};
2877
2792
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2878
- let c = qa(e);
2793
+ let c = Ha(e);
2879
2794
  c && (s["--ff-color-rgb"] = c);
2880
- let l = qa(t) ?? c;
2881
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ U(Ka.Provider, {
2795
+ let l = Ha(t) ?? c;
2796
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Va.Provider, {
2882
2797
  value: {
2883
2798
  color: e,
2884
2799
  colorDark: t
2885
2800
  },
2886
- children: /* @__PURE__ */ U("div", {
2801
+ children: /* @__PURE__ */ H("div", {
2887
2802
  className: r("vig-sf relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950", i),
2888
2803
  style: {
2889
2804
  ...a ?? {},
@@ -2894,24 +2809,24 @@ function Ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2894
2809
  })
2895
2810
  });
2896
2811
  }
2897
- function Ya(e) {
2898
- let { color: t, colorDark: n } = Pe(Ka);
2899
- return /* @__PURE__ */ U(De, {
2812
+ function Wa(e) {
2813
+ let { color: t, colorDark: n } = Ue(Va);
2814
+ return /* @__PURE__ */ H(Fe, {
2900
2815
  color: t,
2901
2816
  colorDark: n,
2902
2817
  ...e
2903
2818
  });
2904
2819
  }
2905
- function Xa({ children: e, className: t, ...n }) {
2906
- return /* @__PURE__ */ U("div", {
2820
+ function Ga({ children: e, className: t, ...n }) {
2821
+ return /* @__PURE__ */ H("div", {
2907
2822
  className: r("relative z-20 flex flex-col items-center w-full max-w-lg px-6 py-6", t),
2908
2823
  ...n,
2909
2824
  children: e
2910
2825
  });
2911
2826
  }
2912
- function Za({ current: e, total: t, className: n, ...i }) {
2913
- let { t: a } = G();
2914
- return /* @__PURE__ */ U("div", {
2827
+ function Ka({ current: e, total: t, className: n, ...i }) {
2828
+ let { t: a } = W();
2829
+ return /* @__PURE__ */ H("div", {
2915
2830
  className: r("vig-sf__fade-in flex items-center gap-2 mb-4", n),
2916
2831
  role: "group",
2917
2832
  "aria-label": a("common.stepOf", {
@@ -2920,20 +2835,20 @@ function Za({ current: e, total: t, className: n, ...i }) {
2920
2835
  defaultValue: "Step {{index}} of {{count}}"
2921
2836
  }),
2922
2837
  ...i,
2923
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ U("span", {
2838
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ H("span", {
2924
2839
  className: n + 1 <= e ? "vig-sf__step vig-sf__step--active" : "vig-sf__step",
2925
2840
  "aria-current": n + 1 === e ? "step" : void 0
2926
2841
  }, `step-${n + 1}`))
2927
2842
  });
2928
2843
  }
2929
- function Qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2930
- return /* @__PURE__ */ U("div", {
2844
+ function qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2845
+ return /* @__PURE__ */ H("div", {
2931
2846
  className: r("vig-sf__fade-in mb-4", i),
2932
2847
  style: a,
2933
2848
  ...o,
2934
- children: /* @__PURE__ */ U(Yn, {
2849
+ children: /* @__PURE__ */ H(Zn, {
2935
2850
  paused: t,
2936
- children: /* @__PURE__ */ U("div", {
2851
+ children: /* @__PURE__ */ H("div", {
2937
2852
  className: "flex items-center justify-center rounded-3xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-xl ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2938
2853
  style: {
2939
2854
  width: n,
@@ -2944,90 +2859,91 @@ function Qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a,
2944
2859
  })
2945
2860
  });
2946
2861
  }
2947
- function $a({ children: e, className: t, ...n }) {
2948
- return /* @__PURE__ */ U("div", {
2862
+ function Ja({ children: e, className: t, ...n }) {
2863
+ return /* @__PURE__ */ H("div", {
2949
2864
  className: "vig-sf__fade-in-d1 text-center mb-2",
2950
- children: /* @__PURE__ */ U("h1", {
2865
+ children: /* @__PURE__ */ H("h1", {
2951
2866
  className: r("text-3xl font-bold tracking-tight bg-clip-text text-transparent vig-sf__title-gradient", t),
2952
2867
  ...n,
2953
2868
  children: e
2954
2869
  })
2955
2870
  });
2956
2871
  }
2957
- function eo({ children: e, className: t, ...n }) {
2958
- return /* @__PURE__ */ U("div", {
2872
+ function Ya({ children: e, className: t, ...n }) {
2873
+ return /* @__PURE__ */ H("div", {
2959
2874
  className: "vig-sf__fade-in-d1 text-center mb-5",
2960
- children: /* @__PURE__ */ U("p", {
2875
+ children: /* @__PURE__ */ H("p", {
2961
2876
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-md leading-relaxed", t),
2962
2877
  ...n,
2963
2878
  children: e
2964
2879
  })
2965
2880
  });
2966
2881
  }
2967
- function to({ children: e, className: t, ...n }) {
2968
- return /* @__PURE__ */ U("div", {
2882
+ function Xa({ children: e, className: t, ...n }) {
2883
+ return /* @__PURE__ */ H("div", {
2969
2884
  className: r("vig-sf__fade-in-d2 w-full", t),
2970
2885
  ...n,
2971
- children: /* @__PURE__ */ U(Jn, { children: e })
2886
+ children: /* @__PURE__ */ H(Xn, { children: e })
2972
2887
  });
2973
2888
  }
2974
- function no({ children: e, className: t, ...n }) {
2975
- return /* @__PURE__ */ U("div", {
2889
+ function Za({ children: e, className: t, ...n }) {
2890
+ return /* @__PURE__ */ H("div", {
2976
2891
  className: r("vig-sf__fade-in-d3 w-full mt-4 flex items-center justify-between gap-3", t),
2977
2892
  ...n,
2978
2893
  children: e
2979
2894
  });
2980
2895
  }
2981
- function ro({ children: e, className: t, ...n }) {
2982
- return /* @__PURE__ */ U("div", {
2896
+ function Qa({ children: e, className: t, ...n }) {
2897
+ return /* @__PURE__ */ H("div", {
2983
2898
  className: "vig-sf__fade-in-d3 mt-6 text-center",
2984
- children: /* @__PURE__ */ U("p", {
2899
+ children: /* @__PURE__ */ H("p", {
2985
2900
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2986
2901
  ...n,
2987
2902
  children: e
2988
2903
  })
2989
2904
  });
2990
2905
  }
2991
- function io({ icon: e, children: t, className: n, ...i }) {
2992
- return /* @__PURE__ */ W("div", {
2906
+ function $a({ icon: e, children: t, className: n, ...i }) {
2907
+ return /* @__PURE__ */ U("div", {
2993
2908
  className: r("vig-sf__hint flex items-start gap-2 rounded-lg px-3 py-2 text-xs text-slate-600 dark:text-slate-300", n),
2994
2909
  ...i,
2995
- children: [e, /* @__PURE__ */ U("span", { children: t })]
2996
- });
2997
- }
2998
- var ao = Object.assign(Ja, {
2999
- Background: Ya,
3000
- Content: Xa,
3001
- Steps: Za,
3002
- Logo: Qa,
3003
- Title: $a,
3004
- Description: eo,
3005
- Card: to,
3006
- Actions: no,
3007
- Footer: ro,
3008
- Hint: io
2910
+ children: [e, /* @__PURE__ */ H("span", { children: t })]
2911
+ });
2912
+ }
2913
+ var eo = Object.assign(Ua, {
2914
+ Background: Wa,
2915
+ Content: Ga,
2916
+ Steps: Ka,
2917
+ Logo: qa,
2918
+ Title: Ja,
2919
+ Description: Ya,
2920
+ Card: Xa,
2921
+ Actions: Za,
2922
+ Footer: Qa,
2923
+ Hint: $a
3009
2924
  });
3010
2925
  //#endregion
3011
2926
  //#region src/components/app-footer.tsx
3012
- function oo({ logo: e, productName: t, version: n, links: r = [] }) {
3013
- return /* @__PURE__ */ W("footer", {
2927
+ function to({ logo: e, productName: t, version: n, links: r = [] }) {
2928
+ return /* @__PURE__ */ U("footer", {
3014
2929
  className: "mt-auto",
3015
- children: [/* @__PURE__ */ U("div", { className: "mx-6 border-t" }), /* @__PURE__ */ W("div", {
2930
+ children: [/* @__PURE__ */ H("div", { className: "mx-6 border-t" }), /* @__PURE__ */ U("div", {
3016
2931
  className: "px-6 py-3 flex items-center justify-center gap-2 flex-wrap",
3017
2932
  children: [
3018
2933
  e,
3019
- /* @__PURE__ */ W("span", {
3020
- className: "text-xs text-muted-foreground/70",
2934
+ /* @__PURE__ */ U("span", {
2935
+ className: "text-xs text-muted-foreground",
3021
2936
  children: [t, n ? ` ${n}` : ""]
3022
2937
  }),
3023
- r.map((e) => /* @__PURE__ */ W(je.Fragment, { children: [/* @__PURE__ */ U("span", {
2938
+ r.map((e) => /* @__PURE__ */ U(Be.Fragment, { children: [/* @__PURE__ */ H("span", {
2939
+ "aria-hidden": "true",
3024
2940
  className: "text-xs text-muted-foreground/40",
3025
2941
  children: "·"
3026
- }), /* @__PURE__ */ U("a", {
2942
+ }), /* @__PURE__ */ H("a", {
3027
2943
  href: e.href,
3028
2944
  target: "_blank",
3029
2945
  rel: "noopener noreferrer",
3030
- className: "text-[11px] text-muted-foreground/50 hover:text-muted-foreground transition-colors",
2946
+ className: "text-[11px] text-muted-foreground hover:text-foreground transition-colors",
3031
2947
  children: e.label
3032
2948
  })] }, e.label))
3033
2949
  ]
@@ -3036,32 +2952,32 @@ function oo({ logo: e, productName: t, version: n, links: r = [] }) {
3036
2952
  }
3037
2953
  //#endregion
3038
2954
  //#region src/components/app-switcher.tsx
3039
- function so({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
3040
- let { t: s } = G(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
2955
+ function no({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
2956
+ let { t: s } = W(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
3041
2957
  top: `${o}px`,
3042
2958
  height: `calc(100vh - ${o}px)`
3043
2959
  };
3044
- return /* @__PURE__ */ W(Le, { children: [
3045
- a && /* @__PURE__ */ U("button", {
2960
+ return /* @__PURE__ */ U(Ke, { children: [
2961
+ a && /* @__PURE__ */ H("button", {
3046
2962
  type: "button",
3047
2963
  title: c,
3048
2964
  onClick: t,
3049
2965
  className: `inline-flex items-center justify-center rounded-full w-9 h-9 transition-colors ${e ? "text-foreground bg-accent" : "text-muted-foreground hover:text-foreground hover:bg-accent"}`,
3050
- children: /* @__PURE__ */ U(Bt, { className: "h-5 w-5" })
2966
+ children: /* @__PURE__ */ H(Ht, { className: "h-5 w-5" })
3051
2967
  }),
3052
- e && /* @__PURE__ */ U("button", {
2968
+ e && /* @__PURE__ */ H("button", {
3053
2969
  type: "button",
3054
2970
  className: "fixed inset-0 z-40 cursor-default bg-transparent border-none",
3055
2971
  onClick: t,
3056
2972
  onKeyDown: (e) => e.key === "Escape" && t(),
3057
2973
  "aria-label": l
3058
2974
  }),
3059
- e && /* @__PURE__ */ U("div", {
2975
+ e && /* @__PURE__ */ H("div", {
3060
2976
  className: "vg-app-switcher-panel fixed right-0 z-50 w-72 border-l border-border bg-card shadow-xl overflow-y-auto",
3061
2977
  style: u,
3062
- children: /* @__PURE__ */ U("div", {
2978
+ children: /* @__PURE__ */ H("div", {
3063
2979
  className: "p-4",
3064
- children: n.map((e) => /* @__PURE__ */ U(co, {
2980
+ children: n.map((e) => /* @__PURE__ */ H(ro, {
3065
2981
  app: e,
3066
2982
  onToggle: t
3067
2983
  }, e.id))
@@ -3069,37 +2985,37 @@ function so({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, sho
3069
2985
  })
3070
2986
  ] });
3071
2987
  }
3072
- function co({ app: e, onToggle: t }) {
3073
- let { t: n } = G(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
3074
- return /* @__PURE__ */ W("a", {
2988
+ function ro({ app: e, onToggle: t }) {
2989
+ let { t: n } = W(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
2990
+ return /* @__PURE__ */ U("a", {
3075
2991
  href: e.href,
3076
2992
  target: e.external ? "_blank" : void 0,
3077
2993
  rel: e.external ? "noopener noreferrer" : void 0,
3078
2994
  onClick: t,
3079
2995
  className: `flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ${e.active ? "bg-accent font-medium" : "hover:bg-accent"}`,
3080
2996
  children: [
3081
- e.active && /* @__PURE__ */ U(A, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
3082
- e.image ? /* @__PURE__ */ U("img", {
2997
+ e.active && /* @__PURE__ */ H(de, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
2998
+ e.image ? /* @__PURE__ */ H("img", {
3083
2999
  src: e.image,
3084
3000
  alt: "",
3085
3001
  "aria-hidden": "true",
3086
3002
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 object-contain`
3087
- }) : /* @__PURE__ */ U("div", {
3003
+ }) : /* @__PURE__ */ H("div", {
3088
3004
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 rounded-[18%] bg-[#f5deb3] dark:bg-amber-900/40 p-0.5`,
3089
- children: /* @__PURE__ */ U("div", {
3005
+ children: /* @__PURE__ */ H("div", {
3090
3006
  className: `w-full h-full rounded-[14%] ${e.iconBg ?? "bg-muted"} flex items-center justify-center text-white`,
3091
3007
  children: e.icon
3092
3008
  })
3093
3009
  }),
3094
- /* @__PURE__ */ U("span", {
3010
+ /* @__PURE__ */ H("span", {
3095
3011
  className: "text-sm flex-1",
3096
3012
  children: r
3097
3013
  }),
3098
- e.external && /* @__PURE__ */ U(Pt, { className: "h-3.5 w-3.5 text-muted-foreground" })
3014
+ e.external && /* @__PURE__ */ H(Rt, { className: "h-3.5 w-3.5 text-muted-foreground" })
3099
3015
  ]
3100
3016
  });
3101
3017
  }
3102
- var lo = new class {
3018
+ var io = new class {
3103
3019
  status = "online";
3104
3020
  listeners = /* @__PURE__ */ new Set();
3105
3021
  get current() {
@@ -3114,30 +3030,30 @@ var lo = new class {
3114
3030
  };
3115
3031
  }
3116
3032
  }();
3117
- function uo() {
3118
- lo.set("offline");
3033
+ function ao() {
3034
+ io.set("offline");
3119
3035
  }
3120
- function fo() {
3121
- lo.set("online");
3036
+ function oo() {
3037
+ io.set("online");
3122
3038
  }
3123
- var po = Me(null);
3124
- function mo() {
3125
- let e = Pe(po);
3039
+ var so = Ve(null);
3040
+ function co() {
3041
+ let e = Ue(so);
3126
3042
  if (!e) throw Error("useBackendStatus must be used inside <BackendStatusProvider>");
3127
3043
  return e;
3128
3044
  }
3129
- function ho({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3130
- let [i, a] = Ie(lo.current);
3131
- V(() => lo.subscribe(a), []);
3132
- let o = Ne(async () => {
3133
- lo.set("checking");
3045
+ function lo({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3046
+ let [i, a] = Ge(io.current);
3047
+ B(() => io.subscribe(a), []);
3048
+ let o = He(async () => {
3049
+ io.set("checking");
3134
3050
  try {
3135
- await Y.get(e, { timeout: 4e3 }), lo.set("online");
3051
+ await Y.get(e, { timeout: 4e3 }), io.set("online");
3136
3052
  } catch {
3137
- lo.set("offline");
3053
+ io.set("offline");
3138
3054
  }
3139
3055
  }, [e]);
3140
- return V(() => {
3056
+ return B(() => {
3141
3057
  if (i === "online") return;
3142
3058
  let e = setInterval(o, t);
3143
3059
  return () => clearInterval(e);
@@ -3145,38 +3061,38 @@ function ho({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBan
3145
3061
  i,
3146
3062
  t,
3147
3063
  o
3148
- ]), /* @__PURE__ */ W(po.Provider, {
3064
+ ]), /* @__PURE__ */ U(so.Provider, {
3149
3065
  value: {
3150
3066
  status: i,
3151
3067
  retry: o
3152
3068
  },
3153
- children: [n && /* @__PURE__ */ U(go, {}), r]
3069
+ children: [n && /* @__PURE__ */ H(uo, {}), r]
3154
3070
  });
3155
3071
  }
3156
- function go() {
3157
- let { status: e, retry: t } = mo(), { t: n } = G();
3072
+ function uo() {
3073
+ let { status: e, retry: t } = co(), { t: n } = W();
3158
3074
  if (e === "online") return null;
3159
3075
  let r = e === "checking";
3160
- return /* @__PURE__ */ U("div", {
3076
+ return /* @__PURE__ */ H("div", {
3161
3077
  role: "status",
3162
3078
  "aria-live": "polite",
3163
3079
  className: "sticky top-0 z-50 w-full border-b border-amber-500/30 bg-amber-500/10 backdrop-blur supports-[backdrop-filter]:bg-amber-500/15 text-amber-900 dark:text-amber-100",
3164
- children: /* @__PURE__ */ W("div", {
3080
+ children: /* @__PURE__ */ U("div", {
3165
3081
  className: "flex items-center gap-3 px-4 py-2 text-sm",
3166
3082
  children: [
3167
- r ? /* @__PURE__ */ U(Ze, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ U(Ke, { className: "size-4 shrink-0" }),
3168
- /* @__PURE__ */ U("span", {
3083
+ r ? /* @__PURE__ */ H(ot, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ H(tt, { className: "size-4 shrink-0" }),
3084
+ /* @__PURE__ */ H("span", {
3169
3085
  className: "flex-1",
3170
3086
  children: n(r ? "backendStatus.checking" : "backendStatus.offline", r ? "Reconnecting to the server..." : "Server unavailable. Retrying...")
3171
3087
  }),
3172
- /* @__PURE__ */ W(v, {
3088
+ /* @__PURE__ */ U(v, {
3173
3089
  type: "button",
3174
3090
  variant: "ghost",
3175
3091
  size: "sm",
3176
3092
  onClick: t,
3177
3093
  disabled: r,
3178
3094
  className: "text-amber-900 dark:text-amber-100 hover:bg-amber-500/20",
3179
- children: [/* @__PURE__ */ U($e, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3095
+ children: [/* @__PURE__ */ H(ct, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3180
3096
  })
3181
3097
  ]
3182
3098
  })
@@ -3184,7 +3100,7 @@ function go() {
3184
3100
  }
3185
3101
  //#endregion
3186
3102
  //#region src/components/error-boundary.tsx
3187
- var _o = class extends je.Component {
3103
+ var fo = class extends Be.Component {
3188
3104
  state = { hasError: !1 };
3189
3105
  static getDerivedStateFromError(e) {
3190
3106
  return {
@@ -3207,49 +3123,49 @@ var _o = class extends je.Component {
3207
3123
  return this.props.fallback ? this.props.fallback({
3208
3124
  error: e,
3209
3125
  reset: this.reset
3210
- }) : /* @__PURE__ */ U(vo, { error: e });
3126
+ }) : /* @__PURE__ */ H(po, { error: e });
3211
3127
  }
3212
3128
  };
3213
- function vo({ error: e }) {
3214
- let { t } = G();
3215
- return /* @__PURE__ */ U("div", {
3129
+ function po({ error: e }) {
3130
+ let { t } = W();
3131
+ return /* @__PURE__ */ H("div", {
3216
3132
  className: "flex items-center justify-center min-h-[80vh] px-6 py-16",
3217
- children: /* @__PURE__ */ U("div", {
3133
+ children: /* @__PURE__ */ H("div", {
3218
3134
  className: "relative w-full max-w-md overflow-hidden rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm shadow-xl",
3219
- children: /* @__PURE__ */ W("div", {
3135
+ children: /* @__PURE__ */ U("div", {
3220
3136
  className: "relative flex flex-col items-center text-center px-8 py-12 space-y-6",
3221
3137
  children: [
3222
- /* @__PURE__ */ W("div", {
3138
+ /* @__PURE__ */ U("div", {
3223
3139
  className: "relative",
3224
- children: [/* @__PURE__ */ U("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ U("div", {
3140
+ children: [/* @__PURE__ */ H("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ H("div", {
3225
3141
  className: "relative inline-flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-red-600 to-rose-600 shadow-lg shadow-red-500/25 ring-4 ring-red-500/10",
3226
- children: /* @__PURE__ */ U(qe, {
3142
+ children: /* @__PURE__ */ H(nt, {
3227
3143
  className: "text-white",
3228
3144
  size: 30
3229
3145
  })
3230
3146
  })]
3231
3147
  }),
3232
- /* @__PURE__ */ W("div", {
3148
+ /* @__PURE__ */ U("div", {
3233
3149
  className: "space-y-2",
3234
3150
  children: [
3235
- /* @__PURE__ */ U("h2", {
3151
+ /* @__PURE__ */ H("h2", {
3236
3152
  className: "text-xl font-semibold tracking-tight",
3237
3153
  children: t("errorBoundary.title", "Something went wrong")
3238
3154
  }),
3239
- /* @__PURE__ */ U("p", {
3155
+ /* @__PURE__ */ H("p", {
3240
3156
  className: "text-sm text-muted-foreground leading-relaxed max-w-xs mx-auto",
3241
3157
  children: t("errorBoundary.description", "An unexpected error occurred. Try reloading the page.")
3242
3158
  }),
3243
- e.message && /* @__PURE__ */ U("pre", {
3159
+ e.message && /* @__PURE__ */ H("pre", {
3244
3160
  className: "mt-3 text-xs text-left text-muted-foreground bg-muted/40 rounded-md p-3 max-h-32 overflow-auto whitespace-pre-wrap break-words",
3245
3161
  children: e.message
3246
3162
  })
3247
3163
  ]
3248
3164
  }),
3249
- /* @__PURE__ */ W(v, {
3165
+ /* @__PURE__ */ U(v, {
3250
3166
  size: "lg",
3251
3167
  onClick: () => window.location.reload(),
3252
- children: [/* @__PURE__ */ U($e, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3168
+ children: [/* @__PURE__ */ H(ct, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3253
3169
  })
3254
3170
  ]
3255
3171
  })
@@ -3258,8 +3174,8 @@ function vo({ error: e }) {
3258
3174
  }
3259
3175
  //#endregion
3260
3176
  //#region src/components/language-select.tsx
3261
- function yo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3262
- let { t: o } = G(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3177
+ function mo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3178
+ let { t: o } = W(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3263
3179
  n.forEach((e) => {
3264
3180
  c.set(e.initials, {
3265
3181
  name: e.en,
@@ -3276,34 +3192,34 @@ function yo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [],
3276
3192
  name: t.name,
3277
3193
  label: t.label
3278
3194
  })), u = l.find((t) => t.value === e);
3279
- return /* @__PURE__ */ W(yr, {
3195
+ return /* @__PURE__ */ U(vr, {
3280
3196
  value: e,
3281
3197
  onValueChange: t,
3282
- children: [/* @__PURE__ */ U(Sr, {
3198
+ children: [/* @__PURE__ */ H(xr, {
3283
3199
  className: a,
3284
3200
  "aria-label": s,
3285
- children: u ? /* @__PURE__ */ W("div", {
3201
+ children: u ? /* @__PURE__ */ U("div", {
3286
3202
  className: "flex items-center gap-2 truncate",
3287
- children: [/* @__PURE__ */ U(S, { locale: u.value }), /* @__PURE__ */ U("span", {
3203
+ children: [/* @__PURE__ */ H(x, { locale: u.value }), /* @__PURE__ */ H("span", {
3288
3204
  className: "truncate",
3289
3205
  children: u.label
3290
3206
  })]
3291
- }) : /* @__PURE__ */ U("span", {
3207
+ }) : /* @__PURE__ */ H("span", {
3292
3208
  className: "text-muted-foreground",
3293
3209
  children: s
3294
3210
  })
3295
- }), /* @__PURE__ */ U(Cr, { children: l.map((e) => /* @__PURE__ */ U(Tr, {
3211
+ }), /* @__PURE__ */ H(Sr, { children: l.map((e) => /* @__PURE__ */ H(wr, {
3296
3212
  value: e.value,
3297
- children: /* @__PURE__ */ W("div", {
3213
+ children: /* @__PURE__ */ U("div", {
3298
3214
  className: "flex items-center gap-2",
3299
- children: [/* @__PURE__ */ U(S, { locale: e.value }), /* @__PURE__ */ U("span", { children: e.label })]
3215
+ children: [/* @__PURE__ */ H(x, { locale: e.value }), /* @__PURE__ */ H("span", { children: e.label })]
3300
3216
  })
3301
3217
  }, e.value)) })]
3302
3218
  });
3303
3219
  }
3304
3220
  //#endregion
3305
3221
  //#region src/components/language-switcher.tsx
3306
- var bo = [{
3222
+ var ho = [{
3307
3223
  code: "en",
3308
3224
  label: "English",
3309
3225
  flag: "🇺🇸"
@@ -3312,24 +3228,24 @@ var bo = [{
3312
3228
  label: "Português",
3313
3229
  flag: "🇧🇷"
3314
3230
  }];
3315
- function xo({ languages: e = bo }) {
3316
- let { i18n: t, t: n } = G();
3317
- return /* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(M, {
3231
+ function go({ languages: e = ho }) {
3232
+ let { i18n: t, t: n } = W();
3233
+ return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(O, {
3318
3234
  asChild: !0,
3319
- children: /* @__PURE__ */ W(v, {
3235
+ children: /* @__PURE__ */ U(v, {
3320
3236
  variant: "outline",
3321
3237
  size: "sm",
3322
- children: [/* @__PURE__ */ U(Rt, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ U("span", {
3238
+ children: [/* @__PURE__ */ H(Bt, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ H("span", {
3323
3239
  className: "sr-only",
3324
3240
  children: n("language.toggle")
3325
3241
  })]
3326
3242
  })
3327
- }), /* @__PURE__ */ U(ie, {
3243
+ }), /* @__PURE__ */ H(N, {
3328
3244
  align: "end",
3329
- children: e.map((e) => /* @__PURE__ */ W(D, {
3245
+ children: e.map((e) => /* @__PURE__ */ U(D, {
3330
3246
  onClick: () => t.changeLanguage(e.code),
3331
3247
  className: t.language === e.code ? "font-semibold bg-accent" : "",
3332
- children: [e.flag && /* @__PURE__ */ U("span", {
3248
+ children: [e.flag && /* @__PURE__ */ H("span", {
3333
3249
  className: "mr-2",
3334
3250
  children: e.flag
3335
3251
  }), e.label]
@@ -3338,8 +3254,8 @@ function xo({ languages: e = bo }) {
3338
3254
  }
3339
3255
  //#endregion
3340
3256
  //#region src/components/theme-provider.tsx
3341
- function So({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3342
- return /* @__PURE__ */ U(ft, {
3257
+ function _o({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3258
+ return /* @__PURE__ */ H(_t, {
3343
3259
  attribute: "class",
3344
3260
  enableSystem: !0,
3345
3261
  defaultTheme: t,
@@ -3348,8 +3264,8 @@ function So({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
3348
3264
  children: e
3349
3265
  });
3350
3266
  }
3351
- var Co = () => {
3352
- let { theme: e, setTheme: t } = pt();
3267
+ var vo = () => {
3268
+ let { theme: e, setTheme: t } = vt();
3353
3269
  return {
3354
3270
  theme: e ?? "system",
3355
3271
  setTheme: t
@@ -3357,104 +3273,104 @@ var Co = () => {
3357
3273
  };
3358
3274
  //#endregion
3359
3275
  //#region src/components/mode-toggle.tsx
3360
- function wo() {
3361
- let { setTheme: e } = Co(), { t } = G();
3362
- return /* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(M, {
3276
+ function yo() {
3277
+ let { setTheme: e } = vo(), { t } = W();
3278
+ return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(O, {
3363
3279
  asChild: !0,
3364
- children: /* @__PURE__ */ W(v, {
3280
+ children: /* @__PURE__ */ U(v, {
3365
3281
  variant: "outline",
3366
3282
  size: "sm",
3367
3283
  children: [
3368
- /* @__PURE__ */ U(Xt, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3369
- /* @__PURE__ */ U(Kt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3370
- /* @__PURE__ */ U("span", {
3284
+ /* @__PURE__ */ H(Qt, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3285
+ /* @__PURE__ */ H(Jt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3286
+ /* @__PURE__ */ H("span", {
3371
3287
  className: "sr-only",
3372
3288
  children: t("theme.toggle")
3373
3289
  })
3374
3290
  ]
3375
3291
  })
3376
- }), /* @__PURE__ */ W(ie, {
3292
+ }), /* @__PURE__ */ U(N, {
3377
3293
  align: "end",
3378
3294
  children: [
3379
- /* @__PURE__ */ U(D, {
3295
+ /* @__PURE__ */ H(D, {
3380
3296
  onClick: () => e("light"),
3381
3297
  children: t("theme.light")
3382
3298
  }),
3383
- /* @__PURE__ */ U(D, {
3299
+ /* @__PURE__ */ H(D, {
3384
3300
  onClick: () => e("dark"),
3385
3301
  children: t("theme.dark")
3386
3302
  }),
3387
- /* @__PURE__ */ U(D, {
3303
+ /* @__PURE__ */ H(D, {
3388
3304
  onClick: () => e("system"),
3389
3305
  children: t("theme.system")
3390
3306
  })
3391
3307
  ]
3392
3308
  })] });
3393
3309
  }
3394
- var To = [
3310
+ var bo = [
3395
3311
  {
3396
3312
  value: "light",
3397
3313
  labelKey: "theme.light",
3398
- icon: Xt
3314
+ icon: Qt
3399
3315
  },
3400
3316
  {
3401
3317
  value: "dark",
3402
3318
  labelKey: "theme.dark",
3403
- icon: Kt
3319
+ icon: Jt
3404
3320
  },
3405
3321
  {
3406
3322
  value: "system",
3407
3323
  labelKey: "theme.system",
3408
- icon: Wt
3324
+ icon: Kt
3409
3325
  }
3410
3326
  ];
3411
- function Eo() {
3412
- let { theme: e, setTheme: t } = Co(), { t: n } = G(), r = To.find((t) => t.value === e) ?? To[2];
3327
+ function xo() {
3328
+ let { theme: e, setTheme: t } = vo(), { t: n } = W(), r = bo.find((t) => t.value === e) ?? bo[2];
3413
3329
  function i() {
3414
- let n = To[(To.findIndex((t) => t.value === e) + 1) % To.length];
3330
+ let n = bo[(bo.findIndex((t) => t.value === e) + 1) % bo.length];
3415
3331
  t(n.value);
3416
3332
  }
3417
3333
  let a = r.icon;
3418
- return /* @__PURE__ */ W("button", {
3334
+ return /* @__PURE__ */ U("button", {
3419
3335
  type: "button",
3420
3336
  title: n("theme.toggle"),
3421
3337
  onClick: i,
3422
3338
  className: "md:hidden flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-sidebar-foreground hover:bg-sidebar-accent transition-colors w-full",
3423
- children: [/* @__PURE__ */ U(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ U("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3339
+ children: [/* @__PURE__ */ H(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ H("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3424
3340
  });
3425
3341
  }
3426
3342
  //#endregion
3427
3343
  //#region src/components/nav-secondary.tsx
3428
- function Do({ items: e, ...t }) {
3429
- return /* @__PURE__ */ U(li, {
3344
+ function So({ items: e, ...t }) {
3345
+ return /* @__PURE__ */ H(ii, {
3430
3346
  ...t,
3431
- children: /* @__PURE__ */ U(fi, { children: /* @__PURE__ */ U(pi, { children: e.map((e) => /* @__PURE__ */ U(mi, { children: /* @__PURE__ */ U(gi, {
3347
+ children: /* @__PURE__ */ H(si, { children: /* @__PURE__ */ H(ci, { children: e.map((e) => /* @__PURE__ */ H(li, { children: /* @__PURE__ */ H(di, {
3432
3348
  asChild: !0,
3433
- children: /* @__PURE__ */ W("a", {
3349
+ children: /* @__PURE__ */ U("a", {
3434
3350
  href: e.url,
3435
- children: [/* @__PURE__ */ U(e.icon, {}), /* @__PURE__ */ U("span", { children: e.title })]
3351
+ children: [/* @__PURE__ */ H(e.icon, {}), /* @__PURE__ */ H("span", { children: e.title })]
3436
3352
  })
3437
3353
  }) }, e.title)) }) })
3438
3354
  });
3439
3355
  }
3440
3356
  //#endregion
3441
3357
  //#region src/components/viglet-app-switcher.tsx
3442
- var Oo = {
3358
+ var Co = {
3443
3359
  cloud: "https://console.viglet.cloud",
3444
3360
  turing: "https://turing.viglet.cloud",
3445
3361
  shio: "https://shio.viglet.cloud",
3446
3362
  dumont: "https://dumont.viglet.cloud",
3447
3363
  docs: "https://docs.viglet.org"
3448
3364
  };
3449
- function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3450
- let { t: s } = G(), c = {
3451
- ...Oo,
3365
+ function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3366
+ let { t: s } = W(), c = {
3367
+ ...Co,
3452
3368
  ...r
3453
3369
  }, l = [
3454
3370
  {
3455
3371
  id: "cloud",
3456
3372
  name: "Viglet Cloud",
3457
- icon: /* @__PURE__ */ U(At, { className: "h-4 w-4" }),
3373
+ icon: /* @__PURE__ */ H(Pt, { className: "h-4 w-4" }),
3458
3374
  iconBg: "bg-linear-to-br from-[#C2410C] to-[#F97316]",
3459
3375
  href: n === "cloud" ? "/" : c.cloud,
3460
3376
  external: n !== "cloud",
@@ -3463,7 +3379,7 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3463
3379
  {
3464
3380
  id: "turing",
3465
3381
  name: "Turing ES",
3466
- image: Oe,
3382
+ image: Ie,
3467
3383
  href: n === "turing" ? "/" : c.turing,
3468
3384
  external: n !== "turing",
3469
3385
  active: n === "turing"
@@ -3471,7 +3387,7 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3471
3387
  {
3472
3388
  id: "shio",
3473
3389
  name: "Shio CMS",
3474
- image: Ae,
3390
+ image: Re,
3475
3391
  href: n === "shio" ? "/" : c.shio,
3476
3392
  external: n !== "shio",
3477
3393
  active: n === "shio"
@@ -3479,7 +3395,7 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3479
3395
  {
3480
3396
  id: "dumont",
3481
3397
  name: "Dumont DEP",
3482
- image: ke,
3398
+ image: Le,
3483
3399
  href: n === "dumont" ? "/" : c.dumont,
3484
3400
  external: n !== "dumont",
3485
3401
  active: n === "dumont"
@@ -3487,13 +3403,13 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3487
3403
  {
3488
3404
  id: "docs",
3489
3405
  name: s("common.docs", { defaultValue: "Documentation" }),
3490
- icon: /* @__PURE__ */ U(St, { className: "h-4 w-4" }),
3406
+ icon: /* @__PURE__ */ H(Et, { className: "h-4 w-4" }),
3491
3407
  iconBg: "bg-linear-to-br from-violet-500 to-purple-600",
3492
3408
  href: c.docs,
3493
3409
  external: !0
3494
3410
  }
3495
3411
  ], u = i ?? s("common.apps", { defaultValue: "Apps" });
3496
- return /* @__PURE__ */ U(so, {
3412
+ return /* @__PURE__ */ H(no, {
3497
3413
  open: e,
3498
3414
  onToggle: t,
3499
3415
  apps: l,
@@ -3504,19 +3420,19 @@ function ko({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3504
3420
  }
3505
3421
  //#endregion
3506
3422
  //#region src/hooks/use-date-locale.ts
3507
- var Ao = {
3508
- en: vt,
3509
- pt: yt
3423
+ var To = {
3424
+ en: St,
3425
+ pt: Ct
3510
3426
  };
3511
- function jo() {
3512
- let { i18n: e } = G();
3513
- return Fe(() => Ao[e.language?.substring(0, 2)] ?? vt, [e.language]);
3427
+ function Eo() {
3428
+ let { i18n: e } = W();
3429
+ return We(() => To[e.language?.substring(0, 2)] ?? St, [e.language]);
3514
3430
  }
3515
3431
  //#endregion
3516
3432
  //#region src/hooks/use-grid-adapter.ts
3517
- function Mo(e, t) {
3433
+ function Do(e, t) {
3518
3434
  let { id: n, name: r, description: i, url: a, icon: o } = t;
3519
- return Fe(() => {
3435
+ return We(() => {
3520
3436
  if (!Array.isArray(e) || e.length === 0) return [];
3521
3437
  let t = (e, t) => {
3522
3438
  if (typeof t == "function") return t(e);
@@ -3547,15 +3463,15 @@ function Mo(e, t) {
3547
3463
  }
3548
3464
  //#endregion
3549
3465
  //#region src/contexts/breadcrumb.context.tsx
3550
- var No = Me(void 0);
3551
- function Po({ children: e }) {
3552
- let [t, n] = Ie([]), r = Ne((e) => {
3466
+ var Oo = Ve(void 0);
3467
+ function ko({ children: e }) {
3468
+ let [t, n] = Ge([]), r = He((e) => {
3553
3469
  n((t) => t.length > 0 && t[t.length - 1].label === e.label ? t : [...t, e]);
3554
- }, []), i = Ne(() => {
3470
+ }, []), i = He(() => {
3555
3471
  n((e) => e.slice(0, -1));
3556
- }, []), a = Ne((e = []) => {
3472
+ }, []), a = He((e = []) => {
3557
3473
  n(e);
3558
- }, []), o = Fe(() => ({
3474
+ }, []), o = We(() => ({
3559
3475
  items: t,
3560
3476
  setItems: n,
3561
3477
  pushItem: r,
@@ -3567,21 +3483,21 @@ function Po({ children: e }) {
3567
3483
  i,
3568
3484
  a
3569
3485
  ]);
3570
- return /* @__PURE__ */ U(No.Provider, {
3486
+ return /* @__PURE__ */ H(Oo.Provider, {
3571
3487
  value: o,
3572
3488
  children: e
3573
3489
  });
3574
3490
  }
3575
- var Fo = () => {
3576
- let e = Pe(No);
3491
+ var Ao = () => {
3492
+ let e = Ue(Oo);
3577
3493
  if (!e) throw Error("useBreadcrumb must be used within Provider");
3578
3494
  return e;
3579
- }, Io = () => Pe(No);
3495
+ }, jo = () => Ue(Oo);
3580
3496
  //#endregion
3581
3497
  //#region src/hooks/use-sub-page-breadcrumb.ts
3582
- function Lo(e) {
3583
- let t = Io()?.setItems, n = H([]);
3584
- V(() => {
3498
+ function Mo(e) {
3499
+ let t = jo()?.setItems, n = V([]);
3500
+ B(() => {
3585
3501
  if (e === void 0 || !t) return;
3586
3502
  let r = typeof e == "string" ? [{ label: e }] : Array.isArray(e) ? e : [e], i = n.current;
3587
3503
  i.length === r.length && i.every((e, t) => e.label === r[t].label && e.href === r[t].href) || t((e) => {
@@ -3597,7 +3513,7 @@ function Lo(e) {
3597
3513
  ...o
3598
3514
  ];
3599
3515
  });
3600
- }, [e, t]), V(() => () => {
3516
+ }, [e, t]), B(() => () => {
3601
3517
  let e = n.current;
3602
3518
  e.length > 0 && t && t((t) => {
3603
3519
  let n = t.indexOf(e[0]);
@@ -3607,28 +3523,28 @@ function Lo(e) {
3607
3523
  }
3608
3524
  //#endregion
3609
3525
  //#region src/hooks/use-assistant-notifications.ts
3610
- var Ro = {
3526
+ var No = {
3611
3527
  loading: "working",
3612
3528
  success: "success",
3613
3529
  error: "error",
3614
3530
  warning: "attention",
3615
3531
  info: "attention"
3616
- }, zo = [
3532
+ }, Po = [
3617
3533
  "working",
3618
3534
  "error",
3619
3535
  "attention",
3620
3536
  "success"
3621
3537
  ];
3622
- function Bo(e) {
3538
+ function Fo(e) {
3623
3539
  let { title: t } = e;
3624
3540
  return typeof t == "string" ? t : typeof t == "number" ? String(t) : null;
3625
3541
  }
3626
- function Vo() {
3627
- let { toasts: e } = mt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3628
- for (let e of zo) {
3629
- let i = t.find((t) => Ro[t.type ?? ""] === e);
3542
+ function Io() {
3543
+ let { toasts: e } = yt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3544
+ for (let e of Po) {
3545
+ let i = t.find((t) => No[t.type ?? ""] === e);
3630
3546
  if (i) {
3631
- n = e, r = Bo(i);
3547
+ n = e, r = Fo(i);
3632
3548
  break;
3633
3549
  }
3634
3550
  }
@@ -3640,8 +3556,8 @@ function Vo() {
3640
3556
  }
3641
3557
  //#endregion
3642
3558
  //#region src/lib/axios.ts
3643
- var Ho = "X-XSRF-TOKEN", Uo = "/csrf", $ = null, Wo = Y.create({ withCredentials: !0 });
3644
- function Go(e) {
3559
+ var Lo = "X-XSRF-TOKEN", Ro = "/csrf", $ = null, zo = Y.create({ withCredentials: !0 });
3560
+ function Bo(e) {
3645
3561
  return [
3646
3562
  "post",
3647
3563
  "put",
@@ -3649,58 +3565,58 @@ function Go(e) {
3649
3565
  "patch"
3650
3566
  ].includes(e?.toLowerCase() || "");
3651
3567
  }
3652
- function Ko(e) {
3653
- return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Ho) || null : typeof e == "object" && e && e[Ho.toLowerCase()] || null : null;
3568
+ function Vo(e) {
3569
+ return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Lo) || null : typeof e == "object" && e && e[Lo.toLowerCase()] || null : null;
3654
3570
  }
3655
- function qo(e, t) {
3571
+ function Ho(e, t) {
3656
3572
  if (typeof e.headers == "object" && e.headers !== null && "set" in e.headers && typeof e.headers.set == "function") {
3657
- e.headers.set(Ho, t);
3573
+ e.headers.set(Lo, t);
3658
3574
  return;
3659
3575
  }
3660
3576
  let n = e.headers || {};
3661
- n[Ho] = t, e.headers = n;
3577
+ n[Lo] = t, e.headers = n;
3662
3578
  }
3663
- function Jo() {
3664
- $ = null, Xo = null;
3579
+ function Uo() {
3580
+ $ = null, Go = null;
3665
3581
  }
3666
- function Yo() {
3582
+ function Wo() {
3667
3583
  let e = /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(globalThis.document.cookie);
3668
3584
  return e ? decodeURIComponent(e[1]) : null;
3669
3585
  }
3670
- var Xo = null;
3671
- async function Zo() {
3672
- Wo.defaults.baseURL = Y.defaults.baseURL;
3673
- let e = await Wo.get(Uo), t = Ko(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Yo();
3586
+ var Go = null;
3587
+ async function Ko() {
3588
+ zo.defaults.baseURL = Y.defaults.baseURL;
3589
+ let e = await zo.get(Ro), t = Vo(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Wo();
3674
3590
  $ = t || n || r || null;
3675
3591
  }
3676
- async function Qo() {
3592
+ async function qo() {
3677
3593
  if (!$) {
3678
- if (!Xo) {
3679
- let e = Zo().finally(() => {
3680
- Xo === e && (Xo = null);
3594
+ if (!Go) {
3595
+ let e = Ko().finally(() => {
3596
+ Go === e && (Go = null);
3681
3597
  });
3682
- Xo = e;
3598
+ Go = e;
3683
3599
  }
3684
- await Xo;
3600
+ await Go;
3685
3601
  }
3686
3602
  }
3687
- function $o(e = {}) {
3603
+ function Jo(e = {}) {
3688
3604
  let t = e.loginPath ?? "/login";
3689
- e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = Ho, Y.interceptors.request.use(async (e) => {
3605
+ e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = Lo, Y.interceptors.request.use(async (e) => {
3690
3606
  let t = e.url || "", n = e.baseURL || Y.defaults.baseURL;
3691
- if (Wo.defaults.baseURL = n, t.includes(Uo) || !Go(e.method)) return e;
3692
- if ($ || await Qo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3693
- return qo(e, $), e;
3607
+ if (zo.defaults.baseURL = n, t.includes(Ro) || !Bo(e.method)) return e;
3608
+ if ($ || await qo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3609
+ return Ho(e, $), e;
3694
3610
  }, (e) => Promise.reject(e)), Y.interceptors.response.use((e) => {
3695
- let t = Ko(e.headers);
3611
+ let t = Vo(e.headers);
3696
3612
  return t && ($ = t), e;
3697
3613
  }, async (e) => {
3698
- let n = Ko(e.response?.headers);
3614
+ let n = Vo(e.response?.headers);
3699
3615
  n && ($ = n);
3700
3616
  let r = e.config;
3701
- if (e.response?.status === 403 && r && !r._csrfRetried && Go(r.method)) {
3702
- if (r._csrfRetried = !0, Jo(), Wo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await Qo(), !$) throw e;
3703
- return qo(r, $), Y.request(r);
3617
+ if (e.response?.status === 403 && r && !r._csrfRetried && Bo(r.method)) {
3618
+ if (r._csrfRetried = !0, Uo(), zo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await qo(), !$) throw e;
3619
+ return Ho(r, $), Y.request(r);
3704
3620
  }
3705
3621
  if (e.response?.status === 401 && !globalThis.location.pathname.startsWith(t)) {
3706
3622
  let e = globalThis.location.pathname + globalThis.location.search;
@@ -3711,15 +3627,15 @@ function $o(e = {}) {
3711
3627
  }
3712
3628
  //#endregion
3713
3629
  //#region src/lib/export-xlsx.ts
3714
- var es = /[[\]:*?/\\]/g, ts = 31;
3715
- function ns(e) {
3716
- return e.replace(es, " ").trim().slice(0, ts) || "Sheet1";
3630
+ var Yo = /[[\]:*?/\\]/g, Xo = 31;
3631
+ function Zo(e) {
3632
+ return e.replace(Yo, " ").trim().slice(0, Xo) || "Sheet1";
3717
3633
  }
3718
- function rs(e) {
3634
+ function Qo(e) {
3719
3635
  return Array.isArray(e) ? e.join(", ") : e instanceof Date ? e.toISOString() : e;
3720
3636
  }
3721
- function is(e, t, n, r) {
3722
- let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => rs(e[t.key]))), o = bt.utils.aoa_to_sheet([i, ...a]);
3637
+ function $o(e, t, n, r) {
3638
+ let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => Qo(e[t.key]))), o = wt.utils.aoa_to_sheet([i, ...a]);
3723
3639
  o["!cols"] = t.map((e, t) => {
3724
3640
  let n = e.label.length;
3725
3641
  for (let e of a) {
@@ -3728,8 +3644,8 @@ function is(e, t, n, r) {
3728
3644
  }
3729
3645
  return { wch: Math.min(Math.max(n + 2, 12), 60) };
3730
3646
  });
3731
- let s = bt.utils.book_new();
3732
- bt.utils.book_append_sheet(s, o, ns(r ?? n)), bt.writeFile(s, `${n}.xlsx`);
3647
+ let s = wt.utils.book_new();
3648
+ wt.utils.book_append_sheet(s, o, Zo(r ?? n)), wt.writeFile(s, `${n}.xlsx`);
3733
3649
  }
3734
3650
  //#endregion
3735
- export { Zt as Accordion, en as AccordionContent, Qt as AccordionItem, $t as AccordionTrigger, oo as AppFooter, so as AppSwitcher, tn as Avatar, rn as AvatarFallback, nn as AvatarImage, go as BackendStatusBanner, ho as BackendStatusProvider, c as Badge, b as BadgeColorful, S as BadgeLocale, an as Breadcrumb, dn as BreadcrumbEllipsis, sn as BreadcrumbItem, cn as BreadcrumbLink, on as BreadcrumbList, ln as BreadcrumbPage, Po as BreadcrumbProvider, un as BreadcrumbSeparator, R as Button, fn as Card, gn as CardAction, _n as CardContent, hn as CardDescription, vn as CardFooter, pn as CardHeader, mn as CardTitle, F as Checkbox, l as Dialog, h as DialogClose, C as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, yn as Drawer, Sn as DrawerClose, wn as DrawerContent, On as DrawerDescription, En as DrawerFooter, Tn as DrawerHeader, Cn as DrawerOverlay, xn as DrawerPortal, Dn as DrawerTitle, bn as DrawerTrigger, E as DropdownMenu, we as DropdownMenuCheckboxItem, ie as DropdownMenuContent, O as DropdownMenuGroup, D as DropdownMenuItem, te as DropdownMenuLabel, L as DropdownMenuPortal, T as DropdownMenuRadioGroup, me as DropdownMenuRadioItem, N as DropdownMenuSeparator, P as DropdownMenuShortcut, ne as DropdownMenuSub, k as DropdownMenuSubContent, j as DropdownMenuSubTrigger, M as DropdownMenuTrigger, _o as ErrorBoundary, De as FloatingFormulasBg, An as Form, Bn as FormActions, Ln as FormControl, Rn as FormDescription, Mn as FormField, Fn as FormItem, Wn as FormItemTwoColumns, In as FormLabel, zn as FormMessage, Jn as GlassCard, v as GradientButton, Kn as GradientSwitch, Xn as HoverCard, Qn as HoverCardContent, Zn as HoverCardTrigger, re as IconPickerDialog, s as Input, kn as Label, yo as LanguageSelect, xo as LanguageSwitcher, Ga as Login, wo as ModeToggle, Eo as ModeToggleSidebar, Do as NavSecondary, $n as NavigationMenu, ir as NavigationMenuContent, sr as NavigationMenuIndicator, tr as NavigationMenuItem, or as NavigationMenuLink, er as NavigationMenuList, rr as NavigationMenuTrigger, ar as NavigationMenuViewport, cr as Pagination, lr as PaginationContent, mr as PaginationEllipsis, ur as PaginationItem, dr as PaginationLink, pr as PaginationNext, fr as PaginationPrevious, I as Popover, fe as PopoverAnchor, oe as PopoverContent, Ce as PopoverDescription, Ee as PopoverHeader, ce as PopoverTitle, Te as PopoverTrigger, hr as Progress, Yn as PulseRing, vr as ResizableHandle, _r as ResizablePanel, gr as ResizablePanelGroup, ye as SectionCard, yr as Select, Cr as SelectContent, br as SelectGroup, Tr as SelectItem, wr as SelectLabel, Or as SelectScrollDownButton, Dr as SelectScrollUpButton, Er as SelectSeparator, Sr as SelectTrigger, xr as SelectValue, kr as Separator, Ar as Sheet, Mr as SheetClose, Fr as SheetContent, zr as SheetDescription, Lr as SheetFooter, Ir as SheetHeader, Rr as SheetTitle, jr as SheetTrigger, ei as Sidebar, ci as SidebarContent, oi as SidebarFooter, li as SidebarGroup, di as SidebarGroupAction, fi as SidebarGroupContent, ui as SidebarGroupLabel, ai as SidebarHeader, ii as SidebarInput, ri as SidebarInset, pi as SidebarMenu, _i as SidebarMenuAction, vi as SidebarMenuBadge, gi as SidebarMenuButton, mi as SidebarMenuItem, bi as SidebarMenuSkeleton, xi as SidebarMenuSub, Ci as SidebarMenuSubButton, Si as SidebarMenuSubItem, $r as SidebarProvider, ni as SidebarRail, si as SidebarSeparator, ti as SidebarTrigger, m as Skeleton, Di as Slider, ao as StartupFirst, Li as Stepper, Ti as StickySaveBar, Bi as Switch, Vi as Table, Ui as TableBody, Ji as TableCaption, qi as TableCell, Wi as TableFooter, Ki as TableHead, Hi as TableHeader, Gi as TableRow, Yi as Tabs, Qi as TabsContent, Xi as TabsList, Zi as TabsTrigger, $i as Textarea, So as ThemeProvider, be as Toaster, ta as Toggle, ra as ToggleGroup, ia as ToggleGroupItem, he as Tooltip, Se as TooltipContent, ue as TooltipProvider, de as TooltipTrigger, Pi as Tree, se as UserAvatar, ja as UserMenu, xe as UserProvider, ko as VigletAppSwitcher, Aa as VigletAssistant, Sa as VigletAvatar, w as badgeVariants, ee as buttonVariants, r as cn, is as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, ve as getUserInitials, x as gradientButtonVariants, Gn as gradientSwitchVariants, nr as navigationMenuTriggerStyle, uo as reportBackendOffline, fo as reportBackendOnline, ge as sectionCardColorVariants, $o as setupAxiosInterceptors, le as toast, ea as toggleVariants, Fi as treeFromPaths, e as truncateMiddle, Vo as useAssistantNotifications, mo as useBackendStatus, Fo as useBreadcrumb, Io as useBreadcrumbOptional, _e as useCurrentUser, jo as useDateLocale, Nn as useFormField, Mo as useGridAdapter, Ur as useIsMobile, Zr as useSidebar, Qr as useSidebarOptional, Lo as useSubPageBreadcrumb, Co as useTheme };
3651
+ export { $t as Accordion, nn as AccordionContent, en as AccordionItem, tn as AccordionTrigger, to as AppFooter, no as AppSwitcher, rn as Avatar, on as AvatarFallback, an as AvatarImage, uo as BackendStatusBanner, lo as BackendStatusProvider, c as Badge, ee as BadgeColorful, x as BadgeLocale, sn as Breadcrumb, pn as BreadcrumbEllipsis, ln as BreadcrumbItem, un as BreadcrumbLink, cn as BreadcrumbList, dn as BreadcrumbPage, ko as BreadcrumbProvider, fn as BreadcrumbSeparator, R as Button, mn as Card, vn as CardAction, yn as CardContent, _n as CardDescription, bn as CardFooter, hn as CardHeader, gn as CardTitle, M as Checkbox, l as Dialog, h as DialogClose, S as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, xn as Drawer, wn as DrawerClose, En as DrawerContent, An as DrawerDescription, On as DrawerFooter, Dn as DrawerHeader, Tn as DrawerOverlay, Cn as DrawerPortal, kn as DrawerTitle, Sn as DrawerTrigger, be as DropdownMenu, ie as DropdownMenuCheckboxItem, N as DropdownMenuContent, F as DropdownMenuGroup, D as DropdownMenuItem, A as DropdownMenuLabel, re as DropdownMenuPortal, ae as DropdownMenuRadioGroup, Pe as DropdownMenuRadioItem, T as DropdownMenuSeparator, le as DropdownMenuShortcut, k as DropdownMenuSub, ce as DropdownMenuSubContent, ue as DropdownMenuSubTrigger, O as DropdownMenuTrigger, fo as ErrorBoundary, Fe as FloatingFormulasBg, Mn as Form, Hn as FormActions, zn as FormControl, Bn as FormDescription, Pn as FormField, Ln as FormItem, Kn as FormItemTwoColumns, Rn as FormLabel, Vn as FormMessage, Xn as GlassCard, v as GradientButton, Jn as GradientSwitch, Qn as HoverCard, er as HoverCardContent, $n as HoverCardTrigger, w as IconPickerDialog, s as Input, jn as Label, mo as LanguageSelect, go as LanguageSwitcher, Ba as Login, yo as ModeToggle, xo as ModeToggleSidebar, So as NavSecondary, tr as NavigationMenu, or as NavigationMenuContent, lr as NavigationMenuIndicator, rr as NavigationMenuItem, cr as NavigationMenuLink, nr as NavigationMenuList, ar as NavigationMenuTrigger, sr as NavigationMenuViewport, ur as Pagination, dr as PaginationContent, gr as PaginationEllipsis, fr as PaginationItem, pr as PaginationLink, hr as PaginationNext, mr as PaginationPrevious, te as Popover, je as PopoverAnchor, se as PopoverContent, E as PopoverDescription, ne as PopoverHeader, P as PopoverTitle, xe as PopoverTrigger, _r as Progress, Zn as PulseRing, me as ResizableHandle, Me as ResizablePanel, oe as ResizablePanelGroup, Ae as SectionCard, vr as Select, Sr as SelectContent, yr as SelectGroup, wr as SelectItem, Cr as SelectLabel, Dr as SelectScrollDownButton, Er as SelectScrollUpButton, Tr as SelectSeparator, xr as SelectTrigger, br as SelectValue, Or as Separator, kr as Sheet, jr as SheetClose, Pr as SheetContent, Rr as SheetDescription, Ir as SheetFooter, Fr as SheetHeader, Lr as SheetTitle, Ar as SheetTrigger, Yr as Sidebar, ri as SidebarContent, ti as SidebarFooter, ii as SidebarGroup, oi as SidebarGroupAction, si as SidebarGroupContent, ai as SidebarGroupLabel, ei as SidebarHeader, $r as SidebarInput, Qr as SidebarInset, ci as SidebarMenu, fi as SidebarMenuAction, pi as SidebarMenuBadge, di as SidebarMenuButton, li as SidebarMenuItem, hi as SidebarMenuSkeleton, gi as SidebarMenuSub, vi as SidebarMenuSubButton, _i as SidebarMenuSubItem, Jr as SidebarProvider, Zr as SidebarRail, ni as SidebarSeparator, Xr as SidebarTrigger, m as Skeleton, Si as Slider, eo as StartupFirst, Mi as Stepper, bi as StickySaveBar, Fi as Switch, Ii as Table, Ri as TableBody, Ui as TableCaption, Hi as TableCell, zi as TableFooter, Vi as TableHead, Li as TableHeader, Bi as TableRow, De as Tabs, L as TabsContent, Se as TabsList, ke as TabsTrigger, Wi as Textarea, _o as ThemeProvider, he as Toaster, Ki as Toggle, Ji as ToggleGroup, Yi as ToggleGroupItem, Ce as Tooltip, ve as TooltipContent, _e as TooltipProvider, I as TooltipTrigger, ki as Tree, pe as UserAvatar, Ea as UserMenu, Oe as UserProvider, ma as VIGLET_ASSISTANT_SIZES, wo as VigletAppSwitcher, Ta as VigletAssistant, pa as VigletAvatar, C as badgeVariants, j as buttonVariants, r as cn, $o as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, Te as getUserInitials, b as gradientButtonVariants, qn as gradientSwitchVariants, ir as navigationMenuTriggerStyle, ao as reportBackendOffline, oo as reportBackendOnline, Ne as sectionCardColorVariants, Jo as setupAxiosInterceptors, ge as toast, Gi as toggleVariants, Ai as treeFromPaths, e as truncateMiddle, Io as useAssistantNotifications, co as useBackendStatus, Ao as useBreadcrumb, jo as useBreadcrumbOptional, we as useCurrentUser, Eo as useDateLocale, Fn as useFormField, Do as useGridAdapter, Ee as useIsMobile, Kr as useSidebar, qr as useSidebarOptional, Mo as useSubPageBreadcrumb, vo as useTheme };