@opencxh/ui-kit 3.175.2 → 3.176.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
@@ -1,21 +1,21 @@
1
1
  import { jsxs as c, jsx as e, Fragment as Ee } from "react/jsx-runtime";
2
- import ae, { forwardRef as ve, useState as R, useLayoutEffect as gt, useRef as ne, useEffect as X, createContext as et, useId as pt, useMemo as pe, useContext as vt, useCallback as xe, Component as yt } from "react";
3
- import { clsx as Nt } from "clsx";
4
- import * as wt from "lucide-react";
5
- import { X as Se, ChevronDown as Ae, ExternalLink as kt, Search as Le, ChevronRight as Ie, Sparkles as Ct, ImageOff as St, ChevronLeft as ze, Pencil as Et, ArrowUpRight as zt, Calendar as Mt, Check as Ue, ChevronUp as Tt, Ellipsis as $t, ChevronDownIcon as _t, FileText as je, HardDrive as We, ArrowLeft as Dt, FolderPlus as At, Upload as Lt, Folder as Ke, Trash2 as It, Plus as Pt, Loader2 as Ot, VideoOff as jt, User as Ft, MicOff as Rt, Mic as Bt } from "lucide-react";
6
- import Ht from "dompurify";
7
- import qt from "react-markdown";
8
- import Vt from "remark-gfm";
2
+ import ae, { forwardRef as ve, useState as R, useLayoutEffect as vt, useRef as ne, useEffect as Z, createContext as et, useId as yt, useMemo as pe, useContext as Nt, useCallback as xe, Component as wt } from "react";
3
+ import { clsx as kt } from "clsx";
4
+ import * as Ct from "lucide-react";
5
+ import { X as Se, ChevronDown as De, ExternalLink as St, Search as Le, ChevronRight as Ie, Sparkles as Et, ArrowUpRight as tt, ImageOff as zt, ChevronLeft as ze, Pencil as Mt, Calendar as Tt, Check as Ue, ChevronUp as At, Ellipsis as _t, ChevronDownIcon as $t, FileText as je, HardDrive as We, ArrowLeft as Dt, FolderPlus as Lt, Upload as It, Folder as Ke, Trash2 as Pt, Plus as Ot, Loader2 as jt, VideoOff as Ft, User as Rt, MicOff as Bt, Mic as Ht } from "lucide-react";
6
+ import qt from "dompurify";
7
+ import Vt from "react-markdown";
8
+ import Ut from "remark-gfm";
9
9
  function i(...t) {
10
- return Nt(t);
10
+ return kt(t);
11
11
  }
