@opencxh/ui-kit 3.166.0 → 3.172.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,17 +2,17 @@ import { clsx as gt } from "clsx";
2
2
  import oe, { useState as B, useLayoutEffect as pt, useRef as re, useEffect as J, forwardRef as ve, useMemo as pe, useCallback as xe, createContext as et, useId as vt, useContext as yt, Component as Nt } from "react";
3
3
  import { jsxs as c, jsx as e, Fragment as Ee } from "react/jsx-runtime";
4
4
  import * as wt from "lucide-react";
5
- import { VideoOff as kt, User as Ct, MicOff as St, Mic as Et, X as Se, ChevronDown as De, ExternalLink as zt, Calendar as Mt, ChevronLeft as ze, ChevronRight as Le, ChevronDownIcon as Tt, Loader2 as $t, Search as Ie, Check as Ue, ChevronUp as _t, Ellipsis as At, FileText as je, HardDrive as We, ArrowLeft as Dt, FolderPlus as Lt, Upload as It, Folder as Ke, Trash2 as Pt, Plus as Ot, Sparkles as jt, ImageOff as Ft, Pencil as Rt, ArrowUpRight as Bt } from "lucide-react";
5
+ import { VideoOff as kt, User as Ct, MicOff as St, Mic as Et, X as Se, ChevronDown as De, ExternalLink as zt, Calendar as Mt, ChevronLeft as ze, ChevronRight as Le, ChevronDownIcon as Tt, Loader2 as _t, Search as Ie, Check as Ue, ChevronUp as $t, Ellipsis as At, FileText as je, HardDrive as We, ArrowLeft as Dt, FolderPlus as Lt, Upload as It, Folder as Ke, Trash2 as Pt, Plus as Ot, Sparkles as jt, ImageOff as Ft, Pencil as Rt, ArrowUpRight as Bt } from "lucide-react";
6
6
  import Ht from "dompurify";
7
- import Vt from "react-markdown";
8
- import qt from "remark-gfm";
7
+ import qt from "react-markdown";
8
+ import Vt from "remark-gfm";
9
9
  function i(...t) {
10
10
  return gt(t);
11
11
  }
