florixui 1.3.1 → 1.3.2

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/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, Calendar as m, Check as h, CheckIcon as g, ChevronDown as _, ChevronDownIcon as v, ChevronLeftIcon as y, ChevronRightIcon as b, ChevronUpIcon as x, ChevronsLeftIcon as S, ChevronsRightIcon as C, CircleCheckIcon as w, CircleDotIcon as T, Clock as E, Eye as ee, EyeOff as te, FileArchiveIcon as D, FileIcon as O, FileSpreadsheetIcon as k, FileTextIcon as A, HeadphonesIcon as j, ImageIcon as M, ImageUpIcon as N, InfoIcon as P, Layers as F, Loader2 as ne, Loader2Icon as I, LoaderCircleIcon as re, Locate as L, Maximize as ie, Minus as R, MoreVertical as z, OctagonXIcon as ae, Plus as B, PlusCircleIcon as V, PlusIcon as oe, RefreshCwIcon as se, SearchIcon as H, Trash2Icon as ce, TrendingDownIcon as le, TrendingUpIcon as ue, TriangleAlertIcon as de, UploadIcon as U, VideoIcon as fe, X as pe, XIcon as me } from "lucide-react";
5
+ import { AlertCircleIcon as p, Calendar as m, Check as h, CheckIcon as g, ChevronDown as _, ChevronDownIcon as v, ChevronLeftIcon as y, ChevronRightIcon as b, ChevronUpIcon as x, ChevronsLeftIcon as S, ChevronsRightIcon as C, CircleCheckIcon as w, CircleDotIcon as T, Clock as E, Eye as ee, EyeOff as te, FileArchiveIcon as D, FileIcon as O, FileSpreadsheetIcon as k, FileTextIcon as A, HeadphonesIcon as j, ImageIcon as M, ImageUpIcon as N, InfoIcon as P, Layers as F, Loader2 as ne, Loader2Icon as I, LoaderCircleIcon as re, Locate as L, Maximize as ie, Minus as R, MoreVertical as z, OctagonXIcon as ae, Plus as oe, PlusCircleIcon as B, PlusIcon as se, RefreshCwIcon as ce, SearchIcon as V, Trash2Icon as le, TrendingDownIcon as ue, TrendingUpIcon as de, TriangleAlertIcon as fe, UploadIcon as H, VideoIcon as pe, X as me, XIcon as U } from "lucide-react";
6
6
  import { cva as W } from "class-variance-authority";
7
7
  import { AlertDialog as G, Checkbox as he, Dialog as K, DropdownMenu as q, HoverCard as ge, Label as _e, Popover as ve, Progress as ye, RadioGroup as be, Select as J, Separator as xe, Slider as Se, Slot as Ce, Switch as we, Tabs as Te, Toggle as Ee, ToggleGroup as De, Tooltip as Oe } from "radix-ui";
8
8
  import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
