@uxuissk/design-system 0.8.2 → 0.8.4

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.
@@ -1,7 +1,7 @@
1
- import { jsx as e, jsxs as a, Fragment as ge } from "react/jsx-runtime";
2
- import pe, { forwardRef as Pe, useState as j, useCallback as Q, useRef as ee, useContext as lt, createContext as it, useEffect as ne, useMemo as se, useId as mr } from "react";
3
- import { Loader2 as Re, X as le, EyeOff as an, Eye as ln, AlertCircle as Ie, CheckCircle2 as Ne, XCircle as hr, AlertTriangle as br, Info as pr, Minus as st, Check as me, Calendar as gr, ChevronsLeft as Mt, ChevronLeft as Fe, ChevronRight as fe, ChevronsRight as Lt, Clock as Ct, MoreHorizontal as vr, Search as Ye, ChevronUp as Ge, ChevronDown as Me, ChevronsUpDown as Nt, Slash as sn, Dot as dn, Copy as Pt, Inbox as cn, Plus as jt, Upload as Ve, Image as un, Film as fn, FileText as mn, File as xr, ZoomOut as hn, ZoomIn as yr, RotateCw as bn, ExternalLink as pn, Bell as wr, BellOff as gn, Heart as vn, ThumbsUp as xn, Star as yn, PanelLeftOpen as wn, PanelLeftClose as Nn, ArrowUpRight as Nr, ArrowDownRight as $r, Circle as Yt, Menu as Gt, FolderOpen as $n, Folder as Sn, SlidersHorizontal as kn, Columns3 as zn, GripVertical as Fn, Trash2 as $t, Link as Wn, Unlink as Mn, Heading2 as Ln, Quote as Cn, Code as jn, AlignLeft as Dn, AlignCenter as An, AlignRight as En, List as Sr, ListOrdered as In, Bold as Tn, Italic as Bn, Underline as _n, Strikethrough as Hn, Undo as On, Redo as Rn, Minimize2 as Pn, Maximize2 as Yn, Grid as Gn } from "lucide-react";
4
- import Un, { createPortal as dt } from "react-dom";
1
+ import { jsx as e, jsxs as a, Fragment as ve } from "react/jsx-runtime";
2
+ import ge, { forwardRef as Xe, useState as j, useCallback as Q, useRef as V, useContext as ct, createContext as ut, useEffect as ne, useMemo as se, useId as mr } from "react";
3
+ import { Loader2 as Ze, X as ie, EyeOff as an, Eye as ln, AlertCircle as Pe, CheckCircle2 as $e, XCircle as hr, AlertTriangle as br, Info as pr, Minus as ft, Check as me, Calendar as gr, ChevronsLeft as Lt, ChevronLeft as Me, ChevronRight as fe, ChevronsRight as Ct, Clock as jt, MoreHorizontal as vr, Search as qe, ChevronUp as Je, ChevronDown as Ie, ChevronsUpDown as $t, Slash as sn, Dot as dn, Copy as Pt, Inbox as cn, Plus as Dt, Upload as nt, Image as un, Film as fn, FileText as mn, File as xr, ZoomOut as hn, ZoomIn as yr, RotateCw as bn, ExternalLink as pn, Bell as wr, BellOff as gn, Heart as vn, ThumbsUp as xn, Star as yn, PanelLeftOpen as wn, PanelLeftClose as Nn, ArrowUpRight as Nr, ArrowDownRight as $r, Circle as Yt, Menu as Gt, FolderOpen as $n, Folder as Sn, SlidersHorizontal as kn, Columns3 as zn, GripVertical as Fn, Trash2 as St, Link as Wn, Unlink as Mn, Heading2 as Ln, Quote as Cn, Code as jn, AlignLeft as Dn, AlignCenter as An, AlignRight as En, List as Sr, ListOrdered as In, Bold as Tn, Italic as Bn, Underline as _n, Strikethrough as Hn, Undo as Rn, Redo as On, Minimize2 as Pn, Maximize2 as Yn, Grid as Gn } from "lucide-react";
4
+ import Un, { createPortal as Qe } from "react-dom";
5
5
  const Kn = {
6
6
  sm: "h-8 px-3 gap-1.5",
7
7
  // 32px
@@ -28,7 +28,7 @@ const Kn = {
28
28
  ghost: "bg-transparent text-foreground border border-transparent hover:bg-muted active:bg-muted/80",
29
29
  destructive: "bg-destructive text-destructive-foreground border border-destructive hover:bg-destructive/90 active:bg-destructive/80 shadow-elevation-sm",
30
30
  link: "bg-transparent text-primary border border-transparent underline-offset-4 hover:underline px-0 h-auto"
31
- }, Xn = Pe(
31
+ }, Xn = Xe(
32
32
  ({
33
33
  variant: t = "primary",
34
34
  size: r = "md",
@@ -60,10 +60,10 @@ const Kn = {
60
60
  `,
61
61
  style: Zn[r],
62
62
  ...v,
63
- children: n ? /* @__PURE__ */ a(ge, { children: [
64
- /* @__PURE__ */ e(Re, { size: kr[r], className: "animate-spin flex-shrink-0" }),
63
+ children: n ? /* @__PURE__ */ a(ve, { children: [
64
+ /* @__PURE__ */ e(Ze, { size: kr[r], className: "animate-spin flex-shrink-0" }),
65
65
  o && /* @__PURE__ */ e("span", { children: o })
66
- ] }) : /* @__PURE__ */ a(ge, { children: [
66
+ ] }) : /* @__PURE__ */ a(ve, { children: [
67
67
  l && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: l }),
68
68
  f && /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-2", children: f }),
69
69
  i && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: i })
@@ -73,7 +73,7 @@ const Kn = {
73
73
  }
74
74
  );
75
75
  Xn.displayName = "DSButton";
76
- const qn = Pe(
76
+ const qn = Xe(
77
77
  ({
78
78
  variant: t = "ghost",
79
79
  size: r = "md",
@@ -106,7 +106,7 @@ const qn = Pe(
106
106
  ${i}
107
107
  `,
108
108
  ...d,
109
- children: n ? /* @__PURE__ */ e(Re, { size: kr[r], className: "animate-spin" }) : o
109
+ children: n ? /* @__PURE__ */ e(Ze, { size: kr[r], className: "animate-spin" }) : o
110
110
  }
111
111
  );
112
112
  }
@@ -166,11 +166,11 @@ const Fr = {
166
166
  error: "!border-destructive ring-destructive/20",
167
167
  success: "!border-chart-2 ring-chart-2/20",
168
168
  warning: "!border-chart-5 ring-chart-5/20"
169
- }, et = {
169
+ }, ot = {
170
170
  fontFamily: "var(--font-label)",
171
171
  fontSize: "var(--text-label)",
172
172
  fontWeight: "var(--weight-label)"
173
- }, Jn = Pe(
173
+ }, Jn = Xe(
174
174
  ({
175
175
  label: t,
176
176
  helperText: r,
@@ -198,14 +198,14 @@ const Fr = {
198
198
  className: W = "",
199
199
  ...M
200
200
  }, F) => {
201
- const [L, I] = j(!1), [C, N] = j(!1), [S, A] = j(w ?? ""), E = y !== void 0 ? y : S, O = String(E).length, _ = M.maxLength, B = Fr[l], K = Wr[i], H = n ? "error" : d, X = m === "password", ae = X && C ? "text" : m, q = Q(
201
+ const [L, I] = j(!1), [C, N] = j(!1), [S, A] = j(w ?? ""), E = y !== void 0 ? y : S, R = String(E).length, _ = M.maxLength, B = Fr[l], q = Wr[i], H = n ? "error" : d, K = m === "password", ae = K && C ? "text" : m, G = Q(
202
202
  (T) => {
203
203
  A(T.target.value), z == null || z(T);
204
204
  },
205
205
  [z]
206
206
  ), re = Q(() => {
207
207
  A(""), $ == null || $();
208
- }, [$]), P = String(E).length > 0;
208
+ }, [$]), Y = String(E).length > 0;
209
209
  return /* @__PURE__ */ a("div", { className: `${p ? "w-full" : "inline-flex flex-col"} ${W}`, children: [
210
210
  t && /* @__PURE__ */ a("label", { className: "block mb-1.5 text-foreground", children: [
211
211
  t,
@@ -216,15 +216,15 @@ const Fr = {
216
216
  {
217
217
  className: `flex items-center rounded-[var(--radius-md)] transition-all duration-150
218
218
  ${B.wrapper}
219
- ${K.base}
220
- ${k ? "" : K.hover}
221
- ${L && !k ? K.focus : ""}
219
+ ${q.base}
220
+ ${k ? "" : q.hover}
221
+ ${L && !k ? q.focus : ""}
222
222
  ${k ? "opacity-50 cursor-not-allowed" : ""}
223
223
  ${Mr[H]}
224
224
  `,
225
225
  children: [
226
226
  c && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", children: c }),
227
- f && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", style: et, children: f }),
227
+ f && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", style: ot, children: f }),
228
228
  /* @__PURE__ */ e(
229
229
  "input",
230
230
  {
@@ -232,7 +232,7 @@ const Fr = {
232
232
  type: ae,
233
233
  disabled: k || u,
234
234
  value: E,
235
- onChange: q,
235
+ onChange: G,
236
236
  onFocus: () => I(!0),
237
237
  onBlur: () => I(!1),
238
238
  className: "flex-1 min-w-0 bg-transparent border-none outline-none text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed",
@@ -240,17 +240,17 @@ const Fr = {
240
240
  ...M
241
241
  }
242
242
  ),
243
- h && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", style: et, children: h }),
244
- v && P && !k && /* @__PURE__ */ e(
243
+ h && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", style: ot, children: h }),
244
+ v && Y && !k && /* @__PURE__ */ e(
245
245
  "button",
246
246
  {
247
247
  type: "button",
248
248
  onClick: re,
249
249
  className: "flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer p-0.5",
250
- children: /* @__PURE__ */ e(le, { size: B.icon - 2 })
250
+ children: /* @__PURE__ */ e(ie, { size: B.icon - 2 })
251
251
  }
252
252
  ),
253
- X && x && /* @__PURE__ */ e(
253
+ K && x && /* @__PURE__ */ e(
254
254
  "button",
255
255
  {
256
256
  type: "button",
@@ -259,24 +259,24 @@ const Fr = {
259
259
  children: C ? /* @__PURE__ */ e(an, { size: B.icon }) : /* @__PURE__ */ e(ln, { size: B.icon })
260
260
  }
261
261
  ),
262
- s && !X && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", children: s }),
262
+ s && !K && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", children: s }),
263
263
  u && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: /* @__PURE__ */ e("span", { className: "block w-4 h-4 border-2 border-muted-foreground border-t-transparent rounded-full animate-spin" }) })
264
264
  ]
265
265
  }
266
266
  ),
267
- g && _ && /* @__PURE__ */ a("div", { className: "flex justify-end mt-1", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: O >= _ ? "var(--destructive)" : "var(--muted-foreground)" }, children: [
268
- O,
267
+ g && _ && /* @__PURE__ */ a("div", { className: "flex justify-end mt-1", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: R >= _ ? "var(--destructive)" : "var(--muted-foreground)" }, children: [
268
+ R,
269
269
  " / ",
270
270
  _
271
271
  ] }),
272
272
  (r || n || o) && /* @__PURE__ */ a("div", { className: "mt-1.5 flex items-center gap-1", children: [
273
- H === "error" && /* @__PURE__ */ e(Ie, { size: 12, className: "text-destructive flex-shrink-0" }),
274
- H === "success" && /* @__PURE__ */ e(Ne, { size: 12, className: "text-chart-2 flex-shrink-0" }),
273
+ H === "error" && /* @__PURE__ */ e(Pe, { size: 12, className: "text-destructive flex-shrink-0" }),
274
+ H === "success" && /* @__PURE__ */ e($e, { size: 12, className: "text-chart-2 flex-shrink-0" }),
275
275
  /* @__PURE__ */ e(
276
276
  "span",
277
277
  {
278
278
  className: `${H === "error" ? "text-destructive" : H === "success" ? "text-chart-2" : "text-muted-foreground"}`,
279
- style: et,
279
+ style: ot,
280
280
  children: n || o || r
281
281
  }
282
282
  )
@@ -285,7 +285,7 @@ const Fr = {
285
285
  }
286
286
  );
287
287
  Jn.displayName = "DSInput";
288
- const Qn = Pe(
288
+ const Qn = Xe(
289
289
  ({
290
290
  label: t,
291
291
  helperText: r,
@@ -358,13 +358,13 @@ const Qn = Pe(
358
358
  }
359
359
  ),
360
360
  (r || n || o) && /* @__PURE__ */ a("div", { className: "mt-1.5 flex items-center gap-1", children: [
361
- W === "error" && /* @__PURE__ */ e(Ie, { size: 12, className: "text-destructive flex-shrink-0" }),
362
- W === "success" && /* @__PURE__ */ e(Ne, { size: 12, className: "text-chart-2 flex-shrink-0" }),
361
+ W === "error" && /* @__PURE__ */ e(Pe, { size: 12, className: "text-destructive flex-shrink-0" }),
362
+ W === "success" && /* @__PURE__ */ e($e, { size: 12, className: "text-chart-2 flex-shrink-0" }),
363
363
  /* @__PURE__ */ e(
364
364
  "span",
365
365
  {
366
366
  className: `${W === "error" ? "text-destructive" : W === "success" ? "text-chart-2" : "text-muted-foreground"}`,
367
- style: et,
367
+ style: ot,
368
368
  children: n || o || r
369
369
  }
370
370
  )
@@ -375,7 +375,7 @@ const Qn = Pe(
375
375
  Qn.displayName = "DSTextarea";
376
376
  const Vn = {
377
377
  info: { bg: "bg-primary/5", border: "border-primary/30", text: "text-primary", icon: /* @__PURE__ */ e(pr, { size: 18 }) },
378
- success: { bg: "bg-chart-2/5", border: "border-chart-2/30", text: "text-chart-2", icon: /* @__PURE__ */ e(Ne, { size: 18 }) },
378
+ success: { bg: "bg-chart-2/5", border: "border-chart-2/30", text: "text-chart-2", icon: /* @__PURE__ */ e($e, { size: 18 }) },
379
379
  warning: { bg: "bg-chart-5/5", border: "border-chart-5/30", text: "text-chart-5", icon: /* @__PURE__ */ e(br, { size: 18 }) },
380
380
  error: { bg: "bg-destructive/5", border: "border-destructive/30", text: "text-destructive", icon: /* @__PURE__ */ e(hr, { size: 18 }) }
381
381
  };
@@ -392,31 +392,31 @@ function Lr({ variant: t = "info", title: r, children: n, dismissible: o = !1, o
392
392
  /* @__PURE__ */ e("span", { className: "text-foreground block", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, children: n }),
393
393
  i && /* @__PURE__ */ e("div", { className: "mt-2", children: i })
394
394
  ] }),
395
- o && /* @__PURE__ */ e("button", { onClick: v, className: "flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer", "aria-label": "Dismiss", children: /* @__PURE__ */ e(le, { size: 16 }) })
395
+ o && /* @__PURE__ */ e("button", { onClick: v, className: "flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer", "aria-label": "Dismiss", children: /* @__PURE__ */ e(ie, { size: 16 }) })
396
396
  ] });
397
397
  }
398
- let Cr = [], He = [];
398
+ let Cr = [], Ue = [];
399
399
  function Ut() {
400
- Cr.forEach((t) => t([...He]));
400
+ Cr.forEach((t) => t([...Ue]));
401
401
  }
402
- const De = {
402
+ const He = {
403
403
  show: (t) => {
404
404
  const r = { ...t, id: `toast-${Date.now()}-${Math.random().toString(36).slice(2)}` };
405
- He = [...He, r], Ut(), setTimeout(() => {
406
- De.dismiss(r.id);
405
+ Ue = [...Ue, r], Ut(), setTimeout(() => {
406
+ He.dismiss(r.id);
407
407
  }, t.duration ?? 4e3);
408
408
  },
409
- info: (t, r) => De.show({ variant: "info", message: t, title: r }),
410
- success: (t, r) => De.show({ variant: "success", message: t, title: r }),
411
- warning: (t, r) => De.show({ variant: "warning", message: t, title: r }),
412
- error: (t, r) => De.show({ variant: "error", message: t, title: r }),
409
+ info: (t, r) => He.show({ variant: "info", message: t, title: r }),
410
+ success: (t, r) => He.show({ variant: "success", message: t, title: r }),
411
+ warning: (t, r) => He.show({ variant: "warning", message: t, title: r }),
412
+ error: (t, r) => He.show({ variant: "error", message: t, title: r }),
413
413
  dismiss: (t) => {
414
- He = He.filter((r) => r.id !== t), Ut();
414
+ Ue = Ue.filter((r) => r.id !== t), Ut();
415
415
  }
416
416
  };
417
417
  function eo() {
418
- const [t, r] = j([]), n = ee(!1);
419
- return n.current || (n.current = !0, Cr.push(r)), t.length === 0 ? null : /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-[200] flex flex-col gap-2 max-w-sm w-full pointer-events-none", children: t.map((o) => /* @__PURE__ */ e("div", { className: "pointer-events-auto animate-in slide-in-from-right fade-in duration-300", children: /* @__PURE__ */ e(Lr, { variant: o.variant, title: o.title, dismissible: !0, onDismiss: () => De.dismiss(o.id), children: o.message }) }, o.id)) });
418
+ const [t, r] = j([]), n = V(!1);
419
+ return n.current || (n.current = !0, Cr.push(r)), t.length === 0 ? null : /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-[200] flex flex-col gap-2 max-w-sm w-full pointer-events-none", children: t.map((o) => /* @__PURE__ */ e("div", { className: "pointer-events-auto animate-in slide-in-from-right fade-in duration-300", children: /* @__PURE__ */ e(Lr, { variant: o.variant, title: o.title, dismissible: !0, onDismiss: () => He.dismiss(o.id), children: o.message }) }, o.id)) });
420
420
  }
421
421
  const to = {
422
422
  default: "bg-primary text-primary-foreground",
@@ -492,7 +492,7 @@ function pi({
492
492
  onClick: d,
493
493
  className: "flex-shrink-0 hover:opacity-70 transition-opacity cursor-pointer rounded-full -mr-0.5",
494
494
  "aria-label": "Remove",
495
- children: /* @__PURE__ */ e(le, { size: s.iconSize })
495
+ children: /* @__PURE__ */ e(ie, { size: s.iconSize })
496
496
  }
497
497
  )
498
498
  ]
@@ -519,7 +519,7 @@ const oo = {
519
519
  descStyle: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }
520
520
  }
521
521
  };
522
- function ot({
522
+ function st({
523
523
  checked: t,
524
524
  indeterminate: r = !1,
525
525
  defaultChecked: n = !1,
@@ -532,7 +532,7 @@ function ot({
532
532
  className: f = "",
533
533
  id: h
534
534
  }) {
535
- const [v, x] = j(n), u = t ?? v, p = oo[d], b = h ?? `cb-${pe.useId()}`, g = () => {
535
+ const [v, x] = j(n), u = t ?? v, p = oo[d], b = h ?? `cb-${ge.useId()}`, g = () => {
536
536
  if (c) return;
537
537
  const k = !u;
538
538
  t === void 0 && x(k), o == null || o(k);
@@ -550,7 +550,7 @@ function ot({
550
550
  ${$ ? "bg-primary border-primary text-primary-foreground" : s ? "border-destructive bg-card" : "border-border bg-card hover:border-primary/50"}
551
551
  ${c ? "!cursor-not-allowed" : ""}
552
552
  focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 outline-none`,
553
- children: r ? /* @__PURE__ */ e(st, { size: p.icon, strokeWidth: 3 }) : u ? /* @__PURE__ */ e(me, { size: p.icon, strokeWidth: 3 }) : null
553
+ children: r ? /* @__PURE__ */ e(ft, { size: p.icon, strokeWidth: 3 }) : u ? /* @__PURE__ */ e(me, { size: p.icon, strokeWidth: 3 }) : null
554
554
  }
555
555
  ),
556
556
  (l || i) && /* @__PURE__ */ a("div", { className: "min-w-0", children: [
@@ -575,7 +575,7 @@ function gi({ label: t, children: r, direction: n = "vertical", className: o = "
575
575
  /* @__PURE__ */ e("div", { className: `flex ${n === "vertical" ? "flex-col gap-3" : "flex-wrap gap-4"}`, children: r })
576
576
  ] });
577
577
  }
578
- const jr = it(null), ao = {
578
+ const jr = ut(null), ao = {
579
579
  sm: {
580
580
  outer: "w-4 h-4",
581
581
  inner: "w-1.5 h-1.5",
@@ -596,7 +596,7 @@ const jr = it(null), ao = {
596
596
  }
597
597
  };
598
598
  function vi({ value: t, label: r, description: n, disabled: o, size: l, className: i = "" }) {
599
- const d = lt(jr), c = d ? d.value === t : !1, s = o ?? (d == null ? void 0 : d.disabled) ?? !1, f = l ?? (d == null ? void 0 : d.size) ?? "md", h = ao[f], v = () => {
599
+ const d = ct(jr), c = d ? d.value === t : !1, s = o ?? (d == null ? void 0 : d.disabled) ?? !1, f = l ?? (d == null ? void 0 : d.size) ?? "md", h = ao[f], v = () => {
600
600
  s || d == null || d.onChange(t);
601
601
  };
602
602
  return /* @__PURE__ */ a("div", { className: `inline-flex items-start gap-2.5 ${s ? "opacity-50" : ""} ${i}`, children: [
@@ -650,7 +650,7 @@ function xi({
650
650
  f && /* @__PURE__ */ e("span", { className: "text-destructive block mt-1.5", style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" }, children: f })
651
651
  ] }) });
652
652
  }
653
- const lo = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ht = [
653
+ const lo = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], bt = [
654
654
  "January",
655
655
  "February",
656
656
  "March",
@@ -664,7 +664,7 @@ const lo = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ht = [
664
664
  "November",
665
665
  "December"
666
666
  ];
667
- function Oe(t, r) {
667
+ function Ke(t, r) {
668
668
  return t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate();
669
669
  }
670
670
  function Kt(t, r, n) {
@@ -673,7 +673,7 @@ function Kt(t, r, n) {
673
673
  return o > r.getTime() && o < n.getTime();
674
674
  }
675
675
  function Zt(t, r, n, o) {
676
- return !!(r && t < new Date(r.getFullYear(), r.getMonth(), r.getDate()) || n && t > new Date(n.getFullYear(), n.getMonth(), n.getDate()) || o != null && o.some((l) => Oe(l, t)));
676
+ return !!(r && t < new Date(r.getFullYear(), r.getMonth(), r.getDate()) || n && t > new Date(n.getFullYear(), n.getMonth(), n.getDate()) || o != null && o.some((l) => Ke(l, t)));
677
677
  }
678
678
  function io(t, r) {
679
679
  return new Date(t, r + 1, 0).getDate();
@@ -684,7 +684,7 @@ function Xt(t, r) {
684
684
  for (let i = 1; i <= o; i++) l.push(new Date(t, r, i));
685
685
  return l;
686
686
  }
687
- function qe(t, r) {
687
+ function et(t, r) {
688
688
  if (!t) return "";
689
689
  const n = String(t.getDate()).padStart(2, "0"), o = String(t.getMonth() + 1).padStart(2, "0"), l = t.getFullYear();
690
690
  let i = `${n}/${o}/${l}`;
@@ -760,290 +760,312 @@ function yi({
760
760
  footer: w,
761
761
  fullWidth: z = !1
762
762
  }) {
763
- const [W, M] = j(!1), [F, L] = j(() => t ?? /* @__PURE__ */ new Date()), [I, C] = j("days"), [N, S] = j(null), [A, E] = j(() => t ? t.getHours() : 0), [O, _] = j(() => t ? t.getMinutes() : 0), B = ee(null), K = so[h];
763
+ const [W, M] = j(!1), [F, L] = j(() => t ?? /* @__PURE__ */ new Date()), [I, C] = j("days"), [N, S] = j(null), [A, E] = j(() => t ? t.getHours() : 0), [R, _] = j(() => t ? t.getMinutes() : 0), B = V(null), q = V(null), H = V(null), [K, ae] = j(null), G = so[h];
764
764
  ne(() => {
765
- function Y(te) {
766
- B.current && !B.current.contains(te.target) && (M(!1), C("days"));
765
+ if (!W || !q.current) return;
766
+ const O = () => {
767
+ const ee = q.current.getBoundingClientRect(), ye = l === "range" ? 560 : 300, oe = g ? 390 : 360, je = ee.left + ye > window.innerWidth ? Math.max(8, window.innerWidth - ye - 8) : ee.left, be = ee.bottom + 6 + oe > window.innerHeight ? ee.top - oe - 2 : ee.bottom + 6;
768
+ ae({ top: be, left: je });
769
+ };
770
+ return O(), window.addEventListener("scroll", O, !0), window.addEventListener("resize", O), () => {
771
+ window.removeEventListener("scroll", O, !0), window.removeEventListener("resize", O);
772
+ };
773
+ }, [W, l, g]), ne(() => {
774
+ function O(ee) {
775
+ var be, De;
776
+ const ye = ee.target, oe = ((be = B.current) == null ? void 0 : be.contains(ye)) ?? !1, je = ((De = H.current) == null ? void 0 : De.contains(ye)) ?? !1;
777
+ !oe && !je && (M(!1), C("days"));
767
778
  }
768
- return W && document.addEventListener("mousedown", Y), () => document.removeEventListener("mousedown", Y);
779
+ return W && document.addEventListener("mousedown", O), () => document.removeEventListener("mousedown", O);
769
780
  }, [W]), se(
770
781
  () => Xt(F.getFullYear(), F.getMonth()),
771
782
  [F]
772
783
  );
773
- const H = se(() => /* @__PURE__ */ new Date(), []), X = () => L(new Date(F.getFullYear(), F.getMonth() - 1, 1)), ae = () => L(new Date(F.getFullYear(), F.getMonth() + 1, 1)), q = () => L(new Date(F.getFullYear() - 1, F.getMonth(), 1)), re = () => L(new Date(F.getFullYear() + 1, F.getMonth(), 1)), P = Q(
774
- (Y) => {
775
- if (!Zt(Y, $, k, m))
784
+ const re = se(() => /* @__PURE__ */ new Date(), []), Y = () => L(new Date(F.getFullYear(), F.getMonth() - 1, 1)), T = () => L(new Date(F.getFullYear(), F.getMonth() + 1, 1)), J = () => L(new Date(F.getFullYear() - 1, F.getMonth(), 1)), X = () => L(new Date(F.getFullYear() + 1, F.getMonth(), 1)), ue = Q(
785
+ (O) => {
786
+ if (!Zt(O, $, k, m))
776
787
  if (l === "single") {
777
- let te = new Date(Y);
778
- g && te.setHours(A, O), n == null || n(te), g || (M(!1), C("days"));
788
+ let ee = new Date(O);
789
+ g && ee.setHours(A, R), n == null || n(ee), g || (M(!1), C("days"));
779
790
  } else {
780
- const te = r == null ? void 0 : r.start, he = r == null ? void 0 : r.end;
781
- !te || te && he ? o == null || o({ start: Y, end: null }) : (Y < te ? o == null || o({ start: Y, end: te }) : o == null || o({ start: te, end: Y }), M(!1), C("days"));
791
+ const ee = r == null ? void 0 : r.start, ye = r == null ? void 0 : r.end;
792
+ !ee || ee && ye ? o == null || o({ start: O, end: null }) : (O < ee ? o == null || o({ start: O, end: ee }) : o == null || o({ start: ee, end: O }), M(!1), C("days"));
782
793
  }
783
794
  },
784
- [l, n, o, r, $, k, m, g, A, O]
785
- ), T = (Y) => {
786
- Y.stopPropagation(), l === "single" ? n == null || n(null) : o == null || o({ start: null, end: null });
787
- }, J = () => {
788
- const Y = /* @__PURE__ */ new Date();
789
- if (L(Y), l === "single") {
790
- const te = new Date(Y);
791
- g && te.setHours(A, O), n == null || n(te), g || (M(!1), C("days"));
795
+ [l, n, o, r, $, k, m, g, A, R]
796
+ ), ze = (O) => {
797
+ O.stopPropagation(), l === "single" ? n == null || n(null) : o == null || o({ start: null, end: null });
798
+ }, Ye = () => {
799
+ const O = /* @__PURE__ */ new Date();
800
+ if (L(O), l === "single") {
801
+ const ee = new Date(O);
802
+ g && ee.setHours(A, R), n == null || n(ee), g || (M(!1), C("days"));
792
803
  }
793
804
  }, Z = () => {
794
805
  if (t) {
795
- const Y = new Date(t);
796
- Y.setHours(A, O), n == null || n(Y);
806
+ const O = new Date(t);
807
+ O.setHours(A, R), n == null || n(O);
797
808
  }
798
809
  M(!1), C("days");
799
- }, ue = se(() => l === "single" ? qe(t, g) : r != null && r.start && (r != null && r.end) ? `${qe(r.start)} – ${qe(r.end)}` : r != null && r.start ? `${qe(r.start)} – ...` : "", [l, t, r, g]), we = l === "single" ? !!t : !!(r != null && r.start || r != null && r.end), Te = x === "error" ? /* @__PURE__ */ e(Ie, { size: K.icon, className: "text-destructive flex-shrink-0" }) : x === "success" ? /* @__PURE__ */ e(Ne, { size: K.icon, className: "text-chart-2 flex-shrink-0" }) : null, G = x === "error" ? s : x === "success" ? f : c, ke = x === "error" ? "text-destructive" : x === "success" ? "text-chart-2" : "text-muted-foreground", Be = {
810
+ }, Fe = se(() => l === "single" ? et(t, g) : r != null && r.start && (r != null && r.end) ? `${et(r.start)} – ${et(r.end)}` : r != null && r.start ? `${et(r.start)} – ...` : "", [l, t, r, g]), Le = l === "single" ? !!t : !!(r != null && r.start || r != null && r.end), xe = x === "error" ? /* @__PURE__ */ e(Pe, { size: G.icon, className: "text-destructive flex-shrink-0" }) : x === "success" ? /* @__PURE__ */ e($e, { size: G.icon, className: "text-chart-2 flex-shrink-0" }) : null, Te = x === "error" ? s : x === "success" ? f : c, Ve = x === "error" ? "text-destructive" : x === "success" ? "text-chart-2" : "text-muted-foreground", mt = {
800
811
  fontFamily: "var(--font-label)",
801
812
  fontSize: "var(--text-label)",
802
813
  fontWeight: "var(--weight-label)"
803
- }, ve = {
814
+ }, Ce = {
804
815
  fontFamily: "var(--font-button)",
805
816
  fontSize: "var(--text-button)",
806
817
  fontWeight: "var(--weight-button)"
807
- }, ie = {
818
+ }, le = {
808
819
  fontFamily: "var(--font-button)",
809
820
  fontSize: "var(--text-button)",
810
821
  fontWeight: "var(--weight-button)"
811
- }, Le = Math.floor(F.getFullYear() / 12) * 12;
822
+ }, he = Math.floor(F.getFullYear() / 12) * 12;
812
823
  return /* @__PURE__ */ a("div", { className: `relative ${z ? "w-full" : ""}`, ref: B, children: [
813
- i && /* @__PURE__ */ a("label", { className: "block text-foreground mb-1.5", style: Be, children: [
824
+ i && /* @__PURE__ */ a("label", { className: "block text-foreground mb-1.5", style: mt, children: [
814
825
  i,
815
826
  p && /* @__PURE__ */ e("span", { className: "text-destructive ml-0.5", children: "*" })
816
827
  ] }),
817
828
  /* @__PURE__ */ a(
818
829
  "button",
819
830
  {
831
+ ref: q,
820
832
  type: "button",
821
833
  onClick: () => !u && M(!W),
822
834
  disabled: u,
823
835
  className: `
824
836
  w-full flex items-center gap-2 rounded-[var(--radius-md)] transition-all cursor-pointer
825
- ${K.trigger}
837
+ ${G.trigger}
826
838
  ${co[v]}
827
839
  ${uo[x]}
828
840
  ${u ? "opacity-50 cursor-not-allowed" : "hover:border-primary/50"}
829
841
  `,
830
- style: K.text,
842
+ style: G.text,
831
843
  children: [
832
- /* @__PURE__ */ e(gr, { size: K.icon, className: "text-muted-foreground flex-shrink-0" }),
833
- /* @__PURE__ */ e("span", { className: `flex-1 text-left truncate ${we ? "text-foreground" : "text-muted-foreground"}`, children: we ? ue : d || (l === "range" ? "Select date range…" : "Select date…") }),
834
- Te,
835
- b && we && !u && /* @__PURE__ */ e(
844
+ /* @__PURE__ */ e(gr, { size: G.icon, className: "text-muted-foreground flex-shrink-0" }),
845
+ /* @__PURE__ */ e("span", { className: `flex-1 text-left truncate ${Le ? "text-foreground" : "text-muted-foreground"}`, children: Le ? Fe : d || (l === "range" ? "Select date range…" : "Select date…") }),
846
+ xe,
847
+ b && Le && !u && /* @__PURE__ */ e(
836
848
  "span",
837
849
  {
838
- onClick: T,
850
+ onClick: ze,
839
851
  className: "text-muted-foreground hover:text-foreground cursor-pointer",
840
- children: /* @__PURE__ */ e(le, { size: K.icon - 2 })
852
+ children: /* @__PURE__ */ e(ie, { size: G.icon - 2 })
841
853
  }
842
854
  )
843
855
  ]
844
856
  }
845
857
  ),
846
- G && /* @__PURE__ */ e("p", { className: `mt-1.5 ${ke}`, style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" }, children: G }),
847
- W && /* @__PURE__ */ a(
848
- "div",
849
- {
850
- className: "absolute z-50 mt-1.5 bg-popover border border-border rounded-[var(--radius-md)] shadow-elevation-sm overflow-hidden",
851
- style: { minWidth: l === "range" ? "560px" : "300px" },
852
- children: [
853
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between px-4 py-3 border-b border-border bg-card", children: [
854
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
855
- /* @__PURE__ */ e("button", { onClick: q, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Previous year", children: /* @__PURE__ */ e(Mt, { size: 16 }) }),
856
- /* @__PURE__ */ e("button", { onClick: X, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Previous month", children: /* @__PURE__ */ e(Fe, { size: 16 }) })
857
- ] }),
858
- /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
859
- /* @__PURE__ */ e(
860
- "button",
861
- {
862
- onClick: () => C(I === "months" ? "days" : "months"),
863
- className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
864
- style: ie,
865
- children: ht[F.getMonth()]
866
- }
867
- ),
868
- /* @__PURE__ */ e(
869
- "button",
870
- {
871
- onClick: () => C(I === "years" ? "days" : "years"),
872
- className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
873
- style: ie,
874
- children: F.getFullYear()
875
- }
876
- )
877
- ] }),
878
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
879
- /* @__PURE__ */ e("button", { onClick: ae, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next month", children: /* @__PURE__ */ e(fe, { size: 16 }) }),
880
- /* @__PURE__ */ e("button", { onClick: re, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next year", children: /* @__PURE__ */ e(Lt, { size: 16 }) })
881
- ] })
882
- ] }),
883
- I === "days" && /* @__PURE__ */ e("div", { className: `p-3 ${l === "range" ? "flex gap-3" : ""}`, children: (l === "range" ? [0, 1] : [0]).map((Y) => {
884
- const te = new Date(F.getFullYear(), F.getMonth() + Y, 1), he = Xt(te.getFullYear(), te.getMonth());
885
- return /* @__PURE__ */ a("div", { className: "flex-1", children: [
886
- Y > 0 && /* @__PURE__ */ a("div", { className: "text-center mb-2 text-foreground", style: ie, children: [
887
- ht[te.getMonth()],
888
- " ",
889
- te.getFullYear()
858
+ Te && /* @__PURE__ */ e("p", { className: `mt-1.5 ${Ve}`, style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" }, children: Te }),
859
+ W && K && Qe(
860
+ /* @__PURE__ */ a(
861
+ "div",
862
+ {
863
+ ref: H,
864
+ className: "bg-popover border border-border rounded-[var(--radius-md)] shadow-elevation-sm overflow-hidden",
865
+ style: {
866
+ position: "fixed",
867
+ zIndex: 9999,
868
+ top: K.top,
869
+ left: K.left,
870
+ minWidth: l === "range" ? "560px" : "300px"
871
+ },
872
+ children: [
873
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between px-4 py-3 border-b border-border bg-card", children: [
874
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
875
+ /* @__PURE__ */ e("button", { onClick: J, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Previous year", children: /* @__PURE__ */ e(Lt, { size: 16 }) }),
876
+ /* @__PURE__ */ e("button", { onClick: Y, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Previous month", children: /* @__PURE__ */ e(Me, { size: 16 }) })
890
877
  ] }),
891
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: lo.map((oe) => /* @__PURE__ */ e(
892
- "div",
893
- {
894
- className: "text-center text-muted-foreground py-1",
895
- style: ve,
896
- children: oe
897
- },
898
- `${Y}-${oe}`
899
- )) }),
900
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: he.map((oe, Ue) => {
901
- if (!oe) return /* @__PURE__ */ e("div", {}, `empty-${Y}-${Ue}`);
902
- const Ke = Zt(oe, $, k, m), ct = Oe(oe, H), Ce = l === "single" ? t && Oe(oe, t) : (r == null ? void 0 : r.start) && Oe(oe, r.start) || (r == null ? void 0 : r.end) && Oe(oe, r.end), ut = l === "range" && (Kt(oe, (r == null ? void 0 : r.start) ?? null, (r == null ? void 0 : r.end) ?? null) || (r == null ? void 0 : r.start) && !(r != null && r.end) && N && Kt(
903
- oe,
904
- r.start,
905
- N > r.start ? N : null
906
- ));
907
- return /* @__PURE__ */ e(
878
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
879
+ /* @__PURE__ */ e(
908
880
  "button",
909
881
  {
910
- onClick: () => P(oe),
911
- onMouseEnter: () => l === "range" && S(oe),
912
- disabled: Ke,
913
- className: `
914
- ${K.cell} flex items-center justify-center rounded-[var(--radius-sm)] transition-all cursor-pointer
915
- ${Ke ? "opacity-30 cursor-not-allowed" : "hover:bg-muted"}
916
- ${Ce ? "bg-primary text-primary-foreground hover:bg-primary/90" : ""}
917
- ${ut && !Ce ? "bg-accent text-accent-foreground" : ""}
918
- ${ct && !Ce ? "border border-primary text-primary" : ""}
919
- `,
920
- style: ie,
921
- children: oe.getDate()
882
+ onClick: () => C(I === "months" ? "days" : "months"),
883
+ className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
884
+ style: le,
885
+ children: bt[F.getMonth()]
886
+ }
887
+ ),
888
+ /* @__PURE__ */ e(
889
+ "button",
890
+ {
891
+ onClick: () => C(I === "years" ? "days" : "years"),
892
+ className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
893
+ style: le,
894
+ children: F.getFullYear()
895
+ }
896
+ )
897
+ ] }),
898
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
899
+ /* @__PURE__ */ e("button", { onClick: T, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next month", children: /* @__PURE__ */ e(fe, { size: 16 }) }),
900
+ /* @__PURE__ */ e("button", { onClick: X, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next year", children: /* @__PURE__ */ e(Ct, { size: 16 }) })
901
+ ] })
902
+ ] }),
903
+ I === "days" && /* @__PURE__ */ e("div", { className: `p-3 ${l === "range" ? "flex gap-3" : ""}`, children: (l === "range" ? [0, 1] : [0]).map((O) => {
904
+ const ee = new Date(F.getFullYear(), F.getMonth() + O, 1), ye = Xt(ee.getFullYear(), ee.getMonth());
905
+ return /* @__PURE__ */ a("div", { className: "flex-1", children: [
906
+ O > 0 && /* @__PURE__ */ a("div", { className: "text-center mb-2 text-foreground", style: le, children: [
907
+ bt[ee.getMonth()],
908
+ " ",
909
+ ee.getFullYear()
910
+ ] }),
911
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: lo.map((oe) => /* @__PURE__ */ e(
912
+ "div",
913
+ {
914
+ className: "text-center text-muted-foreground py-1",
915
+ style: Ce,
916
+ children: oe
922
917
  },
923
- `${Y}-${oe.getTime()}`
924
- );
925
- }) })
926
- ] }, Y);
927
- }) }),
928
- I === "months" && /* @__PURE__ */ e("div", { className: "p-3 grid grid-cols-3 gap-2", children: ht.map((Y, te) => /* @__PURE__ */ e(
929
- "button",
930
- {
931
- onClick: () => {
932
- L(new Date(F.getFullYear(), te, 1)), C("days");
933
- },
934
- className: `
918
+ `${O}-${oe}`
919
+ )) }),
920
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: ye.map((oe, je) => {
921
+ if (!oe) return /* @__PURE__ */ e("div", {}, `empty-${O}-${je}`);
922
+ const be = Zt(oe, $, k, m), De = Ke(oe, re), Ae = l === "single" ? t && Ke(oe, t) : (r == null ? void 0 : r.start) && Ke(oe, r.start) || (r == null ? void 0 : r.end) && Ke(oe, r.end), Be = l === "range" && (Kt(oe, (r == null ? void 0 : r.start) ?? null, (r == null ? void 0 : r.end) ?? null) || (r == null ? void 0 : r.start) && !(r != null && r.end) && N && Kt(
923
+ oe,
924
+ r.start,
925
+ N > r.start ? N : null
926
+ ));
927
+ return /* @__PURE__ */ e(
928
+ "button",
929
+ {
930
+ onClick: () => ue(oe),
931
+ onMouseEnter: () => l === "range" && S(oe),
932
+ disabled: be,
933
+ className: `
934
+ ${G.cell} flex items-center justify-center rounded-[var(--radius-sm)] transition-all cursor-pointer
935
+ ${be ? "opacity-30 cursor-not-allowed" : "hover:bg-muted"}
936
+ ${Ae ? "bg-primary text-primary-foreground hover:bg-primary/90" : ""}
937
+ ${Be && !Ae ? "bg-accent text-accent-foreground" : ""}
938
+ ${De && !Ae ? "border border-primary text-primary" : ""}
939
+ `,
940
+ style: le,
941
+ children: oe.getDate()
942
+ },
943
+ `${O}-${oe.getTime()}`
944
+ );
945
+ }) })
946
+ ] }, O);
947
+ }) }),
948
+ I === "months" && /* @__PURE__ */ e("div", { className: "p-3 grid grid-cols-3 gap-2", children: bt.map((O, ee) => /* @__PURE__ */ e(
949
+ "button",
950
+ {
951
+ onClick: () => {
952
+ L(new Date(F.getFullYear(), ee, 1)), C("days");
953
+ },
954
+ className: `
935
955
  py-2.5 rounded-[var(--radius-md)] transition-all cursor-pointer
936
- ${F.getMonth() === te ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted"}
956
+ ${F.getMonth() === ee ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted"}
937
957
  `,
938
- style: ie,
939
- children: Y.substring(0, 3)
940
- },
941
- Y
942
- )) }),
943
- I === "years" && /* @__PURE__ */ a("div", { className: "p-3", children: [
944
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-3", children: [
945
- /* @__PURE__ */ e(
958
+ style: le,
959
+ children: O.substring(0, 3)
960
+ },
961
+ O
962
+ )) }),
963
+ I === "years" && /* @__PURE__ */ a("div", { className: "p-3", children: [
964
+ /* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-3", children: [
965
+ /* @__PURE__ */ e(
966
+ "button",
967
+ {
968
+ onClick: () => L(new Date(F.getFullYear() - 12, F.getMonth(), 1)),
969
+ className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
970
+ children: /* @__PURE__ */ e(Me, { size: 16 })
971
+ }
972
+ ),
973
+ /* @__PURE__ */ a("span", { className: "text-foreground", style: le, children: [
974
+ he,
975
+ " – ",
976
+ he + 11
977
+ ] }),
978
+ /* @__PURE__ */ e(
979
+ "button",
980
+ {
981
+ onClick: () => L(new Date(F.getFullYear() + 12, F.getMonth(), 1)),
982
+ className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
983
+ children: /* @__PURE__ */ e(fe, { size: 16 })
984
+ }
985
+ )
986
+ ] }),
987
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-4 gap-2", children: Array.from({ length: 12 }, (O, ee) => he + ee).map((O) => /* @__PURE__ */ e(
946
988
  "button",
947
989
  {
948
- onClick: () => L(new Date(F.getFullYear() - 12, F.getMonth(), 1)),
949
- className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
950
- children: /* @__PURE__ */ e(Fe, { size: 16 })
951
- }
952
- ),
953
- /* @__PURE__ */ a("span", { className: "text-foreground", style: ie, children: [
954
- Le,
955
- " – ",
956
- Le + 11
990
+ onClick: () => {
991
+ L(new Date(O, F.getMonth(), 1)), C("months");
992
+ },
993
+ className: `
994
+ py-2.5 rounded-[var(--radius-md)] transition-all cursor-pointer
995
+ ${F.getFullYear() === O ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted"}
996
+ ${O === re.getFullYear() && F.getFullYear() !== O ? "border border-primary text-primary" : ""}
997
+ `,
998
+ style: le,
999
+ children: O
1000
+ },
1001
+ O
1002
+ )) })
1003
+ ] }),
1004
+ g && l === "single" && I === "days" && /* @__PURE__ */ a("div", { className: "px-4 py-3 border-t border-border flex items-center gap-3", children: [
1005
+ /* @__PURE__ */ e(jt, { size: 14, className: "text-muted-foreground" }),
1006
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
1007
+ /* @__PURE__ */ e(
1008
+ "input",
1009
+ {
1010
+ type: "number",
1011
+ min: 0,
1012
+ max: 23,
1013
+ value: String(A).padStart(2, "0"),
1014
+ onChange: (O) => E(Math.max(0, Math.min(23, Number(O.target.value)))),
1015
+ className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
1016
+ style: le
1017
+ }
1018
+ ),
1019
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: le, children: ":" }),
1020
+ /* @__PURE__ */ e(
1021
+ "input",
1022
+ {
1023
+ type: "number",
1024
+ min: 0,
1025
+ max: 59,
1026
+ value: String(R).padStart(2, "0"),
1027
+ onChange: (O) => _(Math.max(0, Math.min(59, Number(O.target.value)))),
1028
+ className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
1029
+ style: le
1030
+ }
1031
+ )
957
1032
  ] }),
958
1033
  /* @__PURE__ */ e(
959
1034
  "button",
960
1035
  {
961
- onClick: () => L(new Date(F.getFullYear() + 12, F.getMonth(), 1)),
962
- className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
963
- children: /* @__PURE__ */ e(fe, { size: 16 })
1036
+ onClick: Z,
1037
+ className: "ml-auto px-3 py-1 rounded-[var(--radius-md)] bg-primary text-primary-foreground hover:bg-primary/90 transition-colors cursor-pointer",
1038
+ style: le,
1039
+ children: "Apply"
964
1040
  }
965
1041
  )
966
1042
  ] }),
967
- /* @__PURE__ */ e("div", { className: "grid grid-cols-4 gap-2", children: Array.from({ length: 12 }, (Y, te) => Le + te).map((Y) => /* @__PURE__ */ e(
968
- "button",
969
- {
970
- onClick: () => {
971
- L(new Date(Y, F.getMonth(), 1)), C("months");
972
- },
973
- className: `
974
- py-2.5 rounded-[var(--radius-md)] transition-all cursor-pointer
975
- ${F.getFullYear() === Y ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted"}
976
- ${Y === H.getFullYear() && F.getFullYear() !== Y ? "border border-primary text-primary" : ""}
977
- `,
978
- style: ie,
979
- children: Y
980
- },
981
- Y
982
- )) })
983
- ] }),
984
- g && l === "single" && I === "days" && /* @__PURE__ */ a("div", { className: "px-4 py-3 border-t border-border flex items-center gap-3", children: [
985
- /* @__PURE__ */ e(Ct, { size: 14, className: "text-muted-foreground" }),
986
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
987
- /* @__PURE__ */ e(
988
- "input",
1043
+ /* @__PURE__ */ a("div", { className: "px-4 py-2.5 border-t border-border bg-card flex items-center justify-between", children: [
1044
+ y ? /* @__PURE__ */ e(
1045
+ "button",
989
1046
  {
990
- type: "number",
991
- min: 0,
992
- max: 23,
993
- value: String(A).padStart(2, "0"),
994
- onChange: (Y) => E(Math.max(0, Math.min(23, Number(Y.target.value)))),
995
- className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
996
- style: ie
1047
+ onClick: Ye,
1048
+ className: "text-primary hover:underline cursor-pointer",
1049
+ style: le,
1050
+ children: "Today"
997
1051
  }
998
- ),
999
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: ie, children: ":" }),
1000
- /* @__PURE__ */ e(
1001
- "input",
1052
+ ) : /* @__PURE__ */ e("span", {}),
1053
+ w ?? /* @__PURE__ */ e(
1054
+ "button",
1002
1055
  {
1003
- type: "number",
1004
- min: 0,
1005
- max: 59,
1006
- value: String(O).padStart(2, "0"),
1007
- onChange: (Y) => _(Math.max(0, Math.min(59, Number(Y.target.value)))),
1008
- className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
1009
- style: ie
1056
+ onClick: () => {
1057
+ M(!1), C("days");
1058
+ },
1059
+ className: "text-muted-foreground hover:text-foreground cursor-pointer",
1060
+ style: le,
1061
+ children: "Close"
1010
1062
  }
1011
1063
  )
1012
- ] }),
1013
- /* @__PURE__ */ e(
1014
- "button",
1015
- {
1016
- onClick: Z,
1017
- className: "ml-auto px-3 py-1 rounded-[var(--radius-md)] bg-primary text-primary-foreground hover:bg-primary/90 transition-colors cursor-pointer",
1018
- style: ie,
1019
- children: "Apply"
1020
- }
1021
- )
1022
- ] }),
1023
- /* @__PURE__ */ a("div", { className: "px-4 py-2.5 border-t border-border bg-card flex items-center justify-between", children: [
1024
- y ? /* @__PURE__ */ e(
1025
- "button",
1026
- {
1027
- onClick: J,
1028
- className: "text-primary hover:underline cursor-pointer",
1029
- style: ie,
1030
- children: "Today"
1031
- }
1032
- ) : /* @__PURE__ */ e("span", {}),
1033
- w ?? /* @__PURE__ */ e(
1034
- "button",
1035
- {
1036
- onClick: () => {
1037
- M(!1), C("days");
1038
- },
1039
- className: "text-muted-foreground hover:text-foreground cursor-pointer",
1040
- style: ie,
1041
- children: "Close"
1042
- }
1043
- )
1044
- ] })
1045
- ]
1046
- }
1064
+ ] })
1065
+ ]
1066
+ }
1067
+ ),
1068
+ document.body
1047
1069
  )