12
- function es(t) {
12
+ function ns(t) {
13
13
  return (r, n) => t[r]?.[n] || "";
14
14
  }
15
- function ts(t) {
15
+ function ss(t) {
16
16
  return (r) => t[r] || "";
17
17
  }
18
- const Ut = {
18
+ const Wt = {
19
19
  primary: "bg-accent text-accent-fg hover:bg-accent-hover disabled:bg-surface-hover",
20
20
  secondary: "bg-surface-sunk text-text-strong hover:bg-surface-hover disabled:bg-surface-hover",
21
21
  // No resting fill, so no disabled fill either — a greyed-out plate where
@@ -28,7 +28,7 @@ const Ut = {
28
28
  success: "bg-success text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
29
29
  warning: "bg-warning text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
30
30
  "danger-solid": "bg-danger text-text-inverse hover:opacity-90 disabled:bg-surface-hover"
31
- }, Wt = {
31
+ }, Kt = {
32
32
  xs: "h-control-xs px-2 text-xs",
33
33
  sm: "h-control-sm px-3 text-sm",
34
34
  md: "h-control-md px-4 text-sm",
@@ -36,7 +36,7 @@ const Ut = {
36
36
  xl: "h-control-xl px-6 text-base",
37
37
  "2xl": "h-control-2xl px-6 text-base",
38
38
  full: "h-control-md px-4 text-sm"
39
- }, Kt = {
39
+ }, Gt = {
40
40
  xs: "h-control-xs w-6",
41
41
  sm: "h-control-sm w-7",
42
42
  md: "h-control-md w-8",
@@ -75,8 +75,8 @@ const Ut = {
75
75
  "focus-visible:outline-none focus-visible:focus-ring",
76
76
  "disabled:cursor-not-allowed disabled:border-border-subtle",
77
77
  "disabled:text-text-disabled",
78
- Ut[t],
79
- o ? Kt[r] : Wt[r],
78
+ Wt[t],
79
+ o ? Gt[r] : Kt[r],
80
80
  (n || r === "full") && "w-full",
81
81
  s && "cursor-wait",
82
82
  d
@@ -102,7 +102,7 @@ const Ut = {
102
102
  }
103
103
  );
104
104
  se.displayName = "Button";
105
- const rs = ({
105
+ const as = ({
106
106
  children: t,
107
107
  size: r = "md",
108
108
  orientation: n = "horizontal",
@@ -133,12 +133,12 @@ const rs = ({
133
133
  );
134
134
  return /* @__PURE__ */ e("div", { className: l, role: "group", children: t });
135
135
  };
136
- function ns(t) {
136
+ function Jt(t) {
137
137
  if (!t) return;
138
- const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n = wt[r];
138
+ const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n = Ct[r];
139
139
  return typeof n == "function" || typeof n == "object" && n !== null ? n : void 0;
140
140
  }
141
- const Gt = {
141
+ const Yt = {
142
142
  primary: "text-text",
143
143
  secondary: "text-text-muted",
144
144
  accent: "text-accent",
@@ -148,7 +148,7 @@ const Gt = {
148
148
  info: "text-info-fg",
149
149
  neutral: "text-text-subtle",
150
150
  current: "text-current"
151
- }, ee = ({
151
+ }, J = ({
152
152
  icon: t,
153
153
  size: r = "md",
154
154
  color: n = "current",
@@ -158,9 +158,9 @@ const Gt = {
158
158
  "aria-label": o,
159
159
  ...u
160
160
  }) => {
161
- const d = typeof r == "number" ? r : Jt(r), v = i(
161
+ const d = typeof r == "number" ? r : Xt(r), v = i(
162
162
  "inline-block shrink-0",
163
- Gt[n],
163
+ Yt[n],
164
164
  s && [
165
165
  "cursor-pointer rounded-sm transition-opacity duration-fast ease-out hover:opacity-80",
166
166
  "focus-visible:outline-none focus-visible:focus-ring"
@@ -182,7 +182,7 @@ const Gt = {
182
182
  };
183
183
  return /* @__PURE__ */ e(t, { ...m });
184
184
  };
185
- function Jt(t) {
185
+ function Xt(t) {
186
186
  return {
187
187
  xs: 12,
188
188
  sm: 14,
@@ -193,7 +193,7 @@ function Jt(t) {
193
193
  }
194
194
  function Pe(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
195
195
  const [l, o] = R({});
196
- return gt(() => {
196
+ return vt(() => {
197
197
  if (!t) return;
198
198
  const u = () => {
199
199
  const d = r.current;
@@ -206,7 +206,7 @@ function Pe(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start
206
206
  };
207
207
  }, [t, r, n, s, a]), l;
208
208
  }
209
- const tt = ({
209
+ const rt = ({
210
210
  trigger: t,
211
211
  children: r,
212
212
  placement: n = "bottom-start",
@@ -217,7 +217,7 @@ const tt = ({
217
217
  triggerLabel: u
218
218
  }) => {
219
219
  const [d, v] = R(!1), m = ne(null), f = ne(null), b = Pe(d, f, { placement: n });
220
- X(() => {
220
+ Z(() => {
221
221
  if (!d) return;
222
222
  const p = (C) => {
223
223
  m.current && !m.current.contains(C.target) && v(!1);
@@ -263,29 +263,29 @@ const tt = ({
263
263
  }
264
264
  )
265
265
  ] });
266
- }, Yt = {
266
+ }, Zt = {
267
267
  none: "hover:bg-surface-sunk hover:text-text",
268
268
  default: "bg-surface-sunk text-text-muted hover:text-text",
269
269
  muted: "bg-surface-sunk text-text-subtle hover:text-text",
270
270
  outline: "text-text-muted ring-1 ring-inset ring-border-strong hover:bg-surface-hover hover:text-text",
271
271
  warning: "bg-warning-soft text-warning-fg",
272
272
  danger: "bg-danger-soft text-danger-fg"
273
- }, Xt = (t) => i(
273
+ }, Qt = (t) => i(
274
274
  // A button's default cursor is an arrow, so it has to be asked for.
275
275
  "inline-flex cursor-pointer select-none items-center text-sm font-medium",
276
276
  t.size === "sm" ? "h-control-sm" : "h-control-md",
277
277
  "transition-colors duration-fast ease-out",
278
278
  t.shape === "pill" ? "rounded-full" : "rounded-md",
279
279
  // Picking a value outranks whatever the value happens to mean.
280
- t.active ? "bg-info-soft text-info-fg" : Yt[t.tone ?? "default"],
280
+ t.active ? "bg-info-soft text-info-fg" : Zt[t.tone ?? "default"],
281
281
  t.className
282
- ), Zt = (t) => i(
282
+ ), er = (t) => i(
283
283
  "inline-flex items-center gap-1.5 pl-3",
284
284
  t.shape === "pill" ? "rounded-full" : "rounded-md",
285
285
  t.withClear ? "pr-1.5" : "pr-3",
286
286
  "focus-visible:outline-none focus-visible:focus-ring"
287
287
  );
288
- function Qt({
288
+ function tr({
289
289
  label: t,
290
290
  icon: r,
291
291
  tone: n = "default",
@@ -301,11 +301,11 @@ function Qt({
301
301
  title: b,
302
302
  className: g
303
303
  }) {
304
- const w = l && !!v, p = s === "pill" ? "rounded-full" : "rounded-md", h = Xt({ active: l, tone: n, shape: s, size: a, className: g }), C = /* @__PURE__ */ c(Ee, { children: [
304
+ const w = l && !!v, p = s === "pill" ? "rounded-full" : "rounded-md", h = Qt({ active: l, tone: n, shape: s, size: a, className: g }), C = /* @__PURE__ */ c(Ee, { children: [
305
305
  r,
306
306
  t,
307
- o && /* @__PURE__ */ e(ee, { icon: Ae, size: "xs" })
308
- ] }), z = Zt({ shape: s, withClear: w }), P = w && /* @__PURE__ */ e(
307
+ o && /* @__PURE__ */ e(J, { icon: De, size: "xs" })
308
+ ] }), z = er({ shape: s, withClear: w }), P = w && /* @__PURE__ */ e(
309
309
  "button",
310
310
  {
311
311
  type: "button",
@@ -315,12 +315,12 @@ function Qt({
315
315
  "inline-flex h-full items-center pr-3 focus-visible:outline-none focus-visible:focus-ring",
316
316
  p
317
317
  ),
318
- children: /* @__PURE__ */ e(ee, { icon: Se, size: "xs" })
318
+ children: /* @__PURE__ */ e(J, { icon: Se, size: "xs" })
319
319
  }
320
320
  );
321
321
  return u ? /* @__PURE__ */ c("span", { className: h, title: b, children: [
322
322
  /* @__PURE__ */ e(
323
- tt,
323
+ rt,
324
324
  {
325
325
  trigger: C,
326
326
  rootClassName: "h-full",
@@ -335,13 +335,13 @@ function Qt({
335
335
  P
336
336
  ] }) : /* @__PURE__ */ e("button", { type: "button", title: b, onClick: f, className: i(h, z), children: C });
337
337
  }
338
- const er = {
338
+ const rr = {
339
339
  xs: "text-xs",
340
340
  sm: "text-sm",
341
341
  md: "text-base",
342
342
  lg: "text-md",
343
343
  xl: "text-lg"
344
- }, tr = {
344
+ }, nr = {
345
345
  primary: "text-text hover:text-info-fg hover:underline",
346
346
  info: "text-info-fg hover:underline",
347
347
  secondary: "text-text-muted hover:text-text",
@@ -350,7 +350,7 @@ const er = {
350
350
  success: "text-success-fg hover:underline",
351
351
  warning: "text-warning-fg hover:underline",
352
352
  error: "text-danger-fg hover:underline"
353
- }, rr = {
353
+ }, sr = {
354
354
  primary: "bg-accent-soft",
355
355
  accent: "bg-accent-soft",
356
356
  secondary: "bg-surface-hover",
@@ -359,7 +359,7 @@ const er = {
359
359
  warning: "bg-warning-soft",
360
360
  error: "bg-danger-soft",
361
361
  info: "bg-info-soft"
362
- }, ss = ({
362
+ }, ls = ({
363
363
  variant: t = "default",
364
364
  size: r = "md",
365
365
  color: n = "primary",
@@ -376,13 +376,13 @@ const er = {
376
376
  "inline-flex items-center gap-1 underline-offset-2",
377
377
  "transition-colors duration-fast ease-out",
378
378
  "focus-visible:outline-none focus-visible:focus-ring",
379
- er[r],
380
- !s && tr[n],
379
+ rr[r],
380
+ !s && nr[n],
381
381
  t === "subtle" && "no-underline opacity-70 hover:opacity-100",
382
382
  t === "underline" && "underline decoration-1 hover:decoration-2",
383
383
  t === "button" && [
384
384
  "h-control-md rounded-md px-3 font-semibold no-underline hover:no-underline",
385
- rr[n]
385
+ sr[n]
386
386
  ],
387
387
  s && "pointer-events-none cursor-not-allowed text-text-disabled opacity-50",
388
388
  l
@@ -395,13 +395,13 @@ const er = {
395
395
  };
396
396
  return /* @__PURE__ */ c("a", { className: b, ...g, children: [
397
397
  o,
398
- f && /* @__PURE__ */ e(kt, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
398
+ f && /* @__PURE__ */ e(St, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
399
399
  ] });
400
- }, nr = {
400
+ }, ar = {
401
401
  sm: "h-control-sm px-3 text-sm",
402
402
  md: "h-control-md px-3 text-sm"
403
403
  };
404
- function sr({
404
+ function lr({
405
405
  options: t,
406
406
  value: r,
407
407
  onChange: n,
@@ -438,7 +438,7 @@ function sr({
438
438
  "transition-colors duration-fast ease-out",
439
439
  "focus-visible:outline-none focus-visible:focus-ring",
440
440
  l && "min-w-0 flex-1",
441
- nr[s],
441
+ ar[s],
442
442
  v ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
443
443
  ),
444
444
  children: d.label
@@ -449,15 +449,15 @@ function sr({
449
449
  }
450
450
  );
451
451
  }
452
- const ar = {
452
+ const or = {
453
453
  primary: "bg-accent text-accent-fg hover:bg-accent-hover",
454
454
  secondary: "border border-border bg-surface text-text hover:bg-surface-hover",
455
455
  outline: "border border-accent-border text-accent hover:bg-accent-soft"
456
- }, lr = {
456
+ }, cr = {
457
457
  sm: "h-control-sm w-7",
458
458
  md: "h-control-md w-8"
459
459
  };
460
- function rt({
460
+ function nt({
461
461
  label: t,
462
462
  onClick: r,
463
463
  variant: n = "primary",
@@ -489,7 +489,7 @@ function rt({
489
489
  }
490
490
  ),
491
491
  f && /* @__PURE__ */ e(
492
- tt,
492
+ rt,
493
493
  {
494
494
  placement: d,
495
495
  disabled: m,
@@ -502,11 +502,11 @@ function rt({
502
502
  className: i(
503
503
  "inline-flex items-center justify-center rounded-md rounded-l-none",
504
504
  "transition-colors duration-fast ease-out",
505
- ar[n],
506
- lr[s],
505
+ or[n],
506
+ cr[s],
507
507
  m && "cursor-not-allowed opacity-50"
508
508
  ),
509
- children: /* @__PURE__ */ e(Ae, { className: "size-icon-md" })
509
+ children: /* @__PURE__ */ e(De, { className: "size-icon-md" })
510
510
  }
511
511
  ),
512
512
  children: (b) => /* @__PURE__ */ e(Ee, { children: l.map((g) => /* @__PURE__ */ c(
@@ -534,7 +534,7 @@ function rt({
534
534
  ] })
535
535
  );
536
536
  }
537
- const as = ({
537
+ const os = ({
538
538
  commands: t,
539
539
  isOpen: r,
540
540
  onClose: n,
@@ -545,9 +545,9 @@ const as = ({
545
545
  const [o, u] = R(""), [d, v] = R(a || []), [m, f] = R(l || 0), b = ne(null), g = ne(null), p = (d.length ? t.find((h) => h.id === d[0])?.subCommands || [] : t).filter(
546
546
  (h) => h.label.toLowerCase().includes(o.toLowerCase())
547
547
  );
548
- return X(() => {
548
+ return Z(() => {
549
549
  r || (u(""), v(a || []), f(l || 0));
550
- }, [r]), X(() => {
550
+ }, [r]), Z(() => {
551
551
  const h = (C) => {
552
552
  if (r) {
553
553
  if (C.key === "Escape")
@@ -567,12 +567,12 @@ const as = ({
567
567
  }
568
568
  };
569
569
  return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
570
- }, [r, n, p, m, d]), X(() => {
570
+ }, [r, n, p, m, d]), Z(() => {
571
571
  const h = (C) => {
572
572
  b.current && !b.current.contains(C.target) && n();
573
573
  };
574
574
  return r && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
575
- }, [r, n]), X(() => {
575
+ }, [r, n]), Z(() => {
576
576
  if (!r) return;
577
577
  g.current?.querySelector(`[data-index="${m}"]`)?.scrollIntoView({ block: "nearest" });
578
578
  }, [m, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */ c(
@@ -639,7 +639,7 @@ const as = ({
639
639
  ]
640
640
  }
641
641
  ) }) : null;
642
- }, or = /<[a-z][\s\S]*>/i, cr = [
642
+ }, ir = /<[a-z][\s\S]*>/i, dr = [
643
643
  "[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
644
644
  "[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
645
645
  "[&_strong]:font-semibold [&_em]:italic",
@@ -654,7 +654,7 @@ const as = ({
654
654
  "[&_table]:my-1.5 [&_table]:w-full [&_table]:border-collapse [&_table]:text-xs",
655
655
  "[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
656
656
  "[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1"
657
- ].join(" "), ir = {
657
+ ].join(" "), ur = {
658
658
  p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
659
659
  a: (t) => /* @__PURE__ */ e(
660
660
  "a",
@@ -687,33 +687,33 @@ const as = ({
687
687
  };
688
688
  function Me({ text: t, className: r, as: n }) {
689
689
  const s = t ?? "";
690
- return (n ? n === "html" : or.test(s)) ? /* @__PURE__ */ e(
690
+ return (n ? n === "html" : ir.test(s)) ? /* @__PURE__ */ e(
691
691
  "div",
692
692
  {
693
- className: i("break-words", cr, r),
693
+ className: i("break-words", dr, r),
694
694
  dangerouslySetInnerHTML: {
695
- __html: Ht.sanitize(s, { ADD_ATTR: ["target", "rel"] })
695
+ __html: qt.sanitize(s, { ADD_ATTR: ["target", "rel"] })
696
696
  }
697
697
  }
698
- ) : /* @__PURE__ */ e("div", { className: i("break-words", r), children: /* @__PURE__ */ e(qt, { remarkPlugins: [Vt], components: ir, children: s }) });
698
+ ) : /* @__PURE__ */ e("div", { className: i("break-words", r), children: /* @__PURE__ */ e(Vt, { remarkPlugins: [Ut], components: ur, children: s }) });
699
699
  }
700
- const dr = {
700
+ const mr = {
701
701
  info: "text-info-fg",
702
702
  success: "text-success-fg",
703
703
  warning: "text-warning-fg",
704
704
  destructive: "text-danger-fg"
705
- }, ur = {
705
+ }, fr = {
706
706
  info: "bg-info-soft border-info-border",
707
707
  success: "bg-success-soft border-success-border",
708
708
  warning: "bg-warning-soft border-warning-border",
709
709
  destructive: "bg-danger-soft border-danger-border"
710
- }, mr = {
710
+ }, hr = {
711
711
  1: "grid-cols-1",
712
712
  2: "grid-cols-2",
713
713
  3: "grid-cols-3",
714
714
  4: "grid-cols-4"
715
715
  };
716
- function fr({ block: t }) {
716
+ function xr({ block: t }) {
717
717
  switch (t.type) {
718
718
  case "heading":
719
719
  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 });
@@ -773,13 +773,13 @@ function fr({ block: t }) {
773
773
  t.caption && /* @__PURE__ */ e("figcaption", { className: "pt-2 text-xs italic text-text-subtle", children: t.caption })
774
774
  ] });
775
775
  case "kpi":
776
- return /* @__PURE__ */ e("div", { className: i("grid gap-3", mr[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: [
776
+ return /* @__PURE__ */ e("div", { className: i("grid gap-3", hr[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: [
777
777
  /* @__PURE__ */ e(
778
778
  "div",
779
779
  {
780
780
  className: i(
781
781
  "text-2xl font-semibold tracking-tight",
782
- r.tone ? dr[r.tone] : "text-text"
782
+ r.tone ? mr[r.tone] : "text-text"
783
783
  ),
784
784
  children: r.value
785
785
  }
@@ -787,7 +787,7 @@ function fr({ block: t }) {
787
787
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r.label })
788
788
  ] }, n)) });
789
789
  case "callout":
790
- return /* @__PURE__ */ c("div", { className: i("rounded-lg border px-4 py-3", ur[t.tone]), children: [
790
+ return /* @__PURE__ */ c("div", { className: i("rounded-lg border px-4 py-3", fr[t.tone]), children: [
791
791
  t.title && /* @__PURE__ */ e("div", { className: "pb-0.5 text-sm font-semibold text-text", children: t.title }),
792
792
  /* @__PURE__ */ e(Me, { as: "markdown", text: t.text, className: "text-sm text-text" })
793
793
  ] });
@@ -795,7 +795,7 @@ function fr({ block: t }) {
795
795
  return null;
796
796
  }
797
797
  }
798
- function ls({ blocks: t, runtime: r = "inert", className: n }) {
798
+ function cs({ blocks: t, runtime: r = "inert", className: n }) {
799
799
  return r !== "inert" ? /* @__PURE__ */ c(
800
800
  "div",
801
801
  {
@@ -812,11 +812,11 @@ function ls({ blocks: t, runtime: r = "inert", className: n }) {
812
812
  ] })
813
813
  ]
814
814
  }
815
- ) : /* @__PURE__ */ e("article", { className: i("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(fr, { block: s }, s.block_id ?? a)) });
815
+ ) : /* @__PURE__ */ e("article", { className: i("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(xr, { block: s }, s.block_id ?? a)) });
816
816
  }
817
- function os({
817
+ function is({
818
818
  title: t,
819
- icon: r = /* @__PURE__ */ e(Ct, { className: "size-icon-md", "aria-hidden": !0 }),
819
+ icon: r = /* @__PURE__ */ e(Et, { className: "size-icon-md", "aria-hidden": !0 }),
820
820
  action: n,
821
821
  children: s,
822
822
  className: a,
@@ -842,53 +842,53 @@ function os({
842
842
  }
843
843
  );
844
844
  }
845
- const hr = 5;
846
- function xr(t) {
845
+ const br = 5;
846
+ function gr(t) {
847
847
  let r = 2166136261;
848
848
  for (let n = 0; n < t.length; n++)
849
849
  r ^= t.charCodeAt(n), r = Math.imul(r, 16777619);
850
850
  return r >>> 0;
851
851
  }
852
- function nt(t) {
852
+ function st(t) {
853
853
  const r = (t ?? "").trim().toLowerCase();
854
- return r ? xr(r) % hr + 1 : 1;
854
+ return r ? gr(r) % br + 1 : 1;
855
855
  }
856
- const br = {
856
+ const pr = {
857
857
  1: "bg-cat-1-soft text-cat-1-fg",
858
858
  2: "bg-cat-2-soft text-cat-2-fg",
859
859
  3: "bg-cat-3-soft text-cat-3-fg",
860
860
  4: "bg-cat-4-soft text-cat-4-fg",
861
861
  5: "bg-cat-5-soft text-cat-5-fg"
862
- }, gr = {
862
+ }, vr = {
863
863
  1: "bg-cat-1",
864
864
  2: "bg-cat-2",
865
865
  3: "bg-cat-3",
866
866
  4: "bg-cat-4",
867
867
  5: "bg-cat-5"
868
868
  };
869
- function st(t) {
870
- return br[nt(t)];
869
+ function at(t) {
870
+ return pr[st(t)];
871
871
  }
872
- function cs(t) {
873
- return gr[nt(t)];
872
+ function ds(t) {
873
+ return vr[st(t)];
874
874
  }
875
- const pr = {
875
+ const yr = {
876
876
  default: "bg-avatar text-avatar-fg",
877
877
  in: "bg-avatar-in text-avatar-in-fg",
878
878
  out: "bg-accent text-accent-fg",
879
879
  note: "bg-avatar-note text-avatar-note-fg"
880
- }, vr = {
880
+ }, Nr = {
881
881
  xs: "w-5 h-5 text-xs",
882
882
  sm: "w-6 h-6 text-xs",
883
883
  md: "w-7 h-7 text-base",
884
884
  lg: "w-9 h-9 text-sm"
885
885
  };
886
- function yr(t) {
886
+ function wr(t) {
887
887
  if (!t) return "?";
888
888
  const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
889
889
  return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
890
890
  }
891
- const Nr = ({
891
+ const lt = ({
892
892
  name: t,
893
893
  src: r,
894
894
  tone: n = "default",
@@ -903,8 +903,8 @@ const Nr = ({
903
903
  "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none",
904
904
  // `identity` is seeded on the name, so the same person keeps their colour
905
905
  // wherever they appear; the fixed tones stay as they were.
906
- n === "identity" ? st(t) : pr[n],
907
- vr[s],
906
+ n === "identity" ? at(t) : yr[n],
907
+ Nr[s],
908
908
  a
909
909
  );
910
910
  return r && !o ? /* @__PURE__ */ e(
@@ -916,8 +916,8 @@ const Nr = ({
916
916
  className: i(d, "object-cover"),
917
917
  onError: () => u(!0)
918
918
  }
919
- ) : /* @__PURE__ */ e("span", { className: d, title: l ?? t, "aria-label": t, children: yr(t) });
920
- }, Ge = "ring-surface", wr = "ring-surface-accent", is = ({
919
+ ) : /* @__PURE__ */ e("span", { className: d, title: l ?? t, "aria-label": t, children: wr(t) });
920
+ }, Ge = "ring-surface", kr = "ring-surface-accent", us = ({
921
921
  people: t,
922
922
  max: r = 4,
923
923
  size: n = "sm",
@@ -927,7 +927,7 @@ const Nr = ({
927
927
  const a = t.slice(0, r), l = t.length - a.length;
928
928
  return /* @__PURE__ */ c("span", { className: i("inline-flex items-center", s), children: [
929
929
  a.map((o, u) => /* @__PURE__ */ e(
930
- Nr,
930
+ lt,
931
931
  {
932
932
  name: o.name,
933
933
  src: o.src,
@@ -935,7 +935,7 @@ const Nr = ({
935
935
  title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
936
936
  className: i(
937
937
  u > 0 && "-ml-2",
938
- o.owner ? wr : Ge,
938
+ o.owner ? kr : Ge,
939
939
  o.seen === !1 && "opacity-40"
940
940
  )
941
941
  },
@@ -958,18 +958,126 @@ const Nr = ({
958
958
  }
959
959
  )
960
960
  ] });
961
- }, Te = {
961
+ }, Cr = {
962
+ neutral: "bg-surface-sunk",
963
+ out: "bg-bubble-out-soft",
964
+ note: "bg-note-soft",
965
+ assistant: "bg-assistant-soft"
966
+ }, Sr = {
967
+ neutral: "text-text",
968
+ out: "text-text",
969
+ note: "text-note",
970
+ assistant: "text-text"
971
+ };
972
+ function ms({
973
+ avatar: t,
974
+ title: r,
975
+ context: n,
976
+ meta: s,
977
+ time: a,
978
+ tone: l = "neutral",
979
+ actions: o,
980
+ below: u,
981
+ children: d
982
+ }) {
983
+ return /* @__PURE__ */ c("div", { className: "flex min-w-0 flex-col gap-2", children: [
984
+ /* @__PURE__ */ c("div", { className: "flex min-w-0 items-start gap-3.5", children: [
985
+ /* @__PURE__ */ e("span", { className: "mt-0.5 shrink-0", children: t }),
986
+ /* @__PURE__ */ c(
987
+ "div",
988
+ {
989
+ className: i("min-w-0 flex-1 overflow-hidden rounded-lg px-4 py-3.5", Cr[l]),
990
+ children: [
991
+ /* @__PURE__ */ c("div", { className: "flex items-baseline gap-2", children: [
992
+ /* @__PURE__ */ e(
993
+ "span",
994
+ {
995
+ className: i(
996
+ "min-w-0 truncate text-md font-semibold",
997
+ !n && "flex-1",
998
+ Sr[l]
999
+ ),
1000
+ children: r
1001
+ }
1002
+ ),
1003
+ n && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-xs text-text-muted", children: n }),
1004
+ (s || a) && /* @__PURE__ */ c("span", { className: "ml-auto flex shrink-0 items-center gap-1.5", children: [
1005
+ s,
1006
+ a && /* @__PURE__ */ e("span", { className: "text-xs tabular-nums text-text-subtle", children: a })
1007
+ ] })
1008
+ ] }),
1009
+ d && /* @__PURE__ */ e("div", { className: "pt-2", children: d }),
1010
+ o && /* @__PURE__ */ e("div", { className: "-ml-2.5 flex flex-wrap items-center gap-0.5 pt-2.5", children: o })
1011
+ ]
1012
+ }
1013
+ )
1014
+ ] }),
1015
+ u
1016
+ ] });
1017
+ }
1018
+ const fs = "hover:bg-surface-track";
1019
+ function hs({
1020
+ name: t,
1021
+ src: r,
1022
+ tone: n = "in"
1023
+ }) {
1024
+ return /* @__PURE__ */ e(lt, { name: t, src: r, tone: n, size: "sm" });
1025
+ }
1026
+ function xs({
1027
+ icon: t,
1028
+ tone: r = "neutral",
1029
+ title: n
1030
+ }) {
1031
+ return /* @__PURE__ */ e(
1032
+ "span",
1033
+ {
1034
+ title: n,
1035
+ className: i(
1036
+ "grid size-avatar-md shrink-0 place-items-center rounded-full",
1037
+ r === "assistant" ? "bg-assistant-soft text-assistant" : "bg-surface-track text-text-muted"
1038
+ ),
1039
+ children: /* @__PURE__ */ e(J, { icon: t, size: "sm", color: "current" })
1040
+ }
1041
+ );
1042
+ }
1043
+ function bs({ children: t, className: r }) {
1044
+ return /* @__PURE__ */ e("div", { className: i("flex items-center gap-2.5 rounded-md bg-surface px-3 py-2.5", r), children: t });
1045
+ }
1046
+ function gs({ icon: t, text: r, time: n, joinUrl: s, joinLabel: a }) {
1047
+ const l = Jt(t);
1048
+ return /* @__PURE__ */ c("div", { className: "flex items-center gap-2 py-1.5 pl-10.5 text-xs text-text-subtle", children: [
1049
+ l && /* @__PURE__ */ e(J, { icon: l, size: "sm", color: "current" }),
1050
+ /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: r }),
1051
+ /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "shrink-0 text-text-disabled", children: "·" }),
1052
+ /* @__PURE__ */ e("span", { className: "shrink-0 tabular-nums", children: n }),
1053
+ s && /* @__PURE__ */ c(
1054
+ "a",
1055
+ {
1056
+ href: s,
1057
+ target: "_blank",
1058
+ rel: "noopener noreferrer",
1059
+ className: "shrink-0 text-xs font-medium text-info-fg hover:underline",
1060
+ children: [
1061
+ a ?? "Join",
1062
+ " ",
1063
+ /* @__PURE__ */ e(J, { icon: tt, size: "xs" })
1064
+ ]
1065
+ }
1066
+ )
1067
+ ] });
1068
+ }
1069
+ const Te = {
962
1070
  mail: { fg: "text-channel-mail-fg", bg: "bg-channel-mail-soft" },
963
1071
  wa: { fg: "text-channel-whatsapp-fg", bg: "bg-channel-whatsapp-soft" },
964
1072
  chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
965
1073
  tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
966
1074
  note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
967
- }, kr = {
1075
+ }, Er = {
968
1076
  sm: "size-avatar-xs rounded-sm text-xs",
969
1077
  md: "size-avatar-sm rounded-md text-xs",
970
1078
  lg: "size-avatar-lg rounded-md text-base"
971
1079
  };
972
- function ds({
1080
+ function ps({
973
1081
  channel: t,
974
1082
  children: r,
975
1083
  size: n = "md",
@@ -983,18 +1091,18 @@ function ds({
983
1091
  title: a,
984
1092
  className: i(
985
1093
  "inline-flex shrink-0 items-center justify-center font-bold",
986
- kr[n],
1094
+ Er[n],
987
1095
  // An undeclared channel used to collapse onto the neutral "note" tone,
988
1096
  // which is also what a real internal note looks like. Deriving from the
989
1097
  // key keeps it distinguishable and keeps `note` meaning `note`.
990
- l ? i(l.fg, l.bg) : t ? st(t) : i(Te.note.fg, Te.note.bg),
1098
+ l ? i(l.fg, l.bg) : t ? at(t) : i(Te.note.fg, Te.note.bg),
991
1099
  s
992
1100
  ),
993
1101
  children: r
994
1102
  }
995
1103
  );
996
1104
  }
997
- const us = ({
1105
+ const vs = ({
998
1106
  src: t,
999
1107
  alt: r,
1000
1108
  size: n = "md",
@@ -1010,14 +1118,14 @@ const us = ({
1010
1118
  onError: b,
1011
1119
  ...g
1012
1120
  }) => {
1013
- const [w, p] = R(!0), [h, C] = R(!1), [z, P] = R(t), _ = (J) => {
1014
- p(!1), C(!1), f?.(J);
1015
- }, K = (J) => {
1121
+ const [w, p] = R(!0), [h, C] = R(!1), [z, P] = R(t), _ = (Y) => {
1122
+ p(!1), C(!1), f?.(Y);
1123
+ }, K = (Y) => {
1016
1124
  if (p(!1), C(!0), u && z !== u) {
1017
1125
  P(u), C(!1), p(!0);
1018
1126
  return;
1019
1127
  }
1020
- b?.(J);
1128
+ b?.(Y);
1021
1129
  }, U = i(
1022
1130
  "relative overflow-hidden bg-surface-hover",
1023
1131
  // Size variants
@@ -1052,8 +1160,8 @@ const us = ({
1052
1160
  }), B = i(
1053
1161
  "absolute inset-0 flex items-center justify-center",
1054
1162
  "text-text-muted"
1055
- ), W = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), Z = /* @__PURE__ */ c("div", { className: "text-center", children: [
1056
- /* @__PURE__ */ e(ee, { icon: St, size: "lg", className: "mx-auto mb-1" }),
1163
+ ), W = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), Q = /* @__PURE__ */ c("div", { className: "text-center", children: [
1164
+ /* @__PURE__ */ e(J, { icon: zt, size: "lg", className: "mx-auto mb-1" }),
1057
1165
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
1058
1166
  ] });
1059
1167
  return /* @__PURE__ */ c("div", { className: U, children: [
@@ -1069,30 +1177,30 @@ const us = ({
1069
1177
  }
1070
1178
  ),
1071
1179
  w && l && /* @__PURE__ */ e("div", { className: B, children: d || W }),
1072
- h && o && /* @__PURE__ */ e("div", { className: B, children: v || Z })
1180
+ h && o && /* @__PURE__ */ e("div", { className: B, children: v || Q })
1073
1181
  ] });
1074
- }, Cr = {
1182
+ }, zr = {
1075
1183
  default: "text-text",
1076
1184
  urgent: "text-danger-fg",
1077
1185
  success: "text-success-fg"
1078
1186
  };
1079
- function ms({ value: t, label: r, tone: n = "default", className: s, ...a }) {
1187
+ function ys({ value: t, label: r, tone: n = "default", className: s, ...a }) {
1080
1188
  return /* @__PURE__ */ c("div", { className: i("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
1081
- /* @__PURE__ */ e("div", { className: i("text-2xl font-semibold", Cr[n]), children: t }),
1189
+ /* @__PURE__ */ e("div", { className: i("text-2xl font-semibold", zr[n]), children: t }),
1082
1190
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
1083
1191
  ] });
1084
1192
  }
1085
- const Sr = {
1193
+ const Mr = {
1086
1194
  sm: "size-checkbox-sm",
1087
1195
  md: "size-checkbox",
1088
1196
  lg: "size-checkbox-lg",
1089
1197
  full: "size-checkbox"
1090
- }, Er = {
1198
+ }, Tr = {
1091
1199
  sm: "min-h-control-sm",
1092
1200
  md: "min-h-control-md",
1093
1201
  lg: "min-h-control-lg",
1094
1202
  full: "min-h-control-md"
1095
- }, zr = {
1203
+ }, Ar = {
1096
1204
  sm: "text-sm",
1097
1205
  md: "text-base",
1098
1206
  lg: "text-md",
@@ -1119,7 +1227,7 @@ const Sr = {
1119
1227
  return ae.useEffect(() => {
1120
1228
  w.current && (w.current.indeterminate = a);
1121
1229
  }, [a]), /* @__PURE__ */ c("div", { className: i("flex flex-col", l), children: [
1122
- /* @__PURE__ */ c("div", { className: i("flex items-center gap-3", Er[s]), children: [
1230
+ /* @__PURE__ */ c("div", { className: i("flex items-center gap-3", Tr[s]), children: [
1123
1231
  /* @__PURE__ */ e(
1124
1232
  "input",
1125
1233
  {
@@ -1136,7 +1244,7 @@ const Sr = {
1136
1244
  "transition-colors duration-fast ease-out",
1137
1245
  "focus-visible:outline-none focus-visible:focus-ring",
1138
1246
  "disabled:cursor-not-allowed disabled:bg-surface-hover",
1139
- Sr[s],
1247
+ Mr[s],
1140
1248
  g ? "border-danger-border" : "border-border-strong",
1141
1249
  u
1142
1250
  ),
@@ -1151,7 +1259,7 @@ const Sr = {
1151
1259
  className: i(
1152
1260
  "cursor-pointer",
1153
1261
  g ? "text-danger-fg" : "text-text",
1154
- zr[s],
1262
+ Ar[s],
1155
1263
  o
1156
1264
  ),
1157
1265
  children: t
@@ -1165,7 +1273,7 @@ const Sr = {
1165
1273
  }
1166
1274
  );
1167
1275
  we.displayName = "Checkbox";
1168
- function fs({
1276
+ function Ns({
1169
1277
  icon: t,
1170
1278
  onClick: r,
1171
1279
  children: n
@@ -1188,7 +1296,7 @@ function fs({
1188
1296
  }
1189
1297
  );
1190
1298
  }
1191
- function hs({
1299
+ function ws({
1192
1300
  items: t,
1193
1301
  getRowKey: r,
1194
1302
  variant: n = "divided",
@@ -1215,11 +1323,11 @@ function hs({
1215
1323
  bordered: j = !1,
1216
1324
  emptyContent: B,
1217
1325
  loading: W = !1,
1218
- loadingRows: Z = 4,
1219
- className: J,
1326
+ loadingRows: Q = 4,
1327
+ className: Y,
1220
1328
  "aria-label": de
1221
1329
  }) {
1222
- const [Y, y] = ae.useState(
1330
+ const [X, y] = ae.useState(
1223
1331
  () => Object.fromEntries((b ?? []).filter((k) => k.defaultCollapsed).map((k) => [k.id, !0]))
1224
1332
  ), x = ae.useRef(null), S = (k) => {
1225
1333
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(k.key)) return;
@@ -1230,9 +1338,9 @@ function hs({
1230
1338
  k.preventDefault();
1231
1339
  const O = G.indexOf(document.activeElement), N = k.key === "Home" ? 0 : k.key === "End" ? G.length - 1 : k.key === "ArrowDown" ? (O + 1) % G.length : (O - 1 + G.length) % G.length;
1232
1340
  G[N]?.focus();
1233
- }, D = (k, M) => r ? r(k, M) : M, E = (k) => z.includes(k), A = (k, M) => {
1341
+ }, $ = (k, M) => r ? r(k, M) : M, E = (k) => z.includes(k), D = (k, M) => {
1234
1342
  P && P(M ? [...z, k] : z.filter((G) => G !== k));
1235
- }, $ = (k) => P?.(k ? [...t] : []), oe = i(
1343
+ }, A = (k) => P?.(k ? [...t] : []), oe = i(
1236
1344
  "flex flex-col",
1237
1345
  // With a selection open the list has a dock at its foot. Sticky can only
1238
1346
  // park at the bottom of its own box, so on a list shorter than the window
@@ -1242,10 +1350,10 @@ function hs({
1242
1350
  // keeps its natural height.
1243
1351
  C && z.length > 0 && "min-h-full",
1244
1352
  j && "overflow-hidden rounded-lg border border-border-subtle",
1245
- J
1353
+ Y
1246
1354
  );
1247
1355
  if (W)
1248
- return /* @__PURE__ */ e("div", { className: oe, children: Array.from({ length: Z }).map((k, M) => /* @__PURE__ */ c(
1356
+ return /* @__PURE__ */ e("div", { className: oe, children: Array.from({ length: Q }).map((k, M) => /* @__PURE__ */ c(
1249
1357
  "div",
1250
1358
  {
1251
1359
  className: i(
@@ -1299,7 +1407,7 @@ function hs({
1299
1407
  we,
1300
1408
  {
1301
1409
  checked: E(k),
1302
- onChange: (le) => A(k, le.target.checked),
1410
+ onChange: (le) => D(k, le.target.checked),
1303
1411
  "aria-label": "Rij selecteren"
1304
1412
  }
1305
1413
  ) }),
@@ -1315,7 +1423,7 @@ function hs({
1315
1423
  l && /* @__PURE__ */ e("span", { className: "shrink-0 text-xs text-text-subtle", children: l(k, M) })
1316
1424
  ]
1317
1425
  },
1318
- D(k, M)
1426
+ $(k, M)
1319
1427
  );
1320
1428
  }, L = (() => {
1321
1429
  if (!f)
@@ -1330,7 +1438,7 @@ function hs({
1330
1438
  ...M.filter((O) => k.has(O.id)),
1331
1439
  ...[...k.keys()].filter((O) => !M.some((N) => N.id === O)).map((O) => ({ id: O }))
1332
1440
  ].flatMap((O, N) => {
1333
- const I = k.get(O.id) ?? [], te = p && Y[O.id], le = O.title ?? O.id, be = O.count ?? I.length, ye = /* @__PURE__ */ e(
1441
+ const I = k.get(O.id) ?? [], te = p && X[O.id], le = O.title ?? O.id, be = O.count ?? I.length, ye = /* @__PURE__ */ e(
1334
1442
  "li",
1335
1443
  {
1336
1444
  onClick: p ? () => y((fe) => ({ ...fe, [O.id]: !fe[O.id] })) : void 0,
@@ -1398,7 +1506,7 @@ function hs({
1398
1506
  {
1399
1507
  checked: ce,
1400
1508
  indeterminate: q,
1401
- onChange: (k) => $(k.target.checked),
1509
+ onChange: (k) => A(k.target.checked),
1402
1510
  "aria-label": "Alles selecteren"
1403
1511
  }
1404
1512
  ) }),
@@ -1428,7 +1536,7 @@ function hs({
1428
1536
  ] }) })
1429
1537
  ] });
1430
1538
  }
1431
- function xs({
1539
+ function ks({
1432
1540
  side: t,
1433
1541
  continued: r = !1,
1434
1542
  tone: n = "default",
@@ -1461,7 +1569,7 @@ function xs({
1461
1569
  }
1462
1570
  );
1463
1571
  }
1464
- function bs({ icon: t, label: r, unset: n, className: s }) {
1572
+ function Cs({ icon: t, label: r, unset: n, className: s }) {
1465
1573
  return /* @__PURE__ */ c(
1466
1574
  "span",
1467
1575
  {
@@ -1477,11 +1585,11 @@ function bs({ icon: t, label: r, unset: n, className: s }) {
1477
1585
  }
1478
1586
  );
1479
1587
  }
1480
- function gs() {
1588
+ function Ss() {
1481
1589
  return /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "shrink-0 text-text-disabled", children: "·" });
1482
1590
  }
1483
1591
  const me = ({ className: t }) => /* @__PURE__ */ e("span", { className: i("block rounded-xs bg-surface-hover", t) });
1484
- function Mr({
1592
+ function _r({
1485
1593
  shape: t,
1486
1594
  rows: r,
1487
1595
  columns: n
@@ -1549,7 +1657,7 @@ function Mr({
1549
1657
  ] });
1550
1658
  }
1551
1659
  }
1552
- const Tr = {
1660
+ const $r = {
1553
1661
  text: 2,
1554
1662
  table: 8,
1555
1663
  list: 6,
@@ -1568,10 +1676,10 @@ function qe({
1568
1676
  tableColumns: u,
1569
1677
  tableRows: d
1570
1678
  }) {
1571
- const v = r ?? (o ? "table" : "text"), m = n ?? d ?? Tr[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(Mr, { shape: v, rows: m, columns: f }) });
1679
+ const v = r ?? (o ? "table" : "text"), m = n ?? d ?? $r[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(_r, { shape: v, rows: m, columns: f }) });
1572
1680
  return t === "inline" ? b : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: b });
1573
1681
  }
1574
- const $r = ({
1682
+ const Dr = ({
1575
1683
  surface: t = !1,
1576
1684
  title: r,
1577
1685
  subtitle: n,
@@ -1586,9 +1694,9 @@ const $r = ({
1586
1694
  onTitleChange: f
1587
1695
  }) => {
1588
1696
  const [b, g] = R(!1), [w, p] = R(r), h = ne(null);
1589
- X(() => {
1697
+ Z(() => {
1590
1698
  p(r);
1591
- }, [r]), X(() => {
1699
+ }, [r]), Z(() => {
1592
1700
  b && h.current && (h.current.focus(), h.current.select());
1593
1701
  }, [b]);
1594
1702
  const C = () => {
@@ -1620,7 +1728,7 @@ const $r = ({
1620
1728
  {
1621
1729
  variant: "ghost",
1622
1730
  onClick: v,
1623
- leftIcon: /* @__PURE__ */ e(ee, { icon: ze, size: "md" }),
1731
+ leftIcon: /* @__PURE__ */ e(J, { icon: ze, size: "md" }),
1624
1732
  iconOnly: !0
1625
1733
  }
1626
1734
  ),
@@ -1651,7 +1759,7 @@ const $r = ({
1651
1759
  ),
1652
1760
  n && /* @__PURE__ */ e("span", { className: "shrink-0 text-base text-text-muted truncate", children: n }),
1653
1761
  m && /* @__PURE__ */ e(
1654
- Et,
1762
+ Mt,
1655
1763
  {
1656
1764
  size: 15,
1657
1765
  onClick: C,
@@ -1677,7 +1785,7 @@ const $r = ({
1677
1785
  ] }) }),
1678
1786
  a.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: a.map(
1679
1787
  (_) => _.render ? /* @__PURE__ */ e(ae.Fragment, { children: _.render() }, _.id) : _.splitOptions && _.splitOptions.length > 0 ? /* @__PURE__ */ e(
1680
- rt,
1788
+ nt,
1681
1789
  {
1682
1790
  label: _.label,
1683
1791
  onClick: _.onClick,
@@ -1706,11 +1814,11 @@ const $r = ({
1706
1814
  ]
1707
1815
  }
1708
1816
  );
1709
- }, _r = {
1817
+ }, Lr = {
1710
1818
  none: "",
1711
1819
  sm: "px-3 pb-3 pt-1",
1712
1820
  md: "px-5 pb-5 pt-1.5"
1713
- }, ps = ({
1821
+ }, Es = ({
1714
1822
  title: t,
1715
1823
  subtitle: r,
1716
1824
  meta: n,
@@ -1743,7 +1851,7 @@ const $r = ({
1743
1851
  ),
1744
1852
  children: [
1745
1853
  /* @__PURE__ */ e(
1746
- $r,
1854
+ Dr,
1747
1855
  {
1748
1856
  surface: u,
1749
1857
  title: t,
@@ -1762,7 +1870,7 @@ const $r = ({
1762
1870
  {
1763
1871
  className: i(
1764
1872
  g && "min-h-0 flex-1 overflow-y-auto",
1765
- _r[b],
1873
+ Lr[b],
1766
1874
  p
1767
1875
  ),
1768
1876
  children: C
@@ -1777,7 +1885,7 @@ const $r = ({
1777
1885
  className: n
1778
1886
  }) => t.length === 0 ? null : /* @__PURE__ */ e("div", { className: i("flex flex-wrap items-center gap-2", n), children: t.map(
1779
1887
  (s) => s.render ? /* @__PURE__ */ e(ae.Fragment, { children: s.render() }, s.id) : s.splitOptions && s.splitOptions.length > 0 ? /* @__PURE__ */ e(
1780
- rt,
1888
+ nt,
1781
1889
  {
1782
1890
  label: s.label,
1783
1891
  onClick: s.onClick,
@@ -1800,32 +1908,32 @@ const $r = ({
1800
1908
  },
1801
1909
  s.id
1802
1910
  )
1803
- ) }), Dr = {
1911
+ ) }), Ir = {
1804
1912
  none: "p-0",
1805
1913
  sm: "p-2",
1806
1914
  md: "px-5 py-4",
1807
1915
  lg: "p-6"
1808
- }, vs = ({
1916
+ }, zs = ({
1809
1917
  actions: t = [],
1810
1918
  onBack: r,
1811
1919
  backLabel: n = "Back",
1812
1920
  className: s,
1813
1921
  padding: a = "md",
1814
1922
  children: l
1815
- }) => /* @__PURE__ */ c("div", { className: i("flex items-center gap-2", Dr[a], s), children: [
1923
+ }) => /* @__PURE__ */ c("div", { className: i("flex items-center gap-2", Ir[a], s), children: [
1816
1924
  r && /* @__PURE__ */ e(
1817
1925
  se,
1818
1926
  {
1819
1927
  variant: "secondary",
1820
1928
  onClick: r,
1821
1929
  "aria-label": n,
1822
- leftIcon: /* @__PURE__ */ e(ee, { icon: ze, size: "sm" }),
1930
+ leftIcon: /* @__PURE__ */ e(J, { icon: ze, size: "sm" }),
1823
1931
  iconOnly: !0
1824
1932
  }
1825
1933
  ),
1826
1934
  l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
1827
1935
  /* @__PURE__ */ e(ke, { actions: t, className: i(!l && "ml-auto") })
1828
- ] }), ys = ({
1936
+ ] }), Ms = ({
1829
1937
  label: t,
1830
1938
  meta: r,
1831
1939
  action: n,
@@ -1835,7 +1943,7 @@ const $r = ({
1835
1943
  r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
1836
1944
  n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
1837
1945
  ] });
1838
- function Ns({
1946
+ function Ts({
1839
1947
  label: t,
1840
1948
  trailing: r,
1841
1949
  align: n = "center",
@@ -1849,11 +1957,11 @@ function Ns({
1849
1957
  r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
1850
1958
  ] });
1851
1959
  }
1852
- const at = et(null), ws = at.Provider;
1853
- function Ar() {
1854
- return vt(at);
1960
+ const ot = et(null), As = ot.Provider;
1961
+ function Pr() {
1962
+ return Nt(ot);
1855
1963
  }
1856
- function ks() {
1964
+ function _s() {
1857
1965
  const [t, r] = R(null), n = pe(
1858
1966
  () => ({
1859
1967
  setTrail: (s, a) => r((l) => a ? { ownerId: s, entry: a } : l && l.ownerId !== s ? l : null)
@@ -1862,13 +1970,13 @@ function ks() {
1862
1970
  );
1863
1971
  return { trail: t?.entry ?? null, api: n };
1864
1972
  }
1865
- const Lr = {
1973
+ const Or = {
1866
1974
  none: "",
1867
1975
  sm: "px-3 py-3",
1868
1976
  // Matches the frame header's own horizontal padding, so content lines up
1869
1977
  // with the title above it.
1870
1978
  md: "px-5 py-4"
1871
- }, Cs = ({
1979
+ }, $s = ({
1872
1980
  children: t,
1873
1981
  actions: r = [],
1874
1982
  secondaryActions: n = [],
@@ -1882,7 +1990,7 @@ const Lr = {
1882
1990
  className: m,
1883
1991
  contentClassName: f
1884
1992
  }) => {
1885
- const b = Ar(), g = pt(), w = ne(a);
1993
+ const b = Pr(), g = yt(), w = ne(a);
1886
1994
  w.current = a;
1887
1995
  const p = !!a, h = ne(r);
1888
1996
  h.current = r;
@@ -1892,10 +2000,10 @@ const Lr = {
1892
2000
  [...n, ...r].map((j) => [j.id, j.label, j.variant, j.disabled])
1893
2001
  ) : "", K = pe(() => {
1894
2002
  if (!P) return;
1895
- const j = (B) => (W, Z) => ({
2003
+ const j = (B) => (W, Q) => ({
1896
2004
  ...W,
1897
2005
  onClick: () => {
1898
- (B === "primary" ? h.current : C.current)[Z]?.onClick();
2006
+ (B === "primary" ? h.current : C.current)[Q]?.onClick();
1899
2007
  }
1900
2008
  });
1901
2009
  return {
@@ -1903,7 +2011,7 @@ const Lr = {
1903
2011
  secondaryActions: C.current.map(j("secondary"))
1904
2012
  };
1905
2013
  }, [P, _]);
1906
- X(() => {
2014
+ Z(() => {
1907
2015
  if (b && !(!p && !o && !K))
1908
2016
  return b.setTrail(g, {
1909
2017
  title: o,
@@ -1928,7 +2036,7 @@ const Lr = {
1928
2036
  variant: "ghost",
1929
2037
  onClick: () => w.current?.(),
1930
2038
  "aria-label": l,
1931
- leftIcon: /* @__PURE__ */ e(ee, { icon: ze, size: "sm" }),
2039
+ leftIcon: /* @__PURE__ */ e(J, { icon: ze, size: "sm" }),
1932
2040
  iconOnly: !0
1933
2041
  }
1934
2042
  ),
@@ -1938,7 +2046,7 @@ const Lr = {
1938
2046
  r.length > 0 && /* @__PURE__ */ e(ke, { actions: r })
1939
2047
  ] })
1940
2048
  ] }),
1941
- /* @__PURE__ */ e("div", { className: i("flex-1", Lr[v], f), children: u ? /* @__PURE__ */ e(qe, { variant: "inline", shape: d }) : t }),
2049
+ /* @__PURE__ */ e("div", { className: i("flex-1", Or[v], f), children: u ? /* @__PURE__ */ e(qe, { variant: "inline", shape: d }) : t }),
1942
2050
  U && /* @__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: [
1943
2051
  n.length > 0 && /* @__PURE__ */ e(ke, { actions: n, defaultVariant: "ghost" }),
1944
2052
  r.length > 0 && /* @__PURE__ */ e(ke, { actions: r, className: "ml-auto" })
@@ -1946,7 +2054,7 @@ const Lr = {
1946
2054
  ] })
1947
2055
  );
1948
2056
  };
1949
- function Ss({
2057
+ function Ds({
1950
2058
  label: t,
1951
2059
  description: r,
1952
2060
  control: n,
@@ -1973,7 +2081,7 @@ function Ss({
1973
2081
  }
1974
2082
  );
1975
2083
  }
1976
- function Es({
2084
+ function Ls({
1977
2085
  icon: t,
1978
2086
  title: r,
1979
2087
  description: n,
@@ -1983,7 +2091,7 @@ function Es({
1983
2091
  }) {
1984
2092
  return /* @__PURE__ */ c("section", { className: i("flex flex-col gap-2", l), children: [
1985
2093
  /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
1986
- t && /* @__PURE__ */ e(ee, { icon: t, size: "md", color: "secondary", className: "mt-0.5" }),
2094
+ t && /* @__PURE__ */ e(J, { icon: t, size: "md", color: "secondary", className: "mt-0.5" }),
1987
2095
  /* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: [
1988
2096
  /* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-text", children: r }),
1989
2097
  n && /* @__PURE__ */ e("p", { className: "text-xs text-text-muted", children: n })
@@ -1993,7 +2101,7 @@ function Es({
1993
2101
  /* @__PURE__ */ e("div", { className: i("flex flex-col", t && "pl-6"), children: a })
1994
2102
  ] });
1995
2103
  }
1996
- function zs({ label: t, dotColor: r, onClick: n, className: s }) {
2104
+ function Is({ label: t, dotColor: r, onClick: n, className: s }) {
1997
2105
  return /* @__PURE__ */ c(
1998
2106
  "button",
1999
2107
  {
@@ -2013,12 +2121,12 @@ function zs({ label: t, dotColor: r, onClick: n, className: s }) {
2013
2121
  }
2014
2122
  ),
2015
2123
  /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: t }),
2016
- /* @__PURE__ */ e(ee, { icon: zt, size: "xs", className: "opacity-70" })
2124
+ /* @__PURE__ */ e(J, { icon: tt, size: "xs", className: "opacity-70" })
2017
2125
  ]
2018
2126
  }
2019
2127
  );
2020
2128
  }
2021
- const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current" }), Pr = () => /* @__PURE__ */ e(ee, { icon: ze, size: "md", color: "current" }), Or = () => /* @__PURE__ */ e(ee, { icon: Ie, size: "md", color: "current" }), Be = ve(
2129
+ const jr = () => /* @__PURE__ */ e(J, { icon: Tt, size: "md", color: "current" }), Fr = () => /* @__PURE__ */ e(J, { icon: ze, size: "md", color: "current" }), Rr = () => /* @__PURE__ */ e(J, { icon: Ie, size: "md", color: "current" }), Be = ve(
2022
2130
  ({
2023
2131
  value: t,
2024
2132
  onChange: r,
@@ -2033,7 +2141,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2033
2141
  withTime: m = !1
2034
2142
  }, f) => {
2035
2143
  const [b, g] = R(!1), [w, p] = R(() => t || /* @__PURE__ */ new Date()), h = ne(null), C = ne(null), z = Pe(b, C);
2036
- X(() => {
2144
+ Z(() => {
2037
2145
  const y = (x) => {
2038
2146
  h.current && !h.current.contains(x.target) && g(!1);
2039
2147
  };
@@ -2043,19 +2151,19 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2043
2151
  }, [b]);
2044
2152
  const P = (y) => {
2045
2153
  if (!y) return "";
2046
- const x = y.getDate().toString().padStart(2, "0"), S = (y.getMonth() + 1).toString().padStart(2, "0"), D = y.getFullYear(), E = v === "dd/MM/yyyy" ? `${x}/${S}/${D}` : v === "yyyy-MM-dd" ? `${D}-${S}-${x}` : `${S}/${x}/${D}`;
2154
+ const x = y.getDate().toString().padStart(2, "0"), S = (y.getMonth() + 1).toString().padStart(2, "0"), $ = y.getFullYear(), E = v === "dd/MM/yyyy" ? `${x}/${S}/${$}` : v === "yyyy-MM-dd" ? `${$}-${S}-${x}` : `${S}/${x}/${$}`;
2047
2155
  return m ? `${E} ${_(y)}` : E;
2048
2156
  }, _ = (y) => `${y.getHours().toString().padStart(2, "0")}:${y.getMinutes().toString().padStart(2, "0")}`, K = (y) => {
2049
2157
  const [x, S] = y.split(":").map(Number);
2050
2158
  if (Number.isNaN(x) || Number.isNaN(S)) return;
2051
- const D = t ? new Date(t) : /* @__PURE__ */ new Date();
2052
- D.setHours(x, S, 0, 0), r?.(D);
2159
+ const $ = t ? new Date(t) : /* @__PURE__ */ new Date();
2160
+ $.setHours(x, S, 0, 0), r?.($);
2053
2161
  }, U = () => {
2054
- const y = w.getFullYear(), x = w.getMonth(), S = new Date(y, x, 1), D = new Date(S);
2055
- D.setDate(D.getDate() - S.getDay());
2056
- const E = [], A = new Date(D);
2057
- for (let $ = 0; $ < 42; $++)
2058
- E.push(new Date(A)), A.setDate(A.getDate() + 1);
2162
+ const y = w.getFullYear(), x = w.getMonth(), S = new Date(y, x, 1), $ = new Date(S);
2163
+ $.setDate($.getDate() - S.getDay());
2164
+ const E = [], D = new Date($);
2165
+ for (let A = 0; A < 42; A++)
2166
+ E.push(new Date(D)), D.setDate(D.getDate() + 1);
2059
2167
  return E;
2060
2168
  }, j = (y) => {
2061
2169
  if (y.getMonth() === w.getMonth() && !(u && y < u) && !(d && y > d)) {
@@ -2070,9 +2178,9 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2070
2178
  p(new Date(w.getFullYear(), w.getMonth() - 1, 1));
2071
2179
  }, W = () => {
2072
2180
  p(new Date(w.getFullYear(), w.getMonth() + 1, 1));
2073
- }, Z = () => {
2181
+ }, Q = () => {
2074
2182
  r?.(null), g(!1);
2075
- }, J = i(
2183
+ }, Y = i(
2076
2184
  "w-full border border-border-strong rounded-tile transition-colors duration-fast",
2077
2185
  "bg-surface text-text",
2078
2186
  "placeholder:text-text-muted",
@@ -2085,7 +2193,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2085
2193
  "h-control-md w-full px-3 text-base": l === "full"
2086
2194
  },
2087
2195
  o
2088
- ), de = U(), Y = [
2196
+ ), de = U(), X = [
2089
2197
  "January",
2090
2198
  "February",
2091
2199
  "March",
@@ -2112,7 +2220,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2112
2220
  required: a,
2113
2221
  readOnly: !0,
2114
2222
  onClick: () => !s && g(!b),
2115
- className: i(J, "pr-10 cursor-pointer")
2223
+ className: i(Y, "pr-10 cursor-pointer")
2116
2224
  }
2117
2225
  ),
2118
2226
  /* @__PURE__ */ e(
@@ -2122,7 +2230,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2122
2230
  onClick: () => !s && g(!b),
2123
2231
  disabled: s,
2124
2232
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-muted",
2125
- children: /* @__PURE__ */ e(Ir, {})
2233
+ children: /* @__PURE__ */ e(jr, {})
2126
2234
  }
2127
2235
  )
2128
2236
  ] }),
@@ -2133,27 +2241,27 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2133
2241
  className: "fixed z-overlay overflow-auto rounded-lg border border-border bg-surface p-4 shadow-overlay min-w-panel",
2134
2242
  children: [
2135
2243
  /* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
2136
- /* @__PURE__ */ e("button", { onClick: B, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Pr, {}) }),
2244
+ /* @__PURE__ */ e("button", { onClick: B, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Fr, {}) }),
2137
2245
  /* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
2138
- Y[w.getMonth()],
2246
+ X[w.getMonth()],
2139
2247
  " ",
2140
2248
  w.getFullYear()
2141
2249
  ] }),
2142
- /* @__PURE__ */ e("button", { onClick: W, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Or, {}) })
2250
+ /* @__PURE__ */ e("button", { onClick: W, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Rr, {}) })
2143
2251
  ] }),
2144
2252
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((y) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: y }, y)) }),
2145
2253
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: de.map((y, x) => {
2146
- const S = y.getMonth() === w.getMonth(), D = t && y.toDateString() === t.toDateString(), E = y.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), A = !S || u && y < u || d && y > d;
2254
+ const S = y.getMonth() === w.getMonth(), $ = t && y.toDateString() === t.toDateString(), E = y.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), D = !S || u && y < u || d && y > d;
2147
2255
  return /* @__PURE__ */ e(
2148
2256
  "button",
2149
2257
  {
2150
- onClick: () => !A && j(y),
2151
- disabled: A,
2258
+ onClick: () => !D && j(y),
2259
+ disabled: D,
2152
2260
  className: i("w-8 h-8 text-sm rounded transition-colors duration-fast", {
2153
- "text-text hover:bg-surface-hover": S && !D && !A,
2154
- "bg-accent text-accent-fg": D,
2155
- "bg-surface-hover text-text": E && !D,
2156
- "text-text-muted cursor-not-allowed": A
2261
+ "text-text hover:bg-surface-hover": S && !$ && !D,
2262
+ "bg-accent text-accent-fg": $,
2263
+ "bg-surface-hover text-text": E && !$,
2264
+ "text-text-muted cursor-not-allowed": D
2157
2265
  }),
2158
2266
  children: y.getDate()
2159
2267
  },
@@ -2174,7 +2282,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2174
2282
  )
2175
2283
  ] }),
2176
2284
  /* @__PURE__ */ c("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-border", children: [
2177
- /* @__PURE__ */ e("button", { onClick: Z, className: "text-sm text-text-muted hover:text-text", children: "Clear" }),
2285
+ /* @__PURE__ */ e("button", { onClick: Q, className: "text-sm text-text-muted hover:text-text", children: "Clear" }),
2178
2286
  /* @__PURE__ */ e(
2179
2287
  "button",
2180
2288
  {
@@ -2189,7 +2297,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2189
2297
  )
2190
2298
  ] });
2191
2299
  }
2192
- ), lt = ve(
2300
+ ), ct = ve(
2193
2301
  ({
2194
2302
  value: t,
2195
2303
  onValueChange: r,
@@ -2214,7 +2322,7 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2214
2322
  l
2215
2323
  ),
2216
2324
  children: [
2217
- /* @__PURE__ */ e(ee, { icon: Le, size: "md", color: "current", className: "shrink-0" }),
2325
+ /* @__PURE__ */ e(J, { icon: Le, size: "md", color: "current", className: "shrink-0" }),
2218
2326
  /* @__PURE__ */ e(
2219
2327
  "input",
2220
2328
  {
@@ -2246,15 +2354,15 @@ const Ir = () => /* @__PURE__ */ e(ee, { icon: Mt, size: "md", color: "current"
2246
2354
  "aria-label": a,
2247
2355
  onClick: () => r(""),
2248
2356
  className: "grid size-4 shrink-0 cursor-pointer place-items-center rounded-xs text-text-subtle transition-colors duration-fast ease-out hover:text-text focus-visible:outline-none focus-visible:focus-ring",
2249
- children: /* @__PURE__ */ e(ee, { icon: Se, size: "sm", color: "current" })
2357
+ children: /* @__PURE__ */ e(J, { icon: Se, size: "sm", color: "current" })
2250
2358
  }
2251
2359
  ) : n && /* @__PURE__ */ e("span", { className: "shrink-0 text-xs text-text-subtle", children: n })
2252
2360
  ]
2253
2361
  }
2254
2362
  )
2255
2363
  );
2256
- lt.displayName = "SearchField";
2257
- const jr = ({
2364
+ ct.displayName = "SearchField";
2365
+ const Br = ({
2258
2366
  trigger: t,
2259
2367
  options: r,
2260
2368
  value: n,
@@ -2270,7 +2378,7 @@ const jr = ({
2270
2378
  "button[data-option-value]:not(:disabled)"
2271
2379
  ) ?? []
2272
2380
  );
2273
- X(() => {
2381
+ Z(() => {
2274
2382
  v && K()[0]?.focus();
2275
2383
  }, [v]);
2276
2384
  const U = (y) => {
@@ -2278,24 +2386,24 @@ const jr = ({
2278
2386
  const S = K();
2279
2387
  if (S.length === 0) return;
2280
2388
  y.preventDefault();
2281
- const D = S.indexOf(document.activeElement), E = y.key === "Home" ? 0 : y.key === "End" ? S.length - 1 : y.key === "ArrowDown" ? (D + 1) % S.length : (D - 1 + S.length) % S.length;
2389
+ const $ = S.indexOf(document.activeElement), E = y.key === "Home" ? 0 : y.key === "End" ? S.length - 1 : y.key === "ArrowDown" ? ($ + 1) % S.length : ($ - 1 + S.length) % S.length;
2282
2390
  S[E]?.focus();
2283
2391
  };
2284
- X(() => {
2392
+ Z(() => {
2285
2393
  const y = (x) => {
2286
2394
  p.current && (!p.current.contains(x.target) || C.current && !C.current.contains(x.target)) && (m(!1), b(null), _.current && (clearTimeout(_.current), _.current = null));
2287
2395
  };
2288
2396
  return v && document.addEventListener("mousedown", y), () => {
2289
2397
  document.removeEventListener("mousedown", y);
2290
2398
  };
2291
- }, [v]), X(() => {
2399
+ }, [v]), Z(() => {
2292
2400
  const y = (x) => {
2293
2401
  x.key === "Escape" && (m(!1), b(null), h.current?.focus(), _.current && (clearTimeout(_.current), _.current = null));
2294
2402
  };
2295
2403
  return v && document.addEventListener("keydown", y), () => {
2296
2404
  document.removeEventListener("keydown", y);
2297
2405
  };
2298
- }, [v]), X(() => {
2406
+ }, [v]), Z(() => {
2299
2407
  if (f && p.current) {
2300
2408
  const y = p.current.querySelector(
2301
2409
  `[data-option-value="${f}"]`
@@ -2308,7 +2416,7 @@ const jr = ({
2308
2416
  });
2309
2417
  }
2310
2418
  }
2311
- }, [f]), X(() => () => {
2419
+ }, [f]), Z(() => () => {
2312
2420
  _.current && clearTimeout(_.current);
2313
2421
  }, []);
2314
2422
  const j = (y) => {
@@ -2317,16 +2425,16 @@ const jr = ({
2317
2425
  y.stopPropagation(), !x.disabled && !x.divider && (!x.children || x.children.length === 0) && (s?.(x.value, S), m(!1), b(null));
2318
2426
  }, W = (y) => {
2319
2427
  _.current && (clearTimeout(_.current), _.current = null), y.children && y.children.length > 0 ? b(y.value) : b(null);
2320
- }, Z = (y) => {
2428
+ }, Q = (y) => {
2321
2429
  y.children && y.children.length > 0 ? _.current = setTimeout(() => {
2322
2430
  b(null);
2323
2431
  }, 150) : b(null);
2324
- }, J = (y, x, S) => {
2432
+ }, Y = (y, x, S) => {
2325
2433
  y.stopPropagation(), !x.disabled && !x.divider && (s?.(x.value, S), m(!1), b(null));
2326
2434
  }, de = i(
2327
2435
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
2328
2436
  "max-h-60 overflow-auto"
2329
- ), Y = i(
2437
+ ), X = i(
2330
2438
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
2331
2439
  "max-h-60 overflow-auto"
2332
2440
  );
@@ -2365,7 +2473,7 @@ const jr = ({
2365
2473
  r.map((y, x) => {
2366
2474
  if (y.divider)
2367
2475
  return /* @__PURE__ */ e("div", { className: "border-t border-border my-2" }, `divider-${x}`);
2368
- const S = y.children && y.children.length > 0, D = f === y.value;
2476
+ const S = y.children && y.children.length > 0, $ = f === y.value;
2369
2477
  return /* @__PURE__ */ c("div", { className: "relative group", children: [
2370
2478
  /* @__PURE__ */ c(
2371
2479
  "button",
@@ -2375,13 +2483,13 @@ const jr = ({
2375
2483
  "aria-haspopup": S ? "menu" : void 0,
2376
2484
  onClick: (E) => B(E, y),
2377
2485
  onMouseEnter: () => W(y),
2378
- onMouseLeave: () => Z(y),
2486
+ onMouseLeave: () => Q(y),
2379
2487
  disabled: y.disabled,
2380
2488
  className: i(
2381
2489
  "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",
2382
2490
  {
2383
2491
  "opacity-50 cursor-not-allowed": y.disabled,
2384
- "bg-surface-hover": D && S
2492
+ "bg-surface-hover": $ && S
2385
2493
  }
2386
2494
  ),
2387
2495
  children: [
@@ -2399,11 +2507,11 @@ const jr = ({
2399
2507
  ]
2400
2508
  }
2401
2509
  ),
2402
- S && D && /* @__PURE__ */ e(
2510
+ S && $ && /* @__PURE__ */ e(
2403
2511
  "div",
2404
2512
  {
2405
2513
  ref: C,
2406
- className: Y,
2514
+ className: X,
2407
2515
  style: {
2408
2516
  top: `${g.top}px`,
2409
2517
  left: `${g.left}px`
@@ -2416,20 +2524,20 @@ const jr = ({
2416
2524
  b(null);
2417
2525
  }, 150);
2418
2526
  },
2419
- children: /* @__PURE__ */ e("div", { className: "p-2", children: y.children.map((E, A) => {
2527
+ children: /* @__PURE__ */ e("div", { className: "p-2", children: y.children.map((E, D) => {
2420
2528
  if (E.divider)
2421
2529
  return /* @__PURE__ */ e(
2422
2530
  "div",
2423
2531
  {
2424
2532
  className: "border-t border-border my-2"
2425
2533
  },
2426
- `divider-${A}`
2534
+ `divider-${D}`
2427
2535
  );
2428
- const $ = typeof n == "object" && n[y.value] && n[y.value].includes(E.value) || n === E.value;
2536
+ const A = typeof n == "object" && n[y.value] && n[y.value].includes(E.value) || n === E.value;
2429
2537
  return /* @__PURE__ */ c(
2430
2538
  "button",
2431
2539
  {
2432
- onClick: (oe) => J(oe, E, y.value),
2540
+ onClick: (oe) => Y(oe, E, y.value),
2433
2541
  disabled: E.disabled,
2434
2542
  className: i(
2435
2543
  "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",
@@ -2445,7 +2553,7 @@ const jr = ({
2445
2553
  E.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: E.description })
2446
2554
  ] })
2447
2555
  ] }),
2448
- u && $ && /* @__PURE__ */ e(
2556
+ u && A && /* @__PURE__ */ e(
2449
2557
  Ue,
2450
2558
  {
2451
2559
  className: "size-icon-md shrink-0 text-success-fg",
@@ -2464,8 +2572,8 @@ const jr = ({
2464
2572
  (() => {
2465
2573
  const y = r.reduce((x, S) => {
2466
2574
  if (S.divider) return x;
2467
- const D = S.children ? S.children.filter((E) => !E.divider).length : 0;
2468
- return x + 1 + D;
2575
+ const $ = S.children ? S.children.filter((E) => !E.divider).length : 0;
2576
+ return x + 1 + $;
2469
2577
  }, 0);
2470
2578
  return y > 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: [
2471
2579
  y,
@@ -2478,24 +2586,24 @@ const jr = ({
2478
2586
  ]
2479
2587
  }
2480
2588
  );
2481
- }, Ms = (t) => (r) => t(r instanceof Date ? r : null), Ts = (t) => (r) => t(typeof r == "string" ? r : ""), $s = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), Fr = {
2589
+ }, Ps = (t) => (r) => t(r instanceof Date ? r : null), Os = (t) => (r) => t(typeof r == "string" ? r : ""), js = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), Hr = {
2482
2590
  none: "px-0",
2483
2591
  sm: "px-2",
2484
2592
  md: "px-3.5",
2485
2593
  lg: "px-5"
2486
- }, Rr = {
2594
+ }, qr = {
2487
2595
  sm: "h-row-lg",
2488
2596
  md: "h-row-xl",
2489
2597
  lg: "h-14"
2490
- }, Br = 8, Je = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
2491
- function Hr(t, r) {
2598
+ }, Vr = 8, Je = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
2599
+ function Ur(t, r) {
2492
2600
  if (r <= 7) return Array.from({ length: r }, (l, o) => o);
2493
2601
  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 = [];
2494
2602
  return s.forEach((l, o) => {
2495
2603
  o > 0 && l - s[o - 1] > 1 && a.push("gap"), a.push(l);
2496
2604
  }), a;
2497
2605
  }
2498
- const qr = (t) => {
2606
+ const Wr = (t) => {
2499
2607
  const r = Array.isArray(t.value) ? t.value : t.value != null && t.value !== "" && t.value !== "all" ? [t.value] : [];
2500
2608
  if (t.type === "date") {
2501
2609
  const o = t.value instanceof Date;
@@ -2517,7 +2625,7 @@ const qr = (t) => {
2517
2625
  );
2518
2626
  }, l = r.length > 0;
2519
2627
  return /* @__PURE__ */ e(
2520
- Qt,
2628
+ tr,
2521
2629
  {
2522
2630
  tone: "outline",
2523
2631
  caret: !0,
@@ -2567,56 +2675,56 @@ const qr = (t) => {
2567
2675
  selectable: h = !1,
2568
2676
  selectedRows: C = [],
2569
2677
  onSelectionChange: z,
2570
- getRowKey: P = (de, Y) => Y,
2678
+ getRowKey: P = (de, X) => X,
2571
2679
  emptyContent: _,
2572
2680
  footerSummary: K,
2573
2681
  size: U = "md",
2574
2682
  hoverable: j = !0,
2575
2683
  padding: B = "md",
2576
2684
  className: W,
2577
- rowClassName: Z,
2578
- headerBackground: J = !0
2685
+ rowClassName: Q,
2686
+ headerBackground: Y = !0
2579
2687
  }) => {
2580
- const [de, Y] = R(""), y = l !== void 0, x = y ? l : de, S = o ?? Y, [D, E] = R({
2688
+ const [de, X] = R(""), y = l !== void 0, x = y ? l : de, S = o ?? X, [$, E] = R({
2581
2689
  column: null,
2582
2690
  direction: null
2583
- }), [A, $] = R({
2691
+ }), [D, A] = R({
2584
2692
  page: 0,
2585
2693
  pageSize: g
2586
2694
  }), oe = ne(null), ce = pe(() => {
2587
2695
  let T = t;
2588
2696
  if (s && !y && x.trim()) {
2589
2697
  const V = r.filter((ie) => ie.searchable !== !1), re = x.toLowerCase();
2590
- T = T.filter((ie) => V.some((Q) => {
2591
- const F = typeof Q.accessor == "function" ? Q.accessor(ie) : ie[Q.accessor];
2698
+ T = T.filter((ie) => V.some((ee) => {
2699
+ const F = typeof ee.accessor == "function" ? ee.accessor(ie) : ie[ee.accessor];
2592
2700
  return String(F || "").toLowerCase().includes(re);
2593
2701
  }));
2594
2702
  }
2595
2703
  return T;
2596
2704
  }, [t, x, y, r, s]), q = pe(() => {
2597
- if (!D.column || !D.direction) return ce;
2598
- const T = r.find((V) => V.id === D.column);
2705
+ if (!$.column || !$.direction) return ce;
2706
+ const T = r.find((V) => V.id === $.column);
2599
2707
  return T ? [...ce].sort((V, re) => {
2600
- const ie = typeof T.accessor == "function" ? T.accessor(V) : V[T.accessor], Q = typeof T.accessor == "function" ? T.accessor(re) : re[T.accessor];
2708
+ const ie = typeof T.accessor == "function" ? T.accessor(V) : V[T.accessor], ee = typeof T.accessor == "function" ? T.accessor(re) : re[T.accessor];
2601
2709
  let F = 0;
2602
- return ie < Q ? F = -1 : ie > Q && (F = 1), D.direction === "desc" ? -F : F;
2710
+ return ie < ee ? F = -1 : ie > ee && (F = 1), $.direction === "desc" ? -F : F;
2603
2711
  }) : ce;
2604
- }, [ce, D, r]), H = pe(() => {
2712
+ }, [ce, $, r]), H = pe(() => {
2605
2713
  if (!b || m) return q;
2606
- const T = A.page * A.pageSize, V = T + A.pageSize;
2714
+ const T = D.page * D.pageSize, V = T + D.pageSize;
2607
2715
  return q.slice(T, V);
2608
- }, [q, A, b, m]), L = xe(
2716
+ }, [q, D, b, m]), L = xe(
2609
2717
  (T) => {
2610
2718
  r.find((re) => re.id === T)?.sortable && E((re) => re.column !== T ? { column: T, direction: "asc" } : re.direction === "asc" ? { column: T, direction: "desc" } : { column: null, direction: null });
2611
2719
  },
2612
2720
  [r]
2613
2721
  ), k = xe((T) => {
2614
- $((V) => ({ ...V, page: T }));
2722
+ A((V) => ({ ...V, page: T }));
2615
2723
  }, []), M = xe(
2616
2724
  (T, V) => {
2617
2725
  if (!z) return;
2618
2726
  const re = P(T, 0);
2619
- z(V ? [...C, T] : C.filter((ie, Q) => P(C[Q], Q) !== re));
2727
+ z(V ? [...C, T] : C.filter((ie, ee) => P(C[ee], ee) !== re));
2620
2728
  },
2621
2729
  [C, z, P]
2622
2730
  ), G = xe(
@@ -2625,35 +2733,35 @@ const qr = (t) => {
2625
2733
  },
2626
2734
  [H, z]
2627
2735
  );
2628
- X(() => {
2629
- $((T) => ({ ...T, page: 0 }));
2630
- }, [x, D]), X(() => {
2631
- $((T) => ({ ...T, page: 0 }));
2736
+ Z(() => {
2737
+ A((T) => ({ ...T, page: 0 }));
2738
+ }, [x, $]), Z(() => {
2739
+ A((T) => ({ ...T, page: 0 }));
2632
2740
  }, [u.map((T) => T.value).join(",")]);
2633
- const O = q.length, N = Math.ceil(O / A.pageSize), I = A.page * A.pageSize + 1, te = Math.min(I + A.pageSize - 1, O), le = H.length > 0 && H.every((T) => {
2741
+ const O = q.length, N = Math.ceil(O / D.pageSize), I = D.page * D.pageSize + 1, te = Math.min(I + D.pageSize - 1, O), le = H.length > 0 && H.every((T) => {
2634
2742
  const V = P(T, 0);
2635
2743
  return C.some((re, ie) => P(re, ie) === V);
2636
2744
  }), be = H.some((T) => {
2637
2745
  const V = P(T, 0);
2638
2746
  return C.some((re, ie) => P(re, ie) === V);
2639
- }), ye = Fr[B], fe = J ? "bg-surface-sunk" : "bg-surface", he = i("text-text", ye), Oe = s || u.length > 0 || d.length > 0 || !!v, ft = pe(() => {
2640
- const T = H.map((Q, F) => ({ row: Q, index: F }));
2747
+ }), ye = Hr[B], fe = Y ? "bg-surface-sunk" : "bg-surface", he = i("text-text", ye), Oe = s || u.length > 0 || d.length > 0 || !!v, xt = pe(() => {
2748
+ const T = H.map((ee, F) => ({ row: ee, index: F }));
2641
2749
  if (!m) return [{ group: null, rows: T }];
2642
2750
  const V = /* @__PURE__ */ new Map();
2643
- for (const Q of T) {
2644
- const F = m(Q.row, Q.index), ge = V.get(F);
2645
- ge ? ge.push(Q) : V.set(F, [Q]);
2751
+ for (const ee of T) {
2752
+ const F = m(ee.row, ee.index), ge = V.get(F);
2753
+ ge ? ge.push(ee) : V.set(F, [ee]);
2646
2754
  }
2647
2755
  const re = f ?? [];
2648
2756
  return [
2649
- ...re.filter((Q) => V.has(Q.id)),
2650
- ...[...V.keys()].filter((Q) => !re.some((F) => F.id === Q)).map((Q) => ({ id: Q }))
2651
- ].map((Q) => ({ group: Q, rows: V.get(Q.id) ?? [] }));
2652
- }, [H, m, f]), ht = r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0), Ve = b && O > 0, xt = Ve || K !== void 0;
2757
+ ...re.filter((ee) => V.has(ee.id)),
2758
+ ...[...V.keys()].filter((ee) => !re.some((F) => F.id === ee)).map((ee) => ({ id: ee }))
2759
+ ].map((ee) => ({ group: ee, rows: V.get(ee.id) ?? [] }));
2760
+ }, [H, m, f]), bt = r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0), Ve = b && O > 0, gt = Ve || K !== void 0;
2653
2761
  return /* @__PURE__ */ c("div", { className: i("flex min-w-0 flex-col", W), children: [
2654
2762
  Oe && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2655
2763
  s && /* @__PURE__ */ e(
2656
- lt,
2764
+ ct,
2657
2765
  {
2658
2766
  value: x,
2659
2767
  onValueChange: S,
@@ -2661,7 +2769,7 @@ const qr = (t) => {
2661
2769
  containerClassName: "w-full sm:w-66"
2662
2770
  }
2663
2771
  ),
2664
- u.map((T) => /* @__PURE__ */ e(qr, { ...T }, T.id)),
2772
+ u.map((T) => /* @__PURE__ */ e(Wr, { ...T }, T.id)),
2665
2773
  v,
2666
2774
  d.length > 0 && /* @__PURE__ */ e(ke, { actions: d, className: "ml-auto" })
2667
2775
  ] }),
@@ -2698,13 +2806,13 @@ const qr = (t) => {
2698
2806
  children: /* @__PURE__ */ c("div", { className: "flex items-center gap-1.5", children: [
2699
2807
  T.headerCell ? T.headerCell() : T.header,
2700
2808
  T.sortable && /* @__PURE__ */ e(
2701
- ee,
2809
+ J,
2702
2810
  {
2703
- icon: D.column === T.id && D.direction === "desc" ? Ae : Tt,
2811
+ icon: $.column === T.id && $.direction === "desc" ? De : At,
2704
2812
  size: "xs",
2705
2813
  className: i(
2706
2814
  "transition-opacity duration-fast ease-out",
2707
- D.column === T.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2815
+ $.column === T.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
2708
2816
  )
2709
2817
  }
2710
2818
  )
@@ -2714,7 +2822,7 @@ const qr = (t) => {
2714
2822
  )),
2715
2823
  w.length > 0 && /* @__PURE__ */ e("th", { className: i(he, "w-10"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
2716
2824
  ] }) }),
2717
- /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: Br }).map((T, V) => /* @__PURE__ */ c(
2825
+ /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: Vr }).map((T, V) => /* @__PURE__ */ c(
2718
2826
  "tr",
2719
2827
  {
2720
2828
  className: "animate-pulse border-t border-border-subtle",
@@ -2752,12 +2860,12 @@ const qr = (t) => {
2752
2860
  ),
2753
2861
  children: _ || "No data available"
2754
2862
  }
2755
- ) }) : ft.flatMap((T) => [
2863
+ ) }) : xt.flatMap((T) => [
2756
2864
  ...T.group ? [
2757
2865
  /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
2758
2866
  "td",
2759
2867
  {
2760
- colSpan: ht,
2868
+ colSpan: bt,
2761
2869
  className: i(
2762
2870
  // A caption over its rows, not a second column strip:
2763
2871
  // same surface as the rows, no rules, count on the right.
@@ -2772,21 +2880,21 @@ const qr = (t) => {
2772
2880
  ) }, `group-${T.group.id}`)
2773
2881
  ] : [],
2774
2882
  ...T.rows.map(({ row: V, index: re }) => {
2775
- const ie = P(V, re), Q = C.some(
2883
+ const ie = P(V, re), ee = C.some(
2776
2884
  (F, ge) => P(F, ge) === ie
2777
2885
  );
2778
2886
  return /* @__PURE__ */ c(
2779
2887
  "tr",
2780
2888
  {
2781
2889
  className: i(
2782
- Rr[U],
2890
+ qr[U],
2783
2891
  // Hairline above every row, including the first: it is
2784
2892
  // what separates the body from the column strip.
2785
2893
  "border-t border-border-subtle",
2786
2894
  j && "transition-colors duration-fast ease-out hover:bg-surface-hover",
2787
2895
  p && "cursor-pointer",
2788
- Q && "bg-accent-soft",
2789
- Z?.(V, re)
2896
+ ee && "bg-accent-soft",
2897
+ Q?.(V, re)
2790
2898
  ),
2791
2899
  onClick: (F) => {
2792
2900
  F.stopPropagation(), p?.(V, re);
@@ -2796,7 +2904,7 @@ const qr = (t) => {
2796
2904
  we,
2797
2905
  {
2798
2906
  size: "sm",
2799
- checked: Q,
2907
+ checked: ee,
2800
2908
  onClick: (F) => F.stopPropagation(),
2801
2909
  onChange: (F) => {
2802
2910
  F.stopPropagation(), M(V, F.target.checked);
@@ -2822,10 +2930,10 @@ const qr = (t) => {
2822
2930
  );
2823
2931
  }),
2824
2932
  w.length > 0 && /* @__PURE__ */ e("td", { className: he, children: /* @__PURE__ */ e(
2825
- jr,
2933
+ Br,
2826
2934
  {
2827
2935
  className: "rounded-md",
2828
- trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(ee, { icon: $t, size: "md", color: "current" }) }),
2936
+ trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(J, { icon: _t, size: "md", color: "current" }) }),
2829
2937
  options: w.map((F) => ({
2830
2938
  value: F.id,
2831
2939
  label: F.label,
@@ -2833,7 +2941,7 @@ const qr = (t) => {
2833
2941
  disabled: F.disabled?.(V)
2834
2942
  })),
2835
2943
  onSelect: (F) => {
2836
- const ge = w.find((bt) => bt.id === F);
2944
+ const ge = w.find((pt) => pt.id === F);
2837
2945
  ge && ge.onClick(V, re);
2838
2946
  },
2839
2947
  placement: "bottom-end"
@@ -2846,7 +2954,7 @@ const qr = (t) => {
2846
2954
  })
2847
2955
  ]) })
2848
2956
  ] }) }),
2849
- xt && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2957
+ gt && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2850
2958
  /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: K ?? `Showing ${I}–${te} of ${O}` }),
2851
2959
  Ve && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
2852
2960
  /* @__PURE__ */ e(
@@ -2856,23 +2964,23 @@ const qr = (t) => {
2856
2964
  variant: "ghost",
2857
2965
  iconOnly: !0,
2858
2966
  "aria-label": "Previous page",
2859
- onClick: () => k(A.page - 1),
2860
- disabled: A.page === 0,
2861
- children: /* @__PURE__ */ e(ee, { icon: ze, size: "md", color: "current" })
2967
+ onClick: () => k(D.page - 1),
2968
+ disabled: D.page === 0,
2969
+ children: /* @__PURE__ */ e(J, { icon: ze, size: "md", color: "current" })
2862
2970
  }
2863
2971
  ),
2864
- Hr(A.page, N).map(
2972
+ Ur(D.page, N).map(
2865
2973
  (T, V) => T === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${V}`) : /* @__PURE__ */ e(
2866
2974
  "button",
2867
2975
  {
2868
2976
  type: "button",
2869
- "aria-current": T === A.page ? "page" : void 0,
2977
+ "aria-current": T === D.page ? "page" : void 0,
2870
2978
  onClick: () => k(T),
2871
2979
  className: i(
2872
2980
  "h-control-xs min-w-6 cursor-pointer rounded-sm px-1.5 tabular-nums",
2873
2981
  "transition-colors duration-fast ease-out",
2874
2982
  "focus-visible:outline-none focus-visible:focus-ring",
2875
- T === A.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
2983
+ T === D.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
2876
2984
  ),
2877
2985
  children: T + 1
2878
2986
  },
@@ -2886,15 +2994,15 @@ const qr = (t) => {
2886
2994
  variant: "ghost",
2887
2995
  iconOnly: !0,
2888
2996
  "aria-label": "Next page",
2889
- onClick: () => k(A.page + 1),
2890
- disabled: A.page >= N - 1,
2891
- children: /* @__PURE__ */ e(ee, { icon: Ie, size: "md", color: "current" })
2997
+ onClick: () => k(D.page + 1),
2998
+ disabled: D.page >= N - 1,
2999
+ children: /* @__PURE__ */ e(J, { icon: Ie, size: "md", color: "current" })
2892
3000
  }
2893
3001
  )
2894
3002
  ] })
2895
3003
  ] })
2896
3004
  ] });
2897
- }, Vr = {
3005
+ }, Kr = {
2898
3006
  default: "bg-surface-hover text-text",
2899
3007
  primary: "bg-accent-soft text-accent",
2900
3008
  secondary: "bg-surface-hover text-text-muted",
@@ -2904,11 +3012,11 @@ const qr = (t) => {
2904
3012
  info: "bg-info-soft text-info-fg",
2905
3013
  // Internal-note amber. Never for customer-visible content.
2906
3014
  note: "bg-note-soft text-note"
2907
- }, Ur = {
3015
+ }, Gr = {
2908
3016
  sm: "px-2 py-0.5 text-xs",
2909
3017
  md: "px-2.5 py-1 text-sm",
2910
3018
  lg: "px-3 py-1.5 text-base"
2911
- }, Wr = {
3019
+ }, Jr = {
2912
3020
  default: "bg-surface-hover",
2913
3021
  primary: "bg-accent",
2914
3022
  secondary: "bg-surface-hover",
@@ -2918,7 +3026,7 @@ const qr = (t) => {
2918
3026
  info: "bg-info",
2919
3027
  note: "bg-note"
2920
3028
  };
2921
- function Kr({
3029
+ function Yr({
2922
3030
  variant: t = "default",
2923
3031
  size: r = "md",
2924
3032
  dot: n = !1,
@@ -2934,13 +3042,13 @@ function Kr({
2934
3042
  {
2935
3043
  className: i(
2936
3044
  "inline-flex items-center font-medium rounded-full",
2937
- Vr[t],
2938
- Ur[r],
3045
+ Kr[t],
3046
+ Gr[r],
2939
3047
  o
2940
3048
  ),
2941
3049
  ...d,
2942
3050
  children: [
2943
- n && /* @__PURE__ */ e("span", { className: i("w-2 h-2 rounded-full mr-1.5", Wr[t]) }),
3051
+ n && /* @__PURE__ */ e("span", { className: i("w-2 h-2 rounded-full mr-1.5", Jr[t]) }),
2944
3052
  s && /* @__PURE__ */ e("span", { className: i("flex-shrink-0", u && "mr-1"), children: s }),
2945
3053
  u,
2946
3054
  a && l && /* @__PURE__ */ e(
@@ -2949,14 +3057,14 @@ function Kr({
2949
3057
  onClick: l,
2950
3058
  className: "ml-1.5 flex-shrink-0 hover:opacity-70 transition-opacity",
2951
3059
  "aria-label": "Remove badge",
2952
- children: /* @__PURE__ */ e(ee, { icon: Se, size: "xs", color: "current" })
3060
+ children: /* @__PURE__ */ e(J, { icon: Se, size: "xs", color: "current" })
2953
3061
  }
2954
3062
  )
2955
3063
  ]
2956
3064
  }
2957
3065
  );
2958
3066
  }
2959
- function Gr(t) {
3067
+ function Xr(t) {
2960
3068
  const { id: r, header: n, accessor: s, label: a, tone: l, visible: o, width: u, sortable: d, align: v } = t;
2961
3069
  return {
2962
3070
  id: r,
@@ -2964,14 +3072,14 @@ function Gr(t) {
2964
3072
  accessor: (m) => a(s(m), m),
2965
3073
  cell: (m, f) => {
2966
3074
  const b = s(f);
2967
- return o && !o(b, f) ? null : /* @__PURE__ */ e(Kr, { variant: l ? l(b, f) : "default", size: "sm", children: a(b, f) });
3075
+ return o && !o(b, f) ? null : /* @__PURE__ */ e(Yr, { variant: l ? l(b, f) : "default", size: "sm", children: a(b, f) });
2968
3076
  },
2969
3077
  width: u,
2970
3078
  sortable: d,
2971
3079
  align: v
2972
3080
  };
2973
3081
  }
2974
- function _s(t) {
3082
+ function Fs(t) {
2975
3083
  const {
2976
3084
  id: r,
2977
3085
  header: n,
@@ -2983,7 +3091,7 @@ function _s(t) {
2983
3091
  width: d,
2984
3092
  sortable: v
2985
3093
  } = t;
2986
- return Gr({
3094
+ return Xr({
2987
3095
  id: r,
2988
3096
  header: n,
2989
3097
  accessor: (m) => !!s(m),
@@ -2993,7 +3101,7 @@ function _s(t) {
2993
3101
  sortable: v
2994
3102
  });
2995
3103
  }
2996
- function Ds(t) {
3104
+ function Rs(t) {
2997
3105
  const {
2998
3106
  id: r,
2999
3107
  header: n,
@@ -3017,19 +3125,19 @@ function Ds(t) {
3017
3125
  sortable: v
3018
3126
  };
3019
3127
  }
3020
- const Jr = {
3128
+ const Zr = {
3021
3129
  xs: "text-xs",
3022
3130
  sm: "text-sm",
3023
3131
  md: "text-base",
3024
3132
  lg: "text-md",
3025
3133
  xl: "text-lg"
3026
- }, Yr = {
3134
+ }, Qr = {
3027
3135
  light: "font-normal",
3028
3136
  normal: "font-normal",
3029
3137
  medium: "font-medium",
3030
3138
  semibold: "font-semibold",
3031
3139
  bold: "font-bold"
3032
- }, Xr = {
3140
+ }, en = {
3033
3141
  primary: "text-text",
3034
3142
  secondary: "text-text-muted",
3035
3143
  accent: "text-accent",
@@ -3040,12 +3148,12 @@ const Jr = {
3040
3148
  neutral: "text-text",
3041
3149
  current: "text-current",
3042
3150
  muted: "text-text-subtle"
3043
- }, Zr = {
3151
+ }, tn = {
3044
3152
  left: "text-left",
3045
3153
  center: "text-center",
3046
3154
  right: "text-right",
3047
3155
  justify: "text-justify"
3048
- }, Qr = {
3156
+ }, rn = {
3049
3157
  tight: "leading-tight",
3050
3158
  normal: "leading-normal",
3051
3159
  relaxed: "leading-relaxed"
@@ -3064,20 +3172,20 @@ const Jr = {
3064
3172
  children: f,
3065
3173
  ...b
3066
3174
  }) => {
3067
- const g = v || en(t), w = t === "caption", p = t === "label", h = t === "code", C = i(
3175
+ const g = v || nn(t), w = t === "caption", p = t === "label", h = t === "code", C = i(
3068
3176
  "font-sans",
3069
3177
  // Variant — caption and label pin their own size/weight
3070
3178
  w && "text-xs text-text-subtle",
3071
3179
  p && "text-xs font-semibold uppercase tracking-label text-text-subtle",
3072
3180
  h && "font-mono text-sm rounded-sm bg-surface-hover px-1 py-0.5",
3073
3181
  // Size — only where the variant does not pin it
3074
- !w && !p && !h && Jr[r],
3182
+ !w && !p && !h && Zr[r],
3075
3183
  // Weight — label owns its weight
3076
- !p && Yr[n],
3077
- Xr[s],
3078
- Zr[a],
3184
+ !p && Qr[n],
3185
+ en[s],
3186
+ tn[a],
3079
3187
  // Line height only overrides the body variant
3080
- t === "body" && Qr[d],
3188
+ t === "body" && rn[d],
3081
3189
  o && "italic",
3082
3190
  u && "underline",
3083
3191
  l && "truncate",
@@ -3085,7 +3193,7 @@ const Jr = {
3085
3193
  );
3086
3194
  return /* @__PURE__ */ e(g, { className: C, ...b, children: f });
3087
3195
  };
3088
- function en(t) {
3196
+ function nn(t) {
3089
3197
  return {
3090
3198
  body: "p",
3091
3199
  caption: "span",
@@ -3093,13 +3201,13 @@ function en(t) {
3093
3201
  code: "code"
3094
3202
  }[t] || "p";
3095
3203
  }
3096
- function tn(t, r) {
3204
+ function sn(t, r) {
3097
3205
  return r.split(".").reduce(
3098
3206
  (n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
3099
3207
  t
3100
3208
  );
3101
3209
  }
3102
- const As = ({
3210
+ const Bs = ({
3103
3211
  groups: t,
3104
3212
  data: r,
3105
3213
  size: n = "md",
@@ -3122,7 +3230,7 @@ const As = ({
3122
3230
  return b ? b.label : String(m || "-");
3123
3231
  }, u = xe(
3124
3232
  (m) => {
3125
- const f = tn(r, m.name);
3233
+ const f = sn(r, m.name);
3126
3234
  if (m.type === "array") {
3127
3235
  const g = f;
3128
3236
  return !g || g.length === 0 ? /* @__PURE__ */ e(ue, { variant: "body", size: "sm", className: "text-text-muted", children: "Geen items" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: g.map((w, p) => /* @__PURE__ */ c("div", { className: "p-4 border border-border rounded-xl space-y-3", children: [
@@ -3265,7 +3373,7 @@ const As = ({
3265
3373
  );
3266
3374
  return /* @__PURE__ */ e("div", { className: v, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(d) }) });
3267
3375
  };
3268
- class Ls extends yt {
3376
+ class Hs extends wt {
3269
3377
  constructor() {
3270
3378
  super(...arguments), this.state = {
3271
3379
  hasError: !1,
@@ -3294,7 +3402,7 @@ class Ls extends yt {
3294
3402
  }
3295
3403
  }
3296
3404
  const Fe = /* @__PURE__ */ new Map();
3297
- function Is({
3405
+ function qs({
3298
3406
  identifier: t,
3299
3407
  resourceLoader: r,
3300
3408
  framework: n = "react",
@@ -3304,7 +3412,7 @@ function Is({
3304
3412
  className: o
3305
3413
  }) {
3306
3414
  const u = ne(null), [d, v] = R(null), [, m] = R(0), f = ne(null), b = ne(r);
3307
- b.current = r, X(() => {
3415
+ b.current = r, Z(() => {
3308
3416
  if (Fe.has(t)) return;
3309
3417
  let C = !0;
3310
3418
  return (async () => {
@@ -3320,7 +3428,7 @@ function Is({
3320
3428
  };
3321
3429
  }, [t]);
3322
3430
  const g = Fe.get(t) ?? null, w = !g && d === t, p = !g && !w, h = g ? n === "react" && (g.component || g.default) || g : null;
3323
- return X(() => {
3431
+ return Z(() => {
3324
3432
  if (!h || n === "react") return;
3325
3433
  const C = u.current;
3326
3434
  if (C) {
@@ -3335,7 +3443,7 @@ function Is({
3335
3443
  };
3336
3444
  }
3337
3445
  }
3338
- }, [h, n]), X(() => {
3446
+ }, [h, n]), Z(() => {
3339
3447
  n === "svelte" && f.current && f.current.$set?.(l);
3340
3448
  }, [l, n]), /* @__PURE__ */ c("div", { ref: u, className: o, style: { display: "contents" }, children: [
3341
3449
  p && s,
@@ -3343,11 +3451,11 @@ function Is({
3343
3451
  n === "react" && h && /* @__PURE__ */ e(h, { ...l })
3344
3452
  ] });
3345
3453
  }
3346
- const rn = {
3454
+ const an = {
3347
3455
  neutral: "bg-surface-hover text-text-muted",
3348
3456
  success: "bg-success-soft text-success-fg"
3349
3457
  };
3350
- function Ps({
3458
+ function Vs({
3351
3459
  icon: t,
3352
3460
  tone: r = "neutral",
3353
3461
  title: n,
@@ -3372,7 +3480,7 @@ function Ps({
3372
3480
  {
3373
3481
  className: i(
3374
3482
  "flex size-disc items-center justify-center rounded-full text-2xl",
3375
- rn[r]
3483
+ an[r]
3376
3484
  ),
3377
3485
  children: t
3378
3486
  }
@@ -3384,7 +3492,7 @@ function Ps({
3384
3492
  }
3385
3493
  );
3386
3494
  }
3387
- function Os({ children: t, className: r, ...n }) {
3495
+ function Us({ children: t, className: r, ...n }) {
3388
3496
  return /* @__PURE__ */ e(
3389
3497
  "kbd",
3390
3498
  {
@@ -3397,14 +3505,14 @@ function Os({ children: t, className: r, ...n }) {
3397
3505
  }
3398
3506
  );
3399
3507
  }
3400
- const nn = {
3508
+ const ln = {
3401
3509
  sm: "h-1",
3402
3510
  md: "h-1.5"
3403
- }, sn = {
3511
+ }, on = {
3404
3512
  accent: "bg-accent",
3405
3513
  success: "bg-success"
3406
3514
  };
3407
- function js({
3515
+ function Ws({
3408
3516
  value: t,
3409
3517
  variant: r = "accent",
3410
3518
  size: n = "md",
@@ -3421,7 +3529,7 @@ function js({
3421
3529
  "aria-valuemax": 100,
3422
3530
  className: i(
3423
3531
  "w-full overflow-hidden rounded-full bg-surface-hover",
3424
- nn[n],
3532
+ ln[n],
3425
3533
  s
3426
3534
  ),
3427
3535
  ...a,
@@ -3430,7 +3538,7 @@ function js({
3430
3538
  {
3431
3539
  className: i(
3432
3540
  "h-full rounded-full transition-[width] duration-300 ease-out",
3433
- sn[r]
3541
+ on[r]
3434
3542
  ),
3435
3543
  style: { width: `${l}%` }
3436
3544
  }
@@ -3438,25 +3546,25 @@ function js({
3438
3546
  }
3439
3547
  );
3440
3548
  }
3441
- const an = {
3549
+ const cn = {
3442
3550
  xs: "h-3 w-3",
3443
3551
  sm: "h-4 w-4",
3444
3552
  md: "h-6 w-6",
3445
3553
  lg: "h-8 w-8",
3446
3554
  xl: "h-12 w-12"
3447
- }, ln = {
3555
+ }, dn = {
3448
3556
  primary: "text-accent",
3449
3557
  secondary: "text-text-muted",
3450
3558
  white: "text-white",
3451
3559
  current: "text-current"
3452
- }, on = {
3560
+ }, un = {
3453
3561
  xs: "text-xs",
3454
3562
  sm: "text-sm",
3455
3563
  md: "text-sm",
3456
3564
  lg: "text-base",
3457
3565
  xl: "text-lg"
3458
3566
  };
3459
- function Fs({
3567
+ function Ks({
3460
3568
  size: t = "md",
3461
3569
  variant: r = "primary",
3462
3570
  label: n = "Loading...",
@@ -3473,7 +3581,7 @@ function Fs({
3473
3581
  /* @__PURE__ */ c(
3474
3582
  "svg",
3475
3583
  {
3476
- className: i("animate-spin", an[t], ln[r]),
3584
+ className: i("animate-spin", cn[t], dn[r]),
3477
3585
  fill: "none",
3478
3586
  viewBox: "0 0 24 24",
3479
3587
  "aria-hidden": !s,
@@ -3501,13 +3609,13 @@ function Fs({
3501
3609
  ]
3502
3610
  }
3503
3611
  ),
3504
- s && /* @__PURE__ */ e("span", { className: i("text-text-muted", on[t]), children: n }),
3612
+ s && /* @__PURE__ */ e("span", { className: i("text-text-muted", un[t]), children: n }),
3505
3613
  !s && /* @__PURE__ */ e("span", { className: "sr-only", children: n })
3506
3614
  ]
3507
3615
  }
3508
3616
  );
3509
3617
  }
3510
- const cn = {
3618
+ const mn = {
3511
3619
  neutral: "bg-text-disabled",
3512
3620
  accent: "bg-accent",
3513
3621
  success: "bg-success",
@@ -3521,7 +3629,7 @@ const cn = {
3521
3629
  "cat-4": "bg-cat-4",
3522
3630
  "cat-5": "bg-cat-5"
3523
3631
  };
3524
- function Rs({
3632
+ function Gs({
3525
3633
  tone: t = "neutral",
3526
3634
  shape: r = "round",
3527
3635
  pulse: n = !1,
@@ -3537,14 +3645,14 @@ function Rs({
3537
3645
  className: i(
3538
3646
  "inline-block size-dot shrink-0",
3539
3647
  r === "round" ? "rounded-full" : "rounded-sm",
3540
- cn[t],
3648
+ mn[t],
3541
3649
  n && "animate-pulse",
3542
3650
  a
3543
3651
  )
3544
3652
  }
3545
3653
  );
3546
3654
  }
3547
- function Bs({
3655
+ function Js({
3548
3656
  steps: t,
3549
3657
  current: r,
3550
3658
  variant: n = "numbered",
@@ -3584,7 +3692,7 @@ function Bs({
3584
3692
  d < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
3585
3693
  ] }, u)) });
3586
3694
  }
3587
- const dn = /* @__PURE__ */ new Set([
3695
+ const fn = /* @__PURE__ */ new Set([
3588
3696
  "name",
3589
3697
  "given-name",
3590
3698
  "family-name",
@@ -3619,7 +3727,7 @@ const dn = /* @__PURE__ */ new Set([
3619
3727
  "one-time-code"
3620
3728
  ]);
3621
3729
  function Xe(t) {
3622
- return t && dn.has(t) ? { autoComplete: t } : {
3730
+ return t && fn.has(t) ? { autoComplete: t } : {
3623
3731
  autoComplete: "off",
3624
3732
  // 1Password
3625
3733
  "data-1p-ignore": "true",
@@ -3631,12 +3739,12 @@ function Xe(t) {
3631
3739
  "data-form-type": "other"
3632
3740
  };
3633
3741
  }
3634
- const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCase(), mn = {
3742
+ const _e = (t) => t == null ? "" : String(t), hn = (t) => _e(t).trim().toLowerCase(), xn = {
3635
3743
  sm: "h-control-sm px-3 text-sm",
3636
3744
  md: "h-control-md px-3 text-sm",
3637
3745
  lg: "h-control-lg px-3 text-base",
3638
3746
  full: "h-control-md w-full px-3 text-sm"
3639
- }, $e = un, De = ve(
3747
+ }, Ae = hn, $e = ve(
3640
3748
  ({
3641
3749
  label: t,
3642
3750
  helperText: r,
@@ -3658,15 +3766,15 @@ const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCa
3658
3766
  onCreateOption: C,
3659
3767
  ...z
3660
3768
  }, P) => {
3661
- const _ = f || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!n, [U, j] = ae.useState(!1), [B, W] = ae.useState(""), Z = ae.useRef(null), J = ae.useRef(null), de = Pe(U, J, { matchWidth: !0 }), [Y, y] = ae.useState(o);
3662
- ae.useImperativeHandle(P, () => Z.current), ae.useEffect(() => {
3769
+ const _ = f || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!n, [U, j] = ae.useState(!1), [B, W] = ae.useState(""), Q = ae.useRef(null), Y = ae.useRef(null), de = Pe(U, Y, { matchWidth: !0 }), [X, y] = ae.useState(o);
3770
+ ae.useImperativeHandle(P, () => Q.current), ae.useEffect(() => {
3663
3771
  const L = (k) => {
3664
- Z.current && !Z.current.contains(k.target) && j(!1);
3772
+ Q.current && !Q.current.contains(k.target) && j(!1);
3665
3773
  };
3666
3774
  return document.addEventListener("mousedown", L), () => document.removeEventListener("mousedown", L);
3667
3775
  }, []);
3668
3776
  const x = ae.useCallback(
3669
- (L, k) => L.some((M) => $e(M.value) === $e(k) || $e(M.label) === $e(k)),
3777
+ (L, k) => L.some((M) => Ae(M.value) === Ae(k) || Ae(M.label) === Ae(k)),
3670
3778
  []
3671
3779
  ), S = ae.useCallback(
3672
3780
  (L, k) => {
@@ -3686,34 +3794,34 @@ const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCa
3686
3794
  }), S(k, w);
3687
3795
  });
3688
3796
  }, [o, w, S, x]);
3689
- const D = ae.useMemo(
3797
+ const $ = ae.useMemo(
3690
3798
  () => Array.isArray(w) ? w.map(_e) : w == null ? void 0 : _e(w),
3691
3799
  [w]
3692
3800
  ), E = (L) => {
3693
3801
  if (g) {
3694
- const k = Array.isArray(D) ? D : [], M = k.includes(L) ? k.filter((G) => G !== L) : [...k, L];
3802
+ const k = Array.isArray($) ? $ : [], M = k.includes(L) ? k.filter((G) => G !== L) : [...k, L];
3695
3803
  p?.(M);
3696
3804
  } else
3697
3805
  p?.(L), j(!1), W("");
3698
- }, A = g ? null : Y.find((L) => L.value === D), $ = g ? Y.filter((L) => Array.isArray(D) && D.includes(L.value)) : [], oe = b && B ? Y.filter(
3806
+ }, D = g ? null : X.find((L) => L.value === $), A = g ? X.filter((L) => Array.isArray($) && $.includes(L.value)) : [], oe = b && B ? X.filter(
3699
3807
  (L) => L.label.toLowerCase().includes(B.toLowerCase())
3700
- ) : Y, ce = !!h && !!b && !!B.trim() && !x(Y, B), q = (L) => {
3808
+ ) : X, ce = !!h && !!b && !!B.trim() && !x(X, B), q = (L) => {
3701
3809
  const k = L.trim();
3702
3810
  if (!k) return;
3703
3811
  const M = C?.(k) ?? {
3704
3812
  value: k,
3705
3813
  label: k
3706
3814
  };
3707
- if (x(Y, M.value) || x(Y, M.label)) {
3815
+ if (x(X, M.value) || x(X, M.label)) {
3708
3816
  E(M.value), W(""), g || j(!1);
3709
3817
  return;
3710
3818
  }
3711
3819
  y((G) => [...G, M]), E(M.value), W(""), g || j(!1);
3712
- }, H = () => g ? $.length > 0 ? $.map((L) => L.label).join(", ") : u || "Select options" : A?.label || u || "Select an option";
3820
+ }, H = () => g ? A.length > 0 ? A.map((L) => L.label).join(", ") : u || "Select options" : D?.label || u || "Select an option";
3713
3821
  return /* @__PURE__ */ c(
3714
3822
  "div",
3715
3823
  {
3716
- ref: Z,
3824
+ ref: Q,
3717
3825
  className: i("relative flex flex-col", a && "w-full", d),
3718
3826
  ...z,
3719
3827
  children: [
@@ -3734,7 +3842,7 @@ const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCa
3734
3842
  /* @__PURE__ */ c(
3735
3843
  "button",
3736
3844
  {
3737
- ref: J,
3845
+ ref: Y,
3738
3846
  type: "button",
3739
3847
  id: _,
3740
3848
  disabled: l,
@@ -3744,14 +3852,14 @@ const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCa
3744
3852
  "focus-visible:outline-none focus-visible:focus-ring",
3745
3853
  "disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
3746
3854
  "bg-surface",
3747
- mn[s],
3855
+ xn[s],
3748
3856
  K ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
3749
3857
  m
3750
3858
  ),
3751
3859
  children: [
3752
3860
  /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: H() }),
3753
3861
  /* @__PURE__ */ e(
3754
- _t,
3862
+ $t,
3755
3863
  {
3756
3864
  size: 16,
3757
3865
  className: i(
@@ -3812,7 +3920,7 @@ const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCa
3812
3920
  }
3813
3921
  ),
3814
3922
  oe.map((L) => {
3815
- const k = g ? Array.isArray(D) && D.includes(L.value) : D === L.value;
3923
+ const k = g ? Array.isArray($) && $.includes(L.value) : $ === L.value;
3816
3924
  return /* @__PURE__ */ e(
3817
3925
  "li",
3818
3926
  {
@@ -3850,13 +3958,13 @@ const _e = (t) => t == null ? "" : String(t), un = (t) => _e(t).trim().toLowerCa
3850
3958
  );
3851
3959
  }
3852
3960
  );
3853
- De.displayName = "Select";
3854
- const fn = {
3961
+ $e.displayName = "Select";
3962
+ const bn = {
3855
3963
  sm: "h-control-sm px-3 text-sm",
3856
3964
  md: "h-control-md px-3 text-base",
3857
3965
  lg: "h-control-lg px-3 text-base",
3858
3966
  full: "h-control-md px-3 text-base"
3859
- }, ot = "mb-1.5 block text-sm font-medium", ct = "block w-full rounded-tile border bg-surface-input text-text transition-colors duration-fast ease-out placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled", it = (t) => t ? "border-danger-border bg-danger-soft" : "border-border-strong", Ce = ve(
3967
+ }, it = "mb-1.5 block text-sm font-medium", dt = "block w-full rounded-tile border bg-surface-input text-text transition-colors duration-fast ease-out placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled", ut = (t) => t ? "border-danger-border bg-danger-soft" : "border-border-strong", Ce = ve(
3860
3968
  ({
3861
3969
  label: t,
3862
3970
  helperText: r,
@@ -3879,7 +3987,7 @@ const fn = {
3879
3987
  {
3880
3988
  htmlFor: p,
3881
3989
  className: i(
3882
- ot,
3990
+ it,
3883
3991
  h ? "text-danger-fg" : "text-text-muted",
3884
3992
  v
3885
3993
  ),
@@ -3896,11 +4004,11 @@ const fn = {
3896
4004
  "aria-invalid": h || void 0,
3897
4005
  "aria-describedby": C,
3898
4006
  className: i(
3899
- ct,
3900
- fn[s],
4007
+ dt,
4008
+ bn[s],
3901
4009
  l && "pl-9",
3902
4010
  (o || u) && "pr-9",
3903
- it(h),
4011
+ ut(h),
3904
4012
  m
3905
4013
  ),
3906
4014
  ...b
@@ -3926,7 +4034,7 @@ const fn = {
3926
4034
  }
3927
4035
  );
3928
4036
  Ce.displayName = "TextField";
3929
- function hn({
4037
+ function gn({
3930
4038
  value: t,
3931
4039
  onChange: r,
3932
4040
  onListFolders: n,
@@ -3937,7 +4045,7 @@ function hn({
3937
4045
  showTemplate: u = !0
3938
4046
  }) {
3939
4047
  const [d, v] = R([]);
3940
- X(() => {
4048
+ Z(() => {
3941
4049
  let f = !0;
3942
4050
  return Promise.resolve(n?.()).then((b) => {
3943
4051
  f && b && v(b.data ?? []);
@@ -3949,7 +4057,7 @@ function hn({
3949
4057
  const m = t ?? {};
3950
4058
  return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
3951
4059
  /* @__PURE__ */ e(
3952
- De,
4060
+ $e,
3953
4061
  {
3954
4062
  size: a,
3955
4063
  fullWidth: !0,
@@ -3971,7 +4079,7 @@ function hn({
3971
4079
  )
3972
4080
  ] });
3973
4081
  }
3974
- const xn = et(null), Hs = ({ items: t, activeTab: r, onTabChange: n, className: s }) => {
4082
+ const pn = et(null), Ys = ({ items: t, activeTab: r, onTabChange: n, className: s }) => {
3975
4083
  const [a, l] = R(t[0]?.id || ""), o = r || a, u = (d) => {
3976
4084
  n ? n(d) : l(d);
3977
4085
  };
@@ -4004,7 +4112,7 @@ const xn = et(null), Hs = ({ items: t, activeTab: r, onTabChange: n, className:
4004
4112
  },
4005
4113
  d.id
4006
4114
  )) }) });
4007
- }, bn = ({
4115
+ }, vn = ({
4008
4116
  items: t,
4009
4117
  defaultTab: r,
4010
4118
  activeTab: n,
@@ -4061,7 +4169,7 @@ const xn = et(null), Hs = ({ items: t, activeTab: r, onTabChange: n, className:
4061
4169
  U
4062
4170
  );
4063
4171
  };
4064
- return /* @__PURE__ */ e(xn.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
4172
+ return /* @__PURE__ */ e(pn.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
4065
4173
  /* @__PURE__ */ e("div", { className: g, role: "tablist", children: t.map((p) => /* @__PURE__ */ e(
4066
4174
  "button",
4067
4175
  {
@@ -4090,14 +4198,14 @@ const xn = et(null), Hs = ({ items: t, activeTab: r, onTabChange: n, className:
4090
4198
  }
4091
4199
  )
4092
4200
  ] }) });
4093
- }, gn = {
4201
+ }, yn = {
4094
4202
  sm: "max-w-md",
4095
4203
  md: "max-w-lg",
4096
4204
  lg: "max-w-2xl",
4097
4205
  xl: "max-w-4xl",
4098
4206
  full: "max-w-full mx-4"
4099
4207
  };
4100
- function dt({
4208
+ function mt({
4101
4209
  open: t,
4102
4210
  onClose: r,
4103
4211
  title: n,
@@ -4111,13 +4219,13 @@ function dt({
4111
4219
  showCloseButton: m = !0
4112
4220
  }) {
4113
4221
  const f = ne(null), b = ne(null);
4114
- X(() => {
4222
+ Z(() => {
4115
4223
  if (!t || !l) return;
4116
4224
  const w = (p) => {
4117
4225
  p.key === "Escape" && r();
4118
4226
  };
4119
4227
  return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
4120
- }, [t, l, r]), X(() => (t ? (b.current = document.activeElement, f.current && f.current.focus(), document.body.style.overflow = "hidden") : (b.current && b.current.focus(), document.body.style.overflow = ""), () => {
4228
+ }, [t, l, r]), Z(() => (t ? (b.current = document.activeElement, f.current && f.current.focus(), document.body.style.overflow = "hidden") : (b.current && b.current.focus(), document.body.style.overflow = ""), () => {
4121
4229
  document.body.style.overflow = "";
4122
4230
  }), [t]);
4123
4231
  const g = (w) => {
@@ -4139,7 +4247,7 @@ function dt({
4139
4247
  className: i(
4140
4248
  "relative w-full bg-surface rounded-lg shadow-modal",
4141
4249
  "focus:outline-none",
4142
- gn[s],
4250
+ yn[s],
4143
4251
  o
4144
4252
  ),
4145
4253
  role: "dialog",
@@ -4155,7 +4263,7 @@ function dt({
4155
4263
  onClick: r,
4156
4264
  className: "p-1 text-text-muted hover:text-text transition-colors",
4157
4265
  "aria-label": "Close modal",
4158
- children: /* @__PURE__ */ e(ee, { icon: Se, size: "lg", color: "current" })
4266
+ children: /* @__PURE__ */ e(J, { icon: Se, size: "lg", color: "current" })
4159
4267
  }
4160
4268
  )
4161
4269
  ] }),
@@ -4167,7 +4275,7 @@ function dt({
4167
4275
  }
4168
4276
  ) : null;
4169
4277
  }
4170
- const pn = ({
4278
+ const Nn = ({
4171
4279
  value: t,
4172
4280
  onChange: r,
4173
4281
  label: n,
@@ -4181,15 +4289,15 @@ const pn = ({
4181
4289
  onDownloadFile: m,
4182
4290
  onRegisterFile: f
4183
4291
  }) => {
4184
- const [b, g] = R(!1), [w, p] = R([]), [h, C] = R(null), [z, P] = R("/"), [_, K] = R([]), [U, j] = R(!1), [B, W] = R(""), [Z, J] = R(
4292
+ const [b, g] = R(!1), [w, p] = R([]), [h, C] = R(null), [z, P] = R("/"), [_, K] = R([]), [U, j] = R(!1), [B, W] = R(""), [Q, Y] = R(
4185
4293
  typeof t == "object" ? t : null
4186
- ), [de, Y] = R(!1), [y, x] = R(""), S = ne(null);
4187
- X(() => {
4188
- b && D();
4189
- }, [b]), X(() => {
4294
+ ), [de, X] = R(!1), [y, x] = R(""), S = ne(null);
4295
+ Z(() => {
4296
+ b && $();
4297
+ }, [b]), Z(() => {
4190
4298
  b && h && E();
4191
4299
  }, [b, h, z, B]);
4192
- const D = async () => {
4300
+ const $ = async () => {
4193
4301
  j(!0);
4194
4302
  try {
4195
4303
  const N = await d?.();
@@ -4215,7 +4323,7 @@ const pn = ({
4215
4323
  j(!1);
4216
4324
  }
4217
4325
  }
4218
- }, A = async (N) => {
4326
+ }, D = async (N) => {
4219
4327
  const I = N.target.files?.[0];
4220
4328
  if (I) {
4221
4329
  j(!0);
@@ -4231,14 +4339,14 @@ const pn = ({
4231
4339
  providerKey: I.name,
4232
4340
  ownerId: "me"
4233
4341
  };
4234
- J(be), r(be, le), g(!1);
4342
+ Y(be), r(be, le), g(!1);
4235
4343
  } catch (te) {
4236
4344
  console.error("Local file selection failed", te);
4237
4345
  } finally {
4238
4346
  j(!1);
4239
4347
  }
4240
4348
  }
4241
- }, $ = async (N) => {
4349
+ }, A = async (N) => {
4242
4350
  const I = N.target.files?.[0];
4243
4351
  if (!(!I || !h)) {
4244
4352
  j(!0);
@@ -4252,7 +4360,7 @@ const pn = ({
4252
4360
  });
4253
4361
  if (le?.data) {
4254
4362
  const be = le.data;
4255
- J(be), r(be, new Uint8Array(te)), g(!1);
4363
+ Y(be), r(be, new Uint8Array(te)), g(!1);
4256
4364
  }
4257
4365
  } catch (te) {
4258
4366
  console.error("Upload failed", te);
@@ -4274,7 +4382,7 @@ const pn = ({
4274
4382
  mountId: h.id,
4275
4383
  providerKey: N,
4276
4384
  ownerId: "me"
4277
- }), await E()), Y(!1), x("");
4385
+ }), await E()), X(!1), x("");
4278
4386
  } catch (N) {
4279
4387
  console.error("Failed to create folder", N);
4280
4388
  } finally {
@@ -4285,14 +4393,14 @@ const pn = ({
4285
4393
  j(!0);
4286
4394
  try {
4287
4395
  const I = await m?.(N.id);
4288
- J(N), r(N, I), g(!1);
4396
+ Y(N), r(N, I), g(!1);
4289
4397
  } catch (I) {
4290
4398
  console.error("Failed to download file", I);
4291
4399
  } finally {
4292
4400
  j(!1);
4293
4401
  }
4294
4402
  }, q = (N) => {
4295
- N.stopPropagation(), J(null), r(null);
4403
+ N.stopPropagation(), Y(null), r(null);
4296
4404
  }, H = pe(() => {
4297
4405
  const N = /* @__PURE__ */ new Set(), I = [];
4298
4406
  return _.forEach((te) => {
@@ -4330,7 +4438,7 @@ const pn = ({
4330
4438
  accessor: "name",
4331
4439
  cell: (N, I) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
4332
4440
  /* @__PURE__ */ e(
4333
- ee,
4441
+ J,
4334
4442
  {
4335
4443
  icon: I.type === "folder" ? Ke : je,
4336
4444
  size: "sm",
@@ -4362,7 +4470,7 @@ const pn = ({
4362
4470
  onClick: (te) => {
4363
4471
  te.stopPropagation(), I.type === "folder" ? L(I.name) : ce(I);
4364
4472
  },
4365
- loading: U && I.type === "file" && Z?.id === I.id,
4473
+ loading: U && I.type === "file" && Q?.id === I.id,
4366
4474
  children: I.type === "folder" ? "Open" : "Select"
4367
4475
  }
4368
4476
  )
@@ -4373,7 +4481,7 @@ const pn = ({
4373
4481
  header: "Mount Name",
4374
4482
  accessor: "name",
4375
4483
  cell: (N) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
4376
- /* @__PURE__ */ e(ee, { icon: We, size: "sm", color: "primary" }),
4484
+ /* @__PURE__ */ e(J, { icon: We, size: "sm", color: "primary" }),
4377
4485
  /* @__PURE__ */ e("span", { children: N })
4378
4486
  ] })
4379
4487
  },
@@ -4399,29 +4507,29 @@ const pn = ({
4399
4507
  ),
4400
4508
  children: [
4401
4509
  /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(
4402
- ee,
4510
+ J,
4403
4511
  {
4404
- icon: Z ? je : We,
4405
- color: Z ? "primary" : "secondary"
4512
+ icon: Q ? je : We,
4513
+ color: Q ? "primary" : "secondary"
4406
4514
  }
4407
4515
  ) }),
4408
- /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: Z ? /* @__PURE__ */ e("span", { className: "text-sm text-text font-medium", children: Z.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-text-muted", children: s }) }),
4409
- Z && !l && /* @__PURE__ */ e("button", { onClick: q, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(ee, { icon: Se, size: "xs" }) })
4516
+ /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: Q ? /* @__PURE__ */ e("span", { className: "text-sm text-text font-medium", children: Q.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-text-muted", children: s }) }),
4517
+ Q && !l && /* @__PURE__ */ e("button", { onClick: q, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(J, { icon: Se, size: "xs" }) })
4410
4518
  ]
4411
4519
  }
4412
4520
  ),
4413
4521
  a && /* @__PURE__ */ e(ue, { variant: "body", size: "xs", className: "text-danger-fg", children: a }),
4414
4522
  /* @__PURE__ */ e(
4415
- dt,
4523
+ mt,
4416
4524
  {
4417
4525
  open: b,
4418
4526
  onClose: () => {
4419
- g(!1), C(null), P("/"), Y(!1);
4527
+ g(!1), C(null), P("/"), X(!1);
4420
4528
  },
4421
4529
  title: h ? `Explorer: ${h.name}` : "Select Storage Mount",
4422
4530
  size: "lg",
4423
4531
  children: /* @__PURE__ */ e(
4424
- bn,
4532
+ vn,
4425
4533
  {
4426
4534
  variant: "pills",
4427
4535
  items: [
@@ -4437,7 +4545,7 @@ const pn = ({
4437
4545
  onClick: () => {
4438
4546
  z && z !== "/" ? k() : C(null);
4439
4547
  },
4440
- leftIcon: /* @__PURE__ */ e(ee, { icon: Dt, size: "xs" }),
4548
+ leftIcon: /* @__PURE__ */ e(J, { icon: Dt, size: "xs" }),
4441
4549
  children: z ? "Back" : "Back to Mounts"
4442
4550
  }
4443
4551
  ),
@@ -4457,8 +4565,8 @@ const pn = ({
4457
4565
  se,
4458
4566
  {
4459
4567
  variant: "outline",
4460
- onClick: () => Y(!0),
4461
- leftIcon: /* @__PURE__ */ e(ee, { icon: At, size: "xs" }),
4568
+ onClick: () => X(!0),
4569
+ leftIcon: /* @__PURE__ */ e(J, { icon: Lt, size: "xs" }),
4462
4570
  children: "New Folder"
4463
4571
  }
4464
4572
  ),
@@ -4467,7 +4575,7 @@ const pn = ({
4467
4575
  {
4468
4576
  variant: "primary",
4469
4577
  onClick: () => S.current?.click(),
4470
- leftIcon: /* @__PURE__ */ e(ee, { icon: Lt, size: "xs" }),
4578
+ leftIcon: /* @__PURE__ */ e(J, { icon: It, size: "xs" }),
4471
4579
  loading: U,
4472
4580
  children: "Upload"
4473
4581
  }
@@ -4478,14 +4586,14 @@ const pn = ({
4478
4586
  type: "file",
4479
4587
  className: "hidden",
4480
4588
  ref: S,
4481
- onChange: $,
4589
+ onChange: A,
4482
4590
  accept: o
4483
4591
  }
4484
4592
  )
4485
4593
  ] })
4486
4594
  ] }),
4487
4595
  de && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
4488
- /* @__PURE__ */ e(ee, { icon: Ke, size: "sm", color: "warning" }),
4596
+ /* @__PURE__ */ e(J, { icon: Ke, size: "sm", color: "warning" }),
4489
4597
  /* @__PURE__ */ e(
4490
4598
  Ce,
4491
4599
  {
@@ -4496,7 +4604,7 @@ const pn = ({
4496
4604
  }
4497
4605
  ),
4498
4606
  /* @__PURE__ */ e(se, { onClick: oe, loading: U, children: "Create" }),
4499
- /* @__PURE__ */ e(se, { variant: "ghost", onClick: () => Y(!1), children: "Cancel" })
4607
+ /* @__PURE__ */ e(se, { variant: "ghost", onClick: () => X(!1), children: "Cancel" })
4500
4608
  ] }),
4501
4609
  /* @__PURE__ */ e("div", { className: "max-h-100 overflow-auto rounded-lg border border-border", children: /* @__PURE__ */ e(
4502
4610
  Ye,
@@ -4523,7 +4631,7 @@ const pn = ({
4523
4631
  id: "local",
4524
4632
  label: "Local File",
4525
4633
  content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-border rounded-xl bg-surface-sunk/50", children: [
4526
- /* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(ee, { icon: je, size: "xl", color: "primary" }) }),
4634
+ /* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(J, { icon: je, size: "xl", color: "primary" }) }),
4527
4635
  /* @__PURE__ */ e(ue, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
4528
4636
  /* @__PURE__ */ c(
4529
4637
  ue,
@@ -4554,7 +4662,7 @@ const pn = ({
4554
4662
  {
4555
4663
  type: "file",
4556
4664
  className: "hidden",
4557
- onChange: A,
4665
+ onChange: D,
4558
4666
  accept: o,
4559
4667
  disabled: U
4560
4668
  }
@@ -4568,7 +4676,7 @@ const pn = ({
4568
4676
  }
4569
4677
  )
4570
4678
  ] });
4571
- }, vn = {
4679
+ }, wn = {
4572
4680
  sm: "px-3 py-1.5 text-sm",
4573
4681
  md: "px-3 py-2 text-base",
4574
4682
  lg: "px-3 py-2 text-md",
@@ -4595,7 +4703,7 @@ const pn = ({
4595
4703
  {
4596
4704
  htmlFor: w,
4597
4705
  className: i(
4598
- ot,
4706
+ it,
4599
4707
  p ? "text-danger-fg" : "text-text-muted",
4600
4708
  u
4601
4709
  ),
@@ -4612,10 +4720,10 @@ const pn = ({
4612
4720
  "aria-invalid": p || void 0,
4613
4721
  "aria-describedby": h,
4614
4722
  className: i(
4615
- ct,
4723
+ dt,
4616
4724
  "resize-y leading-relaxed",
4617
- vn[s],
4618
- it(p),
4725
+ wn[s],
4726
+ ut(p),
4619
4727
  d
4620
4728
  ),
4621
4729
  ...f
@@ -4647,7 +4755,7 @@ function Ze(t, r) {
4647
4755
  t
4648
4756
  );
4649
4757
  }
4650
- function yn(t, r, n) {
4758
+ function kn(t, r, n) {
4651
4759
  const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
4652
4760
  let l = a;
4653
4761
  for (let o = 0; o < s.length - 1; o++) {
@@ -4656,7 +4764,7 @@ function yn(t, r, n) {
4656
4764
  }
4657
4765
  return l[s[s.length - 1]] = n, a;
4658
4766
  }
4659
- function Nn(t, r) {
4767
+ function Cn(t, r) {
4660
4768
  const n = r.split("."), s = Array.isArray(t) ? [...t] : { ...t };
4661
4769
  let a = s;
4662
4770
  for (let l = 0; l < n.length - 1; l++) {
@@ -4666,7 +4774,7 @@ function Nn(t, r) {
4666
4774
  }
4667
4775
  return delete a[n[n.length - 1]], s;
4668
4776
  }
4669
- function wn({
4777
+ function Sn({
4670
4778
  title: t,
4671
4779
  description: r,
4672
4780
  className: n,
@@ -4680,7 +4788,7 @@ function wn({
4680
4788
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
4681
4789
  ] });
4682
4790
  }
4683
- const qs = ({
4791
+ const Xs = ({
4684
4792
  groups: t,
4685
4793
  data: r,
4686
4794
  onSubmit: n,
@@ -4702,12 +4810,12 @@ const qs = ({
4702
4810
  (x) => `${z}-${String(x).replace(/\./g, "-")}`,
4703
4811
  [z]
4704
4812
  ), [_, K] = R({}), [U, j] = R({});
4705
- X(() => {
4813
+ Z(() => {
4706
4814
  r && C({ ...r });
4707
4815
  }, [r]);
4708
4816
  const B = xe(
4709
- (x, S, D) => {
4710
- const E = t.flatMap((A) => A.items).find((A) => A.name === x);
4817
+ (x, S, $) => {
4818
+ const E = t.flatMap((D) => D.items).find((D) => D.name === x);
4711
4819
  if (!E) return null;
4712
4820
  if (E.required && (S == null || S === ""))
4713
4821
  return `${E.label} is required`;
@@ -4717,65 +4825,65 @@ const qs = ({
4717
4825
  if (S && !Array.isArray(S))
4718
4826
  return `${E.label} must be an array.`;
4719
4827
  if (Array.isArray(S) && E.arrayFields) {
4720
- const A = [];
4721
- let $ = !1;
4828
+ const D = [];
4829
+ let A = !1;
4722
4830
  if (S.forEach((oe, ce) => {
4723
4831
  const q = {};
4724
4832
  for (const H of E.arrayFields) {
4725
4833
  const L = oe?.[H.name];
4726
4834
  if (H.required && (L == null || L === ""))
4727
- q[H.name] = `${H.label} is required`, $ = !0;
4835
+ q[H.name] = `${H.label} is required`, A = !0;
4728
4836
  else if (H.validator) {
4729
4837
  const k = H.validator(L, oe);
4730
- k && (q[H.name] = k, $ = !0);
4838
+ k && (q[H.name] = k, A = !0);
4731
4839
  }
4732
4840
  }
4733
- A[ce] = q;
4734
- }), $)
4735
- return JSON.stringify(A);
4841
+ D[ce] = q;
4842
+ }), A)
4843
+ return JSON.stringify(D);
4736
4844
  }
4737
4845
  }
4738
- return E.validator ? E.validator(S, D) : null;
4846
+ return E.validator ? E.validator(S, $) : null;
4739
4847
  },
4740
4848
  [t]
4741
4849
  ), W = xe(
4742
4850
  (x, S) => {
4743
- let D = yn(h, x, S);
4744
- t.flatMap(($) => $.items).find(($) => $.name === x)?.removeIfEmpty && (S == null || S === "") && (D = Nn(D, x)), C(D), j(($) => ({ ...$, [x]: !0 }));
4745
- const A = B(x, S, D);
4746
- K(($) => ({
4747
- ...$,
4748
- [x]: A || ""
4749
- })), a?.(D, x);
4851
+ let $ = kn(h, x, S);
4852
+ t.flatMap((A) => A.items).find((A) => A.name === x)?.removeIfEmpty && (S == null || S === "") && ($ = Cn($, x)), C($), j((A) => ({ ...A, [x]: !0 }));
4853
+ const D = B(x, S, $);
4854
+ K((A) => ({
4855
+ ...A,
4856
+ [x]: D || ""
4857
+ })), a?.($, x);
4750
4858
  },
4751
4859
  [h, t, B, a]
4752
- ), Z = xe(
4860
+ ), Q = xe(
4753
4861
  async (x) => {
4754
4862
  if (x.preventDefault(), b) return;
4755
- const S = {}, D = t.flatMap((A) => A.items);
4756
- for (const A of D) {
4757
- if (A.hidden || A.conditional && !A.conditional(h))
4863
+ const S = {}, $ = t.flatMap((D) => D.items);
4864
+ for (const D of $) {
4865
+ if (D.hidden || D.conditional && !D.conditional(h))
4758
4866
  continue;
4759
- const $ = B(
4760
- A.name,
4761
- Ze(h, A.name),
4867
+ const A = B(
4868
+ D.name,
4869
+ Ze(h, D.name),
4762
4870
  h
4763
4871
  );
4764
- $ && (S[A.name] = $);
4872
+ A && (S[D.name] = A);
4765
4873
  }
4766
4874
  if (o) {
4767
- const A = o(h);
4768
- A && Object.assign(S, A);
4875
+ const D = o(h);
4876
+ D && Object.assign(S, D);
4769
4877
  }
4770
- if (K(S), Object.keys(S).some((A) => S[A]))
4878
+ if (K(S), Object.keys(S).some((D) => S[D]))
4771
4879
  return;
4772
4880
  const E = l ? l(h) : h;
4773
4881
  await n?.(h, E);
4774
4882
  },
4775
4883
  [h, t, B, o, l, n, b]
4776
- ), J = xe(
4884
+ ), Y = xe(
4777
4885
  (x) => {
4778
- const S = Ze(h, x.name), D = U[x.name] ? _[x.name] : void 0, E = x.disabled || b, A = {
4886
+ const S = Ze(h, x.name), $ = U[x.name] ? _[x.name] : void 0, E = x.disabled || b, D = {
4779
4887
  // Ties the field to the `<label>` the group wrapper renders; without it
4780
4888
  // labels are unassociated — screen readers announce nothing, clicking a
4781
4889
  // label focuses nothing, and tests cannot find a field by its label.
@@ -4797,11 +4905,11 @@ const qs = ({
4797
4905
  return /* @__PURE__ */ e(
4798
4906
  Ce,
4799
4907
  {
4800
- ...A,
4801
- onChange: ($) => W(x.name, $.target.value),
4908
+ ...D,
4909
+ onChange: (A) => W(x.name, A.target.value),
4802
4910
  type: x.textType || x.type,
4803
4911
  ...Xe(x.autocomplete),
4804
- error: D,
4912
+ error: $,
4805
4913
  size: f
4806
4914
  }
4807
4915
  );
@@ -4809,27 +4917,27 @@ const qs = ({
4809
4917
  return /* @__PURE__ */ e(
4810
4918
  He,
4811
4919
  {
4812
- ...A,
4813
- onChange: ($) => W(x.name, $.target.value),
4920
+ ...D,
4921
+ onChange: (A) => W(x.name, A.target.value),
4814
4922
  rows: x.rows ?? 4,
4815
- error: D,
4923
+ error: $,
4816
4924
  size: f
4817
4925
  }
4818
4926
  );
4819
4927
  case "select":
4820
4928
  return /* @__PURE__ */ e(
4821
- De,
4929
+ $e,
4822
4930
  {
4823
- ...A,
4824
- onChange: ($) => W(x.name, $),
4825
- options: (x.options || []).map(($) => ({
4826
- ...$,
4827
- value: String($.value)
4931
+ ...D,
4932
+ onChange: (A) => W(x.name, A),
4933
+ options: (x.options || []).map((A) => ({
4934
+ ...A,
4935
+ value: String(A.value)
4828
4936
  })),
4829
4937
  searchable: x.searchable,
4830
4938
  multiple: x.multiple,
4831
4939
  allowCreate: x.allowCreate,
4832
- error: D,
4940
+ error: $,
4833
4941
  size: f
4834
4942
  }
4835
4943
  );
@@ -4838,14 +4946,14 @@ const qs = ({
4838
4946
  // open to learn what the choices even are.
4839
4947
  case "segmented":
4840
4948
  return /* @__PURE__ */ e(
4841
- sr,
4949
+ lr,
4842
4950
  {
4843
4951
  "aria-label": x.label,
4844
4952
  value: S == null ? "" : String(S),
4845
- onChange: ($) => W(x.name, $),
4846
- options: (x.options || []).map(($) => ({
4847
- value: String($.value),
4848
- label: $.label
4953
+ onChange: (A) => W(x.name, A),
4954
+ options: (x.options || []).map((A) => ({
4955
+ value: String(A.value),
4956
+ label: A.label
4849
4957
  })),
4850
4958
  size: f === "sm" ? "sm" : "md",
4851
4959
  className: x.disabled ? "pointer-events-none opacity-50" : void 0
@@ -4855,15 +4963,15 @@ const qs = ({
4855
4963
  return /* @__PURE__ */ e(
4856
4964
  we,
4857
4965
  {
4858
- ...A,
4966
+ ...D,
4859
4967
  label: x.label,
4860
4968
  checked: !!S,
4861
- onChange: ($) => W(x.name, $.target.checked),
4969
+ onChange: (A) => W(x.name, A.target.checked),
4862
4970
  size: f
4863
4971
  }
4864
4972
  );
4865
4973
  case "radio":
4866
- return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: x.options?.map(($) => /* @__PURE__ */ c(
4974
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: x.options?.map((A) => /* @__PURE__ */ c(
4867
4975
  "label",
4868
4976
  {
4869
4977
  className: "flex cursor-pointer items-center gap-3 text-base text-text",
@@ -4873,67 +4981,67 @@ const qs = ({
4873
4981
  {
4874
4982
  type: "radio",
4875
4983
  name: x.name,
4876
- value: $.value,
4877
- checked: S === $.value,
4878
- onChange: () => W(x.name, $.value),
4879
- disabled: E || $.disabled,
4984
+ value: A.value,
4985
+ checked: S === A.value,
4986
+ onChange: () => W(x.name, A.value),
4987
+ disabled: E || A.disabled,
4880
4988
  className: "size-checkbox shrink-0 rounded-xs border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
4881
4989
  }
4882
4990
  ),
4883
- $.label
4991
+ A.label
4884
4992
  ]
4885
4993
  },
4886
- $.value
4994
+ A.value
4887
4995
  )) });
4888
4996
  case "date":
4889
4997
  return /* @__PURE__ */ e(
4890
4998
  Be,
4891
4999
  {
4892
- ...A,
5000
+ ...D,
4893
5001
  value: S ? new Date(S) : null,
4894
- onChange: ($) => W(x.name, $),
5002
+ onChange: (A) => W(x.name, A),
4895
5003
  size: f
4896
5004
  }
4897
5005
  );
4898
5006
  case "file":
4899
5007
  return /* @__PURE__ */ e(
4900
- pn,
5008
+ Nn,
4901
5009
  {
4902
- ...A,
5010
+ ...D,
4903
5011
  value: S,
4904
- onChange: ($) => W(x.name, $),
4905
- error: D,
4906
- onListFiles: ($) => p?.http.invoke({
5012
+ onChange: (A) => W(x.name, A),
5013
+ error: $,
5014
+ onListFiles: (A) => p?.http.invoke({
4907
5015
  method: "POST",
4908
5016
  action: "storage.file.list",
4909
- body: $
5017
+ body: A
4910
5018
  }),
4911
5019
  onListMounts: () => p?.http.invoke({
4912
5020
  method: "GET",
4913
5021
  action: "storage.mount"
4914
5022
  }),
4915
- onUploadFile: ($) => p?.http.invoke({
5023
+ onUploadFile: (A) => p?.http.invoke({
4916
5024
  method: "POST",
4917
5025
  action: "storage.file.upload",
4918
- body: $
5026
+ body: A
4919
5027
  }),
4920
- onDownloadFile: ($) => p?.http.invoke({
5028
+ onDownloadFile: (A) => p?.http.invoke({
4921
5029
  method: "GET",
4922
- action: `storage.file.${$}.download`
5030
+ action: `storage.file.${A}.download`
4923
5031
  }),
4924
- onRegisterFile: ($) => p?.http.invoke({
5032
+ onRegisterFile: (A) => p?.http.invoke({
4925
5033
  method: "POST",
4926
5034
  action: "storage.file.folder",
4927
- body: $
5035
+ body: A
4928
5036
  })
4929
5037
  }
4930
5038
  );
4931
5039
  case "folder":
4932
5040
  return /* @__PURE__ */ e(
4933
- hn,
5041
+ gn,
4934
5042
  {
4935
5043
  value: S || {},
4936
- onChange: ($) => W(x.name, $),
5044
+ onChange: (A) => W(x.name, A),
4937
5045
  onListFolders: () => p?.http.invoke({
4938
5046
  method: "GET",
4939
5047
  action: "storage.mount"
@@ -4946,34 +5054,34 @@ const qs = ({
4946
5054
  case "custom":
4947
5055
  return x.customComponent?.({
4948
5056
  value: S,
4949
- onChange: ($) => W(x.name, $),
4950
- error: D,
5057
+ onChange: (A) => W(x.name, A),
5058
+ error: $,
4951
5059
  disabled: E
4952
5060
  });
4953
5061
  case "array": {
4954
- const $ = S || [];
5062
+ const A = S || [];
4955
5063
  let oe = [];
4956
- if (typeof D == "string" && D.startsWith("["))
5064
+ if (typeof $ == "string" && $.startsWith("["))
4957
5065
  try {
4958
- oe = JSON.parse(D);
5066
+ oe = JSON.parse($);
4959
5067
  } catch {
4960
5068
  }
4961
5069
  const ce = () => {
4962
- W(x.name, [...$, {}]);
5070
+ W(x.name, [...A, {}]);
4963
5071
  }, q = (L) => {
4964
5072
  W(
4965
5073
  x.name,
4966
- $.filter((k, M) => M !== L)
5074
+ A.filter((k, M) => M !== L)
4967
5075
  );
4968
5076
  }, H = (L, k, M) => {
4969
- const G = [...$];
5077
+ const G = [...A];
4970
5078
  G[L] = {
4971
5079
  ...G[L],
4972
5080
  [k]: M
4973
5081
  }, W(x.name, G);
4974
5082
  };
4975
5083
  return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
4976
- $.map((L, k) => /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
5084
+ A.map((L, k) => /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
4977
5085
  /* @__PURE__ */ e("div", { className: "grid flex-1 gap-2 sm:grid-cols-2", children: x.arrayFields?.map((M) => {
4978
5086
  const G = oe?.[k]?.[M.name];
4979
5087
  return /* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
@@ -5028,7 +5136,7 @@ const qs = ({
5028
5136
  );
5029
5137
  case "select":
5030
5138
  return /* @__PURE__ */ e(
5031
- De,
5139
+ $e,
5032
5140
  {
5033
5141
  ...O,
5034
5142
  onChange: (N) => H(k, M.name, N),
@@ -5124,7 +5232,7 @@ const qs = ({
5124
5232
  onClick: () => q(k),
5125
5233
  disabled: E,
5126
5234
  className: i("shrink-0", k === 0 && "mt-5"),
5127
- children: /* @__PURE__ */ e(It, { className: "size-icon-md" })
5235
+ children: /* @__PURE__ */ e(Pt, { className: "size-icon-md" })
5128
5236
  }
5129
5237
  )
5130
5238
  ] }, k)),
@@ -5133,7 +5241,7 @@ const qs = ({
5133
5241
  {
5134
5242
  type: "button",
5135
5243
  variant: "secondary",
5136
- leftIcon: /* @__PURE__ */ e(Pt, { className: "size-icon-sm" }),
5244
+ leftIcon: /* @__PURE__ */ e(Ot, { className: "size-icon-sm" }),
5137
5245
  onClick: ce,
5138
5246
  disabled: E,
5139
5247
  children: [
@@ -5155,7 +5263,7 @@ const qs = ({
5155
5263
  return null;
5156
5264
  const S = x.items.filter((E) => !(E.hidden || E.conditional && !E.conditional(h)));
5157
5265
  if (S.length === 0) return null;
5158
- const D = i(
5266
+ const $ = i(
5159
5267
  x.layout === "flex" ? "flex flex-wrap gap-3.5" : "grid gap-3.5",
5160
5268
  x.layout !== "flex" && {
5161
5269
  "grid-cols-1": !x.columns || x.columns === 1,
@@ -5170,13 +5278,13 @@ const qs = ({
5170
5278
  // form *is* the page now, so a panel around each section would be a
5171
5279
  // second surface on top of the one it already sits on.
5172
5280
  /* @__PURE__ */ e(
5173
- wn,
5281
+ Sn,
5174
5282
  {
5175
5283
  title: x.title,
5176
5284
  description: x.description,
5177
5285
  className: "not-last:border-b not-last:border-border-subtle",
5178
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: D, children: S.map((E) => {
5179
- const A = U[E.name] ? _[E.name] : void 0;
5286
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: $, children: S.map((E) => {
5287
+ const D = U[E.name] ? _[E.name] : void 0;
5180
5288
  return /* @__PURE__ */ c(
5181
5289
  "div",
5182
5290
  {
@@ -5200,8 +5308,8 @@ const qs = ({
5200
5308
  ]
5201
5309
  }
5202
5310
  ),
5203
- J(E),
5204
- E.help && !A && /* @__PURE__ */ e("p", { className: "text-xs leading-4 text-text-subtle", children: E.help })
5311
+ Y(E),
5312
+ E.help && !D && /* @__PURE__ */ e("p", { className: "text-xs leading-4 text-text-subtle", children: E.help })
5205
5313
  ]
5206
5314
  },
5207
5315
  E.name
@@ -5212,8 +5320,8 @@ const qs = ({
5212
5320
  )
5213
5321
  );
5214
5322
  },
5215
- [h, U, _, J]
5216
- ), Y = i(
5323
+ [h, U, _, Y]
5324
+ ), X = i(
5217
5325
  {
5218
5326
  "max-w-settings": f === "sm",
5219
5327
  "max-w-form": f === "md",
@@ -5222,7 +5330,7 @@ const qs = ({
5222
5330
  },
5223
5331
  g
5224
5332
  ), y = f === "full" ? "md" : f;
5225
- return /* @__PURE__ */ c("form", { ref: w, onSubmit: Z, className: Y, children: [
5333
+ return /* @__PURE__ */ c("form", { ref: w, onSubmit: Q, className: X, children: [
5226
5334
  !v && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
5227
5335
  /* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(de) }),
5228
5336
  v && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ c(Ee, { children: [
@@ -5254,7 +5362,7 @@ const qs = ({
5254
5362
  ] }) })
5255
5363
  ] });
5256
5364
  };
5257
- function Vs({
5365
+ function Zs({
5258
5366
  label: t,
5259
5367
  value: r,
5260
5368
  onChange: n,
@@ -5271,8 +5379,8 @@ function Vs({
5271
5379
  const b = ne(null), [g, w] = R(null), p = async (h) => {
5272
5380
  if (!h) return;
5273
5381
  w(null);
5274
- const C = await Cn(h, s);
5275
- if (a && kn(C) > a) {
5382
+ const C = await zn(h, s);
5383
+ if (a && En(C) > a) {
5276
5384
  w(f);
5277
5385
  return;
5278
5386
  }
@@ -5331,11 +5439,11 @@ function Vs({
5331
5439
  )
5332
5440
  ] });
5333
5441
  }
5334
- function kn(t) {
5442
+ function En(t) {
5335
5443
  const r = t.slice(t.indexOf(",") + 1), n = r.endsWith("==") ? 2 : r.endsWith("=") ? 1 : 0;
5336
5444
  return Math.floor(r.length * 3 / 4) - n;
5337
5445
  }
5338
- function Cn(t, r) {
5446
+ function zn(t, r) {
5339
5447
  return new Promise((n, s) => {
5340
5448
  const a = new FileReader();
5341
5449
  a.onload = () => {
@@ -5353,7 +5461,7 @@ function Cn(t, r) {
5353
5461
  }, a.onerror = s, a.readAsDataURL(t);
5354
5462
  });
5355
5463
  }
5356
- const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(Le, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), En = (t) => /* @__PURE__ */ e(Ae, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), zn = {
5464
+ const Ne = (...t) => t.filter(Boolean).join(" "), Mn = (t) => /* @__PURE__ */ e(Le, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Tn = (t) => /* @__PURE__ */ e(De, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), An = {
5357
5465
  sm: "h-control-sm px-3 text-sm",
5358
5466
  md: "h-control-md px-3 text-base",
5359
5467
  lg: "h-control-lg px-3 text-base",
@@ -5363,14 +5471,14 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5363
5471
  md: "h-5 w-5",
5364
5472
  lg: "h-6 w-6",
5365
5473
  full: "h-6 w-6"
5366
- }, Mn = ve(
5474
+ }, _n = ve(
5367
5475
  ({
5368
5476
  label: t,
5369
5477
  helperText: r,
5370
5478
  error: n,
5371
5479
  size: s = "md",
5372
5480
  fullWidth: a = !1,
5373
- startIcon: l = /* @__PURE__ */ e(Sn, {}),
5481
+ startIcon: l = /* @__PURE__ */ e(Mn, {}),
5374
5482
  loading: o = !1,
5375
5483
  containerClassName: u,
5376
5484
  labelClassName: d,
@@ -5385,8 +5493,8 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5385
5493
  onChange: C,
5386
5494
  ...z
5387
5495
  }, P) => {
5388
- const _ = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!n, U = ne(null), j = ne(null), [B, W] = R(h || ""), [Z, J] = R(!1), [de, Y] = R(!1), [y, x] = R(!1);
5389
- X(() => {
5496
+ const _ = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!n, U = ne(null), j = ne(null), [B, W] = R(h || ""), [Q, Y] = R(!1), [de, X] = R(!1), [y, x] = R(!1);
5497
+ Z(() => {
5390
5498
  h !== void 0 && W(h);
5391
5499
  }, [h]);
5392
5500
  const S = pe(() => {
@@ -5396,38 +5504,38 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5396
5504
  (H) => String(H.label).toLowerCase().includes(q)
5397
5505
  );
5398
5506
  }, [B, f, p, y]);
5399
- X(() => {
5507
+ Z(() => {
5400
5508
  if (!b || !B) {
5401
- Y(!1);
5509
+ X(!1);
5402
5510
  return;
5403
5511
  }
5404
5512
  const q = setTimeout(async () => {
5405
- Y(!0);
5513
+ X(!0);
5406
5514
  try {
5407
5515
  await b(String(B));
5408
5516
  } catch (H) {
5409
5517
  console.error("Remote search failed:", H);
5410
5518
  } finally {
5411
- Y(!1);
5519
+ X(!1);
5412
5520
  }
5413
5521
  }, w);
5414
5522
  return () => {
5415
- clearTimeout(q), Y(!1);
5523
+ clearTimeout(q), X(!1);
5416
5524
  };
5417
- }, [B, w, b]), X(() => {
5525
+ }, [B, w, b]), Z(() => {
5418
5526
  const q = (H) => {
5419
- U.current && !U.current.contains(H.target) && J(!1);
5527
+ U.current && !U.current.contains(H.target) && Y(!1);
5420
5528
  };
5421
5529
  return document.addEventListener("mousedown", q), () => document.removeEventListener("mousedown", q);
5422
5530
  }, []);
5423
- const D = (q) => {
5531
+ const $ = (q) => {
5424
5532
  const H = q.target.value;
5425
- W(H), J(!0), x(!0), C && C(q);
5533
+ W(H), Y(!0), x(!0), C && C(q);
5426
5534
  }, E = (q) => {
5427
- W(q.label), J(!1), x(!1), g && g(q.value);
5428
- }, A = () => {
5429
- (f.length > 0 || b) && (J(!0), x(!1));
5430
- }, $ = o || de, oe = Z && (S.length > 0 || $), ce = pe(() => P || j, [P]);
5535
+ W(q.label), Y(!1), x(!1), g && g(q.value);
5536
+ }, D = () => {
5537
+ (f.length > 0 || b) && (Y(!0), x(!1));
5538
+ }, A = o || de, oe = Q && (S.length > 0 || A), ce = pe(() => P || j, [P]);
5431
5539
  return /* @__PURE__ */ c(
5432
5540
  "div",
5433
5541
  {
@@ -5459,15 +5567,15 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5459
5567
  ref: ce,
5460
5568
  id: _,
5461
5569
  value: B,
5462
- onChange: D,
5463
- onFocus: A,
5570
+ onChange: $,
5571
+ onFocus: D,
5464
5572
  className: Ne(
5465
5573
  // Base styles
5466
5574
  "block w-full rounded-tile border bg-surface-input transition-colors duration-fast ease-out",
5467
5575
  "placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring",
5468
5576
  "disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
5469
5577
  // Size styles
5470
- zn[s],
5578
+ An[s],
5471
5579
  // Icon padding
5472
5580
  l ? "pl-10" : "",
5473
5581
  "pr-10",
@@ -5479,21 +5587,21 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5479
5587
  ...z
5480
5588
  }
5481
5589
  ),
5482
- /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: $ || o ? (
5590
+ /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: A || o ? (
5483
5591
  // Loading Spinner
5484
- /* @__PURE__ */ e(Ot, { className: Ne("animate-spin text-info-fg", Re[s]), "aria-hidden": !0 })
5592
+ /* @__PURE__ */ e(jt, { className: Ne("animate-spin text-info-fg", Re[s]), "aria-hidden": !0 })
5485
5593
  ) : (
5486
5594
  // Dropdown Chevron
5487
5595
  /* @__PURE__ */ e(
5488
- En,
5596
+ Tn,
5489
5597
  {
5490
5598
  className: Ne(
5491
5599
  "text-text-muted cursor-pointer transition-transform",
5492
5600
  Re[s],
5493
- Z ? "rotate-180" : "rotate-0"
5601
+ Q ? "rotate-180" : "rotate-0"
5494
5602
  ),
5495
5603
  onClick: () => {
5496
- J((q) => (q || x(!1), !q));
5604
+ Y((q) => (q || x(!1), !q));
5497
5605
  }
5498
5606
  }
5499
5607
  )
@@ -5514,7 +5622,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5514
5622
  children: q.label
5515
5623
  },
5516
5624
  q.value
5517
- )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-text-muted", children: $ || o ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
5625
+ )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-text-muted", children: A || o ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
5518
5626
  }
5519
5627
  ),
5520
5628
  (n || r) && /* @__PURE__ */ e("p", { className: Ne("mt-1 text-xs", K ? "text-danger-fg" : "text-text-muted"), children: n || r }),
@@ -5527,8 +5635,8 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Sn = (t) => /* @__PURE__ */ e(
5527
5635
  );
5528
5636
  }
5529
5637
  );
5530
- Mn.displayName = "SearchableTextField";
5531
- const Tn = ve(
5638
+ _n.displayName = "SearchableTextField";
5639
+ const $n = ve(
5532
5640
  ({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
5533
5641
  const u = /* @__PURE__ */ e(
5534
5642
  "span",
@@ -5581,25 +5689,25 @@ const Tn = ve(
5581
5689
  );
5582
5690
  }
5583
5691
  );
5584
- Tn.displayName = "Switch";
5585
- const $n = [
5692
+ $n.displayName = "Switch";
5693
+ const Dn = [
5586
5694
  { upTo: 1, cols: "grid-cols-1" },
5587
5695
  { upTo: 2, cols: "grid-cols-1 @[22rem]:grid-cols-2" },
5588
5696
  { upTo: 4, cols: "grid-cols-1 @[18rem]:grid-cols-2" },
5589
5697
  { upTo: 9, cols: "grid-cols-2 @[26rem]:grid-cols-3" }
5590
- ], _n = "grid-cols-2 @[26rem]:grid-cols-3 @[40rem]:grid-cols-4";
5591
- function Dn(t) {
5592
- return $n.find((r) => t <= r.upTo)?.cols ?? _n;
5698
+ ], Ln = "grid-cols-2 @[26rem]:grid-cols-3 @[40rem]:grid-cols-4";
5699
+ function In(t) {
5700
+ return Dn.find((r) => t <= r.upTo)?.cols ?? Ln;
5593
5701
  }
5594
- function An(t, r) {
5702
+ function Pn(t, r) {
5595
5703
  const n = r ?? t;
5596
5704
  if (t <= n) return { shown: t, hidden: 0 };
5597
5705
  const s = Math.max(0, n - 1);
5598
5706
  return { shown: s, hidden: t - s };
5599
5707
  }
5600
- function Us({ tiles: t, pinned: r, maxStrip: n, className: s }) {
5708
+ function Qs({ tiles: t, pinned: r, maxStrip: n, className: s }) {
5601
5709
  if (r) {
5602
- const { shown: a, hidden: l } = An(t.length, n), o = t.slice(0, a);
5710
+ const { shown: a, hidden: l } = Pn(t.length, n), o = t.slice(0, a);
5603
5711
  return /* @__PURE__ */ c("div", { className: i("@container flex h-full min-h-0 flex-col gap-2", s), children: [
5604
5712
  /* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: r }),
5605
5713
  t.length > 0 && // Fixed height as a share of the pane, with a floor so the strip
@@ -5618,14 +5726,14 @@ function Us({ tiles: t, pinned: r, maxStrip: n, className: s }) {
5618
5726
  {
5619
5727
  className: i(
5620
5728
  "@container grid h-full min-h-0 auto-rows-fr gap-2",
5621
- Dn(t.length),
5729
+ In(t.length),
5622
5730
  s
5623
5731
  ),
5624
5732
  children: t.map((a, l) => /* @__PURE__ */ e("div", { className: "min-h-0 min-w-0", children: a }, l))
5625
5733
  }
5626
5734
  );
5627
5735
  }
5628
- function Ws({
5736
+ function ea({
5629
5737
  name: t,
5630
5738
  avatarUrl: r,
5631
5739
  muted: n,
@@ -5652,23 +5760,23 @@ function Ws({
5652
5760
  alt: t,
5653
5761
  className: "aspect-square w-[38%] max-w-16 min-w-6 rounded-full object-cover"
5654
5762
  }
5655
- ) : /* @__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(jt, { className: "w-1/2 h-1/2" }) : /* @__PURE__ */ e(Ft, { className: "w-1/2 h-1/2" }) }) }),
5763
+ ) : /* @__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(Ft, { className: "w-1/2 h-1/2" }) : /* @__PURE__ */ e(Rt, { className: "w-1/2 h-1/2" }) }) }),
5656
5764
  /* @__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: [
5657
- n ? /* @__PURE__ */ e(Rt, { className: "size-3 shrink-0" }) : /* @__PURE__ */ e(Bt, { className: "size-3 shrink-0" }),
5765
+ n ? /* @__PURE__ */ e(Bt, { className: "size-3 shrink-0" }) : /* @__PURE__ */ e(Ht, { className: "size-3 shrink-0" }),
5658
5766
  /* @__PURE__ */ e("span", { className: "hidden truncate @[9rem]:inline", children: t })
5659
5767
  ] })
5660
5768
  ]
5661
5769
  }
5662
5770
  );
5663
5771
  }
5664
- function Ks({
5772
+ function ta({
5665
5773
  attach: t,
5666
5774
  active: r = !0,
5667
5775
  mirrored: n = !1,
5668
5776
  className: s
5669
5777
  }) {
5670
5778
  const a = ne(null);
5671
- return X(() => {
5779
+ return Z(() => {
5672
5780
  if (!r || !a.current) return;
5673
5781
  const l = t(a.current);
5674
5782
  return () => {
@@ -5686,7 +5794,7 @@ function Ks({
5686
5794
  }
5687
5795
  );
5688
5796
  }
5689
- const Ln = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ut = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
5797
+ const On = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ft = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
5690
5798
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
5691
5799
  if (a)
5692
5800
  return /* @__PURE__ */ c("li", { children: [
@@ -5703,7 +5811,7 @@ const Ln = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ut
5703
5811
  }
5704
5812
  ),
5705
5813
  /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((d, v) => /* @__PURE__ */ e(
5706
- ut,
5814
+ ft,
5707
5815
  {
5708
5816
  item: d,
5709
5817
  isSelectedHandler: r,
@@ -5793,7 +5901,7 @@ const Ln = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ut
5793
5901
  ]
5794
5902
  }
5795
5903
  ) });
5796
- }, Gs = ({
5904
+ }, ra = ({
5797
5905
  items: t,
5798
5906
  isSelectedHandler: r,
5799
5907
  onClick: n,
@@ -5801,12 +5909,12 @@ const Ln = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ut
5801
5909
  loading: a = !1
5802
5910
  }) => a ? /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5803
5911
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5804
- /* @__PURE__ */ e(Ln, {})
5912
+ /* @__PURE__ */ e(On, {})
5805
5913
  ] }) : /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
5806
5914
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
5807
5915
  /* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-px overflow-y-auto", children: t.map(
5808
5916
  (l, o) => !l.path && !l.label && !l.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, o) : /* @__PURE__ */ e(
5809
- ut,
5917
+ ft,
5810
5918
  {
5811
5919
  item: l,
5812
5920
  isSelectedHandler: r,
@@ -5816,7 +5924,7 @@ const Ln = () => /* @__PURE__ */ e(qe, { variant: "inline", shape: "menu" }), ut
5816
5924
  )
5817
5925
  ) })
5818
5926
  ] });
5819
- function Js({
5927
+ function na({
5820
5928
  open: t,
5821
5929
  title: r,
5822
5930
  description: n,
@@ -5828,7 +5936,7 @@ function Js({
5828
5936
  onCancel: d
5829
5937
  }) {
5830
5938
  return /* @__PURE__ */ e(
5831
- dt,
5939
+ mt,
5832
5940
  {
5833
5941
  open: t,
5834
5942
  onClose: d,
@@ -5850,7 +5958,7 @@ function Js({
5850
5958
  }
5851
5959
  );
5852
5960
  }
5853
- const In = {
5961
+ const jn = {
5854
5962
  none: "p-0",
5855
5963
  xs: "p-1",
5856
5964
  sm: "p-2",
@@ -5858,7 +5966,7 @@ const In = {
5858
5966
  lg: "p-6",
5859
5967
  xl: "p-8",
5860
5968
  "2xl": "p-12"
5861
- }, Pn = {
5969
+ }, Fn = {
5862
5970
  none: "m-0",
5863
5971
  xs: "m-1",
5864
5972
  sm: "m-2",
@@ -5866,7 +5974,7 @@ const In = {
5866
5974
  lg: "m-6",
5867
5975
  xl: "m-8",
5868
5976
  "2xl": "m-12"
5869
- }, On = {
5977
+ }, Rn = {
5870
5978
  none: "",
5871
5979
  primary: "bg-accent text-accent-fg",
5872
5980
  secondary: "bg-surface-hover",
@@ -5882,26 +5990,26 @@ const In = {
5882
5990
  backdrop: "bg-page",
5883
5991
  editor: "bg-surface",
5884
5992
  input: "bg-surface-input"
5885
- }, jn = {
5993
+ }, Bn = {
5886
5994
  none: "rounded-none",
5887
5995
  sm: "rounded-sm",
5888
5996
  md: "rounded-md",
5889
5997
  lg: "rounded-lg",
5890
5998
  xl: "rounded-xl",
5891
5999
  full: "rounded-full"
5892
- }, Fn = {
6000
+ }, Hn = {
5893
6001
  none: "shadow-none",
5894
6002
  sm: "shadow-none",
5895
6003
  md: "shadow-overlay",
5896
6004
  lg: "shadow-overlay",
5897
6005
  xl: "shadow-modal",
5898
6006
  "2xl": "shadow-modal"
5899
- }, Rn = {
6007
+ }, qn = {
5900
6008
  none: "border-0",
5901
6009
  sm: "border",
5902
6010
  md: "border-2",
5903
6011
  lg: "border-4"
5904
- }, Bn = {
6012
+ }, Vn = {
5905
6013
  primary: "border-accent-border",
5906
6014
  secondary: "border-border",
5907
6015
  accent: "border-accent-border",
@@ -5911,7 +6019,7 @@ const In = {
5911
6019
  info: "border-info-border",
5912
6020
  neutral: "border-border-subtle",
5913
6021
  white: "border-border-subtle"
5914
- }, mt = ve(
6022
+ }, ht = ve(
5915
6023
  ({
5916
6024
  padding: t,
5917
6025
  margin: r,
@@ -5928,13 +6036,13 @@ const In = {
5928
6036
  {
5929
6037
  ref: m,
5930
6038
  className: i(
5931
- t && In[t],
5932
- r && Pn[r],
5933
- n && On[n],
5934
- s && jn[s],
5935
- a && Fn[a],
5936
- l && Rn[l],
5937
- o && Bn[o],
6039
+ t && jn[t],
6040
+ r && Fn[r],
6041
+ n && Rn[n],
6042
+ s && Bn[s],
6043
+ a && Hn[a],
6044
+ l && qn[l],
6045
+ o && Vn[o],
5938
6046
  u
5939
6047
  ),
5940
6048
  ...v,
@@ -5942,11 +6050,11 @@ const In = {
5942
6050
  }
5943
6051
  )
5944
6052
  );
5945
- mt.displayName = "Box";
5946
- const Ys = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(mt, { background: "module", radius: "lg", shadow: "none", border: "sm", borderColor: "neutral", ...n, children: [
6053
+ ht.displayName = "Box";
6054
+ const sa = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(ht, { background: "module", radius: "lg", shadow: "none", border: "sm", borderColor: "neutral", ...n, children: [
5947
6055
  r && /* @__PURE__ */ e("span", { className: "mb-2 block text-sm font-semibold text-text", children: r }),
5948
6056
  t
5949
- ] }), Hn = {
6057
+ ] }), Un = {
5950
6058
  xs: "text-xs",
5951
6059
  sm: "text-sm",
5952
6060
  md: "text-base",
@@ -5955,13 +6063,13 @@ const Ys = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(mt, { backgrou
5955
6063
  "2xl": "text-2xl",
5956
6064
  "3xl": "text-3xl",
5957
6065
  "4xl": "text-3xl"
5958
- }, qn = {
6066
+ }, Wn = {
5959
6067
  light: "font-normal",
5960
6068
  normal: "font-normal",
5961
6069
  medium: "font-medium",
5962
6070
  semibold: "font-semibold",
5963
6071
  bold: "font-bold"
5964
- }, Vn = {
6072
+ }, Kn = {
5965
6073
  primary: "text-text",
5966
6074
  secondary: "text-text-muted",
5967
6075
  accent: "text-accent",
@@ -5971,11 +6079,11 @@ const Ys = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(mt, { backgrou
5971
6079
  info: "text-info-fg",
5972
6080
  neutral: "text-text",
5973
6081
  current: "text-current"
5974
- }, Un = {
6082
+ }, Gn = {
5975
6083
  left: "text-left",
5976
6084
  center: "text-center",
5977
6085
  right: "text-right"
5978
- }, Xs = ({
6086
+ }, aa = ({
5979
6087
  level: t = 1,
5980
6088
  size: r,
5981
6089
  weight: n = "semibold",
@@ -5988,16 +6096,16 @@ const Ys = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(mt, { backgrou
5988
6096
  }) => {
5989
6097
  const v = `h${t}`, m = i(
5990
6098
  "font-sans text-pretty",
5991
- Hn[r || Wn(t)],
5992
- qn[n],
5993
- Vn[s],
5994
- Un[a],
6099
+ Un[r || Jn(t)],
6100
+ Wn[n],
6101
+ Kn[s],
6102
+ Gn[a],
5995
6103
  l && "truncate",
5996
6104
  o
5997
6105
  );
5998
6106
  return /* @__PURE__ */ e(v, { className: m, ...d, children: u });
5999
6107
  };
6000
- function Wn(t) {
6108
+ function Jn(t) {
6001
6109
  return {
6002
6110
  1: "2xl",
6003
6111
  2: "xl",
@@ -6008,103 +6116,109 @@ function Wn(t) {
6008
6116
  }[t] || "md";
6009
6117
  }
6010
6118
  const Qe = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
6011
- function Zs(t) {
6119
+ function la(t) {
6012
6120
  let r = 0;
6013
6121
  for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
6014
6122
  return Qe[r % Qe.length];
6015
6123
  }
6016
6124
  export {
6017
- ls as ArtifactView,
6018
- os as AssistantCard,
6019
- Nr as Avatar,
6020
- is as AvatarStack,
6021
- Kr as Badge,
6022
- mt as Box,
6125
+ hs as ActivityAvatar,
6126
+ xs as ActivityGlyph,
6127
+ ms as ActivityRow,
6128
+ cs as ArtifactView,
6129
+ is as AssistantCard,
6130
+ lt as Avatar,
6131
+ us as AvatarStack,
6132
+ Yr as Badge,
6133
+ ht as Box,
6023
6134
  se as Button,
6024
- rs as ButtonGroup,
6025
- Ys as Card,
6026
- ds as ChannelBadge,
6135
+ as as ButtonGroup,
6136
+ sa as Card,
6137
+ ps as ChannelBadge,
6027
6138
  we as Checkbox,
6028
- as as CommandPalette,
6029
- Js as ConfirmDialog,
6139
+ os as CommandPalette,
6140
+ na as ConfirmDialog,
6030
6141
  qe as ContentLoading,
6031
6142
  Be as DatePicker,
6032
- jr as Dropdown,
6033
- Ps as EmptyState,
6034
- Ls as ErrorBoundary,
6035
- Is as FederatedResource,
6036
- Qt as FilterChip,
6037
- hn as FolderSelect,
6038
- qs as Form,
6039
- wn as FormSection,
6040
- Xs as Heading,
6041
- hr as IDENTITY_TONE_COUNT,
6042
- ee as Icon,
6043
- us as Image,
6044
- Vs as ImageField,
6045
- Os as Kbd,
6046
- ms as KpiCard,
6047
- ss as Link,
6048
- hs as List,
6049
- fs as ListBulkAction,
6050
- Us as MeetingGrid,
6051
- xs as MessageBubble,
6052
- gs as MetaSeparator,
6053
- bs as MetaValue,
6054
- dt as Modal,
6055
- ps as Page,
6056
- $r as PageHeader,
6057
- vs as PageToolbar,
6143
+ Br as Dropdown,
6144
+ Vs as EmptyState,
6145
+ Hs as ErrorBoundary,
6146
+ qs as FederatedResource,
6147
+ tr as FilterChip,
6148
+ gn as FolderSelect,
6149
+ Xs as Form,
6150
+ Sn as FormSection,
6151
+ aa as Heading,
6152
+ br as IDENTITY_TONE_COUNT,
6153
+ J as Icon,
6154
+ vs as Image,
6155
+ Zs as ImageField,
6156
+ Us as Kbd,
6157
+ ys as KpiCard,
6158
+ ls as Link,
6159
+ ws as List,
6160
+ Ns as ListBulkAction,
6161
+ Qs as MeetingGrid,
6162
+ ks as MessageBubble,
6163
+ Ss as MetaSeparator,
6164
+ Cs as MetaValue,
6165
+ mt as Modal,
6166
+ Es as Page,
6167
+ Dr as PageHeader,
6168
+ zs as PageToolbar,
6058
6169
  ke as PageToolbarActions,
6059
- Ws as ParticipantTile,
6060
- tt as Popover,
6061
- js as ProgressBar,
6170
+ ea as ParticipantTile,
6171
+ rt as Popover,
6172
+ Ws as ProgressBar,
6062
6173
  Me as RichText,
6063
- lt as SearchField,
6064
- Mn as SearchableTextField,
6065
- ys as SectionCaption,
6066
- Ns as SectionDivider,
6067
- sr as SegmentedToggle,
6068
- De as Select,
6069
- ws as SettingsFrameProvider,
6070
- Cs as SettingsPage,
6071
- Ss as SettingsRow,
6072
- Es as SettingsSection,
6073
- Gs as SidebarMenu,
6074
- zs as SourceChip,
6075
- Fs as Spinner,
6076
- rt as SplitButton,
6077
- Rs as StatusDot,
6078
- Bs as StepIndicator,
6079
- pn as StorageInput,
6080
- Tn as Switch,
6081
- Hs as TabBar,
6174
+ bs as RowCard,
6175
+ ct as SearchField,
6176
+ _n as SearchableTextField,
6177
+ Ms as SectionCaption,
6178
+ Ts as SectionDivider,
6179
+ lr as SegmentedToggle,
6180
+ $e as Select,
6181
+ As as SettingsFrameProvider,
6182
+ $s as SettingsPage,
6183
+ Ds as SettingsRow,
6184
+ Ls as SettingsSection,
6185
+ ra as SidebarMenu,
6186
+ Is as SourceChip,
6187
+ Ks as Spinner,
6188
+ nt as SplitButton,
6189
+ Gs as StatusDot,
6190
+ Js as StepIndicator,
6191
+ Nn as StorageInput,
6192
+ $n as Switch,
6193
+ Ys as TabBar,
6082
6194
  Ye as Table,
6083
- bn as Tabs,
6195
+ vn as Tabs,
6084
6196
  ue as Text,
6085
6197
  He as TextArea,
6086
6198
  Ce as TextField,
6087
- Ks as VideoSurface,
6088
- As as View,
6199
+ gs as TimelineEvent,
6200
+ ta as VideoSurface,
6201
+ Bs as View,
6089
6202
  Xe as autofillProps,
6090
- Gr as badgeColumn,
6091
- _s as booleanBadgeColumn,
6092
- Zs as catTone,
6203
+ Xr as badgeColumn,
6204
+ Fs as booleanBadgeColumn,
6205
+ fs as cardActionClass,
6206
+ la as catTone,
6093
6207
  i as cn,
6094
- ts as createSizes,
6095
- es as createVariants,
6096
- Ms as dateFilterHandler,
6097
- cs as identityDotClass,
6098
- st as identityPlateClass,
6099
- nt as identityTone,
6100
- Ds as labelsColumn,
6101
- $s as multiSelectFilterHandler,
6102
- un as normalizeText,
6103
- ns as resolveLucideIcon,
6104
- Ts as selectFilterHandler,
6208
+ ss as createSizes,
6209
+ ns as createVariants,
6210
+ Ps as dateFilterHandler,
6211
+ ds as identityDotClass,
6212
+ at as identityPlateClass,
6213
+ st as identityTone,
6214
+ Rs as labelsColumn,
6215
+ js as multiSelectFilterHandler,
6216
+ hn as normalizeText,
6217
+ Jt as resolveLucideIcon,
6218
+ Os as selectFilterHandler,
6105
6219
  _e as text,
6106
6220
  Pe as useAnchoredPosition,
6107
- Ar as useSettingsFrame,
6108
- ks as useSettingsFrameHost
6221
+ Pr as useSettingsFrame,
6222
+ _s as useSettingsFrameHost
6109
6223
  };
6110
6224
  //# sourceMappingURL=index.js.map