@opencxh/ui-kit 3.81.0 → 3.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -15,10 +15,10 @@ function Yt({ tiles: t, pinned: a, className: r }) {
15
15
  if (a)
16
16
  return /* @__PURE__ */ d("div", { className: x("flex flex-col md:flex-row gap-2 h-full", r), children: [
17
17
  /* @__PURE__ */ e("div", { className: "flex-1 min-h-[240px]", children: a }),
18
- t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((s, c) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: s }, c)) })
18
+ t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((s, i) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: s }, i)) })
19
19
  ] });
20
20
  const n = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
21
- return /* @__PURE__ */ e("div", { className: x("grid gap-2 h-full", n, r), children: t.map((s, c) => /* @__PURE__ */ e("div", { children: s }, c)) });
21
+ return /* @__PURE__ */ e("div", { className: x("grid gap-2 h-full", n, r), children: t.map((s, i) => /* @__PURE__ */ e("div", { children: s }, i)) });
22
22
  }
23
23
  function Zt({
24
24
  name: t,
@@ -26,8 +26,8 @@ function Zt({
26
26
  muted: r,
27
27
  speaking: n,
28
28
  hasVideo: s,
29
- videoSlot: c,
30
- className: f
29
+ videoSlot: i,
30
+ className: m
31
31
  }) {
32
32
  return /* @__PURE__ */ d(
33
33
  "div",
@@ -35,10 +35,10 @@ function Zt({
35
35
  className: x(
36
36
  "relative rounded-lg overflow-hidden bg-gray-800 aspect-video flex items-center justify-center",
37
37
  n && "ring-2 ring-emerald-400",
38
- f
38
+ m
39
39
  ),
40
40
  children: [
41
- s && c ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: c }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: a ? /* @__PURE__ */ e("img", { src: a, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-gray-700 flex items-center justify-center", children: s ? /* @__PURE__ */ e(je, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Be, { className: "w-8 h-8" }) }) }),
41
+ s && i ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: i }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: a ? /* @__PURE__ */ e("img", { src: a, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-gray-700 flex items-center justify-center", children: s ? /* @__PURE__ */ e(je, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Be, { className: "w-8 h-8" }) }) }),
42
42
  /* @__PURE__ */ d("div", { className: "absolute bottom-2 left-2 flex items-center gap-1.5 px-2 py-1 rounded bg-black/50 text-white text-xs", children: [
43
43
  r ? /* @__PURE__ */ e(Pe, { className: "w-3 h-3" }) : /* @__PURE__ */ e(_e, { className: "w-3 h-3" }),
44
44
  /* @__PURE__ */ e("span", { className: "truncate max-w-[140px]", children: t })
@@ -51,9 +51,9 @@ function Xt({ attach: t, active: a = !0, mirrored: r = !1, className: n }) {
51
51
  const s = Z(null);
52
52
  return K(() => {
53
53
  if (!a || !s.current) return;
54
- const c = t(s.current);
54
+ const i = t(s.current);
55
55
  return () => {
56
- typeof c == "function" && c(), s.current && (s.current.innerHTML = "");
56
+ typeof i == "function" && i(), s.current && (s.current.innerHTML = "");
57
57
  };
58
58
  }, [t, a]), /* @__PURE__ */ e(
59
59
  "div",
@@ -94,14 +94,14 @@ const Ke = {
94
94
  fullWidth: r = !1,
95
95
  loading: n = !1,
96
96
  leftIcon: s,
97
- rightIcon: c,
98
- iconOnly: f = !1,
99
- className: b,
97
+ rightIcon: i,
98
+ iconOnly: m = !1,
99
+ className: g,
100
100
  children: p,
101
- disabled: g,
102
- ...m
101
+ disabled: b,
102
+ ...f
103
103
  }, l) => {
104
- const u = g || n;
104
+ const u = b || n;
105
105
  return /* @__PURE__ */ d(
106
106
  "button",
107
107
  {
@@ -114,22 +114,22 @@ const Ke = {
114
114
  // Variant styles
115
115
  Ke[t],
116
116
  // Size styles
117
- f ? Ye[a] : Je[a],
117
+ m ? Ye[a] : Je[a],
118
118
  // Full width
119
119
  r && "w-full",
120
120
  // Loading state
121
121
  n && "cursor-wait",
122
- b
122
+ g
123
123
  ),
124
124
  disabled: u,
125
- ...m,
125
+ ...f,
126
126
  children: [
127
127
  n && /* @__PURE__ */ d(
128
128
  "svg",
129
129
  {
130
130
  className: x(
131
131
  "animate-spin",
132
- f ? "h-4 w-4" : "h-4 w-4 mr-2"
132
+ m ? "h-4 w-4" : "h-4 w-4 mr-2"
133
133
  ),
134
134
  fill: "none",
135
135
  viewBox: "0 0 24 24",
@@ -156,10 +156,10 @@ const Ke = {
156
156
  ]
157
157
  }
158
158
  ),
159
- !n && s && /* @__PURE__ */ e("span", { className: x("flex-shrink-0", !f && "mr-2"), children: s }),
160
- !f && p,
161
- !n && c && /* @__PURE__ */ e("span", { className: x("flex-shrink-0", !f && "ml-2"), children: c }),
162
- f && !n && !s && !c && p
159
+ !n && s && /* @__PURE__ */ e("span", { className: x("flex-shrink-0", !m && "mr-2"), children: s }),
160
+ !m && p,
161
+ !n && i && /* @__PURE__ */ e("span", { className: x("flex-shrink-0", !m && "ml-2"), children: i }),
162
+ m && !n && !s && !i && p
163
163
  ]
164
164
  }
165
165
  );
@@ -173,7 +173,7 @@ const Qt = ({
173
173
  attached: n = !0,
174
174
  className: s
175
175
  }) => {
176
- const c = x(
176
+ const i = x(
177
177
  "inline-flex",
178
178
  {
179
179
  // Orientation
@@ -195,21 +195,21 @@ const Qt = ({
195
195
  },
196
196
  s
197
197
  );
198
- return /* @__PURE__ */ e("div", { className: c, role: "group", children: t });
198
+ return /* @__PURE__ */ e("div", { className: i, role: "group", children: t });
199
199
  }, er = ({
200
200
  variant: t = "default",
201
201
  size: a = "md",
202
202
  color: r = "primary",
203
203
  disabled: n = !1,
204
204
  external: s = !1,
205
- className: c,
206
- children: f,
207
- href: b,
205
+ className: i,
206
+ children: m,
207
+ href: g,
208
208
  target: p,
209
- rel: g,
210
- ...m
209
+ rel: b,
210
+ ...f
211
211
  }) => {
212
- const l = s || b && (b.startsWith("http") || b.startsWith("mailto:")), u = x(
212
+ const l = s || g && (g.startsWith("http") || g.startsWith("mailto:")), u = x(
213
213
  // Base styles
214
214
  "inline-flex items-center gap-1 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",
215
215
  // Size variants
@@ -262,15 +262,15 @@ const Qt = ({
262
262
  {
263
263
  "opacity-50 cursor-not-allowed pointer-events-none": n
264
264
  },
265
- c
265
+ i
266
266
  ), h = {
267
- ...m,
268
- href: n ? void 0 : b,
267
+ ...f,
268
+ href: n ? void 0 : g,
269
269
  target: l ? "_blank" : p,
270
- rel: l ? "noopener noreferrer" : g
270
+ rel: l ? "noopener noreferrer" : b
271
271
  };
272
272
  return /* @__PURE__ */ d("a", { className: u, ...h, children: [
273
- f,
273
+ m,
274
274
  l && /* @__PURE__ */ e(
275
275
  "svg",
276
276
  {
@@ -305,24 +305,24 @@ function ze({
305
305
  variant: r = "primary",
306
306
  size: n = "md",
307
307
  icon: s,
308
- options: c,
309
- disabled: f = !1
308
+ options: i,
309
+ disabled: m = !1
310
310
  }) {
311
- const [b, p] = O(!1), g = Z(null), m = ae(() => {
311
+ const [g, p] = O(!1), b = Z(null), f = ae(() => {
312
312
  p((l) => !l);
313
313
  }, []);
314
314
  return K(() => {
315
315
  const l = (u) => {
316
- g.current && !g.current.contains(u.target) && p(!1);
316
+ b.current && !b.current.contains(u.target) && p(!1);
317
317
  };
318
318
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
319
- }, []), /* @__PURE__ */ d("div", { ref: g, className: "relative inline-flex items-center gap-px", children: [
319
+ }, []), /* @__PURE__ */ d("div", { ref: b, className: "relative inline-flex items-center gap-px", children: [
320
320
  /* @__PURE__ */ d(
321
321
  "button",
322
322
  {
323
323
  type: "button",
324
324
  onClick: a,
325
- disabled: f,
325
+ disabled: m,
326
326
  className: x(
327
327
  "inline-flex items-center justify-center font-medium transition-colors duration-200",
328
328
  "focus:outline-none focus:ring-1 focus:ring-offset-1",
@@ -341,8 +341,8 @@ function ze({
341
341
  "button",
342
342
  {
343
343
  type: "button",
344
- onClick: m,
345
- disabled: f,
344
+ onClick: f,
345
+ disabled: m,
346
346
  className: x(
347
347
  "inline-flex items-center justify-center font-medium transition-colors duration-200",
348
348
  "focus:outline-none focus:ring-1 focus:ring-offset-1",
@@ -354,7 +354,7 @@ function ze({
354
354
  children: /* @__PURE__ */ e(Oe, { className: "h-4 w-4" })
355
355
  }
356
356
  ),
357
- b && c.length > 0 && /* @__PURE__ */ e("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-lg border border-gray-200 bg-white shadow-lg py-1", children: c.map((l) => /* @__PURE__ */ e(
357
+ g && i.length > 0 && /* @__PURE__ */ e("div", { className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-lg border border-gray-200 bg-white shadow-lg py-1", children: i.map((l) => /* @__PURE__ */ e(
358
358
  "button",
359
359
  {
360
360
  type: "button",
@@ -388,21 +388,21 @@ const Xe = {
388
388
  error: r,
389
389
  size: n = "md",
390
390
  indeterminate: s = !1,
391
- containerClassName: c,
392
- labelClassName: f,
393
- className: b,
391
+ containerClassName: i,
392
+ labelClassName: m,
393
+ className: g,
394
394
  id: p,
395
- ...g
396
- }, m) => {
395
+ ...b
396
+ }, f) => {
397
397
  const l = p || `checkbox-${Math.random().toString(36).substr(2, 9)}`, u = !!r;
398
398
  return se.useEffect(() => {
399
- m && typeof m == "object" && m.current && (m.current.indeterminate = s);
400
- }, [s, m]), /* @__PURE__ */ d("div", { className: x("flex flex-col", c), children: [
399
+ f && typeof f == "object" && f.current && (f.current.indeterminate = s);
400
+ }, [s, f]), /* @__PURE__ */ d("div", { className: x("flex flex-col", i), children: [
401
401
  /* @__PURE__ */ d("div", { className: "flex items-start", children: [
402
402
  /* @__PURE__ */ e("div", { className: "flex items-center h-5", children: /* @__PURE__ */ e(
403
403
  "input",
404
404
  {
405
- ref: m,
405
+ ref: f,
406
406
  id: l,
407
407
  type: "checkbox",
408
408
  className: x(
@@ -417,9 +417,9 @@ const Xe = {
417
417
  // check glyph is white, so the fill must stay dark in both modes
418
418
  // (accent-fill would invert to near-white in dark → invisible check).
419
419
  u ? "border-error [&:not(:checked)]:bg-[var(--base-input)] text-error focus:border-error focus:ring-error" : "border-neutral [&:not(:checked)]:bg-[var(--base-input)] text-[#1a1a1a] focus:border-primary focus:ring-primary",
420
- b
420
+ g
421
421
  ),
422
- ...g
422
+ ...b
423
423
  }
424
424
  ) }),
425
425
  t && /* @__PURE__ */ d("div", { className: "ml-3 flex-1", children: [
@@ -431,7 +431,7 @@ const Xe = {
431
431
  "font-medium cursor-pointer",
432
432
  u ? "text-error" : "text-default",
433
433
  Qe[n],
434
- f
434
+ m
435
435
  ),
436
436
  children: t
437
437
  }
@@ -450,12 +450,12 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
450
450
  placeholder: r = "Select date",
451
451
  disabled: n = !1,
452
452
  required: s = !1,
453
- size: c = "md",
454
- className: f,
455
- minDate: b,
453
+ size: i = "md",
454
+ className: m,
455
+ minDate: g,
456
456
  maxDate: p,
457
- format: g = "MM/dd/yyyy"
458
- }, m) => {
457
+ format: b = "MM/dd/yyyy"
458
+ }, f) => {
459
459
  const [l, u] = O(!1), [h, k] = O(() => t || /* @__PURE__ */ new Date()), C = Z(null);
460
460
  K(() => {
461
461
  const T = (V) => {
@@ -467,25 +467,25 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
467
467
  }, [l]);
468
468
  const v = (T) => {
469
469
  if (!T) return "";
470
- const V = T.getDate().toString().padStart(2, "0"), W = (T.getMonth() + 1).toString().padStart(2, "0"), i = T.getFullYear();
471
- switch (g) {
470
+ const V = T.getDate().toString().padStart(2, "0"), W = (T.getMonth() + 1).toString().padStart(2, "0"), c = T.getFullYear();
471
+ switch (b) {
472
472
  case "dd/MM/yyyy":
473
- return `${V}/${W}/${i}`;
473
+ return `${V}/${W}/${c}`;
474
474
  case "yyyy-MM-dd":
475
- return `${i}-${W}-${V}`;
475
+ return `${c}-${W}-${V}`;
476
476
  case "MM/dd/yyyy":
477
477
  default:
478
- return `${W}/${V}/${i}`;
478
+ return `${W}/${V}/${c}`;
479
479
  }
480
480
  }, j = () => {
481
- const T = h.getFullYear(), V = h.getMonth(), W = new Date(T, V, 1), i = new Date(W);
482
- i.setDate(i.getDate() - W.getDay());
483
- const y = [], L = new Date(i);
481
+ const T = h.getFullYear(), V = h.getMonth(), W = new Date(T, V, 1), c = new Date(W);
482
+ c.setDate(c.getDate() - W.getDay());
483
+ const y = [], L = new Date(c);
484
484
  for (let S = 0; S < 42; S++)
485
485
  y.push(new Date(L)), L.setDate(L.getDate() + 1);
486
486
  return y;
487
487
  }, N = (T) => {
488
- T.getMonth() === h.getMonth() && (b && T < b || p && T > p || (a?.(T), u(!1)));
488
+ T.getMonth() === h.getMonth() && (g && T < g || p && T > p || (a?.(T), u(!1)));
489
489
  }, q = () => {
490
490
  k(new Date(h.getFullYear(), h.getMonth() - 1, 1));
491
491
  }, P = () => {
@@ -499,12 +499,12 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
499
499
  "focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
500
500
  "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-module-subtle",
501
501
  {
502
- "px-3 py-2 text-sm": c === "sm",
503
- "px-3 py-2 text-base": c === "md",
504
- "px-4 py-3 text-lg": c === "lg",
505
- "px-4 py-3 text-base": c === "full"
502
+ "px-3 py-2 text-sm": i === "sm",
503
+ "px-3 py-2 text-base": i === "md",
504
+ "px-4 py-3 text-lg": i === "lg",
505
+ "px-4 py-3 text-base": i === "full"
506
506
  },
507
- f
507
+ m
508
508
  ), A = j(), H = [
509
509
  "January",
510
510
  "February",
@@ -524,7 +524,7 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
524
524
  /* @__PURE__ */ e(
525
525
  "input",
526
526
  {
527
- ref: m,
527
+ ref: f,
528
528
  type: "text",
529
529
  value: v(t ?? null),
530
530
  placeholder: r,
@@ -572,7 +572,7 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
572
572
  ] }),
573
573
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((T) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted text-center py-1", children: T }, T)) }),
574
574
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: A.map((T, V) => {
575
- const W = T.getMonth() === h.getMonth(), i = t && T.toDateString() === t.toDateString(), y = T.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = !W || b && T < b || p && T > p;
575
+ const W = T.getMonth() === h.getMonth(), c = t && T.toDateString() === t.toDateString(), y = T.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = !W || g && T < g || p && T > p;
576
576
  return /* @__PURE__ */ e(
577
577
  "button",
578
578
  {
@@ -581,9 +581,9 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
581
581
  className: x(
582
582
  "w-8 h-8 text-sm rounded transition-colors duration-200",
583
583
  {
584
- "text-default hover:bg-neutral-container": W && !i && !L,
585
- "bg-primary text-white": i,
586
- "bg-neutral-container text-default": y && !i,
584
+ "text-default hover:bg-neutral-container": W && !c && !L,
585
+ "bg-primary text-white": c,
586
+ "bg-neutral-container text-default": y && !c,
587
587
  "text-muted cursor-not-allowed": L
588
588
  }
589
589
  ),
@@ -665,12 +665,12 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
665
665
  error: r,
666
666
  size: n = "md",
667
667
  fullWidth: s = !1,
668
- startIcon: c = /* @__PURE__ */ e(nt, {}),
669
- loading: f = !1,
670
- containerClassName: b,
668
+ startIcon: i = /* @__PURE__ */ e(nt, {}),
669
+ loading: m = !1,
670
+ containerClassName: g,
671
671
  labelClassName: p,
672
- className: g,
673
- id: m,
672
+ className: b,
673
+ id: f,
674
674
  options: l,
675
675
  onRemoteSearch: u,
676
676
  onSelect: h,
@@ -680,7 +680,7 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
680
680
  onChange: j,
681
681
  ...N
682
682
  }, q) => {
683
- const P = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, U = !!r, F = Z(null), A = Z(null), [H, T] = O(v || ""), [V, W] = O(!1), [i, y] = O(!1), [L, S] = O(!1);
683
+ const P = f || `searchfield-${Math.random().toString(36).substr(2, 9)}`, U = !!r, F = Z(null), A = Z(null), [H, T] = O(v || ""), [V, W] = O(!1), [c, y] = O(!1), [L, S] = O(!1);
684
684
  K(() => {
685
685
  v !== void 0 && T(v);
686
686
  }, [v]);
@@ -722,14 +722,14 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
722
722
  T(z.label), W(!1), S(!1), h && h(z.value);
723
723
  }, re = () => {
724
724
  (l.length > 0 || u) && (W(!0), S(!1));
725
- }, X = f || i, $ = V && (M.length > 0 || X), I = de(() => q || A, [q]);
725
+ }, X = m || c, $ = V && (M.length > 0 || X), I = de(() => q || A, [q]);
726
726
  return /* @__PURE__ */ d(
727
727
  "div",
728
728
  {
729
729
  className: ie(
730
730
  "flex flex-col",
731
731
  s ? "w-full" : "",
732
- b || "",
732
+ g || "",
733
733
  "relative"
734
734
  ),
735
735
  ref: F,
@@ -747,7 +747,7 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
747
747
  }
748
748
  ),
749
749
  /* @__PURE__ */ d("div", { className: "relative", children: [
750
- c && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: ie("text-muted", xe[n]), children: c }) }),
750
+ i && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: ie("text-muted", xe[n]), children: i }) }),
751
751
  /* @__PURE__ */ e(
752
752
  "input",
753
753
  {
@@ -764,17 +764,17 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
764
764
  // Size styles
765
765
  lt[n],
766
766
  // Icon padding
767
- c ? "pl-10" : "",
767
+ i ? "pl-10" : "",
768
768
  "pr-10",
769
769
  // Altijd padding rechts voor de dropdown/loading icon
770
770
  // State styles
771
771
  U ? "border-red-500 text-error focus:border-red-500 focus:ring-red-500" : "border-neutral text-default",
772
- g || ""
772
+ b || ""
773
773
  ),
774
774
  ...N
775
775
  }
776
776
  ),
777
- /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: X || f ? (
777
+ /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: X || m ? (
778
778
  // Loading Spinner
779
779
  /* @__PURE__ */ d(
780
780
  "svg",
@@ -838,7 +838,7 @@ const et = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
838
838
  children: z.label
839
839
  },
840
840
  z.value
841
- )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-muted", children: X || f ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
841
+ )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-muted", children: X || m ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
842
842
  }
843
843
  ),
844
844
  (r || a) && /* @__PURE__ */ e(
@@ -873,12 +873,12 @@ const ot = {
873
873
  error: r,
874
874
  size: n = "md",
875
875
  fullWidth: s = !1,
876
- options: c,
877
- placeholder: f,
878
- containerClassName: b,
876
+ options: i,
877
+ placeholder: m,
878
+ containerClassName: g,
879
879
  labelClassName: p,
880
- className: g,
881
- id: m,
880
+ className: b,
881
+ id: f,
882
882
  searchable: l,
883
883
  multiple: u,
884
884
  value: h,
@@ -887,14 +887,14 @@ const ot = {
887
887
  onCreateOption: v,
888
888
  ...j
889
889
  }, N) => {
890
- const q = m || `select-${Math.random().toString(36).substr(2, 9)}`, P = !!r, [U, F] = se.useState(!1), [A, H] = se.useState(""), T = se.useRef(null), [V, W] = se.useState(c);
890
+ const q = f || `select-${Math.random().toString(36).substr(2, 9)}`, P = !!r, [U, F] = se.useState(!1), [A, H] = se.useState(""), T = se.useRef(null), [V, W] = se.useState(i);
891
891
  se.useImperativeHandle(N, () => T.current), se.useEffect(() => {
892
892
  const $ = (I) => {
893
893
  T.current && !T.current.contains(I.target) && F(!1);
894
894
  };
895
895
  return document.addEventListener("mousedown", $), () => document.removeEventListener("mousedown", $);
896
896
  }, []);
897
- const i = se.useCallback(
897
+ const c = se.useCallback(
898
898
  ($, I) => $.some(
899
899
  (z) => me(z.value) === me(I) || me(z.label) === me(I)
900
900
  ),
@@ -903,20 +903,20 @@ const ot = {
903
903
  ($, I) => {
904
904
  const z = [...$], D = (ee) => {
905
905
  const ne = (ee ?? "").trim();
906
- ne && (i(z, ne) || z.push({ value: ne, label: ne }));
906
+ ne && (c(z, ne) || z.push({ value: ne, label: ne }));
907
907
  };
908
908
  return Array.isArray(I) ? I.forEach(D) : D(I), z;
909
909
  },
910
- [i]
910
+ [c]
911
911
  );
912
912
  se.useEffect(() => {
913
913
  W(($) => {
914
- const I = [...c];
914
+ const I = [...i];
915
915
  return $.forEach((z) => {
916
- !i(I, z.value) && !i(I, z.label) && I.push(z);
916
+ !c(I, z.value) && !c(I, z.label) && I.push(z);
917
917
  }), y(I, h);
918
918
  });
919
- }, [c, h, y, i]);
919
+ }, [i, h, y, c]);
920
920
  const L = ($) => {
921
921
  if (u) {
922
922
  const I = Array.isArray(h) ? h : [], z = I.includes($) ? I.filter((D) => D !== $) : [...I, $];
@@ -927,19 +927,19 @@ const ot = {
927
927
  ($) => Array.isArray(h) && h.includes($.value)
928
928
  ) : [], E = l && A ? V.filter(
929
929
  ($) => $.label.toLowerCase().includes(A.toLowerCase())
930
- ) : V, Q = !!C && !!l && !!A.trim() && !i(V, A), re = ($) => {
930
+ ) : V, Q = !!C && !!l && !!A.trim() && !c(V, A), re = ($) => {
931
931
  const I = $.trim();
932
932
  if (!I) return;
933
933
  const z = v?.(I) ?? {
934
934
  value: I,
935
935
  label: I
936
936
  };
937
- if (i(V, z.value) || i(V, z.label)) {
937
+ if (c(V, z.value) || c(V, z.label)) {
938
938
  L(z.value), H(""), u || F(!1);
939
939
  return;
940
940
  }
941
941
  W((D) => [...D, z]), L(z.value), H(""), u || F(!1);
942
- }, X = () => u ? M.length > 0 ? M.map(($) => $.label).join(", ") : f || "Select options" : S?.label || f || "Select an option";
942
+ }, X = () => u ? M.length > 0 ? M.map(($) => $.label).join(", ") : m || "Select options" : S?.label || m || "Select an option";
943
943
  return /* @__PURE__ */ d(
944
944
  "div",
945
945
  {
@@ -947,7 +947,7 @@ const ot = {
947
947
  className: x(
948
948
  "relative flex flex-col",
949
949
  s && "w-full",
950
- b
950
+ g
951
951
  ),
952
952
  ...j,
953
953
  children: [
@@ -978,7 +978,7 @@ const ot = {
978
978
  "bg-module",
979
979
  ot[n],
980
980
  P ? "border-error text-error focus:border-error focus:ring-error" : "border-neutral text-default",
981
- g
981
+ b
982
982
  ),
983
983
  children: /* @__PURE__ */ e("span", { className: "block truncate", children: X() })
984
984
  }
@@ -1016,14 +1016,14 @@ const ot = {
1016
1016
  }
1017
1017
  ),
1018
1018
  /* @__PURE__ */ d("ul", { className: "max-h-60 overflow-auto py-1", children: [
1019
- f && !u && /* @__PURE__ */ e(
1019
+ m && !u && /* @__PURE__ */ e(
1020
1020
  "li",
1021
1021
  {
1022
1022
  className: "px-4 py-2 text-sm text-muted cursor-pointer hover:bg-neutral-container",
1023
1023
  onClick: () => {
1024
1024
  k?.(""), F(!1);
1025
1025
  },
1026
- children: f
1026
+ children: m
1027
1027
  }
1028
1028
  ),
1029
1029
  E.map(($) => {
@@ -1085,16 +1085,16 @@ const ct = {
1085
1085
  error: r,
1086
1086
  size: n = "md",
1087
1087
  fullWidth: s = !1,
1088
- loading: c = !1,
1089
- containerClassName: f,
1090
- labelClassName: b,
1088
+ loading: i = !1,
1089
+ containerClassName: m,
1090
+ labelClassName: g,
1091
1091
  className: p,
1092
- id: g,
1093
- rows: m = 4,
1092
+ id: b,
1093
+ rows: f = 4,
1094
1094
  ...l
1095
1095
  }, u) => {
1096
- const h = g || `textarea-${Math.random().toString(36).substr(2, 9)}`, k = !!r;
1097
- return /* @__PURE__ */ d("div", { className: x("flex flex-col", s && "w-full", f), children: [
1096
+ const h = b || `textarea-${Math.random().toString(36).substr(2, 9)}`, k = !!r;
1097
+ return /* @__PURE__ */ d("div", { className: x("flex flex-col", s && "w-full", m), children: [
1098
1098
  t && /* @__PURE__ */ e(
1099
1099
  "label",
1100
1100
  {
@@ -1102,7 +1102,7 @@ const ct = {
1102
1102
  className: x(
1103
1103
  "block text-sm font-medium mb-1",
1104
1104
  k ? "text-error" : "text-default",
1105
- b
1105
+ g
1106
1106
  ),
1107
1107
  children: t
1108
1108
  }
@@ -1113,7 +1113,7 @@ const ct = {
1113
1113
  {
1114
1114
  ref: u,
1115
1115
  id: h,
1116
- rows: m,
1116
+ rows: f,
1117
1117
  className: x(
1118
1118
  // Base styles
1119
1119
  "block w-full rounded-lg border transition-colors duration-200 resize-vertical bg-input",
@@ -1128,7 +1128,7 @@ const ct = {
1128
1128
  ...l
1129
1129
  }
1130
1130
  ),
1131
- c && /* @__PURE__ */ e("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ d(
1131
+ i && /* @__PURE__ */ e("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ d(
1132
1132
  "svg",
1133
1133
  {
1134
1134
  className: "animate-spin h-4 w-4 text-muted",
@@ -1189,12 +1189,12 @@ const it = {
1189
1189
  error: r,
1190
1190
  size: n = "md",
1191
1191
  fullWidth: s = !1,
1192
- startIcon: c,
1193
- endIcon: f,
1194
- loading: b = !1,
1192
+ startIcon: i,
1193
+ endIcon: m,
1194
+ loading: g = !1,
1195
1195
  containerClassName: p,
1196
- labelClassName: g,
1197
- className: m,
1196
+ labelClassName: b,
1197
+ className: f,
1198
1198
  id: l,
1199
1199
  ...u
1200
1200
  }, h) => {
@@ -1207,14 +1207,14 @@ const it = {
1207
1207
  className: x(
1208
1208
  "block text-sm font-medium mb-1",
1209
1209
  C ? "text-error" : "text-default",
1210
- g
1210
+ b
1211
1211
  ),
1212
1212
  children: t
1213
1213
  }
1214
1214
  ),
1215
1215
  /* @__PURE__ */ d("div", { className: "relative", children: [
1216
- c && // Todo fix inset not showing correctly on different sizes
1217
- /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: x("text-muted", be[n]), children: c }) }),
1216
+ i && // Todo fix inset not showing correctly on different sizes
1217
+ /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: x("text-muted", be[n]), children: i }) }),
1218
1218
  /* @__PURE__ */ e(
1219
1219
  "input",
1220
1220
  {
@@ -1228,16 +1228,16 @@ const it = {
1228
1228
  // Size styles
1229
1229
  it[n],
1230
1230
  // Icon padding
1231
- c && "pl-10",
1232
- f && "pr-10",
1231
+ i && "pl-10",
1232
+ m && "pr-10",
1233
1233
  // State styles
1234
1234
  C ? "border-error text-error focus:border-error focus:ring-error" : "border-neutral text-default focus:border-primary focus:ring-primary",
1235
- m
1235
+ f
1236
1236
  ),
1237
1237
  ...u
1238
1238
  }
1239
1239
  ),
1240
- (f || b) && /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: b ? /* @__PURE__ */ d(
1240
+ (m || g) && /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: g ? /* @__PURE__ */ d(
1241
1241
  "svg",
1242
1242
  {
1243
1243
  className: x("animate-spin text-muted", be[n]),
@@ -1265,7 +1265,7 @@ const it = {
1265
1265
  )
1266
1266
  ]
1267
1267
  }
1268
- ) : f && /* @__PURE__ */ e("span", { className: x("text-muted", be[n]), children: f }) })
1268
+ ) : m && /* @__PURE__ */ e("span", { className: x("text-muted", be[n]), children: m }) })
1269
1269
  ] }),
1270
1270
  (r || a) && /* @__PURE__ */ e(
1271
1271
  "p",
@@ -1287,11 +1287,11 @@ const oe = ({
1287
1287
  color: r = "current",
1288
1288
  clickable: n = !1,
1289
1289
  onClick: s,
1290
- className: c,
1291
- "aria-label": f,
1292
- ...b
1290
+ className: i,
1291
+ "aria-label": m,
1292
+ ...g
1293
1293
  }) => {
1294
- const p = typeof a == "number" ? a : dt(a), g = x(
1294
+ const p = typeof a == "number" ? a : dt(a), b = x(
1295
1295
  "inline-block",
1296
1296
  // Color variants
1297
1297
  {
@@ -1310,20 +1310,20 @@ const oe = ({
1310
1310
  "cursor-pointer hover:opacity-80 transition-opacity duration-200": n,
1311
1311
  "focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/20 rounded": n
1312
1312
  },
1313
- c
1314
- ), m = {
1313
+ i
1314
+ ), f = {
1315
1315
  size: p,
1316
- className: g,
1316
+ className: b,
1317
1317
  onClick: n ? s : void 0,
1318
- "aria-label": f,
1318
+ "aria-label": m,
1319
1319
  role: n ? "button" : void 0,
1320
1320
  tabIndex: n ? 0 : void 0,
1321
1321
  onKeyDown: n ? (l) => {
1322
1322
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), s?.());
1323
1323
  } : void 0,
1324
- ...b
1324
+ ...g
1325
1325
  };
1326
- return /* @__PURE__ */ e(t, { ...m });
1326
+ return /* @__PURE__ */ e(t, { ...f });
1327
1327
  };
1328
1328
  function dt(t) {
1329
1329
  return {
@@ -1349,26 +1349,26 @@ function ut({
1349
1349
  ] })
1350
1350
  ] }),
1351
1351
  a && /* @__PURE__ */ d("div", { className: "rounded-lg overflow-hidden", children: [
1352
- /* @__PURE__ */ e("div", { className: `grid grid-cols-${r} gap-2 bg-neutral-container p-3`, children: Array.from({ length: r }).map((s, c) => /* @__PURE__ */ e(
1352
+ /* @__PURE__ */ e("div", { className: `grid grid-cols-${r} gap-2 bg-neutral-container p-3`, children: Array.from({ length: r }).map((s, i) => /* @__PURE__ */ e(
1353
1353
  "div",
1354
1354
  {
1355
1355
  className: "h-4 bg-neutral-border-emphasis rounded w-2/3"
1356
1356
  },
1357
- `header-${c}`
1357
+ `header-${i}`
1358
1358
  )) }),
1359
- Array.from({ length: n }).map((s, c) => /* @__PURE__ */ e(
1359
+ Array.from({ length: n }).map((s, i) => /* @__PURE__ */ e(
1360
1360
  "div",
1361
1361
  {
1362
1362
  className: `grid grid-cols-${r} gap-2 p-3 border-t border-neutral`,
1363
- children: Array.from({ length: r }).map((f, b) => /* @__PURE__ */ e(
1363
+ children: Array.from({ length: r }).map((m, g) => /* @__PURE__ */ e(
1364
1364
  "div",
1365
1365
  {
1366
1366
  className: "h-4 bg-neutral-container-emphasis rounded w-full"
1367
1367
  },
1368
- `cell-${c}-${b}`
1368
+ `cell-${i}-${g}`
1369
1369
  ))
1370
1370
  },
1371
- `row-${c}`
1371
+ `row-${i}`
1372
1372
  ))
1373
1373
  ] })
1374
1374
  ] }) });
@@ -1379,33 +1379,33 @@ const mt = ({
1379
1379
  value: r,
1380
1380
  onSelect: n,
1381
1381
  placement: s = "bottom-start",
1382
- disabled: c = !1,
1383
- className: f,
1384
- showCheck: b = !0,
1382
+ disabled: i = !1,
1383
+ className: m,
1384
+ showCheck: g = !0,
1385
1385
  header: p
1386
1386
  }) => {
1387
- const [g, m] = O(!1), [l, u] = O(null), [h, k] = O({ top: 0, left: 0 }), [C, v] = O({}), j = Z(null), N = Z(null), q = Z(null), P = Z(null);
1387
+ const [b, f] = O(!1), [l, u] = O(null), [h, k] = O({ top: 0, left: 0 }), [C, v] = O({}), j = Z(null), N = Z(null), q = Z(null), P = Z(null);
1388
1388
  K(() => {
1389
- const i = (y) => {
1390
- j.current && (!j.current.contains(y.target) || q.current && !q.current.contains(y.target)) && (m(!1), u(null), P.current && (clearTimeout(P.current), P.current = null));
1389
+ const c = (y) => {
1390
+ j.current && (!j.current.contains(y.target) || q.current && !q.current.contains(y.target)) && (f(!1), u(null), P.current && (clearTimeout(P.current), P.current = null));
1391
1391
  };
1392
- return g && document.addEventListener("mousedown", i), () => {
1393
- document.removeEventListener("mousedown", i);
1392
+ return b && document.addEventListener("mousedown", c), () => {
1393
+ document.removeEventListener("mousedown", c);
1394
1394
  };
1395
- }, [g]), K(() => {
1396
- const i = (y) => {
1397
- y.key === "Escape" && (m(!1), u(null), P.current && (clearTimeout(P.current), P.current = null));
1395
+ }, [b]), K(() => {
1396
+ const c = (y) => {
1397
+ y.key === "Escape" && (f(!1), u(null), P.current && (clearTimeout(P.current), P.current = null));
1398
1398
  };
1399
- return g && document.addEventListener("keydown", i), () => {
1400
- document.removeEventListener("keydown", i);
1399
+ return b && document.addEventListener("keydown", c), () => {
1400
+ document.removeEventListener("keydown", c);
1401
1401
  };
1402
- }, [g]), K(() => {
1402
+ }, [b]), K(() => {
1403
1403
  if (l && j.current) {
1404
- const i = j.current.querySelector(
1404
+ const c = j.current.querySelector(
1405
1405
  `[data-option-value="${l}"]`
1406
1406
  );
1407
- if (i) {
1408
- const y = i.getBoundingClientRect();
1407
+ if (c) {
1408
+ const y = c.getBoundingClientRect();
1409
1409
  k({
1410
1410
  top: y.top,
1411
1411
  left: y.right + 8
@@ -1415,27 +1415,27 @@ const mt = ({
1415
1415
  }, [l]), K(() => () => {
1416
1416
  P.current && clearTimeout(P.current);
1417
1417
  }, []);
1418
- const U = (i) => {
1419
- if (i.stopPropagation(), !c) {
1420
- if (!g) {
1418
+ const U = (c) => {
1419
+ if (c.stopPropagation(), !i) {
1420
+ if (!b) {
1421
1421
  const y = N.current?.getBoundingClientRect();
1422
1422
  if (y) {
1423
1423
  const S = {};
1424
1424
  s.startsWith("bottom") ? S.top = y.bottom + 6 : S.bottom = window.innerHeight - y.top + 6, s.endsWith("start") ? S.left = y.left : S.right = window.innerWidth - y.right, v(S);
1425
1425
  }
1426
1426
  }
1427
- m(!g), u(null), P.current && (clearTimeout(P.current), P.current = null);
1427
+ f(!b), u(null), P.current && (clearTimeout(P.current), P.current = null);
1428
1428
  }
1429
- }, F = (i, y, L) => {
1430
- i.stopPropagation(), !y.disabled && !y.divider && (!y.children || y.children.length === 0) && (n?.(y.value, L), m(!1), u(null));
1431
- }, A = (i) => {
1432
- P.current && (clearTimeout(P.current), P.current = null), i.children && i.children.length > 0 ? u(i.value) : u(null);
1433
- }, H = (i) => {
1434
- i.children && i.children.length > 0 ? P.current = setTimeout(() => {
1429
+ }, F = (c, y, L) => {
1430
+ c.stopPropagation(), !y.disabled && !y.divider && (!y.children || y.children.length === 0) && (n?.(y.value, L), f(!1), u(null));
1431
+ }, A = (c) => {
1432
+ P.current && (clearTimeout(P.current), P.current = null), c.children && c.children.length > 0 ? u(c.value) : u(null);
1433
+ }, H = (c) => {
1434
+ c.children && c.children.length > 0 ? P.current = setTimeout(() => {
1435
1435
  u(null);
1436
1436
  }, 150) : u(null);
1437
- }, T = (i, y, L) => {
1438
- i.stopPropagation(), !y.disabled && !y.divider && (n?.(y.value, L), m(!1), u(null));
1437
+ }, T = (c, y, L) => {
1438
+ c.stopPropagation(), !y.disabled && !y.divider && (n?.(y.value, L), f(!1), u(null));
1439
1439
  }, V = x(
1440
1440
  "fixed z-[60] min-w-[200px] bg-module rounded-md shadow-lg border border-neutral",
1441
1441
  "max-h-60 overflow-auto"
@@ -1449,7 +1449,7 @@ const mt = ({
1449
1449
  ref: j,
1450
1450
  className: x(
1451
1451
  "relative flex flex-row items-center justify-center rounded-lg hover:bg-neutral-container",
1452
- f
1452
+ m
1453
1453
  ),
1454
1454
  children: [
1455
1455
  /* @__PURE__ */ e(
@@ -1457,17 +1457,17 @@ const mt = ({
1457
1457
  {
1458
1458
  ref: N,
1459
1459
  onClick: U,
1460
- disabled: c,
1460
+ disabled: i,
1461
1461
  className: x("inline-flex items-center justify-center", {
1462
- "opacity-50 cursor-not-allowed": c
1462
+ "opacity-50 cursor-not-allowed": i
1463
1463
  }),
1464
1464
  children: t
1465
1465
  }
1466
1466
  ),
1467
- g && /* @__PURE__ */ e("div", { className: V, style: C, children: /* @__PURE__ */ d("div", { className: "p-2", children: [
1467
+ b && /* @__PURE__ */ e("div", { className: V, style: C, children: /* @__PURE__ */ d("div", { className: "p-2", children: [
1468
1468
  p && (typeof p == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted uppercase tracking-wider px-3 py-2", children: p }) : p),
1469
- a.map((i, y) => {
1470
- if (i.divider)
1469
+ a.map((c, y) => {
1470
+ if (c.divider)
1471
1471
  return /* @__PURE__ */ e(
1472
1472
  "div",
1473
1473
  {
@@ -1475,33 +1475,33 @@ const mt = ({
1475
1475
  },
1476
1476
  `divider-${y}`
1477
1477
  );
1478
- const L = i.children && i.children.length > 0, S = l === i.value;
1478
+ const L = c.children && c.children.length > 0, S = l === c.value;
1479
1479
  return /* @__PURE__ */ d("div", { className: "relative group", children: [
1480
1480
  /* @__PURE__ */ d(
1481
1481
  "button",
1482
1482
  {
1483
- "data-option-value": i.value,
1484
- onClick: (M) => F(M, i),
1485
- onMouseEnter: () => A(i),
1486
- onMouseLeave: () => H(i),
1487
- disabled: i.disabled,
1483
+ "data-option-value": c.value,
1484
+ onClick: (M) => F(M, c),
1485
+ onMouseEnter: () => A(c),
1486
+ onMouseLeave: () => H(c),
1487
+ disabled: c.disabled,
1488
1488
  className: x(
1489
1489
  "w-full flex items-center justify-between px-3 py-2 text-sm text-default hover:bg-neutral-container rounded-md transition-colors",
1490
1490
  {
1491
- "opacity-50 cursor-not-allowed": i.disabled,
1491
+ "opacity-50 cursor-not-allowed": c.disabled,
1492
1492
  "bg-neutral-container": S && L
1493
1493
  }
1494
1494
  ),
1495
1495
  children: [
1496
1496
  /* @__PURE__ */ d("div", { className: "flex items-center space-x-2 min-w-0", children: [
1497
- i.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: i.icon }),
1497
+ c.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: c.icon }),
1498
1498
  /* @__PURE__ */ d("div", { className: "flex flex-col items-start min-w-0", children: [
1499
- /* @__PURE__ */ e("span", { className: "font-base truncate", children: i.label }),
1500
- i.description && /* @__PURE__ */ e("span", { className: "text-xs text-muted", children: i.description })
1499
+ /* @__PURE__ */ e("span", { className: "font-base truncate", children: c.label }),
1500
+ c.description && /* @__PURE__ */ e("span", { className: "text-xs text-muted", children: c.description })
1501
1501
  ] })
1502
1502
  ] }),
1503
1503
  /* @__PURE__ */ d("div", { className: "flex items-center space-x-2", children: [
1504
- b && r === i.value && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-success flex-shrink-0 text-sm font-bold", children: "✓" }),
1504
+ g && r === c.value && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-success flex-shrink-0 text-sm font-bold", children: "✓" }),
1505
1505
  L && /* @__PURE__ */ e("span", { className: "text-muted text-xs", children: "▶" })
1506
1506
  ] })
1507
1507
  ]
@@ -1517,14 +1517,14 @@ const mt = ({
1517
1517
  left: `${h.left}px`
1518
1518
  },
1519
1519
  onMouseEnter: () => {
1520
- P.current && (clearTimeout(P.current), P.current = null), u(i.value);
1520
+ P.current && (clearTimeout(P.current), P.current = null), u(c.value);
1521
1521
  },
1522
1522
  onMouseLeave: () => {
1523
1523
  P.current = setTimeout(() => {
1524
1524
  u(null);
1525
1525
  }, 150);
1526
1526
  },
1527
- children: /* @__PURE__ */ e("div", { className: "p-2", children: i.children.map((M, E) => {
1527
+ children: /* @__PURE__ */ e("div", { className: "p-2", children: c.children.map((M, E) => {
1528
1528
  if (M.divider)
1529
1529
  return /* @__PURE__ */ e(
1530
1530
  "div",
@@ -1533,7 +1533,7 @@ const mt = ({
1533
1533
  },
1534
1534
  `divider-${E}`
1535
1535
  );
1536
- const Q = typeof r == "object" && r[i.value] && r[i.value].includes(
1536
+ const Q = typeof r == "object" && r[c.value] && r[c.value].includes(
1537
1537
  M.value
1538
1538
  ) || r === M.value;
1539
1539
  return /* @__PURE__ */ d(
@@ -1542,7 +1542,7 @@ const mt = ({
1542
1542
  onClick: (re) => T(
1543
1543
  re,
1544
1544
  M,
1545
- i.value
1545
+ c.value
1546
1546
  ),
1547
1547
  disabled: M.disabled,
1548
1548
  className: x(
@@ -1559,7 +1559,7 @@ const mt = ({
1559
1559
  M.description && /* @__PURE__ */ e("span", { className: "text-xs text-muted", children: M.description })
1560
1560
  ] })
1561
1561
  ] }),
1562
- b && Q && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-success flex-shrink-0 text-sm font-bold", children: "✓" })
1562
+ g && Q && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-success flex-shrink-0 text-sm font-bold", children: "✓" })
1563
1563
  ]
1564
1564
  },
1565
1565
  M.value
@@ -1567,16 +1567,16 @@ const mt = ({
1567
1567
  }) })
1568
1568
  }
1569
1569
  )
1570
- ] }, i.value);
1570
+ ] }, c.value);
1571
1571
  }),
1572
1572
  (() => {
1573
- const i = a.reduce((y, L) => {
1573
+ const c = a.reduce((y, L) => {
1574
1574
  if (L.divider) return y;
1575
1575
  const S = L.children ? L.children.filter((M) => !M.divider).length : 0;
1576
1576
  return y + 1 + S;
1577
1577
  }, 0);
1578
- return i > 1 && /* @__PURE__ */ e("div", { className: "border-t border-neutral mt-2 pt-2", children: /* @__PURE__ */ d("div", { className: "text-xs text-muted px-3 py-1", children: [
1579
- i,
1578
+ return c > 1 && /* @__PURE__ */ e("div", { className: "border-t border-neutral mt-2 pt-2", children: /* @__PURE__ */ d("div", { className: "text-xs text-muted px-3 py-1", children: [
1579
+ c,
1580
1580
  " options available"
1581
1581
  ] }) });
1582
1582
  })()
@@ -1779,12 +1779,12 @@ const mt = ({
1779
1779
  loading: r = !1,
1780
1780
  searchable: n = !1,
1781
1781
  searchPlaceholder: s = "Search...",
1782
- filters: c = [],
1783
- paginated: f = !1,
1784
- pageSizeOptions: b = [10, 25, 50, 100],
1782
+ filters: i = [],
1783
+ paginated: m = !1,
1784
+ pageSizeOptions: g = [10, 25, 50, 100],
1785
1785
  defaultPageSize: p = 10,
1786
- actions: g = [],
1787
- onRowClick: m,
1786
+ actions: b = [],
1787
+ onRowClick: f,
1788
1788
  selectable: l = !1,
1789
1789
  selectedRows: u = [],
1790
1790
  onSelectionChange: h,
@@ -1802,7 +1802,7 @@ const mt = ({
1802
1802
  }), [T, V] = O({
1803
1803
  page: 0,
1804
1804
  pageSize: p
1805
- }), W = Z(null), i = de(() => {
1805
+ }), W = Z(null), c = de(() => {
1806
1806
  let o = t;
1807
1807
  if (n && U.trim()) {
1808
1808
  const w = a.filter(
@@ -1813,7 +1813,7 @@ const mt = ({
1813
1813
  return String(J || "").toLowerCase().includes(_);
1814
1814
  }));
1815
1815
  }
1816
- return c.forEach((w) => {
1816
+ return i.forEach((w) => {
1817
1817
  w.value && w.value !== "all" && (o = o.filter((_) => {
1818
1818
  const R = a.find((J) => J.id === w.id);
1819
1819
  if (!R) return !0;
@@ -1821,19 +1821,19 @@ const mt = ({
1821
1821
  return String(B || "") === w.value;
1822
1822
  }));
1823
1823
  }), o;
1824
- }, [t, U, a, n, c]), y = de(() => {
1825
- if (!A.column || !A.direction) return i;
1824
+ }, [t, U, a, n, i]), y = de(() => {
1825
+ if (!A.column || !A.direction) return c;
1826
1826
  const o = a.find((w) => w.id === A.column);
1827
- return o ? [...i].sort((w, _) => {
1827
+ return o ? [...c].sort((w, _) => {
1828
1828
  const R = typeof o.accessor == "function" ? o.accessor(w) : w[o.accessor], B = typeof o.accessor == "function" ? o.accessor(_) : _[o.accessor];
1829
1829
  let J = 0;
1830
1830
  return R < B ? J = -1 : R > B && (J = 1), A.direction === "desc" ? -J : J;
1831
- }) : i;
1832
- }, [i, A, a]), L = de(() => {
1833
- if (!f) return y;
1831
+ }) : c;
1832
+ }, [c, A, a]), L = de(() => {
1833
+ if (!m) return y;
1834
1834
  const o = T.page * T.pageSize, w = o + T.pageSize;
1835
1835
  return y.slice(o, w);
1836
- }, [y, T, f]), S = ae(
1836
+ }, [y, T, m]), S = ae(
1837
1837
  (o) => {
1838
1838
  a.find((_) => _.id === o)?.sortable && H((_) => _.column !== o ? { column: o, direction: "asc" } : _.direction === "asc" ? { column: o, direction: "desc" } : { column: null, direction: null });
1839
1839
  },
@@ -1861,7 +1861,7 @@ const mt = ({
1861
1861
  V((o) => ({ ...o, page: 0 }));
1862
1862
  }, [U, A]), K(() => {
1863
1863
  V((o) => ({ ...o, page: 0 }));
1864
- }, [c.map((o) => o.value).join(",")]);
1864
+ }, [i.map((o) => o.value).join(",")]);
1865
1865
  const X = y.length, $ = Math.ceil(X / T.pageSize), I = T.page * T.pageSize + 1, z = Math.min(I + T.pageSize - 1, X), D = L.length > 0 && L.every((o) => {
1866
1866
  const w = k(o, 0);
1867
1867
  return u.some(
@@ -1879,11 +1879,11 @@ const mt = ({
1879
1879
  "text-[var(--text-default)] p-3 border-b border-[var(--neutral-border)]"
1880
1880
  ), fe = x("h-12", {
1881
1881
  "hover:bg-[var(--neutral-container)] dark:hover:bg-[var(--neutral-container-emphasis)]": v,
1882
- "cursor-pointer": m
1882
+ "cursor-pointer": f
1883
1883
  });
1884
1884
  return /* @__PURE__ */ d("div", { className: "space-y-4", children: [
1885
- (n || c.length > 0) && /* @__PURE__ */ e("div", { className: "pt-4 pb-2", children: /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-4 items-start", children: [
1886
- c.map((o) => /* @__PURE__ */ e(vt, { ...o }, o.id)),
1885
+ (n || i.length > 0) && /* @__PURE__ */ e("div", { className: "pt-4 pb-2", children: /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-4 items-start", children: [
1886
+ i.map((o) => /* @__PURE__ */ e(vt, { ...o }, o.id)),
1887
1887
  /* @__PURE__ */ e("div", { className: "w-full sm:w-auto sm:ml-auto min-w-[200px]", children: /* @__PURE__ */ e(
1888
1888
  ue,
1889
1889
  {
@@ -1965,12 +1965,12 @@ const mt = ({
1965
1965
  },
1966
1966
  o.id
1967
1967
  )),
1968
- g.length > 0 && /* @__PURE__ */ e("th", { className: x(le, "w-20"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1968
+ b.length > 0 && /* @__PURE__ */ e("th", { className: x(le, "w-20"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1969
1969
  ] }) }),
1970
1970
  /* @__PURE__ */ e("tbody", { children: L.length === 0 || r ? !r && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
1971
1971
  "td",
1972
1972
  {
1973
- colSpan: a.length + (l ? 1 : 0) + (g.length > 0 ? 1 : 0),
1973
+ colSpan: a.length + (l ? 1 : 0) + (b.length > 0 ? 1 : 0),
1974
1974
  className: x(
1975
1975
  le,
1976
1976
  "text-center py-8 text-muted"
@@ -1990,7 +1990,7 @@ const mt = ({
1990
1990
  P?.(o, w)
1991
1991
  ),
1992
1992
  onClick: (B) => {
1993
- B.stopPropagation(), m?.(o, w);
1993
+ B.stopPropagation(), f?.(o, w);
1994
1994
  },
1995
1995
  children: [
1996
1996
  l && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
@@ -2021,21 +2021,21 @@ const mt = ({
2021
2021
  B.id
2022
2022
  );
2023
2023
  }),
2024
- g.length > 0 && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
2024
+ b.length > 0 && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
2025
2025
  mt,
2026
2026
  {
2027
2027
  trigger: /* @__PURE__ */ d("div", { className: "inline-flex items-center gap-1 px-2 py-1 text-sm text-muted hover:text-default", children: [
2028
2028
  /* @__PURE__ */ e("span", { children: "Options" }),
2029
2029
  /* @__PURE__ */ e(Te, {})
2030
2030
  ] }),
2031
- options: g.map((B) => ({
2031
+ options: b.map((B) => ({
2032
2032
  value: B.id,
2033
2033
  label: B.label,
2034
2034
  icon: B.icon,
2035
2035
  disabled: B.disabled?.(o)
2036
2036
  })),
2037
2037
  onSelect: (B) => {
2038
- const J = g.find(
2038
+ const J = b.find(
2039
2039
  (he) => he.id === B
2040
2040
  );
2041
2041
  J && J.onClick(o, w);
@@ -2050,7 +2050,7 @@ const mt = ({
2050
2050
  }) })
2051
2051
  ] })
2052
2052
  ] }),
2053
- f && X > 0 && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-6", children: [
2053
+ m && X > 0 && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-6", children: [
2054
2054
  /* @__PURE__ */ d("div", { className: "flex items-center gap-4", children: [
2055
2055
  /* @__PURE__ */ d("span", { className: "text-sm text-muted", children: [
2056
2056
  "Showing ",
@@ -2069,7 +2069,7 @@ const mt = ({
2069
2069
  value: T.pageSize,
2070
2070
  onChange: (o) => E(Number(o.target.value)),
2071
2071
  className: "border border-[var(--neutral-border)] text-[var(--text-default)] rounded-md px-2 py-1 text-sm bg-[var(--base-input)] w-16",
2072
- children: b.map((o) => /* @__PURE__ */ e("option", { value: o, children: o }, o))
2072
+ children: g.map((o) => /* @__PURE__ */ e("option", { value: o, children: o }, o))
2073
2073
  }
2074
2074
  )
2075
2075
  ] })
@@ -2134,19 +2134,19 @@ const mt = ({
2134
2134
  onTabChange: r,
2135
2135
  className: n
2136
2136
  }) => {
2137
- const [s, c] = O(t[0]?.id || ""), f = a || s, b = (p) => {
2138
- r ? r(p) : c(p);
2137
+ const [s, i] = O(t[0]?.id || ""), m = a || s, g = (p) => {
2138
+ r ? r(p) : i(p);
2139
2139
  };
2140
2140
  return /* @__PURE__ */ e("div", { className: x("border-b border-neutral-200 dark:border-neutral-700", n), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: t.map((p) => /* @__PURE__ */ e(
2141
2141
  "button",
2142
2142
  {
2143
- onClick: () => !p.disabled && b(p.id),
2143
+ onClick: () => !p.disabled && g(p.id),
2144
2144
  disabled: p.disabled,
2145
2145
  className: x(
2146
2146
  "border-b-2 py-2 px-1 text-sm font-medium transition-colors duration-200",
2147
2147
  {
2148
- "border-primary text-primary": f === p.id,
2149
- "border-transparent text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-300": f !== p.id && !p.disabled,
2148
+ "border-primary text-primary": m === p.id,
2149
+ "border-transparent text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-300": m !== p.id && !p.disabled,
2150
2150
  "border-transparent text-neutral-300 cursor-not-allowed dark:text-neutral-600": p.disabled
2151
2151
  }
2152
2152
  ),
@@ -2154,7 +2154,7 @@ const mt = ({
2154
2154
  p.label,
2155
2155
  p.badge && /* @__PURE__ */ e("span", { className: x(
2156
2156
  "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
2157
- f === p.id ? "bg-primary/10 text-primary" : "bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"
2157
+ m === p.id ? "bg-primary/10 text-primary" : "bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"
2158
2158
  ), children: p.badge })
2159
2159
  ] })
2160
2160
  },
@@ -2166,17 +2166,17 @@ const mt = ({
2166
2166
  activeTab: r,
2167
2167
  onTabChange: n,
2168
2168
  variant: s = "default",
2169
- size: c = "md",
2170
- className: f
2169
+ size: i = "md",
2170
+ className: m
2171
2171
  }) => {
2172
- const [b, p] = O(
2172
+ const [g, p] = O(
2173
2173
  a || r || t[0]?.id || ""
2174
- ), g = r || b, m = (C) => {
2174
+ ), b = r || g, f = (C) => {
2175
2175
  n ? n(C) : p(C);
2176
2176
  }, l = {
2177
- activeTab: g,
2178
- setActiveTab: m
2179
- }, u = t.find((C) => C.id === g), h = x(
2177
+ activeTab: b,
2178
+ setActiveTab: f
2179
+ }, u = t.find((C) => C.id === b), h = x(
2180
2180
  "flex",
2181
2181
  {
2182
2182
  "border-b border-neutral-200 dark:border-neutral-700 px-2": s === "default" || s === "underline",
@@ -2184,12 +2184,12 @@ const mt = ({
2184
2184
  "space-x-1": s === "pills",
2185
2185
  "space-x-8": s === "default" || s === "underline"
2186
2186
  },
2187
- f
2187
+ m
2188
2188
  ), k = (C, v) => {
2189
2189
  const j = "transition-colors duration-200 font-medium", N = {
2190
- "text-xs px-2 py-1": c === "sm",
2191
- "text-sm px-3 py-2": c === "md",
2192
- "text-base px-4 py-3": c === "lg"
2190
+ "text-xs px-2 py-1": i === "sm",
2191
+ "text-sm px-3 py-2": i === "md",
2192
+ "text-base px-4 py-3": i === "lg"
2193
2193
  }, q = {
2194
2194
  // Default variant
2195
2195
  "border-b-2 -mb-px": s === "default",
@@ -2216,11 +2216,11 @@ const mt = ({
2216
2216
  {
2217
2217
  type: "button",
2218
2218
  role: "tab",
2219
- "aria-selected": g === C.id,
2219
+ "aria-selected": b === C.id,
2220
2220
  "aria-controls": `tabpanel-${C.id}`,
2221
2221
  disabled: C.disabled,
2222
- onClick: () => !C.disabled && m(C.id),
2223
- className: k(C, g === C.id),
2222
+ onClick: () => !C.disabled && f(C.id),
2223
+ className: k(C, b === C.id),
2224
2224
  children: /* @__PURE__ */ d("span", { className: "flex items-center gap-2", children: [
2225
2225
  C.label,
2226
2226
  C.badge && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-neutral-200 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-300", children: C.badge })
@@ -2232,8 +2232,8 @@ const mt = ({
2232
2232
  "div",
2233
2233
  {
2234
2234
  role: "tabpanel",
2235
- id: `tabpanel-${g}`,
2236
- "aria-labelledby": `tab-${g}`,
2235
+ id: `tabpanel-${b}`,
2236
+ "aria-labelledby": `tab-${b}`,
2237
2237
  className: "mt-4",
2238
2238
  children: u.content
2239
2239
  }
@@ -2252,21 +2252,21 @@ function Ct({
2252
2252
  title: r,
2253
2253
  size: n = "md",
2254
2254
  closeOnBackdropClick: s = !0,
2255
- closeOnEscape: c = !0,
2256
- className: f,
2257
- backdropClassName: b,
2255
+ closeOnEscape: i = !0,
2256
+ className: m,
2257
+ backdropClassName: g,
2258
2258
  children: p,
2259
- footer: g,
2260
- showCloseButton: m = !0
2259
+ footer: b,
2260
+ showCloseButton: f = !0
2261
2261
  }) {
2262
2262
  const l = Z(null), u = Z(null);
2263
2263
  K(() => {
2264
- if (!t || !c) return;
2264
+ if (!t || !i) return;
2265
2265
  const k = (C) => {
2266
2266
  C.key === "Escape" && a();
2267
2267
  };
2268
2268
  return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
2269
- }, [t, c, a]), K(() => (t ? (u.current = document.activeElement, l.current && l.current.focus(), document.body.style.overflow = "hidden") : (u.current && u.current.focus(), document.body.style.overflow = ""), () => {
2269
+ }, [t, i, a]), K(() => (t ? (u.current = document.activeElement, l.current && l.current.focus(), document.body.style.overflow = "hidden") : (u.current && u.current.focus(), document.body.style.overflow = ""), () => {
2270
2270
  document.body.style.overflow = "";
2271
2271
  }), [t]);
2272
2272
  const h = (k) => {
@@ -2279,7 +2279,7 @@ function Ct({
2279
2279
  "fixed inset-0 z-50 flex items-center justify-center p-4",
2280
2280
  "bg-black/20",
2281
2281
  // 'animate-fade-in',
2282
- b
2282
+ g
2283
2283
  ),
2284
2284
  onClick: h,
2285
2285
  children: /* @__PURE__ */ d(
@@ -2291,14 +2291,14 @@ function Ct({
2291
2291
  // 'animate-scale-in',
2292
2292
  "focus:outline-none",
2293
2293
  kt[n],
2294
- f
2294
+ m
2295
2295
  ),
2296
2296
  role: "dialog",
2297
2297
  "aria-modal": "true",
2298
2298
  "aria-labelledby": r ? "modal-title" : void 0,
2299
2299
  tabIndex: -1,
2300
2300
  children: [
2301
- (r || m) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2301
+ (r || f) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2302
2302
  r && /* @__PURE__ */ e(
2303
2303
  "span",
2304
2304
  {
@@ -2307,7 +2307,7 @@ function Ct({
2307
2307
  children: r
2308
2308
  }
2309
2309
  ),
2310
- m && /* @__PURE__ */ e(
2310
+ f && /* @__PURE__ */ e(
2311
2311
  "button",
2312
2312
  {
2313
2313
  onClick: a,
@@ -2318,7 +2318,7 @@ function Ct({
2318
2318
  )
2319
2319
  ] }),
2320
2320
  /* @__PURE__ */ e("div", { className: "p-6", children: p }),
2321
- g && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: g })
2321
+ b && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: b })
2322
2322
  ]
2323
2323
  }
2324
2324
  )
@@ -2331,16 +2331,16 @@ const Y = ({
2331
2331
  weight: r = "normal",
2332
2332
  color: n = "current",
2333
2333
  align: s = "left",
2334
- truncate: c = !1,
2335
- italic: f = !1,
2336
- underline: b = !1,
2334
+ truncate: i = !1,
2335
+ italic: m = !1,
2336
+ underline: g = !1,
2337
2337
  lineHeight: p = "normal",
2338
- as: g,
2339
- className: m,
2338
+ as: b,
2339
+ className: f,
2340
2340
  children: l,
2341
2341
  ...u
2342
2342
  }) => {
2343
- const h = g || St(t), k = x(
2343
+ const h = b || St(t), k = x(
2344
2344
  // Base styles
2345
2345
  "font-primary",
2346
2346
  // Variant styles
@@ -2397,11 +2397,11 @@ const Y = ({
2397
2397
  },
2398
2398
  // Text decorations
2399
2399
  {
2400
- italic: f,
2401
- underline: b,
2402
- truncate: c
2400
+ italic: m,
2401
+ underline: g,
2402
+ truncate: i
2403
2403
  },
2404
- m
2404
+ f
2405
2405
  );
2406
2406
  return /* @__PURE__ */ e(h, { className: k, ...u, children: l });
2407
2407
  };
@@ -2419,17 +2419,17 @@ const Lt = ({
2419
2419
  label: r,
2420
2420
  placeholder: n = "Select or upload a file",
2421
2421
  error: s,
2422
- disabled: c,
2423
- accept: f,
2424
- onListFiles: b,
2422
+ disabled: i,
2423
+ accept: m,
2424
+ onListFiles: g,
2425
2425
  onListMounts: p,
2426
- onUploadFile: g,
2427
- onDownloadFile: m,
2426
+ onUploadFile: b,
2427
+ onDownloadFile: f,
2428
2428
  onRegisterFile: l
2429
2429
  }) => {
2430
2430
  const [u, h] = O(!1), [k, C] = O([]), [v, j] = O(null), [N, q] = O("/"), [P, U] = O([]), [F, A] = O(!1), [H, T] = O(""), [V, W] = O(
2431
2431
  typeof t == "object" ? t : null
2432
- ), [i, y] = O(!1), [L, S] = O(""), M = Z(null);
2432
+ ), [c, y] = O(!1), [L, S] = O(""), M = Z(null);
2433
2433
  K(() => {
2434
2434
  u && E();
2435
2435
  }, [u]), K(() => {
@@ -2449,7 +2449,7 @@ const Lt = ({
2449
2449
  if (v) {
2450
2450
  A(!0);
2451
2451
  try {
2452
- const o = await b?.({ mountId: v.id, name: H, path: N });
2452
+ const o = await g?.({ mountId: v.id, name: H, path: N });
2453
2453
  o?.data && U(o.data);
2454
2454
  } catch (o) {
2455
2455
  console.error("Failed to load files", o);
@@ -2485,7 +2485,7 @@ const Lt = ({
2485
2485
  if (!(!w || !v)) {
2486
2486
  A(!0);
2487
2487
  try {
2488
- const _ = await w.arrayBuffer(), R = await g?.({
2488
+ const _ = await w.arrayBuffer(), R = await b?.({
2489
2489
  file: new Uint8Array(_),
2490
2490
  filename: w.name,
2491
2491
  mimeType: w.type || "application/octet-stream",
@@ -2526,7 +2526,7 @@ const Lt = ({
2526
2526
  }, I = async (o) => {
2527
2527
  A(!0);
2528
2528
  try {
2529
- const w = await m?.(o.id);
2529
+ const w = await f?.(o.id);
2530
2530
  W(o), a(o, w), h(!1);
2531
2531
  } catch (w) {
2532
2532
  console.error("Failed to download file", w);
@@ -2633,17 +2633,17 @@ const Lt = ({
2633
2633
  /* @__PURE__ */ d(
2634
2634
  "div",
2635
2635
  {
2636
- onClick: () => !c && h(!0),
2636
+ onClick: () => !i && h(!0),
2637
2637
  className: x(
2638
2638
  "flex items-center gap-3 px-3 py-2 border rounded-lg cursor-pointer transition-colors",
2639
2639
  "hover:border-primary-400 bg-module",
2640
2640
  s ? "border-error" : "border-neutral",
2641
- c && "opacity-50 cursor-not-allowed bg-module-subtle"
2641
+ i && "opacity-50 cursor-not-allowed bg-module-subtle"
2642
2642
  ),
2643
2643
  children: [
2644
2644
  /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: V ? pe : ke, color: V ? "primary" : "secondary" }) }),
2645
2645
  /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: V ? /* @__PURE__ */ e("span", { className: "text-sm text-default font-medium", children: V.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-muted", children: n }) }),
2646
- V && !c && /* @__PURE__ */ e(
2646
+ V && !i && /* @__PURE__ */ e(
2647
2647
  "button",
2648
2648
  {
2649
2649
  onClick: z,
@@ -2727,12 +2727,12 @@ const Lt = ({
2727
2727
  className: "hidden",
2728
2728
  ref: M,
2729
2729
  onChange: X,
2730
- accept: f
2730
+ accept: m
2731
2731
  }
2732
2732
  )
2733
2733
  ] })
2734
2734
  ] }),
2735
- i && /* @__PURE__ */ d("div", { className: "flex items-center gap-2 p-3 bg-module-subtle rounded-lg border border-neutral", children: [
2735
+ c && /* @__PURE__ */ d("div", { className: "flex items-center gap-2 p-3 bg-module-subtle rounded-lg border border-neutral", children: [
2736
2736
  /* @__PURE__ */ e(oe, { icon: Ce, size: "sm", color: "warning" }),
2737
2737
  /* @__PURE__ */ e(
2738
2738
  ue,
@@ -2796,7 +2796,7 @@ const Lt = ({
2796
2796
  type: "file",
2797
2797
  className: "hidden",
2798
2798
  onChange: re,
2799
- accept: f,
2799
+ accept: m,
2800
2800
  disabled: F
2801
2801
  }
2802
2802
  )
@@ -2818,20 +2818,20 @@ function Me(t, a) {
2818
2818
  }
2819
2819
  function Mt(t, a, r) {
2820
2820
  const n = a.split("."), s = Array.isArray(t) ? [...t] : { ...t };
2821
- let c = s;
2822
- for (let f = 0; f < n.length - 1; f++) {
2823
- const b = n[f], p = c[b];
2824
- c[b] = p && typeof p == "object" ? Array.isArray(p) ? [...p] : { ...p } : {}, c = c[b];
2821
+ let i = s;
2822
+ for (let m = 0; m < n.length - 1; m++) {
2823
+ const g = n[m], p = i[g];
2824
+ i[g] = p && typeof p == "object" ? Array.isArray(p) ? [...p] : { ...p } : {}, i = i[g];
2825
2825
  }
2826
- return c[n[n.length - 1]] = r, s;
2826
+ return i[n[n.length - 1]] = r, s;
2827
2827
  }
2828
2828
  function Et(t, a) {
2829
2829
  const r = a.split("."), n = Array.isArray(t) ? [...t] : { ...t };
2830
2830
  let s = n;
2831
- for (let c = 0; c < r.length - 1; c++) {
2832
- const f = r[c];
2833
- if (!s[f] || typeof s[f] != "object") return n;
2834
- s[f] = Array.isArray(s[f]) ? [...s[f]] : { ...s[f] }, s = s[f];
2831
+ for (let i = 0; i < r.length - 1; i++) {
2832
+ const m = r[i];
2833
+ if (!s[m] || typeof s[m] != "object") return n;
2834
+ s[m] = Array.isArray(s[m]) ? [...s[m]] : { ...s[m] }, s = s[m];
2835
2835
  }
2836
2836
  return delete s[r[r.length - 1]], n;
2837
2837
  }
@@ -2841,12 +2841,12 @@ const rr = ({
2841
2841
  onSubmit: r,
2842
2842
  onCancel: n,
2843
2843
  onChange: s,
2844
- transform: c,
2845
- validate: f,
2846
- submitButton: b = { label: "Submit", variant: "primary" },
2844
+ transform: i,
2845
+ validate: m,
2846
+ submitButton: g = { label: "Submit", variant: "primary" },
2847
2847
  cancelButton: p = { label: "Cancel", variant: "outline" },
2848
- showButtons: g = !0,
2849
- layout: m = "vertical",
2848
+ showButtons: b = !0,
2849
+ layout: f = "vertical",
2850
2850
  size: l = "md",
2851
2851
  loading: u = !1,
2852
2852
  className: h,
@@ -2858,8 +2858,8 @@ const rr = ({
2858
2858
  a && j({ ...a });
2859
2859
  }, [a]);
2860
2860
  const F = ae(
2861
- (i, y, L) => {
2862
- const S = t.flatMap((M) => M.items).find((M) => M.name === i);
2861
+ (c, y, L) => {
2862
+ const S = t.flatMap((M) => M.items).find((M) => M.name === c);
2863
2863
  if (!S) return null;
2864
2864
  if (S.required && (y == null || y === ""))
2865
2865
  return `${S.label} is required`;
@@ -2891,23 +2891,23 @@ const rr = ({
2891
2891
  },
2892
2892
  [t]
2893
2893
  ), A = ae(
2894
- (i, y) => {
2894
+ (c, y) => {
2895
2895
  let L = Mt(
2896
2896
  v,
2897
- i,
2897
+ c,
2898
2898
  y
2899
2899
  );
2900
- t.flatMap((E) => E.items).find((E) => E.name === i)?.removeIfEmpty && (y == null || y === "") && (L = Et(L, i)), j(L), U((E) => ({ ...E, [i]: !0 }));
2901
- const M = F(i, y, L);
2900
+ t.flatMap((E) => E.items).find((E) => E.name === c)?.removeIfEmpty && (y == null || y === "") && (L = Et(L, c)), j(L), U((E) => ({ ...E, [c]: !0 }));
2901
+ const M = F(c, y, L);
2902
2902
  q((E) => ({
2903
2903
  ...E,
2904
- [i]: M || ""
2905
- })), s?.(L, i);
2904
+ [c]: M || ""
2905
+ })), s?.(L, c);
2906
2906
  },
2907
2907
  [v, t, F, s]
2908
2908
  ), H = ae(
2909
- async (i) => {
2910
- if (console.log("handleSubmit"), i.preventDefault(), u) return;
2909
+ async (c) => {
2910
+ if (console.log("handleSubmit"), c.preventDefault(), u) return;
2911
2911
  const y = {}, L = t.flatMap((M) => M.items);
2912
2912
  for (const M of L) {
2913
2913
  if (M.hidden || M.conditional && !M.conditional(v))
@@ -2919,26 +2919,26 @@ const rr = ({
2919
2919
  );
2920
2920
  E && (y[M.name] = E);
2921
2921
  }
2922
- if (f) {
2923
- const M = f(v);
2922
+ if (m) {
2923
+ const M = m(v);
2924
2924
  M && Object.assign(y, M);
2925
2925
  }
2926
2926
  if (q(y), console.log("newErrors", y), Object.keys(y).some((M) => y[M]))
2927
2927
  return;
2928
- const S = c ? c(v) : v;
2928
+ const S = i ? i(v) : v;
2929
2929
  await r?.(v, S);
2930
2930
  },
2931
- [v, t, F, f, c, r, u]
2931
+ [v, t, F, m, i, r, u]
2932
2932
  ), T = ae(
2933
- (i) => {
2934
- const y = Me(v, i.name), L = P[i.name] ? N[i.name] : void 0, S = i.disabled || u, M = {
2933
+ (c) => {
2934
+ const y = Me(v, c.name), L = P[c.name] ? N[c.name] : void 0, S = c.disabled || u, M = {
2935
2935
  value: y || "",
2936
2936
  disabled: S,
2937
- required: i.required,
2938
- placeholder: i.placeholder,
2939
- ...i.fieldProps
2937
+ required: c.required,
2938
+ placeholder: c.placeholder,
2939
+ ...c.fieldProps
2940
2940
  };
2941
- switch (i.type) {
2941
+ switch (c.type) {
2942
2942
  case "text":
2943
2943
  case "email":
2944
2944
  case "password":
@@ -2949,9 +2949,9 @@ const rr = ({
2949
2949
  ue,
2950
2950
  {
2951
2951
  ...M,
2952
- onChange: (E) => A(i.name, E.target.value),
2953
- type: i.textType || i.type,
2954
- autoComplete: i.autocomplete,
2952
+ onChange: (E) => A(c.name, E.target.value),
2953
+ type: c.textType || c.type,
2954
+ autoComplete: c.autocomplete,
2955
2955
  error: L,
2956
2956
  size: l
2957
2957
  }
@@ -2961,7 +2961,7 @@ const rr = ({
2961
2961
  Ne,
2962
2962
  {
2963
2963
  ...M,
2964
- onChange: (E) => A(i.name, E.target.value),
2964
+ onChange: (E) => A(c.name, E.target.value),
2965
2965
  rows: 4,
2966
2966
  error: L,
2967
2967
  size: l
@@ -2972,14 +2972,14 @@ const rr = ({
2972
2972
  ve,
2973
2973
  {
2974
2974
  ...M,
2975
- onChange: (E) => A(i.name, E),
2976
- options: (i.options || []).map((E) => ({
2975
+ onChange: (E) => A(c.name, E),
2976
+ options: (c.options || []).map((E) => ({
2977
2977
  ...E,
2978
2978
  value: String(E.value)
2979
2979
  })),
2980
- searchable: i.searchable,
2981
- multiple: i.multiple,
2982
- allowCreate: i.allowCreate,
2980
+ searchable: c.searchable,
2981
+ multiple: c.multiple,
2982
+ allowCreate: c.allowCreate,
2983
2983
  error: L,
2984
2984
  size: l
2985
2985
  }
@@ -2990,20 +2990,20 @@ const rr = ({
2990
2990
  {
2991
2991
  ...M,
2992
2992
  checked: !!y,
2993
- onChange: (E) => A(i.name, E.target.checked),
2993
+ onChange: (E) => A(c.name, E.target.checked),
2994
2994
  size: l
2995
2995
  }
2996
2996
  );
2997
2997
  case "radio":
2998
- return /* @__PURE__ */ e("div", { className: "space-y-1", children: i.options?.map((E) => /* @__PURE__ */ d("label", { className: "flex items-center gap-2", children: [
2998
+ return /* @__PURE__ */ e("div", { className: "space-y-1", children: c.options?.map((E) => /* @__PURE__ */ d("label", { className: "flex items-center gap-2", children: [
2999
2999
  /* @__PURE__ */ e(
3000
3000
  "input",
3001
3001
  {
3002
3002
  type: "radio",
3003
- name: i.name,
3003
+ name: c.name,
3004
3004
  value: E.value,
3005
3005
  checked: y === E.value,
3006
- onChange: () => A(i.name, E.value),
3006
+ onChange: () => A(c.name, E.value),
3007
3007
  disabled: S || E.disabled,
3008
3008
  className: "rounded-full border-neutral-100 dark:border-neutral-600"
3009
3009
  }
@@ -3016,7 +3016,7 @@ const rr = ({
3016
3016
  {
3017
3017
  ...M,
3018
3018
  value: y ? new Date(y) : null,
3019
- onChange: (E) => A(i.name, E),
3019
+ onChange: (E) => A(c.name, E),
3020
3020
  size: l
3021
3021
  }
3022
3022
  );
@@ -3026,7 +3026,7 @@ const rr = ({
3026
3026
  {
3027
3027
  ...M,
3028
3028
  value: y,
3029
- onChange: (E) => A(i.name, E),
3029
+ onChange: (E) => A(c.name, E),
3030
3030
  error: L,
3031
3031
  onListFiles: (E) => C?.http.invoke({
3032
3032
  method: "POST",
@@ -3054,9 +3054,9 @@ const rr = ({
3054
3054
  }
3055
3055
  );
3056
3056
  case "custom":
3057
- return i.customComponent?.({
3057
+ return c.customComponent?.({
3058
3058
  value: y,
3059
- onChange: (E) => A(i.name, E),
3059
+ onChange: (E) => A(c.name, E),
3060
3060
  error: L,
3061
3061
  disabled: S
3062
3062
  });
@@ -3069,10 +3069,10 @@ const rr = ({
3069
3069
  } catch {
3070
3070
  }
3071
3071
  const re = () => {
3072
- A(i.name, [...E, {}]);
3072
+ A(c.name, [...E, {}]);
3073
3073
  }, X = (I) => {
3074
3074
  A(
3075
- i.name,
3075
+ c.name,
3076
3076
  E.filter((z, D) => D !== I)
3077
3077
  );
3078
3078
  }, $ = (I, z, D) => {
@@ -3080,7 +3080,7 @@ const rr = ({
3080
3080
  ee[I] = {
3081
3081
  ...ee[I],
3082
3082
  [z]: D
3083
- }, A(i.name, ee);
3083
+ }, A(c.name, ee);
3084
3084
  };
3085
3085
  return /* @__PURE__ */ d("div", { className: "space-y-2", children: [
3086
3086
  E.map((I, z) => /* @__PURE__ */ d(
@@ -3099,7 +3099,7 @@ const rr = ({
3099
3099
  children: "Remove"
3100
3100
  }
3101
3101
  ) }),
3102
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: i.arrayFields?.map((D) => {
3102
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: c.arrayFields?.map((D) => {
3103
3103
  const ee = Q?.[z]?.[D.name];
3104
3104
  return /* @__PURE__ */ d(
3105
3105
  "div",
@@ -3210,7 +3210,7 @@ const rr = ({
3210
3210
  "input",
3211
3211
  {
3212
3212
  type: "radio",
3213
- name: `${i.name}.${z}.${D.name}`,
3213
+ name: `${c.name}.${z}.${D.name}`,
3214
3214
  value: G.value,
3215
3215
  checked: I?.[D.name] === G.value,
3216
3216
  onChange: () => $(
@@ -3291,7 +3291,7 @@ const rr = ({
3291
3291
  disabled: S,
3292
3292
  children: [
3293
3293
  "Add ",
3294
- i.label
3294
+ c.label
3295
3295
  ]
3296
3296
  }
3297
3297
  )
@@ -3303,24 +3303,24 @@ const rr = ({
3303
3303
  },
3304
3304
  [v, P, N, u, l, A]
3305
3305
  ), V = ae(
3306
- (i) => {
3307
- if (i.conditional && !i.conditional(v))
3306
+ (c) => {
3307
+ if (c.conditional && !c.conditional(v))
3308
3308
  return null;
3309
- const y = i.items.filter((S) => !(S.hidden || S.conditional && !S.conditional(v)));
3309
+ const y = c.items.filter((S) => !(S.hidden || S.conditional && !S.conditional(v)));
3310
3310
  if (y.length === 0) return null;
3311
3311
  const L = x(
3312
3312
  "space-y-2",
3313
3313
  {
3314
- "grid gap-2": i.layout === "grid",
3315
- "flex flex-wrap gap-2": i.layout === "flex"
3314
+ "grid gap-2": c.layout === "grid",
3315
+ "flex flex-wrap gap-2": c.layout === "flex"
3316
3316
  },
3317
- i.layout === "grid" && {
3318
- "grid-cols-1": !i.columns || i.columns === 1,
3319
- "grid-cols-2": i.columns === 2,
3320
- "grid-cols-3": i.columns === 3,
3321
- "grid-cols-4": i.columns === 4
3317
+ c.layout === "grid" && {
3318
+ "grid-cols-1": !c.columns || c.columns === 1,
3319
+ "grid-cols-2": c.columns === 2,
3320
+ "grid-cols-3": c.columns === 3,
3321
+ "grid-cols-4": c.columns === 4
3322
3322
  },
3323
- i.className
3323
+ c.className
3324
3324
  );
3325
3325
  return /* @__PURE__ */ d(
3326
3326
  "div",
@@ -3335,16 +3335,16 @@ const rr = ({
3335
3335
  size: "lg",
3336
3336
  weight: "semibold",
3337
3337
  className: "text-neutral-900 dark:text-neutral-100",
3338
- children: i.title
3338
+ children: c.title
3339
3339
  }
3340
3340
  ),
3341
- i.description && /* @__PURE__ */ e(
3341
+ c.description && /* @__PURE__ */ e(
3342
3342
  Y,
3343
3343
  {
3344
3344
  variant: "body",
3345
3345
  size: "sm",
3346
3346
  className: "text-neutral-600 dark:text-neutral-400 mt-1",
3347
- children: i.description
3347
+ children: c.description
3348
3348
  }
3349
3349
  )
3350
3350
  ] }),
@@ -3376,7 +3376,7 @@ const rr = ({
3376
3376
  ))) }) })
3377
3377
  ]
3378
3378
  },
3379
- i.id
3379
+ c.id
3380
3380
  );
3381
3381
  },
3382
3382
  [v, P, N, T]
@@ -3392,7 +3392,7 @@ const rr = ({
3392
3392
  );
3393
3393
  return /* @__PURE__ */ d("form", { ref: k, onSubmit: H, className: W, children: [
3394
3394
  /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(V) }),
3395
- g && /* @__PURE__ */ d("div", { className: x("flex gap-3 justify-end pt-8"), children: [
3395
+ b && /* @__PURE__ */ d("div", { className: x("flex gap-3 justify-end pt-8"), children: [
3396
3396
  n && /* @__PURE__ */ e(
3397
3397
  te,
3398
3398
  {
@@ -3409,12 +3409,12 @@ const rr = ({
3409
3409
  te,
3410
3410
  {
3411
3411
  type: "submit",
3412
- variant: b.variant,
3413
- size: b.size || l,
3414
- disabled: b.disabled || u,
3412
+ variant: g.variant,
3413
+ size: g.size || l,
3414
+ disabled: g.disabled || u,
3415
3415
  loading: u,
3416
- className: b.className,
3417
- children: b.label
3416
+ className: g.className,
3417
+ children: g.label
3418
3418
  }
3419
3419
  )
3420
3420
  ] })
@@ -3446,9 +3446,9 @@ function nr({
3446
3446
  dot: r = !1,
3447
3447
  icon: n,
3448
3448
  dismissible: s = !1,
3449
- onDismiss: c,
3450
- className: f,
3451
- children: b,
3449
+ onDismiss: i,
3450
+ className: m,
3451
+ children: g,
3452
3452
  ...p
3453
3453
  }) {
3454
3454
  return /* @__PURE__ */ d(
@@ -3461,7 +3461,7 @@ function nr({
3461
3461
  $t[t],
3462
3462
  // Size styles
3463
3463
  zt[a],
3464
- f
3464
+ m
3465
3465
  ),
3466
3466
  ...p,
3467
3467
  children: [
@@ -3474,12 +3474,12 @@ function nr({
3474
3474
  )
3475
3475
  }
3476
3476
  ),
3477
- n && /* @__PURE__ */ e("span", { className: x("flex-shrink-0", b && "mr-1"), children: n }),
3478
- b,
3479
- s && c && /* @__PURE__ */ e(
3477
+ n && /* @__PURE__ */ e("span", { className: x("flex-shrink-0", g && "mr-1"), children: n }),
3478
+ g,
3479
+ s && i && /* @__PURE__ */ e(
3480
3480
  "button",
3481
3481
  {
3482
- onClick: c,
3482
+ onClick: i,
3483
3483
  className: "ml-1.5 flex-shrink-0 hover:opacity-70 transition-opacity",
3484
3484
  "aria-label": "Remove badge",
3485
3485
  children: /* @__PURE__ */ e("svg", { className: "h-3 w-3", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
@@ -3520,7 +3520,7 @@ function ar({
3520
3520
  label: r = "Loading...",
3521
3521
  showLabel: n = !1,
3522
3522
  className: s,
3523
- ...c
3523
+ ...i
3524
3524
  }) {
3525
3525
  return /* @__PURE__ */ d(
3526
3526
  "div",
@@ -3530,7 +3530,7 @@ function ar({
3530
3530
  n ? "flex-col space-y-2" : "",
3531
3531
  s
3532
3532
  ),
3533
- ...c,
3533
+ ...i,
3534
3534
  children: [
3535
3535
  /* @__PURE__ */ d(
3536
3536
  "svg",
@@ -3588,12 +3588,12 @@ const lr = ({
3588
3588
  size: r = "md",
3589
3589
  aspectRatio: n = "auto",
3590
3590
  radius: s = "md",
3591
- showLoading: c = !0,
3592
- showError: f = !0,
3593
- fallback: b,
3591
+ showLoading: i = !0,
3592
+ showError: m = !0,
3593
+ fallback: g,
3594
3594
  loadingContent: p,
3595
- errorContent: g,
3596
- className: m,
3595
+ errorContent: b,
3596
+ className: f,
3597
3597
  onLoad: l,
3598
3598
  onError: u,
3599
3599
  ...h
@@ -3601,8 +3601,8 @@ const lr = ({
3601
3601
  const [k, C] = O(!0), [v, j] = O(!1), [N, q] = O(t), P = (W) => {
3602
3602
  C(!1), j(!1), l?.(W);
3603
3603
  }, U = (W) => {
3604
- if (C(!1), j(!0), b && N !== b) {
3605
- q(b), j(!1), C(!0);
3604
+ if (C(!1), j(!0), g && N !== g) {
3605
+ q(g), j(!1), C(!0);
3606
3606
  return;
3607
3607
  }
3608
3608
  u?.(W);
@@ -3633,7 +3633,7 @@ const lr = ({
3633
3633
  "rounded-xl": s === "xl",
3634
3634
  "rounded-full": s === "full"
3635
3635
  },
3636
- m
3636
+ f
3637
3637
  ), A = x(
3638
3638
  "w-full h-full object-cover transition-opacity duration-200",
3639
3639
  {
@@ -3676,8 +3676,8 @@ const lr = ({
3676
3676
  onError: U
3677
3677
  }
3678
3678
  ),
3679
- k && c && /* @__PURE__ */ e("div", { className: H, children: p || T }),
3680
- v && f && /* @__PURE__ */ e("div", { className: H, children: g || V })
3679
+ k && i && /* @__PURE__ */ e("div", { className: H, children: p || T }),
3680
+ v && m && /* @__PURE__ */ e("div", { className: H, children: b || V })
3681
3681
  ] });
3682
3682
  }, sr = ({
3683
3683
  title: t,
@@ -3685,22 +3685,22 @@ const lr = ({
3685
3685
  actions: r = [],
3686
3686
  children: n,
3687
3687
  className: s,
3688
- backLabel: c = "Back",
3689
- backClassName: f,
3690
- onBack: b,
3688
+ backLabel: i = "Back",
3689
+ backClassName: m,
3690
+ onBack: g,
3691
3691
  editable: p = !1,
3692
- onTitleChange: g
3692
+ onTitleChange: b
3693
3693
  }) => {
3694
- const [m, l] = O(!1), [u, h] = O(t), k = Z(null);
3694
+ const [f, l] = O(!1), [u, h] = O(t), k = Z(null);
3695
3695
  K(() => {
3696
3696
  h(t);
3697
3697
  }, [t]), K(() => {
3698
- m && k.current && (k.current.focus(), k.current.select());
3699
- }, [m]);
3698
+ f && k.current && (k.current.focus(), k.current.select());
3699
+ }, [f]);
3700
3700
  const C = () => {
3701
3701
  p && l(!0);
3702
3702
  }, v = () => {
3703
- l(!1), u.trim() !== "" && u !== t && g ? g(u.trim()) : h(t);
3703
+ l(!1), u.trim() !== "" && u !== t && b ? b(u.trim()) : h(t);
3704
3704
  }, j = (N) => {
3705
3705
  N.key === "Enter" ? k.current?.blur() : N.key === "Escape" && (h(t), l(!1));
3706
3706
  };
@@ -3714,19 +3714,19 @@ const lr = ({
3714
3714
  children: [
3715
3715
  /* @__PURE__ */ d("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
3716
3716
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2 text-default", children: [
3717
- b && /* @__PURE__ */ e(
3717
+ g && /* @__PURE__ */ e(
3718
3718
  "button",
3719
3719
  {
3720
3720
  type: "button",
3721
- onClick: b,
3721
+ onClick: g,
3722
3722
  className: x(
3723
3723
  "flex items-center text-sm cursor-pointer transition",
3724
- f
3724
+ m
3725
3725
  ),
3726
3726
  children: /* @__PURE__ */ e(we, { size: 16, color: "currentColor" })
3727
3727
  }
3728
3728
  ),
3729
- m ? /* @__PURE__ */ e(
3729
+ f ? /* @__PURE__ */ e(
3730
3730
  "input",
3731
3731
  {
3732
3732
  ref: k,
@@ -3820,37 +3820,37 @@ const lr = ({
3820
3820
  ),
3821
3821
  s && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: s }),
3822
3822
  t.length > 0 && /* @__PURE__ */ e("div", { className: x("flex flex-wrap gap-2", !s && "ml-auto"), children: t.map(
3823
- (c) => c.splitOptions && c.splitOptions.length > 0 ? /* @__PURE__ */ e(
3823
+ (i) => i.splitOptions && i.splitOptions.length > 0 ? /* @__PURE__ */ e(
3824
3824
  ze,
3825
3825
  {
3826
- label: c.label,
3827
- onClick: c.onClick,
3828
- icon: c.icon,
3829
- variant: c.variant === "primary" ? "primary" : "secondary",
3830
- options: c.splitOptions,
3831
- disabled: c.disabled
3826
+ label: i.label,
3827
+ onClick: i.onClick,
3828
+ icon: i.icon,
3829
+ variant: i.variant === "primary" ? "primary" : "secondary",
3830
+ options: i.splitOptions,
3831
+ disabled: i.disabled
3832
3832
  },
3833
- c.id
3833
+ i.id
3834
3834
  ) : /* @__PURE__ */ d(
3835
3835
  "button",
3836
3836
  {
3837
3837
  type: "button",
3838
- onClick: (f) => {
3839
- f.stopPropagation(), f.target.blur(), c.onClick();
3838
+ onClick: (m) => {
3839
+ m.stopPropagation(), m.target.blur(), i.onClick();
3840
3840
  },
3841
- disabled: c.disabled,
3841
+ disabled: i.disabled,
3842
3842
  className: x("btn", {
3843
- o__primary: c.variant === "primary",
3844
- o__secondary: c.variant === "secondary" || c.variant === "outline",
3845
- o__ghost: c.variant === "ghost",
3846
- o__destructive: c.variant === "destructive"
3843
+ o__primary: i.variant === "primary",
3844
+ o__secondary: i.variant === "secondary" || i.variant === "outline",
3845
+ o__ghost: i.variant === "ghost",
3846
+ o__destructive: i.variant === "destructive"
3847
3847
  }),
3848
3848
  children: [
3849
- c.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: c.icon }),
3850
- c.label
3849
+ i.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: i.icon }),
3850
+ i.label
3851
3851
  ]
3852
3852
  },
3853
- c.id
3853
+ i.id
3854
3854
  )
3855
3855
  ) })
3856
3856
  ] });
@@ -3866,25 +3866,25 @@ const cr = ({
3866
3866
  size: r = "md",
3867
3867
  className: n
3868
3868
  }) => {
3869
- const s = (m) => {
3870
- if (!m) return "-";
3869
+ const s = (f) => {
3870
+ if (!f) return "-";
3871
3871
  try {
3872
- return new Date(m).toLocaleDateString("nl-NL", {
3872
+ return new Date(f).toLocaleDateString("nl-NL", {
3873
3873
  year: "numeric",
3874
3874
  month: "long",
3875
3875
  day: "numeric"
3876
3876
  });
3877
3877
  } catch {
3878
- return String(m);
3878
+ return String(f);
3879
3879
  }
3880
- }, c = (m) => m ? "Ja" : "Nee", f = (m, l) => {
3881
- if (!l) return String(m || "-");
3882
- const u = l.find((h) => h.value === m);
3883
- return u ? u.label : String(m || "-");
3884
- }, b = ae(
3885
- (m) => {
3886
- const l = jt(a, m.name);
3887
- if (m.type === "array") {
3880
+ }, i = (f) => f ? "Ja" : "Nee", m = (f, l) => {
3881
+ if (!l) return String(f || "-");
3882
+ const u = l.find((h) => h.value === f);
3883
+ return u ? u.label : String(f || "-");
3884
+ }, g = ae(
3885
+ (f) => {
3886
+ const l = jt(a, f.name);
3887
+ if (f.type === "array") {
3888
3888
  const h = l;
3889
3889
  return !h || h.length === 0 ? /* @__PURE__ */ e(
3890
3890
  Y,
@@ -3907,13 +3907,13 @@ const cr = ({
3907
3907
  weight: "medium",
3908
3908
  className: "text-neutral-700 dark:text-neutral-300",
3909
3909
  children: [
3910
- m.label,
3910
+ f.label,
3911
3911
  " ",
3912
3912
  C + 1
3913
3913
  ]
3914
3914
  }
3915
3915
  ) }),
3916
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: m.arrayFields?.map((v) => {
3916
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: f.arrayFields?.map((v) => {
3917
3917
  const j = k?.[v.name];
3918
3918
  let N = "-";
3919
3919
  switch (v.type) {
@@ -3927,13 +3927,13 @@ const cr = ({
3927
3927
  break;
3928
3928
  case "select":
3929
3929
  case "radio":
3930
- N = f(
3930
+ N = m(
3931
3931
  j,
3932
3932
  v.options
3933
3933
  );
3934
3934
  break;
3935
3935
  case "checkbox":
3936
- N = c(j);
3936
+ N = i(j);
3937
3937
  break;
3938
3938
  case "date":
3939
3939
  N = s(j);
@@ -3972,10 +3972,10 @@ const cr = ({
3972
3972
  C
3973
3973
  )) });
3974
3974
  }
3975
- if (m.type === "custom" && m.customComponent)
3976
- return m.customComponent({ value: l });
3977
- if (m.format) {
3978
- const h = m.format(l, a);
3975
+ if (f.type === "custom" && f.customComponent)
3976
+ return f.customComponent({ value: l });
3977
+ if (f.format) {
3978
+ const h = f.format(l, a);
3979
3979
  return /* @__PURE__ */ e(
3980
3980
  Y,
3981
3981
  {
@@ -3987,7 +3987,7 @@ const cr = ({
3987
3987
  );
3988
3988
  }
3989
3989
  let u = "-";
3990
- switch (m.type) {
3990
+ switch (f.type) {
3991
3991
  case "text":
3992
3992
  case "email":
3993
3993
  case "password":
@@ -4001,10 +4001,10 @@ const cr = ({
4001
4001
  break;
4002
4002
  case "select":
4003
4003
  case "radio":
4004
- u = f(l, m.options);
4004
+ u = m(l, f.options);
4005
4005
  break;
4006
4006
  case "checkbox":
4007
- u = c(l);
4007
+ u = i(l);
4008
4008
  break;
4009
4009
  case "date":
4010
4010
  u = s(l);
@@ -4024,24 +4024,24 @@ const cr = ({
4024
4024
  },
4025
4025
  [a]
4026
4026
  ), p = ae(
4027
- (m) => {
4028
- if (m.conditional && !m.conditional(a))
4027
+ (f) => {
4028
+ if (f.conditional && !f.conditional(a))
4029
4029
  return null;
4030
- const l = m.items.filter((h) => !(h.hidden || h.conditional && !h.conditional(a)));
4030
+ const l = f.items.filter((h) => !(h.hidden || h.conditional && !h.conditional(a)));
4031
4031
  if (l.length === 0) return null;
4032
4032
  const u = x(
4033
4033
  "space-y-4",
4034
4034
  {
4035
- "grid gap-4": m.layout === "grid",
4036
- "flex flex-wrap gap-4": m.layout === "flex"
4035
+ "grid gap-4": f.layout === "grid",
4036
+ "flex flex-wrap gap-4": f.layout === "flex"
4037
4037
  },
4038
- m.layout === "grid" && {
4039
- "grid-cols-1": !m.columns || m.columns === 1,
4040
- "grid-cols-2": m.columns === 2,
4041
- "grid-cols-3": m.columns === 3,
4042
- "grid-cols-4": m.columns === 4
4038
+ f.layout === "grid" && {
4039
+ "grid-cols-1": !f.columns || f.columns === 1,
4040
+ "grid-cols-2": f.columns === 2,
4041
+ "grid-cols-3": f.columns === 3,
4042
+ "grid-cols-4": f.columns === 4
4043
4043
  },
4044
- m.className
4044
+ f.className
4045
4045
  );
4046
4046
  return /* @__PURE__ */ d(
4047
4047
  "div",
@@ -4056,16 +4056,16 @@ const cr = ({
4056
4056
  size: "lg",
4057
4057
  weight: "semibold",
4058
4058
  className: "text-neutral-900 dark:text-neutral-100",
4059
- children: m.title
4059
+ children: f.title
4060
4060
  }
4061
4061
  ),
4062
- m.description && /* @__PURE__ */ e(
4062
+ f.description && /* @__PURE__ */ e(
4063
4063
  Y,
4064
4064
  {
4065
4065
  variant: "body",
4066
4066
  size: "sm",
4067
4067
  className: "text-neutral-600 dark:text-neutral-400 mt-1",
4068
- children: m.description
4068
+ children: f.description
4069
4069
  }
4070
4070
  )
4071
4071
  ] }),
@@ -4087,18 +4087,18 @@ const cr = ({
4087
4087
  children: h.label
4088
4088
  }
4089
4089
  ),
4090
- b(h)
4090
+ g(h)
4091
4091
  ]
4092
4092
  },
4093
4093
  h.name
4094
4094
  )) }) })
4095
4095
  ]
4096
4096
  },
4097
- m.id
4097
+ f.id
4098
4098
  );
4099
4099
  },
4100
- [a, b]
4101
- ), g = x(
4100
+ [a, g]
4101
+ ), b = x(
4102
4102
  "space-y-6",
4103
4103
  {
4104
4104
  "max-w-md": r === "sm",
@@ -4108,10 +4108,10 @@ const cr = ({
4108
4108
  },
4109
4109
  n
4110
4110
  );
4111
- return /* @__PURE__ */ e("div", { className: g, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(p) }) });
4112
- }, De = ({ item: t, isSelectedHandler: a, onClick: r }) => {
4113
- const [n, s] = O(!1), c = t.children && t.children.length > 0, f = () => {
4114
- c && s(!n);
4111
+ return /* @__PURE__ */ e("div", { className: b, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(p) }) });
4112
+ }, De = ({ item: t, isSelectedHandler: a, onClick: r, depth: n = 0 }) => {
4113
+ const [s, i] = O(t.defaultCollapsed ?? !1), m = t.children && t.children.length > 0, g = m && n === 0, p = () => {
4114
+ m && i(!s);
4115
4115
  }, b = a ? a(t.path) : !1;
4116
4116
  return /* @__PURE__ */ d("li", { children: [
4117
4117
  /* @__PURE__ */ d(
@@ -4120,30 +4120,31 @@ const cr = ({
4120
4120
  className: x(
4121
4121
  "flex flex-row w-full py-1 rounded-lg items-center h-8 transition-colors cursor-pointer px-3 pr-1 no-underline text-sm",
4122
4122
  {
4123
- "active-nav-item": b && !c,
4124
- "shadow-lvl-0": b && !c,
4125
- "font-semibold": b || c || t.children !== void 0
4123
+ "active-nav-item": b && !m,
4124
+ "shadow-lvl-0": b && !m,
4125
+ "font-semibold": b || g
4126
4126
  }
4127
4127
  ),
4128
4128
  onClick: () => {
4129
- c ? f() : t.path && r?.(t.path);
4129
+ m ? p() : t.path && r?.(t.path);
4130
4130
  },
4131
4131
  children: [
4132
- t.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: t.icon }),
4133
- /* @__PURE__ */ e("span", { className: "flex-1", children: t.label }),
4132
+ t.icon && /* @__PURE__ */ e("span", { className: "mr-2 shrink-0", children: t.icon }),
4133
+ /* @__PURE__ */ e("span", { className: "flex-1 min-w-0 truncate", children: t.label }),
4134
4134
  t.count !== void 0 && t.count > 0 && /* @__PURE__ */ e("span", { className: "ml-2 mr-1.5", children: t.count }),
4135
- c && /* @__PURE__ */ e("span", { className: `${n ? "collapsed" : ""}`, children: /* @__PURE__ */ e(He, { className: "w-4 h-4 text-muted" }) })
4135
+ m && /* @__PURE__ */ e("span", { className: `${s ? "collapsed" : ""}`, children: /* @__PURE__ */ e(He, { className: "w-4 h-4 text-muted" }) })
4136
4136
  ]
4137
4137
  }
4138
4138
  ),
4139
- c && !n && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: t.children?.map((p, g) => /* @__PURE__ */ e(
4139
+ m && !s && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: t.children?.map((f, l) => /* @__PURE__ */ e(
4140
4140
  De,
4141
4141
  {
4142
- item: p,
4142
+ item: f,
4143
4143
  isSelectedHandler: a,
4144
- onClick: r
4144
+ onClick: r,
4145
+ depth: n + 1
4145
4146
  },
4146
- g
4147
+ l
4147
4148
  )) })
4148
4149
  ] });
4149
4150
  }, ir = ({
@@ -4152,22 +4153,22 @@ const cr = ({
4152
4153
  items: r,
4153
4154
  isSelectedHandler: n,
4154
4155
  onClick: s,
4155
- preMenuItemsComponent: c
4156
+ preMenuItemsComponent: i
4156
4157
  }) => /* @__PURE__ */ d("div", { className: "flex flex-col h-screen mb-6", children: [
4157
4158
  /* @__PURE__ */ d("div", { className: "sidebar-menu-header", children: [
4158
4159
  /* @__PURE__ */ e("span", { className: "text-xl font-semibold text-default mb-2", children: t }),
4159
- /* @__PURE__ */ e("div", { className: "sidebar-menu-actions", children: a?.map((f, b) => /* @__PURE__ */ e("span", { className: "sidebar-menu-action-icon", children: f }, b)) })
4160
+ /* @__PURE__ */ e("div", { className: "sidebar-menu-actions", children: a?.map((m, g) => /* @__PURE__ */ e("span", { className: "sidebar-menu-action-icon", children: m }, g)) })
4160
4161
  ] }),
4161
- c && /* @__PURE__ */ e("div", { className: "sidebar-menu-pre-items mb-4", children: c }),
4162
+ i && /* @__PURE__ */ e("div", { className: "sidebar-menu-pre-items mb-4", children: i }),
4162
4163
  /* @__PURE__ */ e("ul", { children: r.map(
4163
- (f, b) => !f.path && !f.label && !f.children ? /* @__PURE__ */ e("span", { className: "flex w-full h-4" }, b) : /* @__PURE__ */ e(
4164
+ (m, g) => !m.path && !m.label && !m.children ? /* @__PURE__ */ e("span", { className: "flex w-full h-4" }, g) : /* @__PURE__ */ e(
4164
4165
  De,
4165
4166
  {
4166
- item: f,
4167
+ item: m,
4167
4168
  isSelectedHandler: n,
4168
4169
  onClick: s
4169
4170
  },
4170
- b
4171
+ g
4171
4172
  )
4172
4173
  ) })
4173
4174
  ] }), dr = ({
@@ -4176,23 +4177,23 @@ const cr = ({
4176
4177
  weight: r = "bold",
4177
4178
  color: n = "current",
4178
4179
  align: s = "left",
4179
- truncate: c = !1,
4180
- className: f,
4181
- children: b,
4180
+ truncate: i = !1,
4181
+ className: m,
4182
+ children: g,
4182
4183
  ...p
4183
4184
  }) => {
4184
- const g = a || Bt(t), m = x(
4185
+ const b = a || Bt(t), f = x(
4185
4186
  "font-primary",
4186
4187
  // Size variants
4187
4188
  {
4188
- "text-xs": g === "xs",
4189
- "text-sm": g === "sm",
4190
- "text-base": g === "md",
4191
- "text-lg": g === "lg",
4192
- "text-xl": g === "xl",
4193
- "text-2xl": g === "2xl",
4194
- "text-3xl": g === "3xl",
4195
- "text-4xl": g === "4xl"
4189
+ "text-xs": b === "xs",
4190
+ "text-sm": b === "sm",
4191
+ "text-base": b === "md",
4192
+ "text-lg": b === "lg",
4193
+ "text-xl": b === "xl",
4194
+ "text-2xl": b === "2xl",
4195
+ "text-3xl": b === "3xl",
4196
+ "text-4xl": b === "4xl"
4196
4197
  },
4197
4198
  // Weight variants
4198
4199
  {
@@ -4222,11 +4223,11 @@ const cr = ({
4222
4223
  },
4223
4224
  // Truncation
4224
4225
  {
4225
- truncate: c
4226
+ truncate: i
4226
4227
  },
4227
- f
4228
+ m
4228
4229
  ), l = `h${t}`;
4229
- return /* @__PURE__ */ e(l, { className: m, ...p, children: b });
4230
+ return /* @__PURE__ */ e(l, { className: f, ...p, children: g });
4230
4231
  };
4231
4232
  function Bt(t) {
4232
4233
  return {
@@ -4244,10 +4245,10 @@ const ur = ({
4244
4245
  variant: r = "default",
4245
4246
  size: n = "md",
4246
4247
  interactive: s = !1,
4247
- className: c,
4248
- itemClassName: f
4248
+ className: i,
4249
+ itemClassName: m
4249
4250
  }) => {
4250
- const b = x(
4251
+ const g = x(
4251
4252
  // Base styles
4252
4253
  "space-y-1",
4253
4254
  // Variant styles
@@ -4267,7 +4268,7 @@ const ur = ({
4267
4268
  "text-base": n === "md",
4268
4269
  "text-lg": n === "lg"
4269
4270
  },
4270
- c
4271
+ i
4271
4272
  ), p = (l, u) => x(
4272
4273
  // Base item styles
4273
4274
  "transition-colors duration-200",
@@ -4286,40 +4287,40 @@ const ur = ({
4286
4287
  l.disabled && {
4287
4288
  "opacity-50 cursor-not-allowed": !0
4288
4289
  },
4289
- f
4290
- ), g = (l) => {
4290
+ m
4291
+ ), b = (l) => {
4291
4292
  s && !l.disabled && l.onClick && l.onClick();
4292
- }, m = (l, u) => {
4293
+ }, f = (l, u) => {
4293
4294
  s && !u.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), u.onClick?.());
4294
4295
  };
4295
- return a === "ordered" ? /* @__PURE__ */ e("ol", { className: b, children: t.map((l, u) => /* @__PURE__ */ e(
4296
+ return a === "ordered" ? /* @__PURE__ */ e("ol", { className: g, children: t.map((l, u) => /* @__PURE__ */ e(
4296
4297
  "li",
4297
4298
  {
4298
4299
  className: p(l),
4299
- onClick: () => g(l),
4300
- onKeyDown: (h) => m(h, l),
4300
+ onClick: () => b(l),
4301
+ onKeyDown: (h) => f(h, l),
4301
4302
  tabIndex: s && !l.disabled ? 0 : void 0,
4302
4303
  role: s ? "button" : void 0,
4303
4304
  children: l.content
4304
4305
  },
4305
4306
  l.id || u
4306
- )) }) : a === "description" ? /* @__PURE__ */ e("dl", { className: b, children: t.map((l, u) => /* @__PURE__ */ e(
4307
+ )) }) : a === "description" ? /* @__PURE__ */ e("dl", { className: g, children: t.map((l, u) => /* @__PURE__ */ e(
4307
4308
  "div",
4308
4309
  {
4309
4310
  className: p(l),
4310
- onClick: () => g(l),
4311
- onKeyDown: (h) => m(h, l),
4311
+ onClick: () => b(l),
4312
+ onKeyDown: (h) => f(h, l),
4312
4313
  tabIndex: s && !l.disabled ? 0 : void 0,
4313
4314
  role: s ? "button" : void 0,
4314
4315
  children: l.content
4315
4316
  },
4316
4317
  l.id || u
4317
- )) }) : /* @__PURE__ */ e("ul", { className: b, children: t.map((l, u) => /* @__PURE__ */ e(
4318
+ )) }) : /* @__PURE__ */ e("ul", { className: g, children: t.map((l, u) => /* @__PURE__ */ e(
4318
4319
  "li",
4319
4320
  {
4320
4321
  className: p(l),
4321
- onClick: () => g(l),
4322
- onKeyDown: (h) => m(h, l),
4322
+ onClick: () => b(l),
4323
+ onKeyDown: (h) => f(h, l),
4323
4324
  tabIndex: s && !l.disabled ? 0 : void 0,
4324
4325
  role: s ? "button" : void 0,
4325
4326
  children: l.content
@@ -4332,13 +4333,13 @@ const ur = ({
4332
4333
  onClose: r,
4333
4334
  labels: n,
4334
4335
  initialCommandPath: s,
4335
- initialActiveIndex: c
4336
+ initialActiveIndex: i
4336
4337
  }) => {
4337
- const [f, b] = O(""), [p, g] = O(s || []), [m, l] = O(c || 0), u = Z(null), h = Z(null), C = (p.length ? t.find((v) => v.id === p[0])?.subCommands || [] : t).filter(
4338
- (v) => v.label.toLowerCase().includes(f.toLowerCase())
4338
+ const [m, g] = O(""), [p, b] = O(s || []), [f, l] = O(i || 0), u = Z(null), h = Z(null), C = (p.length ? t.find((v) => v.id === p[0])?.subCommands || [] : t).filter(
4339
+ (v) => v.label.toLowerCase().includes(m.toLowerCase())
4339
4340
  );
4340
4341
  return K(() => {
4341
- a || (b(""), g(s || []), l(c || 0));
4342
+ a || (g(""), b(s || []), l(i || 0));
4342
4343
  }, [a]), K(() => {
4343
4344
  const v = (j) => {
4344
4345
  if (a) {
@@ -4353,21 +4354,21 @@ const ur = ({
4353
4354
  (N) => N < C.length - 1 ? N + 1 : 0
4354
4355
  );
4355
4356
  else if (j.key === "Enter") {
4356
- const N = C[m];
4357
- N && (N.subCommands ? (g([...p, N.id]), l(0)) : N.action && (N.action(), r()));
4357
+ const N = C[f];
4358
+ N && (N.subCommands ? (b([...p, N.id]), l(0)) : N.action && (N.action(), r()));
4358
4359
  }
4359
4360
  }
4360
4361
  };
4361
4362
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
4362
- }, [a, r, C, m, p]), K(() => {
4363
+ }, [a, r, C, f, p]), K(() => {
4363
4364
  const v = (j) => {
4364
4365
  u.current && !u.current.contains(j.target) && r();
4365
4366
  };
4366
4367
  return a && document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
4367
4368
  }, [a, r]), K(() => {
4368
4369
  if (!a) return;
4369
- h.current?.querySelector(`[data-index="${m}"]`)?.scrollIntoView({ block: "nearest" });
4370
- }, [m, a]), a ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center shadow-lvl-0", children: /* @__PURE__ */ d(
4370
+ h.current?.querySelector(`[data-index="${f}"]`)?.scrollIntoView({ block: "nearest" });
4371
+ }, [f, a]), a ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center shadow-lvl-0", children: /* @__PURE__ */ d(
4371
4372
  "div",
4372
4373
  {
4373
4374
  className: "flex flex-col w-full max-w-lg max-h-[80vh] p-2 mx-auto rounded-xl border border-neutral shadow-lg bg-module",
@@ -4381,8 +4382,8 @@ const ur = ({
4381
4382
  type: "text",
4382
4383
  autoFocus: !0,
4383
4384
  placeholder: n?.searchPlaceholder || "Search commands...",
4384
- value: f,
4385
- onChange: (v) => b(v.target.value),
4385
+ value: m,
4386
+ onChange: (v) => g(v.target.value),
4386
4387
  className: "w-full py-2 text-default border-0 focus:outline-none focus:ring-0 focus:border-0 focus:shadow-none bg-transparent"
4387
4388
  }
4388
4389
  )
@@ -4398,9 +4399,9 @@ const ur = ({
4398
4399
  "div",
4399
4400
  {
4400
4401
  "data-index": j,
4401
- className: `flex items-center p-2 cursor-pointer rounded-md text-default ${j === m ? "bg-neutral-container" : ""}`,
4402
+ className: `flex items-center p-2 cursor-pointer rounded-md text-default ${j === f ? "bg-neutral-container" : ""}`,
4402
4403
  onClick: () => {
4403
- v.subCommands ? (g([...p, v.id]), l(0)) : v.action && (v.action(), r());
4404
+ v.subCommands ? (b([...p, v.id]), l(0)) : v.action && (v.action(), r());
4404
4405
  },
4405
4406
  onMouseEnter: () => l(j),
4406
4407
  children: [
@@ -4499,26 +4500,26 @@ const ur = ({
4499
4500
  background: r,
4500
4501
  radius: n,
4501
4502
  shadow: s,
4502
- border: c,
4503
- borderColor: f,
4504
- className: b,
4503
+ border: i,
4504
+ borderColor: m,
4505
+ className: g,
4505
4506
  children: p,
4506
- ...g
4507
- }, m) => /* @__PURE__ */ e(
4507
+ ...b
4508
+ }, f) => /* @__PURE__ */ e(
4508
4509
  "div",
4509
4510
  {
4510
- ref: m,
4511
+ ref: f,
4511
4512
  className: x(
4512
4513
  t && Pt[t],
4513
4514
  a && _t[a],
4514
4515
  r && Ot[r],
4515
4516
  n && Vt[n],
4516
4517
  s && Ft[s],
4517
- c && Wt[c],
4518
- f && Rt[f],
4519
- b
4518
+ i && Wt[i],
4519
+ m && Rt[m],
4520
+ g
4520
4521
  ),
4521
- ...g,
4522
+ ...b,
4522
4523
  children: p
4523
4524
  }
4524
4525
  )
@@ -4534,9 +4535,9 @@ function hr({
4534
4535
  framework: r = "react",
4535
4536
  fallback: n,
4536
4537
  componentProps: s,
4537
- className: c
4538
+ className: i
4538
4539
  }) {
4539
- const f = Z(null), [b, p] = O(!0), [g, m] = O(null), l = Z(null);
4540
+ const m = Z(null), [g, p] = O(!0), [b, f] = O(null), l = Z(null);
4540
4541
  return Z(null), K(() => {
4541
4542
  let u = !0;
4542
4543
  return (async () => {
@@ -4545,7 +4546,7 @@ function hr({
4545
4546
  const k = await a();
4546
4547
  if (!u) return;
4547
4548
  const C = k.component || k.default || k;
4548
- m(r === "react" ? () => C : () => k);
4549
+ f(r === "react" ? () => C : () => k);
4549
4550
  } catch (k) {
4550
4551
  console.error(`[FederatedResource] Load failed: ${t}`, k);
4551
4552
  } finally {
@@ -4555,25 +4556,25 @@ function hr({
4555
4556
  u = !1;
4556
4557
  };
4557
4558
  }, [t, a]), K(() => {
4558
- if (b || !g || r === "react") return;
4559
- const u = f.current;
4559
+ if (g || !b || r === "react") return;
4560
+ const u = m.current;
4560
4561
  if (u) {
4561
4562
  if (r === "svelte") {
4562
- const h = g.default || g, k = new h({ target: u, props: s || {} });
4563
+ const h = b.default || b, k = new h({ target: u, props: s || {} });
4563
4564
  return l.current = k, () => k.$destroy();
4564
4565
  }
4565
- if (g.mount) {
4566
- const h = g.mount({ container: u, props: s || {} });
4566
+ if (b.mount) {
4567
+ const h = b.mount({ container: u, props: s || {} });
4567
4568
  return () => {
4568
- typeof h == "function" ? h() : g.unmount?.(u);
4569
+ typeof h == "function" ? h() : b.unmount?.(u);
4569
4570
  };
4570
4571
  }
4571
4572
  }
4572
- }, [g, r, b]), K(() => {
4573
+ }, [b, r, g]), K(() => {
4573
4574
  r === "svelte" && l.current && l.current.$set?.(s);
4574
- }, [s, r]), /* @__PURE__ */ d("div", { ref: f, className: c, style: { display: "contents" }, children: [
4575
- b && n,
4576
- r === "react" && g && /* @__PURE__ */ e(g, { ...s })
4575
+ }, [s, r]), /* @__PURE__ */ d("div", { ref: m, className: i, style: { display: "contents" }, children: [
4576
+ g && n,
4577
+ r === "react" && b && /* @__PURE__ */ e(b, { ...s })
4577
4578
  ] });
4578
4579
  }
4579
4580
  class pr extends Ge {