@opencxh/ui-kit 3.179.0 → 3.181.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
- import { jsxs as c, jsx as e, Fragment as Le } from "react/jsx-runtime";
2
- import le, { forwardRef as be, useState as B, useLayoutEffect as kt, useRef as se, useEffect as Q, createContext as rt, useId as Ct, useMemo as ge, useContext as St, useCallback as de, Component as Et } from "react";
3
- import { clsx as Tt } from "clsx";
4
- import * as Mt from "lucide-react";
5
- import { X as Se, ChevronDown as Ie, ExternalLink as zt, Search as Oe, ChevronRight as Pe, Sparkles as At, ArrowUpRight as nt, ImageOff as Dt, ChevronLeft as Ee, Pencil as _t, Calendar as $t, Check as We, ChevronUp as Lt, Ellipsis as It, ChevronDownIcon as Ot, FileText as Re, HardDrive as Ge, ArrowLeft as Pt, FolderPlus as jt, Upload as Rt, Folder as Je, Trash2 as Ft, Plus as Bt, Loader2 as Ht, VideoOff as qt, User as Ut, MicOff as Vt, Mic as Kt } from "lucide-react";
6
- import Ue from "dompurify";
7
- import Wt from "react-markdown";
8
- import Gt from "remark-gfm";
1
+ import { jsxs as c, jsx as e, Fragment as Ee } from "react/jsx-runtime";
2
+ import le, { forwardRef as be, useState as B, useLayoutEffect as St, useRef as se, useEffect as Q, createContext as st, useId as Et, useMemo as ge, useContext as Tt, useCallback as de, Component as Mt } from "react";
3
+ import { clsx as zt } from "clsx";
4
+ import * as At from "lucide-react";
5
+ import { X as Se, ChevronDown as Oe, ExternalLink as Dt, Search as Pe, ChevronRight as je, Sparkles as _t, ArrowUpRight as at, ImageOff as $t, ChevronLeft as Te, Pencil as Lt, Calendar as It, Check as Je, ChevronUp as Ot, Ellipsis as Pt, ChevronDownIcon as jt, FileText as Fe, HardDrive as Ye, ArrowLeft as Rt, FolderPlus as Ft, Upload as Bt, Folder as Xe, Trash2 as Ht, Plus as qt, Loader2 as Ut, VideoOff as Vt, User as Wt, MicOff as Kt, Mic as Gt } from "lucide-react";
6
+ import Ve from "dompurify";
7
+ import Jt from "react-markdown";
8
+ import Yt from "remark-gfm";
9
9
  function d(...t) {
10
- return Tt(t);
10
+ return zt(t);
11
11
  }
