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