@opencxh/ui-kit 3.137.5 → 3.137.8

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,64 +522,70 @@ 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: [
526
- /* @__PURE__ */ e(
527
- ae,
528
- {
529
- variant: n,
530
- size: s,
531
- onClick: r,
532
- disabled: o,
533
- loading: m,
534
- leftIcon: a,
535
- className: d(h && "rounded-r-none"),
536
- children: t
537
- }
538
- ),
539
- h && /* @__PURE__ */ e(
540
- Ve,
541
- {
542
- placement: u,
543
- disabled: x,
544
- triggerLabel: y,
545
- className: "min-w-menu py-1",
546
- trigger: /* @__PURE__ */ e(
547
- "span",
548
- {
549
- "aria-hidden": "true",
550
- className: d(
551
- "inline-flex items-center justify-center rounded-md rounded-l-none",
552
- "transition-colors duration-fast ease-out",
553
- Bt[n],
554
- Rt[s],
555
- x && "cursor-not-allowed opacity-50"
556
- ),
557
- children: /* @__PURE__ */ e(Se, { className: "size-icon-md" })
558
- }
559
- ),
560
- children: (b) => /* @__PURE__ */ e(ve, { children: l.map((v) => /* @__PURE__ */ i(
561
- "button",
562
- {
563
- type: "button",
564
- onClick: () => {
565
- v.onClick(), b();
525
+ return (
526
+ // De scheiding tussen beide helften is een kier in de vulling, niet een
527
+ // lijn: bij een ink-gevulde knop leest 2px als een spleet. 1px is genoeg
528
+ // om te zien dat het twee doelen zijn. De omrande varianten hebben hun
529
+ // eigen randen al en houden de helften tegen elkaar.
530
+ /* @__PURE__ */ c("div", { className: d("inline-flex items-center", n === "primary" && "gap-px"), children: [
531
+ /* @__PURE__ */ e(
532
+ ae,
533
+ {
534
+ variant: n,
535
+ size: s,
536
+ onClick: r,
537
+ disabled: o,
538
+ loading: m,
539
+ leftIcon: a,
540
+ className: d(h && "rounded-r-none"),
541
+ children: t
542
+ }
543
+ ),
544
+ h && /* @__PURE__ */ e(
545
+ Ve,
546
+ {
547
+ placement: u,
548
+ disabled: x,
549
+ triggerLabel: y,
550
+ className: "min-w-menu py-1",
551
+ trigger: /* @__PURE__ */ e(
552
+ "span",
553
+ {
554
+ "aria-hidden": "true",
555
+ className: d(
556
+ "inline-flex items-center justify-center rounded-md rounded-l-none",
557
+ "transition-colors duration-fast ease-out",
558
+ Bt[n],
559
+ Rt[s],
560
+ x && "cursor-not-allowed opacity-50"
561
+ ),
562
+ children: /* @__PURE__ */ e(Se, { className: "size-icon-md" })
563
+ }
564
+ ),
565
+ children: (b) => /* @__PURE__ */ e(ve, { children: l.map((v) => /* @__PURE__ */ c(
566
+ "button",
567
+ {
568
+ type: "button",
569
+ onClick: () => {
570
+ v.onClick(), b();
571
+ },
572
+ className: d(
573
+ "flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm",
574
+ "transition-colors duration-fast ease-out",
575
+ "focus-visible:outline-none focus-visible:focus-ring",
576
+ v.variant === "destructive" ? "text-danger-fg hover:bg-danger-soft" : "text-text hover:bg-surface-hover"
577
+ ),
578
+ children: [
579
+ v.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: v.icon }),
580
+ v.label
581
+ ]
566
582
  },
567
- className: d(
568
- "flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm",
569
- "transition-colors duration-fast ease-out",
570
- "focus-visible:outline-none focus-visible:focus-ring",
571
- v.variant === "destructive" ? "text-danger-fg hover:bg-danger-soft" : "text-text hover:bg-surface-hover"
572
- ),
573
- children: [
574
- v.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: v.icon }),
575
- v.label
576
- ]
577
- },
578
- v.id
579
- )) })
580
- }
581
- )
582
- ] });
583
+ v.id
584
+ )) })
585
+ }
586
+ )
587
+ ] })
588
+ );
583
589
  }