12
- function Yn(t) {
12
+ function es(t) {
13
13
  return (r, n) => t[r]?.[n] || "";
14
14
  }
15
- function Xn(t) {
15
+ function ts(t) {
16
16
  return (r) => t[r] || "";
17
17
  }
18
18
  function Pe(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
@@ -57,26 +57,49 @@ const Kt = {
57
57
  function rt(t) {
58
58
  return Kt[tt(t)];
59
59
  }
60
- function Zn(t) {
60
+ function rs(t) {
61
61
  return Gt[tt(t)];
62
62
  }
63
63
  const Ge = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
64
- function Qn(t) {
64
+ function ns(t) {
65
65
  let r = 0;
66
66
  for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
67
67
  return Ge[r % Ge.length];
68
68
  }
69
- const _e = (t) => t == null ? "" : String(t), Jt = (t) => _e(t).trim().toLowerCase();
70
- function es({ tiles: t, pinned: r, className: n }) {
71
- if (r)
72
- return /* @__PURE__ */ c("div", { className: i("flex flex-col md:flex-row gap-2 h-full min-h-0", n), children: [
73
- /* @__PURE__ */ e("div", { className: "flex-1 min-h-0", children: r }),
74
- 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)) })
69
+ const $e = (t) => t == null ? "" : String(t), Jt = (t) => $e(t).trim().toLowerCase(), Yt = [
70
+ { upTo: 1, cols: "grid-cols-1" },
71
+ { upTo: 2, cols: "grid-cols-1 @[22rem]:grid-cols-2" },
72
+ { upTo: 4, cols: "grid-cols-1 @[18rem]:grid-cols-2" },
73
+ { upTo: 9, cols: "grid-cols-2 @[26rem]:grid-cols-3" }
74
+ ], Xt = "grid-cols-2 @[26rem]:grid-cols-3 @[40rem]:grid-cols-4";
75
+ function Zt(t) {
76
+ return Yt.find((r) => t <= r.upTo)?.cols ?? Xt;
77
+ }
78
+ function Qt(t, r) {
79
+ const n = r ?? t;
80
+ if (t <= n) return { shown: t, hidden: 0 };
81
+ const s = Math.max(0, n - 1);
82
+ return { shown: s, hidden: t - s };
83
+ }
84
+ function ss({ tiles: t, pinned: r, maxStrip: n, className: s }) {
85
+ if (r) {
86
+ const { shown: a, hidden: l } = Qt(t.length, n), o = t.slice(0, a);
87
+ return /* @__PURE__ */ c("div", { className: i("@container flex h-full min-h-0 flex-col gap-2", s), children: [
88
+ /* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: r }),
89
+ t.length > 0 && // Een vaste hoogte in procenten van het vlak, met een bodem zodat de strip
90
+ // in een lage dock niet tot een lijn samenknijpt.
91
+ /* @__PURE__ */ c("div", { className: "flex h-[22%] min-h-14 shrink-0 gap-2 overflow-x-auto", children: [
92
+ o.map((u, d) => /* @__PURE__ */ e("div", { className: "h-full min-w-0 shrink-0 aspect-video", children: u }, d)),
93
+ l > 0 && /* @__PURE__ */ c("div", { className: "flex h-full aspect-video shrink-0 items-center justify-center rounded-lg bg-video-surface text-sm font-semibold tabular-nums text-white/80", children: [
94
+ "+",
95
+ l
96
+ ] })
97
+ ] })
75
98
  ] });
76
- const s = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
77
- return /* @__PURE__ */ e("div", { className: i("grid gap-2 h-full", s, n), children: t.map((a, l) => /* @__PURE__ */ e("div", { children: a }, l)) });
99
+ }
100
+ return /* @__PURE__ */ e("div", { className: i("@container grid h-full min-h-0 auto-rows-fr gap-2", Zt(t.length), s), children: t.map((a, l) => /* @__PURE__ */ e("div", { className: "min-h-0 min-w-0", children: a }, l)) });
78
101
  }
79
- function ts({
102
+ function as({
80
103
  name: t,
81
104
  avatarUrl: r,
82
105
  muted: n,
@@ -90,22 +113,29 @@ function ts({
90
113
  "div",
91
114
  {
92
115
  className: i(
93
- "relative rounded-lg overflow-hidden bg-video-surface flex items-center justify-center",
116
+ "@container relative flex min-h-0 min-w-0 items-center justify-center overflow-hidden rounded-lg bg-video-surface",
94
117
  u ? "h-full w-full" : "aspect-video",
95
118
  s && "ring-2 ring-speaking",
96
119
  o
97
120
  ),
98
121
  children: [
99
- 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(kt, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Ct, { className: "w-8 h-8" }) }) }),
100
- /* @__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: [
101
- n ? /* @__PURE__ */ e(St, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Et, { className: "w-3 h-3" }),
102
- /* @__PURE__ */ e("span", { className: "truncate max-w-35", children: t })
122
+ a && l ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: l }) : /* @__PURE__ */ e("div", { className: "flex min-h-0 min-w-0 items-center justify-center text-gray-300", children: r ? /* @__PURE__ */ e(
123
+ "img",
124
+ {
125
+ src: r,
126
+ alt: t,
127
+ className: "aspect-square w-[38%] max-w-16 min-w-6 rounded-full object-cover"
128
+ }
129
+ ) : /* @__PURE__ */ e("div", { className: "flex aspect-square w-[38%] max-w-16 min-w-6 items-center justify-center rounded-full bg-video-surface-strong", children: a ? /* @__PURE__ */ e(kt, { className: "w-1/2 h-1/2" }) : /* @__PURE__ */ e(Ct, { className: "w-1/2 h-1/2" }) }) }),
130
+ /* @__PURE__ */ c("div", { className: "absolute inset-x-2 bottom-2 flex w-fit max-w-[calc(100%-1rem)] items-center gap-1.5 rounded bg-video-overlay px-1.5 py-1 text-xs text-white", children: [
131
+ n ? /* @__PURE__ */ e(St, { className: "size-3 shrink-0" }) : /* @__PURE__ */ e(Et, { className: "size-3 shrink-0" }),
132
+ /* @__PURE__ */ e("span", { className: "hidden truncate @[9rem]:inline", children: t })
103
133
  ] })
104
134
  ]
105
135
  }
106
136
  );
107
137
  }
108
- function rs({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
138
+ function ls({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
109
139
  const a = re(null);
110
140
  return J(() => {
111
141
  if (!r || !a.current) return;
@@ -125,7 +155,7 @@ function rs({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
125
155
  }
126
156
  );
127
157
  }
128
- const Yt = {
158
+ const er = {
129
159
  primary: "bg-accent text-accent-fg hover:bg-accent-hover disabled:bg-surface-hover",
130
160
  secondary: "bg-surface-sunk text-text-strong hover:bg-surface-hover disabled:bg-surface-hover",
131
161
  // No resting fill, so no disabled fill either — a greyed-out plate where
@@ -138,7 +168,7 @@ const Yt = {
138
168
  success: "bg-success text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
139
169
  warning: "bg-warning text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
140
170
  "danger-solid": "bg-danger text-text-inverse hover:opacity-90 disabled:bg-surface-hover"
141
- }, Xt = {
171
+ }, tr = {
142
172
  xs: "h-control-xs px-2 text-xs",
143
173
  sm: "h-control-sm px-3 text-sm",
144
174
  md: "h-control-md px-4 text-sm",
@@ -146,7 +176,7 @@ const Yt = {
146
176
  xl: "h-control-xl px-6 text-base",
147
177
  "2xl": "h-control-2xl px-6 text-base",
148
178
  full: "h-control-md px-4 text-sm"
149
- }, Zt = {
179
+ }, rr = {
150
180
  xs: "h-control-xs w-6",
151
181
  sm: "h-control-sm w-7",
152
182
  md: "h-control-md w-8",
@@ -185,8 +215,8 @@ const Yt = {
185
215
  "focus-visible:outline-none focus-visible:focus-ring",
186
216
  "disabled:cursor-not-allowed disabled:border-border-subtle",
187
217
  "disabled:text-text-disabled",
188
- Yt[t],
189
- o ? Zt[r] : Xt[r],
218
+ er[t],
219
+ o ? rr[r] : tr[r],
190
220
  (n || r === "full") && "w-full",
191
221
  s && "cursor-wait",
192
222
  d
@@ -212,7 +242,7 @@ const Yt = {
212
242
  }
213
243
  );
214
244
  se.displayName = "Button";
215
- const ns = ({
245
+ const os = ({
216
246
  children: t,
217
247
  size: r = "md",
218
248
  orientation: n = "horizontal",
@@ -243,12 +273,12 @@ const ns = ({
243
273
  );
244
274
  return /* @__PURE__ */ e("div", { className: l, role: "group", children: t });
245
275
  };
246
- function ss(t) {
276
+ function cs(t) {
247
277
  if (!t) return;
248
278
  const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n = wt[r];
249
279
  return typeof n == "function" || typeof n == "object" && n !== null ? n : void 0;
250
280
  }
251
- const Qt = {
281
+ const nr = {
252
282
  primary: "text-text",
253
283
  secondary: "text-text-muted",
254
284
  accent: "text-accent",
@@ -268,9 +298,9 @@ const Qt = {
268
298
  "aria-label": o,
269
299
  ...u
270
300
  }) => {
271
- const d = typeof r == "number" ? r : er(r), v = i(
301
+ const d = typeof r == "number" ? r : sr(r), v = i(
272
302
  "inline-block shrink-0",
273
- Qt[n],
303
+ nr[n],
274
304
  s && [
275
305
  "cursor-pointer rounded-sm transition-opacity duration-fast ease-out hover:opacity-80",
276
306
  "focus-visible:outline-none focus-visible:focus-ring"
@@ -292,7 +322,7 @@ const Qt = {
292
322
  };
293
323
  return /* @__PURE__ */ e(t, { ...m });
294
324
  };
295
- function er(t) {
325
+ function sr(t) {
296
326
  return {
297
327
  xs: 12,
298
328
  sm: 14,
@@ -358,29 +388,29 @@ const nt = ({
358
388
  }
359
389
  )
360
390
  ] });
361
- }, tr = {
391
+ }, ar = {
362
392
  none: "hover:bg-surface-sunk hover:text-text",
363
393
  default: "bg-surface-sunk text-text-muted hover:text-text",
364
394
  muted: "bg-surface-sunk text-text-subtle hover:text-text",
365
395
  outline: "text-text-muted ring-1 ring-inset ring-border-strong hover:bg-surface-hover hover:text-text",
366
396
  warning: "bg-warning-soft text-warning-fg",
367
397
  danger: "bg-danger-soft text-danger-fg"
368
- }, rr = (t) => i(
398
+ }, lr = (t) => i(
369
399
  // A button's default cursor is an arrow, so it has to be asked for.
370
400
  "inline-flex cursor-pointer select-none items-center text-sm font-medium",
371
401
  t.size === "sm" ? "h-control-sm" : "h-control-md",
372
402
  "transition-colors duration-fast ease-out",
373
403
  t.shape === "pill" ? "rounded-full" : "rounded-md",
374
404
  // Picking a value outranks whatever the value happens to mean.
375
- t.active ? "bg-info-soft text-info-fg" : tr[t.tone ?? "default"],
405
+ t.active ? "bg-info-soft text-info-fg" : ar[t.tone ?? "default"],
376
406
  t.className
377
- ), nr = (t) => i(
407
+ ), or = (t) => i(
378
408
  "inline-flex items-center gap-1.5 pl-3",
379
409
  t.shape === "pill" ? "rounded-full" : "rounded-md",
380
410
  t.withClear ? "pr-1.5" : "pr-3",
381
411
  "focus-visible:outline-none focus-visible:focus-ring"
382
412
  );
383
- function sr({
413
+ function cr({
384
414
  label: t,
385
415
  icon: r,
386
416
  tone: n = "default",
@@ -396,11 +426,11 @@ function sr({
396
426
  title: b,
397
427
  className: g
398
428
  }) {
399
- const N = l && !!v, p = s === "pill" ? "rounded-full" : "rounded-md", x = rr({ active: l, tone: n, shape: s, size: a, className: g }), C = /* @__PURE__ */ c(Ee, { children: [
429
+ const N = l && !!v, p = s === "pill" ? "rounded-full" : "rounded-md", x = lr({ active: l, tone: n, shape: s, size: a, className: g }), C = /* @__PURE__ */ c(Ee, { children: [
400
430
  r,
401
431
  t,
402
432
  o && /* @__PURE__ */ e(Q, { icon: De, size: "xs" })
403
- ] }), S = nr({ shape: s, withClear: N }), I = N && /* @__PURE__ */ e(
433
+ ] }), S = or({ shape: s, withClear: N }), I = N && /* @__PURE__ */ e(
404
434
  "button",
405
435
  {
406
436
  type: "button",
@@ -427,13 +457,13 @@ function sr({
427
457
  I
428
458
  ] }) : /* @__PURE__ */ e("button", { type: "button", title: b, onClick: f, className: i(x, S), children: C });
429
459
  }
430
- const ar = {
460
+ const ir = {
431
461
  xs: "text-xs",
432
462
  sm: "text-sm",
433
463
  md: "text-base",
434
464
  lg: "text-md",
435
465
  xl: "text-lg"
436
- }, lr = {
466
+ }, dr = {
437
467
  primary: "text-text hover:text-info-fg hover:underline",
438
468
  info: "text-info-fg hover:underline",
439
469
  secondary: "text-text-muted hover:text-text",
@@ -442,7 +472,7 @@ const ar = {
442
472
  success: "text-success-fg hover:underline",
443
473
  warning: "text-warning-fg hover:underline",
444
474
  error: "text-danger-fg hover:underline"
445
- }, or = {
475
+ }, ur = {
446
476
  primary: "bg-accent-soft",
447
477
  accent: "bg-accent-soft",
448
478
  secondary: "bg-surface-hover",
@@ -451,7 +481,7 @@ const ar = {
451
481
  warning: "bg-warning-soft",
452
482
  error: "bg-danger-soft",
453
483
  info: "bg-info-soft"
454
- }, as = ({
484
+ }, is = ({
455
485
  variant: t = "default",
456
486
  size: r = "md",
457
487
  color: n = "primary",
@@ -468,13 +498,13 @@ const ar = {
468
498
  "inline-flex items-center gap-1 underline-offset-2",
469
499
  "transition-colors duration-fast ease-out",
470
500
  "focus-visible:outline-none focus-visible:focus-ring",
471
- ar[r],
472
- !s && lr[n],
501
+ ir[r],
502
+ !s && dr[n],
473
503
  t === "subtle" && "no-underline opacity-70 hover:opacity-100",
474
504
  t === "underline" && "underline decoration-1 hover:decoration-2",
475
505
  t === "button" && [
476
506
  "h-control-md rounded-md px-3 font-semibold no-underline hover:no-underline",
477
- or[n]
507
+ ur[n]
478
508
  ],
479
509
  s && "pointer-events-none cursor-not-allowed text-text-disabled opacity-50",
480
510
  l
@@ -489,11 +519,11 @@ const ar = {
489
519
  o,
490
520
  f && /* @__PURE__ */ e(zt, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
491
521
  ] });
492
- }, cr = {
522
+ }, mr = {
493
523
  sm: "h-control-sm px-3 text-sm",
494
524
  md: "h-control-md px-3 text-sm"
495
525
  };
496
- function ir({
526
+ function fr({
497
527
  options: t,
498
528
  value: r,
499
529
  onChange: n,
@@ -530,7 +560,7 @@ function ir({
530
560
  "transition-colors duration-fast ease-out",
531
561
  "focus-visible:outline-none focus-visible:focus-ring",
532
562
  l && "min-w-0 flex-1",
533
- cr[s],
563
+ mr[s],
534
564
  v ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
535
565
  ),
536
566
  children: d.label
@@ -541,11 +571,11 @@ function ir({
541
571
  }
542
572
  );
543
573
  }
544
- const dr = {
574
+ const hr = {
545
575
  primary: "bg-accent text-accent-fg hover:bg-accent-hover",
546
576
  secondary: "border border-border bg-surface text-text hover:bg-surface-hover",
547
577
  outline: "border border-accent-border text-accent hover:bg-accent-soft"
548
- }, ur = {
578
+ }, xr = {
549
579
  sm: "h-control-sm w-7",
550
580
  md: "h-control-md w-8"
551
581
  };
@@ -595,8 +625,8 @@ function st({
595
625
  className: i(
596
626
  "inline-flex items-center justify-center rounded-md rounded-l-none",
597
627
  "transition-colors duration-fast ease-out",
598
- dr[n],
599
- ur[s],
628
+ hr[n],
629
+ xr[s],
600
630
  m && "cursor-not-allowed opacity-50"
601
631
  ),
602
632
  children: /* @__PURE__ */ e(De, { className: "size-icon-md" })
@@ -627,17 +657,17 @@ function st({
627
657
  ] })
628
658
  );
629
659
  }
630
- const mr = {
660
+ const br = {
631
661
  sm: "size-checkbox-sm",
632
662
  md: "size-checkbox",
633
663
  lg: "size-checkbox-lg",
634
664
  full: "size-checkbox"
635
- }, fr = {
665
+ }, gr = {
636
666
  sm: "min-h-control-sm",
637
667
  md: "min-h-control-md",
638
668
  lg: "min-h-control-lg",
639
669
  full: "min-h-control-md"
640
- }, hr = {
670
+ }, pr = {
641
671
  sm: "text-sm",
642
672
  md: "text-base",
643
673
  lg: "text-md",
@@ -664,7 +694,7 @@ const mr = {
664
694
  return oe.useEffect(() => {
665
695
  N.current && (N.current.indeterminate = a);
666
696
  }, [a]), /* @__PURE__ */ c("div", { className: i("flex flex-col", l), children: [
667
- /* @__PURE__ */ c("div", { className: i("flex items-center gap-3", fr[s]), children: [
697
+ /* @__PURE__ */ c("div", { className: i("flex items-center gap-3", gr[s]), children: [
668
698
  /* @__PURE__ */ e(
669
699
  "input",
670
700
  {
@@ -681,7 +711,7 @@ const mr = {
681
711
  "transition-colors duration-fast ease-out",
682
712
  "focus-visible:outline-none focus-visible:focus-ring",
683
713
  "disabled:cursor-not-allowed disabled:bg-surface-hover",
684
- mr[s],
714
+ br[s],
685
715
  g ? "border-danger-border" : "border-border-strong",
686
716
  u
687
717
  ),
@@ -696,7 +726,7 @@ const mr = {
696
726
  className: i(
697
727
  "cursor-pointer",
698
728
  g ? "text-danger-fg" : "text-text",
699
- hr[s],
729
+ pr[s],
700
730
  o
701
731
  ),
702
732
  children: t
@@ -710,19 +740,19 @@ const mr = {
710
740
  }
711
741
  );
712
742
  we.displayName = "Checkbox";
713
- const xr = {
743
+ const vr = {
714
744
  xs: "text-xs",
715
745
  sm: "text-sm",
716
746
  md: "text-base",
717
747
  lg: "text-md",
718
748
  xl: "text-lg"
719
- }, br = {
749
+ }, yr = {
720
750
  light: "font-normal",
721
751
  normal: "font-normal",
722
752
  medium: "font-medium",
723
753
  semibold: "font-semibold",
724
754
  bold: "font-bold"
725
- }, gr = {
755
+ }, Nr = {
726
756
  primary: "text-text",
727
757
  secondary: "text-text-muted",
728
758
  accent: "text-accent",
@@ -733,12 +763,12 @@ const xr = {
733
763
  neutral: "text-text",
734
764
  current: "text-current",
735
765
  muted: "text-text-subtle"
736
- }, pr = {
766
+ }, wr = {
737
767
  left: "text-left",
738
768
  center: "text-center",
739
769
  right: "text-right",
740
770
  justify: "text-justify"
741
- }, vr = {
771
+ }, kr = {
742
772
  tight: "leading-tight",
743
773
  normal: "leading-normal",
744
774
  relaxed: "leading-relaxed"
@@ -757,20 +787,20 @@ const xr = {
757
787
  children: f,
758
788
  ...b
759
789
  }) => {
760
- const g = v || yr(t), N = t === "caption", p = t === "label", x = t === "code", C = i(
790
+ const g = v || Cr(t), N = t === "caption", p = t === "label", x = t === "code", C = i(
761
791
  "font-sans",
762
792
  // Variant — caption and label pin their own size/weight
763
793
  N && "text-xs text-text-subtle",
764
794
  p && "text-xs font-semibold uppercase tracking-label text-text-subtle",
765
795
  x && "font-mono text-sm rounded-sm bg-surface-hover px-1 py-0.5",
766
796
  // Size — only where the variant does not pin it
767
- !N && !p && !x && xr[r],
797
+ !N && !p && !x && vr[r],
768
798
  // Weight — label owns its weight
769
- !p && br[n],
770
- gr[s],
771
- pr[a],
799
+ !p && yr[n],
800
+ Nr[s],
801
+ wr[a],
772
802
  // Line height only overrides the body variant
773
- t === "body" && vr[d],
803
+ t === "body" && kr[d],
774
804
  o && "italic",
775
805
  u && "underline",
776
806
  l && "truncate",
@@ -778,7 +808,7 @@ const xr = {
778
808
  );
779
809
  return /* @__PURE__ */ e(g, { className: C, ...b, children: f });
780
810
  };
781
- function yr(t) {
811
+ function Cr(t) {
782
812
  return {
783
813
  body: "p",
784
814
  caption: "span",
@@ -786,7 +816,7 @@ function yr(t) {
786
816
  code: "code"
787
817
  }[t] || "p";
788
818
  }
789
- function ls({
819
+ function ds({
790
820
  label: t,
791
821
  value: r,
792
822
  onChange: n,
@@ -803,8 +833,8 @@ function ls({
803
833
  const b = re(null), [g, N] = B(null), p = async (x) => {
804
834
  if (!x) return;
805
835
  N(null);
806
- const C = await wr(x, s);
807
- if (a && Nr(C) > a) {
836
+ const C = await Er(x, s);
837
+ if (a && Sr(C) > a) {
808
838
  N(f);
809
839
  return;
810
840
  }
@@ -863,11 +893,11 @@ function ls({
863
893
  )
864
894
  ] });
865
895
  }
866
- function Nr(t) {
896
+ function Sr(t) {
867
897
  const r = t.slice(t.indexOf(",") + 1), n = r.endsWith("==") ? 2 : r.endsWith("=") ? 1 : 0;
868
898
  return Math.floor(r.length * 3 / 4) - n;
869
899
  }
870
- function wr(t, r) {
900
+ function Er(t, r) {
871
901
  return new Promise((n, s) => {
872
902
  const a = new FileReader();
873
903
  a.onload = () => {
@@ -885,7 +915,7 @@ function wr(t, r) {
885
915
  }, a.onerror = s, a.readAsDataURL(t);
886
916
  });
887
917
  }
888
- const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }), Cr = () => /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" }), Sr = () => /* @__PURE__ */ e(Q, { icon: Le, size: "md", color: "current" }), Be = ve(({
918
+ const zr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }), Mr = () => /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" }), Tr = () => /* @__PURE__ */ e(Q, { icon: Le, size: "md", color: "current" }), Be = ve(({
889
919
  value: t,
890
920
  onChange: r,
891
921
  placeholder: n = "Select date",
@@ -909,17 +939,17 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
909
939
  }, [b]);
910
940
  const I = (h) => {
911
941
  if (!h) return "";
912
- const z = h.getDate().toString().padStart(2, "0"), k = (h.getMonth() + 1).toString().padStart(2, "0"), _ = h.getFullYear(), y = v === "dd/MM/yyyy" ? `${z}/${k}/${_}` : v === "yyyy-MM-dd" ? `${_}-${k}-${z}` : `${k}/${z}/${_}`;
942
+ const z = h.getDate().toString().padStart(2, "0"), k = (h.getMonth() + 1).toString().padStart(2, "0"), $ = h.getFullYear(), y = v === "dd/MM/yyyy" ? `${z}/${k}/${$}` : v === "yyyy-MM-dd" ? `${$}-${k}-${z}` : `${k}/${z}/${$}`;
913
943
  return m ? `${y} ${A(h)}` : y;
914
944
  }, A = (h) => `${h.getHours().toString().padStart(2, "0")}:${h.getMinutes().toString().padStart(2, "0")}`, K = (h) => {
915
945
  const [z, k] = h.split(":").map(Number);
916
946
  if (Number.isNaN(z) || Number.isNaN(k)) return;
917
- const _ = t ? new Date(t) : /* @__PURE__ */ new Date();
918
- _.setHours(z, k, 0, 0), r?.(_);
947
+ const $ = t ? new Date(t) : /* @__PURE__ */ new Date();
948
+ $.setHours(z, k, 0, 0), r?.($);
919
949
  }, W = () => {
920
- const h = N.getFullYear(), z = N.getMonth(), k = new Date(h, z, 1), _ = new Date(k);
921
- _.setDate(_.getDate() - k.getDay());
922
- const y = [], H = new Date(_);
950
+ const h = N.getFullYear(), z = N.getMonth(), k = new Date(h, z, 1), $ = new Date(k);
951
+ $.setDate($.getDate() - k.getDay());
952
+ const y = [], H = new Date($);
923
953
  for (let ae = 0; ae < 42; ae++)
924
954
  y.push(new Date(H)), H.setDate(H.getDate() + 1);
925
955
  return y;
@@ -932,7 +962,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
932
962
  }
933
963
  r?.(h), g(!1);
934
964
  }
935
- }, q = () => {
965
+ }, V = () => {
936
966
  p(new Date(N.getFullYear(), N.getMonth() - 1, 1));
937
967
  }, ne = () => {
938
968
  p(new Date(N.getFullYear(), N.getMonth() + 1, 1));
@@ -988,7 +1018,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
988
1018
  onClick: () => !s && g(!b),
989
1019
  disabled: s,
990
1020
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-muted",
991
- children: /* @__PURE__ */ e(kr, {})
1021
+ children: /* @__PURE__ */ e(zr, {})
992
1022
  }
993
1023
  )
994
1024
  ] }),
@@ -997,9 +1027,9 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
997
1027
  /* @__PURE__ */ e(
998
1028
  "button",
999
1029
  {
1000
- onClick: q,
1030
+ onClick: V,
1001
1031
  className: "p-1 hover:bg-surface-hover rounded",
1002
- children: /* @__PURE__ */ e(Cr, {})
1032
+ children: /* @__PURE__ */ e(Mr, {})
1003
1033
  }
1004
1034
  ),
1005
1035
  /* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
@@ -1012,13 +1042,13 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1012
1042
  {
1013
1043
  onClick: ne,
1014
1044
  className: "p-1 hover:bg-surface-hover rounded",
1015
- children: /* @__PURE__ */ e(Sr, {})
1045
+ children: /* @__PURE__ */ e(Tr, {})
1016
1046
  }
1017
1047
  )
1018
1048
  ] }),
1019
1049
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((h) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: h }, h)) }),
1020
1050
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: de.map((h, z) => {
1021
- const k = h.getMonth() === N.getMonth(), _ = t && h.toDateString() === t.toDateString(), y = h.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), H = !k || u && h < u || d && h > d;
1051
+ const k = h.getMonth() === N.getMonth(), $ = t && h.toDateString() === t.toDateString(), y = h.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), H = !k || u && h < u || d && h > d;
1022
1052
  return /* @__PURE__ */ e(
1023
1053
  "button",
1024
1054
  {
@@ -1027,9 +1057,9 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1027
1057
  className: i(
1028
1058
  "w-8 h-8 text-sm rounded transition-colors duration-fast",
1029
1059
  {
1030
- "text-text hover:bg-surface-hover": k && !_ && !H,
1031
- "bg-accent text-accent-fg": _,
1032
- "bg-surface-hover text-text": y && !_,
1060
+ "text-text hover:bg-surface-hover": k && !$ && !H,
1061
+ "bg-accent text-accent-fg": $,
1062
+ "bg-surface-hover text-text": y && !$,
1033
1063
  "text-text-muted cursor-not-allowed": H
1034
1064
  }
1035
1065
  ),
@@ -1071,7 +1101,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1071
1101
  ] })
1072
1102
  ] })
1073
1103
  ] });
1074
- }), Er = {
1104
+ }), _r = {
1075
1105
  sm: "h-control-sm px-3 text-sm",
1076
1106
  md: "h-control-md px-3 text-sm",
1077
1107
  lg: "h-control-lg px-3 text-base",
@@ -1098,7 +1128,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1098
1128
  onCreateOption: C,
1099
1129
  ...S
1100
1130
  }, I) => {
1101
- const A = f || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!n, [W, D] = oe.useState(!1), [q, ne] = oe.useState(""), Y = oe.useRef(null), X = oe.useRef(null), de = Pe(W, X, { matchWidth: !0 }), [w, h] = oe.useState(o);
1131
+ const A = f || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!n, [W, D] = oe.useState(!1), [V, ne] = oe.useState(""), Y = oe.useRef(null), X = oe.useRef(null), de = Pe(W, X, { matchWidth: !0 }), [w, h] = oe.useState(o);
1102
1132
  oe.useImperativeHandle(I, () => Y.current), oe.useEffect(() => {
1103
1133
  const M = (E) => {
1104
1134
  Y.current && !Y.current.contains(E.target) && D(!1);
@@ -1112,8 +1142,8 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1112
1142
  []
1113
1143
  ), k = oe.useCallback(
1114
1144
  (M, E) => {
1115
- const P = [...M], j = (V) => {
1116
- const T = _e(V).trim();
1145
+ const P = [...M], j = (q) => {
1146
+ const T = $e(q).trim();
1117
1147
  T && (z(P, T) || P.push({ value: T, label: T }));
1118
1148
  };
1119
1149
  return Array.isArray(E) ? E.forEach(j) : j(E), P;
@@ -1128,20 +1158,20 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1128
1158
  }), k(E, N);
1129
1159
  });
1130
1160
  }, [o, N, k, z]);
1131
- const _ = oe.useMemo(
1132
- () => Array.isArray(N) ? N.map(_e) : N == null ? void 0 : _e(N),
1161
+ const $ = oe.useMemo(
1162
+ () => Array.isArray(N) ? N.map($e) : N == null ? void 0 : $e(N),
1133
1163
  [N]
1134
1164
  ), y = (M) => {
1135
1165
  if (g) {
1136
- const E = Array.isArray(_) ? _ : [], P = E.includes(M) ? E.filter((j) => j !== M) : [...E, M];
1166
+ const E = Array.isArray($) ? $ : [], P = E.includes(M) ? E.filter((j) => j !== M) : [...E, M];
1137
1167
  p?.(P);
1138
1168
  } else
1139
1169
  p?.(M), D(!1), ne("");
1140
- }, H = g ? null : w.find((M) => M.value === _), ae = g ? w.filter(
1141
- (M) => Array.isArray(_) && _.includes(M.value)
1142
- ) : [], ce = b && q ? w.filter(
1143
- (M) => M.label.toLowerCase().includes(q.toLowerCase())
1144
- ) : w, G = !!x && !!b && !!q.trim() && !z(w, q), O = (M) => {
1170
+ }, H = g ? null : w.find((M) => M.value === $), ae = g ? w.filter(
1171
+ (M) => Array.isArray($) && $.includes(M.value)
1172
+ ) : [], ce = b && V ? w.filter(
1173
+ (M) => M.label.toLowerCase().includes(V.toLowerCase())
1174
+ ) : w, G = !!x && !!b && !!V.trim() && !z(w, V), O = (M) => {
1145
1175
  const E = M.trim();
1146
1176
  if (!E) return;
1147
1177
  const P = C?.(E) ?? {
@@ -1192,7 +1222,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1192
1222
  "focus-visible:outline-none focus-visible:focus-ring",
1193
1223
  "disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
1194
1224
  "bg-surface",
1195
- Er[s],
1225
+ _r[s],
1196
1226
  K ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
1197
1227
  m
1198
1228
  ),
@@ -1217,10 +1247,10 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1217
1247
  {
1218
1248
  type: "text",
1219
1249
  placeholder: "Search...",
1220
- value: q,
1250
+ value: V,
1221
1251
  onChange: (M) => ne(M.target.value),
1222
1252
  onKeyDown: (M) => {
1223
- M.key === "Enter" && G && (M.preventDefault(), O(q));
1253
+ M.key === "Enter" && G && (M.preventDefault(), O(V));
1224
1254
  },
1225
1255
  className: i(
1226
1256
  "w-full px-3 py-2 text-sm rounded-md border",
@@ -1235,10 +1265,10 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1235
1265
  "cursor-pointer px-3 py-1.5 text-sm",
1236
1266
  "text-info-fg hover:bg-surface-hover"
1237
1267
  ),
1238
- onClick: () => O(q),
1268
+ onClick: () => O(V),
1239
1269
  children: [
1240
1270
  "+: “",
1241
- q.trim(),
1271
+ V.trim(),
1242
1272
  "”"
1243
1273
  ]
1244
1274
  }
@@ -1255,7 +1285,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1255
1285
  }
1256
1286
  ),
1257
1287
  ce.map((M) => {
1258
- const E = g ? Array.isArray(_) && _.includes(M.value) : _ === M.value;
1288
+ const E = g ? Array.isArray($) && $.includes(M.value) : $ === M.value;
1259
1289
  return /* @__PURE__ */ e(
1260
1290
  "li",
1261
1291
  {
@@ -1301,7 +1331,7 @@ const kr = () => /* @__PURE__ */ e(Q, { icon: Mt, size: "md", color: "current" }
1301
1331
  }
1302
1332
  );
1303
1333
  Ae.displayName = "Select";
1304
- const zr = {
1334
+ const $r = {
1305
1335
  sm: "h-control-sm px-3 text-sm",
1306
1336
  md: "h-control-md px-3 text-base",
1307
1337
  lg: "h-control-lg px-3 text-base",
@@ -1347,7 +1377,7 @@ const zr = {
1347
1377
  "aria-describedby": C,
1348
1378
  className: i(
1349
1379
  lt,
1350
- zr[s],
1380
+ $r[s],
1351
1381
  l && "pl-9",
1352
1382
  (o || u) && "pr-9",
1353
1383
  ot(x),
@@ -1376,7 +1406,7 @@ const zr = {
1376
1406
  }
1377
1407
  );
1378
1408
  Ce.displayName = "TextField";
1379
- function Mr({
1409
+ function Ar({
1380
1410
  value: t,
1381
1411
  onChange: r,
1382
1412
  onListFolders: n,
@@ -1421,7 +1451,7 @@ function Mr({
1421
1451
  )
1422
1452
  ] });
1423
1453
  }
1424
- const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(Ie, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), $r = (t) => /* @__PURE__ */ e(De, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), _r = {
1454
+ const Ne = (...t) => t.filter(Boolean).join(" "), Dr = (t) => /* @__PURE__ */ e(Ie, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Lr = (t) => /* @__PURE__ */ e(De, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Ir = {
1425
1455
  sm: "h-control-sm px-3 text-sm",
1426
1456
  md: "h-control-md px-3 text-base",
1427
1457
  lg: "h-control-lg px-3 text-base",
@@ -1431,14 +1461,14 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1431
1461
  md: "h-5 w-5",
1432
1462
  lg: "h-6 w-6",
1433
1463
  full: "h-6 w-6"
1434
- }, Ar = ve(
1464
+ }, Pr = ve(
1435
1465
  ({
1436
1466
  label: t,
1437
1467
  helperText: r,
1438
1468
  error: n,
1439
1469
  size: s = "md",
1440
1470
  fullWidth: a = !1,
1441
- startIcon: l = /* @__PURE__ */ e(Tr, {}),
1471
+ startIcon: l = /* @__PURE__ */ e(Dr, {}),
1442
1472
  loading: o = !1,
1443
1473
  containerClassName: u,
1444
1474
  labelClassName: d,
@@ -1453,26 +1483,26 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1453
1483
  onChange: C,
1454
1484
  ...S
1455
1485
  }, I) => {
1456
- const A = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!n, W = re(null), D = re(null), [q, ne] = B(x || ""), [Y, X] = B(!1), [de, w] = B(!1), [h, z] = B(!1);
1486
+ const A = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!n, W = re(null), D = re(null), [V, ne] = B(x || ""), [Y, X] = B(!1), [de, w] = B(!1), [h, z] = B(!1);
1457
1487
  J(() => {
1458
1488
  x !== void 0 && ne(x);
1459
1489
  }, [x]);
1460
1490
  const k = pe(() => {
1461
- if (p && !h || !q) return f;
1462
- const O = String(q).toLowerCase();
1491
+ if (p && !h || !V) return f;
1492
+ const O = String(V).toLowerCase();
1463
1493
  return f.filter(
1464
1494
  (F) => String(F.label).toLowerCase().includes(O)
1465
1495
  );
1466
- }, [q, f, p, h]);
1496
+ }, [V, f, p, h]);
1467
1497
  J(() => {
1468
- if (!b || !q) {
1498
+ if (!b || !V) {
1469
1499
  w(!1);
1470
1500
  return;
1471
1501
  }
1472
1502
  const O = setTimeout(async () => {
1473
1503
  w(!0);
1474
1504
  try {
1475
- await b(String(q));
1505
+ await b(String(V));
1476
1506
  } catch (F) {
1477
1507
  console.error("Remote search failed:", F);
1478
1508
  } finally {
@@ -1482,13 +1512,13 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1482
1512
  return () => {
1483
1513
  clearTimeout(O), w(!1);
1484
1514
  };
1485
- }, [q, N, b]), J(() => {
1515
+ }, [V, N, b]), J(() => {
1486
1516
  const O = (F) => {
1487
1517
  W.current && !W.current.contains(F.target) && X(!1);
1488
1518
  };
1489
1519
  return document.addEventListener("mousedown", O), () => document.removeEventListener("mousedown", O);
1490
1520
  }, []);
1491
- const _ = (O) => {
1521
+ const $ = (O) => {
1492
1522
  const F = O.target.value;
1493
1523
  ne(F), X(!0), z(!0), C && C(O);
1494
1524
  }, y = (O) => {
@@ -1526,8 +1556,8 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1526
1556
  {
1527
1557
  ref: G,
1528
1558
  id: A,
1529
- value: q,
1530
- onChange: _,
1559
+ value: V,
1560
+ onChange: $,
1531
1561
  onFocus: H,
1532
1562
  className: Ne(
1533
1563
  // Base styles
@@ -1535,7 +1565,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1535
1565
  "placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring",
1536
1566
  "disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
1537
1567
  // Size styles
1538
- _r[s],
1568
+ Ir[s],
1539
1569
  // Icon padding
1540
1570
  l ? "pl-10" : "",
1541
1571
  "pr-10",
@@ -1550,7 +1580,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1550
1580
  /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: ae || o ? (
1551
1581
  // Loading Spinner
1552
1582
  /* @__PURE__ */ e(
1553
- $t,
1583
+ _t,
1554
1584
  {
1555
1585
  className: Ne("animate-spin text-info-fg", Fe[s]),
1556
1586
  "aria-hidden": !0
@@ -1559,7 +1589,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1559
1589
  ) : (
1560
1590
  // Dropdown Chevron
1561
1591
  /* @__PURE__ */ e(
1562
- $r,
1592
+ Lr,
1563
1593
  {
1564
1594
  className: Ne(
1565
1595
  "text-text-muted cursor-pointer transition-transform",
@@ -1584,7 +1614,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1584
1614
  className: "px-4 py-2 cursor-pointer text-text hover:bg-accent-soft hover:text-accent transition-colors",
1585
1615
  onClick: () => y(O),
1586
1616
  role: "option",
1587
- "aria-selected": q === O.label,
1617
+ "aria-selected": V === O.label,
1588
1618
  children: O.label
1589
1619
  },
1590
1620
  O.value
@@ -1603,14 +1633,14 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Tr = (t) => /* @__PURE__ */ e(
1603
1633
  ),
1604
1634
  b && /* @__PURE__ */ c("p", { className: "mt-2 text-xs text-success-fg", children: [
1605
1635
  "Huidige zoekterm (niet-gedebounced): ",
1606
- String(q)
1636
+ String(V)
1607
1637
  ] })
1608
1638
  ]
1609
1639
  }
1610
1640
  );
1611
1641
  }
1612
1642
  );
1613
- Ar.displayName = "SearchableTextField";
1643
+ Pr.displayName = "SearchableTextField";
1614
1644
  const ct = ve(
1615
1645
  ({
1616
1646
  value: t,
@@ -1676,7 +1706,7 @@ const ct = ve(
1676
1706
  )
1677
1707
  );
1678
1708
  ct.displayName = "SearchField";
1679
- const Dr = ve(
1709
+ const Or = ve(
1680
1710
  ({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
1681
1711
  const u = /* @__PURE__ */ e(
1682
1712
  "span",
@@ -1729,8 +1759,8 @@ const Dr = ve(
1729
1759
  );
1730
1760
  }
1731
1761
  );
1732
- Dr.displayName = "Switch";
1733
- const Lr = ({
1762
+ Or.displayName = "Switch";
1763
+ const jr = ({
1734
1764
  trigger: t,
1735
1765
  options: r,
1736
1766
  value: n,
@@ -1752,7 +1782,7 @@ const Lr = ({
1752
1782
  const k = K();
1753
1783
  if (k.length === 0) return;
1754
1784
  h.preventDefault();
1755
- const _ = k.indexOf(document.activeElement), y = h.key === "Home" ? 0 : h.key === "End" ? k.length - 1 : h.key === "ArrowDown" ? (_ + 1) % k.length : (_ - 1 + k.length) % k.length;
1785
+ const $ = k.indexOf(document.activeElement), y = h.key === "Home" ? 0 : h.key === "End" ? k.length - 1 : h.key === "ArrowDown" ? ($ + 1) % k.length : ($ - 1 + k.length) % k.length;
1756
1786
  k[y]?.focus();
1757
1787
  };
1758
1788
  J(() => {
@@ -1787,7 +1817,7 @@ const Lr = ({
1787
1817
  }, []);
1788
1818
  const D = (h) => {
1789
1819
  h.stopPropagation(), !l && (m(!v), b(null), A.current && (clearTimeout(A.current), A.current = null));
1790
- }, q = (h, z, k) => {
1820
+ }, V = (h, z, k) => {
1791
1821
  h.stopPropagation(), !z.disabled && !z.divider && (!z.children || z.children.length === 0) && (s?.(z.value, k), m(!1), b(null));
1792
1822
  }, ne = (h) => {
1793
1823
  A.current && (clearTimeout(A.current), A.current = null), h.children && h.children.length > 0 ? b(h.value) : b(null);
@@ -1838,7 +1868,7 @@ const Lr = ({
1838
1868
  },
1839
1869
  `divider-${z}`
1840
1870
  );
1841
- const k = h.children && h.children.length > 0, _ = f === h.value;
1871
+ const k = h.children && h.children.length > 0, $ = f === h.value;
1842
1872
  return /* @__PURE__ */ c("div", { className: "relative group", children: [
1843
1873
  /* @__PURE__ */ c(
1844
1874
  "button",
@@ -1846,7 +1876,7 @@ const Lr = ({
1846
1876
  "data-option-value": h.value,
1847
1877
  role: "menuitem",
1848
1878
  "aria-haspopup": k ? "menu" : void 0,
1849
- onClick: (y) => q(y, h),
1879
+ onClick: (y) => V(y, h),
1850
1880
  onMouseEnter: () => ne(h),
1851
1881
  onMouseLeave: () => Y(h),
1852
1882
  disabled: h.disabled,
@@ -1854,7 +1884,7 @@ const Lr = ({
1854
1884
  "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",
1855
1885
  {
1856
1886
  "opacity-50 cursor-not-allowed": h.disabled,
1857
- "bg-surface-hover": _ && k
1887
+ "bg-surface-hover": $ && k
1858
1888
  }
1859
1889
  ),
1860
1890
  children: [
@@ -1872,7 +1902,7 @@ const Lr = ({
1872
1902
  ]
1873
1903
  }
1874
1904
  ),
1875
- k && _ && /* @__PURE__ */ e(
1905
+ k && $ && /* @__PURE__ */ e(
1876
1906
  "div",
1877
1907
  {
1878
1908
  ref: C,
@@ -1937,8 +1967,8 @@ const Lr = ({
1937
1967
  (() => {
1938
1968
  const h = r.reduce((z, k) => {
1939
1969
  if (k.divider) return z;
1940
- const _ = k.children ? k.children.filter((y) => !y.divider).length : 0;
1941
- return z + 1 + _;
1970
+ const $ = k.children ? k.children.filter((y) => !y.divider).length : 0;
1971
+ return z + 1 + $;
1942
1972
  }, 0);
1943
1973
  return h > 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: [
1944
1974
  h,
@@ -1978,19 +2008,19 @@ const Lr = ({
1978
2008
  },
1979
2009
  s.id
1980
2010
  )
1981
- ) }), Ir = {
2011
+ ) }), Fr = {
1982
2012
  none: "p-0",
1983
2013
  sm: "p-2",
1984
2014
  md: "px-5 py-4",
1985
2015
  lg: "p-6"
1986
- }, os = ({
2016
+ }, us = ({
1987
2017
  actions: t = [],
1988
2018
  onBack: r,
1989
2019
  backLabel: n = "Back",
1990
2020
  className: s,
1991
2021
  padding: a = "md",
1992
2022
  children: l
1993
- }) => /* @__PURE__ */ c("div", { className: i("flex items-center gap-2", Ir[a], s), children: [
2023
+ }) => /* @__PURE__ */ c("div", { className: i("flex items-center gap-2", Fr[a], s), children: [
1994
2024
  r && /* @__PURE__ */ e(
1995
2025
  se,
1996
2026
  {
@@ -2003,24 +2033,24 @@ const Lr = ({
2003
2033
  ),
2004
2034
  l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
2005
2035
  /* @__PURE__ */ e(ke, { actions: t, className: i(!l && "ml-auto") })
2006
- ] }), cs = (t) => (r) => t(r instanceof Date ? r : null), is = (t) => (r) => t(typeof r == "string" ? r : ""), ds = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), Pr = {
2036
+ ] }), ms = (t) => (r) => t(r instanceof Date ? r : null), fs = (t) => (r) => t(typeof r == "string" ? r : ""), hs = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), Rr = {
2007
2037
  none: "px-0",
2008
2038
  sm: "px-2",
2009
2039
  md: "px-3.5",
2010
2040
  lg: "px-5"
2011
- }, Or = {
2041
+ }, Br = {
2012
2042
  sm: "h-row-lg",
2013
2043
  md: "h-row-xl",
2014
2044
  lg: "h-14"
2015
- }, jr = 8, Je = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
2016
- function Fr(t, r) {
2045
+ }, Hr = 8, Je = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
2046
+ function qr(t, r) {
2017
2047
  if (r <= 7) return Array.from({ length: r }, (l, o) => o);
2018
2048
  const s = [.../* @__PURE__ */ new Set([0, r - 1, t - 1, t, t + 1])].filter((l) => l >= 0 && l < r).sort((l, o) => l - o), a = [];
2019
2049
  return s.forEach((l, o) => {
2020
2050
  o > 0 && l - s[o - 1] > 1 && a.push("gap"), a.push(l);
2021
2051
  }), a;
2022
2052
  }
2023
- const Rr = (t) => {
2053
+ const Vr = (t) => {
2024
2054
  const r = Array.isArray(t.value) ? t.value : t.value != null && t.value !== "" && t.value !== "all" ? [t.value] : [];
2025
2055
  if (t.type === "date") {
2026
2056
  const o = t.value instanceof Date;
@@ -2042,7 +2072,7 @@ const Rr = (t) => {
2042
2072
  );
2043
2073
  }, l = r.length > 0;
2044
2074
  return /* @__PURE__ */ e(
2045
- sr,
2075
+ cr,
2046
2076
  {
2047
2077
  tone: "outline",
2048
2078
  caret: !0,
@@ -2097,83 +2127,83 @@ const Rr = (t) => {
2097
2127
  footerSummary: K,
2098
2128
  size: W = "md",
2099
2129
  hoverable: D = !0,
2100
- padding: q = "md",
2130
+ padding: V = "md",
2101
2131
  className: ne,
2102
2132
  rowClassName: Y,
2103
2133
  headerBackground: X = !0
2104
2134
  }) => {
2105
- const [de, w] = B(""), h = l !== void 0, z = h ? l : de, k = o ?? w, [_, y] = B({
2135
+ const [de, w] = B(""), h = l !== void 0, z = h ? l : de, k = o ?? w, [$, y] = B({
2106
2136
  column: null,
2107
2137
  direction: null
2108
2138
  }), [H, ae] = B({
2109
2139
  page: 0,
2110
2140
  pageSize: g
2111
2141
  }), ce = re(null), G = pe(() => {
2112
- let $ = t;
2142
+ let _ = t;
2113
2143
  if (s && !h && z.trim()) {
2114
2144
  const U = r.filter(
2115
2145
  (ie) => ie.searchable !== !1
2116
2146
  ), te = z.toLowerCase();
2117
- $ = $.filter((ie) => U.some((Z) => {
2147
+ _ = _.filter((ie) => U.some((Z) => {
2118
2148
  const R = typeof Z.accessor == "function" ? Z.accessor(ie) : ie[Z.accessor];
2119
2149
  return String(R || "").toLowerCase().includes(te);
2120
2150
  }));
2121
2151
  }
2122
- return $;
2152
+ return _;
2123
2153
  }, [t, z, h, r, s]), O = pe(() => {
2124
- if (!_.column || !_.direction) return G;
2125
- const $ = r.find((U) => U.id === _.column);
2126
- return $ ? [...G].sort((U, te) => {
2127
- const ie = typeof $.accessor == "function" ? $.accessor(U) : U[$.accessor], Z = typeof $.accessor == "function" ? $.accessor(te) : te[$.accessor];
2154
+ if (!$.column || !$.direction) return G;
2155
+ const _ = r.find((U) => U.id === $.column);
2156
+ return _ ? [...G].sort((U, te) => {
2157
+ const ie = typeof _.accessor == "function" ? _.accessor(U) : U[_.accessor], Z = typeof _.accessor == "function" ? _.accessor(te) : te[_.accessor];
2128
2158
  let R = 0;
2129
- return ie < Z ? R = -1 : ie > Z && (R = 1), _.direction === "desc" ? -R : R;
2159
+ return ie < Z ? R = -1 : ie > Z && (R = 1), $.direction === "desc" ? -R : R;
2130
2160
  }) : G;
2131
- }, [G, _, r]), F = pe(() => {
2161
+ }, [G, $, r]), F = pe(() => {
2132
2162
  if (!b || m) return O;
2133
- const $ = H.page * H.pageSize, U = $ + H.pageSize;
2134
- return O.slice($, U);
2163
+ const _ = H.page * H.pageSize, U = _ + H.pageSize;
2164
+ return O.slice(_, U);
2135
2165
  }, [O, H, b, m]), M = xe(
2136
- ($) => {
2137
- r.find((te) => te.id === $)?.sortable && y((te) => te.column !== $ ? { column: $, direction: "asc" } : te.direction === "asc" ? { column: $, direction: "desc" } : { column: null, direction: null });
2166
+ (_) => {
2167
+ r.find((te) => te.id === _)?.sortable && y((te) => te.column !== _ ? { column: _, direction: "asc" } : te.direction === "asc" ? { column: _, direction: "desc" } : { column: null, direction: null });
2138
2168
  },
2139
2169
  [r]
2140
- ), E = xe(($) => {
2141
- ae((U) => ({ ...U, page: $ }));
2170
+ ), E = xe((_) => {
2171
+ ae((U) => ({ ...U, page: _ }));
2142
2172
  }, []), P = xe(
2143
- ($, U) => {
2173
+ (_, U) => {
2144
2174
  if (!S) return;
2145
- const te = I($, 0);
2146
- S(U ? [...C, $] : C.filter(
2175
+ const te = I(_, 0);
2176
+ S(U ? [...C, _] : C.filter(
2147
2177
  (ie, Z) => I(C[Z], Z) !== te
2148
2178
  ));
2149
2179
  },
2150
2180
  [C, S, I]
2151
2181
  ), j = xe(
2152
- ($) => {
2153
- S && S($ ? [...F] : []);
2182
+ (_) => {
2183
+ S && S(_ ? [...F] : []);
2154
2184
  },
2155
2185
  [F, S]
2156
2186
  );
2157
2187
  J(() => {
2158
- ae(($) => ({ ...$, page: 0 }));
2159
- }, [z, _]), J(() => {
2160
- ae(($) => ({ ...$, page: 0 }));
2161
- }, [u.map(($) => $.value).join(",")]);
2162
- const V = O.length, T = Math.ceil(V / H.pageSize), L = H.page * H.pageSize + 1, ee = Math.min(L + H.pageSize - 1, V), le = F.length > 0 && F.every(($) => {
2163
- const U = I($, 0);
2188
+ ae((_) => ({ ..._, page: 0 }));
2189
+ }, [z, $]), J(() => {
2190
+ ae((_) => ({ ..._, page: 0 }));
2191
+ }, [u.map((_) => _.value).join(",")]);
2192
+ const q = O.length, T = Math.ceil(q / H.pageSize), L = H.page * H.pageSize + 1, ee = Math.min(L + H.pageSize - 1, q), le = F.length > 0 && F.every((_) => {
2193
+ const U = I(_, 0);
2164
2194
  return C.some(
2165
2195
  (te, ie) => I(te, ie) === U
2166
2196
  );
2167
- }), be = F.some(($) => {
2168
- const U = I($, 0);
2197
+ }), be = F.some((_) => {
2198
+ const U = I(_, 0);
2169
2199
  return C.some(
2170
2200
  (te, ie) => I(te, ie) === U
2171
2201
  );
2172
- }), ye = Pr[q], fe = X ? "bg-surface-sunk" : "bg-surface", he = i("text-text", ye), Oe = s || u.length > 0 || d.length > 0 || !!v, ft = pe(() => {
2173
- const $ = F.map((Z, R) => ({ row: Z, index: R }));
2174
- if (!m) return [{ group: null, rows: $ }];
2202
+ }), ye = Rr[V], fe = X ? "bg-surface-sunk" : "bg-surface", he = i("text-text", ye), Oe = s || u.length > 0 || d.length > 0 || !!v, ft = pe(() => {
2203
+ const _ = F.map((Z, R) => ({ row: Z, index: R }));
2204
+ if (!m) return [{ group: null, rows: _ }];
2175
2205
  const U = /* @__PURE__ */ new Map();
2176
- for (const Z of $) {
2206
+ for (const Z of _) {
2177
2207
  const R = m(Z.row, Z.index), ge = U.get(R);
2178
2208
  ge ? ge.push(Z) : U.set(R, [Z]);
2179
2209
  }
@@ -2182,7 +2212,7 @@ const Rr = (t) => {
2182
2212
  ...te.filter((Z) => U.has(Z.id)),
2183
2213
  ...[...U.keys()].filter((Z) => !te.some((R) => R.id === Z)).map((Z) => ({ id: Z }))
2184
2214
  ].map((Z) => ({ group: Z, rows: U.get(Z.id) ?? [] }));
2185
- }, [F, m, f]), ht = r.length + (x ? 1 : 0) + (N.length > 0 ? 1 : 0), qe = b && V > 0, xt = qe || K !== void 0;
2215
+ }, [F, m, f]), ht = r.length + (x ? 1 : 0) + (N.length > 0 ? 1 : 0), Ve = b && q > 0, xt = Ve || K !== void 0;
2186
2216
  return /* @__PURE__ */ c("div", { className: i("flex min-w-0 flex-col", ne), children: [
2187
2217
  Oe && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2188
2218
  s && /* @__PURE__ */ e(
@@ -2194,7 +2224,7 @@ const Rr = (t) => {
2194
2224
  containerClassName: "w-full sm:w-66"
2195
2225
  }
2196
2226
  ),
2197
- u.map(($) => /* @__PURE__ */ e(Rr, { ...$ }, $.id)),
2227
+ u.map((_) => /* @__PURE__ */ e(Vr, { ..._ }, _.id)),
2198
2228
  v,
2199
2229
  d.length > 0 && /* @__PURE__ */ e(ke, { actions: d, className: "ml-auto" })
2200
2230
  ] }),
@@ -2206,11 +2236,11 @@ const Rr = (t) => {
2206
2236
  size: "sm",
2207
2237
  checked: le,
2208
2238
  indeterminate: be && !le,
2209
- onChange: ($) => j($.target.checked),
2239
+ onChange: (_) => j(_.target.checked),
2210
2240
  "aria-label": "Select all rows"
2211
2241
  }
2212
2242
  ) }),
2213
- r.map(($) => /* @__PURE__ */ e(
2243
+ r.map((_) => /* @__PURE__ */ e(
2214
2244
  "th",
2215
2245
  {
2216
2246
  className: i(
@@ -2218,36 +2248,36 @@ const Rr = (t) => {
2218
2248
  "text-xs font-semibold uppercase tracking-label text-text-muted",
2219
2249
  "group",
2220
2250
  {
2221
- "text-left": $.align === "left" || !$.align,
2222
- "text-center": $.align === "center",
2223
- "text-right": $.align === "right",
2224
- "cursor-pointer select-none": $.sortable,
2225
- [`sticky left-0 ${fe}`]: $.sticky === "left",
2226
- [`sticky right-0 ${fe}`]: $.sticky === "right"
2251
+ "text-left": _.align === "left" || !_.align,
2252
+ "text-center": _.align === "center",
2253
+ "text-right": _.align === "right",
2254
+ "cursor-pointer select-none": _.sortable,
2255
+ [`sticky left-0 ${fe}`]: _.sticky === "left",
2256
+ [`sticky right-0 ${fe}`]: _.sticky === "right"
2227
2257
  }
2228
2258
  ),
2229
- style: { width: $.width },
2230
- onClick: () => $.sortable && M($.id),
2259
+ style: { width: _.width },
2260
+ onClick: () => _.sortable && M(_.id),
2231
2261
  children: /* @__PURE__ */ c("div", { className: "flex items-center gap-1.5", children: [
2232
- $.headerCell ? $.headerCell() : $.header,
2233
- $.sortable && /* @__PURE__ */ e(
2262
+ _.headerCell ? _.headerCell() : _.header,
2263
+ _.sortable && /* @__PURE__ */ e(
2234
2264
  Q,
2235
2265
  {
2236
- icon: _.column === $.id && _.direction === "desc" ? De : _t,
2266
+ icon: $.column === _.id && $.direction === "desc" ? De : $t,
2237
2267
  size: "xs",
2238
2268
  className: i(
2239
2269
  "transition-opacity duration-fast ease-out",
2240
- _.column === $.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2270
+ $.column === _.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2241
2271
  )
2242
2272
  }
2243
2273
  )
2244
2274
  ] })
2245
2275
  },
2246
- $.id
2276
+ _.id
2247
2277
  )),
2248
2278
  N.length > 0 && /* @__PURE__ */ e("th", { className: i(he, "w-10"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
2249
2279
  ] }) }),
2250
- /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: jr }).map(($, U) => /* @__PURE__ */ c("tr", { className: "animate-pulse border-t border-border-subtle", "aria-hidden": !0, children: [
2280
+ /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: Hr }).map((_, U) => /* @__PURE__ */ c("tr", { className: "animate-pulse border-t border-border-subtle", "aria-hidden": !0, children: [
2251
2281
  x && /* @__PURE__ */ e("td", { className: i(he, "h-row-lg"), children: /* @__PURE__ */ e("span", { className: "block size-4 rounded-xs bg-surface-hover" }) }),
2252
2282
  r.map((te, ie) => /* @__PURE__ */ e("td", { className: i(he, "h-row-lg"), style: { width: te.width }, children: /* @__PURE__ */ e(
2253
2283
  "span",
@@ -2267,8 +2297,8 @@ const Rr = (t) => {
2267
2297
  ),
2268
2298
  children: A || "No data available"
2269
2299
  }
2270
- ) }) : ft.flatMap(($) => [
2271
- ...$.group ? [
2300
+ ) }) : ft.flatMap((_) => [
2301
+ ..._.group ? [
2272
2302
  /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
2273
2303
  "td",
2274
2304
  {
@@ -2277,16 +2307,16 @@ const Rr = (t) => {
2277
2307
  // A caption over its rows, not a second column strip:
2278
2308
  // same surface as the rows, no rules, count on the right.
2279
2309
  "border-t border-border-subtle bg-surface px-4 pb-1.5 pt-4 text-sm font-semibold",
2280
- $.group.tone === "danger" ? "text-danger-fg" : $.group.tone === "muted" ? "text-text-subtle" : "text-text"
2310
+ _.group.tone === "danger" ? "text-danger-fg" : _.group.tone === "muted" ? "text-text-subtle" : "text-text"
2281
2311
  ),
2282
2312
  children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2.5", children: [
2283
- $.group.title ?? $.group.id,
2284
- /* @__PURE__ */ e("span", { className: "rounded-full bg-surface-sunk px-1.5 py-0.5 text-xs font-medium text-text-muted tabular-nums", children: $.group.count ?? $.rows.length })
2313
+ _.group.title ?? _.group.id,
2314
+ /* @__PURE__ */ e("span", { className: "rounded-full bg-surface-sunk px-1.5 py-0.5 text-xs font-medium text-text-muted tabular-nums", children: _.group.count ?? _.rows.length })
2285
2315
  ] })
2286
2316
  }
2287
- ) }, `group-${$.group.id}`)
2317
+ ) }, `group-${_.group.id}`)
2288
2318
  ] : [],
2289
- ...$.rows.map(({ row: U, index: te }) => {
2319
+ ..._.rows.map(({ row: U, index: te }) => {
2290
2320
  const ie = I(U, te), Z = C.some(
2291
2321
  (R, ge) => I(R, ge) === ie
2292
2322
  );
@@ -2294,7 +2324,7 @@ const Rr = (t) => {
2294
2324
  "tr",
2295
2325
  {
2296
2326
  className: i(
2297
- Or[W],
2327
+ Br[W],
2298
2328
  // Hairline above every row, including the first: it is
2299
2329
  // what separates the body from the column strip.
2300
2330
  "border-t border-border-subtle",
@@ -2337,7 +2367,7 @@ const Rr = (t) => {
2337
2367
  );
2338
2368
  }),
2339
2369
  N.length > 0 && /* @__PURE__ */ e("td", { className: he, children: /* @__PURE__ */ e(
2340
- Lr,
2370
+ jr,
2341
2371
  {
2342
2372
  className: "rounded-md",
2343
2373
  trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(Q, { icon: At, size: "md", color: "current" }) }),
@@ -2364,8 +2394,8 @@ const Rr = (t) => {
2364
2394
  ]) })
2365
2395
  ] }) }),
2366
2396
  xt && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2367
- /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: K ?? `Showing ${L}–${ee} of ${V}` }),
2368
- qe && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
2397
+ /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: K ?? `Showing ${L}–${ee} of ${q}` }),
2398
+ Ve && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
2369
2399
  /* @__PURE__ */ e(
2370
2400
  se,
2371
2401
  {
@@ -2378,22 +2408,22 @@ const Rr = (t) => {
2378
2408
  children: /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" })
2379
2409
  }
2380
2410
  ),
2381
- Fr(H.page, T).map(
2382
- ($, U) => $ === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${U}`) : /* @__PURE__ */ e(
2411
+ qr(H.page, T).map(
2412
+ (_, U) => _ === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${U}`) : /* @__PURE__ */ e(
2383
2413
  "button",
2384
2414
  {
2385
2415
  type: "button",
2386
- "aria-current": $ === H.page ? "page" : void 0,
2387
- onClick: () => E($),
2416
+ "aria-current": _ === H.page ? "page" : void 0,
2417
+ onClick: () => E(_),
2388
2418
  className: i(
2389
2419
  "h-control-xs min-w-6 cursor-pointer rounded-sm px-1.5 tabular-nums",
2390
2420
  "transition-colors duration-fast ease-out",
2391
2421
  "focus-visible:outline-none focus-visible:focus-ring",
2392
- $ === H.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
2422
+ _ === H.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
2393
2423
  ),
2394
- children: $ + 1
2424
+ children: _ + 1
2395
2425
  },
2396
- $
2426
+ _
2397
2427
  )
2398
2428
  ),
2399
2429
  /* @__PURE__ */ e(
@@ -2411,7 +2441,7 @@ const Rr = (t) => {
2411
2441
  ] })
2412
2442
  ] })
2413
2443
  ] });
2414
- }, Br = et(null), us = ({
2444
+ }, Ur = et(null), xs = ({
2415
2445
  items: t,
2416
2446
  activeTab: r,
2417
2447
  onTabChange: n,
@@ -2443,7 +2473,7 @@ const Rr = (t) => {
2443
2473
  },
2444
2474
  d.id
2445
2475
  )) }) });
2446
- }, Hr = ({
2476
+ }, Wr = ({
2447
2477
  items: t,
2448
2478
  defaultTab: r,
2449
2479
  activeTab: n,
@@ -2493,7 +2523,7 @@ const Rr = (t) => {
2493
2523
  } : {};
2494
2524
  return i(C, S, I, A, K, W);
2495
2525
  };
2496
- return /* @__PURE__ */ e(Br.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
2526
+ return /* @__PURE__ */ e(Ur.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
2497
2527
  /* @__PURE__ */ e("div", { className: g, role: "tablist", children: t.map((p) => /* @__PURE__ */ e(
2498
2528
  "button",
2499
2529
  {
@@ -2522,7 +2552,7 @@ const Rr = (t) => {
2522
2552
  }
2523
2553
  )
2524
2554
  ] }) });
2525
- }, Vr = {
2555
+ }, Kr = {
2526
2556
  sm: "max-w-md",
2527
2557
  md: "max-w-lg",
2528
2558
  lg: "max-w-2xl",
@@ -2573,7 +2603,7 @@ function it({
2573
2603
  "relative w-full bg-surface rounded-lg shadow-modal",
2574
2604
  // 'animate-scale-in',
2575
2605
  "focus:outline-none",
2576
- Vr[s],
2606
+ Kr[s],
2577
2607
  o
2578
2608
  ),
2579
2609
  role: "dialog",
@@ -2608,7 +2638,7 @@ function it({
2608
2638
  }
2609
2639
  ) : null;
2610
2640
  }
2611
- const qr = ({
2641
+ const Gr = ({
2612
2642
  value: t,
2613
2643
  onChange: r,
2614
2644
  label: n,
@@ -2622,15 +2652,15 @@ const qr = ({
2622
2652
  onDownloadFile: m,
2623
2653
  onRegisterFile: f
2624
2654
  }) => {
2625
- const [b, g] = B(!1), [N, p] = B([]), [x, C] = B(null), [S, I] = B("/"), [A, K] = B([]), [W, D] = B(!1), [q, ne] = B(""), [Y, X] = B(
2655
+ const [b, g] = B(!1), [N, p] = B([]), [x, C] = B(null), [S, I] = B("/"), [A, K] = B([]), [W, D] = B(!1), [V, ne] = B(""), [Y, X] = B(
2626
2656
  typeof t == "object" ? t : null
2627
2657
  ), [de, w] = B(!1), [h, z] = B(""), k = re(null);
2628
2658
  J(() => {
2629
- b && _();
2659
+ b && $();
2630
2660
  }, [b]), J(() => {
2631
2661
  b && x && y();
2632
- }, [b, x, S, q]);
2633
- const _ = async () => {
2662
+ }, [b, x, S, V]);
2663
+ const $ = async () => {
2634
2664
  D(!0);
2635
2665
  try {
2636
2666
  const T = await d?.();
@@ -2644,7 +2674,7 @@ const qr = ({
2644
2674
  if (x) {
2645
2675
  D(!0);
2646
2676
  try {
2647
- const T = await u?.({ mountId: x.id, name: q, path: S });
2677
+ const T = await u?.({ mountId: x.id, name: V, path: S });
2648
2678
  T?.data && K(T.data);
2649
2679
  } catch (T) {
2650
2680
  console.error("Failed to load files", T);
@@ -2804,7 +2834,7 @@ const qr = ({
2804
2834
  }
2805
2835
  )
2806
2836
  }
2807
- ], V = [
2837
+ ], q = [
2808
2838
  {
2809
2839
  id: "name",
2810
2840
  header: "Mount Name",
@@ -2859,7 +2889,7 @@ const qr = ({
2859
2889
  title: x ? `Explorer: ${x.name}` : "Select Storage Mount",
2860
2890
  size: "lg",
2861
2891
  children: /* @__PURE__ */ e(
2862
- Hr,
2892
+ Wr,
2863
2893
  {
2864
2894
  variant: "pills",
2865
2895
  items: [
@@ -2884,7 +2914,7 @@ const qr = ({
2884
2914
  Ce,
2885
2915
  {
2886
2916
  placeholder: "Search...",
2887
- value: q,
2917
+ value: V,
2888
2918
  onChange: (T) => ne(T.target.value),
2889
2919
  startIcon: /* @__PURE__ */ e(Ie, { size: 14 }),
2890
2920
  fullWidth: !0
@@ -2950,7 +2980,7 @@ const qr = ({
2950
2980
  Ye,
2951
2981
  {
2952
2982
  data: N,
2953
- columns: V,
2983
+ columns: q,
2954
2984
  loading: W,
2955
2985
  emptyContent: "No storage mounts configured",
2956
2986
  onRowClick: (T) => C(T)
@@ -2989,7 +3019,7 @@ const qr = ({
2989
3019
  }
2990
3020
  )
2991
3021
  ] });
2992
- }, Ur = {
3022
+ }, Jr = {
2993
3023
  sm: "px-3 py-1.5 text-sm",
2994
3024
  md: "px-3 py-2 text-base",
2995
3025
  lg: "px-3 py-2 text-md",
@@ -3035,7 +3065,7 @@ const qr = ({
3035
3065
  className: i(
3036
3066
  lt,
3037
3067
  "resize-y leading-relaxed",
3038
- Ur[s],
3068
+ Jr[s],
3039
3069
  ot(p),
3040
3070
  d
3041
3071
  ),
@@ -3062,7 +3092,7 @@ const qr = ({
3062
3092
  }
3063
3093
  );
3064
3094
  He.displayName = "TextArea";
3065
- const Wr = /* @__PURE__ */ new Set([
3095
+ const Yr = /* @__PURE__ */ new Set([
3066
3096
  "name",
3067
3097
  "given-name",
3068
3098
  "family-name",
@@ -3097,7 +3127,7 @@ const Wr = /* @__PURE__ */ new Set([
3097
3127
  "one-time-code"
3098
3128
  ]);
3099
3129
  function Xe(t) {
3100
- return t && Wr.has(t) ? { autoComplete: t } : {
3130
+ return t && Yr.has(t) ? { autoComplete: t } : {
3101
3131
  autoComplete: "off",
3102
3132
  // 1Password
3103
3133
  "data-1p-ignore": "true",
@@ -3115,7 +3145,7 @@ function Ze(t, r) {
3115
3145
  t
3116
3146
  );
3117
3147
  }
3118
- function Kr(t, r, n) {
3148
+ function Xr(t, r, n) {
3119
3149
  const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
3120
3150
  let l = a;
3121
3151
  for (let o = 0; o < s.length - 1; o++) {
@@ -3124,7 +3154,7 @@ function Kr(t, r, n) {
3124
3154
  }
3125
3155
  return l[s[s.length - 1]] = n, a;
3126
3156
  }
3127
- function Gr(t, r) {
3157
+ function Zr(t, r) {
3128
3158
  const n = r.split("."), s = Array.isArray(t) ? [...t] : { ...t };
3129
3159
  let a = s;
3130
3160
  for (let l = 0; l < n.length - 1; l++) {
@@ -3134,7 +3164,7 @@ function Gr(t, r) {
3134
3164
  }
3135
3165
  return delete a[n[n.length - 1]], s;
3136
3166
  }
3137
- function Jr({
3167
+ function Qr({
3138
3168
  title: t,
3139
3169
  description: r,
3140
3170
  className: n,
@@ -3148,7 +3178,7 @@ function Jr({
3148
3178
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
3149
3179
  ] });
3150
3180
  }
3151
- const ms = ({
3181
+ const bs = ({
3152
3182
  groups: t,
3153
3183
  data: r,
3154
3184
  onSubmit: n,
@@ -3172,7 +3202,7 @@ const ms = ({
3172
3202
  }, [r]);
3173
3203
  const W = xe(
3174
3204
  (w, h, z) => {
3175
- const k = t.flatMap((_) => _.items).find((_) => _.name === w);
3205
+ const k = t.flatMap(($) => $.items).find(($) => $.name === w);
3176
3206
  if (!k) return null;
3177
3207
  if (k.required && (h == null || h === ""))
3178
3208
  return `${k.label} is required`;
@@ -3182,7 +3212,7 @@ const ms = ({
3182
3212
  if (h && !Array.isArray(h))
3183
3213
  return `${k.label} must be an array.`;
3184
3214
  if (Array.isArray(h) && k.arrayFields) {
3185
- const _ = [];
3215
+ const $ = [];
3186
3216
  let y = !1;
3187
3217
  if (h.forEach((H, ae) => {
3188
3218
  const ce = {};
@@ -3195,9 +3225,9 @@ const ms = ({
3195
3225
  F && (ce[G.name] = F, y = !0);
3196
3226
  }
3197
3227
  }
3198
- _[ae] = ce;
3228
+ $[ae] = ce;
3199
3229
  }), y)
3200
- return JSON.stringify(_);
3230
+ return JSON.stringify($);
3201
3231
  }
3202
3232
  }
3203
3233
  return k.validator ? k.validator(h, z) : null;
@@ -3205,38 +3235,38 @@ const ms = ({
3205
3235
  [t]
3206
3236
  ), D = xe(
3207
3237
  (w, h) => {
3208
- let z = Kr(
3238
+ let z = Xr(
3209
3239
  x,
3210
3240
  w,
3211
3241
  h
3212
3242
  );
3213
- t.flatMap((y) => y.items).find((y) => y.name === w)?.removeIfEmpty && (h == null || h === "") && (z = Gr(z, w)), C(z), K((y) => ({ ...y, [w]: !0 }));
3214
- const _ = W(w, h, z);
3243
+ t.flatMap((y) => y.items).find((y) => y.name === w)?.removeIfEmpty && (h == null || h === "") && (z = Zr(z, w)), C(z), K((y) => ({ ...y, [w]: !0 }));
3244
+ const $ = W(w, h, z);
3215
3245
  I((y) => ({
3216
3246
  ...y,
3217
- [w]: _ || ""
3247
+ [w]: $ || ""
3218
3248
  })), a?.(z, w);
3219
3249
  },
3220
3250
  [x, t, W, a]
3221
- ), q = xe(
3251
+ ), V = xe(
3222
3252
  async (w) => {
3223
3253
  if (w.preventDefault(), b) return;
3224
- const h = {}, z = t.flatMap((_) => _.items);
3225
- for (const _ of z) {
3226
- if (_.hidden || _.conditional && !_.conditional(x))
3254
+ const h = {}, z = t.flatMap(($) => $.items);
3255
+ for (const $ of z) {
3256
+ if ($.hidden || $.conditional && !$.conditional(x))
3227
3257
  continue;
3228
3258
  const y = W(
3229
- _.name,
3230
- Ze(x, _.name),
3259
+ $.name,
3260
+ Ze(x, $.name),
3231
3261
  x
3232
3262
  );
3233
- y && (h[_.name] = y);
3263
+ y && (h[$.name] = y);
3234
3264
  }
3235
3265
  if (o) {
3236
- const _ = o(x);
3237
- _ && Object.assign(h, _);
3266
+ const $ = o(x);
3267
+ $ && Object.assign(h, $);
3238
3268
  }
3239
- if (I(h), Object.keys(h).some((_) => h[_]))
3269
+ if (I(h), Object.keys(h).some(($) => h[$]))
3240
3270
  return;
3241
3271
  const k = l ? l(x) : x;
3242
3272
  await n?.(x, k);
@@ -3244,7 +3274,7 @@ const ms = ({
3244
3274
  [x, t, W, o, l, n, b]
3245
3275
  ), ne = xe(
3246
3276
  (w) => {
3247
- const h = Ze(x, w.name), z = A[w.name] ? S[w.name] : void 0, k = w.disabled || b, _ = {
3277
+ const h = Ze(x, w.name), z = A[w.name] ? S[w.name] : void 0, k = w.disabled || b, $ = {
3248
3278
  value: h || "",
3249
3279
  disabled: k,
3250
3280
  required: w.required,
@@ -3262,7 +3292,7 @@ const ms = ({
3262
3292
  return /* @__PURE__ */ e(
3263
3293
  Ce,
3264
3294
  {
3265
- ..._,
3295
+ ...$,
3266
3296
  onChange: (y) => D(w.name, y.target.value),
3267
3297
  type: w.textType || w.type,
3268
3298
  ...Xe(w.autocomplete),
@@ -3274,7 +3304,7 @@ const ms = ({
3274
3304
  return /* @__PURE__ */ e(
3275
3305
  He,
3276
3306
  {
3277
- ..._,
3307
+ ...$,
3278
3308
  onChange: (y) => D(w.name, y.target.value),
3279
3309
  rows: w.rows ?? 4,
3280
3310
  error: z,
@@ -3285,7 +3315,7 @@ const ms = ({
3285
3315
  return /* @__PURE__ */ e(
3286
3316
  Ae,
3287
3317
  {
3288
- ..._,
3318
+ ...$,
3289
3319
  onChange: (y) => D(w.name, y),
3290
3320
  options: (w.options || []).map((y) => ({
3291
3321
  ...y,
@@ -3303,7 +3333,7 @@ const ms = ({
3303
3333
  // open to learn what the choices even are.
3304
3334
  case "segmented":
3305
3335
  return /* @__PURE__ */ e(
3306
- ir,
3336
+ fr,
3307
3337
  {
3308
3338
  "aria-label": w.label,
3309
3339
  value: h == null ? "" : String(h),
@@ -3320,7 +3350,7 @@ const ms = ({
3320
3350
  return /* @__PURE__ */ e(
3321
3351
  we,
3322
3352
  {
3323
- ..._,
3353
+ ...$,
3324
3354
  label: w.label,
3325
3355
  checked: !!h,
3326
3356
  onChange: (y) => D(w.name, y.target.checked),
@@ -3354,7 +3384,7 @@ const ms = ({
3354
3384
  return /* @__PURE__ */ e(
3355
3385
  Be,
3356
3386
  {
3357
- ..._,
3387
+ ...$,
3358
3388
  value: h ? new Date(h) : null,
3359
3389
  onChange: (y) => D(w.name, y),
3360
3390
  size: f
@@ -3362,9 +3392,9 @@ const ms = ({
3362
3392
  );
3363
3393
  case "file":
3364
3394
  return /* @__PURE__ */ e(
3365
- qr,
3395
+ Gr,
3366
3396
  {
3367
- ..._,
3397
+ ...$,
3368
3398
  value: h,
3369
3399
  onChange: (y) => D(w.name, y),
3370
3400
  error: z,
@@ -3395,7 +3425,7 @@ const ms = ({
3395
3425
  );
3396
3426
  case "folder":
3397
3427
  return /* @__PURE__ */ e(
3398
- Mr,
3428
+ Ar,
3399
3429
  {
3400
3430
  value: h || {},
3401
3431
  onChange: (y) => D(w.name, y),
@@ -3566,10 +3596,10 @@ const ms = ({
3566
3596
  {
3567
3597
  ...P,
3568
3598
  value: j ? new Date(j) : null,
3569
- onChange: (V) => G(
3599
+ onChange: (q) => G(
3570
3600
  F,
3571
3601
  M.name,
3572
- V
3602
+ q
3573
3603
  ),
3574
3604
  size: f
3575
3605
  }
@@ -3658,13 +3688,13 @@ const ms = ({
3658
3688
  // form *is* the page now, so a panel around each section would be a
3659
3689
  // second surface on top of the one it already sits on.
3660
3690
  /* @__PURE__ */ e(
3661
- Jr,
3691
+ Qr,
3662
3692
  {
3663
3693
  title: w.title,
3664
3694
  description: w.description,
3665
3695
  className: "not-last:border-b not-last:border-border-subtle",
3666
3696
  children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: z, children: h.map((k) => {
3667
- const _ = A[k.name] ? S[k.name] : void 0;
3697
+ const $ = A[k.name] ? S[k.name] : void 0;
3668
3698
  return /* @__PURE__ */ c(
3669
3699
  "div",
3670
3700
  {
@@ -3682,7 +3712,7 @@ const ms = ({
3682
3712
  k.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3683
3713
  ] }),
3684
3714
  ne(k),
3685
- k.help && !_ && /* @__PURE__ */ e("p", { className: "text-xs leading-4 text-text-subtle", children: k.help })
3715
+ k.help && !$ && /* @__PURE__ */ e("p", { className: "text-xs leading-4 text-text-subtle", children: k.help })
3686
3716
  ]
3687
3717
  },
3688
3718
  k.name
@@ -3703,7 +3733,7 @@ const ms = ({
3703
3733
  },
3704
3734
  g
3705
3735
  ), de = f === "full" ? "md" : f;
3706
- return /* @__PURE__ */ c("form", { ref: N, onSubmit: q, className: X, children: [
3736
+ return /* @__PURE__ */ c("form", { ref: N, onSubmit: V, className: X, children: [
3707
3737
  !v && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
3708
3738
  /* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(Y) }),
3709
3739
  v && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ c(Ee, { children: [
@@ -3735,7 +3765,7 @@ const ms = ({
3735
3765
  ] }) })
3736
3766
  ] });
3737
3767
  };
3738
- function fs({
3768
+ function gs({
3739
3769
  open: t,
3740
3770
  title: r,
3741
3771
  description: n,
@@ -3769,7 +3799,7 @@ function fs({
3769
3799
  }
3770
3800
  );
3771
3801
  }
3772
- const Yr = {
3802
+ const en = {
3773
3803
  default: "bg-surface-hover text-text",
3774
3804
  primary: "bg-accent-soft text-accent",
3775
3805
  secondary: "bg-surface-hover text-text-muted",
@@ -3779,11 +3809,11 @@ const Yr = {
3779
3809
  info: "bg-info-soft text-info-fg",
3780
3810
  // Internal-note amber. Never for customer-visible content.
3781
3811
  note: "bg-note-soft text-note"
3782
- }, Xr = {
3812
+ }, tn = {
3783
3813
  sm: "px-2 py-0.5 text-xs",
3784
3814
  md: "px-2.5 py-1 text-sm",
3785
3815
  lg: "px-3 py-1.5 text-base"
3786
- }, Zr = {
3816
+ }, rn = {
3787
3817
  default: "bg-surface-hover",
3788
3818
  primary: "bg-accent",
3789
3819
  secondary: "bg-surface-hover",
@@ -3793,7 +3823,7 @@ const Yr = {
3793
3823
  info: "bg-info",
3794
3824
  note: "bg-note"
3795
3825
  };
3796
- function Qr({
3826
+ function nn({
3797
3827
  variant: t = "default",
3798
3828
  size: r = "md",
3799
3829
  dot: n = !1,
@@ -3811,9 +3841,9 @@ function Qr({
3811
3841
  // Base styles
3812
3842
  "inline-flex items-center font-medium rounded-full",
3813
3843
  // Variant styles
3814
- Yr[t],
3844
+ en[t],
3815
3845
  // Size styles
3816
- Xr[r],
3846
+ tn[r],
3817
3847
  o
3818
3848
  ),
3819
3849
  ...d,
@@ -3823,7 +3853,7 @@ function Qr({
3823
3853
  {
3824
3854
  className: i(
3825
3855
  "w-2 h-2 rounded-full mr-1.5",
3826
- Zr[t]
3856
+ rn[t]
3827
3857
  )
3828
3858
  }
3829
3859
  ),
@@ -3843,7 +3873,7 @@ function Qr({
3843
3873
  );
3844
3874
  }
3845
3875
  const me = ({ className: t }) => /* @__PURE__ */ e("span", { className: i("block rounded-xs bg-surface-hover", t) });
3846
- function en({ shape: t, rows: r, columns: n }) {
3876
+ function sn({ shape: t, rows: r, columns: n }) {
3847
3877
  switch (t) {
3848
3878
  case "table":
3849
3879
  return /* @__PURE__ */ c("div", { className: "overflow-hidden rounded-lg ring-1 ring-border", children: [
@@ -3907,7 +3937,7 @@ function en({ shape: t, rows: r, columns: n }) {
3907
3937
  ] });
3908
3938
  }
3909
3939
  }
3910
- const tn = {
3940
+ const an = {
3911
3941
  text: 2,
3912
3942
  table: 8,
3913
3943
  list: 6,
@@ -3915,7 +3945,7 @@ const tn = {
3915
3945
  menu: 4,
3916
3946
  cards: 2
3917
3947
  };
3918
- function Ve({
3948
+ function qe({
3919
3949
  variant: t = "page",
3920
3950
  shape: r,
3921
3951
  rows: n,
@@ -3926,14 +3956,14 @@ function Ve({
3926
3956
  tableColumns: u,
3927
3957
  tableRows: d
3928
3958
  }) {
3929
- const v = r ?? (o ? "table" : "text"), m = n ?? d ?? tn[v], f = s ?? u ?? (v === "cards" ? 3 : 6), b = /* @__PURE__ */ e("div", { className: i("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(en, { shape: v, rows: m, columns: f }) });
3959
+ const v = r ?? (o ? "table" : "text"), m = n ?? d ?? an[v], f = s ?? u ?? (v === "cards" ? 3 : 6), b = /* @__PURE__ */ e("div", { className: i("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(sn, { shape: v, rows: m, columns: f }) });
3930
3960
  return t === "inline" ? b : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: b });
3931
3961
  }
3932
- const rn = {
3962
+ const ln = {
3933
3963
  neutral: "bg-surface-hover text-text-muted",
3934
3964
  success: "bg-success-soft text-success-fg"
3935
3965
  };
3936
- function hs({
3966
+ function ps({
3937
3967
  icon: t,
3938
3968
  tone: r = "neutral",
3939
3969
  title: n,
@@ -3953,7 +3983,7 @@ function hs({
3953
3983
  ),
3954
3984
  ...u,
3955
3985
  children: [
3956
- t != null && /* @__PURE__ */ e("span", { className: i("flex size-disc items-center justify-center rounded-full text-2xl", rn[r]), children: t }),
3986
+ t != null && /* @__PURE__ */ e("span", { className: i("flex size-disc items-center justify-center rounded-full text-2xl", ln[r]), children: t }),
3957
3987
  /* @__PURE__ */ e("div", { className: "text-lg font-semibold text-text", children: n }),
3958
3988
  s && /* @__PURE__ */ e("div", { className: "max-w-sm text-sm leading-relaxed text-text-muted", children: s }),
3959
3989
  a && /* @__PURE__ */ e("div", { className: "flex gap-2 pt-1.5", children: a })
@@ -3961,7 +3991,7 @@ function hs({
3961
3991
  }
3962
3992
  );
3963
3993
  }
3964
- function xs({ children: t, className: r, ...n }) {
3994
+ function vs({ children: t, className: r, ...n }) {
3965
3995
  return /* @__PURE__ */ e(
3966
3996
  "kbd",
3967
3997
  {
@@ -3974,14 +4004,14 @@ function xs({ children: t, className: r, ...n }) {
3974
4004
  }
3975
4005
  );
3976
4006
  }
3977
- const nn = {
4007
+ const on = {
3978
4008
  sm: "h-1",
3979
4009
  md: "h-1.5"
3980
- }, sn = {
4010
+ }, cn = {
3981
4011
  accent: "bg-accent",
3982
4012
  success: "bg-success"
3983
4013
  };
3984
- function bs({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
4014
+ function ys({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3985
4015
  const l = Math.max(0, Math.min(100, t));
3986
4016
  return /* @__PURE__ */ e(
3987
4017
  "div",
@@ -3990,37 +4020,37 @@ function bs({ value: t, variant: r = "accent", size: n = "md", className: s, ...
3990
4020
  "aria-valuenow": Math.round(l),
3991
4021
  "aria-valuemin": 0,
3992
4022
  "aria-valuemax": 100,
3993
- className: i("w-full overflow-hidden rounded-full bg-surface-hover", nn[n], s),
4023
+ className: i("w-full overflow-hidden rounded-full bg-surface-hover", on[n], s),
3994
4024
  ...a,
3995
4025
  children: /* @__PURE__ */ e(
3996
4026
  "div",
3997
4027
  {
3998
- className: i("h-full rounded-full transition-[width] duration-300 ease-out", sn[r]),
4028
+ className: i("h-full rounded-full transition-[width] duration-300 ease-out", cn[r]),
3999
4029
  style: { width: `${l}%` }
4000
4030
  }
4001
4031
  )
4002
4032
  }
4003
4033
  );
4004
4034
  }
4005
- const an = {
4035
+ const dn = {
4006
4036
  xs: "h-3 w-3",
4007
4037
  sm: "h-4 w-4",
4008
4038
  md: "h-6 w-6",
4009
4039
  lg: "h-8 w-8",
4010
4040
  xl: "h-12 w-12"
4011
- }, ln = {
4041
+ }, un = {
4012
4042
  primary: "text-accent",
4013
4043
  secondary: "text-text-muted",
4014
4044
  white: "text-white",
4015
4045
  current: "text-current"
4016
- }, on = {
4046
+ }, mn = {
4017
4047
  xs: "text-xs",
4018
4048
  sm: "text-sm",
4019
4049
  md: "text-sm",
4020
4050
  lg: "text-base",
4021
4051
  xl: "text-lg"
4022
4052
  };
4023
- function gs({
4053
+ function Ns({
4024
4054
  size: t = "md",
4025
4055
  variant: r = "primary",
4026
4056
  label: n = "Loading...",
@@ -4043,8 +4073,8 @@ function gs({
4043
4073
  {
4044
4074
  className: i(
4045
4075
  "animate-spin",
4046
- an[t],
4047
- ln[r]
4076
+ dn[t],
4077
+ un[r]
4048
4078
  ),
4049
4079
  fill: "none",
4050
4080
  viewBox: "0 0 24 24",
@@ -4078,7 +4108,7 @@ function gs({
4078
4108
  {
4079
4109
  className: i(
4080
4110
  "text-text-muted",
4081
- on[t]
4111
+ mn[t]
4082
4112
  ),
4083
4113
  children: n
4084
4114
  }
@@ -4088,7 +4118,7 @@ function gs({
4088
4118
  }
4089
4119
  );
4090
4120
  }
4091
- const cn = {
4121
+ const fn = {
4092
4122
  neutral: "bg-text-disabled",
4093
4123
  accent: "bg-accent",
4094
4124
  success: "bg-success",
@@ -4102,7 +4132,7 @@ const cn = {
4102
4132
  "cat-4": "bg-cat-4",
4103
4133
  "cat-5": "bg-cat-5"
4104
4134
  };
4105
- function ps({
4135
+ function ws({
4106
4136
  tone: t = "neutral",
4107
4137
  shape: r = "round",
4108
4138
  pulse: n = !1,
@@ -4118,14 +4148,14 @@ function ps({
4118
4148
  className: i(
4119
4149
  "inline-block size-dot shrink-0",
4120
4150
  r === "round" ? "rounded-full" : "rounded-sm",
4121
- cn[t],
4151
+ fn[t],
4122
4152
  n && "animate-pulse",
4123
4153
  a
4124
4154
  )
4125
4155
  }
4126
4156
  );
4127
4157
  }
4128
- function vs({
4158
+ function ks({
4129
4159
  steps: t,
4130
4160
  current: r,
4131
4161
  variant: n = "numbered",
@@ -4161,7 +4191,7 @@ function vs({
4161
4191
  d < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
4162
4192
  ] }, u)) });
4163
4193
  }
4164
- const dn = /<[a-z][\s\S]*>/i, un = [
4194
+ const hn = /<[a-z][\s\S]*>/i, xn = [
4165
4195
  "[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
4166
4196
  "[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
4167
4197
  "[&_strong]:font-semibold [&_em]:italic",
@@ -4176,7 +4206,7 @@ const dn = /<[a-z][\s\S]*>/i, un = [
4176
4206
  "[&_table]:my-1.5 [&_table]:w-full [&_table]:border-collapse [&_table]:text-xs",
4177
4207
  "[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
4178
4208
  "[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1"
4179
- ].join(" "), mn = {
4209
+ ].join(" "), bn = {
4180
4210
  p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
4181
4211
  a: (t) => /* @__PURE__ */ e("a", { className: "text-accent underline underline-offset-2 hover:opacity-80", target: "_blank", rel: "noopener noreferrer", ...t }),
4182
4212
  strong: (t) => /* @__PURE__ */ e("strong", { className: "font-semibold", ...t }),
@@ -4201,31 +4231,31 @@ const dn = /<[a-z][\s\S]*>/i, un = [
4201
4231
  };
4202
4232
  function Te({ text: t, className: r, as: n }) {
4203
4233
  const s = t ?? "";
4204
- return (n ? n === "html" : dn.test(s)) ? /* @__PURE__ */ e(
4234
+ return (n ? n === "html" : hn.test(s)) ? /* @__PURE__ */ e(
4205
4235
  "div",
4206
4236
  {
4207
- className: i("break-words", un, r),
4237
+ className: i("break-words", xn, r),
4208
4238
  dangerouslySetInnerHTML: { __html: Ht.sanitize(s, { ADD_ATTR: ["target", "rel"] }) }
4209
4239
  }
4210
- ) : /* @__PURE__ */ e("div", { className: i("break-words", r), children: /* @__PURE__ */ e(Vt, { remarkPlugins: [qt], components: mn, children: s }) });
4240
+ ) : /* @__PURE__ */ e("div", { className: i("break-words", r), children: /* @__PURE__ */ e(qt, { remarkPlugins: [Vt], components: bn, children: s }) });
4211
4241
  }
4212
- const fn = {
4242
+ const gn = {
4213
4243
  info: "text-info-fg",
4214
4244
  success: "text-success-fg",
4215
4245
  warning: "text-warning-fg",
4216
4246
  destructive: "text-danger-fg"
4217
- }, hn = {
4247
+ }, pn = {
4218
4248
  info: "bg-info-soft border-info-border",
4219
4249
  success: "bg-success-soft border-success-border",
4220
4250
  warning: "bg-warning-soft border-warning-border",
4221
4251
  destructive: "bg-danger-soft border-danger-border"
4222
- }, xn = {
4252
+ }, vn = {
4223
4253
  1: "grid-cols-1",
4224
4254
  2: "grid-cols-2",
4225
4255
  3: "grid-cols-3",
4226
4256
  4: "grid-cols-4"
4227
4257
  };
4228
- function bn({ block: t }) {
4258
+ function yn({ block: t }) {
4229
4259
  switch (t.type) {
4230
4260
  case "heading":
4231
4261
  return t.level === 1 ? /* @__PURE__ */ e("h1", { className: "text-2xl font-semibold tracking-tight text-text", children: t.text }) : t.level === 2 ? /* @__PURE__ */ e("h2", { className: "pt-2 text-base font-semibold tracking-tight text-text", children: t.text }) : /* @__PURE__ */ e("h3", { className: "pt-1 text-sm font-semibold text-text", children: t.text });
@@ -4285,13 +4315,13 @@ function bn({ block: t }) {
4285
4315
  t.caption && /* @__PURE__ */ e("figcaption", { className: "pt-2 text-xs italic text-text-subtle", children: t.caption })
4286
4316
  ] });
4287
4317
  case "kpi":
4288
- return /* @__PURE__ */ e("div", { className: i("grid gap-3", xn[t.items.length] ?? "grid-cols-4"), children: t.items.map((r, n) => /* @__PURE__ */ c("div", { className: "rounded-lg bg-surface-sunk px-4 py-3.5", children: [
4318
+ return /* @__PURE__ */ e("div", { className: i("grid gap-3", vn[t.items.length] ?? "grid-cols-4"), children: t.items.map((r, n) => /* @__PURE__ */ c("div", { className: "rounded-lg bg-surface-sunk px-4 py-3.5", children: [
4289
4319
  /* @__PURE__ */ e(
4290
4320
  "div",
4291
4321
  {
4292
4322
  className: i(
4293
4323
  "text-2xl font-semibold tracking-tight",
4294
- r.tone ? fn[r.tone] : "text-text"
4324
+ r.tone ? gn[r.tone] : "text-text"
4295
4325
  ),
4296
4326
  children: r.value
4297
4327
  }
@@ -4299,7 +4329,7 @@ function bn({ block: t }) {
4299
4329
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r.label })
4300
4330
  ] }, n)) });
4301
4331
  case "callout":
4302
- return /* @__PURE__ */ c("div", { className: i("rounded-lg border px-4 py-3", hn[t.tone]), children: [
4332
+ return /* @__PURE__ */ c("div", { className: i("rounded-lg border px-4 py-3", pn[t.tone]), children: [
4303
4333
  t.title && /* @__PURE__ */ e("div", { className: "pb-0.5 text-sm font-semibold text-text", children: t.title }),
4304
4334
  /* @__PURE__ */ e(Te, { as: "markdown", text: t.text, className: "text-sm text-text" })
4305
4335
  ] });
@@ -4307,7 +4337,7 @@ function bn({ block: t }) {
4307
4337
  return null;
4308
4338
  }
4309
4339
  }
4310
- function ys({ blocks: t, runtime: r = "inert", className: n }) {
4340
+ function Cs({ blocks: t, runtime: r = "inert", className: n }) {
4311
4341
  return r !== "inert" ? /* @__PURE__ */ c("div", { className: i("rounded-lg border border-warning-border bg-warning-soft px-4 py-3", n), children: [
4312
4342
  /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-text", children: "Deze versie kan hier niet getoond worden" }),
4313
4343
  /* @__PURE__ */ c("div", { className: "pt-0.5 text-xs text-text-muted", children: [
@@ -4315,9 +4345,9 @@ function ys({ blocks: t, runtime: r = "inert", className: n }) {
4315
4345
  /* @__PURE__ */ e("code", { className: "font-mono", children: r }),
4316
4346
  ", en deze weergave tekent alleen inerte inhoud."
4317
4347
  ] })
4318
- ] }) : /* @__PURE__ */ e("article", { className: i("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(bn, { block: s }, s.block_id ?? a)) });
4348
+ ] }) : /* @__PURE__ */ e("article", { className: i("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(yn, { block: s }, s.block_id ?? a)) });
4319
4349
  }
4320
- function Ns({ title: t, icon: r = /* @__PURE__ */ e(jt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
4350
+ function Ss({ title: t, icon: r = /* @__PURE__ */ e(jt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
4321
4351
  return /* @__PURE__ */ c(
4322
4352
  "div",
4323
4353
  {
@@ -4338,23 +4368,23 @@ function Ns({ title: t, icon: r = /* @__PURE__ */ e(jt, { className: "size-icon-
4338
4368
  }
4339
4369
  );
4340
4370
  }
4341
- const gn = {
4371
+ const Nn = {
4342
4372
  default: "bg-avatar text-avatar-fg",
4343
4373
  in: "bg-avatar-in text-avatar-in-fg",
4344
4374
  out: "bg-accent text-accent-fg",
4345
4375
  note: "bg-avatar-note text-avatar-note-fg"
4346
- }, pn = {
4376
+ }, wn = {
4347
4377
  xs: "w-5 h-5 text-xs",
4348
4378
  sm: "w-6 h-6 text-xs",
4349
4379
  md: "w-7 h-7 text-base",
4350
4380
  lg: "w-9 h-9 text-sm"
4351
4381
  };
4352
- function vn(t) {
4382
+ function kn(t) {
4353
4383
  if (!t) return "?";
4354
4384
  const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
4355
4385
  return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
4356
4386
  }
4357
- const yn = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
4387
+ const Cn = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
4358
4388
  const [o, u] = oe.useState(!1), d = i(
4359
4389
  // Its own token and not `surface-hover`: at 0.972 the plate was within a few
4360
4390
  // percent of every surface it sits on, so the monogram floated instead of
@@ -4362,8 +4392,8 @@ const yn = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
4362
4392
  "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none",
4363
4393
  // `identity` is seeded on the name, so the same person keeps their colour
4364
4394
  // wherever they appear; the fixed tones stay as they were.
4365
- n === "identity" ? rt(t) : gn[n],
4366
- pn[s],
4395
+ n === "identity" ? rt(t) : Nn[n],
4396
+ wn[s],
4367
4397
  a
4368
4398
  );
4369
4399
  return r && !o ? /* @__PURE__ */ e(
@@ -4375,13 +4405,13 @@ const yn = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
4375
4405
  className: i(d, "object-cover"),
4376
4406
  onError: () => u(!0)
4377
4407
  }
4378
- ) : /* @__PURE__ */ e("span", { className: d, title: l ?? t, "aria-label": t, children: vn(t) });
4379
- }, Qe = "ring-surface", Nn = "ring-surface-accent", ws = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
4408
+ ) : /* @__PURE__ */ e("span", { className: d, title: l ?? t, "aria-label": t, children: kn(t) });
4409
+ }, Qe = "ring-surface", Sn = "ring-surface-accent", Es = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
4380
4410
  if (t.length === 0) return null;
4381
4411
  const a = t.slice(0, r), l = t.length - a.length;
4382
4412
  return /* @__PURE__ */ c("span", { className: i("inline-flex items-center", s), children: [
4383
4413
  a.map((o, u) => /* @__PURE__ */ e(
4384
- yn,
4414
+ Cn,
4385
4415
  {
4386
4416
  name: o.name,
4387
4417
  src: o.src,
@@ -4389,7 +4419,7 @@ const yn = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
4389
4419
  title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
4390
4420
  className: i(
4391
4421
  u > 0 && "-ml-2",
4392
- o.owner ? Nn : Qe,
4422
+ o.owner ? Sn : Qe,
4393
4423
  o.seen === !1 && "opacity-40"
4394
4424
  )
4395
4425
  },
@@ -4412,37 +4442,37 @@ const yn = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a
4412
4442
  }
4413
4443
  )
4414
4444
  ] });
4415
- }, $e = {
4445
+ }, _e = {
4416
4446
  mail: { fg: "text-channel-mail-fg", bg: "bg-channel-mail-soft" },
4417
4447
  wa: { fg: "text-channel-whatsapp-fg", bg: "bg-channel-whatsapp-soft" },
4418
4448
  chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
4419
4449
  tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
4420
4450
  note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
4421
- }, wn = {
4451
+ }, En = {
4422
4452
  sm: "size-avatar-xs rounded-sm text-xs",
4423
4453
  md: "size-avatar-sm rounded-md text-xs",
4424
4454
  lg: "size-avatar-lg rounded-md text-base"
4425
4455
  };
4426
- function ks({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4427
- const l = t in $e ? $e[t] : void 0;
4456
+ function zs({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4457
+ const l = t in _e ? _e[t] : void 0;
4428
4458
  return /* @__PURE__ */ e(
4429
4459
  "span",
4430
4460
  {
4431
4461
  title: a,
4432
4462
  className: i(
4433
4463
  "inline-flex shrink-0 items-center justify-center font-bold",
4434
- wn[n],
4464
+ En[n],
4435
4465
  // An undeclared channel used to collapse onto the neutral "note" tone,
4436
4466
  // which is also what a real internal note looks like. Deriving from the
4437
4467
  // key keeps it distinguishable and keeps `note` meaning `note`.
4438
- l ? i(l.fg, l.bg) : t ? rt(t) : i($e.note.fg, $e.note.bg),
4468
+ l ? i(l.fg, l.bg) : t ? rt(t) : i(_e.note.fg, _e.note.bg),
4439
4469
  s
4440
4470
  ),
4441
4471
  children: r
4442
4472
  }
4443
4473
  );
4444
4474
  }
4445
- const Cs = ({
4475
+ const Ms = ({
4446
4476
  src: t,
4447
4477
  alt: r,
4448
4478
  size: n = "md",
@@ -4500,7 +4530,7 @@ const Cs = ({
4500
4530
  "opacity-0": N || x,
4501
4531
  "opacity-100": !N && !x
4502
4532
  }
4503
- ), q = i(
4533
+ ), V = i(
4504
4534
  "absolute inset-0 flex items-center justify-center",
4505
4535
  "text-text-muted"
4506
4536
  ), ne = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), Y = /* @__PURE__ */ c("div", { className: "text-center", children: [
@@ -4519,11 +4549,11 @@ const Cs = ({
4519
4549
  onError: K
4520
4550
  }
4521
4551
  ),
4522
- N && l && /* @__PURE__ */ e("div", { className: q, children: d || ne }),
4523
- x && o && /* @__PURE__ */ e("div", { className: q, children: v || Y })
4552
+ N && l && /* @__PURE__ */ e("div", { className: V, children: d || ne }),
4553
+ x && o && /* @__PURE__ */ e("div", { className: V, children: v || Y })
4524
4554
  ] });
4525
4555
  };
4526
- function Ss({
4556
+ function Ts({
4527
4557
  icon: t,
4528
4558
  onClick: r,
4529
4559
  children: n
@@ -4546,7 +4576,7 @@ function Ss({
4546
4576
  }
4547
4577
  );
4548
4578
  }
4549
- function Es({
4579
+ function _s({
4550
4580
  items: t,
4551
4581
  getRowKey: r,
4552
4582
  variant: n = "divided",
@@ -4571,7 +4601,7 @@ function Es({
4571
4601
  header: K,
4572
4602
  stickyHeader: W = !1,
4573
4603
  bordered: D = !1,
4574
- emptyContent: q,
4604
+ emptyContent: V,
4575
4605
  loading: ne = !1,
4576
4606
  loadingRows: Y = 4,
4577
4607
  className: X,
@@ -4588,9 +4618,9 @@ function Es({
4588
4618
  );
4589
4619
  if (j.length === 0) return;
4590
4620
  E.preventDefault();
4591
- const V = j.indexOf(document.activeElement), T = E.key === "Home" ? 0 : E.key === "End" ? j.length - 1 : E.key === "ArrowDown" ? (V + 1) % j.length : (V - 1 + j.length) % j.length;
4621
+ const q = j.indexOf(document.activeElement), T = E.key === "Home" ? 0 : E.key === "End" ? j.length - 1 : E.key === "ArrowDown" ? (q + 1) % j.length : (q - 1 + j.length) % j.length;
4592
4622
  j[T]?.focus();
4593
- }, _ = (E, P) => r ? r(E, P) : P, y = (E) => S.includes(E), H = (E, P) => {
4623
+ }, $ = (E, P) => r ? r(E, P) : P, y = (E) => S.includes(E), H = (E, P) => {
4594
4624
  I && I(
4595
4625
  P ? [...S, E] : S.filter((j) => j !== E)
4596
4626
  );
@@ -4623,10 +4653,10 @@ function Es({
4623
4653
  },
4624
4654
  `skeleton-${P}`
4625
4655
  )) });
4626
- if (t.length === 0 && q)
4627
- return /* @__PURE__ */ e("div", { className: ce, children: q });
4656
+ if (t.length === 0 && V)
4657
+ return /* @__PURE__ */ e("div", { className: ce, children: V });
4628
4658
  const G = t.length > 0 && S.length === t.length, O = S.length > 0 && !G, F = (E, P, j) => {
4629
- const V = d?.(E, P) ?? !1, T = v?.(E, P) ?? !1, L = m?.(E, P) ?? !1, ee = C && y(E);
4659
+ const q = d?.(E, P) ?? !1, T = v?.(E, P) ?? !1, L = m?.(E, P) ?? !1, ee = C && y(E);
4630
4660
  return /* @__PURE__ */ c(
4631
4661
  "li",
4632
4662
  {
@@ -4634,7 +4664,7 @@ function Es({
4634
4664
  role: "button",
4635
4665
  tabIndex: 0,
4636
4666
  "data-list-row": "",
4637
- "aria-current": V || void 0,
4667
+ "aria-current": q || void 0,
4638
4668
  onClick: () => o(E, P),
4639
4669
  onFocus: () => u?.(P),
4640
4670
  onKeyDown: (le) => {
@@ -4650,7 +4680,7 @@ function Es({
4650
4680
  // An unread row is tinted, not bolded: at five columns a bold row
4651
4681
  // shouts across all of them, while the tint marks the row and leaves
4652
4682
  // the consumer free to weight only the sender and the subject.
4653
- V || ee ? "bg-accent-soft text-text" : T ? i("bg-surface-unread", o && "hover:bg-surface-unread-hover") : o && "hover:bg-surface-hover",
4683
+ q || ee ? "bg-accent-soft text-text" : T ? i("bg-surface-unread", o && "hover:bg-surface-unread-hover") : o && "hover:bg-surface-hover",
4654
4684
  // Read rows stay at full opacity — fading them also fades the avatars
4655
4685
  // and team dots, which is exactly the identity you scan by. They read
4656
4686
  // as secondary through weight and text colour instead.
@@ -4677,38 +4707,38 @@ function Es({
4677
4707
  l && /* @__PURE__ */ e("span", { className: "shrink-0 text-xs text-text-subtle", children: l(E, P) })
4678
4708
  ]
4679
4709
  },
4680
- _(E, P)
4710
+ $(E, P)
4681
4711
  );
4682
4712
  }, M = (() => {
4683
4713
  if (!f)
4684
- return t.map((V, T) => F(V, T, T === 0));
4714
+ return t.map((q, T) => F(q, T, T === 0));
4685
4715
  const E = /* @__PURE__ */ new Map();
4686
- t.forEach((V, T) => {
4687
- const L = f(V, T);
4688
- E.has(L) || E.set(L, []), E.get(L).push({ item: V, index: T });
4716
+ t.forEach((q, T) => {
4717
+ const L = f(q, T);
4718
+ E.has(L) || E.set(L, []), E.get(L).push({ item: q, index: T });
4689
4719
  });
4690
4720
  const P = b ?? [];
4691
4721
  return [
4692
- ...P.filter((V) => E.has(V.id)),
4693
- ...[...E.keys()].filter((V) => !P.some((T) => T.id === V)).map((V) => ({ id: V }))
4694
- ].flatMap((V, T) => {
4695
- const L = E.get(V.id) ?? [], ee = p && w[V.id], le = V.title ?? V.id, be = V.count ?? L.length, ye = /* @__PURE__ */ e(
4722
+ ...P.filter((q) => E.has(q.id)),
4723
+ ...[...E.keys()].filter((q) => !P.some((T) => T.id === q)).map((q) => ({ id: q }))
4724
+ ].flatMap((q, T) => {
4725
+ const L = E.get(q.id) ?? [], ee = p && w[q.id], le = q.title ?? q.id, be = q.count ?? L.length, ye = /* @__PURE__ */ e(
4696
4726
  "li",
4697
4727
  {
4698
- onClick: p ? () => h((fe) => ({ ...fe, [V.id]: !fe[V.id] })) : void 0,
4728
+ onClick: p ? () => h((fe) => ({ ...fe, [q.id]: !fe[q.id] })) : void 0,
4699
4729
  className: i(
4700
4730
  // A caption over its rows, not a band across the table: same
4701
4731
  // surface as the rows, no rules, and the count as a quiet pill.
4702
4732
  // The old grey uppercase strip read as a second column header.
4703
4733
  "flex items-center gap-2.5 bg-surface px-5 pb-1.5 text-base font-semibold",
4704
4734
  T > 0 ? "pt-5" : "pt-3",
4705
- V.tone === "danger" ? "text-danger-fg" : V.tone === "muted" ? "text-text-subtle" : "text-text",
4735
+ q.tone === "danger" ? "text-danger-fg" : q.tone === "muted" ? "text-text-subtle" : "text-text",
4706
4736
  N && "sticky z-10",
4707
4737
  p && "cursor-pointer select-none"
4708
4738
  ),
4709
4739
  "aria-expanded": p ? !ee : void 0,
4710
4740
  style: N ? { top: W ? 28 : 0 } : void 0,
4711
- children: g ? g(V, L.map((fe) => fe.item)) : /* @__PURE__ */ c(Ee, { children: [
4741
+ children: g ? g(q, L.map((fe) => fe.item)) : /* @__PURE__ */ c(Ee, { children: [
4712
4742
  p && /* @__PURE__ */ e(
4713
4743
  Le,
4714
4744
  {
@@ -4725,14 +4755,14 @@ function Es({
4725
4755
  {
4726
4756
  className: i(
4727
4757
  "rounded-full px-2 text-xs font-normal tabular-nums",
4728
- V.tone === "danger" ? "bg-danger-soft text-danger-fg" : "bg-surface-sunk text-text-subtle"
4758
+ q.tone === "danger" ? "bg-danger-soft text-danger-fg" : "bg-surface-sunk text-text-subtle"
4729
4759
  ),
4730
4760
  children: be
4731
4761
  }
4732
4762
  )
4733
4763
  ] })
4734
4764
  },
4735
- `group-${V.id}`
4765
+ `group-${q.id}`
4736
4766
  );
4737
4767
  return ee ? [ye] : [
4738
4768
  ye,
@@ -4789,7 +4819,7 @@ function Es({
4789
4819
  ] }) })
4790
4820
  ] });
4791
4821
  }
4792
- function zs({
4822
+ function $s({
4793
4823
  side: t,
4794
4824
  continued: r = !1,
4795
4825
  tone: n = "default",
@@ -4826,18 +4856,18 @@ function zs({
4826
4856
  }
4827
4857
  );
4828
4858
  }
4829
- const kn = {
4859
+ const zn = {
4830
4860
  default: "text-text",
4831
4861
  urgent: "text-danger-fg",
4832
4862
  success: "text-success-fg"
4833
4863
  };
4834
- function Ms({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4864
+ function As({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4835
4865
  return /* @__PURE__ */ c("div", { className: i("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
4836
- /* @__PURE__ */ e("div", { className: i("text-2xl font-semibold", kn[n]), children: t }),
4866
+ /* @__PURE__ */ e("div", { className: i("text-2xl font-semibold", zn[n]), children: t }),
4837
4867
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
4838
4868
  ] });
4839
4869
  }
4840
- function Ts({ icon: t, label: r, unset: n, className: s }) {
4870
+ function Ds({ icon: t, label: r, unset: n, className: s }) {
4841
4871
  return /* @__PURE__ */ c(
4842
4872
  "span",
4843
4873
  {
@@ -4853,10 +4883,10 @@ function Ts({ icon: t, label: r, unset: n, className: s }) {
4853
4883
  }
4854
4884
  );
4855
4885
  }
4856
- function $s() {
4886
+ function Ls() {
4857
4887
  return /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "shrink-0 text-text-disabled", children: "·" });
4858
4888
  }
4859
- const Cn = ({
4889
+ const Mn = ({
4860
4890
  surface: t = !1,
4861
4891
  title: r,
4862
4892
  subtitle: n,
@@ -4983,11 +5013,11 @@ const Cn = ({
4983
5013
  ]
4984
5014
  }
4985
5015
  );
4986
- }, Sn = {
5016
+ }, Tn = {
4987
5017
  none: "",
4988
5018
  sm: "px-3 pb-3 pt-1",
4989
5019
  md: "px-5 pb-5 pt-1.5"
4990
- }, _s = ({
5020
+ }, Is = ({
4991
5021
  title: t,
4992
5022
  subtitle: r,
4993
5023
  meta: n,
@@ -5006,7 +5036,7 @@ const Cn = ({
5006
5036
  contentClassName: p,
5007
5037
  children: x
5008
5038
  }) => {
5009
- const C = v ? /* @__PURE__ */ e(Ve, { variant: "inline", shape: m }) : f ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: f }) : x;
5039
+ const C = v ? /* @__PURE__ */ e(qe, { variant: "inline", shape: m }) : f ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: f }) : x;
5010
5040
  return /* @__PURE__ */ c(
5011
5041
  "div",
5012
5042
  {
@@ -5020,7 +5050,7 @@ const Cn = ({
5020
5050
  ),
5021
5051
  children: [
5022
5052
  /* @__PURE__ */ e(
5023
- Cn,
5053
+ Mn,
5024
5054
  {
5025
5055
  surface: u,
5026
5056
  title: t,
@@ -5039,7 +5069,7 @@ const Cn = ({
5039
5069
  {
5040
5070
  className: i(
5041
5071
  g && "min-h-0 flex-1 overflow-y-auto",
5042
- Sn[b],
5072
+ Tn[b],
5043
5073
  p
5044
5074
  ),
5045
5075
  children: C
@@ -5048,12 +5078,12 @@ const Cn = ({
5048
5078
  ]
5049
5079
  }
5050
5080
  );
5051
- }, As = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ c("div", { className: i("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
5081
+ }, Ps = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ c("div", { className: i("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
5052
5082
  /* @__PURE__ */ e("span", { className: "shrink-0 text-2xs font-semibold uppercase tracking-label text-text-subtle", children: t }),
5053
5083
  r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
5054
5084
  n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
5055
5085
  ] });
5056
- function Ds({ label: t, trailing: r, align: n = "center", className: s }) {
5086
+ function Os({ label: t, trailing: r, align: n = "center", className: s }) {
5057
5087
  const a = /* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border-subtle", "aria-hidden": !0 });
5058
5088
  return !t && !r ? /* @__PURE__ */ e("div", { className: i("flex items-center py-2", s), children: a }) : /* @__PURE__ */ c("div", { className: i("flex items-center gap-3 py-2", s), children: [
5059
5089
  n === "center" && a,
@@ -5062,11 +5092,11 @@ function Ds({ label: t, trailing: r, align: n = "center", className: s }) {
5062
5092
  r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
5063
5093
  ] });
5064
5094
  }
5065
- const dt = et(null), Ls = dt.Provider;
5066
- function En() {
5095
+ const dt = et(null), js = dt.Provider;
5096
+ function _n() {
5067
5097
  return yt(dt);
5068
5098
  }
5069
- function Is() {
5099
+ function Fs() {
5070
5100
  const [t, r] = B(null), n = pe(
5071
5101
  () => ({
5072
5102
  setTrail: (s, a) => r((l) => a ? { ownerId: s, entry: a } : l && l.ownerId !== s ? l : null)
@@ -5075,13 +5105,13 @@ function Is() {
5075
5105
  );
5076
5106
  return { trail: t?.entry ?? null, api: n };
5077
5107
  }
5078
- const zn = {
5108
+ const $n = {
5079
5109
  none: "",
5080
5110
  sm: "px-3 py-3",
5081
5111
  // Matches the frame header's own horizontal padding, so content lines up
5082
5112
  // with the title above it.
5083
5113
  md: "px-5 py-4"
5084
- }, Ps = ({
5114
+ }, Rs = ({
5085
5115
  children: t,
5086
5116
  actions: r = [],
5087
5117
  secondaryActions: n = [],
@@ -5095,7 +5125,7 @@ const zn = {
5095
5125
  className: m,
5096
5126
  contentClassName: f
5097
5127
  }) => {
5098
- const b = En(), g = vt(), N = re(a);
5128
+ const b = _n(), g = vt(), N = re(a);
5099
5129
  N.current = a;
5100
5130
  const p = !!a, x = re(r);
5101
5131
  x.current = r;
@@ -5105,10 +5135,10 @@ const zn = {
5105
5135
  [...n, ...r].map((D) => [D.id, D.label, D.variant, D.disabled])
5106
5136
  ) : "", K = pe(() => {
5107
5137
  if (!I) return;
5108
- const D = (q) => (ne, Y) => ({
5138
+ const D = (V) => (ne, Y) => ({
5109
5139
  ...ne,
5110
5140
  onClick: () => {
5111
- (q === "primary" ? x.current : C.current)[Y]?.onClick();
5141
+ (V === "primary" ? x.current : C.current)[Y]?.onClick();
5112
5142
  }
5113
5143
  });
5114
5144
  return {
@@ -5151,7 +5181,7 @@ const zn = {
5151
5181
  r.length > 0 && /* @__PURE__ */ e(ke, { actions: r })
5152
5182
  ] })
5153
5183
  ] }),
5154
- /* @__PURE__ */ e("div", { className: i("flex-1", zn[v], f), children: u ? /* @__PURE__ */ e(Ve, { variant: "inline", shape: d }) : t }),
5184
+ /* @__PURE__ */ e("div", { className: i("flex-1", $n[v], f), children: u ? /* @__PURE__ */ e(qe, { variant: "inline", shape: d }) : t }),
5155
5185
  W && /* @__PURE__ */ c("div", { className: "sticky bottom-0 z-10 flex shrink-0 items-center gap-2 border-t border-border bg-surface px-5 py-3", children: [
5156
5186
  n.length > 0 && /* @__PURE__ */ e(ke, { actions: n, defaultVariant: "ghost" }),
5157
5187
  r.length > 0 && /* @__PURE__ */ e(ke, { actions: r, className: "ml-auto" })
@@ -5159,7 +5189,7 @@ const zn = {
5159
5189
  ] })
5160
5190
  );
5161
5191
  };
5162
- function Os({
5192
+ function Bs({
5163
5193
  label: t,
5164
5194
  description: r,
5165
5195
  control: n,
@@ -5186,7 +5216,7 @@ function Os({
5186
5216
  }
5187
5217
  );
5188
5218
  }
5189
- function js({
5219
+ function Hs({
5190
5220
  icon: t,
5191
5221
  title: r,
5192
5222
  description: n,
@@ -5206,7 +5236,7 @@ function js({
5206
5236
  /* @__PURE__ */ e("div", { className: i("flex flex-col", t && "pl-6"), children: a })
5207
5237
  ] });
5208
5238
  }
5209
- function Fs({ label: t, dotColor: r, onClick: n, className: s }) {
5239
+ function qs({ label: t, dotColor: r, onClick: n, className: s }) {
5210
5240
  return /* @__PURE__ */ c(
5211
5241
  "button",
5212
5242
  {
@@ -5224,7 +5254,7 @@ function Fs({ label: t, dotColor: r, onClick: n, className: s }) {
5224
5254
  }
5225
5255
  );
5226
5256
  }
5227
- function Mn(t) {
5257
+ function An(t) {
5228
5258
  const { id: r, header: n, accessor: s, label: a, tone: l, visible: o, width: u, sortable: d, align: v } = t;
5229
5259
  return {
5230
5260
  id: r,
@@ -5232,14 +5262,14 @@ function Mn(t) {
5232
5262
  accessor: (m) => a(s(m), m),
5233
5263
  cell: (m, f) => {
5234
5264
  const b = s(f);
5235
- return o && !o(b, f) ? null : /* @__PURE__ */ e(Qr, { variant: l ? l(b, f) : "default", size: "sm", children: a(b, f) });
5265
+ return o && !o(b, f) ? null : /* @__PURE__ */ e(nn, { variant: l ? l(b, f) : "default", size: "sm", children: a(b, f) });
5236
5266
  },
5237
5267
  width: u,
5238
5268
  sortable: d,
5239
5269
  align: v
5240
5270
  };
5241
5271
  }
5242
- function Rs(t) {
5272
+ function Vs(t) {
5243
5273
  const {
5244
5274
  id: r,
5245
5275
  header: n,
@@ -5251,7 +5281,7 @@ function Rs(t) {
5251
5281
  width: d,
5252
5282
  sortable: v
5253
5283
  } = t;
5254
- return Mn({
5284
+ return An({
5255
5285
  id: r,
5256
5286
  header: n,
5257
5287
  accessor: (m) => !!s(m),
@@ -5261,7 +5291,7 @@ function Rs(t) {
5261
5291
  sortable: v
5262
5292
  });
5263
5293
  }
5264
- function Bs(t) {
5294
+ function Us(t) {
5265
5295
  const {
5266
5296
  id: r,
5267
5297
  header: n,
@@ -5285,13 +5315,13 @@ function Bs(t) {
5285
5315
  sortable: v
5286
5316
  };
5287
5317
  }
5288
- function Tn(t, r) {
5318
+ function Dn(t, r) {
5289
5319
  return r.split(".").reduce(
5290
5320
  (n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
5291
5321
  t
5292
5322
  );
5293
5323
  }
5294
- const Hs = ({
5324
+ const Ws = ({
5295
5325
  groups: t,
5296
5326
  data: r,
5297
5327
  size: n = "md",
@@ -5314,7 +5344,7 @@ const Hs = ({
5314
5344
  return b ? b.label : String(m || "-");
5315
5345
  }, u = xe(
5316
5346
  (m) => {
5317
- const f = Tn(r, m.name);
5347
+ const f = Dn(r, m.name);
5318
5348
  if (m.type === "array") {
5319
5349
  const g = f;
5320
5350
  return !g || g.length === 0 ? /* @__PURE__ */ e(
@@ -5540,7 +5570,7 @@ const Hs = ({
5540
5570
  s
5541
5571
  );
5542
5572
  return /* @__PURE__ */ e("div", { className: v, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(d) }) });
5543
- }, $n = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), ut = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
5573
+ }, Ln = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ut = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
5544
5574
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
5545
5575
  if (a)
5546
5576
  return /* @__PURE__ */ c("li", { children: [
@@ -5642,7 +5672,7 @@ const Hs = ({
5642
5672
  ]
5643
5673
  }
5644
5674
  ) });
5645
- }, Vs = ({
5675
+ }, Ks = ({
5646
5676
  items: t,
5647
5677
  isSelectedHandler: r,
5648
5678
  onClick: n,
@@ -5650,7 +5680,7 @@ const Hs = ({
5650
5680
  loading: a = !1
5651
5681
  }) => a ? /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5652
5682
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5653
- /* @__PURE__ */ e($n, {})
5683
+ /* @__PURE__ */ e(Ln, {})
5654
5684
  ] }) : /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5655
5685
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5656
5686
  /* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-px overflow-y-auto", children: t.map(
@@ -5664,7 +5694,7 @@ const Hs = ({
5664
5694
  o
5665
5695
  )
5666
5696
  ) })
5667
- ] }), _n = {
5697
+ ] }), In = {
5668
5698
  xs: "text-xs",
5669
5699
  sm: "text-sm",
5670
5700
  md: "text-base",
@@ -5673,13 +5703,13 @@ const Hs = ({
5673
5703
  "2xl": "text-2xl",
5674
5704
  "3xl": "text-3xl",
5675
5705
  "4xl": "text-3xl"
5676
- }, An = {
5706
+ }, Pn = {
5677
5707
  light: "font-normal",
5678
5708
  normal: "font-normal",
5679
5709
  medium: "font-medium",
5680
5710
  semibold: "font-semibold",
5681
5711
  bold: "font-bold"
5682
- }, Dn = {
5712
+ }, On = {
5683
5713
  primary: "text-text",
5684
5714
  secondary: "text-text-muted",
5685
5715
  accent: "text-accent",
@@ -5689,11 +5719,11 @@ const Hs = ({
5689
5719
  info: "text-info-fg",
5690
5720
  neutral: "text-text",
5691
5721
  current: "text-current"
5692
- }, Ln = {
5722
+ }, jn = {
5693
5723
  left: "text-left",
5694
5724
  center: "text-center",
5695
5725
  right: "text-right"
5696
- }, qs = ({
5726
+ }, Gs = ({
5697
5727
  level: t = 1,
5698
5728
  size: r,
5699
5729
  weight: n = "semibold",
@@ -5706,16 +5736,16 @@ const Hs = ({
5706
5736
  }) => {
5707
5737
  const v = `h${t}`, m = i(
5708
5738
  "font-sans text-pretty",
5709
- _n[r || In(t)],
5710
- An[n],
5711
- Dn[s],
5712
- Ln[a],
5739
+ In[r || Fn(t)],
5740
+ Pn[n],
5741
+ On[s],
5742
+ jn[a],
5713
5743
  l && "truncate",
5714
5744
  o
5715
5745
  );
5716
5746
  return /* @__PURE__ */ e(v, { className: m, ...d, children: u });
5717
5747
  };
5718
- function In(t) {
5748
+ function Fn(t) {
5719
5749
  return {
5720
5750
  1: "2xl",
5721
5751
  2: "xl",
@@ -5725,7 +5755,7 @@ function In(t) {
5725
5755
  6: "md"
5726
5756
  }[t] || "md";
5727
5757
  }
5728
- const Us = ({
5758
+ const Js = ({
5729
5759
  commands: t,
5730
5760
  isOpen: r,
5731
5761
  onClose: n,
@@ -5830,7 +5860,7 @@ const Us = ({
5830
5860
  ]
5831
5861
  }
5832
5862
  ) }) : null;
5833
- }, Pn = {
5863
+ }, Rn = {
5834
5864
  none: "p-0",
5835
5865
  xs: "p-1",
5836
5866
  sm: "p-2",
@@ -5838,7 +5868,7 @@ const Us = ({
5838
5868
  lg: "p-6",
5839
5869
  xl: "p-8",
5840
5870
  "2xl": "p-12"
5841
- }, On = {
5871
+ }, Bn = {
5842
5872
  none: "m-0",
5843
5873
  xs: "m-1",
5844
5874
  sm: "m-2",
@@ -5846,7 +5876,7 @@ const Us = ({
5846
5876
  lg: "m-6",
5847
5877
  xl: "m-8",
5848
5878
  "2xl": "m-12"
5849
- }, jn = {
5879
+ }, Hn = {
5850
5880
  none: "",
5851
5881
  primary: "bg-accent text-accent-fg",
5852
5882
  secondary: "bg-surface-hover",
@@ -5862,26 +5892,26 @@ const Us = ({
5862
5892
  backdrop: "bg-page",
5863
5893
  editor: "bg-surface",
5864
5894
  input: "bg-surface-input"
5865
- }, Fn = {
5895
+ }, qn = {
5866
5896
  none: "rounded-none",
5867
5897
  sm: "rounded-sm",
5868
5898
  md: "rounded-md",
5869
5899
  lg: "rounded-lg",
5870
5900
  xl: "rounded-xl",
5871
5901
  full: "rounded-full"
5872
- }, Rn = {
5902
+ }, Vn = {
5873
5903
  none: "shadow-none",
5874
5904
  sm: "shadow-none",
5875
5905
  md: "shadow-overlay",
5876
5906
  lg: "shadow-overlay",
5877
5907
  xl: "shadow-modal",
5878
5908
  "2xl": "shadow-modal"
5879
- }, Bn = {
5909
+ }, Un = {
5880
5910
  none: "border-0",
5881
5911
  sm: "border",
5882
5912
  md: "border-2",
5883
5913
  lg: "border-4"
5884
- }, Hn = {
5914
+ }, Wn = {
5885
5915
  primary: "border-accent-border",
5886
5916
  secondary: "border-border",
5887
5917
  accent: "border-accent-border",
@@ -5908,13 +5938,13 @@ const Us = ({
5908
5938
  {
5909
5939
  ref: m,
5910
5940
  className: i(
5911
- t && Pn[t],
5912
- r && On[r],
5913
- n && jn[n],
5914
- s && Fn[s],
5915
- a && Rn[a],
5916
- l && Bn[l],
5917
- o && Hn[o],
5941
+ t && Rn[t],
5942
+ r && Bn[r],
5943
+ n && Hn[n],
5944
+ s && qn[s],
5945
+ a && Vn[a],
5946
+ l && Un[l],
5947
+ o && Wn[o],
5918
5948
  u
5919
5949
  ),
5920
5950
  ...v,
@@ -5923,7 +5953,7 @@ const Us = ({
5923
5953
  )
5924
5954
  );
5925
5955
  mt.displayName = "Box";
5926
- const Ws = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
5956
+ const Ys = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
5927
5957
  mt,
5928
5958
  {
5929
5959
  background: "module",
@@ -5938,7 +5968,7 @@ const Ws = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(
5938
5968
  ]
5939
5969
  }
5940
5970
  ), Re = /* @__PURE__ */ new Map();
5941
- function Ks({
5971
+ function Xs({
5942
5972
  identifier: t,
5943
5973
  resourceLoader: r,
5944
5974
  framework: n = "react",
@@ -5987,7 +6017,7 @@ function Ks({
5987
6017
  n === "react" && x && /* @__PURE__ */ e(x, { ...l })
5988
6018
  ] });
5989
6019
  }
5990
- class Gs extends Nt {
6020
+ class Zs extends Nt {
5991
6021
  constructor() {
5992
6022
  super(...arguments), this.state = {
5993
6023
  hasError: !1,
@@ -6016,97 +6046,97 @@ class Gs extends Nt {
6016
6046
  }
6017
6047
  }
6018
6048
  export {
6019
- ys as ArtifactView,
6020
- Ns as AssistantCard,
6021
- yn as Avatar,
6022
- ws as AvatarStack,
6023
- Qr as Badge,
6049
+ Cs as ArtifactView,
6050
+ Ss as AssistantCard,
6051
+ Cn as Avatar,
6052
+ Es as AvatarStack,
6053
+ nn as Badge,
6024
6054
  mt as Box,
6025
6055
  se as Button,
6026
- ns as ButtonGroup,
6027
- Ws as Card,
6028
- ks as ChannelBadge,
6056
+ os as ButtonGroup,
6057
+ Ys as Card,
6058
+ zs as ChannelBadge,
6029
6059
  we as Checkbox,
6030
- Us as CommandPalette,
6031
- fs as ConfirmDialog,
6032
- Ve as ContentLoading,
6060
+ Js as CommandPalette,
6061
+ gs as ConfirmDialog,
6062
+ qe as ContentLoading,
6033
6063
  Be as DatePicker,
6034
- Lr as Dropdown,
6035
- hs as EmptyState,
6036
- Gs as ErrorBoundary,
6037
- Ks as FederatedResource,
6038
- sr as FilterChip,
6039
- Mr as FolderSelect,
6040
- ms as Form,
6041
- Jr as FormSection,
6042
- qs as Heading,
6064
+ jr as Dropdown,
6065
+ ps as EmptyState,
6066
+ Zs as ErrorBoundary,
6067
+ Xs as FederatedResource,
6068
+ cr as FilterChip,
6069
+ Ar as FolderSelect,
6070
+ bs as Form,
6071
+ Qr as FormSection,
6072
+ Gs as Heading,
6043
6073
  Ut as IDENTITY_TONE_COUNT,
6044
6074
  Q as Icon,
6045
- Cs as Image,
6046
- ls as ImageField,
6047
- xs as Kbd,
6048
- Ms as KpiCard,
6049
- as as Link,
6050
- Es as List,
6051
- Ss as ListBulkAction,
6052
- es as MeetingGrid,
6053
- zs as MessageBubble,
6054
- $s as MetaSeparator,
6055
- Ts as MetaValue,
6075
+ Ms as Image,
6076
+ ds as ImageField,
6077
+ vs as Kbd,
6078
+ As as KpiCard,
6079
+ is as Link,
6080
+ _s as List,
6081
+ Ts as ListBulkAction,
6082
+ ss as MeetingGrid,
6083
+ $s as MessageBubble,
6084
+ Ls as MetaSeparator,
6085
+ Ds as MetaValue,
6056
6086
  it as Modal,
6057
- _s as Page,
6058
- Cn as PageHeader,
6059
- os as PageToolbar,
6087
+ Is as Page,
6088
+ Mn as PageHeader,
6089
+ us as PageToolbar,
6060
6090
  ke as PageToolbarActions,
6061
- ts as ParticipantTile,
6091
+ as as ParticipantTile,
6062
6092
  nt as Popover,
6063
- bs as ProgressBar,
6093
+ ys as ProgressBar,
6064
6094
  Te as RichText,
6065
6095
  ct as SearchField,
6066
- Ar as SearchableTextField,
6067
- As as SectionCaption,
6068
- Ds as SectionDivider,
6069
- ir as SegmentedToggle,
6096
+ Pr as SearchableTextField,
6097
+ Ps as SectionCaption,
6098
+ Os as SectionDivider,
6099
+ fr as SegmentedToggle,
6070
6100
  Ae as Select,
6071
- Ls as SettingsFrameProvider,
6072
- Ps as SettingsPage,
6073
- Os as SettingsRow,
6074
- js as SettingsSection,
6075
- Vs as SidebarMenu,
6076
- Fs as SourceChip,
6077
- gs as Spinner,
6101
+ js as SettingsFrameProvider,
6102
+ Rs as SettingsPage,
6103
+ Bs as SettingsRow,
6104
+ Hs as SettingsSection,
6105
+ Ks as SidebarMenu,
6106
+ qs as SourceChip,
6107
+ Ns as Spinner,
6078
6108
  st as SplitButton,
6079
- ps as StatusDot,
6080
- vs as StepIndicator,
6081
- qr as StorageInput,
6082
- Dr as Switch,
6083
- us as TabBar,
6109
+ ws as StatusDot,
6110
+ ks as StepIndicator,
6111
+ Gr as StorageInput,
6112
+ Or as Switch,
6113
+ xs as TabBar,
6084
6114
  Ye as Table,
6085
- Hr as Tabs,
6115
+ Wr as Tabs,
6086
6116
  ue as Text,
6087
6117
  He as TextArea,
6088
6118
  Ce as TextField,
6089
- rs as VideoSurface,
6090
- Hs as View,
6119
+ ls as VideoSurface,
6120
+ Ws as View,
6091
6121
  Xe as autofillProps,
6092
- Mn as badgeColumn,
6093
- Rs as booleanBadgeColumn,
6094
- Qn as catTone,
6122
+ An as badgeColumn,
6123
+ Vs as booleanBadgeColumn,
6124
+ ns as catTone,
6095
6125
  i as cn,
6096
- Xn as createSizes,
6097
- Yn as createVariants,
6098
- cs as dateFilterHandler,
6099
- Zn as identityDotClass,
6126
+ ts as createSizes,
6127
+ es as createVariants,
6128
+ ms as dateFilterHandler,
6129
+ rs as identityDotClass,
6100
6130
  rt as identityPlateClass,
6101
6131
  tt as identityTone,
6102
- Bs as labelsColumn,
6103
- ds as multiSelectFilterHandler,
6132
+ Us as labelsColumn,
6133
+ hs as multiSelectFilterHandler,
6104
6134
  Jt as normalizeText,
6105
- ss as resolveLucideIcon,
6106
- is as selectFilterHandler,
6107
- _e as text,
6135
+ cs as resolveLucideIcon,
6136
+ fs as selectFilterHandler,
6137
+ $e as text,
6108
6138
  Pe as useAnchoredPosition,
6109
- En as useSettingsFrame,
6110
- Is as useSettingsFrameHost
6139
+ _n as useSettingsFrame,
6140
+ Fs as useSettingsFrameHost
6111
6141
  };
6112
6142
  //# sourceMappingURL=index.js.map