@opencxh/ui-kit 3.137.4 → 3.137.5

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,26 +1,26 @@
1
1
  import { clsx as et } from "clsx";
2
2
  import { jsxs as i, jsx as e, Fragment as ve } from "react/jsx-runtime";
3
- import { VideoOff as tt, User as rt, MicOff as nt, Mic as st, X as we, ChevronDown as Se, ExternalLink as at, Calendar as lt, ChevronLeft as Ee, ChevronRight as ze, ChevronDownIcon as ot, Loader2 as ct, Search as Me, Check as Ie, ChevronUp as it, Ellipsis as dt, FileText as Te, HardDrive as Pe, ArrowLeft as ut, FolderPlus as mt, Upload as ft, Folder as je, Trash2 as ht, Plus as xt, Sparkles as bt, ImageOff as pt, Pencil as gt, ArrowUpRight as vt } from "lucide-react";
4
- import oe, { useRef as se, useEffect as X, forwardRef as xe, useState as O, useLayoutEffect as yt, useMemo as ge, useCallback as he, createContext as Nt, Component as wt } from "react";
3
+ import { VideoOff as tt, User as rt, MicOff as nt, Mic as st, X as we, ChevronDown as Se, ExternalLink as at, Calendar as lt, ChevronLeft as Ee, ChevronRight as ze, ChevronDownIcon as ot, Loader2 as ct, Search as Me, Check as Ie, ChevronUp as it, Ellipsis as dt, FileText as Te, HardDrive as Pe, ArrowLeft as ut, FolderPlus as mt, Upload as ft, Folder as je, Trash2 as ht, Plus as xt, Sparkles as bt, ImageOff as gt, Pencil as pt, ArrowUpRight as vt } from "lucide-react";
4
+ import oe, { useRef as se, useEffect as X, forwardRef as xe, useState as O, useLayoutEffect as yt, useMemo as pe, useCallback as he, createContext as Nt, Component as wt } from "react";
5
5
  import kt from "dompurify";
6
6
  import Ct from "react-markdown";
7
7
  import St from "remark-gfm";
8
8
  function d(...t) {
9
9
  return et(t);
10
10
  }