12
- function is(t) {
12
+ function vs(t) {
13
13
  return (r, n) => t[r]?.[n] || "";
14
14
  }
15
- function ds(t) {
15
+ function ys(t) {
16
16
  return (r) => t[r] || "";
17
17
  }
18
- const Jt = {
18
+ const Xt = {
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 Jt = {
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
- }, Yt = {
31
+ }, Zt = {
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 Jt = {
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
- }, Xt = {
39
+ }, Qt = {
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 Jt = {
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
- Jt[t],
79
- o ? Xt[r] : Yt[r],
78
+ Xt[t],
79
+ o ? Qt[r] : Zt[r],
80
80
  (n || r === "full") && "w-full",
81
81
  s && "cursor-wait",
82
82
  i
@@ -102,7 +102,7 @@ const Jt = {
102
102
  }
103
103
  );
104
104
  ae.displayName = "Button";
105
- const us = ({
105
+ const Ns = ({
106
106
  children: t,
107
107
  size: r = "md",
108
108
  orientation: n = "horizontal",
@@ -133,12 +133,12 @@ const us = ({
133
133
  );
134
134
  return /* @__PURE__ */ e("div", { className: l, role: "group", children: t });
135
135
  };
136
- function Zt(t) {
136
+ function er(t) {
137
137
  if (!t) return;
138
- const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n = Mt[r];
138
+ const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n = At[r];
139
139
  return typeof n == "function" || typeof n == "object" && n !== null ? n : void 0;
140
140
  }
141
- const Qt = {
141
+ const tr = {
142
142
  primary: "text-text",
143
143
  secondary: "text-text-muted",
144
144
  accent: "text-accent",
@@ -158,9 +158,9 @@ const Qt = {
158
158
  "aria-label": o,
159
159
  ...u
160
160
  }) => {
161
- const i = typeof r == "number" ? r : er(r), p = d(
161
+ const i = typeof r == "number" ? r : rr(r), p = d(
162
162
  "inline-block shrink-0",
163
- Qt[n],
163
+ tr[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 Qt = {
182
182
  };
183
183
  return /* @__PURE__ */ e(t, { ...m });
184
184
  };
185
- function er(t) {
185
+ function rr(t) {
186
186
  return {
187
187
  xs: 12,
188
188
  sm: 14,
@@ -191,9 +191,9 @@ function er(t) {
191
191
  xl: 24
192
192
  }[t];
193
193
  }
194
- function Te(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
194
+ function Me(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
195
195
  const [l, o] = B({});
196
- return kt(() => {
196
+ return St(() => {
197
197
  if (!t) return;
198
198
  const u = () => {
199
199
  const i = r.current;
@@ -206,7 +206,7 @@ function Te(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 st = ({
209
+ const lt = ({
210
210
  trigger: t,
211
211
  children: r,
212
212
  placement: n = "bottom-start",
@@ -216,7 +216,7 @@ const st = ({
216
216
  disabled: o = !1,
217
217
  triggerLabel: u
218
218
  }) => {
219
- const [i, p] = B(!1), m = se(null), f = se(null), g = Te(i, f, { placement: n });
219
+ const [i, p] = B(!1), m = se(null), f = se(null), g = Me(i, f, { placement: n });
220
220
  Q(() => {
221
221
  if (!i) return;
222
222
  const v = (C) => {
@@ -263,29 +263,29 @@ const st = ({
263
263
  }
264
264
  )
265
265
  ] });
266
- }, tr = {
266
+ }, nr = {
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
- }, rr = (t) => d(
273
+ }, sr = (t) => d(
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" : tr[t.tone ?? "default"],
280
+ t.active ? "bg-info-soft text-info-fg" : nr[t.tone ?? "default"],
281
281
  t.className
282
- ), nr = (t) => d(
282
+ ), ar = (t) => d(
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 sr({
288
+ function lr({
289
289
  label: t,
290
290
  icon: r,
291
291
  tone: n = "default",
@@ -301,11 +301,11 @@ function sr({
301
301
  title: g,
302
302
  className: b
303
303
  }) {
304
- const w = l && !!p, v = s === "pill" ? "rounded-full" : "rounded-md", h = rr({ active: l, tone: n, shape: s, size: a, className: b }), C = /* @__PURE__ */ c(Le, { children: [
304
+ const w = l && !!p, v = s === "pill" ? "rounded-full" : "rounded-md", h = sr({ active: l, tone: n, shape: s, size: a, className: b }), C = /* @__PURE__ */ c(Ee, { children: [
305
305
  r,
306
306
  t,
307
- o && /* @__PURE__ */ e(Z, { icon: Ie, size: "xs" })
308
- ] }), k = nr({ shape: s, withClear: w }), P = w && /* @__PURE__ */ e(
307
+ o && /* @__PURE__ */ e(Z, { icon: Oe, size: "xs" })
308
+ ] }), k = ar({ shape: s, withClear: w }), P = w && /* @__PURE__ */ e(
309
309
  "button",
310
310
  {
311
311
  type: "button",
@@ -320,7 +320,7 @@ function sr({
320
320
  );
321
321
  return u ? /* @__PURE__ */ c("span", { className: h, title: g, children: [
322
322
  /* @__PURE__ */ e(
323
- st,
323
+ lt,
324
324
  {
325
325
  trigger: C,
326
326
  rootClassName: "h-full",
@@ -335,13 +335,13 @@ function sr({
335
335
  P
336
336
  ] }) : /* @__PURE__ */ e("button", { type: "button", title: g, onClick: f, className: d(h, k), children: C });
337
337
  }
338
- const ar = {
338
+ const or = {
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
- }, lr = {
344
+ }, cr = {
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 ar = {
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
- }, or = {
353
+ }, ir = {
354
354
  primary: "bg-accent-soft",
355
355
  accent: "bg-accent-soft",
356
356
  secondary: "bg-surface-hover",
@@ -359,7 +359,7 @@ const ar = {
359
359
  warning: "bg-warning-soft",
360
360
  error: "bg-danger-soft",
361
361
  info: "bg-info-soft"
362
- }, ms = ({
362
+ }, ws = ({
363
363
  variant: t = "default",
364
364
  size: r = "md",
365
365
  color: n = "primary",
@@ -376,13 +376,13 @@ const ar = {
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
- ar[r],
380
- !s && lr[n],
379
+ or[r],
380
+ !s && cr[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
- or[n]
385
+ ir[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 ar = {
395
395
  };
396
396
  return /* @__PURE__ */ c("a", { className: g, ...b, children: [
397
397
  o,
398
- f && /* @__PURE__ */ e(zt, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
398
+ f && /* @__PURE__ */ e(Dt, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
399
399
  ] });
400
- }, cr = {
400
+ }, dr = {
401
401
  sm: "h-control-sm px-3 text-sm",
402
402
  md: "h-control-md px-3 text-sm"
403
403
  };
404
- function ir({
404
+ function ur({
405
405
  options: t,
406
406
  value: r,
407
407
  onChange: n,
@@ -438,7 +438,7 @@ function ir({
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
- cr[s],
441
+ dr[s],
442
442
  p ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
443
443
  ),
444
444
  children: i.label
@@ -449,15 +449,15 @@ function ir({
449
449
  }
450
450
  );
451
451
  }
452
- const dr = {
452
+ const mr = {
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
- }, ur = {
456
+ }, fr = {
457
457
  sm: "h-control-sm w-7",
458
458
  md: "h-control-md w-8"
459
459
  };
460
- function at({
460
+ function ot({
461
461
  label: t,
462
462
  onClick: r,
463
463
  variant: n = "primary",
@@ -489,7 +489,7 @@ function at({
489
489
  }
490
490
  ),
491
491
  f && /* @__PURE__ */ e(
492
- st,
492
+ lt,
493
493
  {
494
494
  placement: i,
495
495
  disabled: m,
@@ -502,14 +502,14 @@ function at({
502
502
  className: d(
503
503
  "inline-flex items-center justify-center rounded-md rounded-l-none",
504
504
  "transition-colors duration-fast ease-out",
505
- dr[n],
506
- ur[s],
505
+ mr[n],
506
+ fr[s],
507
507
  m && "cursor-not-allowed opacity-50"
508
508
  ),
509
- children: /* @__PURE__ */ e(Ie, { className: "size-icon-md" })
509
+ children: /* @__PURE__ */ e(Oe, { className: "size-icon-md" })
510
510
  }
511
511
  ),
512
- children: (g) => /* @__PURE__ */ e(Le, { children: l.map((b) => /* @__PURE__ */ c(
512
+ children: (g) => /* @__PURE__ */ e(Ee, { children: l.map((b) => /* @__PURE__ */ c(
513
513
  "button",
514
514
  {
515
515
  type: "button",
@@ -534,7 +534,7 @@ function at({
534
534
  ] })
535
535
  );
536
536
  }
537
- const fs = ({
537
+ const ks = ({
538
538
  commands: t,
539
539
  isOpen: r,
540
540
  onClose: n,
@@ -582,7 +582,7 @@ const fs = ({
582
582
  ref: g,
583
583
  children: [
584
584
  /* @__PURE__ */ c("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
585
- /* @__PURE__ */ e(Oe, { className: "w-4 h-4 text-text-muted shrink-0" }),
585
+ /* @__PURE__ */ e(Pe, { className: "w-4 h-4 text-text-muted shrink-0" }),
586
586
  /* @__PURE__ */ e(
587
587
  "input",
588
588
  {
@@ -613,7 +613,7 @@ const fs = ({
613
613
  children: [
614
614
  h.icon && /* @__PURE__ */ e("span", { className: "mr-3", children: h.icon }),
615
615
  /* @__PURE__ */ e("span", { className: "flex-grow", children: h.label }),
616
- h.subCommands && /* @__PURE__ */ e("span", { className: "text-text-muted", children: /* @__PURE__ */ e(Pe, { className: "w-4 h-4" }) })
616
+ h.subCommands && /* @__PURE__ */ e("span", { className: "text-text-muted", children: /* @__PURE__ */ e(je, { className: "w-4 h-4" }) })
617
617
  ]
618
618
  },
619
619
  h.id
@@ -638,13 +638,66 @@ const fs = ({
638
638
  ]
639
639
  }
640
640
  ) }) : null;
641
- }, lt = [
641
+ }, We = [
642
642
  "[&_[data-mention-id]]:bg-info-soft",
643
643
  "[&_[data-mention-id]]:text-info-fg",
644
644
  "[&_[data-mention-id]]:font-semibold",
645
645
  "[&_[data-mention-id]]:px-1",
646
646
  "[&_[data-mention-id]]:rounded-md"
647
- ].join(" "), _e = "data-mention-id", mr = /<[a-z][\s\S]*>/i, fr = [
647
+ ].join(" "), $e = "data-mention-id", Le = (t) => t.type === "text", hr = (t, r) => t.type === "element" && t.tagName === r, xr = (t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
648
+ function gr(t) {
649
+ if (!hr(t, "a")) return null;
650
+ const r = t.properties?.href, [n] = t.children ?? [];
651
+ return typeof r != "string" || !r.startsWith("mailto:") || !n || !Le(n) ? null : r === `mailto:${n.value}` ? n.value : null;
652
+ }
653
+ function br(t) {
654
+ const r = [], n = (s) => {
655
+ const a = r[r.length - 1];
656
+ a && Le(a) ? a.value += s : r.push({ type: "text", value: s });
657
+ };
658
+ for (const s of t) {
659
+ const a = gr(s);
660
+ a !== null ? n(a) : Le(s) ? n(s.value) : r.push(s);
661
+ }
662
+ return r;
663
+ }
664
+ function pr(t) {
665
+ return {
666
+ type: "element",
667
+ tagName: "span",
668
+ properties: { dataMentionId: t.id },
669
+ children: [{ type: "text", value: `@${t.name}` }]
670
+ };
671
+ }
672
+ function vr(t, r, n) {
673
+ const s = [];
674
+ let a = 0;
675
+ n.lastIndex = 0;
676
+ let l = n.exec(t);
677
+ for (; l; ) {
678
+ l.index > a && s.push({ type: "text", value: t.slice(a, l.index) });
679
+ const o = l[0].slice(1), u = r.find((i) => i.name === o);
680
+ s.push(u ? pr(u) : { type: "text", value: l[0] }), a = n.lastIndex, l = n.exec(t);
681
+ }
682
+ return a < t.length && s.push({ type: "text", value: t.slice(a) }), s;
683
+ }
684
+ function ct(t, r, n) {
685
+ if (!t.children) return;
686
+ const s = br(t.children), a = [];
687
+ for (const l of s)
688
+ Le(l) ? a.push(...vr(l.value, r, n)) : (ct(l, r, n), a.push(l));
689
+ t.children = a;
690
+ }
691
+ function yr(t) {
692
+ const r = t.filter((s) => s.name), n = new RegExp(
693
+ `@(?:${[...r].sort((s, a) => a.name.length - s.name.length).map((s) => xr(s.name)).join("|")})`,
694
+ "g"
695
+ );
696
+ return () => (s) => {
697
+ r.length !== 0 && ct(s, r, n);
698
+ };
699
+ }
700
+ const Nr = /<[a-z][\s\S]*>/i, wr = [
648
701
  "[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
649
702
  "[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
650
703
  "[&_strong]:font-semibold [&_em]:italic",
@@ -660,16 +713,24 @@ const fs = ({
660
713
  "[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
661
714
  "[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1",
662
715
  // A mention chip is stored as a bare `data-mention-id` span, so its look lives here.
663
- lt
664
- ].join(" "), hr = {
716
+ We
717
+ ].join(" ");
718
+ function kr(t, r) {
719
+ if (!t?.startsWith("mailto:")) return !1;
720
+ const n = typeof r == "string" ? r : null;
721
+ return n !== null && t === `mailto:${n}`;
722
+ }
723
+ const Cr = {
665
724
  p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
666
- a: (t) => /* @__PURE__ */ e(
725
+ a: ({ href: t, children: r, ...n }) => kr(t, r) ? /* @__PURE__ */ e(Ee, { children: r }) : /* @__PURE__ */ e(
667
726
  "a",
668
727
  {
669
728
  className: "text-accent underline underline-offset-2 hover:opacity-80",
670
729
  target: "_blank",
671
730
  rel: "noopener noreferrer",
672
- ...t
731
+ href: t,
732
+ ...n,
733
+ children: r
673
734
  }
674
735
  ),
675
736
  strong: (t) => /* @__PURE__ */ e("strong", { className: "font-semibold", ...t }),
@@ -692,42 +753,50 @@ const fs = ({
692
753
  th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
693
754
  td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
694
755
  };
695
- function Me({ text: t, className: r, as: n }) {
696
- const s = t ?? "";
697
- return (n ? n === "html" : mr.test(s)) ? /* @__PURE__ */ e(
756
+ function ze({ text: t, className: r, as: n, mentions: s }) {
757
+ const a = t ?? "";
758
+ return (n ? n === "html" : Nr.test(a)) ? /* @__PURE__ */ e(
698
759
  "div",
699
760
  {
700
- className: d("break-words", fr, r),
761
+ className: d("break-words", wr, r),
701
762
  dangerouslySetInnerHTML: {
702
- __html: Ue.sanitize(s, { ADD_ATTR: ["target", "rel", _e] })
763
+ __html: Ve.sanitize(a, { ADD_ATTR: ["target", "rel", $e] })
703
764
  }
704
765
  }
705
- ) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Wt, { remarkPlugins: [Gt], components: hr, children: s }) });
766
+ ) : /* @__PURE__ */ e("div", { className: d("break-words", We, r), children: /* @__PURE__ */ e(
767
+ Jt,
768
+ {
769
+ remarkPlugins: [Yt],
770
+ rehypePlugins: s?.length ? [yr(s)] : void 0,
771
+ components: Cr,
772
+ children: a
773
+ }
774
+ ) });
706
775
  }
707
- const xr = {
776
+ const Sr = {
708
777
  info: "text-info-fg",
709
778
  success: "text-success-fg",
710
779
  warning: "text-warning-fg",
711
780
  destructive: "text-danger-fg"
712
- }, gr = {
781
+ }, Er = {
713
782
  info: "bg-info-soft border-info-border",
714
783
  success: "bg-success-soft border-success-border",
715
784
  warning: "bg-warning-soft border-warning-border",
716
785
  destructive: "bg-danger-soft border-danger-border"
717
- }, br = {
786
+ }, Tr = {
718
787
  1: "grid-cols-1",
719
788
  2: "grid-cols-2",
720
789
  3: "grid-cols-3",
721
790
  4: "grid-cols-4"
722
791
  };
723
- function pr({ block: t }) {
792
+ function Mr({ block: t }) {
724
793
  switch (t.type) {
725
794
  case "heading":
726
795
  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 });
727
796
  case "paragraph":
728
- return /* @__PURE__ */ e(Me, { as: "markdown", text: t.text, className: "text-sm text-text" });
797
+ return /* @__PURE__ */ e(ze, { as: "markdown", text: t.text, className: "text-sm text-text" });
729
798
  case "quote":
730
- return /* @__PURE__ */ e("blockquote", { className: "border-l-2 border-border pl-3.5", children: /* @__PURE__ */ e(Me, { as: "markdown", text: t.text, className: "text-sm text-text-muted" }) });
799
+ return /* @__PURE__ */ e("blockquote", { className: "border-l-2 border-border pl-3.5", children: /* @__PURE__ */ e(ze, { as: "markdown", text: t.text, className: "text-sm text-text-muted" }) });
731
800
  case "code":
732
801
  return /* @__PURE__ */ e("pre", { className: "overflow-x-auto rounded-lg bg-surface-sunk p-3 text-xs", children: /* @__PURE__ */ e("code", { className: "font-mono", children: t.text }) });
733
802
  case "divider":
@@ -746,7 +815,7 @@ function pr({ block: t }) {
746
815
  n.lead,
747
816
  " "
748
817
  ] }),
749
- /* @__PURE__ */ e(Me, { as: "markdown", text: n.text, className: "inline" })
818
+ /* @__PURE__ */ e(ze, { as: "markdown", text: n.text, className: "inline" })
750
819
  ] }, s))
751
820
  }
752
821
  );
@@ -780,13 +849,13 @@ function pr({ block: t }) {
780
849
  t.caption && /* @__PURE__ */ e("figcaption", { className: "pt-2 text-xs italic text-text-subtle", children: t.caption })
781
850
  ] });
782
851
  case "kpi":
783
- return /* @__PURE__ */ e("div", { className: d("grid gap-3", br[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: [
852
+ return /* @__PURE__ */ e("div", { className: d("grid gap-3", Tr[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: [
784
853
  /* @__PURE__ */ e(
785
854
  "div",
786
855
  {
787
856
  className: d(
788
857
  "text-2xl font-semibold tracking-tight",
789
- r.tone ? xr[r.tone] : "text-text"
858
+ r.tone ? Sr[r.tone] : "text-text"
790
859
  ),
791
860
  children: r.value
792
861
  }
@@ -794,15 +863,15 @@ function pr({ block: t }) {
794
863
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r.label })
795
864
  ] }, n)) });
796
865
  case "callout":
797
- return /* @__PURE__ */ c("div", { className: d("rounded-lg border px-4 py-3", gr[t.tone]), children: [
866
+ return /* @__PURE__ */ c("div", { className: d("rounded-lg border px-4 py-3", Er[t.tone]), children: [
798
867
  t.title && /* @__PURE__ */ e("div", { className: "pb-0.5 text-sm font-semibold text-text", children: t.title }),
799
- /* @__PURE__ */ e(Me, { as: "markdown", text: t.text, className: "text-sm text-text" })
868
+ /* @__PURE__ */ e(ze, { as: "markdown", text: t.text, className: "text-sm text-text" })
800
869
  ] });
801
870
  default:
802
871
  return null;
803
872
  }
804
873
  }
805
- function hs({ blocks: t, runtime: r = "inert", className: n }) {
874
+ function Cs({ blocks: t, runtime: r = "inert", className: n }) {
806
875
  return r !== "inert" ? /* @__PURE__ */ c(
807
876
  "div",
808
877
  {
@@ -819,11 +888,11 @@ function hs({ blocks: t, runtime: r = "inert", className: n }) {
819
888
  ] })
820
889
  ]
821
890
  }
822
- ) : /* @__PURE__ */ e("article", { className: d("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(pr, { block: s }, s.block_id ?? a)) });
891
+ ) : /* @__PURE__ */ e("article", { className: d("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(Mr, { block: s }, s.block_id ?? a)) });
823
892
  }
824
- function xs({
893
+ function Ss({
825
894
  title: t,
826
- icon: r = /* @__PURE__ */ e(At, { className: "size-icon-md", "aria-hidden": !0 }),
895
+ icon: r = /* @__PURE__ */ e(_t, { className: "size-icon-md", "aria-hidden": !0 }),
827
896
  action: n,
828
897
  children: s,
829
898
  className: a,
@@ -849,53 +918,53 @@ function xs({
849
918
  }
850
919
  );
851
920
  }
852
- const vr = 5;
853
- function yr(t) {
921
+ const zr = 5;
922
+ function Ar(t) {
854
923
  let r = 2166136261;
855
924
  for (let n = 0; n < t.length; n++)
856
925
  r ^= t.charCodeAt(n), r = Math.imul(r, 16777619);
857
926
  return r >>> 0;
858
927
  }
859
- function ot(t) {
928
+ function it(t) {
860
929
  const r = (t ?? "").trim().toLowerCase();
861
- return r ? yr(r) % vr + 1 : 1;
930
+ return r ? Ar(r) % zr + 1 : 1;
862
931
  }
863
- const Nr = {
932
+ const Dr = {
864
933
  1: "bg-cat-1-soft text-cat-1-fg",
865
934
  2: "bg-cat-2-soft text-cat-2-fg",
866
935
  3: "bg-cat-3-soft text-cat-3-fg",
867
936
  4: "bg-cat-4-soft text-cat-4-fg",
868
937
  5: "bg-cat-5-soft text-cat-5-fg"
869
- }, wr = {
938
+ }, _r = {
870
939
  1: "bg-cat-1",
871
940
  2: "bg-cat-2",
872
941
  3: "bg-cat-3",
873
942
  4: "bg-cat-4",
874
943
  5: "bg-cat-5"
875
944
  };
876
- function ct(t) {
877
- return Nr[ot(t)];
945
+ function dt(t) {
946
+ return Dr[it(t)];
878
947
  }
879
- function gs(t) {
880
- return wr[ot(t)];
948
+ function Es(t) {
949
+ return _r[it(t)];
881
950
  }
882
- const kr = {
951
+ const $r = {
883
952
  default: "bg-avatar text-avatar-fg",
884
953
  in: "bg-avatar-in text-avatar-in-fg",
885
954
  out: "bg-accent text-accent-fg",
886
955
  note: "bg-avatar-note text-avatar-note-fg"
887
- }, Cr = {
956
+ }, Lr = {
888
957
  xs: "w-5 h-5 text-xs",
889
958
  sm: "w-6 h-6 text-xs",
890
959
  md: "w-7 h-7 text-base",
891
960
  lg: "w-9 h-9 text-sm"
892
961
  };
893
- function Sr(t) {
962
+ function Ir(t) {
894
963
  if (!t) return "?";
895
964
  const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
896
965
  return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
897
966
  }
898
- const it = ({
967
+ const ut = ({
899
968
  name: t,
900
969
  src: r,
901
970
  tone: n = "default",
@@ -910,8 +979,8 @@ const it = ({
910
979
  "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none",
911
980
  // `identity` is seeded on the name, so the same person keeps their colour
912
981
  // wherever they appear; the fixed tones stay as they were.
913
- n === "identity" ? ct(t) : kr[n],
914
- Cr[s],
982
+ n === "identity" ? dt(t) : $r[n],
983
+ Lr[s],
915
984
  a
916
985
  );
917
986
  return r && !o ? /* @__PURE__ */ e(
@@ -923,8 +992,8 @@ const it = ({
923
992
  className: d(i, "object-cover"),
924
993
  onError: () => u(!0)
925
994
  }
926
- ) : /* @__PURE__ */ e("span", { className: i, title: l ?? t, "aria-label": t, children: Sr(t) });
927
- }, Ye = "ring-surface", Er = "ring-surface-accent", bs = ({
995
+ ) : /* @__PURE__ */ e("span", { className: i, title: l ?? t, "aria-label": t, children: Ir(t) });
996
+ }, Ze = "ring-surface", Or = "ring-surface-accent", Ts = ({
928
997
  people: t,
929
998
  max: r = 4,
930
999
  size: n = "sm",
@@ -934,7 +1003,7 @@ const it = ({
934
1003
  const a = t.slice(0, r), l = t.length - a.length;
935
1004
  return /* @__PURE__ */ c("span", { className: d("inline-flex items-center", s), children: [
936
1005
  a.map((o, u) => /* @__PURE__ */ e(
937
- it,
1006
+ ut,
938
1007
  {
939
1008
  name: o.name,
940
1009
  src: o.src,
@@ -942,7 +1011,7 @@ const it = ({
942
1011
  title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
943
1012
  className: d(
944
1013
  u > 0 && "-ml-2",
945
- o.owner ? Er : Ye,
1014
+ o.owner ? Or : Ze,
946
1015
  o.seen === !1 && "opacity-40"
947
1016
  )
948
1017
  },
@@ -956,7 +1025,7 @@ const it = ({
956
1025
  // in the row rather than a gap at the end of it.
957
1026
  "inline-flex items-center justify-center rounded-full shrink-0 -ml-2 font-semibold bg-avatar text-avatar-fg",
958
1027
  n === "xs" ? "w-5 h-5 text-xs" : n === "md" ? "w-7 h-7 text-xs" : n === "lg" ? "w-9 h-9 text-xs" : "w-6 h-6 text-xs",
959
- Ye
1028
+ Ze
960
1029
  ),
961
1030
  children: [
962
1031
  "+",
@@ -965,18 +1034,18 @@ const it = ({
965
1034
  }
966
1035
  )
967
1036
  ] });
968
- }, Tr = {
1037
+ }, Pr = {
969
1038
  neutral: "bg-surface-sunk",
970
1039
  out: "bg-bubble-out-soft",
971
1040
  note: "bg-note-soft",
972
1041
  assistant: "bg-assistant-soft"
973
- }, Mr = {
1042
+ }, jr = {
974
1043
  neutral: "text-text",
975
1044
  out: "text-text",
976
1045
  note: "text-note",
977
1046
  assistant: "text-text"
978
1047
  };
979
- function ps({
1048
+ function Ms({
980
1049
  avatar: t,
981
1050
  title: r,
982
1051
  context: n,
@@ -993,7 +1062,7 @@ function ps({
993
1062
  /* @__PURE__ */ c(
994
1063
  "div",
995
1064
  {
996
- className: d("min-w-0 flex-1 overflow-hidden rounded-lg px-4 py-3.5", Tr[l]),
1065
+ className: d("min-w-0 flex-1 overflow-hidden rounded-lg px-4 py-3.5", Pr[l]),
997
1066
  children: [
998
1067
  /* @__PURE__ */ c("div", { className: "flex items-baseline gap-2", children: [
999
1068
  /* @__PURE__ */ e(
@@ -1002,7 +1071,7 @@ function ps({
1002
1071
  className: d(
1003
1072
  "min-w-0 truncate text-md font-semibold",
1004
1073
  !n && "flex-1",
1005
- Mr[l]
1074
+ jr[l]
1006
1075
  ),
1007
1076
  children: r
1008
1077
  }
@@ -1022,15 +1091,15 @@ function ps({
1022
1091
  u
1023
1092
  ] });
1024
1093
  }
1025
- const vs = "hover:bg-surface-track";
1026
- function ys({
1094
+ const zs = "hover:bg-surface-track";
1095
+ function As({
1027
1096
  name: t,
1028
1097
  src: r,
1029
1098
  tone: n = "in"
1030
1099
  }) {
1031
- return /* @__PURE__ */ e(it, { name: t, src: r, tone: n, size: "sm" });
1100
+ return /* @__PURE__ */ e(ut, { name: t, src: r, tone: n, size: "sm" });
1032
1101
  }
1033
- function Ns({
1102
+ function Ds({
1034
1103
  icon: t,
1035
1104
  tone: r = "neutral",
1036
1105
  title: n
@@ -1047,11 +1116,11 @@ function Ns({
1047
1116
  }
1048
1117
  );
1049
1118
  }
1050
- function ws({ children: t, className: r }) {
1119
+ function _s({ children: t, className: r }) {
1051
1120
  return /* @__PURE__ */ e("div", { className: d("flex items-center gap-2.5 rounded-md bg-surface px-3 py-2.5", r), children: t });
1052
1121
  }
1053
- function ks({ icon: t, text: r, time: n, joinUrl: s, joinLabel: a }) {
1054
- const l = Zt(t);
1122
+ function $s({ icon: t, text: r, time: n, joinUrl: s, joinLabel: a }) {
1123
+ const l = er(t);
1055
1124
  return /* @__PURE__ */ c("div", { className: "flex items-center gap-2 py-1.5 pl-10.5 text-xs text-text-subtle", children: [
1056
1125
  l && /* @__PURE__ */ e(Z, { icon: l, size: "sm", color: "current" }),
1057
1126
  /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: r }),
@@ -1067,49 +1136,49 @@ function ks({ icon: t, text: r, time: n, joinUrl: s, joinLabel: a }) {
1067
1136
  children: [
1068
1137
  a ?? "Join",
1069
1138
  " ",
1070
- /* @__PURE__ */ e(Z, { icon: nt, size: "xs" })
1139
+ /* @__PURE__ */ e(Z, { icon: at, size: "xs" })
1071
1140
  ]
1072
1141
  }
1073
1142
  )
1074
1143
  ] });
1075
1144
  }
1076
- const ze = {
1145
+ const Ae = {
1077
1146
  mail: { fg: "text-channel-mail-fg", bg: "bg-channel-mail-soft" },
1078
1147
  wa: { fg: "text-channel-whatsapp-fg", bg: "bg-channel-whatsapp-soft" },
1079
1148
  chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
1080
1149
  tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
1081
1150
  note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
1082
- }, zr = {
1151
+ }, Rr = {
1083
1152
  sm: "size-avatar-xs rounded-sm text-xs",
1084
1153
  md: "size-avatar-sm rounded-md text-xs",
1085
1154
  lg: "size-avatar-lg rounded-md text-base"
1086
1155
  };
1087
- function Cs({
1156
+ function Ls({
1088
1157
  channel: t,
1089
1158
  children: r,
1090
1159
  size: n = "md",
1091
1160
  className: s,
1092
1161
  title: a
1093
1162
  }) {
1094
- const l = t in ze ? ze[t] : void 0;
1163
+ const l = t in Ae ? Ae[t] : void 0;
1095
1164
  return /* @__PURE__ */ e(
1096
1165
  "span",
1097
1166
  {
1098
1167
  title: a,
1099
1168
  className: d(
1100
1169
  "inline-flex shrink-0 items-center justify-center font-bold",
1101
- zr[n],
1170
+ Rr[n],
1102
1171
  // An undeclared channel used to collapse onto the neutral "note" tone,
1103
1172
  // which is also what a real internal note looks like. Deriving from the
1104
1173
  // key keeps it distinguishable and keeps `note` meaning `note`.
1105
- l ? d(l.fg, l.bg) : t ? ct(t) : d(ze.note.fg, ze.note.bg),
1174
+ l ? d(l.fg, l.bg) : t ? dt(t) : d(Ae.note.fg, Ae.note.bg),
1106
1175
  s
1107
1176
  ),
1108
1177
  children: r
1109
1178
  }
1110
1179
  );
1111
1180
  }
1112
- const Ss = ({
1181
+ const Is = ({
1113
1182
  src: t,
1114
1183
  alt: r,
1115
1184
  size: n = "md",
@@ -1168,7 +1237,7 @@ const Ss = ({
1168
1237
  "absolute inset-0 flex items-center justify-center",
1169
1238
  "text-text-muted"
1170
1239
  ), O = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), H = /* @__PURE__ */ c("div", { className: "text-center", children: [
1171
- /* @__PURE__ */ e(Z, { icon: Dt, size: "lg", className: "mx-auto mb-1" }),
1240
+ /* @__PURE__ */ e(Z, { icon: $t, size: "lg", className: "mx-auto mb-1" }),
1172
1241
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
1173
1242
  ] });
1174
1243
  return /* @__PURE__ */ c("div", { className: F, children: [
@@ -1186,28 +1255,28 @@ const Ss = ({
1186
1255
  w && l && /* @__PURE__ */ e("div", { className: I, children: i || O }),
1187
1256
  h && o && /* @__PURE__ */ e("div", { className: I, children: p || H })
1188
1257
  ] });
1189
- }, Ar = {
1258
+ }, Fr = {
1190
1259
  default: "text-text",
1191
1260
  urgent: "text-danger-fg",
1192
1261
  success: "text-success-fg"
1193
1262
  };
1194
- function Es({ value: t, label: r, tone: n = "default", className: s, ...a }) {
1263
+ function Os({ value: t, label: r, tone: n = "default", className: s, ...a }) {
1195
1264
  return /* @__PURE__ */ c("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
1196
- /* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Ar[n]), children: t }),
1265
+ /* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Fr[n]), children: t }),
1197
1266
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
1198
1267
  ] });
1199
1268
  }
1200
- const Dr = {
1269
+ const Br = {
1201
1270
  sm: "size-checkbox-sm",
1202
1271
  md: "size-checkbox",
1203
1272
  lg: "size-checkbox-lg",
1204
1273
  full: "size-checkbox"
1205
- }, _r = {
1274
+ }, Hr = {
1206
1275
  sm: "min-h-control-sm",
1207
1276
  md: "min-h-control-md",
1208
1277
  lg: "min-h-control-lg",
1209
1278
  full: "min-h-control-md"
1210
- }, $r = {
1279
+ }, qr = {
1211
1280
  sm: "text-sm",
1212
1281
  md: "text-base",
1213
1282
  lg: "text-md",
@@ -1234,7 +1303,7 @@ const Dr = {
1234
1303
  return le.useEffect(() => {
1235
1304
  w.current && (w.current.indeterminate = a);
1236
1305
  }, [a]), /* @__PURE__ */ c("div", { className: d("flex flex-col", l), children: [
1237
- /* @__PURE__ */ c("div", { className: d("flex items-center gap-3", _r[s]), children: [
1306
+ /* @__PURE__ */ c("div", { className: d("flex items-center gap-3", Hr[s]), children: [
1238
1307
  /* @__PURE__ */ e(
1239
1308
  "input",
1240
1309
  {
@@ -1251,7 +1320,7 @@ const Dr = {
1251
1320
  "transition-colors duration-fast ease-out",
1252
1321
  "focus-visible:outline-none focus-visible:focus-ring",
1253
1322
  "disabled:cursor-not-allowed disabled:bg-surface-hover",
1254
- Dr[s],
1323
+ Br[s],
1255
1324
  b ? "border-danger-border" : "border-border-strong",
1256
1325
  u
1257
1326
  ),
@@ -1266,7 +1335,7 @@ const Dr = {
1266
1335
  className: d(
1267
1336
  "cursor-pointer",
1268
1337
  b ? "text-danger-fg" : "text-text",
1269
- $r[s],
1338
+ qr[s],
1270
1339
  o
1271
1340
  ),
1272
1341
  children: t
@@ -1280,7 +1349,7 @@ const Dr = {
1280
1349
  }
1281
1350
  );
1282
1351
  we.displayName = "Checkbox";
1283
- function Ts({
1352
+ function Ps({
1284
1353
  icon: t,
1285
1354
  onClick: r,
1286
1355
  children: n
@@ -1303,7 +1372,7 @@ function Ts({
1303
1372
  }
1304
1373
  );
1305
1374
  }
1306
- function Ms({
1375
+ function js({
1307
1376
  items: t,
1308
1377
  getRowKey: r,
1309
1378
  variant: n = "divided",
@@ -1334,7 +1403,7 @@ function Ms({
1334
1403
  className: U,
1335
1404
  "aria-label": te
1336
1405
  }) {
1337
- const [W, y] = le.useState(
1406
+ const [K, y] = le.useState(
1338
1407
  () => Object.fromEntries((g ?? []).filter((S) => S.defaultCollapsed).map((S) => [S.id, !0]))
1339
1408
  ), x = le.useRef(null), E = (S) => {
1340
1409
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(S.key)) return;
@@ -1378,7 +1447,7 @@ function Ms({
1378
1447
  )) });
1379
1448
  if (t.length === 0 && I)
1380
1449
  return /* @__PURE__ */ e("div", { className: ce, children: I });
1381
- const ie = t.length > 0 && k.length === t.length, G = k.length > 0 && !ie, K = (S, M, X) => {
1450
+ const ie = t.length > 0 && k.length === t.length, G = k.length > 0 && !ie, W = (S, M, X) => {
1382
1451
  const q = i?.(S, M) ?? !1, N = p?.(S, M) ?? !1, R = m?.(S, M) ?? !1, re = C && T(S);
1383
1452
  return /* @__PURE__ */ c(
1384
1453
  "li",
@@ -1434,7 +1503,7 @@ function Ms({
1434
1503
  );
1435
1504
  }, j = (() => {
1436
1505
  if (!f)
1437
- return t.map((q, N) => K(q, N, N === 0));
1506
+ return t.map((q, N) => W(q, N, N === 0));
1438
1507
  const S = /* @__PURE__ */ new Map();
1439
1508
  t.forEach((q, N) => {
1440
1509
  const R = f(q, N);
@@ -1445,7 +1514,7 @@ function Ms({
1445
1514
  ...M.filter((q) => S.has(q.id)),
1446
1515
  ...[...S.keys()].filter((q) => !M.some((N) => N.id === q)).map((q) => ({ id: q }))
1447
1516
  ].flatMap((q, N) => {
1448
- const R = S.get(q.id) ?? [], re = v && W[q.id], oe = q.title ?? q.id, pe = q.count ?? R.length, ye = /* @__PURE__ */ e(
1517
+ const R = S.get(q.id) ?? [], re = v && K[q.id], oe = q.title ?? q.id, pe = q.count ?? R.length, ye = /* @__PURE__ */ e(
1449
1518
  "li",
1450
1519
  {
1451
1520
  onClick: v ? () => y((he) => ({ ...he, [q.id]: !he[q.id] })) : void 0,
@@ -1464,9 +1533,9 @@ function Ms({
1464
1533
  children: b ? b(
1465
1534
  q,
1466
1535
  R.map((he) => he.item)
1467
- ) : /* @__PURE__ */ c(Le, { children: [
1536
+ ) : /* @__PURE__ */ c(Ee, { children: [
1468
1537
  v && /* @__PURE__ */ e(
1469
- Pe,
1538
+ je,
1470
1539
  {
1471
1540
  "aria-hidden": !0,
1472
1541
  className: d(
@@ -1492,7 +1561,7 @@ function Ms({
1492
1561
  );
1493
1562
  return re ? [ye] : [
1494
1563
  ye,
1495
- ...R.map(({ item: he, index: xe }, je) => K(he, xe, je === 0))
1564
+ ...R.map(({ item: he, index: xe }, Re) => W(he, xe, Re === 0))
1496
1565
  ];
1497
1566
  });
1498
1567
  })();
@@ -1543,7 +1612,7 @@ function Ms({
1543
1612
  ] }) })
1544
1613
  ] });
1545
1614
  }
1546
- function zs({
1615
+ function Rs({
1547
1616
  side: t,
1548
1617
  continued: r = !1,
1549
1618
  tone: n = "default",
@@ -1576,7 +1645,7 @@ function zs({
1576
1645
  }
1577
1646
  );
1578
1647
  }
1579
- function As({ icon: t, label: r, unset: n, className: s }) {
1648
+ function Fs({ icon: t, label: r, unset: n, className: s }) {
1580
1649
  return /* @__PURE__ */ c(
1581
1650
  "span",
1582
1651
  {
@@ -1592,11 +1661,11 @@ function As({ icon: t, label: r, unset: n, className: s }) {
1592
1661
  }
1593
1662
  );
1594
1663
  }
1595
- function Ds() {
1664
+ function Bs() {
1596
1665
  return /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "shrink-0 text-text-disabled", children: "·" });
1597
1666
  }
1598
1667
  const fe = ({ className: t }) => /* @__PURE__ */ e("span", { className: d("block rounded-xs bg-surface-hover", t) });
1599
- function Lr({
1668
+ function Ur({
1600
1669
  shape: t,
1601
1670
  rows: r,
1602
1671
  columns: n
@@ -1663,7 +1732,7 @@ function Lr({
1663
1732
  ] });
1664
1733
  }
1665
1734
  }
1666
- const Ir = {
1735
+ const Vr = {
1667
1736
  text: 2,
1668
1737
  table: 8,
1669
1738
  list: 6,
@@ -1671,7 +1740,7 @@ const Ir = {
1671
1740
  menu: 4,
1672
1741
  cards: 2
1673
1742
  };
1674
- function Ve({
1743
+ function Ke({
1675
1744
  variant: t = "page",
1676
1745
  shape: r,
1677
1746
  rows: n,
@@ -1682,10 +1751,10 @@ function Ve({
1682
1751
  tableColumns: u,
1683
1752
  tableRows: i
1684
1753
  }) {
1685
- const p = r ?? (o ? "table" : "text"), m = n ?? i ?? Ir[p], f = s ?? u ?? (p === "cards" ? 3 : 6), g = /* @__PURE__ */ e("div", { className: d("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(Lr, { shape: p, rows: m, columns: f }) });
1754
+ const p = r ?? (o ? "table" : "text"), m = n ?? i ?? Vr[p], f = s ?? u ?? (p === "cards" ? 3 : 6), g = /* @__PURE__ */ e("div", { className: d("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(Ur, { shape: p, rows: m, columns: f }) });
1686
1755
  return t === "inline" ? g : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: g });
1687
1756
  }
1688
- const Or = ({
1757
+ const Wr = ({
1689
1758
  surface: t = !1,
1690
1759
  title: r,
1691
1760
  subtitle: n,
@@ -1734,7 +1803,7 @@ const Or = ({
1734
1803
  {
1735
1804
  variant: "ghost",
1736
1805
  onClick: p,
1737
- leftIcon: /* @__PURE__ */ e(Z, { icon: Ee, size: "md" }),
1806
+ leftIcon: /* @__PURE__ */ e(Z, { icon: Te, size: "md" }),
1738
1807
  iconOnly: !0
1739
1808
  }
1740
1809
  ),
@@ -1765,7 +1834,7 @@ const Or = ({
1765
1834
  ),
1766
1835
  n && /* @__PURE__ */ e("span", { className: "shrink-0 text-base text-text-muted truncate", children: n }),
1767
1836
  m && /* @__PURE__ */ e(
1768
- _t,
1837
+ Lt,
1769
1838
  {
1770
1839
  size: 15,
1771
1840
  onClick: C,
@@ -1791,7 +1860,7 @@ const Or = ({
1791
1860
  ] }) }),
1792
1861
  a.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: a.map(
1793
1862
  (D) => D.render ? /* @__PURE__ */ e(le.Fragment, { children: D.render() }, D.id) : D.splitOptions && D.splitOptions.length > 0 ? /* @__PURE__ */ e(
1794
- at,
1863
+ ot,
1795
1864
  {
1796
1865
  label: D.label,
1797
1866
  onClick: D.onClick,
@@ -1820,11 +1889,11 @@ const Or = ({
1820
1889
  ]
1821
1890
  }
1822
1891
  );
1823
- }, Pr = {
1892
+ }, Kr = {
1824
1893
  none: "",
1825
1894
  sm: "px-3 pb-3 pt-1",
1826
1895
  md: "px-5 pb-5 pt-1.5"
1827
- }, _s = ({
1896
+ }, Hs = ({
1828
1897
  title: t,
1829
1898
  subtitle: r,
1830
1899
  meta: n,
@@ -1843,7 +1912,7 @@ const Or = ({
1843
1912
  contentClassName: v,
1844
1913
  children: h
1845
1914
  }) => {
1846
- const C = p ? /* @__PURE__ */ e(Ve, { variant: "inline", shape: m }) : f ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: f }) : h;
1915
+ const C = p ? /* @__PURE__ */ e(Ke, { variant: "inline", shape: m }) : f ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: f }) : h;
1847
1916
  return /* @__PURE__ */ c(
1848
1917
  "div",
1849
1918
  {
@@ -1857,7 +1926,7 @@ const Or = ({
1857
1926
  ),
1858
1927
  children: [
1859
1928
  /* @__PURE__ */ e(
1860
- Or,
1929
+ Wr,
1861
1930
  {
1862
1931
  surface: u,
1863
1932
  title: t,
@@ -1876,7 +1945,7 @@ const Or = ({
1876
1945
  {
1877
1946
  className: d(
1878
1947
  b && "min-h-0 flex-1 overflow-y-auto",
1879
- Pr[g],
1948
+ Kr[g],
1880
1949
  v
1881
1950
  ),
1882
1951
  children: C
@@ -1891,7 +1960,7 @@ const Or = ({
1891
1960
  className: n
1892
1961
  }) => t.length === 0 ? null : /* @__PURE__ */ e("div", { className: d("flex flex-wrap items-center gap-2", n), children: t.map(
1893
1962
  (s) => s.render ? /* @__PURE__ */ e(le.Fragment, { children: s.render() }, s.id) : s.splitOptions && s.splitOptions.length > 0 ? /* @__PURE__ */ e(
1894
- at,
1963
+ ot,
1895
1964
  {
1896
1965
  label: s.label,
1897
1966
  onClick: s.onClick,
@@ -1914,32 +1983,32 @@ const Or = ({
1914
1983
  },
1915
1984
  s.id
1916
1985
  )
1917
- ) }), jr = {
1986
+ ) }), Gr = {
1918
1987
  none: "p-0",
1919
1988
  sm: "p-2",
1920
1989
  md: "px-5 py-4",
1921
1990
  lg: "p-6"
1922
- }, $s = ({
1991
+ }, qs = ({
1923
1992
  actions: t = [],
1924
1993
  onBack: r,
1925
1994
  backLabel: n = "Back",
1926
1995
  className: s,
1927
1996
  padding: a = "md",
1928
1997
  children: l
1929
- }) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2", jr[a], s), children: [
1998
+ }) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2", Gr[a], s), children: [
1930
1999
  r && /* @__PURE__ */ e(
1931
2000
  ae,
1932
2001
  {
1933
2002
  variant: "secondary",
1934
2003
  onClick: r,
1935
2004
  "aria-label": n,
1936
- leftIcon: /* @__PURE__ */ e(Z, { icon: Ee, size: "sm" }),
2005
+ leftIcon: /* @__PURE__ */ e(Z, { icon: Te, size: "sm" }),
1937
2006
  iconOnly: !0
1938
2007
  }
1939
2008
  ),
1940
2009
  l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
1941
2010
  /* @__PURE__ */ e(ke, { actions: t, className: d(!l && "ml-auto") })
1942
- ] }), Ls = ({
2011
+ ] }), Us = ({
1943
2012
  label: t,
1944
2013
  meta: r,
1945
2014
  action: n,
@@ -1949,7 +2018,7 @@ const Or = ({
1949
2018
  r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
1950
2019
  n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
1951
2020
  ] });
1952
- function Is({
2021
+ function Vs({
1953
2022
  label: t,
1954
2023
  trailing: r,
1955
2024
  align: n = "center",
@@ -1963,11 +2032,11 @@ function Is({
1963
2032
  r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
1964
2033
  ] });
1965
2034
  }
1966
- const dt = rt(null), Os = dt.Provider;
1967
- function Rr() {
1968
- return St(dt);
2035
+ const mt = st(null), Ws = mt.Provider;
2036
+ function Jr() {
2037
+ return Tt(mt);
1969
2038
  }
1970
- function Ps() {
2039
+ function Ks() {
1971
2040
  const [t, r] = B(null), n = ge(
1972
2041
  () => ({
1973
2042
  setTrail: (s, a) => r((l) => a ? { ownerId: s, entry: a } : l && l.ownerId !== s ? l : null)
@@ -1976,13 +2045,13 @@ function Ps() {
1976
2045
  );
1977
2046
  return { trail: t?.entry ?? null, api: n };
1978
2047
  }
1979
- const Fr = {
2048
+ const Yr = {
1980
2049
  none: "",
1981
2050
  sm: "px-3 py-3",
1982
2051
  // Matches the frame header's own horizontal padding, so content lines up
1983
2052
  // with the title above it.
1984
2053
  md: "px-5 py-4"
1985
- }, js = ({
2054
+ }, Gs = ({
1986
2055
  children: t,
1987
2056
  actions: r = [],
1988
2057
  secondaryActions: n = [],
@@ -1996,7 +2065,7 @@ const Fr = {
1996
2065
  className: m,
1997
2066
  contentClassName: f
1998
2067
  }) => {
1999
- const g = Rr(), b = Ct(), w = se(a);
2068
+ const g = Jr(), b = Et(), w = se(a);
2000
2069
  w.current = a;
2001
2070
  const v = !!a, h = se(r);
2002
2071
  h.current = r;
@@ -2044,7 +2113,7 @@ const Fr = {
2044
2113
  variant: "ghost",
2045
2114
  onClick: () => w.current?.(),
2046
2115
  "aria-label": l,
2047
- leftIcon: /* @__PURE__ */ e(Z, { icon: Ee, size: "sm" }),
2116
+ leftIcon: /* @__PURE__ */ e(Z, { icon: Te, size: "sm" }),
2048
2117
  iconOnly: !0
2049
2118
  }
2050
2119
  ),
@@ -2054,7 +2123,7 @@ const Fr = {
2054
2123
  r.length > 0 && /* @__PURE__ */ e(ke, { actions: r })
2055
2124
  ] })
2056
2125
  ] }),
2057
- /* @__PURE__ */ e("div", { className: d("flex-1", Fr[p], f), children: u ? /* @__PURE__ */ e(Ve, { variant: "inline", shape: i }) : t }),
2126
+ /* @__PURE__ */ e("div", { className: d("flex-1", Yr[p], f), children: u ? /* @__PURE__ */ e(Ke, { variant: "inline", shape: i }) : t }),
2058
2127
  Y && /* @__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: [
2059
2128
  n.length > 0 && /* @__PURE__ */ e(ke, { actions: n, defaultVariant: "ghost" }),
2060
2129
  r.length > 0 && /* @__PURE__ */ e(ke, { actions: r, className: "ml-auto" })
@@ -2062,7 +2131,7 @@ const Fr = {
2062
2131
  ] })
2063
2132
  );
2064
2133
  };
2065
- function Rs({
2134
+ function Js({
2066
2135
  label: t,
2067
2136
  description: r,
2068
2137
  control: n,
@@ -2089,7 +2158,7 @@ function Rs({
2089
2158
  }
2090
2159
  );
2091
2160
  }
2092
- function Fs({
2161
+ function Ys({
2093
2162
  icon: t,
2094
2163
  title: r,
2095
2164
  description: n,
@@ -2109,7 +2178,7 @@ function Fs({
2109
2178
  /* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
2110
2179
  ] });
2111
2180
  }
2112
- function Bs({ label: t, dotColor: r, onClick: n, className: s }) {
2181
+ function Xs({ label: t, dotColor: r, onClick: n, className: s }) {
2113
2182
  return /* @__PURE__ */ c(
2114
2183
  "button",
2115
2184
  {
@@ -2129,12 +2198,12 @@ function Bs({ label: t, dotColor: r, onClick: n, className: s }) {
2129
2198
  }
2130
2199
  ),
2131
2200
  /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: t }),
2132
- /* @__PURE__ */ e(Z, { icon: nt, size: "xs", className: "opacity-70" })
2201
+ /* @__PURE__ */ e(Z, { icon: at, size: "xs", className: "opacity-70" })
2133
2202
  ]
2134
2203
  }
2135
2204
  );
2136
2205
  }
2137
- const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }), Hr = () => /* @__PURE__ */ e(Z, { icon: Ee, size: "md", color: "current" }), qr = () => /* @__PURE__ */ e(Z, { icon: Pe, size: "md", color: "current" }), He = be(
2206
+ const Xr = () => /* @__PURE__ */ e(Z, { icon: It, size: "md", color: "current" }), Zr = () => /* @__PURE__ */ e(Z, { icon: Te, size: "md", color: "current" }), Qr = () => /* @__PURE__ */ e(Z, { icon: je, size: "md", color: "current" }), qe = be(
2138
2207
  ({
2139
2208
  value: t,
2140
2209
  onChange: r,
@@ -2148,7 +2217,7 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2148
2217
  format: p = "MM/dd/yyyy",
2149
2218
  withTime: m = !1
2150
2219
  }, f) => {
2151
- const [g, b] = B(!1), [w, v] = B(() => t || /* @__PURE__ */ new Date()), h = se(null), C = se(null), k = Te(g, C);
2220
+ const [g, b] = B(!1), [w, v] = B(() => t || /* @__PURE__ */ new Date()), h = se(null), C = se(null), k = Me(g, C);
2152
2221
  Q(() => {
2153
2222
  const y = (x) => {
2154
2223
  h.current && !h.current.contains(x.target) && b(!1);
@@ -2201,7 +2270,7 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2201
2270
  "h-control-md w-full px-3 text-base": l === "full"
2202
2271
  },
2203
2272
  o
2204
- ), te = F(), W = [
2273
+ ), te = F(), K = [
2205
2274
  "January",
2206
2275
  "February",
2207
2276
  "March",
@@ -2238,7 +2307,7 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2238
2307
  onClick: () => !s && b(!g),
2239
2308
  disabled: s,
2240
2309
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-muted",
2241
- children: /* @__PURE__ */ e(Br, {})
2310
+ children: /* @__PURE__ */ e(Xr, {})
2242
2311
  }
2243
2312
  )
2244
2313
  ] }),
@@ -2249,13 +2318,13 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2249
2318
  className: "fixed z-overlay overflow-auto rounded-lg border border-border bg-surface p-4 shadow-overlay min-w-panel",
2250
2319
  children: [
2251
2320
  /* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
2252
- /* @__PURE__ */ e("button", { onClick: I, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Hr, {}) }),
2321
+ /* @__PURE__ */ e("button", { onClick: I, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Zr, {}) }),
2253
2322
  /* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
2254
- W[w.getMonth()],
2323
+ K[w.getMonth()],
2255
2324
  " ",
2256
2325
  w.getFullYear()
2257
2326
  ] }),
2258
- /* @__PURE__ */ e("button", { onClick: O, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(qr, {}) })
2327
+ /* @__PURE__ */ e("button", { onClick: O, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Qr, {}) })
2259
2328
  ] }),
2260
2329
  /* @__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)) }),
2261
2330
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: te.map((y, x) => {
@@ -2305,7 +2374,7 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2305
2374
  )
2306
2375
  ] });
2307
2376
  }
2308
- ), ut = be(
2377
+ ), ft = be(
2309
2378
  ({
2310
2379
  value: t,
2311
2380
  onValueChange: r,
@@ -2330,7 +2399,7 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2330
2399
  l
2331
2400
  ),
2332
2401
  children: [
2333
- /* @__PURE__ */ e(Z, { icon: Oe, size: "md", color: "current", className: "shrink-0" }),
2402
+ /* @__PURE__ */ e(Z, { icon: Pe, size: "md", color: "current", className: "shrink-0" }),
2334
2403
  /* @__PURE__ */ e(
2335
2404
  "input",
2336
2405
  {
@@ -2369,8 +2438,8 @@ const Br = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
2369
2438
  }
2370
2439
  )
2371
2440
  );
2372
- ut.displayName = "SearchField";
2373
- const Ur = ({
2441
+ ft.displayName = "SearchField";
2442
+ const en = ({
2374
2443
  trigger: t,
2375
2444
  options: r,
2376
2445
  value: n,
@@ -2381,7 +2450,7 @@ const Ur = ({
2381
2450
  showCheck: u = !0,
2382
2451
  header: i
2383
2452
  }) => {
2384
- const [p, m] = B(!1), [f, g] = B(null), [b, w] = B({ top: 0, left: 0 }), v = se(null), h = se(null), C = se(null), k = se(null), P = Te(p, h, { placement: a }), D = se(null), Y = () => Array.from(
2453
+ const [p, m] = B(!1), [f, g] = B(null), [b, w] = B({ top: 0, left: 0 }), v = se(null), h = se(null), C = se(null), k = se(null), P = Me(p, h, { placement: a }), D = se(null), Y = () => Array.from(
2385
2454
  k.current?.querySelectorAll(
2386
2455
  "button[data-option-value]:not(:disabled)"
2387
2456
  ) ?? []
@@ -2442,7 +2511,7 @@ const Ur = ({
2442
2511
  }, te = d(
2443
2512
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
2444
2513
  "max-h-60 overflow-auto"
2445
- ), W = d(
2514
+ ), K = d(
2446
2515
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
2447
2516
  "max-h-60 overflow-auto"
2448
2517
  );
@@ -2509,7 +2578,7 @@ const Ur = ({
2509
2578
  ] })
2510
2579
  ] }),
2511
2580
  /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
2512
- u && n === y.value && /* @__PURE__ */ e(We, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
2581
+ u && n === y.value && /* @__PURE__ */ e(Je, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
2513
2582
  E && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
2514
2583
  ] })
2515
2584
  ]
@@ -2519,7 +2588,7 @@ const Ur = ({
2519
2588
  "div",
2520
2589
  {
2521
2590
  ref: C,
2522
- className: W,
2591
+ className: K,
2523
2592
  style: {
2524
2593
  top: `${b.top}px`,
2525
2594
  left: `${b.left}px`
@@ -2562,7 +2631,7 @@ const Ur = ({
2562
2631
  ] })
2563
2632
  ] }),
2564
2633
  u && z && /* @__PURE__ */ e(
2565
- We,
2634
+ Je,
2566
2635
  {
2567
2636
  className: "size-icon-md shrink-0 text-success-fg",
2568
2637
  "aria-hidden": !0
@@ -2594,29 +2663,29 @@ const Ur = ({
2594
2663
  ]
2595
2664
  }
2596
2665
  );
2597
- }, Hs = (t) => (r) => t(r instanceof Date ? r : null), qs = (t) => (r) => t(typeof r == "string" ? r : ""), Us = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), Vr = {
2666
+ }, Zs = (t) => (r) => t(r instanceof Date ? r : null), Qs = (t) => (r) => t(typeof r == "string" ? r : ""), ea = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), tn = {
2598
2667
  none: "px-0",
2599
2668
  sm: "px-2",
2600
2669
  md: "px-3.5",
2601
2670
  lg: "px-5"
2602
- }, Kr = {
2671
+ }, rn = {
2603
2672
  sm: "h-row-lg",
2604
2673
  md: "h-row-xl",
2605
2674
  lg: "h-14"
2606
- }, Wr = 8, Xe = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
2607
- function Gr(t, r) {
2675
+ }, nn = 8, Qe = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
2676
+ function sn(t, r) {
2608
2677
  if (r <= 7) return Array.from({ length: r }, (l, o) => o);
2609
2678
  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 = [];
2610
2679
  return s.forEach((l, o) => {
2611
2680
  o > 0 && l - s[o - 1] > 1 && a.push("gap"), a.push(l);
2612
2681
  }), a;
2613
2682
  }
2614
- const Jr = (t) => {
2683
+ const an = (t) => {
2615
2684
  const r = Array.isArray(t.value) ? t.value : t.value != null && t.value !== "" && t.value !== "all" ? [t.value] : [];
2616
2685
  if (t.type === "date") {
2617
2686
  const o = t.value instanceof Date;
2618
2687
  return /* @__PURE__ */ e(
2619
- He,
2688
+ qe,
2620
2689
  {
2621
2690
  value: t.value,
2622
2691
  onChange: (u) => t.onChange(u),
@@ -2633,7 +2702,7 @@ const Jr = (t) => {
2633
2702
  );
2634
2703
  }, l = r.length > 0;
2635
2704
  return /* @__PURE__ */ e(
2636
- sr,
2705
+ lr,
2637
2706
  {
2638
2707
  tone: "outline",
2639
2708
  caret: !0,
@@ -2663,7 +2732,7 @@ const Jr = (t) => {
2663
2732
  )) })
2664
2733
  }
2665
2734
  );
2666
- }, Ze = ({
2735
+ }, et = ({
2667
2736
  data: t,
2668
2737
  columns: r,
2669
2738
  loading: n = !1,
@@ -2683,7 +2752,7 @@ const Jr = (t) => {
2683
2752
  selectable: h = !1,
2684
2753
  selectedRows: C = [],
2685
2754
  onSelectionChange: k,
2686
- getRowKey: P = (te, W) => W,
2755
+ getRowKey: P = (te, K) => K,
2687
2756
  emptyContent: D,
2688
2757
  footerSummary: Y,
2689
2758
  size: F = "md",
@@ -2693,7 +2762,7 @@ const Jr = (t) => {
2693
2762
  rowClassName: H,
2694
2763
  headerBackground: U = !0
2695
2764
  }) => {
2696
- const [te, W] = B(""), y = l !== void 0, x = y ? l : te, E = o ?? W, [$, T] = B({
2765
+ const [te, K] = B(""), y = l !== void 0, x = y ? l : te, E = o ?? K, [$, T] = B({
2697
2766
  column: null,
2698
2767
  direction: null
2699
2768
  }), [L, z] = B({
@@ -2717,7 +2786,7 @@ const Jr = (t) => {
2717
2786
  let V = 0;
2718
2787
  return ue < ee ? V = -1 : ue > ee && (V = 1), $.direction === "desc" ? -V : V;
2719
2788
  }) : ie;
2720
- }, [ie, $, r]), K = ge(() => {
2789
+ }, [ie, $, r]), W = ge(() => {
2721
2790
  if (!g || m) return G;
2722
2791
  const A = L.page * L.pageSize, J = A + L.pageSize;
2723
2792
  return G.slice(A, J);
@@ -2737,23 +2806,23 @@ const Jr = (t) => {
2737
2806
  [C, k, P]
2738
2807
  ), X = de(
2739
2808
  (A) => {
2740
- k && k(A ? [...K] : []);
2809
+ k && k(A ? [...W] : []);
2741
2810
  },
2742
- [K, k]
2811
+ [W, k]
2743
2812
  );
2744
2813
  Q(() => {
2745
2814
  z((A) => ({ ...A, page: 0 }));
2746
2815
  }, []), Q(() => {
2747
2816
  z((A) => ({ ...A, page: 0 }));
2748
2817
  }, []);
2749
- const q = G.length, N = Math.ceil(q / L.pageSize), R = L.page * L.pageSize + 1, re = Math.min(R + L.pageSize - 1, q), oe = K.length > 0 && K.every((A) => {
2818
+ const q = G.length, N = Math.ceil(q / L.pageSize), R = L.page * L.pageSize + 1, re = Math.min(R + L.pageSize - 1, q), oe = W.length > 0 && W.every((A) => {
2750
2819
  const J = P(A, 0);
2751
2820
  return C.some((ne, ue) => P(ne, ue) === J);
2752
- }), pe = K.some((A) => {
2821
+ }), pe = W.some((A) => {
2753
2822
  const J = P(A, 0);
2754
2823
  return C.some((ne, ue) => P(ne, ue) === J);
2755
- }), ye = Vr[I], he = U ? "bg-surface-sunk" : "bg-surface", xe = d("text-text", ye), je = s || u.length > 0 || i.length > 0 || !!p, vt = ge(() => {
2756
- const A = K.map((ee, V) => ({ row: ee, index: V }));
2824
+ }), ye = tn[I], he = U ? "bg-surface-sunk" : "bg-surface", xe = d("text-text", ye), Re = s || u.length > 0 || i.length > 0 || !!p, Nt = ge(() => {
2825
+ const A = W.map((ee, V) => ({ row: ee, index: V }));
2757
2826
  if (!m) return [{ group: null, rows: A }];
2758
2827
  const J = /* @__PURE__ */ new Map();
2759
2828
  for (const ee of A) {
@@ -2765,11 +2834,11 @@ const Jr = (t) => {
2765
2834
  ...ne.filter((ee) => J.has(ee.id)),
2766
2835
  ...[...J.keys()].filter((ee) => !ne.some((V) => V.id === ee)).map((ee) => ({ id: ee }))
2767
2836
  ].map((ee) => ({ group: ee, rows: J.get(ee.id) ?? [] }));
2768
- }, [K, m, f]), yt = r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0), Ke = g && q > 0, Nt = Ke || Y !== void 0;
2837
+ }, [W, m, f]), wt = r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0), Ge = g && q > 0, kt = Ge || Y !== void 0;
2769
2838
  return /* @__PURE__ */ c("div", { className: d("flex min-w-0 flex-col", O), children: [
2770
- je && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2839
+ Re && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2771
2840
  s && /* @__PURE__ */ e(
2772
- ut,
2841
+ ft,
2773
2842
  {
2774
2843
  value: x,
2775
2844
  onValueChange: E,
@@ -2777,7 +2846,7 @@ const Jr = (t) => {
2777
2846
  containerClassName: "w-full sm:w-66"
2778
2847
  }
2779
2848
  ),
2780
- u.map((A) => /* @__PURE__ */ e(Jr, { ...A }, A.id)),
2849
+ u.map((A) => /* @__PURE__ */ e(an, { ...A }, A.id)),
2781
2850
  p,
2782
2851
  i.length > 0 && /* @__PURE__ */ e(ke, { actions: i, className: "ml-auto" })
2783
2852
  ] }),
@@ -2816,7 +2885,7 @@ const Jr = (t) => {
2816
2885
  A.sortable && /* @__PURE__ */ e(
2817
2886
  Z,
2818
2887
  {
2819
- icon: $.column === A.id && $.direction === "desc" ? Ie : Lt,
2888
+ icon: $.column === A.id && $.direction === "desc" ? Oe : Ot,
2820
2889
  size: "xs",
2821
2890
  className: d(
2822
2891
  "transition-opacity duration-fast ease-out",
@@ -2830,7 +2899,7 @@ const Jr = (t) => {
2830
2899
  )),
2831
2900
  w.length > 0 && /* @__PURE__ */ e("th", { className: d(xe, "w-10"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
2832
2901
  ] }) }),
2833
- /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: Wr }).map((A, J) => /* @__PURE__ */ c(
2902
+ /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: nn }).map((A, J) => /* @__PURE__ */ c(
2834
2903
  "tr",
2835
2904
  {
2836
2905
  className: "animate-pulse border-t border-border-subtle",
@@ -2847,7 +2916,7 @@ const Jr = (t) => {
2847
2916
  {
2848
2917
  className: "block h-3 rounded-xs bg-surface-hover",
2849
2918
  style: {
2850
- width: Xe[(J + ue) % Xe.length]
2919
+ width: Qe[(J + ue) % Qe.length]
2851
2920
  }
2852
2921
  }
2853
2922
  )
@@ -2858,7 +2927,7 @@ const Jr = (t) => {
2858
2927
  ]
2859
2928
  },
2860
2929
  `skeleton-${J}`
2861
- )) : K.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
2930
+ )) : W.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
2862
2931
  "td",
2863
2932
  {
2864
2933
  colSpan: r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0),
@@ -2868,12 +2937,12 @@ const Jr = (t) => {
2868
2937
  ),
2869
2938
  children: D || "No data available"
2870
2939
  }
2871
- ) }) : vt.flatMap((A) => [
2940
+ ) }) : Nt.flatMap((A) => [
2872
2941
  ...A.group ? [
2873
2942
  /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
2874
2943
  "td",
2875
2944
  {
2876
- colSpan: yt,
2945
+ colSpan: wt,
2877
2946
  className: d(
2878
2947
  // A caption over its rows, not a second column strip:
2879
2948
  // same surface as the rows, no rules, count on the right.
@@ -2895,7 +2964,7 @@ const Jr = (t) => {
2895
2964
  "tr",
2896
2965
  {
2897
2966
  className: d(
2898
- Kr[F],
2967
+ rn[F],
2899
2968
  // Hairline above every row, including the first: it is
2900
2969
  // what separates the body from the column strip.
2901
2970
  "border-t border-border-subtle",
@@ -2938,10 +3007,10 @@ const Jr = (t) => {
2938
3007
  );
2939
3008
  }),
2940
3009
  w.length > 0 && /* @__PURE__ */ e("td", { className: xe, children: /* @__PURE__ */ e(
2941
- Ur,
3010
+ en,
2942
3011
  {
2943
3012
  className: "rounded-md",
2944
- trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(Z, { icon: It, size: "md", color: "current" }) }),
3013
+ trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(Z, { icon: Pt, size: "md", color: "current" }) }),
2945
3014
  options: w.map((V) => ({
2946
3015
  value: V.id,
2947
3016
  label: V.label,
@@ -2949,7 +3018,7 @@ const Jr = (t) => {
2949
3018
  disabled: V.disabled?.(J)
2950
3019
  })),
2951
3020
  onSelect: (V) => {
2952
- const ve = w.find((wt) => wt.id === V);
3021
+ const ve = w.find((Ct) => Ct.id === V);
2953
3022
  ve && ve.onClick(J, ne);
2954
3023
  },
2955
3024
  placement: "bottom-end"
@@ -2962,9 +3031,9 @@ const Jr = (t) => {
2962
3031
  })
2963
3032
  ]) })
2964
3033
  ] }) }),
2965
- Nt && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
3034
+ kt && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
2966
3035
  /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: Y ?? `Showing ${R}–${re} of ${q}` }),
2967
- Ke && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
3036
+ Ge && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
2968
3037
  /* @__PURE__ */ e(
2969
3038
  ae,
2970
3039
  {
@@ -2974,10 +3043,10 @@ const Jr = (t) => {
2974
3043
  "aria-label": "Previous page",
2975
3044
  onClick: () => S(L.page - 1),
2976
3045
  disabled: L.page === 0,
2977
- children: /* @__PURE__ */ e(Z, { icon: Ee, size: "md", color: "current" })
3046
+ children: /* @__PURE__ */ e(Z, { icon: Te, size: "md", color: "current" })
2978
3047
  }
2979
3048
  ),
2980
- Gr(L.page, N).map(
3049
+ sn(L.page, N).map(
2981
3050
  (A, J) => A === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${J}`) : /* @__PURE__ */ e(
2982
3051
  "button",
2983
3052
  {
@@ -3004,13 +3073,13 @@ const Jr = (t) => {
3004
3073
  "aria-label": "Next page",
3005
3074
  onClick: () => S(L.page + 1),
3006
3075
  disabled: L.page >= N - 1,
3007
- children: /* @__PURE__ */ e(Z, { icon: Pe, size: "md", color: "current" })
3076
+ children: /* @__PURE__ */ e(Z, { icon: je, size: "md", color: "current" })
3008
3077
  }
3009
3078
  )
3010
3079
  ] })
3011
3080
  ] })
3012
3081
  ] });
3013
- }, Yr = {
3082
+ }, ln = {
3014
3083
  default: "bg-surface-hover text-text",
3015
3084
  primary: "bg-accent-soft text-accent",
3016
3085
  secondary: "bg-surface-hover text-text-muted",
@@ -3020,11 +3089,11 @@ const Jr = (t) => {
3020
3089
  info: "bg-info-soft text-info-fg",
3021
3090
  // Internal-note amber. Never for customer-visible content.
3022
3091
  note: "bg-note-soft text-note"
3023
- }, Xr = {
3092
+ }, on = {
3024
3093
  sm: "px-2 py-0.5 text-xs",
3025
3094
  md: "px-2.5 py-1 text-sm",
3026
3095
  lg: "px-3 py-1.5 text-base"
3027
- }, Zr = {
3096
+ }, cn = {
3028
3097
  default: "bg-surface-hover",
3029
3098
  primary: "bg-accent",
3030
3099
  secondary: "bg-surface-hover",
@@ -3034,7 +3103,7 @@ const Jr = (t) => {
3034
3103
  info: "bg-info",
3035
3104
  note: "bg-note"
3036
3105
  };
3037
- function Qr({
3106
+ function dn({
3038
3107
  variant: t = "default",
3039
3108
  size: r = "md",
3040
3109
  dot: n = !1,
@@ -3050,13 +3119,13 @@ function Qr({
3050
3119
  {
3051
3120
  className: d(
3052
3121
  "inline-flex items-center font-medium rounded-full",
3053
- Yr[t],
3054
- Xr[r],
3122
+ ln[t],
3123
+ on[r],
3055
3124
  o
3056
3125
  ),
3057
3126
  ...i,
3058
3127
  children: [
3059
- n && /* @__PURE__ */ e("span", { className: d("w-2 h-2 rounded-full mr-1.5", Zr[t]) }),
3128
+ n && /* @__PURE__ */ e("span", { className: d("w-2 h-2 rounded-full mr-1.5", cn[t]) }),
3060
3129
  s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0", u && "mr-1"), children: s }),
3061
3130
  u,
3062
3131
  a && l && /* @__PURE__ */ e(
@@ -3072,7 +3141,7 @@ function Qr({
3072
3141
  }
3073
3142
  );
3074
3143
  }
3075
- function en(t) {
3144
+ function un(t) {
3076
3145
  const { id: r, header: n, accessor: s, label: a, tone: l, visible: o, width: u, sortable: i, align: p } = t;
3077
3146
  return {
3078
3147
  id: r,
@@ -3080,14 +3149,14 @@ function en(t) {
3080
3149
  accessor: (m) => a(s(m), m),
3081
3150
  cell: (m, f) => {
3082
3151
  const g = s(f);
3083
- return o && !o(g, f) ? null : /* @__PURE__ */ e(Qr, { variant: l ? l(g, f) : "default", size: "sm", children: a(g, f) });
3152
+ return o && !o(g, f) ? null : /* @__PURE__ */ e(dn, { variant: l ? l(g, f) : "default", size: "sm", children: a(g, f) });
3084
3153
  },
3085
3154
  width: u,
3086
3155
  sortable: i,
3087
3156
  align: p
3088
3157
  };
3089
3158
  }
3090
- function Vs(t) {
3159
+ function ta(t) {
3091
3160
  const {
3092
3161
  id: r,
3093
3162
  header: n,
@@ -3099,7 +3168,7 @@ function Vs(t) {
3099
3168
  width: i,
3100
3169
  sortable: p
3101
3170
  } = t;
3102
- return en({
3171
+ return un({
3103
3172
  id: r,
3104
3173
  header: n,
3105
3174
  accessor: (m) => !!s(m),
@@ -3109,7 +3178,7 @@ function Vs(t) {
3109
3178
  sortable: p
3110
3179
  });
3111
3180
  }
3112
- function Ks(t) {
3181
+ function ra(t) {
3113
3182
  const {
3114
3183
  id: r,
3115
3184
  header: n,
@@ -3133,19 +3202,19 @@ function Ks(t) {
3133
3202
  sortable: p
3134
3203
  };
3135
3204
  }
3136
- const tn = {
3205
+ const mn = {
3137
3206
  xs: "text-xs",
3138
3207
  sm: "text-sm",
3139
3208
  md: "text-base",
3140
3209
  lg: "text-md",
3141
3210
  xl: "text-lg"
3142
- }, rn = {
3211
+ }, fn = {
3143
3212
  light: "font-normal",
3144
3213
  normal: "font-normal",
3145
3214
  medium: "font-medium",
3146
3215
  semibold: "font-semibold",
3147
3216
  bold: "font-bold"
3148
- }, nn = {
3217
+ }, hn = {
3149
3218
  primary: "text-text",
3150
3219
  secondary: "text-text-muted",
3151
3220
  accent: "text-accent",
@@ -3156,12 +3225,12 @@ const tn = {
3156
3225
  neutral: "text-text",
3157
3226
  current: "text-current",
3158
3227
  muted: "text-text-subtle"
3159
- }, sn = {
3228
+ }, xn = {
3160
3229
  left: "text-left",
3161
3230
  center: "text-center",
3162
3231
  right: "text-right",
3163
3232
  justify: "text-justify"
3164
- }, an = {
3233
+ }, gn = {
3165
3234
  tight: "leading-tight",
3166
3235
  normal: "leading-normal",
3167
3236
  relaxed: "leading-relaxed"
@@ -3180,20 +3249,20 @@ const tn = {
3180
3249
  children: f,
3181
3250
  ...g
3182
3251
  }) => {
3183
- const b = p || ln(t), w = t === "caption", v = t === "label", h = t === "code", C = d(
3252
+ const b = p || bn(t), w = t === "caption", v = t === "label", h = t === "code", C = d(
3184
3253
  "font-sans",
3185
3254
  // Variant — caption and label pin their own size/weight
3186
3255
  w && "text-xs text-text-subtle",
3187
3256
  v && "text-xs font-semibold uppercase tracking-label text-text-subtle",
3188
3257
  h && "font-mono text-sm rounded-sm bg-surface-hover px-1 py-0.5",
3189
3258
  // Size — only where the variant does not pin it
3190
- !w && !v && !h && tn[r],
3259
+ !w && !v && !h && mn[r],
3191
3260
  // Weight — label owns its weight
3192
- !v && rn[n],
3193
- nn[s],
3194
- sn[a],
3261
+ !v && fn[n],
3262
+ hn[s],
3263
+ xn[a],
3195
3264
  // Line height only overrides the body variant
3196
- t === "body" && an[i],
3265
+ t === "body" && gn[i],
3197
3266
  o && "italic",
3198
3267
  u && "underline",
3199
3268
  l && "truncate",
@@ -3201,7 +3270,7 @@ const tn = {
3201
3270
  );
3202
3271
  return /* @__PURE__ */ e(b, { className: C, ...g, children: f });
3203
3272
  };
3204
- function ln(t) {
3273
+ function bn(t) {
3205
3274
  return {
3206
3275
  body: "p",
3207
3276
  caption: "span",
@@ -3209,13 +3278,13 @@ function ln(t) {
3209
3278
  code: "code"
3210
3279
  }[t] || "p";
3211
3280
  }
3212
- function on(t, r) {
3281
+ function pn(t, r) {
3213
3282
  return r.split(".").reduce(
3214
3283
  (n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
3215
3284
  t
3216
3285
  );
3217
3286
  }
3218
- const Ws = ({
3287
+ const na = ({
3219
3288
  groups: t,
3220
3289
  data: r,
3221
3290
  size: n = "md",
@@ -3238,7 +3307,7 @@ const Ws = ({
3238
3307
  return g ? g.label : String(m || "-");
3239
3308
  }, u = de(
3240
3309
  (m) => {
3241
- const f = on(r, m.name);
3310
+ const f = pn(r, m.name);
3242
3311
  if (m.type === "array") {
3243
3312
  const b = f;
3244
3313
  return !b || b.length === 0 ? /* @__PURE__ */ e(me, { variant: "body", size: "sm", className: "text-text-muted", children: "Geen items" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: b.map((w, v) => /* @__PURE__ */ c("div", { className: "p-4 border border-border rounded-xl space-y-3", children: [
@@ -3381,7 +3450,7 @@ const Ws = ({
3381
3450
  );
3382
3451
  return /* @__PURE__ */ e("div", { className: p, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(i) }) });
3383
3452
  };
3384
- class Gs extends Et {
3453
+ class sa extends Mt {
3385
3454
  constructor() {
3386
3455
  super(...arguments), this.state = {
3387
3456
  hasError: !1,
@@ -3409,8 +3478,8 @@ class Gs extends Et {
3409
3478
  ] }) : this.props.children;
3410
3479
  }
3411
3480
  }
3412
- const Fe = /* @__PURE__ */ new Map();
3413
- function Js({
3481
+ const Be = /* @__PURE__ */ new Map();
3482
+ function aa({
3414
3483
  identifier: t,
3415
3484
  resourceLoader: r,
3416
3485
  framework: n = "react",
@@ -3421,13 +3490,13 @@ function Js({
3421
3490
  }) {
3422
3491
  const u = se(null), [i, p] = B(null), [, m] = B(0), f = se(null), g = se(r);
3423
3492
  g.current = r, Q(() => {
3424
- if (Fe.has(t)) return;
3493
+ if (Be.has(t)) return;
3425
3494
  let C = !0;
3426
3495
  return (async () => {
3427
3496
  try {
3428
3497
  const P = await g.current();
3429
3498
  if (!C) return;
3430
- Fe.set(t, P), m((D) => D + 1);
3499
+ Be.set(t, P), m((D) => D + 1);
3431
3500
  } catch (P) {
3432
3501
  console.error(`[FederatedResource] Load failed: ${t}`, P), C && p(t);
3433
3502
  }
@@ -3435,7 +3504,7 @@ function Js({
3435
3504
  C = !1;
3436
3505
  };
3437
3506
  }, [t]);
3438
- const b = Fe.get(t) ?? null, w = !b && i === t, v = !b && !w, h = b ? n === "react" && (b.component || b.default) || b : null;
3507
+ const b = Be.get(t) ?? null, w = !b && i === t, v = !b && !w, h = b ? n === "react" && (b.component || b.default) || b : null;
3439
3508
  return Q(() => {
3440
3509
  if (!h || n === "react") return;
3441
3510
  const C = u.current;
@@ -3459,11 +3528,11 @@ function Js({
3459
3528
  n === "react" && h && /* @__PURE__ */ e(h, { ...l })
3460
3529
  ] });
3461
3530
  }
3462
- const cn = {
3531
+ const vn = {
3463
3532
  neutral: "bg-surface-hover text-text-muted",
3464
3533
  success: "bg-success-soft text-success-fg"
3465
3534
  };
3466
- function Ys({
3535
+ function la({
3467
3536
  icon: t,
3468
3537
  tone: r = "neutral",
3469
3538
  title: n,
@@ -3488,7 +3557,7 @@ function Ys({
3488
3557
  {
3489
3558
  className: d(
3490
3559
  "flex size-disc items-center justify-center rounded-full text-2xl",
3491
- cn[r]
3560
+ vn[r]
3492
3561
  ),
3493
3562
  children: t
3494
3563
  }
@@ -3500,7 +3569,7 @@ function Ys({
3500
3569
  }
3501
3570
  );
3502
3571
  }
3503
- function Xs({ children: t, className: r, ...n }) {
3572
+ function oa({ children: t, className: r, ...n }) {
3504
3573
  return /* @__PURE__ */ e(
3505
3574
  "kbd",
3506
3575
  {
@@ -3513,14 +3582,14 @@ function Xs({ children: t, className: r, ...n }) {
3513
3582
  }
3514
3583
  );
3515
3584
  }
3516
- const dn = {
3585
+ const yn = {
3517
3586
  sm: "h-1",
3518
3587
  md: "h-1.5"
3519
- }, un = {
3588
+ }, Nn = {
3520
3589
  accent: "bg-accent",
3521
3590
  success: "bg-success"
3522
3591
  };
3523
- function Zs({
3592
+ function ca({
3524
3593
  value: t,
3525
3594
  variant: r = "accent",
3526
3595
  size: n = "md",
@@ -3537,7 +3606,7 @@ function Zs({
3537
3606
  "aria-valuemax": 100,
3538
3607
  className: d(
3539
3608
  "w-full overflow-hidden rounded-full bg-surface-hover",
3540
- dn[n],
3609
+ yn[n],
3541
3610
  s
3542
3611
  ),
3543
3612
  ...a,
@@ -3546,7 +3615,7 @@ function Zs({
3546
3615
  {
3547
3616
  className: d(
3548
3617
  "h-full rounded-full transition-[width] duration-300 ease-out",
3549
- un[r]
3618
+ Nn[r]
3550
3619
  ),
3551
3620
  style: { width: `${l}%` }
3552
3621
  }
@@ -3554,25 +3623,25 @@ function Zs({
3554
3623
  }
3555
3624
  );
3556
3625
  }
3557
- const mn = {
3626
+ const wn = {
3558
3627
  xs: "h-3 w-3",
3559
3628
  sm: "h-4 w-4",
3560
3629
  md: "h-6 w-6",
3561
3630
  lg: "h-8 w-8",
3562
3631
  xl: "h-12 w-12"
3563
- }, fn = {
3632
+ }, kn = {
3564
3633
  primary: "text-accent",
3565
3634
  secondary: "text-text-muted",
3566
3635
  white: "text-white",
3567
3636
  current: "text-current"
3568
- }, hn = {
3637
+ }, Cn = {
3569
3638
  xs: "text-xs",
3570
3639
  sm: "text-sm",
3571
3640
  md: "text-sm",
3572
3641
  lg: "text-base",
3573
3642
  xl: "text-lg"
3574
3643
  };
3575
- function Qs({
3644
+ function ia({
3576
3645
  size: t = "md",
3577
3646
  variant: r = "primary",
3578
3647
  label: n = "Loading...",
@@ -3589,7 +3658,7 @@ function Qs({
3589
3658
  /* @__PURE__ */ c(
3590
3659
  "svg",
3591
3660
  {
3592
- className: d("animate-spin", mn[t], fn[r]),
3661
+ className: d("animate-spin", wn[t], kn[r]),
3593
3662
  fill: "none",
3594
3663
  viewBox: "0 0 24 24",
3595
3664
  "aria-hidden": !s,
@@ -3617,13 +3686,13 @@ function Qs({
3617
3686
  ]
3618
3687
  }
3619
3688
  ),
3620
- s && /* @__PURE__ */ e("span", { className: d("text-text-muted", hn[t]), children: n }),
3689
+ s && /* @__PURE__ */ e("span", { className: d("text-text-muted", Cn[t]), children: n }),
3621
3690
  !s && /* @__PURE__ */ e("span", { className: "sr-only", children: n })
3622
3691
  ]
3623
3692
  }
3624
3693
  );
3625
3694
  }
3626
- const xn = {
3695
+ const Sn = {
3627
3696
  neutral: "bg-text-disabled",
3628
3697
  accent: "bg-accent",
3629
3698
  success: "bg-success",
@@ -3637,7 +3706,7 @@ const xn = {
3637
3706
  "cat-4": "bg-cat-4",
3638
3707
  "cat-5": "bg-cat-5"
3639
3708
  };
3640
- function ea({
3709
+ function da({
3641
3710
  tone: t = "neutral",
3642
3711
  shape: r = "round",
3643
3712
  pulse: n = !1,
@@ -3653,14 +3722,14 @@ function ea({
3653
3722
  className: d(
3654
3723
  "inline-block size-dot shrink-0",
3655
3724
  r === "round" ? "rounded-full" : "rounded-sm",
3656
- xn[t],
3725
+ Sn[t],
3657
3726
  n && "animate-pulse",
3658
3727
  a
3659
3728
  )
3660
3729
  }
3661
3730
  );
3662
3731
  }
3663
- function ta({
3732
+ function ua({
3664
3733
  steps: t,
3665
3734
  current: r,
3666
3735
  variant: n = "numbered",
@@ -3700,7 +3769,7 @@ function ta({
3700
3769
  i < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
3701
3770
  ] }, u)) });
3702
3771
  }
3703
- const gn = /* @__PURE__ */ new Set([
3772
+ const En = /* @__PURE__ */ new Set([
3704
3773
  "name",
3705
3774
  "given-name",
3706
3775
  "family-name",
@@ -3734,8 +3803,8 @@ const gn = /* @__PURE__ */ new Set([
3734
3803
  "new-password",
3735
3804
  "one-time-code"
3736
3805
  ]);
3737
- function Qe(t) {
3738
- return t && gn.has(t) ? { autoComplete: t } : {
3806
+ function tt(t) {
3807
+ return t && En.has(t) ? { autoComplete: t } : {
3739
3808
  autoComplete: "off",
3740
3809
  // 1Password
3741
3810
  "data-1p-ignore": "true",
@@ -3747,12 +3816,12 @@ function Qe(t) {
3747
3816
  "data-form-type": "other"
3748
3817
  };
3749
3818
  }
3750
- const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCase(), pn = {
3819
+ const _e = (t) => t == null ? "" : String(t), Tn = (t) => _e(t).trim().toLowerCase(), Mn = {
3751
3820
  sm: "h-control-sm px-3 text-sm",
3752
3821
  md: "h-control-md px-3 text-sm",
3753
3822
  lg: "h-control-lg px-3 text-base",
3754
3823
  full: "h-control-md w-full px-3 text-sm"
3755
- }, Ae = bn, $e = be(
3824
+ }, De = Tn, Ie = be(
3756
3825
  ({
3757
3826
  label: t,
3758
3827
  helperText: r,
@@ -3774,7 +3843,7 @@ const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCa
3774
3843
  onCreateOption: C,
3775
3844
  ...k
3776
3845
  }, P) => {
3777
- const D = f || `select-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, [F, _] = le.useState(!1), [I, O] = le.useState(""), H = le.useRef(null), U = le.useRef(null), te = Te(F, U, { matchWidth: !0 }), [W, y] = le.useState(o);
3846
+ const D = f || `select-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, [F, _] = le.useState(!1), [I, O] = le.useState(""), H = le.useRef(null), U = le.useRef(null), te = Me(F, U, { matchWidth: !0 }), [K, y] = le.useState(o);
3778
3847
  le.useImperativeHandle(P, () => H.current), le.useEffect(() => {
3779
3848
  const j = (S) => {
3780
3849
  H.current && !H.current.contains(S.target) && _(!1);
@@ -3782,12 +3851,12 @@ const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCa
3782
3851
  return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
3783
3852
  }, []);
3784
3853
  const x = le.useCallback(
3785
- (j, S) => j.some((M) => Ae(M.value) === Ae(S) || Ae(M.label) === Ae(S)),
3854
+ (j, S) => j.some((M) => De(M.value) === De(S) || De(M.label) === De(S)),
3786
3855
  []
3787
3856
  ), E = le.useCallback(
3788
3857
  (j, S) => {
3789
3858
  const M = [...j], X = (q) => {
3790
- const N = De(q).trim();
3859
+ const N = _e(q).trim();
3791
3860
  N && (x(M, N) || M.push({ value: N, label: N }));
3792
3861
  };
3793
3862
  return Array.isArray(S) ? S.forEach(X) : X(S), M;
@@ -3803,7 +3872,7 @@ const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCa
3803
3872
  });
3804
3873
  }, [o, w, E, x]);
3805
3874
  const $ = le.useMemo(
3806
- () => Array.isArray(w) ? w.map(De) : w == null ? void 0 : De(w),
3875
+ () => Array.isArray(w) ? w.map(_e) : w == null ? void 0 : _e(w),
3807
3876
  [w]
3808
3877
  ), T = (j) => {
3809
3878
  if (b) {
@@ -3811,21 +3880,21 @@ const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCa
3811
3880
  v?.(M);
3812
3881
  } else
3813
3882
  v?.(j), _(!1), O("");
3814
- }, L = b ? null : W.find((j) => j.value === $), z = b ? W.filter((j) => Array.isArray($) && $.includes(j.value)) : [], ce = g && I ? W.filter(
3883
+ }, L = b ? null : K.find((j) => j.value === $), z = b ? K.filter((j) => Array.isArray($) && $.includes(j.value)) : [], ce = g && I ? K.filter(
3815
3884
  (j) => j.label.toLowerCase().includes(I.toLowerCase())
3816
- ) : W, ie = !!h && !!g && !!I.trim() && !x(W, I), G = (j) => {
3885
+ ) : K, ie = !!h && !!g && !!I.trim() && !x(K, I), G = (j) => {
3817
3886
  const S = j.trim();
3818
3887
  if (!S) return;
3819
3888
  const M = C?.(S) ?? {
3820
3889
  value: S,
3821
3890
  label: S
3822
3891
  };
3823
- if (x(W, M.value) || x(W, M.label)) {
3892
+ if (x(K, M.value) || x(K, M.label)) {
3824
3893
  T(M.value), O(""), b || _(!1);
3825
3894
  return;
3826
3895
  }
3827
3896
  y((X) => [...X, M]), T(M.value), O(""), b || _(!1);
3828
- }, K = () => b ? z.length > 0 ? z.map((j) => j.label).join(", ") : u || "Select options" : L?.label || u || "Select an option";
3897
+ }, W = () => b ? z.length > 0 ? z.map((j) => j.label).join(", ") : u || "Select options" : L?.label || u || "Select an option";
3829
3898
  return /* @__PURE__ */ c(
3830
3899
  "div",
3831
3900
  {
@@ -3860,14 +3929,14 @@ const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCa
3860
3929
  "focus-visible:outline-none focus-visible:focus-ring",
3861
3930
  "disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
3862
3931
  "bg-surface",
3863
- pn[s],
3932
+ Mn[s],
3864
3933
  Y ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
3865
3934
  m
3866
3935
  ),
3867
3936
  children: [
3868
- /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: K() }),
3937
+ /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: W() }),
3869
3938
  /* @__PURE__ */ e(
3870
- Ot,
3939
+ jt,
3871
3940
  {
3872
3941
  size: 16,
3873
3942
  className: d(
@@ -3966,13 +4035,13 @@ const De = (t) => t == null ? "" : String(t), bn = (t) => De(t).trim().toLowerCa
3966
4035
  );
3967
4036
  }
3968
4037
  );
3969
- $e.displayName = "Select";
3970
- const vn = {
4038
+ Ie.displayName = "Select";
4039
+ const zn = {
3971
4040
  sm: "h-control-sm px-3 text-sm",
3972
4041
  md: "h-control-md px-3 text-base",
3973
4042
  lg: "h-control-lg px-3 text-base",
3974
4043
  full: "h-control-md px-3 text-base"
3975
- }, mt = "mb-1.5 block text-sm font-medium", ft = "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", ht = (t) => t ? "border-danger-border bg-danger-soft" : "border-border-strong", Ce = be(
4044
+ }, ht = "mb-1.5 block text-sm font-medium", xt = "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", gt = (t) => t ? "border-danger-border bg-danger-soft" : "border-border-strong", Ce = be(
3976
4045
  ({
3977
4046
  label: t,
3978
4047
  helperText: r,
@@ -3995,7 +4064,7 @@ const vn = {
3995
4064
  {
3996
4065
  htmlFor: v,
3997
4066
  className: d(
3998
- mt,
4067
+ ht,
3999
4068
  h ? "text-danger-fg" : "text-text-muted",
4000
4069
  p
4001
4070
  ),
@@ -4012,11 +4081,11 @@ const vn = {
4012
4081
  "aria-invalid": h || void 0,
4013
4082
  "aria-describedby": C,
4014
4083
  className: d(
4015
- ft,
4016
- vn[s],
4084
+ xt,
4085
+ zn[s],
4017
4086
  l && "pl-9",
4018
4087
  (o || u) && "pr-9",
4019
- ht(h),
4088
+ gt(h),
4020
4089
  m
4021
4090
  ),
4022
4091
  ...g
@@ -4042,7 +4111,7 @@ const vn = {
4042
4111
  }
4043
4112
  );
4044
4113
  Ce.displayName = "TextField";
4045
- function yn({
4114
+ function An({
4046
4115
  value: t,
4047
4116
  onChange: r,
4048
4117
  onListFolders: n,
@@ -4065,7 +4134,7 @@ function yn({
4065
4134
  const m = t ?? {};
4066
4135
  return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
4067
4136
  /* @__PURE__ */ e(
4068
- $e,
4137
+ Ie,
4069
4138
  {
4070
4139
  size: a,
4071
4140
  fullWidth: !0,
@@ -4087,7 +4156,7 @@ function yn({
4087
4156
  )
4088
4157
  ] });
4089
4158
  }
4090
- const Nn = rt(null), ra = ({ items: t, activeTab: r, onTabChange: n, className: s }) => {
4159
+ const Dn = st(null), ma = ({ items: t, activeTab: r, onTabChange: n, className: s }) => {
4091
4160
  const [a, l] = B(t[0]?.id || ""), o = r || a, u = (i) => {
4092
4161
  n ? n(i) : l(i);
4093
4162
  };
@@ -4120,7 +4189,7 @@ const Nn = rt(null), ra = ({ items: t, activeTab: r, onTabChange: n, className:
4120
4189
  },
4121
4190
  i.id
4122
4191
  )) }) });
4123
- }, wn = ({
4192
+ }, _n = ({
4124
4193
  items: t,
4125
4194
  defaultTab: r,
4126
4195
  activeTab: n,
@@ -4177,7 +4246,7 @@ const Nn = rt(null), ra = ({ items: t, activeTab: r, onTabChange: n, className:
4177
4246
  F
4178
4247
  );
4179
4248
  };
4180
- return /* @__PURE__ */ e(Nn.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
4249
+ return /* @__PURE__ */ e(Dn.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
4181
4250
  /* @__PURE__ */ e("div", { className: b, role: "tablist", children: t.map((v) => /* @__PURE__ */ e(
4182
4251
  "button",
4183
4252
  {
@@ -4206,14 +4275,14 @@ const Nn = rt(null), ra = ({ items: t, activeTab: r, onTabChange: n, className:
4206
4275
  }
4207
4276
  )
4208
4277
  ] }) });
4209
- }, kn = {
4278
+ }, $n = {
4210
4279
  sm: "max-w-md",
4211
4280
  md: "max-w-lg",
4212
4281
  lg: "max-w-2xl",
4213
4282
  xl: "max-w-4xl",
4214
4283
  full: "max-w-full mx-4"
4215
4284
  };
4216
- function xt({
4285
+ function bt({
4217
4286
  open: t,
4218
4287
  onClose: r,
4219
4288
  title: n,
@@ -4255,7 +4324,7 @@ function xt({
4255
4324
  className: d(
4256
4325
  "relative w-full bg-surface rounded-lg shadow-modal",
4257
4326
  "focus:outline-none",
4258
- kn[s],
4327
+ $n[s],
4259
4328
  o
4260
4329
  ),
4261
4330
  role: "dialog",
@@ -4283,7 +4352,7 @@ function xt({
4283
4352
  }
4284
4353
  ) : null;
4285
4354
  }
4286
- const Cn = ({
4355
+ const Ln = ({
4287
4356
  value: t,
4288
4357
  onChange: r,
4289
4358
  label: n,
@@ -4299,7 +4368,7 @@ const Cn = ({
4299
4368
  }) => {
4300
4369
  const [g, b] = B(!1), [w, v] = B([]), [h, C] = B(null), [k, P] = B("/"), [D, Y] = B([]), [F, _] = B(!1), [I, O] = B(""), [H, U] = B(
4301
4370
  typeof t == "object" ? t : null
4302
- ), [te, W] = B(!1), [y, x] = B(""), E = se(null), $ = de(async () => {
4371
+ ), [te, K] = B(!1), [y, x] = B(""), E = se(null), $ = de(async () => {
4303
4372
  _(!0);
4304
4373
  try {
4305
4374
  const N = await i?.();
@@ -4390,7 +4459,7 @@ const Cn = ({
4390
4459
  mountId: h.id,
4391
4460
  providerKey: N,
4392
4461
  ownerId: "me"
4393
- }), await T()), W(!1), x("");
4462
+ }), await T()), K(!1), x("");
4394
4463
  } catch (N) {
4395
4464
  console.error("Failed to create folder", N);
4396
4465
  } finally {
@@ -4409,7 +4478,7 @@ const Cn = ({
4409
4478
  }
4410
4479
  }, G = (N) => {
4411
4480
  N.stopPropagation(), U(null), r(null);
4412
- }, K = ge(() => {
4481
+ }, W = ge(() => {
4413
4482
  const N = /* @__PURE__ */ new Set(), R = [];
4414
4483
  return D.forEach((re) => {
4415
4484
  if (re.type === "folder") {
@@ -4428,18 +4497,18 @@ const Cn = ({
4428
4497
  const N = k.split("/").filter((R) => R !== "");
4429
4498
  N.pop(), N.length === 0 ? P("/") : P(`${N.join("/")}/`);
4430
4499
  }, M = ge(() => {
4431
- const N = K.folders.map((R) => ({
4500
+ const N = W.folders.map((R) => ({
4432
4501
  id: `folder-${R}`,
4433
4502
  name: R,
4434
4503
  type: "folder"
4435
4504
  }));
4436
- return K.files.forEach((R) => {
4505
+ return W.files.forEach((R) => {
4437
4506
  N.push({
4438
4507
  ...R,
4439
4508
  type: "file"
4440
4509
  });
4441
4510
  }), N;
4442
- }, [K]), X = [
4511
+ }, [W]), X = [
4443
4512
  {
4444
4513
  id: "name",
4445
4514
  header: "Name",
@@ -4448,7 +4517,7 @@ const Cn = ({
4448
4517
  /* @__PURE__ */ e(
4449
4518
  Z,
4450
4519
  {
4451
- icon: R.type === "folder" ? Je : Re,
4520
+ icon: R.type === "folder" ? Xe : Fe,
4452
4521
  size: "sm",
4453
4522
  color: R.type === "folder" ? "warning" : "secondary"
4454
4523
  }
@@ -4489,7 +4558,7 @@ const Cn = ({
4489
4558
  header: "Mount Name",
4490
4559
  accessor: "name",
4491
4560
  cell: (N) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
4492
- /* @__PURE__ */ e(Z, { icon: Ge, size: "sm", color: "primary" }),
4561
+ /* @__PURE__ */ e(Z, { icon: Ye, size: "sm", color: "primary" }),
4493
4562
  /* @__PURE__ */ e("span", { children: N })
4494
4563
  ] })
4495
4564
  },
@@ -4517,7 +4586,7 @@ const Cn = ({
4517
4586
  /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(
4518
4587
  Z,
4519
4588
  {
4520
- icon: H ? Re : Ge,
4589
+ icon: H ? Fe : Ye,
4521
4590
  color: H ? "primary" : "secondary"
4522
4591
  }
4523
4592
  ) }),
@@ -4528,23 +4597,23 @@ const Cn = ({
4528
4597
  ),
4529
4598
  a && /* @__PURE__ */ e(me, { variant: "body", size: "xs", className: "text-danger-fg", children: a }),
4530
4599
  /* @__PURE__ */ e(
4531
- xt,
4600
+ bt,
4532
4601
  {
4533
4602
  open: g,
4534
4603
  onClose: () => {
4535
- b(!1), C(null), P("/"), W(!1);
4604
+ b(!1), C(null), P("/"), K(!1);
4536
4605
  },
4537
4606
  title: h ? `Explorer: ${h.name}` : "Select Storage Mount",
4538
4607
  size: "lg",
4539
4608
  children: /* @__PURE__ */ e(
4540
- wn,
4609
+ _n,
4541
4610
  {
4542
4611
  variant: "pills",
4543
4612
  items: [
4544
4613
  {
4545
4614
  id: "remote",
4546
4615
  label: "Platform Storage",
4547
- content: /* @__PURE__ */ e("div", { className: "space-y-4", children: h ? /* @__PURE__ */ c(Le, { children: [
4616
+ content: /* @__PURE__ */ e("div", { className: "space-y-4", children: h ? /* @__PURE__ */ c(Ee, { children: [
4548
4617
  /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2", children: [
4549
4618
  /* @__PURE__ */ e(
4550
4619
  ae,
@@ -4553,7 +4622,7 @@ const Cn = ({
4553
4622
  onClick: () => {
4554
4623
  k && k !== "/" ? S() : C(null);
4555
4624
  },
4556
- leftIcon: /* @__PURE__ */ e(Z, { icon: Pt, size: "xs" }),
4625
+ leftIcon: /* @__PURE__ */ e(Z, { icon: Rt, size: "xs" }),
4557
4626
  children: k ? "Back" : "Back to Mounts"
4558
4627
  }
4559
4628
  ),
@@ -4564,7 +4633,7 @@ const Cn = ({
4564
4633
  placeholder: "Search...",
4565
4634
  value: I,
4566
4635
  onChange: (N) => O(N.target.value),
4567
- startIcon: /* @__PURE__ */ e(Oe, { size: 14 }),
4636
+ startIcon: /* @__PURE__ */ e(Pe, { size: 14 }),
4568
4637
  fullWidth: !0
4569
4638
  }
4570
4639
  ) }),
@@ -4573,8 +4642,8 @@ const Cn = ({
4573
4642
  ae,
4574
4643
  {
4575
4644
  variant: "outline",
4576
- onClick: () => W(!0),
4577
- leftIcon: /* @__PURE__ */ e(Z, { icon: jt, size: "xs" }),
4645
+ onClick: () => K(!0),
4646
+ leftIcon: /* @__PURE__ */ e(Z, { icon: Ft, size: "xs" }),
4578
4647
  children: "New Folder"
4579
4648
  }
4580
4649
  ),
@@ -4583,7 +4652,7 @@ const Cn = ({
4583
4652
  {
4584
4653
  variant: "primary",
4585
4654
  onClick: () => E.current?.click(),
4586
- leftIcon: /* @__PURE__ */ e(Z, { icon: Rt, size: "xs" }),
4655
+ leftIcon: /* @__PURE__ */ e(Z, { icon: Bt, size: "xs" }),
4587
4656
  loading: F,
4588
4657
  children: "Upload"
4589
4658
  }
@@ -4601,7 +4670,7 @@ const Cn = ({
4601
4670
  ] })
4602
4671
  ] }),
4603
4672
  te && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
4604
- /* @__PURE__ */ e(Z, { icon: Je, size: "sm", color: "warning" }),
4673
+ /* @__PURE__ */ e(Z, { icon: Xe, size: "sm", color: "warning" }),
4605
4674
  /* @__PURE__ */ e(
4606
4675
  Ce,
4607
4676
  {
@@ -4612,10 +4681,10 @@ const Cn = ({
4612
4681
  }
4613
4682
  ),
4614
4683
  /* @__PURE__ */ e(ae, { onClick: ce, loading: F, children: "Create" }),
4615
- /* @__PURE__ */ e(ae, { variant: "ghost", onClick: () => W(!1), children: "Cancel" })
4684
+ /* @__PURE__ */ e(ae, { variant: "ghost", onClick: () => K(!1), children: "Cancel" })
4616
4685
  ] }),
4617
4686
  /* @__PURE__ */ e("div", { className: "max-h-100 overflow-auto rounded-lg border border-border", children: /* @__PURE__ */ e(
4618
- Ze,
4687
+ et,
4619
4688
  {
4620
4689
  data: M,
4621
4690
  columns: X,
@@ -4625,7 +4694,7 @@ const Cn = ({
4625
4694
  }
4626
4695
  ) })
4627
4696
  ] }) : /* @__PURE__ */ e("div", { className: "max-h-100 overflow-auto rounded-lg border border-border", children: /* @__PURE__ */ e(
4628
- Ze,
4697
+ et,
4629
4698
  {
4630
4699
  data: w,
4631
4700
  columns: q,
@@ -4639,7 +4708,7 @@ const Cn = ({
4639
4708
  id: "local",
4640
4709
  label: "Local File",
4641
4710
  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: [
4642
- /* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Z, { icon: Re, size: "xl", color: "primary" }) }),
4711
+ /* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Z, { icon: Fe, size: "xl", color: "primary" }) }),
4643
4712
  /* @__PURE__ */ e(me, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
4644
4713
  /* @__PURE__ */ c(
4645
4714
  me,
@@ -4684,12 +4753,12 @@ const Cn = ({
4684
4753
  }
4685
4754
  )
4686
4755
  ] });
4687
- }, Sn = {
4756
+ }, In = {
4688
4757
  sm: "px-3 py-1.5 text-sm",
4689
4758
  md: "px-3 py-2 text-base",
4690
4759
  lg: "px-3 py-2 text-md",
4691
4760
  full: "px-3 py-2 text-md"
4692
- }, qe = be(
4761
+ }, Ue = be(
4693
4762
  ({
4694
4763
  label: t,
4695
4764
  helperText: r,
@@ -4711,7 +4780,7 @@ const Cn = ({
4711
4780
  {
4712
4781
  htmlFor: w,
4713
4782
  className: d(
4714
- mt,
4783
+ ht,
4715
4784
  v ? "text-danger-fg" : "text-text-muted",
4716
4785
  u
4717
4786
  ),
@@ -4728,10 +4797,10 @@ const Cn = ({
4728
4797
  "aria-invalid": v || void 0,
4729
4798
  "aria-describedby": h,
4730
4799
  className: d(
4731
- ft,
4800
+ xt,
4732
4801
  "resize-y leading-relaxed",
4733
- Sn[s],
4734
- ht(v),
4802
+ In[s],
4803
+ gt(v),
4735
4804
  i
4736
4805
  ),
4737
4806
  ...f
@@ -4756,14 +4825,14 @@ const Cn = ({
4756
4825
  ] });
4757
4826
  }
4758
4827
  );
4759
- qe.displayName = "TextArea";
4760
- function et(t, r) {
4828
+ Ue.displayName = "TextArea";
4829
+ function rt(t, r) {
4761
4830
  return r.split(".").reduce(
4762
4831
  (n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
4763
4832
  t
4764
4833
  );
4765
4834
  }
4766
- function En(t, r, n) {
4835
+ function On(t, r, n) {
4767
4836
  const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
4768
4837
  let l = a;
4769
4838
  for (let o = 0; o < s.length - 1; o++) {
@@ -4772,7 +4841,7 @@ function En(t, r, n) {
4772
4841
  }
4773
4842
  return l[s[s.length - 1]] = n, a;
4774
4843
  }
4775
- function Tn(t, r) {
4844
+ function Pn(t, r) {
4776
4845
  const n = r.split("."), s = Array.isArray(t) ? [...t] : { ...t };
4777
4846
  let a = s;
4778
4847
  for (let l = 0; l < n.length - 1; l++) {
@@ -4782,7 +4851,7 @@ function Tn(t, r) {
4782
4851
  }
4783
4852
  return delete a[n[n.length - 1]], s;
4784
4853
  }
4785
- function Mn({
4854
+ function jn({
4786
4855
  title: t,
4787
4856
  description: r,
4788
4857
  className: n,
@@ -4796,7 +4865,7 @@ function Mn({
4796
4865
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
4797
4866
  ] });
4798
4867
  }
4799
- const na = ({
4868
+ const fa = ({
4800
4869
  groups: t,
4801
4870
  data: r,
4802
4871
  onSubmit: n,
@@ -4837,13 +4906,13 @@ const na = ({
4837
4906
  let z = !1;
4838
4907
  if (E.forEach((ce, ie) => {
4839
4908
  const G = {};
4840
- for (const K of T.arrayFields) {
4841
- const j = ce?.[K.name];
4842
- if (K.required && (j == null || j === ""))
4843
- G[K.name] = `${K.label} is required`, z = !0;
4844
- else if (K.validator) {
4845
- const S = K.validator(j, ce);
4846
- S && (G[K.name] = S, z = !0);
4909
+ for (const W of T.arrayFields) {
4910
+ const j = ce?.[W.name];
4911
+ if (W.required && (j == null || j === ""))
4912
+ G[W.name] = `${W.label} is required`, z = !0;
4913
+ else if (W.validator) {
4914
+ const S = W.validator(j, ce);
4915
+ S && (G[W.name] = S, z = !0);
4847
4916
  }
4848
4917
  }
4849
4918
  L[ie] = G;
@@ -4856,8 +4925,8 @@ const na = ({
4856
4925
  [t]
4857
4926
  ), O = de(
4858
4927
  (x, E) => {
4859
- let $ = En(h, x, E);
4860
- t.flatMap((z) => z.items).find((z) => z.name === x)?.removeIfEmpty && (E == null || E === "") && ($ = Tn($, x)), C($), _((z) => ({ ...z, [x]: !0 }));
4928
+ let $ = On(h, x, E);
4929
+ t.flatMap((z) => z.items).find((z) => z.name === x)?.removeIfEmpty && (E == null || E === "") && ($ = Pn($, x)), C($), _((z) => ({ ...z, [x]: !0 }));
4861
4930
  const L = I(x, E, $);
4862
4931
  Y((z) => ({
4863
4932
  ...z,
@@ -4874,7 +4943,7 @@ const na = ({
4874
4943
  continue;
4875
4944
  const z = I(
4876
4945
  L.name,
4877
- et(h, L.name),
4946
+ rt(h, L.name),
4878
4947
  h
4879
4948
  );
4880
4949
  z && (E[L.name] = z);
@@ -4891,7 +4960,7 @@ const na = ({
4891
4960
  [h, t, I, o, l, n, g]
4892
4961
  ), U = de(
4893
4962
  (x) => {
4894
- const E = et(h, x.name), $ = F[x.name] ? D[x.name] : void 0, T = x.disabled || g, L = {
4963
+ const E = rt(h, x.name), $ = F[x.name] ? D[x.name] : void 0, T = x.disabled || g, L = {
4895
4964
  // Ties the field to the `<label>` the group wrapper renders; without it
4896
4965
  // labels are unassociated — screen readers announce nothing, clicking a
4897
4966
  // label focuses nothing, and tests cannot find a field by its label.
@@ -4916,14 +4985,14 @@ const na = ({
4916
4985
  ...L,
4917
4986
  onChange: (z) => O(x.name, z.target.value),
4918
4987
  type: x.textType || x.type,
4919
- ...Qe(x.autocomplete),
4988
+ ...tt(x.autocomplete),
4920
4989
  error: $,
4921
4990
  size: f
4922
4991
  }
4923
4992
  );
4924
4993
  case "textarea":
4925
4994
  return /* @__PURE__ */ e(
4926
- qe,
4995
+ Ue,
4927
4996
  {
4928
4997
  ...L,
4929
4998
  onChange: (z) => O(x.name, z.target.value),
@@ -4934,7 +5003,7 @@ const na = ({
4934
5003
  );
4935
5004
  case "select":
4936
5005
  return /* @__PURE__ */ e(
4937
- $e,
5006
+ Ie,
4938
5007
  {
4939
5008
  ...L,
4940
5009
  onChange: (z) => O(x.name, z),
@@ -4954,7 +5023,7 @@ const na = ({
4954
5023
  // open to learn what the choices even are.
4955
5024
  case "segmented":
4956
5025
  return /* @__PURE__ */ e(
4957
- ir,
5026
+ ur,
4958
5027
  {
4959
5028
  "aria-label": x.label,
4960
5029
  value: E == null ? "" : String(E),
@@ -5003,7 +5072,7 @@ const na = ({
5003
5072
  )) });
5004
5073
  case "date":
5005
5074
  return /* @__PURE__ */ e(
5006
- He,
5075
+ qe,
5007
5076
  {
5008
5077
  ...L,
5009
5078
  value: E ? new Date(E) : null,
@@ -5013,7 +5082,7 @@ const na = ({
5013
5082
  );
5014
5083
  case "file":
5015
5084
  return /* @__PURE__ */ e(
5016
- Cn,
5085
+ Ln,
5017
5086
  {
5018
5087
  ...L,
5019
5088
  value: E,
@@ -5046,7 +5115,7 @@ const na = ({
5046
5115
  );
5047
5116
  case "folder":
5048
5117
  return /* @__PURE__ */ e(
5049
- yn,
5118
+ An,
5050
5119
  {
5051
5120
  value: E || {},
5052
5121
  onChange: (z) => O(x.name, z),
@@ -5081,7 +5150,7 @@ const na = ({
5081
5150
  x.name,
5082
5151
  z.filter((S, M) => M !== j)
5083
5152
  );
5084
- }, K = (j, S, M) => {
5153
+ }, W = (j, S, M) => {
5085
5154
  const X = [...z];
5086
5155
  X[j] = {
5087
5156
  ...X[j],
@@ -5116,23 +5185,23 @@ const na = ({
5116
5185
  Ce,
5117
5186
  {
5118
5187
  ...q,
5119
- onChange: (N) => K(
5188
+ onChange: (N) => W(
5120
5189
  S,
5121
5190
  M.name,
5122
5191
  N.target.value
5123
5192
  ),
5124
5193
  type: M.textType || M.type,
5125
- ...Qe(M.autocomplete),
5194
+ ...tt(M.autocomplete),
5126
5195
  error: X,
5127
5196
  size: f
5128
5197
  }
5129
5198
  );
5130
5199
  case "textarea":
5131
5200
  return /* @__PURE__ */ e(
5132
- qe,
5201
+ Ue,
5133
5202
  {
5134
5203
  ...q,
5135
- onChange: (N) => K(
5204
+ onChange: (N) => W(
5136
5205
  S,
5137
5206
  M.name,
5138
5207
  N.target.value
@@ -5144,10 +5213,10 @@ const na = ({
5144
5213
  );
5145
5214
  case "select":
5146
5215
  return /* @__PURE__ */ e(
5147
- $e,
5216
+ Ie,
5148
5217
  {
5149
5218
  ...q,
5150
- onChange: (N) => K(S, M.name, N),
5219
+ onChange: (N) => W(S, M.name, N),
5151
5220
  options: (M.options || []).map((N) => ({
5152
5221
  ...N,
5153
5222
  value: String(N.value)
@@ -5165,7 +5234,7 @@ const na = ({
5165
5234
  {
5166
5235
  ...q,
5167
5236
  checked: !!j?.[M.name],
5168
- onChange: (N) => K(
5237
+ onChange: (N) => W(
5169
5238
  S,
5170
5239
  M.name,
5171
5240
  N.target.checked
@@ -5186,7 +5255,7 @@ const na = ({
5186
5255
  name: `${x.name}.${S}.${M.name}`,
5187
5256
  value: N.value,
5188
5257
  checked: j?.[M.name] === N.value,
5189
- onChange: () => K(
5258
+ onChange: () => W(
5190
5259
  S,
5191
5260
  M.name,
5192
5261
  N.value
@@ -5203,11 +5272,11 @@ const na = ({
5203
5272
  case "date": {
5204
5273
  const N = j?.[M.name];
5205
5274
  return /* @__PURE__ */ e(
5206
- He,
5275
+ qe,
5207
5276
  {
5208
5277
  ...q,
5209
5278
  value: N ? new Date(N) : null,
5210
- onChange: (R) => K(S, M.name, R),
5279
+ onChange: (R) => W(S, M.name, R),
5211
5280
  size: f
5212
5281
  }
5213
5282
  );
@@ -5215,7 +5284,7 @@ const na = ({
5215
5284
  case "custom":
5216
5285
  return M.customComponent?.({
5217
5286
  value: j?.[M.name],
5218
- onChange: (N) => K(S, M.name, N),
5287
+ onChange: (N) => W(S, M.name, N),
5219
5288
  error: X,
5220
5289
  disabled: T
5221
5290
  });
@@ -5240,7 +5309,7 @@ const na = ({
5240
5309
  onClick: () => G(S),
5241
5310
  disabled: T,
5242
5311
  className: d("shrink-0", S === 0 && "mt-5"),
5243
- children: /* @__PURE__ */ e(Ft, { className: "size-icon-md" })
5312
+ children: /* @__PURE__ */ e(Ht, { className: "size-icon-md" })
5244
5313
  }
5245
5314
  )
5246
5315
  ] }, S)),
@@ -5249,7 +5318,7 @@ const na = ({
5249
5318
  {
5250
5319
  type: "button",
5251
5320
  variant: "secondary",
5252
- leftIcon: /* @__PURE__ */ e(Bt, { className: "size-icon-sm" }),
5321
+ leftIcon: /* @__PURE__ */ e(qt, { className: "size-icon-sm" }),
5253
5322
  onClick: ie,
5254
5323
  disabled: T,
5255
5324
  children: [
@@ -5286,7 +5355,7 @@ const na = ({
5286
5355
  // form *is* the page now, so a panel around each section would be a
5287
5356
  // second surface on top of the one it already sits on.
5288
5357
  /* @__PURE__ */ e(
5289
- Mn,
5358
+ jn,
5290
5359
  {
5291
5360
  title: x.title,
5292
5361
  description: x.description,
@@ -5329,7 +5398,7 @@ const na = ({
5329
5398
  );
5330
5399
  },
5331
5400
  [h, F, D, U, P]
5332
- ), W = d(
5401
+ ), K = d(
5333
5402
  {
5334
5403
  "max-w-settings": f === "sm",
5335
5404
  "max-w-form": f === "md",
@@ -5338,7 +5407,7 @@ const na = ({
5338
5407
  },
5339
5408
  b
5340
5409
  ), y = f === "full" ? "md" : f;
5341
- return /* @__PURE__ */ c("form", { ref: w, onSubmit: H, className: W, children: [
5410
+ return /* @__PURE__ */ c("form", { ref: w, onSubmit: H, className: K, children: [
5342
5411
  !p && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
5343
5412
  /* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(te) }),
5344
5413
  p && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: [
@@ -5370,7 +5439,7 @@ const na = ({
5370
5439
  ] })
5371
5440
  ] });
5372
5441
  };
5373
- function sa({
5442
+ function ha({
5374
5443
  label: t,
5375
5444
  value: r,
5376
5445
  onChange: n,
@@ -5387,8 +5456,8 @@ function sa({
5387
5456
  const g = se(null), [b, w] = B(null), v = async (h) => {
5388
5457
  if (!h) return;
5389
5458
  w(null);
5390
- const C = await An(h, s);
5391
- if (a && zn(C) > a) {
5459
+ const C = await Fn(h, s);
5460
+ if (a && Rn(C) > a) {
5392
5461
  w(f);
5393
5462
  return;
5394
5463
  }
@@ -5447,11 +5516,11 @@ function sa({
5447
5516
  )
5448
5517
  ] });
5449
5518
  }
5450
- function zn(t) {
5519
+ function Rn(t) {
5451
5520
  const r = t.slice(t.indexOf(",") + 1), n = r.endsWith("==") ? 2 : r.endsWith("=") ? 1 : 0;
5452
5521
  return Math.floor(r.length * 3 / 4) - n;
5453
5522
  }
5454
- function An(t, r) {
5523
+ function Fn(t, r) {
5455
5524
  return new Promise((n, s) => {
5456
5525
  const a = new FileReader();
5457
5526
  a.onload = () => {
@@ -5469,28 +5538,28 @@ function An(t, r) {
5469
5538
  }, a.onerror = s, a.readAsDataURL(t);
5470
5539
  });
5471
5540
  }
5472
- function Dn(t) {
5541
+ function Bn(t) {
5473
5542
  const r = [];
5474
- return t.querySelectorAll(`[${_e}]`).forEach((n) => {
5475
- const s = n.getAttribute(_e);
5543
+ return t.querySelectorAll(`[${$e}]`).forEach((n) => {
5544
+ const s = n.getAttribute($e);
5476
5545
  s && r.push(s);
5477
- }), { text: t.innerText ?? "", mentions: r, html: gt(t.innerHTML) };
5546
+ }), { text: t.innerText ?? "", mentions: r, html: pt(t.innerHTML) };
5478
5547
  }
5479
- function _n(t) {
5480
- return Ue.sanitize(t.replace(/\n/g, "<br>"));
5548
+ function Hn(t) {
5549
+ return Ve.sanitize(t.replace(/\n/g, "<br>"));
5481
5550
  }
5482
- function gt(t) {
5483
- return Ue.sanitize(t, { ADD_ATTR: [_e, "contenteditable"] });
5551
+ function pt(t) {
5552
+ return Ve.sanitize(t, { ADD_ATTR: [$e, "contenteditable"] });
5484
5553
  }
5485
- const $n = be(
5554
+ const qn = be(
5486
5555
  ({ initialContent: t, onChange: r, people: n, placeholder: s, onSubmit: a, autoFocus: l, className: o }, u) => {
5487
5556
  const i = se(null), [p, m] = B(null), [f, g] = B(null), [b, w] = B(0), v = ge(() => ({ current: f }), [f]), h = ge(() => {
5488
5557
  if (p === null) return [];
5489
5558
  const _ = p.toLowerCase();
5490
5559
  return n.filter((I) => I.name.toLowerCase().includes(_)).slice(0, 8);
5491
- }, [n, p]), C = Te(h.length > 0, v, { gap: 4 }), k = de(() => {
5560
+ }, [n, p]), C = Me(h.length > 0, v, { gap: 4 }), k = de(() => {
5492
5561
  if (!i.current) return;
5493
- const { text: _, mentions: I, html: O } = Dn(i.current);
5562
+ const { text: _, mentions: I, html: O } = Bn(i.current);
5494
5563
  r(_, I, O);
5495
5564
  }, [r]), P = de(() => {
5496
5565
  m(null), g(null), w(0);
@@ -5505,11 +5574,11 @@ const $n = be(
5505
5574
  H.deleteContents();
5506
5575
  const U = document.createDocumentFragment(), te = _.split(`
5507
5576
  `);
5508
- te.forEach((W, y) => {
5509
- U.appendChild(document.createTextNode(W)), y < te.length - 1 && U.appendChild(document.createElement("br"));
5577
+ te.forEach((K, y) => {
5578
+ U.appendChild(document.createTextNode(K)), y < te.length - 1 && U.appendChild(document.createElement("br"));
5510
5579
  }), H.insertNode(U), H.collapse(!1), O.removeAllRanges(), O.addRange(H);
5511
5580
  } else
5512
- I.innerHTML += _n(_);
5581
+ I.innerHTML += Hn(_);
5513
5582
  k();
5514
5583
  },
5515
5584
  clear: () => {
@@ -5517,7 +5586,7 @@ const $n = be(
5517
5586
  },
5518
5587
  focus: () => i.current?.focus()
5519
5588
  })), Q(() => {
5520
- !i.current || !t || (i.current.innerHTML = gt(t), k());
5589
+ !i.current || !t || (i.current.innerHTML = pt(t), k());
5521
5590
  }, [t, k]), Q(() => {
5522
5591
  l && (window.matchMedia?.("(max-width: 767px)").matches || i.current?.focus());
5523
5592
  }, [l]);
@@ -5532,8 +5601,8 @@ const $n = be(
5532
5601
  m(null), g(null);
5533
5602
  return;
5534
5603
  }
5535
- const W = document.createRange();
5536
- W.setStart(H, te), W.setEnd(H, O.startOffset), m(U.slice(te + 1)), g(W), w(0);
5604
+ const K = document.createRange();
5605
+ K.setStart(H, te), K.setEnd(H, O.startOffset), m(U.slice(te + 1)), g(K), w(0);
5537
5606
  }, []), Y = de(
5538
5607
  (_) => {
5539
5608
  if (!i.current || !f) return;
@@ -5577,8 +5646,8 @@ const $n = be(
5577
5646
  if (!I || I.rangeCount === 0) return;
5578
5647
  const O = I.getRangeAt(0);
5579
5648
  if (!O.collapsed) return;
5580
- const H = O.startContainer, U = O.startOffset, te = (y) => H.nodeType === Node.TEXT_NODE ? y === "prev" ? H.previousSibling : H.nextSibling : H.childNodes[y === "prev" ? U - 1 : U], W = _.key === "Backspace" ? te("prev") : _.key === "Delete" ? te("next") : null;
5581
- W instanceof HTMLElement && W.hasAttribute("data-mention-id") && (_.preventDefault(), W.remove(), k());
5649
+ const H = O.startContainer, U = O.startOffset, te = (y) => H.nodeType === Node.TEXT_NODE ? y === "prev" ? H.previousSibling : H.nextSibling : H.childNodes[y === "prev" ? U - 1 : U], K = _.key === "Backspace" ? te("prev") : _.key === "Delete" ? te("next") : null;
5650
+ K instanceof HTMLElement && K.hasAttribute("data-mention-id") && (_.preventDefault(), K.remove(), k());
5582
5651
  },
5583
5652
  [h, b, Y, P, k, a]
5584
5653
  );
@@ -5595,7 +5664,7 @@ const $n = be(
5595
5664
  className: d(
5596
5665
  "block w-full min-h-16 rounded-lg p-3 text-sm",
5597
5666
  "border-border text-text focus:outline-none",
5598
- lt,
5667
+ We,
5599
5668
  "empty:before:content-[attr(data-placeholder)] empty:before:text-text-subtle",
5600
5669
  o
5601
5670
  ),
@@ -5631,25 +5700,25 @@ const $n = be(
5631
5700
  ] });
5632
5701
  }
5633
5702
  );
5634
- $n.displayName = "MentionComposer";
5635
- const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(Oe, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), In = (t) => /* @__PURE__ */ e(Ie, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), On = {
5703
+ qn.displayName = "MentionComposer";
5704
+ const Ne = (...t) => t.filter(Boolean).join(" "), Un = (t) => /* @__PURE__ */ e(Pe, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Vn = (t) => /* @__PURE__ */ e(Oe, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Wn = {
5636
5705
  sm: "h-control-sm px-3 text-sm",
5637
5706
  md: "h-control-md px-3 text-base",
5638
5707
  lg: "h-control-lg px-3 text-base",
5639
5708
  full: "h-control-md w-full px-3 text-base"
5640
- }, Be = {
5709
+ }, He = {
5641
5710
  sm: "h-4 w-4",
5642
5711
  md: "h-5 w-5",
5643
5712
  lg: "h-6 w-6",
5644
5713
  full: "h-6 w-6"
5645
- }, Pn = be(
5714
+ }, Kn = be(
5646
5715
  ({
5647
5716
  label: t,
5648
5717
  helperText: r,
5649
5718
  error: n,
5650
5719
  size: s = "md",
5651
5720
  fullWidth: a = !1,
5652
- startIcon: l = /* @__PURE__ */ e(Ln, {}),
5721
+ startIcon: l = /* @__PURE__ */ e(Un, {}),
5653
5722
  loading: o = !1,
5654
5723
  containerClassName: u,
5655
5724
  labelClassName: i,
@@ -5664,7 +5733,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(
5664
5733
  onChange: C,
5665
5734
  ...k
5666
5735
  }, P) => {
5667
- const D = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, F = se(null), _ = se(null), [I, O] = B(h || ""), [H, U] = B(!1), [te, W] = B(!1), [y, x] = B(!1);
5736
+ const D = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, F = se(null), _ = se(null), [I, O] = B(h || ""), [H, U] = B(!1), [te, K] = B(!1), [y, x] = B(!1);
5668
5737
  Q(() => {
5669
5738
  h !== void 0 && O(h);
5670
5739
  }, [h]);
@@ -5672,36 +5741,36 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(
5672
5741
  if (v && !y || !I) return f;
5673
5742
  const G = String(I).toLowerCase();
5674
5743
  return f.filter(
5675
- (K) => String(K.label).toLowerCase().includes(G)
5744
+ (W) => String(W.label).toLowerCase().includes(G)
5676
5745
  );
5677
5746
  }, [I, f, v, y]);
5678
5747
  Q(() => {
5679
5748
  if (!g || !I) {
5680
- W(!1);
5749
+ K(!1);
5681
5750
  return;
5682
5751
  }
5683
5752
  const G = setTimeout(async () => {
5684
- W(!0);
5753
+ K(!0);
5685
5754
  try {
5686
5755
  await g(String(I));
5687
- } catch (K) {
5688
- console.error("Remote search failed:", K);
5756
+ } catch (W) {
5757
+ console.error("Remote search failed:", W);
5689
5758
  } finally {
5690
- W(!1);
5759
+ K(!1);
5691
5760
  }
5692
5761
  }, w);
5693
5762
  return () => {
5694
- clearTimeout(G), W(!1);
5763
+ clearTimeout(G), K(!1);
5695
5764
  };
5696
5765
  }, [I, w, g]), Q(() => {
5697
- const G = (K) => {
5698
- F.current && !F.current.contains(K.target) && U(!1);
5766
+ const G = (W) => {
5767
+ F.current && !F.current.contains(W.target) && U(!1);
5699
5768
  };
5700
5769
  return document.addEventListener("mousedown", G), () => document.removeEventListener("mousedown", G);
5701
5770
  }, []);
5702
5771
  const $ = (G) => {
5703
- const K = G.target.value;
5704
- O(K), U(!0), x(!0), C && C(G);
5772
+ const W = G.target.value;
5773
+ O(W), U(!0), x(!0), C && C(G);
5705
5774
  }, T = (G) => {
5706
5775
  O(G.label), U(!1), x(!1), b && b(G.value);
5707
5776
  }, L = () => {
@@ -5731,7 +5800,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(
5731
5800
  }
5732
5801
  ),
5733
5802
  /* @__PURE__ */ c("div", { className: "relative", children: [
5734
- l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: Ne("text-text-muted", Be[s]), children: l }) }),
5803
+ l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: Ne("text-text-muted", He[s]), children: l }) }),
5735
5804
  /* @__PURE__ */ e(
5736
5805
  "input",
5737
5806
  {
@@ -5746,7 +5815,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(
5746
5815
  "placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring",
5747
5816
  "disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
5748
5817
  // Size styles
5749
- On[s],
5818
+ Wn[s],
5750
5819
  // Icon padding
5751
5820
  l ? "pl-10" : "",
5752
5821
  "pr-10",
@@ -5760,15 +5829,15 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(
5760
5829
  ),
5761
5830
  /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: z || o ? (
5762
5831
  // Loading Spinner
5763
- /* @__PURE__ */ e(Ht, { className: Ne("animate-spin text-info-fg", Be[s]), "aria-hidden": !0 })
5832
+ /* @__PURE__ */ e(Ut, { className: Ne("animate-spin text-info-fg", He[s]), "aria-hidden": !0 })
5764
5833
  ) : (
5765
5834
  // Dropdown Chevron
5766
5835
  /* @__PURE__ */ e(
5767
- In,
5836
+ Vn,
5768
5837
  {
5769
5838
  className: Ne(
5770
5839
  "text-text-muted cursor-pointer transition-transform",
5771
- Be[s],
5840
+ He[s],
5772
5841
  H ? "rotate-180" : "rotate-0"
5773
5842
  ),
5774
5843
  onClick: () => {
@@ -5798,8 +5867,8 @@ const Ne = (...t) => t.filter(Boolean).join(" "), Ln = (t) => /* @__PURE__ */ e(
5798
5867
  );
5799
5868
  }
5800
5869
  );
5801
- Pn.displayName = "SearchableTextField";
5802
- const jn = be(
5870
+ Kn.displayName = "SearchableTextField";
5871
+ const Gn = be(
5803
5872
  ({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
5804
5873
  const u = /* @__PURE__ */ e(
5805
5874
  "span",
@@ -5852,25 +5921,25 @@ const jn = be(
5852
5921
  );
5853
5922
  }
5854
5923
  );
5855
- jn.displayName = "Switch";
5856
- const Rn = [
5924
+ Gn.displayName = "Switch";
5925
+ const Jn = [
5857
5926
  { upTo: 1, cols: "grid-cols-1" },
5858
5927
  { upTo: 2, cols: "grid-cols-1 @[22rem]:grid-cols-2" },
5859
5928
  { upTo: 4, cols: "grid-cols-1 @[18rem]:grid-cols-2" },
5860
5929
  { upTo: 9, cols: "grid-cols-2 @[26rem]:grid-cols-3" }
5861
- ], Fn = "grid-cols-2 @[26rem]:grid-cols-3 @[40rem]:grid-cols-4";
5862
- function Bn(t) {
5863
- return Rn.find((r) => t <= r.upTo)?.cols ?? Fn;
5930
+ ], Yn = "grid-cols-2 @[26rem]:grid-cols-3 @[40rem]:grid-cols-4";
5931
+ function Xn(t) {
5932
+ return Jn.find((r) => t <= r.upTo)?.cols ?? Yn;
5864
5933
  }
5865
- function Hn(t, r) {
5934
+ function Zn(t, r) {
5866
5935
  const n = r ?? t;
5867
5936
  if (t <= n) return { shown: t, hidden: 0 };
5868
5937
  const s = Math.max(0, n - 1);
5869
5938
  return { shown: s, hidden: t - s };
5870
5939
  }
5871
- function aa({ tiles: t, pinned: r, maxStrip: n, className: s }) {
5940
+ function xa({ tiles: t, pinned: r, maxStrip: n, className: s }) {
5872
5941
  if (r) {
5873
- const { shown: a, hidden: l } = Hn(t.length, n), o = t.slice(0, a);
5942
+ const { shown: a, hidden: l } = Zn(t.length, n), o = t.slice(0, a);
5874
5943
  return /* @__PURE__ */ c("div", { className: d("@container flex h-full min-h-0 flex-col gap-2", s), children: [
5875
5944
  /* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: r }),
5876
5945
  t.length > 0 && // Fixed height as a share of the pane, with a floor so the strip
@@ -5889,14 +5958,14 @@ function aa({ tiles: t, pinned: r, maxStrip: n, className: s }) {
5889
5958
  {
5890
5959
  className: d(
5891
5960
  "@container grid h-full min-h-0 auto-rows-fr gap-2",
5892
- Bn(t.length),
5961
+ Xn(t.length),
5893
5962
  s
5894
5963
  ),
5895
5964
  children: t.map((a, l) => /* @__PURE__ */ e("div", { className: "min-h-0 min-w-0", children: a }, l))
5896
5965
  }
5897
5966
  );
5898
5967
  }
5899
- function la({
5968
+ function ga({
5900
5969
  name: t,
5901
5970
  avatarUrl: r,
5902
5971
  muted: n,
@@ -5923,16 +5992,16 @@ function la({
5923
5992
  alt: t,
5924
5993
  className: "aspect-square w-[38%] max-w-16 min-w-6 rounded-full object-cover"
5925
5994
  }
5926
- ) : /* @__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(qt, { className: "w-1/2 h-1/2" }) : /* @__PURE__ */ e(Ut, { className: "w-1/2 h-1/2" }) }) }),
5995
+ ) : /* @__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(Vt, { className: "w-1/2 h-1/2" }) : /* @__PURE__ */ e(Wt, { className: "w-1/2 h-1/2" }) }) }),
5927
5996
  /* @__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: [
5928
- n ? /* @__PURE__ */ e(Vt, { className: "size-3 shrink-0" }) : /* @__PURE__ */ e(Kt, { className: "size-3 shrink-0" }),
5997
+ n ? /* @__PURE__ */ e(Kt, { className: "size-3 shrink-0" }) : /* @__PURE__ */ e(Gt, { className: "size-3 shrink-0" }),
5929
5998
  /* @__PURE__ */ e("span", { className: "hidden truncate @[9rem]:inline", children: t })
5930
5999
  ] })
5931
6000
  ]
5932
6001
  }
5933
6002
  );
5934
6003
  }
5935
- function oa({
6004
+ function ba({
5936
6005
  attach: t,
5937
6006
  active: r = !0,
5938
6007
  mirrored: n = !1,
@@ -5957,7 +6026,7 @@ function oa({
5957
6026
  }
5958
6027
  );
5959
6028
  }
5960
- const qn = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
6029
+ const Qn = () => /* @__PURE__ */ e(Ke, { variant: "inline", shape: "menu" }), vt = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
5961
6030
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
5962
6031
  if (a)
5963
6032
  return /* @__PURE__ */ c("li", { children: [
@@ -5974,7 +6043,7 @@ const qn = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
5974
6043
  }
5975
6044
  ),
5976
6045
  /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((i, p) => /* @__PURE__ */ e(
5977
- bt,
6046
+ vt,
5978
6047
  {
5979
6048
  item: i,
5980
6049
  isSelectedHandler: r,
@@ -6064,7 +6133,7 @@ const qn = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
6064
6133
  ]
6065
6134
  }
6066
6135
  ) });
6067
- }, ca = ({
6136
+ }, pa = ({
6068
6137
  items: t,
6069
6138
  isSelectedHandler: r,
6070
6139
  onClick: n,
@@ -6072,12 +6141,12 @@ const qn = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
6072
6141
  loading: a = !1
6073
6142
  }) => a ? /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
6074
6143
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
6075
- /* @__PURE__ */ e(qn, {})
6144
+ /* @__PURE__ */ e(Qn, {})
6076
6145
  ] }) : /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
6077
6146
  s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
6078
6147
  /* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-px overflow-y-auto", children: t.map(
6079
6148
  (l, o) => !l.path && !l.label && !l.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, o) : /* @__PURE__ */ e(
6080
- bt,
6149
+ vt,
6081
6150
  {
6082
6151
  item: l,
6083
6152
  isSelectedHandler: r,
@@ -6087,7 +6156,7 @@ const qn = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
6087
6156
  )
6088
6157
  ) })
6089
6158
  ] });
6090
- function ia({
6159
+ function va({
6091
6160
  open: t,
6092
6161
  title: r,
6093
6162
  description: n,
@@ -6099,7 +6168,7 @@ function ia({
6099
6168
  onCancel: i
6100
6169
  }) {
6101
6170
  return /* @__PURE__ */ e(
6102
- xt,
6171
+ bt,
6103
6172
  {
6104
6173
  open: t,
6105
6174
  onClose: i,
@@ -6121,7 +6190,7 @@ function ia({
6121
6190
  }
6122
6191
  );
6123
6192
  }
6124
- const Un = {
6193
+ const es = {
6125
6194
  none: "p-0",
6126
6195
  xs: "p-1",
6127
6196
  sm: "p-2",
@@ -6129,7 +6198,7 @@ const Un = {
6129
6198
  lg: "p-6",
6130
6199
  xl: "p-8",
6131
6200
  "2xl": "p-12"
6132
- }, Vn = {
6201
+ }, ts = {
6133
6202
  none: "m-0",
6134
6203
  xs: "m-1",
6135
6204
  sm: "m-2",
@@ -6137,7 +6206,7 @@ const Un = {
6137
6206
  lg: "m-6",
6138
6207
  xl: "m-8",
6139
6208
  "2xl": "m-12"
6140
- }, Kn = {
6209
+ }, rs = {
6141
6210
  none: "",
6142
6211
  primary: "bg-accent text-accent-fg",
6143
6212
  secondary: "bg-surface-hover",
@@ -6153,26 +6222,26 @@ const Un = {
6153
6222
  backdrop: "bg-page",
6154
6223
  editor: "bg-surface",
6155
6224
  input: "bg-surface-input"
6156
- }, Wn = {
6225
+ }, ns = {
6157
6226
  none: "rounded-none",
6158
6227
  sm: "rounded-sm",
6159
6228
  md: "rounded-md",
6160
6229
  lg: "rounded-lg",
6161
6230
  xl: "rounded-xl",
6162
6231
  full: "rounded-full"
6163
- }, Gn = {
6232
+ }, ss = {
6164
6233
  none: "shadow-none",
6165
6234
  sm: "shadow-none",
6166
6235
  md: "shadow-overlay",
6167
6236
  lg: "shadow-overlay",
6168
6237
  xl: "shadow-modal",
6169
6238
  "2xl": "shadow-modal"
6170
- }, Jn = {
6239
+ }, as = {
6171
6240
  none: "border-0",
6172
6241
  sm: "border",
6173
6242
  md: "border-2",
6174
6243
  lg: "border-4"
6175
- }, Yn = {
6244
+ }, ls = {
6176
6245
  primary: "border-accent-border",
6177
6246
  secondary: "border-border",
6178
6247
  accent: "border-accent-border",
@@ -6182,7 +6251,7 @@ const Un = {
6182
6251
  info: "border-info-border",
6183
6252
  neutral: "border-border-subtle",
6184
6253
  white: "border-border-subtle"
6185
- }, pt = be(
6254
+ }, yt = be(
6186
6255
  ({
6187
6256
  padding: t,
6188
6257
  margin: r,
@@ -6199,13 +6268,13 @@ const Un = {
6199
6268
  {
6200
6269
  ref: m,
6201
6270
  className: d(
6202
- t && Un[t],
6203
- r && Vn[r],
6204
- n && Kn[n],
6205
- s && Wn[s],
6206
- a && Gn[a],
6207
- l && Jn[l],
6208
- o && Yn[o],
6271
+ t && es[t],
6272
+ r && ts[r],
6273
+ n && rs[n],
6274
+ s && ns[s],
6275
+ a && ss[a],
6276
+ l && as[l],
6277
+ o && ls[o],
6209
6278
  u
6210
6279
  ),
6211
6280
  ...p,
@@ -6213,11 +6282,11 @@ const Un = {
6213
6282
  }
6214
6283
  )
6215
6284
  );
6216
- pt.displayName = "Box";
6217
- const da = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { background: "module", radius: "lg", shadow: "none", border: "sm", borderColor: "neutral", ...n, children: [
6285
+ yt.displayName = "Box";
6286
+ const ya = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(yt, { background: "module", radius: "lg", shadow: "none", border: "sm", borderColor: "neutral", ...n, children: [
6218
6287
  r && /* @__PURE__ */ e("span", { className: "mb-2 block text-sm font-semibold text-text", children: r }),
6219
6288
  t
6220
- ] }), Xn = {
6289
+ ] }), os = {
6221
6290
  xs: "text-xs",
6222
6291
  sm: "text-sm",
6223
6292
  md: "text-base",
@@ -6226,13 +6295,13 @@ const da = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { backgrou
6226
6295
  "2xl": "text-2xl",
6227
6296
  "3xl": "text-3xl",
6228
6297
  "4xl": "text-3xl"
6229
- }, Zn = {
6298
+ }, cs = {
6230
6299
  light: "font-normal",
6231
6300
  normal: "font-normal",
6232
6301
  medium: "font-medium",
6233
6302
  semibold: "font-semibold",
6234
6303
  bold: "font-bold"
6235
- }, Qn = {
6304
+ }, is = {
6236
6305
  primary: "text-text",
6237
6306
  secondary: "text-text-muted",
6238
6307
  accent: "text-accent",
@@ -6242,11 +6311,11 @@ const da = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { backgrou
6242
6311
  info: "text-info-fg",
6243
6312
  neutral: "text-text",
6244
6313
  current: "text-current"
6245
- }, es = {
6314
+ }, ds = {
6246
6315
  left: "text-left",
6247
6316
  center: "text-center",
6248
6317
  right: "text-right"
6249
- }, ua = ({
6318
+ }, Na = ({
6250
6319
  level: t = 1,
6251
6320
  size: r,
6252
6321
  weight: n = "semibold",
@@ -6259,16 +6328,16 @@ const da = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { backgrou
6259
6328
  }) => {
6260
6329
  const p = `h${t}`, m = d(
6261
6330
  "font-sans text-pretty",
6262
- Xn[r || ts(t)],
6263
- Zn[n],
6264
- Qn[s],
6265
- es[a],
6331
+ os[r || us(t)],
6332
+ cs[n],
6333
+ is[s],
6334
+ ds[a],
6266
6335
  l && "truncate",
6267
6336
  o
6268
6337
  );
6269
6338
  return /* @__PURE__ */ e(p, { className: m, ...i, children: u });
6270
6339
  };
6271
- function ts(t) {
6340
+ function us(t) {
6272
6341
  return {
6273
6342
  1: "2xl",
6274
6343
  2: "xl",
@@ -6278,111 +6347,111 @@ function ts(t) {
6278
6347
  6: "md"
6279
6348
  }[t] || "md";
6280
6349
  }
6281
- const tt = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
6282
- function ma(t) {
6350
+ const nt = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
6351
+ function wa(t) {
6283
6352
  let r = 0;
6284
6353
  for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
6285
- return tt[r % tt.length];
6354
+ return nt[r % nt.length];
6286
6355
  }
6287
6356
  export {
6288
- ys as ActivityAvatar,
6289
- Ns as ActivityGlyph,
6290
- ps as ActivityRow,
6291
- hs as ArtifactView,
6292
- xs as AssistantCard,
6293
- it as Avatar,
6294
- bs as AvatarStack,
6295
- Qr as Badge,
6296
- pt as Box,
6357
+ As as ActivityAvatar,
6358
+ Ds as ActivityGlyph,
6359
+ Ms as ActivityRow,
6360
+ Cs as ArtifactView,
6361
+ Ss as AssistantCard,
6362
+ ut as Avatar,
6363
+ Ts as AvatarStack,
6364
+ dn as Badge,
6365
+ yt as Box,
6297
6366
  ae as Button,
6298
- us as ButtonGroup,
6299
- da as Card,
6300
- Cs as ChannelBadge,
6367
+ Ns as ButtonGroup,
6368
+ ya as Card,
6369
+ Ls as ChannelBadge,
6301
6370
  we as Checkbox,
6302
- fs as CommandPalette,
6303
- ia as ConfirmDialog,
6304
- Ve as ContentLoading,
6305
- He as DatePicker,
6306
- Ur as Dropdown,
6307
- Ys as EmptyState,
6308
- Gs as ErrorBoundary,
6309
- Js as FederatedResource,
6310
- sr as FilterChip,
6311
- yn as FolderSelect,
6312
- na as Form,
6313
- Mn as FormSection,
6314
- ua as Heading,
6315
- vr as IDENTITY_TONE_COUNT,
6371
+ ks as CommandPalette,
6372
+ va as ConfirmDialog,
6373
+ Ke as ContentLoading,
6374
+ qe as DatePicker,
6375
+ en as Dropdown,
6376
+ la as EmptyState,
6377
+ sa as ErrorBoundary,
6378
+ aa as FederatedResource,
6379
+ lr as FilterChip,
6380
+ An as FolderSelect,
6381
+ fa as Form,
6382
+ jn as FormSection,
6383
+ Na as Heading,
6384
+ zr as IDENTITY_TONE_COUNT,
6316
6385
  Z as Icon,
6317
- Ss as Image,
6318
- sa as ImageField,
6319
- Xs as Kbd,
6320
- Es as KpiCard,
6321
- ms as Link,
6322
- Ms as List,
6323
- Ts as ListBulkAction,
6324
- aa as MeetingGrid,
6325
- $n as MentionComposer,
6326
- zs as MessageBubble,
6327
- Ds as MetaSeparator,
6328
- As as MetaValue,
6329
- xt as Modal,
6330
- _s as Page,
6331
- Or as PageHeader,
6332
- $s as PageToolbar,
6386
+ Is as Image,
6387
+ ha as ImageField,
6388
+ oa as Kbd,
6389
+ Os as KpiCard,
6390
+ ws as Link,
6391
+ js as List,
6392
+ Ps as ListBulkAction,
6393
+ xa as MeetingGrid,
6394
+ qn as MentionComposer,
6395
+ Rs as MessageBubble,
6396
+ Bs as MetaSeparator,
6397
+ Fs as MetaValue,
6398
+ bt as Modal,
6399
+ Hs as Page,
6400
+ Wr as PageHeader,
6401
+ qs as PageToolbar,
6333
6402
  ke as PageToolbarActions,
6334
- la as ParticipantTile,
6335
- st as Popover,
6336
- Zs as ProgressBar,
6337
- Me as RichText,
6338
- ws as RowCard,
6339
- ut as SearchField,
6340
- Pn as SearchableTextField,
6341
- Ls as SectionCaption,
6342
- Is as SectionDivider,
6343
- ir as SegmentedToggle,
6344
- $e as Select,
6345
- Os as SettingsFrameProvider,
6346
- js as SettingsPage,
6347
- Rs as SettingsRow,
6348
- Fs as SettingsSection,
6349
- ca as SidebarMenu,
6350
- Bs as SourceChip,
6351
- Qs as Spinner,
6352
- at as SplitButton,
6353
- ea as StatusDot,
6354
- ta as StepIndicator,
6355
- Cn as StorageInput,
6356
- jn as Switch,
6357
- ra as TabBar,
6358
- Ze as Table,
6359
- wn as Tabs,
6403
+ ga as ParticipantTile,
6404
+ lt as Popover,
6405
+ ca as ProgressBar,
6406
+ ze as RichText,
6407
+ _s as RowCard,
6408
+ ft as SearchField,
6409
+ Kn as SearchableTextField,
6410
+ Us as SectionCaption,
6411
+ Vs as SectionDivider,
6412
+ ur as SegmentedToggle,
6413
+ Ie as Select,
6414
+ Ws as SettingsFrameProvider,
6415
+ Gs as SettingsPage,
6416
+ Js as SettingsRow,
6417
+ Ys as SettingsSection,
6418
+ pa as SidebarMenu,
6419
+ Xs as SourceChip,
6420
+ ia as Spinner,
6421
+ ot as SplitButton,
6422
+ da as StatusDot,
6423
+ ua as StepIndicator,
6424
+ Ln as StorageInput,
6425
+ Gn as Switch,
6426
+ ma as TabBar,
6427
+ et as Table,
6428
+ _n as Tabs,
6360
6429
  me as Text,
6361
- qe as TextArea,
6430
+ Ue as TextArea,
6362
6431
  Ce as TextField,
6363
- ks as TimelineEvent,
6364
- oa as VideoSurface,
6365
- Ws as View,
6366
- Qe as autofillProps,
6367
- en as badgeColumn,
6368
- Vs as booleanBadgeColumn,
6369
- vs as cardActionClass,
6370
- ma as catTone,
6432
+ $s as TimelineEvent,
6433
+ ba as VideoSurface,
6434
+ na as View,
6435
+ tt as autofillProps,
6436
+ un as badgeColumn,
6437
+ ta as booleanBadgeColumn,
6438
+ zs as cardActionClass,
6439
+ wa as catTone,
6371
6440
  d as cn,
6372
- ds as createSizes,
6373
- is as createVariants,
6374
- Hs as dateFilterHandler,
6375
- gs as identityDotClass,
6376
- ct as identityPlateClass,
6377
- ot as identityTone,
6378
- Ks as labelsColumn,
6379
- Us as multiSelectFilterHandler,
6380
- bn as normalizeText,
6381
- Zt as resolveLucideIcon,
6382
- qs as selectFilterHandler,
6383
- De as text,
6384
- Te as useAnchoredPosition,
6385
- Rr as useSettingsFrame,
6386
- Ps as useSettingsFrameHost
6441
+ ys as createSizes,
6442
+ vs as createVariants,
6443
+ Zs as dateFilterHandler,
6444
+ Es as identityDotClass,
6445
+ dt as identityPlateClass,
6446
+ it as identityTone,
6447
+ ra as labelsColumn,
6448
+ ea as multiSelectFilterHandler,
6449
+ Tn as normalizeText,
6450
+ er as resolveLucideIcon,
6451
+ Qs as selectFilterHandler,
6452
+ _e as text,
6453
+ Me as useAnchoredPosition,
6454
+ Jr as useSettingsFrame,
6455
+ Ks as useSettingsFrameHost
6387
6456
  };
6388
6457
  //# sourceMappingURL=index.js.map