@viglet/viglet-design-system 2026.3.9 → 2026.3.10

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 (92) hide show
  1. package/README.md +213 -16
  2. package/dist/badge-locale-Bij94NwL.cjs +1 -0
  3. package/dist/{badge-locale-CoEEv7s5.js → badge-locale-Du41PpLA.js} +183 -231
  4. package/dist/bento/bento-command-palette.d.ts +47 -12
  5. package/dist/bento/bento-command-palette.d.ts.map +1 -1
  6. package/dist/bento/bento-form-section.d.ts +7 -1
  7. package/dist/bento/bento-form-section.d.ts.map +1 -1
  8. package/dist/bento/bento-inline-edit.d.ts.map +1 -1
  9. package/dist/bento/bento-nav-rail.d.ts.map +1 -1
  10. package/dist/bento/bento-nav.d.ts +10 -2
  11. package/dist/bento/bento-nav.d.ts.map +1 -1
  12. package/dist/bento/bento-section-chrome.d.ts +5 -0
  13. package/dist/bento/bento-section-chrome.d.ts.map +1 -1
  14. package/dist/bento/bento-status-marker.d.ts.map +1 -1
  15. package/dist/bento/bento-tile.d.ts.map +1 -1
  16. package/dist/bento/index.d.ts +1 -1
  17. package/dist/bento/index.d.ts.map +1 -1
  18. package/dist/bento.cjs +1 -1
  19. package/dist/bento.es.js +464 -404
  20. package/dist/{breadcrumb.context-KQut7j8U.js → breadcrumb.context-BssgEydx.js} +229 -220
  21. package/dist/breadcrumb.context-DLsiMS59.cjs +1 -0
  22. package/dist/components/app-switcher.d.ts.map +1 -1
  23. package/dist/components/badge-colorful.d.ts +9 -0
  24. package/dist/components/badge-colorful.d.ts.map +1 -1
  25. package/dist/components/login/login.d.ts.map +1 -1
  26. package/dist/components/router/index.d.ts +1 -1
  27. package/dist/components/router/index.d.ts.map +1 -1
  28. package/dist/components/router/sub.page.d.ts.map +1 -1
  29. package/dist/components/startup-first/startup-first.d.ts.map +1 -1
  30. package/dist/components/ui/floating-formulas-bg.d.ts.map +1 -1
  31. package/dist/components/ui/glass-card.d.ts +10 -5
  32. package/dist/components/ui/glass-card.d.ts.map +1 -1
  33. package/dist/components/ui/icon-picker-dialog.d.ts.map +1 -1
  34. package/dist/components/ui/index.d.ts +6 -4
  35. package/dist/components/ui/index.d.ts.map +1 -1
  36. package/dist/components/ui/navigation-menu.d.ts +14 -0
  37. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  38. package/dist/components/ui/pulse-ring.d.ts.map +1 -1
  39. package/dist/components/ui/resizable.d.ts.map +1 -1
  40. package/dist/components/ui/sidebar.d.ts.map +1 -1
  41. package/dist/components/ui/sonner.d.ts +12 -0
  42. package/dist/components/ui/sonner.d.ts.map +1 -1
  43. package/dist/components/ui/stepper.d.ts.map +1 -1
  44. package/dist/components/ui/viglet-assistant.d.ts +60 -0
  45. package/dist/components/ui/viglet-assistant.d.ts.map +1 -0
  46. package/dist/components/ui/viglet-avatar.d.ts +42 -0
  47. package/dist/components/ui/viglet-avatar.d.ts.map +1 -0
  48. package/dist/exports.json +24 -5
  49. package/dist/floating-formulas-bg.cjs +1 -1
  50. package/dist/floating-formulas-bg.es.js +56 -55
  51. package/dist/hooks/index.d.ts +1 -0
  52. package/dist/hooks/index.d.ts.map +1 -1
  53. package/dist/hooks/use-assistant-notifications.d.ts +15 -0
  54. package/dist/hooks/use-assistant-notifications.d.ts.map +1 -0
  55. package/dist/i18n/index.d.ts +74 -0
  56. package/dist/i18n/index.d.ts.map +1 -1
  57. package/dist/i18n/locales/en/assistant.json.d.ts +22 -0
  58. package/dist/i18n/locales/en/bento.json.d.ts +3 -1
  59. package/dist/i18n/locales/en/common.json.d.ts +6 -1
  60. package/dist/i18n/locales/en/language.json.d.ts +8 -0
  61. package/dist/i18n/locales/pt/assistant.json.d.ts +22 -0
  62. package/dist/i18n/locales/pt/bento.json.d.ts +3 -1
  63. package/dist/i18n/locales/pt/common.json.d.ts +6 -1
  64. package/dist/i18n/locales/pt/language.json.d.ts +8 -0
  65. package/dist/i18n.cjs +1 -1
  66. package/dist/i18n.es.js +478 -2
  67. package/dist/index.cjs +1 -1
  68. package/dist/index.d.ts +0 -1
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.es.js +1311 -698
  71. package/dist/loading-provider-B6-R2ONB.cjs +1 -0
  72. package/dist/{loading-provider-BWWhhfEn.js → loading-provider-E3fbcekM.js} +24 -23
  73. package/dist/router.cjs +1 -1
  74. package/dist/router.es.js +4 -4
  75. package/dist/{user.context-D1PxP4D4.js → user.context-CPmUBBLa.js} +97 -87
  76. package/dist/user.context-xsJgPpcO.cjs +1 -0
  77. package/dist/utils-Fk5jmzzb.js +41 -0
  78. package/dist/utils-Oagwe_oa.cjs +1 -0
  79. package/dist/viglet-design-system.css +1 -1
  80. package/dist/vite/boot-loader.d.ts +33 -2
  81. package/dist/vite/boot-loader.d.ts.map +1 -1
  82. package/dist/vite.cjs +16 -5
  83. package/dist/vite.es.js +27 -14
  84. package/docs/BENTO-AUTHORING.md +20 -2
  85. package/docs/reference/grounds.dc.html +9 -9
  86. package/package.json +4 -3
  87. package/dist/badge-locale-hQyWhAKe.cjs +0 -7
  88. package/dist/breadcrumb.context-Vwc3lAlf.cjs +0 -1
  89. package/dist/i18n-DD3rQOWi.js +0 -426
  90. package/dist/i18n-DrBq-qJJ.cjs +0 -1
  91. package/dist/loading-provider-CmeMqLGk.cjs +0 -1
  92. package/dist/user.context-B9vIBzY5.cjs +0 -1
package/dist/index.es.js CHANGED
@@ -1,44 +1,45 @@
1
1
  "use client";
