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