@viglet/viglet-design-system 2026.3.8 → 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 (105) hide show
  1. package/README.md +213 -16
  2. package/dist/badge-locale-Bij94NwL.cjs +1 -0
  3. package/dist/{badge-locale-BxI9TwkE.js → badge-locale-Du41PpLA.js} +183 -229
  4. package/dist/bento/bento-back-to-top.d.ts.map +1 -1
  5. package/dist/bento/bento-command-palette.d.ts +47 -12
  6. package/dist/bento/bento-command-palette.d.ts.map +1 -1
  7. package/dist/bento/bento-form-section.d.ts +7 -1
  8. package/dist/bento/bento-form-section.d.ts.map +1 -1
  9. package/dist/bento/bento-inline-edit.d.ts.map +1 -1
  10. package/dist/bento/bento-nav-rail.d.ts.map +1 -1
  11. package/dist/bento/bento-nav.d.ts +10 -2
  12. package/dist/bento/bento-nav.d.ts.map +1 -1
  13. package/dist/bento/bento-section-chrome.d.ts +5 -0
  14. package/dist/bento/bento-section-chrome.d.ts.map +1 -1
  15. package/dist/bento/bento-status-marker.d.ts.map +1 -1
  16. package/dist/bento/bento-tile.d.ts.map +1 -1
  17. package/dist/bento/index.d.ts +1 -1
  18. package/dist/bento/index.d.ts.map +1 -1
  19. package/dist/bento.cjs +1 -1
  20. package/dist/bento.es.js +473 -413
  21. package/dist/{breadcrumb.context-CGqjI0-U.js → breadcrumb.context-BssgEydx.js} +251 -239
  22. package/dist/breadcrumb.context-DLsiMS59.cjs +1 -0
  23. package/dist/components/app-switcher.d.ts.map +1 -1
  24. package/dist/components/badge-colorful.d.ts +9 -0
  25. package/dist/components/badge-colorful.d.ts.map +1 -1
  26. package/dist/components/login/login.d.ts.map +1 -1
  27. package/dist/components/router/grid.list.d.ts.map +1 -1
  28. package/dist/components/router/index.d.ts +1 -1
  29. package/dist/components/router/index.d.ts.map +1 -1
  30. package/dist/components/router/sticky.page.header.d.ts.map +1 -1
  31. package/dist/components/router/sub.page.d.ts.map +1 -1
  32. package/dist/components/router/sub.page.header.d.ts.map +1 -1
  33. package/dist/components/startup-first/startup-first.d.ts.map +1 -1
  34. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  35. package/dist/components/ui/dialog.d.ts.map +1 -1
  36. package/dist/components/ui/floating-formulas-bg.d.ts.map +1 -1
  37. package/dist/components/ui/glass-card.d.ts +10 -5
  38. package/dist/components/ui/glass-card.d.ts.map +1 -1
  39. package/dist/components/ui/icon-picker-dialog.d.ts.map +1 -1
  40. package/dist/components/ui/index.d.ts +6 -4
  41. package/dist/components/ui/index.d.ts.map +1 -1
  42. package/dist/components/ui/navigation-menu.d.ts +14 -0
  43. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  44. package/dist/components/ui/pagination.d.ts.map +1 -1
  45. package/dist/components/ui/pulse-ring.d.ts.map +1 -1
  46. package/dist/components/ui/resizable.d.ts.map +1 -1
  47. package/dist/components/ui/sheet.d.ts.map +1 -1
  48. package/dist/components/ui/sidebar.d.ts.map +1 -1
  49. package/dist/components/ui/sonner.d.ts +12 -0
  50. package/dist/components/ui/sonner.d.ts.map +1 -1
  51. package/dist/components/ui/stepper.d.ts.map +1 -1
  52. package/dist/components/ui/viglet-assistant.d.ts +60 -0
  53. package/dist/components/ui/viglet-assistant.d.ts.map +1 -0
  54. package/dist/components/ui/viglet-avatar.d.ts +42 -0
  55. package/dist/components/ui/viglet-avatar.d.ts.map +1 -0
  56. package/dist/exports.json +24 -5
  57. package/dist/floating-formulas-bg.cjs +1 -1
  58. package/dist/floating-formulas-bg.es.js +56 -55
  59. package/dist/hooks/index.d.ts +1 -0
  60. package/dist/hooks/index.d.ts.map +1 -1
  61. package/dist/hooks/use-assistant-notifications.d.ts +15 -0
  62. package/dist/hooks/use-assistant-notifications.d.ts.map +1 -0
  63. package/dist/i18n/index.d.ts +102 -0
  64. package/dist/i18n/index.d.ts.map +1 -1
  65. package/dist/i18n/locales/en/assistant.json.d.ts +22 -0
  66. package/dist/i18n/locales/en/bento.json.d.ts +5 -2
  67. package/dist/i18n/locales/en/common.json.d.ts +15 -1
  68. package/dist/i18n/locales/en/dialog.json.d.ts +2 -1
  69. package/dist/i18n/locales/en/language.json.d.ts +8 -0
  70. package/dist/i18n/locales/en/sidebar.json.d.ts +4 -1
  71. package/dist/i18n/locales/pt/assistant.json.d.ts +22 -0
  72. package/dist/i18n/locales/pt/bento.json.d.ts +5 -2
  73. package/dist/i18n/locales/pt/common.json.d.ts +15 -1
  74. package/dist/i18n/locales/pt/dialog.json.d.ts +2 -1
  75. package/dist/i18n/locales/pt/language.json.d.ts +8 -0
  76. package/dist/i18n/locales/pt/sidebar.json.d.ts +4 -1
  77. package/dist/i18n.cjs +1 -1
  78. package/dist/i18n.es.js +478 -2
  79. package/dist/index.cjs +1 -1
  80. package/dist/index.d.ts +0 -1
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.es.js +1318 -696
  83. package/dist/loading-provider-B6-R2ONB.cjs +1 -0
  84. package/dist/{loading-provider-CMnOuvdR.js → loading-provider-E3fbcekM.js} +33 -32
  85. package/dist/preset.css +3 -1
  86. package/dist/router.cjs +1 -1
  87. package/dist/router.es.js +135 -134
  88. package/dist/{user.context-kPAqKN4o.js → user.context-CPmUBBLa.js} +109 -99
  89. package/dist/user.context-xsJgPpcO.cjs +1 -0
  90. package/dist/utils-Fk5jmzzb.js +41 -0
  91. package/dist/utils-Oagwe_oa.cjs +1 -0
  92. package/dist/viglet-design-system.css +1 -1
  93. package/dist/vite/boot-loader.d.ts +33 -2
  94. package/dist/vite/boot-loader.d.ts.map +1 -1
  95. package/dist/vite.cjs +16 -5
  96. package/dist/vite.es.js +27 -14
  97. package/docs/BENTO-AUTHORING.md +20 -2
  98. package/docs/reference/grounds.dc.html +9 -9
  99. package/package.json +4 -3
  100. package/dist/badge-locale-sIsBdP_e.cjs +0 -7
  101. package/dist/breadcrumb.context-DYeZEC65.cjs +0 -1
  102. package/dist/i18n-DoNdMLEd.cjs +0 -1
  103. package/dist/i18n-DuNITbWa.js +0 -398
  104. package/dist/loading-provider-1mgM91iY.cjs +0 -1
  105. package/dist/user.context-r50nSWER.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-BxI9TwkE.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-CGqjI0-U.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-kPAqKN4o.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-DuNITbWa.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 * as dn from "@radix-ui/react-checkbox";