2
- import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, K as l, L as u, M as ee, N as te, O as ne, P as re, R as ie, S as ae, T as oe, U as d, V as se, W as ce, _ as f, a as le, b as ue, c as de, d as fe, f as p, g as m, h as pe, i as me, j as he, k as ge, l as _e, m as h, n as ve, o as ye, p as be, r as xe, s as Se, t as g, u as _, v as Ce, w as we, x as v, y as Te } from "./badge-locale-CoEEv7s5.js";
3
- import { $ as Ee, A as De, B as Oe, C as ke, D as Ae, E as je, F as Me, G as Ne, H as Pe, I as Fe, J as Ie, K as Le, L as Re, N as ze, O as Be, P as Ve, Q as He, R as Ue, S as We, T as Ge, U as Ke, V as qe, W as Je, X as Ye, Y as Xe, Z as Ze, _ as Qe, _t as $e, a as et, at as tt, b as nt, c as rt, ct as it, d as at, dt as ot, et as st, f as ct, ft as lt, g as ut, gt as dt, h as ft, ht as pt, i as mt, it as ht, j as gt, k as _t, l as vt, lt as yt, m as bt, mt as xt, n as St, nt as Ct, o as wt, ot as Tt, p as Et, pt as Dt, q as Ot, r as kt, rt as At, s as jt, st as Mt, t as Nt, tt as Pt, u as Ft, ut as It, v as Lt, w as Rt, x as zt, y as Bt, z as Vt } from "./breadcrumb.context-KQut7j8U.js";
4
- import { a as Ht, c as Ut, i as Wt, l as Gt, n as Kt, o as qt, r as y, s as Jt, t as Yt, u as Xt } from "./user.context-D1PxP4D4.js";
5
- import { FloatingFormulasBg as b } from "./floating-formulas-bg.es.js";
6
- import { i as Zt, n as Qt, r as $t } from "./products-Du9KB6Xl.js";
7
- import { i as en, n as tn, r as nn } from "./i18n-DD3rQOWi.js";
8
- import * as x from "@radix-ui/react-accordion";
9
- import * as S from "react";
10
- import rn, { createContext as C, useCallback as an, useContext as w, useEffect as T, useMemo as on, useRef as sn, useState as cn } from "react";
11
- import { Fragment as ln, jsx as E, jsxs as D } from "react/jsx-runtime";
12
- import { Slot as un } from "@radix-ui/react-slot";
13
- import { cva as O } from "class-variance-authority";
14
- import { useTranslation as k } from "react-i18next";
15
- import * as dn from "@radix-ui/react-checkbox";
16
- import { Drawer as A } from "vaul";
17
- import { Controller as fn, FormProvider as pn, useFormContext as mn, useFormState as hn } from "react-hook-form";
18
- import * as gn from "@radix-ui/react-label";
19
- import { IconAlertTriangle as _n, IconAlertTriangleFilled as vn, IconCheck as yn, IconCircleCheck as bn, IconDeviceFloppy as xn, IconLoader2 as Sn, IconLogout as Cn, IconRefresh as wn, IconTrash as Tn, IconUserCircle as En, IconX as Dn } from "@tabler/icons-react";
20
- import * as j from "@radix-ui/react-switch";
21
- import * as M from "@radix-ui/react-hover-card";
22
- import * as N from "@radix-ui/react-navigation-menu";
23
- import { Popover as P, Progress as On } from "radix-ui";
24
- import { Group as kn, Panel as An, Separator as jn } from "react-resizable-panels";
25
- import * as F from "@radix-ui/react-slider";
26
- import * as I from "@radix-ui/react-tabs";
27
- import * as Mn from "@radix-ui/react-toggle";
28
- import * as Nn from "@radix-ui/react-toggle-group";
29
- import L from "axios";
30
- import { enUS as Pn, ptBR as Fn } from "date-fns/locale";
31
- import * as R from "xlsx";
32
- var In = s("book", [["path", {
2
+ import { a as e, n as t, r as n, t as r } from "./utils-Fk5jmzzb.js";
3
+ import { A as i, B as a, C as o, D as s, E as c, F as l, H as u, I as d, L as f, M as p, N as m, O as h, P as g, R as _, S as v, T as y, V as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as ee, i as te, j as ne, k as re, l as O, m as k, n as A, o as j, p as ie, r as ae, s as M, t as N, u as P, v as oe, w as se, x as ce, y as le } from "./badge-locale-Du41PpLA.js";
4
+ import { $ as ue, A as de, B as fe, C as pe, D as F, E as me, F as he, G as I, H as ge, I as _e, J as ve, K as ye, L as be, M as xe, N as Se, O as Ce, P as we, Q as Te, R as Ee, S as De, T as Oe, U as ke, V as Ae, W as je, X as Me, Y as Ne, Z as Pe, _ as Fe, _t as Ie, a as Le, at as Re, b as ze, c as Be, ct as Ve, d as He, dt as Ue, et as We, f as Ge, ft as Ke, g as qe, gt as Je, h as Ye, ht as Xe, i as Ze, it as Qe, j as $e, k as et, l as tt, lt as nt, m as rt, mt as it, n as at, nt as ot, o as st, ot as ct, p as lt, pt as ut, q as dt, r as ft, rt as pt, s as mt, st as ht, t as gt, tt as _t, u as vt, ut as yt, v as bt, w as xt, x as St, y as Ct, z as wt } from "./breadcrumb.context-BssgEydx.js";
5
+ import { a as Tt, c as Et, d as Dt, i as Ot, l as kt, n as At, o as jt, r as Mt, s as Nt, t as Pt, u as Ft } from "./user.context-CPmUBBLa.js";
6
+ import { FloatingFormulasBg as It } from "./floating-formulas-bg.es.js";
7
+ import { i as Lt, n as Rt, r as zt } from "./products-Du9KB6Xl.js";
8
+ import * as L from "@radix-ui/react-accordion";
9
+ import * as R from "react";
10
+ import Bt, { createContext as Vt, useCallback as Ht, useContext as Ut, useEffect as z, useMemo as Wt, useRef as B, useState as Gt } from "react";
11
+ import { Fragment as Kt, jsx as V, jsxs as H } from "react/jsx-runtime";
12
+ import { Slot as qt } from "@radix-ui/react-slot";
13
+ import { cva as Jt } from "class-variance-authority";
14
+ import { useTranslation as U } from "react-i18next";
15
+ import * as Yt from "@radix-ui/react-checkbox";
16
+ import { Drawer as W } from "vaul";
17
+ import { Controller as Xt, FormProvider as Zt, useFormContext as Qt, useFormState as $t } from "react-hook-form";
18
+ import * as en from "@radix-ui/react-label";
19
+ import { IconAlertTriangle as tn, IconAlertTriangleFilled as nn, IconCheck as rn, IconCircleCheck as an, IconDeviceFloppy as on, IconLoader2 as sn, IconLogout as cn, IconRefresh as ln, IconTrash as un, IconUserCircle as dn, IconX as fn } from "@tabler/icons-react";
20
+ import * as pn from "@radix-ui/react-switch";
21
+ import * as mn from "@radix-ui/react-hover-card";
22
+ import * as G from "@radix-ui/react-navigation-menu";
23
+ import { Popover as hn, Progress as gn } from "radix-ui";
24
+ import { Group as _n, Panel as vn, Separator as yn } from "react-resizable-panels";
25
+ import * as bn from "@radix-ui/react-slider";
26
+ import { useSonner as xn } from "sonner";
27
+ import * as Sn from "@radix-ui/react-tabs";
28
+ import * as Cn from "@radix-ui/react-toggle";
29
+ import * as wn from "@radix-ui/react-toggle-group";
30
+ import K from "axios";
31
+ import { enUS as Tn, ptBR as En } from "date-fns/locale";
32
+ import * as Dn from "xlsx";
33
+ var On = u("book", [["path", {
33
34
  d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",
34
35
  key: "k3hazp"
35
- }]]), Ln = s("chevron-left", [["path", {
36
+ }]]), kn = u("chevron-left", [["path", {
36
37
  d: "m15 18-6-6 6-6",
37
38
  key: "1wnfg3"
38
- }]]), Rn = s("cloud", [["path", {
39
+ }]]), An = u("cloud", [["path", {
39
40
  d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",
40
41
  key: "p7xjir"
41
- }]]), zn = s("external-link", [
42
+ }]]), jn = u("external-link", [
42
43
  ["path", {
43
44
  d: "M15 3h6v6",
44
45
  key: "1q9fwt"
@@ -51,7 +52,7 @@ var In = s("book", [["path", {
51
52
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
52
53
  key: "a6xqqp"
53
54
  }]
54
- ]), Bn = s("grip-vertical", [
55
+ ]), Mn = u("grip-vertical", [
55
56
  ["circle", {
56
57
  cx: "9",
57
58
  cy: "12",
@@ -88,7 +89,7 @@ var In = s("book", [["path", {
88
89
  r: "1",
89
90
  key: "f4zoj3"
90
91
  }]
91
- ]), Vn = s("languages", [
92
+ ]), Nn = u("languages", [
92
93
  ["path", {
93
94
  d: "m5 8 6 6",
94
95
  key: "1wu5hv"
@@ -113,7 +114,7 @@ var In = s("book", [["path", {
113
114
  d: "M14 18h6",
114
115
  key: "1m8k6r"
115
116
  }]
116
- ]), Hn = s("layout-grid", [
117
+ ]), Pn = u("layout-grid", [
117
118
  ["rect", {
118
119
  width: "7",
119
120
  height: "7",
@@ -146,140 +147,140 @@ var In = s("book", [["path", {
146
147
  rx: "1",
147
148
  key: "1bb6yr"
148
149
  }]
149
- ]), Un = x.Root, Wn = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ E(x.Item, {
150
+ ]), Fn = L.Root, In = R.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ V(L.Item, {
150
151
  ref: n,
151
- className: d("border-b", e),
152
+ className: r("border-b", e),
152
153
  ...t
153
154
  }));
154
- Wn.displayName = "AccordionItem";
155
- var Gn = S.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(x.Header, {
155
+ In.displayName = "AccordionItem";
156
+ var Ln = R.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ V(L.Header, {
156
157
  className: "flex",
157
- children: /* @__PURE__ */ D(x.Trigger, {
158
- ref: r,
159
- className: d("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
158
+ children: /* @__PURE__ */ H(L.Trigger, {
159
+ ref: i,
160
+ className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
160
161
  ...n,
161
- children: [t, /* @__PURE__ */ E($e, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
162
+ children: [t, /* @__PURE__ */ V(Ie, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
162
163
  })
163
164
  }));
164
- Gn.displayName = x.Trigger.displayName;
165
- var Kn = S.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ E(x.Content, {
166
- ref: r,
165
+ Ln.displayName = L.Trigger.displayName;
166
+ var Rn = R.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ V(L.Content, {
167
+ ref: i,
167
168
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
168
169
  ...n,
169
- children: /* @__PURE__ */ E("div", {
170
- className: d("pb-4 pt-0", e),
170
+ children: /* @__PURE__ */ V("div", {
171
+ className: r("pb-4 pt-0", e),
171
172
  children: t
172
173
  })
173
174
  }));
174
- Kn.displayName = x.Content.displayName;
175
+ Rn.displayName = L.Content.displayName;
175
176
  //#endregion
176
177
  //#region src/components/ui/checkbox.tsx
177
- function qn({ className: e, ...t }) {
178
- return /* @__PURE__ */ E(dn.Root, {
178
+ function zn({ className: e, ...t }) {
179
+ return /* @__PURE__ */ V(Yt.Root, {
179
180
  "data-slot": "checkbox",
180
- className: d("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
181
+ className: r("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
181
182
  ...t,
182
- children: /* @__PURE__ */ E(dn.Indicator, {
183
+ children: /* @__PURE__ */ V(Yt.Indicator, {
183
184
  "data-slot": "checkbox-indicator",
184
185
  className: "grid place-content-center text-current transition-none",
185
- children: /* @__PURE__ */ E(se, { className: "size-3.5" })
186
+ children: /* @__PURE__ */ V(b, { className: "size-3.5" })
186
187
  })
187
188
  });
188
189
  }
189
190
  //#endregion
190
191
  //#region src/components/ui/drawer.tsx
191
- function Jn({ ...e }) {
192
- return /* @__PURE__ */ E(A.Root, {
192
+ function Bn({ ...e }) {
193
+ return /* @__PURE__ */ V(W.Root, {
193
194
  "data-slot": "drawer",
194
195
  ...e
195
196
  });
196
197
  }
197
- function Yn({ ...e }) {
198
- return /* @__PURE__ */ E(A.Trigger, {
198
+ function Vn({ ...e }) {
199
+ return /* @__PURE__ */ V(W.Trigger, {
199
200
  "data-slot": "drawer-trigger",
200
201
  ...e
201
202
  });
202
203
  }
203
- function Xn({ ...e }) {
204
- return /* @__PURE__ */ E(A.Portal, {
204
+ function Hn({ ...e }) {
205
+ return /* @__PURE__ */ V(W.Portal, {
205
206
  "data-slot": "drawer-portal",
206
207
  ...e
207
208
  });
208
209
  }
209
- function Zn({ ...e }) {
210
- return /* @__PURE__ */ E(A.Close, {
210
+ function Un({ ...e }) {
211
+ return /* @__PURE__ */ V(W.Close, {
211
212
  "data-slot": "drawer-close",
212
213
  ...e
213
214
  });
214
215
  }
215
- function Qn({ className: e, ...t }) {
216
- return /* @__PURE__ */ E(A.Overlay, {
216
+ function Wn({ className: e, ...t }) {
217
+ return /* @__PURE__ */ V(W.Overlay, {
217
218
  "data-slot": "drawer-overlay",
218
- className: d("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),
219
+ 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),
219
220
  ...t
220
221
  });
221
222
  }
222
- function $n({ className: e, children: t, ...n }) {
223
- return /* @__PURE__ */ D(Xn, {
223
+ function Gn({ className: e, children: t, ...n }) {
224
+ return /* @__PURE__ */ H(Hn, {
224
225
  "data-slot": "drawer-portal",
225
- children: [/* @__PURE__ */ E(Qn, {}), /* @__PURE__ */ D(A.Content, {
226
+ children: [/* @__PURE__ */ V(Wn, {}), /* @__PURE__ */ H(W.Content, {
226
227
  "data-slot": "drawer-content",
227
- className: d("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),
228
+ 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),
228
229
  ...n,
229
- children: [/* @__PURE__ */ E("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]
230
+ children: [/* @__PURE__ */ V("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]
230
231
  })]
231
232
  });
232
233
  }
233
- function er({ className: e, ...t }) {
234
- return /* @__PURE__ */ E("div", {
234
+ function Kn({ className: e, ...t }) {
235
+ return /* @__PURE__ */ V("div", {
235
236
  "data-slot": "drawer-header",
236
- className: d("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),
237
+ 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),
237
238
  ...t
238
239
  });
239
240
  }
240
- function tr({ className: e, ...t }) {
241
- return /* @__PURE__ */ E("div", {
241
+ function qn({ className: e, ...t }) {
242
+ return /* @__PURE__ */ V("div", {
242
243
  "data-slot": "drawer-footer",
243
- className: d("mt-auto flex flex-col gap-2 p-4", e),
244
+ className: r("mt-auto flex flex-col gap-2 p-4", e),
244
245
  ...t
245
246
  });
246
247
  }
247
- function nr({ className: e, ...t }) {
248
- return /* @__PURE__ */ E(A.Title, {
248
+ function Jn({ className: e, ...t }) {
249
+ return /* @__PURE__ */ V(W.Title, {
249
250
  "data-slot": "drawer-title",
250
- className: d("text-foreground font-semibold", e),
251
+ className: r("text-foreground font-semibold", e),
251
252
  ...t
252
253
  });
253
254
  }
254
- function rr({ className: e, ...t }) {
255
- return /* @__PURE__ */ E(A.Description, {
255
+ function Yn({ className: e, ...t }) {
256
+ return /* @__PURE__ */ V(W.Description, {
256
257
  "data-slot": "drawer-description",
257
- className: d("text-muted-foreground text-sm", e),
258
+ className: r("text-muted-foreground text-sm", e),
258
259
  ...t
259
260
  });
260
261
  }
261
262
  //#endregion
262
263
  //#region src/components/ui/label.tsx
263
- function ir({ className: e, ...t }) {
264
- return /* @__PURE__ */ E(gn.Root, {
264
+ function Xn({ className: e, ...t }) {
265
+ return /* @__PURE__ */ V(en.Root, {
265
266
  "data-slot": "label",
266
- className: d("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),
267
+ 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),
267
268
  ...t
268
269
  });
269
270
  }
270
271
  //#endregion
271
272
  //#region src/components/ui/form.tsx
272
- var ar = pn, or = S.createContext({}), sr = ({ ...e }) => {
273
- let t = !!e.rules?.required, n = S.useMemo(() => ({
273
+ var Zn = Zt, Qn = R.createContext({}), $n = ({ ...e }) => {
274
+ let t = !!e.rules?.required, n = R.useMemo(() => ({
274
275
  name: e.name,
275
276
  required: t
276
277
  }), [e.name, t]);
277
- return /* @__PURE__ */ E(or.Provider, {
278
+ return /* @__PURE__ */ V(Qn.Provider, {
278
279
  value: n,
279
- children: /* @__PURE__ */ E(fn, { ...e })
280
+ children: /* @__PURE__ */ V(Xt, { ...e })
280
281
  });
281
- }, z = () => {
282
- let e = S.useContext(or), t = S.useContext(cr), { getFieldState: n } = mn(), r = hn({ name: e.name }), i = n(e.name, r);
282
+ }, er = () => {
283
+ let e = R.useContext(Qn), t = R.useContext(tr), { getFieldState: n } = Qt(), r = $t({ name: e.name }), i = n(e.name, r);
283
284
  if (!e) throw Error("useFormField should be used within <FormField>");
284
285
  let { id: a } = t;
285
286
  return {
@@ -291,35 +292,35 @@ var ar = pn, or = S.createContext({}), sr = ({ ...e }) => {
291
292
  formMessageId: `${a}-form-item-message`,
292
293
  ...i
293
294
  };
294
- }, cr = S.createContext({});
295
- function lr({ className: e, ...t }) {
296
- let n = S.useId(), r = S.useMemo(() => ({ id: n }), [n]);
297
- return /* @__PURE__ */ E(cr.Provider, {
298
- value: r,
299
- children: /* @__PURE__ */ E("div", {
295
+ }, tr = R.createContext({});
296
+ function nr({ className: e, ...t }) {
297
+ let n = R.useId(), i = R.useMemo(() => ({ id: n }), [n]);
298
+ return /* @__PURE__ */ V(tr.Provider, {
299
+ value: i,
300
+ children: /* @__PURE__ */ V("div", {
300
301
  "data-slot": "form-item",
301
- className: d("grid gap-2", e),
302
+ className: r("grid gap-2", e),
302
303
  ...t
303
304
  })
304
305
  });
305
306
  }
306
- function ur({ className: e, children: t, ...n }) {
307
- let { error: r, formItemId: i, required: a } = z();
308
- return /* @__PURE__ */ D(ir, {
307
+ function rr({ className: e, children: t, ...n }) {
308
+ let { error: i, formItemId: a, required: o } = er();
309
+ return /* @__PURE__ */ H(Xn, {
309
310
  "data-slot": "form-label",
310
- "data-error": !!r,
311
- className: d("data-[error=true]:text-destructive", e),
312
- htmlFor: i,
311
+ "data-error": !!i,
312
+ className: r("data-[error=true]:text-destructive", e),
313
+ htmlFor: a,
313
314
  ...n,
314
- children: [t, a ? /* @__PURE__ */ E("span", {
315
+ children: [t, o ? /* @__PURE__ */ V("span", {
315
316
  className: "text-destructive",
316
317
  children: " *"
317
318
  }) : null]
318
319
  });
319
320
  }
320
- function dr({ ...e }) {
321
- let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = z();
322
- return /* @__PURE__ */ E(un, {
321
+ function ir({ ...e }) {
322
+ let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = er();
323
+ return /* @__PURE__ */ V(qt, {
323
324
  "data-slot": "form-control",
324
325
  id: n,
325
326
  "aria-describedby": t ? `${r} ${i}` : `${r}`,
@@ -327,84 +328,84 @@ function dr({ ...e }) {
327
328
  ...e
328
329
  });
329
330
  }
330
- function fr({ className: e, ...t }) {
331
- let { formDescriptionId: n } = z();
332
- return /* @__PURE__ */ E("p", {
331
+ function ar({ className: e, ...t }) {
332
+ let { formDescriptionId: n } = er();
333
+ return /* @__PURE__ */ V("p", {
333
334
  "data-slot": "form-description",
334
335
  id: n,
335
- className: d("text-muted-foreground text-sm", e),
336
+ className: r("text-muted-foreground text-sm", e),
336
337
  ...t
337
338
  });
338
339
  }
339
- function pr({ className: e, ...t }) {
340
- let { error: n, formMessageId: r } = z(), i = n ? String(n?.message ?? "") : t.children;
341
- return i ? /* @__PURE__ */ E("p", {
340
+ function or({ className: e, ...t }) {
341
+ let { error: n, formMessageId: i } = er(), a = n ? String(n?.message ?? "") : t.children;
342
+ return a ? /* @__PURE__ */ V("p", {
342
343
  "data-slot": "form-message",
343
- id: r,
344
- className: d("text-destructive text-sm", e),
344
+ id: i,
345
+ className: r("text-destructive text-sm", e),
345
346
  ...t,
346
- children: i
347
+ children: a
347
348
  }) : null;
348
349
  }
349
350
  //#endregion
350
351
  //#region src/components/ui/form-actions.tsx
351
- function B({ children: e, className: t }) {
352
- return /* @__PURE__ */ E("div", {
353
- className: d("flex items-center justify-end gap-3 pt-4 border-t", t),
352
+ function sr({ children: e, className: t }) {
353
+ return /* @__PURE__ */ V("div", {
354
+ className: r("flex items-center justify-end gap-3 pt-4 border-t", t),
354
355
  children: e
355
356
  });
356
357
  }
357
- function mr({ onClick: e, children: t, className: n }) {
358
- let { t: r } = k();
359
- return /* @__PURE__ */ D(_, {
358
+ function cr({ onClick: e, children: t, className: n }) {
359
+ let { t: r } = U();
360
+ return /* @__PURE__ */ H(P, {
360
361
  type: "button",
361
362
  variant: "outline",
362
363
  onClick: e,
363
364
  className: n,
364
- children: [/* @__PURE__ */ E(Dn, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
365
+ children: [/* @__PURE__ */ V(fn, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
365
366
  });
366
367
  }
367
- function hr({ loading: e, disabled: t, children: n, className: r }) {
368
- let { t: i } = k();
369
- return /* @__PURE__ */ D(_, {
368
+ function lr({ loading: e, disabled: t, children: n, className: r }) {
369
+ let { t: i } = U();
370
+ return /* @__PURE__ */ H(P, {
370
371
  type: "submit",
371
372
  disabled: t || e,
372
373
  className: r,
373
- children: [e ? /* @__PURE__ */ E(Sn, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(xn, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
374
+ children: [e ? /* @__PURE__ */ V(sn, { className: "size-4 animate-spin" }) : /* @__PURE__ */ V(on, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
374
375
  });
375
376
  }
376
- function gr({ onClick: e, children: t, className: n }) {
377
- let { t: r } = k();
378
- return /* @__PURE__ */ D(_, {
377
+ function ur({ onClick: e, children: t, className: n }) {
378
+ let { t: i } = U();
379
+ return /* @__PURE__ */ H(P, {
379
380
  type: "button",
380
381
  variant: "outline",
381
382
  onClick: e,
382
- className: d("md:hidden text-destructive border-destructive/30 hover:bg-destructive/10 mr-auto", n),
383
- children: [/* @__PURE__ */ E(Tn, { className: "size-4" }), t ?? r("forms.formActions.delete")]
383
+ className: r("md:hidden text-destructive border-destructive/30 hover:bg-destructive/10 mr-auto", n),
384
+ children: [/* @__PURE__ */ V(un, { className: "size-4" }), t ?? i("forms.formActions.delete")]
384
385
  });
385
386
  }
386
- B.Cancel = mr, B.Submit = hr, B.Delete = gr;
387
- var _r = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ E(lr, { children: /* @__PURE__ */ E("div", {
388
- className: d("flex w-full flex-row items-center gap-4", e),
387
+ sr.Cancel = cr, sr.Submit = lr, sr.Delete = ur;
388
+ var dr = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ V(nr, { children: /* @__PURE__ */ V("div", {
389
+ className: r("flex w-full flex-row items-center gap-4", e),
389
390
  ...t
390
391
  }) }), {
391
- Left: ({ className: e, ...t }) => /* @__PURE__ */ E("div", {
392
- className: d("flex w-1/2 flex-col gap-1", e),
392
+ Left: ({ className: e, ...t }) => /* @__PURE__ */ V("div", {
393
+ className: r("flex w-1/2 flex-col gap-1", e),
393
394
  ...t
394
395
  }),
395
- Right: ({ className: e, ...t }) => /* @__PURE__ */ E("div", {
396
- className: d("flex w-1/2 justify-end", e),
396
+ Right: ({ className: e, ...t }) => /* @__PURE__ */ V("div", {
397
+ className: r("flex w-1/2 justify-end", e),
397
398
  ...t
398
399
  }),
399
- Label: ({ className: e, ...t }) => /* @__PURE__ */ E(ur, {
400
- className: d(e),
400
+ Label: ({ className: e, ...t }) => /* @__PURE__ */ V(rr, {
401
+ className: r(e),
401
402
  ...t
402
403
  }),
403
- Description: ({ className: e, ...t }) => /* @__PURE__ */ E(fr, {
404
- className: d(e),
404
+ Description: ({ className: e, ...t }) => /* @__PURE__ */ V(ar, {
405
+ className: r(e),
405
406
  ...t
406
407
  })
407
- }), vr = O("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", {
408
+ }), fr = Jt("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", {
408
409
  variants: { variant: {
409
410
  default: [
410
411
  "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)]",
@@ -439,190 +440,192 @@ var _r = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ E(lr, { child
439
440
  } },
440
441
  defaultVariants: { variant: "default" }
441
442
  });
442
- function yr({ className: e, variant: t, ...n }) {
443
- return /* @__PURE__ */ E(j.Root, {
443
+ function pr({ className: e, variant: t, ...n }) {
444
+ return /* @__PURE__ */ V(pn.Root, {
444
445
  "data-slot": "gradient-switch",
445
- className: d(vr({ variant: t }), e),
446
+ className: r(fr({ variant: t }), e),
446
447
  ...n,
447
- children: /* @__PURE__ */ E(j.Thumb, {
448
+ children: /* @__PURE__ */ V(pn.Thumb, {
448
449
  "data-slot": "gradient-switch-thumb",
449
- className: d("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")
450
+ 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")
450
451
  })
451
452
  });
452
453
  }
453
454
  //#endregion
454
455
  //#region src/components/ui/glass-card.tsx
455
- var br = "rounded-2xl p-6 sm:p-8";
456
- function V({ children: e, color: t, colorDark: n, className: r, style: i, ...a }) {
457
- let o = {};
458
- return t && (o["--glass-card-color"] = t), n ? o["--glass-card-color-dark"] = n : t && (o["--glass-card-color-dark"] = t), /* @__PURE__ */ E("div", {
459
- className: d("vig-glass-card", br, r),
456
+ var mr = "rounded-2xl p-6 sm:p-8";
457
+ function hr({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
458
+ let s = {};
459
+ return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ V("div", {
460
+ className: r("vig-glass-card", mr, i),
460
461
  style: {
461
- ...i ?? {},
462
- ...o
462
+ ...a ?? {},
463
+ ...s
463
464
  },
464
- ...a,
465
+ ...o,
465
466
  children: e
466
467
  });
467
468
  }
468
469
  //#endregion
469
470
  //#region src/components/ui/pulse-ring.tsx
470
- function H({ children: e, color: t, colorDark: n, paused: r, className: i, style: a, ...o }) {
471
- let s = {};
472
- return t && (s["--pulse-ring-color"] = t), n ? s["--pulse-ring-color-dark"] = n : t && (s["--pulse-ring-color-dark"] = t), /* @__PURE__ */ E("div", {
473
- className: `vig-pulse-ring ${r ? "" : "vig-pulse-ring--active"} ${i ?? ""}`,
471
+ function gr({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
472
+ let c = {};
473
+ return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ V("div", {
474
+ className: r("vig-pulse-ring", !i && "vig-pulse-ring--active", a),
474
475
  style: {
475
- ...a ?? {},
476
- ...s
476
+ ...o ?? {},
477
+ ...c
477
478
  },
478
- ...o,
479
+ ...s,
479
480
  children: e
480
481
  });
481
482
  }
482
483
  //#endregion
483
484
  //#region src/components/ui/hover-card.tsx
484
- var xr = M.Root, Sr = M.Trigger, Cr = S.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ E(M.Content, {
485
- ref: i,
485
+ var _r = mn.Root, vr = mn.Trigger, yr = R.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ V(mn.Content, {
486
+ ref: a,
486
487
  align: t,
487
488
  sideOffset: n,
488
- className: d("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),
489
- ...r
489
+ 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),
490
+ ...i
490
491
  }));
491
- Cr.displayName = M.Content.displayName;
492
+ yr.displayName = mn.Content.displayName;
492
493
  //#endregion
493
494
  //#region src/components/ui/navigation-menu.tsx
494
- function wr({ className: e, children: t, viewport: n = !0, ...r }) {
495
- return /* @__PURE__ */ D(N.Root, {
495
+ function br({ className: e, children: t, viewport: n = !0, ...i }) {
496
+ let { t: a } = U();
497
+ return /* @__PURE__ */ H(G.Root, {
496
498
  "data-slot": "navigation-menu",
497
499
  "data-viewport": n,
498
- className: d("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
499
- ...r,
500
- children: [t, n && /* @__PURE__ */ E(Ar, {})]
500
+ "aria-label": a("common.mainNavigation", { defaultValue: "Main navigation" }),
501
+ className: r("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
502
+ ...i,
503
+ children: [t, n && /* @__PURE__ */ V(Er, {})]
501
504
  });
502
505
  }
503
- function Tr({ className: e, ...t }) {
504
- return /* @__PURE__ */ E(N.List, {
506
+ function xr({ className: e, ...t }) {
507
+ return /* @__PURE__ */ V(G.List, {
505
508
  "data-slot": "navigation-menu-list",
506
- className: d("group flex flex-1 list-none items-center justify-center gap-1", e),
509
+ className: r("group flex flex-1 list-none items-center justify-center gap-1", e),
507
510
  ...t
508
511
  });
509
512
  }
510
- function Er({ className: e, ...t }) {
511
- return /* @__PURE__ */ E(N.Item, {
513
+ function Sr({ className: e, ...t }) {
514
+ return /* @__PURE__ */ V(G.Item, {
512
515
  "data-slot": "navigation-menu-item",
513
- className: d("relative", e),
516
+ className: r("relative", e),
514
517
  ...t
515
518
  });
516
519
  }
517
- var Dr = O("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");
518
- function Or({ className: e, children: t, ...n }) {
519
- return /* @__PURE__ */ D(N.Trigger, {
520
+ var Cr = Jt("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");
521
+ function wr({ className: e, children: t, ...n }) {
522
+ return /* @__PURE__ */ H(G.Trigger, {
520
523
  "data-slot": "navigation-menu-trigger",
521
- className: d(Dr(), "group", e),
524
+ className: r(Cr(), "group", e),
522
525
  ...n,
523
526
  children: [
524
527
  t,
525
528
  " ",
526
- /* @__PURE__ */ E($e, {
529
+ /* @__PURE__ */ V(Ie, {
527
530
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
528
531
  "aria-hidden": "true"
529
532
  })
530
533
  ]
531
534
  });
532
535
  }
533
- function kr({ className: e, ...t }) {
534
- return /* @__PURE__ */ E(N.Content, {
536
+ function Tr({ className: e, ...t }) {
537
+ return /* @__PURE__ */ V(G.Content, {
535
538
  "data-slot": "navigation-menu-content",
536
- className: d("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),
539
+ 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),
537
540
  ...t
538
541
  });
539
542
  }
540
- function Ar({ className: e, ...t }) {
541
- return /* @__PURE__ */ E("div", {
542
- className: d("absolute top-full left-0 isolate z-50 flex justify-center"),
543
- children: /* @__PURE__ */ E(N.Viewport, {
543
+ function Er({ className: e, ...t }) {
544
+ return /* @__PURE__ */ V("div", {
545
+ className: r("absolute top-full left-0 isolate z-50 flex justify-center"),
546
+ children: /* @__PURE__ */ V(G.Viewport, {
544
547
  "data-slot": "navigation-menu-viewport",
545
- className: d("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),
548
+ 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),
546
549
  ...t
547
550
  })
548
551
  });
549
552
  }
550
- function jr({ className: e, ...t }) {
551
- return /* @__PURE__ */ E(N.Link, {
553
+ function Dr({ className: e, ...t }) {
554
+ return /* @__PURE__ */ V(G.Link, {
552
555
  "data-slot": "navigation-menu-link",
553
- className: d("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),
556
+ 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),
554
557
  ...t
555
558
  });
556
559
  }
557
- function Mr({ className: e, ...t }) {
558
- return /* @__PURE__ */ E(N.Indicator, {
560
+ function Or({ className: e, ...t }) {
561
+ return /* @__PURE__ */ V(G.Indicator, {
559
562
  "data-slot": "navigation-menu-indicator",
560
- className: d("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),
563
+ 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),
561
564
  ...t,
562
- children: /* @__PURE__ */ E("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
565
+ children: /* @__PURE__ */ V("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
563
566
  });
564
567
  }
565
568
  //#endregion
566
569
  //#region src/components/ui/pagination.tsx
567
- function Nr({ className: e, ...t }) {
568
- let { t: n } = k();
569
- return /* @__PURE__ */ E("nav", {
570
+ function kr({ className: e, ...t }) {
571
+ let { t: n } = U();
572
+ return /* @__PURE__ */ V("nav", {
570
573
  role: "navigation",
571
574
  "aria-label": n("common.pagination", { defaultValue: "Pagination" }),
572
- className: d("mx-auto flex w-full justify-center", e),
575
+ className: r("mx-auto flex w-full justify-center", e),
573
576
  ...t
574
577
  });
575
578
  }
576
- var Pr = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ E("ol", {
579
+ var Ar = R.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ V("ol", {
577
580
  ref: n,
578
- className: d("flex flex-row items-center gap-1", e),
581
+ className: r("flex flex-row items-center gap-1", e),
579
582
  ...t
580
583
  }));
581
- Pr.displayName = "PaginationContent";
582
- var Fr = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ E("li", {
584
+ Ar.displayName = "PaginationContent";
585
+ var jr = R.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ V("li", {
583
586
  ref: n,
584
- className: d("", e),
587
+ className: r("", e),
585
588
  ...t
586
589
  }));
587
- Fr.displayName = "PaginationItem";
588
- function U({ className: e, isActive: t, size: n = "icon", children: r, ...i }) {
589
- return /* @__PURE__ */ E("a", {
590
+ jr.displayName = "PaginationItem";
591
+ function Mr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
592
+ return /* @__PURE__ */ V("a", {
590
593
  "aria-current": t ? "page" : void 0,
591
- className: d(Xt({
594
+ className: r(Dt({
592
595
  variant: t ? "outline" : "ghost",
593
596
  size: n
594
597
  }), t && "bg-accent text-accent-foreground", e),
595
- ...i,
596
- children: r
598
+ ...a,
599
+ children: i
597
600
  });
598
601
  }
599
- function Ir({ className: e, ...t }) {
600
- let { t: n } = k();
601
- return /* @__PURE__ */ D(U, {
602
+ function Nr({ className: e, ...t }) {
603
+ let { t: n } = U();
604
+ return /* @__PURE__ */ H(Mr, {
602
605
  "aria-label": n("common.goToPreviousPage", { defaultValue: "Go to previous page" }),
603
606
  size: "default",
604
- className: d("gap-1 pl-2.5", e),
607
+ className: r("gap-1 pl-2.5", e),
605
608
  ...t,
606
- children: [/* @__PURE__ */ E(Ln, { className: "h-4 w-4" }), /* @__PURE__ */ E("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
609
+ children: [/* @__PURE__ */ V(kn, { className: "h-4 w-4" }), /* @__PURE__ */ V("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
607
610
  });
608
611
  }
609
- function Lr({ className: e, ...n }) {
610
- let { t: r } = k();
611
- return /* @__PURE__ */ D(U, {
612
- "aria-label": r("common.goToNextPage", { defaultValue: "Go to next page" }),
612
+ function Pr({ className: e, ...t }) {
613
+ let { t: n } = U();
614
+ return /* @__PURE__ */ H(Mr, {
615
+ "aria-label": n("common.goToNextPage", { defaultValue: "Go to next page" }),
613
616
  size: "default",
614
- className: d("gap-1 pr-2.5", e),
615
- ...n,
616
- children: [/* @__PURE__ */ E("span", { children: r("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ E(t, { className: "h-4 w-4" })]
617
+ className: r("gap-1 pr-2.5", e),
618
+ ...t,
619
+ children: [/* @__PURE__ */ V("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ V(a, { className: "h-4 w-4" })]
617
620
  });
618
621
  }
619
- function Rr({ className: e, ...t }) {
620
- let { t: n } = k();
621
- return /* @__PURE__ */ D("span", {
622
+ function Fr({ className: e, ...t }) {
623
+ let { t: n } = U();
624
+ return /* @__PURE__ */ H("span", {
622
625
  "aria-hidden": "true",
623
- className: d("flex h-9 w-9 items-center justify-center", e),
626
+ className: r("flex h-9 w-9 items-center justify-center", e),
624
627
  ...t,
625
- children: [/* @__PURE__ */ E(dt, { className: "h-4 w-4" }), /* @__PURE__ */ E("span", {
628
+ children: [/* @__PURE__ */ V(Je, { className: "h-4 w-4" }), /* @__PURE__ */ V("span", {
626
629
  className: "sr-only",
627
630
  children: n("common.morePages", { defaultValue: "More pages" })
628
631
  })]
@@ -630,41 +633,62 @@ function Rr({ className: e, ...t }) {
630
633
  }
631
634
  //#endregion
632
635
  //#region src/components/ui/popover.tsx
633
- function zr({ ...e }) {
634
- return /* @__PURE__ */ E(P.Root, {
636
+ function Ir({ ...e }) {
637
+ return /* @__PURE__ */ V(hn.Root, {
635
638
  "data-slot": "popover",
636
639
  ...e
637
640
  });
638
641
  }
639
- function Br({ ...e }) {
640
- return /* @__PURE__ */ E(P.Trigger, {
642
+ function Lr({ ...e }) {
643
+ return /* @__PURE__ */ V(hn.Trigger, {
641
644
  "data-slot": "popover-trigger",
642
645
  ...e
643
646
  });
644
647
  }
645
- function Vr({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
646
- return /* @__PURE__ */ E(P.Portal, { children: /* @__PURE__ */ E(P.Content, {
648
+ function Rr({ className: e, align: t = "center", sideOffset: n = 4, ...i }) {
649
+ return /* @__PURE__ */ V(hn.Portal, { children: /* @__PURE__ */ V(hn.Content, {
647
650
  "data-slot": "popover-content",
648
651
  align: t,
649
652
  sideOffset: n,
650
- className: d("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
651
- ...r
653
+ className: r("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
654
+ ...i
652
655
  }) });
653
656
  }
654
- function Hr({ ...e }) {
655
- return /* @__PURE__ */ E(P.Anchor, {
657
+ function zr({ ...e }) {
658
+ return /* @__PURE__ */ V(hn.Anchor, {
656
659
  "data-slot": "popover-anchor",
657
660
  ...e
658
661
  });
659
662
  }
663
+ function Br({ className: e, ...t }) {
664
+ return /* @__PURE__ */ V("div", {
665
+ "data-slot": "popover-header",
666
+ className: r("flex flex-col gap-1 text-sm", e),
667
+ ...t
668
+ });
669
+ }
670
+ function Vr({ className: e, ...t }) {
671
+ return /* @__PURE__ */ V("div", {
672
+ "data-slot": "popover-title",
673
+ className: r("font-medium", e),
674
+ ...t
675
+ });
676
+ }
677
+ function Hr({ className: e, ...t }) {
678
+ return /* @__PURE__ */ V("p", {
679
+ "data-slot": "popover-description",
680
+ className: r("text-muted-foreground", e),
681
+ ...t
682
+ });
683
+ }
660
684
  //#endregion
661
685
  //#region src/components/ui/progress.tsx
662
686
  function Ur({ className: e, value: t, ...n }) {
663
- return /* @__PURE__ */ E(On.Root, {
687
+ return /* @__PURE__ */ V(gn.Root, {
664
688
  "data-slot": "progress",
665
- className: d("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
689
+ className: r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
666
690
  ...n,
667
- children: /* @__PURE__ */ E(On.Indicator, {
691
+ children: /* @__PURE__ */ V(gn.Indicator, {
668
692
  "data-slot": "progress-indicator",
669
693
  className: "h-full w-full flex-1 bg-primary transition-all",
670
694
  style: { transform: `translateX(-${100 - (t || 0)}%)` }
@@ -674,28 +698,28 @@ function Ur({ className: e, value: t, ...n }) {
674
698
  //#endregion
675
699
  //#region src/components/ui/resizable.tsx
676
700
  function Wr({ className: e, ...t }) {
677
- return /* @__PURE__ */ E(kn, {
701
+ return /* @__PURE__ */ V(_n, {
678
702
  "data-slot": "resizable-panel-group",
679
- className: d("flex h-full w-full data-[panel-group-orientation=vertical]:flex-col", e),
703
+ className: r("flex h-full w-full", e),
680
704
  ...t
681
705
  });
682
706
  }
683
707
  function Gr({ overflowHidden: e, className: t, ...n }) {
684
- return /* @__PURE__ */ E(An, {
708
+ return /* @__PURE__ */ V(vn, {
685
709
  "data-slot": "resizable-panel",
686
- className: d(e && "[&>div]:overflow-hidden!", t),
710
+ className: r(e && "[&>div]:overflow-hidden!", t),
687
711
  style: e ? { overflow: "hidden" } : void 0,
688
712
  ...n
689
713
  });
690
714
  }
691
715
  function Kr({ withHandle: e, className: t, ...n }) {
692
- return /* @__PURE__ */ E(jn, {
716
+ return /* @__PURE__ */ V(yn, {
693
717
  "data-slot": "resizable-handle",
694
- className: d("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 data-[panel-group-orientation=vertical]:h-px data-[panel-group-orientation=vertical]:w-full data-[panel-group-orientation=vertical]:after:inset-x-0 data-[panel-group-orientation=vertical]:after:-top-2 data-[panel-group-orientation=vertical]:after:-bottom-2 [&[data-panel-group-direction=vertical]>div]:rotate-90", t),
718
+ 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),
695
719
  ...n,
696
- children: e && /* @__PURE__ */ E("div", {
720
+ children: e && /* @__PURE__ */ V("div", {
697
721
  className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
698
- children: /* @__PURE__ */ E(Bn, { className: "size-2.5" })
722
+ children: /* @__PURE__ */ V(Mn, { className: "size-2.5" })
699
723
  })
700
724
  });
701
725
  }
@@ -708,38 +732,38 @@ var qr = {
708
732
  green: "bg-green-50 dark:bg-green-950/30"
709
733
  };
710
734
  function Jr({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
711
- let { t: s } = k();
712
- return /* @__PURE__ */ D("div", {
735
+ let { t: s } = U();
736
+ return /* @__PURE__ */ H("div", {
713
737
  className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${qr[o]}`,
714
- children: [/* @__PURE__ */ D("div", {
738
+ children: [/* @__PURE__ */ H("div", {
715
739
  className: "flex items-center gap-3 min-w-0",
716
- children: [/* @__PURE__ */ E("h3", {
740
+ children: [/* @__PURE__ */ V("h3", {
717
741
  className: "text-lg font-semibold text-foreground truncate",
718
742
  children: e
719
- }), t && /* @__PURE__ */ E("div", {
743
+ }), t && /* @__PURE__ */ V("div", {
720
744
  className: "flex items-center gap-1.5 shrink-0",
721
745
  children: t
722
746
  })]
723
- }), /* @__PURE__ */ E("div", {
747
+ }), /* @__PURE__ */ V("div", {
724
748
  className: "flex gap-2 shrink-0",
725
- children: n ?? /* @__PURE__ */ D(ln, { children: [/* @__PURE__ */ D(_, {
749
+ children: n ?? /* @__PURE__ */ H(Kt, { children: [/* @__PURE__ */ H(P, {
726
750
  type: "submit",
727
751
  size: "sm",
728
752
  loading: i,
729
753
  disabled: a,
730
- children: [/* @__PURE__ */ E(xn, { className: "size-4" }), s("forms.formActions.saveChanges")]
731
- }), r && /* @__PURE__ */ D(_, {
754
+ children: [/* @__PURE__ */ V(on, { className: "size-4" }), s("forms.formActions.saveChanges")]
755
+ }), r && /* @__PURE__ */ H(P, {
732
756
  type: "button",
733
757
  variant: "outline",
734
758
  size: "sm",
735
759
  onClick: r,
736
- children: [/* @__PURE__ */ E(Dn, { className: "size-4" }), s("forms.formActions.cancel")]
760
+ children: [/* @__PURE__ */ V(fn, { className: "size-4" }), s("forms.formActions.cancel")]
737
761
  })] })
738
762
  })]
739
763
  });
740
764
  }
741
765
  function Yr({ children: e }) {
742
- return /* @__PURE__ */ E(u, {
766
+ return /* @__PURE__ */ V(f, {
743
767
  variant: "outline",
744
768
  className: "text-xs",
745
769
  children: e
@@ -748,205 +772,205 @@ function Yr({ children: e }) {
748
772
  Jr.Badge = Yr;
749
773
  //#endregion
750
774
  //#region src/components/ui/slider.tsx
751
- function Xr({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, "aria-label": a, "aria-labelledby": o, ...s }) {
752
- let c = S.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], [
775
+ function Xr({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
776
+ let l = R.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
753
777
  n,
754
778
  t,
755
- r,
756
- i
779
+ i,
780
+ a
757
781
  ]);
758
- return /* @__PURE__ */ D(F.Root, {
782
+ return /* @__PURE__ */ H(bn.Root, {
759
783
  "data-slot": "slider",
760
784
  defaultValue: t,
761
785
  value: n,
762
- min: r,
763
- max: i,
764
- className: d("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),
765
- ...s,
766
- children: [/* @__PURE__ */ E(F.Track, {
786
+ min: i,
787
+ max: a,
788
+ 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),
789
+ ...c,
790
+ children: [/* @__PURE__ */ V(bn.Track, {
767
791
  "data-slot": "slider-track",
768
- className: d("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"),
769
- children: /* @__PURE__ */ E(F.Range, {
792
+ 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"),
793
+ children: /* @__PURE__ */ V(bn.Range, {
770
794
  "data-slot": "slider-range",
771
- className: d("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
795
+ className: r("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
772
796
  })
773
- }), Array.from({ length: c.length }, (e, t) => /* @__PURE__ */ E(F.Thumb, {
797
+ }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ V(bn.Thumb, {
774
798
  "data-slot": "slider-thumb",
775
- "aria-label": a && c.length > 1 ? `${a} ${t + 1}` : a,
776
- "aria-labelledby": o,
799
+ "aria-label": o && l.length > 1 ? `${o} ${t + 1}` : o,
800
+ "aria-labelledby": s,
777
801
  className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
778
802
  }, t))]
779
803
  });
780
804
  }
781
805
  //#endregion
782
806
  //#region src/components/ui/stepper.tsx
783
- var W = C({
807
+ var Zr = Vt({
784
808
  completedSteps: [],
785
809
  allDone: !1
786
810
  });
787
- function G({ completedSteps: e, children: t, className: n }) {
788
- let r = e.length > 0 && e.every(Boolean);
789
- return /* @__PURE__ */ E(W.Provider, {
811
+ function Qr({ completedSteps: e, children: t, className: n }) {
812
+ let i = e.length > 0 && e.every(Boolean);
813
+ return /* @__PURE__ */ V(Zr.Provider, {
790
814
  value: {
791
815
  completedSteps: e,
792
- allDone: r
816
+ allDone: i
793
817
  },
794
- children: /* @__PURE__ */ D("div", {
795
- className: d("relative", n),
796
- children: [/* @__PURE__ */ E("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
818
+ children: /* @__PURE__ */ H("div", {
819
+ className: r("relative", n),
820
+ children: [/* @__PURE__ */ V("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
797
821
  })
798
822
  });
799
823
  }
800
- function Zr({ index: e, children: t, className: n }) {
801
- let { completedSteps: r } = w(W), i = r[e] ?? !1, a = e + 1;
802
- return /* @__PURE__ */ D("div", {
803
- className: d("relative flex items-start gap-4 pb-8", n),
804
- children: [/* @__PURE__ */ E("div", {
824
+ function $r({ index: e, children: t, className: n }) {
825
+ let { completedSteps: i } = Ut(Zr), a = i[e] ?? !1, o = e + 1;
826
+ return /* @__PURE__ */ H("div", {
827
+ className: r("relative flex items-start gap-4 pb-8", n),
828
+ children: [/* @__PURE__ */ V("div", {
805
829
  className: "flex flex-col items-center",
806
- children: /* @__PURE__ */ E("div", {
807
- className: d("relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold transition-all duration-500", i ? "bg-emerald-500 text-white shadow-md shadow-emerald-500/30 scale-105" : "bg-primary text-primary-foreground"),
808
- children: i ? /* @__PURE__ */ E(yn, { className: "h-4 w-4" }) : a
830
+ children: /* @__PURE__ */ V("div", {
831
+ 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"),
832
+ children: a ? /* @__PURE__ */ V(rn, { className: "h-4 w-4" }) : o
809
833
  })
810
- }), /* @__PURE__ */ E("div", {
834
+ }), /* @__PURE__ */ V("div", {
811
835
  className: "flex-1 pt-0.5",
812
836
  children: t
813
837
  })]
814
838
  });
815
839
  }
816
- function Qr({ readyLabel: e = "Ready to submit", pendingLabel: t = "Complete all steps above", className: n }) {
817
- let { allDone: r } = w(W);
818
- return /* @__PURE__ */ D("div", {
819
- className: d("relative flex items-center gap-4", n),
820
- children: [/* @__PURE__ */ E("div", {
840
+ function ei({ readyLabel: e, pendingLabel: t, className: n }) {
841
+ let { allDone: i } = Ut(Zr), { t: a } = U(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
842
+ return /* @__PURE__ */ H("div", {
843
+ className: r("relative flex items-center gap-4", n),
844
+ children: [/* @__PURE__ */ V("div", {
821
845
  className: "flex flex-col items-center",
822
- children: /* @__PURE__ */ E("div", {
823
- className: d("relative z-10 flex h-8 w-8 items-center justify-center rounded-full transition-all duration-700", r ? "stepper-ready bg-emerald-500 text-white shadow-lg shadow-emerald-500/40 scale-110" : "bg-muted text-muted-foreground/40"),
824
- children: /* @__PURE__ */ E(bn, { className: "h-5 w-5" })
846
+ children: /* @__PURE__ */ V("div", {
847
+ 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"),
848
+ children: /* @__PURE__ */ V(an, { className: "h-5 w-5" })
825
849
  })
826
- }), /* @__PURE__ */ E("span", {
827
- className: d("text-sm font-medium transition-all duration-500", r ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground/40"),
828
- children: r ? e : t
850
+ }), /* @__PURE__ */ V("span", {
851
+ className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground/40"),
852
+ children: i ? o : s
829
853
  })]
830
854
  });
831
855
  }
832
- G.Step = Zr, G.Completion = Qr;
856
+ Qr.Step = $r, Qr.Completion = ei;
833
857
  //#endregion
834
858
  //#region src/components/ui/switch.tsx
835
- function $r({ className: e, ...t }) {
836
- return /* @__PURE__ */ E(j.Root, {
859
+ function ti({ className: e, ...t }) {
860
+ return /* @__PURE__ */ V(pn.Root, {
837
861
  "data-slot": "switch",
838
- className: d("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),
862
+ 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),
839
863
  ...t,
840
- children: /* @__PURE__ */ E(j.Thumb, {
864
+ children: /* @__PURE__ */ V(pn.Thumb, {
841
865
  "data-slot": "switch-thumb",
842
- className: d("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")
866
+ 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")
843
867
  })
844
868
  });
845
869
  }
846
870
  //#endregion
847
871
  //#region src/components/ui/table.tsx
848
- function ei({ className: e, ...t }) {
849
- return /* @__PURE__ */ E("div", {
872
+ function ni({ className: e, ...t }) {
873
+ return /* @__PURE__ */ V("div", {
850
874
  "data-slot": "table-container",
851
875
  className: "relative w-full overflow-x-auto",
852
- children: /* @__PURE__ */ E("table", {
876
+ children: /* @__PURE__ */ V("table", {
853
877
  "data-slot": "table",
854
- className: d("w-full caption-bottom text-sm", e),
878
+ className: r("w-full caption-bottom text-sm", e),
855
879
  ...t
856
880
  })
857
881
  });
858
882
  }
859
- function ti({ className: e, ...t }) {
860
- return /* @__PURE__ */ E("thead", {
883
+ function ri({ className: e, ...t }) {
884
+ return /* @__PURE__ */ V("thead", {
861
885
  "data-slot": "table-header",
862
- className: d("[&_tr]:border-b", e),
886
+ className: r("[&_tr]:border-b", e),
863
887
  ...t
864
888
  });
865
889
  }
866
- function ni({ className: e, ...t }) {
867
- return /* @__PURE__ */ E("tbody", {
890
+ function ii({ className: e, ...t }) {
891
+ return /* @__PURE__ */ V("tbody", {
868
892
  "data-slot": "table-body",
869
- className: d("[&_tr:last-child]:border-0", e),
893
+ className: r("[&_tr:last-child]:border-0", e),
870
894
  ...t
871
895
  });
872
896
  }
873
- function ri({ className: e, ...t }) {
874
- return /* @__PURE__ */ E("tfoot", {
897
+ function ai({ className: e, ...t }) {
898
+ return /* @__PURE__ */ V("tfoot", {
875
899
  "data-slot": "table-footer",
876
- className: d("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
900
+ className: r("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
877
901
  ...t
878
902
  });
879
903
  }
880
- function ii({ className: e, ...t }) {
881
- return /* @__PURE__ */ E("tr", {
904
+ function oi({ className: e, ...t }) {
905
+ return /* @__PURE__ */ V("tr", {
882
906
  "data-slot": "table-row",
883
- className: d("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
907
+ className: r("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
884
908
  ...t
885
909
  });
886
910
  }
887
- function ai({ className: e, ...t }) {
888
- return /* @__PURE__ */ E("th", {
911
+ function si({ className: e, ...t }) {
912
+ return /* @__PURE__ */ V("th", {
889
913
  "data-slot": "table-head",
890
- className: d("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),
914
+ 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),
891
915
  ...t
892
916
  });
893
917
  }
894
- function oi({ className: e, ...t }) {
895
- return /* @__PURE__ */ E("td", {
918
+ function ci({ className: e, ...t }) {
919
+ return /* @__PURE__ */ V("td", {
896
920
  "data-slot": "table-cell",
897
- className: d("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
921
+ className: r("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
898
922
  ...t
899
923
  });
900
924
  }
901
- function si({ className: e, ...t }) {
902
- return /* @__PURE__ */ E("caption", {
925
+ function li({ className: e, ...t }) {
926
+ return /* @__PURE__ */ V("caption", {
903
927
  "data-slot": "table-caption",
904
- className: d("text-muted-foreground mt-4 text-sm", e),
928
+ className: r("text-muted-foreground mt-4 text-sm", e),
905
929
  ...t
906
930
  });
907
931
  }
908
932
  //#endregion
909
933
  //#region src/components/ui/tabs.tsx
910
- function ci({ className: e, ...t }) {
911
- return /* @__PURE__ */ E(I.Root, {
934
+ function ui({ className: e, ...t }) {
935
+ return /* @__PURE__ */ V(Sn.Root, {
912
936
  "data-slot": "tabs",
913
- className: d("flex flex-col gap-2", e),
937
+ className: r("flex flex-col gap-2", e),
914
938
  ...t
915
939
  });
916
940
  }
917
- function li({ className: e, ...t }) {
918
- return /* @__PURE__ */ E(I.List, {
941
+ function di({ className: e, ...t }) {
942
+ return /* @__PURE__ */ V(Sn.List, {
919
943
  "data-slot": "tabs-list",
920
- className: d("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
944
+ className: r("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
921
945
  ...t
922
946
  });
923
947
  }
924
- function ui({ className: e, ...t }) {
925
- return /* @__PURE__ */ E(I.Trigger, {
948
+ function fi({ className: e, ...t }) {
949
+ return /* @__PURE__ */ V(Sn.Trigger, {
926
950
  "data-slot": "tabs-trigger",
927
- className: d("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),
951
+ 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),
928
952
  ...t
929
953
  });
930
954
  }
931
- function di({ className: e, ...t }) {
932
- return /* @__PURE__ */ E(I.Content, {
955
+ function pi({ className: e, ...t }) {
956
+ return /* @__PURE__ */ V(Sn.Content, {
933
957
  "data-slot": "tabs-content",
934
- className: d("flex-1 outline-none", e),
958
+ className: r("flex-1 outline-none", e),
935
959
  ...t
936
960
  });
937
961
  }
938
962
  //#endregion
939
963
  //#region src/components/ui/textarea.tsx
940
- function fi({ className: e, ...t }) {
941
- return /* @__PURE__ */ E("textarea", {
964
+ function mi({ className: e, ...t }) {
965
+ return /* @__PURE__ */ V("textarea", {
942
966
  "data-slot": "textarea",
943
- className: d("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),
967
+ 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),
944
968
  ...t
945
969
  });
946
970
  }
947
971
  //#endregion
948
972
  //#region src/components/ui/toggle.tsx
949
- var K = O("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", {
973
+ var hi = Jt("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", {
950
974
  variants: {
951
975
  variant: {
952
976
  default: "bg-transparent",
@@ -963,123 +987,679 @@ var K = O("inline-flex items-center justify-center gap-2 rounded-md text-sm font
963
987
  size: "default"
964
988
  }
965
989
  });
966
- function pi({ className: e, variant: t, size: n, ...r }) {
967
- return /* @__PURE__ */ E(Mn.Root, {
990
+ function gi({ className: e, variant: t, size: n, ...i }) {
991
+ return /* @__PURE__ */ V(Cn.Root, {
968
992
  "data-slot": "toggle",
969
- className: d(K({
993
+ className: r(hi({
970
994
  variant: t,
971
995
  size: n,
972
996
  className: e
973
997
  })),
974
- ...r
998
+ ...i
975
999
  });
976
1000
  }
977
1001
  //#endregion
978
1002
  //#region src/components/ui/toggle-group.tsx
979
- var mi = S.createContext({
1003
+ var _i = R.createContext({
980
1004
  size: "default",
981
1005
  variant: "default",
982
1006
  spacing: 0
983
1007
  });
984
- function hi({ className: e, variant: t, size: n, spacing: r = 0, children: i, ...a }) {
985
- return /* @__PURE__ */ E(Nn.Root, {
1008
+ function vi({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1009
+ return /* @__PURE__ */ V(wn.Root, {
986
1010
  "data-slot": "toggle-group",
987
1011
  "data-variant": t,
988
1012
  "data-size": n,
989
- "data-spacing": r,
990
- style: { "--gap": r },
991
- className: d("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", e),
992
- ...a,
993
- children: /* @__PURE__ */ E(mi.Provider, {
1013
+ "data-spacing": i,
1014
+ style: { "--gap": i },
1015
+ 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),
1016
+ ...o,
1017
+ children: /* @__PURE__ */ V(_i.Provider, {
994
1018
  value: {
995
1019
  variant: t,
996
1020
  size: n,
997
- spacing: r
1021
+ spacing: i
998
1022
  },
999
- children: i
1023
+ children: a
1000
1024
  })
1001
1025
  });
1002
1026
  }
1003
- function gi({ className: e, children: t, variant: n, size: r, ...i }) {
1004
- let a = S.useContext(mi);
1005
- return /* @__PURE__ */ E(Nn.Item, {
1027
+ function yi({ className: e, children: t, variant: n, size: i, ...a }) {
1028
+ let o = R.useContext(_i);
1029
+ return /* @__PURE__ */ V(wn.Item, {
1006
1030
  "data-slot": "toggle-group-item",
1007
- "data-variant": a.variant || n,
1008
- "data-size": a.size || r,
1009
- "data-spacing": a.spacing,
1010
- className: d(K({
1011
- variant: a.variant || n,
1012
- size: a.size || r
1031
+ "data-variant": o.variant || n,
1032
+ "data-size": o.size || i,
1033
+ "data-spacing": o.spacing,
1034
+ className: r(hi({
1035
+ variant: o.variant || n,
1036
+ size: o.size || i
1013
1037
  }), "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),
1014
- ...i,
1038
+ ...a,
1015
1039
  children: t
1016
1040
  });
1017
1041
  }
1018
1042
  //#endregion
1043
+ //#region src/components/ui/viglet-avatar.tsx
1044
+ var bi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, xi = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, q = (e) => [
1045
+ bi((e >> 16 & 255) / 255),
1046
+ bi((e >> 8 & 255) / 255),
1047
+ bi((e & 255) / 255)
1048
+ ], Si = {
1049
+ idle: {
1050
+ center: q(14916170),
1051
+ rim: q(11022874),
1052
+ glow: .22
1053
+ },
1054
+ working: {
1055
+ center: q(15246938),
1056
+ rim: q(11022874),
1057
+ glow: .32
1058
+ },
1059
+ success: {
1060
+ center: q(15843196),
1061
+ rim: q(12604202),
1062
+ glow: .55
1063
+ },
1064
+ error: {
1065
+ center: q(7216656),
1066
+ rim: q(2754308),
1067
+ glow: .03
1068
+ },
1069
+ attention: {
1070
+ center: q(15512682),
1071
+ rim: q(11812382),
1072
+ glow: .42
1073
+ }
1074
+ }, Ci = 2;
1075
+ function wi(e) {
1076
+ let t = (1 + Math.sqrt(5)) / 2, n = [
1077
+ -1,
1078
+ t,
1079
+ 0,
1080
+ 1,
1081
+ t,
1082
+ 0,
1083
+ -1,
1084
+ -t,
1085
+ 0,
1086
+ 1,
1087
+ -t,
1088
+ 0,
1089
+ 0,
1090
+ -1,
1091
+ t,
1092
+ 0,
1093
+ 1,
1094
+ t,
1095
+ 0,
1096
+ -1,
1097
+ -t,
1098
+ 0,
1099
+ 1,
1100
+ -t,
1101
+ t,
1102
+ 0,
1103
+ -1,
1104
+ t,
1105
+ 0,
1106
+ 1,
1107
+ -t,
1108
+ 0,
1109
+ -1,
1110
+ -t,
1111
+ 0,
1112
+ 1
1113
+ ], r = [
1114
+ 0,
1115
+ 11,
1116
+ 5,
1117
+ 0,
1118
+ 5,
1119
+ 1,
1120
+ 0,
1121
+ 1,
1122
+ 7,
1123
+ 0,
1124
+ 7,
1125
+ 10,
1126
+ 0,
1127
+ 10,
1128
+ 11,
1129
+ 1,
1130
+ 5,
1131
+ 9,
1132
+ 5,
1133
+ 11,
1134
+ 4,
1135
+ 11,
1136
+ 10,
1137
+ 2,
1138
+ 10,
1139
+ 7,
1140
+ 6,
1141
+ 7,
1142
+ 1,
1143
+ 8,
1144
+ 3,
1145
+ 9,
1146
+ 4,
1147
+ 3,
1148
+ 4,
1149
+ 2,
1150
+ 3,
1151
+ 2,
1152
+ 6,
1153
+ 3,
1154
+ 6,
1155
+ 8,
1156
+ 3,
1157
+ 8,
1158
+ 9,
1159
+ 4,
1160
+ 9,
1161
+ 5,
1162
+ 2,
1163
+ 4,
1164
+ 11,
1165
+ 6,
1166
+ 2,
1167
+ 10,
1168
+ 8,
1169
+ 6,
1170
+ 7,
1171
+ 9,
1172
+ 8,
1173
+ 1
1174
+ ], i = (e) => [
1175
+ n[e * 3],
1176
+ n[e * 3 + 1],
1177
+ n[e * 3 + 2]
1178
+ ], a = (e, t, n) => [
1179
+ e[0] + (t[0] - e[0]) * n,
1180
+ e[1] + (t[1] - e[1]) * n,
1181
+ e[2] + (t[2] - e[2]) * n
1182
+ ], o = [], s = (...e) => {
1183
+ for (let [t, n, r] of e) {
1184
+ let e = Math.hypot(t, n, r);
1185
+ o.push(t / e, n / e, r / e);
1186
+ }
1187
+ }, c = e + 1;
1188
+ for (let e = 0; e < r.length; e += 3) {
1189
+ let t = i(r[e]), n = i(r[e + 1]), o = i(r[e + 2]), l = [];
1190
+ for (let e = 0; e <= c; e += 1) {
1191
+ let r = a(t, o, e / c), i = a(n, o, e / c), s = c - e;
1192
+ l[e] = [];
1193
+ for (let t = 0; t <= s; t += 1) l[e][t] = s === 0 ? r : a(r, i, t / s);
1194
+ }
1195
+ for (let e = 0; e < c; e += 1) for (let t = 0; t < 2 * (c - e) - 1; t += 1) {
1196
+ let n = Math.floor(t / 2);
1197
+ t % 2 == 0 ? s(l[e][n + 1], l[e + 1][n], l[e][n]) : s(l[e][n + 1], l[e + 1][n + 1], l[e + 1][n]);
1198
+ }
1199
+ }
1200
+ let l = Float64Array.from(o), u = l.length / 9, d = new Float64Array(u);
1201
+ for (let e = 0; e < u; e += 1) {
1202
+ let t = e * 9, n = l[t] + l[t + 3] + l[t + 6], r = l[t + 1] + l[t + 4] + l[t + 7], i = l[t + 2] + l[t + 5] + l[t + 8], a = Math.sin(n * 12.9898 + r * 78.233 + i * 37.719) * 43758.5453;
1203
+ d[e] = a - Math.floor(a);
1204
+ }
1205
+ return {
1206
+ points: l,
1207
+ grain: d,
1208
+ count: u
1209
+ };
1210
+ }
1211
+ var Ti = wi(Ci), J = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Y = (e, t, n) => e + (t - e) * n;
1212
+ function Ei(e, t, n) {
1213
+ let r = J((n - e) / (t - e));
1214
+ return r * r * (3 - 2 * r);
1215
+ }
1216
+ var Di = .78, Oi = [
1217
+ [
1218
+ .59719,
1219
+ .35458,
1220
+ .04823
1221
+ ],
1222
+ [
1223
+ .076,
1224
+ .90834,
1225
+ .01566
1226
+ ],
1227
+ [
1228
+ .0284,
1229
+ .13383,
1230
+ .83777
1231
+ ]
1232
+ ], ki = [
1233
+ [
1234
+ 1.60475,
1235
+ -.53108,
1236
+ -.07367
1237
+ ],
1238
+ [
1239
+ -.10208,
1240
+ 1.10813,
1241
+ -.00605
1242
+ ],
1243
+ [
1244
+ -.00327,
1245
+ -.07276,
1246
+ 1.07602
1247
+ ]
1248
+ ], Ai = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
1249
+ function ji(e, t, n, r) {
1250
+ let i = t * Di, a = n * Di, o = r * Di;
1251
+ for (let t = 0; t < 3; t += 1) {
1252
+ let [n, r, s] = Oi[t];
1253
+ e[t] = Ai(n * i + r * a + s * o);
1254
+ }
1255
+ let [s, c, l] = e;
1256
+ for (let t = 0; t < 3; t += 1) {
1257
+ let [n, r, i] = ki[t];
1258
+ e[t] = Math.round(xi(J(n * s + r * c + i * l)) * 255);
1259
+ }
1260
+ }
1261
+ function X(e) {
1262
+ let t = e * Di;
1263
+ return Math.round(xi(J(Ai(t))) * 255);
1264
+ }
1265
+ var Mi = 60, Ni = "rgba(255,214,150,0.34)";
1266
+ function Pi(e) {
1267
+ let t = Math.abs(Math.trunc(e)) % 2147483646 + 1;
1268
+ return () => (t = t * 16807 % 2147483647, (t - 1) / 2147483646);
1269
+ }
1270
+ var Fi = 1618033;
1271
+ function Ii({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = Fi, className: s, style: c }) {
1272
+ let l = B(null), u = B(e), d = B(0), f = B(n), p = B(i), m = B(a), h = B(-Infinity), g = B(null);
1273
+ return z(() => {
1274
+ u.current = e, d.current = typeof performance > "u" ? 0 : performance.now(), g.current?.();
1275
+ }, [e]), z(() => {
1276
+ f.current = n, g.current?.();
1277
+ }, [n]), z(() => {
1278
+ p.current = i, g.current?.();
1279
+ }, [i]), z(() => {
1280
+ m.current = a, g.current?.();
1281
+ }, [a]), z(() => {
1282
+ r && (h.current = performance.now(), g.current?.());
1283
+ }, [r]), z(() => {
1284
+ let r = l.current;
1285
+ if (!r) return;
1286
+ let i = r.getContext("2d");
1287
+ if (!i) return;
1288
+ let a = i, s = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, c = Math.min(window.devicePixelRatio || 1, 2);
1289
+ r.width = Math.round(t * c), r.height = Math.round(t * c), a.scale(c, c);
1290
+ let _ = t / 2, v = t / 2, y = Pi(o), b = Array.from({ length: 34 }, () => ({
1291
+ x: (y() - .5) * 1.9,
1292
+ y: y() * 2.8 - .4,
1293
+ z: (y() - .5) * 1.9,
1294
+ speed: .05 + y() * .09
1295
+ })), x = {
1296
+ center: [...Si[e].center],
1297
+ rim: [...Si[e].rim],
1298
+ glow: Si[e].glow
1299
+ }, S = 0, C = Mi, w = 0, T = 0, E = performance.now(), D = 0, ee = .34, te = n ? 7.4 : 9, ne = -Infinity, re = {
1300
+ x: 0,
1301
+ y: 0
1302
+ }, O = {
1303
+ x: 0,
1304
+ y: 0
1305
+ }, k = (e) => {
1306
+ re.x = e.clientX / window.innerWidth * 2 - 1, re.y = -(e.clientY / window.innerHeight * 2 - 1), ne = performance.now(), C = Mi, S ||= requestAnimationFrame(P);
1307
+ }, A = t * (n ? .27 : .24), j = (e, t, n, r) => {
1308
+ let i = te / (te - n * r);
1309
+ return [_ + e * r * i * A, v - t * r * i * A];
1310
+ };
1311
+ function ie(e, t, n, r) {
1312
+ let i = a.createRadialGradient(e, t, 0, e, t, Math.max(n, .01));
1313
+ for (let [e, t] of r) i.addColorStop(e, t);
1314
+ return i;
1315
+ }
1316
+ function ae(e, t, n, r, i, o) {
1317
+ if (i <= .002) return;
1318
+ a.save(), a.globalCompositeOperation = "lighter", a.strokeStyle = r, a.lineWidth = n, a.lineCap = "round", a.beginPath();
1319
+ let s = !1;
1320
+ for (let n = 0; n <= 96; n += 1) {
1321
+ let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(ee), u = c * Math.sin(ee), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
1322
+ if (d !== e || !f) {
1323
+ s = !1;
1324
+ continue;
1325
+ }
1326
+ let [p, m] = j(i, l, u, 1);
1327
+ s ? a.lineTo(p, m) : (a.moveTo(p, m), s = !0);
1328
+ }
1329
+ a.globalAlpha = e === -1 ? i * .32 : i, a.stroke(), a.restore();
1330
+ }
1331
+ let M = new Float64Array(Ti.points.length), N = [
1332
+ 0,
1333
+ 0,
1334
+ 0
1335
+ ];
1336
+ function P(e) {
1337
+ S = 0;
1338
+ let n = a, r = Math.min((e - E) / 1e3, .05);
1339
+ E = e;
1340
+ let i = u.current, o = Si[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, k = l ? 0 : (e - d.current) / 1e3, oe = l ? Infinity : (e - h.current) / 1e3, se = !l && e - ne < 1200;
1341
+ T = l ? 0 : Y(T, +!!se, se ? .05 : .02), l || (w += r * (.25 + T * .75));
1342
+ let ce = c ? 7.4 : 9, le = !l && Math.abs(te - ce) > .01;
1343
+ te = l ? ce : Y(te, ce, .12), (i !== "idle" || oe < 2.2 || p.current || T > .004 || le) && (C = Mi);
1344
+ let ue = l ? 1 : .06;
1345
+ for (let e = 0; e < 3; e += 1) x.center[e] = Y(x.center[e], o.center[e], ue), x.rim[e] = Y(x.rim[e], o.rim[e], ue);
1346
+ let de = o.glow, fe = 1;
1347
+ de += Math.sin(w * .9) * .05 * T;
1348
+ let pe = oe < 1.8 ? Math.sin(J(oe / 1.8) * Math.PI) * .14 : 0;
1349
+ if (de += pe, i === "working" && (de += Math.sin(g * 2.2) * .06), i === "success") {
1350
+ let e = J(k / 1.4);
1351
+ fe = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, k > 1.4 && (de = Y(o.glow, Si.idle.glow + .25, J((k - 1.4) / 2)));
1352
+ }
1353
+ i === "error" && (fe = .94), x.glow = Y(x.glow, de, l ? 1 : .08);
1354
+ let F = x.glow;
1355
+ l || (D += r * (.06 + T * .1), ee = .34 + Math.sin(w * .6) * .12, O.x = Y(O.x, re.x, .02), O.y = Y(O.y, re.y, .02));
1356
+ let me = l ? 0 : Math.sin(w * .35) * .05 + O.x * .12, he = l ? 0 : -O.y * .08, I = fe * (1 + pe * .08);
1357
+ n.clearRect(0, 0, t, t), n.fillStyle = ie(_, v, A * 1.95, [
1358
+ [0, "rgba(9,11,15,0.5)"],
1359
+ [.52, "rgba(9,11,15,0.3)"],
1360
+ [.8, "rgba(9,11,15,0.08)"],
1361
+ [1, "rgba(9,11,15,0)"]
1362
+ ]), n.fillRect(0, 0, t, t), n.save(), n.globalCompositeOperation = "lighter";
1363
+ let ge = A * (1.5 + F * .5) * I, _e = .06 + F * .24;
1364
+ n.fillStyle = ie(_, v, ge, [
1365
+ [0, `rgba(${X(x.center[0])},${X(x.center[1])},${X(x.center[2])},${_e * .5})`],
1366
+ [.34, `rgba(${X(x.rim[0] * 1.4)},${X(x.rim[1] * 1.4)},${X(x.rim[2] * 1.4)},${_e * .2})`],
1367
+ [1, "rgba(160,50,10,0)"]
1368
+ ]), n.fillRect(0, 0, t, t), n.restore();
1369
+ let ve = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, ye = g * 1.6 % (Math.PI * 2), be = 1.5 * I, xe = Math.max(1, t * .007), Se = Math.max(1, t * .011), Ce = (e) => {
1370
+ ae(e, be, xe, "rgba(255,224,160,1)", ve * .45), i === "working" && ae(e, be, Se, "rgba(255,236,190,1)", .75, [ye, ye + 1.1]);
1371
+ };
1372
+ Ce(-1), n.save(), n.globalCompositeOperation = "lighter";
1373
+ let we = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(T, .12), Te = .08 + F * .4;
1374
+ n.fillStyle = `rgba(${X(x.center[0])},${X(x.center[1])},${X(x.center[2])},${Te})`;
1375
+ for (let e of b) {
1376
+ e.y += e.speed * r * (.4 + F) * we, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
1377
+ let [i, a] = j(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
1378
+ n.beginPath(), n.arc(i, a, o, 0, Math.PI * 2), n.fill();
1379
+ }
1380
+ n.restore();
1381
+ let Ee = Math.cos(D + me), De = Math.sin(D + me), Oe = Math.cos(.32 + he), ke = Math.sin(.32 + he), { points: Ae, grain: je, count: Me } = Ti;
1382
+ for (let e = 0; e < Ae.length; e += 3) {
1383
+ let t = Ae[e], n = Ae[e + 1], r = Ae[e + 2], i = t * Ee + r * De, a = -t * De + r * Ee, o = n * Oe - a * ke, s = n * ke + a * Oe;
1384
+ M[e] = i, M[e + 1] = o, M[e + 2] = s;
1385
+ }
1386
+ for (let e = 0; e < Me; e += 1) {
1387
+ let t = e * 9, r = t + 3, i = t + 6, a = M[r] - M[t], o = M[r + 1] - M[t + 1], s = M[r + 2] - M[t + 2], c = M[i] - M[t], l = M[i + 1] - M[t + 1], u = M[i + 2] - M[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
1388
+ if (p <= 0) continue;
1389
+ let m = 1 - p / Math.hypot(d, f, p), h = je[e], g = .9 + .14 * h + .06 * Math.sin(w * .8 + h * 6.28), _ = Ei(.08, .82, m), v = Ei(.66, 0, m) * F * .62, y = 1 - .18 * Ei(.82, 1, m);
1390
+ ji(N, (Y(x.center[0], x.rim[0], _) * g + v) * y, (Y(x.center[1], x.rim[1], _) * g + v * .72) * y, (Y(x.center[2], x.rim[2], _) * g + v * .3) * y);
1391
+ let b = `rgb(${N[0]},${N[1]},${N[2]})`, [S, C] = j(M[t], M[t + 1], M[t + 2], I), [T, E] = j(M[r], M[r + 1], M[r + 2], I), [D, ee] = j(M[i], M[i + 1], M[i + 2], I);
1392
+ n.beginPath(), n.moveTo(S, C), n.lineTo(T, E), n.lineTo(D, ee), n.closePath(), n.fillStyle = b, n.fill(), n.strokeStyle = Ni, n.lineWidth = 1, n.stroke();
1393
+ }
1394
+ Ce(1), n.save(), n.globalCompositeOperation = "lighter";
1395
+ let Ne = A * .34 * I;
1396
+ if (n.fillStyle = ie(_ - A * .38 * I, v - A * .44 * I, Ne, [
1397
+ [0, `rgba(255,246,228,${.05 + F * .09})`],
1398
+ [.5, `rgba(255,240,214,${.015 + F * .03})`],
1399
+ [1, "rgba(255,240,214,0)"]
1400
+ ]), n.fillRect(0, 0, t, t), i === "success" && k < 2.6) {
1401
+ let e = k / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
1402
+ ae(-1, n, r, "rgba(255,241,192,1)", i), ae(1, n, r, "rgba(255,241,192,1)", i);
1403
+ }
1404
+ if (n.restore(), i === "attention") {
1405
+ let e = J(k / 2.4), r = Y(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (k - 2.4) / 2.5);
1406
+ if (i > .002) {
1407
+ n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = i, n.strokeStyle = "rgba(255,230,160,1)", n.lineWidth = Math.max(1, t * .009);
1408
+ let [, e] = j(0, r, 0, 1);
1409
+ n.beginPath(), n.ellipse(_, e, A * 1.6, A * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
1410
+ }
1411
+ }
1412
+ if (!c) {
1413
+ let e = v + A * 1.5;
1414
+ n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = ie(_, e, A * 1.5, [[0, `rgba(220,140,60,${.1 + F * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
1415
+ }
1416
+ l || (--C, C > 0 && (S = requestAnimationFrame(P)));
1417
+ }
1418
+ return g.current = () => {
1419
+ C = Mi, E = performance.now(), S ||= requestAnimationFrame(P);
1420
+ }, s || window.addEventListener("mousemove", k, { passive: !0 }), P(performance.now()), () => {
1421
+ g.current = null, S && cancelAnimationFrame(S), window.removeEventListener("mousemove", k);
1422
+ };
1423
+ }, [t, o]), /* @__PURE__ */ V("canvas", {
1424
+ ref: l,
1425
+ "aria-hidden": "true",
1426
+ "data-state": e,
1427
+ className: s,
1428
+ style: {
1429
+ width: t,
1430
+ height: t,
1431
+ display: "block",
1432
+ ...c
1433
+ }
1434
+ });
1435
+ }
1436
+ //#endregion
1437
+ //#region src/components/ui/viglet-assistant.tsx
1438
+ var Li = {
1439
+ idle: "assistant.idle",
1440
+ working: "assistant.working",
1441
+ success: "assistant.success",
1442
+ error: "assistant.error",
1443
+ attention: "assistant.attention"
1444
+ }, Ri = {
1445
+ idle: "text-muted-foreground",
1446
+ working: "text-amber-600 dark:text-amber-400",
1447
+ success: "text-emerald-700 dark:text-emerald-400",
1448
+ error: "text-destructive",
1449
+ attention: "text-amber-700 dark:text-amber-300"
1450
+ };
1451
+ function zi() {
1452
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1453
+ }
1454
+ function Bi({ text: e, className: t }) {
1455
+ let [n, r] = Gt(0);
1456
+ return z(() => {
1457
+ let t = e.length;
1458
+ if (t === 0) return;
1459
+ if (zi()) {
1460
+ let e = setTimeout(() => r(t), 0);
1461
+ return () => clearTimeout(e);
1462
+ }
1463
+ let n = Math.max(14, Math.min(34, 1400 / t)), i = setInterval(() => {
1464
+ r((e) => e >= t ? (clearInterval(i), e) : e + 1);
1465
+ }, n);
1466
+ return () => clearInterval(i);
1467
+ }, [e]), /* @__PURE__ */ H("span", {
1468
+ className: t,
1469
+ children: [/* @__PURE__ */ H("span", {
1470
+ "aria-hidden": "true",
1471
+ children: [e.slice(0, n), n < e.length && /* @__PURE__ */ V("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
1472
+ }), /* @__PURE__ */ V("span", {
1473
+ className: "sr-only",
1474
+ children: e
1475
+ })]
1476
+ });
1477
+ }
1478
+ function Vi({ state: e = "idle", caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: s, unread: c = !1, activity: l = 0, inline: u = !1, className: d }) {
1479
+ let { t: f } = U(), [p, m] = Gt(o), [h, g] = Gt(""), _ = B(null), v = a ?? p, y = typeof i == "function", b = (e) => {
1480
+ a === void 0 && m(e), s?.(e);
1481
+ };
1482
+ z(() => {
1483
+ let e = _.current;
1484
+ e && (e.scrollTop = e.scrollHeight);
1485
+ }, [n, r]);
1486
+ let x = () => {
1487
+ let e = h.trim();
1488
+ !e || r || !i || (i(e), g(""));
1489
+ }, S = n ?? [];
1490
+ return /* @__PURE__ */ H("div", {
1491
+ className: [
1492
+ u ? "relative" : "fixed bottom-5 right-5 z-50",
1493
+ "flex flex-col",
1494
+ v ? "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",
1495
+ d ?? ""
1496
+ ].join(" "),
1497
+ onKeyDown: (e) => {
1498
+ e.key === "Escape" && v && b(!1);
1499
+ },
1500
+ children: [
1501
+ !v && t && /* @__PURE__ */ V(Bi, {
1502
+ text: t,
1503
+ 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"
1504
+ }, t),
1505
+ /* @__PURE__ */ H("div", {
1506
+ className: "flex flex-none items-center gap-3",
1507
+ children: [
1508
+ /* @__PURE__ */ V("button", {
1509
+ type: "button",
1510
+ "aria-label": f(v ? "assistant.collapse" : "assistant.open"),
1511
+ "aria-expanded": v,
1512
+ onClick: () => b(!v),
1513
+ className: "flex-none rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
1514
+ children: /* @__PURE__ */ V(Ii, {
1515
+ state: e,
1516
+ compact: !v,
1517
+ unread: c,
1518
+ activity: l,
1519
+ size: v ? 76 : 132
1520
+ })
1521
+ }),
1522
+ v && /* @__PURE__ */ H("div", {
1523
+ className: "flex min-w-0 flex-1 flex-col gap-0.5",
1524
+ children: [
1525
+ /* @__PURE__ */ V("span", {
1526
+ className: "text-xs text-muted-foreground",
1527
+ children: f("assistant.state")
1528
+ }),
1529
+ /* @__PURE__ */ V("span", {
1530
+ className: `text-sm font-semibold ${Ri[e]}`,
1531
+ children: f(Li[e])
1532
+ }),
1533
+ t && /* @__PURE__ */ V(Bi, {
1534
+ text: t,
1535
+ className: "text-xs leading-snug text-muted-foreground"
1536
+ }, t)
1537
+ ]
1538
+ }),
1539
+ v && /* @__PURE__ */ V(Ft, {
1540
+ variant: "ghost",
1541
+ size: "sm",
1542
+ className: "flex-none self-start",
1543
+ onClick: () => b(!1),
1544
+ children: f("assistant.collapseAction")
1545
+ })
1546
+ ]
1547
+ }),
1548
+ v && y && /* @__PURE__ */ H(Kt, { children: [/* @__PURE__ */ H("div", {
1549
+ ref: _,
1550
+ role: "log",
1551
+ "aria-label": f("assistant.transcript"),
1552
+ "aria-busy": r,
1553
+ className: "mt-3 flex max-h-96 min-h-32 flex-1 flex-col gap-2.5 overflow-y-auto pr-1",
1554
+ children: [
1555
+ S.length === 0 && !r && /* @__PURE__ */ V("p", {
1556
+ className: "m-auto max-w-52 text-center text-xs leading-relaxed text-muted-foreground",
1557
+ children: f("assistant.empty")
1558
+ }),
1559
+ S.map((e, t) => /* @__PURE__ */ H("div", {
1560
+ 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",
1561
+ children: [/* @__PURE__ */ V("p", {
1562
+ className: "m-0 whitespace-pre-wrap leading-snug",
1563
+ children: e.text
1564
+ }), e.action && /* @__PURE__ */ V(Ft, {
1565
+ variant: "link",
1566
+ size: "sm",
1567
+ className: "mt-1 h-auto whitespace-normal p-0 text-left",
1568
+ onClick: e.action.onSelect,
1569
+ children: e.action.label
1570
+ })]
1571
+ }, e.id ?? t)),
1572
+ r && /* @__PURE__ */ V("p", {
1573
+ className: "m-0 self-start px-3 py-2 text-sm text-muted-foreground",
1574
+ children: f("assistant.thinking")
1575
+ })
1576
+ ]
1577
+ }), /* @__PURE__ */ H("div", {
1578
+ className: "mt-3 flex flex-none gap-2",
1579
+ children: [/* @__PURE__ */ V(O, {
1580
+ value: h,
1581
+ disabled: r,
1582
+ placeholder: f("assistant.placeholder"),
1583
+ "aria-label": f("assistant.placeholder"),
1584
+ onChange: (e) => g(e.target.value),
1585
+ onKeyDown: (e) => {
1586
+ e.key === "Enter" && (e.preventDefault(), x());
1587
+ }
1588
+ }), /* @__PURE__ */ V(Ft, {
1589
+ variant: "outline",
1590
+ disabled: r || h.trim().length === 0,
1591
+ onClick: x,
1592
+ children: f("assistant.send")
1593
+ })]
1594
+ })] })
1595
+ ]
1596
+ });
1597
+ }
1598
+ //#endregion
1019
1599
  //#region src/components/ui/user-menu.tsx
1020
- function _i({ user: e, onAccount: t, onSignOut: n, extraItems: r, className: a, align: o = "end" }) {
1021
- let { t: s } = k(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
1022
- return /* @__PURE__ */ D(p, { children: [/* @__PURE__ */ E(i, {
1600
+ function Hi({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
1601
+ let { t: s } = U(), l = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
1602
+ return /* @__PURE__ */ H(E, { children: [/* @__PURE__ */ V(c, {
1023
1603
  asChild: !0,
1024
- children: /* @__PURE__ */ E("button", {
1604
+ children: /* @__PURE__ */ V("button", {
1025
1605
  type: "button",
1026
- title: c || e.username,
1027
- className: d("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
1028
- children: /* @__PURE__ */ E(y, {
1606
+ title: l || e.username,
1607
+ className: r("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
1608
+ children: /* @__PURE__ */ V(Mt, {
1029
1609
  givenName: e.firstName,
1030
1610
  familyName: e.lastName,
1031
- name: c || e.username,
1611
+ name: l || e.username,
1032
1612
  src: e.avatarUrl || void 0,
1033
1613
  alt: e.username,
1034
1614
  className: "hover:ring-2 hover:ring-border transition-all"
1035
1615
  })
1036
1616
  })
1037
- }), /* @__PURE__ */ D(h, {
1617
+ }), /* @__PURE__ */ H(k, {
1038
1618
  className: "min-w-56 rounded-lg",
1039
1619
  align: o,
1040
1620
  sideOffset: 8,
1041
1621
  children: [
1042
- /* @__PURE__ */ E(f, {
1622
+ /* @__PURE__ */ V(x, {
1043
1623
  className: "p-0 font-normal",
1044
- children: /* @__PURE__ */ D("div", {
1624
+ children: /* @__PURE__ */ H("div", {
1045
1625
  className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
1046
- children: [/* @__PURE__ */ E(y, {
1626
+ children: [/* @__PURE__ */ V(Mt, {
1047
1627
  givenName: e.firstName,
1048
1628
  familyName: e.lastName,
1049
- name: c || e.username,
1629
+ name: l || e.username,
1050
1630
  src: e.avatarUrl || void 0,
1051
1631
  alt: e.username
1052
- }), /* @__PURE__ */ D("div", {
1632
+ }), /* @__PURE__ */ H("div", {
1053
1633
  className: "grid flex-1 text-left text-sm leading-tight",
1054
- children: [c && /* @__PURE__ */ E("span", {
1634
+ children: [l && /* @__PURE__ */ V("span", {
1055
1635
  className: "truncate font-medium",
1056
- children: c
1057
- }), e.email && /* @__PURE__ */ E("span", {
1636
+ children: l
1637
+ }), e.email && /* @__PURE__ */ V("span", {
1058
1638
  className: "text-muted-foreground truncate text-xs",
1059
1639
  children: e.email
1060
1640
  })]
1061
1641
  })]
1062
1642
  })
1063
1643
  }),
1064
- /* @__PURE__ */ E(v, {}),
1065
- /* @__PURE__ */ D(pe, { children: [t && /* @__PURE__ */ D(m, {
1644
+ /* @__PURE__ */ V(ce, {}),
1645
+ /* @__PURE__ */ H(ee, { children: [t && /* @__PURE__ */ H(D, {
1066
1646
  onSelect: t,
1067
1647
  className: "cursor-pointer",
1068
- children: [/* @__PURE__ */ E(En, {}), s("nav.account")]
1069
- }), r] }),
1070
- (t || r) && /* @__PURE__ */ E(v, {}),
1071
- n && /* @__PURE__ */ D(m, {
1648
+ children: [/* @__PURE__ */ V(dn, {}), s("nav.account")]
1649
+ }), i] }),
1650
+ (t || i) && /* @__PURE__ */ V(ce, {}),
1651
+ n && /* @__PURE__ */ H(D, {
1072
1652
  onSelect: n,
1073
1653
  className: "cursor-pointer text-red-500 focus:text-red-500 focus:bg-red-50 dark:focus:bg-red-950",
1074
- children: [/* @__PURE__ */ E(Cn, {}), s("nav.logOut")]
1654
+ children: [/* @__PURE__ */ V(cn, {}), s("nav.logOut")]
1075
1655
  })
1076
1656
  ]
1077
1657
  })] });
1078
1658
  }
1079
1659
  //#endregion
1080
1660
  //#region src/components/login/login.tsx
1081
- var vi = C({});
1082
- function yi(e) {
1661
+ var Ui = Vt({});
1662
+ function Wi(e) {
1083
1663
  if (!e) return null;
1084
1664
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
1085
1665
  if (t) {
@@ -1093,130 +1673,130 @@ function yi(e) {
1093
1673
  }
1094
1674
  return null;
1095
1675
  }
1096
- function bi({ color: e, colorDark: t, children: n, className: r, style: i, ...a }) {
1097
- let o = {};
1098
- e && (o["--ff-color"] = e), t ? o["--ff-color-dark"] = t : e && (o["--ff-color-dark"] = e);
1099
- let s = yi(e);
1100
- s && (o["--ff-color-rgb"] = s);
1101
- let c = yi(t) ?? s;
1102
- return c && (o["--ff-color-dark-rgb"] = c), /* @__PURE__ */ E(vi.Provider, {
1676
+ function Gi({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
1677
+ let s = {};
1678
+ e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
1679
+ let c = Wi(e);
1680
+ c && (s["--ff-color-rgb"] = c);
1681
+ let l = Wi(t) ?? c;
1682
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ V(Ui.Provider, {
1103
1683
  value: {
1104
1684
  color: e,
1105
1685
  colorDark: t
1106
1686
  },
1107
- children: /* @__PURE__ */ E("div", {
1108
- className: `vig-login relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-900 ${r ?? ""}`,
1687
+ children: /* @__PURE__ */ V("div", {
1688
+ className: r("vig-login relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-900", i),
1109
1689
  style: {
1110
- ...i ?? {},
1111
- ...o
1690
+ ...a ?? {},
1691
+ ...s
1112
1692
  },
1113
- ...a,
1693
+ ...o,
1114
1694
  children: n
1115
1695
  })
1116
1696
  });
1117
1697
  }
1118
- function xi(e) {
1119
- let { color: t, colorDark: n } = w(vi);
1120
- return /* @__PURE__ */ E(b, {
1698
+ function Ki(e) {
1699
+ let { color: t, colorDark: n } = Ut(Ui);
1700
+ return /* @__PURE__ */ V(It, {
1121
1701
  color: t,
1122
1702
  colorDark: n,
1123
1703
  ...e
1124
1704
  });
1125
1705
  }
1126
- function Si({ children: e, className: t, ...n }) {
1127
- return /* @__PURE__ */ E("div", {
1128
- className: `absolute top-4 right-4 z-30 flex items-center gap-2 ${t ?? ""}`,
1706
+ function qi({ children: e, className: t, ...n }) {
1707
+ return /* @__PURE__ */ V("div", {
1708
+ className: r("absolute top-4 right-4 z-30 flex items-center gap-2", t),
1129
1709
  ...n,
1130
1710
  children: e
1131
1711
  });
1132
1712
  }
1133
- function Ci({ children: e, className: t, ...n }) {
1134
- return /* @__PURE__ */ E("div", {
1135
- className: `relative z-20 flex flex-col items-center w-full max-w-md px-6 py-4 ${t ?? ""}`,
1713
+ function Ji({ children: e, className: t, ...n }) {
1714
+ return /* @__PURE__ */ V("div", {
1715
+ className: r("relative z-20 flex flex-col items-center w-full max-w-md px-6 py-4", t),
1136
1716
  ...n,
1137
1717
  children: e
1138
1718
  });
1139
1719
  }
1140
- function wi({ children: e, pulsePaused: t, className: n, ...r }) {
1141
- return /* @__PURE__ */ E("div", {
1142
- className: `vig-login__fade-in mb-3 ${n ?? ""}`,
1143
- ...r,
1144
- children: /* @__PURE__ */ E(H, {
1720
+ function Yi({ children: e, pulsePaused: t, className: n, ...i }) {
1721
+ return /* @__PURE__ */ V("div", {
1722
+ className: r("vig-login__fade-in mb-3", n),
1723
+ ...i,
1724
+ children: /* @__PURE__ */ V(gr, {
1145
1725
  paused: t,
1146
- children: /* @__PURE__ */ E("div", {
1726
+ children: /* @__PURE__ */ V("div", {
1147
1727
  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)]",
1148
1728
  children: e
1149
1729
  })
1150
1730
  })
1151
1731
  });
1152
1732
  }
1153
- function Ti({ children: e, className: t, ...n }) {
1154
- return /* @__PURE__ */ E("div", {
1733
+ function Xi({ children: e, className: t, ...n }) {
1734
+ return /* @__PURE__ */ V("div", {
1155
1735
  className: "vig-login__fade-in-d1 text-center mb-1",
1156
- children: /* @__PURE__ */ E("h1", {
1157
- className: `text-2xl font-bold tracking-tight bg-clip-text text-transparent vig-login__title-gradient ${t ?? ""}`,
1736
+ children: /* @__PURE__ */ V("h1", {
1737
+ className: r("text-2xl font-bold tracking-tight bg-clip-text text-transparent vig-login__title-gradient", t),
1158
1738
  ...n,
1159
1739
  children: e
1160
1740
  })
1161
1741
  });
1162
1742
  }
1163
- function Ei({ children: e, className: t, ...n }) {
1164
- return /* @__PURE__ */ E("div", {
1743
+ function Zi({ children: e, className: t, ...n }) {
1744
+ return /* @__PURE__ */ V("div", {
1165
1745
  className: "vig-login__fade-in-d1 text-center mb-4",
1166
- children: /* @__PURE__ */ E("p", {
1167
- className: `text-sm text-slate-500 dark:text-slate-400 max-w-xs leading-relaxed ${t ?? ""}`,
1746
+ children: /* @__PURE__ */ V("p", {
1747
+ className: r("text-sm text-slate-500 dark:text-slate-400 max-w-xs leading-relaxed", t),
1168
1748
  ...n,
1169
1749
  children: e
1170
1750
  })
1171
1751
  });
1172
1752
  }
1173
- function Di({ children: e, className: t, ...n }) {
1174
- return /* @__PURE__ */ E("div", {
1175
- className: `vig-login__fade-in-d2 flex flex-wrap justify-center gap-2 mb-5 ${t ?? ""}`,
1753
+ function Qi({ children: e, className: t, ...n }) {
1754
+ return /* @__PURE__ */ V("div", {
1755
+ className: r("vig-login__fade-in-d2 flex flex-wrap justify-center gap-2 mb-5", t),
1176
1756
  ...n,
1177
1757
  children: e
1178
1758
  });
1179
1759
  }
1180
- function Oi({ icon: e, children: t, className: n, ...r }) {
1181
- return /* @__PURE__ */ D("div", {
1182
- className: `vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1 ${n ?? ""}`,
1183
- ...r,
1184
- children: [e, /* @__PURE__ */ E("span", {
1760
+ function $i({ icon: e, children: t, className: n, ...i }) {
1761
+ return /* @__PURE__ */ H("div", {
1762
+ className: r("vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1", n),
1763
+ ...i,
1764
+ children: [e, /* @__PURE__ */ V("span", {
1185
1765
  className: "text-xs font-medium text-slate-600 dark:text-slate-300",
1186
1766
  children: t
1187
1767
  })]
1188
1768
  });
1189
1769
  }
1190
- function ki({ children: e, className: t, ...n }) {
1191
- return /* @__PURE__ */ E("div", {
1192
- className: `vig-login__fade-in-d3 w-full ${t ?? ""}`,
1770
+ function ea({ children: e, className: t, ...n }) {
1771
+ return /* @__PURE__ */ V("div", {
1772
+ className: r("vig-login__fade-in-d3 w-full", t),
1193
1773
  ...n,
1194
- children: /* @__PURE__ */ E(V, { children: e })
1774
+ children: /* @__PURE__ */ V(hr, { children: e })
1195
1775
  });
1196
1776
  }
1197
- function Ai({ children: e, className: t, ...n }) {
1198
- return /* @__PURE__ */ E("div", {
1777
+ function ta({ children: e, className: t, ...n }) {
1778
+ return /* @__PURE__ */ V("div", {
1199
1779
  className: "vig-login__fade-in-d3 mt-4 text-center",
1200
- children: /* @__PURE__ */ E("p", {
1201
- className: `text-xs text-slate-400 dark:text-slate-500 ${t ?? ""}`,
1780
+ children: /* @__PURE__ */ V("p", {
1781
+ className: r("text-xs text-slate-400 dark:text-slate-500", t),
1202
1782
  ...n,
1203
1783
  children: e
1204
1784
  })
1205
1785
  });
1206
1786
  }
1207
- var ji = Object.assign(bi, {
1208
- Background: xi,
1209
- Settings: Si,
1210
- Content: Ci,
1211
- Logo: wi,
1212
- Title: Ti,
1213
- Tagline: Ei,
1214
- Features: Di,
1215
- FeaturePill: Oi,
1216
- Card: ki,
1217
- Footer: Ai
1218
- }), Mi = C({});
1219
- function Ni(e) {
1787
+ var na = Object.assign(Gi, {
1788
+ Background: Ki,
1789
+ Settings: qi,
1790
+ Content: Ji,
1791
+ Logo: Yi,
1792
+ Title: Xi,
1793
+ Tagline: Zi,
1794
+ Features: Qi,
1795
+ FeaturePill: $i,
1796
+ Card: ea,
1797
+ Footer: ta
1798
+ }), ra = Vt({});
1799
+ function ia(e) {
1220
1800
  if (!e) return null;
1221
1801
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
1222
1802
  if (t) {
@@ -1230,68 +1810,68 @@ function Ni(e) {
1230
1810
  }
1231
1811
  return null;
1232
1812
  }
1233
- function Pi({ color: e, colorDark: t, children: n, className: r, style: i, ...a }) {
1234
- let o = {};
1235
- e && (o["--ff-color"] = e), t ? o["--ff-color-dark"] = t : e && (o["--ff-color-dark"] = e);
1236
- let s = Ni(e);
1237
- s && (o["--ff-color-rgb"] = s);
1238
- let c = Ni(t) ?? s;
1239
- return c && (o["--ff-color-dark-rgb"] = c), /* @__PURE__ */ E(Mi.Provider, {
1813
+ function aa({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
1814
+ let s = {};
1815
+ e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
1816
+ let c = ia(e);
1817
+ c && (s["--ff-color-rgb"] = c);
1818
+ let l = ia(t) ?? c;
1819
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ V(ra.Provider, {
1240
1820
  value: {
1241
1821
  color: e,
1242
1822
  colorDark: t
1243
1823
  },
1244
- children: /* @__PURE__ */ E("div", {
1245
- className: `vig-sf relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950 ${r ?? ""}`,
1824
+ children: /* @__PURE__ */ V("div", {
1825
+ className: r("vig-sf relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950", i),
1246
1826
  style: {
1247
- ...i ?? {},
1248
- ...o
1827
+ ...a ?? {},
1828
+ ...s
1249
1829
  },
1250
- ...a,
1830
+ ...o,
1251
1831
  children: n
1252
1832
  })
1253
1833
  });
1254
1834
  }
1255
- function Fi(e) {
1256
- let { color: t, colorDark: n } = w(Mi);
1257
- return /* @__PURE__ */ E(b, {
1835
+ function oa(e) {
1836
+ let { color: t, colorDark: n } = Ut(ra);
1837
+ return /* @__PURE__ */ V(It, {
1258
1838
  color: t,
1259
1839
  colorDark: n,
1260
1840
  ...e
1261
1841
  });
1262
1842
  }
1263
- function Ii({ children: e, className: t, ...n }) {
1264
- return /* @__PURE__ */ E("div", {
1265
- className: `relative z-20 flex flex-col items-center w-full max-w-lg px-6 py-6 ${t ?? ""}`,
1843
+ function sa({ children: e, className: t, ...n }) {
1844
+ return /* @__PURE__ */ V("div", {
1845
+ className: r("relative z-20 flex flex-col items-center w-full max-w-lg px-6 py-6", t),
1266
1846
  ...n,
1267
1847
  children: e
1268
1848
  });
1269
1849
  }
1270
- function Li({ current: e, total: t, className: n, ...r }) {
1271
- let { t: i } = k();
1272
- return /* @__PURE__ */ E("div", {
1273
- className: `vig-sf__fade-in flex items-center gap-2 mb-4 ${n ?? ""}`,
1850
+ function ca({ current: e, total: t, className: n, ...i }) {
1851
+ let { t: a } = U();
1852
+ return /* @__PURE__ */ V("div", {
1853
+ className: r("vig-sf__fade-in flex items-center gap-2 mb-4", n),
1274
1854
  role: "group",
1275
- "aria-label": i("common.stepOf", {
1855
+ "aria-label": a("common.stepOf", {
1276
1856
  index: e,
1277
1857
  count: t,
1278
1858
  defaultValue: "Step {{index}} of {{count}}"
1279
1859
  }),
1280
- ...r,
1281
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ E("span", {
1860
+ ...i,
1861
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ V("span", {
1282
1862
  className: n + 1 <= e ? "vig-sf__step vig-sf__step--active" : "vig-sf__step",
1283
1863
  "aria-current": n + 1 === e ? "step" : void 0
1284
1864
  }, `step-${n + 1}`))
1285
1865
  });
1286
1866
  }
1287
- function Ri({ children: e, pulsePaused: t, size: n = 80, className: r, style: i, ...a }) {
1288
- return /* @__PURE__ */ E("div", {
1289
- className: `vig-sf__fade-in mb-4 ${r ?? ""}`,
1290
- style: i,
1291
- ...a,
1292
- children: /* @__PURE__ */ E(H, {
1867
+ function la({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
1868
+ return /* @__PURE__ */ V("div", {
1869
+ className: r("vig-sf__fade-in mb-4", i),
1870
+ style: a,
1871
+ ...o,
1872
+ children: /* @__PURE__ */ V(gr, {
1293
1873
  paused: t,
1294
- children: /* @__PURE__ */ E("div", {
1874
+ children: /* @__PURE__ */ V("div", {
1295
1875
  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)]",
1296
1876
  style: {
1297
1877
  width: n,
@@ -1302,86 +1882,86 @@ function Ri({ children: e, pulsePaused: t, size: n = 80, className: r, style: i,
1302
1882
  })
1303
1883
  });
1304
1884
  }
1305
- function zi({ children: e, className: t, ...n }) {
1306
- return /* @__PURE__ */ E("div", {
1885
+ function ua({ children: e, className: t, ...n }) {
1886
+ return /* @__PURE__ */ V("div", {
1307
1887
  className: "vig-sf__fade-in-d1 text-center mb-2",
1308
- children: /* @__PURE__ */ E("h1", {
1309
- className: `text-3xl font-bold tracking-tight bg-clip-text text-transparent vig-sf__title-gradient ${t ?? ""}`,
1888
+ children: /* @__PURE__ */ V("h1", {
1889
+ className: r("text-3xl font-bold tracking-tight bg-clip-text text-transparent vig-sf__title-gradient", t),
1310
1890
  ...n,
1311
1891
  children: e
1312
1892
  })
1313
1893
  });
1314
1894
  }
1315
- function Bi({ children: e, className: t, ...n }) {
1316
- return /* @__PURE__ */ E("div", {
1895
+ function da({ children: e, className: t, ...n }) {
1896
+ return /* @__PURE__ */ V("div", {
1317
1897
  className: "vig-sf__fade-in-d1 text-center mb-5",
1318
- children: /* @__PURE__ */ E("p", {
1319
- className: `text-sm text-slate-500 dark:text-slate-400 max-w-md leading-relaxed ${t ?? ""}`,
1898
+ children: /* @__PURE__ */ V("p", {
1899
+ className: r("text-sm text-slate-500 dark:text-slate-400 max-w-md leading-relaxed", t),
1320
1900
  ...n,
1321
1901
  children: e
1322
1902
  })
1323
1903
  });
1324
1904
  }
1325
- function Vi({ children: e, className: t, ...n }) {
1326
- return /* @__PURE__ */ E("div", {
1327
- className: `vig-sf__fade-in-d2 w-full ${t ?? ""}`,
1905
+ function fa({ children: e, className: t, ...n }) {
1906
+ return /* @__PURE__ */ V("div", {
1907
+ className: r("vig-sf__fade-in-d2 w-full", t),
1328
1908
  ...n,
1329
- children: /* @__PURE__ */ E(V, { children: e })
1909
+ children: /* @__PURE__ */ V(hr, { children: e })
1330
1910
  });
1331
1911
  }
1332
- function Hi({ children: e, className: t, ...n }) {
1333
- return /* @__PURE__ */ E("div", {
1334
- className: `vig-sf__fade-in-d3 w-full mt-4 flex items-center justify-between gap-3 ${t ?? ""}`,
1912
+ function pa({ children: e, className: t, ...n }) {
1913
+ return /* @__PURE__ */ V("div", {
1914
+ className: r("vig-sf__fade-in-d3 w-full mt-4 flex items-center justify-between gap-3", t),
1335
1915
  ...n,
1336
1916
  children: e
1337
1917
  });
1338
1918
  }
1339
- function Ui({ children: e, className: t, ...n }) {
1340
- return /* @__PURE__ */ E("div", {
1919
+ function ma({ children: e, className: t, ...n }) {
1920
+ return /* @__PURE__ */ V("div", {
1341
1921
  className: "vig-sf__fade-in-d3 mt-6 text-center",
1342
- children: /* @__PURE__ */ E("p", {
1343
- className: `text-xs text-slate-400 dark:text-slate-500 ${t ?? ""}`,
1922
+ children: /* @__PURE__ */ V("p", {
1923
+ className: r("text-xs text-slate-400 dark:text-slate-500", t),
1344
1924
  ...n,
1345
1925
  children: e
1346
1926
  })
1347
1927
  });
1348
1928
  }
1349
- function Wi({ icon: e, children: t, className: n, ...r }) {
1350
- return /* @__PURE__ */ D("div", {
1351
- className: `vig-sf__hint flex items-start gap-2 rounded-lg px-3 py-2 text-xs text-slate-600 dark:text-slate-300 ${n ?? ""}`,
1352
- ...r,
1353
- children: [e, /* @__PURE__ */ E("span", { children: t })]
1354
- });
1355
- }
1356
- var Gi = Object.assign(Pi, {
1357
- Background: Fi,
1358
- Content: Ii,
1359
- Steps: Li,
1360
- Logo: Ri,
1361
- Title: zi,
1362
- Description: Bi,
1363
- Card: Vi,
1364
- Actions: Hi,
1365
- Footer: Ui,
1366
- Hint: Wi
1929
+ function ha({ icon: e, children: t, className: n, ...i }) {
1930
+ return /* @__PURE__ */ H("div", {
1931
+ 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),
1932
+ ...i,
1933
+ children: [e, /* @__PURE__ */ V("span", { children: t })]
1934
+ });
1935
+ }
1936
+ var ga = Object.assign(aa, {
1937
+ Background: oa,
1938
+ Content: sa,
1939
+ Steps: ca,
1940
+ Logo: la,
1941
+ Title: ua,
1942
+ Description: da,
1943
+ Card: fa,
1944
+ Actions: pa,
1945
+ Footer: ma,
1946
+ Hint: ha
1367
1947
  });
1368
1948
  //#endregion
1369
1949
  //#region src/components/app-footer.tsx
1370
- function Ki({ logo: e, productName: t, version: n, links: r = [] }) {
1371
- return /* @__PURE__ */ D("footer", {
1950
+ function _a({ logo: e, productName: t, version: n, links: r = [] }) {
1951
+ return /* @__PURE__ */ H("footer", {
1372
1952
  className: "mt-auto",
1373
- children: [/* @__PURE__ */ E("div", { className: "mx-6 border-t" }), /* @__PURE__ */ D("div", {
1953
+ children: [/* @__PURE__ */ V("div", { className: "mx-6 border-t" }), /* @__PURE__ */ H("div", {
1374
1954
  className: "px-6 py-3 flex items-center justify-center gap-2 flex-wrap",
1375
1955
  children: [
1376
1956
  e,
1377
- /* @__PURE__ */ D("span", {
1957
+ /* @__PURE__ */ H("span", {
1378
1958
  className: "text-xs text-muted-foreground/70",
1379
1959
  children: [t, n ? ` ${n}` : ""]
1380
1960
  }),
1381
- r.map((e) => /* @__PURE__ */ D(rn.Fragment, { children: [/* @__PURE__ */ E("span", {
1961
+ r.map((e) => /* @__PURE__ */ H(Bt.Fragment, { children: [/* @__PURE__ */ V("span", {
1382
1962
  className: "text-xs text-muted-foreground/40",
1383
1963
  children: "·"
1384
- }), /* @__PURE__ */ E("a", {
1964
+ }), /* @__PURE__ */ V("a", {
1385
1965
  href: e.href,
1386
1966
  target: "_blank",
1387
1967
  rel: "noopener noreferrer",
@@ -1394,32 +1974,32 @@ function Ki({ logo: e, productName: t, version: n, links: r = [] }) {
1394
1974
  }
1395
1975
  //#endregion
1396
1976
  //#region src/components/app-switcher.tsx
1397
- function qi({ open: e, onToggle: t, apps: n, triggerTitle: r = "Apps", closeLabel: i = "Close app switcher", showTrigger: a = !0, headerHeight: o = 56 }) {
1398
- let s = {
1977
+ function va({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
1978
+ let { t: s } = U(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
1399
1979
  top: `${o}px`,
1400
1980
  height: `calc(100vh - ${o}px)`
1401
1981
  };
1402
- return /* @__PURE__ */ D(ln, { children: [
1403
- a && /* @__PURE__ */ E("button", {
1982
+ return /* @__PURE__ */ H(Kt, { children: [
1983
+ a && /* @__PURE__ */ V("button", {
1404
1984
  type: "button",
1405
- title: r,
1985
+ title: c,
1406
1986
  onClick: t,
1407
1987
  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"}`,
1408
- children: /* @__PURE__ */ E(Hn, { className: "h-5 w-5" })
1988
+ children: /* @__PURE__ */ V(Pn, { className: "h-5 w-5" })
1409
1989
  }),
1410
- e && /* @__PURE__ */ E("button", {
1990
+ e && /* @__PURE__ */ V("button", {
1411
1991
  type: "button",
1412
1992
  className: "fixed inset-0 z-40 cursor-default bg-transparent border-none",
1413
1993
  onClick: t,
1414
1994
  onKeyDown: (e) => e.key === "Escape" && t(),
1415
- "aria-label": i
1995
+ "aria-label": l
1416
1996
  }),
1417
- e && /* @__PURE__ */ E("div", {
1997
+ e && /* @__PURE__ */ V("div", {
1418
1998
  className: "vg-app-switcher-panel fixed right-0 z-50 w-72 border-l border-border bg-card shadow-xl overflow-y-auto",
1419
- style: s,
1420
- children: /* @__PURE__ */ E("div", {
1999
+ style: u,
2000
+ children: /* @__PURE__ */ V("div", {
1421
2001
  className: "p-4",
1422
- children: n.map((e) => /* @__PURE__ */ E(Ji, {
2002
+ children: n.map((e) => /* @__PURE__ */ V(ya, {
1423
2003
  app: e,
1424
2004
  onToggle: t
1425
2005
  }, e.id))
@@ -1427,37 +2007,37 @@ function qi({ open: e, onToggle: t, apps: n, triggerTitle: r = "Apps", closeLabe
1427
2007
  })
1428
2008
  ] });
1429
2009
  }
1430
- function Ji({ app: e, onToggle: t }) {
1431
- let { t: n } = k(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
1432
- return /* @__PURE__ */ D("a", {
2010
+ function ya({ app: e, onToggle: t }) {
2011
+ let { t: n } = U(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
2012
+ return /* @__PURE__ */ H("a", {
1433
2013
  href: e.href,
1434
2014
  target: e.external ? "_blank" : void 0,
1435
2015
  rel: e.external ? "noopener noreferrer" : void 0,
1436
2016
  onClick: t,
1437
2017
  className: `flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ${e.active ? "bg-accent font-medium" : "hover:bg-accent"}`,
1438
2018
  children: [
1439
- e.active && /* @__PURE__ */ E(se, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
1440
- e.image ? /* @__PURE__ */ E("img", {
2019
+ e.active && /* @__PURE__ */ V(b, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
2020
+ e.image ? /* @__PURE__ */ V("img", {
1441
2021
  src: e.image,
1442
2022
  alt: "",
1443
2023
  "aria-hidden": "true",
1444
2024
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 object-contain`
1445
- }) : /* @__PURE__ */ E("div", {
2025
+ }) : /* @__PURE__ */ V("div", {
1446
2026
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 rounded-[18%] bg-[#f5deb3] dark:bg-amber-900/40 p-0.5`,
1447
- children: /* @__PURE__ */ E("div", {
2027
+ children: /* @__PURE__ */ V("div", {
1448
2028
  className: `w-full h-full rounded-[14%] ${e.iconBg ?? "bg-muted"} flex items-center justify-center text-white`,
1449
2029
  children: e.icon
1450
2030
  })
1451
2031
  }),
1452
- /* @__PURE__ */ E("span", {
2032
+ /* @__PURE__ */ V("span", {
1453
2033
  className: "text-sm flex-1",
1454
2034
  children: r
1455
2035
  }),
1456
- e.external && /* @__PURE__ */ E(zn, { className: "h-3.5 w-3.5 text-muted-foreground" })
2036
+ e.external && /* @__PURE__ */ V(jn, { className: "h-3.5 w-3.5 text-muted-foreground" })
1457
2037
  ]
1458
2038
  });
1459
2039
  }
1460
- var q = new class {
2040
+ var Z = new class {
1461
2041
  status = "online";
1462
2042
  listeners = /* @__PURE__ */ new Set();
1463
2043
  get current() {
@@ -1472,30 +2052,30 @@ var q = new class {
1472
2052
  };
1473
2053
  }
1474
2054
  }();
1475
- function Yi() {
1476
- q.set("offline");
2055
+ function ba() {
2056
+ Z.set("offline");
1477
2057
  }
1478
- function Xi() {
1479
- q.set("online");
2058
+ function xa() {
2059
+ Z.set("online");
1480
2060
  }
1481
- var Zi = C(null);
1482
- function Qi() {
1483
- let e = w(Zi);
2061
+ var Sa = Vt(null);
2062
+ function Ca() {
2063
+ let e = Ut(Sa);
1484
2064
  if (!e) throw Error("useBackendStatus must be used inside <BackendStatusProvider>");
1485
2065
  return e;
1486
2066
  }
1487
- function $i({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
1488
- let [i, a] = cn(q.current);
1489
- T(() => q.subscribe(a), []);
1490
- let o = an(async () => {
1491
- q.set("checking");
2067
+ function wa({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
2068
+ let [i, a] = Gt(Z.current);
2069
+ z(() => Z.subscribe(a), []);
2070
+ let o = Ht(async () => {
2071
+ Z.set("checking");
1492
2072
  try {
1493
- await L.get(e, { timeout: 4e3 }), q.set("online");
2073
+ await K.get(e, { timeout: 4e3 }), Z.set("online");
1494
2074
  } catch {
1495
- q.set("offline");
2075
+ Z.set("offline");
1496
2076
  }
1497
2077
  }, [e]);
1498
- return T(() => {
2078
+ return z(() => {
1499
2079
  if (i === "online") return;
1500
2080
  let e = setInterval(o, t);
1501
2081
  return () => clearInterval(e);
@@ -1503,38 +2083,38 @@ function $i({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBan
1503
2083
  i,
1504
2084
  t,
1505
2085
  o
1506
- ]), /* @__PURE__ */ D(Zi.Provider, {
2086
+ ]), /* @__PURE__ */ H(Sa.Provider, {
1507
2087
  value: {
1508
2088
  status: i,
1509
2089
  retry: o
1510
2090
  },
1511
- children: [n && /* @__PURE__ */ E(J, {}), r]
2091
+ children: [n && /* @__PURE__ */ V(Ta, {}), r]
1512
2092
  });
1513
2093
  }
1514
- function J() {
1515
- let { status: e, retry: t } = Qi(), { t: n } = k();
2094
+ function Ta() {
2095
+ let { status: e, retry: t } = Ca(), { t: n } = U();
1516
2096
  if (e === "online") return null;
1517
2097
  let r = e === "checking";
1518
- return /* @__PURE__ */ E("div", {
2098
+ return /* @__PURE__ */ V("div", {
1519
2099
  role: "status",
1520
2100
  "aria-live": "polite",
1521
2101
  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",
1522
- children: /* @__PURE__ */ D("div", {
2102
+ children: /* @__PURE__ */ H("div", {
1523
2103
  className: "flex items-center gap-3 px-4 py-2 text-sm",
1524
2104
  children: [
1525
- r ? /* @__PURE__ */ E(Sn, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ E(_n, { className: "size-4 shrink-0" }),
1526
- /* @__PURE__ */ E("span", {
2105
+ r ? /* @__PURE__ */ V(sn, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ V(tn, { className: "size-4 shrink-0" }),
2106
+ /* @__PURE__ */ V("span", {
1527
2107
  className: "flex-1",
1528
2108
  children: n(r ? "backendStatus.checking" : "backendStatus.offline", r ? "Reconnecting to the server..." : "Server unavailable. Retrying...")
1529
2109
  }),
1530
- /* @__PURE__ */ D(_, {
2110
+ /* @__PURE__ */ H(P, {
1531
2111
  type: "button",
1532
2112
  variant: "ghost",
1533
2113
  size: "sm",
1534
2114
  onClick: t,
1535
2115
  disabled: r,
1536
2116
  className: "text-amber-900 dark:text-amber-100 hover:bg-amber-500/20",
1537
- children: [/* @__PURE__ */ E(wn, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
2117
+ children: [/* @__PURE__ */ V(ln, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
1538
2118
  })
1539
2119
  ]
1540
2120
  })
@@ -1542,7 +2122,7 @@ function J() {
1542
2122
  }
1543
2123
  //#endregion
1544
2124
  //#region src/components/error-boundary.tsx
1545
- var ea = class extends rn.Component {
2125
+ var Ea = class extends Bt.Component {
1546
2126
  state = { hasError: !1 };
1547
2127
  static getDerivedStateFromError(e) {
1548
2128
  return {
@@ -1565,49 +2145,49 @@ var ea = class extends rn.Component {
1565
2145
  return this.props.fallback ? this.props.fallback({
1566
2146
  error: e,
1567
2147
  reset: this.reset
1568
- }) : /* @__PURE__ */ E(ta, { error: e });
2148
+ }) : /* @__PURE__ */ V(Da, { error: e });
1569
2149
  }
1570
2150
  };
1571
- function ta({ error: e }) {
1572
- let { t } = k();
1573
- return /* @__PURE__ */ E("div", {
2151
+ function Da({ error: e }) {
2152
+ let { t } = U();
2153
+ return /* @__PURE__ */ V("div", {
1574
2154
  className: "flex items-center justify-center min-h-[80vh] px-6 py-16",
1575
- children: /* @__PURE__ */ E("div", {
2155
+ children: /* @__PURE__ */ V("div", {
1576
2156
  className: "relative w-full max-w-md overflow-hidden rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm shadow-xl",
1577
- children: /* @__PURE__ */ D("div", {
2157
+ children: /* @__PURE__ */ H("div", {
1578
2158
  className: "relative flex flex-col items-center text-center px-8 py-12 space-y-6",
1579
2159
  children: [
1580
- /* @__PURE__ */ D("div", {
2160
+ /* @__PURE__ */ H("div", {
1581
2161
  className: "relative",
1582
- children: [/* @__PURE__ */ E("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ E("div", {
2162
+ children: [/* @__PURE__ */ V("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ V("div", {
1583
2163
  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",
1584
- children: /* @__PURE__ */ E(vn, {
2164
+ children: /* @__PURE__ */ V(nn, {
1585
2165
  className: "text-white",
1586
2166
  size: 30
1587
2167
  })
1588
2168
  })]
1589
2169
  }),
1590
- /* @__PURE__ */ D("div", {
2170
+ /* @__PURE__ */ H("div", {
1591
2171
  className: "space-y-2",
1592
2172
  children: [
1593
- /* @__PURE__ */ E("h2", {
2173
+ /* @__PURE__ */ V("h2", {
1594
2174
  className: "text-xl font-semibold tracking-tight",
1595
2175
  children: t("errorBoundary.title", "Something went wrong")
1596
2176
  }),
1597
- /* @__PURE__ */ E("p", {
2177
+ /* @__PURE__ */ V("p", {
1598
2178
  className: "text-sm text-muted-foreground leading-relaxed max-w-xs mx-auto",
1599
2179
  children: t("errorBoundary.description", "An unexpected error occurred. Try reloading the page.")
1600
2180
  }),
1601
- e.message && /* @__PURE__ */ E("pre", {
2181
+ e.message && /* @__PURE__ */ V("pre", {
1602
2182
  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",
1603
2183
  children: e.message
1604
2184
  })
1605
2185
  ]
1606
2186
  }),
1607
- /* @__PURE__ */ D(_, {
2187
+ /* @__PURE__ */ H(P, {
1608
2188
  size: "lg",
1609
2189
  onClick: () => window.location.reload(),
1610
- children: [/* @__PURE__ */ E(wn, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
2190
+ children: [/* @__PURE__ */ V(ln, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
1611
2191
  })
1612
2192
  ]
1613
2193
  })
@@ -1616,8 +2196,8 @@ function ta({ error: e }) {
1616
2196
  }
1617
2197
  //#endregion
1618
2198
  //#region src/components/language-select.tsx
1619
- function na({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
1620
- let { t: o } = k(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
2199
+ function Oa({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
2200
+ let { t: o } = U(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
1621
2201
  n.forEach((e) => {
1622
2202
  c.set(e.initials, {
1623
2203
  name: e.en,
@@ -1634,34 +2214,34 @@ function na({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [],
1634
2214
  name: t.name,
1635
2215
  label: t.label
1636
2216
  })), u = l.find((t) => t.value === e);
1637
- return /* @__PURE__ */ D(Ke, {
2217
+ return /* @__PURE__ */ H(ke, {
1638
2218
  value: e,
1639
2219
  onValueChange: t,
1640
- children: [/* @__PURE__ */ E(Ze, {
2220
+ children: [/* @__PURE__ */ V(Pe, {
1641
2221
  className: a,
1642
2222
  "aria-label": s,
1643
- children: u ? /* @__PURE__ */ D("div", {
2223
+ children: u ? /* @__PURE__ */ H("div", {
1644
2224
  className: "flex items-center gap-2 truncate",
1645
- children: [/* @__PURE__ */ E(g, { locale: u.value }), /* @__PURE__ */ E("span", {
2225
+ children: [/* @__PURE__ */ V(N, { locale: u.value }), /* @__PURE__ */ V("span", {
1646
2226
  className: "truncate",
1647
2227
  children: u.label
1648
2228
  })]
1649
- }) : /* @__PURE__ */ E("span", {
2229
+ }) : /* @__PURE__ */ V("span", {
1650
2230
  className: "text-muted-foreground",
1651
2231
  children: s
1652
2232
  })
1653
- }), /* @__PURE__ */ E(Je, { children: l.map((e) => /* @__PURE__ */ E(Le, {
2233
+ }), /* @__PURE__ */ V(je, { children: l.map((e) => /* @__PURE__ */ V(ye, {
1654
2234
  value: e.value,
1655
- children: /* @__PURE__ */ D("div", {
2235
+ children: /* @__PURE__ */ H("div", {
1656
2236
  className: "flex items-center gap-2",
1657
- children: [/* @__PURE__ */ E(g, { locale: e.value }), /* @__PURE__ */ E("span", { children: e.label })]
2237
+ children: [/* @__PURE__ */ V(N, { locale: e.value }), /* @__PURE__ */ V("span", { children: e.label })]
1658
2238
  })
1659
2239
  }, e.value)) })]
1660
2240
  });
1661
2241
  }
1662
2242
  //#endregion
1663
2243
  //#region src/components/language-switcher.tsx
1664
- var ra = [{
2244
+ var ka = [{
1665
2245
  code: "en",
1666
2246
  label: "English",
1667
2247
  flag: "🇺🇸"
@@ -1670,24 +2250,24 @@ var ra = [{
1670
2250
  label: "Português",
1671
2251
  flag: "🇧🇷"
1672
2252
  }];
1673
- function ia({ languages: e = ra }) {
1674
- let { i18n: t, t: n } = k();
1675
- return /* @__PURE__ */ D(p, { children: [/* @__PURE__ */ E(i, {
2253
+ function Aa({ languages: e = ka }) {
2254
+ let { i18n: t, t: n } = U();
2255
+ return /* @__PURE__ */ H(E, { children: [/* @__PURE__ */ V(c, {
1676
2256
  asChild: !0,
1677
- children: /* @__PURE__ */ D(_, {
2257
+ children: /* @__PURE__ */ H(P, {
1678
2258
  variant: "outline",
1679
2259
  size: "sm",
1680
- children: [/* @__PURE__ */ E(Vn, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ E("span", {
2260
+ children: [/* @__PURE__ */ V(Nn, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ V("span", {
1681
2261
  className: "sr-only",
1682
- children: n("language.toggle", "Change language")
2262
+ children: n("language.toggle")
1683
2263
  })]
1684
2264
  })
1685
- }), /* @__PURE__ */ E(h, {
2265
+ }), /* @__PURE__ */ V(k, {
1686
2266
  align: "end",
1687
- children: e.map((e) => /* @__PURE__ */ D(m, {
2267
+ children: e.map((e) => /* @__PURE__ */ H(D, {
1688
2268
  onClick: () => t.changeLanguage(e.code),
1689
2269
  className: t.language === e.code ? "font-semibold bg-accent" : "",
1690
- children: [e.flag && /* @__PURE__ */ E("span", {
2270
+ children: [e.flag && /* @__PURE__ */ V("span", {
1691
2271
  className: "mr-2",
1692
2272
  children: e.flag
1693
2273
  }), e.label]
@@ -1696,36 +2276,36 @@ function ia({ languages: e = ra }) {
1696
2276
  }
1697
2277
  //#endregion
1698
2278
  //#region src/components/nav-secondary.tsx
1699
- function aa({ items: e, ...t }) {
1700
- return /* @__PURE__ */ E(at, {
2279
+ function ja({ items: e, ...t }) {
2280
+ return /* @__PURE__ */ V(He, {
1701
2281
  ...t,
1702
- children: /* @__PURE__ */ E(Et, { children: /* @__PURE__ */ E(Lt, { children: e.map((e) => /* @__PURE__ */ E(We, { children: /* @__PURE__ */ E(zt, {
2282
+ children: /* @__PURE__ */ V(lt, { children: /* @__PURE__ */ V(bt, { children: e.map((e) => /* @__PURE__ */ V(De, { children: /* @__PURE__ */ V(St, {
1703
2283
  asChild: !0,
1704
- children: /* @__PURE__ */ D("a", {
2284
+ children: /* @__PURE__ */ H("a", {
1705
2285
  href: e.url,
1706
- children: [/* @__PURE__ */ E(e.icon, {}), /* @__PURE__ */ E("span", { children: e.title })]
2286
+ children: [/* @__PURE__ */ V(e.icon, {}), /* @__PURE__ */ V("span", { children: e.title })]
1707
2287
  })
1708
2288
  }) }, e.title)) }) })
1709
2289
  });
1710
2290
  }
1711
2291
  //#endregion
1712
2292
  //#region src/components/viglet-app-switcher.tsx
1713
- var oa = {
2293
+ var Ma = {
1714
2294
  cloud: "https://console.viglet.cloud",
1715
2295
  turing: "https://turing.viglet.cloud",
1716
2296
  shio: "https://shio.viglet.cloud",
1717
2297
  dumont: "https://dumont.viglet.cloud",
1718
2298
  docs: "https://docs.viglet.org"
1719
2299
  };
1720
- function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
1721
- let { t: s } = k(), c = {
1722
- ...oa,
2300
+ function Na({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
2301
+ let { t: s } = U(), c = {
2302
+ ...Ma,
1723
2303
  ...r
1724
2304
  }, l = [
1725
2305
  {
1726
2306
  id: "cloud",
1727
2307
  name: "Viglet Cloud",
1728
- icon: /* @__PURE__ */ E(Rn, { className: "h-4 w-4" }),
2308
+ icon: /* @__PURE__ */ V(An, { className: "h-4 w-4" }),
1729
2309
  iconBg: "bg-linear-to-br from-[#C2410C] to-[#F97316]",
1730
2310
  href: n === "cloud" ? "/" : c.cloud,
1731
2311
  external: n !== "cloud",
@@ -1734,7 +2314,7 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1734
2314
  {
1735
2315
  id: "turing",
1736
2316
  name: "Turing ES",
1737
- image: Zt,
2317
+ image: Lt,
1738
2318
  href: n === "turing" ? "/" : c.turing,
1739
2319
  external: n !== "turing",
1740
2320
  active: n === "turing"
@@ -1742,7 +2322,7 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1742
2322
  {
1743
2323
  id: "shio",
1744
2324
  name: "Shio CMS",
1745
- image: $t,
2325
+ image: zt,
1746
2326
  href: n === "shio" ? "/" : c.shio,
1747
2327
  external: n !== "shio",
1748
2328
  active: n === "shio"
@@ -1750,7 +2330,7 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1750
2330
  {
1751
2331
  id: "dumont",
1752
2332
  name: "Dumont DEP",
1753
- image: Qt,
2333
+ image: Rt,
1754
2334
  href: n === "dumont" ? "/" : c.dumont,
1755
2335
  external: n !== "dumont",
1756
2336
  active: n === "dumont"
@@ -1758,13 +2338,13 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1758
2338
  {
1759
2339
  id: "docs",
1760
2340
  name: s("common.docs", { defaultValue: "Documentation" }),
1761
- icon: /* @__PURE__ */ E(In, { className: "h-4 w-4" }),
2341
+ icon: /* @__PURE__ */ V(On, { className: "h-4 w-4" }),
1762
2342
  iconBg: "bg-linear-to-br from-violet-500 to-purple-600",
1763
2343
  href: c.docs,
1764
2344
  external: !0
1765
2345
  }
1766
2346
  ], u = i ?? s("common.apps", { defaultValue: "Apps" });
1767
- return /* @__PURE__ */ E(qi, {
2347
+ return /* @__PURE__ */ V(va, {
1768
2348
  open: e,
1769
2349
  onToggle: t,
1770
2350
  apps: l,
@@ -1775,19 +2355,19 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1775
2355
  }
1776
2356
  //#endregion
1777
2357
  //#region src/hooks/use-date-locale.ts
1778
- var ca = {
1779
- en: Pn,
1780
- pt: Fn
2358
+ var Pa = {
2359
+ en: Tn,
2360
+ pt: En
1781
2361
  };
1782
- function la() {
1783
- let { i18n: e } = k();
1784
- return on(() => ca[e.language?.substring(0, 2)] ?? Pn, [e.language]);
2362
+ function Fa() {
2363
+ let { i18n: e } = U();
2364
+ return Wt(() => Pa[e.language?.substring(0, 2)] ?? Tn, [e.language]);
1785
2365
  }
1786
2366
  //#endregion
1787
2367
  //#region src/hooks/use-grid-adapter.ts
1788
- function ua(e, t) {
2368
+ function Ia(e, t) {
1789
2369
  let { id: n, name: r, description: i, url: a, icon: o } = t;
1790
- return on(() => {
2370
+ return Wt(() => {
1791
2371
  if (!Array.isArray(e) || e.length === 0) return [];
1792
2372
  let t = (e, t) => {
1793
2373
  if (typeof t == "function") return t(e);
@@ -1818,9 +2398,9 @@ function ua(e, t) {
1818
2398
  }
1819
2399
  //#endregion
1820
2400
  //#region src/hooks/use-sub-page-breadcrumb.ts
1821
- function da(e) {
1822
- let t = kt()?.setItems, n = sn([]);
1823
- T(() => {
2401
+ function La(e) {
2402
+ let t = ft()?.setItems, n = B([]);
2403
+ z(() => {
1824
2404
  if (e === void 0 || !t) return;
1825
2405
  let r = typeof e == "string" ? [{ label: e }] : Array.isArray(e) ? e : [e], i = n.current;
1826
2406
  i.length === r.length && i.every((e, t) => e.label === r[t].label && e.href === r[t].href) || t((e) => {
@@ -1836,7 +2416,7 @@ function da(e) {
1836
2416
  ...o
1837
2417
  ];
1838
2418
  });
1839
- }, [e, t]), T(() => () => {
2419
+ }, [e, t]), z(() => () => {
1840
2420
  let e = n.current;
1841
2421
  e.length > 0 && t && t((t) => {
1842
2422
  let n = t.indexOf(e[0]);
@@ -1845,9 +2425,42 @@ function da(e) {
1845
2425
  }, [t]);
1846
2426
  }
1847
2427
  //#endregion
2428
+ //#region src/hooks/use-assistant-notifications.ts
2429
+ var Ra = {
2430
+ loading: "working",
2431
+ success: "success",
2432
+ error: "error",
2433
+ warning: "attention",
2434
+ info: "attention"
2435
+ }, za = [
2436
+ "working",
2437
+ "error",
2438
+ "attention",
2439
+ "success"
2440
+ ];
2441
+ function Ba(e) {
2442
+ let { title: t } = e;
2443
+ return typeof t == "string" ? t : typeof t == "number" ? String(t) : null;
2444
+ }
2445
+ function Va() {
2446
+ let { toasts: e } = xn(), t = e.filter((e) => !e.delete), n = "idle", r = null;
2447
+ for (let e of za) {
2448
+ let i = t.find((t) => Ra[t.type ?? ""] === e);
2449
+ if (i) {
2450
+ n = e, r = Ba(i);
2451
+ break;
2452
+ }
2453
+ }
2454
+ return {
2455
+ state: n,
2456
+ caption: r,
2457
+ activity: t.length
2458
+ };
2459
+ }
2460
+ //#endregion
1848
2461
  //#region src/lib/axios.ts
1849
- var Y = "X-XSRF-TOKEN", fa = "/csrf", X = null, Z = L.create({ withCredentials: !0 });
1850
- function pa(e) {
2462
+ var Ha = "X-XSRF-TOKEN", Ua = "/csrf", Q = null, Wa = K.create({ withCredentials: !0 });
2463
+ function Ga(e) {
1851
2464
  return [
1852
2465
  "post",
1853
2466
  "put",
@@ -1855,34 +2468,34 @@ function pa(e) {
1855
2468
  "patch"
1856
2469
  ].includes(e?.toLowerCase() || "");
1857
2470
  }
1858
- function Q(e) {
1859
- return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Y) || null : typeof e == "object" && e && e[Y.toLowerCase()] || null : null;
2471
+ function Ka(e) {
2472
+ return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Ha) || null : typeof e == "object" && e && e[Ha.toLowerCase()] || null : null;
1860
2473
  }
1861
- function ma(e, t) {
2474
+ function qa(e, t) {
1862
2475
  if (typeof e.headers == "object" && e.headers !== null && "set" in e.headers && typeof e.headers.set == "function") {
1863
- e.headers.set(Y, t);
2476
+ e.headers.set(Ha, t);
1864
2477
  return;
1865
2478
  }
1866
2479
  let n = e.headers || {};
1867
- n[Y] = t, e.headers = n;
2480
+ n[Ha] = t, e.headers = n;
1868
2481
  }
1869
- function ha() {
1870
- X = null, $ = null;
2482
+ function Ja() {
2483
+ Q = null, $ = null;
1871
2484
  }
1872
- function ga() {
2485
+ function Ya() {
1873
2486
  let e = /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(globalThis.document.cookie);
1874
2487
  return e ? decodeURIComponent(e[1]) : null;
1875
2488
  }
1876
2489
  var $ = null;
1877
- async function _a() {
1878
- Z.defaults.baseURL = L.defaults.baseURL;
1879
- let e = await Z.get(fa), t = Q(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = ga();
1880
- X = t || n || r || null;
2490
+ async function Xa() {
2491
+ Wa.defaults.baseURL = K.defaults.baseURL;
2492
+ let e = await Wa.get(Ua), t = Ka(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Ya();
2493
+ Q = t || n || r || null;
1881
2494
  }
1882
- async function va() {
1883
- if (!X) {
2495
+ async function Za() {
2496
+ if (!Q) {
1884
2497
  if (!$) {
1885
- let e = _a().finally(() => {
2498
+ let e = Xa().finally(() => {
1886
2499
  $ === e && ($ = null);
1887
2500
  });
1888
2501
  $ = e;
@@ -1890,23 +2503,23 @@ async function va() {
1890
2503
  await $;
1891
2504
  }
1892
2505
  }
1893
- function ya(e = {}) {
2506
+ function Qa(e = {}) {
1894
2507
  let t = e.loginPath ?? "/login";
1895
- e.baseURL && (L.defaults.baseURL = e.baseURL), L.defaults.withCredentials = !0, L.defaults.xsrfCookieName = "XSRF-TOKEN", L.defaults.xsrfHeaderName = Y, L.interceptors.request.use(async (e) => {
1896
- let t = e.url || "", n = e.baseURL || L.defaults.baseURL;
1897
- if (Z.defaults.baseURL = n, t.includes(fa) || !pa(e.method)) return e;
1898
- if (X || await va(), !X) throw Error("Unable to obtain CSRF token for mutating request.");
1899
- return ma(e, X), e;
1900
- }, (e) => Promise.reject(e)), L.interceptors.response.use((e) => {
1901
- let t = Q(e.headers);
1902
- return t && (X = t), e;
2508
+ e.baseURL && (K.defaults.baseURL = e.baseURL), K.defaults.withCredentials = !0, K.defaults.xsrfCookieName = "XSRF-TOKEN", K.defaults.xsrfHeaderName = Ha, K.interceptors.request.use(async (e) => {
2509
+ let t = e.url || "", n = e.baseURL || K.defaults.baseURL;
2510
+ if (Wa.defaults.baseURL = n, t.includes(Ua) || !Ga(e.method)) return e;
2511
+ if (Q || await Za(), !Q) throw Error("Unable to obtain CSRF token for mutating request.");
2512
+ return qa(e, Q), e;
2513
+ }, (e) => Promise.reject(e)), K.interceptors.response.use((e) => {
2514
+ let t = Ka(e.headers);
2515
+ return t && (Q = t), e;
1903
2516
  }, async (e) => {
1904
- let n = Q(e.response?.headers);
1905
- n && (X = n);
2517
+ let n = Ka(e.response?.headers);
2518
+ n && (Q = n);
1906
2519
  let r = e.config;
1907
- if (e.response?.status === 403 && r && !r._csrfRetried && pa(r.method)) {
1908
- if (r._csrfRetried = !0, ha(), Z.defaults.baseURL = r.baseURL || L.defaults.baseURL, await va(), !X) throw e;
1909
- return ma(r, X), L.request(r);
2520
+ if (e.response?.status === 403 && r && !r._csrfRetried && Ga(r.method)) {
2521
+ if (r._csrfRetried = !0, Ja(), Wa.defaults.baseURL = r.baseURL || K.defaults.baseURL, await Za(), !Q) throw e;
2522
+ return qa(r, Q), K.request(r);
1910
2523
  }
1911
2524
  if (e.response?.status === 401 && !globalThis.location.pathname.startsWith(t)) {
1912
2525
  let e = globalThis.location.pathname + globalThis.location.search;
@@ -1917,15 +2530,15 @@ function ya(e = {}) {
1917
2530
  }
1918
2531
  //#endregion
1919
2532
  //#region src/lib/export-xlsx.ts
1920
- var ba = /[[\]:*?/\\]/g, xa = 31;
1921
- function Sa(e) {
1922
- return e.replace(ba, " ").trim().slice(0, xa) || "Sheet1";
2533
+ var $a = /[[\]:*?/\\]/g, eo = 31;
2534
+ function to(e) {
2535
+ return e.replace($a, " ").trim().slice(0, eo) || "Sheet1";
1923
2536
  }
1924
- function Ca(e) {
2537
+ function no(e) {
1925
2538
  return Array.isArray(e) ? e.join(", ") : e instanceof Date ? e.toISOString() : e;
1926
2539
  }
1927
- function wa(e, t, n, r) {
1928
- let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => Ca(e[t.key]))), o = R.utils.aoa_to_sheet([i, ...a]);
2540
+ function ro(e, t, n, r) {
2541
+ let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => no(e[t.key]))), o = Dn.utils.aoa_to_sheet([i, ...a]);
1929
2542
  o["!cols"] = t.map((e, t) => {
1930
2543
  let n = e.label.length;
1931
2544
  for (let e of a) {
@@ -1934,8 +2547,8 @@ function wa(e, t, n, r) {
1934
2547
  }
1935
2548
  return { wch: Math.min(Math.max(n + 2, 12), 60) };
1936
2549
  });
1937
- let s = R.utils.book_new();
1938
- R.utils.book_append_sheet(s, o, Sa(r ?? n)), R.writeFile(s, `${n}.xlsx`);
2550
+ let s = Dn.utils.book_new();
2551
+ Dn.utils.book_append_sheet(s, o, to(r ?? n)), Dn.writeFile(s, `${n}.xlsx`);
1939
2552
  }
1940
2553
  //#endregion
1941
- export { Un as Accordion, Kn as AccordionContent, Wn as AccordionItem, Gn as AccordionTrigger, Ki as AppFooter, qi as AppSwitcher, Dt as Avatar, xt as AvatarFallback, pt as AvatarImage, J as BackendStatusBanner, $i as BackendStatusProvider, u as Badge, xe as BadgeColorful, g as BadgeLocale, Tt as Breadcrumb, Mt as BreadcrumbEllipsis, it as BreadcrumbItem, yt as BreadcrumbLink, It as BreadcrumbList, ot as BreadcrumbPage, Nt as BreadcrumbProvider, lt as BreadcrumbSeparator, Gt as Button, Ee as Card, st as CardAction, Pt as CardContent, Ct as CardDescription, At as CardFooter, ht as CardHeader, tt as CardTitle, qn as Checkbox, r as Dialog, ne as DialogClose, ge as DialogContent, e as DialogDescription, he as DialogFooter, ee as DialogHeader, te as DialogOverlay, re as DialogPortal, a as DialogTitle, c as DialogTrigger, Jn as Drawer, Zn as DrawerClose, $n as DrawerContent, rr as DrawerDescription, tr as DrawerFooter, er as DrawerHeader, Qn as DrawerOverlay, Xn as DrawerPortal, nr as DrawerTitle, Yn as DrawerTrigger, p as DropdownMenu, be as DropdownMenuCheckboxItem, h as DropdownMenuContent, pe as DropdownMenuGroup, m as DropdownMenuItem, f as DropdownMenuLabel, Ce as DropdownMenuPortal, Te as DropdownMenuRadioGroup, ue as DropdownMenuRadioItem, v as DropdownMenuSeparator, ae as DropdownMenuShortcut, n as DropdownMenuSub, we as DropdownMenuSubContent, oe as DropdownMenuSubTrigger, i as DropdownMenuTrigger, ea as ErrorBoundary, b as FloatingFormulasBg, ar as Form, B as FormActions, dr as FormControl, fr as FormDescription, sr as FormField, lr as FormItem, _r as FormItemTwoColumns, ur as FormLabel, pr as FormMessage, V as GlassCard, _ as GradientButton, yr as GradientSwitch, xr as HoverCard, Cr as HoverCardContent, Sr as HoverCardTrigger, Ut as IconPickerDialog, _e as Input, ir as Label, na as LanguageSelect, ia as LanguageSwitcher, ji as Login, mt as ModeToggle, et as ModeToggleSidebar, aa as NavSecondary, wr as NavigationMenu, kr as NavigationMenuContent, Mr as NavigationMenuIndicator, Er as NavigationMenuItem, jr as NavigationMenuLink, Tr as NavigationMenuList, Or as NavigationMenuTrigger, Ar as NavigationMenuViewport, Nr as Pagination, Pr as PaginationContent, Rr as PaginationEllipsis, Fr as PaginationItem, U as PaginationLink, Lr as PaginationNext, Ir as PaginationPrevious, zr as Popover, Hr as PopoverAnchor, Vr as PopoverContent, Br as PopoverTrigger, Ur as Progress, H as PulseRing, Kr as ResizableHandle, Gr as ResizablePanel, Wr as ResizablePanelGroup, Jt as SectionCard, Ke as Select, Je as SelectContent, Ne as SelectGroup, Le as SelectItem, Ot as SelectLabel, Ie as SelectScrollDownButton, Xe as SelectScrollUpButton, Ye as SelectSeparator, Ze as SelectTrigger, He as SelectValue, Pe as Separator, Ve as Sheet, Me as SheetClose, Fe as SheetContent, Re as SheetDescription, Ue as SheetFooter, Vt as SheetHeader, Oe as SheetTitle, qe as SheetTrigger, rt as Sidebar, vt as SidebarContent, Ft as SidebarFooter, at as SidebarGroup, ct as SidebarGroupAction, Et as SidebarGroupContent, bt as SidebarGroupLabel, ft as SidebarHeader, ut as SidebarInput, Qe as SidebarInset, Lt as SidebarMenu, Bt as SidebarMenuAction, nt as SidebarMenuBadge, zt as SidebarMenuButton, We as SidebarMenuItem, ke as SidebarMenuSkeleton, Rt as SidebarMenuSub, Ge as SidebarMenuSubButton, je as SidebarMenuSubItem, Ae as SidebarProvider, Be as SidebarRail, _t as SidebarSeparator, De as SidebarTrigger, de as Skeleton, Xr as Slider, Gi as StartupFirst, G as Stepper, Jr as StickySaveBar, $r as Switch, ei as Table, ni as TableBody, si as TableCaption, oi as TableCell, ri as TableFooter, ai as TableHead, ti as TableHeader, ii as TableRow, ci as Tabs, di as TabsContent, li as TabsList, ui as TabsTrigger, fi as Textarea, wt as ThemeProvider, Ht as Toaster, pi as Toggle, hi as ToggleGroup, gi as ToggleGroupItem, me as Tooltip, le as TooltipContent, ye as TooltipProvider, Se as TooltipTrigger, y as UserAvatar, _i as UserMenu, Yt as UserProvider, sa as VigletAppSwitcher, ie as badgeVariants, Xt as buttonVariants, d as cn, wa as exportToXlsx, ce as getFlagEmoji, o as getHashedColor, ve as getLocaleCountryCode, Wt as getUserInitials, fe as gradientButtonVariants, tn as initVigI18n, Dr as navigationMenuTriggerStyle, nn as registerVigTranslations, Yi as reportBackendOffline, Xi as reportBackendOnline, ya as setupAxiosInterceptors, qt as toast, K as toggleVariants, l as truncateMiddle, Qi as useBackendStatus, St as useBreadcrumb, kt as useBreadcrumbOptional, Kt as useCurrentUser, la as useDateLocale, z as useFormField, ua as useGridAdapter, ze as useIsMobile, gt as useSidebar, da as useSubPageBreadcrumb, jt as useTheme, en as vigDesignSystemTranslations };
2554
+ export { Fn as Accordion, Rn as AccordionContent, In as AccordionItem, Ln as AccordionTrigger, _a as AppFooter, va as AppSwitcher, ut as Avatar, it as AvatarFallback, Xe as AvatarImage, Ta as BackendStatusBanner, wa as BackendStatusProvider, f as Badge, ae as BadgeColorful, N as BadgeLocale, ct as Breadcrumb, ht as BreadcrumbEllipsis, Ve as BreadcrumbItem, nt as BreadcrumbLink, yt as BreadcrumbList, Ue as BreadcrumbPage, gt as BreadcrumbProvider, Ke as BreadcrumbSeparator, Ft as Button, ue as Card, We as CardAction, _t as CardContent, ot as CardDescription, pt as CardFooter, Qe as CardHeader, Re as CardTitle, zn as Checkbox, s as Dialog, h as DialogClose, re as DialogContent, i as DialogDescription, ne as DialogFooter, p as DialogHeader, m as DialogOverlay, g as DialogPortal, l as DialogTitle, d as DialogTrigger, Bn as Drawer, Un as DrawerClose, Gn as DrawerContent, Yn as DrawerDescription, qn as DrawerFooter, Kn as DrawerHeader, Wn as DrawerOverlay, Hn as DrawerPortal, Jn as DrawerTitle, Vn as DrawerTrigger, E as DropdownMenu, ie as DropdownMenuCheckboxItem, k as DropdownMenuContent, ee as DropdownMenuGroup, D as DropdownMenuItem, x as DropdownMenuLabel, oe as DropdownMenuPortal, le as DropdownMenuRadioGroup, C as DropdownMenuRadioItem, ce as DropdownMenuSeparator, v as DropdownMenuShortcut, o as DropdownMenuSub, se as DropdownMenuSubContent, y as DropdownMenuSubTrigger, c as DropdownMenuTrigger, Ea as ErrorBoundary, It as FloatingFormulasBg, Zn as Form, sr as FormActions, ir as FormControl, ar as FormDescription, $n as FormField, nr as FormItem, dr as FormItemTwoColumns, rr as FormLabel, or as FormMessage, hr as GlassCard, P as GradientButton, pr as GradientSwitch, _r as HoverCard, yr as HoverCardContent, vr as HoverCardTrigger, kt as IconPickerDialog, O as Input, Xn as Label, Oa as LanguageSelect, Aa as LanguageSwitcher, na as Login, Ze as ModeToggle, Le as ModeToggleSidebar, ja as NavSecondary, br as NavigationMenu, Tr as NavigationMenuContent, Or as NavigationMenuIndicator, Sr as NavigationMenuItem, Dr as NavigationMenuLink, xr as NavigationMenuList, wr as NavigationMenuTrigger, Er as NavigationMenuViewport, kr as Pagination, Ar as PaginationContent, Fr as PaginationEllipsis, jr as PaginationItem, Mr as PaginationLink, Pr as PaginationNext, Nr as PaginationPrevious, Ir as Popover, zr as PopoverAnchor, Rr as PopoverContent, Hr as PopoverDescription, Br as PopoverHeader, Vr as PopoverTitle, Lr as PopoverTrigger, Ur as Progress, gr as PulseRing, Kr as ResizableHandle, Gr as ResizablePanel, Wr as ResizablePanelGroup, Nt as SectionCard, ke as Select, je as SelectContent, I as SelectGroup, ye as SelectItem, dt as SelectLabel, ve as SelectScrollDownButton, Ne as SelectScrollUpButton, Me as SelectSeparator, Pe as SelectTrigger, Te as SelectValue, ge as Separator, we as Sheet, he as SheetClose, _e as SheetContent, be as SheetDescription, Ee as SheetFooter, wt as SheetHeader, fe as SheetTitle, Ae as SheetTrigger, Be as Sidebar, tt as SidebarContent, vt as SidebarFooter, He as SidebarGroup, Ge as SidebarGroupAction, lt as SidebarGroupContent, rt as SidebarGroupLabel, Ye as SidebarHeader, qe as SidebarInput, Fe as SidebarInset, bt as SidebarMenu, Ct as SidebarMenuAction, ze as SidebarMenuBadge, St as SidebarMenuButton, De as SidebarMenuItem, pe as SidebarMenuSkeleton, xt as SidebarMenuSub, Oe as SidebarMenuSubButton, me as SidebarMenuSubItem, F as SidebarProvider, Ce as SidebarRail, et as SidebarSeparator, de as SidebarTrigger, w as Skeleton, Xr as Slider, ga as StartupFirst, Qr as Stepper, Jr as StickySaveBar, ti as Switch, ni as Table, ii as TableBody, li as TableCaption, ci as TableCell, ai as TableFooter, si as TableHead, ri as TableHeader, oi as TableRow, ui as Tabs, pi as TabsContent, di as TabsList, fi as TabsTrigger, mi as Textarea, st as ThemeProvider, Tt as Toaster, gi as Toggle, vi as ToggleGroup, yi as ToggleGroupItem, te as Tooltip, S as TooltipContent, j as TooltipProvider, M as TooltipTrigger, Mt as UserAvatar, Hi as UserMenu, Pt as UserProvider, Na as VigletAppSwitcher, Vi as VigletAssistant, Ii as VigletAvatar, _ as badgeVariants, Dt as buttonVariants, r as cn, ro as exportToXlsx, t as getFlagEmoji, n as getHashedColor, A as getLocaleCountryCode, Ot as getUserInitials, T as gradientButtonVariants, fr as gradientSwitchVariants, Cr as navigationMenuTriggerStyle, ba as reportBackendOffline, xa as reportBackendOnline, Et as sectionCardColorVariants, Qa as setupAxiosInterceptors, jt as toast, hi as toggleVariants, e as truncateMiddle, Va as useAssistantNotifications, Ca as useBackendStatus, at as useBreadcrumb, ft as useBreadcrumbOptional, At as useCurrentUser, Fa as useDateLocale, er as useFormField, Ia as useGridAdapter, Se as useIsMobile, $e as useSidebar, xe as useSidebarOptional, La as useSubPageBreadcrumb, mt as useTheme };