11
- function cn(t) {
11
+ function dn(t) {
12
12
  return (r, n) => t[r]?.[n] || "";
13
13
  }
14
- function dn(t) {
14
+ function un(t) {
15
15
  return (r) => t[r] || "";
16
16
  }
17
17
  const Oe = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
18
- function un(t) {
18
+ function mn(t) {
19
19
  let r = 0;
20
20
  for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
21
21
  return Oe[r % Oe.length];
22
22
  }
23
- function mn({ tiles: t, pinned: r, className: n }) {
23
+ function fn({ tiles: t, pinned: r, className: n }) {
24
24
  if (r)
25
25
  return /* @__PURE__ */ i("div", { className: d("flex flex-col md:flex-row gap-2 h-full min-h-0", n), children: [
26
26
  /* @__PURE__ */ e("div", { className: "flex-1 min-h-0", children: r }),
@@ -29,7 +29,7 @@ function mn({ tiles: t, pinned: r, className: n }) {
29
29
  const s = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
30
30
  return /* @__PURE__ */ e("div", { className: d("grid gap-2 h-full", s, n), children: t.map((a, l) => /* @__PURE__ */ e("div", { children: a }, l)) });
31
31
  }
32
- function fn({
32
+ function hn({
33
33
  name: t,
34
34
  avatarUrl: r,
35
35
  muted: n,
@@ -37,14 +37,14 @@ function fn({
37
37
  hasVideo: a,
38
38
  videoSlot: l,
39
39
  className: o,
40
- fill: u
40
+ fill: m
41
41
  }) {
42
42
  return /* @__PURE__ */ i(
43
43
  "div",
44
44
  {
45
45
  className: d(
46
46
  "relative rounded-lg overflow-hidden bg-video-surface flex items-center justify-center",
47
- u ? "h-full w-full" : "aspect-video",
47
+ m ? "h-full w-full" : "aspect-video",
48
48
  s && "ring-2 ring-speaking",
49
49
  o
50
50
  ),
@@ -58,7 +58,7 @@ function fn({
58
58
  }
59
59
  );
60
60
  }
61
- function hn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
61
+ function xn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
62
62
  const a = se(null);
63
63
  return X(() => {
64
64
  if (!r || !a.current) return;
@@ -116,8 +116,8 @@ const Et = {
116
116
  leftIcon: a,
117
117
  rightIcon: l,
118
118
  iconOnly: o = !1,
119
- shape: u = "default",
120
- className: m,
119
+ shape: m = "default",
120
+ className: u,
121
121
  children: y,
122
122
  disabled: x,
123
123
  ...h
@@ -133,7 +133,7 @@ const Et = {
133
133
  // the same weight as an emphasised nav item, and 600 at 12–13px
134
134
  // reads as a heavier control than the surrounding chrome.
135
135
  "inline-flex shrink-0 items-center justify-center gap-2 cursor-pointer font-medium",
136
- u === "circle" ? "rounded-full" : "rounded-md",
136
+ m === "circle" ? "rounded-full" : "rounded-md",
137
137
  "transition-colors duration-fast ease-out",
138
138
  "focus-visible:outline-none focus-visible:focus-ring",
139
139
  "disabled:cursor-not-allowed disabled:border-border-subtle",
@@ -142,7 +142,7 @@ const Et = {
142
142
  o ? Mt[r] : zt[r],
143
143
  (n || r === "full") && "w-full",
144
144
  s && "cursor-wait",
145
- m
145
+ u
146
146
  ),
147
147
  disabled: v,
148
148
  "aria-busy": s || void 0,
@@ -165,7 +165,7 @@ const Et = {
165
165
  }
166
166
  );
167
167
  ae.displayName = "Button";
168
- const xn = ({
168
+ const bn = ({
169
169
  children: t,
170
170
  size: r = "md",
171
171
  orientation: n = "horizontal",
@@ -213,9 +213,9 @@ const xn = ({
213
213
  onClick: a,
214
214
  className: l,
215
215
  "aria-label": o,
216
- ...u
216
+ ...m
217
217
  }) => {
218
- const m = typeof r == "number" ? r : Dt(r), y = d(
218
+ const u = typeof r == "number" ? r : Dt(r), y = d(
219
219
  "inline-block shrink-0",
220
220
  $t[n],
221
221
  s && [
@@ -224,7 +224,7 @@ const xn = ({
224
224
  ],
225
225
  l
226
226
  ), x = {
227
- size: m,
227
+ size: u,
228
228
  strokeWidth: 2,
229
229
  className: y,
230
230
  onClick: s ? a : void 0,
@@ -235,7 +235,7 @@ const xn = ({
235
235
  onKeyDown: s ? (h) => {
236
236
  (h.key === "Enter" || h.key === " ") && (h.preventDefault(), a?.());
237
237
  } : void 0,
238
- ...u
238
+ ...m
239
239
  };
240
240
  return /* @__PURE__ */ e(t, { ...x });
241
241
  };
@@ -252,14 +252,14 @@ function $e(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start
252
252
  const [l, o] = O({});
253
253
  return yt(() => {
254
254
  if (!t) return;
255
- const u = () => {
256
- const m = r.current;
257
- if (!m) return;
258
- const y = m.getBoundingClientRect(), x = window.innerHeight - y.bottom, h = y.top, b = a.startsWith("top"), v = b ? h < 200 && x > h : x < 200 && h > x, k = b !== v, p = { position: "fixed" };
259
- k ? (p.bottom = window.innerHeight - y.top + n, p.maxHeight = Math.max(120, h - n * 2)) : (p.top = y.bottom + n, p.maxHeight = Math.max(120, x - n * 2)), a.endsWith("end") ? p.right = window.innerWidth - y.right : p.left = y.left, s && (p.width = y.width), o(p);
255
+ const m = () => {
256
+ const u = r.current;
257
+ if (!u) return;
258
+ const y = u.getBoundingClientRect(), x = window.innerHeight - y.bottom, h = y.top, b = a.startsWith("top"), v = b ? h < 200 && x > h : x < 200 && h > x, k = b !== v, g = { position: "fixed" };
259
+ k ? (g.bottom = window.innerHeight - y.top + n, g.maxHeight = Math.max(120, h - n * 2)) : (g.top = y.bottom + n, g.maxHeight = Math.max(120, x - n * 2)), a.endsWith("end") ? g.right = window.innerWidth - y.right : g.left = y.left, s && (g.width = y.width), o(g);
260
260
  };
261
- return u(), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
262
- window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
261
+ return m(), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m), () => {
262
+ window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
263
263
  };
264
264
  }, [t, r, n, s, a]), l;
265
265
  }
@@ -271,22 +271,22 @@ const Ve = ({
271
271
  rootClassName: a,
272
272
  triggerClassName: l,
273
273
  disabled: o = !1,
274
- triggerLabel: u
274
+ triggerLabel: m
275
275
  }) => {
276
- const [m, y] = O(!1), x = se(null), h = se(null), b = $e(m, h, { placement: n });
276
+ const [u, y] = O(!1), x = se(null), h = se(null), b = $e(u, h, { placement: n });
277
277
  X(() => {
278
- if (!m) return;
279
- const p = ($) => {
278
+ if (!u) return;
279
+ const g = ($) => {
280
280
  x.current && !x.current.contains($.target) && y(!1);
281
281
  }, f = ($) => {
282
282
  $.key === "Escape" && y(!1);
283
283
  };
284
- return document.addEventListener("mousedown", p), document.addEventListener("keydown", f), () => {
285
- document.removeEventListener("mousedown", p), document.removeEventListener("keydown", f);
284
+ return document.addEventListener("mousedown", g), document.addEventListener("keydown", f), () => {
285
+ document.removeEventListener("mousedown", g), document.removeEventListener("keydown", f);
286
286
  };
287
- }, [m]);
288
- const v = (p) => {
289
- p.stopPropagation(), !o && y((f) => !f);
287
+ }, [u]);
288
+ const v = (g) => {
289
+ g.stopPropagation(), !o && y((f) => !f);
290
290
  }, k = () => y(!1);
291
291
  return /* @__PURE__ */ i("div", { ref: x, className: d("relative inline-flex", a), children: [
292
292
  /* @__PURE__ */ e(
@@ -296,8 +296,8 @@ const Ve = ({
296
296
  type: "button",
297
297
  onClick: v,
298
298
  disabled: o,
299
- "aria-label": u,
300
- "aria-expanded": m,
299
+ "aria-label": m,
300
+ "aria-expanded": u,
301
301
  className: d(
302
302
  "inline-flex items-center",
303
303
  o && "cursor-not-allowed opacity-50",
@@ -306,7 +306,7 @@ const Ve = ({
306
306
  children: t
307
307
  }
308
308
  ),
309
- m && /* @__PURE__ */ e(
309
+ u && /* @__PURE__ */ e(
310
310
  "div",
311
311
  {
312
312
  className: d(
@@ -350,15 +350,15 @@ function Lt({
350
350
  size: a = "md",
351
351
  active: l = !1,
352
352
  caret: o = !1,
353
- menu: u,
354
- menuClassName: m,
353
+ menu: m,
354
+ menuClassName: u,
355
355
  onClear: y,
356
356
  clearLabel: x = "Filter wissen",
357
357
  onClick: h,
358
358
  title: b,
359
359
  className: v
360
360
  }) {
361
- const k = l && !!y, p = s === "pill" ? "rounded-full" : "rounded-md", f = _t({ active: l, tone: n, shape: s, size: a, className: v }), $ = /* @__PURE__ */ i(ve, { children: [
361
+ const k = l && !!y, g = s === "pill" ? "rounded-full" : "rounded-md", f = _t({ active: l, tone: n, shape: s, size: a, className: v }), $ = /* @__PURE__ */ i(ve, { children: [
362
362
  r,
363
363
  t,
364
364
  o && /* @__PURE__ */ e(Q, { icon: Se, size: "xs" })
@@ -368,19 +368,19 @@ function Lt({
368
368
  type: "button",
369
369
  "aria-label": x,
370
370
  onClick: y,
371
- className: d("inline-flex h-full items-center pr-3 focus-visible:outline-none focus-visible:focus-ring", p),
371
+ className: d("inline-flex h-full items-center pr-3 focus-visible:outline-none focus-visible:focus-ring", g),
372
372
  children: /* @__PURE__ */ e(Q, { icon: we, size: "xs" })
373
373
  }
374
374
  );
375
- return u ? /* @__PURE__ */ i("span", { className: f, title: b, children: [
375
+ return m ? /* @__PURE__ */ i("span", { className: f, title: b, children: [
376
376
  /* @__PURE__ */ e(
377
377
  Ve,
378
378
  {
379
379
  trigger: $,
380
380
  rootClassName: "h-full",
381
381
  triggerClassName: d(C, "h-full"),
382
- className: d("min-w-menu p-1.5", m),
383
- children: u
382
+ className: d("min-w-menu p-1.5", u),
383
+ children: m
384
384
  }
385
385
  ),
386
386
  q
@@ -413,7 +413,7 @@ const It = {
413
413
  warning: "bg-warning-soft",
414
414
  error: "bg-danger-soft",
415
415
  info: "bg-info-soft"
416
- }, bn = ({
416
+ }, gn = ({
417
417
  variant: t = "default",
418
418
  size: r = "md",
419
419
  color: n = "primary",
@@ -421,12 +421,12 @@ const It = {
421
421
  external: a = !1,
422
422
  className: l,
423
423
  children: o,
424
- href: u,
425
- target: m,
424
+ href: m,
425
+ target: u,
426
426
  rel: y,
427
427
  ...x
428
428
  }) => {
429
- const h = a || u && (u.startsWith("http") || u.startsWith("mailto:")), b = d(
429
+ const h = a || m && (m.startsWith("http") || m.startsWith("mailto:")), b = d(
430
430
  "inline-flex items-center gap-1 underline-offset-2",
431
431
  "transition-colors duration-fast ease-out",
432
432
  "focus-visible:outline-none focus-visible:focus-ring",
@@ -442,8 +442,8 @@ const It = {
442
442
  l
443
443
  ), v = {
444
444
  ...x,
445
- href: s ? void 0 : u,
446
- target: h ? "_blank" : m,
445
+ href: s ? void 0 : m,
446
+ target: h ? "_blank" : u,
447
447
  rel: h ? "noopener noreferrer" : y,
448
448
  "aria-disabled": s || void 0
449
449
  };
@@ -463,28 +463,28 @@ function Ft({
463
463
  tone: a = "sunk",
464
464
  fullWidth: l = !1,
465
465
  className: o,
466
- "aria-label": u
466
+ "aria-label": m
467
467
  }) {
468
468
  return /* @__PURE__ */ e(
469
469
  "div",
470
470
  {
471
471
  role: "tablist",
472
- "aria-label": u,
472
+ "aria-label": m,
473
473
  className: d(
474
474
  "gap-0.5 rounded-md p-0.5",
475
475
  a === "track" ? "bg-surface-track" : "bg-surface-sunk",
476
476
  l ? "flex w-full" : "inline-flex",
477
477
  o
478
478
  ),
479
- children: t.map((m) => {
480
- const y = m.value === r;
479
+ children: t.map((u) => {
480
+ const y = u.value === r;
481
481
  return /* @__PURE__ */ e(
482
482
  "button",
483
483
  {
484
484
  role: "tab",
485
485
  "aria-selected": y,
486
486
  type: "button",
487
- onClick: () => n(m.value),
487
+ onClick: () => n(u.value),
488
488
  className: d(
489
489
  "inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-sm",
490
490
  "transition-colors duration-fast ease-out",
@@ -493,9 +493,9 @@ function Ft({
493
493
  Ot[s],
494
494
  y ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
495
495
  ),
496
- children: m.label
496
+ children: u.label
497
497
  },
498
- m.value
498
+ u.value
499
499
  );
500
500
  })
501
501
  }
@@ -517,11 +517,11 @@ function qe({
517
517
  icon: a,
518
518
  options: l,
519
519
  disabled: o = !1,
520
- loading: u = !1,
521
- menuPlacement: m = "bottom-end",
520
+ loading: m = !1,
521
+ menuPlacement: u = "bottom-end",
522
522
  menuLabel: y = "More options"
523
523
  }) {
524
- const x = o || u, h = l.length > 0;
524
+ const x = o || m, h = l.length > 0;
525
525
  return /* @__PURE__ */ i("div", { className: d("inline-flex items-center", n === "primary" && "gap-0.5"), children: [
526
526
  /* @__PURE__ */ e(
527
527
  ae,
@@ -530,7 +530,7 @@ function qe({
530
530
  size: s,
531
531
  onClick: r,
532
532
  disabled: o,
533
- loading: u,
533
+ loading: m,
534
534
  leftIcon: a,
535
535
  className: d(h && "rounded-r-none"),
536
536
  children: t
@@ -539,7 +539,7 @@ function qe({
539
539
  h && /* @__PURE__ */ e(
540
540
  Ve,
541
541
  {
542
- placement: m,
542
+ placement: u,
543
543
  disabled: x,
544
544
  triggerLabel: y,
545
545
  className: "min-w-menu py-1",
@@ -605,11 +605,11 @@ const Ht = {
605
605
  indeterminate: a = !1,
606
606
  containerClassName: l,
607
607
  labelClassName: o,
608
- className: u,
609
- id: m,
608
+ className: m,
609
+ id: u,
610
610
  ...y
611
611
  }, x) => {
612
- const h = oe.useId(), b = m || `checkbox-${h}`, v = !!n, k = oe.useRef(null), p = oe.useCallback(
612
+ const h = oe.useId(), b = u || `checkbox-${h}`, v = !!n, k = oe.useRef(null), g = oe.useCallback(
613
613
  (f) => {
614
614
  k.current = f, typeof x == "function" ? x(f) : x && typeof x == "object" && (x.current = f);
615
615
  },
@@ -622,7 +622,7 @@ const Ht = {
622
622
  /* @__PURE__ */ e(
623
623
  "input",
624
624
  {
625
- ref: p,
625
+ ref: g,
626
626
  id: b,
627
627
  type: "checkbox",
628
628
  "aria-invalid": v || void 0,
@@ -637,7 +637,7 @@ const Ht = {
637
637
  "disabled:cursor-not-allowed disabled:bg-surface-hover",
638
638
  Ht[s],
639
639
  v ? "border-danger-border" : "border-border-strong",
640
- u
640
+ m
641
641
  ),
642
642
  ...y
643
643
  }
@@ -672,12 +672,12 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
672
672
  required: a = !1,
673
673
  size: l = "md",
674
674
  className: o,
675
- minDate: u,
676
- maxDate: m,
675
+ minDate: m,
676
+ maxDate: u,
677
677
  format: y = "MM/dd/yyyy",
678
678
  withTime: x = !1
679
679
  }, h) => {
680
- const [b, v] = O(!1), [k, p] = O(() => t || /* @__PURE__ */ new Date()), f = se(null), $ = se(null), C = $e(b, $);
680
+ const [b, v] = O(!1), [k, g] = O(() => t || /* @__PURE__ */ new Date()), f = se(null), $ = se(null), C = $e(b, $);
681
681
  X(() => {
682
682
  const c = (S) => {
683
683
  f.current && !f.current.contains(S.target) && v(!1);
@@ -688,33 +688,33 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
688
688
  }, [b]);
689
689
  const q = (c) => {
690
690
  if (!c) return "";
691
- const S = c.getDate().toString().padStart(2, "0"), g = (c.getMonth() + 1).toString().padStart(2, "0"), _ = c.getFullYear(), N = y === "dd/MM/yyyy" ? `${S}/${g}/${_}` : y === "yyyy-MM-dd" ? `${_}-${g}-${S}` : `${g}/${S}/${_}`;
691
+ const S = c.getDate().toString().padStart(2, "0"), p = (c.getMonth() + 1).toString().padStart(2, "0"), _ = c.getFullYear(), N = y === "dd/MM/yyyy" ? `${S}/${p}/${_}` : y === "yyyy-MM-dd" ? `${_}-${p}-${S}` : `${p}/${S}/${_}`;
692
692
  return x ? `${N} ${T(c)}` : N;
693
693
  }, T = (c) => `${c.getHours().toString().padStart(2, "0")}:${c.getMinutes().toString().padStart(2, "0")}`, G = (c) => {
694
- const [S, g] = c.split(":").map(Number);
695
- if (Number.isNaN(S) || Number.isNaN(g)) return;
694
+ const [S, p] = c.split(":").map(Number);
695
+ if (Number.isNaN(S) || Number.isNaN(p)) return;
696
696
  const _ = t ? new Date(t) : /* @__PURE__ */ new Date();
697
- _.setHours(S, g, 0, 0), r?.(_);
697
+ _.setHours(S, p, 0, 0), r?.(_);
698
698
  }, V = () => {
699
- const c = k.getFullYear(), S = k.getMonth(), g = new Date(c, S, 1), _ = new Date(g);
700
- _.setDate(_.getDate() - g.getDay());
699
+ const c = k.getFullYear(), S = k.getMonth(), p = new Date(c, S, 1), _ = new Date(p);
700
+ _.setDate(_.getDate() - p.getDay());
701
701
  const N = [], U = new Date(_);
702
702
  for (let re = 0; re < 42; re++)
703
703
  N.push(new Date(U)), U.setDate(U.getDate() + 1);
704
704
  return N;
705
705
  }, I = (c) => {
706
- if (c.getMonth() === k.getMonth() && !(u && c < u) && !(m && c > m)) {
706
+ if (c.getMonth() === k.getMonth() && !(m && c < m) && !(u && c > u)) {
707
707
  if (x) {
708
- const g = new Date(c);
709
- g.setHours(t?.getHours() ?? 0, t?.getMinutes() ?? 0, 0, 0), r?.(g);
708
+ const p = new Date(c);
709
+ p.setHours(t?.getHours() ?? 0, t?.getMinutes() ?? 0, 0, 0), r?.(p);
710
710
  return;
711
711
  }
712
712
  r?.(c), v(!1);
713
713
  }
714
714
  }, H = () => {
715
- p(new Date(k.getFullYear(), k.getMonth() - 1, 1));
715
+ g(new Date(k.getFullYear(), k.getMonth() - 1, 1));
716
716
  }, te = () => {
717
- p(new Date(k.getFullYear(), k.getMonth() + 1, 1));
717
+ g(new Date(k.getFullYear(), k.getMonth() + 1, 1));
718
718
  }, J = () => {
719
719
  r?.(null), v(!1);
720
720
  }, K = d(
@@ -797,7 +797,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
797
797
  ] }),
798
798
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((c) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: c }, c)) }),
799
799
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: ce.map((c, S) => {
800
- const g = c.getMonth() === k.getMonth(), _ = t && c.toDateString() === t.toDateString(), N = c.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), U = !g || u && c < u || m && c > m;
800
+ const p = c.getMonth() === k.getMonth(), _ = t && c.toDateString() === t.toDateString(), N = c.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), U = !p || m && c < m || u && c > u;
801
801
  return /* @__PURE__ */ e(
802
802
  "button",
803
803
  {
@@ -806,7 +806,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
806
806
  className: d(
807
807
  "w-8 h-8 text-sm rounded transition-colors duration-fast",
808
808
  {
809
- "text-text hover:bg-surface-hover": g && !_ && !U,
809
+ "text-text hover:bg-surface-hover": p && !_ && !U,
810
810
  "bg-accent text-accent-fg": _,
811
811
  "bg-surface-hover text-text": N && !_,
812
812
  "text-text-muted cursor-not-allowed": U
@@ -864,15 +864,15 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
864
864
  fullWidth: a = !1,
865
865
  disabled: l = !1,
866
866
  options: o,
867
- placeholder: u,
868
- containerClassName: m,
867
+ placeholder: m,
868
+ containerClassName: u,
869
869
  labelClassName: y,
870
870
  className: x,
871
871
  id: h,
872
872
  searchable: b,
873
873
  multiple: v,
874
874
  value: k,
875
- onChange: p,
875
+ onChange: g,
876
876
  allowCreate: f,
877
877
  onCreateOption: $,
878
878
  ...C
@@ -889,7 +889,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
889
889
  (z) => ke(z.value) === ke(A) || ke(z.label) === ke(A)
890
890
  ),
891
891
  []
892
- ), g = oe.useCallback(
892
+ ), p = oe.useCallback(
893
893
  (D, A) => {
894
894
  const z = [...D], F = (j) => {
895
895
  const B = (j ?? "").trim();
@@ -904,15 +904,15 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
904
904
  const A = [...o];
905
905
  return D.forEach((z) => {
906
906
  !S(A, z.value) && !S(A, z.label) && A.push(z);
907
- }), g(A, k);
907
+ }), p(A, k);
908
908
  });
909
- }, [o, k, g, S]);
909
+ }, [o, k, p, S]);
910
910
  const _ = (D) => {
911
911
  if (v) {
912
912
  const A = Array.isArray(k) ? k : [], z = A.includes(D) ? A.filter((F) => F !== D) : [...A, D];
913
- p?.(z);
913
+ g?.(z);
914
914
  } else
915
- p?.(D), I(!1), te("");
915
+ g?.(D), I(!1), te("");
916
916
  }, N = v ? null : w.find((D) => D.value === k), U = v ? w.filter(
917
917
  (D) => Array.isArray(k) && k.includes(D.value)
918
918
  ) : [], re = b && H ? w.filter(
@@ -929,7 +929,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
929
929
  return;
930
930
  }
931
931
  c((F) => [...F, z]), _(z.value), te(""), v || I(!1);
932
- }, P = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : u || "Select options" : N?.label || u || "Select an option";
932
+ }, P = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : m || "Select options" : N?.label || m || "Select an option";
933
933
  return /* @__PURE__ */ i(
934
934
  "div",
935
935
  {
@@ -937,7 +937,7 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
937
937
  className: d(
938
938
  "relative flex flex-col",
939
939
  a && "w-full",
940
- m
940
+ u
941
941
  ),
942
942
  ...C,
943
943
  children: [
@@ -1020,14 +1020,14 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
1020
1020
  }
1021
1021
  ),
1022
1022
  /* @__PURE__ */ i("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
1023
- u && !v && /* @__PURE__ */ e(
1023
+ m && !v && /* @__PURE__ */ e(
1024
1024
  "li",
1025
1025
  {
1026
1026
  className: "cursor-pointer px-3 py-1.5 text-sm text-text-muted hover:bg-surface-hover",
1027
1027
  onClick: () => {
1028
- p?.(""), I(!1);
1028
+ g?.(""), I(!1);
1029
1029
  },
1030
- children: u
1030
+ children: m
1031
1031
  }
1032
1032
  ),
1033
1033
  re.map((D) => {
@@ -1091,19 +1091,19 @@ const Jt = {
1091
1091
  fullWidth: a = !1,
1092
1092
  startIcon: l,
1093
1093
  endIcon: o,
1094
- loading: u = !1,
1095
- containerClassName: m,
1094
+ loading: m = !1,
1095
+ containerClassName: u,
1096
1096
  labelClassName: y,
1097
1097
  className: x,
1098
1098
  id: h,
1099
1099
  ...b
1100
1100
  }, v) => {
1101
- const k = oe.useId(), p = h || `textfield-${k}`, f = !!n, $ = n || r ? `${p}-description` : void 0;
1102
- return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full", m), children: [
1101
+ const k = oe.useId(), g = h || `textfield-${k}`, f = !!n, $ = n || r ? `${g}-description` : void 0;
1102
+ return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full", u), children: [
1103
1103
  t && /* @__PURE__ */ e(
1104
1104
  "label",
1105
1105
  {
1106
- htmlFor: p,
1106
+ htmlFor: g,
1107
1107
  className: d(
1108
1108
  Ue,
1109
1109
  f ? "text-danger-fg" : "text-text-muted",
@@ -1118,21 +1118,21 @@ const Jt = {
1118
1118
  "input",
1119
1119
  {
1120
1120
  ref: v,
1121
- id: p,
1121
+ id: g,
1122
1122
  "aria-invalid": f || void 0,
1123
1123
  "aria-describedby": $,
1124
1124
  className: d(
1125
1125
  We,
1126
1126
  Jt[s],
1127
1127
  l && "pl-9",
1128
- (o || u) && "pr-9",
1128
+ (o || m) && "pr-9",
1129
1129
  Ke(f),
1130
1130
  x
1131
1131
  ),
1132
1132
  ...b
1133
1133
  }
1134
1134
  ),
1135
- (o || u) && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted", children: u ? /* @__PURE__ */ e(
1135
+ (o || m) && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted", children: m ? /* @__PURE__ */ e(
1136
1136
  "span",
1137
1137
  {
1138
1138
  "aria-hidden": !0,
@@ -1160,9 +1160,9 @@ function Yt({
1160
1160
  size: a = "md",
1161
1161
  placeholder: l,
1162
1162
  templatePlaceholder: o,
1163
- showTemplate: u = !0
1163
+ showTemplate: m = !0
1164
1164
  }) {
1165
- const [m, y] = O([]);
1165
+ const [u, y] = O([]);
1166
1166
  X(() => {
1167
1167
  let h = !0;
1168
1168
  return Promise.resolve(n?.()).then((b) => {
@@ -1180,12 +1180,12 @@ function Yt({
1180
1180
  size: a,
1181
1181
  fullWidth: !0,
1182
1182
  value: x.folderId ?? "",
1183
- options: m.map((h) => ({ value: h.id, label: h.name })),
1183
+ options: u.map((h) => ({ value: h.id, label: h.name })),
1184
1184
  placeholder: l ?? "Select a folder",
1185
1185
  onChange: (h) => r?.({ ...x, folderId: h })
1186
1186
  }
1187
1187
  ),
1188
- u && /* @__PURE__ */ e(
1188
+ m && /* @__PURE__ */ e(
1189
1189
  Ne,
1190
1190
  {
1191
1191
  size: a,
@@ -1197,7 +1197,7 @@ function Yt({
1197
1197
  )
1198
1198
  ] });
1199
1199
  }
1200
- const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(Me, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Zt = (t) => /* @__PURE__ */ e(Se, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Qt = {
1200
+ const ge = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(Me, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Zt = (t) => /* @__PURE__ */ e(Se, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Qt = {
1201
1201
  sm: "h-control-sm px-3 text-sm",
1202
1202
  md: "h-control-md px-3 text-base",
1203
1203
  lg: "h-control-lg px-3 text-base",
@@ -1216,15 +1216,15 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1216
1216
  fullWidth: a = !1,
1217
1217
  startIcon: l = /* @__PURE__ */ e(Xt, {}),
1218
1218
  loading: o = !1,
1219
- containerClassName: u,
1220
- labelClassName: m,
1219
+ containerClassName: m,
1220
+ labelClassName: u,
1221
1221
  className: y,
1222
1222
  id: x,
1223
1223
  options: h,
1224
1224
  onRemoteSearch: b,
1225
1225
  onSelect: v,
1226
1226
  debounceTime: k = 500,
1227
- showAllOnOpen: p = !1,
1227
+ showAllOnOpen: g = !1,
1228
1228
  value: f,
1229
1229
  onChange: $,
1230
1230
  ...C
@@ -1233,13 +1233,13 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1233
1233
  X(() => {
1234
1234
  f !== void 0 && te(f);
1235
1235
  }, [f]);
1236
- const g = ge(() => {
1237
- if (p && !c || !H) return h;
1236
+ const p = pe(() => {
1237
+ if (g && !c || !H) return h;
1238
1238
  const P = String(H).toLowerCase();
1239
1239
  return h.filter(
1240
1240
  (D) => String(D.label).toLowerCase().includes(P)
1241
1241
  );
1242
- }, [H, h, p, c]);
1242
+ }, [H, h, g, c]);
1243
1243
  X(() => {
1244
1244
  if (!b || !H) {
1245
1245
  w(!1);
@@ -1271,14 +1271,14 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1271
1271
  te(P.label), K(!1), S(!1), v && v(P.value);
1272
1272
  }, U = () => {
1273
1273
  (h.length > 0 || b) && (K(!0), S(!1));
1274
- }, re = o || ce, ee = J && (g.length > 0 || re), Y = ge(() => q || I, [q]);
1274
+ }, re = o || ce, ee = J && (p.length > 0 || re), Y = pe(() => q || I, [q]);
1275
1275
  return /* @__PURE__ */ i(
1276
1276
  "div",
1277
1277
  {
1278
- className: pe(
1278
+ className: ge(
1279
1279
  "flex flex-col",
1280
1280
  a ? "w-full" : "",
1281
- u || "",
1281
+ m || "",
1282
1282
  "relative"
1283
1283
  ),
1284
1284
  ref: V,
@@ -1287,16 +1287,16 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1287
1287
  "label",
1288
1288
  {
1289
1289
  htmlFor: T,
1290
- className: pe(
1290
+ className: ge(
1291
1291
  "block text-sm font-medium mb-1",
1292
1292
  G ? "text-danger-fg" : "text-text",
1293
- m || ""
1293
+ u || ""
1294
1294
  ),
1295
1295
  children: t
1296
1296
  }
1297
1297
  ),
1298
1298
  /* @__PURE__ */ i("div", { className: "relative", children: [
1299
- l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: pe("text-text-muted", _e[s]), children: l }) }),
1299
+ l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: ge("text-text-muted", _e[s]), children: l }) }),
1300
1300
  /* @__PURE__ */ e(
1301
1301
  "input",
1302
1302
  {
@@ -1305,7 +1305,7 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1305
1305
  value: H,
1306
1306
  onChange: _,
1307
1307
  onFocus: U,
1308
- className: pe(
1308
+ className: ge(
1309
1309
  // Base styles
1310
1310
  "block w-full rounded-tile border bg-surface-input transition-colors duration-fast ease-out",
1311
1311
  "placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring",
@@ -1328,7 +1328,7 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1328
1328
  /* @__PURE__ */ e(
1329
1329
  ct,
1330
1330
  {
1331
- className: pe("animate-spin text-info-fg", _e[s]),
1331
+ className: ge("animate-spin text-info-fg", _e[s]),
1332
1332
  "aria-hidden": !0
1333
1333
  }
1334
1334
  )
@@ -1337,7 +1337,7 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1337
1337
  /* @__PURE__ */ e(
1338
1338
  Zt,
1339
1339
  {
1340
- className: pe(
1340
+ className: ge(
1341
1341
  "text-text-muted cursor-pointer transition-transform",
1342
1342
  _e[s],
1343
1343
  J ? "rotate-180" : "rotate-0"
@@ -1354,7 +1354,7 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1354
1354
  {
1355
1355
  className: "absolute z-10 mt-1 w-full bg-surface border border-border rounded-lg shadow-lg max-h-60 overflow-auto top-full",
1356
1356
  role: "listbox",
1357
- children: g.length > 0 ? g.map((P) => /* @__PURE__ */ e(
1357
+ children: p.length > 0 ? p.map((P) => /* @__PURE__ */ e(
1358
1358
  "li",
1359
1359
  {
1360
1360
  className: "px-4 py-2 cursor-pointer text-text hover:bg-accent-soft hover:text-accent transition-colors",
@@ -1370,7 +1370,7 @@ const pe = (...t) => t.filter(Boolean).join(" "), Xt = (t) => /* @__PURE__ */ e(
1370
1370
  (n || r) && /* @__PURE__ */ e(
1371
1371
  "p",
1372
1372
  {
1373
- className: pe(
1373
+ className: ge(
1374
1374
  "mt-1 text-xs",
1375
1375
  G ? "text-danger-fg" : "text-text-muted"
1376
1376
  ),
@@ -1396,8 +1396,8 @@ const Ge = xe(
1396
1396
  clearLabel: a = "Clear search",
1397
1397
  containerClassName: l,
1398
1398
  className: o,
1399
- disabled: u,
1400
- ...m
1399
+ disabled: m,
1400
+ ...u
1401
1401
  }, y) => /* @__PURE__ */ i(
1402
1402
  "div",
1403
1403
  {
@@ -1408,7 +1408,7 @@ const Ge = xe(
1408
1408
  "flex items-center gap-2 rounded-md bg-surface-sunk px-2.5 text-text-muted",
1409
1409
  "transition-colors duration-fast ease-out",
1410
1410
  s === "sm" ? "h-control-sm" : "h-control-md",
1411
- u && "opacity-60",
1411
+ m && "opacity-60",
1412
1412
  l
1413
1413
  ),
1414
1414
  children: [
@@ -1419,7 +1419,7 @@ const Ge = xe(
1419
1419
  ref: y,
1420
1420
  type: "search",
1421
1421
  value: t,
1422
- disabled: u,
1422
+ disabled: m,
1423
1423
  onChange: (x) => r(x.target.value),
1424
1424
  className: d(
1425
1425
  // The forms base layer hands every input a white fill, a 1px border
@@ -1434,7 +1434,7 @@ const Ge = xe(
1434
1434
  "[&::-webkit-search-cancel-button]:appearance-none",
1435
1435
  o
1436
1436
  ),
1437
- ...m
1437
+ ...u
1438
1438
  }
1439
1439
  ),
1440
1440
  t ? /* @__PURE__ */ e(
@@ -1454,7 +1454,7 @@ const Ge = xe(
1454
1454
  Ge.displayName = "SearchField";
1455
1455
  const tr = xe(
1456
1456
  ({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
1457
- const u = /* @__PURE__ */ e(
1457
+ const m = /* @__PURE__ */ e(
1458
1458
  "span",
1459
1459
  {
1460
1460
  "aria-hidden": !0,
@@ -1493,12 +1493,12 @@ const tr = xe(
1493
1493
  role: "switch",
1494
1494
  checked: t,
1495
1495
  disabled: s,
1496
- onChange: (m) => r(m.target.checked),
1496
+ onChange: (u) => r(u.target.checked),
1497
1497
  className: "peer sr-only",
1498
1498
  ...l
1499
1499
  }
1500
1500
  ),
1501
- /* @__PURE__ */ e("span", { className: "inline-flex rounded-full peer-focus-visible:focus-ring", children: u }),
1501
+ /* @__PURE__ */ e("span", { className: "inline-flex rounded-full peer-focus-visible:focus-ring", children: m }),
1502
1502
  n && /* @__PURE__ */ e("span", { className: "text-sm text-text", children: n })
1503
1503
  ]
1504
1504
  }
@@ -1528,29 +1528,29 @@ function rr({
1528
1528
  {
1529
1529
  className: "grid gap-2 bg-surface-hover p-3",
1530
1530
  style: { gridTemplateColumns: `repeat(${s}, minmax(0, 1fr))` },
1531
- children: Array.from({ length: s }).map((o, u) => /* @__PURE__ */ e(
1531
+ children: Array.from({ length: s }).map((o, m) => /* @__PURE__ */ e(
1532
1532
  "div",
1533
1533
  {
1534
1534
  className: "h-4 w-2/3 rounded-sm bg-border-strong"
1535
1535
  },
1536
- `header-${u}`
1536
+ `header-${m}`
1537
1537
  ))
1538
1538
  }
1539
1539
  ),
1540
- Array.from({ length: a }).map((o, u) => /* @__PURE__ */ e(
1540
+ Array.from({ length: a }).map((o, m) => /* @__PURE__ */ e(
1541
1541
  "div",
1542
1542
  {
1543
1543
  className: "grid gap-2 border-t border-border-subtle p-3",
1544
1544
  style: { gridTemplateColumns: `repeat(${s}, minmax(0, 1fr))` },
1545
- children: Array.from({ length: s }).map((m, y) => /* @__PURE__ */ e(
1545
+ children: Array.from({ length: s }).map((u, y) => /* @__PURE__ */ e(
1546
1546
  "div",
1547
1547
  {
1548
1548
  className: "h-4 w-full rounded-sm bg-surface-hover"
1549
1549
  },
1550
- `cell-${u}-${y}`
1550
+ `cell-${m}-${y}`
1551
1551
  ))
1552
1552
  },
1553
- `row-${u}`
1553
+ `row-${m}`
1554
1554
  ))
1555
1555
  ] })
1556
1556
  ] }) });
@@ -1563,10 +1563,10 @@ const nr = ({
1563
1563
  placement: a = "bottom-start",
1564
1564
  disabled: l = !1,
1565
1565
  className: o,
1566
- showCheck: u = !0,
1567
- header: m
1566
+ showCheck: m = !0,
1567
+ header: u
1568
1568
  }) => {
1569
- const [y, x] = O(!1), [h, b] = O(null), [v, k] = O({ top: 0, left: 0 }), p = se(null), f = se(null), $ = se(null), C = se(null), q = $e(y, f, { placement: a }), T = se(null), G = () => Array.from(
1569
+ const [y, x] = O(!1), [h, b] = O(null), [v, k] = O({ top: 0, left: 0 }), g = se(null), f = se(null), $ = se(null), C = se(null), q = $e(y, f, { placement: a }), T = se(null), G = () => Array.from(
1570
1570
  C.current?.querySelectorAll("button[data-option-value]:not(:disabled)") ?? []
1571
1571
  );
1572
1572
  X(() => {
@@ -1574,15 +1574,15 @@ const nr = ({
1574
1574
  }, [y]);
1575
1575
  const V = (c) => {
1576
1576
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key)) return;
1577
- const g = G();
1578
- if (g.length === 0) return;
1577
+ const p = G();
1578
+ if (p.length === 0) return;
1579
1579
  c.preventDefault();
1580
- const _ = g.indexOf(document.activeElement), N = c.key === "Home" ? 0 : c.key === "End" ? g.length - 1 : c.key === "ArrowDown" ? (_ + 1) % g.length : (_ - 1 + g.length) % g.length;
1581
- g[N]?.focus();
1580
+ const _ = p.indexOf(document.activeElement), N = c.key === "Home" ? 0 : c.key === "End" ? p.length - 1 : c.key === "ArrowDown" ? (_ + 1) % p.length : (_ - 1 + p.length) % p.length;
1581
+ p[N]?.focus();
1582
1582
  };
1583
1583
  X(() => {
1584
1584
  const c = (S) => {
1585
- p.current && (!p.current.contains(S.target) || $.current && !$.current.contains(S.target)) && (x(!1), b(null), T.current && (clearTimeout(T.current), T.current = null));
1585
+ g.current && (!g.current.contains(S.target) || $.current && !$.current.contains(S.target)) && (x(!1), b(null), T.current && (clearTimeout(T.current), T.current = null));
1586
1586
  };
1587
1587
  return y && document.addEventListener("mousedown", c), () => {
1588
1588
  document.removeEventListener("mousedown", c);
@@ -1595,8 +1595,8 @@ const nr = ({
1595
1595
  document.removeEventListener("keydown", c);
1596
1596
  };
1597
1597
  }, [y]), X(() => {
1598
- if (h && p.current) {
1599
- const c = p.current.querySelector(
1598
+ if (h && g.current) {
1599
+ const c = g.current.querySelector(
1600
1600
  `[data-option-value="${h}"]`
1601
1601
  );
1602
1602
  if (c) {
@@ -1612,16 +1612,16 @@ const nr = ({
1612
1612
  }, []);
1613
1613
  const I = (c) => {
1614
1614
  c.stopPropagation(), !l && (x(!y), b(null), T.current && (clearTimeout(T.current), T.current = null));
1615
- }, H = (c, S, g) => {
1616
- c.stopPropagation(), !S.disabled && !S.divider && (!S.children || S.children.length === 0) && (s?.(S.value, g), x(!1), b(null));
1615
+ }, H = (c, S, p) => {
1616
+ c.stopPropagation(), !S.disabled && !S.divider && (!S.children || S.children.length === 0) && (s?.(S.value, p), x(!1), b(null));
1617
1617
  }, te = (c) => {
1618
1618
  T.current && (clearTimeout(T.current), T.current = null), c.children && c.children.length > 0 ? b(c.value) : b(null);
1619
1619
  }, J = (c) => {
1620
1620
  c.children && c.children.length > 0 ? T.current = setTimeout(() => {
1621
1621
  b(null);
1622
1622
  }, 150) : b(null);
1623
- }, K = (c, S, g) => {
1624
- c.stopPropagation(), !S.disabled && !S.divider && (s?.(S.value, g), x(!1), b(null));
1623
+ }, K = (c, S, p) => {
1624
+ c.stopPropagation(), !S.disabled && !S.divider && (s?.(S.value, p), x(!1), b(null));
1625
1625
  }, ce = d(
1626
1626
  "fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
1627
1627
  "max-h-60 overflow-auto"
@@ -1632,7 +1632,7 @@ const nr = ({
1632
1632
  return /* @__PURE__ */ i(
1633
1633
  "div",
1634
1634
  {
1635
- ref: p,
1635
+ ref: g,
1636
1636
  className: d(
1637
1637
  "relative flex flex-row items-center justify-center rounded-lg hover:bg-surface-hover",
1638
1638
  o
@@ -1653,7 +1653,7 @@ const nr = ({
1653
1653
  }
1654
1654
  ),
1655
1655
  y && /* @__PURE__ */ e("div", { ref: C, className: ce, style: q, onKeyDown: V, children: /* @__PURE__ */ i("div", { className: "p-2", role: "menu", children: [
1656
- m && (typeof m == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted uppercase tracking-label px-3 py-2", children: m }) : m),
1656
+ u && (typeof u == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted uppercase tracking-label px-3 py-2", children: u }) : u),
1657
1657
  r.map((c, S) => {
1658
1658
  if (c.divider)
1659
1659
  return /* @__PURE__ */ e(
@@ -1663,14 +1663,14 @@ const nr = ({
1663
1663
  },
1664
1664
  `divider-${S}`
1665
1665
  );
1666
- const g = c.children && c.children.length > 0, _ = h === c.value;
1666
+ const p = c.children && c.children.length > 0, _ = h === c.value;
1667
1667
  return /* @__PURE__ */ i("div", { className: "relative group", children: [
1668
1668
  /* @__PURE__ */ i(
1669
1669
  "button",
1670
1670
  {
1671
1671
  "data-option-value": c.value,
1672
1672
  role: "menuitem",
1673
- "aria-haspopup": g ? "menu" : void 0,
1673
+ "aria-haspopup": p ? "menu" : void 0,
1674
1674
  onClick: (N) => H(N, c),
1675
1675
  onMouseEnter: () => te(c),
1676
1676
  onMouseLeave: () => J(c),
@@ -1679,7 +1679,7 @@ const nr = ({
1679
1679
  "flex w-full items-center justify-between rounded-md px-3 py-1.5 text-sm text-text transition-colors duration-fast ease-out hover:bg-surface-hover focus-visible:outline-none focus-visible:focus-ring",
1680
1680
  {
1681
1681
  "opacity-50 cursor-not-allowed": c.disabled,
1682
- "bg-surface-hover": _ && g
1682
+ "bg-surface-hover": _ && p
1683
1683
  }
1684
1684
  ),
1685
1685
  children: [
@@ -1691,13 +1691,13 @@ const nr = ({
1691
1691
  ] })
1692
1692
  ] }),
1693
1693
  /* @__PURE__ */ i("div", { className: "flex items-center space-x-2", children: [
1694
- u && n === c.value && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
1695
- g && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
1694
+ m && n === c.value && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
1695
+ p && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
1696
1696
  ] })
1697
1697
  ]
1698
1698
  }
1699
1699
  ),
1700
- g && _ && /* @__PURE__ */ e(
1700
+ p && _ && /* @__PURE__ */ e(
1701
1701
  "div",
1702
1702
  {
1703
1703
  ref: $,
@@ -1749,7 +1749,7 @@ const nr = ({
1749
1749
  N.description && /* @__PURE__ */ e("span", { className: "text-xs text-text-muted", children: N.description })
1750
1750
  ] })
1751
1751
  ] }),
1752
- u && re && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
1752
+ m && re && /* @__PURE__ */ e(Ie, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 })
1753
1753
  ]
1754
1754
  },
1755
1755
  N.value
@@ -1760,9 +1760,9 @@ const nr = ({
1760
1760
  ] }, c.value);
1761
1761
  }),
1762
1762
  (() => {
1763
- const c = r.reduce((S, g) => {
1764
- if (g.divider) return S;
1765
- const _ = g.children ? g.children.filter((N) => !N.divider).length : 0;
1763
+ const c = r.reduce((S, p) => {
1764
+ if (p.divider) return S;
1765
+ const _ = p.children ? p.children.filter((N) => !N.divider).length : 0;
1766
1766
  return S + 1 + _;
1767
1767
  }, 0);
1768
1768
  return c > 1 && /* @__PURE__ */ e("div", { className: "border-t border-border mt-2 pt-2", children: /* @__PURE__ */ i("div", { className: "text-xs text-text-muted px-3 py-1", children: [
@@ -1828,7 +1828,7 @@ const nr = ({
1828
1828
  ),
1829
1829
  l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
1830
1830
  /* @__PURE__ */ e(Je, { actions: t, className: d(!l && "ml-auto") })
1831
- ] }), gn = (t) => (r) => t(r instanceof Date ? r : null), vn = (t) => (r) => t(typeof r == "string" ? r : ""), ar = {
1831
+ ] }), vn = (t) => (r) => t(r instanceof Date ? r : null), yn = (t) => (r) => t(typeof r == "string" ? r : ""), ar = {
1832
1832
  none: "px-0",
1833
1833
  sm: "px-2",
1834
1834
  md: "px-3.5",
@@ -1853,17 +1853,17 @@ const cr = (t) => {
1853
1853
  Ae,
1854
1854
  {
1855
1855
  value: t.value,
1856
- onChange: (u) => t.onChange(u),
1856
+ onChange: (m) => t.onChange(m),
1857
1857
  placeholder: t.placeholder || t.label,
1858
1858
  className: d("min-w-40", o && "border-info text-info-fg")
1859
1859
  }
1860
1860
  );
1861
1861
  }
1862
- const n = (o) => t.options?.find((u) => u.value === o)?.label ?? String(o), s = (o) => Array.isArray(t.value) ? t.value.includes(o) : t.value === o, a = (o) => {
1862
+ const n = (o) => t.options?.find((m) => m.value === o)?.label ?? String(o), s = (o) => Array.isArray(t.value) ? t.value.includes(o) : t.value === o, a = (o) => {
1863
1863
  if (!t.multiSelect) return t.onChange(o);
1864
- const u = Array.isArray(t.value) ? t.value : [];
1864
+ const m = Array.isArray(t.value) ? t.value : [];
1865
1865
  t.onChange(
1866
- u.includes(o) ? u.filter((m) => m !== o) : [...u, o]
1866
+ m.includes(o) ? m.filter((u) => u !== o) : [...m, o]
1867
1867
  );
1868
1868
  }, l = r.length > 0;
1869
1869
  return /* @__PURE__ */ e(
@@ -1876,24 +1876,24 @@ const cr = (t) => {
1876
1876
  label: l ? `${t.label}: ${r.map(n).join(", ")}` : t.label,
1877
1877
  title: t.label,
1878
1878
  onClear: () => t.onChange(t.multiSelect ? [] : "all"),
1879
- menu: (o) => /* @__PURE__ */ e("div", { role: "listbox", className: "flex flex-col", children: t.options?.map((u) => /* @__PURE__ */ e(
1879
+ menu: (o) => /* @__PURE__ */ e("div", { role: "listbox", className: "flex flex-col", children: t.options?.map((m) => /* @__PURE__ */ e(
1880
1880
  "button",
1881
1881
  {
1882
1882
  type: "button",
1883
1883
  role: "option",
1884
- "aria-selected": s(u.value),
1884
+ "aria-selected": s(m.value),
1885
1885
  onClick: () => {
1886
- a(u.value), t.multiSelect || o();
1886
+ a(m.value), t.multiSelect || o();
1887
1887
  },
1888
1888
  className: d(
1889
1889
  "flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-sm",
1890
1890
  "transition-colors duration-fast ease-out hover:bg-surface-hover",
1891
1891
  "focus-visible:outline-none focus-visible:focus-ring",
1892
- s(u.value) ? "font-medium text-text" : "text-text-muted"
1892
+ s(m.value) ? "font-medium text-text" : "text-text-muted"
1893
1893
  ),
1894
- children: u.label
1894
+ children: m.label
1895
1895
  },
1896
- u.value
1896
+ m.value
1897
1897
  )) })
1898
1898
  }
1899
1899
  );
@@ -1905,15 +1905,15 @@ const cr = (t) => {
1905
1905
  searchPlaceholder: a = "Search...",
1906
1906
  searchValue: l,
1907
1907
  onSearchChange: o,
1908
- filters: u = [],
1909
- toolbarActions: m = [],
1908
+ filters: m = [],
1909
+ toolbarActions: u = [],
1910
1910
  paginated: y = !1,
1911
1911
  defaultPageSize: x = 10,
1912
1912
  actions: h = [],
1913
1913
  onRowClick: b,
1914
1914
  selectable: v = !1,
1915
1915
  selectedRows: k = [],
1916
- onSelectionChange: p,
1916
+ onSelectionChange: g,
1917
1917
  getRowKey: f = (te, J) => J,
1918
1918
  emptyContent: $,
1919
1919
  footerSummary: C,
@@ -1927,10 +1927,10 @@ const cr = (t) => {
1927
1927
  const [te, J] = O(""), K = l !== void 0, ce = K ? l : te, w = o ?? J, [c, S] = O({
1928
1928
  column: null,
1929
1929
  direction: null
1930
- }), [g, _] = O({
1930
+ }), [p, _] = O({
1931
1931
  page: 0,
1932
1932
  pageSize: x
1933
- }), N = se(null), U = ge(() => {
1933
+ }), N = se(null), U = pe(() => {
1934
1934
  let E = t;
1935
1935
  if (s && !K && ce.trim()) {
1936
1936
  const W = r.filter(
@@ -1941,7 +1941,7 @@ const cr = (t) => {
1941
1941
  return String(ue || "").toLowerCase().includes(le);
1942
1942
  }));
1943
1943
  }
1944
- return u.forEach((W) => {
1944
+ return m.forEach((W) => {
1945
1945
  W.value && W.value !== "all" && (E = E.filter((le) => {
1946
1946
  const ie = r.find((ue) => ue.id === W.id);
1947
1947
  if (!ie) return !0;
@@ -1949,7 +1949,7 @@ const cr = (t) => {
1949
1949
  return String(R || "") === W.value;
1950
1950
  }));
1951
1951
  }), E;
1952
- }, [t, ce, K, r, s, u]), re = ge(() => {
1952
+ }, [t, ce, K, r, s, m]), re = pe(() => {
1953
1953
  if (!c.column || !c.direction) return U;
1954
1954
  const E = r.find((W) => W.id === c.column);
1955
1955
  return E ? [...U].sort((W, le) => {
@@ -1957,11 +1957,11 @@ const cr = (t) => {
1957
1957
  let ue = 0;
1958
1958
  return ie < R ? ue = -1 : ie > R && (ue = 1), c.direction === "desc" ? -ue : ue;
1959
1959
  }) : U;
1960
- }, [U, c, r]), ee = ge(() => {
1960
+ }, [U, c, r]), ee = pe(() => {
1961
1961
  if (!y) return re;
1962
- const E = g.page * g.pageSize, W = E + g.pageSize;
1962
+ const E = p.page * p.pageSize, W = E + p.pageSize;
1963
1963
  return re.slice(E, W);
1964
- }, [re, g, y]), Y = he(
1964
+ }, [re, p, y]), Y = he(
1965
1965
  (E) => {
1966
1966
  r.find((le) => le.id === E)?.sortable && S((le) => le.column !== E ? { column: E, direction: "asc" } : le.direction === "asc" ? { column: E, direction: "desc" } : { column: null, direction: null });
1967
1967
  },
@@ -1970,25 +1970,25 @@ const cr = (t) => {
1970
1970
  _((W) => ({ ...W, page: E }));
1971
1971
  }, []), D = he(
1972
1972
  (E, W) => {
1973
- if (!p) return;
1973
+ if (!g) return;
1974
1974
  const le = f(E, 0);
1975
- p(W ? [...k, E] : k.filter(
1975
+ g(W ? [...k, E] : k.filter(
1976
1976
  (ie, R) => f(k[R], R) !== le
1977
1977
  ));
1978
1978
  },
1979
- [k, p, f]
1979
+ [k, g, f]
1980
1980
  ), A = he(
1981
1981
  (E) => {
1982
- p && p(E ? [...ee] : []);
1982
+ g && g(E ? [...ee] : []);
1983
1983
  },
1984
- [ee, p]
1984
+ [ee, g]
1985
1985
  );
1986
1986
  X(() => {
1987
1987
  _((E) => ({ ...E, page: 0 }));
1988
1988
  }, [ce, c]), X(() => {
1989
1989
  _((E) => ({ ...E, page: 0 }));
1990
- }, [u.map((E) => E.value).join(",")]);
1991
- const z = re.length, F = Math.ceil(z / g.pageSize), j = g.page * g.pageSize + 1, B = Math.min(j + g.pageSize - 1, z), M = ee.length > 0 && ee.every((E) => {
1990
+ }, [m.map((E) => E.value).join(",")]);
1991
+ const z = re.length, F = Math.ceil(z / p.pageSize), j = p.page * p.pageSize + 1, B = Math.min(j + p.pageSize - 1, z), M = ee.length > 0 && ee.every((E) => {
1992
1992
  const W = f(E, 0);
1993
1993
  return k.some(
1994
1994
  (le, ie) => f(le, ie) === W
@@ -1998,7 +1998,7 @@ const cr = (t) => {
1998
1998
  return k.some(
1999
1999
  (le, ie) => f(le, ie) === W
2000
2000
  );
2001
- }), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s || u.length > 0 || m.length > 0, fe = y && z > 0, De = fe || C !== void 0;
2001
+ }), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s || m.length > 0 || u.length > 0, fe = y && z > 0, De = fe || C !== void 0;
2002
2002
  return /* @__PURE__ */ i("div", { className: d("flex min-w-0 flex-col", V), children: [
2003
2003
  be && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2004
2004
  s && /* @__PURE__ */ e(
@@ -2010,8 +2010,8 @@ const cr = (t) => {
2010
2010
  containerClassName: "w-full sm:w-66"
2011
2011
  }
2012
2012
  ),
2013
- u.map((E) => /* @__PURE__ */ e(cr, { ...E }, E.id)),
2014
- m.length > 0 && /* @__PURE__ */ e(Je, { actions: m, className: "ml-auto" })
2013
+ m.map((E) => /* @__PURE__ */ e(cr, { ...E }, E.id)),
2014
+ u.length > 0 && /* @__PURE__ */ e(Je, { actions: u, className: "ml-auto" })
2015
2015
  ] }),
2016
2016
  /* @__PURE__ */ i("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
2017
2017
  n && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
@@ -2168,23 +2168,23 @@ const cr = (t) => {
2168
2168
  variant: "ghost",
2169
2169
  iconOnly: !0,
2170
2170
  "aria-label": "Previous page",
2171
- onClick: () => P(g.page - 1),
2172
- disabled: g.page === 0,
2171
+ onClick: () => P(p.page - 1),
2172
+ disabled: p.page === 0,
2173
2173
  children: /* @__PURE__ */ e(Q, { icon: Ee, size: "md", color: "current" })
2174
2174
  }
2175
2175
  ),
2176
- or(g.page, F).map(
2176
+ or(p.page, F).map(
2177
2177
  (E, W) => E === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${W}`) : /* @__PURE__ */ e(
2178
2178
  "button",
2179
2179
  {
2180
2180
  type: "button",
2181
- "aria-current": E === g.page ? "page" : void 0,
2181
+ "aria-current": E === p.page ? "page" : void 0,
2182
2182
  onClick: () => P(E),
2183
2183
  className: d(
2184
2184
  "h-control-xs min-w-6 cursor-pointer rounded-sm px-1.5 tabular-nums",
2185
2185
  "transition-colors duration-fast ease-out",
2186
2186
  "focus-visible:outline-none focus-visible:focus-ring",
2187
- E === g.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
2187
+ E === p.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
2188
2188
  ),
2189
2189
  children: E + 1
2190
2190
  },
@@ -2198,45 +2198,45 @@ const cr = (t) => {
2198
2198
  variant: "ghost",
2199
2199
  iconOnly: !0,
2200
2200
  "aria-label": "Next page",
2201
- onClick: () => P(g.page + 1),
2202
- disabled: g.page >= F - 1,
2201
+ onClick: () => P(p.page + 1),
2202
+ disabled: p.page >= F - 1,
2203
2203
  children: /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" })
2204
2204
  }
2205
2205
  )
2206
2206
  ] })
2207
2207
  ] })
2208
2208
  ] });
2209
- }, ir = Nt(null), yn = ({
2209
+ }, ir = Nt(null), Nn = ({
2210
2210
  items: t,
2211
2211
  activeTab: r,
2212
2212
  onTabChange: n,
2213
2213
  className: s
2214
2214
  }) => {
2215
- const [a, l] = O(t[0]?.id || ""), o = r || a, u = (m) => {
2216
- n ? n(m) : l(m);
2215
+ const [a, l] = O(t[0]?.id || ""), o = r || a, m = (u) => {
2216
+ n ? n(u) : l(u);
2217
2217
  };
2218
- return /* @__PURE__ */ e("div", { className: d("border-b border-border", s), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: t.map((m) => /* @__PURE__ */ e(
2218
+ return /* @__PURE__ */ e("div", { className: d("border-b border-border", s), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: t.map((u) => /* @__PURE__ */ e(
2219
2219
  "button",
2220
2220
  {
2221
- onClick: () => !m.disabled && u(m.id),
2222
- disabled: m.disabled,
2221
+ onClick: () => !u.disabled && m(u.id),
2222
+ disabled: u.disabled,
2223
2223
  className: d(
2224
2224
  "border-b-2 py-2 px-1 text-sm font-medium transition-colors duration-fast",
2225
2225
  {
2226
- "border-accent-border text-text": o === m.id,
2227
- "border-transparent text-text-muted hover:text-text": o !== m.id && !m.disabled,
2228
- "border-transparent text-disabled cursor-not-allowed": m.disabled
2226
+ "border-accent-border text-text": o === u.id,
2227
+ "border-transparent text-text-muted hover:text-text": o !== u.id && !u.disabled,
2228
+ "border-transparent text-disabled cursor-not-allowed": u.disabled
2229
2229
  }
2230
2230
  ),
2231
2231
  children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2232
- m.label,
2233
- m.badge && /* @__PURE__ */ e("span", { className: d(
2232
+ u.label,
2233
+ u.badge && /* @__PURE__ */ e("span", { className: d(
2234
2234
  "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
2235
- o === m.id ? "bg-accent-soft text-accent" : "bg-surface-hover text-text-muted"
2236
- ), children: m.badge })
2235
+ o === u.id ? "bg-accent-soft text-accent" : "bg-surface-hover text-text-muted"
2236
+ ), children: u.badge })
2237
2237
  ] })
2238
2238
  },
2239
- m.id
2239
+ u.id
2240
2240
  )) }) });
2241
2241
  }, dr = ({
2242
2242
  items: t,
@@ -2247,14 +2247,14 @@ const cr = (t) => {
2247
2247
  size: l = "md",
2248
2248
  className: o
2249
2249
  }) => {
2250
- const [u, m] = O(
2250
+ const [m, u] = O(
2251
2251
  r || n || t[0]?.id || ""
2252
- ), y = n || u, x = (p) => {
2253
- s ? s(p) : m(p);
2252
+ ), y = n || m, x = (g) => {
2253
+ s ? s(g) : u(g);
2254
2254
  }, h = {
2255
2255
  activeTab: y,
2256
2256
  setActiveTab: x
2257
- }, b = t.find((p) => p.id === y), v = d(
2257
+ }, b = t.find((g) => g.id === y), v = d(
2258
2258
  "flex",
2259
2259
  {
2260
2260
  "border-b border-border px-2": a === "default" || a === "underline",
@@ -2263,7 +2263,7 @@ const cr = (t) => {
2263
2263
  "space-x-8": a === "default" || a === "underline"
2264
2264
  },
2265
2265
  o
2266
- ), k = (p, f) => {
2266
+ ), k = (g, f) => {
2267
2267
  const $ = "transition-colors duration-fast font-medium", C = {
2268
2268
  "text-xs px-2 py-1": l === "sm",
2269
2269
  "text-sm px-3 py-2": l === "md",
@@ -2276,12 +2276,12 @@ const cr = (t) => {
2276
2276
  // Underline variant
2277
2277
  "border-b-2 pb-2": a === "underline"
2278
2278
  }, T = {
2279
- "opacity-50 cursor-not-allowed": p.disabled,
2280
- "cursor-pointer": !p.disabled
2279
+ "opacity-50 cursor-not-allowed": g.disabled,
2280
+ "cursor-pointer": !g.disabled
2281
2281
  }, G = f ? {
2282
2282
  "border-accent-border text-text": a === "default" || a === "underline",
2283
2283
  "bg-surface text-text shadow-none": a === "pills"
2284
- } : {}, V = !f && !p.disabled ? {
2284
+ } : {}, V = !f && !g.disabled ? {
2285
2285
  "border-transparent text-text-muted hover:text-text": a === "default",
2286
2286
  "text-text-muted hover:text-text": a === "pills",
2287
2287
  "border-transparent text-text-muted hover:text-text hover:border-border": a === "underline"
@@ -2289,22 +2289,22 @@ const cr = (t) => {
2289
2289
  return d($, C, q, T, G, V);
2290
2290
  };
2291
2291
  return /* @__PURE__ */ e(ir.Provider, { value: h, children: /* @__PURE__ */ i("div", { children: [
2292
- /* @__PURE__ */ e("div", { className: v, role: "tablist", children: t.map((p) => /* @__PURE__ */ e(
2292
+ /* @__PURE__ */ e("div", { className: v, role: "tablist", children: t.map((g) => /* @__PURE__ */ e(
2293
2293
  "button",
2294
2294
  {
2295
2295
  type: "button",
2296
2296
  role: "tab",
2297
- "aria-selected": y === p.id,
2298
- "aria-controls": `tabpanel-${p.id}`,
2299
- disabled: p.disabled,
2300
- onClick: () => !p.disabled && x(p.id),
2301
- className: k(p, y === p.id),
2297
+ "aria-selected": y === g.id,
2298
+ "aria-controls": `tabpanel-${g.id}`,
2299
+ disabled: g.disabled,
2300
+ onClick: () => !g.disabled && x(g.id),
2301
+ className: k(g, y === g.id),
2302
2302
  children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2303
- p.label,
2304
- p.badge && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-surface-hover text-text-muted", children: p.badge })
2303
+ g.label,
2304
+ g.badge && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-surface-hover text-text-muted", children: g.badge })
2305
2305
  ] })
2306
2306
  },
2307
- p.id
2307
+ g.id
2308
2308
  )) }),
2309
2309
  b?.content && /* @__PURE__ */ e(
2310
2310
  "div",
@@ -2332,16 +2332,16 @@ function Ye({
2332
2332
  closeOnBackdropClick: a = !0,
2333
2333
  closeOnEscape: l = !0,
2334
2334
  className: o,
2335
- backdropClassName: u,
2336
- children: m,
2335
+ backdropClassName: m,
2336
+ children: u,
2337
2337
  footer: y,
2338
2338
  showCloseButton: x = !0
2339
2339
  }) {
2340
2340
  const h = se(null), b = se(null);
2341
2341
  X(() => {
2342
2342
  if (!t || !l) return;
2343
- const k = (p) => {
2344
- p.key === "Escape" && r();
2343
+ const k = (g) => {
2344
+ g.key === "Escape" && r();
2345
2345
  };
2346
2346
  return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
2347
2347
  }, [t, l, r]), X(() => (t ? (b.current = document.activeElement, h.current && h.current.focus(), document.body.style.overflow = "hidden") : (b.current && b.current.focus(), document.body.style.overflow = ""), () => {
@@ -2357,7 +2357,7 @@ function Ye({
2357
2357
  "fixed inset-0 z-modal flex items-center justify-center p-4",
2358
2358
  "bg-scrim",
2359
2359
  // 'animate-fade-in',
2360
- u
2360
+ m
2361
2361
  ),
2362
2362
  onClick: v,
2363
2363
  children: /* @__PURE__ */ i(
@@ -2395,7 +2395,7 @@ function Ye({
2395
2395
  }
2396
2396
  )
2397
2397
  ] }),
2398
- /* @__PURE__ */ e("div", { className: "p-6", children: m }),
2398
+ /* @__PURE__ */ e("div", { className: "p-6", children: u }),
2399
2399
  y && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: y })
2400
2400
  ]
2401
2401
  }
@@ -2443,35 +2443,35 @@ const mr = {
2443
2443
  align: a = "left",
2444
2444
  truncate: l = !1,
2445
2445
  italic: o = !1,
2446
- underline: u = !1,
2447
- lineHeight: m = "normal",
2446
+ underline: m = !1,
2447
+ lineHeight: u = "normal",
2448
2448
  as: y,
2449
2449
  className: x,
2450
2450
  children: h,
2451
2451
  ...b
2452
2452
  }) => {
2453
- const v = y || pr(t), k = t === "caption", p = t === "label", f = t === "code", $ = d(
2453
+ const v = y || gr(t), k = t === "caption", g = t === "label", f = t === "code", $ = d(
2454
2454
  "font-sans",
2455
2455
  // Variant — caption and label pin their own size/weight
2456
2456
  k && "text-xs text-text-subtle",
2457
- p && "text-xs font-semibold uppercase tracking-label text-text-subtle",
2457
+ g && "text-xs font-semibold uppercase tracking-label text-text-subtle",
2458
2458
  f && "font-mono text-sm rounded-sm bg-surface-hover px-1 py-0.5",
2459
2459
  // Size — only where the variant does not pin it
2460
- !k && !p && !f && mr[r],
2460
+ !k && !g && !f && mr[r],
2461
2461
  // Weight — label owns its weight
2462
- !p && fr[n],
2462
+ !g && fr[n],
2463
2463
  hr[s],
2464
2464
  xr[a],
2465
2465
  // Line height only overrides the body variant
2466
- t === "body" && br[m],
2466
+ t === "body" && br[u],
2467
2467
  o && "italic",
2468
- u && "underline",
2468
+ m && "underline",
2469
2469
  l && "truncate",
2470
2470
  x
2471
2471
  );
2472
2472
  return /* @__PURE__ */ e(v, { className: $, ...b, children: h });
2473
2473
  };
2474
- function pr(t) {
2474
+ function gr(t) {
2475
2475
  return {
2476
2476
  body: "p",
2477
2477
  caption: "span",
@@ -2479,7 +2479,7 @@ function pr(t) {
2479
2479
  code: "code"
2480
2480
  }[t] || "p";
2481
2481
  }
2482
- const gr = ({
2482
+ const pr = ({
2483
2483
  value: t,
2484
2484
  onChange: r,
2485
2485
  label: n,
@@ -2487,15 +2487,15 @@ const gr = ({
2487
2487
  error: a,
2488
2488
  disabled: l,
2489
2489
  accept: o,
2490
- onListFiles: u,
2491
- onListMounts: m,
2490
+ onListFiles: m,
2491
+ onListMounts: u,
2492
2492
  onUploadFile: y,
2493
2493
  onDownloadFile: x,
2494
2494
  onRegisterFile: h
2495
2495
  }) => {
2496
- const [b, v] = O(!1), [k, p] = O([]), [f, $] = O(null), [C, q] = O("/"), [T, G] = O([]), [V, I] = O(!1), [H, te] = O(""), [J, K] = O(
2496
+ const [b, v] = O(!1), [k, g] = O([]), [f, $] = O(null), [C, q] = O("/"), [T, G] = O([]), [V, I] = O(!1), [H, te] = O(""), [J, K] = O(
2497
2497
  typeof t == "object" ? t : null
2498
- ), [ce, w] = O(!1), [c, S] = O(""), g = se(null);
2498
+ ), [ce, w] = O(!1), [c, S] = O(""), p = se(null);
2499
2499
  X(() => {
2500
2500
  b && _();
2501
2501
  }, [b]), X(() => {
@@ -2504,8 +2504,8 @@ const gr = ({
2504
2504
  const _ = async () => {
2505
2505
  I(!0);
2506
2506
  try {
2507
- const M = await m?.();
2508
- M?.data && p(M.data);
2507
+ const M = await u?.();
2508
+ M?.data && g(M.data);
2509
2509
  } catch (M) {
2510
2510
  console.error("Failed to load mounts", M);
2511
2511
  } finally {
@@ -2515,7 +2515,7 @@ const gr = ({
2515
2515
  if (f) {
2516
2516
  I(!0);
2517
2517
  try {
2518
- const M = await u?.({ mountId: f.id, name: H, path: C });
2518
+ const M = await m?.({ mountId: f.id, name: H, path: C });
2519
2519
  M?.data && G(M.data);
2520
2520
  } catch (M) {
2521
2521
  console.error("Failed to load files", M);
@@ -2601,7 +2601,7 @@ const gr = ({
2601
2601
  }
2602
2602
  }, P = (M) => {
2603
2603
  M.stopPropagation(), K(null), r(null);
2604
- }, D = ge(() => {
2604
+ }, D = pe(() => {
2605
2605
  const M = /* @__PURE__ */ new Set(), L = [];
2606
2606
  return T.forEach((Z) => {
2607
2607
  if (Z.type === "folder") {
@@ -2619,7 +2619,7 @@ const gr = ({
2619
2619
  }, z = () => {
2620
2620
  const M = C.split("/").filter((L) => L !== "");
2621
2621
  M.pop(), M.length === 0 ? q("/") : q(`${M.join("/")}/`);
2622
- }, F = ge(() => {
2622
+ }, F = pe(() => {
2623
2623
  const M = D.folders.map((L) => ({
2624
2624
  id: `folder-${L}`,
2625
2625
  name: L,
@@ -2775,7 +2775,7 @@ const gr = ({
2775
2775
  ae,
2776
2776
  {
2777
2777
  variant: "primary",
2778
- onClick: () => g.current?.click(),
2778
+ onClick: () => p.current?.click(),
2779
2779
  leftIcon: /* @__PURE__ */ e(Q, { icon: ft, size: "xs" }),
2780
2780
  loading: V,
2781
2781
  children: "Upload"
@@ -2786,7 +2786,7 @@ const gr = ({
2786
2786
  {
2787
2787
  type: "file",
2788
2788
  className: "hidden",
2789
- ref: g,
2789
+ ref: p,
2790
2790
  onChange: re,
2791
2791
  accept: o
2792
2792
  }
@@ -2874,13 +2874,13 @@ const gr = ({
2874
2874
  fullWidth: a = !1,
2875
2875
  loading: l = !1,
2876
2876
  containerClassName: o,
2877
- labelClassName: u,
2878
- className: m,
2877
+ labelClassName: m,
2878
+ className: u,
2879
2879
  id: y,
2880
2880
  rows: x = 4,
2881
2881
  ...h
2882
2882
  }, b) => {
2883
- const v = oe.useId(), k = y || `textarea-${v}`, p = !!n, f = n || r ? `${k}-description` : void 0;
2883
+ const v = oe.useId(), k = y || `textarea-${v}`, g = !!n, f = n || r ? `${k}-description` : void 0;
2884
2884
  return /* @__PURE__ */ i("div", { className: d("flex flex-col", a && "w-full", o), children: [
2885
2885
  t && /* @__PURE__ */ e(
2886
2886
  "label",
@@ -2888,8 +2888,8 @@ const gr = ({
2888
2888
  htmlFor: k,
2889
2889
  className: d(
2890
2890
  Ue,
2891
- p ? "text-danger-fg" : "text-text-muted",
2892
- u
2891
+ g ? "text-danger-fg" : "text-text-muted",
2892
+ m
2893
2893
  ),
2894
2894
  children: t
2895
2895
  }
@@ -2901,14 +2901,14 @@ const gr = ({
2901
2901
  ref: b,
2902
2902
  id: k,
2903
2903
  rows: x,
2904
- "aria-invalid": p || void 0,
2904
+ "aria-invalid": g || void 0,
2905
2905
  "aria-describedby": f,
2906
2906
  className: d(
2907
2907
  We,
2908
2908
  "resize-y leading-relaxed",
2909
2909
  vr[s],
2910
- Ke(p),
2911
- m
2910
+ Ke(g),
2911
+ u
2912
2912
  ),
2913
2913
  ...h
2914
2914
  }
@@ -2925,7 +2925,7 @@ const gr = ({
2925
2925
  "p",
2926
2926
  {
2927
2927
  id: f,
2928
- className: d("mt-1 text-xs", p ? "text-danger-fg" : "text-text-subtle"),
2928
+ className: d("mt-1 text-xs", g ? "text-danger-fg" : "text-text-subtle"),
2929
2929
  children: n || r
2930
2930
  }
2931
2931
  )
@@ -2943,8 +2943,8 @@ function yr(t, r, n) {
2943
2943
  const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
2944
2944
  let l = a;
2945
2945
  for (let o = 0; o < s.length - 1; o++) {
2946
- const u = s[o], m = l[u];
2947
- l[u] = m && typeof m == "object" ? Array.isArray(m) ? [...m] : { ...m } : {}, l = l[u];
2946
+ const m = s[o], u = l[m];
2947
+ l[m] = u && typeof u == "object" ? Array.isArray(u) ? [...u] : { ...u } : {}, l = l[m];
2948
2948
  }
2949
2949
  return l[s[s.length - 1]] = n, a;
2950
2950
  }
@@ -2972,7 +2972,7 @@ function wr({
2972
2972
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
2973
2973
  ] });
2974
2974
  }
2975
- const Nn = ({
2975
+ const wn = ({
2976
2976
  groups: t,
2977
2977
  data: r,
2978
2978
  onSubmit: n,
@@ -2980,15 +2980,15 @@ const Nn = ({
2980
2980
  onChange: a,
2981
2981
  transform: l,
2982
2982
  validate: o,
2983
- submitButton: u = { label: "Submit", variant: "primary" },
2984
- cancelButton: m = { label: "Cancel", variant: "outline" },
2983
+ submitButton: m = { label: "Submit", variant: "primary" },
2984
+ cancelButton: u = { label: "Cancel", variant: "outline" },
2985
2985
  showButtons: y = !0,
2986
2986
  layout: x = "vertical",
2987
2987
  size: h = "md",
2988
2988
  loading: b = !1,
2989
2989
  className: v,
2990
2990
  ref: k,
2991
- sdk: p
2991
+ sdk: g
2992
2992
  }) => {
2993
2993
  const [f, $] = O(r || {}), [C, q] = O({}), [T, G] = O({});
2994
2994
  X(() => {
@@ -2996,21 +2996,21 @@ const Nn = ({
2996
2996
  }, [r]);
2997
2997
  const V = he(
2998
2998
  (w, c, S) => {
2999
- const g = t.flatMap((_) => _.items).find((_) => _.name === w);
3000
- if (!g) return null;
3001
- if (g.required && (c == null || c === ""))
3002
- return `${g.label} is required`;
3003
- if (g.type === "array") {
3004
- if (g.required && (!c || c.length === 0))
3005
- return `${g.label} cannot be empty.`;
2999
+ const p = t.flatMap((_) => _.items).find((_) => _.name === w);
3000
+ if (!p) return null;
3001
+ if (p.required && (c == null || c === ""))
3002
+ return `${p.label} is required`;
3003
+ if (p.type === "array") {
3004
+ if (p.required && (!c || c.length === 0))
3005
+ return `${p.label} cannot be empty.`;
3006
3006
  if (c && !Array.isArray(c))
3007
- return `${g.label} must be an array.`;
3008
- if (Array.isArray(c) && g.arrayFields) {
3007
+ return `${p.label} must be an array.`;
3008
+ if (Array.isArray(c) && p.arrayFields) {
3009
3009
  const _ = [];
3010
3010
  let N = !1;
3011
3011
  if (c.forEach((U, re) => {
3012
3012
  const ee = {};
3013
- for (const Y of g.arrayFields) {
3013
+ for (const Y of p.arrayFields) {
3014
3014
  const P = U?.[Y.name];
3015
3015
  if (Y.required && (P == null || P === ""))
3016
3016
  ee[Y.name] = `${Y.label} is required`, N = !0;
@@ -3024,7 +3024,7 @@ const Nn = ({
3024
3024
  return JSON.stringify(_);
3025
3025
  }
3026
3026
  }
3027
- return g.validator ? g.validator(c, S) : null;
3027
+ return p.validator ? p.validator(c, S) : null;
3028
3028
  },
3029
3029
  [t]
3030
3030
  ), I = he(
@@ -3062,15 +3062,15 @@ const Nn = ({
3062
3062
  }
3063
3063
  if (q(c), Object.keys(c).some((_) => c[_]))
3064
3064
  return;
3065
- const g = l ? l(f) : f;
3066
- await n?.(f, g);
3065
+ const p = l ? l(f) : f;
3066
+ await n?.(f, p);
3067
3067
  },
3068
3068
  [f, t, V, o, l, n, b]
3069
3069
  ), te = he(
3070
3070
  (w) => {
3071
- const c = Be(f, w.name), S = T[w.name] ? C[w.name] : void 0, g = w.disabled || b, _ = {
3071
+ const c = Be(f, w.name), S = T[w.name] ? C[w.name] : void 0, p = w.disabled || b, _ = {
3072
3072
  value: c || "",
3073
- disabled: g,
3073
+ disabled: p,
3074
3074
  required: w.required,
3075
3075
  placeholder: w.placeholder,
3076
3076
  ...w.fieldProps
@@ -3164,7 +3164,7 @@ const Nn = ({
3164
3164
  value: N.value,
3165
3165
  checked: c === N.value,
3166
3166
  onChange: () => I(w.name, N.value),
3167
- disabled: g || N.disabled,
3167
+ disabled: p || N.disabled,
3168
3168
  className: "size-checkbox shrink-0 rounded-xs border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
3169
3169
  }
3170
3170
  ),
@@ -3185,31 +3185,31 @@ const Nn = ({
3185
3185
  );
3186
3186
  case "file":
3187
3187
  return /* @__PURE__ */ e(
3188
- gr,
3188
+ pr,
3189
3189
  {
3190
3190
  ..._,
3191
3191
  value: c,
3192
3192
  onChange: (N) => I(w.name, N),
3193
3193
  error: S,
3194
- onListFiles: (N) => p?.http.invoke({
3194
+ onListFiles: (N) => g?.http.invoke({
3195
3195
  method: "POST",
3196
3196
  action: "storage.file.list",
3197
3197
  body: N
3198
3198
  }),
3199
- onListMounts: () => p?.http.invoke({
3199
+ onListMounts: () => g?.http.invoke({
3200
3200
  method: "GET",
3201
3201
  action: "storage.mount"
3202
3202
  }),
3203
- onUploadFile: (N) => p?.http.invoke({
3203
+ onUploadFile: (N) => g?.http.invoke({
3204
3204
  method: "POST",
3205
3205
  action: "storage.file.upload",
3206
3206
  body: N
3207
3207
  }),
3208
- onDownloadFile: (N) => p?.http.invoke({
3208
+ onDownloadFile: (N) => g?.http.invoke({
3209
3209
  method: "GET",
3210
3210
  action: `storage.file.${N}.download`
3211
3211
  }),
3212
- onRegisterFile: (N) => p?.http.invoke({
3212
+ onRegisterFile: (N) => g?.http.invoke({
3213
3213
  method: "POST",
3214
3214
  action: "storage.file.folder",
3215
3215
  body: N
@@ -3222,11 +3222,11 @@ const Nn = ({
3222
3222
  {
3223
3223
  value: c || {},
3224
3224
  onChange: (N) => I(w.name, N),
3225
- onListFolders: () => p?.http.invoke({
3225
+ onListFolders: () => g?.http.invoke({
3226
3226
  method: "GET",
3227
3227
  action: "storage.mount"
3228
3228
  }),
3229
- disabled: g,
3229
+ disabled: p,
3230
3230
  size: h,
3231
3231
  placeholder: w.placeholder
3232
3232
  }
@@ -3236,7 +3236,7 @@ const Nn = ({
3236
3236
  value: c,
3237
3237
  onChange: (N) => I(w.name, N),
3238
3238
  error: S,
3239
- disabled: g
3239
+ disabled: p
3240
3240
  });
3241
3241
  case "array": {
3242
3242
  const N = c || [];
@@ -3276,7 +3276,7 @@ const Nn = ({
3276
3276
  (() => {
3277
3277
  const F = {
3278
3278
  value: P?.[A.name] || "",
3279
- disabled: g,
3279
+ disabled: p,
3280
3280
  required: A.required,
3281
3281
  placeholder: A.placeholder,
3282
3282
  ...A.fieldProps
@@ -3373,7 +3373,7 @@ const Nn = ({
3373
3373
  A.name,
3374
3374
  j.value
3375
3375
  ),
3376
- disabled: g || j.disabled,
3376
+ disabled: p || j.disabled,
3377
3377
  className: "size-checkbox shrink-0 rounded-xs border border-border-strong bg-surface-input accent-accent focus-visible:outline-none focus-visible:focus-ring"
3378
3378
  }
3379
3379
  ),
@@ -3407,7 +3407,7 @@ const Nn = ({
3407
3407
  j
3408
3408
  ),
3409
3409
  error: z,
3410
- disabled: g
3410
+ disabled: p
3411
3411
  });
3412
3412
  // Add other field types here as needed
3413
3413
  default:
@@ -3433,7 +3433,7 @@ const Nn = ({
3433
3433
  size: "md",
3434
3434
  "aria-label": `${w.label} verwijderen`,
3435
3435
  onClick: () => ee(D),
3436
- disabled: g,
3436
+ disabled: p,
3437
3437
  className: d("shrink-0", D === 0 && "mt-5"),
3438
3438
  children: /* @__PURE__ */ e(ht, { className: "size-icon-md" })
3439
3439
  }
@@ -3446,7 +3446,7 @@ const Nn = ({
3446
3446
  variant: "secondary",
3447
3447
  leftIcon: /* @__PURE__ */ e(xt, { className: "size-icon-sm" }),
3448
3448
  onClick: re,
3449
- disabled: g,
3449
+ disabled: p,
3450
3450
  children: [
3451
3451
  w.label,
3452
3452
  " toevoegen"
@@ -3464,7 +3464,7 @@ const Nn = ({
3464
3464
  (w) => {
3465
3465
  if (w.conditional && !w.conditional(f))
3466
3466
  return null;
3467
- const c = w.items.filter((g) => !(g.hidden || g.conditional && !g.conditional(f)));
3467
+ const c = w.items.filter((p) => !(p.hidden || p.conditional && !p.conditional(f)));
3468
3468
  if (c.length === 0) return null;
3469
3469
  const S = d(
3470
3470
  w.layout === "flex" ? "flex flex-wrap gap-3.5" : "grid gap-3.5",
@@ -3486,29 +3486,29 @@ const Nn = ({
3486
3486
  title: w.title,
3487
3487
  description: w.description,
3488
3488
  className: "not-last:border-b not-last:border-border-subtle",
3489
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: S, children: c.map((g) => {
3490
- const _ = T[g.name] ? C[g.name] : void 0;
3489
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: S, children: c.map((p) => {
3490
+ const _ = T[p.name] ? C[p.name] : void 0;
3491
3491
  return /* @__PURE__ */ i(
3492
3492
  "div",
3493
3493
  {
3494
3494
  className: d(
3495
3495
  "flex min-w-0 flex-col gap-1.5",
3496
- g.type === "checkbox" && "justify-center"
3496
+ p.type === "checkbox" && "justify-center"
3497
3497
  ),
3498
3498
  style: {
3499
- width: typeof g.width == "string" ? g.width : void 0,
3500
- gridColumn: typeof g.width == "number" ? `span ${g.width} / span ${g.width}` : void 0
3499
+ width: typeof p.width == "string" ? p.width : void 0,
3500
+ gridColumn: typeof p.width == "number" ? `span ${p.width} / span ${p.width}` : void 0
3501
3501
  },
3502
3502
  children: [
3503
- g.type !== "custom" && g.type !== "checkbox" && /* @__PURE__ */ i("label", { className: "block text-sm font-medium text-text-muted", children: [
3504
- g.label,
3505
- g.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3503
+ p.type !== "custom" && p.type !== "checkbox" && /* @__PURE__ */ i("label", { className: "block text-sm font-medium text-text-muted", children: [
3504
+ p.label,
3505
+ p.required && /* @__PURE__ */ e("span", { className: "ml-1 text-danger-fg", children: "*" })
3506
3506
  ] }),
3507
- te(g),
3508
- g.help && !_ && /* @__PURE__ */ e("p", { className: "text-xs leading-4 text-text-subtle", children: g.help })
3507
+ te(p),
3508
+ p.help && !_ && /* @__PURE__ */ e("p", { className: "text-xs leading-4 text-text-subtle", children: p.help })
3509
3509
  ]
3510
3510
  },
3511
- g.name
3511
+ p.name
3512
3512
  );
3513
3513
  }) }) })
3514
3514
  },
@@ -3535,30 +3535,30 @@ const Nn = ({
3535
3535
  ae,
3536
3536
  {
3537
3537
  type: "button",
3538
- variant: m.variant ?? "ghost",
3539
- size: m.size || ce,
3540
- disabled: m.disabled || b,
3538
+ variant: u.variant ?? "ghost",
3539
+ size: u.size || ce,
3540
+ disabled: u.disabled || b,
3541
3541
  onClick: s,
3542
- className: m.className,
3543
- children: m.label
3542
+ className: u.className,
3543
+ children: u.label
3544
3544
  }
3545
3545
  ),
3546
3546
  /* @__PURE__ */ e(
3547
3547
  ae,
3548
3548
  {
3549
3549
  type: "submit",
3550
- variant: u.variant,
3551
- size: u.size || ce,
3552
- disabled: u.disabled || b,
3550
+ variant: m.variant,
3551
+ size: m.size || ce,
3552
+ disabled: m.disabled || b,
3553
3553
  loading: b,
3554
- className: u.className,
3555
- children: u.label
3554
+ className: m.className,
3555
+ children: m.label
3556
3556
  }
3557
3557
  )
3558
3558
  ] }) })
3559
3559
  ] });
3560
3560
  };
3561
- function wn({
3561
+ function kn({
3562
3562
  open: t,
3563
3563
  title: r,
3564
3564
  description: n,
@@ -3566,23 +3566,23 @@ function wn({
3566
3566
  cancelLabel: a = "Annuleren",
3567
3567
  tone: l = "default",
3568
3568
  loading: o = !1,
3569
- onConfirm: u,
3570
- onCancel: m
3569
+ onConfirm: m,
3570
+ onCancel: u
3571
3571
  }) {
3572
3572
  return /* @__PURE__ */ e(
3573
3573
  Ye,
3574
3574
  {
3575
3575
  open: t,
3576
- onClose: m,
3576
+ onClose: u,
3577
3577
  title: r,
3578
3578
  size: "sm",
3579
3579
  footer: /* @__PURE__ */ i("div", { className: "flex w-full items-center justify-end gap-2", children: [
3580
- /* @__PURE__ */ e(ae, { variant: "ghost", onClick: m, disabled: o, children: a }),
3580
+ /* @__PURE__ */ e(ae, { variant: "ghost", onClick: u, disabled: o, children: a }),
3581
3581
  /* @__PURE__ */ e(
3582
3582
  ae,
3583
3583
  {
3584
3584
  variant: l === "danger" ? "destructive" : "primary",
3585
- onClick: u,
3585
+ onClick: m,
3586
3586
  loading: o,
3587
3587
  children: s
3588
3588
  }
@@ -3616,7 +3616,7 @@ const kr = {
3616
3616
  info: "bg-info",
3617
3617
  note: "bg-note"
3618
3618
  };
3619
- function kn({
3619
+ function Cn({
3620
3620
  variant: t = "default",
3621
3621
  size: r = "md",
3622
3622
  dot: n = !1,
@@ -3624,8 +3624,8 @@ function kn({
3624
3624
  dismissible: a = !1,
3625
3625
  onDismiss: l,
3626
3626
  className: o,
3627
- children: u,
3628
- ...m
3627
+ children: m,
3628
+ ...u
3629
3629
  }) {
3630
3630
  return /* @__PURE__ */ i(
3631
3631
  "span",
@@ -3639,7 +3639,7 @@ function kn({
3639
3639
  Cr[r],
3640
3640
  o
3641
3641
  ),
3642
- ...m,
3642
+ ...u,
3643
3643
  children: [
3644
3644
  n && /* @__PURE__ */ e(
3645
3645
  "span",
@@ -3650,8 +3650,8 @@ function kn({
3650
3650
  )
3651
3651
  }
3652
3652
  ),
3653
- s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0", u && "mr-1"), children: s }),
3654
- u,
3653
+ s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0", m && "mr-1"), children: s }),
3654
+ m,
3655
3655
  a && l && /* @__PURE__ */ e(
3656
3656
  "button",
3657
3657
  {
@@ -3669,7 +3669,7 @@ const Er = {
3669
3669
  neutral: "bg-surface-hover text-text-muted",
3670
3670
  success: "bg-success-soft text-success-fg"
3671
3671
  };
3672
- function Cn({
3672
+ function Sn({
3673
3673
  icon: t,
3674
3674
  tone: r = "neutral",
3675
3675
  title: n,
@@ -3677,7 +3677,7 @@ function Cn({
3677
3677
  actions: a,
3678
3678
  card: l = !1,
3679
3679
  className: o,
3680
- ...u
3680
+ ...m
3681
3681
  }) {
3682
3682
  return /* @__PURE__ */ i(
3683
3683
  "div",
@@ -3687,7 +3687,7 @@ function Cn({
3687
3687
  l && "rounded-lg border border-border bg-surface px-11 py-9 shadow-overlay",
3688
3688
  o
3689
3689
  ),
3690
- ...u,
3690
+ ...m,
3691
3691
  children: [
3692
3692
  t != null && /* @__PURE__ */ e("span", { className: d("flex size-disc items-center justify-center rounded-full text-2xl", Er[r]), children: t }),
3693
3693
  /* @__PURE__ */ e("div", { className: "text-lg font-semibold text-text", children: n }),
@@ -3697,7 +3697,7 @@ function Cn({
3697
3697
  }
3698
3698
  );
3699
3699
  }
3700
- function Sn({ children: t, className: r, ...n }) {
3700
+ function En({ children: t, className: r, ...n }) {
3701
3701
  return /* @__PURE__ */ e(
3702
3702
  "kbd",
3703
3703
  {
@@ -3717,7 +3717,7 @@ const zr = {
3717
3717
  accent: "bg-accent",
3718
3718
  success: "bg-success"
3719
3719
  };
3720
- function En({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3720
+ function zn({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
3721
3721
  const l = Math.max(0, Math.min(100, t));
3722
3722
  return /* @__PURE__ */ e(
3723
3723
  "div",
@@ -3756,7 +3756,7 @@ const $r = {
3756
3756
  lg: "text-base",
3757
3757
  xl: "text-lg"
3758
3758
  };
3759
- function zn({
3759
+ function Mn({
3760
3760
  size: t = "md",
3761
3761
  variant: r = "primary",
3762
3762
  label: n = "Loading...",
@@ -3838,7 +3838,7 @@ const _r = {
3838
3838
  "cat-4": "bg-cat-4",
3839
3839
  "cat-5": "bg-cat-5"
3840
3840
  };
3841
- function Mn({
3841
+ function $n({
3842
3842
  tone: t = "neutral",
3843
3843
  shape: r = "round",
3844
3844
  pulse: n = !1,
@@ -3861,7 +3861,7 @@ function Mn({
3861
3861
  }
3862
3862
  );
3863
3863
  }
3864
- function $n({
3864
+ function Dn({
3865
3865
  steps: t,
3866
3866
  current: r,
3867
3867
  variant: n = "numbered",
@@ -3869,35 +3869,35 @@ function $n({
3869
3869
  className: a
3870
3870
  }) {
3871
3871
  const l = t.indexOf(r), o = { role: s ? "group" : void 0, "aria-label": s, "aria-hidden": s ? void 0 : !0 };
3872
- return n === "dots" ? /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-1.5", a), children: t.map((u, m) => /* @__PURE__ */ e(
3872
+ return n === "dots" ? /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-1.5", a), children: t.map((m, u) => /* @__PURE__ */ e(
3873
3873
  "span",
3874
3874
  {
3875
3875
  className: d(
3876
3876
  "h-step-bar rounded-full transition-all duration-fast ease-out",
3877
- m === l ? "w-5 bg-accent" : "w-3.5",
3878
- m < l && "bg-border-strong",
3879
- m > l && "bg-border"
3877
+ u === l ? "w-5 bg-accent" : "w-3.5",
3878
+ u < l && "bg-border-strong",
3879
+ u > l && "bg-border"
3880
3880
  )
3881
3881
  },
3882
- u
3883
- )) }) : /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-2", a), children: t.map((u, m) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
3882
+ m
3883
+ )) }) : /* @__PURE__ */ e("div", { ...o, className: d("flex items-center gap-2", a), children: t.map((m, u) => /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
3884
3884
  /* @__PURE__ */ e(
3885
3885
  "span",
3886
3886
  {
3887
- "aria-current": m === l ? "step" : void 0,
3887
+ "aria-current": u === l ? "step" : void 0,
3888
3888
  className: d(
3889
3889
  "flex size-tile-sm items-center justify-center rounded-full text-xs font-medium",
3890
- m === l && "bg-accent text-accent-fg",
3891
- m < l && "bg-accent-soft text-accent",
3892
- m > l && "bg-surface-hover text-text-muted"
3890
+ u === l && "bg-accent text-accent-fg",
3891
+ u < l && "bg-accent-soft text-accent",
3892
+ u > l && "bg-surface-hover text-text-muted"
3893
3893
  ),
3894
- children: m + 1
3894
+ children: u + 1
3895
3895
  }
3896
3896
  ),
3897
- m < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
3898
- ] }, u)) });
3897
+ u < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
3898
+ ] }, m)) });
3899
3899
  }
3900
- function Dn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
3900
+ function Tn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-md", "aria-hidden": !0 }), action: n, children: s, className: a, ...l }) {
3901
3901
  return /* @__PURE__ */ i(
3902
3902
  "div",
3903
3903
  {
@@ -3919,54 +3919,59 @@ function Dn({ title: t, icon: r = /* @__PURE__ */ e(bt, { className: "size-icon-
3919
3919
  );
3920
3920
  }
3921
3921
  const Ar = {
3922
+ default: "bg-avatar text-avatar-fg",
3923
+ in: "bg-avatar-in text-avatar-in-fg",
3924
+ out: "bg-accent text-accent-fg",
3925
+ note: "bg-avatar-note text-avatar-note-fg"
3926
+ }, Lr = {
3922
3927
  xs: "w-5 h-5 text-xs",
3923
3928
  sm: "w-6 h-6 text-xs",
3924
3929
  md: "w-7 h-7 text-base",
3925
3930
  lg: "w-9 h-9 text-sm"
3926
3931
  };
3927
- function Lr(t) {
3932
+ function Ir(t) {
3928
3933
  if (!t) return "?";
3929
3934
  const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
3930
3935
  return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
3931
3936
  }
3932
- const Ir = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
3933
- const [l, o] = oe.useState(!1), u = d(
3934
- // `avatar`, not `surface-hover`: at 0.972 the plate was within a few percent
3935
- // of every surface it sits on, so the monogram floated instead of sitting in
3936
- // a disc. It needs its own token because it is a fill that must stay a step
3937
- // away from its background in *both* themes.
3938
- "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none bg-avatar text-avatar-fg",
3937
+ const Pr = ({ name: t, src: r, tone: n = "default", size: s = "sm", className: a, title: l }) => {
3938
+ const [o, m] = oe.useState(!1), u = d(
3939
+ // Its own token and not `surface-hover`: at 0.972 the plate was within a few
3940
+ // percent of every surface it sits on, so the monogram floated instead of
3941
+ // sitting in a disc.
3942
+ "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none",
3939
3943
  Ar[n],
3940
- s
3944
+ Lr[s],
3945
+ a
3941
3946
  );
3942
- return r && !l ? /* @__PURE__ */ e(
3947
+ return r && !o ? /* @__PURE__ */ e(
3943
3948
  "img",
3944
3949
  {
3945
3950
  src: r,
3946
3951
  alt: t ?? "",
3947
- title: a ?? t,
3952
+ title: l ?? t,
3948
3953
  className: d(u, "object-cover"),
3949
- onError: () => o(!0)
3954
+ onError: () => m(!0)
3950
3955
  }
3951
- ) : /* @__PURE__ */ e("span", { className: u, title: a ?? t, "aria-label": t, children: Lr(t) });
3952
- }, Re = "ring-surface", Pr = "ring-surface-accent", Tn = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
3956
+ ) : /* @__PURE__ */ e("span", { className: u, title: l ?? t, "aria-label": t, children: Ir(t) });
3957
+ }, Re = "ring-surface", jr = "ring-surface-accent", _n = ({ people: t, max: r = 4, size: n = "sm", className: s }) => {
3953
3958
  if (t.length === 0) return null;
3954
3959
  const a = t.slice(0, r), l = t.length - a.length;
3955
3960
  return /* @__PURE__ */ i("span", { className: d("inline-flex items-center", s), children: [
3956
- a.map((o, u) => /* @__PURE__ */ e(
3957
- Ir,
3961
+ a.map((o, m) => /* @__PURE__ */ e(
3962
+ Pr,
3958
3963
  {
3959
3964
  name: o.name,
3960
3965
  src: o.src,
3961
3966
  size: n,
3962
3967
  title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
3963
3968
  className: d(
3964
- u > 0 && "-ml-2",
3965
- o.owner ? Pr : Re,
3969
+ m > 0 && "-ml-2",
3970
+ o.owner ? jr : Re,
3966
3971
  o.seen === !1 && "opacity-40"
3967
3972
  )
3968
3973
  },
3969
- o.id ?? `${o.name}-${u}`
3974
+ o.id ?? `${o.name}-${m}`
3970
3975
  )),
3971
3976
  l > 0 && /* @__PURE__ */ i(
3972
3977
  "span",
@@ -3991,12 +3996,12 @@ const Ir = ({ name: t, src: r, size: n = "sm", className: s, title: a }) => {
3991
3996
  chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
3992
3997
  tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
3993
3998
  note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
3994
- }, jr = {
3999
+ }, Or = {
3995
4000
  sm: "size-avatar-xs rounded-sm text-xs",
3996
4001
  md: "size-avatar-sm rounded-md text-xs",
3997
4002
  lg: "size-avatar-lg rounded-md text-base"
3998
4003
  };
3999
- function _n({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4004
+ function An({ channel: t, children: r, size: n = "md", className: s, title: a }) {
4000
4005
  const l = He[t in He ? t : "note"];
4001
4006
  return /* @__PURE__ */ e(
4002
4007
  "span",
@@ -4004,7 +4009,7 @@ function _n({ channel: t, children: r, size: n = "md", className: s, title: a })
4004
4009
  title: a,
4005
4010
  className: d(
4006
4011
  "inline-flex shrink-0 items-center justify-center font-bold",
4007
- jr[n],
4012
+ Or[n],
4008
4013
  l.fg,
4009
4014
  l.bg,
4010
4015
  s
@@ -4013,7 +4018,7 @@ function _n({ channel: t, children: r, size: n = "md", className: s, title: a })
4013
4018
  }
4014
4019
  );
4015
4020
  }
4016
- const An = ({
4021
+ const Ln = ({
4017
4022
  src: t,
4018
4023
  alt: r,
4019
4024
  size: n = "md",
@@ -4021,19 +4026,19 @@ const An = ({
4021
4026
  radius: a = "md",
4022
4027
  showLoading: l = !0,
4023
4028
  showError: o = !0,
4024
- fallback: u,
4025
- loadingContent: m,
4029
+ fallback: m,
4030
+ loadingContent: u,
4026
4031
  errorContent: y,
4027
4032
  className: x,
4028
4033
  onLoad: h,
4029
4034
  onError: b,
4030
4035
  ...v
4031
4036
  }) => {
4032
- const [k, p] = O(!0), [f, $] = O(!1), [C, q] = O(t), T = (K) => {
4033
- p(!1), $(!1), h?.(K);
4037
+ const [k, g] = O(!0), [f, $] = O(!1), [C, q] = O(t), T = (K) => {
4038
+ g(!1), $(!1), h?.(K);
4034
4039
  }, G = (K) => {
4035
- if (p(!1), $(!0), u && C !== u) {
4036
- q(u), $(!1), p(!0);
4040
+ if (g(!1), $(!0), m && C !== m) {
4041
+ q(m), $(!1), g(!0);
4037
4042
  return;
4038
4043
  }
4039
4044
  b?.(K);
@@ -4075,7 +4080,7 @@ const An = ({
4075
4080
  "absolute inset-0 flex items-center justify-center",
4076
4081
  "text-text-muted"
4077
4082
  ), te = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), J = /* @__PURE__ */ i("div", { className: "text-center", children: [
4078
- /* @__PURE__ */ e(Q, { icon: pt, size: "lg", className: "mx-auto mb-1" }),
4083
+ /* @__PURE__ */ e(Q, { icon: gt, size: "lg", className: "mx-auto mb-1" }),
4079
4084
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
4080
4085
  ] });
4081
4086
  return /* @__PURE__ */ i("div", { className: V, children: [
@@ -4090,11 +4095,11 @@ const An = ({
4090
4095
  onError: G
4091
4096
  }
4092
4097
  ),
4093
- k && l && /* @__PURE__ */ e("div", { className: H, children: m || te }),
4098
+ k && l && /* @__PURE__ */ e("div", { className: H, children: u || te }),
4094
4099
  f && o && /* @__PURE__ */ e("div", { className: H, children: y || J })
4095
4100
  ] });
4096
4101
  };
4097
- function Ln({
4102
+ function In({
4098
4103
  icon: t,
4099
4104
  onClick: r,
4100
4105
  children: n
@@ -4117,7 +4122,7 @@ function Ln({
4117
4122
  }
4118
4123
  );
4119
4124
  }
4120
- function In({
4125
+ function Pn({
4121
4126
  items: t,
4122
4127
  getRowKey: r,
4123
4128
  variant: n = "divided",
@@ -4125,15 +4130,15 @@ function In({
4125
4130
  renderItem: a,
4126
4131
  trailing: l,
4127
4132
  onSelect: o,
4128
- onActiveIndexChange: u,
4129
- isActive: m,
4133
+ onActiveIndexChange: m,
4134
+ isActive: u,
4130
4135
  unread: y,
4131
4136
  dimmed: x,
4132
4137
  groupBy: h,
4133
4138
  groups: b,
4134
4139
  renderGroupHeader: v,
4135
4140
  stickyGroupHeaders: k = !1,
4136
- collapsibleGroups: p = !1,
4141
+ collapsibleGroups: g = !1,
4137
4142
  hideGroupCount: f = !1,
4138
4143
  selectable: $ = !1,
4139
4144
  selectedItems: C = [],
@@ -4152,7 +4157,7 @@ function In({
4152
4157
  () => Object.fromEntries(
4153
4158
  (b ?? []).filter((z) => z.defaultCollapsed).map((z) => [z.id, !0])
4154
4159
  )
4155
- ), S = oe.useRef(null), g = (z) => {
4160
+ ), S = oe.useRef(null), p = (z) => {
4156
4161
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(z.key)) return;
4157
4162
  const j = Array.from(
4158
4163
  S.current?.querySelectorAll("li[data-list-row]") ?? []
@@ -4190,7 +4195,7 @@ function In({
4190
4195
  if (t.length === 0 && H)
4191
4196
  return /* @__PURE__ */ e("div", { className: ee, children: H });
4192
4197
  const Y = t.length > 0 && C.length === t.length, P = C.length > 0 && !Y, D = (z, F, j) => {
4193
- const B = m?.(z, F) ?? !1, M = y?.(z, F) ?? !1, L = x?.(z, F) ?? !1, Z = $ && N(z);
4198
+ const B = u?.(z, F) ?? !1, M = y?.(z, F) ?? !1, L = x?.(z, F) ?? !1, Z = $ && N(z);
4194
4199
  return /* @__PURE__ */ i(
4195
4200
  "li",
4196
4201
  {
@@ -4200,7 +4205,7 @@ function In({
4200
4205
  "data-list-row": "",
4201
4206
  "aria-current": B || void 0,
4202
4207
  onClick: () => o(z, F),
4203
- onFocus: () => u?.(F),
4208
+ onFocus: () => m?.(F),
4204
4209
  onKeyDown: (ne) => {
4205
4210
  ne.key !== "Enter" && ne.key !== " " || (ne.preventDefault(), o(z, F));
4206
4211
  }
@@ -4256,10 +4261,10 @@ function In({
4256
4261
  ...F.filter((B) => z.has(B.id)),
4257
4262
  ...[...z.keys()].filter((B) => !F.some((M) => M.id === B)).map((B) => ({ id: B }))
4258
4263
  ].flatMap((B, M) => {
4259
- const L = z.get(B.id) ?? [], Z = p && w[B.id], ne = B.title ?? B.id, de = B.count ?? L.length, be = /* @__PURE__ */ e(
4264
+ const L = z.get(B.id) ?? [], Z = g && w[B.id], ne = B.title ?? B.id, de = B.count ?? L.length, be = /* @__PURE__ */ e(
4260
4265
  "li",
4261
4266
  {
4262
- onClick: p ? () => c((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
4267
+ onClick: g ? () => c((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
4263
4268
  className: d(
4264
4269
  // A caption over its rows, not a band across the table: same
4265
4270
  // surface as the rows, no rules, and the count as a quiet pill.
@@ -4268,12 +4273,12 @@ function In({
4268
4273
  M > 0 ? "pt-5" : "pt-3",
4269
4274
  B.tone === "danger" ? "text-danger-fg" : B.tone === "muted" ? "text-text-subtle" : "text-text",
4270
4275
  k && "sticky z-10",
4271
- p && "cursor-pointer select-none"
4276
+ g && "cursor-pointer select-none"
4272
4277
  ),
4273
- "aria-expanded": p ? !Z : void 0,
4278
+ "aria-expanded": g ? !Z : void 0,
4274
4279
  style: k ? { top: V ? 28 : 0 } : void 0,
4275
4280
  children: v ? v(B, L.map((fe) => fe.item)) : /* @__PURE__ */ i(ve, { children: [
4276
- p && /* @__PURE__ */ e(
4281
+ g && /* @__PURE__ */ e(
4277
4282
  ze,
4278
4283
  {
4279
4284
  "aria-hidden": !0,
@@ -4306,7 +4311,7 @@ function In({
4306
4311
  ];
4307
4312
  });
4308
4313
  })();
4309
- return /* @__PURE__ */ i("div", { ref: S, className: ee, onKeyDown: o ? g : void 0, children: [
4314
+ return /* @__PURE__ */ i("div", { ref: S, className: ee, onKeyDown: o ? p : void 0, children: [
4310
4315
  G && /* @__PURE__ */ i(
4311
4316
  "div",
4312
4317
  {
@@ -4353,7 +4358,7 @@ function In({
4353
4358
  ] }) })
4354
4359
  ] });
4355
4360
  }
4356
- function Pn({
4361
+ function jn({
4357
4362
  side: t,
4358
4363
  continued: r = !1,
4359
4364
  tone: n = "default",
@@ -4366,7 +4371,10 @@ function Pn({
4366
4371
  className: d(
4367
4372
  // A bubble never spans the whole column; it narrows further from md,
4368
4373
  // where the thread itself is wide enough for the difference to matter.
4369
- "min-w-0 max-w-bubble md:max-w-bubble-md shadow-sm",
4374
+ // No shadow: a bubble is an inner card, and inner cards separate
4375
+ // themselves with a fill. The shadow was doing the separating while both
4376
+ // sides were white.
4377
+ "min-w-0 max-w-bubble md:max-w-bubble-md",
4370
4378
  // No outline on an ordinary message: its fill already separates it from
4371
4379
  // the thread, and a border on every bubble turns a conversation into a
4372
4380
  // stack of boxes. The flagged tones keep theirs — there the outline is
@@ -4375,7 +4383,11 @@ function Pn({
4375
4383
  // tone === "note" && "border border-note-border",
4376
4384
  // The tight corner points back at the sender.
4377
4385
  t === "out" ? "rounded-lg rounded-tr-sm" : "rounded-lg rounded-tl-sm",
4378
- n === "note" ? "bg-note-soft" : "bg-surface",
4386
+ // Sent is a pale blue, received the neutral sunk grey — the same pair the
4387
+ // full-width feed cards use, so a chat thread and a mail thread say
4388
+ // "ours" and "theirs" the same way. Both used to be white on white,
4389
+ // which left the corner radius as the only cue.
4390
+ n === "note" ? "bg-note-soft" : t === "out" ? "bg-bubble-out-soft" : "bg-surface-sunk",
4379
4391
  r && "mt-1",
4380
4392
  s
4381
4393
  ),
@@ -4383,18 +4395,18 @@ function Pn({
4383
4395
  }
4384
4396
  );
4385
4397
  }
4386
- const Or = {
4398
+ const Fr = {
4387
4399
  default: "text-text",
4388
4400
  urgent: "text-danger-fg",
4389
4401
  success: "text-success-fg"
4390
4402
  };
4391
- function jn({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4403
+ function On({ value: t, label: r, tone: n = "default", className: s, ...a }) {
4392
4404
  return /* @__PURE__ */ i("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
4393
- /* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Or[n]), children: t }),
4405
+ /* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Fr[n]), children: t }),
4394
4406
  /* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
4395
4407
  ] });
4396
4408
  }
4397
- const On = ({
4409
+ const Fn = ({
4398
4410
  surface: t = !1,
4399
4411
  title: r,
4400
4412
  subtitle: n,
@@ -4402,24 +4414,24 @@ const On = ({
4402
4414
  actions: a = [],
4403
4415
  children: l,
4404
4416
  className: o,
4405
- backLabel: u = "Back",
4406
- backClassName: m,
4417
+ backLabel: m = "Back",
4418
+ backClassName: u,
4407
4419
  onBack: y,
4408
4420
  editable: x = !1,
4409
4421
  onTitleChange: h
4410
4422
  }) => {
4411
- const [b, v] = O(!1), [k, p] = O(r), f = se(null);
4423
+ const [b, v] = O(!1), [k, g] = O(r), f = se(null);
4412
4424
  X(() => {
4413
- p(r);
4425
+ g(r);
4414
4426
  }, [r]), X(() => {
4415
4427
  b && f.current && (f.current.focus(), f.current.select());
4416
4428
  }, [b]);
4417
4429
  const $ = () => {
4418
4430
  x && v(!0);
4419
4431
  }, C = () => {
4420
- v(!1), k.trim() !== "" && k !== r && h ? h(k.trim()) : p(r);
4432
+ v(!1), k.trim() !== "" && k !== r && h ? h(k.trim()) : g(r);
4421
4433
  }, q = (T) => {
4422
- T.key === "Enter" ? f.current?.blur() : T.key === "Escape" && (p(r), v(!1));
4434
+ T.key === "Enter" ? f.current?.blur() : T.key === "Escape" && (g(r), v(!1));
4423
4435
  };
4424
4436
  return /* @__PURE__ */ i(
4425
4437
  "div",
@@ -4444,7 +4456,7 @@ const On = ({
4444
4456
  ref: f,
4445
4457
  type: "text",
4446
4458
  value: k,
4447
- onChange: (T) => p(T.target.value),
4459
+ onChange: (T) => g(T.target.value),
4448
4460
  onBlur: C,
4449
4461
  onKeyDown: q,
4450
4462
  className: "text-1xl font-semibold bg-transparent border-b-1 border-border rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0 w-full"
@@ -4464,7 +4476,7 @@ const On = ({
4464
4476
  ),
4465
4477
  n && /* @__PURE__ */ e("span", { className: "shrink-0 text-base text-text-muted truncate", children: n }),
4466
4478
  x && /* @__PURE__ */ e(
4467
- gt,
4479
+ pt,
4468
4480
  {
4469
4481
  size: 15,
4470
4482
  onClick: $,
@@ -4519,7 +4531,7 @@ const On = ({
4519
4531
  ]
4520
4532
  }
4521
4533
  );
4522
- }, Fr = /<[a-z][\s\S]*>/i, Br = [
4534
+ }, Br = /<[a-z][\s\S]*>/i, Rr = [
4523
4535
  "[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
4524
4536
  "[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
4525
4537
  "[&_strong]:font-semibold [&_em]:italic",
@@ -4534,7 +4546,7 @@ const On = ({
4534
4546
  "[&_table]:my-1.5 [&_table]:w-full [&_table]:border-collapse [&_table]:text-xs",
4535
4547
  "[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
4536
4548
  "[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1"
4537
- ].join(" "), Rr = {
4549
+ ].join(" "), Hr = {
4538
4550
  p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
4539
4551
  a: (t) => /* @__PURE__ */ e("a", { className: "text-accent underline underline-offset-2 hover:opacity-80", target: "_blank", rel: "noopener noreferrer", ...t }),
4540
4552
  strong: (t) => /* @__PURE__ */ e("strong", { className: "font-semibold", ...t }),
@@ -4557,22 +4569,22 @@ const On = ({
4557
4569
  th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
4558
4570
  td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
4559
4571
  };
4560
- function Fn({ text: t, className: r, as: n }) {
4572
+ function Bn({ text: t, className: r, as: n }) {
4561
4573
  const s = t ?? "";
4562
- return (n ? n === "html" : Fr.test(s)) ? /* @__PURE__ */ e(
4574
+ return (n ? n === "html" : Br.test(s)) ? /* @__PURE__ */ e(
4563
4575
  "div",
4564
4576
  {
4565
- className: d("break-words", Br, r),
4577
+ className: d("break-words", Rr, r),
4566
4578
  dangerouslySetInnerHTML: { __html: kt.sanitize(s, { ADD_ATTR: ["target", "rel"] }) }
4567
4579
  }
4568
- ) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Ct, { remarkPlugins: [St], components: Rr, children: s }) });
4580
+ ) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(Ct, { remarkPlugins: [St], components: Hr, children: s }) });
4569
4581
  }
4570
- const Bn = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ i("div", { className: d("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
4582
+ const Rn = ({ label: t, meta: r, action: n, className: s }) => /* @__PURE__ */ i("div", { className: d("flex items-center gap-2 px-1 pb-2 pt-7 first:pt-0", s), children: [
4571
4583
  /* @__PURE__ */ e("span", { className: "shrink-0 text-2xs font-semibold uppercase tracking-label text-text-subtle", children: t }),
4572
4584
  r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
4573
4585
  n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
4574
4586
  ] });
4575
- function Rn({ label: t, trailing: r, align: n = "center", className: s }) {
4587
+ function Hn({ label: t, trailing: r, align: n = "center", className: s }) {
4576
4588
  const a = /* @__PURE__ */ e("span", { className: "h-px flex-1 bg-border-subtle", "aria-hidden": !0 });
4577
4589
  return !t && !r ? /* @__PURE__ */ e("div", { className: d("flex items-center py-2", s), children: a }) : /* @__PURE__ */ i("div", { className: d("flex items-center gap-3 py-2", s), children: [
4578
4590
  n === "center" && a,
@@ -4581,7 +4593,7 @@ function Rn({ label: t, trailing: r, align: n = "center", className: s }) {
4581
4593
  r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
4582
4594
  ] });
4583
4595
  }
4584
- function Hn({
4596
+ function Vn({
4585
4597
  label: t,
4586
4598
  description: r,
4587
4599
  control: n,
@@ -4608,7 +4620,7 @@ function Hn({
4608
4620
  }
4609
4621
  );
4610
4622
  }
4611
- function Vn({
4623
+ function qn({
4612
4624
  icon: t,
4613
4625
  title: r,
4614
4626
  description: n,
@@ -4628,7 +4640,7 @@ function Vn({
4628
4640
  /* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
4629
4641
  ] });
4630
4642
  }
4631
- function qn({ label: t, dotColor: r, onClick: n, className: s }) {
4643
+ function Un({ label: t, dotColor: r, onClick: n, className: s }) {
4632
4644
  return /* @__PURE__ */ i(
4633
4645
  "button",
4634
4646
  {
@@ -4646,13 +4658,13 @@ function qn({ label: t, dotColor: r, onClick: n, className: s }) {
4646
4658
  }
4647
4659
  );
4648
4660
  }
4649
- function Hr(t, r) {
4661
+ function Vr(t, r) {
4650
4662
  return r.split(".").reduce(
4651
4663
  (n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
4652
4664
  t
4653
4665
  );
4654
4666
  }
4655
- const Un = ({
4667
+ const Wn = ({
4656
4668
  groups: t,
4657
4669
  data: r,
4658
4670
  size: n = "md",
@@ -4673,9 +4685,9 @@ const Un = ({
4673
4685
  if (!h) return String(x || "-");
4674
4686
  const b = h.find((v) => v.value === x);
4675
4687
  return b ? b.label : String(x || "-");
4676
- }, u = he(
4688
+ }, m = he(
4677
4689
  (x) => {
4678
- const h = Hr(r, x.name);
4690
+ const h = Vr(r, x.name);
4679
4691
  if (x.type === "array") {
4680
4692
  const v = h;
4681
4693
  return !v || v.length === 0 ? /* @__PURE__ */ e(
@@ -4686,7 +4698,7 @@ const Un = ({
4686
4698
  className: "text-text-muted",
4687
4699
  children: "Geen items"
4688
4700
  }
4689
- ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((k, p) => /* @__PURE__ */ i(
4701
+ ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((k, g) => /* @__PURE__ */ i(
4690
4702
  "div",
4691
4703
  {
4692
4704
  className: "p-4 border border-border rounded-xl space-y-3",
@@ -4701,7 +4713,7 @@ const Un = ({
4701
4713
  children: [
4702
4714
  x.label,
4703
4715
  " ",
4704
- p + 1
4716
+ g + 1
4705
4717
  ]
4706
4718
  }
4707
4719
  ) }),
@@ -4761,7 +4773,7 @@ const Un = ({
4761
4773
  }) })
4762
4774
  ]
4763
4775
  },
4764
- p
4776
+ g
4765
4777
  )) });
4766
4778
  }
4767
4779
  if (x.type === "custom" && x.customComponent)
@@ -4815,7 +4827,7 @@ const Un = ({
4815
4827
  );
4816
4828
  },
4817
4829
  [r]
4818
- ), m = he(
4830
+ ), u = he(
4819
4831
  (x) => {
4820
4832
  if (x.conditional && !x.conditional(r))
4821
4833
  return null;
@@ -4879,7 +4891,7 @@ const Un = ({
4879
4891
  children: v.label
4880
4892
  }
4881
4893
  ),
4882
- u(v)
4894
+ m(v)
4883
4895
  ]
4884
4896
  },
4885
4897
  v.name
@@ -4889,7 +4901,7 @@ const Un = ({
4889
4901
  x.id
4890
4902
  );
4891
4903
  },
4892
- [r, u]
4904
+ [r, m]
4893
4905
  ), y = d(
4894
4906
  "space-y-6",
4895
4907
  {
@@ -4900,7 +4912,7 @@ const Un = ({
4900
4912
  },
4901
4913
  s
4902
4914
  );
4903
- return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(m) }) });
4915
+ return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(u) }) });
4904
4916
  }, Xe = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
4905
4917
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
4906
4918
  if (a)
@@ -4917,10 +4929,10 @@ const Un = ({
4917
4929
  ]
4918
4930
  }
4919
4931
  ),
4920
- /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((m, y) => /* @__PURE__ */ e(
4932
+ /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((u, y) => /* @__PURE__ */ e(
4921
4933
  Xe,
4922
4934
  {
4923
- item: m,
4935
+ item: u,
4924
4936
  isSelectedHandler: r,
4925
4937
  onClick: n,
4926
4938
  depth: s + 1
@@ -4928,15 +4940,15 @@ const Un = ({
4928
4940
  y
4929
4941
  )) })
4930
4942
  ] });
4931
- const o = t.action, u = o?.visibility !== "always";
4943
+ const o = t.action, m = o?.visibility !== "always";
4932
4944
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
4933
4945
  "div",
4934
4946
  {
4935
4947
  role: "button",
4936
4948
  tabIndex: 0,
4937
4949
  onClick: () => t.path && n?.(t.path),
4938
- onKeyDown: (m) => {
4939
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), t.path && n?.(t.path));
4950
+ onKeyDown: (u) => {
4951
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t.path && n?.(t.path));
4940
4952
  },
4941
4953
  className: d(
4942
4954
  // De kolom ligt op de backdrop, niet op een paneel: het actieve item
@@ -4965,7 +4977,7 @@ const Un = ({
4965
4977
  className: d(
4966
4978
  "shrink-0 text-xs tabular-nums",
4967
4979
  l ? "rounded-full bg-accent px-1.5 font-semibold text-accent-fg" : "text-text-subtle",
4968
- o && u && "group-hover/item:hidden group-focus-within/item:hidden"
4980
+ o && m && "group-hover/item:hidden group-focus-within/item:hidden"
4969
4981
  ),
4970
4982
  children: t.count
4971
4983
  }
@@ -4976,16 +4988,16 @@ const Un = ({
4976
4988
  type: "button",
4977
4989
  "aria-label": o.label,
4978
4990
  title: o.label,
4979
- onClick: (m) => {
4980
- m.stopPropagation(), o.onClick();
4991
+ onClick: (u) => {
4992
+ u.stopPropagation(), o.onClick();
4981
4993
  },
4982
- onKeyDown: (m) => m.stopPropagation(),
4994
+ onKeyDown: (u) => u.stopPropagation(),
4983
4995
  className: d(
4984
4996
  "flex size-5 shrink-0 items-center justify-center rounded-sm",
4985
4997
  "text-text-subtle transition-colors duration-fast ease-out",
4986
4998
  "hover:bg-page-hover hover:text-text",
4987
4999
  "focus-visible:outline-none focus-visible:focus-ring",
4988
- u && "opacity-0 group-hover/item:opacity-100 focus-visible:opacity-100"
5000
+ m && "opacity-0 group-hover/item:opacity-100 focus-visible:opacity-100"
4989
5001
  ),
4990
5002
  children: o.icon
4991
5003
  }
@@ -4993,7 +5005,7 @@ const Un = ({
4993
5005
  ]
4994
5006
  }
4995
5007
  ) });
4996
- }, Wn = ({
5008
+ }, Kn = ({
4997
5009
  items: t,
4998
5010
  isSelectedHandler: r,
4999
5011
  onClick: n,
@@ -5011,7 +5023,7 @@ const Un = ({
5011
5023
  l
5012
5024
  )
5013
5025
  ) })
5014
- ] }), Vr = {
5026
+ ] }), qr = {
5015
5027
  xs: "text-xs",
5016
5028
  sm: "text-sm",
5017
5029
  md: "text-base",
@@ -5020,13 +5032,13 @@ const Un = ({
5020
5032
  "2xl": "text-2xl",
5021
5033
  "3xl": "text-3xl",
5022
5034
  "4xl": "text-3xl"
5023
- }, qr = {
5035
+ }, Ur = {
5024
5036
  light: "font-normal",
5025
5037
  normal: "font-normal",
5026
5038
  medium: "font-medium",
5027
5039
  semibold: "font-semibold",
5028
5040
  bold: "font-bold"
5029
- }, Ur = {
5041
+ }, Wr = {
5030
5042
  primary: "text-text",
5031
5043
  secondary: "text-text-muted",
5032
5044
  accent: "text-accent",
@@ -5036,11 +5048,11 @@ const Un = ({
5036
5048
  info: "text-info-fg",
5037
5049
  neutral: "text-text",
5038
5050
  current: "text-current"
5039
- }, Wr = {
5051
+ }, Kr = {
5040
5052
  left: "text-left",
5041
5053
  center: "text-center",
5042
5054
  right: "text-right"
5043
- }, Kn = ({
5055
+ }, Gn = ({
5044
5056
  level: t = 1,
5045
5057
  size: r,
5046
5058
  weight: n = "semibold",
@@ -5048,21 +5060,21 @@ const Un = ({
5048
5060
  align: a = "left",
5049
5061
  truncate: l = !1,
5050
5062
  className: o,
5051
- children: u,
5052
- ...m
5063
+ children: m,
5064
+ ...u
5053
5065
  }) => {
5054
5066
  const y = `h${t}`, x = d(
5055
5067
  "font-sans text-pretty",
5056
- Vr[r || Kr(t)],
5057
- qr[n],
5058
- Ur[s],
5059
- Wr[a],
5068
+ qr[r || Gr(t)],
5069
+ Ur[n],
5070
+ Wr[s],
5071
+ Kr[a],
5060
5072
  l && "truncate",
5061
5073
  o
5062
5074
  );
5063
- return /* @__PURE__ */ e(y, { className: x, ...m, children: u });
5075
+ return /* @__PURE__ */ e(y, { className: x, ...u, children: m });
5064
5076
  };
5065
- function Kr(t) {
5077
+ function Gr(t) {
5066
5078
  return {
5067
5079
  1: "2xl",
5068
5080
  2: "xl",
@@ -5072,7 +5084,7 @@ function Kr(t) {
5072
5084
  6: "md"
5073
5085
  }[t] || "md";
5074
5086
  }
5075
- const Gn = ({
5087
+ const Jn = ({
5076
5088
  commands: t,
5077
5089
  isOpen: r,
5078
5090
  onClose: n,
@@ -5080,11 +5092,11 @@ const Gn = ({
5080
5092
  initialCommandPath: a,
5081
5093
  initialActiveIndex: l
5082
5094
  }) => {
5083
- const [o, u] = O(""), [m, y] = O(a || []), [x, h] = O(l || 0), b = se(null), v = se(null), p = (m.length ? t.find((f) => f.id === m[0])?.subCommands || [] : t).filter(
5095
+ const [o, m] = O(""), [u, y] = O(a || []), [x, h] = O(l || 0), b = se(null), v = se(null), g = (u.length ? t.find((f) => f.id === u[0])?.subCommands || [] : t).filter(
5084
5096
  (f) => f.label.toLowerCase().includes(o.toLowerCase())
5085
5097
  );
5086
5098
  return X(() => {
5087
- r || (u(""), y(a || []), h(l || 0));
5099
+ r || (m(""), y(a || []), h(l || 0));
5088
5100
  }, [r]), X(() => {
5089
5101
  const f = ($) => {
5090
5102
  if (r) {
@@ -5092,20 +5104,20 @@ const Gn = ({
5092
5104
  n();
5093
5105
  else if ($.key === "ArrowUp")
5094
5106
  h(
5095
- (C) => C > 0 ? C - 1 : p.length - 1
5107
+ (C) => C > 0 ? C - 1 : g.length - 1
5096
5108
  );
5097
5109
  else if ($.key === "ArrowDown")
5098
5110
  h(
5099
- (C) => C < p.length - 1 ? C + 1 : 0
5111
+ (C) => C < g.length - 1 ? C + 1 : 0
5100
5112
  );
5101
5113
  else if ($.key === "Enter") {
5102
- const C = p[x];
5103
- C && (C.subCommands ? (y([...m, C.id]), h(0)) : C.action && (C.action(), n()));
5114
+ const C = g[x];
5115
+ C && (C.subCommands ? (y([...u, C.id]), h(0)) : C.action && (C.action(), n()));
5104
5116
  }
5105
5117
  }
5106
5118
  };
5107
5119
  return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
5108
- }, [r, n, p, x, m]), X(() => {
5120
+ }, [r, n, g, x, u]), X(() => {
5109
5121
  const f = ($) => {
5110
5122
  b.current && !b.current.contains($.target) && n();
5111
5123
  };
@@ -5128,7 +5140,7 @@ const Gn = ({
5128
5140
  autoFocus: !0,
5129
5141
  placeholder: s?.searchPlaceholder || "Search commands...",
5130
5142
  value: o,
5131
- onChange: (f) => u(f.target.value),
5143
+ onChange: (f) => m(f.target.value),
5132
5144
  className: "w-full border-0 bg-transparent py-2 text-text focus:outline-none"
5133
5145
  }
5134
5146
  )
@@ -5139,14 +5151,14 @@ const Gn = ({
5139
5151
  ref: v,
5140
5152
  className: "mt-2 pt-2 text-sm border-t border-border max-h-dialog-list overflow-y-auto",
5141
5153
  children: [
5142
- p.length === 0 && /* @__PURE__ */ e("div", { className: "text-text-muted text-center text-sm", children: s?.noCommandsFound || "No commands found" }),
5143
- p.map((f, $) => /* @__PURE__ */ i(
5154
+ g.length === 0 && /* @__PURE__ */ e("div", { className: "text-text-muted text-center text-sm", children: s?.noCommandsFound || "No commands found" }),
5155
+ g.map((f, $) => /* @__PURE__ */ i(
5144
5156
  "div",
5145
5157
  {
5146
5158
  "data-index": $,
5147
5159
  className: `flex items-center p-2 cursor-pointer rounded-md ${$ === x ? "bg-accent-soft text-accent" : "text-text"}`,
5148
5160
  onClick: () => {
5149
- f.subCommands ? (y([...m, f.id]), h(0)) : f.action && (f.action(), n());
5161
+ f.subCommands ? (y([...u, f.id]), h(0)) : f.action && (f.action(), n());
5150
5162
  },
5151
5163
  onMouseEnter: () => h($),
5152
5164
  children: [
@@ -5177,7 +5189,7 @@ const Gn = ({
5177
5189
  ]
5178
5190
  }
5179
5191
  ) }) : null;
5180
- }, Gr = {
5192
+ }, Jr = {
5181
5193
  none: "p-0",
5182
5194
  xs: "p-1",
5183
5195
  sm: "p-2",
@@ -5185,7 +5197,7 @@ const Gn = ({
5185
5197
  lg: "p-6",
5186
5198
  xl: "p-8",
5187
5199
  "2xl": "p-12"
5188
- }, Jr = {
5200
+ }, Yr = {
5189
5201
  none: "m-0",
5190
5202
  xs: "m-1",
5191
5203
  sm: "m-2",
@@ -5193,7 +5205,7 @@ const Gn = ({
5193
5205
  lg: "m-6",
5194
5206
  xl: "m-8",
5195
5207
  "2xl": "m-12"
5196
- }, Yr = {
5208
+ }, Xr = {
5197
5209
  none: "",
5198
5210
  primary: "bg-accent text-accent-fg",
5199
5211
  secondary: "bg-surface-hover",
@@ -5209,26 +5221,26 @@ const Gn = ({
5209
5221
  backdrop: "bg-page",
5210
5222
  editor: "bg-surface",
5211
5223
  input: "bg-surface-input"
5212
- }, Xr = {
5224
+ }, Zr = {
5213
5225
  none: "rounded-none",
5214
5226
  sm: "rounded-sm",
5215
5227
  md: "rounded-md",
5216
5228
  lg: "rounded-lg",
5217
5229
  xl: "rounded-xl",
5218
5230
  full: "rounded-full"
5219
- }, Zr = {
5231
+ }, Qr = {
5220
5232
  none: "shadow-none",
5221
5233
  sm: "shadow-none",
5222
5234
  md: "shadow-overlay",
5223
5235
  lg: "shadow-overlay",
5224
5236
  xl: "shadow-modal",
5225
5237
  "2xl": "shadow-modal"
5226
- }, Qr = {
5238
+ }, en = {
5227
5239
  none: "border-0",
5228
5240
  sm: "border",
5229
5241
  md: "border-2",
5230
5242
  lg: "border-4"
5231
- }, en = {
5243
+ }, tn = {
5232
5244
  primary: "border-accent-border",
5233
5245
  secondary: "border-border",
5234
5246
  accent: "border-accent-border",
@@ -5247,30 +5259,30 @@ const Gn = ({
5247
5259
  shadow: a,
5248
5260
  border: l,
5249
5261
  borderColor: o,
5250
- className: u,
5251
- children: m,
5262
+ className: m,
5263
+ children: u,
5252
5264
  ...y
5253
5265
  }, x) => /* @__PURE__ */ e(
5254
5266
  "div",
5255
5267
  {
5256
5268
  ref: x,
5257
5269
  className: d(
5258
- t && Gr[t],
5259
- r && Jr[r],
5260
- n && Yr[n],
5261
- s && Xr[s],
5262
- a && Zr[a],
5263
- l && Qr[l],
5264
- o && en[o],
5265
- u
5270
+ t && Jr[t],
5271
+ r && Yr[r],
5272
+ n && Xr[n],
5273
+ s && Zr[s],
5274
+ a && Qr[a],
5275
+ l && en[l],
5276
+ o && tn[o],
5277
+ m
5266
5278
  ),
5267
5279
  ...y,
5268
- children: m
5280
+ children: u
5269
5281
  }
5270
5282
  )
5271
5283
  );
5272
5284
  Ze.displayName = "Box";
5273
- const Jn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5285
+ const Yn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5274
5286
  Ze,
5275
5287
  {
5276
5288
  background: "module",
@@ -5285,7 +5297,7 @@ const Jn = ({ children: t, title: r, ...n }) => /* @__PURE__ */ i(
5285
5297
  ]
5286
5298
  }
5287
5299
  );
5288
- function Yn({
5300
+ function Xn({
5289
5301
  identifier: t,
5290
5302
  resourceLoader: r,
5291
5303
  framework: n = "react",
@@ -5294,15 +5306,15 @@ function Yn({
5294
5306
  componentProps: l,
5295
5307
  className: o
5296
5308
  }) {
5297
- const u = se(null), [m, y] = O(!0), [x, h] = O(!1), [b, v] = O(null), k = se(null);
5309
+ const m = se(null), [u, y] = O(!0), [x, h] = O(!1), [b, v] = O(null), k = se(null);
5298
5310
  se(null);
5299
- const p = se(r);
5300
- return p.current = r, X(() => {
5311
+ const g = se(r);
5312
+ return g.current = r, X(() => {
5301
5313
  let f = !0;
5302
5314
  return (async () => {
5303
5315
  y(!0), h(!1), v(null);
5304
5316
  try {
5305
- const C = await p.current();
5317
+ const C = await g.current();
5306
5318
  if (!f) return;
5307
5319
  const q = C.component || C.default || C;
5308
5320
  v(n === "react" ? () => q : () => C);
@@ -5315,8 +5327,8 @@ function Yn({
5315
5327
  f = !1;
5316
5328
  };
5317
5329
  }, [t, n]), X(() => {
5318
- if (m || !b || n === "react") return;
5319
- const f = u.current;
5330
+ if (u || !b || n === "react") return;
5331
+ const f = m.current;
5320
5332
  if (f) {
5321
5333
  if (n === "svelte") {
5322
5334
  const $ = b.default || b, C = new $({ target: f, props: l || {} });
@@ -5329,15 +5341,15 @@ function Yn({
5329
5341
  };
5330
5342
  }
5331
5343
  }
5332
- }, [b, n, m]), X(() => {
5344
+ }, [b, n, u]), X(() => {
5333
5345
  n === "svelte" && k.current && k.current.$set?.(l);
5334
- }, [l, n]), /* @__PURE__ */ i("div", { ref: u, className: o, style: { display: "contents" }, children: [
5335
- m && s,
5336
- !m && x && a,
5346
+ }, [l, n]), /* @__PURE__ */ i("div", { ref: m, className: o, style: { display: "contents" }, children: [
5347
+ u && s,
5348
+ !u && x && a,
5337
5349
  n === "react" && !x && b && /* @__PURE__ */ e(b, { ...l })
5338
5350
  ] });
5339
5351
  }
5340
- class Xn extends wt {
5352
+ class Zn extends wt {
5341
5353
  constructor() {
5342
5354
  super(...arguments), this.state = {
5343
5355
  hasError: !1,
@@ -5366,75 +5378,75 @@ class Xn extends wt {
5366
5378
  }
5367
5379
  }
5368
5380
  export {
5369
- Dn as AssistantCard,
5370
- Ir as Avatar,
5371
- Tn as AvatarStack,
5372
- kn as Badge,
5381
+ Tn as AssistantCard,
5382
+ Pr as Avatar,
5383
+ _n as AvatarStack,
5384
+ Cn as Badge,
5373
5385
  Ze as Box,
5374
5386
  ae as Button,
5375
- xn as ButtonGroup,
5376
- Jn as Card,
5377
- _n as ChannelBadge,
5387
+ bn as ButtonGroup,
5388
+ Yn as Card,
5389
+ An as ChannelBadge,
5378
5390
  ye as Checkbox,
5379
- Gn as CommandPalette,
5380
- wn as ConfirmDialog,
5391
+ Jn as CommandPalette,
5392
+ kn as ConfirmDialog,
5381
5393
  rr as ContentLoading,
5382
5394
  Ae as DatePicker,
5383
5395
  nr as Dropdown,
5384
- Cn as EmptyState,
5385
- Xn as ErrorBoundary,
5386
- Yn as FederatedResource,
5396
+ Sn as EmptyState,
5397
+ Zn as ErrorBoundary,
5398
+ Xn as FederatedResource,
5387
5399
  Lt as FilterChip,
5388
5400
  Yt as FolderSelect,
5389
- Nn as Form,
5401
+ wn as Form,
5390
5402
  wr as FormSection,
5391
- Kn as Heading,
5403
+ Gn as Heading,
5392
5404
  Q as Icon,
5393
- An as Image,
5394
- Sn as Kbd,
5395
- jn as KpiCard,
5396
- bn as Link,
5397
- In as List,
5398
- Ln as ListBulkAction,
5399
- mn as MeetingGrid,
5400
- Pn as MessageBubble,
5405
+ Ln as Image,
5406
+ En as Kbd,
5407
+ On as KpiCard,
5408
+ gn as Link,
5409
+ Pn as List,
5410
+ In as ListBulkAction,
5411
+ fn as MeetingGrid,
5412
+ jn as MessageBubble,
5401
5413
  Ye as Modal,
5402
- On as PageHeader,
5414
+ Fn as PageHeader,
5403
5415
  pn as PageToolbar,
5404
5416
  Je as PageToolbarActions,
5405
- fn as ParticipantTile,
5417
+ hn as ParticipantTile,
5406
5418
  Ve as Popover,
5407
- En as ProgressBar,
5408
- Fn as RichText,
5419
+ zn as ProgressBar,
5420
+ Bn as RichText,
5409
5421
  Ge as SearchField,
5410
5422
  er as SearchableTextField,
5411
- Bn as SectionCaption,
5412
- Rn as SectionDivider,
5423
+ Rn as SectionCaption,
5424
+ Hn as SectionDivider,
5413
5425
  Ft as SegmentedToggle,
5414
5426
  Ce as Select,
5415
- Hn as SettingsRow,
5416
- Vn as SettingsSection,
5417
- Wn as SidebarMenu,
5418
- qn as SourceChip,
5419
- zn as Spinner,
5427
+ Vn as SettingsRow,
5428
+ qn as SettingsSection,
5429
+ Kn as SidebarMenu,
5430
+ Un as SourceChip,
5431
+ Mn as Spinner,
5420
5432
  qe as SplitButton,
5421
- Mn as StatusDot,
5422
- $n as StepIndicator,
5423
- gr as StorageInput,
5433
+ $n as StatusDot,
5434
+ Dn as StepIndicator,
5435
+ pr as StorageInput,
5424
5436
  tr as Switch,
5425
- yn as TabBar,
5437
+ Nn as TabBar,
5426
5438
  Fe as Table,
5427
5439
  dr as Tabs,
5428
5440
  me as Text,
5429
5441
  Le as TextArea,
5430
5442
  Ne as TextField,
5431
- hn as VideoSurface,
5432
- Un as View,
5433
- un as catTone,
5443
+ xn as VideoSurface,
5444
+ Wn as View,
5445
+ mn as catTone,
5434
5446
  d as cn,
5435
- dn as createSizes,
5436
- cn as createVariants,
5437
- gn as dateFilterHandler,
5438
- vn as selectFilterHandler
5447
+ un as createSizes,
5448
+ dn as createVariants,
5449
+ vn as dateFilterHandler,
5450
+ yn as selectFilterHandler
5439
5451
  };
5440
5452
  //# sourceMappingURL=index.js.map