15
- import { Drawer as k } from "vaul";
16
- import { Controller as fn, FormProvider as pn, useFormContext as mn, useFormState as hn } from "react-hook-form";
17
- import * as gn from "@radix-ui/react-label";
18
- 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";
19
- import { useTranslation as A } from "react-i18next";
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(k.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(k.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(k.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(k.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(k.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(k.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(k.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(k.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 } = A();
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 } = A();
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 } = A();
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,228 +440,255 @@ 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
- return /* @__PURE__ */ E("nav", {
570
+ function kr({ className: e, ...t }) {
571
+ let { t: n } = U();
572
+ return /* @__PURE__ */ V("nav", {
569
573
  role: "navigation",
570
- "aria-label": "pagination",
571
- className: d("mx-auto flex w-full justify-center", e),
574
+ "aria-label": n("common.pagination", { defaultValue: "Pagination" }),
575
+ className: r("mx-auto flex w-full justify-center", e),
572
576
  ...t
573
577
  });
574
578
  }
575
- var Pr = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ E("ol", {
579
+ var Ar = R.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ V("ol", {
576
580
  ref: n,
577
- className: d("flex flex-row items-center gap-1", e),
581
+ className: r("flex flex-row items-center gap-1", e),
578
582
  ...t
579
583
  }));
580
- Pr.displayName = "PaginationContent";
581
- 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", {
582
586
  ref: n,
583
- className: d("", e),
587
+ className: r("", e),
584
588
  ...t
585
589
  }));
586
- Fr.displayName = "PaginationItem";
587
- function U({ className: e, isActive: t, size: n = "icon", children: r, ...i }) {
588
- 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", {
589
593
  "aria-current": t ? "page" : void 0,
590
- className: d(Xt({
594
+ className: r(Dt({
591
595
  variant: t ? "outline" : "ghost",
592
596
  size: n
593
597
  }), t && "bg-accent text-accent-foreground", e),
594
- ...i,
595
- children: r
598
+ ...a,
599
+ children: i
596
600
  });
597
601
  }
598
- function Ir({ className: e, ...t }) {
599
- return /* @__PURE__ */ D(U, {
600
- "aria-label": "Go to previous page",
602
+ function Nr({ className: e, ...t }) {
603
+ let { t: n } = U();
604
+ return /* @__PURE__ */ H(Mr, {
605
+ "aria-label": n("common.goToPreviousPage", { defaultValue: "Go to previous page" }),
601
606
  size: "default",
602
- className: d("gap-1 pl-2.5", e),
607
+ className: r("gap-1 pl-2.5", e),
603
608
  ...t,
604
- children: [/* @__PURE__ */ E(Ln, { className: "h-4 w-4" }), /* @__PURE__ */ E("span", { children: "Previous" })]
609
+ children: [/* @__PURE__ */ V(kn, { className: "h-4 w-4" }), /* @__PURE__ */ V("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
605
610
  });
606
611
  }
607
- function Lr({ className: e, ...n }) {
608
- return /* @__PURE__ */ D(U, {
609
- "aria-label": "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" }),
610
616
  size: "default",
611
- className: d("gap-1 pr-2.5", e),
612
- ...n,
613
- children: [/* @__PURE__ */ E("span", { children: "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" })]
614
620
  });
615
621
  }
616
- function Rr({ className: e, ...t }) {
617
- return /* @__PURE__ */ D("span", {
622
+ function Fr({ className: e, ...t }) {
623
+ let { t: n } = U();
624
+ return /* @__PURE__ */ H("span", {
618
625
  "aria-hidden": "true",
619
- 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),
620
627
  ...t,
621
- 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", {
622
629
  className: "sr-only",
623
- children: "More pages"
630
+ children: n("common.morePages", { defaultValue: "More pages" })
624
631
  })]
625
632
  });
626
633
  }
627
634
  //#endregion
628
635
  //#region src/components/ui/popover.tsx
629
- function zr({ ...e }) {
630
- return /* @__PURE__ */ E(P.Root, {
636
+ function Ir({ ...e }) {
637
+ return /* @__PURE__ */ V(hn.Root, {
631
638
  "data-slot": "popover",
632
639
  ...e
633
640
  });
634
641
  }
635
- function Br({ ...e }) {
636
- return /* @__PURE__ */ E(P.Trigger, {
642
+ function Lr({ ...e }) {
643
+ return /* @__PURE__ */ V(hn.Trigger, {
637
644
  "data-slot": "popover-trigger",
638
645
  ...e
639
646
  });
640
647
  }
641
- function Vr({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
642
- 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, {
643
650
  "data-slot": "popover-content",
644
651
  align: t,
645
652
  sideOffset: n,
646
- 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),
647
- ...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
648
655
  }) });
649
656
  }
650
- function Hr({ ...e }) {
651
- return /* @__PURE__ */ E(P.Anchor, {
657
+ function zr({ ...e }) {
658
+ return /* @__PURE__ */ V(hn.Anchor, {
652
659
  "data-slot": "popover-anchor",
653
660
  ...e
654
661
  });
655
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
+ }
656
684
  //#endregion
657
685
  //#region src/components/ui/progress.tsx
658
686
  function Ur({ className: e, value: t, ...n }) {
659
- return /* @__PURE__ */ E(On.Root, {
687
+ return /* @__PURE__ */ V(gn.Root, {
660
688
  "data-slot": "progress",
661
- 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),
662
690
  ...n,
663
- children: /* @__PURE__ */ E(On.Indicator, {
691
+ children: /* @__PURE__ */ V(gn.Indicator, {
664
692
  "data-slot": "progress-indicator",
665
693
  className: "h-full w-full flex-1 bg-primary transition-all",
666
694
  style: { transform: `translateX(-${100 - (t || 0)}%)` }
@@ -670,28 +698,28 @@ function Ur({ className: e, value: t, ...n }) {
670
698
  //#endregion
671
699
  //#region src/components/ui/resizable.tsx
672
700
  function Wr({ className: e, ...t }) {
673
- return /* @__PURE__ */ E(kn, {
701
+ return /* @__PURE__ */ V(_n, {
674
702
  "data-slot": "resizable-panel-group",
675
- className: d("flex h-full w-full data-[panel-group-orientation=vertical]:flex-col", e),
703
+ className: r("flex h-full w-full", e),
676
704
  ...t
677
705
  });
678
706
  }
679
707
  function Gr({ overflowHidden: e, className: t, ...n }) {
680
- return /* @__PURE__ */ E(An, {
708
+ return /* @__PURE__ */ V(vn, {
681
709
  "data-slot": "resizable-panel",
682
- className: d(e && "[&>div]:overflow-hidden!", t),
710
+ className: r(e && "[&>div]:overflow-hidden!", t),
683
711
  style: e ? { overflow: "hidden" } : void 0,
684
712
  ...n
685
713
  });
686
714
  }
687
715
  function Kr({ withHandle: e, className: t, ...n }) {
688
- return /* @__PURE__ */ E(jn, {
716
+ return /* @__PURE__ */ V(yn, {
689
717
  "data-slot": "resizable-handle",
690
- 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),
691
719
  ...n,
692
- children: e && /* @__PURE__ */ E("div", {
720
+ children: e && /* @__PURE__ */ V("div", {
693
721
  className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
694
- children: /* @__PURE__ */ E(Bn, { className: "size-2.5" })
722
+ children: /* @__PURE__ */ V(Mn, { className: "size-2.5" })
695
723
  })
696
724
  });
697
725
  }
@@ -704,38 +732,38 @@ var qr = {
704
732
  green: "bg-green-50 dark:bg-green-950/30"
705
733
  };
706
734
  function Jr({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
707
- let { t: s } = A();
708
- return /* @__PURE__ */ D("div", {
735
+ let { t: s } = U();
736
+ return /* @__PURE__ */ H("div", {
709
737
  className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${qr[o]}`,
710
- children: [/* @__PURE__ */ D("div", {
738
+ children: [/* @__PURE__ */ H("div", {
711
739
  className: "flex items-center gap-3 min-w-0",
712
- children: [/* @__PURE__ */ E("h3", {
740
+ children: [/* @__PURE__ */ V("h3", {
713
741
  className: "text-lg font-semibold text-foreground truncate",
714
742
  children: e
715
- }), t && /* @__PURE__ */ E("div", {
743
+ }), t && /* @__PURE__ */ V("div", {
716
744
  className: "flex items-center gap-1.5 shrink-0",
717
745
  children: t
718
746
  })]
719
- }), /* @__PURE__ */ E("div", {
747
+ }), /* @__PURE__ */ V("div", {
720
748
  className: "flex gap-2 shrink-0",
721
- children: n ?? /* @__PURE__ */ D(ln, { children: [/* @__PURE__ */ D(_, {
749
+ children: n ?? /* @__PURE__ */ H(Kt, { children: [/* @__PURE__ */ H(P, {
722
750
  type: "submit",
723
751
  size: "sm",
724
752
  loading: i,
725
753
  disabled: a,
726
- children: [/* @__PURE__ */ E(xn, { className: "size-4" }), s("forms.formActions.saveChanges")]
727
- }), r && /* @__PURE__ */ D(_, {
754
+ children: [/* @__PURE__ */ V(on, { className: "size-4" }), s("forms.formActions.saveChanges")]
755
+ }), r && /* @__PURE__ */ H(P, {
728
756
  type: "button",
729
757
  variant: "outline",
730
758
  size: "sm",
731
759
  onClick: r,
732
- children: [/* @__PURE__ */ E(Dn, { className: "size-4" }), s("forms.formActions.cancel")]
760
+ children: [/* @__PURE__ */ V(fn, { className: "size-4" }), s("forms.formActions.cancel")]
733
761
  })] })
734
762
  })]
735
763
  });
736
764
  }
737
765
  function Yr({ children: e }) {
738
- return /* @__PURE__ */ E(u, {
766
+ return /* @__PURE__ */ V(f, {
739
767
  variant: "outline",
740
768
  className: "text-xs",
741
769
  children: e
@@ -744,205 +772,205 @@ function Yr({ children: e }) {
744
772
  Jr.Badge = Yr;
745
773
  //#endregion
746
774
  //#region src/components/ui/slider.tsx
747
- function Xr({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, "aria-label": a, "aria-labelledby": o, ...s }) {
748
- 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], [
749
777
  n,
750
778
  t,
751
- r,
752
- i
779
+ i,
780
+ a
753
781
  ]);
754
- return /* @__PURE__ */ D(F.Root, {
782
+ return /* @__PURE__ */ H(bn.Root, {
755
783
  "data-slot": "slider",
756
784
  defaultValue: t,
757
785
  value: n,
758
- min: r,
759
- max: i,
760
- 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),
761
- ...s,
762
- 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, {
763
791
  "data-slot": "slider-track",
764
- 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"),
765
- 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, {
766
794
  "data-slot": "slider-range",
767
- 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")
768
796
  })
769
- }), Array.from({ length: c.length }, (e, t) => /* @__PURE__ */ E(F.Thumb, {
797
+ }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ V(bn.Thumb, {
770
798
  "data-slot": "slider-thumb",
771
- "aria-label": a && c.length > 1 ? `${a} ${t + 1}` : a,
772
- "aria-labelledby": o,
799
+ "aria-label": o && l.length > 1 ? `${o} ${t + 1}` : o,
800
+ "aria-labelledby": s,
773
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"
774
802
  }, t))]
775
803
  });
776
804
  }
777
805
  //#endregion
778
806
  //#region src/components/ui/stepper.tsx
779
- var W = C({
807
+ var Zr = Vt({
780
808
  completedSteps: [],
781
809
  allDone: !1
782
810
  });
783
- function G({ completedSteps: e, children: t, className: n }) {
784
- let r = e.length > 0 && e.every(Boolean);
785
- 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, {
786
814
  value: {
787
815
  completedSteps: e,
788
- allDone: r
816
+ allDone: i
789
817
  },
790
- children: /* @__PURE__ */ D("div", {
791
- className: d("relative", n),
792
- 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]
793
821
  })
794
822
  });
795
823
  }
796
- function Zr({ index: e, children: t, className: n }) {
797
- let { completedSteps: r } = w(W), i = r[e] ?? !1, a = e + 1;
798
- return /* @__PURE__ */ D("div", {
799
- className: d("relative flex items-start gap-4 pb-8", n),
800
- 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", {
801
829
  className: "flex flex-col items-center",
802
- children: /* @__PURE__ */ E("div", {
803
- 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"),
804
- 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
805
833
  })
806
- }), /* @__PURE__ */ E("div", {
834
+ }), /* @__PURE__ */ V("div", {
807
835
  className: "flex-1 pt-0.5",
808
836
  children: t
809
837
  })]
810
838
  });
811
839
  }
812
- function Qr({ readyLabel: e = "Ready to submit", pendingLabel: t = "Complete all steps above", className: n }) {
813
- let { allDone: r } = w(W);
814
- return /* @__PURE__ */ D("div", {
815
- className: d("relative flex items-center gap-4", n),
816
- 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", {
817
845
  className: "flex flex-col items-center",
818
- children: /* @__PURE__ */ E("div", {
819
- 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"),
820
- 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" })
821
849
  })
822
- }), /* @__PURE__ */ E("span", {
823
- className: d("text-sm font-medium transition-all duration-500", r ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground/40"),
824
- 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
825
853
  })]
826
854
  });
827
855
  }
828
- G.Step = Zr, G.Completion = Qr;
856
+ Qr.Step = $r, Qr.Completion = ei;
829
857
  //#endregion
830
858
  //#region src/components/ui/switch.tsx
831
- function $r({ className: e, ...t }) {
832
- return /* @__PURE__ */ E(j.Root, {
859
+ function ti({ className: e, ...t }) {
860
+ return /* @__PURE__ */ V(pn.Root, {
833
861
  "data-slot": "switch",
834
- 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),
835
863
  ...t,
836
- children: /* @__PURE__ */ E(j.Thumb, {
864
+ children: /* @__PURE__ */ V(pn.Thumb, {
837
865
  "data-slot": "switch-thumb",
838
- 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")
839
867
  })
840
868
  });
841
869
  }
842
870
  //#endregion
843
871
  //#region src/components/ui/table.tsx
844
- function ei({ className: e, ...t }) {
845
- return /* @__PURE__ */ E("div", {
872
+ function ni({ className: e, ...t }) {
873
+ return /* @__PURE__ */ V("div", {
846
874
  "data-slot": "table-container",
847
875
  className: "relative w-full overflow-x-auto",
848
- children: /* @__PURE__ */ E("table", {
876
+ children: /* @__PURE__ */ V("table", {
849
877
  "data-slot": "table",
850
- className: d("w-full caption-bottom text-sm", e),
878
+ className: r("w-full caption-bottom text-sm", e),
851
879
  ...t
852
880
  })
853
881
  });
854
882
  }
855
- function ti({ className: e, ...t }) {
856
- return /* @__PURE__ */ E("thead", {
883
+ function ri({ className: e, ...t }) {
884
+ return /* @__PURE__ */ V("thead", {
857
885
  "data-slot": "table-header",
858
- className: d("[&_tr]:border-b", e),
886
+ className: r("[&_tr]:border-b", e),
859
887
  ...t
860
888
  });
861
889
  }
862
- function ni({ className: e, ...t }) {
863
- return /* @__PURE__ */ E("tbody", {
890
+ function ii({ className: e, ...t }) {
891
+ return /* @__PURE__ */ V("tbody", {
864
892
  "data-slot": "table-body",
865
- className: d("[&_tr:last-child]:border-0", e),
893
+ className: r("[&_tr:last-child]:border-0", e),
866
894
  ...t
867
895
  });
868
896
  }
869
- function ri({ className: e, ...t }) {
870
- return /* @__PURE__ */ E("tfoot", {
897
+ function ai({ className: e, ...t }) {
898
+ return /* @__PURE__ */ V("tfoot", {
871
899
  "data-slot": "table-footer",
872
- 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),
873
901
  ...t
874
902
  });
875
903
  }
876
- function ii({ className: e, ...t }) {
877
- return /* @__PURE__ */ E("tr", {
904
+ function oi({ className: e, ...t }) {
905
+ return /* @__PURE__ */ V("tr", {
878
906
  "data-slot": "table-row",
879
- 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),
880
908
  ...t
881
909
  });
882
910
  }
883
- function ai({ className: e, ...t }) {
884
- return /* @__PURE__ */ E("th", {
911
+ function si({ className: e, ...t }) {
912
+ return /* @__PURE__ */ V("th", {
885
913
  "data-slot": "table-head",
886
- 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),
887
915
  ...t
888
916
  });
889
917
  }
890
- function oi({ className: e, ...t }) {
891
- return /* @__PURE__ */ E("td", {
918
+ function ci({ className: e, ...t }) {
919
+ return /* @__PURE__ */ V("td", {
892
920
  "data-slot": "table-cell",
893
- 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),
894
922
  ...t
895
923
  });
896
924
  }
897
- function si({ className: e, ...t }) {
898
- return /* @__PURE__ */ E("caption", {
925
+ function li({ className: e, ...t }) {
926
+ return /* @__PURE__ */ V("caption", {
899
927
  "data-slot": "table-caption",
900
- className: d("text-muted-foreground mt-4 text-sm", e),
928
+ className: r("text-muted-foreground mt-4 text-sm", e),
901
929
  ...t
902
930
  });
903
931
  }
904
932
  //#endregion
905
933
  //#region src/components/ui/tabs.tsx
906
- function ci({ className: e, ...t }) {
907
- return /* @__PURE__ */ E(I.Root, {
934
+ function ui({ className: e, ...t }) {
935
+ return /* @__PURE__ */ V(Sn.Root, {
908
936
  "data-slot": "tabs",
909
- className: d("flex flex-col gap-2", e),
937
+ className: r("flex flex-col gap-2", e),
910
938
  ...t
911
939
  });
912
940
  }
913
- function li({ className: e, ...t }) {
914
- return /* @__PURE__ */ E(I.List, {
941
+ function di({ className: e, ...t }) {
942
+ return /* @__PURE__ */ V(Sn.List, {
915
943
  "data-slot": "tabs-list",
916
- 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),
917
945
  ...t
918
946
  });
919
947
  }
920
- function ui({ className: e, ...t }) {
921
- return /* @__PURE__ */ E(I.Trigger, {
948
+ function fi({ className: e, ...t }) {
949
+ return /* @__PURE__ */ V(Sn.Trigger, {
922
950
  "data-slot": "tabs-trigger",
923
- 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),
924
952
  ...t
925
953
  });
926
954
  }
927
- function di({ className: e, ...t }) {
928
- return /* @__PURE__ */ E(I.Content, {
955
+ function pi({ className: e, ...t }) {
956
+ return /* @__PURE__ */ V(Sn.Content, {
929
957
  "data-slot": "tabs-content",
930
- className: d("flex-1 outline-none", e),
958
+ className: r("flex-1 outline-none", e),
931
959
  ...t
932
960
  });
933
961
  }
934
962
  //#endregion
935
963
  //#region src/components/ui/textarea.tsx
936
- function fi({ className: e, ...t }) {
937
- return /* @__PURE__ */ E("textarea", {
964
+ function mi({ className: e, ...t }) {
965
+ return /* @__PURE__ */ V("textarea", {
938
966
  "data-slot": "textarea",
939
- 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),
940
968
  ...t
941
969
  });
942
970
  }
943
971
  //#endregion
944
972
  //#region src/components/ui/toggle.tsx
945
- 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", {
946
974
  variants: {
947
975
  variant: {
948
976
  default: "bg-transparent",
@@ -959,123 +987,679 @@ var K = O("inline-flex items-center justify-center gap-2 rounded-md text-sm font
959
987
  size: "default"
960
988
  }
961
989
  });
962
- function pi({ className: e, variant: t, size: n, ...r }) {
963
- return /* @__PURE__ */ E(Mn.Root, {
990
+ function gi({ className: e, variant: t, size: n, ...i }) {
991
+ return /* @__PURE__ */ V(Cn.Root, {
964
992
  "data-slot": "toggle",
965
- className: d(K({
993
+ className: r(hi({
966
994
  variant: t,
967
995
  size: n,
968
996
  className: e
969
997
  })),
970
- ...r
998
+ ...i
971
999
  });
972
1000
  }
973
1001
  //#endregion
974
1002
  //#region src/components/ui/toggle-group.tsx
975
- var mi = S.createContext({
1003
+ var _i = R.createContext({
976
1004
  size: "default",
977
1005
  variant: "default",
978
1006
  spacing: 0
979
1007
  });
980
- function hi({ className: e, variant: t, size: n, spacing: r = 0, children: i, ...a }) {
981
- 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, {
982
1010
  "data-slot": "toggle-group",
983
1011
  "data-variant": t,
984
1012
  "data-size": n,
985
- "data-spacing": r,
986
- style: { "--gap": r },
987
- 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),
988
- ...a,
989
- 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, {
990
1018
  value: {
991
1019
  variant: t,
992
1020
  size: n,
993
- spacing: r
1021
+ spacing: i
994
1022
  },
995
- children: i
1023
+ children: a
996
1024
  })
997
1025
  });
998
1026
  }
999
- function gi({ className: e, children: t, variant: n, size: r, ...i }) {
1000
- let a = S.useContext(mi);
1001
- 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, {
1002
1030
  "data-slot": "toggle-group-item",
1003
- "data-variant": a.variant || n,
1004
- "data-size": a.size || r,
1005
- "data-spacing": a.spacing,
1006
- className: d(K({
1007
- variant: a.variant || n,
1008
- 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
1009
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),
1010
- ...i,
1038
+ ...a,
1011
1039
  children: t
1012
1040
  });
1013
1041
  }
1014
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
1015
1599
  //#region src/components/ui/user-menu.tsx
1016
- function _i({ user: e, onAccount: t, onSignOut: n, extraItems: r, className: a, align: o = "end" }) {
1017
- let { t: s } = A(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
1018
- 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, {
1019
1603
  asChild: !0,
1020
- children: /* @__PURE__ */ E("button", {
1604
+ children: /* @__PURE__ */ V("button", {
1021
1605
  type: "button",
1022
- title: c || e.username,
1023
- className: d("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
1024
- 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, {
1025
1609
  givenName: e.firstName,
1026
1610
  familyName: e.lastName,
1027
- name: c || e.username,
1611
+ name: l || e.username,
1028
1612
  src: e.avatarUrl || void 0,
1029
1613
  alt: e.username,
1030
1614
  className: "hover:ring-2 hover:ring-border transition-all"
1031
1615
  })
1032
1616
  })
1033
- }), /* @__PURE__ */ D(h, {
1617
+ }), /* @__PURE__ */ H(k, {
1034
1618
  className: "min-w-56 rounded-lg",
1035
1619
  align: o,
1036
1620
  sideOffset: 8,
1037
1621
  children: [
1038
- /* @__PURE__ */ E(f, {
1622
+ /* @__PURE__ */ V(x, {
1039
1623
  className: "p-0 font-normal",
1040
- children: /* @__PURE__ */ D("div", {
1624
+ children: /* @__PURE__ */ H("div", {
1041
1625
  className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
1042
- children: [/* @__PURE__ */ E(y, {
1626
+ children: [/* @__PURE__ */ V(Mt, {
1043
1627
  givenName: e.firstName,
1044
1628
  familyName: e.lastName,
1045
- name: c || e.username,
1629
+ name: l || e.username,
1046
1630
  src: e.avatarUrl || void 0,
1047
1631
  alt: e.username
1048
- }), /* @__PURE__ */ D("div", {
1632
+ }), /* @__PURE__ */ H("div", {
1049
1633
  className: "grid flex-1 text-left text-sm leading-tight",
1050
- children: [c && /* @__PURE__ */ E("span", {
1634
+ children: [l && /* @__PURE__ */ V("span", {
1051
1635
  className: "truncate font-medium",
1052
- children: c
1053
- }), e.email && /* @__PURE__ */ E("span", {
1636
+ children: l
1637
+ }), e.email && /* @__PURE__ */ V("span", {
1054
1638
  className: "text-muted-foreground truncate text-xs",
1055
1639
  children: e.email
1056
1640
  })]
1057
1641
  })]
1058
1642
  })
1059
1643
  }),
1060
- /* @__PURE__ */ E(v, {}),
1061
- /* @__PURE__ */ D(pe, { children: [t && /* @__PURE__ */ D(m, {
1644
+ /* @__PURE__ */ V(ce, {}),
1645
+ /* @__PURE__ */ H(ee, { children: [t && /* @__PURE__ */ H(D, {
1062
1646
  onSelect: t,
1063
1647
  className: "cursor-pointer",
1064
- children: [/* @__PURE__ */ E(En, {}), s("nav.account")]
1065
- }), r] }),
1066
- (t || r) && /* @__PURE__ */ E(v, {}),
1067
- 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, {
1068
1652
  onSelect: n,
1069
1653
  className: "cursor-pointer text-red-500 focus:text-red-500 focus:bg-red-50 dark:focus:bg-red-950",
1070
- children: [/* @__PURE__ */ E(Cn, {}), s("nav.logOut")]
1654
+ children: [/* @__PURE__ */ V(cn, {}), s("nav.logOut")]
1071
1655
  })
1072
1656
  ]
1073
1657
  })] });
1074
1658
  }
1075
1659
  //#endregion
1076
1660
  //#region src/components/login/login.tsx
1077
- var vi = C({});
1078
- function yi(e) {
1661
+ var Ui = Vt({});
1662
+ function Wi(e) {
1079
1663
  if (!e) return null;
1080
1664
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
1081
1665
  if (t) {
@@ -1089,130 +1673,130 @@ function yi(e) {
1089
1673
  }
1090
1674
  return null;
1091
1675
  }
1092
- function bi({ color: e, colorDark: t, children: n, className: r, style: i, ...a }) {
1093
- let o = {};
1094
- e && (o["--ff-color"] = e), t ? o["--ff-color-dark"] = t : e && (o["--ff-color-dark"] = e);
1095
- let s = yi(e);
1096
- s && (o["--ff-color-rgb"] = s);
1097
- let c = yi(t) ?? s;
1098
- 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, {
1099
1683
  value: {
1100
1684
  color: e,
1101
1685
  colorDark: t
1102
1686
  },
1103
- children: /* @__PURE__ */ E("div", {
1104
- 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),
1105
1689
  style: {
1106
- ...i ?? {},
1107
- ...o
1690
+ ...a ?? {},
1691
+ ...s
1108
1692
  },
1109
- ...a,
1693
+ ...o,
1110
1694
  children: n
1111
1695
  })
1112
1696
  });
1113
1697
  }
1114
- function xi(e) {
1115
- let { color: t, colorDark: n } = w(vi);
1116
- return /* @__PURE__ */ E(b, {
1698
+ function Ki(e) {
1699
+ let { color: t, colorDark: n } = Ut(Ui);
1700
+ return /* @__PURE__ */ V(It, {
1117
1701
  color: t,
1118
1702
  colorDark: n,
1119
1703
  ...e
1120
1704
  });
1121
1705
  }
1122
- function Si({ children: e, className: t, ...n }) {
1123
- return /* @__PURE__ */ E("div", {
1124
- 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),
1125
1709
  ...n,
1126
1710
  children: e
1127
1711
  });
1128
1712
  }
1129
- function Ci({ children: e, className: t, ...n }) {
1130
- return /* @__PURE__ */ E("div", {
1131
- 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),
1132
1716
  ...n,
1133
1717
  children: e
1134
1718
  });
1135
1719
  }
1136
- function wi({ children: e, pulsePaused: t, className: n, ...r }) {
1137
- return /* @__PURE__ */ E("div", {
1138
- className: `vig-login__fade-in mb-3 ${n ?? ""}`,
1139
- ...r,
1140
- 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, {
1141
1725
  paused: t,
1142
- children: /* @__PURE__ */ E("div", {
1726
+ children: /* @__PURE__ */ V("div", {
1143
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)]",
1144
1728
  children: e
1145
1729
  })
1146
1730
  })
1147
1731
  });
1148
1732
  }
1149
- function Ti({ children: e, className: t, ...n }) {
1150
- return /* @__PURE__ */ E("div", {
1733
+ function Xi({ children: e, className: t, ...n }) {
1734
+ return /* @__PURE__ */ V("div", {
1151
1735
  className: "vig-login__fade-in-d1 text-center mb-1",
1152
- children: /* @__PURE__ */ E("h1", {
1153
- 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),
1154
1738
  ...n,
1155
1739
  children: e
1156
1740
  })
1157
1741
  });
1158
1742
  }
1159
- function Ei({ children: e, className: t, ...n }) {
1160
- return /* @__PURE__ */ E("div", {
1743
+ function Zi({ children: e, className: t, ...n }) {
1744
+ return /* @__PURE__ */ V("div", {
1161
1745
  className: "vig-login__fade-in-d1 text-center mb-4",
1162
- children: /* @__PURE__ */ E("p", {
1163
- 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),
1164
1748
  ...n,
1165
1749
  children: e
1166
1750
  })
1167
1751
  });
1168
1752
  }
1169
- function Di({ children: e, className: t, ...n }) {
1170
- return /* @__PURE__ */ E("div", {
1171
- 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),
1172
1756
  ...n,
1173
1757
  children: e
1174
1758
  });
1175
1759
  }
1176
- function Oi({ icon: e, children: t, className: n, ...r }) {
1177
- return /* @__PURE__ */ D("div", {
1178
- className: `vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1 ${n ?? ""}`,
1179
- ...r,
1180
- 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", {
1181
1765
  className: "text-xs font-medium text-slate-600 dark:text-slate-300",
1182
1766
  children: t
1183
1767
  })]
1184
1768
  });
1185
1769
  }
1186
- function ki({ children: e, className: t, ...n }) {
1187
- return /* @__PURE__ */ E("div", {
1188
- 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),
1189
1773
  ...n,
1190
- children: /* @__PURE__ */ E(V, { children: e })
1774
+ children: /* @__PURE__ */ V(hr, { children: e })
1191
1775
  });
1192
1776
  }
1193
- function Ai({ children: e, className: t, ...n }) {
1194
- return /* @__PURE__ */ E("div", {
1777
+ function ta({ children: e, className: t, ...n }) {
1778
+ return /* @__PURE__ */ V("div", {
1195
1779
  className: "vig-login__fade-in-d3 mt-4 text-center",
1196
- children: /* @__PURE__ */ E("p", {
1197
- 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),
1198
1782
  ...n,
1199
1783
  children: e
1200
1784
  })
1201
1785
  });
1202
1786
  }
1203
- var ji = Object.assign(bi, {
1204
- Background: xi,
1205
- Settings: Si,
1206
- Content: Ci,
1207
- Logo: wi,
1208
- Title: Ti,
1209
- Tagline: Ei,
1210
- Features: Di,
1211
- FeaturePill: Oi,
1212
- Card: ki,
1213
- Footer: Ai
1214
- }), Mi = C({});
1215
- 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) {
1216
1800
  if (!e) return null;
1217
1801
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
1218
1802
  if (t) {
@@ -1226,63 +1810,68 @@ function Ni(e) {
1226
1810
  }
1227
1811
  return null;
1228
1812
  }
1229
- function Pi({ color: e, colorDark: t, children: n, className: r, style: i, ...a }) {
1230
- let o = {};
1231
- e && (o["--ff-color"] = e), t ? o["--ff-color-dark"] = t : e && (o["--ff-color-dark"] = e);
1232
- let s = Ni(e);
1233
- s && (o["--ff-color-rgb"] = s);
1234
- let c = Ni(t) ?? s;
1235
- 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, {
1236
1820
  value: {
1237
1821
  color: e,
1238
1822
  colorDark: t
1239
1823
  },
1240
- children: /* @__PURE__ */ E("div", {
1241
- 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),
1242
1826
  style: {
1243
- ...i ?? {},
1244
- ...o
1827
+ ...a ?? {},
1828
+ ...s
1245
1829
  },
1246
- ...a,
1830
+ ...o,
1247
1831
  children: n
1248
1832
  })
1249
1833
  });
1250
1834
  }
1251
- function Fi(e) {
1252
- let { color: t, colorDark: n } = w(Mi);
1253
- return /* @__PURE__ */ E(b, {
1835
+ function oa(e) {
1836
+ let { color: t, colorDark: n } = Ut(ra);
1837
+ return /* @__PURE__ */ V(It, {
1254
1838
  color: t,
1255
1839
  colorDark: n,
1256
1840
  ...e
1257
1841
  });
1258
1842
  }
1259
- function Ii({ children: e, className: t, ...n }) {
1260
- return /* @__PURE__ */ E("div", {
1261
- 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),
1262
1846
  ...n,
1263
1847
  children: e
1264
1848
  });
1265
1849
  }
1266
- function Li({ current: e, total: t, className: n, ...r }) {
1267
- return /* @__PURE__ */ E("div", {
1268
- 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),
1269
1854
  role: "group",
1270
- "aria-label": `Step ${e} of ${t}`,
1271
- ...r,
1272
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ E("span", {
1855
+ "aria-label": a("common.stepOf", {
1856
+ index: e,
1857
+ count: t,
1858
+ defaultValue: "Step {{index}} of {{count}}"
1859
+ }),
1860
+ ...i,
1861
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ V("span", {
1273
1862
  className: n + 1 <= e ? "vig-sf__step vig-sf__step--active" : "vig-sf__step",
1274
1863
  "aria-current": n + 1 === e ? "step" : void 0
1275
1864
  }, `step-${n + 1}`))
1276
1865
  });
1277
1866
  }
1278
- function Ri({ children: e, pulsePaused: t, size: n = 80, className: r, style: i, ...a }) {
1279
- return /* @__PURE__ */ E("div", {
1280
- className: `vig-sf__fade-in mb-4 ${r ?? ""}`,
1281
- style: i,
1282
- ...a,
1283
- 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, {
1284
1873
  paused: t,
1285
- children: /* @__PURE__ */ E("div", {
1874
+ children: /* @__PURE__ */ V("div", {
1286
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)]",
1287
1876
  style: {
1288
1877
  width: n,
@@ -1293,86 +1882,86 @@ function Ri({ children: e, pulsePaused: t, size: n = 80, className: r, style: i,
1293
1882
  })
1294
1883
  });
1295
1884
  }
1296
- function zi({ children: e, className: t, ...n }) {
1297
- return /* @__PURE__ */ E("div", {
1885
+ function ua({ children: e, className: t, ...n }) {
1886
+ return /* @__PURE__ */ V("div", {
1298
1887
  className: "vig-sf__fade-in-d1 text-center mb-2",
1299
- children: /* @__PURE__ */ E("h1", {
1300
- 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),
1301
1890
  ...n,
1302
1891
  children: e
1303
1892
  })
1304
1893
  });
1305
1894
  }
1306
- function Bi({ children: e, className: t, ...n }) {
1307
- return /* @__PURE__ */ E("div", {
1895
+ function da({ children: e, className: t, ...n }) {
1896
+ return /* @__PURE__ */ V("div", {
1308
1897
  className: "vig-sf__fade-in-d1 text-center mb-5",
1309
- children: /* @__PURE__ */ E("p", {
1310
- 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),
1311
1900
  ...n,
1312
1901
  children: e
1313
1902
  })
1314
1903
  });
1315
1904
  }
1316
- function Vi({ children: e, className: t, ...n }) {
1317
- return /* @__PURE__ */ E("div", {
1318
- 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),
1319
1908
  ...n,
1320
- children: /* @__PURE__ */ E(V, { children: e })
1909
+ children: /* @__PURE__ */ V(hr, { children: e })
1321
1910
  });
1322
1911
  }
1323
- function Hi({ children: e, className: t, ...n }) {
1324
- return /* @__PURE__ */ E("div", {
1325
- 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),
1326
1915
  ...n,
1327
1916
  children: e
1328
1917
  });
1329
1918
  }
1330
- function Ui({ children: e, className: t, ...n }) {
1331
- return /* @__PURE__ */ E("div", {
1919
+ function ma({ children: e, className: t, ...n }) {
1920
+ return /* @__PURE__ */ V("div", {
1332
1921
  className: "vig-sf__fade-in-d3 mt-6 text-center",
1333
- children: /* @__PURE__ */ E("p", {
1334
- 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),
1335
1924
  ...n,
1336
1925
  children: e
1337
1926
  })
1338
1927
  });
1339
1928
  }
1340
- function Wi({ icon: e, children: t, className: n, ...r }) {
1341
- return /* @__PURE__ */ D("div", {
1342
- 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 ?? ""}`,
1343
- ...r,
1344
- children: [e, /* @__PURE__ */ E("span", { children: t })]
1345
- });
1346
- }
1347
- var Gi = Object.assign(Pi, {
1348
- Background: Fi,
1349
- Content: Ii,
1350
- Steps: Li,
1351
- Logo: Ri,
1352
- Title: zi,
1353
- Description: Bi,
1354
- Card: Vi,
1355
- Actions: Hi,
1356
- Footer: Ui,
1357
- 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
1358
1947
  });
1359
1948
  //#endregion
1360
1949
  //#region src/components/app-footer.tsx
1361
- function Ki({ logo: e, productName: t, version: n, links: r = [] }) {
1362
- return /* @__PURE__ */ D("footer", {
1950
+ function _a({ logo: e, productName: t, version: n, links: r = [] }) {
1951
+ return /* @__PURE__ */ H("footer", {
1363
1952
  className: "mt-auto",
1364
- 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", {
1365
1954
  className: "px-6 py-3 flex items-center justify-center gap-2 flex-wrap",
1366
1955
  children: [
1367
1956
  e,
1368
- /* @__PURE__ */ D("span", {
1957
+ /* @__PURE__ */ H("span", {
1369
1958
  className: "text-xs text-muted-foreground/70",
1370
1959
  children: [t, n ? ` ${n}` : ""]
1371
1960
  }),
1372
- r.map((e) => /* @__PURE__ */ D(rn.Fragment, { children: [/* @__PURE__ */ E("span", {
1961
+ r.map((e) => /* @__PURE__ */ H(Bt.Fragment, { children: [/* @__PURE__ */ V("span", {
1373
1962
  className: "text-xs text-muted-foreground/40",
1374
1963
  children: "·"
1375
- }), /* @__PURE__ */ E("a", {
1964
+ }), /* @__PURE__ */ V("a", {
1376
1965
  href: e.href,
1377
1966
  target: "_blank",
1378
1967
  rel: "noopener noreferrer",
@@ -1385,32 +1974,32 @@ function Ki({ logo: e, productName: t, version: n, links: r = [] }) {
1385
1974
  }
1386
1975
  //#endregion
1387
1976
  //#region src/components/app-switcher.tsx
1388
- function qi({ open: e, onToggle: t, apps: n, triggerTitle: r = "Apps", closeLabel: i = "Close app switcher", showTrigger: a = !0, headerHeight: o = 56 }) {
1389
- 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 = {
1390
1979
  top: `${o}px`,
1391
1980
  height: `calc(100vh - ${o}px)`
1392
1981
  };
1393
- return /* @__PURE__ */ D(ln, { children: [
1394
- a && /* @__PURE__ */ E("button", {
1982
+ return /* @__PURE__ */ H(Kt, { children: [
1983
+ a && /* @__PURE__ */ V("button", {
1395
1984
  type: "button",
1396
- title: r,
1985
+ title: c,
1397
1986
  onClick: t,
1398
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"}`,
1399
- children: /* @__PURE__ */ E(Hn, { className: "h-5 w-5" })
1988
+ children: /* @__PURE__ */ V(Pn, { className: "h-5 w-5" })
1400
1989
  }),
1401
- e && /* @__PURE__ */ E("button", {
1990
+ e && /* @__PURE__ */ V("button", {
1402
1991
  type: "button",
1403
1992
  className: "fixed inset-0 z-40 cursor-default bg-transparent border-none",
1404
1993
  onClick: t,
1405
1994
  onKeyDown: (e) => e.key === "Escape" && t(),
1406
- "aria-label": i
1995
+ "aria-label": l
1407
1996
  }),
1408
- e && /* @__PURE__ */ E("div", {
1997
+ e && /* @__PURE__ */ V("div", {
1409
1998
  className: "vg-app-switcher-panel fixed right-0 z-50 w-72 border-l border-border bg-card shadow-xl overflow-y-auto",
1410
- style: s,
1411
- children: /* @__PURE__ */ E("div", {
1999
+ style: u,
2000
+ children: /* @__PURE__ */ V("div", {
1412
2001
  className: "p-4",
1413
- children: n.map((e) => /* @__PURE__ */ E(Ji, {
2002
+ children: n.map((e) => /* @__PURE__ */ V(ya, {
1414
2003
  app: e,
1415
2004
  onToggle: t
1416
2005
  }, e.id))
@@ -1418,37 +2007,37 @@ function qi({ open: e, onToggle: t, apps: n, triggerTitle: r = "Apps", closeLabe
1418
2007
  })
1419
2008
  ] });
1420
2009
  }
1421
- function Ji({ app: e, onToggle: t }) {
1422
- let { t: n } = A(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
1423
- 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", {
1424
2013
  href: e.href,
1425
2014
  target: e.external ? "_blank" : void 0,
1426
2015
  rel: e.external ? "noopener noreferrer" : void 0,
1427
2016
  onClick: t,
1428
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"}`,
1429
2018
  children: [
1430
- e.active && /* @__PURE__ */ E(se, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
1431
- 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", {
1432
2021
  src: e.image,
1433
2022
  alt: "",
1434
2023
  "aria-hidden": "true",
1435
2024
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 object-contain`
1436
- }) : /* @__PURE__ */ E("div", {
2025
+ }) : /* @__PURE__ */ V("div", {
1437
2026
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 rounded-[18%] bg-[#f5deb3] dark:bg-amber-900/40 p-0.5`,
1438
- children: /* @__PURE__ */ E("div", {
2027
+ children: /* @__PURE__ */ V("div", {
1439
2028
  className: `w-full h-full rounded-[14%] ${e.iconBg ?? "bg-muted"} flex items-center justify-center text-white`,
1440
2029
  children: e.icon
1441
2030
  })
1442
2031
  }),
1443
- /* @__PURE__ */ E("span", {
2032
+ /* @__PURE__ */ V("span", {
1444
2033
  className: "text-sm flex-1",
1445
2034
  children: r
1446
2035
  }),
1447
- 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" })
1448
2037
  ]
1449
2038
  });
1450
2039
  }
1451
- var q = new class {
2040
+ var Z = new class {
1452
2041
  status = "online";
1453
2042
  listeners = /* @__PURE__ */ new Set();
1454
2043
  get current() {
@@ -1463,30 +2052,30 @@ var q = new class {
1463
2052
  };
1464
2053
  }
1465
2054
  }();
1466
- function Yi() {
1467
- q.set("offline");
2055
+ function ba() {
2056
+ Z.set("offline");
1468
2057
  }
1469
- function Xi() {
1470
- q.set("online");
2058
+ function xa() {
2059
+ Z.set("online");
1471
2060
  }
1472
- var Zi = C(null);
1473
- function Qi() {
1474
- let e = w(Zi);
2061
+ var Sa = Vt(null);
2062
+ function Ca() {
2063
+ let e = Ut(Sa);
1475
2064
  if (!e) throw Error("useBackendStatus must be used inside <BackendStatusProvider>");
1476
2065
  return e;
1477
2066
  }
1478
- function $i({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
1479
- let [i, a] = cn(q.current);
1480
- T(() => q.subscribe(a), []);
1481
- let o = an(async () => {
1482
- 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");
1483
2072
  try {
1484
- await L.get(e, { timeout: 4e3 }), q.set("online");
2073
+ await K.get(e, { timeout: 4e3 }), Z.set("online");
1485
2074
  } catch {
1486
- q.set("offline");
2075
+ Z.set("offline");
1487
2076
  }
1488
2077
  }, [e]);
1489
- return T(() => {
2078
+ return z(() => {
1490
2079
  if (i === "online") return;
1491
2080
  let e = setInterval(o, t);
1492
2081
  return () => clearInterval(e);
@@ -1494,38 +2083,38 @@ function $i({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBan
1494
2083
  i,
1495
2084
  t,
1496
2085
  o
1497
- ]), /* @__PURE__ */ D(Zi.Provider, {
2086
+ ]), /* @__PURE__ */ H(Sa.Provider, {
1498
2087
  value: {
1499
2088
  status: i,
1500
2089
  retry: o
1501
2090
  },
1502
- children: [n && /* @__PURE__ */ E(J, {}), r]
2091
+ children: [n && /* @__PURE__ */ V(Ta, {}), r]
1503
2092
  });
1504
2093
  }
1505
- function J() {
1506
- let { status: e, retry: t } = Qi(), { t: n } = A();
2094
+ function Ta() {
2095
+ let { status: e, retry: t } = Ca(), { t: n } = U();
1507
2096
  if (e === "online") return null;
1508
2097
  let r = e === "checking";
1509
- return /* @__PURE__ */ E("div", {
2098
+ return /* @__PURE__ */ V("div", {
1510
2099
  role: "status",
1511
2100
  "aria-live": "polite",
1512
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",
1513
- children: /* @__PURE__ */ D("div", {
2102
+ children: /* @__PURE__ */ H("div", {
1514
2103
  className: "flex items-center gap-3 px-4 py-2 text-sm",
1515
2104
  children: [
1516
- r ? /* @__PURE__ */ E(Sn, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ E(_n, { className: "size-4 shrink-0" }),
1517
- /* @__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", {
1518
2107
  className: "flex-1",
1519
2108
  children: n(r ? "backendStatus.checking" : "backendStatus.offline", r ? "Reconnecting to the server..." : "Server unavailable. Retrying...")
1520
2109
  }),
1521
- /* @__PURE__ */ D(_, {
2110
+ /* @__PURE__ */ H(P, {
1522
2111
  type: "button",
1523
2112
  variant: "ghost",
1524
2113
  size: "sm",
1525
2114
  onClick: t,
1526
2115
  disabled: r,
1527
2116
  className: "text-amber-900 dark:text-amber-100 hover:bg-amber-500/20",
1528
- 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")]
1529
2118
  })
1530
2119
  ]
1531
2120
  })
@@ -1533,7 +2122,7 @@ function J() {
1533
2122
  }
1534
2123
  //#endregion
1535
2124
  //#region src/components/error-boundary.tsx
1536
- var ea = class extends rn.Component {
2125
+ var Ea = class extends Bt.Component {
1537
2126
  state = { hasError: !1 };
1538
2127
  static getDerivedStateFromError(e) {
1539
2128
  return {
@@ -1556,49 +2145,49 @@ var ea = class extends rn.Component {
1556
2145
  return this.props.fallback ? this.props.fallback({
1557
2146
  error: e,
1558
2147
  reset: this.reset
1559
- }) : /* @__PURE__ */ E(ta, { error: e });
2148
+ }) : /* @__PURE__ */ V(Da, { error: e });
1560
2149
  }
1561
2150
  };
1562
- function ta({ error: e }) {
1563
- let { t } = A();
1564
- return /* @__PURE__ */ E("div", {
2151
+ function Da({ error: e }) {
2152
+ let { t } = U();
2153
+ return /* @__PURE__ */ V("div", {
1565
2154
  className: "flex items-center justify-center min-h-[80vh] px-6 py-16",
1566
- children: /* @__PURE__ */ E("div", {
2155
+ children: /* @__PURE__ */ V("div", {
1567
2156
  className: "relative w-full max-w-md overflow-hidden rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm shadow-xl",
1568
- children: /* @__PURE__ */ D("div", {
2157
+ children: /* @__PURE__ */ H("div", {
1569
2158
  className: "relative flex flex-col items-center text-center px-8 py-12 space-y-6",
1570
2159
  children: [
1571
- /* @__PURE__ */ D("div", {
2160
+ /* @__PURE__ */ H("div", {
1572
2161
  className: "relative",
1573
- 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", {
1574
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",
1575
- children: /* @__PURE__ */ E(vn, {
2164
+ children: /* @__PURE__ */ V(nn, {
1576
2165
  className: "text-white",
1577
2166
  size: 30
1578
2167
  })
1579
2168
  })]
1580
2169
  }),
1581
- /* @__PURE__ */ D("div", {
2170
+ /* @__PURE__ */ H("div", {
1582
2171
  className: "space-y-2",
1583
2172
  children: [
1584
- /* @__PURE__ */ E("h2", {
2173
+ /* @__PURE__ */ V("h2", {
1585
2174
  className: "text-xl font-semibold tracking-tight",
1586
2175
  children: t("errorBoundary.title", "Something went wrong")
1587
2176
  }),
1588
- /* @__PURE__ */ E("p", {
2177
+ /* @__PURE__ */ V("p", {
1589
2178
  className: "text-sm text-muted-foreground leading-relaxed max-w-xs mx-auto",
1590
2179
  children: t("errorBoundary.description", "An unexpected error occurred. Try reloading the page.")
1591
2180
  }),
1592
- e.message && /* @__PURE__ */ E("pre", {
2181
+ e.message && /* @__PURE__ */ V("pre", {
1593
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",
1594
2183
  children: e.message
1595
2184
  })
1596
2185
  ]
1597
2186
  }),
1598
- /* @__PURE__ */ D(_, {
2187
+ /* @__PURE__ */ H(P, {
1599
2188
  size: "lg",
1600
2189
  onClick: () => window.location.reload(),
1601
- 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")]
1602
2191
  })
1603
2192
  ]
1604
2193
  })
@@ -1607,8 +2196,8 @@ function ta({ error: e }) {
1607
2196
  }
1608
2197
  //#endregion
1609
2198
  //#region src/components/language-select.tsx
1610
- function na({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
1611
- let { t: o } = A(), 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();
1612
2201
  n.forEach((e) => {
1613
2202
  c.set(e.initials, {
1614
2203
  name: e.en,
@@ -1625,34 +2214,34 @@ function na({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [],
1625
2214
  name: t.name,
1626
2215
  label: t.label
1627
2216
  })), u = l.find((t) => t.value === e);
1628
- return /* @__PURE__ */ D(Ke, {
2217
+ return /* @__PURE__ */ H(ke, {
1629
2218
  value: e,
1630
2219
  onValueChange: t,
1631
- children: [/* @__PURE__ */ E(Ze, {
2220
+ children: [/* @__PURE__ */ V(Pe, {
1632
2221
  className: a,
1633
2222
  "aria-label": s,
1634
- children: u ? /* @__PURE__ */ D("div", {
2223
+ children: u ? /* @__PURE__ */ H("div", {
1635
2224
  className: "flex items-center gap-2 truncate",
1636
- children: [/* @__PURE__ */ E(g, { locale: u.value }), /* @__PURE__ */ E("span", {
2225
+ children: [/* @__PURE__ */ V(N, { locale: u.value }), /* @__PURE__ */ V("span", {
1637
2226
  className: "truncate",
1638
2227
  children: u.label
1639
2228
  })]
1640
- }) : /* @__PURE__ */ E("span", {
2229
+ }) : /* @__PURE__ */ V("span", {
1641
2230
  className: "text-muted-foreground",
1642
2231
  children: s
1643
2232
  })
1644
- }), /* @__PURE__ */ E(Je, { children: l.map((e) => /* @__PURE__ */ E(Le, {
2233
+ }), /* @__PURE__ */ V(je, { children: l.map((e) => /* @__PURE__ */ V(ye, {
1645
2234
  value: e.value,
1646
- children: /* @__PURE__ */ D("div", {
2235
+ children: /* @__PURE__ */ H("div", {
1647
2236
  className: "flex items-center gap-2",
1648
- 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 })]
1649
2238
  })
1650
2239
  }, e.value)) })]
1651
2240
  });
1652
2241
  }
1653
2242
  //#endregion
1654
2243
  //#region src/components/language-switcher.tsx
1655
- var ra = [{
2244
+ var ka = [{
1656
2245
  code: "en",
1657
2246
  label: "English",
1658
2247
  flag: "🇺🇸"
@@ -1661,24 +2250,24 @@ var ra = [{
1661
2250
  label: "Português",
1662
2251
  flag: "🇧🇷"
1663
2252
  }];
1664
- function ia({ languages: e = ra }) {
1665
- let { i18n: t, t: n } = A();
1666
- 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, {
1667
2256
  asChild: !0,
1668
- children: /* @__PURE__ */ D(_, {
2257
+ children: /* @__PURE__ */ H(P, {
1669
2258
  variant: "outline",
1670
2259
  size: "sm",
1671
- 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", {
1672
2261
  className: "sr-only",
1673
- children: n("language.toggle", "Change language")
2262
+ children: n("language.toggle")
1674
2263
  })]
1675
2264
  })
1676
- }), /* @__PURE__ */ E(h, {
2265
+ }), /* @__PURE__ */ V(k, {
1677
2266
  align: "end",
1678
- children: e.map((e) => /* @__PURE__ */ D(m, {
2267
+ children: e.map((e) => /* @__PURE__ */ H(D, {
1679
2268
  onClick: () => t.changeLanguage(e.code),
1680
2269
  className: t.language === e.code ? "font-semibold bg-accent" : "",
1681
- children: [e.flag && /* @__PURE__ */ E("span", {
2270
+ children: [e.flag && /* @__PURE__ */ V("span", {
1682
2271
  className: "mr-2",
1683
2272
  children: e.flag
1684
2273
  }), e.label]
@@ -1687,36 +2276,36 @@ function ia({ languages: e = ra }) {
1687
2276
  }
1688
2277
  //#endregion
1689
2278
  //#region src/components/nav-secondary.tsx
1690
- function aa({ items: e, ...t }) {
1691
- return /* @__PURE__ */ E(at, {
2279
+ function ja({ items: e, ...t }) {
2280
+ return /* @__PURE__ */ V(He, {
1692
2281
  ...t,
1693
- 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, {
1694
2283
  asChild: !0,
1695
- children: /* @__PURE__ */ D("a", {
2284
+ children: /* @__PURE__ */ H("a", {
1696
2285
  href: e.url,
1697
- children: [/* @__PURE__ */ E(e.icon, {}), /* @__PURE__ */ E("span", { children: e.title })]
2286
+ children: [/* @__PURE__ */ V(e.icon, {}), /* @__PURE__ */ V("span", { children: e.title })]
1698
2287
  })
1699
2288
  }) }, e.title)) }) })
1700
2289
  });
1701
2290
  }
1702
2291
  //#endregion
1703
2292
  //#region src/components/viglet-app-switcher.tsx
1704
- var oa = {
2293
+ var Ma = {
1705
2294
  cloud: "https://console.viglet.cloud",
1706
2295
  turing: "https://turing.viglet.cloud",
1707
2296
  shio: "https://shio.viglet.cloud",
1708
2297
  dumont: "https://dumont.viglet.cloud",
1709
2298
  docs: "https://docs.viglet.org"
1710
2299
  };
1711
- function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
1712
- let { t: s } = A(), c = {
1713
- ...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,
1714
2303
  ...r
1715
2304
  }, l = [
1716
2305
  {
1717
2306
  id: "cloud",
1718
2307
  name: "Viglet Cloud",
1719
- icon: /* @__PURE__ */ E(Rn, { className: "h-4 w-4" }),
2308
+ icon: /* @__PURE__ */ V(An, { className: "h-4 w-4" }),
1720
2309
  iconBg: "bg-linear-to-br from-[#C2410C] to-[#F97316]",
1721
2310
  href: n === "cloud" ? "/" : c.cloud,
1722
2311
  external: n !== "cloud",
@@ -1725,7 +2314,7 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1725
2314
  {
1726
2315
  id: "turing",
1727
2316
  name: "Turing ES",
1728
- image: Zt,
2317
+ image: Lt,
1729
2318
  href: n === "turing" ? "/" : c.turing,
1730
2319
  external: n !== "turing",
1731
2320
  active: n === "turing"
@@ -1733,7 +2322,7 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1733
2322
  {
1734
2323
  id: "shio",
1735
2324
  name: "Shio CMS",
1736
- image: $t,
2325
+ image: zt,
1737
2326
  href: n === "shio" ? "/" : c.shio,
1738
2327
  external: n !== "shio",
1739
2328
  active: n === "shio"
@@ -1741,7 +2330,7 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1741
2330
  {
1742
2331
  id: "dumont",
1743
2332
  name: "Dumont DEP",
1744
- image: Qt,
2333
+ image: Rt,
1745
2334
  href: n === "dumont" ? "/" : c.dumont,
1746
2335
  external: n !== "dumont",
1747
2336
  active: n === "dumont"
@@ -1749,13 +2338,13 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1749
2338
  {
1750
2339
  id: "docs",
1751
2340
  name: s("common.docs", { defaultValue: "Documentation" }),
1752
- icon: /* @__PURE__ */ E(In, { className: "h-4 w-4" }),
2341
+ icon: /* @__PURE__ */ V(On, { className: "h-4 w-4" }),
1753
2342
  iconBg: "bg-linear-to-br from-violet-500 to-purple-600",
1754
2343
  href: c.docs,
1755
2344
  external: !0
1756
2345
  }
1757
2346
  ], u = i ?? s("common.apps", { defaultValue: "Apps" });
1758
- return /* @__PURE__ */ E(qi, {
2347
+ return /* @__PURE__ */ V(va, {
1759
2348
  open: e,
1760
2349
  onToggle: t,
1761
2350
  apps: l,
@@ -1766,19 +2355,19 @@ function sa({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
1766
2355
  }
1767
2356
  //#endregion
1768
2357
  //#region src/hooks/use-date-locale.ts
1769
- var ca = {
1770
- en: Pn,
1771
- pt: Fn
2358
+ var Pa = {
2359
+ en: Tn,
2360
+ pt: En
1772
2361
  };
1773
- function la() {
1774
- let { i18n: e } = A();
1775
- 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]);
1776
2365
  }
1777
2366
  //#endregion
1778
2367
  //#region src/hooks/use-grid-adapter.ts
1779
- function ua(e, t) {
2368
+ function Ia(e, t) {
1780
2369
  let { id: n, name: r, description: i, url: a, icon: o } = t;
1781
- return on(() => {
2370
+ return Wt(() => {
1782
2371
  if (!Array.isArray(e) || e.length === 0) return [];
1783
2372
  let t = (e, t) => {
1784
2373
  if (typeof t == "function") return t(e);
@@ -1809,9 +2398,9 @@ function ua(e, t) {
1809
2398
  }
1810
2399
  //#endregion
1811
2400
  //#region src/hooks/use-sub-page-breadcrumb.ts
1812
- function da(e) {
1813
- let t = kt()?.setItems, n = sn([]);
1814
- T(() => {
2401
+ function La(e) {
2402
+ let t = ft()?.setItems, n = B([]);
2403
+ z(() => {
1815
2404
  if (e === void 0 || !t) return;
1816
2405
  let r = typeof e == "string" ? [{ label: e }] : Array.isArray(e) ? e : [e], i = n.current;
1817
2406
  i.length === r.length && i.every((e, t) => e.label === r[t].label && e.href === r[t].href) || t((e) => {
@@ -1827,7 +2416,7 @@ function da(e) {
1827
2416
  ...o
1828
2417
  ];
1829
2418
  });
1830
- }, [e, t]), T(() => () => {
2419
+ }, [e, t]), z(() => () => {
1831
2420
  let e = n.current;
1832
2421
  e.length > 0 && t && t((t) => {
1833
2422
  let n = t.indexOf(e[0]);
@@ -1836,9 +2425,42 @@ function da(e) {
1836
2425
  }, [t]);
1837
2426
  }
1838
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
1839
2461
  //#region src/lib/axios.ts
1840
- var Y = "X-XSRF-TOKEN", fa = "/csrf", X = null, Z = L.create({ withCredentials: !0 });
1841
- function pa(e) {
2462
+ var Ha = "X-XSRF-TOKEN", Ua = "/csrf", Q = null, Wa = K.create({ withCredentials: !0 });
2463
+ function Ga(e) {
1842
2464
  return [
1843
2465
  "post",
1844
2466
  "put",
@@ -1846,34 +2468,34 @@ function pa(e) {
1846
2468
  "patch"
1847
2469
  ].includes(e?.toLowerCase() || "");
1848
2470
  }
1849
- function Q(e) {
1850
- 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;
1851
2473
  }
1852
- function ma(e, t) {
2474
+ function qa(e, t) {
1853
2475
  if (typeof e.headers == "object" && e.headers !== null && "set" in e.headers && typeof e.headers.set == "function") {
1854
- e.headers.set(Y, t);
2476
+ e.headers.set(Ha, t);
1855
2477
  return;
1856
2478
  }
1857
2479
  let n = e.headers || {};
1858
- n[Y] = t, e.headers = n;
2480
+ n[Ha] = t, e.headers = n;
1859
2481
  }
1860
- function ha() {
1861
- X = null, $ = null;
2482
+ function Ja() {
2483
+ Q = null, $ = null;
1862
2484
  }
1863
- function ga() {
2485
+ function Ya() {
1864
2486
  let e = /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(globalThis.document.cookie);
1865
2487
  return e ? decodeURIComponent(e[1]) : null;
1866
2488
  }
1867
2489
  var $ = null;
1868
- async function _a() {
1869
- Z.defaults.baseURL = L.defaults.baseURL;
1870
- 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();
1871
- 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;
1872
2494
  }
1873
- async function va() {
1874
- if (!X) {
2495
+ async function Za() {
2496
+ if (!Q) {
1875
2497
  if (!$) {
1876
- let e = _a().finally(() => {
2498
+ let e = Xa().finally(() => {
1877
2499
  $ === e && ($ = null);
1878
2500
  });
1879
2501
  $ = e;
@@ -1881,23 +2503,23 @@ async function va() {
1881
2503
  await $;
1882
2504
  }
1883
2505
  }
1884
- function ya(e = {}) {
2506
+ function Qa(e = {}) {
1885
2507
  let t = e.loginPath ?? "/login";
1886
- 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) => {
1887
- let t = e.url || "", n = e.baseURL || L.defaults.baseURL;
1888
- if (Z.defaults.baseURL = n, t.includes(fa) || !pa(e.method)) return e;
1889
- if (X || await va(), !X) throw Error("Unable to obtain CSRF token for mutating request.");
1890
- return ma(e, X), e;
1891
- }, (e) => Promise.reject(e)), L.interceptors.response.use((e) => {
1892
- let t = Q(e.headers);
1893
- 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;
1894
2516
  }, async (e) => {
1895
- let n = Q(e.response?.headers);
1896
- n && (X = n);
2517
+ let n = Ka(e.response?.headers);
2518
+ n && (Q = n);
1897
2519
  let r = e.config;
1898
- if (e.response?.status === 403 && r && !r._csrfRetried && pa(r.method)) {
1899
- if (r._csrfRetried = !0, ha(), Z.defaults.baseURL = r.baseURL || L.defaults.baseURL, await va(), !X) throw e;
1900
- 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);
1901
2523
  }
1902
2524
  if (e.response?.status === 401 && !globalThis.location.pathname.startsWith(t)) {
1903
2525
  let e = globalThis.location.pathname + globalThis.location.search;
@@ -1908,15 +2530,15 @@ function ya(e = {}) {
1908
2530
  }
1909
2531
  //#endregion
1910
2532
  //#region src/lib/export-xlsx.ts
1911
- var ba = /[[\]:*?/\\]/g, xa = 31;
1912
- function Sa(e) {
1913
- 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";
1914
2536
  }
1915
- function Ca(e) {
2537
+ function no(e) {
1916
2538
  return Array.isArray(e) ? e.join(", ") : e instanceof Date ? e.toISOString() : e;
1917
2539
  }
1918
- function wa(e, t, n, r) {
1919
- 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]);
1920
2542
  o["!cols"] = t.map((e, t) => {
1921
2543
  let n = e.label.length;
1922
2544
  for (let e of a) {
@@ -1925,8 +2547,8 @@ function wa(e, t, n, r) {
1925
2547
  }
1926
2548
  return { wch: Math.min(Math.max(n + 2, 12), 60) };
1927
2549
  });
1928
- let s = R.utils.book_new();
1929
- 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`);
1930
2552
  }
1931
2553
  //#endregion
1932
- 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 };