584
590
  const Ht = {
585
591
  sm: "size-checkbox-sm",
@@ -617,8 +623,8 @@ const Ht = {
617
623
  );
618
624
  return oe.useEffect(() => {
619
625
  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: [
626
+ }, [a]), /* @__PURE__ */ c("div", { className: d("flex flex-col", l), children: [
627
+ /* @__PURE__ */ c("div", { className: d("flex items-center gap-3", Vt[s]), children: [
622
628
  /* @__PURE__ */ e(
623
629
  "input",
624
630
  {
@@ -642,7 +648,7 @@ const Ht = {
642
648
  ...y
643
649
  }
644
650
  ),
645
- t && /* @__PURE__ */ i("div", { className: "flex-1", children: [
651
+ t && /* @__PURE__ */ c("div", { className: "flex-1", children: [
646
652
  /* @__PURE__ */ e(
647
653
  "label",
648
654
  {
@@ -679,37 +685,37 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
679
685
  }, h) => {
680
686
  const [b, v] = O(!1), [k, g] = O(() => t || /* @__PURE__ */ new Date()), f = se(null), $ = se(null), C = $e(b, $);
681
687
  X(() => {
682
- const c = (S) => {
688
+ const i = (S) => {
683
689
  f.current && !f.current.contains(S.target) && v(!1);
684
690
  };
685
- return b && document.addEventListener("mousedown", c), () => {
686
- document.removeEventListener("mousedown", c);
691
+ return b && document.addEventListener("mousedown", i), () => {
692
+ document.removeEventListener("mousedown", i);
687
693
  };
688
694
  }, [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);
695
+ const q = (i) => {
696
+ if (!i) return "";
697
+ 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}/${_}`;
698
+ return x ? `${N} ${T(i)}` : N;
699
+ }, T = (i) => `${i.getHours().toString().padStart(2, "0")}:${i.getMinutes().toString().padStart(2, "0")}`, G = (i) => {
700
+ const [S, p] = i.split(":").map(Number);
695
701
  if (Number.isNaN(S) || Number.isNaN(p)) return;
696
702
  const _ = t ? new Date(t) : /* @__PURE__ */ new Date();
697
703
  _.setHours(S, p, 0, 0), r?.(_);
698
704
  }, V = () => {
699
- const c = k.getFullYear(), S = k.getMonth(), p = new Date(c, S, 1), _ = new Date(p);
705
+ const i = k.getFullYear(), S = k.getMonth(), p = new Date(i, S, 1), _ = new Date(p);
700
706
  _.setDate(_.getDate() - p.getDay());
701
707
  const N = [], U = new Date(_);
702
708
  for (let re = 0; re < 42; re++)
703
709
  N.push(new Date(U)), U.setDate(U.getDate() + 1);
704
710
  return N;
705
- }, I = (c) => {
706
- if (c.getMonth() === k.getMonth() && !(m && c < m) && !(u && c > u)) {
711
+ }, P = (i) => {
712
+ if (i.getMonth() === k.getMonth() && !(m && i < m) && !(u && i > u)) {
707
713
  if (x) {
708
- const p = new Date(c);
714
+ const p = new Date(i);
709
715
  p.setHours(t?.getHours() ?? 0, t?.getMinutes() ?? 0, 0, 0), r?.(p);
710
716
  return;
711
717
  }
712
- r?.(c), v(!1);
718
+ r?.(i), v(!1);
713
719
  }
714
720
  }, H = () => {
715
721
  g(new Date(k.getFullYear(), k.getMonth() - 1, 1));
@@ -744,8 +750,8 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
744
750
  "November",
745
751
  "December"
746
752
  ];
747
- return /* @__PURE__ */ i("div", { ref: f, className: "relative", children: [
748
- /* @__PURE__ */ i("div", { ref: $, className: "relative", children: [
753
+ return /* @__PURE__ */ c("div", { ref: f, className: "relative", children: [
754
+ /* @__PURE__ */ c("div", { ref: $, className: "relative", children: [
749
755
  /* @__PURE__ */ e(
750
756
  "input",
751
757
  {
@@ -771,8 +777,8 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
771
777
  }
772
778
  )
773
779
  ] }),
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: [
780
+ 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: [
781
+ /* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
776
782
  /* @__PURE__ */ e(
777
783
  "button",
778
784
  {
@@ -781,7 +787,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
781
787
  children: /* @__PURE__ */ e(Wt, {})
782
788
  }
783
789
  ),
784
- /* @__PURE__ */ i("h3", { className: "text-sm font-medium text-text", children: [
790
+ /* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
785
791
  w[k.getMonth()],
786
792
  " ",
787
793
  k.getFullYear()
@@ -795,13 +801,13 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
795
801
  }
796
802
  )
797
803
  ] }),
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;
804
+ /* @__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)) }),
805
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: ce.map((i, S) => {
806
+ 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
807
  return /* @__PURE__ */ e(
802
808
  "button",
803
809
  {
804
- onClick: () => !U && I(c),
810
+ onClick: () => !U && P(i),
805
811
  disabled: U,
806
812
  className: d(
807
813
  "w-8 h-8 text-sm rounded transition-colors duration-fast",
@@ -812,12 +818,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
812
818
  "text-text-muted cursor-not-allowed": U
813
819
  }
814
820
  ),
815
- children: c.getDate()
821
+ children: i.getDate()
816
822
  },
817
823
  S
818
824
  );
819
825
  }) }),
820
- x && /* @__PURE__ */ i("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-3", children: [
826
+ x && /* @__PURE__ */ c("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-3", children: [
821
827
  /* @__PURE__ */ e("label", { htmlFor: "datepicker-time", className: "text-sm text-text-muted", children: "Tijd" }),
822
828
  /* @__PURE__ */ e(
823
829
  "input",
@@ -825,12 +831,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
825
831
  id: "datepicker-time",
826
832
  type: "time",
827
833
  value: t ? T(t) : "",
828
- onChange: (c) => G(c.target.value),
834
+ onChange: (i) => G(i.target.value),
829
835
  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
836
  }
831
837
  )
832
838
  ] }),
833
- /* @__PURE__ */ i("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-border", children: [
839
+ /* @__PURE__ */ c("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-border", children: [
834
840
  /* @__PURE__ */ e(
835
841
  "button",
836
842
  {
@@ -877,10 +883,10 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
877
883
  onCreateOption: $,
878
884
  ...C
879
885
  }, 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);
886
+ 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
887
  oe.useImperativeHandle(q, () => J.current), oe.useEffect(() => {
882
888
  const D = (A) => {
883
- J.current && !J.current.contains(A.target) && I(!1);
889
+ J.current && !J.current.contains(A.target) && P(!1);
884
890
  };
885
891
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
886
892
  }, []);
@@ -900,7 +906,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
900
906
  [S]
901
907
  );
902
908
  oe.useEffect(() => {
903
- c((D) => {
909
+ i((D) => {
904
910
  const A = [...o];
905
911
  return D.forEach((z) => {
906
912
  !S(A, z.value) && !S(A, z.label) && A.push(z);
@@ -912,7 +918,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
912
918
  const A = Array.isArray(k) ? k : [], z = A.includes(D) ? A.filter((F) => F !== D) : [...A, D];
913
919
  g?.(z);
914
920
  } else
915
- g?.(D), I(!1), te("");
921
+ g?.(D), P(!1), te("");
916
922
  }, N = v ? null : w.find((D) => D.value === k), U = v ? w.filter(
917
923
  (D) => Array.isArray(k) && k.includes(D.value)
918
924
  ) : [], re = b && H ? w.filter(
@@ -925,12 +931,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
925
931
  label: A
926
932
  };
927
933
  if (S(w, z.value) || S(w, z.label)) {
928
- _(z.value), te(""), v || I(!1);
934
+ _(z.value), te(""), v || P(!1);
929
935
  return;
930
936
  }
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(
937
+ i((F) => [...F, z]), _(z.value), te(""), v || P(!1);
938
+ }, I = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : m || "Select options" : N?.label || m || "Select an option";
939
+ return /* @__PURE__ */ c(
934
940
  "div",
935
941
  {
936
942
  ref: J,
@@ -945,7 +951,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
945
951
  "label",
946
952
  {
947
953
  htmlFor: T,
948
- onClick: () => I(!V),
954
+ onClick: () => P(!V),
949
955
  className: d(
950
956
  "block text-xs font-semibold uppercase tracking-label mb-1.5",
951
957
  G ? "text-danger-fg" : "text-text-muted",
@@ -954,15 +960,15 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
954
960
  children: t
955
961
  }
956
962
  ),
957
- /* @__PURE__ */ i("div", { className: "relative", children: [
958
- /* @__PURE__ */ i(
963
+ /* @__PURE__ */ c("div", { className: "relative", children: [
964
+ /* @__PURE__ */ c(
959
965
  "button",
960
966
  {
961
967
  ref: K,
962
968
  type: "button",
963
969
  id: T,
964
970
  disabled: l,
965
- onClick: () => I(!V),
971
+ onClick: () => P(!V),
966
972
  className: d(
967
973
  "flex w-full items-center justify-between gap-2 rounded-tile border transition-colors duration-fast text-left",
968
974
  "focus-visible:outline-none focus-visible:focus-ring",
@@ -973,7 +979,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
973
979
  x
974
980
  ),
975
981
  children: [
976
- /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: P() }),
982
+ /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: I() }),
977
983
  /* @__PURE__ */ e(
978
984
  ot,
979
985
  {
@@ -987,7 +993,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
987
993
  ]
988
994
  }
989
995
  ),
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: [
996
+ 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
997
  b && /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e(
992
998
  "input",
993
999
  {
@@ -1004,7 +1010,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1004
1010
  )
1005
1011
  }
1006
1012
  ) }),
1007
- ee && /* @__PURE__ */ i(
1013
+ ee && /* @__PURE__ */ c(
1008
1014
  "div",
1009
1015
  {
1010
1016
  className: d(
@@ -1019,13 +1025,13 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1019
1025
  ]
1020
1026
  }
1021
1027
  ),
1022
- /* @__PURE__ */ i("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
1028
+ /* @__PURE__ */ c("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
1023
1029
  m && !v && /* @__PURE__ */ e(
1024
1030
  "li",
1025
1031
  {
1026
1032
  className: "cursor-pointer px-3 py-1.5 text-sm text-text-muted hover:bg-surface-hover",
1027
1033
  onClick: () => {
1028
- g?.(""), I(!1);
1034
+ g?.(""), P(!1);
1029
1035
  },
1030
1036
  children: m
1031
1037
  }
@@ -1042,7 +1048,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1042
1048
  D.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover",
1043
1049
  A && "bg-accent-soft text-accent font-semibold"
1044
1050
  ),
1045
- children: /* @__PURE__ */ i("div", { className: "flex items-center", children: [
1051
+ children: /* @__PURE__ */ c("div", { className: "flex items-center", children: [
1046
1052
  v && /* @__PURE__ */ e(
1047
1053
  "input",
1048
1054
  {
@@ -1099,7 +1105,7 @@ const Jt = {
1099
1105
  ...b
1100
1106
  }, v) => {
1101
1107
  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: [
1108
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col", a && "w-full", u), children: [
1103
1109
  t && /* @__PURE__ */ e(
1104
1110
  "label",
1105
1111
  {
@@ -1112,7 +1118,7 @@ const Jt = {
1112
1118
  children: t
1113
1119
  }
1114
1120
  ),
1115
- /* @__PURE__ */ i("div", { className: "relative", children: [
1121
+ /* @__PURE__ */ c("div", { className: "relative", children: [
1116
1122
  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
1123
  /* @__PURE__ */ e(
1118
1124
  "input",
@@ -1173,7 +1179,7 @@ function Yt({
1173
1179
  };
1174
1180
  }, []);
1175
1181
  const x = t ?? {};
1176
- return /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
1182
+ return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
1177
1183
  /* @__PURE__ */ e(
1178
1184
  Ce,
1179
1185
  {
@@ -1229,23 +1235,23 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1229
1235
  onChange: $,
1230
1236
  ...C
1231
1237
  }, 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);
1238
+ 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
1239
  X(() => {
1234
1240
  f !== void 0 && te(f);
1235
1241
  }, [f]);
1236
1242
  const p = pe(() => {
1237
- if (g && !c || !H) return h;
1238
- const P = String(H).toLowerCase();
1243
+ if (g && !i || !H) return h;
1244
+ const I = String(H).toLowerCase();
1239
1245
  return h.filter(
1240
- (D) => String(D.label).toLowerCase().includes(P)
1246
+ (D) => String(D.label).toLowerCase().includes(I)
1241
1247
  );
1242
- }, [H, h, g, c]);
1248
+ }, [H, h, g, i]);
1243
1249
  X(() => {
1244
1250
  if (!b || !H) {
1245
1251
  w(!1);
1246
1252
  return;
1247
1253
  }
1248
- const P = setTimeout(async () => {
1254
+ const I = setTimeout(async () => {
1249
1255
  w(!0);
1250
1256
  try {
1251
1257
  await b(String(H));
@@ -1256,23 +1262,23 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1256
1262
  }
1257
1263
  }, k);
1258
1264
  return () => {
1259
- clearTimeout(P), w(!1);
1265
+ clearTimeout(I), w(!1);
1260
1266
  };
1261
1267
  }, [H, k, b]), X(() => {
1262
- const P = (D) => {
1268
+ const I = (D) => {
1263
1269
  V.current && !V.current.contains(D.target) && K(!1);
1264
1270
  };
1265
- return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
1271
+ return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
1266
1272
  }, []);
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);
1273
+ const _ = (I) => {
1274
+ const D = I.target.value;
1275
+ te(D), K(!0), S(!0), $ && $(I);
1276
+ }, N = (I) => {
1277
+ te(I.label), K(!1), S(!1), v && v(I.value);
1272
1278
  }, U = () => {
1273
1279
  (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(
1280
+ }, re = o || ce, ee = J && (p.length > 0 || re), Y = pe(() => q || P, [q]);
1281
+ return /* @__PURE__ */ c(
1276
1282
  "div",
1277
1283
  {
1278
1284
  className: ge(
@@ -1295,7 +1301,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1295
1301
  children: t
1296
1302
  }
1297
1303
  ),
1298
- /* @__PURE__ */ i("div", { className: "relative", children: [
1304
+ /* @__PURE__ */ c("div", { className: "relative", children: [
1299
1305
  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
1306
  /* @__PURE__ */ e(
1301
1307
  "input",
@@ -1343,7 +1349,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1343
1349
  J ? "rotate-180" : "rotate-0"
1344
1350
  ),
1345
1351
  onClick: () => {
1346
- K((P) => (P || S(!1), !P));
1352
+ K((I) => (I || S(!1), !I));
1347
1353
  }
1348
1354
  }
1349
1355
  )
@@ -1354,16 +1360,16 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1354
1360
  {
1355
1361
  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
1362
  role: "listbox",
1357
- children: p.length > 0 ? p.map((P) => /* @__PURE__ */ e(
1363
+ children: p.length > 0 ? p.map((I) => /* @__PURE__ */ e(
1358
1364
  "li",
1359
1365
  {
1360
1366
  className: "px-4 py-2 cursor-pointer text-text hover:bg-accent-soft hover:text-accent transition-colors",
1361
- onClick: () => N(P),
1367
+ onClick: () => N(I),
1362
1368
  role: "option",
1363
- "aria-selected": H === P.label,
1364
- children: P.label
1369
+ "aria-selected": H === I.label,
1370
+ children: I.label
1365
1371
  },
1366
- P.value
1372
+ I.value
1367
1373
  )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-text-muted", children: re || o ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
1368
1374
  }
1369
1375
  ),
@@ -1377,7 +1383,7 @@ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1377
1383
  children: n || r
1378
1384
  }
1379
1385
  ),
1380
- b && /* @__PURE__ */ i("p", { className: "mt-2 text-xs text-success-fg", children: [
1386
+ b && /* @__PURE__ */ c("p", { className: "mt-2 text-xs text-success-fg", children: [
1381
1387
  "Huidige zoekterm (niet-gedebounced): ",
1382
1388
  String(H)
1383
1389
  ] })
@@ -1398,7 +1404,7 @@ const Ge = xe(
1398
1404
  className: o,
1399
1405
  disabled: m,
1400
1406
  ...u
1401
- }, y) => /* @__PURE__ */ i(
1407
+ }, y) => /* @__PURE__ */ c(
1402
1408
  "div",
1403
1409
  {
1404
1410
  className: d(
@@ -1476,7 +1482,7 @@ const tr = xe(
1476
1482
  )
1477
1483
  }
1478
1484
  );
1479
- return /* @__PURE__ */ i(
1485
+ return /* @__PURE__ */ c(
1480
1486
  "label",
1481
1487
  {
1482
1488
  className: d(
@@ -1514,15 +1520,15 @@ function rr({
1514
1520
  tableRows: a = 8
1515
1521
  }) {
1516
1522
  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: [
1523
+ 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: [
1524
+ !n && /* @__PURE__ */ c(ve, { children: [
1519
1525
  /* @__PURE__ */ e("div", { className: "h-6 w-1/4 rounded-sm bg-surface-hover" }),
1520
- /* @__PURE__ */ i("div", { className: "space-y-2", children: [
1526
+ /* @__PURE__ */ c("div", { className: "space-y-2", children: [
1521
1527
  /* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded-sm bg-surface-hover" }),
1522
1528
  /* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded-sm bg-surface-hover" })
1523
1529
  ] })
1524
1530
  ] }),
1525
- n && /* @__PURE__ */ i("div", { className: "rounded-lg overflow-hidden", children: [
1531
+ n && /* @__PURE__ */ c("div", { className: "rounded-lg overflow-hidden", children: [
1526
1532
  /* @__PURE__ */ e(
1527
1533
  "div",
1528
1534
  {
@@ -1572,35 +1578,35 @@ const nr = ({
1572
1578
  X(() => {
1573
1579
  y && G()[0]?.focus();
1574
1580
  }, [y]);
1575
- const V = (c) => {
1576
- if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key)) return;
1581
+ const V = (i) => {
1582
+ if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
1577
1583
  const p = G();
1578
1584
  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;
1585
+ i.preventDefault();
1586
+ 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
1587
  p[N]?.focus();
1582
1588
  };
1583
1589
  X(() => {
1584
- const c = (S) => {
1590
+ const i = (S) => {
1585
1591
  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
1592
  };
1587
- return y && document.addEventListener("mousedown", c), () => {
1588
- document.removeEventListener("mousedown", c);
1593
+ return y && document.addEventListener("mousedown", i), () => {
1594
+ document.removeEventListener("mousedown", i);
1589
1595
  };
1590
1596
  }, [y]), X(() => {
1591
- const c = (S) => {
1597
+ const i = (S) => {
1592
1598
  S.key === "Escape" && (x(!1), b(null), f.current?.focus(), T.current && (clearTimeout(T.current), T.current = null));
1593
1599
  };
1594
- return y && document.addEventListener("keydown", c), () => {
1595
- document.removeEventListener("keydown", c);
1600
+ return y && document.addEventListener("keydown", i), () => {
1601
+ document.removeEventListener("keydown", i);
1596
1602
  };
1597
1603
  }, [y]), X(() => {
1598
1604
  if (h && g.current) {
1599
- const c = g.current.querySelector(
1605
+ const i = g.current.querySelector(
1600
1606
  `[data-option-value="${h}"]`
1601
1607
  );
1602
- if (c) {
1603
- const S = c.getBoundingClientRect();
1608
+ if (i) {
1609
+ const S = i.getBoundingClientRect();
1604
1610
  k({
1605
1611
  top: S.top,
1606
1612
  left: S.right + 8
@@ -1610,18 +1616,18 @@ const nr = ({
1610
1616
  }, [h]), X(() => () => {
1611
1617
  T.current && clearTimeout(T.current);
1612
1618
  }, []);
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(() => {
1619
+ const P = (i) => {
1620
+ i.stopPropagation(), !l && (x(!y), b(null), T.current && (clearTimeout(T.current), T.current = null));
1621
+ }, H = (i, S, p) => {
1622
+ i.stopPropagation(), !S.disabled && !S.divider && (!S.children || S.children.length === 0) && (s?.(S.value, p), x(!1), b(null));
1623
+ }, te = (i) => {
1624
+ T.current && (clearTimeout(T.current), T.current = null), i.children && i.children.length > 0 ? b(i.value) : b(null);
1625
+ }, J = (i) => {
1626
+ i.children && i.children.length > 0 ? T.current = setTimeout(() => {
1621
1627
  b(null);
1622
1628
  }, 150) : b(null);
1623
- }, K = (c, S, p) => {
1624
- c.stopPropagation(), !S.disabled && !S.divider && (s?.(S.value, p), x(!1), b(null));
1629
+ }, K = (i, S, p) => {
1630
+ i.stopPropagation(), !S.disabled && !S.divider && (s?.(S.value, p), x(!1), b(null));
1625
1631
  }, ce = d(
1626
1632
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
1627
1633
  "max-h-60 overflow-auto"
@@ -1629,7 +1635,7 @@ const nr = ({
1629
1635
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
1630
1636
  "max-h-60 overflow-auto"
1631
1637
  );
1632
- return /* @__PURE__ */ i(
1638
+ return /* @__PURE__ */ c(
1633
1639
  "div",
1634
1640
  {
1635
1641
  ref: g,
@@ -1642,7 +1648,7 @@ const nr = ({
1642
1648
  "button",
1643
1649
  {
1644
1650
  ref: f,
1645
- onClick: I,
1651
+ onClick: P,
1646
1652
  disabled: l,
1647
1653
  "aria-haspopup": "menu",
1648
1654
  "aria-expanded": y,
@@ -1652,10 +1658,10 @@ const nr = ({
1652
1658
  children: t
1653
1659
  }
1654
1660
  ),
1655
- y && /* @__PURE__ */ e("div", { ref: C, className: ce, style: q, onKeyDown: V, children: /* @__PURE__ */ i("div", { className: "p-2", role: "menu", children: [
1661
+ y && /* @__PURE__ */ e("div", { ref: C, className: ce, style: q, onKeyDown: V, children: /* @__PURE__ */ c("div", { className: "p-2", role: "menu", children: [
1656
1662
  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)
1663
+ r.map((i, S) => {
1664
+ if (i.divider)
1659
1665
  return /* @__PURE__ */ e(
1660
1666
  "div",
1661
1667
  {
@@ -1663,35 +1669,35 @@ const nr = ({
1663
1669
  },
1664
1670
  `divider-${S}`
1665
1671
  );
1666
- const p = c.children && c.children.length > 0, _ = h === c.value;
1667
- return /* @__PURE__ */ i("div", { className: "relative group", children: [
1668
- /* @__PURE__ */ i(
1672
+ const p = i.children && i.children.length > 0, _ = h === i.value;
1673
+ return /* @__PURE__ */ c("div", { className: "relative group", children: [
1674
+ /* @__PURE__ */ c(
1669
1675
  "button",
1670
1676
  {
1671
- "data-option-value": c.value,
1677
+ "data-option-value": i.value,
1672
1678
  role: "menuitem",
1673
1679
  "aria-haspopup": p ? "menu" : void 0,
1674
- onClick: (N) => H(N, c),
1675
- onMouseEnter: () => te(c),
1676
- onMouseLeave: () => J(c),
1677
- disabled: c.disabled,
1680
+ onClick: (N) => H(N, i),
1681
+ onMouseEnter: () => te(i),
1682
+ onMouseLeave: () => J(i),
1683
+ disabled: i.disabled,
1678
1684
  className: d(
1679
1685
  "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
1686
  {
1681
- "opacity-50 cursor-not-allowed": c.disabled,
1687
+ "opacity-50 cursor-not-allowed": i.disabled,
1682
1688
  "bg-surface-hover": _ && p
1683
1689
  }
1684
1690
  ),
1685
1691
  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 })
1692
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
1693
+ i.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: i.icon }),
1694
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
1695
+ /* @__PURE__ */ e("span", { className: "font-base truncate", children: i.label }),
1696
+ i.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: i.description })
1691
1697
  ] })
1692
1698
  ] }),
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 }),
1699
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
1700
+ m && n === i.value && /* @__PURE__ */ e(Pe, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
1695
1701
  p && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
1696
1702
  ] })
1697
1703
  ]
@@ -1707,14 +1713,14 @@ const nr = ({
1707
1713
  left: `${v.left}px`
1708
1714
  },
1709
1715
  onMouseEnter: () => {
1710
- T.current && (clearTimeout(T.current), T.current = null), b(c.value);
1716
+ T.current && (clearTimeout(T.current), T.current = null), b(i.value);
1711
1717
  },
1712
1718
  onMouseLeave: () => {
1713
1719
  T.current = setTimeout(() => {
1714
1720
  b(null);
1715
1721
  }, 150);
1716
1722
  },
1717
- children: /* @__PURE__ */ e("div", { className: "p-2", children: c.children.map((N, U) => {
1723
+ children: /* @__PURE__ */ e("div", { className: "p-2", children: i.children.map((N, U) => {
1718
1724
  if (N.divider)
1719
1725
  return /* @__PURE__ */ e(
1720
1726
  "div",
@@ -1723,16 +1729,16 @@ const nr = ({
1723
1729
  },
1724
1730
  `divider-${U}`
1725
1731
  );
1726
- const re = typeof n == "object" && n[c.value] && n[c.value].includes(
1732
+ const re = typeof n == "object" && n[i.value] && n[i.value].includes(
1727
1733
  N.value
1728
1734
  ) || n === N.value;
1729
- return /* @__PURE__ */ i(
1735
+ return /* @__PURE__ */ c(
1730
1736
  "button",
1731
1737
  {
1732
1738
  onClick: (ee) => K(
1733
1739
  ee,
1734
1740
  N,
1735
- c.value
1741
+ i.value
1736
1742
  ),
1737
1743
  disabled: N.disabled,
1738
1744
  className: d(
@@ -1742,14 +1748,14 @@ const nr = ({
1742
1748
  }
1743
1749
  ),
1744
1750
  children: [
1745
- /* @__PURE__ */ i("div", { className: "flex items-center space-x-2 min-w-0", children: [
1751
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
1746
1752
  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: [
1753
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
1748
1754
  /* @__PURE__ */ e("span", { className: "font-base truncate", children: N.label }),
1749
1755
  N.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: N.description })
1750
1756
  ] })
1751
1757
  ] }),
1752
- m && re && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
1758
+ m && re && /* @__PURE__ */ e(Pe, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
1753
1759
  ]
1754
1760
  },
1755
1761
  N.value
@@ -1757,16 +1763,16 @@ const nr = ({
1757
1763
  }) })
1758
1764
  }
1759
1765
  )
1760
- ] }, c.value);
1766
+ ] }, i.value);
1761
1767
  }),
1762
1768
  (() => {
1763
- const c = r.reduce((S, p) => {
1769
+ const i = r.reduce((S, p) => {
1764
1770
  if (p.divider) return S;
1765
1771
  const _ = p.children ? p.children.filter((N) => !N.divider).length : 0;
1766
1772
  return S + 1 + _;
1767
1773
  }, 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,
1774
+ 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: [
1775
+ i,
1770
1776
  " options available"
1771
1777
  ] }) });
1772
1778
  })()
@@ -1808,14 +1814,14 @@ const nr = ({
1808
1814
  sm: "p-2",
1809
1815
  md: "px-5 py-4",
1810
1816
  lg: "p-6"
1811
- }, pn = ({
1817
+ }, vn = ({
1812
1818
  actions: t = [],
1813
1819
  onBack: r,
1814
1820
  backLabel: n = "Back",
1815
1821
  className: s,
1816
1822
  padding: a = "md",
1817
1823
  children: l
1818
- }) => /* @__PURE__ */ i("div", { className: d("flex items-center gap-2", sr[a], s), children: [
1824
+ }) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2", sr[a], s), children: [
1819
1825
  r && /* @__PURE__ */ e(
1820
1826
  ae,
1821
1827
  {
@@ -1828,7 +1834,7 @@ const nr = ({
1828
1834
  ),
1829
1835
  l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
1830
1836
  /* @__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 = {
1837
+ ] }), yn = (t) => (r) => t(r instanceof Date ? r : null), Nn = (t) => (r) => t(typeof r == "string" ? r : ""), ar = {
1832
1838
  none: "px-0",
1833
1839
  sm: "px-2",
1834
1840
  md: "px-3.5",
@@ -1855,7 +1861,7 @@ const cr = (t) => {
1855
1861
  value: t.value,
1856
1862
  onChange: (m) => t.onChange(m),
1857
1863
  placeholder: t.placeholder || t.label,
1858
- className: d("min-w-40", o && "border-info text-info-fg")
1864
+ className: d("min-w-40", o && "bg-info-soft text-info-fg")
1859
1865
  }
1860
1866
  );
1861
1867
  }
@@ -1921,10 +1927,10 @@ const cr = (t) => {
1921
1927
  hoverable: T = !0,
1922
1928
  padding: G = "md",
1923
1929
  className: V,
1924
- rowClassName: I,
1930
+ rowClassName: P,
1925
1931
  headerBackground: H = !0
1926
1932
  }) => {
1927
- const [te, J] = O(""), K = l !== void 0, ce = K ? l : te, w = o ?? J, [c, S] = O({
1933
+ const [te, J] = O(""), K = l !== void 0, ce = K ? l : te, w = o ?? J, [i, S] = O({
1928
1934
  column: null,
1929
1935
  direction: null
1930
1936
  }), [p, _] = O({
@@ -1950,14 +1956,14 @@ const cr = (t) => {
1950
1956
  }));
1951
1957
  }), E;
1952
1958
  }, [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);
1959
+ if (!i.column || !i.direction) return U;
1960
+ const E = r.find((W) => W.id === i.column);
1955
1961
  return E ? [...U].sort((W, le) => {
1956
1962
  const ie = typeof E.accessor == "function" ? E.accessor(W) : W[E.accessor], R = typeof E.accessor == "function" ? E.accessor(le) : le[E.accessor];
1957
1963
  let ue = 0;
1958
- return ie < R ? ue = -1 : ie > R && (ue = 1), c.direction === "desc" ? -ue : ue;
1964
+ return ie < R ? ue = -1 : ie > R && (ue = 1), i.direction === "desc" ? -ue : ue;
1959
1965
  }) : U;
1960
- }, [U, c, r]), ee = pe(() => {
1966
+ }, [U, i, r]), ee = pe(() => {
1961
1967
  if (!y) return re;
1962
1968
  const E = p.page * p.pageSize, W = E + p.pageSize;
1963
1969
  return re.slice(E, W);
@@ -1966,7 +1972,7 @@ const cr = (t) => {
1966
1972
  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
1973
  },
1968
1974
  [r]
1969
- ), P = he((E) => {
1975
+ ), I = he((E) => {
1970
1976
  _((W) => ({ ...W, page: E }));
1971
1977
  }, []), D = he(
1972
1978
  (E, W) => {
@@ -1985,7 +1991,7 @@ const cr = (t) => {
1985
1991
  );
1986
1992
  X(() => {
1987
1993
  _((E) => ({ ...E, page: 0 }));
1988
- }, [ce, c]), X(() => {
1994
+ }, [ce, i]), X(() => {
1989
1995
  _((E) => ({ ...E, page: 0 }));
1990
1996
  }, [m.map((E) => E.value).join(",")]);
1991
1997
  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 +2005,8 @@ const cr = (t) => {
1999
2005
  (le, ie) => f(le, ie) === W
2000
2006
  );
2001
2007
  }), 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: [
2008
+ return /* @__PURE__ */ c("div", { className: d("flex min-w-0 flex-col", V), children: [
2009
+ be && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2004
2010
  s && /* @__PURE__ */ e(
2005
2011
  Ge,
2006
2012
  {
@@ -2013,7 +2019,7 @@ const cr = (t) => {
2013
2019
  m.map((E) => /* @__PURE__ */ e(cr, { ...E }, E.id)),
2014
2020
  u.length > 0 && /* @__PURE__ */ e(Je, { actions: u, className: "ml-auto" })
2015
2021
  ] }),
2016
- /* @__PURE__ */ i("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
2022
+ /* @__PURE__ */ c("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
2017
2023
  n && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
2018
2024
  rr,
2019
2025
  {
@@ -2022,8 +2028,8 @@ const cr = (t) => {
2022
2028
  tableColumns: r.length
2023
2029
  }
2024
2030
  ) }),
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: [
2031
+ /* @__PURE__ */ c("table", { ref: N, className: "min-w-full border-collapse text-base text-text", children: [
2032
+ /* @__PURE__ */ e("thead", { className: d(ne, "h-control-lg"), children: /* @__PURE__ */ c("tr", { children: [
2027
2033
  v && /* @__PURE__ */ e("th", { className: d(de, "w-10"), children: /* @__PURE__ */ e(
2028
2034
  ye,
2029
2035
  {
@@ -2052,16 +2058,16 @@ const cr = (t) => {
2052
2058
  ),
2053
2059
  style: { width: E.width },
2054
2060
  onClick: () => E.sortable && Y(E.id),
2055
- children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
2061
+ children: /* @__PURE__ */ c("div", { className: "flex items-center gap-1.5", children: [
2056
2062
  E.headerCell ? E.headerCell() : E.header,
2057
2063
  E.sortable && /* @__PURE__ */ e(
2058
2064
  Q,
2059
2065
  {
2060
- icon: c.column === E.id && c.direction === "desc" ? Se : it,
2066
+ icon: i.column === E.id && i.direction === "desc" ? Se : it,
2061
2067
  size: "xs",
2062
2068
  className: d(
2063
2069
  "transition-opacity duration-fast ease-out",
2064
- c.column === E.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2070
+ i.column === E.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2065
2071
  )
2066
2072
  }
2067
2073
  )
@@ -2085,7 +2091,7 @@ const cr = (t) => {
2085
2091
  const le = f(E, W), ie = k.some(
2086
2092
  (R, ue) => f(R, ue) === le
2087
2093
  );
2088
- return /* @__PURE__ */ i(
2094
+ return /* @__PURE__ */ c(
2089
2095
  "tr",
2090
2096
  {
2091
2097
  className: d(
@@ -2096,7 +2102,7 @@ const cr = (t) => {
2096
2102
  T && "transition-colors duration-fast ease-out hover:bg-surface-hover",
2097
2103
  b && "cursor-pointer",
2098
2104
  ie && "bg-accent-soft",
2099
- I?.(E, W)
2105
+ P?.(E, W)
2100
2106
  ),
2101
2107
  onClick: (R) => {
2102
2108
  R.stopPropagation(), b?.(E, W);
@@ -2158,9 +2164,9 @@ const cr = (t) => {
2158
2164
  }) })
2159
2165
  ] })
2160
2166
  ] }),
2161
- De && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2167
+ De && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2162
2168
  /* @__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: [
2169
+ fe && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
2164
2170
  /* @__PURE__ */ e(
2165
2171
  ae,
2166
2172
  {
@@ -2168,7 +2174,7 @@ const cr = (t) => {
2168
2174
  variant: "ghost",
2169
2175
  iconOnly: !0,
2170
2176
  "aria-label": "Previous page",
2171
- onClick: () => P(p.page - 1),
2177
+ onClick: () => I(p.page - 1),
2172
2178
  disabled: p.page === 0,
2173
2179
  children: /* @__PURE__ */ e(Q, { icon: Ee, size: "md", color: "current" })
2174
2180
  }
@@ -2179,7 +2185,7 @@ const cr = (t) => {
2179
2185
  {
2180
2186
  type: "button",
2181
2187
  "aria-current": E === p.page ? "page" : void 0,
2182
- onClick: () => P(E),
2188
+ onClick: () => I(E),
2183
2189
  className: d(
2184
2190
  "h-control-xs min-w-6 cursor-pointer rounded-sm px-1.5 tabular-nums",
2185
2191
  "transition-colors duration-fast ease-out",
@@ -2198,7 +2204,7 @@ const cr = (t) => {
2198
2204
  variant: "ghost",
2199
2205
  iconOnly: !0,
2200
2206
  "aria-label": "Next page",
2201
- onClick: () => P(p.page + 1),
2207
+ onClick: () => I(p.page + 1),
2202
2208
  disabled: p.page >= F - 1,
2203
2209
  children: /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" })
2204
2210
  }
@@ -2206,7 +2212,7 @@ const cr = (t) => {
2206
2212
  ] })
2207
2213
  ] })
2208
2214
  ] });
2209
- }, ir = Nt(null), Nn = ({
2215
+ }, ir = Nt(null), wn = ({
2210
2216
  items: t,
2211
2217
  activeTab: r,
2212
2218
  onTabChange: n,
@@ -2228,7 +2234,7 @@ const cr = (t) => {
2228
2234
  "border-transparent text-disabled cursor-not-allowed": u.disabled
2229
2235
  }
2230
2236
  ),
2231
- children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2237
+ children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2232
2238
  u.label,
2233
2239
  u.badge && /* @__PURE__ */ e("span", { className: d(
2234
2240
  "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
@@ -2288,7 +2294,7 @@ const cr = (t) => {
2288
2294
  } : {};
2289
2295
  return d($, C, q, T, G, V);
2290
2296
  };
2291
- return /* @__PURE__ */ e(ir.Provider, { value: h, children: /* @__PURE__ */ i("div", { children: [
2297
+ return /* @__PURE__ */ e(ir.Provider, { value: h, children: /* @__PURE__ */ c("div", { children: [
2292
2298
  /* @__PURE__ */ e("div", { className: v, role: "tablist", children: t.map((g) => /* @__PURE__ */ e(
2293
2299
  "button",
2294
2300
  {
@@ -2299,7 +2305,7 @@ const cr = (t) => {
2299
2305
  disabled: g.disabled,
2300
2306
  onClick: () => !g.disabled && x(g.id),
2301
2307
  className: k(g, y === g.id),
2302
- children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2308
+ children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2303
2309
  g.label,
2304
2310
  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
2311
  ] })
@@ -2360,7 +2366,7 @@ function Ye({
2360
2366
  m
2361
2367
  ),
2362
2368
  onClick: v,
2363
- children: /* @__PURE__ */ i(
2369
+ children: /* @__PURE__ */ c(
2364
2370
  "div",
2365
2371
  {
2366
2372
  ref: h,
@@ -2376,7 +2382,7 @@ function Ye({
2376
2382
  "aria-labelledby": n ? "modal-title" : void 0,
2377
2383
  tabIndex: -1,
2378
2384
  children: [
2379
- (n || x) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2385
+ (n || x) && /* @__PURE__ */ c("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2380
2386
  n && /* @__PURE__ */ e(
2381
2387
  "span",
2382
2388
  {
@@ -2493,40 +2499,40 @@ const pr = ({
2493
2499
  onDownloadFile: x,
2494
2500
  onRegisterFile: h
2495
2501
  }) => {
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(
2502
+ 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
2503
  typeof t == "object" ? t : null
2498
- ), [ce, w] = O(!1), [c, S] = O(""), p = se(null);
2504
+ ), [ce, w] = O(!1), [i, S] = O(""), p = se(null);
2499
2505
  X(() => {
2500
2506
  b && _();
2501
2507
  }, [b]), X(() => {
2502
2508
  b && f && N();
2503
2509
  }, [b, f, C, H]);
2504
2510
  const _ = async () => {
2505
- I(!0);
2511
+ P(!0);
2506
2512
  try {
2507
2513
  const M = await u?.();
2508
2514
  M?.data && g(M.data);
2509
2515
  } catch (M) {
2510
2516
  console.error("Failed to load mounts", M);
2511
2517
  } finally {
2512
- I(!1);
2518
+ P(!1);
2513
2519
  }
2514
2520
  }, N = async () => {
2515
2521
  if (f) {
2516
- I(!0);
2522
+ P(!0);
2517
2523
  try {
2518
2524
  const M = await m?.({ mountId: f.id, name: H, path: C });
2519
2525
  M?.data && G(M.data);
2520
2526
  } catch (M) {
2521
2527
  console.error("Failed to load files", M);
2522
2528
  } finally {
2523
- I(!1);
2529
+ P(!1);
2524
2530
  }
2525
2531
  }
2526
2532
  }, U = async (M) => {
2527
2533
  const L = M.target.files?.[0];
2528
2534
  if (L) {
2529
- I(!0);
2535
+ P(!0);
2530
2536
  try {
2531
2537
  const Z = await L.arrayBuffer(), ne = new Uint8Array(Z), de = {
2532
2538
  id: `local-${Date.now()}`,
@@ -2543,13 +2549,13 @@ const pr = ({
2543
2549
  } catch (Z) {
2544
2550
  console.error("Local file selection failed", Z);
2545
2551
  } finally {
2546
- I(!1);
2552
+ P(!1);
2547
2553
  }
2548
2554
  }
2549
2555
  }, re = async (M) => {
2550
2556
  const L = M.target.files?.[0];
2551
2557
  if (!(!L || !f)) {
2552
- I(!0);
2558
+ P(!0);
2553
2559
  try {
2554
2560
  const Z = await L.arrayBuffer(), ne = await y?.({
2555
2561
  file: new Uint8Array(Z),
@@ -2565,16 +2571,16 @@ const pr = ({
2565
2571
  } catch (Z) {
2566
2572
  console.error("Upload failed", Z);
2567
2573
  } finally {
2568
- I(!1);
2574
+ P(!1);
2569
2575
  }
2570
2576
  }
2571
2577
  }, ee = async () => {
2572
- if (!(!c || !f)) {
2573
- I(!0);
2578
+ if (!(!i || !f)) {
2579
+ P(!0);
2574
2580
  try {
2575
- const M = `${C}${c}/`;
2581
+ const M = `${C}${i}/`;
2576
2582
  h && (await h({
2577
- name: c,
2583
+ name: i,
2578
2584
  type: "folder",
2579
2585
  path: C,
2580
2586
  mimeType: "application/x-directory",
@@ -2586,20 +2592,20 @@ const pr = ({
2586
2592
  } catch (M) {
2587
2593
  console.error("Failed to create folder", M);
2588
2594
  } finally {
2589
- I(!1);
2595
+ P(!1);
2590
2596
  }
2591
2597
  }
2592
2598
  }, Y = async (M) => {
2593
- I(!0);
2599
+ P(!0);
2594
2600
  try {
2595
2601
  const L = await x?.(M.id);
2596
2602
  K(M), r(M, L), v(!1);
2597
2603
  } catch (L) {
2598
2604
  console.error("Failed to download file", L);
2599
2605
  } finally {
2600
- I(!1);
2606
+ P(!1);
2601
2607
  }
2602
- }, P = (M) => {
2608
+ }, I = (M) => {
2603
2609
  M.stopPropagation(), K(null), r(null);
2604
2610
  }, D = pe(() => {
2605
2611
  const M = /* @__PURE__ */ new Set(), L = [];
@@ -2636,7 +2642,7 @@ const pr = ({
2636
2642
  id: "name",
2637
2643
  header: "Name",
2638
2644
  accessor: "name",
2639
- cell: (M, L) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
2645
+ cell: (M, L) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
2640
2646
  /* @__PURE__ */ e(
2641
2647
  Q,
2642
2648
  {
@@ -2680,8 +2686,8 @@ const pr = ({
2680
2686
  id: "name",
2681
2687
  header: "Mount Name",
2682
2688
  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" }),
2689
+ cell: (M) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
2690
+ /* @__PURE__ */ e(Q, { icon: Ie, size: "sm", color: "primary" }),
2685
2691
  /* @__PURE__ */ e("span", { children: M })
2686
2692
  ] })
2687
2693
  },
@@ -2693,9 +2699,9 @@ const pr = ({
2693
2699
  cell: (M, L) => /* @__PURE__ */ e(ae, { variant: "outline", onClick: () => $(L), children: "Open" })
2694
2700
  }
2695
2701
  ];
2696
- return /* @__PURE__ */ i("div", { className: "space-y-1", children: [
2702
+ return /* @__PURE__ */ c("div", { className: "space-y-1", children: [
2697
2703
  n && /* @__PURE__ */ e(me, { variant: "label", size: "sm", weight: "medium", children: n }),
2698
- /* @__PURE__ */ i(
2704
+ /* @__PURE__ */ c(
2699
2705
  "div",
2700
2706
  {
2701
2707
  onClick: () => !l && v(!0),
@@ -2706,12 +2712,12 @@ const pr = ({
2706
2712
  l && "opacity-50 cursor-not-allowed bg-surface-sunk"
2707
2713
  ),
2708
2714
  children: [
2709
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(Q, { icon: J ? Te : Pe, color: J ? "primary" : "secondary" }) }),
2715
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(Q, { icon: J ? Te : Ie, color: J ? "primary" : "secondary" }) }),
2710
2716
  /* @__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
2717
  J && !l && /* @__PURE__ */ e(
2712
2718
  "button",
2713
2719
  {
2714
- onClick: P,
2720
+ onClick: I,
2715
2721
  className: "p-1 hover:bg-surface-hover rounded",
2716
2722
  children: /* @__PURE__ */ e(Q, { icon: we, size: "xs" })
2717
2723
  }
@@ -2737,8 +2743,8 @@ const pr = ({
2737
2743
  {
2738
2744
  id: "remote",
2739
2745
  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: [
2746
+ content: /* @__PURE__ */ e("div", { className: "space-y-4", children: f ? /* @__PURE__ */ c(ve, { children: [
2747
+ /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2", children: [
2742
2748
  /* @__PURE__ */ e(
2743
2749
  ae,
2744
2750
  {
@@ -2761,7 +2767,7 @@ const pr = ({
2761
2767
  fullWidth: !0
2762
2768
  }
2763
2769
  ) }),
2764
- /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
2770
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
2765
2771
  /* @__PURE__ */ e(
2766
2772
  ae,
2767
2773
  {
@@ -2793,13 +2799,13 @@ const pr = ({
2793
2799
  )
2794
2800
  ] })
2795
2801
  ] }),
2796
- ce && /* @__PURE__ */ i("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
2802
+ ce && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
2797
2803
  /* @__PURE__ */ e(Q, { icon: je, size: "sm", color: "warning" }),
2798
2804
  /* @__PURE__ */ e(
2799
2805
  Ne,
2800
2806
  {
2801
2807
  placeholder: "Folder name",
2802
- value: c,
2808
+ value: i,
2803
2809
  onChange: (M) => S(M.target.value),
2804
2810
  autoFocus: !0
2805
2811
  }
@@ -2831,15 +2837,15 @@ const pr = ({
2831
2837
  {
2832
2838
  id: "local",
2833
2839
  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: [
2840
+ 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
2841
  /* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Q, { icon: Te, size: "xl", color: "primary" }) }),
2836
2842
  /* @__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: [
2843
+ /* @__PURE__ */ c(me, { variant: "body", size: "sm", className: "text-text-muted mt-1 mb-6 text-center max-w-xs", children: [
2838
2844
  "This file will be used directly in the form and will ",
2839
2845
  /* @__PURE__ */ e("strong", { children: "not" }),
2840
2846
  " be uploaded to platform storage."
2841
2847
  ] }),
2842
- /* @__PURE__ */ i("label", { className: "cursor-pointer", children: [
2848
+ /* @__PURE__ */ c("label", { className: "cursor-pointer", children: [
2843
2849
  /* @__PURE__ */ e(ae, { variant: "primary", size: "lg", loading: V, className: "pointer-events-none", children: "Browse Local File" }),
2844
2850
  /* @__PURE__ */ e(
2845
2851
  "input",
@@ -2881,7 +2887,7 @@ const pr = ({
2881
2887
  ...h
2882
2888
  }, b) => {
2883
2889
  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: [
2890
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col", a && "w-full", o), children: [
2885
2891
  t && /* @__PURE__ */ e(
2886
2892
  "label",
2887
2893
  {
@@ -2894,7 +2900,7 @@ const pr = ({
2894
2900
  children: t
2895
2901
  }
2896
2902
  ),
2897
- /* @__PURE__ */ i("div", { className: "relative", children: [
2903
+ /* @__PURE__ */ c("div", { className: "relative", children: [
2898
2904
  /* @__PURE__ */ e(
2899
2905
  "textarea",
2900
2906
  {
@@ -2964,15 +2970,15 @@ function wr({
2964
2970
  className: n,
2965
2971
  children: s
2966
2972
  }) {
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: [
2973
+ return /* @__PURE__ */ c("div", { className: d("flex flex-col gap-4 py-6 sm:flex-row sm:gap-8", n), children: [
2974
+ /* @__PURE__ */ c("div", { className: "w-full shrink-0 sm:w-form-label", children: [
2969
2975
  t && /* @__PURE__ */ e("span", { className: "text-base font-semibold text-text", children: t }),
2970
2976
  r && /* @__PURE__ */ e("p", { className: "mt-1 text-sm leading-relaxed text-pretty text-text-subtle", children: r })
2971
2977
  ] }),
2972
2978
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
2973
2979
  ] });
2974
2980
  }
2975
- const wn = ({
2981
+ const kn = ({
2976
2982
  groups: t,
2977
2983
  data: r,
2978
2984
  onSubmit: n,
@@ -2995,27 +3001,27 @@ const wn = ({
2995
3001
  r && $({ ...r });
2996
3002
  }, [r]);
2997
3003
  const V = he(
2998
- (w, c, S) => {
3004
+ (w, i, S) => {
2999
3005
  const p = t.flatMap((_) => _.items).find((_) => _.name === w);
3000
3006
  if (!p) return null;
3001
- if (p.required && (c == null || c === ""))
3007
+ if (p.required && (i == null || i === ""))
3002
3008
  return `${p.label} is required`;
3003
3009
  if (p.type === "array") {
3004
- if (p.required && (!c || c.length === 0))
3010
+ if (p.required && (!i || i.length === 0))
3005
3011
  return `${p.label} cannot be empty.`;
3006
- if (c && !Array.isArray(c))
3012
+ if (i && !Array.isArray(i))
3007
3013
  return `${p.label} must be an array.`;
3008
- if (Array.isArray(c) && p.arrayFields) {
3014
+ if (Array.isArray(i) && p.arrayFields) {
3009
3015
  const _ = [];
3010
3016
  let N = !1;
3011
- if (c.forEach((U, re) => {
3017
+ if (i.forEach((U, re) => {
3012
3018
  const ee = {};
3013
3019
  for (const Y of p.arrayFields) {
3014
- const P = U?.[Y.name];
3015
- if (Y.required && (P == null || P === ""))
3020
+ const I = U?.[Y.name];
3021
+ if (Y.required && (I == null || I === ""))
3016
3022
  ee[Y.name] = `${Y.label} is required`, N = !0;
3017
3023
  else if (Y.validator) {
3018
- const D = Y.validator(P, U);
3024
+ const D = Y.validator(I, U);
3019
3025
  D && (ee[Y.name] = D, N = !0);
3020
3026
  }
3021
3027
  }
@@ -3024,18 +3030,18 @@ const wn = ({
3024
3030
  return JSON.stringify(_);
3025
3031
  }
3026
3032
  }
3027
- return p.validator ? p.validator(c, S) : null;
3033
+ return p.validator ? p.validator(i, S) : null;
3028
3034
  },
3029
3035
  [t]
3030
- ), I = he(
3031
- (w, c) => {
3036
+ ), P = he(
3037
+ (w, i) => {
3032
3038
  let S = yr(
3033
3039
  f,
3034
3040
  w,
3035
- c
3041
+ i
3036
3042
  );
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);
3043
+ t.flatMap((N) => N.items).find((N) => N.name === w)?.removeIfEmpty && (i == null || i === "") && (S = Nr(S, w)), $(S), G((N) => ({ ...N, [w]: !0 }));
3044
+ const _ = V(w, i, S);
3039
3045
  q((N) => ({
3040
3046
  ...N,
3041
3047
  [w]: _ || ""
@@ -3045,7 +3051,7 @@ const wn = ({
3045
3051
  ), H = he(
3046
3052
  async (w) => {
3047
3053
  if (w.preventDefault(), b) return;
3048
- const c = {}, S = t.flatMap((_) => _.items);
3054
+ const i = {}, S = t.flatMap((_) => _.items);
3049
3055
  for (const _ of S) {
3050
3056
  if (_.hidden || _.conditional && !_.conditional(f))
3051
3057
  continue;
@@ -3054,13 +3060,13 @@ const wn = ({
3054
3060
  Be(f, _.name),
3055
3061
  f
3056
3062
  );
3057
- N && (c[_.name] = N);
3063
+ N && (i[_.name] = N);
3058
3064
  }
3059
3065
  if (o) {
3060
3066
  const _ = o(f);
3061
- _ && Object.assign(c, _);
3067
+ _ && Object.assign(i, _);
3062
3068
  }
3063
- if (q(c), Object.keys(c).some((_) => c[_]))
3069
+ if (q(i), Object.keys(i).some((_) => i[_]))
3064
3070
  return;
3065
3071
  const p = l ? l(f) : f;
3066
3072
  await n?.(f, p);
@@ -3068,8 +3074,8 @@ const wn = ({
3068
3074
  [f, t, V, o, l, n, b]
3069
3075
  ), te = he(
3070
3076
  (w) => {
3071
- const c = Be(f, w.name), S = T[w.name] ? C[w.name] : void 0, p = w.disabled || b, _ = {
3072
- value: c || "",
3077
+ const i = Be(f, w.name), S = T[w.name] ? C[w.name] : void 0, p = w.disabled || b, _ = {
3078
+ value: i || "",
3073
3079
  disabled: p,
3074
3080
  required: w.required,
3075
3081
  placeholder: w.placeholder,
@@ -3086,7 +3092,7 @@ const wn = ({
3086
3092
  Ne,
3087
3093
  {
3088
3094
  ..._,
3089
- onChange: (N) => I(w.name, N.target.value),
3095
+ onChange: (N) => P(w.name, N.target.value),
3090
3096
  type: w.textType || w.type,
3091
3097
  autoComplete: w.autocomplete,
3092
3098
  error: S,
@@ -3098,7 +3104,7 @@ const wn = ({
3098
3104
  Le,
3099
3105
  {
3100
3106
  ..._,
3101
- onChange: (N) => I(w.name, N.target.value),
3107
+ onChange: (N) => P(w.name, N.target.value),
3102
3108
  rows: 4,
3103
3109
  error: S,
3104
3110
  size: h
@@ -3109,7 +3115,7 @@ const wn = ({
3109
3115
  Ce,
3110
3116
  {
3111
3117
  ..._,
3112
- onChange: (N) => I(w.name, N),
3118
+ onChange: (N) => P(w.name, N),
3113
3119
  options: (w.options || []).map((N) => ({
3114
3120
  ...N,
3115
3121
  value: String(N.value)
@@ -3129,8 +3135,8 @@ const wn = ({
3129
3135
  Ft,
3130
3136
  {
3131
3137
  "aria-label": w.label,
3132
- value: c == null ? "" : String(c),
3133
- onChange: (N) => I(w.name, N),
3138
+ value: i == null ? "" : String(i),
3139
+ onChange: (N) => P(w.name, N),
3134
3140
  options: (w.options || []).map((N) => ({
3135
3141
  value: String(N.value),
3136
3142
  label: N.label
@@ -3145,13 +3151,13 @@ const wn = ({
3145
3151
  {
3146
3152
  ..._,
3147
3153
  label: w.label,
3148
- checked: !!c,
3149
- onChange: (N) => I(w.name, N.target.checked),
3154
+ checked: !!i,
3155
+ onChange: (N) => P(w.name, N.target.checked),
3150
3156
  size: h
3151
3157
  }
3152
3158
  );
3153
3159
  case "radio":
3154
- return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: w.options?.map((N) => /* @__PURE__ */ i(
3160
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: w.options?.map((N) => /* @__PURE__ */ c(
3155
3161
  "label",
3156
3162
  {
3157
3163
  className: "flex cursor-pointer items-center gap-3 text-base text-text",
@@ -3162,8 +3168,8 @@ const wn = ({
3162
3168
  type: "radio",
3163
3169
  name: w.name,
3164
3170
  value: N.value,
3165
- checked: c === N.value,
3166
- onChange: () => I(w.name, N.value),
3171
+ checked: i === N.value,
3172
+ onChange: () => P(w.name, N.value),
3167
3173
  disabled: p || N.disabled,
3168
3174
  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
3175
  }
@@ -3178,8 +3184,8 @@ const wn = ({
3178
3184
  Ae,
3179
3185
  {
3180
3186
  ..._,
3181
- value: c ? new Date(c) : null,
3182
- onChange: (N) => I(w.name, N),
3187
+ value: i ? new Date(i) : null,
3188
+ onChange: (N) => P(w.name, N),
3183
3189
  size: h
3184
3190
  }
3185
3191
  );
@@ -3188,8 +3194,8 @@ const wn = ({
3188
3194
  pr,
3189
3195
  {
3190
3196
  ..._,
3191
- value: c,
3192
- onChange: (N) => I(w.name, N),
3197
+ value: i,
3198
+ onChange: (N) => P(w.name, N),
3193
3199
  error: S,
3194
3200
  onListFiles: (N) => g?.http.invoke({
3195
3201
  method: "POST",
@@ -3220,8 +3226,8 @@ const wn = ({
3220
3226
  return /* @__PURE__ */ e(
3221
3227
  Yt,
3222
3228
  {
3223
- value: c || {},
3224
- onChange: (N) => I(w.name, N),
3229
+ value: i || {},
3230
+ onChange: (N) => P(w.name, N),
3225
3231
  onListFolders: () => g?.http.invoke({
3226
3232
  method: "GET",
3227
3233
  action: "storage.mount"
@@ -3233,13 +3239,13 @@ const wn = ({
3233
3239
  );
3234
3240
  case "custom":
3235
3241
  return w.customComponent?.({
3236
- value: c,
3237
- onChange: (N) => I(w.name, N),
3242
+ value: i,
3243
+ onChange: (N) => P(w.name, N),
3238
3244
  error: S,
3239
3245
  disabled: p
3240
3246
  });
3241
3247
  case "array": {
3242
- const N = c || [];
3248
+ const N = i || [];
3243
3249
  let U = [];
3244
3250
  if (typeof S == "string" && S.startsWith("["))
3245
3251
  try {
@@ -3247,35 +3253,35 @@ const wn = ({
3247
3253
  } catch {
3248
3254
  }
3249
3255
  const re = () => {
3250
- I(w.name, [...N, {}]);
3251
- }, ee = (P) => {
3252
- I(
3256
+ P(w.name, [...N, {}]);
3257
+ }, ee = (I) => {
3258
+ P(
3253
3259
  w.name,
3254
- N.filter((D, A) => A !== P)
3260
+ N.filter((D, A) => A !== I)
3255
3261
  );
3256
- }, Y = (P, D, A) => {
3262
+ }, Y = (I, D, A) => {
3257
3263
  const z = [...N];
3258
- z[P] = {
3259
- ...z[P],
3264
+ z[I] = {
3265
+ ...z[I],
3260
3266
  [D]: A
3261
- }, I(w.name, z);
3267
+ }, P(w.name, z);
3262
3268
  };
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: [
3269
+ return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
3270
+ N.map((I, D) => /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
3265
3271
  /* @__PURE__ */ e("div", { className: "grid flex-1 gap-2 sm:grid-cols-2", children: w.arrayFields?.map((A) => {
3266
3272
  const z = U?.[D]?.[A.name];
3267
- return /* @__PURE__ */ i(
3273
+ return /* @__PURE__ */ c(
3268
3274
  "div",
3269
3275
  {
3270
3276
  className: "flex flex-col gap-1",
3271
3277
  children: [
3272
- D === 0 && /* @__PURE__ */ i("label", { className: "block text-xs font-semibold uppercase tracking-label text-text-subtle", children: [
3278
+ D === 0 && /* @__PURE__ */ c("label", { className: "block text-xs font-semibold uppercase tracking-label text-text-subtle", children: [
3273
3279
  A.label,
3274
3280
  A.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3275
3281
  ] }),
3276
3282
  (() => {
3277
3283
  const F = {
3278
- value: P?.[A.name] || "",
3284
+ value: I?.[A.name] || "",
3279
3285
  disabled: p,
3280
3286
  required: A.required,
3281
3287
  placeholder: A.placeholder,
@@ -3346,7 +3352,7 @@ const wn = ({
3346
3352
  ye,
3347
3353
  {
3348
3354
  ...F,
3349
- checked: !!P?.[A.name],
3355
+ checked: !!I?.[A.name],
3350
3356
  onChange: (j) => Y(
3351
3357
  D,
3352
3358
  A.name,
@@ -3356,7 +3362,7 @@ const wn = ({
3356
3362
  }
3357
3363
  );
3358
3364
  case "radio":
3359
- return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: A.options?.map((j) => /* @__PURE__ */ i(
3365
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: A.options?.map((j) => /* @__PURE__ */ c(
3360
3366
  "label",
3361
3367
  {
3362
3368
  className: "flex cursor-pointer items-center gap-2 text-base text-text",
@@ -3367,7 +3373,7 @@ const wn = ({
3367
3373
  type: "radio",
3368
3374
  name: `${w.name}.${D}.${A.name}`,
3369
3375
  value: j.value,
3370
- checked: P?.[A.name] === j.value,
3376
+ checked: I?.[A.name] === j.value,
3371
3377
  onChange: () => Y(
3372
3378
  D,
3373
3379
  A.name,
@@ -3383,7 +3389,7 @@ const wn = ({
3383
3389
  j.value
3384
3390
  )) });
3385
3391
  case "date": {
3386
- const j = P?.[A.name];
3392
+ const j = I?.[A.name];
3387
3393
  return /* @__PURE__ */ e(
3388
3394
  Ae,
3389
3395
  {
@@ -3400,7 +3406,7 @@ const wn = ({
3400
3406
  }
3401
3407
  case "custom":
3402
3408
  return A.customComponent?.({
3403
- value: P?.[A.name],
3409
+ value: I?.[A.name],
3404
3410
  onChange: (j) => Y(
3405
3411
  D,
3406
3412
  A.name,
@@ -3411,7 +3417,7 @@ const wn = ({
3411
3417
  });
3412
3418
  // Add other field types here as needed
3413
3419
  default:
3414
- return /* @__PURE__ */ i("p", { children: [
3420
+ return /* @__PURE__ */ c("p", { children: [
3415
3421
  "Unsupported field type in array:",
3416
3422
  " ",
3417
3423
  A.type
@@ -3439,7 +3445,7 @@ const wn = ({
3439
3445
  }
3440
3446
  )
3441
3447
  ] }, D)),
3442
- /* @__PURE__ */ i(
3448
+ /* @__PURE__ */ c(
3443
3449
  ae,
3444
3450
  {
3445
3451
  type: "button",
@@ -3459,13 +3465,13 @@ const wn = ({
3459
3465
  return null;
3460
3466
  }
3461
3467
  },
3462
- [f, T, C, b, h, I]
3468
+ [f, T, C, b, h, P]
3463
3469
  ), J = he(
3464
3470
  (w) => {
3465
3471
  if (w.conditional && !w.conditional(f))
3466
3472
  return null;
3467
- const c = w.items.filter((p) => !(p.hidden || p.conditional && !p.conditional(f)));
3468
- if (c.length === 0) return null;
3473
+ const i = w.items.filter((p) => !(p.hidden || p.conditional && !p.conditional(f)));
3474
+ if (i.length === 0) return null;
3469
3475
  const S = d(
3470
3476
  w.layout === "flex" ? "flex flex-wrap gap-3.5" : "grid gap-3.5",
3471
3477
  w.layout !== "flex" && {
@@ -3486,9 +3492,9 @@ const wn = ({
3486
3492
  title: w.title,
3487
3493
  description: w.description,
3488
3494
  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) => {
3495
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: S, children: i.map((p) => {
3490
3496
  const _ = T[p.name] ? C[p.name] : void 0;
3491
- return /* @__PURE__ */ i(
3497
+ return /* @__PURE__ */ c(
3492
3498
  "div",
3493
3499
  {
3494
3500
  className: d(
@@ -3500,7 +3506,7 @@ const wn = ({
3500
3506
  gridColumn: typeof p.width == "number" ? `span ${p.width} / span ${p.width}` : void 0
3501
3507
  },
3502
3508
  children: [
3503
- p.type !== "custom" && p.type !== "checkbox" && /* @__PURE__ */ i("label", { className: "block text-sm font-medium text-text-muted", children: [
3509
+ p.type !== "custom" && p.type !== "checkbox" && /* @__PURE__ */ c("label", { className: "block text-sm font-medium text-text-muted", children: [
3504
3510
  p.label,
3505
3511
  p.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3506
3512
  ] }),
@@ -3526,10 +3532,10 @@ const wn = ({
3526
3532
  },
3527
3533
  v
3528
3534
  ), ce = h === "full" ? "md" : h;
3529
- return /* @__PURE__ */ i("form", { ref: k, onSubmit: H, className: K, children: [
3535
+ return /* @__PURE__ */ c("form", { ref: k, onSubmit: H, className: K, children: [
3530
3536
  !y && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
3531
3537
  /* @__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: [
3538
+ y && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ c(ve, { children: [
3533
3539
  /* @__PURE__ */ e("div", { className: "ml-auto" }),
3534
3540
  s && /* @__PURE__ */ e(
3535
3541
  ae,
@@ -3558,7 +3564,7 @@ const wn = ({
3558
3564
  ] }) })
3559
3565
  ] });
3560
3566
  };
3561
- function kn({
3567
+ function Cn({
3562
3568
  open: t,
3563
3569
  title: r,
3564
3570
  description: n,
@@ -3576,7 +3582,7 @@ function kn({
3576
3582
  onClose: u,
3577
3583
  title: r,
3578
3584
  size: "sm",
3579
- footer: /* @__PURE__ */ i("div", { className: "flex w-full items-center justify-end gap-2", children: [
3585
+ footer: /* @__PURE__ */ c("div", { className: "flex w-full items-center justify-end gap-2", children: [
3580
3586
  /* @__PURE__ */ e(ae, { variant: "ghost", onClick: u, disabled: o, children: a }),
3581
3587
  /* @__PURE__ */ e(
3582
3588
  ae,
@@ -3616,7 +3622,7 @@ const kr = {
3616
3622
  info: "bg-info",
3617
3623
  note: "bg-note"
3618
3624
  };
3619
- function Cn({
3625
+ function Sn({
3620
3626
  variant: t = "default",
3621
3627
  size: r = "md",
3622
3628
  dot: n = !1,
@@ -3627,7 +3633,7 @@ function Cn({
3627
3633
  children: m,
3628
3634
  ...u
3629
3635
  }) {
3630
- return /* @__PURE__ */ i(
3636
+ return /* @__PURE__ */ c(
3631
3637
  "span",
3632
3638
  {
3633
3639
  className: d(
@@ -3669,7 +3675,7 @@ const Er = {
3669
3675
  neutral: "bg-surface-hover text-text-muted",
3670
3676
  success: "bg-success-soft text-success-fg"
3671
3677
  };
3672
- function Sn({
3678
+ function En({
3673
3679
  icon: t,
3674
3680
  tone: r = "neutral",
3675
3681
  title: n,
@@ -3679,7 +3685,7 @@ function Sn({
3679
3685
  className: o,
3680
3686
  ...m
3681
3687
  }) {
3682
- return /* @__PURE__ */ i(
3688
+ return /* @__PURE__ */ c(
3683
3689
  "div",
3684
3690
  {
3685
3691
  className: d(
@@ -3697,7 +3703,7 @@ function Sn({
3697
3703
  }
3698
3704
  );
3699
3705
  }
3700
- function En({ children: t, className: r, ...n }) {
3706
+ function zn({ children: t, className: r, ...n }) {
3701
3707
  return /* @__PURE__ */ e(
3702
3708
  "kbd",
3703
3709
  {
@@ -3717,7 +3723,7 @@ const zr = {
3717
3723
  accent: "bg-accent",
3718
3724
  success: "bg-success"
3719
3725
  };
3720
- function zn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3726
+ function Mn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3721
3727
  const l = Math.max(0, Math.min(100, t));
3722
3728
  return /* @__PURE__ */ e(
3723
3729
  "div",
@@ -3756,7 +3762,7 @@ const $r = {
3756
3762
  lg: "text-base",
3757
3763
  xl: "text-lg"
3758
3764
  };
3759
- function Mn({
3765
+ function $n({
3760
3766
  size: t = "md",
3761
3767
  variant: r = "primary",
3762
3768
  label: n = "Loading...",
@@ -3764,7 +3770,7 @@ function Mn({
3764
3770
  className: a,
3765
3771
  ...l
3766
3772
  }) {
3767
- return /* @__PURE__ */ i(
3773
+ return /* @__PURE__ */ c(
3768
3774
  "div",
3769
3775
  {
3770
3776
  className: d(
@@ -3774,7 +3780,7 @@ function Mn({
3774
3780
  ),
3775
3781
  ...l,
3776
3782
  children: [
3777
- /* @__PURE__ */ i(
3783
+ /* @__PURE__ */ c(
3778
3784
  "svg",
3779
3785
  {
3780
3786
  className: d(
@@ -3838,7 +3844,7 @@ const _r = {
3838
3844
  "cat-4": "bg-cat-4",
3839
3845
  "cat-5": "bg-cat-5"
3840
3846
  };
3841
- function $n({
3847
+ function Dn({
3842
3848
  tone: t = "neutral",
3843
3849
  shape: r = "round",
3844
3850
  pulse: n = !1,
@@ -3861,7 +3867,7 @@ function $n({
3861
3867
  }
3862
3868
  );
3863
3869
  }
3864
- function Dn({
3870
+ function Tn({
3865
3871
  steps: t,
3866
3872
  current: r,
3867
3873
  variant: n = "numbered",
@@ -3880,7 +3886,7 @@ function Dn({
3880
3886
  )
3881
3887
  },
3882
3888
  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: [
3889
+ )) }) : /* @__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
3890
  /* @__PURE__ */ e(
3885
3891
  "span",
3886
3892
  {
@@ -3897,8 +3903,8 @@ function Dn({
3897
3903
  u < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
3898
3904
  ] }, m)) });
3899
3905
  }
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(
3906
+ function _n({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
3907
+ return /* @__PURE__ */ c(
3902
3908
  "div",
3903
3909
  {
3904
3910
  className: d(
@@ -3908,7 +3914,7 @@ function Tn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-
3908
3914
  ),
3909
3915
  ...l,
3910
3916
  children: [
3911
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-assistant", children: [
3917
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-assistant", children: [
3912
3918
  /* @__PURE__ */ e("span", { "aria-hidden": !0, children: r }),
3913
3919
  /* @__PURE__ */ e("span", { className: "text-sm font-semibold", children: t }),
3914
3920
  n && /* @__PURE__ */ e("span", { className: "ml-auto", children: n })
@@ -3929,12 +3935,12 @@ const Ar = {
3929
3935
  md: "w-7 h-7 text-base",
3930
3936
  lg: "w-9 h-9 text-sm"
3931
3937
  };
3932
- function Ir(t) {
3938
+ function Pr(t) {
3933
3939
  if (!t) return "?";
3934
3940
  const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
3935
3941
  return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
3936
3942
  }
3937
- const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
3943
+ const Ir = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
3938
3944
  const [o, m] = oe.useState(!1), u = d(
3939
3945
  // Its own token and not `surface-hover`: at 0.972 the plate was within a few
3940
3946
  // percent of every surface it sits on, so the monogram floated instead of
@@ -3953,13 +3959,13 @@ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
3953
3959
  className: d(u, "object-cover"),
3954
3960
  onError: () => m(!0)
3955
3961
  }
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 }) => {
3962
+ ) : /* @__PURE__ */ e("span", { className: u, title: l ?? t, "aria-label": t, children: Pr(t) });
3963
+ }, Re = "ring-surface", jr = "ring-surface-accent", An = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
3958
3964
  if (t.length === 0) return null;
3959
3965
  const a = t.slice(0, r), l = t.length - a.length;
3960
- return /* @__PURE__ */ i("span", { className: d("inline-flex items-center", s), children: [
3966
+ return /* @__PURE__ */ c("span", { className: d("inline-flex items-center", s), children: [
3961
3967
  a.map((o, m) => /* @__PURE__ */ e(
3962
- Pr,
3968
+ Ir,
3963
3969
  {
3964
3970
  name: o.name,
3965
3971
  src: o.src,
@@ -3973,7 +3979,7 @@ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
3973
3979
  },
3974
3980
  o.id ?? `${o.name}-${m}`
3975
3981
  )),
3976
- l > 0 && /* @__PURE__ */ i(
3982
+ l > 0 && /* @__PURE__ */ c(
3977
3983
  "span",
3978
3984
  {
3979
3985
  className: d(
@@ -4001,7 +4007,7 @@ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
4001
4007
  md: "size-avatar-sm rounded-md text-xs",
4002
4008
  lg: "size-avatar-lg rounded-md text-base"
4003
4009
  };
4004
- function An({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4010
+ function Ln({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4005
4011
  const l = He[t in He ? t : "note"];
4006
4012
  return /* @__PURE__ */ e(
4007
4013
  "span",
@@ -4018,7 +4024,7 @@ function An({ channel: t, children: r, size: n = "md", className: s, title: a })
4018
4024
  }
4019
4025
  );
4020
4026
  }
4021
- const Ln = ({
4027
+ const Pn = ({
4022
4028
  src: t,
4023
4029
  alt: r,
4024
4030
  size: n = "md",
@@ -4070,7 +4076,7 @@ const Ln = ({
4070
4076
  "rounded-full": a === "full"
4071
4077
  },
4072
4078
  x
4073
- ), I = d(
4079
+ ), P = d(
4074
4080
  "w-full h-full object-cover transition-opacity duration-fast",
4075
4081
  {
4076
4082
  "opacity-0": k || f,
@@ -4079,18 +4085,18 @@ const Ln = ({
4079
4085
  ), H = d(
4080
4086
  "absolute inset-0 flex items-center justify-center",
4081
4087
  "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: [
4088
+ ), 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
4089
  /* @__PURE__ */ e(Q, { icon: gt, size: "lg", className: "mx-auto mb-1" }),
4084
4090
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
4085
4091
  ] });
4086
- return /* @__PURE__ */ i("div", { className: V, children: [
4092
+ return /* @__PURE__ */ c("div", { className: V, children: [
4087
4093
  /* @__PURE__ */ e(
4088
4094
  "img",
4089
4095
  {
4090
4096
  ...v,
4091
4097
  src: C,
4092
4098
  alt: r,
4093
- className: I,
4099
+ className: P,
4094
4100
  onLoad: T,
4095
4101
  onError: G
4096
4102
  }
@@ -4104,7 +4110,7 @@ function In({
4104
4110
  onClick: r,
4105
4111
  children: n
4106
4112
  }) {
4107
- return /* @__PURE__ */ i(
4113
+ return /* @__PURE__ */ c(
4108
4114
  "button",
4109
4115
  {
4110
4116
  type: "button",
@@ -4122,7 +4128,7 @@ function In({
4122
4128
  }
4123
4129
  );
4124
4130
  }
4125
- function Pn({
4131
+ function jn({
4126
4132
  items: t,
4127
4133
  getRowKey: r,
4128
4134
  variant: n = "divided",
@@ -4146,14 +4152,14 @@ function Pn({
4146
4152
  bulkActions: T,
4147
4153
  header: G,
4148
4154
  stickyHeader: V = !1,
4149
- bordered: I = !1,
4155
+ bordered: P = !1,
4150
4156
  emptyContent: H,
4151
4157
  loading: te = !1,
4152
4158
  loadingRows: J = 4,
4153
4159
  className: K,
4154
4160
  "aria-label": ce
4155
4161
  }) {
4156
- const [w, c] = oe.useState(
4162
+ const [w, i] = oe.useState(
4157
4163
  () => Object.fromEntries(
4158
4164
  (b ?? []).filter((z) => z.defaultCollapsed).map((z) => [z.id, !0])
4159
4165
  )
@@ -4172,11 +4178,18 @@ function Pn({
4172
4178
  );
4173
4179
  }, re = (z) => q?.(z ? [...t] : []), ee = d(
4174
4180
  "flex flex-col",
4175
- I && "overflow-hidden rounded-lg border border-border-subtle",
4181
+ // With a selection open the list has a dock at its foot. Sticky can only
4182
+ // park at the bottom of its own box, so on a list shorter than the window
4183
+ // the dock hung right under the last row instead of at the bottom of the
4184
+ // screen. Growing the box to the height of its parent puts it where it
4185
+ // belongs — and only while a selection exists, so an ordinary short list
4186
+ // keeps its natural height.
4187
+ $ && C.length > 0 && "min-h-full",
4188
+ P && "overflow-hidden rounded-lg border border-border-subtle",
4176
4189
  K
4177
4190
  );
4178
4191
  if (te)
4179
- return /* @__PURE__ */ e("div", { className: ee, children: Array.from({ length: J }).map((z, F) => /* @__PURE__ */ i(
4192
+ return /* @__PURE__ */ e("div", { className: ee, children: Array.from({ length: J }).map((z, F) => /* @__PURE__ */ c(
4180
4193
  "div",
4181
4194
  {
4182
4195
  className: d(
@@ -4194,9 +4207,9 @@ function Pn({
4194
4207
  )) });
4195
4208
  if (t.length === 0 && H)
4196
4209
  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) => {
4210
+ const Y = t.length > 0 && C.length === t.length, I = C.length > 0 && !Y, D = (z, F, j) => {
4198
4211
  const B = u?.(z, F) ?? !1, M = y?.(z, F) ?? !1, L = x?.(z, F) ?? !1, Z = $ && N(z);
4199
- return /* @__PURE__ */ i(
4212
+ return /* @__PURE__ */ c(
4200
4213
  "li",
4201
4214
  {
4202
4215
  ...o ? {
@@ -4264,7 +4277,7 @@ function Pn({
4264
4277
  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
4278
  "li",
4266
4279
  {
4267
- onClick: g ? () => c((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
4280
+ onClick: g ? () => i((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
4268
4281
  className: d(
4269
4282
  // A caption over its rows, not a band across the table: same
4270
4283
  // surface as the rows, no rules, and the count as a quiet pill.
@@ -4277,7 +4290,7 @@ function Pn({
4277
4290
  ),
4278
4291
  "aria-expanded": g ? !Z : void 0,
4279
4292
  style: k ? { top: V ? 28 : 0 } : void 0,
4280
- children: v ? v(B, L.map((fe) => fe.item)) : /* @__PURE__ */ i(ve, { children: [
4293
+ children: v ? v(B, L.map((fe) => fe.item)) : /* @__PURE__ */ c(ve, { children: [
4281
4294
  g && /* @__PURE__ */ e(
4282
4295
  ze,
4283
4296
  {
@@ -4311,8 +4324,8 @@ function Pn({
4311
4324
  ];
4312
4325
  });
4313
4326
  })();
4314
- return /* @__PURE__ */ i("div", { ref: S, className: ee, onKeyDown: o ? p : void 0, children: [
4315
- G && /* @__PURE__ */ i(
4327
+ return /* @__PURE__ */ c("div", { ref: S, className: ee, onKeyDown: o ? p : void 0, children: [
4328
+ G && /* @__PURE__ */ c(
4316
4329
  "div",
4317
4330
  {
4318
4331
  className: d(
@@ -4327,7 +4340,7 @@ function Pn({
4327
4340
  ye,
4328
4341
  {
4329
4342
  checked: Y,
4330
- indeterminate: P,
4343
+ indeterminate: I,
4331
4344
  onChange: (z) => re(z.target.checked),
4332
4345
  "aria-label": "Alles selecteren"
4333
4346
  }
@@ -4337,8 +4350,8 @@ function Pn({
4337
4350
  }
4338
4351
  ),
4339
4352
  /* @__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: [
4353
+ $ && 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: [
4354
+ /* @__PURE__ */ c("span", { className: "text-sm font-medium", children: [
4342
4355
  C.length,
4343
4356
  " geselecteerd"
4344
4357
  ] }),
@@ -4358,7 +4371,7 @@ function Pn({
4358
4371
  ] }) })
4359
4372
  ] });
4360
4373
  }
4361
- function jn({
4374
+ function On({
4362
4375
  side: t,
4363
4376
  continued: r = !1,
4364
4377
  tone: n = "default",
@@ -4400,13 +4413,13 @@ const Fr = {
4400
4413
  urgent: "text-danger-fg",
4401
4414
  success: "text-success-fg"
4402
4415
  };
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: [
4416
+ function Fn({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4417
+ return /* @__PURE__ */ c("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
4405
4418
  /* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Fr[n]), children: t }),
4406
4419
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
4407
4420
  ] });
4408
4421
  }
4409
- const Fn = ({
4422
+ const Bn = ({
4410
4423
  surface: t = !1,
4411
4424
  title: r,
4412
4425
  subtitle: n,
@@ -4433,7 +4446,7 @@ const Fn = ({
4433
4446
  }, q = (T) => {
4434
4447
  T.key === "Enter" ? f.current?.blur() : T.key === "Escape" && (g(r), v(!1));
4435
4448
  };
4436
- return /* @__PURE__ */ i(
4449
+ return /* @__PURE__ */ c(
4437
4450
  "div",
4438
4451
  {
4439
4452
  className: d(
@@ -4446,10 +4459,12 @@ const Fn = ({
4446
4459
  o
4447
4460
  ),
4448
4461
  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: [
4462
+ /* @__PURE__ */ c("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
4463
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c("div", { className: "flex items-start gap-4 text-text", children: [
4464
+ y && // Ghost: a framed box around a back chevron makes the way out of a
4465
+ // page look like the page's primary control.
4466
+ /* @__PURE__ */ e(ae, { variant: "ghost", onClick: y, leftIcon: /* @__PURE__ */ e(Q, { icon: Ee, size: "md" }), iconOnly: !0 }),
4467
+ /* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
4453
4468
  b ? /* @__PURE__ */ e(
4454
4469
  "input",
4455
4470
  {
@@ -4461,7 +4476,7 @@ const Fn = ({
4461
4476
  onKeyDown: q,
4462
4477
  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
4478
  }
4464
- ) : /* @__PURE__ */ i("div", { className: "group flex items-baseline gap-2.5 min-w-0", children: [
4479
+ ) : /* @__PURE__ */ c("div", { className: "group flex items-baseline gap-2.5 min-w-0", children: [
4465
4480
  /* @__PURE__ */ e(
4466
4481
  "h2",
4467
4482
  {
@@ -4569,7 +4584,7 @@ const Fn = ({
4569
4584
  th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
4570
4585
  td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
4571
4586
  };
4572
- function Bn({ text: t, className: r, as: n }) {
4587
+ function Rn({ text: t, className: r, as: n }) {
4573
4588
  const s = t ?? "";
4574
4589
  return (n ? n === "html" : Br.test(s)) ? /* @__PURE__ */ e(
4575
4590
  "div",
@@ -4579,21 +4594,21 @@ function Bn({ text: t, className: r, as: n }) {
4579
4594
  }
4580
4595
  ) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Ct, { remarkPlugins: [St], components: Hr, children: s }) });
4581
4596
  }
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: [
4597
+ 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
4598
  /* @__PURE__ */ e("span", { className: "shrink-0 text-2xs font-semibold uppercase tracking-label text-text-subtle", children: t }),
4584
4599
  r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
4585
4600
  n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
4586
4601
  ] });
4587
- function Hn({ label: t, trailing: r, align: n = "center", className: s }) {
4602
+ function Vn({ label: t, trailing: r, align: n = "center", className: s }) {
4588
4603
  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: [
4604
+ 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
4605
  n === "center" && a,
4591
4606
  /* @__PURE__ */ e("span", { className: "shrink-0 text-xs font-medium text-text-muted", children: t }),
4592
4607
  a,
4593
4608
  r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
4594
4609
  ] });
4595
4610
  }
4596
- function Vn({
4611
+ function qn({
4597
4612
  label: t,
4598
4613
  description: r,
4599
4614
  control: n,
@@ -4601,7 +4616,7 @@ function Vn({
4601
4616
  disabled: a = !1,
4602
4617
  className: l
4603
4618
  }) {
4604
- return /* @__PURE__ */ i(
4619
+ return /* @__PURE__ */ c(
4605
4620
  "div",
4606
4621
  {
4607
4622
  className: d(
@@ -4611,7 +4626,7 @@ function Vn({
4611
4626
  l
4612
4627
  ),
4613
4628
  children: [
4614
- /* @__PURE__ */ i("div", { className: "min-w-0", children: [
4629
+ /* @__PURE__ */ c("div", { className: "min-w-0", children: [
4615
4630
  /* @__PURE__ */ e("div", { className: "text-sm text-text", children: t }),
4616
4631
  r && /* @__PURE__ */ e("div", { className: "text-xs text-text-muted", children: r })
4617
4632
  ] }),
@@ -4620,7 +4635,7 @@ function Vn({
4620
4635
  }
4621
4636
  );
4622
4637
  }
4623
- function qn({
4638
+ function Un({
4624
4639
  icon: t,
4625
4640
  title: r,
4626
4641
  description: n,
@@ -4628,10 +4643,10 @@ function qn({
4628
4643
  children: a,
4629
4644
  className: l
4630
4645
  }) {
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: [
4646
+ return /* @__PURE__ */ c("section", { className: d("flex flex-col gap-2", l), children: [
4647
+ /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
4633
4648
  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: [
4649
+ /* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
4635
4650
  /* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-text", children: r }),
4636
4651
  n && /* @__PURE__ */ e("p", { className: "text-xs text-text-muted", children: n })
4637
4652
  ] }),
@@ -4640,8 +4655,8 @@ function qn({
4640
4655
  /* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
4641
4656
  ] });
4642
4657
  }
4643
- function Un({ label: t, dotColor: r, onClick: n, className: s }) {
4644
- return /* @__PURE__ */ i(
4658
+ function Wn({ label: t, dotColor: r, onClick: n, className: s }) {
4659
+ return /* @__PURE__ */ c(
4645
4660
  "button",
4646
4661
  {
4647
4662
  type: "button",
@@ -4664,7 +4679,7 @@ function Vr(t, r) {
4664
4679
  t
4665
4680
  );
4666
4681
  }
4667
- const Wn = ({
4682
+ const Kn = ({
4668
4683
  groups: t,
4669
4684
  data: r,
4670
4685
  size: n = "md",
@@ -4698,12 +4713,12 @@ const Wn = ({
4698
4713
  className: "text-text-muted",
4699
4714
  children: "Geen items"
4700
4715
  }
4701
- ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((k, g) => /* @__PURE__ */ i(
4716
+ ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((k, g) => /* @__PURE__ */ c(
4702
4717
  "div",
4703
4718
  {
4704
4719
  className: "p-4 border border-border rounded-xl space-y-3",
4705
4720
  children: [
4706
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ i(
4721
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ c(
4707
4722
  me,
4708
4723
  {
4709
4724
  variant: "label",
@@ -4750,7 +4765,7 @@ const Wn = ({
4750
4765
  default:
4751
4766
  C = String($ || "-");
4752
4767
  }
4753
- return f.format && (C = f.format($, k)), /* @__PURE__ */ i("div", { className: "space-y-1", children: [
4768
+ return f.format && (C = f.format($, k)), /* @__PURE__ */ c("div", { className: "space-y-1", children: [
4754
4769
  /* @__PURE__ */ e(
4755
4770
  me,
4756
4771
  {
@@ -4847,12 +4862,12 @@ const Wn = ({
4847
4862
  },
4848
4863
  x.className
4849
4864
  );
4850
- return /* @__PURE__ */ i(
4865
+ return /* @__PURE__ */ c(
4851
4866
  "div",
4852
4867
  {
4853
4868
  className: "grid grid-cols-1 md:grid-cols-3 gap-8 p-6 border border-border rounded-xl",
4854
4869
  children: [
4855
- /* @__PURE__ */ i("div", { className: "md:col-span-1", children: [
4870
+ /* @__PURE__ */ c("div", { className: "md:col-span-1", children: [
4856
4871
  /* @__PURE__ */ e(
4857
4872
  me,
4858
4873
  {
@@ -4873,7 +4888,7 @@ const Wn = ({
4873
4888
  }
4874
4889
  )
4875
4890
  ] }),
4876
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: b, children: h.map((v) => /* @__PURE__ */ i(
4891
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: b, children: h.map((v) => /* @__PURE__ */ c(
4877
4892
  "div",
4878
4893
  {
4879
4894
  className: "space-y-1",
@@ -4913,11 +4928,23 @@ const Wn = ({
4913
4928
  s
4914
4929
  );
4915
4930
  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 }) => {
4931
+ }, qr = () => /* @__PURE__ */ c("div", { className: "flex flex-col gap-px", "aria-hidden": !0, children: [
4932
+ /* @__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" }) }),
4933
+ [0, 1, 2, 3].map((t) => /* @__PURE__ */ c("div", { className: "flex h-row-md items-center gap-2.5 px-2.5", children: [
4934
+ /* @__PURE__ */ e("span", { className: "size-4 shrink-0 rounded-xs bg-page-hover" }),
4935
+ /* @__PURE__ */ e(
4936
+ "span",
4937
+ {
4938
+ className: "h-2 rounded-xs bg-page-hover",
4939
+ style: { width: `${[62, 44, 74, 52][t]}%` }
4940
+ }
4941
+ )
4942
+ ] }, t))
4943
+ ] }), Xe = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
4917
4944
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
4918
4945
  if (a)
4919
- return /* @__PURE__ */ i("li", { children: [
4920
- /* @__PURE__ */ i(
4946
+ return /* @__PURE__ */ c("li", { children: [
4947
+ /* @__PURE__ */ c(
4921
4948
  "div",
4922
4949
  {
4923
4950
  className: d(
@@ -4941,7 +4968,7 @@ const Wn = ({
4941
4968
  )) })
4942
4969
  ] });
4943
4970
  const o = t.action, m = o?.visibility !== "always";
4944
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
4971
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ c(
4945
4972
  "div",
4946
4973
  {
4947
4974
  role: "button",
@@ -4957,7 +4984,7 @@ const Wn = ({
4957
4984
  "group/item flex h-row-md cursor-pointer items-center gap-2.5 rounded-md px-2.5 text-base no-underline",
4958
4985
  "transition-colors duration-fast ease-out",
4959
4986
  "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"
4987
+ l ? "bg-surface-hover font-medium text-text shadow-sm" : "text-text-muted hover:bg-page-hover hover:text-text"
4961
4988
  ),
4962
4989
  children: [
4963
4990
  t.icon && /* @__PURE__ */ e(
@@ -5005,25 +5032,29 @@ const Wn = ({
5005
5032
  ]
5006
5033
  }
5007
5034
  ) });
5008
- }, Kn = ({
5035
+ }, Gn = ({
5009
5036
  items: t,
5010
5037
  isSelectedHandler: r,
5011
5038
  onClick: n,
5012
- preMenuItemsComponent: s
5013
- }) => /* @__PURE__ */ i("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5039
+ preMenuItemsComponent: s,
5040
+ loading: a = !1
5041
+ }) => a ? /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5042
+ s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5043
+ /* @__PURE__ */ e(qr, {})
5044
+ ] }) : /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5014
5045
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5015
5046
  /* @__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(
5047
+ (l, o) => !l.path && !l.label && !l.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, o) : /* @__PURE__ */ e(
5017
5048
  Xe,
5018
5049
  {
5019
- item: a,
5050
+ item: l,
5020
5051
  isSelectedHandler: r,
5021
5052
  onClick: n
5022
5053
  },
5023
- l
5054
+ o
5024
5055
  )
5025
5056
  ) })
5026
- ] }), qr = {
5057
+ ] }), Ur = {
5027
5058
  xs: "text-xs",
5028
5059
  sm: "text-sm",
5029
5060
  md: "text-base",
@@ -5032,13 +5063,13 @@ const Wn = ({
5032
5063
  "2xl": "text-2xl",
5033
5064
  "3xl": "text-3xl",
5034
5065
  "4xl": "text-3xl"
5035
- }, Ur = {
5066
+ }, Wr = {
5036
5067
  light: "font-normal",
5037
5068
  normal: "font-normal",
5038
5069
  medium: "font-medium",
5039
5070
  semibold: "font-semibold",
5040
5071
  bold: "font-bold"
5041
- }, Wr = {
5072
+ }, Kr = {
5042
5073
  primary: "text-text",
5043
5074
  secondary: "text-text-muted",
5044
5075
  accent: "text-accent",
@@ -5048,11 +5079,11 @@ const Wn = ({
5048
5079
  info: "text-info-fg",
5049
5080
  neutral: "text-text",
5050
5081
  current: "text-current"
5051
- }, Kr = {
5082
+ }, Gr = {
5052
5083
  left: "text-left",
5053
5084
  center: "text-center",
5054
5085
  right: "text-right"
5055
- }, Gn = ({
5086
+ }, Jn = ({
5056
5087
  level: t = 1,
5057
5088
  size: r,
5058
5089
  weight: n = "semibold",
@@ -5065,16 +5096,16 @@ const Wn = ({
5065
5096
  }) => {
5066
5097
  const y = `h${t}`, x = d(
5067
5098
  "font-sans text-pretty",
5068
- qr[r || Gr(t)],
5069
- Ur[n],
5070
- Wr[s],
5071
- Kr[a],
5099
+ Ur[r || Jr(t)],
5100
+ Wr[n],
5101
+ Kr[s],
5102
+ Gr[a],
5072
5103
  l && "truncate",
5073
5104
  o
5074
5105
  );
5075
5106
  return /* @__PURE__ */ e(y, { className: x, ...u, children: m });
5076
5107
  };
5077
- function Gr(t) {
5108
+ function Jr(t) {
5078
5109
  return {
5079
5110
  1: "2xl",
5080
5111
  2: "xl",
@@ -5084,7 +5115,7 @@ function Gr(t) {
5084
5115
  6: "md"
5085
5116
  }[t] || "md";
5086
5117
  }
5087
- const Jn = ({
5118
+ const Yn = ({
5088
5119
  commands: t,
5089
5120
  isOpen: r,
5090
5121
  onClose: n,
@@ -5125,13 +5156,13 @@ const Jn = ({
5125
5156
  }, [r, n]), X(() => {
5126
5157
  if (!r) return;
5127
5158
  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(
5159
+ }, [x, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */ c(
5129
5160
  "div",
5130
5161
  {
5131
5162
  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
5163
  ref: b,
5133
5164
  children: [
5134
- /* @__PURE__ */ i("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
5165
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
5135
5166
  /* @__PURE__ */ e(Me, { className: "w-4 h-4 text-text-muted shrink-0" }),
5136
5167
  /* @__PURE__ */ e(
5137
5168
  "input",
@@ -5145,14 +5176,14 @@ const Jn = ({
5145
5176
  }
5146
5177
  )
5147
5178
  ] }),
5148
- /* @__PURE__ */ i(
5179
+ /* @__PURE__ */ c(
5149
5180
  "div",
5150
5181
  {
5151
5182
  ref: v,
5152
5183
  className: "mt-2 pt-2 text-sm border-t border-border max-h-dialog-list overflow-y-auto",
5153
5184
  children: [
5154
5185
  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(
5186
+ g.map((f, $) => /* @__PURE__ */ c(
5156
5187
  "div",
5157
5188
  {
5158
5189
  "data-index": $,
@@ -5172,16 +5203,16 @@ const Jn = ({
5172
5203
  ]
5173
5204
  }
5174
5205
  ),
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: [
5206
+ /* @__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: [
5207
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
5177
5208
  /* @__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
5209
  s?.navigate || "to navigate"
5179
5210
  ] }),
5180
- /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
5211
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
5181
5212
  /* @__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
5213
  s?.select || "to select"
5183
5214
  ] }),
5184
- /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
5215
+ /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5", children: [
5185
5216
  /* @__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
5217
  s?.close || "to close"
5187
5218
  ] })
@@ -5189,7 +5220,7 @@ const Jn = ({
5189
5220
  ]
5190
5221
  }
5191
5222
  ) }) : null;
5192
- }, Jr = {
5223
+ }, Yr = {
5193
5224
  none: "p-0",
5194
5225
  xs: "p-1",
5195
5226
  sm: "p-2",
@@ -5197,7 +5228,7 @@ const Jn = ({
5197
5228
  lg: "p-6",
5198
5229
  xl: "p-8",
5199
5230
  "2xl": "p-12"
5200
- }, Yr = {
5231
+ }, Xr = {
5201
5232
  none: "m-0",
5202
5233
  xs: "m-1",
5203
5234
  sm: "m-2",
@@ -5205,7 +5236,7 @@ const Jn = ({
5205
5236
  lg: "m-6",
5206
5237
  xl: "m-8",
5207
5238
  "2xl": "m-12"
5208
- }, Xr = {
5239
+ }, Zr = {
5209
5240
  none: "",
5210
5241
  primary: "bg-accent text-accent-fg",
5211
5242
  secondary: "bg-surface-hover",
@@ -5221,26 +5252,26 @@ const Jn = ({
5221
5252
  backdrop: "bg-page",
5222
5253
  editor: "bg-surface",
5223
5254
  input: "bg-surface-input"
5224
- }, Zr = {
5255
+ }, Qr = {
5225
5256
  none: "rounded-none",
5226
5257
  sm: "rounded-sm",
5227
5258
  md: "rounded-md",
5228
5259
  lg: "rounded-lg",
5229
5260
  xl: "rounded-xl",
5230
5261
  full: "rounded-full"
5231
- }, Qr = {
5262
+ }, en = {
5232
5263
  none: "shadow-none",
5233
5264
  sm: "shadow-none",
5234
5265
  md: "shadow-overlay",
5235
5266
  lg: "shadow-overlay",
5236
5267
  xl: "shadow-modal",
5237
5268
  "2xl": "shadow-modal"
5238
- }, en = {
5269
+ }, tn = {
5239
5270
  none: "border-0",
5240
5271
  sm: "border",
5241
5272
  md: "border-2",
5242
5273
  lg: "border-4"
5243
- }, tn = {
5274
+ }, rn = {
5244
5275
  primary: "border-accent-border",
5245
5276
  secondary: "border-border",
5246
5277
  accent: "border-accent-border",
@@ -5267,13 +5298,13 @@ const Jn = ({
5267
5298
  {
5268
5299
  ref: x,
5269
5300
  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],
5301
+ t && Yr[t],
5302
+ r && Xr[r],
5303
+ n && Zr[n],
5304
+ s && Qr[s],
5305
+ a && en[a],
5306
+ l && tn[l],
5307
+ o && rn[o],
5277
5308
  m
5278
5309
  ),
5279
5310
  ...y,
@@ -5282,7 +5313,7 @@ const Jn = ({
5282
5313
  )
5283
5314
  );
5284
5315
  Ze.displayName = "Box";
5285
- const Yn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5316
+ const Xn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
5286
5317
  Ze,
5287
5318
  {
5288
5319
  background: "module",
@@ -5297,7 +5328,7 @@ const Yn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5297
5328
  ]
5298
5329
  }
5299
5330
  );
5300
- function Xn({
5331
+ function Zn({
5301
5332
  identifier: t,
5302
5333
  resourceLoader: r,
5303
5334
  framework: n = "react",
@@ -5343,13 +5374,13 @@ function Xn({
5343
5374
  }
5344
5375
  }, [b, n, u]), X(() => {
5345
5376
  n === "svelte" && k.current && k.current.$set?.(l);
5346
- }, [l, n]), /* @__PURE__ */ i("div", { ref: m, className: o, style: { display: "contents" }, children: [
5377
+ }, [l, n]), /* @__PURE__ */ c("div", { ref: m, className: o, style: { display: "contents" }, children: [
5347
5378
  u && s,
5348
5379
  !u && x && a,
5349
5380
  n === "react" && !x && b && /* @__PURE__ */ e(b, { ...l })
5350
5381
  ] });
5351
5382
  }
5352
- class Zn extends wt {
5383
+ class Qn extends wt {
5353
5384
  constructor() {
5354
5385
  super(...arguments), this.state = {
5355
5386
  hasError: !1,
@@ -5363,7 +5394,7 @@ class Zn extends wt {
5363
5394
  console.error(`[ErrorBoundary] Error in ${this.props.name || "Component"}:`, r, n);
5364
5395
  }
5365
5396
  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: [
5397
+ 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
5398
  /* @__PURE__ */ e("h2", { className: "text-lg font-semibold text-danger-fg", children: "Something went wrong" }),
5368
5399
  /* @__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
5400
  /* @__PURE__ */ e(
@@ -5378,75 +5409,75 @@ class Zn extends wt {
5378
5409
  }
5379
5410
  }
5380
5411
  export {
5381
- Tn as AssistantCard,
5382
- Pr as Avatar,
5383
- _n as AvatarStack,
5384
- Cn as Badge,
5412
+ _n as AssistantCard,
5413
+ Ir as Avatar,
5414
+ An as AvatarStack,
5415
+ Sn as Badge,
5385
5416
  Ze as Box,
5386
5417
  ae as Button,
5387
- bn as ButtonGroup,
5388
- Yn as Card,
5389
- An as ChannelBadge,
5418
+ gn as ButtonGroup,
5419
+ Xn as Card,
5420
+ Ln as ChannelBadge,
5390
5421
  ye as Checkbox,
5391
- Jn as CommandPalette,
5392
- kn as ConfirmDialog,
5422
+ Yn as CommandPalette,
5423
+ Cn as ConfirmDialog,
5393
5424
  rr as ContentLoading,
5394
5425
  Ae as DatePicker,
5395
5426
  nr as Dropdown,
5396
- Sn as EmptyState,
5397
- Zn as ErrorBoundary,
5398
- Xn as FederatedResource,
5427
+ En as EmptyState,
5428
+ Qn as ErrorBoundary,
5429
+ Zn as FederatedResource,
5399
5430
  Lt as FilterChip,
5400
5431
  Yt as FolderSelect,
5401
- wn as Form,
5432
+ kn as Form,
5402
5433
  wr as FormSection,
5403
- Gn as Heading,
5434
+ Jn as Heading,
5404
5435
  Q as Icon,
5405
- Ln as Image,
5406
- En as Kbd,
5407
- On as KpiCard,
5408
- gn as Link,
5409
- Pn as List,
5436
+ Pn as Image,
5437
+ zn as Kbd,
5438
+ Fn as KpiCard,
5439
+ pn as Link,
5440
+ jn as List,
5410
5441
  In as ListBulkAction,
5411
- fn as MeetingGrid,
5412
- jn as MessageBubble,
5442
+ hn as MeetingGrid,
5443
+ On as MessageBubble,
5413
5444
  Ye as Modal,
5414
- Fn as PageHeader,
5415
- pn as PageToolbar,
5445
+ Bn as PageHeader,
5446
+ vn as PageToolbar,
5416
5447
  Je as PageToolbarActions,
5417
- hn as ParticipantTile,
5448
+ xn as ParticipantTile,
5418
5449
  Ve as Popover,
5419
- zn as ProgressBar,
5420
- Bn as RichText,
5450
+ Mn as ProgressBar,
5451
+ Rn as RichText,
5421
5452
  Ge as SearchField,
5422
5453
  er as SearchableTextField,
5423
- Rn as SectionCaption,
5424
- Hn as SectionDivider,
5454
+ Hn as SectionCaption,
5455
+ Vn as SectionDivider,
5425
5456
  Ft as SegmentedToggle,
5426
5457
  Ce as Select,
5427
- Vn as SettingsRow,
5428
- qn as SettingsSection,
5429
- Kn as SidebarMenu,
5430
- Un as SourceChip,
5431
- Mn as Spinner,
5458
+ qn as SettingsRow,
5459
+ Un as SettingsSection,
5460
+ Gn as SidebarMenu,
5461
+ Wn as SourceChip,
5462
+ $n as Spinner,
5432
5463
  qe as SplitButton,
5433
- $n as StatusDot,
5434
- Dn as StepIndicator,
5464
+ Dn as StatusDot,
5465
+ Tn as StepIndicator,
5435
5466
  pr as StorageInput,
5436
5467
  tr as Switch,
5437
- Nn as TabBar,
5468
+ wn as TabBar,
5438
5469
  Fe as Table,
5439
5470
  dr as Tabs,
5440
5471
  me as Text,
5441
5472
  Le as TextArea,
5442
5473
  Ne as TextField,
5443
- xn as VideoSurface,
5444
- Wn as View,
5445
- mn as catTone,
5474
+ bn as VideoSurface,
5475
+ Kn as View,
5476
+ fn as catTone,
5446
5477
  d as cn,
5447
- un as createSizes,
5448
- dn as createVariants,
5449
- vn as dateFilterHandler,
5450
- yn as selectFilterHandler
5478
+ mn as createSizes,
5479
+ un as createVariants,
5480
+ yn as dateFilterHandler,
5481
+ Nn as selectFilterHandler
5451
5482
  };
5452
5483
  //# sourceMappingURL=index.js.map