@@ -602,7 +602,7 @@ var St = n.forwardRef(function(e, t) {
602
602
  children: X(T ? te : ee, { className: "size-4" })
603
603
  }) : null, R = _ ? /* @__PURE__ */ X(ne, { className: "size-4 animate-spin text-muted-foreground" }) : f, z = re ? ie : p, ae = (e) => {
604
604
  L === "number" && e.target.select(), P?.(e);
605
- }, B = !!(h || g), V = /* @__PURE__ */ X("input", {
605
+ }, oe = !!(h || g), B = /* @__PURE__ */ X("input", {
606
606
  id: w,
607
607
  type: L,
608
608
  ref: t,
@@ -610,7 +610,7 @@ var St = n.forwardRef(function(e, t) {
610
610
  "aria-invalid": S,
611
611
  "aria-describedby": A,
612
612
  onFocus: ae,
613
- className: Q("w-full min-w-0 bg-transparent text-base text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed md:text-sm", B ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-lg border border-input px-3 py-1 transition-colors", j, 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", R && "pl-9", z && "pr-9"), B && Q(h ? "pl-0" : "pl-3", g ? "pr-0" : "pr-3"), B && R && !h && "pl-9", B && z && !g && "pr-9", r),
613
+ className: Q("w-full min-w-0 bg-transparent text-base text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed md:text-sm", oe ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-lg border border-input px-3 py-1 transition-colors", j, 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", R && "pl-9", z && "pr-9"), oe && Q(h ? "pl-0" : "pl-3", g ? "pr-0" : "pr-3"), oe && R && !h && "pl-9", oe && z && !g && "pr-9", r),
614
614
  ...F
615
615
  });
616
616
  return /* @__PURE__ */ Z("div", {
@@ -621,7 +621,7 @@ var St = n.forwardRef(function(e, t) {
621
621
  className: Q(m && "text-muted-foreground"),
622
622
  children: [a, M]
623
623
  }),
624
- B ? /* @__PURE__ */ Z("div", {
624
+ oe ? /* @__PURE__ */ Z("div", {
625
625
  "aria-invalid": S,
626
626
  className: Q("flex items-center overflow-hidden rounded-lg border border-input transition-colors", j, 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"),
627
627
  children: [
@@ -636,7 +636,7 @@ var St = n.forwardRef(function(e, t) {
636
636
  className: "pointer-events-none absolute left-3 flex items-center text-muted-foreground [&_svg]:size-4",
637
637
  children: R
638
638
  }),
639
- V,
639
+ B,
640
640
  z && /* @__PURE__ */ X("div", {
641
641
  className: "absolute right-3 z-10 flex items-center",
642
642
  children: z
@@ -655,7 +655,7 @@ var St = n.forwardRef(function(e, t) {
655
655
  className: "pointer-events-none absolute left-3 top-1/2 flex -translate-y-1/2 items-center text-muted-foreground [&_svg]:size-4",
656
656
  children: R
657
657
  }),
658
- V,
658
+ B,
659
659
  z && /* @__PURE__ */ X("div", {
660
660
  className: "absolute right-3 top-1/2 z-10 flex -translate-y-1/2 items-center",
661
661
  children: z
@@ -698,7 +698,7 @@ var St = n.forwardRef(function(e, t) {
698
698
  },
699
699
  {
700
700
  match: (e) => e.includes("video/"),
701
- Icon: fe
701
+ Icon: pe
702
702
  }
703
703
  ];
704
704
  function wt(e) {
@@ -781,7 +781,7 @@ function Et({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
781
781
  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",
782
782
  onClick: () => t && v(t.id),
783
783
  type: "button",
784
- children: /* @__PURE__ */ X(me, {
784
+ children: /* @__PURE__ */ X(U, {
785
785
  "aria-hidden": "true",
786
786
  className: "size-4"
787
787
  })
@@ -822,7 +822,7 @@ function Et({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
822
822
  onClick: _,
823
823
  size: "sm",
824
824
  variant: "outline",
825
- children: [/* @__PURE__ */ X(U, {
825
+ children: [/* @__PURE__ */ X(H, {
826
826
  "aria-hidden": "true",
827
827
  className: "-ms-0.5 size-3.5 opacity-60"
828
828
  }), "Add files"]
@@ -831,7 +831,7 @@ function Et({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
831
831
  onClick: y,
832
832
  size: "sm",
833
833
  variant: "outline",
834
- children: [/* @__PURE__ */ X(ce, {
834
+ children: [/* @__PURE__ */ X(le, {
835
835
  "aria-hidden": "true",
836
836
  className: "-ms-0.5 size-3.5 opacity-60"
837
837
  }), "Remove all"]
@@ -848,7 +848,7 @@ function Et({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
848
848
  className: "-top-2 -right-2 absolute size-6 rounded-full border-2 border-background shadow-none focus-visible:border-background",
849
849
  onClick: () => v(e.id),
850
850
  size: "icon",
851
- children: /* @__PURE__ */ X(me, { className: "size-3.5" })
851
+ children: /* @__PURE__ */ X(U, { className: "size-3.5" })
852
852
  }),
853
853
  /* @__PURE__ */ Z("div", {
854
854
  className: "flex min-w-0 flex-col gap-0.5 border-t p-3",
@@ -889,7 +889,7 @@ function Et({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
889
889
  disabled: o,
890
890
  onClick: _,
891
891
  variant: "outline",
892
- children: [/* @__PURE__ */ X(U, {
892
+ children: [/* @__PURE__ */ X(H, {
893
893
  "aria-hidden": "true",
894
894
  className: "-ms-1 opacity-60"
895
895
  }), "Select files"]
@@ -944,7 +944,7 @@ function Mt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
944
944
  variant: "ghost",
945
945
  className: "absolute top-2 right-2",
946
946
  size: "icon-sm",
947
- children: [/* @__PURE__ */ X(me, {}), /* @__PURE__ */ X("span", {
947
+ children: [/* @__PURE__ */ X(U, {}), /* @__PURE__ */ X("span", {
948
948
  className: "sr-only",
949
949
  children: "Close"
950
950
  })]
@@ -1107,7 +1107,7 @@ function Yt({ className: e, ...t }) {
1107
1107
  "data-slot": "command-input",
1108
1108
  className: Q("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
1109
1109
  ...t
1110
- }), /* @__PURE__ */ X(Vt, { children: /* @__PURE__ */ X(H, { className: "size-4 shrink-0 opacity-50" }) })]
1110
+ }), /* @__PURE__ */ X(Vt, { children: /* @__PURE__ */ X(V, { className: "size-4 shrink-0 opacity-50" }) })]
1111
1111
  })
1112
1112
  });
1113
1113
  }
@@ -1210,15 +1210,15 @@ function un(e) {
1210
1210
  return typeof e == "object" && !!e && "value" in e && "label" in e;
1211
1211
  }
1212
1212
  function dn({ 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: _, renderOptionLabel: y, label: b, description: x, required: S = !1, onCreateNew: C, createNewLabel: w = "New item", loading: T = !1, compactMultiple: E = !1, formatCompactDisplay: ee, startItem: te, endItem: D, maxSelections: O, defaultOpen: k = !1, onOpenChange: A, onLoadMore: j, hasNextPage: M = !1, isFetchingNextPage: N = !1, allowEmpty: P = !1, showSelectAll: F = !1, readOnly: I = !1, popoverClassName: re }) {
1213
- let [L, ie] = n.useState(k), R = n.useRef(!1), z = n.useRef(null), ae = n.useId(), B = n.useCallback((e) => {
1213
+ let [L, ie] = n.useState(k), R = n.useRef(!1), z = n.useRef(null), ae = n.useId(), oe = n.useCallback((e) => {
1214
1214
  I && e || (ie(e), A?.(e), e && (R.current = !1));
1215
- }, [A, I]), [V, se] = n.useState(l ? Array.isArray(r) ? r : r ? [r] : [] : []);
1215
+ }, [A, I]), [B, ce] = n.useState(l ? Array.isArray(r) ? r : r ? [r] : [] : []);
1216
1216
  n.useEffect(() => {
1217
- l && se(Array.isArray(r) ? r : r ? [r] : []);
1217
+ l && ce(Array.isArray(r) ? r : r ? [r] : []);
1218
1218
  }, [l, r]), n.useEffect(() => {
1219
1219
  N || (R.current = !1);
1220
1220
  }, [N]);
1221
- let H = n.useCallback((e) => typeof e == "string" ? e : _ ? _(e) : un(e) ? e.value : String(e), [_]), ce = n.useCallback((n) => {
1221
+ let V = n.useCallback((e) => typeof e == "string" ? e : _ ? _(e) : un(e) ? e.value : String(e), [_]), le = n.useCallback((n) => {
1222
1222
  if (typeof n == "string") {
1223
1223
  for (let e of t) {
1224
1224
  let t = e.options.find((e) => e.value === n);
@@ -1234,25 +1234,25 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1234
1234
  h,
1235
1235
  t,
1236
1236
  e
1237
- ]), le = n.useMemo(() => l || !r ? "" : typeof r == "string" ? r : Array.isArray(r) ? "" : H(r), [
1237
+ ]), ue = n.useMemo(() => l || !r ? "" : typeof r == "string" ? r : Array.isArray(r) ? "" : V(r), [
1238
1238
  l,
1239
1239
  r,
1240
- H
1241
- ]), ue = n.useMemo(() => e.map((e) => typeof e == "string" ? {
1240
+ V
1241
+ ]), de = n.useMemo(() => e.map((e) => typeof e == "string" ? {
1242
1242
  value: e,
1243
1243
  label: e
1244
1244
  } : un(e) ? e : {
1245
- value: H(e),
1246
- label: ce(e)
1245
+ value: V(e),
1246
+ label: le(e)
1247
1247
  }), [
1248
1248
  e,
1249
- ce,
1250
- H
1251
- ]), de = n.useCallback((t) => e.find((e) => H(e) === t), [e, H]), U = n.useMemo(() => {
1252
- let e = [...ue];
1249
+ le,
1250
+ V
1251
+ ]), fe = n.useCallback((t) => e.find((e) => V(e) === t), [e, V]), H = n.useMemo(() => {
1252
+ let e = [...de];
1253
1253
  return t.forEach((t) => e.push(...t.options)), e;
1254
- }, [ue, t]), fe = (n) => {
1255
- let r = e.find((e) => H(e) === n);
1254
+ }, [de, t]), pe = (n) => {
1255
+ let r = e.find((e) => V(e) === n);
1256
1256
  if (r === void 0 && t.length > 0) for (let e of t) {
1257
1257
  let t = e.options.find((e) => e.value === n);
1258
1258
  if (t) {
@@ -1261,25 +1261,25 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1261
1261
  }
1262
1262
  }
1263
1263
  if (l) {
1264
- let e = V.some((e) => H(e) === n);
1265
- if (!e && O && V.length >= O || e && V.length === 1 && !P) return;
1266
- let t = e ? V.filter((e) => H(e) !== n) : [...V, r];
1267
- se(t), i?.(t);
1264
+ let e = B.some((e) => V(e) === n);
1265
+ if (!e && O && B.length >= O || e && B.length === 1 && !P) return;
1266
+ let t = e ? B.filter((e) => V(e) !== n) : [...B, r];
1267
+ ce(t), i?.(t);
1268
1268
  } else i?.(r), ie(!1);
1269
- }, pe = l && U.length > 0 && U.length === V.length, W = () => {
1269
+ }, me = l && H.length > 0 && H.length === B.length, W = () => {
1270
1270
  if (l) {
1271
- if (pe) {
1272
- P && (se([]), i?.([]));
1271
+ if (me) {
1272
+ P && (ce([]), i?.([]));
1273
1273
  return;
1274
1274
  }
1275
- O && U.length > O || (se(U), i?.(U));
1275
+ O && H.length > O || (ce(H), i?.(H));
1276
1276
  }
1277
1277
  }, G = (e) => {
1278
- e.stopPropagation(), l ? (se([]), i?.([])) : i?.("");
1278
+ e.stopPropagation(), l ? (ce([]), i?.([])) : i?.("");
1279
1279
  }, he = (e, t) => {
1280
- if (e.stopPropagation(), V.length === 1 && !P) return;
1281
- let n = V.filter((e) => H(e) !== H(t));
1282
- se(n), i?.(n);
1280
+ if (e.stopPropagation(), B.length === 1 && !P) return;
1281
+ let n = B.filter((e) => V(e) !== V(t));
1282
+ ce(n), i?.(n);
1283
1283
  }, K = n.useCallback((e) => {
1284
1284
  let t = e.currentTarget;
1285
1285
  t.scrollHeight - t.scrollTop - t.clientHeight < 100 && j && M && !N && !R.current && (R.current = !0, j());
@@ -1287,25 +1287,25 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1287
1287
  j,
1288
1288
  M,
1289
1289
  N
1290
- ]), q = l ? V.length > 0 : !!le, ge = () => l ? null : U.find((e) => e.value === le)?.label || a, _e = () => {
1290
+ ]), q = l ? B.length > 0 : !!ue, ge = () => l ? null : H.find((e) => e.value === ue)?.label || a, _e = () => {
1291
1291
  !o && !I && (z.current?.focus(), ie(!0));
1292
1292
  }, ve = !!(te || D), ye = l && !E, be = ye ? d === "default" ? "min-h-9" : "min-h-7" : d === "default" ? "h-9" : "h-7", J = f === "alt" ? "bg-muted" : "bg-transparent dark:bg-input/30", xe = /* @__PURE__ */ X("div", {
1293
1293
  className: Q("flex min-w-0 flex-1 items-center gap-1.5", ye ? "py-1" : "overflow-hidden"),
1294
- children: l && V.length > 0 ? E ? /* @__PURE__ */ X("span", {
1294
+ children: l && B.length > 0 ? E ? /* @__PURE__ */ X("span", {
1295
1295
  className: "min-w-0 truncate",
1296
- children: ee ? ee(V) : `${V.length} selected`
1296
+ children: ee ? ee(B) : `${B.length} selected`
1297
1297
  }) : /* @__PURE__ */ X("div", {
1298
1298
  className: "flex flex-wrap items-center gap-1.5",
1299
- children: V.map((e, t) => /* @__PURE__ */ Z("span", {
1299
+ children: B.map((e, t) => /* @__PURE__ */ Z("span", {
1300
1300
  className: "inline-flex items-center gap-1 rounded-sm bg-primary px-2 py-0.5 text-xs font-normal text-primary-foreground",
1301
- children: [ce(e), !o && /* @__PURE__ */ X("button", {
1301
+ children: [le(e), !o && /* @__PURE__ */ X("button", {
1302
1302
  type: "button",
1303
- "aria-label": `Remove ${ce(e)}`,
1303
+ "aria-label": `Remove ${le(e)}`,
1304
1304
  onClick: (t) => he(t, e),
1305
1305
  className: "rounded-sm transition-colors hover:bg-primary/80",
1306
- children: /* @__PURE__ */ X(me, { className: "size-3" })
1306
+ children: /* @__PURE__ */ X(U, { className: "size-3" })
1307
1307
  })]
1308
- }, `${H(e)}-${t}`))
1308
+ }, `${V(e)}-${t}`))
1309
1309
  }) : /* @__PURE__ */ X("span", {
1310
1310
  className: Q("block min-w-0 truncate", !q && "text-muted-foreground"),
1311
1311
  children: ge() || a
@@ -1321,17 +1321,17 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1321
1321
  (e.key === "Enter" || e.key === " ") && (e.stopPropagation(), G(e));
1322
1322
  },
1323
1323
  className: "cursor-pointer rounded-sm p-0.5 transition-colors hover:bg-accent",
1324
- children: /* @__PURE__ */ X(me, { className: "size-3.5" })
1324
+ children: /* @__PURE__ */ X(U, { className: "size-3.5" })
1325
1325
  }), /* @__PURE__ */ X(v, {
1326
1326
  size: 16,
1327
1327
  className: "shrink-0 opacity-60",
1328
1328
  "aria-hidden": !0
1329
1329
  })]
1330
1330
  }), Ce = (e) => {
1331
- let t = l ? V.some((t) => H(t) === e.value) : le === e.value, n = de(e.value);
1331
+ let t = l ? B.some((t) => V(t) === e.value) : ue === e.value, n = fe(e.value);
1332
1332
  return /* @__PURE__ */ Z(en, {
1333
1333
  value: e.value,
1334
- onSelect: () => fe(e.value),
1334
+ onSelect: () => pe(e.value),
1335
1335
  disabled: e.disabled,
1336
1336
  children: [
1337
1337
  l ? /* @__PURE__ */ X("div", {
@@ -1389,13 +1389,13 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1389
1389
  className: "flex items-center justify-center py-6",
1390
1390
  children: /* @__PURE__ */ X(ne, { className: "size-5 animate-spin text-muted-foreground" })
1391
1391
  }) : /* @__PURE__ */ Z(Y, { children: [
1392
- l && F && U.length > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ Z(en, {
1392
+ l && F && H.length > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ Z(en, {
1393
1393
  value: "__select_all__",
1394
1394
  onSelect: W,
1395
1395
  className: "font-medium",
1396
1396
  children: [/* @__PURE__ */ X("div", {
1397
- className: Q("flex size-4 shrink-0 items-center justify-center rounded-sm border", pe ? "border-primary bg-primary" : "border-input"),
1398
- children: pe && /* @__PURE__ */ X(g, {
1397
+ className: Q("flex size-4 shrink-0 items-center justify-center rounded-sm border", me ? "border-primary bg-primary" : "border-input"),
1398
+ children: me && /* @__PURE__ */ X(g, {
1399
1399
  size: 12,
1400
1400
  className: "text-primary-foreground"
1401
1401
  })
@@ -1405,14 +1405,14 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1405
1405
  t.length > 0 ? t.map((e, t) => /* @__PURE__ */ Z(n.Fragment, { children: [t > 0 && /* @__PURE__ */ X($t, {}), /* @__PURE__ */ X(Qt, {
1406
1406
  heading: e.label,
1407
1407
  children: e.options.map(Ce)
1408
- })] }, e.label)) : /* @__PURE__ */ X(Qt, { children: ue.map(Ce) }),
1408
+ })] }, e.label)) : /* @__PURE__ */ X(Qt, { children: de.map(Ce) }),
1409
1409
  C && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X($t, {}), /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ Z($, {
1410
1410
  variant: "ghost",
1411
1411
  className: "w-full justify-start font-normal",
1412
1412
  onClick: () => {
1413
1413
  C(), ie(!1);
1414
1414
  },
1415
- children: [/* @__PURE__ */ X(oe, {
1415
+ children: [/* @__PURE__ */ X(se, {
1416
1416
  size: 16,
1417
1417
  className: "-ms-1 opacity-60",
1418
1418
  "aria-hidden": !0
@@ -1440,7 +1440,7 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1440
1440
  }),
1441
1441
  ve ? /* @__PURE__ */ Z(nn, {
1442
1442
  open: L,
1443
- onOpenChange: B,
1443
+ onOpenChange: oe,
1444
1444
  modal: !1,
1445
1445
  children: [/* @__PURE__ */ X(rn, {
1446
1446
  asChild: !0,
@@ -1475,7 +1475,7 @@ function dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
1475
1475
  }), we]
1476
1476
  }) : /* @__PURE__ */ Z(nn, {
1477
1477
  open: L,
1478
- onOpenChange: B,
1478
+ onOpenChange: oe,
1479
1479
  modal: !1,
1480
1480
  children: [/* @__PURE__ */ X(rn, {
1481
1481
  asChild: !0,
@@ -1791,7 +1791,7 @@ function Cn({ children: e, title: t, open: n, onClose: r, description: i, notDis
1791
1791
  onClick: (e) => {
1792
1792
  e.preventDefault(), e.stopPropagation(), r();
1793
1793
  },
1794
- children: /* @__PURE__ */ X(me, {})
1794
+ children: /* @__PURE__ */ X(U, {})
1795
1795
  })]
1796
1796
  })
1797
1797
  }),
@@ -1977,7 +1977,7 @@ function Mn(e) {
1977
1977
  variant: "outline",
1978
1978
  className: Q("w-fit border-dashed", s),
1979
1979
  children: [
1980
- /* @__PURE__ */ X(V, {}),
1980
+ /* @__PURE__ */ X(B, {}),
1981
1981
  t,
1982
1982
  l.size > 0 && /* @__PURE__ */ Z(Y, { children: [
1983
1983
  /* @__PURE__ */ X(lt, {
@@ -2063,50 +2063,62 @@ function Nn({ icon: e, value: t, label: n, className: r, ...i }) {
2063
2063
  }
2064
2064
  //#endregion
2065
2065
  //#region src/components/ui/card.tsx
2066
- function Pn({ className: e, size: t = "default", ...n }) {
2066
+ var Pn = 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", {
2067
+ variants: { variant: {
2068
+ default: "bg-card text-card-foreground ring-foreground/10",
2069
+ alt: "bg-muted/40 text-card-foreground ring-foreground/10",
2070
+ primary: "bg-primary/5 text-card-foreground ring-primary/20",
2071
+ success: "bg-green/5 text-card-foreground ring-green/20",
2072
+ warning: "bg-orange/5 text-card-foreground ring-orange/20",
2073
+ danger: "bg-red/5 text-card-foreground ring-red/20"
2074
+ } },
2075
+ defaultVariants: { variant: "default" }
2076
+ });
2077
+ function Fn({ className: e, size: t = "default", variant: n = "default", ...r }) {
2067
2078
  return /* @__PURE__ */ X("div", {
2068
2079
  "data-slot": "card",
2069
2080
  "data-size": t,
2070
- className: Q("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 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", e),
2071
- ...n
2081
+ "data-variant": n,
2082
+ className: Q(Pn({ variant: n }), e),
2083
+ ...r
2072
2084
  });
2073
2085
  }
2074
- function Fn({ className: e, ...t }) {
2086
+ function In({ className: e, ...t }) {
2075
2087
  return /* @__PURE__ */ X("div", {
2076
2088
  "data-slot": "card-header",
2077
2089
  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),
2078
2090
  ...t
2079
2091
  });
2080
2092
  }
2081
- function In({ className: e, ...t }) {
2093
+ function Ln({ className: e, ...t }) {
2082
2094
  return /* @__PURE__ */ X("div", {
2083
2095
  "data-slot": "card-title",
2084
2096
  className: Q("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
2085
2097
  ...t
2086
2098
  });
2087
2099
  }
2088
- function Ln({ className: e, ...t }) {
2100
+ function Rn({ className: e, ...t }) {
2089
2101
  return /* @__PURE__ */ X("div", {
2090
2102
  "data-slot": "card-description",
2091
2103
  className: Q("text-sm text-muted-foreground", e),
2092
2104
  ...t
2093
2105
  });
2094
2106
  }
2095
- function Rn({ className: e, ...t }) {
2107
+ function zn({ className: e, ...t }) {
2096
2108
  return /* @__PURE__ */ X("div", {
2097
2109
  "data-slot": "card-action",
2098
2110
  className: Q("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
2099
2111
  ...t
2100
2112
  });
2101
2113
  }
2102
- function zn({ className: e, ...t }) {
2114
+ function Bn({ className: e, ...t }) {
2103
2115
  return /* @__PURE__ */ X("div", {
2104
2116
  "data-slot": "card-content",
2105
2117
  className: Q("px-4 group-data-[size=sm]/card:px-3", e),
2106
2118
  ...t
2107
2119
  });
2108
2120
  }
2109
- function Bn({ className: e, ...t }) {
2121
+ function Vn({ className: e, ...t }) {
2110
2122
  return /* @__PURE__ */ X("div", {
2111
2123
  "data-slot": "card-footer",
2112
2124
  className: Q("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3", e),
@@ -2115,7 +2127,7 @@ function Bn({ className: e, ...t }) {
2115
2127
  }
2116
2128
  //#endregion
2117
2129
  //#region src/components/custom/sensor-card.tsx
2118
- var Vn = {
2130
+ var Hn = {
2119
2131
  primary: {
2120
2132
  text: "text-primary",
2121
2133
  bg: "bg-primary"
@@ -2133,8 +2145,8 @@ var Vn = {
2133
2145
  bg: "bg-muted-foreground"
2134
2146
  }
2135
2147
  };
2136
- function Hn({ 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 }) {
2137
- let h = Vn[a], g = Vn[o ?? a], _ = s ? Vn[s].text : "text-foreground", v = u ? "size-10" : "size-5", y = e ?? (t?.toLowerCase() === "auto" ? /* @__PURE__ */ X(se, { className: Q(v, h.text) }) : /* @__PURE__ */ X(T, { className: Q(v, h.text) })), b = /* @__PURE__ */ Z(Y, { children: [u ? /* @__PURE__ */ Z("div", {
2148
+ function Un({ 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 }) {
2149
+ let h = Hn[a], g = Hn[o ?? a], _ = s ? Hn[s].text : "text-foreground", v = u ? "size-10" : "size-5", y = e ?? (t?.toLowerCase() === "auto" ? /* @__PURE__ */ X(ce, { className: Q(v, h.text) }) : /* @__PURE__ */ X(T, { className: Q(v, h.text) })), b = /* @__PURE__ */ Z(Y, { children: [u ? /* @__PURE__ */ Z("div", {
2138
2150
  className: "flex items-center gap-3",
2139
2151
  children: [y, /* @__PURE__ */ Z("div", {
2140
2152
  className: "flex flex-col",
@@ -2176,7 +2188,7 @@ function Hn({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
2176
2188
  children: c && r !== "" && !isNaN(Number(r)) ? `${r}%` : r
2177
2189
  })]
2178
2190
  })] }), 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);
2179
- return d === "standalone" ? /* @__PURE__ */ X(Pn, {
2191
+ return d === "standalone" ? /* @__PURE__ */ X(Fn, {
2180
2192
  className: "p-0",
2181
2193
  onClick: f,
2182
2194
  children: /* @__PURE__ */ X("div", {
@@ -2191,39 +2203,39 @@ function Hn({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
2191
2203
  }
2192
2204
  //#endregion
2193
2205
  //#region src/components/ui/sheet.tsx
2194
- function Un({ ...e }) {
2206
+ function Wn({ ...e }) {
2195
2207
  return /* @__PURE__ */ X(K.Root, {
2196
2208
  "data-slot": "sheet",
2197
2209
  ...e
2198
2210
  });
2199
2211
  }
2200
- function Wn({ ...e }) {
2212
+ function Gn({ ...e }) {
2201
2213
  return /* @__PURE__ */ X(K.Trigger, {
2202
2214
  "data-slot": "sheet-trigger",
2203
2215
  ...e
2204
2216
  });
2205
2217
  }
2206
- function Gn({ ...e }) {
2218
+ function Kn({ ...e }) {
2207
2219
  return /* @__PURE__ */ X(K.Close, {
2208
2220
  "data-slot": "sheet-close",
2209
2221
  ...e
2210
2222
  });
2211
2223
  }
2212
- function Kn({ ...e }) {
2224
+ function qn({ ...e }) {
2213
2225
  return /* @__PURE__ */ X(K.Portal, {
2214
2226
  "data-slot": "sheet-portal",
2215
2227
  ...e
2216
2228
  });
2217
2229
  }
2218
- function qn({ className: e, ...t }) {
2230
+ function Jn({ className: e, ...t }) {
2219
2231
  return /* @__PURE__ */ X(K.Overlay, {
2220
2232
  "data-slot": "sheet-overlay",
2221
2233
  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),
2222
2234
  ...t
2223
2235
  });
2224
2236
  }
2225
- function Jn({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
2226
- return /* @__PURE__ */ Z(Kn, { children: [/* @__PURE__ */ X(qn, {}), /* @__PURE__ */ Z(K.Content, {
2237
+ function Yn({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
2238
+ return /* @__PURE__ */ Z(qn, { children: [/* @__PURE__ */ X(Jn, {}), /* @__PURE__ */ Z(K.Content, {
2227
2239
  "data-slot": "sheet-content",
2228
2240
  "data-side": n,
2229
2241
  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),
@@ -2235,7 +2247,7 @@ function Jn({ className: e, children: t, side: n = "right", showCloseButton: r =
2235
2247
  variant: "ghost",
2236
2248
  className: "absolute top-3 right-3",
2237
2249
  size: "icon-sm",
2238
- children: [/* @__PURE__ */ X(me, {}), /* @__PURE__ */ X("span", {
2250
+ children: [/* @__PURE__ */ X(U, {}), /* @__PURE__ */ X("span", {
2239
2251
  className: "sr-only",
2240
2252
  children: "Close"
2241
2253
  })]
@@ -2243,28 +2255,28 @@ function Jn({ className: e, children: t, side: n = "right", showCloseButton: r =
2243
2255
  })]
2244
2256
  })] });
2245
2257
  }
2246
- function Yn({ className: e, ...t }) {
2258
+ function Xn({ className: e, ...t }) {
2247
2259
  return /* @__PURE__ */ X("div", {
2248
2260
  "data-slot": "sheet-header",
2249
2261
  className: Q("flex flex-col gap-0.5 p-4", e),
2250
2262
  ...t
2251
2263
  });
2252
2264
  }
2253
- function Xn({ className: e, ...t }) {
2265
+ function Zn({ className: e, ...t }) {
2254
2266
  return /* @__PURE__ */ X("div", {
2255
2267
  "data-slot": "sheet-footer",
2256
2268
  className: Q("mt-auto flex flex-col gap-2 p-4", e),
2257
2269
  ...t
2258
2270
  });
2259
2271
  }
2260
- function Zn({ className: e, ...t }) {
2272
+ function Qn({ className: e, ...t }) {
2261
2273
  return /* @__PURE__ */ X(K.Title, {
2262
2274
  "data-slot": "sheet-title",
2263
2275
  className: Q("text-base font-medium text-foreground", e),
2264
2276
  ...t
2265
2277
  });
2266
2278
  }
2267
- function Qn({ className: e, ...t }) {
2279
+ function $n({ className: e, ...t }) {
2268
2280
  return /* @__PURE__ */ X(K.Description, {
2269
2281
  "data-slot": "sheet-description",
2270
2282
  className: Q("text-sm text-muted-foreground", e),
@@ -2273,17 +2285,17 @@ function Qn({ className: e, ...t }) {
2273
2285
  }
2274
2286
  //#endregion
2275
2287
  //#region src/components/custom/side-sheet.tsx
2276
- function $n({ children: e, title: t, open: n, onClose: r, description: i, side: a = "right", floating: o, onBack: s, notDismissable: c, footer: l, className: u }) {
2288
+ function er({ children: e, title: t, open: n, onClose: r, description: i, side: a = "right", floating: o, onBack: s, notDismissable: c, footer: l, className: u }) {
2277
2289
  let d = s !== void 0;
2278
- return /* @__PURE__ */ X(Un, {
2290
+ return /* @__PURE__ */ X(Wn, {
2279
2291
  open: n,
2280
2292
  onOpenChange: c ? void 0 : (e) => !e && r(),
2281
- children: /* @__PURE__ */ Z(Jn, {
2293
+ children: /* @__PURE__ */ Z(Yn, {
2282
2294
  side: a,
2283
2295
  showCloseButton: !1,
2284
2296
  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),
2285
2297
  children: [
2286
- /* @__PURE__ */ Z(Yn, {
2298
+ /* @__PURE__ */ Z(Xn, {
2287
2299
  className: "shrink-0 flex-row items-center gap-2 border-b border-border px-4 py-3",
2288
2300
  children: [/* @__PURE__ */ X($, {
2289
2301
  type: "button",
@@ -2294,13 +2306,13 @@ function $n({ children: e, title: t, open: n, onClose: r, description: i, side:
2294
2306
  onClick: (e) => {
2295
2307
  e.preventDefault(), e.stopPropagation(), (d ? s : r)();
2296
2308
  },
2297
- children: X(d ? y : me, {})
2309
+ children: X(d ? y : U, {})
2298
2310
  }), /* @__PURE__ */ Z("div", {
2299
2311
  className: "flex min-w-0 flex-col",
2300
- children: [/* @__PURE__ */ X(Zn, {
2312
+ children: [/* @__PURE__ */ X(Qn, {
2301
2313
  className: "truncate text-left text-lg font-semibold",
2302
2314
  children: t
2303
- }), i && /* @__PURE__ */ X(Qn, {
2315
+ }), i && /* @__PURE__ */ X($n, {
2304
2316
  className: "text-left",
2305
2317
  children: i
2306
2318
  })]
@@ -2318,7 +2330,7 @@ function $n({ children: e, title: t, open: n, onClose: r, description: i, side:
2318
2330
  })
2319
2331
  });
2320
2332
  }
2321
- function er({ label: e, action: t, className: n, children: r, ...i }) {
2333
+ function tr({ label: e, action: t, className: n, children: r, ...i }) {
2322
2334
  return /* @__PURE__ */ Z("div", {
2323
2335
  "data-slot": "side-sheet-section",
2324
2336
  ...i,
@@ -2340,7 +2352,7 @@ function er({ label: e, action: t, className: n, children: r, ...i }) {
2340
2352
  }
2341
2353
  //#endregion
2342
2354
  //#region src/components/custom/stat-card.tsx
2343
- var tr = {
2355
+ var nr = {
2344
2356
  primary: {
2345
2357
  text: "text-primary",
2346
2358
  bg: "bg-primary",
@@ -2367,7 +2379,7 @@ var tr = {
2367
2379
  soft: "bg-muted"
2368
2380
  }
2369
2381
  };
2370
- function nr({ data: e, colorVar: t }) {
2382
+ function rr({ data: e, colorVar: t }) {
2371
2383
  let r = n.useId().replace(/:/g, "");
2372
2384
  return /* @__PURE__ */ X("div", {
2373
2385
  className: "mt-3 h-16 w-full",
@@ -2414,11 +2426,11 @@ function nr({ data: e, colorVar: t }) {
2414
2426
  })
2415
2427
  });
2416
2428
  }
2417
- function rr({ title: e, value: t, description: n, icon: r, color: i = "primary", trend: a, progress: o, sparkline: s, ring: c, className: l }) {
2418
- let u = tr[i], d = i === "muted" ? "var(--muted-foreground)" : `var(--${ir(i)})`;
2419
- return /* @__PURE__ */ Z(Pn, {
2429
+ function ir({ title: e, value: t, description: n, icon: r, color: i = "primary", trend: a, progress: o, sparkline: s, ring: c, className: l }) {
2430
+ let u = nr[i], d = i === "muted" ? "var(--muted-foreground)" : `var(--${ar(i)})`;
2431
+ return /* @__PURE__ */ Z(Fn, {
2420
2432
  className: Q("gap-3", l),
2421
- children: [/* @__PURE__ */ Z(Fn, {
2433
+ children: [/* @__PURE__ */ Z(In, {
2422
2434
  className: "flex flex-row items-start justify-between gap-2 pb-0",
2423
2435
  children: [/* @__PURE__ */ X("span", {
2424
2436
  className: "text-sm font-medium text-muted-foreground",
@@ -2427,10 +2439,10 @@ function rr({ title: e, value: t, description: n, icon: r, color: i = "primary",
2427
2439
  className: Q("flex size-9 shrink-0 items-center justify-center rounded-md", u.soft, u.text, "[&_svg]:size-4"),
2428
2440
  children: r
2429
2441
  })]
2430
- }), /* @__PURE__ */ Z(zn, { children: [
2442
+ }), /* @__PURE__ */ Z(Bn, { children: [
2431
2443
  c ? /* @__PURE__ */ Z("div", {
2432
2444
  className: "mt-1 flex items-center gap-4",
2433
- children: [/* @__PURE__ */ X(ar, {
2445
+ children: [/* @__PURE__ */ X(or, {
2434
2446
  ring: c,
2435
2447
  colors: u
2436
2448
  }), /* @__PURE__ */ Z("div", {
@@ -2451,7 +2463,7 @@ function rr({ title: e, value: t, description: n, icon: r, color: i = "primary",
2451
2463
  className: "mt-1 flex items-center gap-1 text-sm text-muted-foreground",
2452
2464
  children: [/* @__PURE__ */ Z("span", {
2453
2465
  className: Q("flex items-center gap-1 font-medium", a.direction === "down" ? "text-red" : "text-green"),
2454
- children: [a.direction === "down" ? /* @__PURE__ */ X(le, { className: "size-4" }) : /* @__PURE__ */ X(ue, { className: "size-4" }), a.value]
2466
+ children: [a.direction === "down" ? /* @__PURE__ */ X(ue, { className: "size-4" }) : /* @__PURE__ */ X(de, { className: "size-4" }), a.value]
2455
2467
  }), a.label]
2456
2468
  }) : n && !c ? /* @__PURE__ */ X("p", {
2457
2469
  className: "mt-1 text-sm text-muted-foreground",
@@ -2470,14 +2482,14 @@ function rr({ title: e, value: t, description: n, icon: r, color: i = "primary",
2470
2482
  children: [/* @__PURE__ */ X("span", { children: o.caption }), /* @__PURE__ */ X("span", { children: o.target })]
2471
2483
  })]
2472
2484
  }),
2473
- s && s.length > 1 && /* @__PURE__ */ X(nr, {
2485
+ s && s.length > 1 && /* @__PURE__ */ X(rr, {
2474
2486
  data: s,
2475
2487
  colorVar: d
2476
2488
  })
2477
2489
  ] })]
2478
2490
  });
2479
2491
  }
2480
- function ir(e) {
2492
+ function ar(e) {
2481
2493
  switch (e) {
2482
2494
  case "primary": return "primary";
2483
2495
  case "success": return "green";
@@ -2486,7 +2498,7 @@ function ir(e) {
2486
2498
  default: return "muted-foreground";
2487
2499
  }
2488
2500
  }
2489
- function ar({ ring: e, colors: t }) {
2501
+ function or({ ring: e, colors: t }) {
2490
2502
  let n = Math.max(0, Math.min(100, e.value)), r = 2 * Math.PI * 34;
2491
2503
  return /* @__PURE__ */ Z("div", {
2492
2504
  className: "relative size-20 shrink-0",
@@ -2519,8 +2531,132 @@ function ar({ ring: e, colors: t }) {
2519
2531
  });
2520
2532
  }
2521
2533
  //#endregion
2534
+ //#region src/components/custom/status-list.tsx
2535
+ var sr = {
2536
+ neutral: {
2537
+ text: "text-muted-foreground",
2538
+ pill: "border-transparent bg-muted text-muted-foreground",
2539
+ outline: "border-border text-foreground",
2540
+ softBox: "bg-muted text-muted-foreground",
2541
+ activeBg: "bg-muted/50 ring-border",
2542
+ avatar: "bg-muted text-foreground"
2543
+ },
2544
+ primary: {
2545
+ text: "text-primary",
2546
+ pill: "border-transparent bg-primary/10 text-primary",
2547
+ outline: "border-primary/30 text-primary",
2548
+ softBox: "bg-primary/10 text-primary",
2549
+ activeBg: "bg-primary/5 ring-primary/30",
2550
+ avatar: "bg-primary/15 text-primary"
2551
+ },
2552
+ success: {
2553
+ text: "text-green",
2554
+ pill: "border-transparent bg-green/10 text-green",
2555
+ outline: "border-green/30 text-green",
2556
+ softBox: "bg-green/10 text-green",
2557
+ activeBg: "bg-green/5 ring-green/30",
2558
+ avatar: "bg-green/15 text-green"
2559
+ },
2560
+ warning: {
2561
+ text: "text-orange",
2562
+ pill: "border-transparent bg-orange/10 text-orange",
2563
+ outline: "border-orange/30 text-orange",
2564
+ softBox: "bg-orange/10 text-orange",
2565
+ activeBg: "bg-orange/5 ring-orange/30",
2566
+ avatar: "bg-orange/15 text-orange"
2567
+ },
2568
+ danger: {
2569
+ text: "text-red",
2570
+ pill: "border-transparent bg-red/10 text-red",
2571
+ outline: "border-red/30 text-red",
2572
+ softBox: "bg-red/10 text-red",
2573
+ activeBg: "bg-red/5 ring-red/30",
2574
+ avatar: "bg-red/15 text-red"
2575
+ }
2576
+ };
2577
+ function cr({ tone: e = "neutral", className: t, children: n }) {
2578
+ return /* @__PURE__ */ X("span", {
2579
+ className: Q("flex size-9 shrink-0 items-center justify-center rounded-lg [&_svg]:size-5", sr[e].softBox, t),
2580
+ children: n
2581
+ });
2582
+ }
2583
+ function lr({ src: e, name: t, tone: n = "primary", className: r }) {
2584
+ let i = t.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
2585
+ return /* @__PURE__ */ X("span", {
2586
+ className: Q("flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs font-semibold", sr[n].avatar, r),
2587
+ children: e ? /* @__PURE__ */ X("img", {
2588
+ src: e,
2589
+ alt: t,
2590
+ className: "size-full object-cover"
2591
+ }) : i
2592
+ });
2593
+ }
2594
+ function ur({ className: e, ...t }) {
2595
+ return /* @__PURE__ */ X("div", {
2596
+ "data-slot": "status-list",
2597
+ className: Q("flex flex-col gap-2", e),
2598
+ ...t
2599
+ });
2600
+ }
2601
+ function dr({ label: e, count: t, className: n, children: r, ...i }) {
2602
+ return /* @__PURE__ */ Z("div", {
2603
+ "data-slot": "status-list-group",
2604
+ className: n,
2605
+ ...i,
2606
+ children: [/* @__PURE__ */ Z("p", {
2607
+ className: "mb-2 px-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase",
2608
+ children: [e, t != null && /* @__PURE__ */ Z("span", {
2609
+ className: "ml-1 text-muted-foreground/70",
2610
+ children: [
2611
+ "(",
2612
+ t,
2613
+ ")"
2614
+ ]
2615
+ })]
2616
+ }), /* @__PURE__ */ X("div", {
2617
+ className: "flex flex-col gap-2",
2618
+ children: r
2619
+ })]
2620
+ });
2621
+ }
2622
+ function fr({ media: e, title: t, description: n, status: r, statusVariant: i = "pill", hint: a, tone: o = "neutral", active: s = !1, className: c, ...l }) {
2623
+ let u = sr[o];
2624
+ return /* @__PURE__ */ Z("div", {
2625
+ "data-slot": "status-list-item",
2626
+ className: Q("flex items-center gap-3 rounded-lg border p-3", s ? Q("border-transparent ring-1", u.activeBg) : "bg-card", c),
2627
+ ...l,
2628
+ children: [
2629
+ e,
2630
+ /* @__PURE__ */ Z("div", {
2631
+ className: "min-w-0 flex-1",
2632
+ children: [/* @__PURE__ */ X("p", {
2633
+ className: "truncate text-sm font-medium",
2634
+ children: t
2635
+ }), n != null && /* @__PURE__ */ X("p", {
2636
+ className: "truncate text-xs text-muted-foreground",
2637
+ children: n
2638
+ })]
2639
+ }),
2640
+ /* @__PURE__ */ Z("div", {
2641
+ className: "flex shrink-0 items-center gap-2",
2642
+ children: [a != null && /* @__PURE__ */ X("span", {
2643
+ className: Q("text-xs font-medium", u.text),
2644
+ children: a
2645
+ }), r != null && (i === "text" ? /* @__PURE__ */ X("span", {
2646
+ className: Q("text-sm font-medium", u.text),
2647
+ children: r
2648
+ }) : /* @__PURE__ */ X(On, {
2649
+ variant: "outline",
2650
+ className: Q("font-medium", i === "outline" ? u.outline : u.pill),
2651
+ children: r
2652
+ }))]
2653
+ })
2654
+ ]
2655
+ });
2656
+ }
2657
+ //#endregion
2522
2658
  //#region src/components/ui/calendar.tsx
2523
- function or({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: a, formatters: o, components: s, ...c }) {
2659
+ function pr({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: a, formatters: o, components: s, ...c }) {
2524
2660
  let l = Fe();
2525
2661
  return /* @__PURE__ */ X(Pe, {
2526
2662
  showOutsideDays: n,
@@ -2570,7 +2706,7 @@ function or({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
2570
2706
  className: Q("size-4", e),
2571
2707
  ...n
2572
2708
  }),
2573
- DayButton: ({ ...e }) => /* @__PURE__ */ X(sr, {
2709
+ DayButton: ({ ...e }) => /* @__PURE__ */ X(mr, {
2574
2710
  locale: a,
2575
2711
  ...e
2576
2712
  }),
@@ -2586,7 +2722,7 @@ function or({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
2586
2722
  ...c
2587
2723
  });
2588
2724
  }
2589
- function sr({ className: e, day: t, modifiers: r, locale: i, ...a }) {
2725
+ function mr({ className: e, day: t, modifiers: r, locale: i, ...a }) {
2590
2726
  let o = Fe(), s = n.useRef(null);
2591
2727
  return n.useEffect(() => {
2592
2728
  r.focused && s.current?.focus();
@@ -2605,10 +2741,10 @@ function sr({ className: e, day: t, modifiers: r, locale: i, ...a }) {
2605
2741
  }
2606
2742
  //#endregion
2607
2743
  //#region src/components/custom/date-time-range-picker-utils.ts
2608
- function cr(e) {
2744
+ function hr(e) {
2609
2745
  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`;
2610
2746
  }
2611
- function lr(e, t) {
2747
+ function gr(e, t) {
2612
2748
  if (!e) return null;
2613
2749
  let n = new Date(e);
2614
2750
  if (isNaN(n.getTime())) return null;
@@ -2631,7 +2767,7 @@ function lr(e, t) {
2631
2767
  s: i("second").padStart(2, "0")
2632
2768
  };
2633
2769
  }
2634
- function ur(e, t, n, r, i, a, o) {
2770
+ function _r(e, t, n, r, i, a, o) {
2635
2771
  let s = Date.UTC(e, t, n, parseInt(r), parseInt(i), parseInt(a)), c = new Date(s), l = new Intl.DateTimeFormat("en-US", {
2636
2772
  year: "numeric",
2637
2773
  month: "2-digit",
@@ -2642,9 +2778,9 @@ function ur(e, t, n, r, i, a, o) {
2642
2778
  hour12: !1,
2643
2779
  timeZone: o
2644
2780
  }).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;
2645
- return cr(new Date(s - d));
2781
+ return hr(new Date(s - d));
2646
2782
  }
2647
- var dr = [
2783
+ var vr = [
2648
2784
  {
2649
2785
  value: "hour",
2650
2786
  label: "Hour"
@@ -2662,8 +2798,8 @@ var dr = [
2662
2798
  label: "Month"
2663
2799
  }
2664
2800
  ];
2665
- function fr(e) {
2666
- let t = /* @__PURE__ */ new Date(), n = cr(t), r = new Date(t);
2801
+ function yr(e) {
2802
+ let t = /* @__PURE__ */ new Date(), n = hr(t), r = new Date(t);
2667
2803
  switch (e) {
2668
2804
  case "hour":
2669
2805
  r.setUTCHours(r.getUTCHours() - 1);
@@ -2679,20 +2815,20 @@ function fr(e) {
2679
2815
  break;
2680
2816
  }
2681
2817
  return {
2682
- from: cr(r),
2818
+ from: hr(r),
2683
2819
  to: n
2684
2820
  };
2685
2821
  }
2686
- function pr(e, t) {
2822
+ function br(e, t) {
2687
2823
  let n = new Date(e.from).getTime(), r = new Date(e.to).getTime(), i = r - n, a = t === "prev" ? -i : i;
2688
2824
  return {
2689
2825
  preset: e.preset,
2690
- from: cr(new Date(n + a)),
2691
- to: cr(new Date(r + a))
2826
+ from: hr(new Date(n + a)),
2827
+ to: hr(new Date(r + a))
2692
2828
  };
2693
2829
  }
2694
- function mr(e, t) {
2695
- if (e.preset) return dr.find((t) => t.value === e.preset)?.label ?? e.preset;
2830
+ function xr(e, t) {
2831
+ if (e.preset) return vr.find((t) => t.value === e.preset)?.label ?? e.preset;
2696
2832
  if (e.from && e.to) {
2697
2833
  let n = (e) => new Date(e).toLocaleString("en-US", {
2698
2834
  year: "numeric",
@@ -2709,7 +2845,7 @@ function mr(e, t) {
2709
2845
  }
2710
2846
  //#endregion
2711
2847
  //#region src/components/custom/date-time-range-picker.tsx
2712
- function hr({ value: e, max: t, onChange: r }) {
2848
+ function Sr({ value: e, max: t, onChange: r }) {
2713
2849
  let [i, a] = n.useState(e);
2714
2850
  n.useEffect(() => {
2715
2851
  a(e);
@@ -2734,13 +2870,13 @@ function hr({ value: e, max: t, onChange: r }) {
2734
2870
  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")
2735
2871
  });
2736
2872
  }
2737
- function gr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date & time", timezone: a, minDate: o, maxDate: s }) {
2738
- let [c, l] = n.useState(!1), u = a || "UTC", d = lr(e, u), [f, p] = n.useState(d?.h ?? "00"), [h, g] = n.useState(d?.m ?? "00"), [_, v] = n.useState(d?.s ?? "00");
2873
+ function Cr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date & time", timezone: a, minDate: o, maxDate: s }) {
2874
+ let [c, l] = n.useState(!1), u = a || "UTC", d = gr(e, u), [f, p] = n.useState(d?.h ?? "00"), [h, g] = n.useState(d?.m ?? "00"), [_, v] = n.useState(d?.s ?? "00");
2739
2875
  n.useEffect(() => {
2740
- let t = lr(e, u);
2876
+ let t = gr(e, u);
2741
2877
  p(t?.h ?? "00"), g(t?.m ?? "00"), v(t?.s ?? "00");
2742
2878
  }, [e, u]);
2743
- let y = d ? new Date(d.year, d.month, d.day) : void 0, b = (e, n, r, i, a, o) => t(ur(e, n, r, i, a, o, u)), x = (e) => {
2879
+ let y = d ? new Date(d.year, d.month, d.day) : void 0, b = (e, n, r, i, a, o) => t(_r(e, n, r, i, a, o, u)), x = (e) => {
2744
2880
  e && b(e.getFullYear(), e.getMonth(), e.getDate(), f, h, _);
2745
2881
  }, S = (e, t) => {
2746
2882
  let n = e === "h" ? t : f, r = e === "m" ? t : h, i = e === "s" ? t : _;
@@ -2788,7 +2924,7 @@ function gr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date
2788
2924
  className: "w-auto p-0",
2789
2925
  align: "start",
2790
2926
  sideOffset: 4,
2791
- children: [/* @__PURE__ */ X(or, {
2927
+ children: [/* @__PURE__ */ X(pr, {
2792
2928
  mode: "single",
2793
2929
  selected: y,
2794
2930
  onSelect: x,
@@ -2799,7 +2935,7 @@ function gr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date
2799
2935
  className: "flex items-center gap-2 border-t px-3 py-2.5",
2800
2936
  children: [
2801
2937
  /* @__PURE__ */ X(E, { className: "size-4 shrink-0 text-muted-foreground" }),
2802
- /* @__PURE__ */ X(hr, {
2938
+ /* @__PURE__ */ X(Sr, {
2803
2939
  value: f,
2804
2940
  max: 23,
2805
2941
  onChange: (e) => S("h", e)
@@ -2808,7 +2944,7 @@ function gr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date
2808
2944
  className: "text-sm font-medium text-muted-foreground",
2809
2945
  children: ":"
2810
2946
  }),
2811
- /* @__PURE__ */ X(hr, {
2947
+ /* @__PURE__ */ X(Sr, {
2812
2948
  value: h,
2813
2949
  max: 59,
2814
2950
  onChange: (e) => S("m", e)
@@ -2817,7 +2953,7 @@ function gr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date
2817
2953
  className: "text-sm font-medium text-muted-foreground",
2818
2954
  children: ":"
2819
2955
  }),
2820
- /* @__PURE__ */ X(hr, {
2956
+ /* @__PURE__ */ X(Sr, {
2821
2957
  value: _,
2822
2958
  max: 59,
2823
2959
  onChange: (e) => S("s", e)
@@ -2828,8 +2964,8 @@ function gr({ isoValue: e, onChange: t, label: r, placeholder: i = "Select date
2828
2964
  })]
2829
2965
  });
2830
2966
  }
2831
- var _r = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o }, s) {
2832
- let c = a ?? dr, [l, u] = n.useState(!1), [d, f] = n.useState(e.from), [p, h] = n.useState(e.to);
2967
+ var wr = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o }, s) {
2968
+ let c = a ?? vr, [l, u] = n.useState(!1), [d, f] = n.useState(e.from), [p, h] = n.useState(e.to);
2833
2969
  n.useEffect(() => {
2834
2970
  f(e.from), h(e.to);
2835
2971
  }, [e]);
@@ -2841,7 +2977,7 @@ var _r = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
2841
2977
  }, v = (e) => {
2842
2978
  t({
2843
2979
  preset: e,
2844
- ...fr(e)
2980
+ ...yr(e)
2845
2981
  }), u(!1);
2846
2982
  };
2847
2983
  return /* @__PURE__ */ Z(nn, {
@@ -2857,7 +2993,7 @@ var _r = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
2857
2993
  /* @__PURE__ */ X(m, { className: "size-3.5 shrink-0 opacity-60" }),
2858
2994
  /* @__PURE__ */ X("span", {
2859
2995
  className: "truncate",
2860
- children: mr(e, i)
2996
+ children: xr(e, i)
2861
2997
  }),
2862
2998
  /* @__PURE__ */ X(_, { className: Q("size-3.5 shrink-0 opacity-60 transition-transform", l && "rotate-180") })
2863
2999
  ]
@@ -2890,7 +3026,7 @@ var _r = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
2890
3026
  className: "px-0.5 text-sm text-muted-foreground",
2891
3027
  children: "Custom range"
2892
3028
  }),
2893
- /* @__PURE__ */ X(gr, {
3029
+ /* @__PURE__ */ X(Cr, {
2894
3030
  isoValue: d,
2895
3031
  onChange: g,
2896
3032
  label: "From",
@@ -2898,7 +3034,7 @@ var _r = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
2898
3034
  timezone: i,
2899
3035
  maxDate: (/* @__PURE__ */ new Date()).toISOString()
2900
3036
  }),
2901
- /* @__PURE__ */ X(gr, {
3037
+ /* @__PURE__ */ X(Cr, {
2902
3038
  isoValue: p,
2903
3039
  onChange: h,
2904
3040
  label: "To",
@@ -2933,36 +3069,36 @@ var _r = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
2933
3069
  })
2934
3070
  })]
2935
3071
  });
2936
- }), vr = 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", {
3072
+ }), Tr = 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", {
2937
3073
  variants: { variant: {
2938
3074
  default: "bg-card text-card-foreground",
2939
3075
  destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
2940
3076
  } },
2941
3077
  defaultVariants: { variant: "default" }
2942
3078
  });
2943
- function yr({ className: e, variant: t, ...n }) {
3079
+ function Er({ className: e, variant: t, ...n }) {
2944
3080
  return /* @__PURE__ */ X("div", {
2945
3081
  "data-slot": "alert",
2946
3082
  role: "alert",
2947
- className: Q(vr({ variant: t }), e),
3083
+ className: Q(Tr({ variant: t }), e),
2948
3084
  ...n
2949
3085
  });
2950
3086
  }
2951
- function br({ className: e, ...t }) {
3087
+ function Dr({ className: e, ...t }) {
2952
3088
  return /* @__PURE__ */ X("div", {
2953
3089
  "data-slot": "alert-title",
2954
3090
  className: Q("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
2955
3091
  ...t
2956
3092
  });
2957
3093
  }
2958
- function xr({ className: e, ...t }) {
3094
+ function Or({ className: e, ...t }) {
2959
3095
  return /* @__PURE__ */ X("div", {
2960
3096
  "data-slot": "alert-description",
2961
3097
  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),
2962
3098
  ...t
2963
3099
  });
2964
3100
  }
2965
- function Sr({ className: e, ...t }) {
3101
+ function kr({ className: e, ...t }) {
2966
3102
  return /* @__PURE__ */ X("div", {
2967
3103
  "data-slot": "alert-action",
2968
3104
  className: Q("absolute top-2 right-2", e),
@@ -2971,75 +3107,75 @@ function Sr({ className: e, ...t }) {
2971
3107
  }
2972
3108
  //#endregion
2973
3109
  //#region src/components/ui/alert-dialog.tsx
2974
- function Cr({ ...e }) {
3110
+ function Ar({ ...e }) {
2975
3111
  return /* @__PURE__ */ X(G.Root, {
2976
3112
  "data-slot": "alert-dialog",
2977
3113
  ...e
2978
3114
  });
2979
3115
  }
2980
- function wr({ ...e }) {
3116
+ function jr({ ...e }) {
2981
3117
  return /* @__PURE__ */ X(G.Trigger, {
2982
3118
  "data-slot": "alert-dialog-trigger",
2983
3119
  ...e
2984
3120
  });
2985
3121
  }
2986
- function Tr({ ...e }) {
3122
+ function Mr({ ...e }) {
2987
3123
  return /* @__PURE__ */ X(G.Portal, {
2988
3124
  "data-slot": "alert-dialog-portal",
2989
3125
  ...e
2990
3126
  });
2991
3127
  }
2992
- function Er({ className: e, ...t }) {
3128
+ function Nr({ className: e, ...t }) {
2993
3129
  return /* @__PURE__ */ X(G.Overlay, {
2994
3130
  "data-slot": "alert-dialog-overlay",
2995
3131
  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),
2996
3132
  ...t
2997
3133
  });
2998
3134
  }
2999
- function Dr({ className: e, size: t = "default", ...n }) {
3000
- return /* @__PURE__ */ Z(Tr, { children: [/* @__PURE__ */ X(Er, {}), /* @__PURE__ */ X(G.Content, {
3135
+ function Pr({ className: e, size: t = "default", ...n }) {
3136
+ return /* @__PURE__ */ Z(Mr, { children: [/* @__PURE__ */ X(Nr, {}), /* @__PURE__ */ X(G.Content, {
3001
3137
  "data-slot": "alert-dialog-content",
3002
3138
  "data-size": t,
3003
3139
  className: Q("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
3004
3140
  ...n
3005
3141
  })] });
3006
3142
  }
3007
- function Or({ className: e, ...t }) {
3143
+ function Fr({ className: e, ...t }) {
3008
3144
  return /* @__PURE__ */ X("div", {
3009
3145
  "data-slot": "alert-dialog-header",
3010
3146
  className: Q("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
3011
3147
  ...t
3012
3148
  });
3013
3149
  }
3014
- function kr({ className: e, ...t }) {
3150
+ function Ir({ className: e, ...t }) {
3015
3151
  return /* @__PURE__ */ X("div", {
3016
3152
  "data-slot": "alert-dialog-footer",
3017
3153
  className: Q("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
3018
3154
  ...t
3019
3155
  });
3020
3156
  }
3021
- function Ar({ className: e, ...t }) {
3157
+ function Lr({ className: e, ...t }) {
3022
3158
  return /* @__PURE__ */ X("div", {
3023
3159
  "data-slot": "alert-dialog-media",
3024
3160
  className: Q("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", e),
3025
3161
  ...t
3026
3162
  });
3027
3163
  }
3028
- function jr({ className: e, ...t }) {
3164
+ function Rr({ className: e, ...t }) {
3029
3165
  return /* @__PURE__ */ X(G.Title, {
3030
3166
  "data-slot": "alert-dialog-title",
3031
3167
  className: Q("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
3032
3168
  ...t
3033
3169
  });
3034
3170
  }
3035
- function Mr({ className: e, ...t }) {
3171
+ function zr({ className: e, ...t }) {
3036
3172
  return /* @__PURE__ */ X(G.Description, {
3037
3173
  "data-slot": "alert-dialog-description",
3038
3174
  className: Q("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
3039
3175
  ...t
3040
3176
  });
3041
3177
  }
3042
- function Nr({ className: e, variant: t = "default", size: n = "default", ...r }) {
3178
+ function Br({ className: e, variant: t = "default", size: n = "default", ...r }) {
3043
3179
  return /* @__PURE__ */ X($, {
3044
3180
  variant: t,
3045
3181
  size: n,
@@ -3051,7 +3187,7 @@ function Nr({ className: e, variant: t = "default", size: n = "default", ...r })
3051
3187
  })
3052
3188
  });
3053
3189
  }
3054
- function Pr({ className: e, variant: t = "outline", size: n = "default", ...r }) {
3190
+ function Vr({ className: e, variant: t = "outline", size: n = "default", ...r }) {
3055
3191
  return /* @__PURE__ */ X($, {
3056
3192
  variant: t,
3057
3193
  size: n,
@@ -3065,29 +3201,29 @@ function Pr({ className: e, variant: t = "outline", size: n = "default", ...r })
3065
3201
  }
3066
3202
  //#endregion
3067
3203
  //#region src/components/ui/button-group.tsx
3068
- var Fr = 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", {
3204
+ var Hr = 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", {
3069
3205
  variants: { orientation: {
3070
3206
  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!",
3071
3207
  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!"
3072
3208
  } },
3073
3209
  defaultVariants: { orientation: "horizontal" }
3074
3210
  });
3075
- function Ir({ className: e, orientation: t, ...n }) {
3211
+ function Ur({ className: e, orientation: t, ...n }) {
3076
3212
  return /* @__PURE__ */ X("div", {
3077
3213
  role: "group",
3078
3214
  "data-slot": "button-group",
3079
3215
  "data-orientation": t,
3080
- className: Q(Fr({ orientation: t }), e),
3216
+ className: Q(Hr({ orientation: t }), e),
3081
3217
  ...n
3082
3218
  });
3083
3219
  }
3084
- function Lr({ className: e, asChild: t = !1, ...n }) {
3220
+ function Wr({ className: e, asChild: t = !1, ...n }) {
3085
3221
  return /* @__PURE__ */ X(t ? Ce.Root : "div", {
3086
3222
  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),
3087
3223
  ...n
3088
3224
  });
3089
3225
  }
3090
- function Rr({ className: e, orientation: t = "vertical", ...n }) {
3226
+ function Gr({ className: e, orientation: t = "vertical", ...n }) {
3091
3227
  return /* @__PURE__ */ X(lt, {
3092
3228
  "data-slot": "button-group-separator",
3093
3229
  orientation: t,
@@ -3097,28 +3233,28 @@ function Rr({ className: e, orientation: t = "vertical", ...n }) {
3097
3233
  }
3098
3234
  //#endregion
3099
3235
  //#region src/components/ui/chart.tsx
3100
- var zr = {
3236
+ var Kr = {
3101
3237
  light: "",
3102
3238
  dark: ".dark"
3103
- }, Br = {
3239
+ }, qr = {
3104
3240
  width: 320,
3105
3241
  height: 200
3106
- }, Vr = n.createContext(null);
3107
- function Hr() {
3108
- let e = n.useContext(Vr);
3242
+ }, Jr = n.createContext(null);
3243
+ function Yr() {
3244
+ let e = n.useContext(Jr);
3109
3245
  if (!e) throw Error("useChart must be used within a <ChartContainer />");
3110
3246
  return e;
3111
3247
  }
3112
- function Ur({ id: e, className: t, children: r, config: i, initialDimension: a = Br, ...o }) {
3248
+ function Xr({ id: e, className: t, children: r, config: i, initialDimension: a = qr, ...o }) {
3113
3249
  let s = n.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
3114
- return /* @__PURE__ */ X(Vr.Provider, {
3250
+ return /* @__PURE__ */ X(Jr.Provider, {
3115
3251
  value: { config: i },
3116
3252
  children: /* @__PURE__ */ Z("div", {
3117
3253
  "data-slot": "chart",
3118
3254
  "data-chart": c,
3119
3255
  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),
3120
3256
  ...o,
3121
- children: [/* @__PURE__ */ X(Wr, {
3257
+ children: [/* @__PURE__ */ X(Zr, {
3122
3258
  id: c,
3123
3259
  config: i
3124
3260
  }), /* @__PURE__ */ X(Ae.ResponsiveContainer, {
@@ -3128,9 +3264,9 @@ function Ur({ id: e, className: t, children: r, config: i, initialDimension: a =
3128
3264
  })
3129
3265
  });
3130
3266
  }
3131
- var Wr = ({ id: e, config: t }) => {
3267
+ var Zr = ({ id: e, config: t }) => {
3132
3268
  let n = Object.entries(t).filter(([, e]) => e.theme ?? e.color);
3133
- return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(zr).map(([t, r]) => `
3269
+ return n.length ? /* @__PURE__ */ X("style", { dangerouslySetInnerHTML: { __html: Object.entries(Kr).map(([t, r]) => `
3134
3270
  ${r} [data-chart=${e}] {
3135
3271
  ${n.map(([e, n]) => {
3136
3272
  let r = n.theme?.[t] ?? n.color;
@@ -3138,11 +3274,11 @@ ${n.map(([e, n]) => {
3138
3274
  }).join("\n")}
3139
3275
  }
3140
3276
  `).join("\n") } }) : null;
3141
- }, Gr = Ae.Tooltip;
3142
- function Kr({ 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 }) {
3143
- let { config: m } = Hr(), h = n.useMemo(() => {
3277
+ }, Qr = Ae.Tooltip;
3278
+ function $r({ 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 }) {
3279
+ let { config: m } = Yr(), h = n.useMemo(() => {
3144
3280
  if (a || !t?.length) return null;
3145
- let [e] = t, n = Yr(m, e, `${p ?? e?.dataKey ?? e?.name ?? "value"}`), r = !p && typeof s == "string" ? m[s]?.label ?? s : n?.label;
3281
+ let [e] = t, n = ni(m, e, `${p ?? e?.dataKey ?? e?.name ?? "value"}`), r = !p && typeof s == "string" ? m[s]?.label ?? s : n?.label;
3146
3282
  return c ? /* @__PURE__ */ X("div", {
3147
3283
  className: Q("font-medium", l),
3148
3284
  children: c(r, t)
@@ -3166,7 +3302,7 @@ function Kr({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
3166
3302
  children: [g ? null : h, /* @__PURE__ */ X("div", {
3167
3303
  className: "grid gap-1.5",
3168
3304
  children: t.filter((e) => e.type !== "none").map((e, t) => {
3169
- let n = Yr(m, e, `${f ?? e.name ?? e.dataKey ?? "value"}`), r = d ?? e.payload?.fill ?? e.color;
3305
+ let n = ni(m, e, `${f ?? e.name ?? e.dataKey ?? "value"}`), r = d ?? e.payload?.fill ?? e.color;
3170
3306
  return /* @__PURE__ */ X("div", {
3171
3307
  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"),
3172
3308
  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", {
@@ -3198,13 +3334,13 @@ function Kr({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
3198
3334
  })]
3199
3335
  });
3200
3336
  }
3201
- var qr = Ae.Legend;
3202
- function Jr({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
3203
- let { config: a } = Hr();
3337
+ var ei = Ae.Legend;
3338
+ function ti({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
3339
+ let { config: a } = Yr();
3204
3340
  return n?.length ? /* @__PURE__ */ X("div", {
3205
3341
  className: Q("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
3206
3342
  children: n.filter((e) => e.type !== "none").map((e, n) => {
3207
- let r = Yr(a, e, `${i ?? e.dataKey ?? "value"}`);
3343
+ let r = ni(a, e, `${i ?? e.dataKey ?? "value"}`);
3208
3344
  return /* @__PURE__ */ Z("div", {
3209
3345
  className: Q("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
3210
3346
  children: [r?.icon && !t ? /* @__PURE__ */ X(r.icon, {}) : /* @__PURE__ */ X("div", {
@@ -3215,26 +3351,26 @@ function Jr({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bo
3215
3351
  })
3216
3352
  }) : null;
3217
3353
  }
3218
- function Yr(e, t, n) {
3354
+ function ni(e, t, n) {
3219
3355
  if (typeof t != "object" || !t) return;
3220
3356
  let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
3221
3357
  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];
3222
3358
  }
3223
3359
  //#endregion
3224
3360
  //#region src/components/ui/hover-card.tsx
3225
- function Xr({ ...e }) {
3361
+ function ri({ ...e }) {
3226
3362
  return /* @__PURE__ */ X(ge.Root, {
3227
3363
  "data-slot": "hover-card",
3228
3364
  ...e
3229
3365
  });
3230
3366
  }
3231
- function Zr({ ...e }) {
3367
+ function ii({ ...e }) {
3232
3368
  return /* @__PURE__ */ X(ge.Trigger, {
3233
3369
  "data-slot": "hover-card-trigger",
3234
3370
  ...e
3235
3371
  });
3236
3372
  }
3237
- function Qr({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
3373
+ function ai({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
3238
3374
  return /* @__PURE__ */ X(ge.Portal, {
3239
3375
  "data-slot": "hover-card-portal",
3240
3376
  children: /* @__PURE__ */ X(ge.Content, {
@@ -3248,7 +3384,7 @@ function Qr({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
3248
3384
  }
3249
3385
  //#endregion
3250
3386
  //#region src/components/ui/item.tsx
3251
- function $r({ className: e, ...t }) {
3387
+ function oi({ className: e, ...t }) {
3252
3388
  return /* @__PURE__ */ X("div", {
3253
3389
  role: "list",
3254
3390
  "data-slot": "item-group",
@@ -3256,7 +3392,7 @@ function $r({ className: e, ...t }) {
3256
3392
  ...t
3257
3393
  });
3258
3394
  }
3259
- function ei({ className: e, ...t }) {
3395
+ function si({ className: e, ...t }) {
3260
3396
  return /* @__PURE__ */ X(lt, {
3261
3397
  "data-slot": "item-separator",
3262
3398
  orientation: "horizontal",
@@ -3264,7 +3400,7 @@ function ei({ className: e, ...t }) {
3264
3400
  ...t
3265
3401
  });
3266
3402
  }
3267
- var ti = 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", {
3403
+ var ci = 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", {
3268
3404
  variants: {
3269
3405
  variant: {
3270
3406
  default: "border-transparent",
@@ -3282,12 +3418,12 @@ var ti = W("group/item flex w-full flex-wrap items-center rounded-lg border text
3282
3418
  size: "default"
3283
3419
  }
3284
3420
  });
3285
- function ni({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
3421
+ function li({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
3286
3422
  return /* @__PURE__ */ X(r ? Ce.Root : "div", {
3287
3423
  "data-slot": "item",
3288
3424
  "data-variant": t,
3289
3425
  "data-size": n,
3290
- className: Q(ti({
3426
+ className: Q(ci({
3291
3427
  variant: t,
3292
3428
  size: n,
3293
3429
  className: e
@@ -3295,7 +3431,7 @@ function ni({ className: e, variant: t = "default", size: n = "default", asChild
3295
3431
  ...i
3296
3432
  });
3297
3433
  }
3298
- var ri = 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", {
3434
+ var ui = 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", {
3299
3435
  variants: { variant: {
3300
3436
  default: "bg-transparent",
3301
3437
  icon: "[&_svg:not([class*='size-'])]:size-4",
@@ -3303,53 +3439,53 @@ var ri = W("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot
3303
3439
  } },
3304
3440
  defaultVariants: { variant: "default" }
3305
3441
  });
3306
- function ii({ className: e, variant: t = "default", ...n }) {
3442
+ function di({ className: e, variant: t = "default", ...n }) {
3307
3443
  return /* @__PURE__ */ X("div", {
3308
3444
  "data-slot": "item-media",
3309
3445
  "data-variant": t,
3310
- className: Q(ri({
3446
+ className: Q(ui({
3311
3447
  variant: t,
3312
3448
  className: e
3313
3449
  })),
3314
3450
  ...n
3315
3451
  });
3316
3452
  }
3317
- function ai({ className: e, ...t }) {
3453
+ function fi({ className: e, ...t }) {
3318
3454
  return /* @__PURE__ */ X("div", {
3319
3455
  "data-slot": "item-content",
3320
3456
  className: Q("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", e),
3321
3457
  ...t
3322
3458
  });
3323
3459
  }
3324
- function oi({ className: e, ...t }) {
3460
+ function pi({ className: e, ...t }) {
3325
3461
  return /* @__PURE__ */ X("div", {
3326
3462
  "data-slot": "item-title",
3327
3463
  className: Q("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", e),
3328
3464
  ...t
3329
3465
  });
3330
3466
  }
3331
- function si({ className: e, ...t }) {
3467
+ function mi({ className: e, ...t }) {
3332
3468
  return /* @__PURE__ */ X("p", {
3333
3469
  "data-slot": "item-description",
3334
3470
  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),
3335
3471
  ...t
3336
3472
  });
3337
3473
  }
3338
- function ci({ className: e, ...t }) {
3474
+ function hi({ className: e, ...t }) {
3339
3475
  return /* @__PURE__ */ X("div", {
3340
3476
  "data-slot": "item-actions",
3341
3477
  className: Q("flex items-center gap-2", e),
3342
3478
  ...t
3343
3479
  });
3344
3480
  }
3345
- function li({ className: e, ...t }) {
3481
+ function gi({ className: e, ...t }) {
3346
3482
  return /* @__PURE__ */ X("div", {
3347
3483
  "data-slot": "item-header",
3348
3484
  className: Q("flex basis-full items-center justify-between gap-2", e),
3349
3485
  ...t
3350
3486
  });
3351
3487
  }
3352
- function ui({ className: e, ...t }) {
3488
+ function _i({ className: e, ...t }) {
3353
3489
  return /* @__PURE__ */ X("div", {
3354
3490
  "data-slot": "item-footer",
3355
3491
  className: Q("flex basis-full items-center justify-between gap-2", e),
@@ -3358,10 +3494,10 @@ function ui({ className: e, ...t }) {
3358
3494
  }
3359
3495
  //#endregion
3360
3496
  //#region src/components/ui/map.tsx
3361
- var di = {
3497
+ var vi = {
3362
3498
  dark: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
3363
3499
  light: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
3364
- }, fi = [
3500
+ }, yi = [
3365
3501
  {
3366
3502
  label: "Light",
3367
3503
  url: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
@@ -3374,13 +3510,13 @@ var di = {
3374
3510
  label: "Dark",
3375
3511
  url: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
3376
3512
  }
3377
- ], pi = r(null);
3378
- function mi() {
3379
- let e = o(pi);
3513
+ ], bi = r(null);
3514
+ function xi() {
3515
+ let e = o(bi);
3380
3516
  if (!e) throw Error("useMap must be used within a Map component");
3381
3517
  return e;
3382
3518
  }
3383
- function hi() {
3519
+ function Si() {
3384
3520
  return /* @__PURE__ */ X("div", {
3385
3521
  className: "bg-background/50 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-xs",
3386
3522
  children: /* @__PURE__ */ Z("div", {
@@ -3393,7 +3529,7 @@ function hi() {
3393
3529
  })
3394
3530
  });
3395
3531
  }
3396
- function gi(e) {
3532
+ function Ci(e) {
3397
3533
  let t = e.getCenter();
3398
3534
  return {
3399
3535
  center: [t.lng, t.lat],
@@ -3402,12 +3538,12 @@ function gi(e) {
3402
3538
  pitch: e.getPitch()
3403
3539
  };
3404
3540
  }
3405
- var _i = i(function({ children: e, className: t, theme: n, styles: r, projection: i, viewport: o, onViewportChange: c, loading: p = !1, controls: m = !0, tiles: h = fi, ...g }, _) {
3541
+ var wi = i(function({ children: e, className: t, theme: n, styles: r, projection: i, viewport: o, onViewportChange: c, loading: p = !1, controls: m = !0, tiles: h = yi, ...g }, _) {
3406
3542
  let v = h === !1 ? [] : h, y = d(null), [b, x] = f(null), [S, C] = f(!1), [w, T] = f(!1), [E, ee] = f(0), te = d(null), D = d(null), O = d(!1), k = o !== void 0 && c !== void 0, A = d(c);
3407
3543
  A.current = c;
3408
3544
  let j = u(() => ({
3409
- dark: r?.dark ?? di.dark,
3410
- light: r?.light ?? di.light
3545
+ dark: r?.dark ?? vi.dark,
3546
+ light: r?.light ?? vi.light
3411
3547
  }), [r]);
3412
3548
  l(_, () => b, [b]);
3413
3549
  let M = a(() => {
@@ -3429,14 +3565,14 @@ var _i = i(function({ children: e, className: t, theme: n, styles: r, projection
3429
3565
  T(!0), i && t.setProjection(i);
3430
3566
  }, 100);
3431
3567
  }, r = () => C(!0), a = () => {
3432
- O.current || A.current?.(gi(t));
3568
+ O.current || A.current?.(Ci(t));
3433
3569
  };
3434
3570
  return t.on("load", r), t.on("styledata", n), t.on("move", a), x(t), () => {
3435
3571
  M(), t.off("load", r), t.off("styledata", n), t.off("move", a), t.remove(), C(!1), T(!1), x(null);
3436
3572
  };
3437
3573
  }, []), s(() => {
3438
3574
  if (!b || !k || !o || b.isMoving()) return;
3439
- let e = gi(b), t = {
3575
+ let e = Ci(b), t = {
3440
3576
  center: o.center ?? e.center,
3441
3577
  zoom: o.zoom ?? e.zoom,
3442
3578
  bearing: o.bearing ?? e.bearing,
@@ -3466,12 +3602,12 @@ var _i = i(function({ children: e, className: t, theme: n, styles: r, projection
3466
3602
  S,
3467
3603
  w
3468
3604
  ]);
3469
- return /* @__PURE__ */ X(pi.Provider, {
3605
+ return /* @__PURE__ */ X(bi.Provider, {
3470
3606
  value: N,
3471
3607
  children: /* @__PURE__ */ Z("div", {
3472
3608
  ref: y,
3473
3609
  className: Q("relative h-full w-full", t),
3474
- children: [(!S || p) && /* @__PURE__ */ X(hi, {}), b && /* @__PURE__ */ Z(Y, { children: [m && /* @__PURE__ */ X(ji, {
3610
+ children: [(!S || p) && /* @__PURE__ */ X(Si, {}), b && /* @__PURE__ */ Z(Y, { children: [m && /* @__PURE__ */ X(Ri, {
3475
3611
  position: "top-right",
3476
3612
  tiles: v,
3477
3613
  tileIndex: E,
@@ -3479,14 +3615,14 @@ var _i = i(function({ children: e, className: t, theme: n, styles: r, projection
3479
3615
  }), e] })]
3480
3616
  })
3481
3617
  });
3482
- }), vi = r(null);
3483
- function yi() {
3484
- let e = o(vi);
3618
+ }), Ti = r(null);
3619
+ function Ei() {
3620
+ let e = o(Ti);
3485
3621
  if (!e) throw Error("Marker components must be used within MapMarker");
3486
3622
  return e;
3487
3623
  }
3488
- function bi({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter: i, onMouseLeave: a, onDragStart: o, onDrag: c, onDragEnd: l, draggable: f = !1, ...p }) {
3489
- let { map: m } = mi(), h = d({
3624
+ function Di({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter: i, onMouseLeave: a, onDragStart: o, onDrag: c, onDragEnd: l, draggable: f = !1, ...p }) {
3625
+ let { map: m } = xi(), h = d({
3490
3626
  onClick: r,
3491
3627
  onMouseEnter: i,
3492
3628
  onMouseLeave: a,
@@ -3534,7 +3670,7 @@ function bi({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
3534
3670
  };
3535
3671
  }, [m]), (g.getLngLat().lng !== e || g.getLngLat().lat !== t) && g.setLngLat([e, t]), g.isDraggable() !== f && g.setDraggable(f);
3536
3672
  let _ = g.getOffset(), v = p.offset ?? [0, 0], [y, b] = Array.isArray(v) ? v : [v.x, v.y];
3537
- 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(vi.Provider, {
3673
+ 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(Ti.Provider, {
3538
3674
  value: {
3539
3675
  marker: g,
3540
3676
  map: m
@@ -3542,27 +3678,27 @@ function bi({ longitude: e, latitude: t, children: n, onClick: r, onMouseEnter:
3542
3678
  children: n
3543
3679
  });
3544
3680
  }
3545
- function xi({ children: e, className: t }) {
3546
- let { marker: n } = yi();
3681
+ function Oi({ children: e, className: t }) {
3682
+ let { marker: n } = Ei();
3547
3683
  return Le(/* @__PURE__ */ X("div", {
3548
3684
  className: Q("relative cursor-pointer", t),
3549
- children: e || /* @__PURE__ */ X(Si, {})
3685
+ children: e || /* @__PURE__ */ X(ki, {})
3550
3686
  }), n.getElement());
3551
3687
  }
3552
- function Si() {
3688
+ function ki() {
3553
3689
  return /* @__PURE__ */ X("div", { className: "relative h-4 w-4 rounded-full border-2 border-white bg-blue-500 shadow-lg" });
3554
3690
  }
3555
- function Ci({ onClick: e }) {
3691
+ function Ai({ onClick: e }) {
3556
3692
  return /* @__PURE__ */ X("button", {
3557
3693
  type: "button",
3558
3694
  onClick: e,
3559
3695
  "aria-label": "Close popup",
3560
3696
  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",
3561
- children: /* @__PURE__ */ X(pe, { className: "size-3.5" })
3697
+ children: /* @__PURE__ */ X(me, { className: "size-3.5" })
3562
3698
  });
3563
3699
  }
3564
- function wi({ children: e, className: t, closeButton: n = !1, ...r }) {
3565
- let { marker: i, map: a } = yi(), o = u(() => document.createElement("div"), []), c = d(r), l = u(() => new Ie.Popup({
3700
+ function ji({ children: e, className: t, closeButton: n = !1, ...r }) {
3701
+ let { marker: i, map: a } = Ei(), o = u(() => document.createElement("div"), []), c = d(r), l = u(() => new Ie.Popup({
3566
3702
  offset: 16,
3567
3703
  ...r,
3568
3704
  closeButton: !1
@@ -3577,11 +3713,11 @@ function wi({ children: e, className: t, closeButton: n = !1, ...r }) {
3577
3713
  }
3578
3714
  return Le(/* @__PURE__ */ Z("div", {
3579
3715
  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),
3580
- children: [n && /* @__PURE__ */ X(Ci, { onClick: () => l.remove() }), e]
3716
+ children: [n && /* @__PURE__ */ X(Ai, { onClick: () => l.remove() }), e]
3581
3717
  }), o);
3582
3718
  }
3583
- function Ti({ children: e, className: t, ...n }) {
3584
- let { marker: r, map: i } = yi(), a = u(() => document.createElement("div"), []), o = d(n), c = u(() => new Ie.Popup({
3719
+ function Mi({ children: e, className: t, ...n }) {
3720
+ let { marker: r, map: i } = Ei(), a = u(() => document.createElement("div"), []), o = d(n), c = u(() => new Ie.Popup({
3585
3721
  offset: 16,
3586
3722
  ...n,
3587
3723
  closeOnClick: !0,
@@ -3605,7 +3741,7 @@ function Ti({ children: e, className: t, ...n }) {
3605
3741
  children: e
3606
3742
  }), a);
3607
3743
  }
3608
- function Ei({ children: e, className: t, position: n = "top" }) {
3744
+ function Ni({ children: e, className: t, position: n = "top" }) {
3609
3745
  return /* @__PURE__ */ X("div", {
3610
3746
  className: Q("absolute left-1/2 -translate-x-1/2 whitespace-nowrap", "text-foreground text-[10px] font-medium", {
3611
3747
  top: "bottom-full mb-1",
@@ -3614,19 +3750,19 @@ function Ei({ children: e, className: t, position: n = "top" }) {
3614
3750
  children: e
3615
3751
  });
3616
3752
  }
3617
- var Di = {
3753
+ var Pi = {
3618
3754
  "top-left": "top-2 left-2",
3619
3755
  "top-right": "top-2 right-2",
3620
3756
  "bottom-left": "bottom-2 left-2",
3621
3757
  "bottom-right": "bottom-10 right-2"
3622
3758
  };
3623
- function Oi({ children: e }) {
3759
+ function Fi({ children: e }) {
3624
3760
  return /* @__PURE__ */ X("div", {
3625
3761
  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",
3626
3762
  children: e
3627
3763
  });
3628
3764
  }
3629
- function ki({ onClick: e, label: t, children: n, disabled: r = !1 }) {
3765
+ function Ii({ onClick: e, label: t, children: n, disabled: r = !1 }) {
3630
3766
  return /* @__PURE__ */ X("button", {
3631
3767
  onClick: e,
3632
3768
  "aria-label": t,
@@ -3636,7 +3772,7 @@ function ki({ onClick: e, label: t, children: n, disabled: r = !1 }) {
3636
3772
  children: n
3637
3773
  });
3638
3774
  }
3639
- function Ai({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
3775
+ function Li({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
3640
3776
  let [i, a] = f(!1), o = d(null);
3641
3777
  return s(() => {
3642
3778
  if (!i) return;
@@ -3651,7 +3787,7 @@ function Ai({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
3651
3787
  }, [i]), /* @__PURE__ */ Z("div", {
3652
3788
  ref: o,
3653
3789
  className: "relative",
3654
- children: [/* @__PURE__ */ X(Oi, { children: /* @__PURE__ */ X(ki, {
3790
+ children: [/* @__PURE__ */ X(Fi, { children: /* @__PURE__ */ X(Ii, {
3655
3791
  onClick: () => a((e) => !e),
3656
3792
  label: `Basemap: ${e[t]?.label ?? ""}`,
3657
3793
  children: /* @__PURE__ */ X(F, { className: "size-4" })
@@ -3672,8 +3808,8 @@ function Ai({ tiles: e, tileIndex: t, onTileChange: n, openLeft: r }) {
3672
3808
  })]
3673
3809
  });
3674
3810
  }
3675
- function ji({ 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 }) {
3676
- let { map: d } = mi(), [p, m] = f(!1), h = a(() => {
3811
+ function Ri({ 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 }) {
3812
+ let { map: d } = xi(), [p, m] = f(!1), h = a(() => {
3677
3813
  d?.zoomTo(d.getZoom() + 1, { duration: 300 });
3678
3814
  }, [d]), g = a(() => {
3679
3815
  d?.zoomTo(d.getZoom() - 1, { duration: 300 });
@@ -3698,31 +3834,31 @@ function ji({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !
3698
3834
  e && (document.fullscreenElement ? document.exitFullscreen() : e.requestFullscreen());
3699
3835
  }, [d]);
3700
3836
  return /* @__PURE__ */ Z("div", {
3701
- className: Q("absolute z-10 flex flex-col gap-1.5", Di[e], o),
3837
+ className: Q("absolute z-10 flex flex-col gap-1.5", Pi[e], o),
3702
3838
  children: [
3703
- t && /* @__PURE__ */ Z(Oi, { children: [/* @__PURE__ */ X(ki, {
3839
+ t && /* @__PURE__ */ Z(Fi, { children: [/* @__PURE__ */ X(Ii, {
3704
3840
  onClick: h,
3705
3841
  label: "Zoom in",
3706
- children: /* @__PURE__ */ X(B, { className: "size-4" })
3707
- }), /* @__PURE__ */ X(ki, {
3842
+ children: /* @__PURE__ */ X(oe, { className: "size-4" })
3843
+ }), /* @__PURE__ */ X(Ii, {
3708
3844
  onClick: g,
3709
3845
  label: "Zoom out",
3710
3846
  children: /* @__PURE__ */ X(R, { className: "size-4" })
3711
3847
  })] }),
3712
- c.length > 1 && /* @__PURE__ */ X(Ai, {
3848
+ c.length > 1 && /* @__PURE__ */ X(Li, {
3713
3849
  tiles: c,
3714
3850
  tileIndex: l,
3715
3851
  onTileChange: u,
3716
3852
  openLeft: e.endsWith("right")
3717
3853
  }),
3718
- n && /* @__PURE__ */ X(Oi, { children: /* @__PURE__ */ X(Mi, { onClick: _ }) }),
3719
- r && /* @__PURE__ */ X(Oi, { children: /* @__PURE__ */ X(ki, {
3854
+ n && /* @__PURE__ */ X(Fi, { children: /* @__PURE__ */ X(zi, { onClick: _ }) }),
3855
+ r && /* @__PURE__ */ X(Fi, { children: /* @__PURE__ */ X(Ii, {
3720
3856
  onClick: v,
3721
3857
  label: "Find my location",
3722
3858
  disabled: p,
3723
3859
  children: p ? /* @__PURE__ */ X(ne, { className: "size-4 animate-spin" }) : /* @__PURE__ */ X(L, { className: "size-4" })
3724
3860
  }) }),
3725
- i && /* @__PURE__ */ X(Oi, { children: /* @__PURE__ */ X(ki, {
3861
+ i && /* @__PURE__ */ X(Fi, { children: /* @__PURE__ */ X(Ii, {
3726
3862
  onClick: y,
3727
3863
  label: "Toggle fullscreen",
3728
3864
  children: /* @__PURE__ */ X(ie, { className: "size-4" })
@@ -3730,8 +3866,8 @@ function ji({ position: e = "bottom-right", showZoom: t = !0, showCompass: n = !
3730
3866
  ]
3731
3867
  });
3732
3868
  }
3733
- function Mi({ onClick: e }) {
3734
- let { map: t } = mi(), n = d(null);
3869
+ function zi({ onClick: e }) {
3870
+ let { map: t } = xi(), n = d(null);
3735
3871
  return s(() => {
3736
3872
  if (!t || !n.current) return;
3737
3873
  let e = n.current, r = () => {
@@ -3741,7 +3877,7 @@ function Mi({ onClick: e }) {
3741
3877
  return t.on("rotate", r), t.on("pitch", r), r(), () => {
3742
3878
  t.off("rotate", r), t.off("pitch", r);
3743
3879
  };
3744
- }, [t]), /* @__PURE__ */ X(ki, {
3880
+ }, [t]), /* @__PURE__ */ X(Ii, {
3745
3881
  onClick: e,
3746
3882
  label: "Reset bearing to north",
3747
3883
  children: /* @__PURE__ */ Z("svg", {
@@ -3770,8 +3906,8 @@ function Mi({ onClick: e }) {
3770
3906
  })
3771
3907
  });
3772
3908
  }
3773
- function Ni({ longitude: e, latitude: t, onClose: n, children: r, className: i, closeButton: a = !1, ...o }) {
3774
- let { map: c } = mi(), l = d(o), f = d(n);
3909
+ function Bi({ longitude: e, latitude: t, onClose: n, children: r, className: i, closeButton: a = !1, ...o }) {
3910
+ let { map: c } = xi(), l = d(o), f = d(n);
3775
3911
  f.current = n;
3776
3912
  let p = u(() => document.createElement("div"), []), m = u(() => new Ie.Popup({
3777
3913
  offset: 16,
@@ -3790,13 +3926,13 @@ function Ni({ longitude: e, latitude: t, onClose: n, children: r, className: i,
3790
3926
  }
3791
3927
  return Le(/* @__PURE__ */ Z("div", {
3792
3928
  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),
3793
- children: [a && /* @__PURE__ */ X(Ci, { onClick: () => {
3929
+ children: [a && /* @__PURE__ */ X(Ai, { onClick: () => {
3794
3930
  m.remove();
3795
3931
  } }), r]
3796
3932
  }), p);
3797
3933
  }
3798
- function Pi({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity: i = .8, dashArray: a, onClick: o, onMouseEnter: l, onMouseLeave: u, interactive: d = !0 }) {
3799
- let { map: f, isLoaded: p } = mi(), m = c(), h = e ?? m, g = `route-source-${h}`, _ = `route-layer-${h}`;
3934
+ function Vi({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity: i = .8, dashArray: a, onClick: o, onMouseEnter: l, onMouseLeave: u, interactive: d = !0 }) {
3935
+ let { map: f, isLoaded: p } = xi(), m = c(), h = e ?? m, g = `route-source-${h}`, _ = `route-layer-${h}`;
3800
3936
  return s(() => {
3801
3937
  if (!(!p || !f)) return f.addSource(g, {
3802
3938
  type: "geojson",
@@ -3875,15 +4011,15 @@ function Pi({ id: e, coordinates: t, color: n = "#4285F4", width: r = 3, opacity
3875
4011
  d
3876
4012
  ]), null;
3877
4013
  }
3878
- var Fi = .2, Ii = 64, Li = 12, Ri = 6, zi = {
4014
+ var Hi = .2, Ui = 64, Wi = 12, Gi = 6, Ki = {
3879
4015
  "line-color": "#4285F4",
3880
4016
  "line-width": 2,
3881
4017
  "line-opacity": .85
3882
- }, Bi = {
4018
+ }, qi = {
3883
4019
  "line-join": "round",
3884
4020
  "line-cap": "round"
3885
4021
  };
3886
- function Vi(e, t) {
4022
+ function Ji(e, t) {
3887
4023
  if (!t) return e;
3888
4024
  let n = { ...e };
3889
4025
  for (let [e, r] of Object.entries(t)) {
@@ -3902,7 +4038,7 @@ function Vi(e, t) {
3902
4038
  }
3903
4039
  return n;
3904
4040
  }
3905
- function Hi(e, t, n, r) {
4041
+ function Yi(e, t, n, r) {
3906
4042
  let [i, a] = e, [o, s] = t, c = o - i, l = s - a, u = Math.hypot(c, l);
3907
4043
  if (u === 0 || n === 0) return [e, t];
3908
4044
  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));
@@ -3912,16 +4048,16 @@ function Hi(e, t, n, r) {
3912
4048
  }
3913
4049
  return v;
3914
4050
  }
3915
- function Ui({ data: e, id: t, curvature: n = Fi, samples: r = Ii, paint: i, layout: a, hoverPaint: o, onClick: l, onHover: f, interactive: p = !0, beforeId: m }) {
3916
- let { map: h, isLoaded: g } = mi(), _ = c(), v = t ?? _, y = `arc-source-${v}`, b = `arc-layer-${v}`, x = `arc-hit-layer-${v}`, S = u(() => Vi({
3917
- ...zi,
4051
+ function Xi({ data: e, id: t, curvature: n = Hi, samples: r = Ui, paint: i, layout: a, hoverPaint: o, onClick: l, onHover: f, interactive: p = !0, beforeId: m }) {
4052
+ let { map: h, isLoaded: g } = xi(), _ = c(), v = t ?? _, y = `arc-source-${v}`, b = `arc-layer-${v}`, x = `arc-hit-layer-${v}`, S = u(() => Ji({
4053
+ ...Ki,
3918
4054
  ...i
3919
4055
  }, o), [i, o]), C = u(() => ({
3920
- ...Bi,
4056
+ ...qi,
3921
4057
  ...a
3922
4058
  }), [a]), w = u(() => {
3923
- let e = i?.["line-width"] ?? zi["line-width"];
3924
- return Math.max((typeof e == "number" ? e : Li) + Ri, Li);
4059
+ let e = i?.["line-width"] ?? Ki["line-width"];
4060
+ return Math.max((typeof e == "number" ? e : Wi) + Gi, Wi);
3925
4061
  }, [i]), T = u(() => ({
3926
4062
  type: "FeatureCollection",
3927
4063
  features: e.map((e) => {
@@ -3931,7 +4067,7 @@ function Ui({ data: e, id: t, curvature: n = Fi, samples: r = Ii, paint: i, layo
3931
4067
  properties: a,
3932
4068
  geometry: {
3933
4069
  type: "LineString",
3934
- coordinates: Hi(t, i, n, r)
4070
+ coordinates: Yi(t, i, n, r)
3935
4071
  }
3936
4072
  };
3937
4073
  })
@@ -3957,7 +4093,7 @@ function Ui({ data: e, id: t, curvature: n = Fi, samples: r = Ii, paint: i, layo
3957
4093
  id: x,
3958
4094
  type: "line",
3959
4095
  source: y,
3960
- layout: Bi,
4096
+ layout: qi,
3961
4097
  paint: {
3962
4098
  "line-color": "rgba(0, 0, 0, 0)",
3963
4099
  "line-width": w,
@@ -4040,12 +4176,12 @@ function Ui({ data: e, id: t, curvature: n = Fi, samples: r = Ii, paint: i, layo
4040
4176
  p
4041
4177
  ]), null;
4042
4178
  }
4043
- function Wi({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterColors: r = [
4179
+ function Zi({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterColors: r = [
4044
4180
  "#22c55e",
4045
4181
  "#eab308",
4046
4182
  "#ef4444"
4047
4183
  ], clusterThresholds: i = [100, 750], pointColor: a = "#3b82f6", onPointClick: o, onClusterClick: l }) {
4048
- let { map: u, isLoaded: f } = mi(), p = c(), m = `cluster-source-${p}`, h = `clusters-${p}`, g = `cluster-count-${p}`, _ = `unclustered-point-${p}`, v = d({
4184
+ let { map: u, isLoaded: f } = xi(), p = c(), m = `cluster-source-${p}`, h = `clusters-${p}`, g = `cluster-count-${p}`, _ = `unclustered-point-${p}`, v = d({
4049
4185
  clusterColors: r,
4050
4186
  clusterThresholds: i,
4051
4187
  pointColor: a
@@ -4200,7 +4336,7 @@ function Wi({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterCol
4200
4336
  }
4201
4337
  //#endregion
4202
4338
  //#region src/components/ui/progress.tsx
4203
- function Gi({ className: e, value: t, ...n }) {
4339
+ function Qi({ className: e, value: t, ...n }) {
4204
4340
  return /* @__PURE__ */ X(ye.Root, {
4205
4341
  "data-slot": "progress",
4206
4342
  className: Q("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted", e),
@@ -4214,26 +4350,26 @@ function Gi({ className: e, value: t, ...n }) {
4214
4350
  }
4215
4351
  //#endregion
4216
4352
  //#region src/components/ui/select.tsx
4217
- function Ki({ ...e }) {
4353
+ function $i({ ...e }) {
4218
4354
  return /* @__PURE__ */ X(J.Root, {
4219
4355
  "data-slot": "select",
4220
4356
  ...e
4221
4357
  });
4222
4358
  }
4223
- function qi({ className: e, ...t }) {
4359
+ function ea({ className: e, ...t }) {
4224
4360
  return /* @__PURE__ */ X(J.Group, {
4225
4361
  "data-slot": "select-group",
4226
4362
  className: Q("scroll-my-1 p-1", e),
4227
4363
  ...t
4228
4364
  });
4229
4365
  }
4230
- function Ji({ ...e }) {
4366
+ function ta({ ...e }) {
4231
4367
  return /* @__PURE__ */ X(J.Value, {
4232
4368
  "data-slot": "select-value",
4233
4369
  ...e
4234
4370
  });
4235
4371
  }
4236
- function Yi({ className: e, size: t = "default", children: n, ...r }) {
4372
+ function na({ className: e, size: t = "default", children: n, ...r }) {
4237
4373
  return /* @__PURE__ */ Z(J.Trigger, {
4238
4374
  "data-slot": "select-trigger",
4239
4375
  "data-size": t,
@@ -4245,7 +4381,7 @@ function Yi({ className: e, size: t = "default", children: n, ...r }) {
4245
4381
  })]
4246
4382
  });
4247
4383
  }
4248
- function Xi({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
4384
+ function ra({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
4249
4385
  return /* @__PURE__ */ X(J.Portal, { children: /* @__PURE__ */ Z(J.Content, {
4250
4386
  "data-slot": "select-content",
4251
4387
  "data-align-trigger": n === "item-aligned",
@@ -4254,24 +4390,24 @@ function Xi({ className: e, children: t, position: n = "item-aligned", align: r
4254
4390
  align: r,
4255
4391
  ...i,
4256
4392
  children: [
4257
- /* @__PURE__ */ X(ea, {}),
4393
+ /* @__PURE__ */ X(sa, {}),
4258
4394
  /* @__PURE__ */ X(J.Viewport, {
4259
4395
  "data-position": n,
4260
4396
  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" && ""),
4261
4397
  children: t
4262
4398
  }),
4263
- /* @__PURE__ */ X(ta, {})
4399
+ /* @__PURE__ */ X(ca, {})
4264
4400
  ]
4265
4401
  }) });
4266
4402
  }
4267
- function Zi({ className: e, ...t }) {
4403
+ function ia({ className: e, ...t }) {
4268
4404
  return /* @__PURE__ */ X(J.Label, {
4269
4405
  "data-slot": "select-label",
4270
4406
  className: Q("px-1.5 py-1 text-xs text-muted-foreground", e),
4271
4407
  ...t
4272
4408
  });
4273
4409
  }
4274
- function Qi({ className: e, children: t, ...n }) {
4410
+ function aa({ className: e, children: t, ...n }) {
4275
4411
  return /* @__PURE__ */ Z(J.Item, {
4276
4412
  "data-slot": "select-item",
4277
4413
  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),
@@ -4282,14 +4418,14 @@ function Qi({ className: e, children: t, ...n }) {
4282
4418
  }), /* @__PURE__ */ X(J.ItemText, { children: t })]
4283
4419
  });
4284
4420
  }
4285
- function $i({ className: e, ...t }) {
4421
+ function oa({ className: e, ...t }) {
4286
4422
  return /* @__PURE__ */ X(J.Separator, {
4287
4423
  "data-slot": "select-separator",
4288
4424
  className: Q("pointer-events-none -mx-1 my-1 h-px bg-border", e),
4289
4425
  ...t
4290
4426
  });
4291
4427
  }
4292
- function ea({ className: e, ...t }) {
4428
+ function sa({ className: e, ...t }) {
4293
4429
  return /* @__PURE__ */ X(J.ScrollUpButton, {
4294
4430
  "data-slot": "select-scroll-up-button",
4295
4431
  className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
@@ -4297,7 +4433,7 @@ function ea({ className: e, ...t }) {
4297
4433
  children: /* @__PURE__ */ X(x, {})
4298
4434
  });
4299
4435
  }
4300
- function ta({ className: e, ...t }) {
4436
+ function ca({ className: e, ...t }) {
4301
4437
  return /* @__PURE__ */ X(J.ScrollDownButton, {
4302
4438
  "data-slot": "select-scroll-down-button",
4303
4439
  className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
@@ -4307,7 +4443,7 @@ function ta({ className: e, ...t }) {
4307
4443
  }
4308
4444
  //#endregion
4309
4445
  //#region src/components/ui/slider.tsx
4310
- function na({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100, ...o }) {
4446
+ function la({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100, ...o }) {
4311
4447
  let s = n.useMemo(() => Array.isArray(r) ? r : Array.isArray(t) ? t : [i, a], [
4312
4448
  r,
4313
4449
  t,
@@ -4337,7 +4473,7 @@ function na({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100,
4337
4473
  }
4338
4474
  //#endregion
4339
4475
  //#region src/components/ui/sonner.tsx
4340
- var ra = ({ ...e }) => {
4476
+ var ua = ({ ...e }) => {
4341
4477
  let { theme: t = "system" } = Re();
4342
4478
  return /* @__PURE__ */ X(ze, {
4343
4479
  theme: t,
@@ -4345,7 +4481,7 @@ var ra = ({ ...e }) => {
4345
4481
  icons: {
4346
4482
  success: /* @__PURE__ */ X(w, { className: "size-4" }),
4347
4483
  info: /* @__PURE__ */ X(P, { className: "size-4" }),
4348
- warning: /* @__PURE__ */ X(de, { className: "size-4" }),
4484
+ warning: /* @__PURE__ */ X(fe, { className: "size-4" }),
4349
4485
  error: /* @__PURE__ */ X(ae, { className: "size-4" }),
4350
4486
  loading: /* @__PURE__ */ X(I, { className: "size-4 animate-spin" })
4351
4487
  },
@@ -4358,20 +4494,20 @@ var ra = ({ ...e }) => {
4358
4494
  toastOptions: { classNames: { toast: "cn-toast" } },
4359
4495
  ...e
4360
4496
  });
4361
- }, ia = r(void 0), aa = r(void 0), oa = () => {
4362
- let e = o(ia);
4497
+ }, da = r(void 0), fa = r(void 0), pa = () => {
4498
+ let e = o(da);
4363
4499
  if (!e) throw Error("useStepper must be used within a Stepper");
4364
4500
  return e;
4365
- }, sa = () => {
4366
- let e = o(aa);
4501
+ }, ma = () => {
4502
+ let e = o(fa);
4367
4503
  if (!e) throw Error("useStepItem must be used within a StepperItem");
4368
4504
  return e;
4369
4505
  };
4370
- function ca({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i = "horizontal", className: a, ...o }) {
4506
+ function ha({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i = "horizontal", className: a, ...o }) {
4371
4507
  let [s, c] = n.useState(e), l = n.useCallback((e) => {
4372
4508
  t === void 0 && c(e), r?.(e);
4373
4509
  }, [t, r]), u = t ?? s;
4374
- return /* @__PURE__ */ X(ia.Provider, {
4510
+ return /* @__PURE__ */ X(da.Provider, {
4375
4511
  value: {
4376
4512
  activeStep: u,
4377
4513
  orientation: i,
@@ -4385,9 +4521,9 @@ function ca({ defaultValue: e = 0, value: t, onValueChange: r, orientation: i =
4385
4521
  })
4386
4522
  });
4387
4523
  }
4388
- function la({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, className: i, children: a, ...o }) {
4389
- let { activeStep: s } = oa(), c = t || e < s ? "completed" : s === e ? "active" : "inactive", l = r && e === s;
4390
- return /* @__PURE__ */ X(aa.Provider, {
4524
+ function ga({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, className: i, children: a, ...o }) {
4525
+ let { activeStep: s } = pa(), c = t || e < s ? "completed" : s === e ? "active" : "inactive", l = r && e === s;
4526
+ return /* @__PURE__ */ X(fa.Provider, {
4391
4527
  value: {
4392
4528
  isDisabled: n,
4393
4529
  isLoading: l,
@@ -4404,8 +4540,8 @@ function la({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, cla
4404
4540
  })
4405
4541
  });
4406
4542
  }
4407
- function ua({ asChild: e = !1, className: t, children: n, ...r }) {
4408
- let { setActiveStep: i } = oa(), { step: a, isDisabled: o } = sa();
4543
+ function _a({ asChild: e = !1, className: t, children: n, ...r }) {
4544
+ let { setActiveStep: i } = pa(), { step: a, isDisabled: o } = ma();
4409
4545
  return e ? /* @__PURE__ */ X(e ? Ce.Root : "span", {
4410
4546
  className: t,
4411
4547
  "data-slot": "stepper-trigger",
@@ -4420,8 +4556,8 @@ function ua({ asChild: e = !1, className: t, children: n, ...r }) {
4420
4556
  children: n
4421
4557
  });
4422
4558
  }
4423
- function da({ asChild: e = !1, className: t, children: n, ...r }) {
4424
- let { state: i, step: a, isLoading: o } = sa();
4559
+ function va({ asChild: e = !1, className: t, children: n, ...r }) {
4560
+ let { state: i, step: a, isLoading: o } = ma();
4425
4561
  return /* @__PURE__ */ X("span", {
4426
4562
  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),
4427
4563
  "data-slot": "stepper-indicator",
@@ -4448,21 +4584,21 @@ function da({ asChild: e = !1, className: t, children: n, ...r }) {
4448
4584
  ] })
4449
4585
  });
4450
4586
  }
4451
- function fa({ className: e, ...t }) {
4587
+ function ya({ className: e, ...t }) {
4452
4588
  return /* @__PURE__ */ X("h3", {
4453
4589
  className: Q("font-medium text-sm", e),
4454
4590
  "data-slot": "stepper-title",
4455
4591
  ...t
4456
4592
  });
4457
4593
  }
4458
- function pa({ className: e, ...t }) {
4594
+ function ba({ className: e, ...t }) {
4459
4595
  return /* @__PURE__ */ X("p", {
4460
4596
  className: Q("text-muted-foreground text-sm", e),
4461
4597
  "data-slot": "stepper-description",
4462
4598
  ...t
4463
4599
  });
4464
4600
  }
4465
- function ma({ className: e, ...t }) {
4601
+ function xa({ className: e, ...t }) {
4466
4602
  return /* @__PURE__ */ X("div", {
4467
4603
  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),
4468
4604
  "data-slot": "stepper-separator",
@@ -4471,7 +4607,7 @@ function ma({ className: e, ...t }) {
4471
4607
  }
4472
4608
  //#endregion
4473
4609
  //#region src/components/ui/switch.tsx
4474
- function ha({ className: e, size: t = "default", ...n }) {
4610
+ function Sa({ className: e, size: t = "default", ...n }) {
4475
4611
  return /* @__PURE__ */ X(we.Root, {
4476
4612
  "data-slot": "switch",
4477
4613
  "data-size": t,
@@ -4485,7 +4621,7 @@ function ha({ className: e, size: t = "default", ...n }) {
4485
4621
  }
4486
4622
  //#endregion
4487
4623
  //#region src/components/ui/tabs.tsx
4488
- function ga({ className: e, orientation: t = "horizontal", ...n }) {
4624
+ function Ca({ className: e, orientation: t = "horizontal", ...n }) {
4489
4625
  return /* @__PURE__ */ X(Te.Root, {
4490
4626
  "data-slot": "tabs",
4491
4627
  "data-orientation": t,
@@ -4493,29 +4629,29 @@ function ga({ className: e, orientation: t = "horizontal", ...n }) {
4493
4629
  ...n
4494
4630
  });
4495
4631
  }
4496
- var _a = 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", {
4632
+ var wa = 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", {
4497
4633
  variants: { variant: {
4498
4634
  default: "bg-muted",
4499
4635
  line: "gap-1 bg-transparent"
4500
4636
  } },
4501
4637
  defaultVariants: { variant: "default" }
4502
4638
  });
4503
- function va({ className: e, variant: t = "default", ...n }) {
4639
+ function Ta({ className: e, variant: t = "default", ...n }) {
4504
4640
  return /* @__PURE__ */ X(Te.List, {
4505
4641
  "data-slot": "tabs-list",
4506
4642
  "data-variant": t,
4507
- className: Q(_a({ variant: t }), e),
4643
+ className: Q(wa({ variant: t }), e),
4508
4644
  ...n
4509
4645
  });
4510
4646
  }
4511
- function ya({ className: e, ...t }) {
4647
+ function Ea({ className: e, ...t }) {
4512
4648
  return /* @__PURE__ */ X(Te.Trigger, {
4513
4649
  "data-slot": "tabs-trigger",
4514
4650
  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),
4515
4651
  ...t
4516
4652
  });
4517
4653
  }
4518
- function ba({ className: e, ...t }) {
4654
+ function Da({ className: e, ...t }) {
4519
4655
  return /* @__PURE__ */ X(Te.Content, {
4520
4656
  "data-slot": "tabs-content",
4521
4657
  className: Q("flex-1 text-sm outline-none", e),
@@ -4524,16 +4660,16 @@ function ba({ className: e, ...t }) {
4524
4660
  }
4525
4661
  //#endregion
4526
4662
  //#region src/components/ui/timeline.tsx
4527
- var xa = n.createContext(void 0), Sa = () => {
4528
- let e = n.useContext(xa);
4663
+ var Oa = n.createContext(void 0), ka = () => {
4664
+ let e = n.useContext(Oa);
4529
4665
  if (!e) throw Error("useTimeline must be used within a Timeline");
4530
4666
  return e;
4531
4667
  };
4532
- function Ca({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i = "vertical", className: a, ...o }) {
4668
+ function Aa({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i = "vertical", className: a, ...o }) {
4533
4669
  let [s, c] = n.useState(e), l = n.useCallback((e) => {
4534
4670
  t === void 0 && c(e), r?.(e);
4535
4671
  }, [t, r]), u = t ?? s;
4536
- return /* @__PURE__ */ X(xa.Provider, {
4672
+ return /* @__PURE__ */ X(Oa.Provider, {
4537
4673
  value: {
4538
4674
  activeStep: u,
4539
4675
  setActiveStep: l
@@ -4546,28 +4682,28 @@ function Ca({ defaultValue: e = 1, value: t, onValueChange: r, orientation: i =
4546
4682
  })
4547
4683
  });
4548
4684
  }
4549
- function wa({ className: e, ...t }) {
4685
+ function ja({ className: e, ...t }) {
4550
4686
  return /* @__PURE__ */ X("div", {
4551
4687
  className: Q("text-muted-foreground text-sm", e),
4552
4688
  "data-slot": "timeline-content",
4553
4689
  ...t
4554
4690
  });
4555
4691
  }
4556
- function Ta({ asChild: e = !1, className: t, ...n }) {
4692
+ function Ma({ asChild: e = !1, className: t, ...n }) {
4557
4693
  return /* @__PURE__ */ X(e ? Ce.Root : "time", {
4558
4694
  className: Q("mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4", t),
4559
4695
  "data-slot": "timeline-date",
4560
4696
  ...n
4561
4697
  });
4562
4698
  }
4563
- function Ea({ className: e, ...t }) {
4699
+ function Na({ className: e, ...t }) {
4564
4700
  return /* @__PURE__ */ X("div", {
4565
4701
  className: Q(e),
4566
4702
  "data-slot": "timeline-header",
4567
4703
  ...t
4568
4704
  });
4569
4705
  }
4570
- function Da({ className: e, children: t, ...n }) {
4706
+ function Pa({ className: e, children: t, ...n }) {
4571
4707
  return /* @__PURE__ */ X("div", {
4572
4708
  "aria-hidden": "true",
4573
4709
  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),
@@ -4576,8 +4712,8 @@ function Da({ className: e, children: t, ...n }) {
4576
4712
  children: t
4577
4713
  });
4578
4714
  }
4579
- function Oa({ step: e, className: t, ...n }) {
4580
- let { activeStep: r } = Sa();
4715
+ function Fa({ step: e, className: t, ...n }) {
4716
+ let { activeStep: r } = ka();
4581
4717
  return /* @__PURE__ */ X("div", {
4582
4718
  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),
4583
4719
  "data-completed": e <= r || void 0,
@@ -4585,7 +4721,7 @@ function Oa({ step: e, className: t, ...n }) {
4585
4721
  ...n
4586
4722
  });
4587
4723
  }
4588
- function ka({ className: e, ...t }) {
4724
+ function Ia({ className: e, ...t }) {
4589
4725
  return /* @__PURE__ */ X("div", {
4590
4726
  "aria-hidden": "true",
4591
4727
  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),
@@ -4593,7 +4729,7 @@ function ka({ className: e, ...t }) {
4593
4729
  ...t
4594
4730
  });
4595
4731
  }
4596
- function Aa({ className: e, ...t }) {
4732
+ function La({ className: e, ...t }) {
4597
4733
  return /* @__PURE__ */ X("h3", {
4598
4734
  className: Q("font-medium text-sm", e),
4599
4735
  "data-slot": "timeline-title",
@@ -4602,7 +4738,7 @@ function Aa({ className: e, ...t }) {
4602
4738
  }
4603
4739
  //#endregion
4604
4740
  //#region src/components/ui/toggle.tsx
4605
- var ja = 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", {
4741
+ var Ra = 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", {
4606
4742
  variants: {
4607
4743
  variant: {
4608
4744
  default: "bg-transparent",
@@ -4619,10 +4755,10 @@ var ja = W("group/toggle inline-flex items-center justify-center gap-1 rounded-l
4619
4755
  size: "default"
4620
4756
  }
4621
4757
  });
4622
- function Ma({ className: e, variant: t = "default", size: n = "default", ...r }) {
4758
+ function za({ className: e, variant: t = "default", size: n = "default", ...r }) {
4623
4759
  return /* @__PURE__ */ X(Ee.Root, {
4624
4760
  "data-slot": "toggle",
4625
- className: Q(ja({
4761
+ className: Q(Ra({
4626
4762
  variant: t,
4627
4763
  size: n,
4628
4764
  className: e
@@ -4632,13 +4768,13 @@ function Ma({ className: e, variant: t = "default", size: n = "default", ...r })
4632
4768
  }
4633
4769
  //#endregion
4634
4770
  //#region src/components/ui/toggle-group.tsx
4635
- var Na = n.createContext({
4771
+ var Ba = n.createContext({
4636
4772
  size: "default",
4637
4773
  variant: "default",
4638
4774
  spacing: 2,
4639
4775
  orientation: "horizontal"
4640
4776
  });
4641
- function Pa({ className: e, variant: t, size: n, spacing: r = 2, orientation: i = "horizontal", children: a, ...o }) {
4777
+ function Va({ className: e, variant: t, size: n, spacing: r = 2, orientation: i = "horizontal", children: a, ...o }) {
4642
4778
  return /* @__PURE__ */ X(De.Root, {
4643
4779
  "data-slot": "toggle-group",
4644
4780
  "data-variant": t,
@@ -4648,7 +4784,7 @@ function Pa({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
4648
4784
  style: { "--gap": r },
4649
4785
  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),
4650
4786
  ...o,
4651
- children: /* @__PURE__ */ X(Na.Provider, {
4787
+ children: /* @__PURE__ */ X(Ba.Provider, {
4652
4788
  value: {
4653
4789
  variant: t,
4654
4790
  size: n,
@@ -4659,14 +4795,14 @@ function Pa({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
4659
4795
  })
4660
4796
  });
4661
4797
  }
4662
- function Fa({ className: e, children: t, variant: r = "default", size: i = "default", ...a }) {
4663
- let o = n.useContext(Na);
4798
+ function Ha({ className: e, children: t, variant: r = "default", size: i = "default", ...a }) {
4799
+ let o = n.useContext(Ba);
4664
4800
  return /* @__PURE__ */ X(De.Item, {
4665
4801
  "data-slot": "toggle-group-item",
4666
4802
  "data-variant": o.variant || r,
4667
4803
  "data-size": o.size || i,
4668
4804
  "data-spacing": o.spacing,
4669
- 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", ja({
4805
+ 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", Ra({
4670
4806
  variant: o.variant || r,
4671
4807
  size: o.size || i
4672
4808
  }), e),
@@ -4676,26 +4812,26 @@ function Fa({ className: e, children: t, variant: r = "default", size: i = "defa
4676
4812
  }
4677
4813
  //#endregion
4678
4814
  //#region src/components/ui/tooltip.tsx
4679
- function Ia({ delayDuration: e = 0, ...t }) {
4815
+ function Ua({ delayDuration: e = 0, ...t }) {
4680
4816
  return /* @__PURE__ */ X(Oe.Provider, {
4681
4817
  "data-slot": "tooltip-provider",
4682
4818
  delayDuration: e,
4683
4819
  ...t
4684
4820
  });
4685
4821
  }
4686
- function La({ ...e }) {
4822
+ function Wa({ ...e }) {
4687
4823
  return /* @__PURE__ */ X(Oe.Root, {
4688
4824
  "data-slot": "tooltip",
4689
4825
  ...e
4690
4826
  });
4691
4827
  }
4692
- function Ra({ ...e }) {
4828
+ function Ga({ ...e }) {
4693
4829
  return /* @__PURE__ */ X(Oe.Trigger, {
4694
4830
  "data-slot": "tooltip-trigger",
4695
4831
  ...e
4696
4832
  });
4697
4833
  }
4698
- function za({ className: e, sideOffset: t = 0, children: n, ...r }) {
4834
+ function Ka({ className: e, sideOffset: t = 0, children: n, ...r }) {
4699
4835
  return /* @__PURE__ */ X(Oe.Portal, { children: /* @__PURE__ */ Z(Oe.Content, {
4700
4836
  "data-slot": "tooltip-content",
4701
4837
  sideOffset: t,
@@ -4705,6 +4841,6 @@ function za({ className: e, sideOffset: t = 0, children: n, ...r }) {
4705
4841
  }) });
4706
4842
  }
4707
4843
  //#endregion
4708
- export { st as ActionsMenu, St as AdvancedInput, dn as AdvancedSelect, yr as Alert, Sr as AlertAction, xr as AlertDescription, Cr as AlertDialog, Nr as AlertDialogAction, Pr as AlertDialogCancel, Dr as AlertDialogContent, Mr as AlertDialogDescription, kr as AlertDialogFooter, Or as AlertDialogHeader, Ar as AlertDialogMedia, Er as AlertDialogOverlay, Tr as AlertDialogPortal, jr as AlertDialogTitle, wr as AlertDialogTrigger, br as AlertTitle, On as Badge, $ as Button, Ir as ButtonGroup, Rr as ButtonGroupSeparator, Lr as ButtonGroupText, or as Calendar, sr as CalendarDayButton, Pn as Card, Rn as CardAction, zn as CardContent, Ln as CardDescription, Bn as CardFooter, Fn as CardHeader, En as CardRadioGroup, In as CardTitle, Ur as ChartContainer, qr as ChartLegend, Jr as ChartLegendContent, Wr as ChartStyle, Gr as ChartTooltip, Kr as ChartTooltipContent, fn as Checkbox, 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, kn as CustomTabs, Sn as DataTable, _r as DateTimeRangePicker, jn 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, We as DropdownMenu, Xe as DropdownMenuCheckboxItem, qe as DropdownMenuContent, Je as DropdownMenuGroup, Ye as DropdownMenuItem, $e as DropdownMenuLabel, Ge as DropdownMenuPortal, Ze as DropdownMenuRadioGroup, Qe as DropdownMenuRadioItem, et as DropdownMenuSeparator, tt as DropdownMenuShortcut, nt as DropdownMenuSub, it as DropdownMenuSubContent, rt as DropdownMenuSubTrigger, Ke as DropdownMenuTrigger, Mn as FacetedFilter, mt as Field, ht as FieldContent, vt as FieldDescription, bt as FieldError, ft as FieldGroup, gt as FieldLabel, dt as FieldLegend, yt as FieldSeparator, ut as FieldSet, _t as FieldTitle, Et as FileUpload, Cn as FormDialog, Xr as HoverCard, Qr as HoverCardContent, Zr as HoverCardTrigger, Lt as Input, zt as InputGroup, Vt as InputGroupAddon, Ut as InputGroupButton, Gt as InputGroupInput, Wt as InputGroupText, Kt as InputGroupTextarea, ni as Item, ci as ItemActions, ai as ItemContent, si as ItemDescription, ui as ItemFooter, $r as ItemGroup, li as ItemHeader, ii as ItemMedia, ei as ItemSeparator, oi as ItemTitle, ct as Label, _i as Map, Ui as MapArc, Wi as MapClusterLayer, ji as MapControls, bi as MapMarker, Ni as MapPopup, Pi as MapRoute, xi as MarkerContent, Ei as MarkerLabel, wi as MarkerPopup, Ti as MarkerTooltip, nn as Popover, on as PopoverAnchor, an as PopoverContent, ln as PopoverDescription, sn as PopoverHeader, cn as PopoverTitle, rn as PopoverTrigger, Gi as Progress, Nn as QuickStat, wn as RadioGroup, Tn as RadioGroupItem, Ki as Select, Xi as SelectContent, qi as SelectGroup, Qi as SelectItem, Zi as SelectLabel, ta as SelectScrollDownButton, ea as SelectScrollUpButton, $i as SelectSeparator, Yi as SelectTrigger, Ji as SelectValue, Hn as SensorCard, lt as Separator, Un as Sheet, Gn as SheetClose, Jn as SheetContent, Qn as SheetDescription, Xn as SheetFooter, Yn as SheetHeader, Zn as SheetTitle, Wn as SheetTrigger, $n as SideSheet, er as SideSheetSection, na as Slider, He as Spinner, rr as StatCard, ca as Stepper, pa as StepperDescription, da as StepperIndicator, la as StepperItem, ma as StepperSeparator, fa as StepperTitle, ua as StepperTrigger, ha as Switch, pn as Table, hn as TableBody, bn as TableCaption, yn as TableCell, gn as TableFooter, vn as TableHead, mn as TableHeader, _n as TableRow, ga as Tabs, ba as TabsContent, va as TabsList, ya as TabsTrigger, Rt as Textarea, Ca as Timeline, wa as TimelineContent, Ta as TimelineDate, Ea as TimelineHeader, Da as TimelineIndicator, Oa as TimelineItem, ka as TimelineSeparator, Aa as TimelineTitle, ra as Toaster, Ma as Toggle, Pa as ToggleGroup, Fa as ToggleGroupItem, La as Tooltip, za as TooltipContent, Ia as TooltipProvider, Ra as TooltipTrigger, Dn as badgeVariants, Fr as buttonGroupVariants, Ue as buttonVariants, Q as cn, Be as formatBytes, pr as navigateRange, fr as presetToRange, _a as tabsListVariants, ja as toggleVariants, Ve as useFileUpload, mi as useMap };
4844
+ export { st as ActionsMenu, St as AdvancedInput, dn as AdvancedSelect, Er as Alert, kr as AlertAction, Or as AlertDescription, Ar as AlertDialog, Br as AlertDialogAction, Vr as AlertDialogCancel, Pr as AlertDialogContent, zr as AlertDialogDescription, Ir as AlertDialogFooter, Fr as AlertDialogHeader, Lr as AlertDialogMedia, Nr as AlertDialogOverlay, Mr as AlertDialogPortal, Rr as AlertDialogTitle, jr as AlertDialogTrigger, Dr as AlertTitle, On as Badge, $ as Button, Ur as ButtonGroup, Gr as ButtonGroupSeparator, Wr as ButtonGroupText, pr as Calendar, mr as CalendarDayButton, Fn as Card, zn as CardAction, Bn as CardContent, Rn as CardDescription, Vn as CardFooter, In as CardHeader, En as CardRadioGroup, Ln as CardTitle, Xr as ChartContainer, ei as ChartLegend, ti as ChartLegendContent, Zr as ChartStyle, Qr as ChartTooltip, $r as ChartTooltipContent, fn as Checkbox, 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, kn as CustomTabs, Sn as DataTable, wr as DateTimeRangePicker, jn 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, We as DropdownMenu, Xe as DropdownMenuCheckboxItem, qe as DropdownMenuContent, Je as DropdownMenuGroup, Ye as DropdownMenuItem, $e as DropdownMenuLabel, Ge as DropdownMenuPortal, Ze as DropdownMenuRadioGroup, Qe as DropdownMenuRadioItem, et as DropdownMenuSeparator, tt as DropdownMenuShortcut, nt as DropdownMenuSub, it as DropdownMenuSubContent, rt as DropdownMenuSubTrigger, Ke as DropdownMenuTrigger, Mn as FacetedFilter, mt as Field, ht as FieldContent, vt as FieldDescription, bt as FieldError, ft as FieldGroup, gt as FieldLabel, dt as FieldLegend, yt as FieldSeparator, ut as FieldSet, _t as FieldTitle, Et as FileUpload, Cn as FormDialog, ri as HoverCard, ai as HoverCardContent, ii as HoverCardTrigger, Lt as Input, zt as InputGroup, Vt as InputGroupAddon, Ut as InputGroupButton, Gt as InputGroupInput, Wt as InputGroupText, Kt as InputGroupTextarea, li as Item, hi as ItemActions, fi as ItemContent, mi as ItemDescription, _i as ItemFooter, oi as ItemGroup, gi as ItemHeader, di as ItemMedia, si as ItemSeparator, pi as ItemTitle, ct as Label, wi as Map, Xi as MapArc, Zi as MapClusterLayer, Ri as MapControls, Di as MapMarker, Bi as MapPopup, Vi as MapRoute, Oi as MarkerContent, Ni as MarkerLabel, ji as MarkerPopup, Mi as MarkerTooltip, nn as Popover, on as PopoverAnchor, an as PopoverContent, ln as PopoverDescription, sn as PopoverHeader, cn as PopoverTitle, rn as PopoverTrigger, Qi as Progress, Nn as QuickStat, wn as RadioGroup, Tn as RadioGroupItem, $i as Select, ra as SelectContent, ea as SelectGroup, aa as SelectItem, ia as SelectLabel, ca as SelectScrollDownButton, sa as SelectScrollUpButton, oa as SelectSeparator, na as SelectTrigger, ta as SelectValue, Un as SensorCard, lt as Separator, Wn as Sheet, Kn as SheetClose, Yn as SheetContent, $n as SheetDescription, Zn as SheetFooter, Xn as SheetHeader, Qn as SheetTitle, Gn as SheetTrigger, er as SideSheet, tr as SideSheetSection, la as Slider, He as Spinner, ir as StatCard, lr as StatusAvatar, cr as StatusIcon, ur as StatusList, dr as StatusListGroup, fr as StatusListItem, ha as Stepper, ba as StepperDescription, va as StepperIndicator, ga as StepperItem, xa as StepperSeparator, ya as StepperTitle, _a as StepperTrigger, Sa as Switch, pn as Table, hn as TableBody, bn as TableCaption, yn as TableCell, gn as TableFooter, vn as TableHead, mn as TableHeader, _n as TableRow, Ca as Tabs, Da as TabsContent, Ta as TabsList, Ea as TabsTrigger, Rt as Textarea, Aa as Timeline, ja as TimelineContent, Ma as TimelineDate, Na as TimelineHeader, Pa as TimelineIndicator, Fa as TimelineItem, Ia as TimelineSeparator, La as TimelineTitle, ua as Toaster, za as Toggle, Va as ToggleGroup, Ha as ToggleGroupItem, Wa as Tooltip, Ka as TooltipContent, Ua as TooltipProvider, Ga as TooltipTrigger, Dn as badgeVariants, Hr as buttonGroupVariants, Ue as buttonVariants, Pn as cardVariants, Q as cn, Be as formatBytes, br as navigateRange, yr as presetToRange, wa as tabsListVariants, Ra as toggleVariants, Ve as useFileUpload, xi as useMap };
4709
4845
 
4710
4846
  //# sourceMappingURL=index.js.map