@opencxh/ui-kit 3.137.5 → 3.137.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { clsx as et } from "clsx";
2
- import { jsxs as i, jsx as e, Fragment as ve } from "react/jsx-runtime";
3
- import { VideoOff as tt, User as rt, MicOff as nt, Mic as st, X as we, ChevronDown as Se, ExternalLink as at, Calendar as lt, ChevronLeft as Ee, ChevronRight as ze, ChevronDownIcon as ot, Loader2 as ct, Search as Me, Check as Ie, ChevronUp as it, Ellipsis as dt, FileText as Te, HardDrive as Pe, ArrowLeft as ut, FolderPlus as mt, Upload as ft, Folder as je, Trash2 as ht, Plus as xt, Sparkles as bt, ImageOff as gt, Pencil as pt, ArrowUpRight as vt } from "lucide-react";
2
+ import { jsxs as c, jsx as e, Fragment as ve } from "react/jsx-runtime";
3
+ import { VideoOff as tt, User as rt, MicOff as nt, Mic as st, X as we, ChevronDown as Se, ExternalLink as at, Calendar as lt, ChevronLeft as Ee, ChevronRight as ze, ChevronDownIcon as ot, Loader2 as ct, Search as Me, Check as Pe, ChevronUp as it, Ellipsis as dt, FileText as Te, HardDrive as Ie, ArrowLeft as ut, FolderPlus as mt, Upload as ft, Folder as je, Trash2 as ht, Plus as xt, Sparkles as bt, ImageOff as gt, Pencil as pt, ArrowUpRight as vt } from "lucide-react";
4
4
  import oe, { useRef as se, useEffect as X, forwardRef as xe, useState as O, useLayoutEffect as yt, useMemo as pe, useCallback as he, createContext as Nt, Component as wt } from "react";
5
5
  import kt from "dompurify";
6
6
  import Ct from "react-markdown";
@@ -8,28 +8,28 @@ import St from "remark-gfm";
8
8
  function d(...t) {
9
9
  return et(t);
10
10
  }
