florixui 1.9.0 → 1.10.0
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 +10 -0
- package/dist/components/custom/divider.d.ts +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +596 -412
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { clsx as e } from "clsx";
|
|
|
2
2
|
import { twMerge as t } from "tailwind-merge";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { createContext as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
5
|
-
import { AlertCircleIcon as p, AlertTriangle as m, ArrowLeftIcon as h, Calendar as g, Check as _, CheckIcon as v, ChevronDown as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as C, ChevronsLeftIcon as w, ChevronsRightIcon as T, CircleCheckIcon as E, CircleDotIcon as D, CircleXIcon as O, Clock as k, Eye as A, EyeOff as ee, FileArchiveIcon as j, FileIcon as M, FileSpreadsheetIcon as N, FileTextIcon as P, HeadphonesIcon as F, HomeIcon as I, ImageIcon as L, ImageUpIcon as te, InboxIcon as R, InfoIcon as
|
|
5
|
+
import { AlertCircleIcon as p, AlertTriangle as m, ArrowLeftIcon as h, Calendar as g, Check as _, CheckIcon as v, ChevronDown as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as C, ChevronsLeftIcon as w, ChevronsRightIcon as T, CircleCheckIcon as E, CircleDotIcon as D, CircleXIcon as O, Clock as k, Eye as A, EyeOff as ee, FileArchiveIcon as j, FileIcon as M, FileSpreadsheetIcon as N, FileTextIcon as P, HeadphonesIcon as F, HomeIcon as I, ImageIcon as L, ImageUpIcon as te, InboxIcon as R, InfoIcon as ne, Layers as z, Loader2 as re, Loader2Icon as B, LoaderCircleIcon as ie, Locate as ae, Maximize as V, Minus as oe, MoreVertical as H, OctagonXIcon as se, PaintBucketIcon as ce, Plus as le, PlusCircleIcon as ue, PlusIcon as de, RefreshCwIcon as fe, SearchIcon as pe, Trash2Icon as me, TrendingDownIcon as he, TrendingUpIcon as ge, TriangleAlertIcon as _e, UploadIcon as ve, VideoIcon as ye, X as be, XIcon as U } from "lucide-react";
|
|
6
6
|
import { cva as W } from "class-variance-authority";
|
|
7
7
|
import { AlertDialog as G, Checkbox as xe, Dialog as K, DropdownMenu as q, HoverCard as Se, Label as Ce, Popover as we, Progress as Te, RadioGroup as Ee, Select as J, Separator as De, Slider as Oe, Slot as ke, Switch as Ae, Tabs as je, Toggle as Me, ToggleGroup as Ne, Tooltip as Pe } from "radix-ui";
|
|
8
8
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -191,7 +191,7 @@ var Ke = (e, t = 2) => {
|
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/components/ui/spinner.tsx
|
|
193
193
|
function Je({ className: e, ...t }) {
|
|
194
|
-
return /* @__PURE__ */ X(
|
|
194
|
+
return /* @__PURE__ */ X(B, {
|
|
195
195
|
role: "status",
|
|
196
196
|
"aria-label": "Loading",
|
|
197
197
|
className: Q("size-4 animate-spin", e),
|
|
@@ -376,7 +376,7 @@ var dt = 16;
|
|
|
376
376
|
function ft(e) {
|
|
377
377
|
return e.type === void 0 || e.type === "action";
|
|
378
378
|
}
|
|
379
|
-
function pt({ items: e, trigger: t, triggerIcon: n =
|
|
379
|
+
function pt({ items: e, trigger: t, triggerIcon: n = H, triggerLabel: r = "Open menu", width: i = "10rem", align: a = "end", className: o, open: s, onOpenChange: c }) {
|
|
380
380
|
return /* @__PURE__ */ Z(Xe, {
|
|
381
381
|
open: s,
|
|
382
382
|
onOpenChange: c,
|
|
@@ -579,7 +579,7 @@ function Mt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
579
579
|
variant: "ghost",
|
|
580
580
|
className: "absolute top-2 right-2",
|
|
581
581
|
size: "icon-sm",
|
|
582
|
-
children: [/* @__PURE__ */ X(
|
|
582
|
+
children: [/* @__PURE__ */ X(U, {}), /* @__PURE__ */ X("span", {
|
|
583
583
|
className: "sr-only",
|
|
584
584
|
children: "Close"
|
|
585
585
|
})]
|
|
@@ -742,7 +742,7 @@ function Yt({ className: e, ...t }) {
|
|
|
742
742
|
"data-slot": "command-input",
|
|
743
743
|
className: Q("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
744
744
|
...t
|
|
745
|
-
}), /* @__PURE__ */ X(Vt, { children: /* @__PURE__ */ X(
|
|
745
|
+
}), /* @__PURE__ */ X(Vt, { children: /* @__PURE__ */ X(pe, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
746
746
|
})
|
|
747
747
|
});
|
|
748
748
|
}
|
|
@@ -1160,24 +1160,24 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1160
1160
|
]
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
|
-
let { type: P, onFocus: F, ...I } = x, L = P ?? "text", te = L === "password", R = te && T ? "text" : L,
|
|
1163
|
+
let { type: P, onFocus: F, ...I } = x, L = P ?? "text", te = L === "password", R = te && T ? "text" : L, ne = te ? /* @__PURE__ */ X("button", {
|
|
1164
1164
|
type: "button",
|
|
1165
1165
|
onClick: () => E((e) => !e),
|
|
1166
1166
|
"aria-label": T ? "Hide password" : "Show password",
|
|
1167
1167
|
className: "cursor-pointer text-muted-foreground transition-colors hover:text-foreground",
|
|
1168
1168
|
tabIndex: -1,
|
|
1169
1169
|
children: X(T ? ee : A, { className: "size-4" })
|
|
1170
|
-
}) : null,
|
|
1170
|
+
}) : null, z = _ ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" }) : f, B = te ? ne : p, ie = (e) => {
|
|
1171
1171
|
R === "number" && e.target.select(), F?.(e);
|
|
1172
|
-
},
|
|
1172
|
+
}, ae = !!(h || g), V = /* @__PURE__ */ X("input", {
|
|
1173
1173
|
id: w,
|
|
1174
1174
|
type: R,
|
|
1175
1175
|
ref: t,
|
|
1176
1176
|
disabled: m,
|
|
1177
1177
|
"aria-invalid": S,
|
|
1178
1178
|
"aria-describedby": j,
|
|
1179
|
-
onFocus:
|
|
1180
|
-
className: Q("w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground/60 disabled:cursor-not-allowed",
|
|
1179
|
+
onFocus: ie,
|
|
1180
|
+
className: Q("w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground/60 disabled:cursor-not-allowed", ae ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-lg border border-input pl-3 pr-3 py-1 transition-colors", M, u === "default" ? "h-9" : "h-8", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", z && "pl-9", B && "pr-9"), ae && "pl-3 pr-3", ae && z && !h && "pl-9", ae && B && !g && "pr-9", r),
|
|
1181
1181
|
...I
|
|
1182
1182
|
});
|
|
1183
1183
|
return /* @__PURE__ */ Z("div", {
|
|
@@ -1188,7 +1188,7 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1188
1188
|
className: Q(m && "text-muted-foreground"),
|
|
1189
1189
|
children: [a, N]
|
|
1190
1190
|
}),
|
|
1191
|
-
|
|
1191
|
+
ae ? /* @__PURE__ */ Z("div", {
|
|
1192
1192
|
"aria-invalid": S,
|
|
1193
1193
|
className: Q("flex items-center overflow-hidden rounded-lg border border-input transition-colors", M, u === "default" ? "h-9" : "h-8", "focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50", "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-3 aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40", m && "cursor-not-allowed opacity-50"),
|
|
1194
1194
|
children: [
|
|
@@ -1199,14 +1199,14 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1199
1199
|
/* @__PURE__ */ Z("div", {
|
|
1200
1200
|
className: "relative flex h-full flex-1 items-center",
|
|
1201
1201
|
children: [
|
|
1202
|
-
|
|
1202
|
+
z && /* @__PURE__ */ X("div", {
|
|
1203
1203
|
className: "pointer-events-none absolute left-3 flex items-center text-muted-foreground [&_svg]:size-4",
|
|
1204
|
-
children:
|
|
1204
|
+
children: z
|
|
1205
1205
|
}),
|
|
1206
|
-
|
|
1207
|
-
|
|
1206
|
+
V,
|
|
1207
|
+
B && /* @__PURE__ */ X("div", {
|
|
1208
1208
|
className: "absolute right-3 z-10 flex items-center",
|
|
1209
|
-
children:
|
|
1209
|
+
children: B
|
|
1210
1210
|
})
|
|
1211
1211
|
]
|
|
1212
1212
|
}),
|
|
@@ -1218,14 +1218,14 @@ var fn = n.forwardRef(function(e, t) {
|
|
|
1218
1218
|
}) : /* @__PURE__ */ Z("div", {
|
|
1219
1219
|
className: "relative",
|
|
1220
1220
|
children: [
|
|
1221
|
-
|
|
1221
|
+
z && /* @__PURE__ */ X("div", {
|
|
1222
1222
|
className: "pointer-events-none absolute left-3 top-1/2 flex -translate-y-1/2 items-center text-muted-foreground [&_svg]:size-4",
|
|
1223
|
-
children:
|
|
1223
|
+
children: z
|
|
1224
1224
|
}),
|
|
1225
|
-
|
|
1226
|
-
|
|
1225
|
+
V,
|
|
1226
|
+
B && /* @__PURE__ */ X("div", {
|
|
1227
1227
|
className: "absolute right-3 top-1/2 z-10 flex -translate-y-1/2 items-center",
|
|
1228
|
-
children:
|
|
1228
|
+
children: B
|
|
1229
1229
|
})
|
|
1230
1230
|
]
|
|
1231
1231
|
}),
|
|
@@ -1361,14 +1361,14 @@ function gn({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
|
1361
1361
|
//#region src/components/custom/alert-card.tsx
|
|
1362
1362
|
var _n = {
|
|
1363
1363
|
info: {
|
|
1364
|
-
icon:
|
|
1364
|
+
icon: ne,
|
|
1365
1365
|
badge: "blue",
|
|
1366
1366
|
filled: "border-blue/30 bg-blue/10 text-blue",
|
|
1367
1367
|
iconBox: "bg-blue/10 text-blue",
|
|
1368
1368
|
actionBtn: "bg-blue text-white hover:bg-blue/90"
|
|
1369
1369
|
},
|
|
1370
1370
|
warning: {
|
|
1371
|
-
icon:
|
|
1371
|
+
icon: _e,
|
|
1372
1372
|
badge: "orange",
|
|
1373
1373
|
filled: "border-orange/30 bg-orange/10 text-orange",
|
|
1374
1374
|
iconBox: "bg-orange/10 text-orange",
|
|
@@ -1395,7 +1395,7 @@ function vn({ severity: e = "info", variant: t = "filled", icon: n, title: r, de
|
|
|
1395
1395
|
"aria-label": "Dismiss",
|
|
1396
1396
|
onClick: c,
|
|
1397
1397
|
className: "-mr-1 -mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-md text-current/60 transition-colors hover:bg-current/10 hover:text-current",
|
|
1398
|
-
children: /* @__PURE__ */ X(
|
|
1398
|
+
children: /* @__PURE__ */ X(U, { className: "size-3.5" })
|
|
1399
1399
|
});
|
|
1400
1400
|
return t === "filled" ? /* @__PURE__ */ Z("div", {
|
|
1401
1401
|
role: "alert",
|
|
@@ -1491,7 +1491,7 @@ var bn = [
|
|
|
1491
1491
|
},
|
|
1492
1492
|
{
|
|
1493
1493
|
match: (e) => e.includes("video/"),
|
|
1494
|
-
Icon:
|
|
1494
|
+
Icon: ye
|
|
1495
1495
|
}
|
|
1496
1496
|
];
|
|
1497
1497
|
function xn(e) {
|
|
@@ -1574,7 +1574,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1574
1574
|
className: "z-50 flex size-8 cursor-pointer items-center justify-center rounded-full bg-black/60 text-white outline-none transition-[color,box-shadow] hover:bg-black/80 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
1575
1575
|
onClick: () => t && v(t.id),
|
|
1576
1576
|
type: "button",
|
|
1577
|
-
children: /* @__PURE__ */ X(
|
|
1577
|
+
children: /* @__PURE__ */ X(U, {
|
|
1578
1578
|
"aria-hidden": "true",
|
|
1579
1579
|
className: "size-4"
|
|
1580
1580
|
})
|
|
@@ -1615,7 +1615,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1615
1615
|
onClick: _,
|
|
1616
1616
|
size: "sm",
|
|
1617
1617
|
variant: "outline",
|
|
1618
|
-
children: [/* @__PURE__ */ X(
|
|
1618
|
+
children: [/* @__PURE__ */ X(ve, {
|
|
1619
1619
|
"aria-hidden": "true",
|
|
1620
1620
|
className: "-ms-0.5 size-3.5 opacity-60"
|
|
1621
1621
|
}), "Add files"]
|
|
@@ -1624,7 +1624,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1624
1624
|
onClick: y,
|
|
1625
1625
|
size: "sm",
|
|
1626
1626
|
variant: "outline",
|
|
1627
|
-
children: [/* @__PURE__ */ X(
|
|
1627
|
+
children: [/* @__PURE__ */ X(me, {
|
|
1628
1628
|
"aria-hidden": "true",
|
|
1629
1629
|
className: "-ms-0.5 size-3.5 opacity-60"
|
|
1630
1630
|
}), "Remove all"]
|
|
@@ -1641,7 +1641,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1641
1641
|
className: "-top-2 -right-2 absolute size-6 rounded-full border-2 border-background shadow-none focus-visible:border-background",
|
|
1642
1642
|
onClick: () => v(e.id),
|
|
1643
1643
|
size: "icon",
|
|
1644
|
-
children: /* @__PURE__ */ X(
|
|
1644
|
+
children: /* @__PURE__ */ X(U, { className: "size-3.5" })
|
|
1645
1645
|
}),
|
|
1646
1646
|
/* @__PURE__ */ Z("div", {
|
|
1647
1647
|
className: "flex min-w-0 flex-col gap-0.5 border-t p-3",
|
|
@@ -1682,7 +1682,7 @@ function Cn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1682
1682
|
disabled: o,
|
|
1683
1683
|
onClick: _,
|
|
1684
1684
|
variant: "outline",
|
|
1685
|
-
children: [/* @__PURE__ */ X(
|
|
1685
|
+
children: [/* @__PURE__ */ X(ve, {
|
|
1686
1686
|
"aria-hidden": "true",
|
|
1687
1687
|
className: "-ms-1 opacity-60"
|
|
1688
1688
|
}), "Select files"]
|
|
@@ -1698,15 +1698,15 @@ function wn(e) {
|
|
|
1698
1698
|
return typeof e == "object" && !!e && "value" in e && "label" in e;
|
|
1699
1699
|
}
|
|
1700
1700
|
function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, placeholder: a = "Select option", disabled: o = !1, error: s = !1, errorMessage: c, multiple: l = !1, className: u, size: d = "default", variant: f = "default", searchable: p = !1, clearable: m = !1, getOptionLabel: h, getOptionValue: g, renderOptionLabel: _, label: y, description: x, required: S = !1, onCreateNew: C, createNewLabel: w = "New item", loading: T = !1, compactMultiple: E = !1, formatCompactDisplay: D, startItem: O, endItem: k, maxSelections: A, defaultOpen: ee = !1, onOpenChange: j, onLoadMore: M, hasNextPage: N = !1, isFetchingNextPage: P = !1, allowEmpty: F = !1, showSelectAll: I = !1, readOnly: L = !1, popoverClassName: te }) {
|
|
1701
|
-
let [R,
|
|
1702
|
-
L && e || (
|
|
1703
|
-
}, [j, L]), [
|
|
1701
|
+
let [R, ne] = n.useState(ee), z = n.useRef(!1), B = n.useRef(null), ie = n.useId(), ae = n.useCallback((e) => {
|
|
1702
|
+
L && e || (ne(e), j?.(e), e && (z.current = !1));
|
|
1703
|
+
}, [j, L]), [V, oe] = n.useState(l ? Array.isArray(r) ? r : r ? [r] : [] : []);
|
|
1704
1704
|
n.useEffect(() => {
|
|
1705
|
-
l &&
|
|
1705
|
+
l && oe(Array.isArray(r) ? r : r ? [r] : []);
|
|
1706
1706
|
}, [l, r]), n.useEffect(() => {
|
|
1707
|
-
P || (
|
|
1707
|
+
P || (z.current = !1);
|
|
1708
1708
|
}, [P]);
|
|
1709
|
-
let
|
|
1709
|
+
let H = n.useCallback((e) => typeof e == "string" ? e : g ? g(e) : wn(e) ? e.value : String(e), [g]), se = n.useCallback((n) => {
|
|
1710
1710
|
if (typeof n == "string") {
|
|
1711
1711
|
for (let e of t) {
|
|
1712
1712
|
let t = e.options.find((e) => e.value === n);
|
|
@@ -1722,25 +1722,25 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1722
1722
|
h,
|
|
1723
1723
|
t,
|
|
1724
1724
|
e
|
|
1725
|
-
]),
|
|
1725
|
+
]), ce = n.useMemo(() => l || !r ? "" : typeof r == "string" ? r : Array.isArray(r) ? "" : H(r), [
|
|
1726
1726
|
l,
|
|
1727
1727
|
r,
|
|
1728
|
-
|
|
1729
|
-
]),
|
|
1728
|
+
H
|
|
1729
|
+
]), le = n.useMemo(() => e.map((e) => typeof e == "string" ? {
|
|
1730
1730
|
value: e,
|
|
1731
1731
|
label: e
|
|
1732
1732
|
} : wn(e) ? e : {
|
|
1733
|
-
value:
|
|
1734
|
-
label:
|
|
1733
|
+
value: H(e),
|
|
1734
|
+
label: se(e)
|
|
1735
1735
|
}), [
|
|
1736
1736
|
e,
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
]),
|
|
1740
|
-
let e = [...
|
|
1737
|
+
se,
|
|
1738
|
+
H
|
|
1739
|
+
]), ue = n.useCallback((t) => e.find((e) => H(e) === t), [e, H]), fe = n.useMemo(() => {
|
|
1740
|
+
let e = [...le];
|
|
1741
1741
|
return t.forEach((t) => e.push(...t.options)), e;
|
|
1742
|
-
}, [
|
|
1743
|
-
let r = e.find((e) =>
|
|
1742
|
+
}, [le, t]), pe = (n) => {
|
|
1743
|
+
let r = e.find((e) => H(e) === n);
|
|
1744
1744
|
if (r === void 0 && t.length > 0) for (let e of t) {
|
|
1745
1745
|
let t = e.options.find((e) => e.value === n);
|
|
1746
1746
|
if (t) {
|
|
@@ -1749,77 +1749,77 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
if (l) {
|
|
1752
|
-
let e =
|
|
1753
|
-
if (!e && A &&
|
|
1754
|
-
let t = e ?
|
|
1755
|
-
|
|
1756
|
-
} else i?.(r),
|
|
1757
|
-
},
|
|
1752
|
+
let e = V.some((e) => H(e) === n);
|
|
1753
|
+
if (!e && A && V.length >= A || e && V.length === 1 && !F) return;
|
|
1754
|
+
let t = e ? V.filter((e) => H(e) !== n) : [...V, r];
|
|
1755
|
+
oe(t), i?.(t);
|
|
1756
|
+
} else i?.(r), ne(!1);
|
|
1757
|
+
}, me = l && fe.length > 0 && fe.length === V.length, he = () => {
|
|
1758
1758
|
if (l) {
|
|
1759
|
-
if (
|
|
1760
|
-
F && (
|
|
1759
|
+
if (me) {
|
|
1760
|
+
F && (oe([]), i?.([]));
|
|
1761
1761
|
return;
|
|
1762
1762
|
}
|
|
1763
|
-
A &&
|
|
1763
|
+
A && fe.length > A || (oe(fe), i?.(fe));
|
|
1764
1764
|
}
|
|
1765
|
-
},
|
|
1766
|
-
e.stopPropagation(), l ? (
|
|
1767
|
-
},
|
|
1768
|
-
if (e.stopPropagation(),
|
|
1769
|
-
let n =
|
|
1770
|
-
|
|
1771
|
-
},
|
|
1765
|
+
}, ge = (e) => {
|
|
1766
|
+
e.stopPropagation(), l ? (oe([]), i?.([])) : i?.("");
|
|
1767
|
+
}, _e = (e, t) => {
|
|
1768
|
+
if (e.stopPropagation(), V.length === 1 && !F) return;
|
|
1769
|
+
let n = V.filter((e) => H(e) !== H(t));
|
|
1770
|
+
oe(n), i?.(n);
|
|
1771
|
+
}, ve = n.useCallback((e) => {
|
|
1772
1772
|
let t = e.currentTarget;
|
|
1773
|
-
t.scrollHeight - t.scrollTop - t.clientHeight < 100 && M && N && !P && !
|
|
1773
|
+
t.scrollHeight - t.scrollTop - t.clientHeight < 100 && M && N && !P && !z.current && (z.current = !0, M());
|
|
1774
1774
|
}, [
|
|
1775
1775
|
M,
|
|
1776
1776
|
N,
|
|
1777
1777
|
P
|
|
1778
|
-
]),
|
|
1779
|
-
!o && !L && (
|
|
1778
|
+
]), ye = l ? V.length > 0 : !!ce, be = () => l ? null : fe.find((e) => e.value === ce)?.label || a, W = () => {
|
|
1779
|
+
!o && !L && (B.current?.focus(), ne(!0));
|
|
1780
1780
|
}, G = !!(O || k), xe = l && !E, K = xe ? d === "default" ? "min-h-9" : "min-h-8" : d === "default" ? "h-9" : "h-8", q = f === "alt" ? "bg-muted" : "bg-transparent dark:bg-input/30", Se = /* @__PURE__ */ X("div", {
|
|
1781
1781
|
className: Q("flex min-w-0 flex-1 items-center gap-1.5", xe ? "py-1" : "overflow-hidden"),
|
|
1782
|
-
children: l &&
|
|
1782
|
+
children: l && V.length > 0 ? E ? /* @__PURE__ */ X("span", {
|
|
1783
1783
|
className: "min-w-0 truncate",
|
|
1784
|
-
children: D ? D(
|
|
1784
|
+
children: D ? D(V) : `${V.length} selected`
|
|
1785
1785
|
}) : /* @__PURE__ */ X("div", {
|
|
1786
1786
|
className: "flex flex-wrap items-center gap-1.5",
|
|
1787
|
-
children:
|
|
1787
|
+
children: V.map((e, t) => /* @__PURE__ */ Z("span", {
|
|
1788
1788
|
className: "inline-flex items-center gap-1 rounded-sm bg-primary px-2 py-0.5 text-xs font-normal text-primary-foreground",
|
|
1789
|
-
children: [
|
|
1789
|
+
children: [se(e), !o && /* @__PURE__ */ X("button", {
|
|
1790
1790
|
type: "button",
|
|
1791
|
-
"aria-label": `Remove ${
|
|
1792
|
-
onClick: (t) =>
|
|
1791
|
+
"aria-label": `Remove ${se(e)}`,
|
|
1792
|
+
onClick: (t) => _e(t, e),
|
|
1793
1793
|
className: "rounded-sm transition-colors hover:bg-primary/80",
|
|
1794
|
-
children: /* @__PURE__ */ X(
|
|
1794
|
+
children: /* @__PURE__ */ X(U, { className: "size-3" })
|
|
1795
1795
|
})]
|
|
1796
|
-
}, `${
|
|
1796
|
+
}, `${H(e)}-${t}`))
|
|
1797
1797
|
}) : /* @__PURE__ */ X("span", {
|
|
1798
|
-
className: Q("block min-w-0 truncate", !
|
|
1799
|
-
children:
|
|
1798
|
+
className: Q("block min-w-0 truncate", !ye && "text-muted-foreground/60"),
|
|
1799
|
+
children: be() || a
|
|
1800
1800
|
})
|
|
1801
1801
|
}), Ce = /* @__PURE__ */ Z("div", {
|
|
1802
1802
|
className: "flex shrink-0 items-center gap-1",
|
|
1803
|
-
children: [m &&
|
|
1803
|
+
children: [m && ye && !o && /* @__PURE__ */ X("span", {
|
|
1804
1804
|
role: "button",
|
|
1805
1805
|
tabIndex: 0,
|
|
1806
1806
|
"aria-label": "Clear",
|
|
1807
|
-
onClick:
|
|
1807
|
+
onClick: ge,
|
|
1808
1808
|
onKeyDown: (e) => {
|
|
1809
|
-
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(),
|
|
1809
|
+
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), ge(e));
|
|
1810
1810
|
},
|
|
1811
1811
|
className: "cursor-pointer rounded-sm p-0.5 transition-colors hover:bg-accent",
|
|
1812
|
-
children: /* @__PURE__ */ X(
|
|
1812
|
+
children: /* @__PURE__ */ X(U, { className: "size-3.5" })
|
|
1813
1813
|
}), /* @__PURE__ */ X(b, {
|
|
1814
1814
|
size: 16,
|
|
1815
1815
|
className: "shrink-0 opacity-60",
|
|
1816
1816
|
"aria-hidden": !0
|
|
1817
1817
|
})]
|
|
1818
1818
|
}), we = (e) => {
|
|
1819
|
-
let t = l ?
|
|
1819
|
+
let t = l ? V.some((t) => H(t) === e.value) : ce === e.value, n = ue(e.value);
|
|
1820
1820
|
return /* @__PURE__ */ Z(en, {
|
|
1821
1821
|
value: e.value,
|
|
1822
|
-
onSelect: () =>
|
|
1822
|
+
onSelect: () => pe(e.value),
|
|
1823
1823
|
disabled: e.disabled,
|
|
1824
1824
|
children: [
|
|
1825
1825
|
l ? /* @__PURE__ */ X("div", {
|
|
@@ -1872,18 +1872,18 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1872
1872
|
placeholder: `Search ${a.toLowerCase()}...`,
|
|
1873
1873
|
autoFocus: !0
|
|
1874
1874
|
}), /* @__PURE__ */ X(Xt, {
|
|
1875
|
-
onScroll:
|
|
1875
|
+
onScroll: ve,
|
|
1876
1876
|
children: T ? /* @__PURE__ */ X("div", {
|
|
1877
1877
|
className: "flex items-center justify-center py-6",
|
|
1878
|
-
children: /* @__PURE__ */ X(
|
|
1878
|
+
children: /* @__PURE__ */ X(re, { className: "size-5 animate-spin text-muted-foreground" })
|
|
1879
1879
|
}) : /* @__PURE__ */ Z(Y, { children: [
|
|
1880
|
-
l && I &&
|
|
1880
|
+
l && I && fe.length > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ Z(en, {
|
|
1881
1881
|
value: "__select_all__",
|
|
1882
|
-
onSelect:
|
|
1882
|
+
onSelect: he,
|
|
1883
1883
|
className: "font-medium",
|
|
1884
1884
|
children: [/* @__PURE__ */ X("div", {
|
|
1885
|
-
className: Q("flex size-4 shrink-0 items-center justify-center rounded-sm border",
|
|
1886
|
-
children:
|
|
1885
|
+
className: Q("flex size-4 shrink-0 items-center justify-center rounded-sm border", me ? "border-primary bg-primary" : "border-input"),
|
|
1886
|
+
children: me && /* @__PURE__ */ X(v, {
|
|
1887
1887
|
size: 12,
|
|
1888
1888
|
className: "text-primary-foreground"
|
|
1889
1889
|
})
|
|
@@ -1893,14 +1893,14 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1893
1893
|
t.length > 0 ? t.map((e, t) => /* @__PURE__ */ Z(n.Fragment, { children: [t > 0 && /* @__PURE__ */ X($t, {}), /* @__PURE__ */ X(Qt, {
|
|
1894
1894
|
heading: e.label,
|
|
1895
1895
|
children: e.options.map(we)
|
|
1896
|
-
})] }, e.label)) : /* @__PURE__ */ X(Qt, { children:
|
|
1896
|
+
})] }, e.label)) : /* @__PURE__ */ X(Qt, { children: le.map(we) }),
|
|
1897
1897
|
C && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X($t, {}), /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ Z($, {
|
|
1898
1898
|
variant: "ghost",
|
|
1899
1899
|
className: "w-full justify-start font-normal",
|
|
1900
1900
|
onClick: () => {
|
|
1901
|
-
C(),
|
|
1901
|
+
C(), ne(!1);
|
|
1902
1902
|
},
|
|
1903
|
-
children: [/* @__PURE__ */ X(
|
|
1903
|
+
children: [/* @__PURE__ */ X(de, {
|
|
1904
1904
|
size: 16,
|
|
1905
1905
|
className: "-ms-1 opacity-60",
|
|
1906
1906
|
"aria-hidden": !0
|
|
@@ -1908,7 +1908,7 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1908
1908
|
}) })] }),
|
|
1909
1909
|
P && /* @__PURE__ */ X("div", {
|
|
1910
1910
|
className: "flex items-center justify-center py-3",
|
|
1911
|
-
children: /* @__PURE__ */ X(
|
|
1911
|
+
children: /* @__PURE__ */ X(re, { className: "size-4 animate-spin text-muted-foreground" })
|
|
1912
1912
|
})
|
|
1913
1913
|
] })
|
|
1914
1914
|
})] })
|
|
@@ -1921,14 +1921,14 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1921
1921
|
className: "space-y-1.5",
|
|
1922
1922
|
children: [
|
|
1923
1923
|
y && /* @__PURE__ */ Z(St, {
|
|
1924
|
-
htmlFor:
|
|
1924
|
+
htmlFor: ie,
|
|
1925
1925
|
onClick: W,
|
|
1926
1926
|
className: Q("cursor-pointer", o && "text-muted-foreground"),
|
|
1927
1927
|
children: [y, Ee]
|
|
1928
1928
|
}),
|
|
1929
1929
|
G ? /* @__PURE__ */ Z(nn, {
|
|
1930
1930
|
open: R,
|
|
1931
|
-
onOpenChange:
|
|
1931
|
+
onOpenChange: ae,
|
|
1932
1932
|
modal: !1,
|
|
1933
1933
|
children: [/* @__PURE__ */ X(rn, {
|
|
1934
1934
|
asChild: !0,
|
|
@@ -1941,10 +1941,10 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1941
1941
|
children: O
|
|
1942
1942
|
}),
|
|
1943
1943
|
/* @__PURE__ */ Z($, {
|
|
1944
|
-
id:
|
|
1944
|
+
id: ie,
|
|
1945
1945
|
type: "button",
|
|
1946
1946
|
disabled: o,
|
|
1947
|
-
ref:
|
|
1947
|
+
ref: B,
|
|
1948
1948
|
variant: "ghost",
|
|
1949
1949
|
role: "combobox",
|
|
1950
1950
|
"aria-expanded": R,
|
|
@@ -1963,15 +1963,15 @@ function Tn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1963
1963
|
}), Te]
|
|
1964
1964
|
}) : /* @__PURE__ */ Z(nn, {
|
|
1965
1965
|
open: R,
|
|
1966
|
-
onOpenChange:
|
|
1966
|
+
onOpenChange: ae,
|
|
1967
1967
|
modal: !1,
|
|
1968
1968
|
children: [/* @__PURE__ */ X(rn, {
|
|
1969
1969
|
asChild: !0,
|
|
1970
1970
|
children: /* @__PURE__ */ Z($, {
|
|
1971
|
-
id:
|
|
1971
|
+
id: ie,
|
|
1972
1972
|
type: "button",
|
|
1973
1973
|
disabled: o,
|
|
1974
|
-
ref:
|
|
1974
|
+
ref: B,
|
|
1975
1975
|
variant: "outline",
|
|
1976
1976
|
role: "combobox",
|
|
1977
1977
|
"aria-expanded": R,
|
|
@@ -2096,17 +2096,17 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2096
2096
|
u,
|
|
2097
2097
|
L,
|
|
2098
2098
|
M
|
|
2099
|
-
]), R = "px-4 py-3 first:pl-5 last:pr-5",
|
|
2099
|
+
]), R = "px-4 py-3 first:pl-5 last:pr-5", ne = "px-4 first:pl-5 last:pr-5", z = !g && h !== void 0 ? typeof h == "number" ? `${h}px` : h : void 0;
|
|
2100
2100
|
return /* @__PURE__ */ Z("div", {
|
|
2101
2101
|
className: Q("overflow-hidden rounded-lg border", u && "rounded-b-none border-b-0", (g || h !== void 0) && "flex min-h-0 flex-col [&_[data-slot=table-container]]:overflow-y-auto", g && "min-h-0 flex-1 [&_[data-slot=table-container]]:min-h-0 [&_[data-slot=table-container]]:flex-1", !g && h !== void 0 && "[&_[data-slot=table-container]]:max-h-(--dt-max-h)", v),
|
|
2102
|
-
style:
|
|
2102
|
+
style: z ? { "--dt-max-h": z } : void 0,
|
|
2103
2103
|
children: [/* @__PURE__ */ Z(Dn, { children: [/* @__PURE__ */ X(On, {
|
|
2104
2104
|
className: Q("bg-muted/60", m && Q("sticky top-0 z-10 [&_th]:border-b [&_th]:bg-muted/95 [&_th]:backdrop-blur supports-backdrop-filter:[&_th]:bg-muted/80", "[&_th:first-child]:rounded-tl-lg [&_th:last-child]:rounded-tr-lg")),
|
|
2105
2105
|
children: /* @__PURE__ */ Z(jn, {
|
|
2106
2106
|
className: "hover:bg-transparent",
|
|
2107
2107
|
children: [
|
|
2108
2108
|
i && /* @__PURE__ */ X(Mn, {
|
|
2109
|
-
className: Q("w-10",
|
|
2109
|
+
className: Q("w-10", ne),
|
|
2110
2110
|
children: /* @__PURE__ */ X(En, {
|
|
2111
2111
|
"aria-label": "Select all rows",
|
|
2112
2112
|
checked: O ? !0 : k ? "indeterminate" : !1,
|
|
@@ -2115,7 +2115,7 @@ function In({ columns: e, data: t, getRowId: r = (e, t) => String(t), selectable
|
|
|
2115
2115
|
}),
|
|
2116
2116
|
e.map((e) => /* @__PURE__ */ X(Mn, {
|
|
2117
2117
|
style: e.width ? { width: e.width } : void 0,
|
|
2118
|
-
className: Q("h-11 text-xs font-semibold tracking-wide text-foreground uppercase",
|
|
2118
|
+
className: Q("h-11 text-xs font-semibold tracking-wide text-foreground uppercase", ne, e.align && Fn[e.align], e.className, e.headerClassName),
|
|
2119
2119
|
children: e.header
|
|
2120
2120
|
}, e.key)),
|
|
2121
2121
|
s && /* @__PURE__ */ X(Mn, { className: "w-12" })
|
|
@@ -2276,7 +2276,7 @@ function Ln({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2276
2276
|
onClick: (e) => {
|
|
2277
2277
|
e.preventDefault(), e.stopPropagation(), r();
|
|
2278
2278
|
},
|
|
2279
|
-
children: /* @__PURE__ */ X(
|
|
2279
|
+
children: /* @__PURE__ */ X(U, {})
|
|
2280
2280
|
})]
|
|
2281
2281
|
})
|
|
2282
2282
|
}),
|
|
@@ -2411,7 +2411,7 @@ function Un({ value: e, onChange: t, swatches: r = Vn, trigger: i = "swatch", pl
|
|
|
2411
2411
|
"aria-label": "Pick a color",
|
|
2412
2412
|
className: Q("flex size-9 items-center justify-center rounded-md border ring-1 ring-foreground/10 outline-none transition-transform hover:scale-105 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50", s),
|
|
2413
2413
|
style: { background: e || "transparent" },
|
|
2414
|
-
children: !e && /* @__PURE__ */ X(
|
|
2414
|
+
children: !e && /* @__PURE__ */ X(ce, { className: "size-4 text-muted-foreground" })
|
|
2415
2415
|
})
|
|
2416
2416
|
}), /* @__PURE__ */ Z(an, {
|
|
2417
2417
|
className: "w-64",
|
|
@@ -2609,7 +2609,7 @@ function nr({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2609
2609
|
onClick: b,
|
|
2610
2610
|
className: Q("bg-red-500 text-white hover:bg-red-600"),
|
|
2611
2611
|
disabled: v,
|
|
2612
|
-
children: _ ? /* @__PURE__ */ X(
|
|
2612
|
+
children: _ ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin" }) : u
|
|
2613
2613
|
})]
|
|
2614
2614
|
})
|
|
2615
2615
|
]
|
|
@@ -2704,54 +2704,238 @@ function or({ label: e, value: t, className: n, ...r }) {
|
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
2706
2706
|
//#endregion
|
|
2707
|
+
//#region src/components/custom/divider.tsx
|
|
2708
|
+
var sr = W("flex items-center", {
|
|
2709
|
+
variants: { orientation: {
|
|
2710
|
+
horizontal: "w-full",
|
|
2711
|
+
vertical: "h-full flex-col"
|
|
2712
|
+
} },
|
|
2713
|
+
defaultVariants: { orientation: "horizontal" }
|
|
2714
|
+
}), cr = W("", {
|
|
2715
|
+
variants: {
|
|
2716
|
+
color: {
|
|
2717
|
+
default: "bg-border",
|
|
2718
|
+
primary: "bg-primary",
|
|
2719
|
+
muted: "bg-muted-foreground"
|
|
2720
|
+
},
|
|
2721
|
+
thickness: {
|
|
2722
|
+
thin: "",
|
|
2723
|
+
medium: "",
|
|
2724
|
+
thick: ""
|
|
2725
|
+
},
|
|
2726
|
+
orientation: {
|
|
2727
|
+
horizontal: "border-t",
|
|
2728
|
+
vertical: "w-px"
|
|
2729
|
+
}
|
|
2730
|
+
},
|
|
2731
|
+
compoundVariants: [
|
|
2732
|
+
{
|
|
2733
|
+
orientation: "horizontal",
|
|
2734
|
+
thickness: "thin",
|
|
2735
|
+
class: "border-t"
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
orientation: "horizontal",
|
|
2739
|
+
thickness: "medium",
|
|
2740
|
+
class: "border-t-2"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
orientation: "horizontal",
|
|
2744
|
+
thickness: "thick",
|
|
2745
|
+
class: "border-t-4"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
orientation: "vertical",
|
|
2749
|
+
thickness: "thin",
|
|
2750
|
+
class: "w-px"
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
orientation: "vertical",
|
|
2754
|
+
thickness: "medium",
|
|
2755
|
+
class: "w-0.5"
|
|
2756
|
+
},
|
|
2757
|
+
{
|
|
2758
|
+
orientation: "vertical",
|
|
2759
|
+
thickness: "thick",
|
|
2760
|
+
class: "w-1"
|
|
2761
|
+
}
|
|
2762
|
+
],
|
|
2763
|
+
defaultVariants: {
|
|
2764
|
+
color: "default",
|
|
2765
|
+
thickness: "thin",
|
|
2766
|
+
orientation: "horizontal"
|
|
2767
|
+
}
|
|
2768
|
+
}), lr = W("font-medium whitespace-nowrap", {
|
|
2769
|
+
variants: {
|
|
2770
|
+
color: {
|
|
2771
|
+
default: "text-foreground",
|
|
2772
|
+
primary: "text-primary",
|
|
2773
|
+
muted: "text-muted-foreground"
|
|
2774
|
+
},
|
|
2775
|
+
size: {
|
|
2776
|
+
sm: "text-xs",
|
|
2777
|
+
md: "text-sm",
|
|
2778
|
+
lg: "text-base"
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2781
|
+
defaultVariants: {
|
|
2782
|
+
color: "default",
|
|
2783
|
+
size: "sm"
|
|
2784
|
+
}
|
|
2785
|
+
}), ur = W("flex items-center justify-center rounded-full text-xs font-medium", {
|
|
2786
|
+
variants: {
|
|
2787
|
+
color: {
|
|
2788
|
+
default: "border border-border bg-background text-foreground",
|
|
2789
|
+
primary: "border border-primary/20 bg-primary/10 text-primary",
|
|
2790
|
+
muted: "border border-muted-foreground/20 bg-muted text-muted-foreground"
|
|
2791
|
+
},
|
|
2792
|
+
size: {
|
|
2793
|
+
sm: "h-5 w-5 text-[10px]",
|
|
2794
|
+
md: "h-6 w-6 text-xs",
|
|
2795
|
+
lg: "h-7 w-7 text-sm"
|
|
2796
|
+
}
|
|
2797
|
+
},
|
|
2798
|
+
defaultVariants: {
|
|
2799
|
+
color: "default",
|
|
2800
|
+
size: "md"
|
|
2801
|
+
}
|
|
2802
|
+
});
|
|
2803
|
+
function dr({ className: e, label: t, count: n, color: r = "default", thickness: i = "thin", labelSize: a = "sm", labelPosition: o = "start", orientation: s = "horizontal", height: c = "h-full", icon: l, ...u }) {
|
|
2804
|
+
let d = Q(cr({
|
|
2805
|
+
color: r,
|
|
2806
|
+
thickness: i,
|
|
2807
|
+
orientation: s
|
|
2808
|
+
}));
|
|
2809
|
+
if (s === "vertical") return /* @__PURE__ */ X("div", {
|
|
2810
|
+
"data-slot": "divider",
|
|
2811
|
+
role: "separator",
|
|
2812
|
+
"aria-orientation": "vertical",
|
|
2813
|
+
className: Q(d, "rounded", c, e),
|
|
2814
|
+
...u
|
|
2815
|
+
});
|
|
2816
|
+
if (t == null && n === void 0) return /* @__PURE__ */ X("div", {
|
|
2817
|
+
"data-slot": "divider",
|
|
2818
|
+
role: "separator",
|
|
2819
|
+
className: Q(sr({ orientation: s }), d, e),
|
|
2820
|
+
...u
|
|
2821
|
+
});
|
|
2822
|
+
let f = n === void 0 ? null : /* @__PURE__ */ X("span", {
|
|
2823
|
+
className: Q(ur({
|
|
2824
|
+
color: r,
|
|
2825
|
+
size: a
|
|
2826
|
+
})),
|
|
2827
|
+
children: n
|
|
2828
|
+
});
|
|
2829
|
+
return o === "start" ? /* @__PURE__ */ Z("div", {
|
|
2830
|
+
"data-slot": "divider",
|
|
2831
|
+
role: "separator",
|
|
2832
|
+
className: Q(sr(), "gap-2", e),
|
|
2833
|
+
...u,
|
|
2834
|
+
children: [
|
|
2835
|
+
l ? /* @__PURE__ */ X("span", {
|
|
2836
|
+
className: "shrink-0",
|
|
2837
|
+
children: l
|
|
2838
|
+
}) : /* @__PURE__ */ X("div", { className: Q("w-3 shrink-0", d) }),
|
|
2839
|
+
/* @__PURE__ */ X("span", {
|
|
2840
|
+
className: Q(lr({
|
|
2841
|
+
color: r,
|
|
2842
|
+
size: a
|
|
2843
|
+
}), !l && "px-2"),
|
|
2844
|
+
children: t
|
|
2845
|
+
}),
|
|
2846
|
+
f,
|
|
2847
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d, n !== void 0 && "ml-2") })
|
|
2848
|
+
]
|
|
2849
|
+
}) : o === "center" ? /* @__PURE__ */ Z("div", {
|
|
2850
|
+
"data-slot": "divider",
|
|
2851
|
+
role: "separator",
|
|
2852
|
+
className: Q(sr(), e),
|
|
2853
|
+
...u,
|
|
2854
|
+
children: [
|
|
2855
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d) }),
|
|
2856
|
+
/* @__PURE__ */ X("span", {
|
|
2857
|
+
className: Q(lr({
|
|
2858
|
+
color: r,
|
|
2859
|
+
size: a
|
|
2860
|
+
}), "px-3"),
|
|
2861
|
+
children: t
|
|
2862
|
+
}),
|
|
2863
|
+
f,
|
|
2864
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d, n !== void 0 && "ml-2") })
|
|
2865
|
+
]
|
|
2866
|
+
}) : /* @__PURE__ */ Z("div", {
|
|
2867
|
+
"data-slot": "divider",
|
|
2868
|
+
role: "separator",
|
|
2869
|
+
className: Q(sr(), e),
|
|
2870
|
+
...u,
|
|
2871
|
+
children: [
|
|
2872
|
+
/* @__PURE__ */ X("div", { className: Q("grow", d) }),
|
|
2873
|
+
n !== void 0 && /* @__PURE__ */ X("span", {
|
|
2874
|
+
className: Q(ur({
|
|
2875
|
+
color: r,
|
|
2876
|
+
size: a
|
|
2877
|
+
}), "mr-2"),
|
|
2878
|
+
children: n
|
|
2879
|
+
}),
|
|
2880
|
+
/* @__PURE__ */ X("span", {
|
|
2881
|
+
className: Q(lr({
|
|
2882
|
+
color: r,
|
|
2883
|
+
size: a
|
|
2884
|
+
}), "pl-3"),
|
|
2885
|
+
children: t
|
|
2886
|
+
})
|
|
2887
|
+
]
|
|
2888
|
+
});
|
|
2889
|
+
}
|
|
2890
|
+
//#endregion
|
|
2707
2891
|
//#region src/components/ui/empty.tsx
|
|
2708
|
-
function
|
|
2892
|
+
function fr({ className: e, ...t }) {
|
|
2709
2893
|
return /* @__PURE__ */ X("div", {
|
|
2710
2894
|
"data-slot": "empty",
|
|
2711
2895
|
className: Q("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12", e),
|
|
2712
2896
|
...t
|
|
2713
2897
|
});
|
|
2714
2898
|
}
|
|
2715
|
-
function
|
|
2899
|
+
function pr({ className: e, ...t }) {
|
|
2716
2900
|
return /* @__PURE__ */ X("div", {
|
|
2717
2901
|
"data-slot": "empty-header",
|
|
2718
2902
|
className: Q("flex max-w-sm flex-col items-center gap-2 text-center", e),
|
|
2719
2903
|
...t
|
|
2720
2904
|
});
|
|
2721
2905
|
}
|
|
2722
|
-
var
|
|
2906
|
+
var mr = W("flex shrink-0 items-center justify-center mb-2 [&_svg:not([class*='size-'])]:size-6", {
|
|
2723
2907
|
variants: { variant: {
|
|
2724
2908
|
default: "bg-transparent",
|
|
2725
2909
|
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
2726
2910
|
} },
|
|
2727
2911
|
defaultVariants: { variant: "default" }
|
|
2728
2912
|
});
|
|
2729
|
-
function
|
|
2913
|
+
function hr({ className: e, variant: t = "default", ...n }) {
|
|
2730
2914
|
return /* @__PURE__ */ X("div", {
|
|
2731
2915
|
"data-slot": "empty-icon",
|
|
2732
2916
|
"data-variant": t,
|
|
2733
|
-
className: Q(
|
|
2917
|
+
className: Q(mr({
|
|
2734
2918
|
variant: t,
|
|
2735
2919
|
className: e
|
|
2736
2920
|
})),
|
|
2737
2921
|
...n
|
|
2738
2922
|
});
|
|
2739
2923
|
}
|
|
2740
|
-
function
|
|
2924
|
+
function gr({ className: e, ...t }) {
|
|
2741
2925
|
return /* @__PURE__ */ X("div", {
|
|
2742
2926
|
"data-slot": "empty-title",
|
|
2743
2927
|
className: Q("text-lg font-medium tracking-tight", e),
|
|
2744
2928
|
...t
|
|
2745
2929
|
});
|
|
2746
2930
|
}
|
|
2747
|
-
function
|
|
2931
|
+
function _r({ className: e, ...t }) {
|
|
2748
2932
|
return /* @__PURE__ */ X("p", {
|
|
2749
2933
|
"data-slot": "empty-description",
|
|
2750
2934
|
className: Q("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-foreground", e),
|
|
2751
2935
|
...t
|
|
2752
2936
|
});
|
|
2753
2937
|
}
|
|
2754
|
-
function
|
|
2938
|
+
function vr({ className: e, ...t }) {
|
|
2755
2939
|
return /* @__PURE__ */ X("div", {
|
|
2756
2940
|
"data-slot": "empty-content",
|
|
2757
2941
|
className: Q("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", e),
|
|
@@ -2760,22 +2944,22 @@ function pr({ className: e, ...t }) {
|
|
|
2760
2944
|
}
|
|
2761
2945
|
//#endregion
|
|
2762
2946
|
//#region src/components/custom/empty-state.tsx
|
|
2763
|
-
function
|
|
2764
|
-
return /* @__PURE__ */ Z(
|
|
2947
|
+
function yr({ icon: e = /* @__PURE__ */ X(R, {}), mediaVariant: t = "icon", title: n = "No data", description: r, actions: i, ...a }) {
|
|
2948
|
+
return /* @__PURE__ */ Z(fr, {
|
|
2765
2949
|
...a,
|
|
2766
|
-
children: [/* @__PURE__ */ Z(
|
|
2767
|
-
e != null && /* @__PURE__ */ X(
|
|
2950
|
+
children: [/* @__PURE__ */ Z(pr, { children: [
|
|
2951
|
+
e != null && /* @__PURE__ */ X(hr, {
|
|
2768
2952
|
variant: t,
|
|
2769
2953
|
children: e
|
|
2770
2954
|
}),
|
|
2771
|
-
n != null && /* @__PURE__ */ X(
|
|
2772
|
-
r != null && /* @__PURE__ */ X(
|
|
2773
|
-
] }), i != null && /* @__PURE__ */ X(
|
|
2955
|
+
n != null && /* @__PURE__ */ X(gr, { children: n }),
|
|
2956
|
+
r != null && /* @__PURE__ */ X(_r, { children: r })
|
|
2957
|
+
] }), i != null && /* @__PURE__ */ X(vr, { children: i })]
|
|
2774
2958
|
});
|
|
2775
2959
|
}
|
|
2776
2960
|
//#endregion
|
|
2777
2961
|
//#region src/components/custom/faceted-filter.tsx
|
|
2778
|
-
function
|
|
2962
|
+
function br(e) {
|
|
2779
2963
|
let { title: t, options: r, searchPlaceholder: i, searchable: a = !0, className: o } = e, s = e.mode !== "single", c = n.useMemo(() => new Set(s ? e.value : e.value ? [e.value] : []), [s, e.value]), l = (t) => {
|
|
2780
2964
|
if (s) {
|
|
2781
2965
|
let n = new Set(c);
|
|
@@ -2791,7 +2975,7 @@ function hr(e) {
|
|
|
2791
2975
|
variant: "outline",
|
|
2792
2976
|
className: Q("w-fit border-dashed", o),
|
|
2793
2977
|
children: [
|
|
2794
|
-
/* @__PURE__ */ X(
|
|
2978
|
+
/* @__PURE__ */ X(ue, {}),
|
|
2795
2979
|
t,
|
|
2796
2980
|
c.size > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(ht, {
|
|
2797
2981
|
orientation: "vertical",
|
|
@@ -2841,7 +3025,7 @@ function hr(e) {
|
|
|
2841
3025
|
}
|
|
2842
3026
|
//#endregion
|
|
2843
3027
|
//#region src/components/custom/list-card.tsx
|
|
2844
|
-
function
|
|
3028
|
+
function xr({ name: e, src: t, className: n }) {
|
|
2845
3029
|
let r = e.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
2846
3030
|
return /* @__PURE__ */ Z("span", {
|
|
2847
3031
|
className: Q("flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground", n),
|
|
@@ -2858,7 +3042,7 @@ function gr({ name: e, src: t, className: n }) {
|
|
|
2858
3042
|
})]
|
|
2859
3043
|
});
|
|
2860
3044
|
}
|
|
2861
|
-
function
|
|
3045
|
+
function Sr({ icon: e, children: t, className: n }) {
|
|
2862
3046
|
return /* @__PURE__ */ Z("span", {
|
|
2863
3047
|
className: Q("inline-flex min-w-0 items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs text-muted-foreground [&_svg]:size-3.5 [&_svg]:shrink-0 [&_svg]:opacity-70", n),
|
|
2864
3048
|
children: [e, /* @__PURE__ */ X("span", {
|
|
@@ -2867,7 +3051,7 @@ function _r({ icon: e, children: t, className: n }) {
|
|
|
2867
3051
|
})]
|
|
2868
3052
|
});
|
|
2869
3053
|
}
|
|
2870
|
-
function
|
|
3054
|
+
function Cr({ title: e, description: t, media: n, badge: r, meta: i, footer: a, actions: o, layout: s = "stacked", variant: c = "default", selectable: l = !1, selected: u, onSelectedChange: d, active: f = !1, onClick: p, className: m, ...h }) {
|
|
2871
3055
|
let g = p != null, _ = s === "row", v = l ? /* @__PURE__ */ X(En, {
|
|
2872
3056
|
checked: u,
|
|
2873
3057
|
onCheckedChange: (e) => d?.(e === !0),
|
|
@@ -2966,22 +3150,22 @@ function vr({ title: e, description: t, media: n, badge: r, meta: i, footer: a,
|
|
|
2966
3150
|
]
|
|
2967
3151
|
});
|
|
2968
3152
|
}
|
|
2969
|
-
var
|
|
3153
|
+
var wr = {
|
|
2970
3154
|
1: "grid-cols-1",
|
|
2971
3155
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
2972
3156
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
2973
3157
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
2974
3158
|
};
|
|
2975
|
-
function
|
|
3159
|
+
function Tr({ columns: e = 3, className: t, ...n }) {
|
|
2976
3160
|
return /* @__PURE__ */ X("div", {
|
|
2977
3161
|
"data-slot": "list-card-grid",
|
|
2978
|
-
className: Q("grid w-full gap-4",
|
|
3162
|
+
className: Q("grid w-full gap-4", wr[e], t),
|
|
2979
3163
|
...n
|
|
2980
3164
|
});
|
|
2981
3165
|
}
|
|
2982
3166
|
//#endregion
|
|
2983
3167
|
//#region src/components/custom/map-marker-pin.tsx
|
|
2984
|
-
function
|
|
3168
|
+
function Er({ icon: e, color: t = "bg-primary", size: n = 28, rotate: r, active: i = !1, label: a, labelOnActive: o = !0, className: s, ...c }) {
|
|
2985
3169
|
let l = a != null && (!o || i);
|
|
2986
3170
|
return /* @__PURE__ */ Z("span", {
|
|
2987
3171
|
"data-slot": "map-marker-pin",
|
|
@@ -3022,7 +3206,7 @@ function xr({ icon: e, color: t = "bg-primary", size: n = 28, rotate: r, active:
|
|
|
3022
3206
|
}
|
|
3023
3207
|
//#endregion
|
|
3024
3208
|
//#region src/components/custom/not-found.tsx
|
|
3025
|
-
function
|
|
3209
|
+
function Dr({ code: e = "404", title: t = "Page Not Found", description: n = "Sorry, we couldn't find the page you're looking for. The page might have been moved, deleted, or never existed.", showBack: r = !0, onGoBack: i, homeHref: a = "/", homeLabel: o = "Go to Home", actions: s, className: c, ...l }) {
|
|
3026
3210
|
let u = () => {
|
|
3027
3211
|
i ? i() : typeof window < "u" && window.history.back();
|
|
3028
3212
|
};
|
|
@@ -3067,7 +3251,7 @@ function Sr({ code: e = "404", title: t = "Page Not Found", description: n = "So
|
|
|
3067
3251
|
}
|
|
3068
3252
|
//#endregion
|
|
3069
3253
|
//#region src/components/custom/quick-stat.tsx
|
|
3070
|
-
function
|
|
3254
|
+
function Or({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
3071
3255
|
return /* @__PURE__ */ Z("div", {
|
|
3072
3256
|
"data-slot": "quick-stat",
|
|
3073
3257
|
className: Q("flex items-center gap-1.5 text-sm", r),
|
|
@@ -3090,7 +3274,7 @@ function Cr({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
|
3090
3274
|
}
|
|
3091
3275
|
//#endregion
|
|
3092
3276
|
//#region src/components/ui/card.tsx
|
|
3093
|
-
var
|
|
3277
|
+
var kr = W("group/card flex flex-col gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", {
|
|
3094
3278
|
variants: { variant: {
|
|
3095
3279
|
default: "bg-card text-card-foreground ring-foreground/10",
|
|
3096
3280
|
alt: "bg-muted/40 text-card-foreground ring-foreground/10",
|
|
@@ -3101,51 +3285,51 @@ var wr = W("group/card flex flex-col gap-4 overflow-hidden rounded-xl py-4 text-
|
|
|
3101
3285
|
} },
|
|
3102
3286
|
defaultVariants: { variant: "default" }
|
|
3103
3287
|
});
|
|
3104
|
-
function
|
|
3288
|
+
function Ar({ className: e, size: t = "default", variant: n = "default", ...r }) {
|
|
3105
3289
|
return /* @__PURE__ */ X("div", {
|
|
3106
3290
|
"data-slot": "card",
|
|
3107
3291
|
"data-size": t,
|
|
3108
3292
|
"data-variant": n,
|
|
3109
|
-
className: Q(
|
|
3293
|
+
className: Q(kr({ variant: n }), e),
|
|
3110
3294
|
...r
|
|
3111
3295
|
});
|
|
3112
3296
|
}
|
|
3113
|
-
function
|
|
3297
|
+
function jr({ className: e, ...t }) {
|
|
3114
3298
|
return /* @__PURE__ */ X("div", {
|
|
3115
3299
|
"data-slot": "card-header",
|
|
3116
3300
|
className: Q("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3", e),
|
|
3117
3301
|
...t
|
|
3118
3302
|
});
|
|
3119
3303
|
}
|
|
3120
|
-
function
|
|
3304
|
+
function Mr({ className: e, ...t }) {
|
|
3121
3305
|
return /* @__PURE__ */ X("div", {
|
|
3122
3306
|
"data-slot": "card-title",
|
|
3123
3307
|
className: Q("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
3124
3308
|
...t
|
|
3125
3309
|
});
|
|
3126
3310
|
}
|
|
3127
|
-
function
|
|
3311
|
+
function Nr({ className: e, ...t }) {
|
|
3128
3312
|
return /* @__PURE__ */ X("div", {
|
|
3129
3313
|
"data-slot": "card-description",
|
|
3130
3314
|
className: Q("text-sm text-muted-foreground", e),
|
|
3131
3315
|
...t
|
|
3132
3316
|
});
|
|
3133
3317
|
}
|
|
3134
|
-
function
|
|
3318
|
+
function Pr({ className: e, ...t }) {
|
|
3135
3319
|
return /* @__PURE__ */ X("div", {
|
|
3136
3320
|
"data-slot": "card-action",
|
|
3137
3321
|
className: Q("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
3138
3322
|
...t
|
|
3139
3323
|
});
|
|
3140
3324
|
}
|
|
3141
|
-
function
|
|
3325
|
+
function Fr({ className: e, ...t }) {
|
|
3142
3326
|
return /* @__PURE__ */ X("div", {
|
|
3143
3327
|
"data-slot": "card-content",
|
|
3144
3328
|
className: Q("px-4 group-data-[size=sm]/card:px-3", e),
|
|
3145
3329
|
...t
|
|
3146
3330
|
});
|
|
3147
3331
|
}
|
|
3148
|
-
function
|
|
3332
|
+
function Ir({ className: e, ...t }) {
|
|
3149
3333
|
return /* @__PURE__ */ X("div", {
|
|
3150
3334
|
"data-slot": "card-footer",
|
|
3151
3335
|
className: Q("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3", e),
|
|
@@ -3154,7 +3338,7 @@ function jr({ className: e, ...t }) {
|
|
|
3154
3338
|
}
|
|
3155
3339
|
//#endregion
|
|
3156
3340
|
//#region src/components/custom/sensor-card.tsx
|
|
3157
|
-
var
|
|
3341
|
+
var Lr = {
|
|
3158
3342
|
primary: {
|
|
3159
3343
|
text: "text-primary",
|
|
3160
3344
|
bg: "bg-primary"
|
|
@@ -3172,8 +3356,8 @@ var Mr = {
|
|
|
3172
3356
|
bg: "bg-muted-foreground"
|
|
3173
3357
|
}
|
|
3174
3358
|
};
|
|
3175
|
-
function
|
|
3176
|
-
let h =
|
|
3359
|
+
function Rr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, colorVariant: a = "primary", accentColorVariant: o, valueColorVariant: s, showPercentSign: c = !0, unit: l, stackedLayout: u = !1, variant: d = "default", onClick: f, onValueClick: p, className: m }) {
|
|
3360
|
+
let h = Lr[a], g = Lr[o ?? a], _ = s ? Lr[s].text : "text-foreground", v = u ? "size-10" : "size-5", y = e ?? (t?.toLowerCase() === "auto" ? /* @__PURE__ */ X(fe, { className: Q(v, h.text) }) : /* @__PURE__ */ X(D, { className: Q(v, h.text) })), b = /* @__PURE__ */ Z(Y, { children: [u ? /* @__PURE__ */ Z("div", {
|
|
3177
3361
|
className: "flex items-center gap-3",
|
|
3178
3362
|
children: [y, /* @__PURE__ */ Z("div", {
|
|
3179
3363
|
className: "flex flex-col",
|
|
@@ -3215,7 +3399,7 @@ function Nr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3215
3399
|
children: c && r !== "" && !isNaN(Number(r)) ? `${r}%` : r
|
|
3216
3400
|
})]
|
|
3217
3401
|
})] }), x = Q("flex w-full flex-row items-center justify-between gap-3", u ? "py-3 pr-3 pl-3" : "py-3.5 pr-3 pl-4", f && "cursor-pointer hover:bg-accent", m);
|
|
3218
|
-
return d === "standalone" ? /* @__PURE__ */ X(
|
|
3402
|
+
return d === "standalone" ? /* @__PURE__ */ X(Ar, {
|
|
3219
3403
|
className: "p-0",
|
|
3220
3404
|
onClick: f,
|
|
3221
3405
|
children: /* @__PURE__ */ X("div", {
|
|
@@ -3230,39 +3414,39 @@ function Nr({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3230
3414
|
}
|
|
3231
3415
|
//#endregion
|
|
3232
3416
|
//#region src/components/ui/sheet.tsx
|
|
3233
|
-
function
|
|
3417
|
+
function zr({ ...e }) {
|
|
3234
3418
|
return /* @__PURE__ */ X(K.Root, {
|
|
3235
3419
|
"data-slot": "sheet",
|
|
3236
3420
|
...e
|
|
3237
3421
|
});
|
|
3238
3422
|
}
|
|
3239
|
-
function
|
|
3423
|
+
function Br({ ...e }) {
|
|
3240
3424
|
return /* @__PURE__ */ X(K.Trigger, {
|
|
3241
3425
|
"data-slot": "sheet-trigger",
|
|
3242
3426
|
...e
|
|
3243
3427
|
});
|
|
3244
3428
|
}
|
|
3245
|
-
function
|
|
3429
|
+
function Vr({ ...e }) {
|
|
3246
3430
|
return /* @__PURE__ */ X(K.Close, {
|
|
3247
3431
|
"data-slot": "sheet-close",
|
|
3248
3432
|
...e
|
|
3249
3433
|
});
|
|
3250
3434
|
}
|
|
3251
|
-
function
|
|
3435
|
+
function Hr({ ...e }) {
|
|
3252
3436
|
return /* @__PURE__ */ X(K.Portal, {
|
|
3253
3437
|
"data-slot": "sheet-portal",
|
|
3254
3438
|
...e
|
|
3255
3439
|
});
|
|
3256
3440
|
}
|
|
3257
|
-
function
|
|
3441
|
+
function Ur({ className: e, ...t }) {
|
|
3258
3442
|
return /* @__PURE__ */ X(K.Overlay, {
|
|
3259
3443
|
"data-slot": "sheet-overlay",
|
|
3260
3444
|
className: Q("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
3261
3445
|
...t
|
|
3262
3446
|
});
|
|
3263
3447
|
}
|
|
3264
|
-
function
|
|
3265
|
-
return /* @__PURE__ */ Z(
|
|
3448
|
+
function Wr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
3449
|
+
return /* @__PURE__ */ Z(Hr, { children: [/* @__PURE__ */ X(Ur, {}), /* @__PURE__ */ Z(K.Content, {
|
|
3266
3450
|
"data-slot": "sheet-content",
|
|
3267
3451
|
"data-side": n,
|
|
3268
3452
|
className: Q("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", e),
|
|
@@ -3274,7 +3458,7 @@ function zr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
3274
3458
|
variant: "ghost",
|
|
3275
3459
|
className: "absolute top-3 right-3",
|
|
3276
3460
|
size: "icon-sm",
|
|
3277
|
-
children: [/* @__PURE__ */ X(
|
|
3461
|
+
children: [/* @__PURE__ */ X(U, {}), /* @__PURE__ */ X("span", {
|
|
3278
3462
|
className: "sr-only",
|
|
3279
3463
|
children: "Close"
|
|
3280
3464
|
})]
|
|
@@ -3282,28 +3466,28 @@ function zr({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
3282
3466
|
})]
|
|
3283
3467
|
})] });
|
|
3284
3468
|
}
|
|
3285
|
-
function
|
|
3469
|
+
function Gr({ className: e, ...t }) {
|
|
3286
3470
|
return /* @__PURE__ */ X("div", {
|
|
3287
3471
|
"data-slot": "sheet-header",
|
|
3288
3472
|
className: Q("flex flex-col gap-0.5 p-4", e),
|
|
3289
3473
|
...t
|
|
3290
3474
|
});
|
|
3291
3475
|
}
|
|
3292
|
-
function
|
|
3476
|
+
function Kr({ className: e, ...t }) {
|
|
3293
3477
|
return /* @__PURE__ */ X("div", {
|
|
3294
3478
|
"data-slot": "sheet-footer",
|
|
3295
3479
|
className: Q("mt-auto flex flex-col gap-2 p-4", e),
|
|
3296
3480
|
...t
|
|
3297
3481
|
});
|
|
3298
3482
|
}
|
|
3299
|
-
function
|
|
3483
|
+
function qr({ className: e, ...t }) {
|
|
3300
3484
|
return /* @__PURE__ */ X(K.Title, {
|
|
3301
3485
|
"data-slot": "sheet-title",
|
|
3302
3486
|
className: Q("text-base font-medium text-foreground", e),
|
|
3303
3487
|
...t
|
|
3304
3488
|
});
|
|
3305
3489
|
}
|
|
3306
|
-
function
|
|
3490
|
+
function Jr({ className: e, ...t }) {
|
|
3307
3491
|
return /* @__PURE__ */ X(K.Description, {
|
|
3308
3492
|
"data-slot": "sheet-description",
|
|
3309
3493
|
className: Q("text-sm text-muted-foreground", e),
|
|
@@ -3312,17 +3496,17 @@ function Ur({ className: e, ...t }) {
|
|
|
3312
3496
|
}
|
|
3313
3497
|
//#endregion
|
|
3314
3498
|
//#region src/components/custom/side-sheet.tsx
|
|
3315
|
-
function
|
|
3499
|
+
function Yr({ children: e, title: t, open: n, onClose: r, description: i, side: a = "right", floating: o, onBack: s, notDismissable: c, footer: l, className: u }) {
|
|
3316
3500
|
let d = s !== void 0;
|
|
3317
|
-
return /* @__PURE__ */ X(
|
|
3501
|
+
return /* @__PURE__ */ X(zr, {
|
|
3318
3502
|
open: n,
|
|
3319
3503
|
onOpenChange: c ? void 0 : (e) => !e && r(),
|
|
3320
|
-
children: /* @__PURE__ */ Z(
|
|
3504
|
+
children: /* @__PURE__ */ Z(Wr, {
|
|
3321
3505
|
side: a,
|
|
3322
3506
|
showCloseButton: !1,
|
|
3323
3507
|
className: Q("flex w-full flex-col gap-0 overflow-hidden p-0", "data-[side=left]:sm:max-w-[570px] data-[side=right]:sm:max-w-[570px]", o && Q("rounded-xl shadow-xl ring-1 ring-foreground/10", "data-[side=right]:inset-y-3 data-[side=right]:right-3 data-[side=right]:h-auto", "data-[side=left]:inset-y-3 data-[side=left]:left-3 data-[side=left]:h-auto"), u),
|
|
3324
3508
|
children: [
|
|
3325
|
-
/* @__PURE__ */ Z(
|
|
3509
|
+
/* @__PURE__ */ Z(Gr, {
|
|
3326
3510
|
className: "shrink-0 flex-row items-center gap-2 border-b border-border px-4 py-3",
|
|
3327
3511
|
children: [/* @__PURE__ */ X($, {
|
|
3328
3512
|
type: "button",
|
|
@@ -3333,13 +3517,13 @@ function Wr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3333
3517
|
onClick: (e) => {
|
|
3334
3518
|
e.preventDefault(), e.stopPropagation(), (d ? s : r)();
|
|
3335
3519
|
},
|
|
3336
|
-
children: X(d ? x :
|
|
3520
|
+
children: X(d ? x : U, {})
|
|
3337
3521
|
}), /* @__PURE__ */ Z("div", {
|
|
3338
3522
|
className: "flex min-w-0 flex-col",
|
|
3339
|
-
children: [/* @__PURE__ */ X(
|
|
3523
|
+
children: [/* @__PURE__ */ X(qr, {
|
|
3340
3524
|
className: "truncate text-left text-lg font-semibold",
|
|
3341
3525
|
children: t
|
|
3342
|
-
}), i && /* @__PURE__ */ X(
|
|
3526
|
+
}), i && /* @__PURE__ */ X(Jr, {
|
|
3343
3527
|
className: "text-left",
|
|
3344
3528
|
children: i
|
|
3345
3529
|
})]
|
|
@@ -3357,7 +3541,7 @@ function Wr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3357
3541
|
})
|
|
3358
3542
|
});
|
|
3359
3543
|
}
|
|
3360
|
-
function
|
|
3544
|
+
function Xr({ label: e, action: t, className: n, children: r, ...i }) {
|
|
3361
3545
|
return /* @__PURE__ */ Z("div", {
|
|
3362
3546
|
"data-slot": "side-sheet-section",
|
|
3363
3547
|
...i,
|
|
@@ -3379,7 +3563,7 @@ function Gr({ label: e, action: t, className: n, children: r, ...i }) {
|
|
|
3379
3563
|
}
|
|
3380
3564
|
//#endregion
|
|
3381
3565
|
//#region src/components/custom/stat-card.tsx
|
|
3382
|
-
var
|
|
3566
|
+
var Zr = {
|
|
3383
3567
|
primary: {
|
|
3384
3568
|
text: "text-primary",
|
|
3385
3569
|
bg: "bg-primary",
|
|
@@ -3406,7 +3590,7 @@ var Kr = {
|
|
|
3406
3590
|
soft: "bg-muted"
|
|
3407
3591
|
}
|
|
3408
3592
|
};
|
|
3409
|
-
function
|
|
3593
|
+
function Qr({ data: e, colorVar: t }) {
|
|
3410
3594
|
let r = n.useId().replace(/:/g, "");
|
|
3411
3595
|
return /* @__PURE__ */ X("div", {
|
|
3412
3596
|
className: "mt-3 h-16 w-full",
|
|
@@ -3453,11 +3637,11 @@ function qr({ data: e, colorVar: t }) {
|
|
|
3453
3637
|
})
|
|
3454
3638
|
});
|
|
3455
3639
|
}
|
|
3456
|
-
function
|
|
3457
|
-
let u =
|
|
3458
|
-
return /* @__PURE__ */ Z(
|
|
3640
|
+
function $r({ title: e, value: t, description: n, icon: r, color: i = "primary", trend: a, progress: o, sparkline: s, ring: c, className: l }) {
|
|
3641
|
+
let u = Zr[i], d = i === "muted" ? "var(--muted-foreground)" : `var(--${ei(i)})`;
|
|
3642
|
+
return /* @__PURE__ */ Z(Ar, {
|
|
3459
3643
|
className: Q("gap-3", l),
|
|
3460
|
-
children: [/* @__PURE__ */ Z(
|
|
3644
|
+
children: [/* @__PURE__ */ Z(jr, {
|
|
3461
3645
|
className: "flex flex-row items-start justify-between gap-2 pb-0",
|
|
3462
3646
|
children: [/* @__PURE__ */ X("span", {
|
|
3463
3647
|
className: "text-sm font-medium text-muted-foreground",
|
|
@@ -3466,10 +3650,10 @@ function Jr({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3466
3650
|
className: Q("flex size-9 shrink-0 items-center justify-center rounded-md", u.soft, u.text, "[&_svg]:size-4"),
|
|
3467
3651
|
children: r
|
|
3468
3652
|
})]
|
|
3469
|
-
}), /* @__PURE__ */ Z(
|
|
3653
|
+
}), /* @__PURE__ */ Z(Fr, { children: [
|
|
3470
3654
|
c ? /* @__PURE__ */ Z("div", {
|
|
3471
3655
|
className: "mt-1 flex items-center gap-4",
|
|
3472
|
-
children: [/* @__PURE__ */ X(
|
|
3656
|
+
children: [/* @__PURE__ */ X(ti, {
|
|
3473
3657
|
ring: c,
|
|
3474
3658
|
colors: u
|
|
3475
3659
|
}), /* @__PURE__ */ Z("div", {
|
|
@@ -3490,7 +3674,7 @@ function Jr({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3490
3674
|
className: "mt-1 flex items-center gap-1 text-sm text-muted-foreground",
|
|
3491
3675
|
children: [/* @__PURE__ */ Z("span", {
|
|
3492
3676
|
className: Q("flex items-center gap-1 font-medium", a.direction === "down" ? "text-red" : "text-green"),
|
|
3493
|
-
children: [a.direction === "down" ? /* @__PURE__ */ X(
|
|
3677
|
+
children: [a.direction === "down" ? /* @__PURE__ */ X(he, { className: "size-4" }) : /* @__PURE__ */ X(ge, { className: "size-4" }), a.value]
|
|
3494
3678
|
}), a.label]
|
|
3495
3679
|
}) : n && !c ? /* @__PURE__ */ X("p", {
|
|
3496
3680
|
className: "mt-1 text-sm text-muted-foreground",
|
|
@@ -3509,14 +3693,14 @@ function Jr({ title: e, value: t, description: n, icon: r, color: i = "primary",
|
|
|
3509
3693
|
children: [/* @__PURE__ */ X("span", { children: o.caption }), /* @__PURE__ */ X("span", { children: o.target })]
|
|
3510
3694
|
})]
|
|
3511
3695
|
}),
|
|
3512
|
-
s && s.length > 1 && /* @__PURE__ */ X(
|
|
3696
|
+
s && s.length > 1 && /* @__PURE__ */ X(Qr, {
|
|
3513
3697
|
data: s,
|
|
3514
3698
|
colorVar: d
|
|
3515
3699
|
})
|
|
3516
3700
|
] })]
|
|
3517
3701
|
});
|
|
3518
3702
|
}
|
|
3519
|
-
function
|
|
3703
|
+
function ei(e) {
|
|
3520
3704
|
switch (e) {
|
|
3521
3705
|
case "primary": return "primary";
|
|
3522
3706
|
case "success": return "green";
|
|
@@ -3525,7 +3709,7 @@ function Yr(e) {
|
|
|
3525
3709
|
default: return "muted-foreground";
|
|
3526
3710
|
}
|
|
3527
3711
|
}
|
|
3528
|
-
function
|
|
3712
|
+
function ti({ ring: e, colors: t }) {
|
|
3529
3713
|
let n = Math.max(0, Math.min(100, e.value)), r = 2 * Math.PI * 34;
|
|
3530
3714
|
return /* @__PURE__ */ Z("div", {
|
|
3531
3715
|
className: "relative size-20 shrink-0",
|
|
@@ -3559,7 +3743,7 @@ function Xr({ ring: e, colors: t }) {
|
|
|
3559
3743
|
}
|
|
3560
3744
|
//#endregion
|
|
3561
3745
|
//#region src/components/custom/status-list.tsx
|
|
3562
|
-
var
|
|
3746
|
+
var ni = {
|
|
3563
3747
|
neutral: {
|
|
3564
3748
|
text: "text-muted-foreground",
|
|
3565
3749
|
pill: "border-transparent bg-muted text-muted-foreground",
|
|
@@ -3601,16 +3785,16 @@ var Zr = {
|
|
|
3601
3785
|
avatar: "bg-red/15 text-red"
|
|
3602
3786
|
}
|
|
3603
3787
|
};
|
|
3604
|
-
function
|
|
3788
|
+
function ri({ tone: e = "neutral", className: t, children: n }) {
|
|
3605
3789
|
return /* @__PURE__ */ X("span", {
|
|
3606
|
-
className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5",
|
|
3790
|
+
className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5", ni[e].softBox, t),
|
|
3607
3791
|
children: n
|
|
3608
3792
|
});
|
|
3609
3793
|
}
|
|
3610
|
-
function
|
|
3794
|
+
function ii({ src: e, name: t, tone: n = "primary", className: r }) {
|
|
3611
3795
|
let i = t.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
3612
3796
|
return /* @__PURE__ */ X("span", {
|
|
3613
|
-
className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold",
|
|
3797
|
+
className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold", ni[n].avatar, r),
|
|
3614
3798
|
children: e ? /* @__PURE__ */ X("img", {
|
|
3615
3799
|
src: e,
|
|
3616
3800
|
alt: t,
|
|
@@ -3618,14 +3802,14 @@ function $r({ src: e, name: t, tone: n = "primary", className: r }) {
|
|
|
3618
3802
|
}) : i
|
|
3619
3803
|
});
|
|
3620
3804
|
}
|
|
3621
|
-
function
|
|
3805
|
+
function ai({ className: e, ...t }) {
|
|
3622
3806
|
return /* @__PURE__ */ X("div", {
|
|
3623
3807
|
"data-slot": "status-list",
|
|
3624
3808
|
className: Q("flex flex-col gap-2", e),
|
|
3625
3809
|
...t
|
|
3626
3810
|
});
|
|
3627
3811
|
}
|
|
3628
|
-
function
|
|
3812
|
+
function oi({ label: e, count: t, className: n, children: r, ...i }) {
|
|
3629
3813
|
return /* @__PURE__ */ Z("div", {
|
|
3630
3814
|
"data-slot": "status-list-group",
|
|
3631
3815
|
className: n,
|
|
@@ -3646,8 +3830,8 @@ function ti({ label: e, count: t, className: n, children: r, ...i }) {
|
|
|
3646
3830
|
})]
|
|
3647
3831
|
});
|
|
3648
3832
|
}
|
|
3649
|
-
function
|
|
3650
|
-
let u =
|
|
3833
|
+
function si({ media: e, title: t, description: n, status: r, statusVariant: i = "pill", hint: a, tone: o = "neutral", active: s = !1, className: c, ...l }) {
|
|
3834
|
+
let u = ni[o];
|
|
3651
3835
|
return /* @__PURE__ */ Z("div", {
|
|
3652
3836
|
"data-slot": "status-list-item",
|
|
3653
3837
|
className: Q("flex items-center gap-3 rounded-lg border p-3", s ? Q("border-transparent ring-1", u.activeBg) : "bg-card", c),
|
|
@@ -3683,26 +3867,26 @@ function ni({ media: e, title: t, description: n, status: r, statusVariant: i =
|
|
|
3683
3867
|
}
|
|
3684
3868
|
//#endregion
|
|
3685
3869
|
//#region src/components/ui/select.tsx
|
|
3686
|
-
function
|
|
3870
|
+
function ci({ ...e }) {
|
|
3687
3871
|
return /* @__PURE__ */ X(J.Root, {
|
|
3688
3872
|
"data-slot": "select",
|
|
3689
3873
|
...e
|
|
3690
3874
|
});
|
|
3691
3875
|
}
|
|
3692
|
-
function
|
|
3876
|
+
function li({ className: e, ...t }) {
|
|
3693
3877
|
return /* @__PURE__ */ X(J.Group, {
|
|
3694
3878
|
"data-slot": "select-group",
|
|
3695
3879
|
className: Q("scroll-my-1 p-1", e),
|
|
3696
3880
|
...t
|
|
3697
3881
|
});
|
|
3698
3882
|
}
|
|
3699
|
-
function
|
|
3883
|
+
function ui({ ...e }) {
|
|
3700
3884
|
return /* @__PURE__ */ X(J.Value, {
|
|
3701
3885
|
"data-slot": "select-value",
|
|
3702
3886
|
...e
|
|
3703
3887
|
});
|
|
3704
3888
|
}
|
|
3705
|
-
function
|
|
3889
|
+
function di({ className: e, size: t = "default", children: n, ...r }) {
|
|
3706
3890
|
return /* @__PURE__ */ Z(J.Trigger, {
|
|
3707
3891
|
"data-slot": "select-trigger",
|
|
3708
3892
|
"data-size": t,
|
|
@@ -3714,7 +3898,7 @@ function oi({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
3714
3898
|
})]
|
|
3715
3899
|
});
|
|
3716
3900
|
}
|
|
3717
|
-
function
|
|
3901
|
+
function fi({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
3718
3902
|
return /* @__PURE__ */ X(J.Portal, { children: /* @__PURE__ */ Z(J.Content, {
|
|
3719
3903
|
"data-slot": "select-content",
|
|
3720
3904
|
"data-align-trigger": n === "item-aligned",
|
|
@@ -3723,24 +3907,24 @@ function si({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
3723
3907
|
align: r,
|
|
3724
3908
|
...i,
|
|
3725
3909
|
children: [
|
|
3726
|
-
/* @__PURE__ */ X(
|
|
3910
|
+
/* @__PURE__ */ X(gi, {}),
|
|
3727
3911
|
/* @__PURE__ */ X(J.Viewport, {
|
|
3728
3912
|
"data-position": n,
|
|
3729
3913
|
className: Q("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
3730
3914
|
children: t
|
|
3731
3915
|
}),
|
|
3732
|
-
/* @__PURE__ */ X(
|
|
3916
|
+
/* @__PURE__ */ X(_i, {})
|
|
3733
3917
|
]
|
|
3734
3918
|
}) });
|
|
3735
3919
|
}
|
|
3736
|
-
function
|
|
3920
|
+
function pi({ className: e, ...t }) {
|
|
3737
3921
|
return /* @__PURE__ */ X(J.Label, {
|
|
3738
3922
|
"data-slot": "select-label",
|
|
3739
3923
|
className: Q("px-1.5 py-1 text-xs text-muted-foreground", e),
|
|
3740
3924
|
...t
|
|
3741
3925
|
});
|
|
3742
3926
|
}
|
|
3743
|
-
function
|
|
3927
|
+
function mi({ className: e, children: t, ...n }) {
|
|
3744
3928
|
return /* @__PURE__ */ Z(J.Item, {
|
|
3745
3929
|
"data-slot": "select-item",
|
|
3746
3930
|
className: Q("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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),
|
|
@@ -3751,14 +3935,14 @@ function li({ className: e, children: t, ...n }) {
|
|
|
3751
3935
|
}), /* @__PURE__ */ X(J.ItemText, { children: t })]
|
|
3752
3936
|
});
|
|
3753
3937
|
}
|
|
3754
|
-
function
|
|
3938
|
+
function hi({ className: e, ...t }) {
|
|
3755
3939
|
return /* @__PURE__ */ X(J.Separator, {
|
|
3756
3940
|
"data-slot": "select-separator",
|
|
3757
3941
|
className: Q("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
3758
3942
|
...t
|
|
3759
3943
|
});
|
|
3760
3944
|
}
|
|
3761
|
-
function
|
|
3945
|
+
function gi({ className: e, ...t }) {
|
|
3762
3946
|
return /* @__PURE__ */ X(J.ScrollUpButton, {
|
|
3763
3947
|
"data-slot": "select-scroll-up-button",
|
|
3764
3948
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3766,7 +3950,7 @@ function di({ className: e, ...t }) {
|
|
|
3766
3950
|
children: /* @__PURE__ */ X(C, {})
|
|
3767
3951
|
});
|
|
3768
3952
|
}
|
|
3769
|
-
function
|
|
3953
|
+
function _i({ className: e, ...t }) {
|
|
3770
3954
|
return /* @__PURE__ */ X(J.ScrollDownButton, {
|
|
3771
3955
|
"data-slot": "select-scroll-down-button",
|
|
3772
3956
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3776,7 +3960,7 @@ function fi({ className: e, ...t }) {
|
|
|
3776
3960
|
}
|
|
3777
3961
|
//#endregion
|
|
3778
3962
|
//#region src/components/ui/calendar.tsx
|
|
3779
|
-
function
|
|
3963
|
+
function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: a, formatters: o, components: s, ...c }) {
|
|
3780
3964
|
let l = Ve();
|
|
3781
3965
|
return /* @__PURE__ */ X(Be, {
|
|
3782
3966
|
showOutsideDays: n,
|
|
@@ -3828,19 +4012,19 @@ function pi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
3828
4012
|
}),
|
|
3829
4013
|
Dropdown: ({ value: e, onChange: t, options: n = [], "aria-label": r }) => {
|
|
3830
4014
|
let i = n.find((t) => t.value === Number(e));
|
|
3831
|
-
return /* @__PURE__ */ Z(
|
|
4015
|
+
return /* @__PURE__ */ Z(ci, {
|
|
3832
4016
|
value: e == null ? void 0 : String(e),
|
|
3833
4017
|
onValueChange: (e) => {
|
|
3834
4018
|
t?.({ target: { value: e } });
|
|
3835
4019
|
},
|
|
3836
|
-
children: [/* @__PURE__ */ X(
|
|
4020
|
+
children: [/* @__PURE__ */ X(di, {
|
|
3837
4021
|
size: "sm",
|
|
3838
4022
|
"aria-label": r,
|
|
3839
4023
|
className: "h-7 gap-1 border-none px-2 font-medium shadow-none focus-visible:ring-0 [&_svg]:opacity-60",
|
|
3840
|
-
children: /* @__PURE__ */ X(
|
|
3841
|
-
}), /* @__PURE__ */ X(
|
|
4024
|
+
children: /* @__PURE__ */ X(ui, { children: i?.label })
|
|
4025
|
+
}), /* @__PURE__ */ X(fi, {
|
|
3842
4026
|
className: "max-h-60",
|
|
3843
|
-
children: n.map((e) => /* @__PURE__ */ X(
|
|
4027
|
+
children: n.map((e) => /* @__PURE__ */ X(mi, {
|
|
3844
4028
|
value: String(e.value),
|
|
3845
4029
|
disabled: e.disabled,
|
|
3846
4030
|
children: e.label
|
|
@@ -3848,7 +4032,7 @@ function pi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
3848
4032
|
})]
|
|
3849
4033
|
});
|
|
3850
4034
|
},
|
|
3851
|
-
DayButton: ({ ...e }) => /* @__PURE__ */ X(
|
|
4035
|
+
DayButton: ({ ...e }) => /* @__PURE__ */ X(yi, {
|
|
3852
4036
|
locale: a,
|
|
3853
4037
|
...e
|
|
3854
4038
|
}),
|
|
@@ -3864,7 +4048,7 @@ function pi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
3864
4048
|
...c
|
|
3865
4049
|
});
|
|
3866
4050
|
}
|
|
3867
|
-
function
|
|
4051
|
+
function yi({ className: e, day: t, modifiers: r, locale: i, ...a }) {
|
|
3868
4052
|
let o = Ve(), s = n.useRef(null);
|
|
3869
4053
|
return n.useEffect(() => {
|
|
3870
4054
|
r.focused && s.current?.focus();
|
|
@@ -3883,10 +4067,10 @@ function mi({ className: e, day: t, modifiers: r, locale: i, ...a }) {
|
|
|
3883
4067
|
}
|
|
3884
4068
|
//#endregion
|
|
3885
4069
|
//#region src/components/custom/date-time-range-picker-utils.ts
|
|
3886
|
-
function
|
|
4070
|
+
function bi(e) {
|
|
3887
4071
|
return `${e.getUTCFullYear()}-${String(e.getUTCMonth() + 1).padStart(2, "0")}-${String(e.getUTCDate()).padStart(2, "0")}T${String(e.getUTCHours()).padStart(2, "0")}:${String(e.getUTCMinutes()).padStart(2, "0")}:${String(e.getUTCSeconds()).padStart(2, "0")}Z`;
|
|
3888
4072
|
}
|
|
3889
|
-
function
|
|
4073
|
+
function xi(e, t) {
|
|
3890
4074
|
if (!e) return null;
|
|
3891
4075
|
let n = new Date(e);
|
|
3892
4076
|
if (isNaN(n.getTime())) return null;
|
|
@@ -3909,7 +4093,7 @@ function gi(e, t) {
|
|
|
3909
4093
|
s: i("second").padStart(2, "0")
|
|
3910
4094
|
};
|
|
3911
4095
|
}
|
|
3912
|
-
function
|
|
4096
|
+
function Si(e, t, n, r, i, a, o) {
|
|
3913
4097
|
let s = Date.UTC(e, t, n, parseInt(r), parseInt(i), parseInt(a)), c = new Date(s), l = new Intl.DateTimeFormat("en-US", {
|
|
3914
4098
|
year: "numeric",
|
|
3915
4099
|
month: "2-digit",
|
|
@@ -3920,9 +4104,9 @@ function _i(e, t, n, r, i, a, o) {
|
|
|
3920
4104
|
hour12: !1,
|
|
3921
4105
|
timeZone: o
|
|
3922
4106
|
}).formatToParts(c), u = (e) => parseInt(l.find((t) => t.type === e)?.value || "0", 10), d = Date.UTC(u("year"), u("month") - 1, u("day"), u("hour"), u("minute"), u("second")) - s;
|
|
3923
|
-
return
|
|
4107
|
+
return bi(new Date(s - d));
|
|
3924
4108
|
}
|
|
3925
|
-
var
|
|
4109
|
+
var Ci = [
|
|
3926
4110
|
{
|
|
3927
4111
|
value: "hour",
|
|
3928
4112
|
label: "Hour"
|
|
@@ -3940,8 +4124,8 @@ var vi = [
|
|
|
3940
4124
|
label: "Month"
|
|
3941
4125
|
}
|
|
3942
4126
|
];
|
|
3943
|
-
function
|
|
3944
|
-
let t = /* @__PURE__ */ new Date(), n =
|
|
4127
|
+
function wi(e) {
|
|
4128
|
+
let t = /* @__PURE__ */ new Date(), n = bi(t), r = new Date(t);
|
|
3945
4129
|
switch (e) {
|
|
3946
4130
|
case "hour":
|
|
3947
4131
|
r.setUTCHours(r.getUTCHours() - 1);
|
|
@@ -3957,20 +4141,20 @@ function yi(e) {
|
|
|
3957
4141
|
break;
|
|
3958
4142
|
}
|
|
3959
4143
|
return {
|
|
3960
|
-
from:
|
|
4144
|
+
from: bi(r),
|
|
3961
4145
|
to: n
|
|
3962
4146
|
};
|
|
3963
4147
|
}
|
|
3964
|
-
function
|
|
4148
|
+
function Ti(e, t) {
|
|
3965
4149
|
let n = new Date(e.from).getTime(), r = new Date(e.to).getTime(), i = r - n, a = t === "prev" ? -i : i;
|
|
3966
4150
|
return {
|
|
3967
4151
|
preset: e.preset,
|
|
3968
|
-
from:
|
|
3969
|
-
to:
|
|
4152
|
+
from: bi(new Date(n + a)),
|
|
4153
|
+
to: bi(new Date(r + a))
|
|
3970
4154
|
};
|
|
3971
4155
|
}
|
|
3972
|
-
function
|
|
3973
|
-
if (e.preset) return
|
|
4156
|
+
function Ei(e, t) {
|
|
4157
|
+
if (e.preset) return Ci.find((t) => t.value === e.preset)?.label ?? e.preset;
|
|
3974
4158
|
if (e.from && e.to) {
|
|
3975
4159
|
let n = (e) => new Date(e).toLocaleString("en-US", {
|
|
3976
4160
|
year: "numeric",
|
|
@@ -3987,7 +4171,7 @@ function xi(e, t) {
|
|
|
3987
4171
|
}
|
|
3988
4172
|
//#endregion
|
|
3989
4173
|
//#region src/components/custom/date-time-picker.tsx
|
|
3990
|
-
function
|
|
4174
|
+
function Di({ value: e, max: t, onChange: r }) {
|
|
3991
4175
|
let [i, a] = n.useState(e);
|
|
3992
4176
|
n.useEffect(() => {
|
|
3993
4177
|
a(e);
|
|
@@ -4012,13 +4196,13 @@ function Si({ value: e, max: t, onChange: r }) {
|
|
|
4012
4196
|
className: Q("h-8 w-12 rounded-md border border-input bg-transparent text-center text-sm font-medium dark:bg-input/30", "focus:border-ring focus:ring-3 focus:ring-ring/50 focus:outline-none", "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none")
|
|
4013
4197
|
});
|
|
4014
4198
|
}
|
|
4015
|
-
function
|
|
4016
|
-
let [p, m] = n.useState(!1), h = o || "UTC", _ =
|
|
4199
|
+
function Oi({ value: e, onChange: t, label: r, placeholder: i = "Select date & time", showTime: a = !0, timezone: o, minDate: s, maxDate: c, captionLayout: l = "dropdown", yearRange: u, disabled: d, className: f }) {
|
|
4200
|
+
let [p, m] = n.useState(!1), h = o || "UTC", _ = xi(e, h), [v, y] = n.useState(_?.h ?? "00"), [b, x] = n.useState(_?.m ?? "00"), [S, C] = n.useState(_?.s ?? "00");
|
|
4017
4201
|
n.useEffect(() => {
|
|
4018
|
-
let t =
|
|
4202
|
+
let t = xi(e, h);
|
|
4019
4203
|
y(t?.h ?? "00"), x(t?.m ?? "00"), C(t?.s ?? "00");
|
|
4020
4204
|
}, [e, h]);
|
|
4021
|
-
let w = _ ? new Date(_.year, _.month, _.day) : void 0, T = (e, n, r, i, a, o) => t(
|
|
4205
|
+
let w = _ ? new Date(_.year, _.month, _.day) : void 0, T = (e, n, r, i, a, o) => t(Si(e, n, r, i, a, o, h)), E = (e) => {
|
|
4022
4206
|
e && (T(e.getFullYear(), e.getMonth(), e.getDate(), a ? v : "00", a ? b : "00", a ? S : "00"), a || m(!1));
|
|
4023
4207
|
}, D = (e, t) => {
|
|
4024
4208
|
let n = e === "h" ? t : v, r = e === "m" ? t : b, i = e === "s" ? t : S;
|
|
@@ -4069,7 +4253,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4069
4253
|
className: "w-auto p-0",
|
|
4070
4254
|
align: "start",
|
|
4071
4255
|
sideOffset: 4,
|
|
4072
|
-
children: [/* @__PURE__ */ X(
|
|
4256
|
+
children: [/* @__PURE__ */ X(vi, {
|
|
4073
4257
|
mode: "single",
|
|
4074
4258
|
selected: w,
|
|
4075
4259
|
onSelect: E,
|
|
@@ -4083,7 +4267,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4083
4267
|
className: "flex items-center gap-2 border-t px-3 py-2.5",
|
|
4084
4268
|
children: [
|
|
4085
4269
|
/* @__PURE__ */ X(k, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
4086
|
-
/* @__PURE__ */ X(
|
|
4270
|
+
/* @__PURE__ */ X(Di, {
|
|
4087
4271
|
value: v,
|
|
4088
4272
|
max: 23,
|
|
4089
4273
|
onChange: (e) => D("h", e)
|
|
@@ -4092,7 +4276,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4092
4276
|
className: "text-sm font-medium text-muted-foreground",
|
|
4093
4277
|
children: ":"
|
|
4094
4278
|
}),
|
|
4095
|
-
/* @__PURE__ */ X(
|
|
4279
|
+
/* @__PURE__ */ X(Di, {
|
|
4096
4280
|
value: b,
|
|
4097
4281
|
max: 59,
|
|
4098
4282
|
onChange: (e) => D("m", e)
|
|
@@ -4101,7 +4285,7 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4101
4285
|
className: "text-sm font-medium text-muted-foreground",
|
|
4102
4286
|
children: ":"
|
|
4103
4287
|
}),
|
|
4104
|
-
/* @__PURE__ */ X(
|
|
4288
|
+
/* @__PURE__ */ X(Di, {
|
|
4105
4289
|
value: S,
|
|
4106
4290
|
max: 59,
|
|
4107
4291
|
onChange: (e) => D("s", e)
|
|
@@ -4114,8 +4298,8 @@ function Ci({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4114
4298
|
}
|
|
4115
4299
|
//#endregion
|
|
4116
4300
|
//#region src/components/custom/date-time-range-picker.tsx
|
|
4117
|
-
var
|
|
4118
|
-
let c = a ??
|
|
4301
|
+
var ki = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o }, s) {
|
|
4302
|
+
let c = a ?? Ci, [l, u] = n.useState(!1), [d, f] = n.useState(e.from), [p, m] = n.useState(e.to);
|
|
4119
4303
|
n.useEffect(() => {
|
|
4120
4304
|
f(e.from), m(e.to);
|
|
4121
4305
|
}, [e]);
|
|
@@ -4127,7 +4311,7 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4127
4311
|
}, _ = (e) => {
|
|
4128
4312
|
t({
|
|
4129
4313
|
preset: e,
|
|
4130
|
-
...
|
|
4314
|
+
...wi(e)
|
|
4131
4315
|
}), u(!1);
|
|
4132
4316
|
};
|
|
4133
4317
|
return /* @__PURE__ */ Z(nn, {
|
|
@@ -4143,7 +4327,7 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4143
4327
|
/* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" }),
|
|
4144
4328
|
/* @__PURE__ */ X("span", {
|
|
4145
4329
|
className: "truncate",
|
|
4146
|
-
children:
|
|
4330
|
+
children: Ei(e, i)
|
|
4147
4331
|
}),
|
|
4148
4332
|
/* @__PURE__ */ X(y, { className: Q("size-3.5 shrink-0 opacity-60 transition-transform", l && "rotate-180") })
|
|
4149
4333
|
]
|
|
@@ -4176,7 +4360,7 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4176
4360
|
className: "px-0.5 text-sm text-muted-foreground",
|
|
4177
4361
|
children: "Custom range"
|
|
4178
4362
|
}),
|
|
4179
|
-
/* @__PURE__ */ X(
|
|
4363
|
+
/* @__PURE__ */ X(Oi, {
|
|
4180
4364
|
value: d,
|
|
4181
4365
|
onChange: h,
|
|
4182
4366
|
label: "From",
|
|
@@ -4184,7 +4368,7 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4184
4368
|
timezone: i,
|
|
4185
4369
|
maxDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
4186
4370
|
}),
|
|
4187
|
-
/* @__PURE__ */ X(
|
|
4371
|
+
/* @__PURE__ */ X(Oi, {
|
|
4188
4372
|
value: p,
|
|
4189
4373
|
onChange: m,
|
|
4190
4374
|
label: "To",
|
|
@@ -4219,36 +4403,36 @@ var wi = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4219
4403
|
})
|
|
4220
4404
|
})]
|
|
4221
4405
|
});
|
|
4222
|
-
}),
|
|
4406
|
+
}), Ai = W("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
4223
4407
|
variants: { variant: {
|
|
4224
4408
|
default: "bg-card text-card-foreground",
|
|
4225
4409
|
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
4226
4410
|
} },
|
|
4227
4411
|
defaultVariants: { variant: "default" }
|
|
4228
4412
|
});
|
|
4229
|
-
function
|
|
4413
|
+
function ji({ className: e, variant: t, ...n }) {
|
|
4230
4414
|
return /* @__PURE__ */ X("div", {
|
|
4231
4415
|
"data-slot": "alert",
|
|
4232
4416
|
role: "alert",
|
|
4233
|
-
className: Q(
|
|
4417
|
+
className: Q(Ai({ variant: t }), e),
|
|
4234
4418
|
...n
|
|
4235
4419
|
});
|
|
4236
4420
|
}
|
|
4237
|
-
function
|
|
4421
|
+
function Mi({ className: e, ...t }) {
|
|
4238
4422
|
return /* @__PURE__ */ X("div", {
|
|
4239
4423
|
"data-slot": "alert-title",
|
|
4240
4424
|
className: Q("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
4241
4425
|
...t
|
|
4242
4426
|
});
|
|
4243
4427
|
}
|
|
4244
|
-
function
|
|
4428
|
+
function Ni({ className: e, ...t }) {
|
|
4245
4429
|
return /* @__PURE__ */ X("div", {
|
|
4246
4430
|
"data-slot": "alert-description",
|
|
4247
4431
|
className: Q("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", e),
|
|
4248
4432
|
...t
|
|
4249
4433
|
});
|
|
4250
4434
|
}
|
|
4251
|
-
function
|
|
4435
|
+
function Pi({ className: e, ...t }) {
|
|
4252
4436
|
return /* @__PURE__ */ X("div", {
|
|
4253
4437
|
"data-slot": "alert-action",
|
|
4254
4438
|
className: Q("absolute top-2 right-2", e),
|
|
@@ -4257,29 +4441,29 @@ function ki({ className: e, ...t }) {
|
|
|
4257
4441
|
}
|
|
4258
4442
|
//#endregion
|
|
4259
4443
|
//#region src/components/ui/button-group.tsx
|
|
4260
|
-
var
|
|
4444
|
+
var Fi = W("group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
4261
4445
|
variants: { orientation: {
|
|
4262
4446
|
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!",
|
|
4263
4447
|
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!"
|
|
4264
4448
|
} },
|
|
4265
4449
|
defaultVariants: { orientation: "horizontal" }
|
|
4266
4450
|
});
|
|
4267
|
-
function
|
|
4451
|
+
function Ii({ className: e, orientation: t, ...n }) {
|
|
4268
4452
|
return /* @__PURE__ */ X("div", {
|
|
4269
4453
|
role: "group",
|
|
4270
4454
|
"data-slot": "button-group",
|
|
4271
4455
|
"data-orientation": t,
|
|
4272
|
-
className: Q(
|
|
4456
|
+
className: Q(Fi({ orientation: t }), e),
|
|
4273
4457
|
...n
|
|
4274
4458
|
});
|
|
4275
4459
|
}
|
|
4276
|
-
function
|
|
4460
|
+
function Li({ className: e, asChild: t = !1, ...n }) {
|
|
4277
4461
|
return /* @__PURE__ */ X(t ? ke.Root : "div", {
|
|
4278
4462
|
className: Q("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
4279
4463
|
...n
|
|
4280
4464
|
});
|
|
4281
4465
|
}
|
|
4282
|
-
function
|
|
4466
|
+
function Ri({ className: e, orientation: t = "vertical", ...n }) {
|
|
4283
4467
|
return /* @__PURE__ */ X(ht, {
|
|
4284
4468
|
"data-slot": "button-group-separator",
|
|
4285
4469
|
orientation: t,
|
|
@@ -4289,28 +4473,28 @@ function Ni({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4289
4473
|
}
|
|
4290
4474
|
//#endregion
|
|
4291
4475
|
//#region src/components/ui/chart.tsx
|
|
4292
|
-
var
|
|
4476
|
+
var zi = {
|
|
4293
4477
|
light: "",
|
|
4294
4478
|
dark: ".dark"
|
|
4295
|
-
},
|
|
4479
|
+
}, Bi = {
|
|
4296
4480
|
width: 320,
|
|
4297
4481
|
height: 200
|
|
4298
|
-
},
|
|
4299
|
-
function
|
|
4300
|
-
let e = n.useContext(
|
|
4482
|
+
}, Vi = n.createContext(null);
|
|
4483
|
+
function Hi() {
|
|
4484
|
+
let e = n.useContext(Vi);
|
|
4301
4485
|
if (!e) throw Error("useChart must be used within a <ChartContainer />");
|
|
4302
4486
|
return e;
|
|
4303
4487
|
}
|
|
4304
|
-
function
|
|
4488
|
+
function Ui({ id: e, className: t, children: r, config: i, initialDimension: a = Bi, ...o }) {
|
|
4305
4489
|
let s = n.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
|
|
4306
|
-
return /* @__PURE__ */ X(
|
|
4490
|
+
return /* @__PURE__ */ X(Vi.Provider, {
|
|
4307
4491
|
value: { config: i },
|
|
4308
4492
|
children: /* @__PURE__ */ Z("div", {
|
|
4309
4493
|
"data-slot": "chart",
|
|
4310
4494
|
"data-chart": c,
|
|
4311
4495
|
className: Q("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", t),
|
|
4312
4496
|
...o,
|
|
4313
|
-
children: [/* @__PURE__ */ X(
|
|
4497
|
+
children: [/* @__PURE__ */ X(Wi, {
|
|
4314
4498
|
id: c,
|
|
4315
4499
|
config: i
|
|
4316
4500
|
}), /* @__PURE__ */ X(Ie.ResponsiveContainer, {
|
|
@@ -4320,9 +4504,9 @@ function Ri({ id: e, className: t, children: r, config: i, initialDimension: a =
|
|
|
4320
4504
|
})
|
|
4321
4505
|
});
|
|
4322
4506
|
}
|
|
4323
|
-
var
|
|
4507
|
+
var Wi = ({ id: e, config: t }) => {
|
|
4324
4508
|
let n = Object.entries(t).filter(([, e]) => e.theme ?? e.color);
|
|
4325
|
-
return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(
|
|
4509
|
+
return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(zi).map(([t, r]) => `
|
|
4326
4510
|
${r} [data-chart=${e}] {
|
|
4327
4511
|
${n.map(([e, n]) => {
|
|
4328
4512
|
let r = n.theme?.[t] ?? n.color;
|
|
@@ -4330,11 +4514,11 @@ ${n.map(([e, n]) => {
|
|
|
4330
4514
|
}).join("\n")}
|
|
4331
4515
|
}
|
|
4332
4516
|
`).join("\n") } }) : null;
|
|
4333
|
-
},
|
|
4334
|
-
function
|
|
4335
|
-
let { config: m } =
|
|
4517
|
+
}, Gi = Ie.Tooltip;
|
|
4518
|
+
function Ki({ active: e, payload: t, className: r, indicator: i = "dot", hideLabel: a = !1, hideIndicator: o = !1, label: s, labelFormatter: c, labelClassName: l, formatter: u, color: d, nameKey: f, labelKey: p }) {
|
|
4519
|
+
let { config: m } = Hi(), h = n.useMemo(() => {
|
|
4336
4520
|
if (a || !t?.length) return null;
|
|
4337
|
-
let [e] = t, n =
|
|
4521
|
+
let [e] = t, n = Yi(m, e, `${p ?? e?.dataKey ?? e?.name ?? "value"}`), r = !p && typeof s == "string" ? m[s]?.label ?? s : n?.label;
|
|
4338
4522
|
return c ? /* @__PURE__ */ X("div", {
|
|
4339
4523
|
className: Q("font-medium", l),
|
|
4340
4524
|
children: c(r, t)
|
|
@@ -4358,7 +4542,7 @@ function Vi({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4358
4542
|
children: [g ? null : h, /* @__PURE__ */ X("div", {
|
|
4359
4543
|
className: "grid gap-1.5",
|
|
4360
4544
|
children: t.filter((e) => e.type !== "none").map((e, t) => {
|
|
4361
|
-
let n =
|
|
4545
|
+
let n = Yi(m, e, `${f ?? e.name ?? e.dataKey ?? "value"}`), r = d ?? e.payload?.fill ?? e.color;
|
|
4362
4546
|
return /* @__PURE__ */ X("div", {
|
|
4363
4547
|
className: Q("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", i === "dot" && "items-center"),
|
|
4364
4548
|
children: u && e?.value !== void 0 && e.name ? u(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ Z(Y, { children: [n?.icon ? /* @__PURE__ */ X(n.icon, {}) : !o && /* @__PURE__ */ X("div", {
|
|
@@ -4390,13 +4574,13 @@ function Vi({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4390
4574
|
})]
|
|
4391
4575
|
});
|
|
4392
4576
|
}
|
|
4393
|
-
var
|
|
4394
|
-
function
|
|
4395
|
-
let { config: a } =
|
|
4577
|
+
var qi = Ie.Legend;
|
|
4578
|
+
function Ji({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
4579
|
+
let { config: a } = Hi();
|
|
4396
4580
|
return n?.length ? /* @__PURE__ */ X("div", {
|
|
4397
4581
|
className: Q("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
|
|
4398
4582
|
children: n.filter((e) => e.type !== "none").map((e, n) => {
|
|
4399
|
-
let r =
|
|
4583
|
+
let r = Yi(a, e, `${i ?? e.dataKey ?? "value"}`);
|
|
4400
4584
|
return /* @__PURE__ */ Z("div", {
|
|
4401
4585
|
className: Q("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
4402
4586
|
children: [r?.icon && !t ? /* @__PURE__ */ X(r.icon, {}) : /* @__PURE__ */ X("div", {
|
|
@@ -4407,26 +4591,26 @@ function Ui({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bo
|
|
|
4407
4591
|
})
|
|
4408
4592
|
}) : null;
|
|
4409
4593
|
}
|
|
4410
|
-
function
|
|
4594
|
+
function Yi(e, t, n) {
|
|
4411
4595
|
if (typeof t != "object" || !t) return;
|
|
4412
4596
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
4413
4597
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
4414
4598
|
}
|
|
4415
4599
|
//#endregion
|
|
4416
4600
|
//#region src/components/ui/hover-card.tsx
|
|
4417
|
-
function
|
|
4601
|
+
function Xi({ ...e }) {
|
|
4418
4602
|
return /* @__PURE__ */ X(Se.Root, {
|
|
4419
4603
|
"data-slot": "hover-card",
|
|
4420
4604
|
...e
|
|
4421
4605
|
});
|
|
4422
4606
|
}
|
|
4423
|
-
function
|
|
4607
|
+
function Zi({ ...e }) {
|
|
4424
4608
|
return /* @__PURE__ */ X(Se.Trigger, {
|
|
4425
4609
|
"data-slot": "hover-card-trigger",
|
|
4426
4610
|
...e
|
|
4427
4611
|
});
|
|
4428
4612
|
}
|
|
4429
|
-
function
|
|
4613
|
+
function Qi({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4430
4614
|
return /* @__PURE__ */ X(Se.Portal, {
|
|
4431
4615
|
"data-slot": "hover-card-portal",
|
|
4432
4616
|
children: /* @__PURE__ */ X(Se.Content, {
|
|
@@ -4440,7 +4624,7 @@ function qi({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
4440
4624
|
}
|
|
4441
4625
|
//#endregion
|
|
4442
4626
|
//#region src/components/ui/item.tsx
|
|
4443
|
-
function
|
|
4627
|
+
function $i({ className: e, ...t }) {
|
|
4444
4628
|
return /* @__PURE__ */ X("div", {
|
|
4445
4629
|
role: "list",
|
|
4446
4630
|
"data-slot": "item-group",
|
|
@@ -4448,7 +4632,7 @@ function Ji({ className: e, ...t }) {
|
|
|
4448
4632
|
...t
|
|
4449
4633
|
});
|
|
4450
4634
|
}
|
|
4451
|
-
function
|
|
4635
|
+
function ea({ className: e, ...t }) {
|
|
4452
4636
|
return /* @__PURE__ */ X(ht, {
|
|
4453
4637
|
"data-slot": "item-separator",
|
|
4454
4638
|
orientation: "horizontal",
|
|
@@ -4456,7 +4640,7 @@ function Yi({ className: e, ...t }) {
|
|
|
4456
4640
|
...t
|
|
4457
4641
|
});
|
|
4458
4642
|
}
|
|
4459
|
-
var
|
|
4643
|
+
var ta = W("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
4460
4644
|
variants: {
|
|
4461
4645
|
variant: {
|
|
4462
4646
|
default: "border-transparent",
|
|
@@ -4474,12 +4658,12 @@ var Xi = W("group/item flex w-full flex-wrap items-center rounded-lg border text
|
|
|
4474
4658
|
size: "default"
|
|
4475
4659
|
}
|
|
4476
4660
|
});
|
|
4477
|
-
function
|
|
4661
|
+
function na({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
4478
4662
|
return /* @__PURE__ */ X(r ? ke.Root : "div", {
|
|
4479
4663
|
"data-slot": "item",
|
|
4480
4664
|
"data-variant": t,
|
|
4481
4665
|
"data-size": n,
|
|
4482
|
-
className: Q(
|
|
4666
|
+
className: Q(ta({
|
|
4483
4667
|
variant: t,
|
|
4484
4668
|
size: n,
|
|
4485
4669
|
className: e
|
|
@@ -4487,7 +4671,7 @@ function Zi({ className: e, variant: t = "default", size: n = "default", asChild
|
|
|
4487
4671
|
...i
|
|
4488
4672
|
});
|
|
4489
4673
|
}
|
|
4490
|
-
var
|
|
4674
|
+
var ra = W("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
|
|
4491
4675
|
variants: { variant: {
|
|
4492
4676
|
default: "bg-transparent",
|
|
4493
4677
|
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -4495,53 +4679,53 @@ var Qi = W("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot
|
|
|
4495
4679
|
} },
|
|
4496
4680
|
defaultVariants: { variant: "default" }
|
|
4497
4681
|
});
|
|
4498
|
-
function
|
|
4682
|
+
function ia({ className: e, variant: t = "default", ...n }) {
|
|
4499
4683
|
return /* @__PURE__ */ X("div", {
|
|
4500
4684
|
"data-slot": "item-media",
|
|
4501
4685
|
"data-variant": t,
|
|
4502
|
-
className: Q(
|
|
4686
|
+
className: Q(ra({
|
|
4503
4687
|
variant: t,
|
|
4504
4688
|
className: e
|
|
4505
4689
|
})),
|
|
4506
4690
|
...n
|
|
4507
4691
|
});
|
|
4508
4692
|
}
|
|
4509
|
-
function
|
|
4693
|
+
function aa({ className: e, ...t }) {
|
|
4510
4694
|
return /* @__PURE__ */ X("div", {
|
|
4511
4695
|
"data-slot": "item-content",
|
|
4512
4696
|
className: Q("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", e),
|
|
4513
4697
|
...t
|
|
4514
4698
|
});
|
|
4515
4699
|
}
|
|
4516
|
-
function
|
|
4700
|
+
function oa({ className: e, ...t }) {
|
|
4517
4701
|
return /* @__PURE__ */ X("div", {
|
|
4518
4702
|
"data-slot": "item-title",
|
|
4519
4703
|
className: Q("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", e),
|
|
4520
4704
|
...t
|
|
4521
4705
|
});
|
|
4522
4706
|
}
|
|
4523
|
-
function
|
|
4707
|
+
function sa({ className: e, ...t }) {
|
|
4524
4708
|
return /* @__PURE__ */ X("p", {
|
|
4525
4709
|
"data-slot": "item-description",
|
|
4526
4710
|
className: Q("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
4527
4711
|
...t
|
|
4528
4712
|
});
|
|
4529
4713
|
}
|
|
4530
|
-
function
|
|
4714
|
+
function ca({ className: e, ...t }) {
|
|
4531
4715
|
return /* @__PURE__ */ X("div", {
|
|
4532
4716
|
"data-slot": "item-actions",
|
|
4533
4717
|
className: Q("flex items-center gap-2", e),
|
|
4534
4718
|
...t
|
|
4535
4719
|
});
|
|
4536
4720
|
}
|
|
4537
|
-
function
|
|
4721
|
+
function la({ className: e, ...t }) {
|
|
4538
4722
|
return /* @__PURE__ */ X("div", {
|
|
4539
4723
|
"data-slot": "item-header",
|
|
4540
4724
|
className: Q("flex basis-full items-center justify-between gap-2", e),
|
|
4541
4725
|
...t
|
|
4542
4726
|
});
|
|
4543
4727
|
}
|
|
4544
|
-
function
|
|
4728
|
+
function ua({ className: e, ...t }) {
|
|
4545
4729
|
return /* @__PURE__ */ X("div", {
|
|
4546
4730
|
"data-slot": "item-footer",
|
|
4547
4731
|
className: Q("flex basis-full items-center justify-between gap-2", e),
|
|
@@ -4550,10 +4734,10 @@ function aa({ className: e, ...t }) {
|
|
|
4550
4734
|
}
|
|
4551
4735
|
//#endregion
|
|
4552
4736
|
//#region src/components/ui/map.tsx
|
|
4553
|
-
var
|
|
4737
|
+
var da = {
|
|
4554
4738
|
dark: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
|
4555
4739
|
light: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
|
|
4556
|
-
},
|
|
4740
|
+
}, fa = [
|
|
4557
4741
|
{
|
|
4558
4742
|
label: "Light",
|
|
4559
4743
|
url: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
|
|
@@ -4566,13 +4750,13 @@ var oa = {
|
|
|
4566
4750
|
label: "Dark",
|
|
4567
4751
|
url: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
4568
4752
|
}
|
|
4569
|
-
],
|
|
4570
|
-
function
|
|
4571
|
-
let e = o(
|
|
4753
|
+
], pa = r(null);
|
|
4754
|
+
function ma() {
|
|
4755
|
+
let e = o(pa);
|
|
4572
4756
|
if (!e) throw Error("useMap must be used within a Map component");
|
|
4573
4757
|
return e;
|
|
4574
4758
|
}
|
|
4575
|
-
function
|
|
4759
|
+
function ha() {
|
|
4576
4760
|
return /* @__PURE__ */ X("div", {
|
|
4577
4761
|
className: "bg-background/50 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-xs",
|
|
4578
4762
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -4585,7 +4769,7 @@ function ua() {
|
|
|
4585
4769
|
})
|
|
4586
4770
|
});
|
|
4587
4771
|
}
|
|
4588
|
-
function
|
|
4772
|
+
function ga(e) {
|
|
4589
4773
|
let t = e.getCenter();
|
|
4590
4774
|
return {
|
|
4591
4775
|
center: [t.lng, t.lat],
|
|
@@ -4594,12 +4778,12 @@ function da(e) {
|
|
|
4594
4778
|
pitch: e.getPitch()
|
|
4595
4779
|
};
|
|
4596
4780
|
}
|
|
4597
|
-
var
|
|
4781
|
+
var _a = i(function({ children: e, className: t, theme: n, styles: r, projection: i, viewport: o, onViewportChange: c, loading: p = !1, controls: m = !0, tiles: h = fa, ...g }, _) {
|
|
4598
4782
|
let v = h === !1 ? [] : h, y = d(null), [b, x] = f(null), [S, C] = f(!1), [w, T] = f(!1), [E, D] = f(0), O = d(null), k = d(null), A = d(!1), ee = o !== void 0 && c !== void 0, j = d(c);
|
|
4599
4783
|
j.current = c;
|
|
4600
4784
|
let M = u(() => ({
|
|
4601
|
-
dark: r?.dark ??
|
|
4602
|
-
light: r?.light ??
|
|
4785
|
+
dark: r?.dark ?? da.dark,
|
|
4786
|
+
light: r?.light ?? da.light
|
|
4603
4787
|
}), [r]);
|
|
4604
4788
|
l(_, () => b, [b]);
|
|
4605
4789
|
let N = a(() => {
|
|
@@ -4621,14 +4805,14 @@ var fa = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4621
4805
|
T(!0), i && t.setProjection(i);
|
|
4622
4806
|
}, 100);
|
|
4623
4807
|
}, r = () => C(!0), a = () => {
|
|
4624
|
-
A.current || j.current?.(
|
|
4808
|
+
A.current || j.current?.(ga(t));
|
|
4625
4809
|
};
|
|
4626
4810
|
return t.on("load", r), t.on("styledata", n), t.on("move", a), x(t), () => {
|
|
4627
4811
|
N(), t.off("load", r), t.off("styledata", n), t.off("move", a), t.remove(), C(!1), T(!1), x(null);
|
|
4628
4812
|
};
|
|
4629
4813
|
}, []), s(() => {
|
|
4630
4814
|
if (!b || !ee || !o || b.isMoving()) return;
|
|
4631
|
-
let e =
|
|
4815
|
+
let e = ga(b), t = {
|
|
4632
4816
|
center: o.center ?? e.center,
|
|
4633
4817
|
zoom: o.zoom ?? e.zoom,
|
|
4634
4818
|
bearing: o.bearing ?? e.bearing,
|
|
@@ -4658,12 +4842,12 @@ var fa = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4658
4842
|
S,
|
|
4659
4843
|
w
|
|
4660
4844
|
]);
|
|
4661
|
-
return /* @__PURE__ */ X(
|
|
4845
|
+
return /* @__PURE__ */ X(pa.Provider, {
|
|
4662
4846
|
value: P,
|
|
4663
4847
|
children: /* @__PURE__ */ Z("div", {
|
|
4664
4848
|
ref: y,
|
|
4665
4849
|
className: Q("relative h-full w-full", t),
|
|
4666
|
-
children: [(!S || p) && /* @__PURE__ */ X(
|
|
4850
|
+
children: [(!S || p) && /* @__PURE__ */ X(ha, {}), b && /* @__PURE__ */ Z(Y, { children: [m && /* @__PURE__ */ X(ja, {
|
|
4667
4851
|
position: "top-right",
|
|
4668
4852
|
tiles: v,
|
|
4669
4853
|
tileIndex: E,
|
|
@@ -4671,14 +4855,14 @@ var fa = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4671
4855
|
}), e] })]
|
|
4672
4856
|
})
|
|
4673
4857
|
});
|
|
4674
|
-
}),
|
|
4675
|
-
function
|
|
4676
|
-
let e = o(
|
|
4858
|
+
}), va = r(null);
|
|
4859
|
+
function ya() {
|
|
4860
|
+
let e = o(va);
|
|
4677
4861
|
if (!e) throw Error("Marker components must be used within MapMarker");
|
|
4678
4862
|
return e;
|
|
4679
4863
|
}
|
|
4680
|
-
function
|
|
4681
|
-
let { map: m } =
|
|
4864
|
+
function ba({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter: i, onMouseLeave: a, onDragStart: o, onDrag: c, onDragEnd: l, draggable: f = !1, ...p }) {
|
|
4865
|
+
let { map: m } = ma(), h = d({
|
|
4682
4866
|
onClick: r,
|
|
4683
4867
|
onMouseEnter: i,
|
|
4684
4868
|
onMouseLeave: a,
|
|
@@ -4726,7 +4910,7 @@ function ha({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
|
|
|
4726
4910
|
};
|
|
4727
4911
|
}, [m]), (g.getLngLat().lng !== e || g.getLngLat().lat !== t) && g.setLngLat([e, t]), g.isDraggable() !== f && g.setDraggable(f);
|
|
4728
4912
|
let _ = g.getOffset(), v = p.offset ?? [0, 0], [y, b] = Array.isArray(v) ? v : [v.x, v.y];
|
|
4729
|
-
return (_.x !== y || _.y !== b) && g.setOffset(v), g.getRotation() !== p.rotation && g.setRotation(p.rotation ?? 0), g.getRotationAlignment() !== p.rotationAlignment && g.setRotationAlignment(p.rotationAlignment ?? "auto"), g.getPitchAlignment() !== p.pitchAlignment && g.setPitchAlignment(p.pitchAlignment ?? "auto"), /* @__PURE__ */ X(
|
|
4913
|
+
return (_.x !== y || _.y !== b) && g.setOffset(v), g.getRotation() !== p.rotation && g.setRotation(p.rotation ?? 0), g.getRotationAlignment() !== p.rotationAlignment && g.setRotationAlignment(p.rotationAlignment ?? "auto"), g.getPitchAlignment() !== p.pitchAlignment && g.setPitchAlignment(p.pitchAlignment ?? "auto"), /* @__PURE__ */ X(va.Provider, {
|
|
4730
4914
|
value: {
|
|
4731
4915
|
marker: g,
|
|
4732
4916
|
map: m
|
|
@@ -4734,27 +4918,27 @@ function ha({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
|
|
|
4734
4918
|
children: n
|
|
4735
4919
|
});
|
|
4736
4920
|
}
|
|
4737
|
-
function
|
|
4738
|
-
let { marker: n } =
|
|
4921
|
+
function xa({ children: e, className: t }) {
|
|
4922
|
+
let { marker: n } = ya();
|
|
4739
4923
|
return Ue(/* @__PURE__ */ X("div", {
|
|
4740
4924
|
className: Q("relative cursor-pointer", t),
|
|
4741
|
-
children: e || /* @__PURE__ */ X(
|
|
4925
|
+
children: e || /* @__PURE__ */ X(Sa, {})
|
|
4742
4926
|
}), n.getElement());
|
|
4743
4927
|
}
|
|
4744
|
-
function
|
|
4928
|
+
function Sa() {
|
|
4745
4929
|
return /* @__PURE__ */ X("div", { className: "relative h-4 w-4 rounded-full border-2 border-white bg-blue-500 shadow-lg" });
|
|
4746
4930
|
}
|
|
4747
|
-
function
|
|
4931
|
+
function Ca({ onClick: e }) {
|
|
4748
4932
|
return /* @__PURE__ */ X("button", {
|
|
4749
4933
|
type: "button",
|
|
4750
4934
|
onClick: e,
|
|
4751
4935
|
"aria-label": "Close popup",
|
|
4752
4936
|
className: "focus-visible:ring-ring hover:bg-muted text-foreground absolute top-0.5 right-0.5 z-10 inline-flex size-5 cursor-pointer items-center justify-center rounded-sm transition-colors focus:outline-none focus-visible:ring-2",
|
|
4753
|
-
children: /* @__PURE__ */ X(
|
|
4937
|
+
children: /* @__PURE__ */ X(be, { className: "size-3.5" })
|
|
4754
4938
|
});
|
|
4755
4939
|
}
|
|
4756
|
-
function
|
|
4757
|
-
let { marker: i, map: a } =
|
|
4940
|
+
function wa({ children: e, className: t, closeButton: n = !1, ...r }) {
|
|
4941
|
+
let { marker: i, map: a } = ya(), o = u(() => document.createElement("div"), []), c = d(r), l = u(() => new He.Popup({
|
|
4758
4942
|
offset: 16,
|
|
4759
4943
|
...r,
|
|
4760
4944
|
closeButton: !1
|
|
@@ -4769,11 +4953,11 @@ function ya({ children: e, className: t, closeButton: n = !1, ...r }) {
|
|
|
4769
4953
|
}
|
|
4770
4954
|
return Ue(/* @__PURE__ */ Z("div", {
|
|
4771
4955
|
className: Q("bg-popover text-popover-foreground relative max-w-62 rounded-md border p-3 shadow-md", "animate-in fade-in-0 zoom-in-95 duration-200 ease-out", t),
|
|
4772
|
-
children: [n && /* @__PURE__ */ X(
|
|
4956
|
+
children: [n && /* @__PURE__ */ X(Ca, { onClick: () => l.remove() }), e]
|
|
4773
4957
|
}), o);
|
|
4774
4958
|
}
|
|
4775
|
-
function
|
|
4776
|
-
let { marker: r, map: i } =
|
|
4959
|
+
function Ta({ children: e, className: t, ...n }) {
|
|
4960
|
+
let { marker: r, map: i } = ya(), a = u(() => document.createElement("div"), []), o = d(n), c = u(() => new He.Popup({
|
|
4777
4961
|
offset: 16,
|
|
4778
4962
|
...n,
|
|
4779
4963
|
closeOnClick: !0,
|
|
@@ -4797,7 +4981,7 @@ function ba({ children: e, className: t, ...n }) {
|
|
|
4797
4981
|
children: e
|
|
4798
4982
|
}), a);
|
|
4799
4983
|
}
|
|
4800
|
-
function
|
|
4984
|
+
function Ea({ children: e, className: t, position: n = "top" }) {
|
|
4801
4985
|
return /* @__PURE__ */ X("div", {
|
|
4802
4986
|
className: Q("absolute left-1/2 -translate-x-1/2 whitespace-nowrap", "text-foreground text-[10px] font-medium", {
|
|
4803
4987
|
top: "bottom-full mb-1",
|
|
@@ -4806,19 +4990,19 @@ function xa({ children: e, className: t, position: n = "top" }) {
|
|
|
4806
4990
|
children: e
|
|
4807
4991
|
});
|
|
4808
4992
|
}
|
|
4809
|
-
var
|
|
4993
|
+
var Da = {
|
|
4810
4994
|
"top-left": "top-2 left-2",
|
|
4811
4995
|
"top-right": "top-2 right-2",
|
|
4812
4996
|
"bottom-left": "bottom-2 left-2",
|
|
4813
4997
|
"bottom-right": "bottom-10 right-2"
|
|
4814
4998
|
};
|
|
4815
|
-
function
|
|
4999
|
+
function Oa({ children: e }) {
|
|
4816
5000
|
return /* @__PURE__ */ X("div", {
|
|
4817
5001
|
className: "border-border bg-background [&>button:not(:last-child)]:border-border flex flex-col overflow-hidden rounded-md border shadow-sm [&>button:not(:last-child)]:border-b",
|
|
4818
5002
|
children: e
|
|
4819
5003
|
});
|
|
4820
5004
|
}
|
|
4821
|
-
function
|
|
5005
|
+
function ka({ onClick: e, label: t, children: n, disabled: r = !1 }) {
|
|
4822
5006
|
return /* @__PURE__ */ X("button", {
|
|
4823
5007
|
onClick: e,
|
|
4824
5008
|
"aria-label": t,
|
|
@@ -4828,7 +5012,7 @@ function wa({ onClick: e, label: t, children: n, disabled: r = !1 }) {
|
|
|
4828
5012
|
children: n
|
|
4829
5013
|
});
|
|
4830
5014
|
}
|
|
4831
|
-
function
|
|
5015
|
+
function Aa({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
4832
5016
|
let [i, a] = f(!1), o = d(null);
|
|
4833
5017
|
return s(() => {
|
|
4834
5018
|
if (!i) return;
|
|
@@ -4843,10 +5027,10 @@ function Ta({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
|
4843
5027
|
}, [i]), /* @__PURE__ */ Z("div", {
|
|
4844
5028
|
ref: o,
|
|
4845
5029
|
className: "relative",
|
|
4846
|
-
children: [/* @__PURE__ */ X(
|
|
5030
|
+
children: [/* @__PURE__ */ X(Oa, { children: /* @__PURE__ */ X(ka, {
|
|
4847
5031
|
onClick: () => a((e) => !e),
|
|
4848
5032
|
label: `Basemap: ${e[t]?.label ?? ""}`,
|
|
4849
|
-
children: /* @__PURE__ */ X(
|
|
5033
|
+
children: /* @__PURE__ */ X(z, { className: "size-4" })
|
|
4850
5034
|
}) }), i && /* @__PURE__ */ X("div", {
|
|
4851
5035
|
role: "listbox",
|
|
4852
5036
|
"aria-label": "Basemap",
|
|
@@ -4864,8 +5048,8 @@ function Ta({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
|
|
|
4864
5048
|
})]
|
|
4865
5049
|
});
|
|
4866
5050
|
}
|
|
4867
|
-
function
|
|
4868
|
-
let { map: d } =
|
|
5051
|
+
function ja({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !1, showLocate: r = !1, showFullscreen: i = !1, className: o, onLocate: s, tiles: c = [], tileIndex: l = 0, onTileChange: u }) {
|
|
5052
|
+
let { map: d } = ma(), [p, m] = f(!1), h = a(() => {
|
|
4869
5053
|
d?.zoomTo(d.getZoom() + 1, { duration: 300 });
|
|
4870
5054
|
}, [d]), g = a(() => {
|
|
4871
5055
|
d?.zoomTo(d.getZoom() - 1, { duration: 300 });
|
|
@@ -4890,40 +5074,40 @@ function Ea({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !
|
|
|
4890
5074
|
e && (document.fullscreenElement ? document.exitFullscreen() : e.requestFullscreen());
|
|
4891
5075
|
}, [d]);
|
|
4892
5076
|
return /* @__PURE__ */ Z("div", {
|
|
4893
|
-
className: Q("absolute z-10 flex flex-col gap-1.5",
|
|
5077
|
+
className: Q("absolute z-10 flex flex-col gap-1.5", Da[e], o),
|
|
4894
5078
|
children: [
|
|
4895
|
-
t && /* @__PURE__ */ Z(
|
|
5079
|
+
t && /* @__PURE__ */ Z(Oa, { children: [/* @__PURE__ */ X(ka, {
|
|
4896
5080
|
onClick: h,
|
|
4897
5081
|
label: "Zoom in",
|
|
4898
|
-
children: /* @__PURE__ */ X(
|
|
4899
|
-
}), /* @__PURE__ */ X(
|
|
5082
|
+
children: /* @__PURE__ */ X(le, { className: "size-4" })
|
|
5083
|
+
}), /* @__PURE__ */ X(ka, {
|
|
4900
5084
|
onClick: g,
|
|
4901
5085
|
label: "Zoom out",
|
|
4902
|
-
children: /* @__PURE__ */ X(
|
|
5086
|
+
children: /* @__PURE__ */ X(oe, { className: "size-4" })
|
|
4903
5087
|
})] }),
|
|
4904
|
-
c.length > 1 && /* @__PURE__ */ X(
|
|
5088
|
+
c.length > 1 && /* @__PURE__ */ X(Aa, {
|
|
4905
5089
|
tiles: c,
|
|
4906
5090
|
tileIndex: l,
|
|
4907
5091
|
onTileChange: u,
|
|
4908
5092
|
openLeft: e.endsWith("right")
|
|
4909
5093
|
}),
|
|
4910
|
-
n && /* @__PURE__ */ X(
|
|
4911
|
-
r && /* @__PURE__ */ X(
|
|
5094
|
+
n && /* @__PURE__ */ X(Oa, { children: /* @__PURE__ */ X(Ma, { onClick: _ }) }),
|
|
5095
|
+
r && /* @__PURE__ */ X(Oa, { children: /* @__PURE__ */ X(ka, {
|
|
4912
5096
|
onClick: v,
|
|
4913
5097
|
label: "Find my location",
|
|
4914
5098
|
disabled: p,
|
|
4915
|
-
children: p ? /* @__PURE__ */ X(
|
|
5099
|
+
children: p ? /* @__PURE__ */ X(re, { className: "size-4 animate-spin" }) : /* @__PURE__ */ X(ae, { className: "size-4" })
|
|
4916
5100
|
}) }),
|
|
4917
|
-
i && /* @__PURE__ */ X(
|
|
5101
|
+
i && /* @__PURE__ */ X(Oa, { children: /* @__PURE__ */ X(ka, {
|
|
4918
5102
|
onClick: y,
|
|
4919
5103
|
label: "Toggle fullscreen",
|
|
4920
|
-
children: /* @__PURE__ */ X(
|
|
5104
|
+
children: /* @__PURE__ */ X(V, { className: "size-4" })
|
|
4921
5105
|
}) })
|
|
4922
5106
|
]
|
|
4923
5107
|
});
|
|
4924
5108
|
}
|
|
4925
|
-
function
|
|
4926
|
-
let { map: t } =
|
|
5109
|
+
function Ma({ onClick: e }) {
|
|
5110
|
+
let { map: t } = ma(), n = d(null);
|
|
4927
5111
|
return s(() => {
|
|
4928
5112
|
if (!t || !n.current) return;
|
|
4929
5113
|
let e = n.current, r = () => {
|
|
@@ -4933,7 +5117,7 @@ function Da({ onClick: e }) {
|
|
|
4933
5117
|
return t.on("rotate", r), t.on("pitch", r), r(), () => {
|
|
4934
5118
|
t.off("rotate", r), t.off("pitch", r);
|
|
4935
5119
|
};
|
|
4936
|
-
}, [t]), /* @__PURE__ */ X(
|
|
5120
|
+
}, [t]), /* @__PURE__ */ X(ka, {
|
|
4937
5121
|
onClick: e,
|
|
4938
5122
|
label: "Reset bearing to north",
|
|
4939
5123
|
children: /* @__PURE__ */ Z("svg", {
|
|
@@ -4962,8 +5146,8 @@ function Da({ onClick: e }) {
|
|
|
4962
5146
|
})
|
|
4963
5147
|
});
|
|
4964
5148
|
}
|
|
4965
|
-
function
|
|
4966
|
-
let { map: c } =
|
|
5149
|
+
function Na({ longitude: e, latitude: t, onClose: n, children: r, className: i, closeButton: a = !1, ...o }) {
|
|
5150
|
+
let { map: c } = ma(), l = d(o), f = d(n);
|
|
4967
5151
|
f.current = n;
|
|
4968
5152
|
let p = u(() => document.createElement("div"), []), m = u(() => new He.Popup({
|
|
4969
5153
|
offset: 16,
|
|
@@ -4982,13 +5166,13 @@ function Oa({ longitude: e, latitude: t, onClose: n, children: r, className: i,
|
|
|
4982
5166
|
}
|
|
4983
5167
|
return Ue(/* @__PURE__ */ Z("div", {
|
|
4984
5168
|
className: Q("bg-popover text-popover-foreground relative max-w-62 rounded-md border p-3 shadow-md", "animate-in fade-in-0 zoom-in-95 duration-200 ease-out", i),
|
|
4985
|
-
children: [a && /* @__PURE__ */ X(
|
|
5169
|
+
children: [a && /* @__PURE__ */ X(Ca, { onClick: () => {
|
|
4986
5170
|
m.remove();
|
|
4987
5171
|
} }), r]
|
|
4988
5172
|
}), p);
|
|
4989
5173
|
}
|
|
4990
|
-
function
|
|
4991
|
-
let { map: f, isLoaded: p } =
|
|
5174
|
+
function Pa({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity: i = .8, dashArray: a, onClick: o, onMouseEnter: l, onMouseLeave: u, interactive: d = !0 }) {
|
|
5175
|
+
let { map: f, isLoaded: p } = ma(), m = c(), h = e ?? m, g = `route-source-${h}`, _ = `route-layer-${h}`;
|
|
4992
5176
|
return s(() => {
|
|
4993
5177
|
if (!(!p || !f)) return f.addSource(g, {
|
|
4994
5178
|
type: "geojson",
|
|
@@ -5067,15 +5251,15 @@ function ka({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity
|
|
|
5067
5251
|
d
|
|
5068
5252
|
]), null;
|
|
5069
5253
|
}
|
|
5070
|
-
var
|
|
5254
|
+
var Fa = .2, Ia = 64, La = 12, Ra = 6, za = {
|
|
5071
5255
|
"line-color": "#4285F4",
|
|
5072
5256
|
"line-width": 2,
|
|
5073
5257
|
"line-opacity": .85
|
|
5074
|
-
},
|
|
5258
|
+
}, Ba = {
|
|
5075
5259
|
"line-join": "round",
|
|
5076
5260
|
"line-cap": "round"
|
|
5077
5261
|
};
|
|
5078
|
-
function
|
|
5262
|
+
function Va(e, t) {
|
|
5079
5263
|
if (!t) return e;
|
|
5080
5264
|
let n = { ...e };
|
|
5081
5265
|
for (let [e, r] of Object.entries(t)) {
|
|
@@ -5094,7 +5278,7 @@ function Ia(e, t) {
|
|
|
5094
5278
|
}
|
|
5095
5279
|
return n;
|
|
5096
5280
|
}
|
|
5097
|
-
function
|
|
5281
|
+
function Ha(e, t, n, r) {
|
|
5098
5282
|
let [i, a] = e, [o, s] = t, c = o - i, l = s - a, u = Math.hypot(c, l);
|
|
5099
5283
|
if (u === 0 || n === 0) return [e, t];
|
|
5100
5284
|
let d = (i + o) / 2, f = (a + s) / 2, p = -l / u, m = c / u, h = u * n, g = d + p * h, _ = f + m * h, v = [], y = Math.max(2, Math.floor(r));
|
|
@@ -5104,16 +5288,16 @@ function La(e, t, n, r) {
|
|
|
5104
5288
|
}
|
|
5105
5289
|
return v;
|
|
5106
5290
|
}
|
|
5107
|
-
function
|
|
5108
|
-
let { map: h, isLoaded: g } =
|
|
5109
|
-
...
|
|
5291
|
+
function Ua({ data: e, id: t, curvature: n = Fa, samples: r = Ia, paint: i, layout: a, hoverPaint: o, onClick: l, onHover: f, interactive: p = !0, beforeId: m }) {
|
|
5292
|
+
let { map: h, isLoaded: g } = ma(), _ = c(), v = t ?? _, y = `arc-source-${v}`, b = `arc-layer-${v}`, x = `arc-hit-layer-${v}`, S = u(() => Va({
|
|
5293
|
+
...za,
|
|
5110
5294
|
...i
|
|
5111
5295
|
}, o), [i, o]), C = u(() => ({
|
|
5112
|
-
...
|
|
5296
|
+
...Ba,
|
|
5113
5297
|
...a
|
|
5114
5298
|
}), [a]), w = u(() => {
|
|
5115
|
-
let e = i?.["line-width"] ??
|
|
5116
|
-
return Math.max((typeof e == "number" ? e :
|
|
5299
|
+
let e = i?.["line-width"] ?? za["line-width"];
|
|
5300
|
+
return Math.max((typeof e == "number" ? e : La) + Ra, La);
|
|
5117
5301
|
}, [i]), T = u(() => ({
|
|
5118
5302
|
type: "FeatureCollection",
|
|
5119
5303
|
features: e.map((e) => {
|
|
@@ -5123,7 +5307,7 @@ function Ra({ data: e, id: t, curvature: n = Aa, samples: r = ja, paint: i, layo
|
|
|
5123
5307
|
properties: a,
|
|
5124
5308
|
geometry: {
|
|
5125
5309
|
type: "LineString",
|
|
5126
|
-
coordinates:
|
|
5310
|
+
coordinates: Ha(t, i, n, r)
|
|
5127
5311
|
}
|
|
5128
5312
|
};
|
|
5129
5313
|
})
|
|
@@ -5149,7 +5333,7 @@ function Ra({ data: e, id: t, curvature: n = Aa, samples: r = ja, paint: i, layo
|
|
|
5149
5333
|
id: x,
|
|
5150
5334
|
type: "line",
|
|
5151
5335
|
source: y,
|
|
5152
|
-
layout:
|
|
5336
|
+
layout: Ba,
|
|
5153
5337
|
paint: {
|
|
5154
5338
|
"line-color": "rgba(0, 0, 0, 0)",
|
|
5155
5339
|
"line-width": w,
|
|
@@ -5232,12 +5416,12 @@ function Ra({ data: e, id: t, curvature: n = Aa, samples: r = ja, paint: i, layo
|
|
|
5232
5416
|
p
|
|
5233
5417
|
]), null;
|
|
5234
5418
|
}
|
|
5235
|
-
function
|
|
5419
|
+
function Wa({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterColors: r = [
|
|
5236
5420
|
"#22c55e",
|
|
5237
5421
|
"#eab308",
|
|
5238
5422
|
"#ef4444"
|
|
5239
5423
|
], clusterThresholds: i = [100, 750], pointColor: a = "#3b82f6", onPointClick: o, onClusterClick: l }) {
|
|
5240
|
-
let { map: u, isLoaded: f } =
|
|
5424
|
+
let { map: u, isLoaded: f } = ma(), p = c(), m = `cluster-source-${p}`, h = `clusters-${p}`, g = `cluster-count-${p}`, _ = `unclustered-point-${p}`, v = d({
|
|
5241
5425
|
clusterColors: r,
|
|
5242
5426
|
clusterThresholds: i,
|
|
5243
5427
|
pointColor: a
|
|
@@ -5392,7 +5576,7 @@ function za({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterCol
|
|
|
5392
5576
|
}
|
|
5393
5577
|
//#endregion
|
|
5394
5578
|
//#region src/components/ui/progress.tsx
|
|
5395
|
-
function
|
|
5579
|
+
function Ga({ className: e, value: t, ...n }) {
|
|
5396
5580
|
return /* @__PURE__ */ X(Te.Root, {
|
|
5397
5581
|
"data-slot": "progress",
|
|
5398
5582
|
className: Q("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted", e),
|
|
@@ -5406,7 +5590,7 @@ function Ba({ className: e, value: t, ...n }) {
|
|
|
5406
5590
|
}
|
|
5407
5591
|
//#endregion
|
|
5408
5592
|
//#region src/components/ui/slider.tsx
|
|
5409
|
-
function
|
|
5593
|
+
function Ka({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100, ...o }) {
|
|
5410
5594
|
let s = n.useMemo(() => Array.isArray(r) ? r : Array.isArray(t) ? t : [i, a], [
|
|
5411
5595
|
r,
|
|
5412
5596
|
t,
|
|
@@ -5436,17 +5620,17 @@ function Va({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100,
|
|
|
5436
5620
|
}
|
|
5437
5621
|
//#endregion
|
|
5438
5622
|
//#region src/components/ui/sonner.tsx
|
|
5439
|
-
var
|
|
5623
|
+
var qa = ({ ...e }) => {
|
|
5440
5624
|
let { theme: t = "system" } = We();
|
|
5441
5625
|
return /* @__PURE__ */ X(Ge, {
|
|
5442
5626
|
theme: t,
|
|
5443
5627
|
className: "toaster group",
|
|
5444
5628
|
icons: {
|
|
5445
5629
|
success: /* @__PURE__ */ X(E, { className: "size-4" }),
|
|
5446
|
-
info: /* @__PURE__ */ X(
|
|
5447
|
-
warning: /* @__PURE__ */ X(
|
|
5448
|
-
error: /* @__PURE__ */ X(
|
|
5449
|
-
loading: /* @__PURE__ */ X(
|
|
5630
|
+
info: /* @__PURE__ */ X(ne, { className: "size-4" }),
|
|
5631
|
+
warning: /* @__PURE__ */ X(_e, { className: "size-4" }),
|
|
5632
|
+
error: /* @__PURE__ */ X(se, { className: "size-4" }),
|
|
5633
|
+
loading: /* @__PURE__ */ X(B, { className: "size-4 animate-spin" })
|
|
5450
5634
|
},
|
|
5451
5635
|
style: {
|
|
5452
5636
|
"--normal-bg": "var(--popover)",
|
|
@@ -5457,20 +5641,20 @@ var Ha = ({ ...e }) => {
|
|
|
5457
5641
|
toastOptions: { classNames: { toast: "cn-toast" } },
|
|
5458
5642
|
...e
|
|
5459
5643
|
});
|
|
5460
|
-
},
|
|
5461
|
-
let e = o(
|
|
5644
|
+
}, Ja = r(void 0), Ya = r(void 0), Xa = () => {
|
|
5645
|
+
let e = o(Ja);
|
|
5462
5646
|
if (!e) throw Error("useStepper must be used within a Stepper");
|
|
5463
5647
|
return e;
|
|
5464
|
-
},
|
|
5465
|
-
let e = o(
|
|
5648
|
+
}, Za = () => {
|
|
5649
|
+
let e = o(Ya);
|
|
5466
5650
|
if (!e) throw Error("useStepItem must be used within a StepperItem");
|
|
5467
5651
|
return e;
|
|
5468
5652
|
};
|
|
5469
|
-
function
|
|
5653
|
+
function Qa({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i = "horizontal", className: a, ...o }) {
|
|
5470
5654
|
let [s, c] = n.useState(e), l = n.useCallback((e) => {
|
|
5471
5655
|
t === void 0 && c(e), r?.(e);
|
|
5472
5656
|
}, [t, r]), u = t ?? s;
|
|
5473
|
-
return /* @__PURE__ */ X(
|
|
5657
|
+
return /* @__PURE__ */ X(Ja.Provider, {
|
|
5474
5658
|
value: {
|
|
5475
5659
|
activeStep: u,
|
|
5476
5660
|
orientation: i,
|
|
@@ -5484,9 +5668,9 @@ function qa({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i =
|
|
|
5484
5668
|
})
|
|
5485
5669
|
});
|
|
5486
5670
|
}
|
|
5487
|
-
function
|
|
5488
|
-
let { activeStep: s } =
|
|
5489
|
-
return /* @__PURE__ */ X(
|
|
5671
|
+
function $a({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, className: i, children: a, ...o }) {
|
|
5672
|
+
let { activeStep: s } = Xa(), c = t || e < s ? "completed" : s === e ? "active" : "inactive", l = r && e === s;
|
|
5673
|
+
return /* @__PURE__ */ X(Ya.Provider, {
|
|
5490
5674
|
value: {
|
|
5491
5675
|
isDisabled: n,
|
|
5492
5676
|
isLoading: l,
|
|
@@ -5503,8 +5687,8 @@ function Ja({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, cla
|
|
|
5503
5687
|
})
|
|
5504
5688
|
});
|
|
5505
5689
|
}
|
|
5506
|
-
function
|
|
5507
|
-
let { setActiveStep: i } =
|
|
5690
|
+
function eo({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5691
|
+
let { setActiveStep: i } = Xa(), { step: a, isDisabled: o } = Za();
|
|
5508
5692
|
return e ? /* @__PURE__ */ X(e ? ke.Root : "span", {
|
|
5509
5693
|
className: t,
|
|
5510
5694
|
"data-slot": "stepper-trigger",
|
|
@@ -5519,8 +5703,8 @@ function Ya({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5519
5703
|
children: n
|
|
5520
5704
|
});
|
|
5521
5705
|
}
|
|
5522
|
-
function
|
|
5523
|
-
let { state: i, step: a, isLoading: o } =
|
|
5706
|
+
function to({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5707
|
+
let { state: i, step: a, isLoading: o } = Za();
|
|
5524
5708
|
return /* @__PURE__ */ X("span", {
|
|
5525
5709
|
className: Q("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-muted font-medium text-muted-foreground text-xs data-[state=active]:bg-primary data-[state=completed]:bg-primary data-[state=active]:text-primary-foreground data-[state=completed]:text-primary-foreground", t),
|
|
5526
5710
|
"data-slot": "stepper-indicator",
|
|
@@ -5538,7 +5722,7 @@ function Xa({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5538
5722
|
}),
|
|
5539
5723
|
o && /* @__PURE__ */ X("span", {
|
|
5540
5724
|
className: "absolute transition-all",
|
|
5541
|
-
children: /* @__PURE__ */ X(
|
|
5725
|
+
children: /* @__PURE__ */ X(ie, {
|
|
5542
5726
|
"aria-hidden": "true",
|
|
5543
5727
|
className: "animate-spin",
|
|
5544
5728
|
size: 14
|
|
@@ -5547,21 +5731,21 @@ function Xa({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5547
5731
|
] })
|
|
5548
5732
|
});
|
|
5549
5733
|
}
|
|
5550
|
-
function
|
|
5734
|
+
function no({ className: e, ...t }) {
|
|
5551
5735
|
return /* @__PURE__ */ X("h3", {
|
|
5552
5736
|
className: Q("font-medium text-sm", e),
|
|
5553
5737
|
"data-slot": "stepper-title",
|
|
5554
5738
|
...t
|
|
5555
5739
|
});
|
|
5556
5740
|
}
|
|
5557
|
-
function
|
|
5741
|
+
function ro({ className: e, ...t }) {
|
|
5558
5742
|
return /* @__PURE__ */ X("p", {
|
|
5559
5743
|
className: Q("text-muted-foreground text-sm", e),
|
|
5560
5744
|
"data-slot": "stepper-description",
|
|
5561
5745
|
...t
|
|
5562
5746
|
});
|
|
5563
5747
|
}
|
|
5564
|
-
function
|
|
5748
|
+
function io({ className: e, ...t }) {
|
|
5565
5749
|
return /* @__PURE__ */ X("div", {
|
|
5566
5750
|
className: Q("m-0.5 bg-muted group-data-[orientation=horizontal]/stepper:h-0.5 group-data-[orientation=vertical]/stepper:h-12 group-data-[orientation=horizontal]/stepper:w-full group-data-[orientation=vertical]/stepper:w-0.5 group-data-[orientation=horizontal]/stepper:flex-1 group-data-[state=completed]/step:bg-primary", e),
|
|
5567
5751
|
"data-slot": "stepper-separator",
|
|
@@ -5570,7 +5754,7 @@ function $a({ className: e, ...t }) {
|
|
|
5570
5754
|
}
|
|
5571
5755
|
//#endregion
|
|
5572
5756
|
//#region src/components/ui/switch.tsx
|
|
5573
|
-
function
|
|
5757
|
+
function ao({ className: e, size: t = "default", ...n }) {
|
|
5574
5758
|
return /* @__PURE__ */ X(Ae.Root, {
|
|
5575
5759
|
"data-slot": "switch",
|
|
5576
5760
|
"data-size": t,
|
|
@@ -5584,7 +5768,7 @@ function eo({ className: e, size: t = "default", ...n }) {
|
|
|
5584
5768
|
}
|
|
5585
5769
|
//#endregion
|
|
5586
5770
|
//#region src/components/ui/tabs.tsx
|
|
5587
|
-
function
|
|
5771
|
+
function oo({ className: e, orientation: t = "horizontal", ...n }) {
|
|
5588
5772
|
return /* @__PURE__ */ X(je.Root, {
|
|
5589
5773
|
"data-slot": "tabs",
|
|
5590
5774
|
"data-orientation": t,
|
|
@@ -5592,29 +5776,29 @@ function to({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
5592
5776
|
...n
|
|
5593
5777
|
});
|
|
5594
5778
|
}
|
|
5595
|
-
var
|
|
5779
|
+
var so = W("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
5596
5780
|
variants: { variant: {
|
|
5597
5781
|
default: "bg-muted",
|
|
5598
5782
|
line: "gap-1 bg-transparent"
|
|
5599
5783
|
} },
|
|
5600
5784
|
defaultVariants: { variant: "default" }
|
|
5601
5785
|
});
|
|
5602
|
-
function
|
|
5786
|
+
function co({ className: e, variant: t = "default", ...n }) {
|
|
5603
5787
|
return /* @__PURE__ */ X(je.List, {
|
|
5604
5788
|
"data-slot": "tabs-list",
|
|
5605
5789
|
"data-variant": t,
|
|
5606
|
-
className: Q(
|
|
5790
|
+
className: Q(so({ variant: t }), e),
|
|
5607
5791
|
...n
|
|
5608
5792
|
});
|
|
5609
5793
|
}
|
|
5610
|
-
function
|
|
5794
|
+
function lo({ className: e, ...t }) {
|
|
5611
5795
|
return /* @__PURE__ */ X(je.Trigger, {
|
|
5612
5796
|
"data-slot": "tabs-trigger",
|
|
5613
5797
|
className: Q("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
5614
5798
|
...t
|
|
5615
5799
|
});
|
|
5616
5800
|
}
|
|
5617
|
-
function
|
|
5801
|
+
function uo({ className: e, ...t }) {
|
|
5618
5802
|
return /* @__PURE__ */ X(je.Content, {
|
|
5619
5803
|
"data-slot": "tabs-content",
|
|
5620
5804
|
className: Q("flex-1 text-sm outline-none", e),
|
|
@@ -5623,16 +5807,16 @@ function ao({ className: e, ...t }) {
|
|
|
5623
5807
|
}
|
|
5624
5808
|
//#endregion
|
|
5625
5809
|
//#region src/components/ui/timeline.tsx
|
|
5626
|
-
var
|
|
5627
|
-
let e = n.useContext(
|
|
5810
|
+
var fo = n.createContext(void 0), po = () => {
|
|
5811
|
+
let e = n.useContext(fo);
|
|
5628
5812
|
if (!e) throw Error("useTimeline must be used within a Timeline");
|
|
5629
5813
|
return e;
|
|
5630
5814
|
};
|
|
5631
|
-
function
|
|
5815
|
+
function mo({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i = "vertical", className: a, ...o }) {
|
|
5632
5816
|
let [s, c] = n.useState(e), l = n.useCallback((e) => {
|
|
5633
5817
|
t === void 0 && c(e), r?.(e);
|
|
5634
5818
|
}, [t, r]), u = t ?? s;
|
|
5635
|
-
return /* @__PURE__ */ X(
|
|
5819
|
+
return /* @__PURE__ */ X(fo.Provider, {
|
|
5636
5820
|
value: {
|
|
5637
5821
|
activeStep: u,
|
|
5638
5822
|
setActiveStep: l
|
|
@@ -5645,28 +5829,28 @@ function co({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i =
|
|
|
5645
5829
|
})
|
|
5646
5830
|
});
|
|
5647
5831
|
}
|
|
5648
|
-
function
|
|
5832
|
+
function ho({ className: e, ...t }) {
|
|
5649
5833
|
return /* @__PURE__ */ X("div", {
|
|
5650
5834
|
className: Q("text-muted-foreground text-sm", e),
|
|
5651
5835
|
"data-slot": "timeline-content",
|
|
5652
5836
|
...t
|
|
5653
5837
|
});
|
|
5654
5838
|
}
|
|
5655
|
-
function
|
|
5839
|
+
function go({ asChild: e = !1, className: t, ...n }) {
|
|
5656
5840
|
return /* @__PURE__ */ X(e ? ke.Root : "time", {
|
|
5657
5841
|
className: Q("mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4", t),
|
|
5658
5842
|
"data-slot": "timeline-date",
|
|
5659
5843
|
...n
|
|
5660
5844
|
});
|
|
5661
5845
|
}
|
|
5662
|
-
function
|
|
5846
|
+
function _o({ className: e, ...t }) {
|
|
5663
5847
|
return /* @__PURE__ */ X("div", {
|
|
5664
5848
|
className: Q(e),
|
|
5665
5849
|
"data-slot": "timeline-header",
|
|
5666
5850
|
...t
|
|
5667
5851
|
});
|
|
5668
5852
|
}
|
|
5669
|
-
function
|
|
5853
|
+
function vo({ className: e, children: t, ...n }) {
|
|
5670
5854
|
return /* @__PURE__ */ X("div", {
|
|
5671
5855
|
"aria-hidden": "true",
|
|
5672
5856
|
className: Q("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute size-4 rounded-full border-2 border-primary/20 group-data-[orientation=vertical]/timeline:top-0 group-data-[orientation=horizontal]/timeline:left-0 group-data-completed/timeline-item:border-primary", e),
|
|
@@ -5675,8 +5859,8 @@ function po({ className: e, children: t, ...n }) {
|
|
|
5675
5859
|
children: t
|
|
5676
5860
|
});
|
|
5677
5861
|
}
|
|
5678
|
-
function
|
|
5679
|
-
let { activeStep: r } =
|
|
5862
|
+
function yo({ step: e, className: t, ...n }) {
|
|
5863
|
+
let { activeStep: r } = po();
|
|
5680
5864
|
return /* @__PURE__ */ X("div", {
|
|
5681
5865
|
className: Q("group/timeline-item relative flex flex-1 flex-col gap-0.5 group-data-[orientation=vertical]/timeline:ms-8 group-data-[orientation=horizontal]/timeline:mt-8 group-data-[orientation=horizontal]/timeline:not-last:pe-8 group-data-[orientation=vertical]/timeline:not-last:pb-12 has-[+[data-completed]]:[&_[data-slot=timeline-separator]]:bg-primary", t),
|
|
5682
5866
|
"data-completed": e <= r || void 0,
|
|
@@ -5684,7 +5868,7 @@ function mo({ step: e, className: t, ...n }) {
|
|
|
5684
5868
|
...n
|
|
5685
5869
|
});
|
|
5686
5870
|
}
|
|
5687
|
-
function
|
|
5871
|
+
function bo({ className: e, ...t }) {
|
|
5688
5872
|
return /* @__PURE__ */ X("div", {
|
|
5689
5873
|
"aria-hidden": "true",
|
|
5690
5874
|
className: Q("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute self-start bg-primary/10 group-last/timeline-item:hidden group-data-[orientation=horizontal]/timeline:h-0.5 group-data-[orientation=vertical]/timeline:h-[calc(100%-1rem-0.25rem)] group-data-[orientation=horizontal]/timeline:w-[calc(100%-1rem-0.25rem)] group-data-[orientation=vertical]/timeline:w-0.5 group-data-[orientation=horizontal]/timeline:translate-x-4.5 group-data-[orientation=vertical]/timeline:translate-y-4.5", e),
|
|
@@ -5692,7 +5876,7 @@ function ho({ className: e, ...t }) {
|
|
|
5692
5876
|
...t
|
|
5693
5877
|
});
|
|
5694
5878
|
}
|
|
5695
|
-
function
|
|
5879
|
+
function xo({ className: e, ...t }) {
|
|
5696
5880
|
return /* @__PURE__ */ X("h3", {
|
|
5697
5881
|
className: Q("font-medium text-sm", e),
|
|
5698
5882
|
"data-slot": "timeline-title",
|
|
@@ -5701,7 +5885,7 @@ function go({ className: e, ...t }) {
|
|
|
5701
5885
|
}
|
|
5702
5886
|
//#endregion
|
|
5703
5887
|
//#region src/components/ui/toggle.tsx
|
|
5704
|
-
var
|
|
5888
|
+
var So = W("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
5705
5889
|
variants: {
|
|
5706
5890
|
variant: {
|
|
5707
5891
|
default: "bg-transparent",
|
|
@@ -5718,10 +5902,10 @@ var _o = W("group/toggle inline-flex items-center justify-center gap-1 rounded-l
|
|
|
5718
5902
|
size: "default"
|
|
5719
5903
|
}
|
|
5720
5904
|
});
|
|
5721
|
-
function
|
|
5905
|
+
function Co({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
5722
5906
|
return /* @__PURE__ */ X(Me.Root, {
|
|
5723
5907
|
"data-slot": "toggle",
|
|
5724
|
-
className: Q(
|
|
5908
|
+
className: Q(So({
|
|
5725
5909
|
variant: t,
|
|
5726
5910
|
size: n,
|
|
5727
5911
|
className: e
|
|
@@ -5731,13 +5915,13 @@ function vo({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
5731
5915
|
}
|
|
5732
5916
|
//#endregion
|
|
5733
5917
|
//#region src/components/ui/toggle-group.tsx
|
|
5734
|
-
var
|
|
5918
|
+
var wo = n.createContext({
|
|
5735
5919
|
size: "default",
|
|
5736
5920
|
variant: "default",
|
|
5737
5921
|
spacing: 2,
|
|
5738
5922
|
orientation: "horizontal"
|
|
5739
5923
|
});
|
|
5740
|
-
function
|
|
5924
|
+
function To({ className: e, variant: t, size: n, spacing: r = 2, orientation: i = "horizontal", children: a, ...o }) {
|
|
5741
5925
|
return /* @__PURE__ */ X(Ne.Root, {
|
|
5742
5926
|
"data-slot": "toggle-group",
|
|
5743
5927
|
"data-variant": t,
|
|
@@ -5747,7 +5931,7 @@ function bo({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
5747
5931
|
style: { "--gap": r },
|
|
5748
5932
|
className: Q("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch", e),
|
|
5749
5933
|
...o,
|
|
5750
|
-
children: /* @__PURE__ */ X(
|
|
5934
|
+
children: /* @__PURE__ */ X(wo.Provider, {
|
|
5751
5935
|
value: {
|
|
5752
5936
|
variant: t,
|
|
5753
5937
|
size: n,
|
|
@@ -5758,14 +5942,14 @@ function bo({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
5758
5942
|
})
|
|
5759
5943
|
});
|
|
5760
5944
|
}
|
|
5761
|
-
function
|
|
5762
|
-
let o = n.useContext(
|
|
5945
|
+
function Eo({ className: e, children: t, variant: r = "default", size: i = "default", ...a }) {
|
|
5946
|
+
let o = n.useContext(wo);
|
|
5763
5947
|
return /* @__PURE__ */ X(Ne.Item, {
|
|
5764
5948
|
"data-slot": "toggle-group-item",
|
|
5765
5949
|
"data-variant": o.variant || r,
|
|
5766
5950
|
"data-size": o.size || i,
|
|
5767
5951
|
"data-spacing": o.spacing,
|
|
5768
|
-
className: Q("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
|
|
5952
|
+
className: Q("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", So({
|
|
5769
5953
|
variant: o.variant || r,
|
|
5770
5954
|
size: o.size || i
|
|
5771
5955
|
}), e),
|
|
@@ -5775,26 +5959,26 @@ function xo({ className: e, children: t, variant: r = "default", size: i = "defa
|
|
|
5775
5959
|
}
|
|
5776
5960
|
//#endregion
|
|
5777
5961
|
//#region src/components/ui/tooltip.tsx
|
|
5778
|
-
function
|
|
5962
|
+
function Do({ delayDuration: e = 0, ...t }) {
|
|
5779
5963
|
return /* @__PURE__ */ X(Pe.Provider, {
|
|
5780
5964
|
"data-slot": "tooltip-provider",
|
|
5781
5965
|
delayDuration: e,
|
|
5782
5966
|
...t
|
|
5783
5967
|
});
|
|
5784
5968
|
}
|
|
5785
|
-
function
|
|
5969
|
+
function Oo({ ...e }) {
|
|
5786
5970
|
return /* @__PURE__ */ X(Pe.Root, {
|
|
5787
5971
|
"data-slot": "tooltip",
|
|
5788
5972
|
...e
|
|
5789
5973
|
});
|
|
5790
5974
|
}
|
|
5791
|
-
function
|
|
5975
|
+
function ko({ ...e }) {
|
|
5792
5976
|
return /* @__PURE__ */ X(Pe.Trigger, {
|
|
5793
5977
|
"data-slot": "tooltip-trigger",
|
|
5794
5978
|
...e
|
|
5795
5979
|
});
|
|
5796
5980
|
}
|
|
5797
|
-
function
|
|
5981
|
+
function Ao({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
5798
5982
|
return /* @__PURE__ */ X(Pe.Portal, { children: /* @__PURE__ */ Z(Pe.Content, {
|
|
5799
5983
|
"data-slot": "tooltip-content",
|
|
5800
5984
|
sideOffset: t,
|
|
@@ -5804,6 +5988,6 @@ function To({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
|
5804
5988
|
}) });
|
|
5805
5989
|
}
|
|
5806
5990
|
//#endregion
|
|
5807
|
-
export { pt as ActionsMenu, fn as AdvancedInput, Tn as AdvancedSelect,
|
|
5991
|
+
export { pt as ActionsMenu, fn as AdvancedInput, Tn as AdvancedSelect, ji as Alert, Pi as AlertAction, vn as AlertCard, yn as AlertCardAction, Ni as AlertDescription, Wn as AlertDialog, er as AlertDialogAction, tr as AlertDialogCancel, Jn as AlertDialogContent, $n as AlertDialogDescription, Xn as AlertDialogFooter, Yn as AlertDialogHeader, Zn as AlertDialogMedia, qn as AlertDialogOverlay, Kn as AlertDialogPortal, Qn as AlertDialogTitle, Gn as AlertDialogTrigger, Mi as AlertTitle, gn as Badge, $ as Button, Ii as ButtonGroup, Ri as ButtonGroupSeparator, Li as ButtonGroupText, vi as Calendar, yi as CalendarDayButton, Ar as Card, Pr as CardAction, Fr as CardContent, Nr as CardDescription, Ir as CardFooter, jr as CardHeader, Bn as CardRadioGroup, Mr as CardTitle, Ui as ChartContainer, qi as ChartLegend, Ji as ChartLegendContent, Wi as ChartStyle, Gi as ChartTooltip, Ki as ChartTooltipContent, En as Checkbox, Un as ColorPicker, qt as Command, Jt as CommandDialog, Zt as CommandEmpty, Qt as CommandGroup, Yt as CommandInput, en as CommandItem, Xt as CommandList, $t as CommandSeparator, tn as CommandShortcut, nr as ConfirmPrompt, rr as CustomTabs, ar as DataCell, In as DataTable, Oi as DateTimePicker, ki as DateTimeRangePicker, or as DefRow, Dt as Dialog, At as DialogClose, Mt as DialogContent, It as DialogDescription, Pt as DialogFooter, Nt as DialogHeader, jt as DialogOverlay, kt as DialogPortal, Ft as DialogTitle, Ot as DialogTrigger, dr as Divider, Xe as DropdownMenu, nt as DropdownMenuCheckboxItem, $e as DropdownMenuContent, et as DropdownMenuGroup, tt as DropdownMenuItem, at as DropdownMenuLabel, Ze as DropdownMenuPortal, rt as DropdownMenuRadioGroup, it as DropdownMenuRadioItem, ot as DropdownMenuSeparator, st as DropdownMenuShortcut, ct as DropdownMenuSub, ut as DropdownMenuSubContent, lt as DropdownMenuSubTrigger, Qe as DropdownMenuTrigger, fr as Empty, vr as EmptyContent, _r as EmptyDescription, pr as EmptyHeader, hr as EmptyMedia, yr as EmptyState, gr as EmptyTitle, br as FacetedFilter, bt as Field, xt as FieldContent, wt as FieldDescription, Et as FieldError, vt as FieldGroup, St as FieldLabel, _t as FieldLegend, Tt as FieldSeparator, gt as FieldSet, Ct as FieldTitle, Cn as FileUpload, Ln as FormDialog, Xi as HoverCard, Qi as HoverCardContent, Zi as HoverCardTrigger, Lt as Input, zt as InputGroup, Vt as InputGroupAddon, Ut as InputGroupButton, Gt as InputGroupInput, Wt as InputGroupText, Kt as InputGroupTextarea, na as Item, ca as ItemActions, aa as ItemContent, sa as ItemDescription, ua as ItemFooter, $i as ItemGroup, la as ItemHeader, ia as ItemMedia, ea as ItemSeparator, oa as ItemTitle, mt as Label, Cr as ListCard, Sr as ListCardChip, Tr as ListCardGrid, xr as ListCardPerson, _a as Map, Ua as MapArc, Wa as MapClusterLayer, ja as MapControls, ba as MapMarker, Er as MapMarkerPin, Na as MapPopup, Pa as MapRoute, xa as MarkerContent, Ea as MarkerLabel, wa as MarkerPopup, Ta as MarkerTooltip, Dr as NotFound, un as PHONE_COUNTRIES, mn as PhoneInput, nn as Popover, on as PopoverAnchor, an as PopoverContent, ln as PopoverDescription, sn as PopoverHeader, cn as PopoverTitle, rn as PopoverTrigger, Ga as Progress, Or as QuickStat, Rn as RadioGroup, zn as RadioGroupItem, ci as Select, fi as SelectContent, li as SelectGroup, mi as SelectItem, pi as SelectLabel, _i as SelectScrollDownButton, gi as SelectScrollUpButton, hi as SelectSeparator, di as SelectTrigger, ui as SelectValue, Rr as SensorCard, ht as Separator, zr as Sheet, Vr as SheetClose, Wr as SheetContent, Jr as SheetDescription, Kr as SheetFooter, Gr as SheetHeader, qr as SheetTitle, Br as SheetTrigger, Yr as SideSheet, Xr as SideSheetSection, Ka as Slider, Je as Spinner, $r as StatCard, ii as StatusAvatar, ri as StatusIcon, ai as StatusList, oi as StatusListGroup, si as StatusListItem, Qa as Stepper, ro as StepperDescription, to as StepperIndicator, $a as StepperItem, io as StepperSeparator, no as StepperTitle, eo as StepperTrigger, ao as Switch, Dn as Table, kn as TableBody, Pn as TableCaption, Nn as TableCell, An as TableFooter, Mn as TableHead, On as TableHeader, jn as TableRow, oo as Tabs, uo as TabsContent, co as TabsList, lo as TabsTrigger, Rt as Textarea, mo as Timeline, ho as TimelineContent, go as TimelineDate, _o as TimelineHeader, vo as TimelineIndicator, yo as TimelineItem, bo as TimelineSeparator, xo as TimelineTitle, qa as Toaster, Co as Toggle, To as ToggleGroup, Eo as ToggleGroupItem, Oo as Tooltip, Ao as TooltipContent, Do as TooltipProvider, ko as TooltipTrigger, hn as badgeVariants, Fi as buttonGroupVariants, Ye as buttonVariants, kr as cardVariants, Q as cn, sr as dividerVariants, Ke as formatBytes, Ti as navigateRange, wi as presetToRange, so as tabsListVariants, So as toggleVariants, qe as useFileUpload, ma as useMap };
|
|
5808
5992
|
|
|
5809
5993
|
//# sourceMappingURL=index.js.map
|