1048
1070
  ] });
1049
1071
  }
@@ -1066,7 +1088,7 @@ function mo({
1066
1088
  showCloseButton: s = !0,
1067
1089
  className: f = ""
1068
1090
  }) {
1069
- const h = ee(null);
1091
+ const h = V(null);
1070
1092
  return ne(() => {
1071
1093
  if (!t) return;
1072
1094
  const v = (x) => {
@@ -1106,7 +1128,7 @@ function mo({
1106
1128
  onClick: r,
1107
1129
  className: "flex-shrink-0 w-8 h-8 rounded-[var(--radius-sm)] flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted transition-colors cursor-pointer",
1108
1130
  "aria-label": "Close",
1109
- children: /* @__PURE__ */ e(le, { size: 16 })
1131
+ children: /* @__PURE__ */ e(ie, { size: 16 })
1110
1132
  }
1111
1133
  )
1112
1134
  ] }),
@@ -1303,7 +1325,7 @@ function Ni({
1303
1325
  style: m.text,
1304
1326
  "aria-label": "First page",
1305
1327
  title: "First page",
1306
- children: /* @__PURE__ */ e(Mt, { size: m.icon })
1328
+ children: /* @__PURE__ */ e(Lt, { size: m.icon })
1307
1329
  }
1308
1330
  ),
1309
1331
  i && /* @__PURE__ */ e(
@@ -1314,7 +1336,7 @@ function Ni({
1314
1336
  className: z(!1, u || t <= 1),
1315
1337
  style: m.text,
1316
1338
  "aria-label": "Previous page",
1317
- children: g ?? /* @__PURE__ */ e(Fe, { size: m.icon })
1339
+ children: g ?? /* @__PURE__ */ e(Me, { size: m.icon })
1318
1340
  }
1319
1341
  ),
1320
1342
  k.map((L, I) => L === "dots-left" || L === "dots-right" ? /* @__PURE__ */ e(
@@ -1358,7 +1380,7 @@ function Ni({
1358
1380
  style: m.text,
1359
1381
  "aria-label": "Last page",
1360
1382
  title: "Last page",
1361
- children: /* @__PURE__ */ e(Lt, { size: m.icon })
1383
+ children: /* @__PURE__ */ e(Ct, { size: m.icon })
1362
1384
  }
1363
1385
  )
1364
1386
  ]
@@ -1397,7 +1419,7 @@ function $i({
1397
1419
  debounce: x = 0,
1398
1420
  className: u = ""
1399
1421
  }) {
1400
- const [p, b] = j(""), [g, $] = j(!1), [k, m] = j(-1), y = t ?? p, w = ee(null), z = ee(null), W = ee(void 0), M = go[l], F = Q((N) => {
1422
+ const [p, b] = j(""), [g, $] = j(!1), [k, m] = j(-1), y = t ?? p, w = V(null), z = V(null), W = V(void 0), M = go[l], F = Q((N) => {
1401
1423
  t === void 0 && b(N), r == null || r(N), x > 0 && (clearTimeout(W.current), W.current = setTimeout(() => n == null ? void 0 : n(N), x));
1402
1424
  }, [t, r, n, x]), L = (N) => {
1403
1425
  N.key === "Enter" ? k >= 0 && c[k] ? (s == null || s(c[k]), $(!1)) : n == null || n(y) : N.key === "ArrowDown" ? (N.preventDefault(), m((S) => Math.min(S + 1, c.length - 1))) : N.key === "ArrowUp" ? (N.preventDefault(), m((S) => Math.max(S - 1, -1))) : N.key === "Escape" && $(!1);
@@ -1413,7 +1435,7 @@ function $i({
1413
1435
  const I = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, C = { fontFamily: "var(--font-label)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)" };
1414
1436
  return /* @__PURE__ */ a("div", { ref: z, className: `relative ${u}`, children: [
1415
1437
  /* @__PURE__ */ a("div", { className: `relative rounded-[var(--radius-md)] transition-all ${vo[i]} ${h ? "opacity-50 pointer-events-none" : ""}`, children: [
1416
- /* @__PURE__ */ e("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(Ye, { size: M.icon }) }),
1438
+ /* @__PURE__ */ e("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(qe, { size: M.icon }) }),
1417
1439
  /* @__PURE__ */ e(
1418
1440
  "input",
1419
1441
  {
@@ -1431,7 +1453,7 @@ function $i({
1431
1453
  }
1432
1454
  ),
1433
1455
  /* @__PURE__ */ a("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-1", children: [
1434
- d && /* @__PURE__ */ e(Re, { size: M.icon, className: "animate-spin text-muted-foreground" }),
1456
+ d && /* @__PURE__ */ e(Ze, { size: M.icon, className: "animate-spin text-muted-foreground" }),
1435
1457
  f && y && !d && /* @__PURE__ */ e(
1436
1458
  "button",
1437
1459
  {
@@ -1440,7 +1462,7 @@ function $i({
1440
1462
  F(""), (N = w.current) == null || N.focus();
1441
1463
  },
1442
1464
  className: "text-muted-foreground hover:text-foreground transition-colors cursor-pointer",
1443
- children: /* @__PURE__ */ e(le, { size: M.icon })
1465
+ children: /* @__PURE__ */ e(ie, { size: M.icon })
1444
1466
  }
1445
1467
  )
1446
1468
  ] })
@@ -1465,7 +1487,7 @@ function $i({
1465
1487
  )) })
1466
1488
  ] });
1467
1489
  }
1468
- const We = {
1490
+ const Ee = {
1469
1491
  sm: "px-3 py-2",
1470
1492
  md: "px-4 py-3",
1471
1493
  lg: "px-5 py-4"
@@ -1490,10 +1512,10 @@ function Si({
1490
1512
  const [b, g] = j(null), [$, k] = j("asc"), [m, y] = j(/* @__PURE__ */ new Set()), w = c ?? m, z = (A) => {
1491
1513
  c || y(A), s == null || s(A);
1492
1514
  }, W = se(() => b ? [...r].sort((A, E) => {
1493
- const O = A[b], _ = E[b];
1494
- if (O == null) return 1;
1515
+ const R = A[b], _ = E[b];
1516
+ if (R == null) return 1;
1495
1517
  if (_ == null) return -1;
1496
- const B = typeof O == "string" ? O.localeCompare(_) : O - _;
1518
+ const B = typeof R == "string" ? R.localeCompare(_) : R - _;
1497
1519
  return $ === "asc" ? B : -B;
1498
1520
  }) : r, [r, b, $]), M = (A) => {
1499
1521
  b === A ? k((E) => E === "asc" ? "desc" : "asc") : (g(A), k("asc"));
@@ -1505,8 +1527,8 @@ function Si({
1505
1527
  }, N = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, S = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)" };
1506
1528
  return /* @__PURE__ */ e("div", { className: `${u ? "" : "rounded-[var(--radius-md)] border border-border"} overflow-hidden ${p}`, children: /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ a("table", { className: "w-full border-collapse", children: [
1507
1529
  /* @__PURE__ */ e("thead", { className: x ? "sticky top-0 z-10" : "", children: /* @__PURE__ */ a("tr", { className: "border-b border-border", style: { backgroundColor: "color-mix(in srgb, var(--muted) 30%, var(--background) 70%)" }, children: [
1508
- d && /* @__PURE__ */ e("th", { className: `${We[n]} w-12`, children: /* @__PURE__ */ e(
1509
- ot,
1530
+ d && /* @__PURE__ */ e("th", { className: `${Ee[n]} w-12`, children: /* @__PURE__ */ e(
1531
+ st,
1510
1532
  {
1511
1533
  size: "sm",
1512
1534
  checked: F,
@@ -1517,39 +1539,39 @@ function Si({
1517
1539
  t.map((A) => /* @__PURE__ */ e(
1518
1540
  "th",
1519
1541
  {
1520
- className: `${We[n]} text-${A.align ?? "left"} text-foreground ${A.sortable ? "cursor-pointer select-none hover:text-primary transition-colors" : ""} ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1542
+ className: `${Ee[n]} text-${A.align ?? "left"} text-foreground ${A.sortable ? "cursor-pointer select-none hover:text-primary transition-colors" : ""} ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1521
1543
  style: { ...S, width: A.width },
1522
1544
  onClick: () => A.sortable && M(A.key),
1523
1545
  children: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1", children: [
1524
1546
  A.header,
1525
- A.sortable && /* @__PURE__ */ e("span", { className: "text-muted-foreground/50", children: b === A.key ? $ === "asc" ? /* @__PURE__ */ e(Ge, { size: 14 }) : /* @__PURE__ */ e(Me, { size: 14 }) : /* @__PURE__ */ e(Nt, { size: 12 }) })
1547
+ A.sortable && /* @__PURE__ */ e("span", { className: "text-muted-foreground/50", children: b === A.key ? $ === "asc" ? /* @__PURE__ */ e(Je, { size: 14 }) : /* @__PURE__ */ e(Ie, { size: 14 }) : /* @__PURE__ */ e($t, { size: 12 }) })
1526
1548
  ] })
1527
1549
  },
1528
1550
  A.key
1529
1551
  ))
1530
1552
  ] }) }),
1531
- /* @__PURE__ */ e("tbody", { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${We[n]} text-center text-muted-foreground`, children: /* @__PURE__ */ a("div", { className: "flex items-center justify-center gap-2 py-8", children: [
1553
+ /* @__PURE__ */ e("tbody", { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center text-muted-foreground`, children: /* @__PURE__ */ a("div", { className: "flex items-center justify-center gap-2 py-8", children: [
1532
1554
  /* @__PURE__ */ e("div", { className: "w-5 h-5 border-2 border-primary border-t-transparent rounded-full animate-spin" }),
1533
1555
  /* @__PURE__ */ e("span", { style: N, children: "Loading..." })
1534
- ] }) }) }) : h ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${We[n]} text-center py-12`, children: /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e("span", { style: { ...N, color: "var(--destructive)" }, children: h }) }) }) }) : W.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${We[n]} text-center text-muted-foreground py-12`, children: /* @__PURE__ */ e("span", { style: N, children: v }) }) }) : W.map((A, E) => {
1535
- const O = w.has(E);
1556
+ ] }) }) }) : h ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center py-12`, children: /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e("span", { style: { ...N, color: "var(--destructive)" }, children: h }) }) }) }) : W.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center text-muted-foreground py-12`, children: /* @__PURE__ */ e("span", { style: N, children: v }) }) }) : W.map((A, E) => {
1557
+ const R = w.has(E);
1536
1558
  return /* @__PURE__ */ a(
1537
1559
  "tr",
1538
1560
  {
1539
- className: `border-b border-border last:border-b-0 transition-colors ${O ? "bg-primary/5" : o && E % 2 === 1 ? "bg-muted/20" : "bg-card"} ${l ? "hover:bg-[var(--row-hover-bg)]" : ""}`,
1561
+ className: `border-b border-border last:border-b-0 transition-colors ${R ? "bg-primary/5" : o && E % 2 === 1 ? "bg-muted/20" : "bg-card"} ${l ? "hover:bg-[var(--row-hover-bg)]" : ""}`,
1540
1562
  children: [
1541
- d && /* @__PURE__ */ e("td", { className: `${We[n]} w-12`, children: /* @__PURE__ */ e(
1542
- ot,
1563
+ d && /* @__PURE__ */ e("td", { className: `${Ee[n]} w-12`, children: /* @__PURE__ */ e(
1564
+ st,
1543
1565
  {
1544
1566
  size: "sm",
1545
- checked: O,
1567
+ checked: R,
1546
1568
  onChange: () => C(E)
1547
1569
  }
1548
1570
  ) }),
1549
1571
  t.map((_) => /* @__PURE__ */ e(
1550
1572
  "td",
1551
1573
  {
1552
- className: `${We[n]} text-${_.align ?? "left"} text-foreground ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1574
+ className: `${Ee[n]} text-${_.align ?? "left"} text-foreground ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1553
1575
  style: N,
1554
1576
  children: _.render ? _.render(A[_.key], A, E) : A[_.key]
1555
1577
  },
@@ -1567,9 +1589,9 @@ const xo = {
1567
1589
  md: { fontFamily: "var(--font-label)", fontSize: "var(--text-p)", fontWeight: "var(--weight-p)", padding: "8px 16px" },
1568
1590
  lg: { fontFamily: "var(--font-label)", fontSize: "var(--text-h4)", fontWeight: "var(--weight-p)", padding: "10px 20px" }
1569
1591
  };
1570
- function ki({ tabs: t, variant: r = "default", size: n = "md", defaultTab: o, activeTab: l, onChange: i, fullWidth: d = !1, className: c = "" }) {
1592
+ function ki({ tabs: t = [], variant: r = "default", size: n = "md", defaultTab: o, activeTab: l, onChange: i, fullWidth: d = !1, className: c = "" }) {
1571
1593
  var k, m;
1572
- const [s, f] = j(o ?? ((k = t[0]) == null ? void 0 : k.id) ?? ""), h = l ?? s, v = ee(null), [x, u] = j({ left: 0, width: 0 }), p = (y) => {
1594
+ const [s, f] = j(o ?? ((k = t[0]) == null ? void 0 : k.id) ?? ""), h = l ?? s, v = V(null), [x, u] = j({ left: 0, width: 0 }), p = (y) => {
1573
1595
  l || f(y), i == null || i(y);
1574
1596
  };
1575
1597
  ne(() => {
@@ -1666,7 +1688,7 @@ function Dr({ title: t, children: r, open: n, onToggle: o, icon: l, disabled: i
1666
1688
  l && /* @__PURE__ */ e("span", { className: "text-primary flex-shrink-0", children: l }),
1667
1689
  /* @__PURE__ */ e("span", { className: "flex-1 text-foreground", style: yo, children: t }),
1668
1690
  /* @__PURE__ */ e(
1669
- Me,
1691
+ Ie,
1670
1692
  {
1671
1693
  size: 16,
1672
1694
  className: `text-muted-foreground transition-transform ${n ? "rotate-180" : ""}`
@@ -1767,7 +1789,7 @@ function Fo({ src: t, name: r, size: n = "md", status: o, className: l = "" }) {
1767
1789
  ] });
1768
1790
  }
1769
1791
  function Wo({ children: t, max: r, className: n = "" }) {
1770
- const o = pe.Children.toArray(t), l = r ? o.slice(0, r) : o, i = r && o.length > r ? o.length - r : 0;
1792
+ const o = ge.Children.toArray(t), l = r ? o.slice(0, r) : o, i = r && o.length > r ? o.length - r : 0;
1771
1793
  return /* @__PURE__ */ a("div", { className: `flex -space-x-2 ${n}`, children: [
1772
1794
  l.map((d, c) => /* @__PURE__ */ e("div", { className: "relative", style: { zIndex: l.length - c }, children: d }, c)),
1773
1795
  i > 0 && /* @__PURE__ */ a(
@@ -1935,7 +1957,7 @@ function Fi({
1935
1957
  size: d = "md",
1936
1958
  disabled: c = !1
1937
1959
  }) {
1938
- const [s, f] = j(!1), h = ee(null), v = d === "sm" ? "w-5 h-5" : d === "lg" ? "w-8 h-8" : "w-6 h-6", x = o || Io, u = (p) => {
1960
+ const [s, f] = j(!1), h = V(null), v = d === "sm" ? "w-5 h-5" : d === "lg" ? "w-8 h-8" : "w-6 h-6", x = o || Io, u = (p) => {
1939
1961
  navigator.clipboard.writeText(p).then(() => {
1940
1962
  f(!0), setTimeout(() => f(!1), 1500);
1941
1963
  });
@@ -2018,12 +2040,12 @@ function Fi({
2018
2040
  ] }, p.label)) })
2019
2041
  ] });
2020
2042
  }
2021
- const Oo = {
2043
+ const Ro = {
2022
2044
  fontFamily: "var(--font-button)",
2023
2045
  fontSize: "var(--text-button)",
2024
2046
  fontWeight: "var(--weight-label)"
2025
2047
  };
2026
- function Ro({
2048
+ function Oo({
2027
2049
  label: t,
2028
2050
  orientation: r = "horizontal",
2029
2051
  dashed: n,
@@ -2038,11 +2060,11 @@ function Ro({
2038
2060
  }
2039
2061
  ) : t ? /* @__PURE__ */ a("div", { className: `flex items-center gap-3 ${i[o]} ${l}`, children: [
2040
2062
  /* @__PURE__ */ e("div", { className: `flex-1 border-t border-border ${d}` }),
2041
- /* @__PURE__ */ e("span", { className: "text-muted-foreground flex-shrink-0", style: Oo, children: t }),
2063
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground flex-shrink-0", style: Ro, children: t }),
2042
2064
  /* @__PURE__ */ e("div", { className: `flex-1 border-t border-border ${d}` })
2043
2065
  ] }) : /* @__PURE__ */ e("hr", { className: `border-t border-border ${d} ${i[o]} ${l}` });
2044
2066
  }
2045
- Ro.displayName = "Divider";
2067
+ Oo.displayName = "Divider";
2046
2068
  const Po = {
2047
2069
  fontFamily: "var(--font-label)",
2048
2070
  fontSize: "var(--text-label)",
@@ -2079,7 +2101,7 @@ function Yo({
2079
2101
  {
2080
2102
  onClick: r,
2081
2103
  className: "text-muted-foreground hover:text-foreground cursor-pointer",
2082
- children: /* @__PURE__ */ e(le, { size: 18 })
2104
+ children: /* @__PURE__ */ e(ie, { size: 18 })
2083
2105
  }
2084
2106
  )
2085
2107
  ] }),
@@ -2151,7 +2173,7 @@ const Go = {
2151
2173
  error: "!border-destructive ring-destructive/20",
2152
2174
  success: "!border-chart-2 ring-chart-2/20",
2153
2175
  warning: "!border-chart-5 ring-chart-5/20"
2154
- }, Zo = Pe(
2176
+ }, Zo = Xe(
2155
2177
  ({
2156
2178
  options: t,
2157
2179
  value: r,
@@ -2186,21 +2208,21 @@ const Go = {
2186
2208
  searchDebounce: S = 300,
2187
2209
  searchLoading: A = !1,
2188
2210
  renderOption: E
2189
- }, O) => {
2190
- const [_, B] = j(!1), [K, H] = j(""), [X, ae] = j(-1), [q, re] = j(
2211
+ }, R) => {
2212
+ const [_, B] = j(!1), [q, H] = j(""), [K, ae] = j(-1), [G, re] = j(
2191
2213
  n ?? (g ? [] : "")
2192
- ), P = r ?? q, T = ee(null), J = ee(null), Z = ee(null), ue = ee(null), [we, Te] = j({ top: 0, left: 0, width: 0 }), G = Go[f], ke = Uo[h];
2214
+ ), Y = r ?? G, T = V(null), J = V(null), X = V(null), ue = V(null), [ze, Ye] = j({ top: 0, left: 0, width: 0 }), Z = Go[f], Fe = Uo[h];
2193
2215
  ne(() => {
2194
2216
  if (!_ || !T.current) return;
2195
2217
  const D = () => {
2196
- const R = T.current.getBoundingClientRect();
2197
- Te({ top: R.bottom + 4, left: R.left, width: R.width });
2218
+ const P = T.current.getBoundingClientRect();
2219
+ Ye({ top: P.bottom + 4, left: P.left, width: P.width });
2198
2220
  };
2199
2221
  return D(), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
2200
2222
  window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
2201
2223
  };
2202
2224
  }, [_]);
2203
- const Be = Q(
2225
+ const Le = Q(
2204
2226
  (D) => {
2205
2227
  H(D), N && (ue.current && clearTimeout(ue.current), ue.current = setTimeout(() => {
2206
2228
  N(D);
@@ -2211,152 +2233,152 @@ const Go = {
2211
2233
  ne(() => () => {
2212
2234
  ue.current && clearTimeout(ue.current);
2213
2235
  }, []);
2214
- const ve = se(() => !K || N ? t : t.filter(
2236
+ const xe = se(() => !q || N ? t : t.filter(
2215
2237
  (D) => {
2216
- var R;
2217
- return D.label.toLowerCase().includes(K.toLowerCase()) || ((R = D.description) == null ? void 0 : R.toLowerCase().includes(K.toLowerCase()));
2238
+ var P;
2239
+ return D.label.toLowerCase().includes(q.toLowerCase()) || ((P = D.description) == null ? void 0 : P.toLowerCase().includes(q.toLowerCase()));
2218
2240
  }
2219
- ), [t, K, N]), ie = se(() => {
2241
+ ), [t, q, N]), Te = se(() => {
2220
2242
  if (!k) return null;
2221
2243
  const D = {};
2222
- return ve.forEach((R) => {
2223
- const U = R.group || "Other";
2224
- D[U] || (D[U] = []), D[U].push(R);
2244
+ return xe.forEach((P) => {
2245
+ const U = P.group || "Other";
2246
+ D[U] || (D[U] = []), D[U].push(P);
2225
2247
  }), D;
2226
- }, [ve, k]), Le = se(() => {
2248
+ }, [xe, k]), Ve = se(() => {
2227
2249
  var D;
2228
- return g && Array.isArray(P) ? P.map((R) => {
2250
+ return g && Array.isArray(Y) ? Y.map((P) => {
2229
2251
  var U;
2230
- return (U = t.find((je) => je.value === R)) == null ? void 0 : U.label;
2231
- }).filter(Boolean) : (D = t.find((R) => R.value === P)) != null && D.label ? [t.find((R) => R.value === P).label] : [];
2232
- }, [P, t, g]), Y = Q(
2233
- (D) => g && Array.isArray(P) ? P.includes(D) : P === D,
2234
- [P, g]
2235
- ), te = Q(
2252
+ return (U = t.find((_e) => _e.value === P)) == null ? void 0 : U.label;
2253
+ }).filter(Boolean) : (D = t.find((P) => P.value === Y)) != null && D.label ? [t.find((P) => P.value === Y).label] : [];
2254
+ }, [Y, t, g]), mt = Q(
2255
+ (D) => g && Array.isArray(Y) ? Y.includes(D) : Y === D,
2256
+ [Y, g]
2257
+ ), Ce = Q(
2236
2258
  (D) => {
2237
2259
  if (g) {
2238
- const R = Array.isArray(P) ? [...P] : [], U = R.indexOf(D);
2260
+ const P = Array.isArray(Y) ? [...Y] : [], U = P.indexOf(D);
2239
2261
  if (U > -1)
2240
- R.splice(U, 1);
2262
+ P.splice(U, 1);
2241
2263
  else {
2242
- if ($ && R.length >= $) return;
2243
- R.push(D);
2264
+ if ($ && P.length >= $) return;
2265
+ P.push(D);
2244
2266
  }
2245
- re(R), o == null || o(R);
2267
+ re(P), o == null || o(P);
2246
2268
  } else
2247
2269
  re(D), o == null || o(D), B(!1);
2248
2270
  H("");
2249
2271
  },
2250
- [P, g, $, o]
2251
- ), he = se(
2252
- () => ve.filter((D) => !D.disabled).map((D) => D.value),
2253
- [ve]
2254
- ), oe = se(() => !g || !Array.isArray(P) ? !1 : he.length > 0 && he.every((D) => P.includes(D)), [g, P, he]), Ue = se(() => !g || !Array.isArray(P) ? !1 : he.some((D) => P.includes(D)) && !oe, [g, P, he, oe]), Ke = Q(() => {
2272
+ [Y, g, $, o]
2273
+ ), le = se(
2274
+ () => xe.filter((D) => !D.disabled).map((D) => D.value),
2275
+ [xe]
2276
+ ), he = se(() => !g || !Array.isArray(Y) ? !1 : le.length > 0 && le.every((D) => Y.includes(D)), [g, Y, le]), O = se(() => !g || !Array.isArray(Y) ? !1 : le.some((D) => Y.includes(D)) && !he, [g, Y, le, he]), ee = Q(() => {
2255
2277
  if (g)
2256
- if (oe) {
2257
- const D = Array.isArray(P) ? P.filter((R) => !he.includes(R)) : [];
2278
+ if (he) {
2279
+ const D = Array.isArray(Y) ? Y.filter((P) => !le.includes(P)) : [];
2258
2280
  re(D), o == null || o(D);
2259
2281
  } else {
2260
- const D = Array.isArray(P) ? [...P] : [];
2261
- for (const R of he)
2262
- if (!D.includes(R)) {
2282
+ const D = Array.isArray(Y) ? [...Y] : [];
2283
+ for (const P of le)
2284
+ if (!D.includes(P)) {
2263
2285
  if ($ && D.length >= $) break;
2264
- D.push(R);
2286
+ D.push(P);
2265
2287
  }
2266
2288
  re(D), o == null || o(D);
2267
2289
  }
2268
- }, [g, oe, P, he, $, o]), ct = Q(() => {
2269
- K.trim() && (F == null || F(K.trim()), H(""));
2270
- }, [K, F]), Ce = se(() => !M || !K.trim() ? !1 : !t.some((D) => D.label.toLowerCase() === K.toLowerCase()), [M, K, t]), ut = Q(
2290
+ }, [g, he, Y, le, $, o]), ye = Q(() => {
2291
+ q.trim() && (F == null || F(q.trim()), H(""));
2292
+ }, [q, F]), oe = se(() => !M || !q.trim() ? !1 : !t.some((D) => D.label.toLowerCase() === q.toLowerCase()), [M, q, t]), je = Q(
2271
2293
  (D) => {
2272
2294
  D.stopPropagation();
2273
- const R = g ? [] : "";
2274
- re(R), o == null || o(R);
2295
+ const P = g ? [] : "";
2296
+ re(P), o == null || o(P);
2275
2297
  },
2276
2298
  [g, o]
2277
- ), Ze = k ? Object.values(ie || {}).flat() : ve, _t = Q(
2299
+ ), be = k ? Object.values(Te || {}).flat() : xe, De = Q(
2278
2300
  (D) => {
2279
- var R;
2301
+ var P;
2280
2302
  if (!(x || u))
2281
2303
  switch (D.key) {
2282
2304
  case "ArrowDown":
2283
2305
  D.preventDefault(), _ ? ae(
2284
- (U) => U < Ze.length - 1 ? U + 1 : 0
2306
+ (U) => U < be.length - 1 ? U + 1 : 0
2285
2307
  ) : B(!0);
2286
2308
  break;
2287
2309
  case "ArrowUp":
2288
2310
  D.preventDefault(), ae(
2289
- (U) => U > 0 ? U - 1 : Ze.length - 1
2311
+ (U) => U > 0 ? U - 1 : be.length - 1
2290
2312
  );
2291
2313
  break;
2292
2314
  case "Enter":
2293
2315
  case " ":
2294
- if (D.preventDefault(), _ && X >= 0) {
2295
- const U = Ze[X];
2296
- U && !U.disabled && te(U.value);
2316
+ if (D.preventDefault(), _ && K >= 0) {
2317
+ const U = be[K];
2318
+ U && !U.disabled && Ce(U.value);
2297
2319
  } else
2298
2320
  B(!0);
2299
2321
  break;
2300
2322
  case "Escape":
2301
- B(!1), (R = T.current) == null || R.focus();
2323
+ B(!1), (P = T.current) == null || P.focus();
2302
2324
  break;
2303
2325
  }
2304
2326
  },
2305
- [x, u, _, X, Ze, te]
2327
+ [x, u, _, K, be, Ce]
2306
2328
  );
2307
2329
  ne(() => {
2308
- const D = (R) => {
2309
- const U = R.target;
2330
+ const D = (P) => {
2331
+ const U = P.target;
2310
2332
  T.current && !T.current.contains(U) && J.current && !J.current.contains(U) && (B(!1), H(""));
2311
2333
  };
2312
2334
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
2313
2335
  }, []), ne(() => {
2314
2336
  _ && p && setTimeout(() => {
2315
2337
  var D;
2316
- return (D = Z.current) == null ? void 0 : D.focus();
2338
+ return (D = X.current) == null ? void 0 : D.focus();
2317
2339
  }, 50), _ && ae(-1);
2318
2340
  }, [_, p]);
2319
- const ft = g ? Array.isArray(P) && P.length > 0 : !!P, Xe = c ? "error" : v, rn = () => {
2320
- const D = Le, R = W && W > 0 ? W : D.length, U = D.slice(0, R), je = D.length - U.length;
2341
+ const Ae = g ? Array.isArray(Y) && Y.length > 0 : !!Y, Be = c ? "error" : v, rn = () => {
2342
+ const D = Ve, P = W && W > 0 ? W : D.length, U = D.slice(0, P), _e = D.length - U.length;
2321
2343
  return /* @__PURE__ */ a("span", { className: "flex flex-wrap gap-1", children: [
2322
- U.map((mt) => /* @__PURE__ */ a(
2344
+ U.map((ht) => /* @__PURE__ */ a(
2323
2345
  "span",
2324
2346
  {
2325
2347
  className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-[var(--radius-sm)] bg-[var(--Colors--Background--bg-brand-secondary)] text-[var(--Colors--Text--text-brand-primary)]",
2326
2348
  style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
2327
2349
  children: [
2328
- mt,
2350
+ ht,
2329
2351
  /* @__PURE__ */ e(
2330
- le,
2352
+ ie,
2331
2353
  {
2332
2354
  size: 10,
2333
2355
  className: "cursor-pointer hover:text-destructive transition-colors",
2334
2356
  onClick: (nn) => {
2335
2357
  nn.stopPropagation();
2336
- const Rt = t.find((on) => on.label === mt);
2337
- Rt && te(Rt.value);
2358
+ const Ot = t.find((on) => on.label === ht);
2359
+ Ot && Ce(Ot.value);
2338
2360
  }
2339
2361
  }
2340
2362
  )
2341
2363
  ]
2342
2364
  },
2343
- mt
2365
+ ht
2344
2366
  )),
2345
- je > 0 && /* @__PURE__ */ a(
2367
+ _e > 0 && /* @__PURE__ */ a(
2346
2368
  "span",
2347
2369
  {
2348
2370
  className: "inline-flex items-center px-2 py-0.5 rounded-[var(--radius-sm)] bg-muted text-muted-foreground",
2349
2371
  style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
2350
2372
  children: [
2351
2373
  "+",
2352
- je,
2374
+ _e,
2353
2375
  " more"
2354
2376
  ]
2355
2377
  }
2356
2378
  )
2357
2379
  ] });
2358
- }, Ht = (D, R) => {
2359
- const U = Y(D.value);
2380
+ }, Ht = (D, P) => {
2381
+ const U = mt(D.value);
2360
2382
  return E ? /* @__PURE__ */ e(
2361
2383
  "button",
2362
2384
  {
@@ -2364,14 +2386,14 @@ const Go = {
2364
2386
  role: "option",
2365
2387
  "aria-selected": U,
2366
2388
  disabled: D.disabled,
2367
- className: `w-full ${G.option} transition-colors cursor-pointer
2389
+ className: `w-full ${Z.option} transition-colors cursor-pointer
2368
2390
  ${U ? "bg-[var(--Colors--Background--bg-brand-secondary)]" : ""}
2369
- ${X === R && !U ? "bg-[var(--Colors--Background--bg-primary_hover)]" : ""}
2391
+ ${K === P && !U ? "bg-[var(--Colors--Background--bg-primary_hover)]" : ""}
2370
2392
  ${D.disabled ? "opacity-40 cursor-not-allowed" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}
2371
2393
  `,
2372
- style: G.optionStyle,
2373
- onClick: () => !D.disabled && te(D.value),
2374
- onMouseEnter: () => ae(R),
2394
+ style: Z.optionStyle,
2395
+ onClick: () => !D.disabled && Ce(D.value),
2396
+ onMouseEnter: () => ae(P),
2375
2397
  children: E(D, U)
2376
2398
  },
2377
2399
  D.value
@@ -2382,14 +2404,14 @@ const Go = {
2382
2404
  role: "option",
2383
2405
  "aria-selected": U,
2384
2406
  disabled: D.disabled,
2385
- className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${G.option} transition-colors cursor-pointer
2407
+ className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${Z.option} transition-colors cursor-pointer
2386
2408
  ${U ? "bg-[var(--Colors--Background--bg-brand-secondary)] text-[var(--Colors--Text--text-brand-primary)]" : ""}
2387
- ${X === R && !U ? "bg-[var(--Colors--Background--bg-primary_hover)]" : ""}
2409
+ ${K === P && !U ? "bg-[var(--Colors--Background--bg-primary_hover)]" : ""}
2388
2410
  ${D.disabled ? "opacity-40 cursor-not-allowed" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}
2389
2411
  `,
2390
- style: { ...G.optionStyle, ...G.textStyle },
2391
- onClick: () => !D.disabled && te(D.value),
2392
- onMouseEnter: () => ae(R),
2412
+ style: { ...Z.optionStyle, ...Z.textStyle },
2413
+ onClick: () => !D.disabled && Ce(D.value),
2414
+ onMouseEnter: () => ae(P),
2393
2415
  children: [
2394
2416
  g && /* @__PURE__ */ e(
2395
2417
  "span",
@@ -2406,7 +2428,7 @@ const Go = {
2406
2428
  src: D.avatar,
2407
2429
  alt: "",
2408
2430
  className: "flex-shrink-0 rounded-full object-cover",
2409
- style: { width: G.avatarSize, height: G.avatarSize }
2431
+ style: { width: Z.avatarSize, height: Z.avatarSize }
2410
2432
  }
2411
2433
  ),
2412
2434
  D.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: D.icon }),
@@ -2416,19 +2438,19 @@ const Go = {
2416
2438
  "span",
2417
2439
  {
2418
2440
  className: "block text-muted-foreground",
2419
- style: { marginTop: "var(--Spacing--Spacing-xxs)", ...G.descStyle },
2441
+ style: { marginTop: "var(--Spacing--Spacing-xxs)", ...Z.descStyle },
2420
2442
  children: D.description
2421
2443
  }
2422
2444
  )
2423
2445
  ] }),
2424
- !g && U && /* @__PURE__ */ e(me, { size: G.icon, className: "text-primary flex-shrink-0" })
2446
+ !g && U && /* @__PURE__ */ e(me, { size: Z.icon, className: "text-primary flex-shrink-0" })
2425
2447
  ]
2426
2448
  },
2427
2449
  D.value
2428
2450
  );
2429
2451
  };
2430
- let Ot = 0;
2431
- return /* @__PURE__ */ a("div", { ref: O, className: `relative w-full ${w}`, id: y, children: [
2452
+ let Rt = 0;
2453
+ return /* @__PURE__ */ a("div", { ref: R, className: `relative w-full ${w}`, id: y, children: [
2432
2454
  i && /* @__PURE__ */ a(
2433
2455
  "label",
2434
2456
  {
@@ -2450,92 +2472,92 @@ const Go = {
2450
2472
  "aria-haspopup": "listbox",
2451
2473
  disabled: x || u,
2452
2474
  onClick: () => !x && !u && B(!_),
2453
- onKeyDown: _t,
2454
- className: `w-full flex items-center rounded-[var(--radius-md)] transition-all duration-150 ${G.trigger}
2455
- ${ke.base}
2456
- ${!x && !u ? ke.hover : ""}
2457
- ${_ ? ke.focus : ""}
2475
+ onKeyDown: De,
2476
+ className: `w-full flex items-center rounded-[var(--radius-md)] transition-all duration-150 ${Z.trigger}
2477
+ ${Fe.base}
2478
+ ${!x && !u ? Fe.hover : ""}
2479
+ ${_ ? Fe.focus : ""}
2458
2480
  ${x ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
2459
2481
  ${u ? "opacity-70 cursor-wait" : ""}
2460
- ${Ko[Xe]}
2482
+ ${Ko[Be]}
2461
2483
  `,
2462
- style: G.textStyle,
2484
+ style: Z.textStyle,
2463
2485
  children: [
2464
- u ? /* @__PURE__ */ e(Re, { size: G.icon, className: "animate-spin text-muted-foreground" }) : null,
2465
- /* @__PURE__ */ e("span", { className: `flex-1 text-left min-w-0 ${g ? "" : "truncate"} ${ft ? "text-foreground" : "text-muted-foreground"}`, children: ft ? g ? rn() : Le[0] : l }),
2466
- b && ft && !x && /* @__PURE__ */ e(
2467
- le,
2486
+ u ? /* @__PURE__ */ e(Ze, { size: Z.icon, className: "animate-spin text-muted-foreground" }) : null,
2487
+ /* @__PURE__ */ e("span", { className: `flex-1 text-left min-w-0 ${g ? "" : "truncate"} ${Ae ? "text-foreground" : "text-muted-foreground"}`, children: Ae ? g ? rn() : Ve[0] : l }),
2488
+ b && Ae && !x && /* @__PURE__ */ e(
2489
+ ie,
2468
2490
  {
2469
- size: G.icon,
2491
+ size: Z.icon,
2470
2492
  className: "flex-shrink-0 text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
2471
- onClick: ut
2493
+ onClick: je
2472
2494
  }
2473
2495
  ),
2474
2496
  /* @__PURE__ */ e(
2475
- Me,
2497
+ Ie,
2476
2498
  {
2477
- size: G.icon,
2499
+ size: Z.icon,
2478
2500
  className: `flex-shrink-0 text-muted-foreground transition-transform duration-200 ${_ ? "rotate-180" : ""}`
2479
2501
  }
2480
2502
  )
2481
2503
  ]
2482
2504
  }
2483
2505
  ),
2484
- _ && dt(
2506
+ _ && Qe(
2485
2507
  /* @__PURE__ */ a(
2486
2508
  "div",
2487
2509
  {
2488
2510
  ref: J,
2489
2511
  role: "listbox",
2490
2512
  className: "fixed z-[9999] bg-popover border border-border rounded-[var(--radius)] shadow-elevation-sm overflow-hidden",
2491
- style: { top: we.top, left: we.left, width: we.width || "auto" },
2513
+ style: { top: ze.top, left: ze.left, width: ze.width || "auto" },
2492
2514
  children: [
2493
2515
  p && /* @__PURE__ */ e("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ a("div", { className: "relative", children: [
2494
- /* @__PURE__ */ e(Ye, { size: 14, className: "absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground" }),
2516
+ /* @__PURE__ */ e(qe, { size: 14, className: "absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground" }),
2495
2517
  /* @__PURE__ */ e(
2496
2518
  "input",
2497
2519
  {
2498
- ref: Z,
2520
+ ref: X,
2499
2521
  type: "text",
2500
- value: K,
2501
- onChange: (D) => Be(D.target.value),
2522
+ value: q,
2523
+ onChange: (D) => Le(D.target.value),
2502
2524
  placeholder: "Search\\u2026",
2503
2525
  className: "w-full pl-8 pr-3 py-1.5 bg-background border border-border rounded-[var(--radius-sm)] outline-none placeholder:text-muted-foreground focus:border-ring focus:ring-1 focus:ring-ring/20 transition-colors",
2504
2526
  style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
2505
- onKeyDown: _t
2527
+ onKeyDown: De
2506
2528
  }
2507
2529
  )
2508
2530
  ] }) }),
2509
- g && z && ve.length > 0 && /* @__PURE__ */ a(
2531
+ g && z && xe.length > 0 && /* @__PURE__ */ a(
2510
2532
  "button",
2511
2533
  {
2512
2534
  type: "button",
2513
- className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${G.option} border-b border-border transition-colors hover:bg-[var(--Colors--Background--bg-primary_hover)] cursor-pointer`,
2514
- style: { ...G.optionStyle, ...G.textStyle },
2515
- onClick: Ke,
2535
+ className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${Z.option} border-b border-border transition-colors hover:bg-[var(--Colors--Background--bg-primary_hover)] cursor-pointer`,
2536
+ style: { ...Z.optionStyle, ...Z.textStyle },
2537
+ onClick: ee,
2516
2538
  children: [
2517
2539
  /* @__PURE__ */ a(
2518
2540
  "span",
2519
2541
  {
2520
2542
  className: `flex-shrink-0 w-4 h-4 rounded-[var(--radius-sm)] border flex items-center justify-center transition-colors
2521
- ${oe ? "bg-primary border-primary" : Ue ? "bg-primary/50 border-primary" : "border-border"}
2543
+ ${he ? "bg-primary border-primary" : O ? "bg-primary/50 border-primary" : "border-border"}
2522
2544
  `,
2523
2545
  children: [
2524
- oe && /* @__PURE__ */ e(me, { size: 10, className: "text-primary-foreground" }),
2525
- Ue && !oe && /* @__PURE__ */ e("span", { className: "w-2 h-0.5 bg-primary-foreground rounded-full" })
2546
+ he && /* @__PURE__ */ e(me, { size: 10, className: "text-primary-foreground" }),
2547
+ O && !he && /* @__PURE__ */ e("span", { className: "w-2 h-0.5 bg-primary-foreground rounded-full" })
2526
2548
  ]
2527
2549
  }
2528
2550
  ),
2529
- /* @__PURE__ */ e("span", { className: "text-foreground", children: oe ? "Deselect All" : "Select All" }),
2551
+ /* @__PURE__ */ e("span", { className: "text-foreground", children: he ? "Deselect All" : "Select All" }),
2530
2552
  /* @__PURE__ */ a(
2531
2553
  "span",
2532
2554
  {
2533
2555
  className: "ml-auto text-muted-foreground",
2534
2556
  style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" },
2535
2557
  children: [
2536
- Array.isArray(P) ? P.length : 0,
2558
+ Array.isArray(Y) ? Y.length : 0,
2537
2559
  "/",
2538
- ve.filter((D) => !D.disabled).length
2560
+ xe.filter((D) => !D.disabled).length
2539
2561
  ]
2540
2562
  }
2541
2563
  )
@@ -2544,12 +2566,12 @@ const Go = {
2544
2566
  ),
2545
2567
  /* @__PURE__ */ a("div", { className: "max-h-60 overflow-y-auto p-1", children: [
2546
2568
  A ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center py-6 gap-2 text-muted-foreground", children: [
2547
- /* @__PURE__ */ e(Re, { size: 16, className: "animate-spin" }),
2569
+ /* @__PURE__ */ e(Ze, { size: 16, className: "animate-spin" }),
2548
2570
  /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: "Searching\\u2026" })
2549
- ] }) : ve.length === 0 && !Ce ? I ? /* @__PURE__ */ e("div", { className: "py-4 px-3", children: I }) : /* @__PURE__ */ a("div", { className: "text-center py-6 text-muted-foreground flex flex-col items-center gap-2", children: [
2571
+ ] }) : xe.length === 0 && !oe ? I ? /* @__PURE__ */ e("div", { className: "py-4 px-3", children: I }) : /* @__PURE__ */ a("div", { className: "text-center py-6 text-muted-foreground flex flex-col items-center gap-2", children: [
2550
2572
  /* @__PURE__ */ e(cn, { size: 24, className: "opacity-40" }),
2551
2573
  /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: "No options found" })
2552
- ] }) : k && ie ? Object.entries(ie).map(([D, R]) => /* @__PURE__ */ a("div", { children: [
2574
+ ] }) : k && Te ? Object.entries(Te).map(([D, P]) => /* @__PURE__ */ a("div", { children: [
2553
2575
  /* @__PURE__ */ e(
2554
2576
  "div",
2555
2577
  {
@@ -2558,21 +2580,21 @@ const Go = {
2558
2580
  children: D
2559
2581
  }
2560
2582
  ),
2561
- R.map((U) => {
2562
- const je = Ht(U, Ot);
2563
- return Ot++, je;
2583
+ P.map((U) => {
2584
+ const _e = Ht(U, Rt);
2585
+ return Rt++, _e;
2564
2586
  })
2565
- ] }, D)) : ve.map((D, R) => Ht(D, R)),
2566
- Ce && /* @__PURE__ */ a(
2587
+ ] }, D)) : xe.map((D, P) => Ht(D, P)),
2588
+ oe && /* @__PURE__ */ a(
2567
2589
  "button",
2568
2590
  {
2569
2591
  type: "button",
2570
- className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${G.option} text-primary transition-colors hover:bg-[var(--Colors--Background--bg-primary_hover)] cursor-pointer`,
2571
- style: { ...G.optionStyle, ...G.textStyle },
2572
- onClick: ct,
2592
+ className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${Z.option} text-primary transition-colors hover:bg-[var(--Colors--Background--bg-primary_hover)] cursor-pointer`,
2593
+ style: { ...Z.optionStyle, ...Z.textStyle },
2594
+ onClick: ye,
2573
2595
  children: [
2574
- /* @__PURE__ */ e(jt, { size: G.icon, className: "flex-shrink-0" }),
2575
- /* @__PURE__ */ e("span", { children: L.replace("{query}", K.trim()) })
2596
+ /* @__PURE__ */ e(Dt, { size: Z.icon, className: "flex-shrink-0" }),
2597
+ /* @__PURE__ */ e("span", { children: L.replace("{query}", q.trim()) })
2576
2598
  ]
2577
2599
  }
2578
2600
  )
@@ -2584,7 +2606,7 @@ const Go = {
2584
2606
  className: "px-3 py-2 text-muted-foreground",
2585
2607
  style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
2586
2608
  children: [
2587
- Array.isArray(P) ? P.length : 0,
2609
+ Array.isArray(Y) ? Y.length : 0,
2588
2610
  " / ",
2589
2611
  $,
2590
2612
  " selected"
@@ -2599,11 +2621,11 @@ const Go = {
2599
2621
  document.body
2600
2622
  ),
2601
2623
  (d || c || s) && /* @__PURE__ */ a("div", { className: "mt-1.5 flex items-center gap-1", children: [
2602
- Xe === "error" && /* @__PURE__ */ e(Ie, { size: 12, className: "text-destructive flex-shrink-0" }),
2624
+ Be === "error" && /* @__PURE__ */ e(Pe, { size: 12, className: "text-destructive flex-shrink-0" }),
2603
2625
  /* @__PURE__ */ e(
2604
2626
  "span",
2605
2627
  {
2606
- className: `${Xe === "error" ? "text-destructive" : Xe === "success" ? "text-chart-2" : "text-muted-foreground"}`,
2628
+ className: `${Be === "error" ? "text-destructive" : Be === "success" ? "text-chart-2" : "text-muted-foreground"}`,
2607
2629
  style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
2608
2630
  children: c || s || d
2609
2631
  }
@@ -2676,7 +2698,7 @@ const qo = {
2676
2698
  fontFamily: "var(--font-label)",
2677
2699
  fontSize: "var(--text-label)",
2678
2700
  fontWeight: "var(--weight-label)"
2679
- }, Je = {
2701
+ }, tt = {
2680
2702
  fontFamily: "var(--font-label)",
2681
2703
  fontSize: "var(--text-label)",
2682
2704
  fontWeight: "var(--weight-button)"
@@ -2716,7 +2738,7 @@ function Vt({
2716
2738
  style: { width: `${n.progress}%` }
2717
2739
  }
2718
2740
  ) }),
2719
- n.status === "done" && /* @__PURE__ */ e(Ne, { size: 12, className: "text-chart-2" })
2741
+ n.status === "done" && /* @__PURE__ */ e($e, { size: 12, className: "text-chart-2" })
2720
2742
  ] })
2721
2743
  ] }),
2722
2744
  /* @__PURE__ */ e(
@@ -2724,7 +2746,7 @@ function Vt({
2724
2746
  {
2725
2747
  onClick: () => r(n.id),
2726
2748
  className: "text-muted-foreground hover:text-destructive cursor-pointer",
2727
- children: /* @__PURE__ */ e(le, { size: 14 })
2749
+ children: /* @__PURE__ */ e(ie, { size: 14 })
2728
2750
  }
2729
2751
  )
2730
2752
  ]
@@ -2745,7 +2767,7 @@ function Mi({
2745
2767
  onUpload: f,
2746
2768
  onRemove: h
2747
2769
  }) {
2748
- const [v, x] = j([]), [u, p] = j(!1), b = ee(null), g = c ?? v, $ = (m) => {
2770
+ const [v, x] = j([]), [u, p] = j(!1), b = V(null), g = c ?? v, $ = (m) => {
2749
2771
  if (!m) return;
2750
2772
  const y = Array.from(m);
2751
2773
  if (s && s(y), c === void 0) {
@@ -2776,7 +2798,7 @@ function Mi({
2776
2798
  h && h(m), c === void 0 && x((y) => y.filter((w) => w.id !== m));
2777
2799
  };
2778
2800
  return l === "button" ? /* @__PURE__ */ a("div", { className: "space-y-3", children: [
2779
- i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: Je, children: i }),
2801
+ i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: tt, children: i }),
2780
2802
  /* @__PURE__ */ a(
2781
2803
  "button",
2782
2804
  {
@@ -2788,7 +2810,7 @@ function Mi({
2788
2810
  className: `inline-flex items-center gap-2 px-4 py-2 rounded-[var(--radius-md)] border border-border bg-background text-foreground hover:bg-accent transition-colors cursor-pointer ${o ? "opacity-50 pointer-events-none" : ""}`,
2789
2811
  style: Jo,
2790
2812
  children: [
2791
- /* @__PURE__ */ e(Ve, { size: 14 }),
2813
+ /* @__PURE__ */ e(nt, { size: 14 }),
2792
2814
  " Choose File",
2793
2815
  n ? "s" : ""
2794
2816
  ]
@@ -2807,7 +2829,7 @@ function Mi({
2807
2829
  ),
2808
2830
  g.length > 0 && /* @__PURE__ */ e(Vt, { files: g, onRemove: k })
2809
2831
  ] }) : l === "avatar" ? /* @__PURE__ */ a("div", { className: "space-y-2", children: [
2810
- i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: Je, children: i }),
2832
+ i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: tt, children: i }),
2811
2833
  /* @__PURE__ */ e(
2812
2834
  "div",
2813
2835
  {
@@ -2817,7 +2839,7 @@ function Mi({
2817
2839
  },
2818
2840
  className: `w-24 h-24 rounded-full border-2 border-dashed flex items-center justify-center cursor-pointer transition-colors
2819
2841
  ${o ? "opacity-50 pointer-events-none" : ""} ${u ? "border-primary bg-primary/5" : "border-border hover:border-primary/40"}`,
2820
- children: g.length > 0 && g[g.length - 1].status === "done" ? /* @__PURE__ */ e(Ne, { size: 24, className: "text-chart-2" }) : /* @__PURE__ */ e(Ve, { size: 20, className: "text-muted-foreground" })
2842
+ children: g.length > 0 && g[g.length - 1].status === "done" ? /* @__PURE__ */ e($e, { size: 24, className: "text-chart-2" }) : /* @__PURE__ */ e(nt, { size: 20, className: "text-muted-foreground" })
2821
2843
  }
2822
2844
  ),
2823
2845
  /* @__PURE__ */ e(
@@ -2831,7 +2853,7 @@ function Mi({
2831
2853
  }
2832
2854
  )
2833
2855
  ] }) : /* @__PURE__ */ a("div", { className: "space-y-3", children: [
2834
- i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: Je, children: i }),
2856
+ i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: tt, children: i }),
2835
2857
  /* @__PURE__ */ a(
2836
2858
  "div",
2837
2859
  {
@@ -2850,9 +2872,9 @@ function Mi({
2850
2872
  ${o ? "opacity-50 pointer-events-none" : ""}
2851
2873
  ${u ? "border-primary bg-primary/5" : "border-border hover:border-primary/40 hover:bg-accent/30"}`,
2852
2874
  children: [
2853
- /* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ e(Ve, { size: 20, className: "text-primary" }) }),
2875
+ /* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ e(nt, { size: 20, className: "text-primary" }) }),
2854
2876
  /* @__PURE__ */ a("div", { className: "text-center", children: [
2855
- /* @__PURE__ */ a("p", { className: "text-foreground", style: Je, children: [
2877
+ /* @__PURE__ */ a("p", { className: "text-foreground", style: tt, children: [
2856
2878
  /* @__PURE__ */ e("span", { className: "text-primary", children: "Click to upload" }),
2857
2879
  " or drag and drop"
2858
2880
  ] }),
@@ -2972,7 +2994,7 @@ function Li({ images: t, initialIndex: r = 0 }) {
2972
2994
  },
2973
2995
  "aria-label": "Close preview",
2974
2996
  className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] text-primary-foreground/70 hover:text-primary-foreground hover:bg-primary-foreground/10 cursor-pointer",
2975
- children: /* @__PURE__ */ e(le, { size: 16 })
2997
+ children: /* @__PURE__ */ e(ie, { size: 16 })
2976
2998
  }
2977
2999
  )
2978
3000
  ] })
@@ -2991,7 +3013,7 @@ function Li({ images: t, initialIndex: r = 0 }) {
2991
3013
  onClick: v,
2992
3014
  "aria-label": "Previous image",
2993
3015
  className: "absolute left-4 w-10 h-10 rounded-full bg-foreground/30 text-primary-foreground flex items-center justify-center hover:bg-foreground/50 cursor-pointer z-10",
2994
- children: /* @__PURE__ */ e(Fe, { size: 20 })
3016
+ children: /* @__PURE__ */ e(Me, { size: 20 })
2995
3017
  }
2996
3018
  ),
2997
3019
  /* @__PURE__ */ e(
@@ -3055,13 +3077,13 @@ const ta = {
3055
3077
  fontWeight: "var(--weight-button)"
3056
3078
  };
3057
3079
  function oa({ items: t, parentRect: r }) {
3058
- const n = ee(null), [o, l] = j({ top: r.top, left: r.right + 4 });
3080
+ const n = V(null), [o, l] = j({ top: r.top, left: r.right + 4 });
3059
3081
  return ne(() => {
3060
3082
  if (!n.current) return;
3061
3083
  const d = n.current.getBoundingClientRect();
3062
3084
  let c = r.top, s = r.right + 4;
3063
3085
  s + d.width > window.innerWidth - 8 && (s = r.left - d.width - 4), c + d.height > window.innerHeight - 8 && (c = window.innerHeight - d.height - 8), l({ top: c, left: s });
3064
- }, [r]), dt(
3086
+ }, [r]), Qe(
3065
3087
  /* @__PURE__ */ e(
3066
3088
  "div",
3067
3089
  {
@@ -3075,7 +3097,7 @@ function oa({ items: t, parentRect: r }) {
3075
3097
  );
3076
3098
  }
3077
3099
  function Ir({ item: t }) {
3078
- const [r, n] = j(!1), o = ee(null), l = ee(null);
3100
+ const [r, n] = j(!1), o = V(null), l = V(null);
3079
3101
  if (t.divider) return /* @__PURE__ */ e("div", { className: "my-1 border-t border-border" });
3080
3102
  if (t.label)
3081
3103
  return /* @__PURE__ */ e("div", { className: "px-3 py-1.5 text-muted-foreground", style: na, children: t.label });
@@ -3107,7 +3129,7 @@ function Ir({ item: t }) {
3107
3129
  ] });
3108
3130
  }
3109
3131
  function aa({ items: t, open: r, onClose: n, triggerRef: o, className: l = "" }) {
3110
- const i = ee(null), [d, c] = j({ top: 0, left: 0 });
3132
+ const i = V(null), [d, c] = j({ top: 0, left: 0 });
3111
3133
  return ne(() => {
3112
3134
  if (!r || !o.current) return;
3113
3135
  const s = o.current.getBoundingClientRect();
@@ -3124,7 +3146,7 @@ function aa({ items: t, open: r, onClose: n, triggerRef: o, className: l = "" })
3124
3146
  (h = o.current) != null && h.contains(f.target) || (v = i.current) != null && v.contains(f.target) || n();
3125
3147
  };
3126
3148
  return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
3127
- }, [r, n, o]), r ? dt(
3149
+ }, [r, n, o]), r ? Qe(
3128
3150
  /* @__PURE__ */ a(
3129
3151
  "div",
3130
3152
  {
@@ -3145,7 +3167,7 @@ const Tr = {
3145
3167
  fontFamily: "var(--font-label)",
3146
3168
  fontSize: "var(--text-label)",
3147
3169
  fontWeight: "var(--weight-label)"
3148
- }, St = {
3170
+ }, kt = {
3149
3171
  fontFamily: "var(--font-label)",
3150
3172
  fontSize: "var(--text-label)",
3151
3173
  fontWeight: "var(--weight-button)"
@@ -3153,7 +3175,7 @@ const Tr = {
3153
3175
  fontFamily: "var(--font-button)",
3154
3176
  fontSize: "var(--text-button)",
3155
3177
  fontWeight: "var(--weight-label)"
3156
- }, tt = {
3178
+ }, at = {
3157
3179
  fontFamily: "var(--font-button)",
3158
3180
  fontSize: "var(--text-button)",
3159
3181
  fontWeight: "var(--weight-button)"
@@ -3171,7 +3193,7 @@ function ia({
3171
3193
  }) {
3172
3194
  const f = {
3173
3195
  info: /* @__PURE__ */ e(pr, { size: 16, className: "text-primary" }),
3174
- success: /* @__PURE__ */ e(Ne, { size: 16, className: "text-chart-2" }),
3196
+ success: /* @__PURE__ */ e($e, { size: 16, className: "text-chart-2" }),
3175
3197
  warning: /* @__PURE__ */ e(br, { size: 16, className: "text-chart-5" }),
3176
3198
  error: /* @__PURE__ */ e(hr, { size: 16, className: "text-destructive" })
3177
3199
  };
@@ -3189,13 +3211,13 @@ function ia({
3189
3211
  "div",
3190
3212
  {
3191
3213
  className: "w-8 h-8 rounded-full bg-muted flex-shrink-0 flex items-center justify-center overflow-hidden",
3192
- style: St,
3214
+ style: kt,
3193
3215
  children: /* @__PURE__ */ e("span", { className: "text-primary", children: d.slice(0, 2).toUpperCase() })
3194
3216
  }
3195
3217
  ) : /* @__PURE__ */ e("span", { className: "flex-shrink-0 mt-0.5", children: f[t] }),
3196
3218
  /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: [
3197
3219
  /* @__PURE__ */ a("div", { className: "flex items-start justify-between gap-2", children: [
3198
- /* @__PURE__ */ e("span", { className: "text-foreground", style: St, children: r }),
3220
+ /* @__PURE__ */ e("span", { className: "text-foreground", style: kt, children: r }),
3199
3221
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
3200
3222
  c && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: la, children: c }),
3201
3223
  s === !1 && /* @__PURE__ */ e("span", { className: "w-2 h-2 rounded-full bg-primary" }),
@@ -3204,7 +3226,7 @@ function ia({
3204
3226
  {
3205
3227
  onClick: l,
3206
3228
  className: "text-muted-foreground hover:text-foreground cursor-pointer",
3207
- children: /* @__PURE__ */ e(le, { size: 14 })
3229
+ children: /* @__PURE__ */ e(ie, { size: 14 })
3208
3230
  }
3209
3231
  )
3210
3232
  ] })
@@ -3215,7 +3237,7 @@ function ia({
3215
3237
  {
3216
3238
  onClick: i.onClick,
3217
3239
  className: "inline-flex items-center gap-1 text-primary mt-2 hover:underline cursor-pointer",
3218
- style: tt,
3240
+ style: at,
3219
3241
  children: [
3220
3242
  i.label,
3221
3243
  " ",
@@ -3248,12 +3270,12 @@ function Ci({
3248
3270
  /* @__PURE__ */ a("div", { className: "px-4 py-3 border-b border-border flex items-center justify-between", children: [
3249
3271
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
3250
3272
  /* @__PURE__ */ e(wr, { size: 16, className: "text-foreground" }),
3251
- /* @__PURE__ */ e("span", { className: "text-foreground", style: St, children: "Notifications" }),
3273
+ /* @__PURE__ */ e("span", { className: "text-foreground", style: kt, children: "Notifications" }),
3252
3274
  f > 0 && /* @__PURE__ */ e(
3253
3275
  "span",
3254
3276
  {
3255
3277
  className: "px-1.5 py-0.5 rounded-full bg-primary text-primary-foreground",
3256
- style: tt,
3278
+ style: at,
3257
3279
  children: f
3258
3280
  }
3259
3281
  )
@@ -3264,7 +3286,7 @@ function Ci({
3264
3286
  {
3265
3287
  onClick: h,
3266
3288
  className: "text-primary cursor-pointer",
3267
- style: tt,
3289
+ style: at,
3268
3290
  children: "Mark all read"
3269
3291
  }
3270
3292
  ),
@@ -3273,7 +3295,7 @@ function Ci({
3273
3295
  {
3274
3296
  onClick: l,
3275
3297
  className: "text-muted-foreground hover:text-destructive cursor-pointer",
3276
- style: tt,
3298
+ style: at,
3277
3299
  children: "Clear all"
3278
3300
  }
3279
3301
  )
@@ -3320,7 +3342,7 @@ function ji({
3320
3342
  }) {
3321
3343
  const [d, c] = j(!1), s = l !== void 0 ? l : d, f = (x) => {
3322
3344
  i == null || i(x), l === void 0 && c(x);
3323
- }, h = ee(null);
3345
+ }, h = V(null);
3324
3346
  return ne(() => {
3325
3347
  if (!s) return;
3326
3348
  const x = (u) => {
@@ -3346,7 +3368,7 @@ function ji({
3346
3368
  {
3347
3369
  onClick: () => f(!1),
3348
3370
  className: "text-muted-foreground hover:text-foreground cursor-pointer",
3349
- children: /* @__PURE__ */ e(le, { size: 14 })
3371
+ children: /* @__PURE__ */ e(ie, { size: 14 })
3350
3372
  }
3351
3373
  )
3352
3374
  ] }),
@@ -3472,7 +3494,7 @@ function Br({
3472
3494
  placement: n = "top",
3473
3495
  className: o = ""
3474
3496
  }) {
3475
- const [l, i] = j(!1), [d, c] = j({ top: 0, left: 0 }), s = ee(null), f = () => {
3497
+ const [l, i] = j(!1), [d, c] = j({ top: 0, left: 0 }), s = V(null), f = () => {
3476
3498
  if (!s.current) return;
3477
3499
  const p = s.current.getBoundingClientRect(), b = 8;
3478
3500
  let g = 0, $ = 0;
@@ -3509,7 +3531,7 @@ function Br({
3509
3531
  )
3510
3532
  }
3511
3533
  ) : null;
3512
- return /* @__PURE__ */ a(ge, { children: [
3534
+ return /* @__PURE__ */ a(ve, { children: [
3513
3535
  /* @__PURE__ */ e(
3514
3536
  "div",
3515
3537
  {
@@ -3542,7 +3564,7 @@ const er = {
3542
3564
  fontWeight: "var(--weight-p)",
3543
3565
  lineHeight: "1"
3544
3566
  };
3545
- function bt({ item: t, size: r = 40 }) {
3567
+ function pt({ item: t, size: r = 40 }) {
3546
3568
  const n = r + "px", o = r >= 40 ? "var(--text-label)" : "var(--text-caption)";
3547
3569
  if (t.avatarUrl)
3548
3570
  return /* @__PURE__ */ e(
@@ -3587,7 +3609,7 @@ function _r({
3587
3609
  onProviderChange: s,
3588
3610
  collapsed: f = !1
3589
3611
  }) {
3590
- const [h, v] = j(!1), x = ee(null);
3612
+ const [h, v] = j(!1), x = V(null);
3591
3613
  ne(() => {
3592
3614
  if (!h) return;
3593
3615
  const g = ($) => {
@@ -3615,7 +3637,7 @@ function _r({
3615
3637
  alignItems: "center",
3616
3638
  justifyContent: "center"
3617
3639
  },
3618
- children: u ? /* @__PURE__ */ e(bt, { item: u, size: 36 }) : /* @__PURE__ */ e("div", { style: { width: 36, height: 36, borderRadius: "50%", background: "var(--primary)", display: "flex", alignItems: "center", justifyContent: "center", color: "#fff", fontFamily: "var(--font-label)", fontSize: "var(--text-caption)", fontWeight: "var(--weight-button)" }, children: "S" })
3640
+ children: u ? /* @__PURE__ */ e(pt, { item: u, size: 36 }) : /* @__PURE__ */ e("div", { style: { width: 36, height: 36, borderRadius: "50%", background: "var(--primary)", display: "flex", alignItems: "center", justifyContent: "center", color: "#fff", fontFamily: "var(--font-label)", fontSize: "var(--text-caption)", fontWeight: "var(--weight-button)" }, children: "S" })
3619
3641
  }
3620
3642
  ) : /* @__PURE__ */ a("div", { ref: x, style: { position: "relative", width: "100%" }, children: [
3621
3643
  /* @__PURE__ */ a(
@@ -3636,13 +3658,13 @@ function _r({
3636
3658
  minHeight: "56px"
3637
3659
  },
3638
3660
  children: [
3639
- u ? /* @__PURE__ */ e(bt, { item: u, size: 40 }) : /* @__PURE__ */ e("div", { style: { width: 40, height: 40, borderRadius: "50%", background: "var(--primary)", display: "flex", alignItems: "center", justifyContent: "center", color: "#fff", fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)", flexShrink: 0 }, children: "S" }),
3661
+ u ? /* @__PURE__ */ e(pt, { item: u, size: 40 }) : /* @__PURE__ */ e("div", { style: { width: 40, height: 40, borderRadius: "50%", background: "var(--primary)", display: "flex", alignItems: "center", justifyContent: "center", color: "#fff", fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)", flexShrink: 0 }, children: "S" }),
3640
3662
  /* @__PURE__ */ a("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: "4px" }, children: [
3641
3663
  /* @__PURE__ */ e("span", { style: { ...er, color: "var(--foreground, #1f2937)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", display: "block" }, children: (u == null ? void 0 : u.name) ?? "Select Company" }),
3642
3664
  p && /* @__PURE__ */ e("span", { style: { ...ba, color: "var(--Base_Color--Sky--500, #32a9ff)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", display: "block" }, children: p })
3643
3665
  ] }),
3644
3666
  /* @__PURE__ */ e(
3645
- Ge,
3667
+ Je,
3646
3668
  {
3647
3669
  size: 16,
3648
3670
  color: "rgba(50,169,255,1)",
@@ -3697,7 +3719,7 @@ function _r({
3697
3719
  k.currentTarget.style.background = $ ? "rgba(240,249,255,0.6)" : "none";
3698
3720
  },
3699
3721
  children: [
3700
- /* @__PURE__ */ e(bt, { item: g, size: 36 }),
3722
+ /* @__PURE__ */ e(pt, { item: g, size: 36 }),
3701
3723
  /* @__PURE__ */ a("div", { style: { flex: 1, minWidth: 0 }, children: [
3702
3724
  /* @__PURE__ */ e("div", { style: { ...er, color: "var(--foreground, #1f2937)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: g.name }),
3703
3725
  g.handle && /* @__PURE__ */ e("div", { style: { ...pa, color: "var(--muted-foreground, #6b7280)", marginTop: "2px" }, children: g.handle })
@@ -3733,7 +3755,7 @@ const ga = {
3733
3755
  fontSize: "var(--text-button)",
3734
3756
  fontWeight: "var(--weight-label)"
3735
3757
  };
3736
- function kt({
3758
+ function zt({
3737
3759
  brand: t,
3738
3760
  accountSwitcher: r,
3739
3761
  groups: n,
@@ -3793,7 +3815,7 @@ function kt({
3793
3815
  children: [
3794
3816
  /* @__PURE__ */ e("span", { children: p.label }),
3795
3817
  /* @__PURE__ */ e(
3796
- Ge,
3818
+ Je,
3797
3819
  {
3798
3820
  size: 12,
3799
3821
  style: {
@@ -3858,7 +3880,7 @@ function kt({
3858
3880
  ),
3859
3881
  s && !i && /* @__PURE__ */ a("div", { className: "px-2 flex items-center gap-1.5 text-muted-foreground/60", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-caption)", fontWeight: "var(--weight-label)" }, children: [
3860
3882
  /* @__PURE__ */ e("span", { children: s }),
3861
- f && /* @__PURE__ */ a(ge, { children: [
3883
+ f && /* @__PURE__ */ a(ve, { children: [
3862
3884
  /* @__PURE__ */ e("span", { children: "·" }),
3863
3885
  /* @__PURE__ */ e("span", { children: f })
3864
3886
  ] })
@@ -3869,7 +3891,7 @@ function kt({
3869
3891
  }
3870
3892
  );
3871
3893
  }
3872
- kt.displayName = "Sidebar";
3894
+ zt.displayName = "Sidebar";
3873
3895
  function de({
3874
3896
  width: t,
3875
3897
  height: r,
@@ -3981,7 +4003,7 @@ function $a({ size: t = "md", color: r, className: n = "" }) {
3981
4003
  );
3982
4004
  }
3983
4005
  $a.displayName = "Spinner";
3984
- const zt = {
4006
+ const Ft = {
3985
4007
  fontFamily: "var(--font-label)",
3986
4008
  fontSize: "var(--text-label)",
3987
4009
  fontWeight: "var(--weight-label)"
@@ -3989,11 +4011,11 @@ const zt = {
3989
4011
  fontFamily: "var(--font-label)",
3990
4012
  fontSize: "var(--text-label)",
3991
4013
  fontWeight: "var(--weight-button)"
3992
- }, Or = {
4014
+ }, Rr = {
3993
4015
  fontFamily: "var(--font-label)",
3994
4016
  fontSize: "var(--text-label)",
3995
4017
  fontWeight: "var(--weight-label)"
3996
- }, Rr = {
4018
+ }, Or = {
3997
4019
  fontFamily: "var(--font-label)",
3998
4020
  fontSize: "var(--text-label)",
3999
4021
  fontWeight: "var(--weight-button)"
@@ -4025,7 +4047,7 @@ function Ii({
4025
4047
  size: c = "md",
4026
4048
  loading: s
4027
4049
  }) {
4028
- const f = Sa[c], h = (l == null ? void 0 : l.direction) === "up" ? "text-chart-2" : (l == null ? void 0 : l.direction) === "down" ? "text-destructive" : "text-muted-foreground", v = (l == null ? void 0 : l.direction) === "up" ? Nr : (l == null ? void 0 : l.direction) === "down" ? $r : st;
4050
+ const f = Sa[c], h = (l == null ? void 0 : l.direction) === "up" ? "text-chart-2" : (l == null ? void 0 : l.direction) === "down" ? "text-destructive" : "text-muted-foreground", v = (l == null ? void 0 : l.direction) === "up" ? Nr : (l == null ? void 0 : l.direction) === "down" ? $r : ft;
4029
4051
  return s ? /* @__PURE__ */ a("div", { className: "space-y-2 animate-pulse", children: [
4030
4052
  /* @__PURE__ */ e("div", { className: "h-3 w-20 bg-muted rounded-[var(--radius-sm)]" }),
4031
4053
  /* @__PURE__ */ e("div", { className: "h-8 w-32 bg-muted rounded-[var(--radius-sm)]" }),
@@ -4033,20 +4055,20 @@ function Ii({
4033
4055
  ] }) : /* @__PURE__ */ a("div", { className: "space-y-1", children: [
4034
4056
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
4035
4057
  d && /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: d }),
4036
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: zt, children: t })
4058
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Ft, children: t })
4037
4059
  ] }),
4038
4060
  /* @__PURE__ */ a("div", { className: "flex items-baseline gap-1", children: [
4039
4061
  n && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Hr, children: n }),
4040
4062
  /* @__PURE__ */ e("span", { className: "text-foreground", style: f, children: typeof r == "number" ? r.toLocaleString() : r }),
4041
- o && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: zt, children: o })
4063
+ o && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Ft, children: o })
4042
4064
  ] }),
4043
4065
  l && /* @__PURE__ */ a("div", { className: `flex items-center gap-1 ${h}`, children: [
4044
4066
  /* @__PURE__ */ e(v, { size: 14 }),
4045
- /* @__PURE__ */ a("span", { style: Rr, children: [
4067
+ /* @__PURE__ */ a("span", { style: Or, children: [
4046
4068
  l.value,
4047
4069
  "%"
4048
4070
  ] }),
4049
- i && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Or, children: i })
4071
+ i && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Rr, children: i })
4050
4072
  ] })
4051
4073
  ] });
4052
4074
  }
@@ -4059,10 +4081,10 @@ function Ti({
4059
4081
  icon: i,
4060
4082
  iconBg: d
4061
4083
  }) {
4062
- const c = (o == null ? void 0 : o.direction) === "up" ? "text-chart-2" : (o == null ? void 0 : o.direction) === "down" ? "text-destructive" : "text-muted-foreground", s = (o == null ? void 0 : o.direction) === "up" ? Nr : (o == null ? void 0 : o.direction) === "down" ? $r : st;
4084
+ const c = (o == null ? void 0 : o.direction) === "up" ? "text-chart-2" : (o == null ? void 0 : o.direction) === "down" ? "text-destructive" : "text-muted-foreground", s = (o == null ? void 0 : o.direction) === "up" ? Nr : (o == null ? void 0 : o.direction) === "down" ? $r : ft;
4063
4085
  return /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card p-5 overflow-hidden", children: /* @__PURE__ */ a("div", { className: "flex items-start justify-between gap-3", children: [
4064
4086
  /* @__PURE__ */ a("div", { className: "space-y-1 min-w-0 flex-1", children: [
4065
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: zt, children: t }),
4087
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Ft, children: t }),
4066
4088
  /* @__PURE__ */ a("div", { className: "flex items-baseline gap-1", children: [
4067
4089
  n && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Hr, children: n }),
4068
4090
  /* @__PURE__ */ e(
@@ -4080,11 +4102,11 @@ function Ti({
4080
4102
  ] }),
4081
4103
  o && /* @__PURE__ */ a("div", { className: `flex items-center gap-1 ${c}`, children: [
4082
4104
  /* @__PURE__ */ e(s, { size: 12 }),
4083
- /* @__PURE__ */ a("span", { style: Rr, children: [
4105
+ /* @__PURE__ */ a("span", { style: Or, children: [
4084
4106
  o.value,
4085
4107
  "%"
4086
4108
  ] }),
4087
- l && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Or, children: l })
4109
+ l && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Rr, children: l })
4088
4110
  ] })
4089
4111
  ] }),
4090
4112
  i && /* @__PURE__ */ e(
@@ -4318,7 +4340,7 @@ function Ea({
4318
4340
  children: [
4319
4341
  o && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: o }),
4320
4342
  t,
4321
- l && /* @__PURE__ */ e("button", { className: "hover:opacity-70 cursor-pointer", onClick: i, children: /* @__PURE__ */ e(le, { size: n === "sm" ? 10 : 12 }) })
4343
+ l && /* @__PURE__ */ e("button", { className: "hover:opacity-70 cursor-pointer", onClick: i, children: /* @__PURE__ */ e(ie, { size: n === "sm" ? 10 : 12 }) })
4322
4344
  ]
4323
4345
  }
4324
4346
  );
@@ -4369,7 +4391,7 @@ function _a({
4369
4391
  {
4370
4392
  className: "hover:text-destructive cursor-pointer",
4371
4393
  onClick: () => h(v),
4372
- children: /* @__PURE__ */ e(le, { size: 12 })
4394
+ children: /* @__PURE__ */ e(ie, { size: 12 })
4373
4395
  }
4374
4396
  )
4375
4397
  ]
@@ -4403,7 +4425,7 @@ const Ha = {
4403
4425
  fontFamily: "var(--font-label)",
4404
4426
  fontSize: "var(--text-label)",
4405
4427
  fontWeight: "var(--weight-button)"
4406
- }, pt = {
4428
+ }, gt = {
4407
4429
  fontFamily: "var(--font-button)",
4408
4430
  fontSize: "var(--text-button)",
4409
4431
  fontWeight: "var(--weight-label)"
@@ -4422,7 +4444,7 @@ function _i({
4422
4444
  className: `${o} rounded-full flex items-center justify-center flex-shrink-0 ${i(
4423
4445
  d.status
4424
4446
  )}`,
4425
- children: d.icon || (d.status === "completed" ? /* @__PURE__ */ e(Ne, { size: l }) : /* @__PURE__ */ e(Yt, { size: l }))
4447
+ children: d.icon || (d.status === "completed" ? /* @__PURE__ */ e($e, { size: l }) : /* @__PURE__ */ e(Yt, { size: l }))
4426
4448
  }
4427
4449
  ),
4428
4450
  c < t.length - 1 && /* @__PURE__ */ e("div", { className: "w-0.5 flex-1 min-h-4 bg-border" })
@@ -4430,13 +4452,13 @@ function _i({
4430
4452
  /* @__PURE__ */ a("div", { className: "pb-4 min-w-0", children: [
4431
4453
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
4432
4454
  /* @__PURE__ */ e("span", { className: "text-foreground", style: ar, children: d.title }),
4433
- d.time && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: pt, children: d.time })
4455
+ d.time && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: gt, children: d.time })
4434
4456
  ] }),
4435
4457
  d.description && /* @__PURE__ */ e(
4436
4458
  "p",
4437
4459
  {
4438
4460
  className: "text-muted-foreground mt-0.5",
4439
- style: pt,
4461
+ style: gt,
4440
4462
  children: d.description
4441
4463
  }
4442
4464
  )
@@ -4455,7 +4477,7 @@ function _i({
4455
4477
  className: `${o} rounded-full flex items-center justify-center ${i(
4456
4478
  d.status
4457
4479
  )}`,
4458
- children: d.icon || (d.status === "completed" ? /* @__PURE__ */ e(Ne, { size: l }) : /* @__PURE__ */ e(Yt, { size: l }))
4480
+ children: d.icon || (d.status === "completed" ? /* @__PURE__ */ e($e, { size: l }) : /* @__PURE__ */ e(Yt, { size: l }))
4459
4481
  }
4460
4482
  ),
4461
4483
  c < t.length - 1 && /* @__PURE__ */ e("div", { className: "w-0.5 flex-1 bg-border mt-1" })
@@ -4471,7 +4493,7 @@ function _i({
4471
4493
  className: `flex items-center gap-2 ${s ? "justify-end" : ""}`,
4472
4494
  children: [
4473
4495
  /* @__PURE__ */ e("span", { className: "text-foreground", style: ar, children: d.title }),
4474
- d.time && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: pt, children: d.time })
4496
+ d.time && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: gt, children: d.time })
4475
4497
  ]
4476
4498
  }
4477
4499
  ),
@@ -4493,7 +4515,7 @@ function _i({
4493
4515
  );
4494
4516
  }) });
4495
4517
  }
4496
- const _e = {
4518
+ const Ge = {
4497
4519
  fontFamily: "var(--font-label)",
4498
4520
  fontSize: "var(--text-label)",
4499
4521
  fontWeight: "var(--weight-button)"
@@ -4541,7 +4563,7 @@ function Pr({
4541
4563
  children: /* @__PURE__ */ e(Gt, { size: 16 })
4542
4564
  }
4543
4565
  ),
4544
- t && /* @__PURE__ */ e(ge, { children: typeof t.logo == "string" ? /* @__PURE__ */ e(
4566
+ t && /* @__PURE__ */ e(ve, { children: typeof t.logo == "string" ? /* @__PURE__ */ e(
4545
4567
  "img",
4546
4568
  {
4547
4569
  src: t.logo,
@@ -4552,13 +4574,13 @@ function Pr({
4552
4574
  "div",
4553
4575
  {
4554
4576
  className: "w-8 h-8 rounded-[var(--radius-sm)] bg-primary flex items-center justify-center text-primary-foreground flex-shrink-0",
4555
- style: _e,
4577
+ style: Ge,
4556
4578
  children: t.name.charAt(0).toUpperCase()
4557
4579
  }
4558
4580
  ) }),
4559
4581
  b && /* @__PURE__ */ e("div", { className: "flex items-center ml-1", children: b }),
4560
- n && /* @__PURE__ */ e("span", { className: "text-foreground hidden sm:block truncate", style: _e, children: n }),
4561
- r && r.length > 0 && /* @__PURE__ */ e("nav", { className: "hidden sm:flex items-center gap-1.5 text-muted-foreground", style: _e, children: r.map((k, m) => /* @__PURE__ */ a(pe.Fragment, { children: [
4582
+ n && /* @__PURE__ */ e("span", { className: "text-foreground hidden sm:block truncate", style: Ge, children: n }),
4583
+ r && r.length > 0 && /* @__PURE__ */ e("nav", { className: "hidden sm:flex items-center gap-1.5 text-muted-foreground", style: Ge, children: r.map((k, m) => /* @__PURE__ */ a(ge.Fragment, { children: [
4562
4584
  m > 0 && /* @__PURE__ */ e(fe, { size: 12 }),
4563
4585
  k.href || p ? /* @__PURE__ */ e(
4564
4586
  "span",
@@ -4582,8 +4604,8 @@ function Pr({
4582
4604
  className: "hidden md:flex items-center gap-2 px-3 h-8 rounded-[var(--radius)] border border-border bg-muted/20 text-muted-foreground w-56 cursor-pointer hover:border-primary/40 transition-colors",
4583
4605
  onClick: s,
4584
4606
  children: [
4585
- /* @__PURE__ */ e(Ye, { size: 14 }),
4586
- /* @__PURE__ */ e("span", { style: _e, children: c })
4607
+ /* @__PURE__ */ e(qe, { size: 14 }),
4608
+ /* @__PURE__ */ e("span", { style: Ge, children: c })
4587
4609
  ]
4588
4610
  }
4589
4611
  ),
@@ -4615,7 +4637,7 @@ function Pr({
4615
4637
  "div",
4616
4638
  {
4617
4639
  className: "w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center",
4618
- style: _e,
4640
+ style: Ge,
4619
4641
  children: $
4620
4642
  }
4621
4643
  )
@@ -4626,7 +4648,7 @@ function Pr({
4626
4648
  );
4627
4649
  }
4628
4650
  Pr.displayName = "TopNavbar";
4629
- const Oa = {
4651
+ const Ra = {
4630
4652
  fontFamily: "var(--font-label)",
4631
4653
  fontSize: "var(--text-label)",
4632
4654
  fontWeight: "var(--weight-label)"
@@ -4634,7 +4656,7 @@ const Oa = {
4634
4656
  fontFamily: "var(--font-label)",
4635
4657
  fontSize: "var(--text-label)",
4636
4658
  fontWeight: "var(--weight-button)"
4637
- }, gt = {
4659
+ }, vt = {
4638
4660
  fontFamily: "var(--font-button)",
4639
4661
  fontSize: "var(--text-button)",
4640
4662
  fontWeight: "var(--weight-label)"
@@ -4651,13 +4673,13 @@ function lr({
4651
4673
  return /* @__PURE__ */ a("div", { className: "flex-1 min-w-[180px] rounded-[var(--radius-md)] border border-border bg-card overflow-hidden", children: [
4652
4674
  /* @__PURE__ */ a("div", { className: "px-3 py-2.5 border-b border-border bg-muted/30 flex items-center justify-between", children: [
4653
4675
  /* @__PURE__ */ e("span", { className: "text-foreground", style: Yr, children: t }),
4654
- /* @__PURE__ */ a("span", { className: "text-muted-foreground", style: gt, children: [
4676
+ /* @__PURE__ */ a("span", { className: "text-muted-foreground", style: vt, children: [
4655
4677
  r.length,
4656
4678
  " items"
4657
4679
  ] })
4658
4680
  ] }),
4659
4681
  d && /* @__PURE__ */ a("div", { className: "px-3 py-2 border-b border-border flex items-center gap-2", children: [
4660
- /* @__PURE__ */ e(Ye, { size: 12, className: "text-muted-foreground" }),
4682
+ /* @__PURE__ */ e(qe, { size: 12, className: "text-muted-foreground" }),
4661
4683
  /* @__PURE__ */ e(
4662
4684
  "input",
4663
4685
  {
@@ -4665,7 +4687,7 @@ function lr({
4665
4687
  onChange: (c) => i(c.target.value),
4666
4688
  placeholder: "Search\\u2026",
4667
4689
  className: "flex-1 bg-transparent outline-none text-foreground placeholder:text-muted-foreground",
4668
- style: gt
4690
+ style: vt
4669
4691
  }
4670
4692
  )
4671
4693
  ] }),
@@ -4674,7 +4696,7 @@ function lr({
4674
4696
  "div",
4675
4697
  {
4676
4698
  className: "px-3 py-6 text-center text-muted-foreground",
4677
- style: gt,
4699
+ style: vt,
4678
4700
  children: "No items"
4679
4701
  }
4680
4702
  ),
@@ -4685,7 +4707,7 @@ function lr({
4685
4707
  className: `w-full flex items-center gap-2 px-3 py-1.5 transition-colors cursor-pointer
4686
4708
  ${n.has(c.id) ? "bg-primary/10" : "hover:bg-accent"}
4687
4709
  ${c.disabled ? "opacity-40 pointer-events-none" : ""}`,
4688
- style: Oa,
4710
+ style: Ra,
4689
4711
  children: [
4690
4712
  /* @__PURE__ */ e(
4691
4713
  "span",
@@ -4737,8 +4759,8 @@ function Hi({
4737
4759
  }, C = () => {
4738
4760
  x(/* @__PURE__ */ new Set()), g(/* @__PURE__ */ new Set());
4739
4761
  }, N = (S, A, E) => {
4740
- const O = new Set(A);
4741
- O.has(S) ? O.delete(S) : O.add(S), E(O);
4762
+ const R = new Set(A);
4763
+ R.has(S) ? R.delete(S) : R.add(S), E(R);
4742
4764
  };
4743
4765
  return s ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center rounded-[var(--radius-md)] border border-border bg-card px-6 py-10 text-center", children: /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: "var(--destructive)" }, children: s }) }) : c ? /* @__PURE__ */ e("div", { className: "flex items-stretch gap-3 flex-wrap opacity-60 pointer-events-none", children: [t, r].map((S) => /* @__PURE__ */ a("div", { className: "flex-1 min-w-[180px] rounded-[var(--radius-md)] border border-border bg-card overflow-hidden", children: [
4744
4766
  /* @__PURE__ */ e("div", { className: "px-3 py-2.5 border-b border-border bg-muted/30", children: /* @__PURE__ */ e("span", { style: Yr, children: S }) }),
@@ -4763,7 +4785,7 @@ function Hi({
4763
4785
  onClick: I,
4764
4786
  disabled: w.length === 0,
4765
4787
  className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
4766
- children: /* @__PURE__ */ e(Lt, { size: 14 })
4788
+ children: /* @__PURE__ */ e(Ct, { size: 14 })
4767
4789
  }
4768
4790
  ),
4769
4791
  /* @__PURE__ */ e(
@@ -4781,7 +4803,7 @@ function Hi({
4781
4803
  onClick: L,
4782
4804
  disabled: b.size === 0,
4783
4805
  className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
4784
- children: /* @__PURE__ */ e(Fe, { size: 14 })
4806
+ children: /* @__PURE__ */ e(Me, { size: 14 })
4785
4807
  }
4786
4808
  ),
4787
4809
  /* @__PURE__ */ e(
@@ -4790,7 +4812,7 @@ function Hi({
4790
4812
  onClick: C,
4791
4813
  disabled: z.length === 0,
4792
4814
  className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
4793
- children: /* @__PURE__ */ e(Mt, { size: 14 })
4815
+ children: /* @__PURE__ */ e(Lt, { size: 14 })
4794
4816
  }
4795
4817
  )
4796
4818
  ] }),
@@ -4808,7 +4830,7 @@ function Hi({
4808
4830
  )
4809
4831
  ] });
4810
4832
  }
4811
- const Ft = {
4833
+ const Wt = {
4812
4834
  fontFamily: "var(--font-label)",
4813
4835
  fontSize: "var(--text-label)",
4814
4836
  fontWeight: "var(--weight-label)"
@@ -4831,12 +4853,12 @@ function Gr({
4831
4853
  className: `flex items-center gap-1.5 py-1 px-2 rounded-[var(--radius-sm)] transition-colors
4832
4854
  ${t.disabled ? "opacity-40 pointer-events-none" : "cursor-pointer hover:bg-accent"}
4833
4855
  ${h ? "bg-primary/10 text-primary" : "text-foreground"}`,
4834
- style: { paddingLeft: `${r * 20 + 8}px`, ...Ft },
4856
+ style: { paddingLeft: `${r * 20 + 8}px`, ...Wt },
4835
4857
  onClick: () => {
4836
4858
  s && l(t.id), d && i(t.id);
4837
4859
  },
4838
4860
  children: [
4839
- s ? /* @__PURE__ */ e("span", { className: "w-4 h-4 flex items-center justify-center flex-shrink-0", children: f ? /* @__PURE__ */ e(Me, { size: 12 }) : /* @__PURE__ */ e(fe, { size: 12 }) }) : /* @__PURE__ */ e("span", { className: "w-4" }),
4861
+ s ? /* @__PURE__ */ e("span", { className: "w-4 h-4 flex items-center justify-center flex-shrink-0", children: f ? /* @__PURE__ */ e(Ie, { size: 12 }) : /* @__PURE__ */ e(fe, { size: 12 }) }) : /* @__PURE__ */ e("span", { className: "w-4" }),
4840
4862
  d && /* @__PURE__ */ e(
4841
4863
  "span",
4842
4864
  {
@@ -4865,7 +4887,7 @@ function Gr({
4865
4887
  )) })
4866
4888
  ] });
4867
4889
  }
4868
- function Oi({
4890
+ function Ri({
4869
4891
  data: t,
4870
4892
  selectable: r,
4871
4893
  showLines: n,
@@ -4887,7 +4909,7 @@ function Oi({
4887
4909
  const y = new Set(g);
4888
4910
  y.has(m) ? y.delete(m) : y.add(m), c && c(Array.from(y)), d === void 0 && p(y);
4889
4911
  };
4890
- return f ? /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card px-4 py-8 text-center", children: /* @__PURE__ */ e("span", { style: { ...Ft, color: "var(--destructive)" }, children: f }) }) : s ? /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-2 px-3 flex flex-col gap-2", children: [1, 2, 3, 4, 5].map((m) => /* @__PURE__ */ e("div", { className: "h-7 rounded bg-muted/50 animate-pulse", style: { width: `${60 + m % 3 * 15}%` } }, m)) }) : /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-1", children: t.length === 0 ? /* @__PURE__ */ e("div", { className: "px-4 py-8 text-center text-muted-foreground", style: Ft, children: h }) : t.map((m) => /* @__PURE__ */ e(
4912
+ return f ? /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card px-4 py-8 text-center", children: /* @__PURE__ */ e("span", { style: { ...Wt, color: "var(--destructive)" }, children: f }) }) : s ? /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-2 px-3 flex flex-col gap-2", children: [1, 2, 3, 4, 5].map((m) => /* @__PURE__ */ e("div", { className: "h-7 rounded bg-muted/50 animate-pulse", style: { width: `${60 + m % 3 * 15}%` } }, m)) }) : /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-1", children: t.length === 0 ? /* @__PURE__ */ e("div", { className: "px-4 py-8 text-center text-muted-foreground", style: Wt, children: h }) : t.map((m) => /* @__PURE__ */ e(
4891
4913
  Gr,
4892
4914
  {
4893
4915
  node: m,
@@ -4902,17 +4924,17 @@ function Oi({
4902
4924
  m.id
4903
4925
  )) });
4904
4926
  }
4905
- const Ra = {
4927
+ const Oa = {
4906
4928
  fontFamily: "var(--font-label)",
4907
4929
  fontSize: "var(--text-label)",
4908
4930
  fontWeight: "var(--weight-button)"
4909
- }, Dt = {
4931
+ }, At = {
4910
4932
  fontFamily: "var(--font-button)",
4911
4933
  fontSize: "var(--text-button)",
4912
4934
  fontWeight: "var(--weight-label)"
4913
- }, Ur = it({ name: "" });
4914
- function Ri() {
4915
- return lt(Ur);
4935
+ }, Ur = ut({ name: "" });
4936
+ function Oi() {
4937
+ return ct(Ur);
4916
4938
  }
4917
4939
  function ir({
4918
4940
  htmlFor: t,
@@ -4925,7 +4947,7 @@ function ir({
4925
4947
  {
4926
4948
  htmlFor: t,
4927
4949
  className: `block text-foreground mb-1.5 ${o}`,
4928
- style: Ra,
4950
+ style: Oa,
4929
4951
  children: [
4930
4952
  n,
4931
4953
  r && /* @__PURE__ */ e("span", { className: "text-destructive ml-0.5", children: "*" })
@@ -4938,10 +4960,10 @@ function Pa({ message: t, className: r = "" }) {
4938
4960
  "div",
4939
4961
  {
4940
4962
  className: `flex items-center gap-1 mt-1.5 text-destructive ${r}`,
4941
- style: Dt,
4963
+ style: At,
4942
4964
  role: "alert",
4943
4965
  children: [
4944
- /* @__PURE__ */ e(Ie, { size: 12, className: "flex-shrink-0" }),
4966
+ /* @__PURE__ */ e(Pe, { size: 12, className: "flex-shrink-0" }),
4945
4967
  /* @__PURE__ */ e("span", { children: t })
4946
4968
  ]
4947
4969
  }
@@ -4952,10 +4974,10 @@ function Ya({ message: t, className: r = "" }) {
4952
4974
  "div",
4953
4975
  {
4954
4976
  className: `flex items-center gap-1 mt-1.5 text-chart-2 ${r}`,
4955
- style: Dt,
4977
+ style: At,
4956
4978
  role: "status",
4957
4979
  children: [
4958
- /* @__PURE__ */ e(Ne, { size: 12, className: "flex-shrink-0" }),
4980
+ /* @__PURE__ */ e($e, { size: 12, className: "flex-shrink-0" }),
4959
4981
  /* @__PURE__ */ e("span", { children: t })
4960
4982
  ]
4961
4983
  }
@@ -4966,7 +4988,7 @@ function Ga({ children: t, className: r = "" }) {
4966
4988
  "p",
4967
4989
  {
4968
4990
  className: `mt-1.5 text-muted-foreground ${r}`,
4969
- style: Dt,
4991
+ style: At,
4970
4992
  children: t
4971
4993
  }
4972
4994
  );
@@ -5050,7 +5072,7 @@ function Yi({
5050
5072
  disabled: d || !g,
5051
5073
  className: "flex items-center justify-center px-2.5 border-r border-border text-muted-foreground hover:text-foreground disabled:opacity-30 transition-colors cursor-pointer",
5052
5074
  style: { height: "100%" },
5053
- children: /* @__PURE__ */ e(st, { size: sr[c] })
5075
+ children: /* @__PURE__ */ e(ft, { size: sr[c] })
5054
5076
  }
5055
5077
  ),
5056
5078
  /* @__PURE__ */ e(
@@ -5076,7 +5098,7 @@ function Yi({
5076
5098
  disabled: d || !$,
5077
5099
  className: "flex items-center justify-center px-2.5 border-l border-border text-muted-foreground hover:text-foreground disabled:opacity-30 transition-colors cursor-pointer",
5078
5100
  style: { height: "100%" },
5079
- children: /* @__PURE__ */ e(jt, { size: sr[c] })
5101
+ children: /* @__PURE__ */ e(Dt, { size: sr[c] })
5080
5102
  }
5081
5103
  )
5082
5104
  ]
@@ -5110,7 +5132,7 @@ function Gi({
5110
5132
  masked: s,
5111
5133
  className: f = ""
5112
5134
  }) {
5113
- const [h, v] = j(() => "".padEnd(t, "")), x = ee([]), p = (r ?? h).padEnd(t, "").split("").slice(0, t), b = Q(
5135
+ const [h, v] = j(() => "".padEnd(t, "")), x = V([]), p = (r ?? h).padEnd(t, "").split("").slice(0, t), b = Q(
5114
5136
  (m) => {
5115
5137
  n && n(m), r === void 0 && v(m), m.replace(/ /g, "").length === t && o && o(m);
5116
5138
  },
@@ -5197,7 +5219,7 @@ function Ui({
5197
5219
  return /* @__PURE__ */ a(
5198
5220
  "div",
5199
5221
  {
5200
- className: `bg-background border-b border-border ${i ? "sticky top-0 z-10" : ""} ${d}`,
5222
+ className: `bg-card border-b border-border ${i ? "sticky top-0 z-10" : ""} ${d}`,
5201
5223
  children: [
5202
5224
  /* @__PURE__ */ a("div", { className: "px-6 pt-5 pb-4", children: [
5203
5225
  n && /* @__PURE__ */ e("div", { className: "mb-2", style: tl, children: n }),
@@ -5218,7 +5240,7 @@ const rl = {
5218
5240
  fontFamily: "var(--font-button)",
5219
5241
  fontSize: "var(--text-button)",
5220
5242
  fontWeight: "var(--weight-button)"
5221
- }, rt = {
5243
+ }, lt = {
5222
5244
  fontFamily: "var(--font-button)",
5223
5245
  fontSize: "var(--text-button)",
5224
5246
  fontWeight: 400
@@ -5256,7 +5278,7 @@ function nl({ config: t, value: r, onChange: n }) {
5256
5278
  }
5257
5279
  ),
5258
5280
  /* @__PURE__ */ e(
5259
- Me,
5281
+ Ie,
5260
5282
  {
5261
5283
  size: 14,
5262
5284
  className: `transition-transform ${o ? "rotate-180" : ""}`
@@ -5265,7 +5287,7 @@ function nl({ config: t, value: r, onChange: n }) {
5265
5287
  ]
5266
5288
  }
5267
5289
  ),
5268
- o && /* @__PURE__ */ a(ge, { children: [
5290
+ o && /* @__PURE__ */ a(ve, { children: [
5269
5291
  /* @__PURE__ */ e(
5270
5292
  "div",
5271
5293
  {
@@ -5281,7 +5303,7 @@ function nl({ config: t, value: r, onChange: n }) {
5281
5303
  type: "button",
5282
5304
  onClick: () => c(h.value),
5283
5305
  className: `w-full flex items-center gap-2 px-3 py-2 text-left transition-colors cursor-pointer ${v ? "bg-[var(--primary)]/10 text-[var(--primary)]" : "text-[var(--foreground)] hover:bg-[var(--muted)]"}`,
5284
- style: rt,
5306
+ style: lt,
5285
5307
  children: [
5286
5308
  t.type === "multi" && /* @__PURE__ */ e(
5287
5309
  "span",
@@ -5349,7 +5371,7 @@ function Ki({
5349
5371
  children: [
5350
5372
  n && /* @__PURE__ */ a("div", { className: "relative flex items-center", children: [
5351
5373
  /* @__PURE__ */ e(
5352
- Ye,
5374
+ qe,
5353
5375
  {
5354
5376
  size: 14,
5355
5377
  className: "absolute left-2.5 text-[var(--muted-foreground)] pointer-events-none"
@@ -5363,7 +5385,7 @@ function Ki({
5363
5385
  onChange: h,
5364
5386
  placeholder: r,
5365
5387
  className: "h-8 pl-8 pr-3 rounded-md border border-[var(--border)] bg-[var(--background)] text-[var(--foreground)] placeholder:text-[var(--muted-foreground)] focus:outline-none focus:border-[var(--primary)] focus:ring-1 focus:ring-[var(--primary)] transition-colors min-w-[200px]",
5366
- style: rt
5388
+ style: lt
5367
5389
  }
5368
5390
  )
5369
5391
  ] }),
@@ -5388,7 +5410,7 @@ function Ki({
5388
5410
  "span",
5389
5411
  {
5390
5412
  className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-[var(--primary)]/10 text-[var(--primary)]",
5391
- style: rt,
5413
+ style: lt,
5392
5414
  children: [
5393
5415
  u,
5394
5416
  " active"
@@ -5401,9 +5423,9 @@ function Ki({
5401
5423
  type: "button",
5402
5424
  onClick: x,
5403
5425
  className: "inline-flex items-center gap-1 h-7 px-2 rounded-md text-[var(--muted-foreground)] hover:text-[var(--foreground)] hover:bg-[var(--muted)] transition-colors cursor-pointer ml-auto",
5404
- style: rt,
5426
+ style: lt,
5405
5427
  children: [
5406
- /* @__PURE__ */ e(le, { size: 12 }),
5428
+ /* @__PURE__ */ e(ie, { size: 12 }),
5407
5429
  "Clear all"
5408
5430
  ]
5409
5431
  }
@@ -5416,15 +5438,15 @@ const Kr = {
5416
5438
  fontFamily: "var(--font-button)",
5417
5439
  fontSize: "var(--text-button)",
5418
5440
  fontWeight: "var(--weight-button)"
5419
- }, vt = {
5441
+ }, xt = {
5420
5442
  fontFamily: "var(--font-label)",
5421
5443
  fontSize: "var(--text-label)",
5422
5444
  fontWeight: "var(--weight-label)"
5423
- }, ze = {
5445
+ }, We = {
5424
5446
  fontFamily: "var(--font-button)",
5425
5447
  fontSize: "var(--text-button)",
5426
5448
  fontWeight: 400
5427
- }, xe = {
5449
+ }, we = {
5428
5450
  sm: "px-3 py-2",
5429
5451
  md: "px-4 py-3",
5430
5452
  lg: "px-5 py-4"
@@ -5439,7 +5461,7 @@ function ol({ width: t }) {
5439
5461
  );
5440
5462
  }
5441
5463
  function al({ columns: t, hidden: r, onToggle: n }) {
5442
- const [o, l] = j(!1), i = ee(null);
5464
+ const [o, l] = j(!1), i = V(null);
5443
5465
  ne(() => {
5444
5466
  function c(s) {
5445
5467
  i.current && !i.current.contains(s.target) && l(!1);
@@ -5454,7 +5476,7 @@ function al({ columns: t, hidden: r, onToggle: n }) {
5454
5476
  type: "button",
5455
5477
  onClick: () => l((c) => !c),
5456
5478
  className: "inline-flex items-center gap-1.5 h-8 px-3 rounded-lg border border-[var(--border)] bg-[var(--background)] text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] transition-colors cursor-pointer",
5457
- style: ze,
5479
+ style: We,
5458
5480
  children: [
5459
5481
  /* @__PURE__ */ e(zn, { size: 14 }),
5460
5482
  "Columns"
@@ -5469,7 +5491,7 @@ function al({ columns: t, hidden: r, onToggle: n }) {
5469
5491
  type: "button",
5470
5492
  onClick: () => n(c.key),
5471
5493
  className: "w-full flex items-center justify-between gap-2 px-3 py-2 hover:bg-[var(--muted)] text-[var(--foreground)] transition-colors cursor-pointer",
5472
- style: ze,
5494
+ style: We,
5473
5495
  children: [
5474
5496
  /* @__PURE__ */ e("span", { children: c.header }),
5475
5497
  s && /* @__PURE__ */ e(me, { size: 13, className: "text-[var(--primary)]" })
@@ -5499,7 +5521,7 @@ function ll({ count: t, actions: r, selectedKeys: n, onClear: o }) {
5499
5521
  type: "button",
5500
5522
  onClick: () => l.onClick(n),
5501
5523
  className: `inline-flex items-center gap-1.5 h-7 px-3 rounded-md border transition-colors cursor-pointer ${l.variant === "destructive" ? "border-[var(--destructive)] text-[var(--destructive)] hover:bg-[var(--destructive)]/10" : "border-[var(--primary)] text-[var(--primary)] hover:bg-[var(--primary)]/10"}`,
5502
- style: { ...ze, fontWeight: 500 },
5524
+ style: { ...We, fontWeight: 500 },
5503
5525
  children: [
5504
5526
  l.icon,
5505
5527
  l.label
@@ -5514,7 +5536,7 @@ function ll({ count: t, actions: r, selectedKeys: n, onClear: o }) {
5514
5536
  onClick: o,
5515
5537
  className: "text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors cursor-pointer p-1 rounded",
5516
5538
  title: "Clear selection",
5517
- children: /* @__PURE__ */ e(le, { size: 14 })
5539
+ children: /* @__PURE__ */ e(ie, { size: 14 })
5518
5540
  }
5519
5541
  )
5520
5542
  ] });
@@ -5534,7 +5556,7 @@ function sl({ meta: t, onPageChange: r }) {
5534
5556
  }, [n, i]);
5535
5557
  return /* @__PURE__ */ a("div", { className: "flex items-center justify-between px-4 py-3 border-t border-[var(--border)] flex-wrap gap-3", children: [
5536
5558
  /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
5537
- /* @__PURE__ */ a("span", { className: "text-[var(--muted-foreground)] whitespace-nowrap", style: ze, children: [
5559
+ /* @__PURE__ */ a("span", { className: "text-[var(--muted-foreground)] whitespace-nowrap", style: We, children: [
5538
5560
  d,
5539
5561
  "–",
5540
5562
  c,
@@ -5547,7 +5569,7 @@ function sl({ meta: t, onPageChange: r }) {
5547
5569
  value: o,
5548
5570
  onChange: (f) => r(1, Number(f.target.value)),
5549
5571
  className: "h-7 px-2 rounded-md border border-[var(--border)] bg-[var(--background)] text-[var(--foreground)] focus:outline-none focus:border-[var(--primary)] cursor-pointer",
5550
- style: ze,
5572
+ style: We,
5551
5573
  children: il.map((f) => /* @__PURE__ */ a("option", { value: f, children: [
5552
5574
  f,
5553
5575
  " / page"
@@ -5557,7 +5579,7 @@ function sl({ meta: t, onPageChange: r }) {
5557
5579
  ] }),
5558
5580
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
5559
5581
  /* @__PURE__ */ e(
5560
- xt,
5582
+ yt,
5561
5583
  {
5562
5584
  disabled: n === 1,
5563
5585
  onClick: () => r(n - 1, o),
@@ -5565,8 +5587,8 @@ function sl({ meta: t, onPageChange: r }) {
5565
5587
  }
5566
5588
  ),
5567
5589
  s.map(
5568
- (f, h) => f === "..." ? /* @__PURE__ */ e("span", { className: "px-2 text-[var(--muted-foreground)]", style: ze, children: "…" }, `ellipsis-${h}`) : /* @__PURE__ */ e(
5569
- xt,
5590
+ (f, h) => f === "..." ? /* @__PURE__ */ e("span", { className: "px-2 text-[var(--muted-foreground)]", style: We, children: "…" }, `ellipsis-${h}`) : /* @__PURE__ */ e(
5591
+ yt,
5570
5592
  {
5571
5593
  active: f === n,
5572
5594
  onClick: () => r(f, o),
@@ -5576,7 +5598,7 @@ function sl({ meta: t, onPageChange: r }) {
5576
5598
  )
5577
5599
  ),
5578
5600
  /* @__PURE__ */ e(
5579
- xt,
5601
+ yt,
5580
5602
  {
5581
5603
  disabled: n === i,
5582
5604
  onClick: () => r(n + 1, o),
@@ -5586,7 +5608,7 @@ function sl({ meta: t, onPageChange: r }) {
5586
5608
  ] })
5587
5609
  ] });
5588
5610
  }
5589
- function xt({
5611
+ function yt({
5590
5612
  label: t,
5591
5613
  active: r,
5592
5614
  disabled: n,
@@ -5599,7 +5621,7 @@ function xt({
5599
5621
  onClick: o,
5600
5622
  disabled: n,
5601
5623
  className: `min-w-[28px] h-7 px-2 rounded-md border transition-colors cursor-pointer ${r ? "bg-[var(--primary)] border-[var(--primary)] text-primary-foreground" : n ? "border-transparent text-[var(--muted-foreground)] cursor-not-allowed" : "border-[var(--border)] text-[var(--foreground)] hover:bg-[var(--muted)]"}`,
5602
- style: { ...ze, fontWeight: r ? 600 : 400 },
5624
+ style: { ...We, fontWeight: r ? 600 : 400 },
5603
5625
  children: t
5604
5626
  }
5605
5627
  );
@@ -5633,8 +5655,8 @@ function Zi({
5633
5655
  new Set(t.filter((T) => T.defaultHidden).map((T) => T.key))
5634
5656
  ), F = Q((T) => {
5635
5657
  M((J) => {
5636
- const Z = new Set(J);
5637
- return Z.has(T) ? Z.delete(T) : Z.add(T), Z;
5658
+ const X = new Set(J);
5659
+ return X.has(T) ? X.delete(T) : X.add(T), X;
5638
5660
  });
5639
5661
  }, []), L = se(
5640
5662
  () => t.filter((T) => !W.has(T.key)),
@@ -5642,11 +5664,11 @@ function Zi({
5642
5664
  ), [I, C] = j(/* @__PURE__ */ new Set()), N = f ?? I, S = Q(
5643
5665
  (T) => {
5644
5666
  f || C(T);
5645
- const J = r.filter((Z) => T.has(Z[n]));
5667
+ const J = r.filter((X) => T.has(X[n]));
5646
5668
  h == null || h(T, J);
5647
5669
  },
5648
5670
  [f, r, n, h]
5649
- ), A = se(() => r.map((T) => T[n]), [r, n]), E = A.length > 0 && A.every((T) => N.has(T)), O = N.size > 0 && !E, _ = Q(() => {
5671
+ ), A = se(() => r.map((T) => T[n]), [r, n]), E = A.length > 0 && A.every((T) => N.has(T)), R = N.size > 0 && !E, _ = Q(() => {
5650
5672
  S(E ? /* @__PURE__ */ new Set() : new Set(A));
5651
5673
  }, [E, A, S]), B = Q(
5652
5674
  (T) => {
@@ -5654,28 +5676,28 @@ function Zi({
5654
5676
  J.has(T) ? J.delete(T) : J.add(T), S(J);
5655
5677
  },
5656
5678
  [N, S]
5657
- ), [K, H] = j(/* @__PURE__ */ new Set()), X = Q((T) => {
5679
+ ), [q, H] = j(/* @__PURE__ */ new Set()), K = Q((T) => {
5658
5680
  H((J) => {
5659
- const Z = new Set(J);
5660
- return Z.has(T) ? Z.delete(T) : Z.add(T), Z;
5681
+ const X = new Set(J);
5682
+ return X.has(T) ? X.delete(T) : X.add(T), X;
5661
5683
  });
5662
5684
  }, []), ae = Q(
5663
5685
  (T) => {
5664
5686
  c && (l === T ? c(T, i === "asc" ? "desc" : "asc") : c(T, "asc"));
5665
5687
  },
5666
5688
  [l, i, c]
5667
- ), q = se(() => {
5689
+ ), G = se(() => {
5668
5690
  const T = {};
5669
5691
  let J = 0;
5670
5692
  s && (J += 48), u && (J += 40);
5671
- for (const Z of L)
5672
- if (Z.frozen) {
5673
- T[Z.key] = J;
5674
- const ue = typeof Z.width == "number" ? Z.width : parseInt(Z.width ?? "120");
5693
+ for (const X of L)
5694
+ if (X.frozen) {
5695
+ T[X.key] = J;
5696
+ const ue = typeof X.width == "number" ? X.width : parseInt(X.width ?? "120");
5675
5697
  J += isNaN(ue) ? 120 : ue;
5676
5698
  }
5677
5699
  return T;
5678
- }, [L, s, u]), re = L.length + (s ? 1 : 0) + (u ? 1 : 0), P = "sticky z-[2] bg-inherit";
5700
+ }, [L, s, u]), re = L.length + (s ? 1 : 0) + (u ? 1 : 0), Y = "sticky z-[2] bg-inherit";
5679
5701
  return /* @__PURE__ */ a("div", { className: `rounded-[var(--radius-md)] border border-[var(--border)] overflow-hidden ${z}`, children: [
5680
5702
  m && /* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2 px-4 py-2.5 border-b border-[var(--border)] bg-[var(--background)]", children: /* @__PURE__ */ e(al, { columns: t, hidden: W, onToggle: F }) }),
5681
5703
  s && N.size > 0 && v.length > 0 && /* @__PURE__ */ e(
@@ -5689,32 +5711,32 @@ function Zi({
5689
5711
  ),
5690
5712
  /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ a("table", { className: "w-full border-collapse", style: { minWidth: "100%" }, children: [
5691
5713
  /* @__PURE__ */ e("thead", { className: w ? "sticky top-0 z-10" : "", children: /* @__PURE__ */ a("tr", { className: "border-b border-border", style: { backgroundColor: "color-mix(in srgb, var(--muted) 30%, var(--background) 70%)" }, children: [
5692
- u && /* @__PURE__ */ e("th", { className: `${xe[y]} w-10` }),
5693
- s && /* @__PURE__ */ e("th", { className: `${xe[y]} w-12`, children: /* @__PURE__ */ e(
5694
- ot,
5714
+ u && /* @__PURE__ */ e("th", { className: `${we[y]} w-10` }),
5715
+ s && /* @__PURE__ */ e("th", { className: `${we[y]} w-12`, children: /* @__PURE__ */ e(
5716
+ st,
5695
5717
  {
5696
5718
  size: "sm",
5697
5719
  checked: E,
5698
- indeterminate: O && !E,
5720
+ indeterminate: R && !E,
5699
5721
  onChange: _
5700
5722
  }
5701
5723
  ) }),
5702
5724
  L.map((T) => {
5703
- const J = T.frozen && T.key in q, Z = l === T.key;
5725
+ const J = T.frozen && T.key in G, X = l === T.key;
5704
5726
  return /* @__PURE__ */ e(
5705
5727
  "th",
5706
5728
  {
5707
- className: `${xe[y]} text-${T.align ?? "left"} text-[var(--foreground)] whitespace-nowrap select-none ${T.sortable && c ? "cursor-pointer hover:text-[var(--primary)]" : ""} ${J ? P : ""}`,
5729
+ className: `${we[y]} text-${T.align ?? "left"} text-[var(--foreground)] whitespace-nowrap select-none ${T.sortable && c ? "cursor-pointer hover:text-[var(--primary)]" : ""} ${J ? Y : ""}`,
5708
5730
  style: {
5709
5731
  ...Kr,
5710
5732
  width: T.width,
5711
5733
  minWidth: T.minWidth ?? 80,
5712
- ...J ? { left: q[T.key], boxShadow: "2px 0 4px rgba(0,0,0,0.04)" } : {}
5734
+ ...J ? { left: G[T.key], boxShadow: "2px 0 4px rgba(0,0,0,0.04)" } : {}
5713
5735
  },
5714
5736
  onClick: () => T.sortable && ae(T.key),
5715
5737
  children: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1", children: [
5716
5738
  T.header,
5717
- T.sortable && c && /* @__PURE__ */ e("span", { className: Z ? "text-[var(--primary)]" : "text-[var(--muted-foreground)]/60", children: Z ? i === "asc" ? /* @__PURE__ */ e(Ge, { size: 13 }) : /* @__PURE__ */ e(Me, { size: 13 }) : /* @__PURE__ */ e(Nt, { size: 12 }) })
5739
+ T.sortable && c && /* @__PURE__ */ e("span", { className: X ? "text-[var(--primary)]" : "text-[var(--muted-foreground)]/60", children: X ? i === "asc" ? /* @__PURE__ */ e(Je, { size: 13 }) : /* @__PURE__ */ e(Ie, { size: 13 }) : /* @__PURE__ */ e($t, { size: 12 }) })
5718
5740
  ] })
5719
5741
  },
5720
5742
  T.key
@@ -5722,43 +5744,43 @@ function Zi({
5722
5744
  })
5723
5745
  ] }) }),
5724
5746
  /* @__PURE__ */ a("tbody", { children: [
5725
- g && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${xe[y]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-10", children: [
5726
- /* @__PURE__ */ e(Ie, { size: 32, className: "text-[var(--destructive)] opacity-60" }),
5727
- /* @__PURE__ */ e("span", { className: "text-[var(--destructive)]", style: vt, children: g })
5747
+ g && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${we[y]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-10", children: [
5748
+ /* @__PURE__ */ e(Pe, { size: 32, className: "text-[var(--destructive)] opacity-60" }),
5749
+ /* @__PURE__ */ e("span", { className: "text-[var(--destructive)]", style: xt, children: g })
5728
5750
  ] }) }) }),
5729
5751
  !g && p && Array.from({ length: b }).map((T, J) => /* @__PURE__ */ a("tr", { className: "border-b border-[var(--border)] last:border-b-0", children: [
5730
- u && /* @__PURE__ */ e("td", { className: `${xe[y]} w-10` }),
5731
- s && /* @__PURE__ */ e("td", { className: `${xe[y]} w-12`, children: /* @__PURE__ */ e("div", { className: "w-4 h-4 rounded bg-muted animate-pulse" }) }),
5732
- L.map((Z) => /* @__PURE__ */ e("td", { className: `${xe[y]}`, children: /* @__PURE__ */ e(ol, { width: Z.align === "right" ? "60%" : Z.align === "center" ? "50%" : "75%" }) }, Z.key))
5752
+ u && /* @__PURE__ */ e("td", { className: `${we[y]} w-10` }),
5753
+ s && /* @__PURE__ */ e("td", { className: `${we[y]} w-12`, children: /* @__PURE__ */ e("div", { className: "w-4 h-4 rounded bg-muted animate-pulse" }) }),
5754
+ L.map((X) => /* @__PURE__ */ e("td", { className: `${we[y]}`, children: /* @__PURE__ */ e(ol, { width: X.align === "right" ? "60%" : X.align === "center" ? "50%" : "75%" }) }, X.key))
5733
5755
  ] }, `skel-${J}`)),
5734
- !g && !p && r.length === 0 && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${xe[y]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-12", children: [
5735
- /* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-[var(--muted)] flex items-center justify-center text-[var(--muted-foreground)]", children: /* @__PURE__ */ e(Nt, { size: 20 }) }),
5736
- /* @__PURE__ */ e("span", { className: "text-[var(--foreground)]", style: vt, children: $ }),
5737
- k && /* @__PURE__ */ e("span", { className: "text-[var(--muted-foreground)]", style: ze, children: k })
5756
+ !g && !p && r.length === 0 && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${we[y]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-12", children: [
5757
+ /* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-[var(--muted)] flex items-center justify-center text-[var(--muted-foreground)]", children: /* @__PURE__ */ e($t, { size: 20 }) }),
5758
+ /* @__PURE__ */ e("span", { className: "text-[var(--foreground)]", style: xt, children: $ }),
5759
+ k && /* @__PURE__ */ e("span", { className: "text-[var(--muted-foreground)]", style: We, children: k })
5738
5760
  ] }) }) }),
5739
5761
  !g && !p && r.map((T, J) => {
5740
- const Z = T[n], ue = N.has(Z), we = K.has(Z), Te = !!x || !!u;
5741
- return /* @__PURE__ */ a(pe.Fragment, { children: [
5762
+ const X = T[n], ue = N.has(X), ze = q.has(X), Ye = !!x || !!u;
5763
+ return /* @__PURE__ */ a(ge.Fragment, { children: [
5742
5764
  /* @__PURE__ */ a(
5743
5765
  "tr",
5744
5766
  {
5745
- className: `group/row border-b border-[var(--border)] last:border-b-0 transition-colors ${ue ? "bg-primary/5" : "bg-[var(--card)] hover:bg-[var(--row-hover-bg)]"} ${Te ? "cursor-pointer" : ""}`,
5767
+ className: `group/row border-b border-[var(--border)] last:border-b-0 transition-colors ${ue ? "bg-primary/5" : "bg-[var(--card)] hover:bg-[var(--row-hover-bg)]"} ${Ye ? "cursor-pointer" : ""}`,
5746
5768
  onClick: () => {
5747
- x == null || x(T), u && X(Z);
5769
+ x == null || x(T), u && K(X);
5748
5770
  },
5749
5771
  children: [
5750
5772
  u && /* @__PURE__ */ e(
5751
5773
  "td",
5752
5774
  {
5753
- className: `${xe[y]} w-10 text-center`,
5754
- onClick: (G) => {
5755
- G.stopPropagation(), X(Z);
5775
+ className: `${we[y]} w-10 text-center`,
5776
+ onClick: (Z) => {
5777
+ Z.stopPropagation(), K(X);
5756
5778
  },
5757
5779
  children: /* @__PURE__ */ e(
5758
5780
  fe,
5759
5781
  {
5760
5782
  size: 14,
5761
- className: `text-[var(--muted-foreground)] transition-transform mx-auto ${we ? "rotate-90" : ""}`
5783
+ className: `text-[var(--muted-foreground)] transition-transform mx-auto ${ze ? "rotate-90" : ""}`
5762
5784
  }
5763
5785
  )
5764
5786
  }
@@ -5766,45 +5788,45 @@ function Zi({
5766
5788
  s && /* @__PURE__ */ e(
5767
5789
  "td",
5768
5790
  {
5769
- className: `${xe[y]} w-12`,
5770
- onClick: (G) => G.stopPropagation(),
5791
+ className: `${we[y]} w-12`,
5792
+ onClick: (Z) => Z.stopPropagation(),
5771
5793
  children: /* @__PURE__ */ e(
5772
- ot,
5794
+ st,
5773
5795
  {
5774
5796
  size: "sm",
5775
5797
  checked: ue,
5776
- onChange: () => B(Z)
5798
+ onChange: () => B(X)
5777
5799
  }
5778
5800
  )
5779
5801
  }
5780
5802
  ),
5781
- L.map((G) => {
5782
- const ke = G.frozen && G.key in q, Be = ke ? ue ? "sticky z-[1] bg-primary/5" : "sticky z-[1] bg-[var(--card)] group-hover/row:bg-[var(--row-hover-bg)] transition-colors" : "";
5803
+ L.map((Z) => {
5804
+ const Fe = Z.frozen && Z.key in G, Le = Fe ? ue ? "sticky z-[1] bg-primary/5" : "sticky z-[1] bg-[var(--card)] group-hover/row:bg-[var(--row-hover-bg)] transition-colors" : "";
5783
5805
  return /* @__PURE__ */ e(
5784
5806
  "td",
5785
5807
  {
5786
- className: `${xe[y]} text-${G.align ?? "left"} text-[var(--foreground)] ${Be}`,
5808
+ className: `${we[y]} text-${Z.align ?? "left"} text-[var(--foreground)] ${Le}`,
5787
5809
  style: {
5788
- ...vt,
5789
- ...ke ? { left: q[G.key], boxShadow: "2px 0 4px rgba(0,0,0,0.04)" } : {}
5810
+ ...xt,
5811
+ ...Fe ? { left: G[Z.key], boxShadow: "2px 0 4px rgba(0,0,0,0.04)" } : {}
5790
5812
  },
5791
- children: G.render ? G.render(T[G.key], T, J) : T[G.key]
5813
+ children: Z.render ? Z.render(T[Z.key], T, J) : T[Z.key]
5792
5814
  },
5793
- G.key
5815
+ Z.key
5794
5816
  );
5795
5817
  })
5796
5818
  ]
5797
5819
  }
5798
5820
  ),
5799
- u && we && /* @__PURE__ */ e("tr", { className: "bg-[var(--muted)] border-b border-[var(--border)]", children: /* @__PURE__ */ e("td", { colSpan: re, className: "px-6 py-4", children: u(T) }) })
5800
- ] }, Z ?? J);
5821
+ u && ze && /* @__PURE__ */ e("tr", { className: "bg-[var(--muted)] border-b border-[var(--border)]", children: /* @__PURE__ */ e("td", { colSpan: re, className: "px-6 py-4", children: u(T) }) })
5822
+ ] }, X ?? J);
5801
5823
  })
5802
5824
  ] })
5803
5825
  ] }) }),
5804
5826
  o && d && !p && !g && /* @__PURE__ */ e(sl, { meta: o, onPageChange: d })
5805
5827
  ] });
5806
5828
  }
5807
- const Ae = [
5829
+ const Re = [
5808
5830
  "var(--chart-1, #32a9ff)",
5809
5831
  "var(--chart-2, #22c55e)",
5810
5832
  "var(--chart-3, #f59e0b)",
@@ -5812,24 +5834,24 @@ const Ae = [
5812
5834
  "var(--chart-5, #a855f7)",
5813
5835
  "var(--chart-6, #06b6d4)"
5814
5836
  ];
5815
- function be(t, r) {
5816
- return t.color ?? Ae[r % Ae.length];
5837
+ function pe(t, r) {
5838
+ return t.color ?? Re[r % Re.length];
5817
5839
  }
5818
5840
  const ce = {
5819
5841
  fontFamily: "var(--font-label)",
5820
5842
  fontSize: "var(--text-label)",
5821
5843
  fontWeight: "var(--weight-label)"
5822
5844
  };
5823
- function At(t, r, n) {
5845
+ function Et(t, r, n) {
5824
5846
  return Math.max(r, Math.min(n, t));
5825
5847
  }
5826
- function at(t) {
5848
+ function dt(t) {
5827
5849
  const r = Math.max(...t, 0);
5828
5850
  if (r === 0) return 10;
5829
5851
  const n = Math.pow(10, Math.floor(Math.log10(r)));
5830
5852
  return Math.ceil(r / n) * n;
5831
5853
  }
5832
- function Et(t, r) {
5854
+ function It(t, r) {
5833
5855
  if (t.length === 0) return "";
5834
5856
  if (!r || t.length < 3)
5835
5857
  return t.map((o, l) => `${l === 0 ? "M" : "L"}${o[0]},${o[1]}`).join(" ");
@@ -5840,7 +5862,7 @@ function Et(t, r) {
5840
5862
  }
5841
5863
  return n;
5842
5864
  }
5843
- function It({
5865
+ function Tt({
5844
5866
  x: t,
5845
5867
  y: r,
5846
5868
  label: n,
@@ -5879,9 +5901,9 @@ function dl({
5879
5901
  className: h = ""
5880
5902
  }) {
5881
5903
  mr();
5882
- const v = ee(null), [x, u] = j(null);
5904
+ const v = V(null), [x, u] = j(null);
5883
5905
  if (!t.length || !t[0].data.length) return null;
5884
- const p = t[0].data.map((I) => I.label), b = t.flatMap((I) => I.data.map((C) => C.value)), g = at(b), $ = 0, k = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, m = n ?? 600, y = r, w = m - k.left - k.right, z = y - k.top - k.bottom, W = p.length > 1 ? w / (p.length - 1) : w;
5906
+ const p = t[0].data.map((I) => I.label), b = t.flatMap((I) => I.data.map((C) => C.value)), g = dt(b), $ = 0, k = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, m = n ?? 600, y = r, w = m - k.left - k.right, z = y - k.top - k.bottom, W = p.length > 1 ? w / (p.length - 1) : w;
5885
5907
  function M(I) {
5886
5908
  return k.left + I * W;
5887
5909
  }
@@ -5940,7 +5962,7 @@ function dl({
5940
5962
  );
5941
5963
  }),
5942
5964
  t.map((I, C) => {
5943
- const N = be(I, C), S = I.data.map((E, O) => [M(O), F(E.value)]), A = Et(S, f);
5965
+ const N = pe(I, C), S = I.data.map((E, R) => [M(R), F(E.value)]), A = It(S, f);
5944
5966
  return /* @__PURE__ */ a("g", { children: [
5945
5967
  /* @__PURE__ */ e(
5946
5968
  "path",
@@ -5953,11 +5975,11 @@ function dl({
5953
5975
  strokeLinejoin: "round"
5954
5976
  }
5955
5977
  ),
5956
- s && S.map(([E, O], _) => /* @__PURE__ */ e(
5978
+ s && S.map(([E, R], _) => /* @__PURE__ */ e(
5957
5979
  "circle",
5958
5980
  {
5959
5981
  cx: E,
5960
- cy: O,
5982
+ cy: R,
5961
5983
  r: 3,
5962
5984
  fill: "var(--card)",
5963
5985
  stroke: N,
@@ -5992,9 +6014,9 @@ function dl({
5992
6014
  }
5993
6015
  ),
5994
6016
  x && c && /* @__PURE__ */ e(
5995
- It,
6017
+ Tt,
5996
6018
  {
5997
- x: At(M(x.labelIdx) + 8, k.left, m - 180),
6019
+ x: Et(M(x.labelIdx) + 8, k.left, m - 180),
5998
6020
  y: k.top,
5999
6021
  label: p[x.labelIdx],
6000
6022
  items: t.map((I, C) => {
@@ -6002,7 +6024,7 @@ function dl({
6002
6024
  return {
6003
6025
  name: I.name,
6004
6026
  value: ((N = I.data[x.labelIdx]) == null ? void 0 : N.value) ?? 0,
6005
- color: be(I, C)
6027
+ color: pe(I, C)
6006
6028
  };
6007
6029
  })
6008
6030
  }
@@ -6011,7 +6033,7 @@ function dl({
6011
6033
  }
6012
6034
  ),
6013
6035
  d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((I, C) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6014
- /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: be(I, C) } }),
6036
+ /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: pe(I, C) } }),
6015
6037
  /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: I.name })
6016
6038
  ] }, C)) })
6017
6039
  ] });
@@ -6033,7 +6055,7 @@ function cl({
6033
6055
  }) {
6034
6056
  const x = mr(), [u, p] = j(null);
6035
6057
  if (!t.length || !t[0].data.length) return null;
6036
- const b = t[0].data.map((N) => N.label), g = t.flatMap((N) => N.data.map((S) => S.value)), $ = at(g), k = 0, m = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, y = n ?? 600, w = r, z = y - m.left - m.right, W = w - m.top - m.bottom, M = b.length > 1 ? z / (b.length - 1) : z;
6058
+ const b = t[0].data.map((N) => N.label), g = t.flatMap((N) => N.data.map((S) => S.value)), $ = dt(g), k = 0, m = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, y = n ?? 600, w = r, z = y - m.left - m.right, W = w - m.top - m.bottom, M = b.length > 1 ? z / (b.length - 1) : z;
6037
6059
  function F(N) {
6038
6060
  return m.left + N * M;
6039
6061
  }
@@ -6051,8 +6073,8 @@ function cl({
6051
6073
  onMouseLeave: () => p(null),
6052
6074
  children: [
6053
6075
  /* @__PURE__ */ e("defs", { children: t.map((N, S) => /* @__PURE__ */ a("linearGradient", { id: `${x}-grad-${S}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6054
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: be(N, S), stopOpacity: h * 4 }),
6055
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: be(N, S), stopOpacity: 0 })
6076
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: pe(N, S), stopOpacity: h * 4 }),
6077
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: pe(N, S), stopOpacity: 0 })
6056
6078
  ] }, S)) }),
6057
6079
  i && I.map((N, S) => /* @__PURE__ */ e(
6058
6080
  "line",
@@ -6095,11 +6117,11 @@ function cl({
6095
6117
  );
6096
6118
  }),
6097
6119
  t.map((N, S) => {
6098
- const A = be(N, S), E = N.data.map((B, K) => [F(K), L(B.value)]), O = Et(E, f), _ = O + ` L${E[E.length - 1][0]},${C} L${E[0][0]},${C} Z`;
6120
+ const A = pe(N, S), E = N.data.map((B, q) => [F(q), L(B.value)]), R = It(E, f), _ = R + ` L${E[E.length - 1][0]},${C} L${E[0][0]},${C} Z`;
6099
6121
  return /* @__PURE__ */ a("g", { children: [
6100
6122
  /* @__PURE__ */ e("path", { d: _, fill: `url(#${x}-grad-${S})` }),
6101
- /* @__PURE__ */ e("path", { d: O, fill: "none", stroke: A, strokeWidth: 2, strokeLinecap: "round" }),
6102
- s && E.map(([B, K], H) => /* @__PURE__ */ e("circle", { cx: B, cy: K, r: 3, fill: "var(--card)", stroke: A, strokeWidth: 2 }, H))
6123
+ /* @__PURE__ */ e("path", { d: R, fill: "none", stroke: A, strokeWidth: 2, strokeLinecap: "round" }),
6124
+ s && E.map(([B, q], H) => /* @__PURE__ */ e("circle", { cx: B, cy: q, r: 3, fill: "var(--card)", stroke: A, strokeWidth: 2 }, H))
6103
6125
  ] }, S);
6104
6126
  }),
6105
6127
  c && b.map((N, S) => /* @__PURE__ */ e(
@@ -6127,9 +6149,9 @@ function cl({
6127
6149
  }
6128
6150
  ),
6129
6151
  u && /* @__PURE__ */ e(
6130
- It,
6152
+ Tt,
6131
6153
  {
6132
- x: At(F(u.labelIdx) + 8, m.left, y - 180),
6154
+ x: Et(F(u.labelIdx) + 8, m.left, y - 180),
6133
6155
  y: m.top,
6134
6156
  label: b[u.labelIdx],
6135
6157
  items: t.map((N, S) => {
@@ -6137,7 +6159,7 @@ function cl({
6137
6159
  return {
6138
6160
  name: N.name,
6139
6161
  value: ((A = N.data[u.labelIdx]) == null ? void 0 : A.value) ?? 0,
6140
- color: be(N, S)
6162
+ color: pe(N, S)
6141
6163
  };
6142
6164
  })
6143
6165
  }
@@ -6146,7 +6168,7 @@ function cl({
6146
6168
  }
6147
6169
  ),
6148
6170
  d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((N, S) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6149
- /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: be(N, S) } }),
6171
+ /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: pe(N, S) } }),
6150
6172
  /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: N.name })
6151
6173
  ] }, S)) })
6152
6174
  ] });
@@ -6169,12 +6191,12 @@ function ul({
6169
6191
  if (!t.length || !t[0].data.length) return null;
6170
6192
  const u = t[0].data.map((C) => C.label);
6171
6193
  let p;
6172
- s ? p = at(
6194
+ s ? p = dt(
6173
6195
  u.map((C, N) => t.reduce((S, A) => {
6174
6196
  var E;
6175
6197
  return S + (((E = A.data[N]) == null ? void 0 : E.value) ?? 0);
6176
6198
  }, 0))
6177
- ) : p = at(t.flatMap((C) => C.data.map((N) => N.value)));
6199
+ ) : p = dt(t.flatMap((C) => C.data.map((N) => N.value)));
6178
6200
  const b = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, g = n ?? 600, $ = r, k = g - b.left - b.right, m = $ - b.top - b.bottom, y = k / u.length, w = y * 0.2, z = y - w * 2, W = s ? z : z / t.length;
6179
6201
  function M(C) {
6180
6202
  return b.top + m - C / p * m;
@@ -6237,20 +6259,20 @@ function ul({
6237
6259
  let S = b.top + m;
6238
6260
  return /* @__PURE__ */ e("g", { children: t.map((A, E) => {
6239
6261
  var J;
6240
- const O = ((J = A.data[N]) == null ? void 0 : J.value) ?? 0, _ = F(O), B = S - _;
6262
+ const R = ((J = A.data[N]) == null ? void 0 : J.value) ?? 0, _ = F(R), B = S - _;
6241
6263
  S = B;
6242
- const K = be(A, E), H = E === t.length - 1, X = E === 0, ae = f, q = L(N), re = z, P = _, T = H && X ? `M${q},${B + ae} Q${q},${B} ${q + ae},${B} L${q + re - ae},${B} Q${q + re},${B} ${q + re},${B + ae} L${q + re},${B + P} L${q},${B + P} Z` : H ? `M${q},${B + ae} Q${q},${B} ${q + ae},${B} L${q + re - ae},${B} Q${q + re},${B} ${q + re},${B + ae} L${q + re},${B + P} L${q},${B + P} Z` : `M${q},${B} L${q + re},${B} L${q + re},${B + P} L${q},${B + P} Z`;
6243
- return /* @__PURE__ */ e("path", { d: T, fill: K }, E);
6264
+ const q = pe(A, E), H = E === t.length - 1, K = E === 0, ae = f, G = L(N), re = z, Y = _, T = H && K ? `M${G},${B + ae} Q${G},${B} ${G + ae},${B} L${G + re - ae},${B} Q${G + re},${B} ${G + re},${B + ae} L${G + re},${B + Y} L${G},${B + Y} Z` : H ? `M${G},${B + ae} Q${G},${B} ${G + ae},${B} L${G + re - ae},${B} Q${G + re},${B} ${G + re},${B + ae} L${G + re},${B + Y} L${G},${B + Y} Z` : `M${G},${B} L${G + re},${B} L${G + re},${B + Y} L${G},${B + Y} Z`;
6265
+ return /* @__PURE__ */ e("path", { d: T, fill: q }, E);
6244
6266
  }) }, N);
6245
6267
  } else
6246
6268
  return /* @__PURE__ */ e("g", { children: t.map((S, A) => {
6247
- var X;
6248
- const E = ((X = S.data[N]) == null ? void 0 : X.value) ?? 0, O = F(E), _ = L(N) + A * W, B = M(E), K = be(S, A), H = Math.min(f, W / 2);
6269
+ var K;
6270
+ const E = ((K = S.data[N]) == null ? void 0 : K.value) ?? 0, R = F(E), _ = L(N) + A * W, B = M(E), q = pe(S, A), H = Math.min(f, W / 2);
6249
6271
  return /* @__PURE__ */ e(
6250
6272
  "path",
6251
6273
  {
6252
- d: `M${_},${B + H} Q${_},${B} ${_ + H},${B} L${_ + W - H},${B} Q${_ + W},${B} ${_ + W},${B + H} L${_ + W},${B + O} L${_},${B + O} Z`,
6253
- fill: K
6274
+ d: `M${_},${B + H} Q${_},${B} ${_ + H},${B} L${_ + W - H},${B} Q${_ + W},${B} ${_ + W},${B + H} L${_ + W},${B + R} L${_},${B + R} Z`,
6275
+ fill: q
6254
6276
  },
6255
6277
  A
6256
6278
  );
@@ -6270,9 +6292,9 @@ function ul({
6270
6292
  N
6271
6293
  )),
6272
6294
  v && /* @__PURE__ */ e(
6273
- It,
6295
+ Tt,
6274
6296
  {
6275
- x: At(v.x + 8, b.left, g - 180),
6297
+ x: Et(v.x + 8, b.left, g - 180),
6276
6298
  y: b.top,
6277
6299
  label: u[v.labelIdx],
6278
6300
  items: t.map((C, N) => {
@@ -6280,7 +6302,7 @@ function ul({
6280
6302
  return {
6281
6303
  name: C.name,
6282
6304
  value: ((S = C.data[v.labelIdx]) == null ? void 0 : S.value) ?? 0,
6283
- color: be(C, N)
6305
+ color: pe(C, N)
6284
6306
  };
6285
6307
  })
6286
6308
  }
@@ -6289,7 +6311,7 @@ function ul({
6289
6311
  }
6290
6312
  ),
6291
6313
  d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((C, N) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6292
- /* @__PURE__ */ e("div", { className: "w-2.5 h-2.5 rounded-sm", style: { backgroundColor: be(C, N) } }),
6314
+ /* @__PURE__ */ e("div", { className: "w-2.5 h-2.5 rounded-sm", style: { backgroundColor: pe(C, N) } }),
6293
6315
  /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: C.name })
6294
6316
  ] }, N)) })
6295
6317
  ] });
@@ -6319,7 +6341,7 @@ function fl({
6319
6341
  `L${C},${N}`,
6320
6342
  `A${p},${p} 0 ${E} 0 ${S},${A}`,
6321
6343
  "Z"
6322
- ].join(" "), color: m.color ?? Ae[y % Ae.length], ratio: w, d: m, i: y };
6344
+ ].join(" "), color: m.color ?? Re[y % Re.length], ratio: w, d: m, i: y };
6323
6345
  }), $ = l ?? h.toLocaleString(), k = s !== null ? t[s] : null;
6324
6346
  return /* @__PURE__ */ a("div", { className: `flex items-center gap-6 ${c}`, children: [
6325
6347
  /* @__PURE__ */ e("div", { className: "relative flex-shrink-0", children: /* @__PURE__ */ a("svg", { width: r, height: r, viewBox: `0 0 ${r} ${r}`, children: [
@@ -6335,7 +6357,7 @@ function fl({
6335
6357
  },
6336
6358
  m.i
6337
6359
  )),
6338
- n > 0 && /* @__PURE__ */ a(ge, { children: [
6360
+ n > 0 && /* @__PURE__ */ a(ve, { children: [
6339
6361
  /* @__PURE__ */ e(
6340
6362
  "text",
6341
6363
  {
@@ -6372,7 +6394,7 @@ function fl({
6372
6394
  "div",
6373
6395
  {
6374
6396
  className: "w-2.5 h-2.5 rounded-sm flex-shrink-0",
6375
- style: { backgroundColor: m.color ?? Ae[y % Ae.length] }
6397
+ style: { backgroundColor: m.color ?? Re[y % Re.length] }
6376
6398
  }
6377
6399
  ),
6378
6400
  /* @__PURE__ */ e("span", { className: "text-foreground", children: m.label }),
@@ -6427,7 +6449,7 @@ function ml({
6427
6449
  i && /* @__PURE__ */ e("span", { style: { ...ce, color: p }, children: t[t.length - 1].toLocaleString() })
6428
6450
  ] });
6429
6451
  }
6430
- const y = t.map((W, M) => [k(M), m(W)]), w = Et(y, !1), z = w + ` L${y[y.length - 1][0]},${b + $} L${y[0][0]},${b + $} Z`;
6452
+ const y = t.map((W, M) => [k(M), m(W)]), w = It(y, !1), z = w + ` L${y[y.length - 1][0]},${b + $} L${y[0][0]},${b + $} Z`;
6431
6453
  return /* @__PURE__ */ a("div", { className: `inline-flex items-center gap-1.5 ${c}`, children: [
6432
6454
  /* @__PURE__ */ a("svg", { width: n, height: o, viewBox: `0 0 ${n} ${o}`, children: [
6433
6455
  r === "area" && /* @__PURE__ */ e("path", { d: z, fill: p, fillOpacity: 0.15 }),
@@ -6438,11 +6460,11 @@ function ml({
6438
6460
  ] });
6439
6461
  }
6440
6462
  ml.displayName = "MiniSparkline";
6441
- function $e(t) {
6463
+ function Se(t) {
6442
6464
  const r = new Date(t);
6443
6465
  return r.setHours(0, 0, 0, 0), r;
6444
6466
  }
6445
- function Se(t) {
6467
+ function ke(t) {
6446
6468
  const r = new Date(t);
6447
6469
  return r.setHours(23, 59, 59, 999), r;
6448
6470
  }
@@ -6452,7 +6474,7 @@ const hl = [
6452
6474
  value: "today",
6453
6475
  range: () => {
6454
6476
  const t = /* @__PURE__ */ new Date();
6455
- return { from: $e(t), to: Se(t) };
6477
+ return { from: Se(t), to: ke(t) };
6456
6478
  }
6457
6479
  },
6458
6480
  {
@@ -6460,7 +6482,7 @@ const hl = [
6460
6482
  value: "yesterday",
6461
6483
  range: () => {
6462
6484
  const t = /* @__PURE__ */ new Date();
6463
- return t.setDate(t.getDate() - 1), { from: $e(t), to: Se(t) };
6485
+ return t.setDate(t.getDate() - 1), { from: Se(t), to: ke(t) };
6464
6486
  }
6465
6487
  },
6466
6488
  {
@@ -6468,7 +6490,7 @@ const hl = [
6468
6490
  value: "last7",
6469
6491
  range: () => {
6470
6492
  const t = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date();
6471
- return r.setDate(r.getDate() - 6), { from: $e(r), to: Se(t) };
6493
+ return r.setDate(r.getDate() - 6), { from: Se(r), to: ke(t) };
6472
6494
  }
6473
6495
  },
6474
6496
  {
@@ -6476,7 +6498,7 @@ const hl = [
6476
6498
  value: "last30",
6477
6499
  range: () => {
6478
6500
  const t = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date();
6479
- return r.setDate(r.getDate() - 29), { from: $e(r), to: Se(t) };
6501
+ return r.setDate(r.getDate() - 29), { from: Se(r), to: ke(t) };
6480
6502
  }
6481
6503
  },
6482
6504
  {
@@ -6484,7 +6506,7 @@ const hl = [
6484
6506
  value: "thisMonth",
6485
6507
  range: () => {
6486
6508
  const t = /* @__PURE__ */ new Date(), r = new Date(t.getFullYear(), t.getMonth(), 1), n = new Date(t.getFullYear(), t.getMonth() + 1, 0);
6487
- return { from: $e(r), to: Se(n) };
6509
+ return { from: Se(r), to: ke(n) };
6488
6510
  }
6489
6511
  },
6490
6512
  {
@@ -6492,7 +6514,7 @@ const hl = [
6492
6514
  value: "lastMonth",
6493
6515
  range: () => {
6494
6516
  const t = /* @__PURE__ */ new Date(), r = new Date(t.getFullYear(), t.getMonth() - 1, 1), n = new Date(t.getFullYear(), t.getMonth(), 0);
6495
- return { from: $e(r), to: Se(n) };
6517
+ return { from: Se(r), to: ke(n) };
6496
6518
  }
6497
6519
  },
6498
6520
  {
@@ -6514,10 +6536,10 @@ const hl = [
6514
6536
  "November",
6515
6537
  "December"
6516
6538
  ], pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
6517
- function yt(t) {
6539
+ function wt(t) {
6518
6540
  return t ? t.toLocaleDateString("en-GB", { day: "2-digit", month: "short", year: "numeric" }) : "";
6519
6541
  }
6520
- function wt(t, r) {
6542
+ function Nt(t, r) {
6521
6543
  return t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate();
6522
6544
  }
6523
6545
  function gl(t, r) {
@@ -6564,7 +6586,7 @@ function cr({
6564
6586
  return u > g && u < $;
6565
6587
  }
6566
6588
  function x(u) {
6567
- return !!(s && u < $e(s) || f && u > Se(f));
6589
+ return !!(s && u < Se(s) || f && u > ke(f));
6568
6590
  }
6569
6591
  return /* @__PURE__ */ a("div", { className: "select-none flex-1 min-w-0", children: [
6570
6592
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-3", children: [
@@ -6574,7 +6596,7 @@ function cr({
6574
6596
  type: "button",
6575
6597
  onClick: d,
6576
6598
  className: "w-7 h-7 flex items-center justify-center rounded-[var(--radius-md)] hover:bg-muted/40 text-muted-foreground cursor-pointer",
6577
- children: /* @__PURE__ */ e(Fe, { size: 14 })
6599
+ children: /* @__PURE__ */ e(Me, { size: 14 })
6578
6600
  }
6579
6601
  ),
6580
6602
  /* @__PURE__ */ a("span", { className: "text-foreground", style: Zr, children: [
@@ -6594,7 +6616,7 @@ function cr({
6594
6616
  ] }),
6595
6617
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: pl.map((u) => /* @__PURE__ */ e("div", { className: "h-8 flex items-center justify-center text-muted-foreground", style: dr, children: u }, u)) }),
6596
6618
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: h.map((u, p) => {
6597
- const b = u.getMonth() === t, g = n.from ? wt(u, n.from) : !1, $ = n.to ? wt(u, n.to) : o && n.from ? wt(u, o) : !1, k = v(u), m = x(u);
6619
+ const b = u.getMonth() === t, g = n.from ? Nt(u, n.from) : !1, $ = n.to ? Nt(u, n.to) : o && n.from ? Nt(u, o) : !1, k = v(u), m = x(u);
6598
6620
  return /* @__PURE__ */ e(
6599
6621
  "button",
6600
6622
  {
@@ -6629,17 +6651,17 @@ function yl({
6629
6651
  disabled: s = !1,
6630
6652
  className: f = ""
6631
6653
  }) {
6632
- const h = /* @__PURE__ */ new Date(), [v, x] = j(!1), [u, p] = j({ from: null, to: null }), [b, g] = j(null), [$, k] = j(void 0), [m, y] = j(h.getMonth()), [w, z] = j(h.getFullYear()), [W, M] = j("from"), [F, L] = j({ top: 0, left: 0, width: 0 }), I = ee(null), C = ee(null), N = t ?? u, S = (m + 1) % 12, A = m === 11 ? w + 1 : w;
6654
+ const h = /* @__PURE__ */ new Date(), [v, x] = j(!1), [u, p] = j({ from: null, to: null }), [b, g] = j(null), [$, k] = j(void 0), [m, y] = j(h.getMonth()), [w, z] = j(h.getFullYear()), [W, M] = j("from"), [F, L] = j({ top: 0, left: 0, width: 0 }), I = V(null), C = V(null), N = t ?? u, S = (m + 1) % 12, A = m === 11 ? w + 1 : w;
6633
6655
  ne(() => {
6634
- function H(X) {
6635
- I.current && !I.current.contains(X.target) && x(!1);
6656
+ function H(K) {
6657
+ I.current && !I.current.contains(K.target) && x(!1);
6636
6658
  }
6637
6659
  return document.addEventListener("mousedown", H), () => document.removeEventListener("mousedown", H);
6638
6660
  }, []), ne(() => {
6639
6661
  if (!v || !C.current) return;
6640
6662
  const H = () => {
6641
- const X = C.current.getBoundingClientRect();
6642
- L({ top: X.bottom + 4, left: X.left, width: X.width });
6663
+ const K = C.current.getBoundingClientRect();
6664
+ L({ top: K.bottom + 4, left: K.left, width: K.width });
6643
6665
  };
6644
6666
  return H(), window.addEventListener("scroll", H, !0), window.addEventListener("resize", H), () => {
6645
6667
  window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H);
@@ -6650,23 +6672,23 @@ function yl({
6650
6672
  k("custom");
6651
6673
  return;
6652
6674
  }
6653
- const X = H.range();
6654
- p(X), r == null || r(X, H.value), k(H.value), x(!1);
6675
+ const K = H.range();
6676
+ p(K), r == null || r(K, H.value), k(H.value), x(!1);
6655
6677
  }
6656
- function O(H) {
6678
+ function R(H) {
6657
6679
  if (W === "from")
6658
- p({ from: $e(H), to: null }), M("to");
6680
+ p({ from: Se(H), to: null }), M("to");
6659
6681
  else {
6660
- const X = u.from, [ae, q] = H >= X ? [X, Se(H)] : [$e(H), Se(X)], re = { from: ae, to: q };
6682
+ const K = u.from, [ae, G] = H >= K ? [K, ke(H)] : [Se(H), ke(K)], re = { from: ae, to: G };
6661
6683
  p(re), r == null || r(re, "custom"), k("custom"), M("from"), x(!1);
6662
6684
  }
6663
6685
  }
6664
6686
  function _(H) {
6665
6687
  H.stopPropagation();
6666
- const X = { from: null, to: null };
6667
- p(X), r == null || r(X, void 0), k(void 0);
6688
+ const K = { from: null, to: null };
6689
+ p(K), r == null || r(K, void 0), k(void 0);
6668
6690
  }
6669
- const B = N.from && N.to ? `${yt(N.from)} – ${yt(N.to)}` : N.from ? `${yt(N.from)} – ...` : "", K = hl.filter((H) => n.includes(H.value));
6691
+ const B = N.from && N.to ? `${wt(N.from)} – ${wt(N.to)}` : N.from ? `${wt(N.from)} – ...` : "", q = hl.filter((H) => n.includes(H.value));
6670
6692
  return /* @__PURE__ */ a("div", { ref: I, className: `relative inline-block ${f}`, children: [
6671
6693
  /* @__PURE__ */ a(
6672
6694
  "button",
@@ -6693,20 +6715,20 @@ function yl({
6693
6715
  onClick: _,
6694
6716
  onKeyDown: (H) => H.key === "Enter" && _(H),
6695
6717
  className: "text-muted-foreground hover:text-foreground transition-colors cursor-pointer flex-shrink-0",
6696
- children: /* @__PURE__ */ e(le, { size: 12 })
6718
+ children: /* @__PURE__ */ e(ie, { size: 12 })
6697
6719
  }
6698
6720
  )
6699
6721
  ]
6700
6722
  }
6701
6723
  ),
6702
- v && dt(
6724
+ v && Qe(
6703
6725
  /* @__PURE__ */ a(
6704
6726
  "div",
6705
6727
  {
6706
6728
  className: "fixed z-[9999] bg-card border border-border rounded-[var(--radius-md)] shadow-[0_4px_24px_0_rgba(0,0,0,0.1)] flex overflow-y-auto",
6707
6729
  style: { top: F.top, left: F.left, minWidth: "620px", maxHeight: "calc(100vh - 120px)" },
6708
6730
  children: [
6709
- /* @__PURE__ */ e("div", { className: "w-36 border-r border-border py-2 flex flex-col gap-0.5 flex-shrink-0", children: K.map((H) => /* @__PURE__ */ e(
6731
+ /* @__PURE__ */ e("div", { className: "w-36 border-r border-border py-2 flex flex-col gap-0.5 flex-shrink-0", children: q.map((H) => /* @__PURE__ */ e(
6710
6732
  "button",
6711
6733
  {
6712
6734
  type: "button",
@@ -6729,7 +6751,7 @@ function yl({
6729
6751
  range: N,
6730
6752
  hovered: b,
6731
6753
  onHover: g,
6732
- onSelect: O,
6754
+ onSelect: R,
6733
6755
  onPrevMonth: () => {
6734
6756
  m === 0 ? (y(11), z(w - 1)) : y(m - 1);
6735
6757
  },
@@ -6749,7 +6771,7 @@ function yl({
6749
6771
  range: N,
6750
6772
  hovered: b,
6751
6773
  onHover: g,
6752
- onSelect: O,
6774
+ onSelect: R,
6753
6775
  onPrevMonth: () => {
6754
6776
  m === 0 ? (y(11), z(w - 1)) : y(m - 1);
6755
6777
  },
@@ -6769,21 +6791,21 @@ function yl({
6769
6791
  ] });
6770
6792
  }
6771
6793
  yl.displayName = "DateRangePicker";
6772
- function ye(t) {
6794
+ function Ne(t) {
6773
6795
  return String(t).padStart(2, "0");
6774
6796
  }
6775
6797
  function Xr(t, r, n) {
6776
6798
  if (r === "12h") {
6777
6799
  const o = t.hours % 12 || 12, l = t.hours < 12 ? "AM" : "PM";
6778
- return n ? `${ye(o)}:${ye(t.minutes)}:${ye(t.seconds ?? 0)} ${l}` : `${ye(o)}:${ye(t.minutes)} ${l}`;
6800
+ return n ? `${Ne(o)}:${Ne(t.minutes)}:${Ne(t.seconds ?? 0)} ${l}` : `${Ne(o)}:${Ne(t.minutes)} ${l}`;
6779
6801
  }
6780
- return n ? `${ye(t.hours)}:${ye(t.minutes)}:${ye(t.seconds ?? 0)}` : `${ye(t.hours)}:${ye(t.minutes)}`;
6802
+ return n ? `${Ne(t.hours)}:${Ne(t.minutes)}:${Ne(t.seconds ?? 0)}` : `${Ne(t.hours)}:${Ne(t.minutes)}`;
6781
6803
  }
6782
6804
  const qr = {
6783
6805
  fontFamily: "var(--font-label)",
6784
6806
  fontSize: "var(--text-label)",
6785
6807
  fontWeight: "var(--weight-p)"
6786
- }, nt = {
6808
+ }, it = {
6787
6809
  fontFamily: "var(--font-label)",
6788
6810
  fontSize: "var(--text-button)",
6789
6811
  fontWeight: "var(--weight-button)",
@@ -6793,7 +6815,7 @@ const qr = {
6793
6815
  md: "h-10 px-3.5",
6794
6816
  lg: "h-11 px-4"
6795
6817
  };
6796
- function Qe({
6818
+ function rt({
6797
6819
  options: t,
6798
6820
  value: r,
6799
6821
  onChange: n,
@@ -6810,10 +6832,10 @@ function Qe({
6810
6832
  n(i);
6811
6833
  },
6812
6834
  className: "text-muted-foreground hover:text-foreground transition-colors cursor-pointer",
6813
- children: /* @__PURE__ */ e(Ge, { size: 14 })
6835
+ children: /* @__PURE__ */ e(Je, { size: 14 })
6814
6836
  }
6815
6837
  ),
6816
- /* @__PURE__ */ e("div", { className: "text-foreground w-full text-center px-1 py-1 rounded-[var(--radius-md)] bg-muted/20", style: nt, children: ye(r) }),
6838
+ /* @__PURE__ */ e("div", { className: "text-foreground w-full text-center px-1 py-1 rounded-[var(--radius-md)] bg-muted/20", style: it, children: Ne(r) }),
6817
6839
  /* @__PURE__ */ e(
6818
6840
  "button",
6819
6841
  {
@@ -6823,7 +6845,7 @@ function Qe({
6823
6845
  n(i);
6824
6846
  },
6825
6847
  className: "text-muted-foreground hover:text-foreground transition-colors cursor-pointer",
6826
- children: /* @__PURE__ */ e(Me, { size: 14 })
6848
+ children: /* @__PURE__ */ e(Ie, { size: 14 })
6827
6849
  }
6828
6850
  ),
6829
6851
  /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: o })
@@ -6840,7 +6862,7 @@ function Qr({
6840
6862
  disabled: c = !1,
6841
6863
  className: s = ""
6842
6864
  }) {
6843
- const [f, h] = j(!1), [v, x] = j({ hours: 0, minutes: 0, seconds: 0 }), u = ee(null), p = t ?? v, b = n === "12h" ? Array.from({ length: 12 }, (F, L) => L + 1) : Array.from({ length: 24 }, (F, L) => L), g = Array.from(
6865
+ const [f, h] = j(!1), [v, x] = j({ hours: 0, minutes: 0, seconds: 0 }), u = V(null), p = t ?? v, b = n === "12h" ? Array.from({ length: 12 }, (F, L) => L + 1) : Array.from({ length: 24 }, (F, L) => L), g = Array.from(
6844
6866
  { length: Math.ceil(60 / l) },
6845
6867
  (F, L) => L * l
6846
6868
  ), $ = Array.from({ length: 60 }, (F, L) => L), k = ["AM", "PM"];
@@ -6874,14 +6896,14 @@ function Qr({
6874
6896
  ].join(" "),
6875
6897
  style: qr,
6876
6898
  children: [
6877
- /* @__PURE__ */ e(Ct, { size: 14, className: "text-muted-foreground flex-shrink-0" }),
6899
+ /* @__PURE__ */ e(jt, { size: 14, className: "text-muted-foreground flex-shrink-0" }),
6878
6900
  /* @__PURE__ */ e("span", { className: w ? "text-foreground" : "text-muted-foreground", children: w ? y : i })
6879
6901
  ]
6880
6902
  }
6881
6903
  ),
6882
6904
  f && /* @__PURE__ */ e("div", { className: "absolute top-full mt-1 z-50 bg-card border border-border rounded-[var(--radius-md)] shadow-[0_4px_24px_0_rgba(0,0,0,0.1)] p-4", children: /* @__PURE__ */ a("div", { className: "flex items-start gap-2", children: [
6883
6905
  n === "12h" ? /* @__PURE__ */ e(
6884
- Qe,
6906
+ rt,
6885
6907
  {
6886
6908
  options: b,
6887
6909
  value: z,
@@ -6889,7 +6911,7 @@ function Qr({
6889
6911
  label: "Hour"
6890
6912
  }
6891
6913
  ) : /* @__PURE__ */ e(
6892
- Qe,
6914
+ rt,
6893
6915
  {
6894
6916
  options: b,
6895
6917
  value: p.hours,
@@ -6897,9 +6919,9 @@ function Qr({
6897
6919
  label: "Hour"
6898
6920
  }
6899
6921
  ),
6900
- /* @__PURE__ */ e("div", { className: "text-muted-foreground text-lg mt-3", style: nt, children: ":" }),
6922
+ /* @__PURE__ */ e("div", { className: "text-muted-foreground text-lg mt-3", style: it, children: ":" }),
6901
6923
  /* @__PURE__ */ e(
6902
- Qe,
6924
+ rt,
6903
6925
  {
6904
6926
  options: g,
6905
6927
  value: p.minutes,
@@ -6907,10 +6929,10 @@ function Qr({
6907
6929
  label: "Min"
6908
6930
  }
6909
6931
  ),
6910
- o && /* @__PURE__ */ a(ge, { children: [
6911
- /* @__PURE__ */ e("div", { className: "text-muted-foreground text-lg mt-3", style: nt, children: ":" }),
6932
+ o && /* @__PURE__ */ a(ve, { children: [
6933
+ /* @__PURE__ */ e("div", { className: "text-muted-foreground text-lg mt-3", style: it, children: ":" }),
6912
6934
  /* @__PURE__ */ e(
6913
- Qe,
6935
+ rt,
6914
6936
  {
6915
6937
  options: $,
6916
6938
  value: p.seconds ?? 0,
@@ -6930,7 +6952,7 @@ function Qr({
6930
6952
  "px-2 py-1 rounded-[var(--radius-md)] transition-colors",
6931
6953
  F === "AM" === W ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-muted/30 cursor-pointer"
6932
6954
  ].join(" "),
6933
- style: nt,
6955
+ style: it,
6934
6956
  children: F
6935
6957
  },
6936
6958
  F
@@ -6952,7 +6974,7 @@ function wl({
6952
6974
  disabled: s = !1,
6953
6975
  className: f = ""
6954
6976
  }) {
6955
- const [h, v] = j(!1), [x, u] = j(t ?? /* @__PURE__ */ new Date()), p = ee(null), b = t ?? x, g = /* @__PURE__ */ new Date(), [$, k] = j(b.getMonth()), [m, y] = j(b.getFullYear());
6977
+ const [h, v] = j(!1), [x, u] = j(t ?? /* @__PURE__ */ new Date()), p = V(null), b = t ?? x, g = /* @__PURE__ */ new Date(), [$, k] = j(b.getMonth()), [m, y] = j(b.getFullYear());
6956
6978
  ne(() => {
6957
6979
  function S(A) {
6958
6980
  p.current && !p.current.contains(A.target) && v(!1);
@@ -6974,7 +6996,7 @@ function wl({
6974
6996
  function L() {
6975
6997
  const S = [], A = new Date(m, $, 1), E = new Date(A);
6976
6998
  E.setDate(E.getDate() - E.getDay());
6977
- for (let O = 0; O < 42; O++)
6999
+ for (let R = 0; R < 42; R++)
6978
7000
  S.push(new Date(E)), E.setDate(E.getDate() + 1);
6979
7001
  return S;
6980
7002
  }
@@ -7006,7 +7028,7 @@ function wl({
7006
7028
  ].join(" "),
7007
7029
  style: qr,
7008
7030
  children: [
7009
- /* @__PURE__ */ e(Ct, { size: 14, className: "text-muted-foreground flex-shrink-0" }),
7031
+ /* @__PURE__ */ e(jt, { size: 14, className: "text-muted-foreground flex-shrink-0" }),
7010
7032
  /* @__PURE__ */ e("span", { className: "text-foreground", children: N })
7011
7033
  ]
7012
7034
  }
@@ -7022,7 +7044,7 @@ function wl({
7022
7044
  $ === 0 ? (k(11), y(m - 1)) : k($ - 1);
7023
7045
  },
7024
7046
  className: "w-7 h-7 flex items-center justify-center rounded-[var(--radius-md)] hover:bg-muted/40 text-muted-foreground cursor-pointer",
7025
- children: /* @__PURE__ */ e(Fe, { size: 14 })
7047
+ children: /* @__PURE__ */ e(Me, { size: 14 })
7026
7048
  }
7027
7049
  ),
7028
7050
  /* @__PURE__ */ a("span", { style: C, children: [
@@ -7044,7 +7066,7 @@ function wl({
7044
7066
  ] }),
7045
7067
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: F.map((S) => /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground", style: I, children: S }, S)) }),
7046
7068
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-y-0.5", children: L().map((S, A) => {
7047
- const E = S.getMonth() === $, O = t ? S.toDateString() === t.toDateString() : S.toDateString() === x.toDateString(), _ = S.toDateString() === g.toDateString();
7069
+ const E = S.getMonth() === $, R = t ? S.toDateString() === t.toDateString() : S.toDateString() === x.toDateString(), _ = S.toDateString() === g.toDateString();
7048
7070
  return /* @__PURE__ */ e(
7049
7071
  "button",
7050
7072
  {
@@ -7053,7 +7075,7 @@ function wl({
7053
7075
  className: [
7054
7076
  "h-7 w-full text-center transition-colors rounded-[var(--radius-md)] cursor-pointer",
7055
7077
  E ? "" : "text-muted-foreground/40",
7056
- O ? "bg-primary text-primary-foreground font-semibold" : _ ? "border border-primary text-primary" : "hover:bg-muted/40"
7078
+ R ? "bg-primary text-primary-foreground font-semibold" : _ ? "border border-primary text-primary" : "hover:bg-muted/40"
7057
7079
  ].filter(Boolean).join(" "),
7058
7080
  style: I,
7059
7081
  children: S.getDate()
@@ -7202,7 +7224,7 @@ function Wl({
7202
7224
  i
7203
7225
  ].join(" "),
7204
7226
  role: "group",
7205
- children: pe.Children.map(l, (d) => pe.isValidElement(d) ? pe.cloneElement(d, {
7227
+ children: ge.Children.map(l, (d) => ge.isValidElement(d) ? ge.cloneElement(d, {
7206
7228
  selected: t === d.props.value,
7207
7229
  onClick: (c) => r == null ? void 0 : r(c),
7208
7230
  layout: n,
@@ -7383,7 +7405,7 @@ function _l({
7383
7405
  }, $ = (w, z) => {
7384
7406
  const W = [...x], [M] = W.splice(w, 1);
7385
7407
  W.splice(z, 0, M), u(W);
7386
- }, k = x.length <= l, m = i !== void 0 && x.length >= i, y = pe.useRef(null);
7408
+ }, k = x.length <= l, m = i !== void 0 && x.length >= i, y = ge.useRef(null);
7387
7409
  return /* @__PURE__ */ a("div", { className: `space-y-2 ${f}`, children: [
7388
7410
  /* @__PURE__ */ a(
7389
7411
  "div",
@@ -7449,7 +7471,7 @@ function _l({
7449
7471
  s || k ? "text-muted-foreground/30 cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10 cursor-pointer"
7450
7472
  ].join(" "),
7451
7473
  "aria-label": "Remove row",
7452
- children: /* @__PURE__ */ e($t, { size: 14 })
7474
+ children: /* @__PURE__ */ e(St, { size: 14 })
7453
7475
  }
7454
7476
  )
7455
7477
  ]
@@ -7473,7 +7495,7 @@ function _l({
7473
7495
  ].join(" "),
7474
7496
  style: ur,
7475
7497
  children: [
7476
- /* @__PURE__ */ e(jt, { size: 14 }),
7498
+ /* @__PURE__ */ e(Dt, { size: 14 }),
7477
7499
  d
7478
7500
  ]
7479
7501
  }
@@ -7483,8 +7505,8 @@ function _l({
7483
7505
  _l.displayName = "RepeatableFieldList";
7484
7506
  const Hl = {
7485
7507
  history: [
7486
- { cmd: "undo", icon: On, title: "Undo" },
7487
- { cmd: "redo", icon: Rn, title: "Redo" }
7508
+ { cmd: "undo", icon: Rn, title: "Undo" },
7509
+ { cmd: "redo", icon: On, title: "Redo" }
7488
7510
  ],
7489
7511
  format: [
7490
7512
  { cmd: "bold", icon: Tn, title: "Bold" },
@@ -7510,11 +7532,11 @@ const Hl = {
7510
7532
  { cmd: "createLink", icon: Wn, title: "Insert link" },
7511
7533
  { cmd: "unlink", icon: Mn, title: "Remove link" }
7512
7534
  ]
7513
- }, Ol = {
7535
+ }, Rl = {
7514
7536
  fontFamily: "var(--font-label)",
7515
7537
  fontSize: "var(--text-label)",
7516
7538
  fontWeight: "var(--weight-p)"
7517
- }, Rl = {
7539
+ }, Ol = {
7518
7540
  fontFamily: "var(--font-p)",
7519
7541
  fontSize: "var(--text-p)",
7520
7542
  fontWeight: "var(--weight-p)",
@@ -7534,7 +7556,7 @@ function Pl({
7534
7556
  size: f = "md",
7535
7557
  className: h = ""
7536
7558
  }) {
7537
- const v = ee(null), [x, u] = j(!1), [p, b] = j(/* @__PURE__ */ new Set()), [g, $] = j(!t);
7559
+ const v = V(null), [x, u] = j(!1), [p, b] = j(/* @__PURE__ */ new Set()), [g, $] = j(!t);
7538
7560
  ne(() => {
7539
7561
  v.current && t && v.current.innerHTML !== t && (v.current.innerHTML = t, $(!1));
7540
7562
  }, []);
@@ -7587,7 +7609,7 @@ function Pl({
7587
7609
  !s && /* @__PURE__ */ a("div", { className: "flex items-center gap-0.5 flex-wrap px-2 py-1.5 border-b border-border bg-muted/10", children: [
7588
7610
  i.map((M, F) => {
7589
7611
  const L = Hl[M];
7590
- return /* @__PURE__ */ a(pe.Fragment, { children: [
7612
+ return /* @__PURE__ */ a(ge.Fragment, { children: [
7591
7613
  F > 0 && /* @__PURE__ */ e("div", { className: "w-px h-5 bg-border mx-1" }),
7592
7614
  L.map((I) => {
7593
7615
  const C = I.icon, N = p.has(I.cmd);
@@ -7612,7 +7634,7 @@ function Pl({
7612
7634
  })
7613
7635
  ] }, M);
7614
7636
  }),
7615
- d && /* @__PURE__ */ a(ge, { children: [
7637
+ d && /* @__PURE__ */ a(ve, { children: [
7616
7638
  /* @__PURE__ */ e("div", { className: "ml-auto w-px h-5 bg-border mx-1" }),
7617
7639
  /* @__PURE__ */ e(
7618
7640
  "button",
@@ -7631,7 +7653,7 @@ function Pl({
7631
7653
  "div",
7632
7654
  {
7633
7655
  className: "absolute top-0 left-0 pointer-events-none p-4 text-muted-foreground",
7634
- style: Ol,
7656
+ style: Rl,
7635
7657
  children: n
7636
7658
  }
7637
7659
  ),
@@ -7654,7 +7676,7 @@ function Pl({
7654
7676
  x ? "flex-1" : ""
7655
7677
  ].filter(Boolean).join(" "),
7656
7678
  style: {
7657
- ...Rl,
7679
+ ...Ol,
7658
7680
  minHeight: x ? void 0 : z,
7659
7681
  maxHeight: x ? void 0 : l
7660
7682
  },
@@ -7665,11 +7687,11 @@ function Pl({
7665
7687
  ] });
7666
7688
  }
7667
7689
  Pl.displayName = "RichTextEditor";
7668
- const Wt = {
7690
+ const Mt = {
7669
7691
  fontFamily: "var(--font-label)",
7670
7692
  fontSize: "var(--text-label)",
7671
7693
  fontWeight: "var(--weight-label)"
7672
- }, Ee = {
7694
+ }, Oe = {
7673
7695
  fontFamily: "var(--font-label)",
7674
7696
  fontSize: "var(--text-label)",
7675
7697
  fontWeight: "var(--weight-p)"
@@ -7686,7 +7708,7 @@ function Gl({
7686
7708
  onClose: n
7687
7709
  }) {
7688
7710
  const [o, l] = j(r), i = t[o], d = () => l((s) => (s - 1 + t.length) % t.length), c = () => l((s) => (s + 1) % t.length);
7689
- return pe.useEffect(() => {
7711
+ return ge.useEffect(() => {
7690
7712
  function s(f) {
7691
7713
  f.key === "Escape" && n(), f.key === "ArrowLeft" && d(), f.key === "ArrowRight" && c();
7692
7714
  }
@@ -7703,7 +7725,7 @@ function Gl({
7703
7725
  type: "button",
7704
7726
  onClick: n,
7705
7727
  className: "absolute top-4 right-4 w-9 h-9 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 text-white transition-colors cursor-pointer",
7706
- children: /* @__PURE__ */ e(le, { size: 16 })
7728
+ children: /* @__PURE__ */ e(ie, { size: 16 })
7707
7729
  }
7708
7730
  ),
7709
7731
  t.length > 1 && /* @__PURE__ */ e(
@@ -7714,7 +7736,7 @@ function Gl({
7714
7736
  s.stopPropagation(), d();
7715
7737
  },
7716
7738
  className: "absolute left-4 w-10 h-10 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 text-white transition-colors cursor-pointer",
7717
- children: /* @__PURE__ */ e(Fe, { size: 20 })
7739
+ children: /* @__PURE__ */ e(Me, { size: 20 })
7718
7740
  }
7719
7741
  ),
7720
7742
  /* @__PURE__ */ a("div", { className: "max-w-4xl max-h-[80vh] px-16", onClick: (s) => s.stopPropagation(), children: [
@@ -7726,12 +7748,12 @@ function Gl({
7726
7748
  className: "max-w-full max-h-[70vh] object-contain rounded-[var(--radius-md)]"
7727
7749
  }
7728
7750
  ),
7729
- i.name && /* @__PURE__ */ a("p", { className: "text-center text-white/70 mt-3", style: Ee, children: [
7751
+ i.name && /* @__PURE__ */ a("p", { className: "text-center text-white/70 mt-3", style: Oe, children: [
7730
7752
  i.name,
7731
7753
  " ",
7732
7754
  i.size ? `· ${i.size}` : ""
7733
7755
  ] }),
7734
- t.length > 1 && /* @__PURE__ */ a("p", { className: "text-center text-white/40 mt-1", style: Ee, children: [
7756
+ t.length > 1 && /* @__PURE__ */ a("p", { className: "text-center text-white/40 mt-1", style: Oe, children: [
7735
7757
  o + 1,
7736
7758
  " / ",
7737
7759
  t.length
@@ -7780,8 +7802,8 @@ function Vr({
7780
7802
  }
7781
7803
  ) }),
7782
7804
  (n || o) && /* @__PURE__ */ a("div", { className: "min-w-0", children: [
7783
- n && /* @__PURE__ */ e("div", { className: "truncate text-foreground", style: Wt, children: n }),
7784
- o && /* @__PURE__ */ e("div", { className: "truncate text-muted-foreground", style: Ee, children: o })
7805
+ n && /* @__PURE__ */ e("div", { className: "truncate text-foreground", style: Mt, children: n }),
7806
+ o && /* @__PURE__ */ e("div", { className: "truncate text-muted-foreground", style: Oe, children: o })
7785
7807
  ] })
7786
7808
  ]
7787
7809
  }
@@ -7803,7 +7825,7 @@ function Ul({
7803
7825
  disabled: v = !1,
7804
7826
  className: x = ""
7805
7827
  }) {
7806
- const [u, p] = j(f), [b, g] = j(null), $ = pe.useRef(null);
7828
+ const [u, p] = j(f), [b, g] = j(null), $ = ge.useRef(null);
7807
7829
  function k(w) {
7808
7830
  if (v) return;
7809
7831
  if (n.includes(w))
@@ -7820,16 +7842,16 @@ function Ul({
7820
7842
  var z;
7821
7843
  (z = w.target.files) != null && z.length && (c == null || c(w.target.files), w.target.value = "");
7822
7844
  }, [c]);
7823
- return t.length === 0 && !d ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground border border-dashed border-border rounded-[var(--radius-md)]", children: /* @__PURE__ */ e("span", { style: Wt, children: "No images yet" }) }) : /* @__PURE__ */ a("div", { className: x, children: [
7845
+ return t.length === 0 && !d ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground border border-dashed border-border rounded-[var(--radius-md)]", children: /* @__PURE__ */ e("span", { style: Mt, children: "No images yet" }) }) : /* @__PURE__ */ a("div", { className: x, children: [
7824
7846
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-3", children: [
7825
- /* @__PURE__ */ a("span", { className: "text-muted-foreground", style: Ee, children: [
7847
+ /* @__PURE__ */ a("span", { className: "text-muted-foreground", style: Oe, children: [
7826
7848
  t.length,
7827
7849
  " image",
7828
7850
  t.length !== 1 ? "s" : "",
7829
7851
  r && n.length > 0 && ` · ${n.length} selected`
7830
7852
  ] }),
7831
7853
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
7832
- d && /* @__PURE__ */ a(ge, { children: [
7854
+ d && /* @__PURE__ */ a(ve, { children: [
7833
7855
  /* @__PURE__ */ e(
7834
7856
  "input",
7835
7857
  {
@@ -7851,9 +7873,9 @@ function Ul({
7851
7873
  return (w = $.current) == null ? void 0 : w.click();
7852
7874
  },
7853
7875
  className: "flex items-center gap-1.5 px-2.5 py-1.5 rounded-[var(--radius-md)] border border-border bg-card hover:bg-muted/20 text-foreground transition-colors cursor-pointer",
7854
- style: Ee,
7876
+ style: Oe,
7855
7877
  children: [
7856
- /* @__PURE__ */ e(Ve, { size: 12 }),
7878
+ /* @__PURE__ */ e(nt, { size: 12 }),
7857
7879
  "Upload"
7858
7880
  ]
7859
7881
  }
@@ -7911,7 +7933,7 @@ function Ul({
7911
7933
  M.stopPropagation(), s(w.id);
7912
7934
  },
7913
7935
  className: "absolute top-1.5 right-1.5 w-6 h-6 flex items-center justify-center rounded-full bg-black/60 text-white opacity-0 group-hover:opacity-100 transition-opacity hover:bg-destructive cursor-pointer",
7914
- children: /* @__PURE__ */ e($t, { size: 10 })
7936
+ children: /* @__PURE__ */ e(St, { size: 10 })
7915
7937
  }
7916
7938
  )
7917
7939
  ]
@@ -7932,8 +7954,8 @@ function Ul({
7932
7954
  children: [
7933
7955
  /* @__PURE__ */ e(Vr, { src: w.src, alt: w.alt, size: "sm" }),
7934
7956
  /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: [
7935
- /* @__PURE__ */ e("div", { className: "truncate text-foreground", style: Wt, children: w.name ?? w.alt ?? `Image ${z + 1}` }),
7936
- w.size && /* @__PURE__ */ e("div", { className: "text-muted-foreground", style: Ee, children: w.size })
7957
+ /* @__PURE__ */ e("div", { className: "truncate text-foreground", style: Mt, children: w.name ?? w.alt ?? `Image ${z + 1}` }),
7958
+ w.size && /* @__PURE__ */ e("div", { className: "text-muted-foreground", style: Oe, children: w.size })
7937
7959
  ] }),
7938
7960
  r && W && /* @__PURE__ */ e("div", { className: "w-5 h-5 rounded-full bg-primary flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ e(me, { size: 10, className: "text-primary-foreground" }) }),
7939
7961
  s && /* @__PURE__ */ e(
@@ -7944,7 +7966,7 @@ function Ul({
7944
7966
  M.stopPropagation(), s(w.id);
7945
7967
  },
7946
7968
  className: "w-7 h-7 flex items-center justify-center rounded-[var(--radius-md)] text-muted-foreground hover:text-destructive hover:bg-destructive/10 transition-colors cursor-pointer flex-shrink-0",
7947
- children: /* @__PURE__ */ e($t, { size: 13 })
7969
+ children: /* @__PURE__ */ e(St, { size: 13 })
7948
7970
  }
7949
7971
  )
7950
7972
  ]
@@ -7963,10 +7985,10 @@ function Ul({
7963
7985
  ] });
7964
7986
  }
7965
7987
  Ul.displayName = "ImageGallery";
7966
- const Tt = it(null);
7967
- Tt.displayName = "AppShellContext";
7968
- const Bt = it(null);
7969
- Bt.displayName = "AppShellFullContext";
7988
+ const Bt = ut(null);
7989
+ Bt.displayName = "AppShellContext";
7990
+ const _t = ut(null);
7991
+ _t.displayName = "AppShellFullContext";
7970
7992
  function en({
7971
7993
  user: t = null,
7972
7994
  product: r = null,
@@ -7987,7 +8009,7 @@ function en({
7987
8009
  groups: [],
7988
8010
  loading: !1,
7989
8011
  error: null
7990
- }), $ = ee(0), k = Q(async () => {
8012
+ }), $ = V(0), k = Q(async () => {
7991
8013
  if (!n || !t) {
7992
8014
  g({ groups: [], loading: !1, error: null });
7993
8015
  return;
@@ -8042,11 +8064,11 @@ function en({
8042
8064
  k
8043
8065
  ]
8044
8066
  );
8045
- return /* @__PURE__ */ e(Bt.Provider, { value: m, children: /* @__PURE__ */ e(Tt.Provider, { value: m, children: d }) });
8067
+ return /* @__PURE__ */ e(_t.Provider, { value: m, children: /* @__PURE__ */ e(Bt.Provider, { value: m, children: d }) });
8046
8068
  }
8047
8069
  en.displayName = "AppShellProvider";
8048
8070
  function Kl() {
8049
- const t = lt(Tt);
8071
+ const t = ct(Bt);
8050
8072
  if (!t)
8051
8073
  throw new Error(
8052
8074
  "[useAppShell] must be used inside <AppShellProvider>. Wrap your app root with <AppShellProvider user={...} product={...}>."
@@ -8054,7 +8076,7 @@ function Kl() {
8054
8076
  return t;
8055
8077
  }
8056
8078
  function Zl() {
8057
- const t = lt(Bt);
8079
+ const t = ct(_t);
8058
8080
  if (!t)
8059
8081
  throw new Error(
8060
8082
  "[useAppShellFull] must be used inside <AppShellProvider>."
@@ -8070,7 +8092,7 @@ function qi(t, r) {
8070
8092
  groups: [],
8071
8093
  loading: !1,
8072
8094
  error: null
8073
- }), l = ee(0), i = Q(async () => {
8095
+ }), l = V(0), i = Q(async () => {
8074
8096
  if (!t || !r) {
8075
8097
  o({ groups: [], loading: !1, error: null });
8076
8098
  return;
@@ -8094,7 +8116,7 @@ function qi(t, r) {
8094
8116
  i();
8095
8117
  }, [i]), { ...n, refresh: i };
8096
8118
  }
8097
- class Xl extends pe.Component {
8119
+ class Xl extends ge.Component {
8098
8120
  constructor(r) {
8099
8121
  super(r), this.state = { hasError: !1 };
8100
8122
  }
@@ -8137,7 +8159,7 @@ class Xl extends pe.Component {
8137
8159
  ) : this.props.children;
8138
8160
  }
8139
8161
  }
8140
- function V({ children: t, className: r = "" }) {
8162
+ function te({ children: t, className: r = "" }) {
8141
8163
  return t ? /* @__PURE__ */ e("div", { className: r, children: t }) : null;
8142
8164
  }
8143
8165
  function tn({ children: t }) {
@@ -8146,19 +8168,19 @@ function tn({ children: t }) {
8146
8168
  function fr({ p: t }) {
8147
8169
  const r = t.gap ?? "gap-5";
8148
8170
  return /* @__PURE__ */ a("div", { className: `flex flex-col ${r}`, children: [
8149
- /* @__PURE__ */ e(V, { children: t.header }),
8150
- /* @__PURE__ */ e(V, { children: t.banner }),
8151
- /* @__PURE__ */ e(V, { children: t.stats }),
8152
- /* @__PURE__ */ e(V, { children: t.filters }),
8153
- /* @__PURE__ */ e(V, { className: "min-h-0", children: t.content }),
8154
- /* @__PURE__ */ e(V, { children: t.footer })
8171
+ /* @__PURE__ */ e(te, { children: t.header }),
8172
+ /* @__PURE__ */ e(te, { children: t.banner }),
8173
+ /* @__PURE__ */ e(te, { children: t.stats }),
8174
+ /* @__PURE__ */ e(te, { children: t.filters }),
8175
+ /* @__PURE__ */ e(te, { className: "min-h-0", children: t.content }),
8176
+ /* @__PURE__ */ e(te, { children: t.footer })
8155
8177
  ] });
8156
8178
  }
8157
8179
  function ql({ p: t }) {
8158
8180
  const r = t.gap ?? "gap-6", n = t.asideWidth ?? "w-80";
8159
8181
  return /* @__PURE__ */ a("div", { className: `flex flex-col ${r}`, children: [
8160
- /* @__PURE__ */ e(V, { children: t.header }),
8161
- /* @__PURE__ */ e(V, { children: t.banner }),
8182
+ /* @__PURE__ */ e(te, { children: t.header }),
8183
+ /* @__PURE__ */ e(te, { children: t.banner }),
8162
8184
  /* @__PURE__ */ a("div", { className: `flex flex-col lg:flex-row ${r} min-h-0`, children: [
8163
8185
  t.asideLeft && /* @__PURE__ */ e("div", { className: `flex-shrink-0 ${n} lg:sticky lg:top-4 lg:max-h-[calc(100vh-5rem)] lg:overflow-y-auto`, children: t.aside }),
8164
8186
  /* @__PURE__ */ e("div", { className: "flex-1 min-w-0 flex flex-col gap-5", children: t.main ?? t.content }),
@@ -8169,19 +8191,19 @@ function ql({ p: t }) {
8169
8191
  function Jl({ p: t }) {
8170
8192
  const r = t.gap ?? "gap-8";
8171
8193
  return /* @__PURE__ */ a("div", { className: `flex flex-col ${r} max-w-3xl`, children: [
8172
- /* @__PURE__ */ e(V, { children: t.header }),
8173
- /* @__PURE__ */ e(V, { children: t.banner }),
8174
- /* @__PURE__ */ e(V, { className: `flex flex-col ${r}`, children: t.sections ?? t.content })
8194
+ /* @__PURE__ */ e(te, { children: t.header }),
8195
+ /* @__PURE__ */ e(te, { children: t.banner }),
8196
+ /* @__PURE__ */ e(te, { className: `flex flex-col ${r}`, children: t.sections ?? t.content })
8175
8197
  ] });
8176
8198
  }
8177
8199
  function Ql({ p: t }) {
8178
8200
  const r = t.gap ?? "gap-6";
8179
8201
  return /* @__PURE__ */ a("div", { className: "flex flex-col min-h-screen", children: [
8180
8202
  /* @__PURE__ */ a("div", { className: `flex flex-col ${r} flex-1 pb-24`, children: [
8181
- /* @__PURE__ */ e(V, { children: t.header }),
8182
- /* @__PURE__ */ e(V, { children: t.banner }),
8183
- /* @__PURE__ */ e(V, { children: t.stepper }),
8184
- /* @__PURE__ */ e(V, { className: "flex-1", children: t.form ?? t.content })
8203
+ /* @__PURE__ */ e(te, { children: t.header }),
8204
+ /* @__PURE__ */ e(te, { children: t.banner }),
8205
+ /* @__PURE__ */ e(te, { children: t.stepper }),
8206
+ /* @__PURE__ */ e(te, { className: "flex-1", children: t.form ?? t.content })
8185
8207
  ] }),
8186
8208
  /* @__PURE__ */ e(tn, { children: t.actions })
8187
8209
  ] });
@@ -8189,27 +8211,27 @@ function Ql({ p: t }) {
8189
8211
  function Vl({ p: t }) {
8190
8212
  const r = t.gap ?? "gap-6", n = t.primaryChart && t.secondaryCharts;
8191
8213
  return /* @__PURE__ */ a("div", { className: `flex flex-col ${r}`, children: [
8192
- /* @__PURE__ */ e(V, { children: t.header }),
8193
- /* @__PURE__ */ e(V, { children: t.banner }),
8194
- /* @__PURE__ */ e(V, { children: t.kpis ?? t.stats }),
8214
+ /* @__PURE__ */ e(te, { children: t.header }),
8215
+ /* @__PURE__ */ e(te, { children: t.banner }),
8216
+ /* @__PURE__ */ e(te, { children: t.kpis ?? t.stats }),
8195
8217
  n ? /* @__PURE__ */ a("div", { className: `grid grid-cols-1 lg:grid-cols-3 ${r}`, children: [
8196
8218
  /* @__PURE__ */ e("div", { className: "lg:col-span-2", children: t.primaryChart }),
8197
8219
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: t.secondaryCharts })
8198
- ] }) : /* @__PURE__ */ a(ge, { children: [
8199
- /* @__PURE__ */ e(V, { children: t.primaryChart ?? t.charts }),
8200
- /* @__PURE__ */ e(V, { children: t.secondaryCharts })
8220
+ ] }) : /* @__PURE__ */ a(ve, { children: [
8221
+ /* @__PURE__ */ e(te, { children: t.primaryChart ?? t.charts }),
8222
+ /* @__PURE__ */ e(te, { children: t.secondaryCharts })
8201
8223
  ] }),
8202
- /* @__PURE__ */ e(V, { children: t.content ?? t.table }),
8203
- /* @__PURE__ */ e(V, { children: t.footer })
8224
+ /* @__PURE__ */ e(te, { children: t.content ?? t.table }),
8225
+ /* @__PURE__ */ e(te, { children: t.footer })
8204
8226
  ] });
8205
8227
  }
8206
8228
  function ei({ p: t }) {
8207
8229
  const r = t.gap ?? "gap-6";
8208
8230
  return /* @__PURE__ */ a("div", { className: "flex flex-col min-h-screen", children: [
8209
8231
  /* @__PURE__ */ a("div", { className: `flex flex-col ${r} flex-1 pb-24`, children: [
8210
- /* @__PURE__ */ e(V, { children: t.header }),
8211
- /* @__PURE__ */ e(V, { children: t.banner }),
8212
- /* @__PURE__ */ e(V, { className: "flex-1 max-w-2xl", children: t.form ?? t.content })
8232
+ /* @__PURE__ */ e(te, { children: t.header }),
8233
+ /* @__PURE__ */ e(te, { children: t.banner }),
8234
+ /* @__PURE__ */ e(te, { className: "flex-1 max-w-2xl", children: t.form ?? t.content })
8213
8235
  ] }),
8214
8236
  /* @__PURE__ */ e(tn, { children: t.actions })
8215
8237
  ] });
@@ -8217,17 +8239,17 @@ function ei({ p: t }) {
8217
8239
  function ti({ p: t }) {
8218
8240
  const r = t.gap ?? "gap-6";
8219
8241
  return /* @__PURE__ */ a("div", { className: `flex flex-col ${r}`, children: [
8220
- /* @__PURE__ */ e(V, { children: t.header }),
8221
- /* @__PURE__ */ e(V, { children: t.banner }),
8242
+ /* @__PURE__ */ e(te, { children: t.header }),
8243
+ /* @__PURE__ */ e(te, { children: t.banner }),
8222
8244
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between flex-wrap gap-3", children: [
8223
8245
  t.stats && /* @__PURE__ */ e("div", { className: "flex-1", children: t.stats }),
8224
8246
  t.dateRange && /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: t.dateRange })
8225
8247
  ] }),
8226
- /* @__PURE__ */ e(V, { children: t.filters }),
8227
- /* @__PURE__ */ e(V, { children: t.charts ?? t.primaryChart }),
8248
+ /* @__PURE__ */ e(te, { children: t.filters }),
8249
+ /* @__PURE__ */ e(te, { children: t.charts ?? t.primaryChart }),
8228
8250
  t.secondaryCharts && /* @__PURE__ */ e("div", { className: `grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 ${r}`, children: t.secondaryCharts }),
8229
- /* @__PURE__ */ e(V, { children: t.table ?? t.content }),
8230
- /* @__PURE__ */ e(V, { children: t.footer })
8251
+ /* @__PURE__ */ e(te, { children: t.table ?? t.content }),
8252
+ /* @__PURE__ */ e(te, { children: t.footer })
8231
8253
  ] });
8232
8254
  }
8233
8255
  function ri(t) {
@@ -8329,12 +8351,12 @@ function si({
8329
8351
  }, []);
8330
8352
  const F = ii($), L = Q(
8331
8353
  (E) => {
8332
- const O = $.flatMap((_) => _.items).find((_) => _.id === E.id);
8333
- O && r && r(O), M(!1);
8354
+ const R = $.flatMap((_) => _.items).find((_) => _.id === E.id);
8355
+ R && r && r(R), M(!1);
8334
8356
  },
8335
8357
  [$, r]
8336
8358
  ), I = /* @__PURE__ */ e(
8337
- kt,
8359
+ zt,
8338
8360
  {
8339
8361
  brand: b ? { name: b.brand.name } : { name: "Sellsuki" },
8340
8362
  groups: k ? [{ label: "Loading", items: [] }] : F,
@@ -8395,7 +8417,7 @@ function si({
8395
8417
  ] }) : I
8396
8418
  }
8397
8419
  ),
8398
- W && /* @__PURE__ */ a(ge, { children: [
8420
+ W && /* @__PURE__ */ a(ve, { children: [
8399
8421
  /* @__PURE__ */ e(
8400
8422
  "div",
8401
8423
  {
@@ -8409,7 +8431,7 @@ function si({
8409
8431
  className: "fixed left-0 top-[56px] bottom-0 z-[var(--z-shell-sidebar,90)] w-[240px] bg-card shadow-lg md:hidden overflow-y-auto",
8410
8432
  style: { transition: "transform var(--duration-sidebar, 250ms) var(--easing-default)" },
8411
8433
  children: k ? /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e(tr, { rows: 6 }) }) : /* @__PURE__ */ e(
8412
- kt,
8434
+ zt,
8413
8435
  {
8414
8436
  brand: b ? { name: b.brand.name } : { name: "Sellsuki" },
8415
8437
  groups: F,
@@ -8545,14 +8567,14 @@ export {
8545
8567
  Ao as CardBody,
8546
8568
  Eo as CardFooter,
8547
8569
  Do as CardHeader,
8548
- ot as Checkbox,
8570
+ st as Checkbox,
8549
8571
  gi as CheckboxGroup,
8550
8572
  Fl as ChoiceCard,
8551
8573
  Wl as ChoiceCardGroup,
8552
8574
  Fi as ColorPicker,
8553
8575
  wi as ConfirmDialog,
8554
8576
  Xn as DSButton,
8555
- ot as DSCheckbox,
8577
+ st as DSCheckbox,
8556
8578
  Jn as DSInput,
8557
8579
  vi as DSRadio,
8558
8580
  Si as DSTable,
@@ -8560,7 +8582,7 @@ export {
8560
8582
  yi as DatePicker,
8561
8583
  yl as DateRangePicker,
8562
8584
  wl as DateTimePicker,
8563
- Ro as Divider,
8585
+ Oo as Divider,
8564
8586
  fl as DonutChart,
8565
8587
  Yo as Drawer,
8566
8588
  Zo as Dropdown,
@@ -8598,7 +8620,7 @@ export {
8598
8620
  li as ScaffoldKPIRow,
8599
8621
  ai as ScaffoldSection,
8600
8622
  $i as SearchField,
8601
- kt as Sidebar,
8623
+ zt as Sidebar,
8602
8624
  _r as SidebarAccountSwitcher,
8603
8625
  de as Skeleton,
8604
8626
  Ai as SkeletonCard,
@@ -8621,17 +8643,17 @@ export {
8621
8643
  Br as Tooltip,
8622
8644
  Pr as TopNavbar,
8623
8645
  Hi as TransferList,
8624
- Oi as Tree,
8646
+ Ri as Tree,
8625
8647
  ts as akitaBrandConfig,
8626
8648
  Qi as patonaBrandConfig,
8627
8649
  Ji as sellsukiBrandConfig,
8628
8650
  es as shipmunkBrandConfig,
8629
8651
  Vi as sukispaceBrandConfig,
8630
- De as toast,
8652
+ He as toast,
8631
8653
  Kl as useAppShell,
8632
8654
  Zl as useAppShellFull,
8633
8655
  Xi as useBreadcrumbs,
8634
- Ri as useFormField,
8656
+ Oi as useFormField,
8635
8657
  qi as useNavResolver
8636
8658
  };
8637
8659
  //# sourceMappingURL=sellsuki-ds.js.map