11
- function dn(t) {
11
+ function un(t) {
12
12
  return (r, n) => t[r]?.[n] || "";
13
13
  }
14
- function un(t) {
14
+ function mn(t) {
15
15
  return (r) => t[r] || "";
16
16
  }
17
17
  const Oe = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
18
- function mn(t) {
18
+ function fn(t) {
19
19
  let r = 0;
20
20
  for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
21
21
  return Oe[r % Oe.length];
22
22
  }
23
- function fn({ tiles: t, pinned: r, className: n }) {
23
+ function hn({ tiles: t, pinned: r, className: n }) {
24
24
  if (r)
25
- return /* @__PURE__ */ i("div", { className: d("flex flex-col md:flex-row gap-2 h-full min-h-0", n), children: [
25
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col md:flex-row gap-2 h-full min-h-0", n), children: [
26
26
  /* @__PURE__ */ e("div", { className: "flex-1 min-h-0", children: r }),
27
27
  t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((a, l) => /* @__PURE__ */ e("div", { className: "min-w-40 md:min-w-0", children: a }, l)) })
28
28
  ] });
29
29
  const s = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
30
30
  return /* @__PURE__ */ e("div", { className: d("grid gap-2 h-full", s, n), children: t.map((a, l) => /* @__PURE__ */ e("div", { children: a }, l)) });
31
31
  }
32
- function hn({
32
+ function xn({
33
33
  name: t,
34
34
  avatarUrl: r,
35
35
  muted: n,
@@ -39,7 +39,7 @@ function hn({
39
39
  className: o,
40
40
  fill: m
41
41
  }) {
42
- return /* @__PURE__ */ i(
42
+ return /* @__PURE__ */ c(
43
43
  "div",
44
44
  {
45
45
  className: d(
@@ -50,7 +50,7 @@ function hn({
50
50
  ),
51
51
  children: [
52
52
  a && l ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: l }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: r ? /* @__PURE__ */ e("img", { src: r, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-video-surface-strong flex items-center justify-center", children: a ? /* @__PURE__ */ e(tt, { className: "w-8 h-8" }) : /* @__PURE__ */ e(rt, { className: "w-8 h-8" }) }) }),
53
- /* @__PURE__ */ i("div", { className: "absolute bottom-2 left-2 flex items-center gap-1.5 px-2 py-1 rounded bg-video-overlay text-white text-xs", children: [
53
+ /* @__PURE__ */ c("div", { className: "absolute bottom-2 left-2 flex items-center gap-1.5 px-2 py-1 rounded bg-video-overlay text-white text-xs", children: [
54
54
  n ? /* @__PURE__ */ e(nt, { className: "w-3 h-3" }) : /* @__PURE__ */ e(st, { className: "w-3 h-3" }),
55
55
  /* @__PURE__ */ e("span", { className: "truncate max-w-35", children: t })
56
56
  ] })
@@ -58,7 +58,7 @@ function hn({
58
58
  }
59
59
  );
60
60
  }
61
- function xn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
61
+ function bn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
62
62
  const a = se(null);
63
63
  return X(() => {
64
64
  if (!r || !a.current) return;
@@ -123,7 +123,7 @@ const Et = {
123
123
  ...h
124
124
  }, b) => {
125
125
  const v = x || s;
126
- return /* @__PURE__ */ i(
126
+ return /* @__PURE__ */ c(
127
127
  "button",
128
128
  {
129
129
  ref: b,
@@ -165,7 +165,7 @@ const Et = {
165
165
  }
166
166
  );
167
167
  ae.displayName = "Button";
168
- const bn = ({
168
+ const gn = ({
169
169
  children: t,
170
170
  size: r = "md",
171
171
  orientation: n = "horizontal",
@@ -288,7 +288,7 @@ const Ve = ({
288
288
  const v = (g) => {
289
289
  g.stopPropagation(), !o && y((f) => !f);
290
290
  }, k = () => y(!1);
291
- return /* @__PURE__ */ i("div", { ref: x, className: d("relative inline-flex", a), children: [
291
+ return /* @__PURE__ */ c("div", { ref: x, className: d("relative inline-flex", a), children: [
292
292
  /* @__PURE__ */ e(
293
293
  "button",
294
294
  {
@@ -358,7 +358,7 @@ function Lt({
358
358
  title: b,
359
359
  className: v
360
360
  }) {
361
- const k = l && !!y, g = s === "pill" ? "rounded-full" : "rounded-md", f = _t({ active: l, tone: n, shape: s, size: a, className: v }), $ = /* @__PURE__ */ i(ve, { children: [
361
+ const k = l && !!y, g = s === "pill" ? "rounded-full" : "rounded-md", f = _t({ active: l, tone: n, shape: s, size: a, className: v }), $ = /* @__PURE__ */ c(ve, { children: [
362
362
  r,
363
363
  t,
364
364
  o && /* @__PURE__ */ e(Q, { icon: Se, size: "xs" })
@@ -372,7 +372,7 @@ function Lt({
372
372
  children: /* @__PURE__ */ e(Q, { icon: we, size: "xs" })
373
373
  }
374
374
  );
375
- return m ? /* @__PURE__ */ i("span", { className: f, title: b, children: [
375
+ return m ? /* @__PURE__ */ c("span", { className: f, title: b, children: [
376
376
  /* @__PURE__ */ e(
377
377
  Ve,
378
378
  {
@@ -384,18 +384,18 @@ function Lt({
384
384
  }
385
385
  ),
386
386
  q
387
- ] }) : k ? /* @__PURE__ */ i("span", { className: f, title: b, children: [
387
+ ] }) : k ? /* @__PURE__ */ c("span", { className: f, title: b, children: [
388
388
  /* @__PURE__ */ e("button", { type: "button", onClick: h, className: C, children: $ }),
389
389
  q
390
390
  ] }) : /* @__PURE__ */ e("button", { type: "button", title: b, onClick: h, className: d(f, C), children: $ });
391
391
  }
392
- const It = {
392
+ const Pt = {
393
393
  xs: "text-xs",
394
394
  sm: "text-sm",
395
395
  md: "text-base",
396
396
  lg: "text-md",
397
397
  xl: "text-lg"
398
- }, Pt = {
398
+ }, It = {
399
399
  primary: "text-text hover:text-info-fg hover:underline",
400
400
  info: "text-info-fg hover:underline",
401
401
  secondary: "text-text-muted hover:text-text",
@@ -413,7 +413,7 @@ const It = {
413
413
  warning: "bg-warning-soft",
414
414
  error: "bg-danger-soft",
415
415
  info: "bg-info-soft"
416
- }, gn = ({
416
+ }, pn = ({
417
417
  variant: t = "default",
418
418
  size: r = "md",
419
419
  color: n = "primary",
@@ -430,8 +430,8 @@ const It = {
430
430
  "inline-flex items-center gap-1 underline-offset-2",
431
431
  "transition-colors duration-fast ease-out",
432
432
  "focus-visible:outline-none focus-visible:focus-ring",
433
- It[r],
434
- !s && Pt[n],
433
+ Pt[r],
434
+ !s && It[n],
435
435
  t === "subtle" && "no-underline opacity-70 hover:opacity-100",
436
436
  t === "underline" && "underline decoration-1 hover:decoration-2",
437
437
  t === "button" && [
@@ -447,7 +447,7 @@ const It = {
447
447
  rel: h ? "noopener noreferrer" : y,
448
448
  "aria-disabled": s || void 0
449
449
  };
450
- return /* @__PURE__ */ i("a", { className: b, ...v, children: [
450
+ return /* @__PURE__ */ c("a", { className: b, ...v, children: [
451
451
  o,
452
452
  h && /* @__PURE__ */ e(at, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
453
453
  ] });
@@ -522,7 +522,7 @@ function qe({
522
522
  menuLabel: y = "More options"
523
523
  }) {
524
524
  const x = o || m, h = l.length > 0;
525
- return /* @__PURE__ */ i("div", { className: d("inline-flex items-center", n === "primary" && "gap-0.5"), children: [
525
+ return /* @__PURE__ */ c("div", { className: d("inline-flex items-center", n === "primary" && "gap-0.5"), children: [
526
526
  /* @__PURE__ */ e(
527
527
  ae,
528
528
  {
@@ -557,7 +557,7 @@ function qe({
557
557
  children: /* @__PURE__ */ e(Se, { className: "size-icon-md" })
558
558
  }
559
559
  ),
560
- children: (b) => /* @__PURE__ */ e(ve, { children: l.map((v) => /* @__PURE__ */ i(
560
+ children: (b) => /* @__PURE__ */ e(ve, { children: l.map((v) => /* @__PURE__ */ c(
561
561
  "button",
562
562
  {
563
563
  type: "button",
@@ -617,8 +617,8 @@ const Ht = {
617
617
  );
618
618
  return oe.useEffect(() => {
619
619
  k.current && (k.current.indeterminate = a);
620
- }, [a]), /* @__PURE__ */ i("div", { className: d("flex flex-col", l), children: [
621
- /* @__PURE__ */ i("div", { className: d("flex items-center gap-3", Vt[s]), children: [
620
+ }, [a]), /* @__PURE__ */ c("div", { className: d("flex flex-col", l), children: [
621
+ /* @__PURE__ */ c("div", { className: d("flex items-center gap-3", Vt[s]), children: [
622
622
  /* @__PURE__ */ e(
623
623
  "input",
624
624
  {
@@ -642,7 +642,7 @@ const Ht = {
642
642
  ...y
643
643
  }
644
644
  ),
645
- t && /* @__PURE__ */ i("div", { className: "flex-1", children: [
645
+ t && /* @__PURE__ */ c("div", { className: "flex-1", children: [
646
646
  /* @__PURE__ */ e(
647
647
  "label",
648
648
  {
@@ -679,37 +679,37 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
679
679
  }, h) => {
680
680
  const [b, v] = O(!1), [k, g] = O(() => t || /* @__PURE__ */ new Date()), f = se(null), $ = se(null), C = $e(b, $);
681
681
  X(() => {
682
- const c = (S) => {
682
+ const i = (S) => {
683
683
  f.current && !f.current.contains(S.target) && v(!1);
684
684
  };
685
- return b && document.addEventListener("mousedown", c), () => {
686
- document.removeEventListener("mousedown", c);
685
+ return b && document.addEventListener("mousedown", i), () => {
686
+ document.removeEventListener("mousedown", i);
687
687
  };
688
688
  }, [b]);
689
- const q = (c) => {
690
- if (!c) return "";
691
- const S = c.getDate().toString().padStart(2, "0"), p = (c.getMonth() + 1).toString().padStart(2, "0"), _ = c.getFullYear(), N = y === "dd/MM/yyyy" ? `${S}/${p}/${_}` : y === "yyyy-MM-dd" ? `${_}-${p}-${S}` : `${p}/${S}/${_}`;
692
- return x ? `${N} ${T(c)}` : N;
693
- }, T = (c) => `${c.getHours().toString().padStart(2, "0")}:${c.getMinutes().toString().padStart(2, "0")}`, G = (c) => {
694
- const [S, p] = c.split(":").map(Number);
689
+ const q = (i) => {
690
+ if (!i) return "";
691
+ const S = i.getDate().toString().padStart(2, "0"), p = (i.getMonth() + 1).toString().padStart(2, "0"), _ = i.getFullYear(), N = y === "dd/MM/yyyy" ? `${S}/${p}/${_}` : y === "yyyy-MM-dd" ? `${_}-${p}-${S}` : `${p}/${S}/${_}`;
692
+ return x ? `${N} ${T(i)}` : N;
693
+ }, T = (i) => `${i.getHours().toString().padStart(2, "0")}:${i.getMinutes().toString().padStart(2, "0")}`, G = (i) => {
694
+ const [S, p] = i.split(":").map(Number);
695
695
  if (Number.isNaN(S) || Number.isNaN(p)) return;
696
696
  const _ = t ? new Date(t) : /* @__PURE__ */ new Date();
697
697
  _.setHours(S, p, 0, 0), r?.(_);
698
698
  }, V = () => {
699
- const c = k.getFullYear(), S = k.getMonth(), p = new Date(c, S, 1), _ = new Date(p);
699
+ const i = k.getFullYear(), S = k.getMonth(), p = new Date(i, S, 1), _ = new Date(p);
700
700
  _.setDate(_.getDate() - p.getDay());
701
701
  const N = [], U = new Date(_);
702
702
  for (let re = 0; re < 42; re++)
703
703
  N.push(new Date(U)), U.setDate(U.getDate() + 1);
704
704
  return N;
705
- }, I = (c) => {
706
- if (c.getMonth() === k.getMonth() && !(m && c < m) && !(u && c > u)) {
705
+ }, P = (i) => {
706
+ if (i.getMonth() === k.getMonth() && !(m && i < m) && !(u && i > u)) {
707
707
  if (x) {
708
- const p = new Date(c);
708
+ const p = new Date(i);
709
709
  p.setHours(t?.getHours() ?? 0, t?.getMinutes() ?? 0, 0, 0), r?.(p);
710
710
  return;
711
711
  }
712
- r?.(c), v(!1);
712
+ r?.(i), v(!1);
713
713
  }
714
714
  }, H = () => {
715
715
  g(new Date(k.getFullYear(), k.getMonth() - 1, 1));
@@ -744,8 +744,8 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
744
744
  "November",
745
745
  "December"
746
746
  ];
747
- return /* @__PURE__ */ i("div", { ref: f, className: "relative", children: [
748
- /* @__PURE__ */ i("div", { ref: $, className: "relative", children: [
747
+ return /* @__PURE__ */ c("div", { ref: f, className: "relative", children: [
748
+ /* @__PURE__ */ c("div", { ref: $, className: "relative", children: [
749
749
  /* @__PURE__ */ e(
750
750
  "input",
751
751
  {
@@ -771,8 +771,8 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
771
771
  }
772
772
  )
773
773
  ] }),
774
- b && /* @__PURE__ */ i("div", { style: C, className: "fixed z-overlay overflow-auto rounded-lg border border-border bg-surface p-4 shadow-overlay min-w-panel", children: [
775
- /* @__PURE__ */ i("div", { className: "flex items-center justify-between mb-4", children: [
774
+ b && /* @__PURE__ */ c("div", { style: C, className: "fixed z-overlay overflow-auto rounded-lg border border-border bg-surface p-4 shadow-overlay min-w-panel", children: [
775
+ /* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
776
776
  /* @__PURE__ */ e(
777
777
  "button",
778
778
  {
@@ -781,7 +781,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
781
781
  children: /* @__PURE__ */ e(Wt, {})
782
782
  }
783
783
  ),
784
- /* @__PURE__ */ i("h3", { className: "text-sm font-medium text-text", children: [
784
+ /* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
785
785
  w[k.getMonth()],
786
786
  " ",
787
787
  k.getFullYear()
@@ -795,13 +795,13 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
795
795
  }
796
796
  )
797
797
  ] }),
798
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((c) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: c }, c)) }),
799
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: ce.map((c, S) => {
800
- const p = c.getMonth() === k.getMonth(), _ = t && c.toDateString() === t.toDateString(), N = c.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), U = !p || m && c < m || u && c > u;
798
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((i) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: i }, i)) }),
799
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: ce.map((i, S) => {
800
+ const p = i.getMonth() === k.getMonth(), _ = t && i.toDateString() === t.toDateString(), N = i.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), U = !p || m && i < m || u && i > u;
801
801
  return /* @__PURE__ */ e(
802
802
  "button",
803
803
  {
804
- onClick: () => !U && I(c),
804
+ onClick: () => !U && P(i),
805
805
  disabled: U,
806
806
  className: d(
807
807
  "w-8 h-8 text-sm rounded transition-colors duration-fast",
@@ -812,12 +812,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
812
812
  "text-text-muted cursor-not-allowed": U
813
813
  }
814
814
  ),
815
- children: c.getDate()
815
+ children: i.getDate()
816
816
  },
817
817
  S
818
818
  );
819
819
  }) }),
820
- x && /* @__PURE__ */ i("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-3", children: [
820
+ x && /* @__PURE__ */ c("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-3", children: [
821
821
  /* @__PURE__ */ e("label", { htmlFor: "datepicker-time", className: "text-sm text-text-muted", children: "Tijd" }),
822
822
  /* @__PURE__ */ e(
823
823
  "input",
@@ -825,12 +825,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
825
825
  id: "datepicker-time",
826
826
  type: "time",
827
827
  value: t ? T(t) : "",
828
- onChange: (c) => G(c.target.value),
828
+ onChange: (i) => G(i.target.value),
829
829
  className: "h-control-sm rounded-md border border-border bg-surface-input px-2 text-sm text-text focus-visible:outline-none focus-visible:focus-ring"
830
830
  }
831
831
  )
832
832
  ] }),
833
- /* @__PURE__ */ i("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-border", children: [
833
+ /* @__PURE__ */ c("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-border", children: [
834
834
  /* @__PURE__ */ e(
835
835
  "button",
836
836
  {
@@ -877,10 +877,10 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
877
877
  onCreateOption: $,
878
878
  ...C
879
879
  }, q) => {
880
- const T = h || `select-${Math.random().toString(36).substr(2, 9)}`, G = !!n, [V, I] = oe.useState(!1), [H, te] = oe.useState(""), J = oe.useRef(null), K = oe.useRef(null), ce = $e(V, K, { matchWidth: !0 }), [w, c] = oe.useState(o);
880
+ const T = h || `select-${Math.random().toString(36).substr(2, 9)}`, G = !!n, [V, P] = oe.useState(!1), [H, te] = oe.useState(""), J = oe.useRef(null), K = oe.useRef(null), ce = $e(V, K, { matchWidth: !0 }), [w, i] = oe.useState(o);
881
881
  oe.useImperativeHandle(q, () => J.current), oe.useEffect(() => {
882
882
  const D = (A) => {
883
- J.current && !J.current.contains(A.target) && I(!1);
883
+ J.current && !J.current.contains(A.target) && P(!1);
884
884
  };
885
885
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
886
886
  }, []);
@@ -900,7 +900,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
900
900
  [S]
901
901
  );
902
902
  oe.useEffect(() => {
903
- c((D) => {
903
+ i((D) => {
904
904
  const A = [...o];
905
905
  return D.forEach((z) => {
906
906
  !S(A, z.value) && !S(A, z.label) && A.push(z);
@@ -912,7 +912,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
912
912
  const A = Array.isArray(k) ? k : [], z = A.includes(D) ? A.filter((F) => F !== D) : [...A, D];
913
913
  g?.(z);
914
914
  } else
915
- g?.(D), I(!1), te("");
915
+ g?.(D), P(!1), te("");
916
916
  }, N = v ? null : w.find((D) => D.value === k), U = v ? w.filter(
917
917
  (D) => Array.isArray(k) && k.includes(D.value)
918
918
  ) : [], re = b && H ? w.filter(
@@ -925,12 +925,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
925
925
  label: A
926
926
  };
927
927
  if (S(w, z.value) || S(w, z.label)) {
928
- _(z.value), te(""), v || I(!1);
928
+ _(z.value), te(""), v || P(!1);
929
929
  return;
930
930
  }
931
- c((F) => [...F, z]), _(z.value), te(""), v || I(!1);
932
- }, P = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : m || "Select options" : N?.label || m || "Select an option";
933
- return /* @__PURE__ */ i(
931
+ i((F) => [...F, z]), _(z.value), te(""), v || P(!1);
932
+ }, I = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : m || "Select options" : N?.label || m || "Select an option";
933
+ return /* @__PURE__ */ c(
934
934
  "div",
935
935
  {
936
936
  ref: J,
@@ -945,7 +945,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
945
945
  "label",
946
946
  {
947
947
  htmlFor: T,
948
- onClick: () => I(!V),
948
+ onClick: () => P(!V),
949
949
  className: d(
950
950
  "block text-xs font-semibold uppercase tracking-label mb-1.5",
951
951
  G ? "text-danger-fg" : "text-text-muted",
@@ -954,15 +954,15 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
954
954
  children: t
955
955
  }
956
956
  ),
957
- /* @__PURE__ */ i("div", { className: "relative", children: [
958
- /* @__PURE__ */ i(
957
+ /* @__PURE__ */ c("div", { className: "relative", children: [
958
+ /* @__PURE__ */ c(
959
959
  "button",
960
960
  {
961
961
  ref: K,
962
962
  type: "button",
963
963
  id: T,
964
964
  disabled: l,
965
- onClick: () => I(!V),
965
+ onClick: () => P(!V),
966
966
  className: d(
967
967
  "flex w-full items-center justify-between gap-2 rounded-tile border transition-colors duration-fast text-left",
968
968
  "focus-visible:outline-none focus-visible:focus-ring",
@@ -973,7 +973,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
973
973
  x
974
974
  ),
975
975
  children: [
976
- /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: P() }),
976
+ /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: I() }),
977
977
  /* @__PURE__ */ e(
978
978
  ot,
979
979
  {
@@ -987,7 +987,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
987
987
  ]
988
988
  }
989
989
  ),
990
- V && /* @__PURE__ */ i("div", { style: ce, className: "fixed z-overlay flex flex-col overflow-hidden rounded-lg border border-border bg-surface shadow-overlay", children: [
990
+ V && /* @__PURE__ */ c("div", { style: ce, className: "fixed z-overlay flex flex-col overflow-hidden rounded-lg border border-border bg-surface shadow-overlay", children: [
991
991
  b && /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e(
992
992
  "input",
993
993
  {
@@ -1004,7 +1004,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1004
1004
  )
1005
1005
  }
1006
1006
  ) }),
1007
- ee && /* @__PURE__ */ i(
1007
+ ee && /* @__PURE__ */ c(
1008
1008
  "div",
1009
1009
  {
1010
1010
  className: d(
@@ -1019,13 +1019,13 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1019
1019
  ]
1020
1020
  }
1021
1021
  ),
1022
- /* @__PURE__ */ i("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
1022
+ /* @__PURE__ */ c("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
1023
1023
  m && !v && /* @__PURE__ */ e(
1024
1024
  "li",
1025
1025
  {
1026
1026
  className: "cursor-pointer px-3 py-1.5 text-sm text-text-muted hover:bg-surface-hover",
1027
1027
  onClick: () => {
1028
- g?.(""), I(!1);
1028
+ g?.(""), P(!1);
1029
1029
  },
1030
1030
  children: m
1031
1031
  }
@@ -1042,7 +1042,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1042
1042
  D.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover",
1043
1043
  A && "bg-accent-soft text-accent font-semibold"
1044
1044
  ),
1045
- children: /* @__PURE__ */ i("div", { className: "flex items-center", children: [
1045
+ children: /* @__PURE__ */ c("div", { className: "flex items-center", children: [
1046
1046
  v && /* @__PURE__ */ e(
1047
1047
  "input",
1048
1048
  {
@@ -1099,7 +1099,7 @@ const Jt = {
1099
1099
  ...b
1100
1100
  }, v) => {
1101
1101
  const k = oe.useId(), g = h || `textfield-${k}`, f = !!n, $ = n || r ? `${g}-description` : void 0;
1102
- return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full", u), children: [
1102
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col", a && "w-full", u), children: [
1103
1103
  t && /* @__PURE__ */ e(
1104
1104
  "label",
1105
1105
  {
@@ -1112,7 +1112,7 @@ const Jt = {
1112
1112
  children: t
1113
1113
  }
1114
1114
  ),
1115
- /* @__PURE__ */ i("div", { className: "relative", children: [
1115
+ /* @__PURE__ */ c("div", { className: "relative", children: [
1116
1116
  l && /* @__PURE__ */ e("span", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-text-muted", children: l }),
1117
1117
  /* @__PURE__ */ e(
1118
1118
  "input",
@@ -1173,7 +1173,7 @@ function Yt({
1173
1173
  };
1174
1174
  }, []);
1175
1175
  const x = t ?? {};
1176
- return /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
1176
+ return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
1177
1177
  /* @__PURE__ */ e(
1178
1178
  Ce,
1179
1179
  {
@@ -1229,23 +1229,23 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1229
1229
  onChange: $,
1230
1230
  ...C
1231
1231
  }, q) => {
1232
- const T = x || `searchfield-${Math.random().toString(36).substr(2, 9)}`, G = !!n, V = se(null), I = se(null), [H, te] = O(f || ""), [J, K] = O(!1), [ce, w] = O(!1), [c, S] = O(!1);
1232
+ const T = x || `searchfield-${Math.random().toString(36).substr(2, 9)}`, G = !!n, V = se(null), P = se(null), [H, te] = O(f || ""), [J, K] = O(!1), [ce, w] = O(!1), [i, S] = O(!1);
1233
1233
  X(() => {
1234
1234
  f !== void 0 && te(f);
1235
1235
  }, [f]);
1236
1236
  const p = pe(() => {
1237
- if (g && !c || !H) return h;
1238
- const P = String(H).toLowerCase();
1237
+ if (g && !i || !H) return h;
1238
+ const I = String(H).toLowerCase();
1239
1239
  return h.filter(
1240
- (D) => String(D.label).toLowerCase().includes(P)
1240
+ (D) => String(D.label).toLowerCase().includes(I)
1241
1241
  );
1242
- }, [H, h, g, c]);
1242
+ }, [H, h, g, i]);
1243
1243
  X(() => {
1244
1244
  if (!b || !H) {
1245
1245
  w(!1);
1246
1246
  return;
1247
1247
  }
1248
- const P = setTimeout(async () => {
1248
+ const I = setTimeout(async () => {
1249
1249
  w(!0);
1250
1250
  try {
1251
1251
  await b(String(H));
@@ -1256,23 +1256,23 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1256
1256
  }
1257
1257
  }, k);
1258
1258
  return () => {
1259
- clearTimeout(P), w(!1);
1259
+ clearTimeout(I), w(!1);
1260
1260
  };
1261
1261
  }, [H, k, b]), X(() => {
1262
- const P = (D) => {
1262
+ const I = (D) => {
1263
1263
  V.current && !V.current.contains(D.target) && K(!1);
1264
1264
  };
1265
- return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
1265
+ return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
1266
1266
  }, []);
1267
- const _ = (P) => {
1268
- const D = P.target.value;
1269
- te(D), K(!0), S(!0), $ && $(P);
1270
- }, N = (P) => {
1271
- te(P.label), K(!1), S(!1), v && v(P.value);
1267
+ const _ = (I) => {
1268
+ const D = I.target.value;
1269
+ te(D), K(!0), S(!0), $ && $(I);
1270
+ }, N = (I) => {
1271
+ te(I.label), K(!1), S(!1), v && v(I.value);
1272
1272
  }, U = () => {
1273
1273
  (h.length > 0 || b) && (K(!0), S(!1));
1274
- }, re = o || ce, ee = J && (p.length > 0 || re), Y = pe(() => q || I, [q]);
1275
- return /* @__PURE__ */ i(
1274
+ }, re = o || ce, ee = J && (p.length > 0 || re), Y = pe(() => q || P, [q]);
1275
+ return /* @__PURE__ */ c(
1276
1276
  "div",
1277
1277
  {
1278
1278
  className: ge(
@@ -1295,7 +1295,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1295
1295
  children: t
1296
1296
  }
1297
1297
  ),
1298
- /* @__PURE__ */ i("div", { className: "relative", children: [
1298
+ /* @__PURE__ */ c("div", { className: "relative", children: [
1299
1299
  l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: ge("text-text-muted", _e[s]), children: l }) }),
1300
1300
  /* @__PURE__ */ e(
1301
1301
  "input",
@@ -1343,7 +1343,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1343
1343
  J ? "rotate-180" : "rotate-0"
1344
1344
  ),
1345
1345
  onClick: () => {
1346
- K((P) => (P || S(!1), !P));
1346
+ K((I) => (I || S(!1), !I));
1347
1347
  }
1348
1348
  }
1349
1349
  )
@@ -1354,16 +1354,16 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1354
1354
  {
1355
1355
  className: "absolute z-10 mt-1 w-full bg-surface border border-border rounded-lg shadow-lg max-h-60 overflow-auto top-full",
1356
1356
  role: "listbox",
1357
- children: p.length > 0 ? p.map((P) => /* @__PURE__ */ e(
1357
+ children: p.length > 0 ? p.map((I) => /* @__PURE__ */ e(
1358
1358
  "li",
1359
1359
  {
1360
1360
  className: "px-4 py-2 cursor-pointer text-text hover:bg-accent-soft hover:text-accent transition-colors",
1361
- onClick: () => N(P),
1361
+ onClick: () => N(I),
1362
1362
  role: "option",
1363
- "aria-selected": H === P.label,
1364
- children: P.label
1363
+ "aria-selected": H === I.label,
1364
+ children: I.label
1365
1365
  },
1366
- P.value
1366
+ I.value
1367
1367
  )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-text-muted", children: re || o ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
1368
1368
  }
1369
1369
  ),
@@ -1377,7 +1377,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1377
1377
  children: n || r
1378
1378
  }
1379
1379
  ),
1380
- b && /* @__PURE__ */ i("p", { className: "mt-2 text-xs text-success-fg", children: [
1380
+ b && /* @__PURE__ */ c("p", { className: "mt-2 text-xs text-success-fg", children: [
1381
1381
  "Huidige zoekterm (niet-gedebounced): ",
1382
1382
  String(H)
1383
1383
  ] })
@@ -1398,7 +1398,7 @@ const Ge = xe(
1398
1398
  className: o,
1399
1399
  disabled: m,
1400
1400
  ...u
1401
- }, y) => /* @__PURE__ */ i(
1401
+ }, y) => /* @__PURE__ */ c(
1402
1402
  "div",
1403
1403
  {
1404
1404
  className: d(
@@ -1476,7 +1476,7 @@ const tr = xe(
1476
1476
  )
1477
1477
  }
1478
1478
  );
1479
- return /* @__PURE__ */ i(
1479
+ return /* @__PURE__ */ c(
1480
1480
  "label",
1481
1481
  {
1482
1482
  className: d(
@@ -1514,15 +1514,15 @@ function rr({
1514
1514
  tableRows: a = 8
1515
1515
  }) {
1516
1516
  const l = ({ children: o }) => t === "inline" ? /* @__PURE__ */ e(ve, { children: o }) : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: o });
1517
- return r ? /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e("div", { className: "w-full max-w-6xl mx-auto animate-pulse", children: r }) }) : /* @__PURE__ */ e(l, { children: /* @__PURE__ */ i("div", { className: "w-full mx-auto space-y-6 animate-pulse", children: [
1518
- !n && /* @__PURE__ */ i(ve, { children: [
1517
+ return r ? /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e("div", { className: "w-full max-w-6xl mx-auto animate-pulse", children: r }) }) : /* @__PURE__ */ e(l, { children: /* @__PURE__ */ c("div", { className: "w-full mx-auto space-y-6 animate-pulse", children: [
1518
+ !n && /* @__PURE__ */ c(ve, { children: [
1519
1519
  /* @__PURE__ */ e("div", { className: "h-6 w-1/4 rounded-sm bg-surface-hover" }),
1520
- /* @__PURE__ */ i("div", { className: "space-y-2", children: [
1520
+ /* @__PURE__ */ c("div", { className: "space-y-2", children: [
1521
1521
  /* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded-sm bg-surface-hover" }),
1522
1522
  /* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded-sm bg-surface-hover" })
1523
1523
  ] })
1524
1524
  ] }),
1525
- n && /* @__PURE__ */ i("div", { className: "rounded-lg overflow-hidden", children: [
1525
+ n && /* @__PURE__ */ c("div", { className: "rounded-lg overflow-hidden", children: [
1526
1526
  /* @__PURE__ */ e(
1527
1527
  "div",
1528
1528
  {
@@ -1572,35 +1572,35 @@ const nr = ({
1572
1572
  X(() => {
1573
1573
  y && G()[0]?.focus();
1574
1574
  }, [y]);
1575
- const V = (c) => {
1576
- if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key)) return;
1575
+ const V = (i) => {
1576
+ if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
1577
1577
  const p = G();
1578
1578
  if (p.length === 0) return;
1579
- c.preventDefault();
1580
- const _ = p.indexOf(document.activeElement), N = c.key === "Home" ? 0 : c.key === "End" ? p.length - 1 : c.key === "ArrowDown" ? (_ + 1) % p.length : (_ - 1 + p.length) % p.length;
1579
+ i.preventDefault();
1580
+ const _ = p.indexOf(document.activeElement), N = i.key === "Home" ? 0 : i.key === "End" ? p.length - 1 : i.key === "ArrowDown" ? (_ + 1) % p.length : (_ - 1 + p.length) % p.length;
1581
1581
  p[N]?.focus();
1582
1582
  };
1583
1583
  X(() => {
1584
- const c = (S) => {
1584
+ const i = (S) => {
1585
1585
  g.current && (!g.current.contains(S.target) || $.current && !$.current.contains(S.target)) && (x(!1), b(null), T.current && (clearTimeout(T.current), T.current = null));
1586
1586
  };
1587
- return y && document.addEventListener("mousedown", c), () => {
1588
- document.removeEventListener("mousedown", c);
1587
+ return y && document.addEventListener("mousedown", i), () => {
1588
+ document.removeEventListener("mousedown", i);
1589
1589
  };
1590
1590
  }, [y]), X(() => {
1591
- const c = (S) => {
1591
+ const i = (S) => {
1592
1592
  S.key === "Escape" && (x(!1), b(null), f.current?.focus(), T.current && (clearTimeout(T.current), T.current = null));
1593
1593
  };
1594
- return y && document.addEventListener("keydown", c), () => {
1595
- document.removeEventListener("keydown", c);
1594
+ return y && document.addEventListener("keydown", i), () => {
1595
+ document.removeEventListener("keydown", i);
1596
1596
  };
1597
1597
  }, [y]), X(() => {
1598
1598
  if (h && g.current) {
1599
- const c = g.current.querySelector(
1599
+ const i = g.current.querySelector(
1600
1600
  `[data-option-value="${h}"]`
1601
1601
  );
1602
- if (c) {
1603
- const S = c.getBoundingClientRect();
1602
+ if (i) {
1603
+ const S = i.getBoundingClientRect();
1604
1604
  k({
1605
1605
  top: S.top,
1606
1606
  left: S.right + 8
@@ -1610,18 +1610,18 @@ const nr = ({
1610
1610
  }, [h]), X(() => () => {
1611
1611
  T.current && clearTimeout(T.current);
1612
1612
  }, []);
1613
- const I = (c) => {
1614
- c.stopPropagation(), !l && (x(!y), b(null), T.current && (clearTimeout(T.current), T.current = null));
1615
- }, H = (c, S, p) => {
1616
- c.stopPropagation(), !S.disabled && !S.divider && (!S.children || S.children.length === 0) && (s?.(S.value, p), x(!1), b(null));
1617
- }, te = (c) => {
1618
- T.current && (clearTimeout(T.current), T.current = null), c.children && c.children.length > 0 ? b(c.value) : b(null);
1619
- }, J = (c) => {
1620
- c.children && c.children.length > 0 ? T.current = setTimeout(() => {
1613
+ const P = (i) => {
1614
+ i.stopPropagation(), !l && (x(!y), b(null), T.current && (clearTimeout(T.current), T.current = null));
1615
+ }, H = (i, S, p) => {
1616
+ i.stopPropagation(), !S.disabled && !S.divider && (!S.children || S.children.length === 0) && (s?.(S.value, p), x(!1), b(null));
1617
+ }, te = (i) => {
1618
+ T.current && (clearTimeout(T.current), T.current = null), i.children && i.children.length > 0 ? b(i.value) : b(null);
1619
+ }, J = (i) => {
1620
+ i.children && i.children.length > 0 ? T.current = setTimeout(() => {
1621
1621
  b(null);
1622
1622
  }, 150) : b(null);
1623
- }, K = (c, S, p) => {
1624
- c.stopPropagation(), !S.disabled && !S.divider && (s?.(S.value, p), x(!1), b(null));
1623
+ }, K = (i, S, p) => {
1624
+ i.stopPropagation(), !S.disabled && !S.divider && (s?.(S.value, p), x(!1), b(null));
1625
1625
  }, ce = d(
1626
1626
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
1627
1627
  "max-h-60 overflow-auto"
@@ -1629,7 +1629,7 @@ const nr = ({
1629
1629
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
1630
1630
  "max-h-60 overflow-auto"
1631
1631
  );
1632
- return /* @__PURE__ */ i(
1632
+ return /* @__PURE__ */ c(
1633
1633
  "div",
1634
1634
  {
1635
1635
  ref: g,
@@ -1642,7 +1642,7 @@ const nr = ({
1642
1642
  "button",
1643
1643
  {
1644
1644
  ref: f,
1645
- onClick: I,
1645
+ onClick: P,
1646
1646
  disabled: l,
1647
1647
  "aria-haspopup": "menu",
1648
1648
  "aria-expanded": y,
@@ -1652,10 +1652,10 @@ const nr = ({
1652
1652
  children: t
1653
1653
  }
1654
1654
  ),
1655
- y && /* @__PURE__ */ e("div", { ref: C, className: ce, style: q, onKeyDown: V, children: /* @__PURE__ */ i("div", { className: "p-2", role: "menu", children: [
1655
+ y && /* @__PURE__ */ e("div", { ref: C, className: ce, style: q, onKeyDown: V, children: /* @__PURE__ */ c("div", { className: "p-2", role: "menu", children: [
1656
1656
  u && (typeof u == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted uppercase tracking-label px-3 py-2", children: u }) : u),
1657
- r.map((c, S) => {
1658
- if (c.divider)
1657
+ r.map((i, S) => {
1658
+ if (i.divider)
1659
1659
  return /* @__PURE__ */ e(
1660
1660
  "div",
1661
1661
  {
@@ -1663,35 +1663,35 @@ const nr = ({
1663
1663
  },
1664
1664
  `divider-${S}`
1665
1665
  );
1666
- const p = c.children && c.children.length > 0, _ = h === c.value;
1667
- return /* @__PURE__ */ i("div", { className: "relative group", children: [
1668
- /* @__PURE__ */ i(
1666
+ const p = i.children && i.children.length > 0, _ = h === i.value;
1667
+ return /* @__PURE__ */ c("div", { className: "relative group", children: [
1668
+ /* @__PURE__ */ c(
1669
1669
  "button",
1670
1670
  {
1671
- "data-option-value": c.value,
1671
+ "data-option-value": i.value,
1672
1672
  role: "menuitem",
1673
1673
  "aria-haspopup": p ? "menu" : void 0,
1674
- onClick: (N) => H(N, c),
1675
- onMouseEnter: () => te(c),
1676
- onMouseLeave: () => J(c),
1677
- disabled: c.disabled,
1674
+ onClick: (N) => H(N, i),
1675
+ onMouseEnter: () => te(i),
1676
+ onMouseLeave: () => J(i),
1677
+ disabled: i.disabled,
1678
1678
  className: d(
1679
1679
  "flex w-full items-center justify-between rounded-md px-3 py-1.5 text-sm text-text transition-colors duration-fast ease-out hover:bg-surface-hover focus-visible:outline-none focus-visible:focus-ring",
1680
1680
  {
1681
- "opacity-50 cursor-not-allowed": c.disabled,
1681
+ "opacity-50 cursor-not-allowed": i.disabled,
1682
1682
  "bg-surface-hover": _ && p
1683
1683
  }
1684
1684
  ),
1685
1685
  children: [
1686
- /* @__PURE__ */ i("div", { className: "flex items-center space-x-2 min-w-0", children: [
1687
- c.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: c.icon }),
1688
- /* @__PURE__ */ i("div", { className: "flex flex-col items-start min-w-0", children: [
1689
- /* @__PURE__ */ e("span", { className: "font-base truncate", children: c.label }),
1690
- c.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: c.description })
1686
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
1687
+ i.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: i.icon }),
1688
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
1689
+ /* @__PURE__ */ e("span", { className: "font-base truncate", children: i.label }),
1690
+ i.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: i.description })
1691
1691
  ] })
1692
1692
  ] }),
1693
- /* @__PURE__ */ i("div", { className: "flex items-center space-x-2", children: [
1694
- m && n === c.value && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
1693
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
1694
+ m && n === i.value && /* @__PURE__ */ e(Pe, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
1695
1695
  p && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
1696
1696
  ] })
1697
1697
  ]
@@ -1707,14 +1707,14 @@ const nr = ({
1707
1707
  left: `${v.left}px`
1708
1708
  },
1709
1709
  onMouseEnter: () => {
1710
- T.current && (clearTimeout(T.current), T.current = null), b(c.value);
1710
+ T.current && (clearTimeout(T.current), T.current = null), b(i.value);
1711
1711
  },
1712
1712
  onMouseLeave: () => {
1713
1713
  T.current = setTimeout(() => {
1714
1714
  b(null);
1715
1715
  }, 150);
1716
1716
  },
1717
- children: /* @__PURE__ */ e("div", { className: "p-2", children: c.children.map((N, U) => {
1717
+ children: /* @__PURE__ */ e("div", { className: "p-2", children: i.children.map((N, U) => {
1718
1718
  if (N.divider)
1719
1719
  return /* @__PURE__ */ e(
1720
1720
  "div",
@@ -1723,16 +1723,16 @@ const nr = ({
1723
1723
  },
1724
1724
  `divider-${U}`
1725
1725
  );
1726
- const re = typeof n == "object" && n[c.value] && n[c.value].includes(
1726
+ const re = typeof n == "object" && n[i.value] && n[i.value].includes(
1727
1727
  N.value
1728
1728
  ) || n === N.value;
1729
- return /* @__PURE__ */ i(
1729
+ return /* @__PURE__ */ c(
1730
1730
  "button",
1731
1731
  {
1732
1732
  onClick: (ee) => K(
1733
1733
  ee,
1734
1734
  N,
1735
- c.value
1735
+ i.value
1736
1736
  ),
1737
1737
  disabled: N.disabled,
1738
1738
  className: d(
@@ -1742,14 +1742,14 @@ const nr = ({
1742
1742
  }
1743
1743
  ),
1744
1744
  children: [
1745
- /* @__PURE__ */ i("div", { className: "flex items-center space-x-2 min-w-0", children: [
1745
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
1746
1746
  N.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: N.icon }),
1747
- /* @__PURE__ */ i("div", { className: "flex flex-col items-start min-w-0", children: [
1747
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
1748
1748
  /* @__PURE__ */ e("span", { className: "font-base truncate", children: N.label }),
1749
1749
  N.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: N.description })
1750
1750
  ] })
1751
1751
  ] }),
1752
- m && re && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
1752
+ m && re && /* @__PURE__ */ e(Pe, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
1753
1753
  ]
1754
1754
  },
1755
1755
  N.value
@@ -1757,16 +1757,16 @@ const nr = ({
1757
1757
  }) })
1758
1758
  }
1759
1759
  )
1760
- ] }, c.value);
1760
+ ] }, i.value);
1761
1761
  }),
1762
1762
  (() => {
1763
- const c = r.reduce((S, p) => {
1763
+ const i = r.reduce((S, p) => {
1764
1764
  if (p.divider) return S;
1765
1765
  const _ = p.children ? p.children.filter((N) => !N.divider).length : 0;
1766
1766
  return S + 1 + _;
1767
1767
  }, 0);
1768
- return c > 1 && /* @__PURE__ */ e("div", { className: "border-t border-border mt-2 pt-2", children: /* @__PURE__ */ i("div", { className: "text-xs text-text-muted px-3 py-1", children: [
1769
- c,
1768
+ return i > 1 && /* @__PURE__ */ e("div", { className: "border-t border-border mt-2 pt-2", children: /* @__PURE__ */ c("div", { className: "text-xs text-text-muted px-3 py-1", children: [
1769
+ i,
1770
1770
  " options available"
1771
1771
  ] }) });
1772
1772
  })()
@@ -1808,14 +1808,14 @@ const nr = ({
1808
1808
  sm: "p-2",
1809
1809
  md: "px-5 py-4",
1810
1810
  lg: "p-6"
1811
- }, pn = ({
1811
+ }, vn = ({
1812
1812
  actions: t = [],
1813
1813
  onBack: r,
1814
1814
  backLabel: n = "Back",
1815
1815
  className: s,
1816
1816
  padding: a = "md",
1817
1817
  children: l
1818
- }) => /* @__PURE__ */ i("div", { className: d("flex items-center gap-2", sr[a], s), children: [
1818
+ }) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2", sr[a], s), children: [
1819
1819
  r && /* @__PURE__ */ e(
1820
1820
  ae,
1821
1821
  {
@@ -1828,7 +1828,7 @@ const nr = ({
1828
1828
  ),
1829
1829
  l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
1830
1830
  /* @__PURE__ */ e(Je, { actions: t, className: d(!l && "ml-auto") })
1831
- ] }), vn = (t) => (r) => t(r instanceof Date ? r : null), yn = (t) => (r) => t(typeof r == "string" ? r : ""), ar = {
1831
+ ] }), yn = (t) => (r) => t(r instanceof Date ? r : null), Nn = (t) => (r) => t(typeof r == "string" ? r : ""), ar = {
1832
1832
  none: "px-0",
1833
1833
  sm: "px-2",
1834
1834
  md: "px-3.5",
@@ -1855,7 +1855,7 @@ const cr = (t) => {
1855
1855
  value: t.value,
1856
1856
  onChange: (m) => t.onChange(m),
1857
1857
  placeholder: t.placeholder || t.label,
1858
- className: d("min-w-40", o && "border-info text-info-fg")
1858
+ className: d("min-w-40", o && "bg-info-soft text-info-fg")
1859
1859
  }
1860
1860
  );
1861
1861
  }
@@ -1921,10 +1921,10 @@ const cr = (t) => {
1921
1921
  hoverable: T = !0,
1922
1922
  padding: G = "md",
1923
1923
  className: V,
1924
- rowClassName: I,
1924
+ rowClassName: P,
1925
1925
  headerBackground: H = !0
1926
1926
  }) => {
1927
- const [te, J] = O(""), K = l !== void 0, ce = K ? l : te, w = o ?? J, [c, S] = O({
1927
+ const [te, J] = O(""), K = l !== void 0, ce = K ? l : te, w = o ?? J, [i, S] = O({
1928
1928
  column: null,
1929
1929
  direction: null
1930
1930
  }), [p, _] = O({
@@ -1950,14 +1950,14 @@ const cr = (t) => {
1950
1950
  }));
1951
1951
  }), E;
1952
1952
  }, [t, ce, K, r, s, m]), re = pe(() => {
1953
- if (!c.column || !c.direction) return U;
1954
- const E = r.find((W) => W.id === c.column);
1953
+ if (!i.column || !i.direction) return U;
1954
+ const E = r.find((W) => W.id === i.column);
1955
1955
  return E ? [...U].sort((W, le) => {
1956
1956
  const ie = typeof E.accessor == "function" ? E.accessor(W) : W[E.accessor], R = typeof E.accessor == "function" ? E.accessor(le) : le[E.accessor];
1957
1957
  let ue = 0;
1958
- return ie < R ? ue = -1 : ie > R && (ue = 1), c.direction === "desc" ? -ue : ue;
1958
+ return ie < R ? ue = -1 : ie > R && (ue = 1), i.direction === "desc" ? -ue : ue;
1959
1959
  }) : U;
1960
- }, [U, c, r]), ee = pe(() => {
1960
+ }, [U, i, r]), ee = pe(() => {
1961
1961
  if (!y) return re;
1962
1962
  const E = p.page * p.pageSize, W = E + p.pageSize;
1963
1963
  return re.slice(E, W);
@@ -1966,7 +1966,7 @@ const cr = (t) => {
1966
1966
  r.find((le) => le.id === E)?.sortable && S((le) => le.column !== E ? { column: E, direction: "asc" } : le.direction === "asc" ? { column: E, direction: "desc" } : { column: null, direction: null });
1967
1967
  },
1968
1968
  [r]
1969
- ), P = he((E) => {
1969
+ ), I = he((E) => {
1970
1970
  _((W) => ({ ...W, page: E }));
1971
1971
  }, []), D = he(
1972
1972
  (E, W) => {
@@ -1985,7 +1985,7 @@ const cr = (t) => {
1985
1985
  );
1986
1986
  X(() => {
1987
1987
  _((E) => ({ ...E, page: 0 }));
1988
- }, [ce, c]), X(() => {
1988
+ }, [ce, i]), X(() => {
1989
1989
  _((E) => ({ ...E, page: 0 }));
1990
1990
  }, [m.map((E) => E.value).join(",")]);
1991
1991
  const z = re.length, F = Math.ceil(z / p.pageSize), j = p.page * p.pageSize + 1, B = Math.min(j + p.pageSize - 1, z), M = ee.length > 0 && ee.every((E) => {
@@ -1999,8 +1999,8 @@ const cr = (t) => {
1999
1999
  (le, ie) => f(le, ie) === W
2000
2000
  );
2001
2001
  }), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s || m.length > 0 || u.length > 0, fe = y && z > 0, De = fe || C !== void 0;
2002
- return /* @__PURE__ */ i("div", { className: d("flex min-w-0 flex-col", V), children: [
2003
- be && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2002
+ return /* @__PURE__ */ c("div", { className: d("flex min-w-0 flex-col", V), children: [
2003
+ be && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2004
2004
  s && /* @__PURE__ */ e(
2005
2005
  Ge,
2006
2006
  {
@@ -2013,7 +2013,7 @@ const cr = (t) => {
2013
2013
  m.map((E) => /* @__PURE__ */ e(cr, { ...E }, E.id)),
2014
2014
  u.length > 0 && /* @__PURE__ */ e(Je, { actions: u, className: "ml-auto" })
2015
2015
  ] }),
2016
- /* @__PURE__ */ i("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
2016
+ /* @__PURE__ */ c("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
2017
2017
  n && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
2018
2018
  rr,
2019
2019
  {
@@ -2022,8 +2022,8 @@ const cr = (t) => {
2022
2022
  tableColumns: r.length
2023
2023
  }
2024
2024
  ) }),
2025
- /* @__PURE__ */ i("table", { ref: N, className: "min-w-full border-collapse text-base text-text", children: [
2026
- /* @__PURE__ */ e("thead", { className: d(ne, "h-control-lg"), children: /* @__PURE__ */ i("tr", { children: [
2025
+ /* @__PURE__ */ c("table", { ref: N, className: "min-w-full border-collapse text-base text-text", children: [
2026
+ /* @__PURE__ */ e("thead", { className: d(ne, "h-control-lg"), children: /* @__PURE__ */ c("tr", { children: [
2027
2027
  v && /* @__PURE__ */ e("th", { className: d(de, "w-10"), children: /* @__PURE__ */ e(
2028
2028
  ye,
2029
2029
  {
@@ -2052,16 +2052,16 @@ const cr = (t) => {
2052
2052
  ),
2053
2053
  style: { width: E.width },
2054
2054
  onClick: () => E.sortable && Y(E.id),
2055
- children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
2055
+ children: /* @__PURE__ */ c("div", { className: "flex items-center gap-1.5", children: [
2056
2056
  E.headerCell ? E.headerCell() : E.header,
2057
2057
  E.sortable && /* @__PURE__ */ e(
2058
2058
  Q,
2059
2059
  {
2060
- icon: c.column === E.id && c.direction === "desc" ? Se : it,
2060
+ icon: i.column === E.id && i.direction === "desc" ? Se : it,
2061
2061
  size: "xs",
2062
2062
  className: d(
2063
2063
  "transition-opacity duration-fast ease-out",
2064
- c.column === E.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2064
+ i.column === E.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2065
2065
  )
2066
2066
  }
2067
2067
  )
@@ -2085,7 +2085,7 @@ const cr = (t) => {
2085
2085
  const le = f(E, W), ie = k.some(
2086
2086
  (R, ue) => f(R, ue) === le
2087
2087
  );
2088
- return /* @__PURE__ */ i(
2088
+ return /* @__PURE__ */ c(
2089
2089
  "tr",
2090
2090
  {
2091
2091
  className: d(
@@ -2096,7 +2096,7 @@ const cr = (t) => {
2096
2096
  T && "transition-colors duration-fast ease-out hover:bg-surface-hover",
2097
2097
  b && "cursor-pointer",
2098
2098
  ie && "bg-accent-soft",
2099
- I?.(E, W)
2099
+ P?.(E, W)
2100
2100
  ),
2101
2101
  onClick: (R) => {
2102
2102
  R.stopPropagation(), b?.(E, W);
@@ -2158,9 +2158,9 @@ const cr = (t) => {
2158
2158
  }) })
2159
2159
  ] })
2160
2160
  ] }),
2161
- De && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2161
+ De && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2162
2162
  /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: C ?? `Showing ${j}–${B} of ${z}` }),
2163
- fe && /* @__PURE__ */ i("div", { className: "flex items-center gap-0.5", children: [
2163
+ fe && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
2164
2164
  /* @__PURE__ */ e(
2165
2165
  ae,
2166
2166
  {
@@ -2168,7 +2168,7 @@ const cr = (t) => {
2168
2168
  variant: "ghost",
2169
2169
  iconOnly: !0,
2170
2170
  "aria-label": "Previous page",
2171
- onClick: () => P(p.page - 1),
2171
+ onClick: () => I(p.page - 1),
2172
2172
  disabled: p.page === 0,
2173
2173
  children: /* @__PURE__ */ e(Q, { icon: Ee, size: "md", color: "current" })
2174
2174
  }
@@ -2179,7 +2179,7 @@ const cr = (t) => {
2179
2179
  {
2180
2180
  type: "button",
2181
2181
  "aria-current": E === p.page ? "page" : void 0,
2182
- onClick: () => P(E),
2182
+ onClick: () => I(E),
2183
2183
  className: d(
2184
2184
  "h-control-xs min-w-6 cursor-pointer rounded-sm px-1.5 tabular-nums",
2185
2185
  "transition-colors duration-fast ease-out",
@@ -2198,7 +2198,7 @@ const cr = (t) => {
2198
2198
  variant: "ghost",
2199
2199
  iconOnly: !0,
2200
2200
  "aria-label": "Next page",
2201
- onClick: () => P(p.page + 1),
2201
+ onClick: () => I(p.page + 1),
2202
2202
  disabled: p.page >= F - 1,
2203
2203
  children: /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" })
2204
2204
  }
@@ -2206,7 +2206,7 @@ const cr = (t) => {
2206
2206
  ] })
2207
2207
  ] })
2208
2208
  ] });
2209
- }, ir = Nt(null), Nn = ({
2209
+ }, ir = Nt(null), wn = ({
2210
2210
  items: t,
2211
2211
  activeTab: r,
2212
2212
  onTabChange: n,
@@ -2228,7 +2228,7 @@ const cr = (t) => {
2228
2228
  "border-transparent text-disabled cursor-not-allowed": u.disabled
2229
2229
  }
2230
2230
  ),
2231
- children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2231
+ children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2232
2232
  u.label,
2233
2233
  u.badge && /* @__PURE__ */ e("span", { className: d(
2234
2234
  "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
@@ -2288,7 +2288,7 @@ const cr = (t) => {
2288
2288
  } : {};
2289
2289
  return d($, C, q, T, G, V);
2290
2290
  };
2291
- return /* @__PURE__ */ e(ir.Provider, { value: h, children: /* @__PURE__ */ i("div", { children: [
2291
+ return /* @__PURE__ */ e(ir.Provider, { value: h, children: /* @__PURE__ */ c("div", { children: [
2292
2292
  /* @__PURE__ */ e("div", { className: v, role: "tablist", children: t.map((g) => /* @__PURE__ */ e(
2293
2293
  "button",
2294
2294
  {
@@ -2299,7 +2299,7 @@ const cr = (t) => {
2299
2299
  disabled: g.disabled,
2300
2300
  onClick: () => !g.disabled && x(g.id),
2301
2301
  className: k(g, y === g.id),
2302
- children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2302
+ children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2303
2303
  g.label,
2304
2304
  g.badge && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-surface-hover text-text-muted", children: g.badge })
2305
2305
  ] })
@@ -2360,7 +2360,7 @@ function Ye({
2360
2360
  m
2361
2361
  ),
2362
2362
  onClick: v,
2363
- children: /* @__PURE__ */ i(
2363
+ children: /* @__PURE__ */ c(
2364
2364
  "div",
2365
2365
  {
2366
2366
  ref: h,
@@ -2376,7 +2376,7 @@ function Ye({
2376
2376
  "aria-labelledby": n ? "modal-title" : void 0,
2377
2377
  tabIndex: -1,
2378
2378
  children: [
2379
- (n || x) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2379
+ (n || x) && /* @__PURE__ */ c("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2380
2380
  n && /* @__PURE__ */ e(
2381
2381
  "span",
2382
2382
  {
@@ -2493,40 +2493,40 @@ const pr = ({
2493
2493
  onDownloadFile: x,
2494
2494
  onRegisterFile: h
2495
2495
  }) => {
2496
- const [b, v] = O(!1), [k, g] = O([]), [f, $] = O(null), [C, q] = O("/"), [T, G] = O([]), [V, I] = O(!1), [H, te] = O(""), [J, K] = O(
2496
+ const [b, v] = O(!1), [k, g] = O([]), [f, $] = O(null), [C, q] = O("/"), [T, G] = O([]), [V, P] = O(!1), [H, te] = O(""), [J, K] = O(
2497
2497
  typeof t == "object" ? t : null
2498
- ), [ce, w] = O(!1), [c, S] = O(""), p = se(null);
2498
+ ), [ce, w] = O(!1), [i, S] = O(""), p = se(null);
2499
2499
  X(() => {
2500
2500
  b && _();
2501
2501
  }, [b]), X(() => {
2502
2502
  b && f && N();
2503
2503
  }, [b, f, C, H]);
2504
2504
  const _ = async () => {
2505
- I(!0);
2505
+ P(!0);
2506
2506
  try {
2507
2507
  const M = await u?.();
2508
2508
  M?.data && g(M.data);
2509
2509
  } catch (M) {
2510
2510
  console.error("Failed to load mounts", M);
2511
2511
  } finally {
2512
- I(!1);
2512
+ P(!1);
2513
2513
  }
2514
2514
  }, N = async () => {
2515
2515
  if (f) {
2516
- I(!0);
2516
+ P(!0);
2517
2517
  try {
2518
2518
  const M = await m?.({ mountId: f.id, name: H, path: C });
2519
2519
  M?.data && G(M.data);
2520
2520
  } catch (M) {
2521
2521
  console.error("Failed to load files", M);
2522
2522
  } finally {
2523
- I(!1);
2523
+ P(!1);
2524
2524
  }
2525
2525
  }
2526
2526
  }, U = async (M) => {
2527
2527
  const L = M.target.files?.[0];
2528
2528
  if (L) {
2529
- I(!0);
2529
+ P(!0);
2530
2530
  try {
2531
2531
  const Z = await L.arrayBuffer(), ne = new Uint8Array(Z), de = {
2532
2532
  id: `local-${Date.now()}`,
@@ -2543,13 +2543,13 @@ const pr = ({
2543
2543
  } catch (Z) {
2544
2544
  console.error("Local file selection failed", Z);
2545
2545
  } finally {
2546
- I(!1);
2546
+ P(!1);
2547
2547
  }
2548
2548
  }
2549
2549
  }, re = async (M) => {
2550
2550
  const L = M.target.files?.[0];
2551
2551
  if (!(!L || !f)) {
2552
- I(!0);
2552
+ P(!0);
2553
2553
  try {
2554
2554
  const Z = await L.arrayBuffer(), ne = await y?.({
2555
2555
  file: new Uint8Array(Z),
@@ -2565,16 +2565,16 @@ const pr = ({
2565
2565
  } catch (Z) {
2566
2566
  console.error("Upload failed", Z);
2567
2567
  } finally {
2568
- I(!1);
2568
+ P(!1);
2569
2569
  }
2570
2570
  }
2571
2571
  }, ee = async () => {
2572
- if (!(!c || !f)) {
2573
- I(!0);
2572
+ if (!(!i || !f)) {
2573
+ P(!0);
2574
2574
  try {
2575
- const M = `${C}${c}/`;
2575
+ const M = `${C}${i}/`;
2576
2576
  h && (await h({
2577
- name: c,
2577
+ name: i,
2578
2578
  type: "folder",
2579
2579
  path: C,
2580
2580
  mimeType: "application/x-directory",
@@ -2586,20 +2586,20 @@ const pr = ({
2586
2586
  } catch (M) {
2587
2587
  console.error("Failed to create folder", M);
2588
2588
  } finally {
2589
- I(!1);
2589
+ P(!1);
2590
2590
  }
2591
2591
  }
2592
2592
  }, Y = async (M) => {
2593
- I(!0);
2593
+ P(!0);
2594
2594
  try {
2595
2595
  const L = await x?.(M.id);
2596
2596
  K(M), r(M, L), v(!1);
2597
2597
  } catch (L) {
2598
2598
  console.error("Failed to download file", L);
2599
2599
  } finally {
2600
- I(!1);
2600
+ P(!1);
2601
2601
  }
2602
- }, P = (M) => {
2602
+ }, I = (M) => {
2603
2603
  M.stopPropagation(), K(null), r(null);
2604
2604
  }, D = pe(() => {
2605
2605
  const M = /* @__PURE__ */ new Set(), L = [];
@@ -2636,7 +2636,7 @@ const pr = ({
2636
2636
  id: "name",
2637
2637
  header: "Name",
2638
2638
  accessor: "name",
2639
- cell: (M, L) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
2639
+ cell: (M, L) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
2640
2640
  /* @__PURE__ */ e(
2641
2641
  Q,
2642
2642
  {
@@ -2680,8 +2680,8 @@ const pr = ({
2680
2680
  id: "name",
2681
2681
  header: "Mount Name",
2682
2682
  accessor: "name",
2683
- cell: (M) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2 font-medium", children: [
2684
- /* @__PURE__ */ e(Q, { icon: Pe, size: "sm", color: "primary" }),
2683
+ cell: (M) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
2684
+ /* @__PURE__ */ e(Q, { icon: Ie, size: "sm", color: "primary" }),
2685
2685
  /* @__PURE__ */ e("span", { children: M })
2686
2686
  ] })
2687
2687
  },
@@ -2693,9 +2693,9 @@ const pr = ({
2693
2693
  cell: (M, L) => /* @__PURE__ */ e(ae, { variant: "outline", onClick: () => $(L), children: "Open" })
2694
2694
  }
2695
2695
  ];
2696
- return /* @__PURE__ */ i("div", { className: "space-y-1", children: [
2696
+ return /* @__PURE__ */ c("div", { className: "space-y-1", children: [
2697
2697
  n && /* @__PURE__ */ e(me, { variant: "label", size: "sm", weight: "medium", children: n }),
2698
- /* @__PURE__ */ i(
2698
+ /* @__PURE__ */ c(
2699
2699
  "div",
2700
2700
  {
2701
2701
  onClick: () => !l && v(!0),
@@ -2706,12 +2706,12 @@ const pr = ({
2706
2706
  l && "opacity-50 cursor-not-allowed bg-surface-sunk"
2707
2707
  ),
2708
2708
  children: [
2709
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(Q, { icon: J ? Te : Pe, color: J ? "primary" : "secondary" }) }),
2709
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(Q, { icon: J ? Te : Ie, color: J ? "primary" : "secondary" }) }),
2710
2710
  /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: J ? /* @__PURE__ */ e("span", { className: "text-sm text-text font-medium", children: J.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-text-muted", children: s }) }),
2711
2711
  J && !l && /* @__PURE__ */ e(
2712
2712
  "button",
2713
2713
  {
2714
- onClick: P,
2714
+ onClick: I,
2715
2715
  className: "p-1 hover:bg-surface-hover rounded",
2716
2716
  children: /* @__PURE__ */ e(Q, { icon: we, size: "xs" })
2717
2717
  }
@@ -2737,8 +2737,8 @@ const pr = ({
2737
2737
  {
2738
2738
  id: "remote",
2739
2739
  label: "Platform Storage",
2740
- content: /* @__PURE__ */ e("div", { className: "space-y-4", children: f ? /* @__PURE__ */ i(ve, { children: [
2741
- /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children: [
2740
+ content: /* @__PURE__ */ e("div", { className: "space-y-4", children: f ? /* @__PURE__ */ c(ve, { children: [
2741
+ /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2", children: [
2742
2742
  /* @__PURE__ */ e(
2743
2743
  ae,
2744
2744
  {
@@ -2761,7 +2761,7 @@ const pr = ({
2761
2761
  fullWidth: !0
2762
2762
  }
2763
2763
  ) }),
2764
- /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
2764
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
2765
2765
  /* @__PURE__ */ e(
2766
2766
  ae,
2767
2767
  {
@@ -2793,13 +2793,13 @@ const pr = ({
2793
2793
  )
2794
2794
  ] })
2795
2795
  ] }),
2796
- ce && /* @__PURE__ */ i("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
2796
+ ce && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
2797
2797
  /* @__PURE__ */ e(Q, { icon: je, size: "sm", color: "warning" }),
2798
2798
  /* @__PURE__ */ e(
2799
2799
  Ne,
2800
2800
  {
2801
2801
  placeholder: "Folder name",
2802
- value: c,
2802
+ value: i,
2803
2803
  onChange: (M) => S(M.target.value),
2804
2804
  autoFocus: !0
2805
2805
  }
@@ -2831,15 +2831,15 @@ const pr = ({
2831
2831
  {
2832
2832
  id: "local",
2833
2833
  label: "Local File",
2834
- content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-border rounded-xl bg-surface-sunk/50", children: [
2834
+ content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-border rounded-xl bg-surface-sunk/50", children: [
2835
2835
  /* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Q, { icon: Te, size: "xl", color: "primary" }) }),
2836
2836
  /* @__PURE__ */ e(me, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
2837
- /* @__PURE__ */ i(me, { variant: "body", size: "sm", className: "text-text-muted mt-1 mb-6 text-center max-w-xs", children: [
2837
+ /* @__PURE__ */ c(me, { variant: "body", size: "sm", className: "text-text-muted mt-1 mb-6 text-center max-w-xs", children: [
2838
2838
  "This file will be used directly in the form and will ",
2839
2839
  /* @__PURE__ */ e("strong", { children: "not" }),
2840
2840
  " be uploaded to platform storage."
2841
2841
  ] }),
2842
- /* @__PURE__ */ i("label", { className: "cursor-pointer", children: [
2842
+ /* @__PURE__ */ c("label", { className: "cursor-pointer", children: [
2843
2843
  /* @__PURE__ */ e(ae, { variant: "primary", size: "lg", loading: V, className: "pointer-events-none", children: "Browse Local File" }),
2844
2844
  /* @__PURE__ */ e(
2845
2845
  "input",
@@ -2881,7 +2881,7 @@ const pr = ({
2881
2881
  ...h
2882
2882
  }, b) => {
2883
2883
  const v = oe.useId(), k = y || `textarea-${v}`, g = !!n, f = n || r ? `${k}-description` : void 0;
2884
- return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full", o), children: [
2884
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col", a && "w-full", o), children: [
2885
2885
  t && /* @__PURE__ */ e(
2886
2886
  "label",
2887
2887
  {
@@ -2894,7 +2894,7 @@ const pr = ({
2894
2894
  children: t
2895
2895
  }
2896
2896
  ),
2897
- /* @__PURE__ */ i("div", { className: "relative", children: [
2897
+ /* @__PURE__ */ c("div", { className: "relative", children: [
2898
2898
  /* @__PURE__ */ e(
2899
2899
  "textarea",
2900
2900
  {
@@ -2964,15 +2964,15 @@ function wr({
2964
2964
  className: n,
2965
2965
  children: s
2966
2966
  }) {
2967
- return /* @__PURE__ */ i("div", { className: d("flex flex-col gap-4 py-6 sm:flex-row sm:gap-8", n), children: [
2968
- /* @__PURE__ */ i("div", { className: "w-full shrink-0 sm:w-form-label", children: [
2967
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col gap-4 py-6 sm:flex-row sm:gap-8", n), children: [
2968
+ /* @__PURE__ */ c("div", { className: "w-full shrink-0 sm:w-form-label", children: [
2969
2969
  t && /* @__PURE__ */ e("span", { className: "text-base font-semibold text-text", children: t }),
2970
2970
  r && /* @__PURE__ */ e("p", { className: "mt-1 text-sm leading-relaxed text-pretty text-text-subtle", children: r })
2971
2971
  ] }),
2972
2972
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
2973
2973
  ] });
2974
2974
  }
2975
- const wn = ({
2975
+ const kn = ({
2976
2976
  groups: t,
2977
2977
  data: r,
2978
2978
  onSubmit: n,
@@ -2995,27 +2995,27 @@ const wn = ({
2995
2995
  r && $({ ...r });
2996
2996
  }, [r]);
2997
2997
  const V = he(
2998
- (w, c, S) => {
2998
+ (w, i, S) => {
2999
2999
  const p = t.flatMap((_) => _.items).find((_) => _.name === w);
3000
3000
  if (!p) return null;
3001
- if (p.required && (c == null || c === ""))
3001
+ if (p.required && (i == null || i === ""))
3002
3002
  return `${p.label} is required`;
3003
3003
  if (p.type === "array") {
3004
- if (p.required && (!c || c.length === 0))
3004
+ if (p.required && (!i || i.length === 0))
3005
3005
  return `${p.label} cannot be empty.`;
3006
- if (c && !Array.isArray(c))
3006
+ if (i && !Array.isArray(i))
3007
3007
  return `${p.label} must be an array.`;
3008
- if (Array.isArray(c) && p.arrayFields) {
3008
+ if (Array.isArray(i) && p.arrayFields) {
3009
3009
  const _ = [];
3010
3010
  let N = !1;
3011
- if (c.forEach((U, re) => {
3011
+ if (i.forEach((U, re) => {
3012
3012
  const ee = {};
3013
3013
  for (const Y of p.arrayFields) {
3014
- const P = U?.[Y.name];
3015
- if (Y.required && (P == null || P === ""))
3014
+ const I = U?.[Y.name];
3015
+ if (Y.required && (I == null || I === ""))
3016
3016
  ee[Y.name] = `${Y.label} is required`, N = !0;
3017
3017
  else if (Y.validator) {
3018
- const D = Y.validator(P, U);
3018
+ const D = Y.validator(I, U);
3019
3019
  D && (ee[Y.name] = D, N = !0);
3020
3020
  }
3021
3021
  }
@@ -3024,18 +3024,18 @@ const wn = ({
3024
3024
  return JSON.stringify(_);
3025
3025
  }
3026
3026
  }
3027
- return p.validator ? p.validator(c, S) : null;
3027
+ return p.validator ? p.validator(i, S) : null;
3028
3028
  },
3029
3029
  [t]
3030
- ), I = he(
3031
- (w, c) => {
3030
+ ), P = he(
3031
+ (w, i) => {
3032
3032
  let S = yr(
3033
3033
  f,
3034
3034
  w,
3035
- c
3035
+ i
3036
3036
  );
3037
- t.flatMap((N) => N.items).find((N) => N.name === w)?.removeIfEmpty && (c == null || c === "") && (S = Nr(S, w)), $(S), G((N) => ({ ...N, [w]: !0 }));
3038
- const _ = V(w, c, S);
3037
+ t.flatMap((N) => N.items).find((N) => N.name === w)?.removeIfEmpty && (i == null || i === "") && (S = Nr(S, w)), $(S), G((N) => ({ ...N, [w]: !0 }));
3038
+ const _ = V(w, i, S);
3039
3039
  q((N) => ({
3040
3040
  ...N,
3041
3041
  [w]: _ || ""
@@ -3045,7 +3045,7 @@ const wn = ({
3045
3045
  ), H = he(
3046
3046
  async (w) => {
3047
3047
  if (w.preventDefault(), b) return;
3048
- const c = {}, S = t.flatMap((_) => _.items);
3048
+ const i = {}, S = t.flatMap((_) => _.items);
3049
3049
  for (const _ of S) {
3050
3050
  if (_.hidden || _.conditional && !_.conditional(f))
3051
3051
  continue;
@@ -3054,13 +3054,13 @@ const wn = ({
3054
3054
  Be(f, _.name),
3055
3055
  f
3056
3056
  );
3057
- N && (c[_.name] = N);
3057
+ N && (i[_.name] = N);
3058
3058
  }
3059
3059
  if (o) {
3060
3060
  const _ = o(f);
3061
- _ && Object.assign(c, _);
3061
+ _ && Object.assign(i, _);
3062
3062
  }
3063
- if (q(c), Object.keys(c).some((_) => c[_]))
3063
+ if (q(i), Object.keys(i).some((_) => i[_]))
3064
3064
  return;
3065
3065
  const p = l ? l(f) : f;
3066
3066
  await n?.(f, p);
@@ -3068,8 +3068,8 @@ const wn = ({
3068
3068
  [f, t, V, o, l, n, b]
3069
3069
  ), te = he(
3070
3070
  (w) => {
3071
- const c = Be(f, w.name), S = T[w.name] ? C[w.name] : void 0, p = w.disabled || b, _ = {
3072
- value: c || "",
3071
+ const i = Be(f, w.name), S = T[w.name] ? C[w.name] : void 0, p = w.disabled || b, _ = {
3072
+ value: i || "",
3073
3073
  disabled: p,
3074
3074
  required: w.required,
3075
3075
  placeholder: w.placeholder,
@@ -3086,7 +3086,7 @@ const wn = ({
3086
3086
  Ne,
3087
3087
  {
3088
3088
  ..._,
3089
- onChange: (N) => I(w.name, N.target.value),
3089
+ onChange: (N) => P(w.name, N.target.value),
3090
3090
  type: w.textType || w.type,
3091
3091
  autoComplete: w.autocomplete,
3092
3092
  error: S,
@@ -3098,7 +3098,7 @@ const wn = ({
3098
3098
  Le,
3099
3099
  {
3100
3100
  ..._,
3101
- onChange: (N) => I(w.name, N.target.value),
3101
+ onChange: (N) => P(w.name, N.target.value),
3102
3102
  rows: 4,
3103
3103
  error: S,
3104
3104
  size: h
@@ -3109,7 +3109,7 @@ const wn = ({
3109
3109
  Ce,
3110
3110
  {
3111
3111
  ..._,
3112
- onChange: (N) => I(w.name, N),
3112
+ onChange: (N) => P(w.name, N),
3113
3113
  options: (w.options || []).map((N) => ({
3114
3114
  ...N,
3115
3115
  value: String(N.value)
@@ -3129,8 +3129,8 @@ const wn = ({
3129
3129
  Ft,
3130
3130
  {
3131
3131
  "aria-label": w.label,
3132
- value: c == null ? "" : String(c),
3133
- onChange: (N) => I(w.name, N),
3132
+ value: i == null ? "" : String(i),
3133
+ onChange: (N) => P(w.name, N),
3134
3134
  options: (w.options || []).map((N) => ({
3135
3135
  value: String(N.value),
3136
3136
  label: N.label
@@ -3145,13 +3145,13 @@ const wn = ({
3145
3145
  {
3146
3146
  ..._,
3147
3147
  label: w.label,
3148
- checked: !!c,
3149
- onChange: (N) => I(w.name, N.target.checked),
3148
+ checked: !!i,
3149
+ onChange: (N) => P(w.name, N.target.checked),
3150
3150
  size: h
3151
3151
  }
3152
3152
  );
3153
3153
  case "radio":
3154
- return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: w.options?.map((N) => /* @__PURE__ */ i(
3154
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: w.options?.map((N) => /* @__PURE__ */ c(
3155
3155
  "label",
3156
3156
  {
3157
3157
  className: "flex cursor-pointer items-center gap-3 text-base text-text",
@@ -3162,8 +3162,8 @@ const wn = ({
3162
3162
  type: "radio",
3163
3163
  name: w.name,
3164
3164
  value: N.value,
3165
- checked: c === N.value,
3166
- onChange: () => I(w.name, N.value),
3165
+ checked: i === N.value,
3166
+ onChange: () => P(w.name, N.value),
3167
3167
  disabled: p || N.disabled,
3168
3168
  className: "size-checkbox shrink-0 rounded-xs border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
3169
3169
  }
@@ -3178,8 +3178,8 @@ const wn = ({
3178
3178
  Ae,
3179
3179
  {
3180
3180
  ..._,
3181
- value: c ? new Date(c) : null,
3182
- onChange: (N) => I(w.name, N),
3181
+ value: i ? new Date(i) : null,
3182
+ onChange: (N) => P(w.name, N),
3183
3183
  size: h
3184
3184
  }
3185
3185
  );
@@ -3188,8 +3188,8 @@ const wn = ({
3188
3188
  pr,
3189
3189
  {
3190
3190
  ..._,
3191
- value: c,
3192
- onChange: (N) => I(w.name, N),
3191
+ value: i,
3192
+ onChange: (N) => P(w.name, N),
3193
3193
  error: S,
3194
3194
  onListFiles: (N) => g?.http.invoke({
3195
3195
  method: "POST",
@@ -3220,8 +3220,8 @@ const wn = ({
3220
3220
  return /* @__PURE__ */ e(
3221
3221
  Yt,
3222
3222
  {
3223
- value: c || {},
3224
- onChange: (N) => I(w.name, N),
3223
+ value: i || {},
3224
+ onChange: (N) => P(w.name, N),
3225
3225
  onListFolders: () => g?.http.invoke({
3226
3226
  method: "GET",
3227
3227
  action: "storage.mount"
@@ -3233,13 +3233,13 @@ const wn = ({
3233
3233
  );
3234
3234
  case "custom":
3235
3235
  return w.customComponent?.({
3236
- value: c,
3237
- onChange: (N) => I(w.name, N),
3236
+ value: i,
3237
+ onChange: (N) => P(w.name, N),
3238
3238
  error: S,
3239
3239
  disabled: p
3240
3240
  });
3241
3241
  case "array": {
3242
- const N = c || [];
3242
+ const N = i || [];
3243
3243
  let U = [];
3244
3244
  if (typeof S == "string" && S.startsWith("["))
3245
3245
  try {
@@ -3247,35 +3247,35 @@ const wn = ({
3247
3247
  } catch {
3248
3248
  }
3249
3249
  const re = () => {
3250
- I(w.name, [...N, {}]);
3251
- }, ee = (P) => {
3252
- I(
3250
+ P(w.name, [...N, {}]);
3251
+ }, ee = (I) => {
3252
+ P(
3253
3253
  w.name,
3254
- N.filter((D, A) => A !== P)
3254
+ N.filter((D, A) => A !== I)
3255
3255
  );
3256
- }, Y = (P, D, A) => {
3256
+ }, Y = (I, D, A) => {
3257
3257
  const z = [...N];
3258
- z[P] = {
3259
- ...z[P],
3258
+ z[I] = {
3259
+ ...z[I],
3260
3260
  [D]: A
3261
- }, I(w.name, z);
3261
+ }, P(w.name, z);
3262
3262
  };
3263
- return /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
3264
- N.map((P, D) => /* @__PURE__ */ i("div", { className: "flex items-start gap-2", children: [
3263
+ return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
3264
+ N.map((I, D) => /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
3265
3265
  /* @__PURE__ */ e("div", { className: "grid flex-1 gap-2 sm:grid-cols-2", children: w.arrayFields?.map((A) => {
3266
3266
  const z = U?.[D]?.[A.name];
3267
- return /* @__PURE__ */ i(
3267
+ return /* @__PURE__ */ c(
3268
3268
  "div",
3269
3269
  {
3270
3270
  className: "flex flex-col gap-1",
3271
3271
  children: [
3272
- D === 0 && /* @__PURE__ */ i("label", { className: "block text-xs font-semibold uppercase tracking-label text-text-subtle", children: [
3272
+ D === 0 && /* @__PURE__ */ c("label", { className: "block text-xs font-semibold uppercase tracking-label text-text-subtle", children: [
3273
3273
  A.label,
3274
3274
  A.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3275
3275
  ] }),
3276
3276
  (() => {
3277
3277
  const F = {
3278
- value: P?.[A.name] || "",
3278
+ value: I?.[A.name] || "",
3279
3279
  disabled: p,
3280
3280
  required: A.required,
3281
3281
  placeholder: A.placeholder,
@@ -3346,7 +3346,7 @@ const wn = ({
3346
3346
  ye,
3347
3347
  {
3348
3348
  ...F,
3349
- checked: !!P?.[A.name],
3349
+ checked: !!I?.[A.name],
3350
3350
  onChange: (j) => Y(
3351
3351
  D,
3352
3352
  A.name,
@@ -3356,7 +3356,7 @@ const wn = ({
3356
3356
  }
3357
3357
  );
3358
3358
  case "radio":
3359
- return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: A.options?.map((j) => /* @__PURE__ */ i(
3359
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: A.options?.map((j) => /* @__PURE__ */ c(
3360
3360
  "label",
3361
3361
  {
3362
3362
  className: "flex cursor-pointer items-center gap-2 text-base text-text",
@@ -3367,7 +3367,7 @@ const wn = ({
3367
3367
  type: "radio",
3368
3368
  name: `${w.name}.${D}.${A.name}`,
3369
3369
  value: j.value,
3370
- checked: P?.[A.name] === j.value,
3370
+ checked: I?.[A.name] === j.value,
3371
3371
  onChange: () => Y(
3372
3372
  D,
3373
3373
  A.name,
@@ -3383,7 +3383,7 @@ const wn = ({
3383
3383
  j.value
3384
3384
  )) });
3385
3385
  case "date": {
3386
- const j = P?.[A.name];
3386
+ const j = I?.[A.name];
3387
3387
  return /* @__PURE__ */ e(
3388
3388
  Ae,
3389
3389
  {
@@ -3400,7 +3400,7 @@ const wn = ({
3400
3400
  }
3401
3401
  case "custom":
3402
3402
  return A.customComponent?.({
3403
- value: P?.[A.name],
3403
+ value: I?.[A.name],
3404
3404
  onChange: (j) => Y(
3405
3405
  D,
3406
3406
  A.name,
@@ -3411,7 +3411,7 @@ const wn = ({
3411
3411
  });
3412
3412
  // Add other field types here as needed
3413
3413
  default:
3414
- return /* @__PURE__ */ i("p", { children: [
3414
+ return /* @__PURE__ */ c("p", { children: [
3415
3415
  "Unsupported field type in array:",
3416
3416
  " ",
3417
3417
  A.type
@@ -3439,7 +3439,7 @@ const wn = ({
3439
3439
  }
3440
3440
  )
3441
3441
  ] }, D)),
3442
- /* @__PURE__ */ i(
3442
+ /* @__PURE__ */ c(
3443
3443
  ae,
3444
3444
  {
3445
3445
  type: "button",
@@ -3459,13 +3459,13 @@ const wn = ({
3459
3459
  return null;
3460
3460
  }
3461
3461
  },
3462
- [f, T, C, b, h, I]
3462
+ [f, T, C, b, h, P]
3463
3463
  ), J = he(
3464
3464
  (w) => {
3465
3465
  if (w.conditional && !w.conditional(f))
3466
3466
  return null;
3467
- const c = w.items.filter((p) => !(p.hidden || p.conditional && !p.conditional(f)));
3468
- if (c.length === 0) return null;
3467
+ const i = w.items.filter((p) => !(p.hidden || p.conditional && !p.conditional(f)));
3468
+ if (i.length === 0) return null;
3469
3469
  const S = d(
3470
3470
  w.layout === "flex" ? "flex flex-wrap gap-3.5" : "grid gap-3.5",
3471
3471
  w.layout !== "flex" && {
@@ -3486,9 +3486,9 @@ const wn = ({
3486
3486
  title: w.title,
3487
3487
  description: w.description,
3488
3488
  className: "not-last:border-b not-last:border-border-subtle",
3489
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: S, children: c.map((p) => {
3489
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: S, children: i.map((p) => {
3490
3490
  const _ = T[p.name] ? C[p.name] : void 0;
3491
- return /* @__PURE__ */ i(
3491
+ return /* @__PURE__ */ c(
3492
3492
  "div",
3493
3493
  {
3494
3494
  className: d(
@@ -3500,7 +3500,7 @@ const wn = ({
3500
3500
  gridColumn: typeof p.width == "number" ? `span ${p.width} / span ${p.width}` : void 0
3501
3501
  },
3502
3502
  children: [
3503
- p.type !== "custom" && p.type !== "checkbox" && /* @__PURE__ */ i("label", { className: "block text-sm font-medium text-text-muted", children: [
3503
+ p.type !== "custom" && p.type !== "checkbox" && /* @__PURE__ */ c("label", { className: "block text-sm font-medium text-text-muted", children: [
3504
3504
  p.label,
3505
3505
  p.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3506
3506
  ] }),
@@ -3526,10 +3526,10 @@ const wn = ({
3526
3526
  },
3527
3527
  v
3528
3528
  ), ce = h === "full" ? "md" : h;
3529
- return /* @__PURE__ */ i("form", { ref: k, onSubmit: H, className: K, children: [
3529
+ return /* @__PURE__ */ c("form", { ref: k, onSubmit: H, className: K, children: [
3530
3530
  !y && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
3531
3531
  /* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(J) }),
3532
- y && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ i(ve, { children: [
3532
+ y && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ c(ve, { children: [
3533
3533
  /* @__PURE__ */ e("div", { className: "ml-auto" }),
3534
3534
  s && /* @__PURE__ */ e(
3535
3535
  ae,
@@ -3558,7 +3558,7 @@ const wn = ({
3558
3558
  ] }) })
3559
3559
  ] });
3560
3560
  };
3561
- function kn({
3561
+ function Cn({
3562
3562
  open: t,
3563
3563
  title: r,
3564
3564
  description: n,
@@ -3576,7 +3576,7 @@ function kn({
3576
3576
  onClose: u,
3577
3577
  title: r,
3578
3578
  size: "sm",
3579
- footer: /* @__PURE__ */ i("div", { className: "flex w-full items-center justify-end gap-2", children: [
3579
+ footer: /* @__PURE__ */ c("div", { className: "flex w-full items-center justify-end gap-2", children: [
3580
3580
  /* @__PURE__ */ e(ae, { variant: "ghost", onClick: u, disabled: o, children: a }),
3581
3581
  /* @__PURE__ */ e(
3582
3582
  ae,
@@ -3616,7 +3616,7 @@ const kr = {
3616
3616
  info: "bg-info",
3617
3617
  note: "bg-note"
3618
3618
  };
3619
- function Cn({
3619
+ function Sn({
3620
3620
  variant: t = "default",
3621
3621
  size: r = "md",
3622
3622
  dot: n = !1,
@@ -3627,7 +3627,7 @@ function Cn({
3627
3627
  children: m,
3628
3628
  ...u
3629
3629
  }) {
3630
- return /* @__PURE__ */ i(
3630
+ return /* @__PURE__ */ c(
3631
3631
  "span",
3632
3632
  {
3633
3633
  className: d(
@@ -3669,7 +3669,7 @@ const Er = {
3669
3669
  neutral: "bg-surface-hover text-text-muted",
3670
3670
  success: "bg-success-soft text-success-fg"
3671
3671
  };
3672
- function Sn({
3672
+ function En({
3673
3673
  icon: t,
3674
3674
  tone: r = "neutral",
3675
3675
  title: n,
@@ -3679,7 +3679,7 @@ function Sn({
3679
3679
  className: o,
3680
3680
  ...m
3681
3681
  }) {
3682
- return /* @__PURE__ */ i(
3682
+ return /* @__PURE__ */ c(
3683
3683
  "div",
3684
3684
  {
3685
3685
  className: d(
@@ -3697,7 +3697,7 @@ function Sn({
3697
3697
  }
3698
3698
  );
3699
3699
  }
3700
- function En({ children: t, className: r, ...n }) {
3700
+ function zn({ children: t, className: r, ...n }) {
3701
3701
  return /* @__PURE__ */ e(
3702
3702
  "kbd",
3703
3703
  {
@@ -3717,7 +3717,7 @@ const zr = {
3717
3717
  accent: "bg-accent",
3718
3718
  success: "bg-success"
3719
3719
  };
3720
- function zn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3720
+ function Mn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3721
3721
  const l = Math.max(0, Math.min(100, t));
3722
3722
  return /* @__PURE__ */ e(
3723
3723
  "div",
@@ -3756,7 +3756,7 @@ const $r = {
3756
3756
  lg: "text-base",
3757
3757
  xl: "text-lg"
3758
3758
  };
3759
- function Mn({
3759
+ function $n({
3760
3760
  size: t = "md",
3761
3761
  variant: r = "primary",
3762
3762
  label: n = "Loading...",
@@ -3764,7 +3764,7 @@ function Mn({
3764
3764
  className: a,
3765
3765
  ...l
3766
3766
  }) {
3767
- return /* @__PURE__ */ i(
3767
+ return /* @__PURE__ */ c(
3768
3768
  "div",
3769
3769
  {
3770
3770
  className: d(
@@ -3774,7 +3774,7 @@ function Mn({
3774
3774
  ),
3775
3775
  ...l,
3776
3776
  children: [
3777
- /* @__PURE__ */ i(
3777
+ /* @__PURE__ */ c(
3778
3778
  "svg",
3779
3779
  {
3780
3780
  className: d(
@@ -3838,7 +3838,7 @@ const _r = {
3838
3838
  "cat-4": "bg-cat-4",
3839
3839
  "cat-5": "bg-cat-5"
3840
3840
  };
3841
- function $n({
3841
+ function Dn({
3842
3842
  tone: t = "neutral",
3843
3843
  shape: r = "round",
3844
3844
  pulse: n = !1,
@@ -3861,7 +3861,7 @@ function $n({
3861
3861
  }
3862
3862
  );
3863
3863
  }
3864
- function Dn({
3864
+ function Tn({
3865
3865
  steps: t,
3866
3866
  current: r,
3867
3867
  variant: n = "numbered",
@@ -3880,7 +3880,7 @@ function Dn({
3880
3880
  )
3881
3881
  },
3882
3882
  m
3883
- )) }) : /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-2", a), children: t.map((m, u) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
3883
+ )) }) : /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-2", a), children: t.map((m, u) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
3884
3884
  /* @__PURE__ */ e(
3885
3885
  "span",
3886
3886
  {
@@ -3897,8 +3897,8 @@ function Dn({
3897
3897
  u < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
3898
3898
  ] }, m)) });
3899
3899
  }
3900
- function Tn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
3901
- return /* @__PURE__ */ i(
3900
+ function _n({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
3901
+ return /* @__PURE__ */ c(
3902
3902
  "div",
3903
3903
  {
3904
3904
  className: d(
@@ -3908,7 +3908,7 @@ function Tn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-
3908
3908
  ),
3909
3909
  ...l,
3910
3910
  children: [
3911
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-assistant", children: [
3911
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-assistant", children: [
3912
3912
  /* @__PURE__ */ e("span", { "aria-hidden": !0, children: r }),
3913
3913
  /* @__PURE__ */ e("span", { className: "text-sm font-semibold", children: t }),
3914
3914
  n && /* @__PURE__ */ e("span", { className: "ml-auto", children: n })
@@ -3929,12 +3929,12 @@ const Ar = {
3929
3929
  md: "w-7 h-7 text-base",
3930
3930
  lg: "w-9 h-9 text-sm"
3931
3931
  };
3932
- function Ir(t) {
3932
+ function Pr(t) {
3933
3933
  if (!t) return "?";
3934
3934
  const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
3935
3935
  return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
3936
3936
  }
3937
- const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
3937
+ const Ir = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
3938
3938
  const [o, m] = oe.useState(!1), u = d(
3939
3939
  // Its own token and not `surface-hover`: at 0.972 the plate was within a few
3940
3940
  // percent of every surface it sits on, so the monogram floated instead of
@@ -3953,13 +3953,13 @@ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
3953
3953
  className: d(u, "object-cover"),
3954
3954
  onError: () => m(!0)
3955
3955
  }
3956
- ) : /* @__PURE__ */ e("span", { className: u, title: l ?? t, "aria-label": t, children: Ir(t) });
3957
- }, Re = "ring-surface", jr = "ring-surface-accent", _n = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
3956
+ ) : /* @__PURE__ */ e("span", { className: u, title: l ?? t, "aria-label": t, children: Pr(t) });
3957
+ }, Re = "ring-surface", jr = "ring-surface-accent", An = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
3958
3958
  if (t.length === 0) return null;
3959
3959
  const a = t.slice(0, r), l = t.length - a.length;
3960
- return /* @__PURE__ */ i("span", { className: d("inline-flex items-center", s), children: [
3960
+ return /* @__PURE__ */ c("span", { className: d("inline-flex items-center", s), children: [
3961
3961
  a.map((o, m) => /* @__PURE__ */ e(
3962
- Pr,
3962
+ Ir,
3963
3963
  {
3964
3964
  name: o.name,
3965
3965
  src: o.src,
@@ -3973,7 +3973,7 @@ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
3973
3973
  },
3974
3974
  o.id ?? `${o.name}-${m}`
3975
3975
  )),
3976
- l > 0 && /* @__PURE__ */ i(
3976
+ l > 0 && /* @__PURE__ */ c(
3977
3977
  "span",
3978
3978
  {
3979
3979
  className: d(
@@ -4001,7 +4001,7 @@ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
4001
4001
  md: "size-avatar-sm rounded-md text-xs",
4002
4002
  lg: "size-avatar-lg rounded-md text-base"
4003
4003
  };
4004
- function An({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4004
+ function Ln({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4005
4005
  const l = He[t in He ? t : "note"];
4006
4006
  return /* @__PURE__ */ e(
4007
4007
  "span",
@@ -4018,7 +4018,7 @@ function An({ channel: t, children: r, size: n = "md", className: s, title: a })
4018
4018
  }
4019
4019
  );
4020
4020
  }
4021
- const Ln = ({
4021
+ const Pn = ({
4022
4022
  src: t,
4023
4023
  alt: r,
4024
4024
  size: n = "md",
@@ -4070,7 +4070,7 @@ const Ln = ({
4070
4070
  "rounded-full": a === "full"
4071
4071
  },
4072
4072
  x
4073
- ), I = d(
4073
+ ), P = d(
4074
4074
  "w-full h-full object-cover transition-opacity duration-fast",
4075
4075
  {
4076
4076
  "opacity-0": k || f,
@@ -4079,18 +4079,18 @@ const Ln = ({
4079
4079
  ), H = d(
4080
4080
  "absolute inset-0 flex items-center justify-center",
4081
4081
  "text-text-muted"
4082
- ), te = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), J = /* @__PURE__ */ i("div", { className: "text-center", children: [
4082
+ ), te = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), J = /* @__PURE__ */ c("div", { className: "text-center", children: [
4083
4083
  /* @__PURE__ */ e(Q, { icon: gt, size: "lg", className: "mx-auto mb-1" }),
4084
4084
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
4085
4085
  ] });
4086
- return /* @__PURE__ */ i("div", { className: V, children: [
4086
+ return /* @__PURE__ */ c("div", { className: V, children: [
4087
4087
  /* @__PURE__ */ e(
4088
4088
  "img",
4089
4089
  {
4090
4090
  ...v,
4091
4091
  src: C,
4092
4092
  alt: r,
4093
- className: I,
4093
+ className: P,
4094
4094
  onLoad: T,
4095
4095
  onError: G
4096
4096
  }
@@ -4104,7 +4104,7 @@ function In({
4104
4104
  onClick: r,
4105
4105
  children: n
4106
4106
  }) {
4107
- return /* @__PURE__ */ i(
4107
+ return /* @__PURE__ */ c(
4108
4108
  "button",
4109
4109
  {
4110
4110
  type: "button",
@@ -4122,7 +4122,7 @@ function In({
4122
4122
  }
4123
4123
  );
4124
4124
  }
4125
- function Pn({
4125
+ function jn({
4126
4126
  items: t,
4127
4127
  getRowKey: r,
4128
4128
  variant: n = "divided",
@@ -4146,14 +4146,14 @@ function Pn({
4146
4146
  bulkActions: T,
4147
4147
  header: G,
4148
4148
  stickyHeader: V = !1,
4149
- bordered: I = !1,
4149
+ bordered: P = !1,
4150
4150
  emptyContent: H,
4151
4151
  loading: te = !1,
4152
4152
  loadingRows: J = 4,
4153
4153
  className: K,
4154
4154
  "aria-label": ce
4155
4155
  }) {
4156
- const [w, c] = oe.useState(
4156
+ const [w, i] = oe.useState(
4157
4157
  () => Object.fromEntries(
4158
4158
  (b ?? []).filter((z) => z.defaultCollapsed).map((z) => [z.id, !0])
4159
4159
  )
@@ -4172,11 +4172,18 @@ function Pn({
4172
4172
  );
4173
4173
  }, re = (z) => q?.(z ? [...t] : []), ee = d(
4174
4174
  "flex flex-col",
4175
- I && "overflow-hidden rounded-lg border border-border-subtle",
4175
+ // With a selection open the list has a dock at its foot. Sticky can only
4176
+ // park at the bottom of its own box, so on a list shorter than the window
4177
+ // the dock hung right under the last row instead of at the bottom of the
4178
+ // screen. Growing the box to the height of its parent puts it where it
4179
+ // belongs — and only while a selection exists, so an ordinary short list
4180
+ // keeps its natural height.
4181
+ $ && C.length > 0 && "min-h-full",
4182
+ P && "overflow-hidden rounded-lg border border-border-subtle",
4176
4183
  K
4177
4184
  );
4178
4185
  if (te)
4179
- return /* @__PURE__ */ e("div", { className: ee, children: Array.from({ length: J }).map((z, F) => /* @__PURE__ */ i(
4186
+ return /* @__PURE__ */ e("div", { className: ee, children: Array.from({ length: J }).map((z, F) => /* @__PURE__ */ c(
4180
4187
  "div",
4181
4188
  {
4182
4189
  className: d(
@@ -4194,9 +4201,9 @@ function Pn({
4194
4201
  )) });
4195
4202
  if (t.length === 0 && H)
4196
4203
  return /* @__PURE__ */ e("div", { className: ee, children: H });
4197
- const Y = t.length > 0 && C.length === t.length, P = C.length > 0 && !Y, D = (z, F, j) => {
4204
+ const Y = t.length > 0 && C.length === t.length, I = C.length > 0 && !Y, D = (z, F, j) => {
4198
4205
  const B = u?.(z, F) ?? !1, M = y?.(z, F) ?? !1, L = x?.(z, F) ?? !1, Z = $ && N(z);
4199
- return /* @__PURE__ */ i(
4206
+ return /* @__PURE__ */ c(
4200
4207
  "li",
4201
4208
  {
4202
4209
  ...o ? {
@@ -4264,7 +4271,7 @@ function Pn({
4264
4271
  const L = z.get(B.id) ?? [], Z = g && w[B.id], ne = B.title ?? B.id, de = B.count ?? L.length, be = /* @__PURE__ */ e(
4265
4272
  "li",
4266
4273
  {
4267
- onClick: g ? () => c((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
4274
+ onClick: g ? () => i((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
4268
4275
  className: d(
4269
4276
  // A caption over its rows, not a band across the table: same
4270
4277
  // surface as the rows, no rules, and the count as a quiet pill.
@@ -4277,7 +4284,7 @@ function Pn({
4277
4284
  ),
4278
4285
  "aria-expanded": g ? !Z : void 0,
4279
4286
  style: k ? { top: V ? 28 : 0 } : void 0,
4280
- children: v ? v(B, L.map((fe) => fe.item)) : /* @__PURE__ */ i(ve, { children: [
4287
+ children: v ? v(B, L.map((fe) => fe.item)) : /* @__PURE__ */ c(ve, { children: [
4281
4288
  g && /* @__PURE__ */ e(
4282
4289
  ze,
4283
4290
  {
@@ -4311,8 +4318,8 @@ function Pn({
4311
4318
  ];
4312
4319
  });
4313
4320
  })();
4314
- return /* @__PURE__ */ i("div", { ref: S, className: ee, onKeyDown: o ? p : void 0, children: [
4315
- G && /* @__PURE__ */ i(
4321
+ return /* @__PURE__ */ c("div", { ref: S, className: ee, onKeyDown: o ? p : void 0, children: [
4322
+ G && /* @__PURE__ */ c(
4316
4323
  "div",
4317
4324
  {
4318
4325
  className: d(
@@ -4327,7 +4334,7 @@ function Pn({
4327
4334
  ye,
4328
4335
  {
4329
4336
  checked: Y,
4330
- indeterminate: P,
4337
+ indeterminate: I,
4331
4338
  onChange: (z) => re(z.target.checked),
4332
4339
  "aria-label": "Alles selecteren"
4333
4340
  }
@@ -4337,8 +4344,8 @@ function Pn({
4337
4344
  }
4338
4345
  ),
4339
4346
  /* @__PURE__ */ e("ul", { "aria-label": ce, className: "flex flex-col", children: A }),
4340
- $ && C.length > 0 && /* @__PURE__ */ e("div", { className: "pointer-events-none sticky bottom-0 z-10 flex justify-center px-5 pb-4", children: /* @__PURE__ */ i("div", { className: "pointer-events-auto flex items-center gap-1.5 rounded-lg bg-accent py-1.5 pl-3.5 pr-1.5 text-accent-fg shadow-overlay", children: [
4341
- /* @__PURE__ */ i("span", { className: "text-sm font-medium", children: [
4347
+ $ && C.length > 0 && /* @__PURE__ */ e("div", { className: "pointer-events-none sticky bottom-0 z-10 flex justify-center px-5 pb-4", children: /* @__PURE__ */ c("div", { className: "pointer-events-auto flex items-center gap-1.5 rounded-lg bg-accent py-1.5 pl-3.5 pr-1.5 text-accent-fg shadow-overlay", children: [
4348
+ /* @__PURE__ */ c("span", { className: "text-sm font-medium", children: [
4342
4349
  C.length,
4343
4350
  " geselecteerd"
4344
4351
  ] }),
@@ -4358,7 +4365,7 @@ function Pn({
4358
4365
  ] }) })
4359
4366
  ] });
4360
4367
  }
4361
- function jn({
4368
+ function On({
4362
4369
  side: t,
4363
4370
  continued: r = !1,
4364
4371
  tone: n = "default",
@@ -4400,13 +4407,13 @@ const Fr = {
4400
4407
  urgent: "text-danger-fg",
4401
4408
  success: "text-success-fg"
4402
4409
  };
4403
- function On({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4404
- return /* @__PURE__ */ i("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
4410
+ function Fn({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4411
+ return /* @__PURE__ */ c("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
4405
4412
  /* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Fr[n]), children: t }),
4406
4413
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
4407
4414
  ] });
4408
4415
  }
4409
- const Fn = ({
4416
+ const Bn = ({
4410
4417
  surface: t = !1,
4411
4418
  title: r,
4412
4419
  subtitle: n,
@@ -4433,7 +4440,7 @@ const Fn = ({
4433
4440
  }, q = (T) => {
4434
4441
  T.key === "Enter" ? f.current?.blur() : T.key === "Escape" && (g(r), v(!1));
4435
4442
  };
4436
- return /* @__PURE__ */ i(
4443
+ return /* @__PURE__ */ c(
4437
4444
  "div",
4438
4445
  {
4439
4446
  className: d(
@@ -4446,10 +4453,12 @@ const Fn = ({
4446
4453
  o
4447
4454
  ),
4448
4455
  children: [
4449
- /* @__PURE__ */ i("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
4450
- /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i("div", { className: "flex items-start gap-4 text-text", children: [
4451
- y && /* @__PURE__ */ e(ae, { variant: "outline", onClick: y, leftIcon: /* @__PURE__ */ e(Q, { icon: Ee, size: "sm" }), iconOnly: !0 }),
4452
- /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
4456
+ /* @__PURE__ */ c("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
4457
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c("div", { className: "flex items-start gap-4 text-text", children: [
4458
+ y && // Ghost: a framed box around a back chevron makes the way out of a
4459
+ // page look like the page's primary control.
4460
+ /* @__PURE__ */ e(ae, { variant: "ghost", onClick: y, leftIcon: /* @__PURE__ */ e(Q, { icon: Ee, size: "md" }), iconOnly: !0 }),
4461
+ /* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
4453
4462
  b ? /* @__PURE__ */ e(
4454
4463
  "input",
4455
4464
  {
@@ -4461,7 +4470,7 @@ const Fn = ({
4461
4470
  onKeyDown: q,
4462
4471
  className: "text-1xl font-semibold bg-transparent border-b-1 border-border rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0 w-full"
4463
4472
  }
4464
- ) : /* @__PURE__ */ i("div", { className: "group flex items-baseline gap-2.5 min-w-0", children: [
4473
+ ) : /* @__PURE__ */ c("div", { className: "group flex items-baseline gap-2.5 min-w-0", children: [
4465
4474
  /* @__PURE__ */ e(
4466
4475
  "h2",
4467
4476
  {
@@ -4569,7 +4578,7 @@ const Fn = ({
4569
4578
  th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
4570
4579
  td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
4571
4580
  };
4572
- function Bn({ text: t, className: r, as: n }) {
4581
+ function Rn({ text: t, className: r, as: n }) {
4573
4582
  const s = t ?? "";
4574
4583
  return (n ? n === "html" : Br.test(s)) ? /* @__PURE__ */ e(
4575
4584
  "div",
@@ -4579,21 +4588,21 @@ function Bn({ text: t, className: r, as: n }) {
4579
4588
  }
4580
4589
  ) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Ct, { remarkPlugins: [St], components: Hr, children: s }) });
4581
4590
  }
4582
- const Rn = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ i("div", { className: d("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
4591
+ const Hn = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
4583
4592
  /* @__PURE__ */ e("span", { className: "shrink-0 text-2xs font-semibold uppercase tracking-label text-text-subtle", children: t }),
4584
4593
  r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
4585
4594
  n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
4586
4595
  ] });
4587
- function Hn({ label: t, trailing: r, align: n = "center", className: s }) {
4596
+ function Vn({ label: t, trailing: r, align: n = "center", className: s }) {
4588
4597
  const a = /* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border-subtle", "aria-hidden": !0 });
4589
- return !t && !r ? /* @__PURE__ */ e("div", { className: d("flex items-center py-2", s), children: a }) : /* @__PURE__ */ i("div", { className: d("flex items-center gap-3 py-2", s), children: [
4598
+ return !t && !r ? /* @__PURE__ */ e("div", { className: d("flex items-center py-2", s), children: a }) : /* @__PURE__ */ c("div", { className: d("flex items-center gap-3 py-2", s), children: [
4590
4599
  n === "center" && a,
4591
4600
  /* @__PURE__ */ e("span", { className: "shrink-0 text-xs font-medium text-text-muted", children: t }),
4592
4601
  a,
4593
4602
  r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
4594
4603
  ] });
4595
4604
  }
4596
- function Vn({
4605
+ function qn({
4597
4606
  label: t,
4598
4607
  description: r,
4599
4608
  control: n,
@@ -4601,7 +4610,7 @@ function Vn({
4601
4610
  disabled: a = !1,
4602
4611
  className: l
4603
4612
  }) {
4604
- return /* @__PURE__ */ i(
4613
+ return /* @__PURE__ */ c(
4605
4614
  "div",
4606
4615
  {
4607
4616
  className: d(
@@ -4611,7 +4620,7 @@ function Vn({
4611
4620
  l
4612
4621
  ),
4613
4622
  children: [
4614
- /* @__PURE__ */ i("div", { className: "min-w-0", children: [
4623
+ /* @__PURE__ */ c("div", { className: "min-w-0", children: [
4615
4624
  /* @__PURE__ */ e("div", { className: "text-sm text-text", children: t }),
4616
4625
  r && /* @__PURE__ */ e("div", { className: "text-xs text-text-muted", children: r })
4617
4626
  ] }),
@@ -4620,7 +4629,7 @@ function Vn({
4620
4629
  }
4621
4630
  );
4622
4631
  }
4623
- function qn({
4632
+ function Un({
4624
4633
  icon: t,
4625
4634
  title: r,
4626
4635
  description: n,
@@ -4628,10 +4637,10 @@ function qn({
4628
4637
  children: a,
4629
4638
  className: l
4630
4639
  }) {
4631
- return /* @__PURE__ */ i("section", { className: d("flex flex-col gap-2", l), children: [
4632
- /* @__PURE__ */ i("div", { className: "flex items-start gap-2", children: [
4640
+ return /* @__PURE__ */ c("section", { className: d("flex flex-col gap-2", l), children: [
4641
+ /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
4633
4642
  t && /* @__PURE__ */ e(Q, { icon: t, size: "md", color: "secondary", className: "mt-0.5" }),
4634
- /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
4643
+ /* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
4635
4644
  /* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-text", children: r }),
4636
4645
  n && /* @__PURE__ */ e("p", { className: "text-xs text-text-muted", children: n })
4637
4646
  ] }),
@@ -4640,8 +4649,8 @@ function qn({
4640
4649
  /* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
4641
4650
  ] });
4642
4651
  }
4643
- function Un({ label: t, dotColor: r, onClick: n, className: s }) {
4644
- return /* @__PURE__ */ i(
4652
+ function Wn({ label: t, dotColor: r, onClick: n, className: s }) {
4653
+ return /* @__PURE__ */ c(
4645
4654
  "button",
4646
4655
  {
4647
4656
  type: "button",
@@ -4664,7 +4673,7 @@ function Vr(t, r) {
4664
4673
  t
4665
4674
  );
4666
4675
  }
4667
- const Wn = ({
4676
+ const Kn = ({
4668
4677
  groups: t,
4669
4678
  data: r,
4670
4679
  size: n = "md",
@@ -4698,12 +4707,12 @@ const Wn = ({
4698
4707
  className: "text-text-muted",
4699
4708
  children: "Geen items"
4700
4709
  }
4701
- ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((k, g) => /* @__PURE__ */ i(
4710
+ ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((k, g) => /* @__PURE__ */ c(
4702
4711
  "div",
4703
4712
  {
4704
4713
  className: "p-4 border border-border rounded-xl space-y-3",
4705
4714
  children: [
4706
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ i(
4715
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ c(
4707
4716
  me,
4708
4717
  {
4709
4718
  variant: "label",
@@ -4750,7 +4759,7 @@ const Wn = ({
4750
4759
  default:
4751
4760
  C = String($ || "-");
4752
4761
  }
4753
- return f.format && (C = f.format($, k)), /* @__PURE__ */ i("div", { className: "space-y-1", children: [
4762
+ return f.format && (C = f.format($, k)), /* @__PURE__ */ c("div", { className: "space-y-1", children: [
4754
4763
  /* @__PURE__ */ e(
4755
4764
  me,
4756
4765
  {
@@ -4847,12 +4856,12 @@ const Wn = ({
4847
4856
  },
4848
4857
  x.className
4849
4858
  );
4850
- return /* @__PURE__ */ i(
4859
+ return /* @__PURE__ */ c(
4851
4860
  "div",
4852
4861
  {
4853
4862
  className: "grid grid-cols-1 md:grid-cols-3 gap-8 p-6 border border-border rounded-xl",
4854
4863
  children: [
4855
- /* @__PURE__ */ i("div", { className: "md:col-span-1", children: [
4864
+ /* @__PURE__ */ c("div", { className: "md:col-span-1", children: [
4856
4865
  /* @__PURE__ */ e(
4857
4866
  me,
4858
4867
  {
@@ -4873,7 +4882,7 @@ const Wn = ({
4873
4882
  }
4874
4883
  )
4875
4884
  ] }),
4876
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: b, children: h.map((v) => /* @__PURE__ */ i(
4885
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: b, children: h.map((v) => /* @__PURE__ */ c(
4877
4886
  "div",
4878
4887
  {
4879
4888
  className: "space-y-1",
@@ -4913,11 +4922,23 @@ const Wn = ({
4913
4922
  s
4914
4923
  );
4915
4924
  return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(u) }) });
4916
- }, Xe = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
4925
+ }, qr = () => /* @__PURE__ */ c("div", { className: "flex flex-col gap-px", "aria-hidden": !0, children: [
4926
+ /* @__PURE__ */ e("div", { className: "px-2.5 pb-2 pt-5", children: /* @__PURE__ */ e("span", { className: "block h-2 w-16 rounded-xs bg-page-hover" }) }),
4927
+ [0, 1, 2, 3].map((t) => /* @__PURE__ */ c("div", { className: "flex h-row-md items-center gap-2.5 px-2.5", children: [
4928
+ /* @__PURE__ */ e("span", { className: "size-4 shrink-0 rounded-xs bg-page-hover" }),
4929
+ /* @__PURE__ */ e(
4930
+ "span",
4931
+ {
4932
+ className: "h-2 rounded-xs bg-page-hover",
4933
+ style: { width: `${[62, 44, 74, 52][t]}%` }
4934
+ }
4935
+ )
4936
+ ] }, t))
4937
+ ] }), Xe = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
4917
4938
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
4918
4939
  if (a)
4919
- return /* @__PURE__ */ i("li", { children: [
4920
- /* @__PURE__ */ i(
4940
+ return /* @__PURE__ */ c("li", { children: [
4941
+ /* @__PURE__ */ c(
4921
4942
  "div",
4922
4943
  {
4923
4944
  className: d(
@@ -4941,7 +4962,7 @@ const Wn = ({
4941
4962
  )) })
4942
4963
  ] });
4943
4964
  const o = t.action, m = o?.visibility !== "always";
4944
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
4965
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ c(
4945
4966
  "div",
4946
4967
  {
4947
4968
  role: "button",
@@ -4957,7 +4978,7 @@ const Wn = ({
4957
4978
  "group/item flex h-row-md cursor-pointer items-center gap-2.5 rounded-md px-2.5 text-base no-underline",
4958
4979
  "transition-colors duration-fast ease-out",
4959
4980
  "focus-visible:outline-none focus-visible:focus-ring",
4960
- l ? "bg-surface font-medium text-text shadow-sm" : "text-text-muted hover:bg-page-hover hover:text-text"
4981
+ l ? "bg-surface-hover font-medium text-text shadow-sm" : "text-text-muted hover:bg-page-hover hover:text-text"
4961
4982
  ),
4962
4983
  children: [
4963
4984
  t.icon && /* @__PURE__ */ e(
@@ -5005,25 +5026,29 @@ const Wn = ({
5005
5026
  ]
5006
5027
  }
5007
5028
  ) });
5008
- }, Kn = ({
5029
+ }, Gn = ({
5009
5030
  items: t,
5010
5031
  isSelectedHandler: r,
5011
5032
  onClick: n,
5012
- preMenuItemsComponent: s
5013
- }) => /* @__PURE__ */ i("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5033
+ preMenuItemsComponent: s,
5034
+ loading: a = !1
5035
+ }) => a ? /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5036
+ s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5037
+ /* @__PURE__ */ e(qr, {})
5038
+ ] }) : /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5014
5039
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5015
5040
  /* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-px overflow-y-auto", children: t.map(
5016
- (a, l) => !a.path && !a.label && !a.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, l) : /* @__PURE__ */ e(
5041
+ (l, o) => !l.path && !l.label && !l.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, o) : /* @__PURE__ */ e(
5017
5042
  Xe,
5018
5043
  {
5019
- item: a,
5044
+ item: l,
5020
5045
  isSelectedHandler: r,
5021
5046
  onClick: n
5022
5047
  },
5023
- l
5048
+ o
5024
5049
  )
5025
5050
  ) })
5026
- ] }), qr = {
5051
+ ] }), Ur = {
5027
5052
  xs: "text-xs",
5028
5053
  sm: "text-sm",
5029
5054
  md: "text-base",
@@ -5032,13 +5057,13 @@ const Wn = ({
5032
5057
  "2xl": "text-2xl",
5033
5058
  "3xl": "text-3xl",
5034
5059
  "4xl": "text-3xl"
5035
- }, Ur = {
5060
+ }, Wr = {
5036
5061
  light: "font-normal",
5037
5062
  normal: "font-normal",
5038
5063
  medium: "font-medium",
5039
5064
  semibold: "font-semibold",
5040
5065
  bold: "font-bold"
5041
- }, Wr = {
5066
+ }, Kr = {
5042
5067
  primary: "text-text",
5043
5068
  secondary: "text-text-muted",
5044
5069
  accent: "text-accent",
@@ -5048,11 +5073,11 @@ const Wn = ({
5048
5073
  info: "text-info-fg",
5049
5074
  neutral: "text-text",
5050
5075
  current: "text-current"
5051
- }, Kr = {
5076
+ }, Gr = {
5052
5077
  left: "text-left",
5053
5078
  center: "text-center",
5054
5079
  right: "text-right"
5055
- }, Gn = ({
5080
+ }, Jn = ({
5056
5081
  level: t = 1,
5057
5082
  size: r,
5058
5083
  weight: n = "semibold",
@@ -5065,16 +5090,16 @@ const Wn = ({
5065
5090
  }) => {
5066
5091
  const y = `h${t}`, x = d(
5067
5092
  "font-sans text-pretty",
5068
- qr[r || Gr(t)],
5069
- Ur[n],
5070
- Wr[s],
5071
- Kr[a],
5093
+ Ur[r || Jr(t)],
5094
+ Wr[n],
5095
+ Kr[s],
5096
+ Gr[a],
5072
5097
  l && "truncate",
5073
5098
  o
5074
5099
  );
5075
5100
  return /* @__PURE__ */ e(y, { className: x, ...u, children: m });
5076
5101
  };
5077
- function Gr(t) {
5102
+ function Jr(t) {
5078
5103
  return {
5079
5104
  1: "2xl",
5080
5105
  2: "xl",
@@ -5084,7 +5109,7 @@ function Gr(t) {
5084
5109
  6: "md"
5085
5110
  }[t] || "md";
5086
5111
  }
5087
- const Jn = ({
5112
+ const Yn = ({
5088
5113
  commands: t,
5089
5114
  isOpen: r,
5090
5115
  onClose: n,
@@ -5125,13 +5150,13 @@ const Jn = ({
5125
5150
  }, [r, n]), X(() => {
5126
5151
  if (!r) return;
5127
5152
  v.current?.querySelector(`[data-index="${x}"]`)?.scrollIntoView({ block: "nearest" });
5128
- }, [x, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */ i(
5153
+ }, [x, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */ c(
5129
5154
  "div",
5130
5155
  {
5131
5156
  className: "flex flex-col w-full max-w-lg max-h-dialog p-2 mx-auto rounded-lg border border-border shadow-modal bg-surface",
5132
5157
  ref: b,
5133
5158
  children: [
5134
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
5159
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
5135
5160
  /* @__PURE__ */ e(Me, { className: "w-4 h-4 text-text-muted shrink-0" }),
5136
5161
  /* @__PURE__ */ e(
5137
5162
  "input",
@@ -5145,14 +5170,14 @@ const Jn = ({
5145
5170
  }
5146
5171
  )
5147
5172
  ] }),
5148
- /* @__PURE__ */ i(
5173
+ /* @__PURE__ */ c(
5149
5174
  "div",
5150
5175
  {
5151
5176
  ref: v,
5152
5177
  className: "mt-2 pt-2 text-sm border-t border-border max-h-dialog-list overflow-y-auto",
5153
5178
  children: [
5154
5179
  g.length === 0 && /* @__PURE__ */ e("div", { className: "text-text-muted text-center text-sm", children: s?.noCommandsFound || "No commands found" }),
5155
- g.map((f, $) => /* @__PURE__ */ i(
5180
+ g.map((f, $) => /* @__PURE__ */ c(
5156
5181
  "div",
5157
5182
  {
5158
5183
  "data-index": $,
@@ -5172,16 +5197,16 @@ const Jn = ({
5172
5197
  ]
5173
5198
  }
5174
5199
  ),
5175
- /* @__PURE__ */ i("div", { className: "flex items-center gap-4 px-3 pt-2 mt-2 text-xs text-text-muted border-t border-border", children: [
5176
- /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
5200
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-4 px-3 pt-2 mt-2 text-xs text-text-muted border-t border-border", children: [
5201
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
5177
5202
  /* @__PURE__ */ e("kbd", { className: "inline-flex items-center justify-center min-w-5 px-1 py-0.5 rounded border border-border bg-surface-sunk text-xs font-medium not-italic", children: "↑↓" }),
5178
5203
  s?.navigate || "to navigate"
5179
5204
  ] }),
5180
- /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
5205
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
5181
5206
  /* @__PURE__ */ e("kbd", { className: "inline-flex items-center justify-center min-w-5 px-1 py-0.5 rounded border border-border bg-surface-sunk text-xs font-medium not-italic", children: "↵" }),
5182
5207
  s?.select || "to select"
5183
5208
  ] }),
5184
- /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
5209
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
5185
5210
  /* @__PURE__ */ e("kbd", { className: "inline-flex items-center justify-center min-w-5 px-1 py-0.5 rounded border border-border bg-surface-sunk text-xs font-medium not-italic", children: "Esc" }),
5186
5211
  s?.close || "to close"
5187
5212
  ] })
@@ -5189,7 +5214,7 @@ const Jn = ({
5189
5214
  ]
5190
5215
  }
5191
5216
  ) }) : null;
5192
- }, Jr = {
5217
+ }, Yr = {
5193
5218
  none: "p-0",
5194
5219
  xs: "p-1",
5195
5220
  sm: "p-2",
@@ -5197,7 +5222,7 @@ const Jn = ({
5197
5222
  lg: "p-6",
5198
5223
  xl: "p-8",
5199
5224
  "2xl": "p-12"
5200
- }, Yr = {
5225
+ }, Xr = {
5201
5226
  none: "m-0",
5202
5227
  xs: "m-1",
5203
5228
  sm: "m-2",
@@ -5205,7 +5230,7 @@ const Jn = ({
5205
5230
  lg: "m-6",
5206
5231
  xl: "m-8",
5207
5232
  "2xl": "m-12"
5208
- }, Xr = {
5233
+ }, Zr = {
5209
5234
  none: "",
5210
5235
  primary: "bg-accent text-accent-fg",
5211
5236
  secondary: "bg-surface-hover",
@@ -5221,26 +5246,26 @@ const Jn = ({
5221
5246
  backdrop: "bg-page",
5222
5247
  editor: "bg-surface",
5223
5248
  input: "bg-surface-input"
5224
- }, Zr = {
5249
+ }, Qr = {
5225
5250
  none: "rounded-none",
5226
5251
  sm: "rounded-sm",
5227
5252
  md: "rounded-md",
5228
5253
  lg: "rounded-lg",
5229
5254
  xl: "rounded-xl",
5230
5255
  full: "rounded-full"
5231
- }, Qr = {
5256
+ }, en = {
5232
5257
  none: "shadow-none",
5233
5258
  sm: "shadow-none",
5234
5259
  md: "shadow-overlay",
5235
5260
  lg: "shadow-overlay",
5236
5261
  xl: "shadow-modal",
5237
5262
  "2xl": "shadow-modal"
5238
- }, en = {
5263
+ }, tn = {
5239
5264
  none: "border-0",
5240
5265
  sm: "border",
5241
5266
  md: "border-2",
5242
5267
  lg: "border-4"
5243
- }, tn = {
5268
+ }, rn = {
5244
5269
  primary: "border-accent-border",
5245
5270
  secondary: "border-border",
5246
5271
  accent: "border-accent-border",
@@ -5267,13 +5292,13 @@ const Jn = ({
5267
5292
  {
5268
5293
  ref: x,
5269
5294
  className: d(
5270
- t && Jr[t],
5271
- r && Yr[r],
5272
- n && Xr[n],
5273
- s && Zr[s],
5274
- a && Qr[a],
5275
- l && en[l],
5276
- o && tn[o],
5295
+ t && Yr[t],
5296
+ r && Xr[r],
5297
+ n && Zr[n],
5298
+ s && Qr[s],
5299
+ a && en[a],
5300
+ l && tn[l],
5301
+ o && rn[o],
5277
5302
  m
5278
5303
  ),
5279
5304
  ...y,
@@ -5282,7 +5307,7 @@ const Jn = ({
5282
5307
  )
5283
5308
  );
5284
5309
  Ze.displayName = "Box";
5285
- const Yn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5310
+ const Xn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
5286
5311
  Ze,
5287
5312
  {
5288
5313
  background: "module",
@@ -5297,7 +5322,7 @@ const Yn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5297
5322
  ]
5298
5323
  }
5299
5324
  );
5300
- function Xn({
5325
+ function Zn({
5301
5326
  identifier: t,
5302
5327
  resourceLoader: r,
5303
5328
  framework: n = "react",
@@ -5343,13 +5368,13 @@ function Xn({
5343
5368
  }
5344
5369
  }, [b, n, u]), X(() => {
5345
5370
  n === "svelte" && k.current && k.current.$set?.(l);
5346
- }, [l, n]), /* @__PURE__ */ i("div", { ref: m, className: o, style: { display: "contents" }, children: [
5371
+ }, [l, n]), /* @__PURE__ */ c("div", { ref: m, className: o, style: { display: "contents" }, children: [
5347
5372
  u && s,
5348
5373
  !u && x && a,
5349
5374
  n === "react" && !x && b && /* @__PURE__ */ e(b, { ...l })
5350
5375
  ] });
5351
5376
  }
5352
- class Zn extends wt {
5377
+ class Qn extends wt {
5353
5378
  constructor() {
5354
5379
  super(...arguments), this.state = {
5355
5380
  hasError: !1,
@@ -5363,7 +5388,7 @@ class Zn extends wt {
5363
5388
  console.error(`[ErrorBoundary] Error in ${this.props.name || "Component"}:`, r, n);
5364
5389
  }
5365
5390
  render() {
5366
- return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ i("div", { className: "p-4 m-4 border border-danger-border bg-danger-soft rounded-lg", children: [
5391
+ return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ c("div", { className: "p-4 m-4 border border-danger-border bg-danger-soft rounded-lg", children: [
5367
5392
  /* @__PURE__ */ e("h2", { className: "text-lg font-semibold text-danger-fg", children: "Something went wrong" }),
5368
5393
  /* @__PURE__ */ e("p", { className: "text-sm text-danger-fg mt-1", children: this.props.name ? `Error in ${this.props.name}` : "The component failed to render." }),
5369
5394
  /* @__PURE__ */ e(
@@ -5378,75 +5403,75 @@ class Zn extends wt {
5378
5403
  }
5379
5404
  }
5380
5405
  export {
5381
- Tn as AssistantCard,
5382
- Pr as Avatar,
5383
- _n as AvatarStack,
5384
- Cn as Badge,
5406
+ _n as AssistantCard,
5407
+ Ir as Avatar,
5408
+ An as AvatarStack,
5409
+ Sn as Badge,
5385
5410
  Ze as Box,
5386
5411
  ae as Button,
5387
- bn as ButtonGroup,
5388
- Yn as Card,
5389
- An as ChannelBadge,
5412
+ gn as ButtonGroup,
5413
+ Xn as Card,
5414
+ Ln as ChannelBadge,
5390
5415
  ye as Checkbox,
5391
- Jn as CommandPalette,
5392
- kn as ConfirmDialog,
5416
+ Yn as CommandPalette,
5417
+ Cn as ConfirmDialog,
5393
5418
  rr as ContentLoading,
5394
5419
  Ae as DatePicker,
5395
5420
  nr as Dropdown,
5396
- Sn as EmptyState,
5397
- Zn as ErrorBoundary,
5398
- Xn as FederatedResource,
5421
+ En as EmptyState,
5422
+ Qn as ErrorBoundary,
5423
+ Zn as FederatedResource,
5399
5424
  Lt as FilterChip,
5400
5425
  Yt as FolderSelect,
5401
- wn as Form,
5426
+ kn as Form,
5402
5427
  wr as FormSection,
5403
- Gn as Heading,
5428
+ Jn as Heading,
5404
5429
  Q as Icon,
5405
- Ln as Image,
5406
- En as Kbd,
5407
- On as KpiCard,
5408
- gn as Link,
5409
- Pn as List,
5430
+ Pn as Image,
5431
+ zn as Kbd,
5432
+ Fn as KpiCard,
5433
+ pn as Link,
5434
+ jn as List,
5410
5435
  In as ListBulkAction,
5411
- fn as MeetingGrid,
5412
- jn as MessageBubble,
5436
+ hn as MeetingGrid,
5437
+ On as MessageBubble,
5413
5438
  Ye as Modal,
5414
- Fn as PageHeader,
5415
- pn as PageToolbar,
5439
+ Bn as PageHeader,
5440
+ vn as PageToolbar,
5416
5441
  Je as PageToolbarActions,
5417
- hn as ParticipantTile,
5442
+ xn as ParticipantTile,
5418
5443
  Ve as Popover,
5419
- zn as ProgressBar,
5420
- Bn as RichText,
5444
+ Mn as ProgressBar,
5445
+ Rn as RichText,
5421
5446
  Ge as SearchField,
5422
5447
  er as SearchableTextField,
5423
- Rn as SectionCaption,
5424
- Hn as SectionDivider,
5448
+ Hn as SectionCaption,
5449
+ Vn as SectionDivider,
5425
5450
  Ft as SegmentedToggle,
5426
5451
  Ce as Select,
5427
- Vn as SettingsRow,
5428
- qn as SettingsSection,
5429
- Kn as SidebarMenu,
5430
- Un as SourceChip,
5431
- Mn as Spinner,
5452
+ qn as SettingsRow,
5453
+ Un as SettingsSection,
5454
+ Gn as SidebarMenu,
5455
+ Wn as SourceChip,
5456
+ $n as Spinner,
5432
5457
  qe as SplitButton,
5433
- $n as StatusDot,
5434
- Dn as StepIndicator,
5458
+ Dn as StatusDot,
5459
+ Tn as StepIndicator,
5435
5460
  pr as StorageInput,
5436
5461
  tr as Switch,
5437
- Nn as TabBar,
5462
+ wn as TabBar,
5438
5463
  Fe as Table,
5439
5464
  dr as Tabs,
5440
5465
  me as Text,
5441
5466
  Le as TextArea,
5442
5467
  Ne as TextField,
5443
- xn as VideoSurface,
5444
- Wn as View,
5445
- mn as catTone,
5468
+ bn as VideoSurface,
5469
+ Kn as View,
5470
+ fn as catTone,
5446
5471
  d as cn,
5447
- un as createSizes,
5448
- dn as createVariants,
5449
- vn as dateFilterHandler,
5450
- yn as selectFilterHandler
5472
+ mn as createSizes,
5473
+ un as createVariants,
5474
+ yn as dateFilterHandler,
5475
+ Nn as selectFilterHandler
5451
5476
  };
5452
5477
  //# sourceMappingURL=index.js.map