@opencxh/ui-kit 3.45.0 → 3.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { clsx as Te } from "clsx";
2
- import { jsxs as c, jsx as e, Fragment as Me } from "react/jsx-runtime";
3
- import { VideoOff as Ae, User as Ie, MicOff as je, Mic as Be, ChevronDown as Pe, FileText as pe, HardDrive as Ne, X as Oe, ArrowLeft as Ee, Search as Ve, FolderPlus as _e, Upload as Fe, Folder as we, ChevronDownIcon as We, ChevronRight as Re } from "lucide-react";
4
- import se, { useRef as X, useEffect as G, forwardRef as ce, useState as _, useCallback as ae, useMemo as ie, createContext as qe, Component as He } from "react";
1
+ import { clsx as Ae } from "clsx";
2
+ import { jsxs as d, jsx as e, Fragment as Ee } from "react/jsx-runtime";
3
+ import { VideoOff as Ie, User as je, MicOff as Be, Mic as Pe, ChevronDown as _e, FileText as pe, HardDrive as we, X as Oe, ArrowLeft as Ne, Search as Ve, FolderPlus as Fe, Upload as We, Folder as Ce, ChevronDownIcon as Re, ChevronRight as qe } from "lucide-react";
4
+ import se, { useRef as X, useEffect as G, forwardRef as ce, useState as V, useCallback as ae, useMemo as ie, createContext as He, Component as Ue } from "react";
5
5
  function g(...r) {
6
- return Te(r);
6
+ return Ae(r);
7
7
  }
8
8
  function Gr(r) {
9
9
  return (n, t) => r[n]?.[t] || "";
@@ -13,23 +13,23 @@ function Kr(r) {
13
13
  }
14
14
  function Jr({ tiles: r, pinned: n, className: t }) {
15
15
  if (n)
16
- return /* @__PURE__ */ c("div", { className: g("flex flex-col md:flex-row gap-2 h-full", t), children: [
16
+ return /* @__PURE__ */ d("div", { className: g("flex flex-col md:flex-row gap-2 h-full", t), children: [
17
17
  /* @__PURE__ */ e("div", { className: "flex-1 min-h-[240px]", children: n }),
18
- r.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: r.map((o, i) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: o }, i)) })
18
+ r.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: r.map((s, c) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: s }, c)) })
19
19
  ] });
20
20
  const a = r.length <= 1 ? "grid-cols-1" : r.length <= 4 ? "grid-cols-2" : r.length <= 9 ? "grid-cols-3" : "grid-cols-4";
21
- return /* @__PURE__ */ e("div", { className: g("grid gap-2 h-full", a, t), children: r.map((o, i) => /* @__PURE__ */ e("div", { children: o }, i)) });
21
+ return /* @__PURE__ */ e("div", { className: g("grid gap-2 h-full", a, t), children: r.map((s, c) => /* @__PURE__ */ e("div", { children: s }, c)) });
22
22
  }
23
23
  function Yr({
24
24
  name: r,
25
25
  avatarUrl: n,
26
26
  muted: t,
27
27
  speaking: a,
28
- hasVideo: o,
29
- videoSlot: i,
28
+ hasVideo: s,
29
+ videoSlot: c,
30
30
  className: h
31
31
  }) {
32
- return /* @__PURE__ */ c(
32
+ return /* @__PURE__ */ d(
33
33
  "div",
34
34
  {
35
35
  className: g(
@@ -38,9 +38,9 @@ function Yr({
38
38
  h
39
39
  ),
40
40
  children: [
41
- o && 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: n ? /* @__PURE__ */ e("img", { src: n, alt: r, 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: o ? /* @__PURE__ */ e(Ae, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Ie, { className: "w-8 h-8" }) }) }),
42
- /* @__PURE__ */ c("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
- t ? /* @__PURE__ */ e(je, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Be, { className: "w-3 h-3" }),
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: n ? /* @__PURE__ */ e("img", { src: n, alt: r, 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(Ie, { className: "w-8 h-8" }) : /* @__PURE__ */ e(je, { className: "w-8 h-8" }) }) }),
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
+ t ? /* @__PURE__ */ e(Be, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Pe, { className: "w-3 h-3" }),
44
44
  /* @__PURE__ */ e("span", { className: "truncate max-w-[140px]", children: r })
45
45
  ] })
46
46
  ]
@@ -48,17 +48,17 @@ function Yr({
48
48
  );
49
49
  }
50
50
  function Zr({ attach: r, active: n = !0, mirrored: t = !1, className: a }) {
51
- const o = X(null);
51
+ const s = X(null);
52
52
  return G(() => {
53
- if (!n || !o.current) return;
54
- const i = r(o.current);
53
+ if (!n || !s.current) return;
54
+ const c = r(s.current);
55
55
  return () => {
56
- typeof i == "function" && i(), o.current && (o.current.innerHTML = "");
56
+ typeof c == "function" && c(), s.current && (s.current.innerHTML = "");
57
57
  };
58
58
  }, [r, n]), /* @__PURE__ */ e(
59
59
  "div",
60
60
  {
61
- ref: o,
61
+ ref: s,
62
62
  className: g(
63
63
  "w-full h-full bg-gray-900 overflow-hidden",
64
64
  t && "[&>*]:scale-x-[-1]",
@@ -67,20 +67,20 @@ function Zr({ attach: r, active: n = !0, mirrored: t = !1, className: a }) {
67
67
  }
68
68
  );
69
69
  }
70
- const Ue = {
70
+ const Ge = {
71
71
  primary: "btn o__primary",
72
72
  secondary: "btn o__secondary",
73
73
  outline: "btn o__secondary",
74
74
  ghost: "btn text-gray-700",
75
75
  destructive: "btn o__destructive"
76
- }, Ge = {
76
+ }, Ke = {
77
77
  xs: "px-2 py-1 text-xs",
78
78
  sm: "px-3 py-1.5 text-sm",
79
79
  md: "px-4 py-2 text-sm",
80
80
  lg: "px-6 py-3 text-base",
81
81
  xl: "px-8 py-4 text-lg",
82
82
  full: "px-4 py-3 text-base"
83
- }, Ke = {
83
+ }, Je = {
84
84
  xs: "p-1",
85
85
  sm: "p-1.5",
86
86
  md: "p-2",
@@ -93,16 +93,16 @@ const Ue = {
93
93
  size: n = "md",
94
94
  fullWidth: t = !1,
95
95
  loading: a = !1,
96
- leftIcon: o,
97
- rightIcon: i,
96
+ leftIcon: s,
97
+ rightIcon: c,
98
98
  iconOnly: h = !1,
99
99
  className: b,
100
100
  children: p,
101
101
  disabled: y,
102
102
  ...u
103
103
  }, l) => {
104
- const d = y || a;
105
- return /* @__PURE__ */ c(
104
+ const i = y || a;
105
+ return /* @__PURE__ */ d(
106
106
  "button",
107
107
  {
108
108
  ref: l,
@@ -113,19 +113,19 @@ const Ue = {
113
113
  "focus:outline-none focus:ring-1 focus:ring-offset-1",
114
114
  "disabled:opacity-50 disabled:cursor-not-allowed",
115
115
  // Variant styles
116
- Ue[r],
116
+ Ge[r],
117
117
  // Size styles
118
- h ? Ke[n] : Ge[n],
118
+ h ? Je[n] : Ke[n],
119
119
  // Full width
120
120
  t && "w-full",
121
121
  // Loading state
122
122
  a && "cursor-wait",
123
123
  b
124
124
  ),
125
- disabled: d,
125
+ disabled: i,
126
126
  ...u,
127
127
  children: [
128
- a && /* @__PURE__ */ c(
128
+ a && /* @__PURE__ */ d(
129
129
  "svg",
130
130
  {
131
131
  className: g(
@@ -157,10 +157,10 @@ const Ue = {
157
157
  ]
158
158
  }
159
159
  ),
160
- !a && o && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", !h && "mr-2"), children: o }),
160
+ !a && s && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", !h && "mr-2"), children: s }),
161
161
  !h && p,
162
- !a && i && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", !h && "ml-2"), children: i }),
163
- h && !a && !o && !i && p
162
+ !a && c && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", !h && "ml-2"), children: c }),
163
+ h && !a && !s && !c && p
164
164
  ]
165
165
  }
166
166
  );
@@ -172,9 +172,9 @@ const Xr = ({
172
172
  size: n = "md",
173
173
  orientation: t = "horizontal",
174
174
  attached: a = !0,
175
- className: o
175
+ className: s
176
176
  }) => {
177
- const i = g(
177
+ const c = g(
178
178
  "inline-flex",
179
179
  {
180
180
  // Orientation
@@ -194,23 +194,23 @@ const Xr = ({
194
194
  "gap-2": !a && (n === "sm" || n === "md"),
195
195
  "gap-3": !a && (n === "lg" || n === "xl")
196
196
  },
197
- o
197
+ s
198
198
  );
199
- return /* @__PURE__ */ e("div", { className: i, role: "group", children: r });
199
+ return /* @__PURE__ */ e("div", { className: c, role: "group", children: r });
200
200
  }, Qr = ({
201
201
  variant: r = "default",
202
202
  size: n = "md",
203
203
  color: t = "primary",
204
204
  disabled: a = !1,
205
- external: o = !1,
206
- className: i,
205
+ external: s = !1,
206
+ className: c,
207
207
  children: h,
208
208
  href: b,
209
209
  target: p,
210
210
  rel: y,
211
211
  ...u
212
212
  }) => {
213
- const l = o || b && (b.startsWith("http") || b.startsWith("mailto:")), d = g(
213
+ const l = s || b && (b.startsWith("http") || b.startsWith("mailto:")), i = g(
214
214
  // Base styles
215
215
  "inline-flex items-center gap-1 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",
216
216
  // Size variants
@@ -263,14 +263,14 @@ const Xr = ({
263
263
  {
264
264
  "opacity-50 cursor-not-allowed pointer-events-none": a
265
265
  },
266
- i
266
+ c
267
267
  ), f = {
268
268
  ...u,
269
269
  href: a ? void 0 : b,
270
270
  target: l ? "_blank" : p,
271
271
  rel: l ? "noopener noreferrer" : y
272
272
  };
273
- return /* @__PURE__ */ c("a", { className: d, ...f, children: [
273
+ return /* @__PURE__ */ d("a", { className: i, ...f, children: [
274
274
  h,
275
275
  l && /* @__PURE__ */ e(
276
276
  "svg",
@@ -292,33 +292,33 @@ const Xr = ({
292
292
  }
293
293
  )
294
294
  ] });
295
- }, Ce = {
295
+ }, Se = {
296
296
  primary: "btn o__primary",
297
297
  secondary: "btn o__secondary",
298
298
  outline: "btn o__secondary"
299
- }, Je = {
299
+ }, Ye = {
300
300
  sm: "px-3 py-1.5 text-sm",
301
301
  md: "px-4 py-2 text-sm"
302
302
  };
303
- function Ye({
303
+ function $e({
304
304
  label: r,
305
305
  onClick: n,
306
306
  variant: t = "primary",
307
307
  size: a = "md",
308
- icon: o,
309
- options: i,
308
+ icon: s,
309
+ options: c,
310
310
  disabled: h = !1
311
311
  }) {
312
- const [b, p] = _(!1), y = X(null), u = ae(() => {
312
+ const [b, p] = V(!1), y = X(null), u = ae(() => {
313
313
  p((l) => !l);
314
314
  }, []);
315
315
  return G(() => {
316
- const l = (d) => {
317
- y.current && !y.current.contains(d.target) && p(!1);
316
+ const l = (i) => {
317
+ y.current && !y.current.contains(i.target) && p(!1);
318
318
  };
319
319
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
320
- }, []), /* @__PURE__ */ c("div", { ref: y, className: "relative inline-flex items-center gap-px", children: [
321
- /* @__PURE__ */ c(
320
+ }, []), /* @__PURE__ */ d("div", { ref: y, className: "relative inline-flex items-center gap-px", children: [
321
+ /* @__PURE__ */ d(
322
322
  "button",
323
323
  {
324
324
  type: "button",
@@ -328,12 +328,12 @@ function Ye({
328
328
  "inline-flex items-center justify-center font-medium transition-colors duration-200",
329
329
  "focus:outline-none focus:ring-1 focus:ring-offset-1",
330
330
  "disabled:opacity-50 disabled:cursor-not-allowed",
331
- Ce[t],
332
- Je[a],
331
+ Se[t],
332
+ Ye[a],
333
333
  "!rounded-r-none"
334
334
  ),
335
335
  children: [
336
- o && /* @__PURE__ */ e("span", { className: "mr-2 flex-shrink-0", children: o }),
336
+ s && /* @__PURE__ */ e("span", { className: "mr-2 flex-shrink-0", children: s }),
337
337
  r
338
338
  ]
339
339
  }
@@ -348,14 +348,14 @@ function Ye({
348
348
  "inline-flex items-center justify-center font-medium transition-colors duration-200",
349
349
  "focus:outline-none focus:ring-1 focus:ring-offset-1",
350
350
  "disabled:opacity-50 disabled:cursor-not-allowed",
351
- Ce[t],
351
+ Se[t],
352
352
  a === "sm" ? "px-1.5 py-1.5" : "px-2 py-2",
353
353
  "!rounded-l-none"
354
354
  ),
355
- children: /* @__PURE__ */ e(Pe, { className: "h-4 w-4" })
355
+ children: /* @__PURE__ */ e(_e, { className: "h-4 w-4" })
356
356
  }
357
357
  ),
358
- b && 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
+ 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(
359
359
  "button",
360
360
  {
361
361
  type: "button",
@@ -388,18 +388,18 @@ const Ze = {
388
388
  helperText: n,
389
389
  error: t,
390
390
  size: a = "md",
391
- indeterminate: o = !1,
392
- containerClassName: i,
391
+ indeterminate: s = !1,
392
+ containerClassName: c,
393
393
  labelClassName: h,
394
394
  className: b,
395
395
  id: p,
396
396
  ...y
397
397
  }, u) => {
398
- const l = p || `checkbox-${Math.random().toString(36).substr(2, 9)}`, d = !!t;
398
+ const l = p || `checkbox-${Math.random().toString(36).substr(2, 9)}`, i = !!t;
399
399
  return se.useEffect(() => {
400
- u && typeof u == "object" && u.current && (u.current.indeterminate = o);
401
- }, [o, u]), /* @__PURE__ */ c("div", { className: g("flex flex-col", i), children: [
402
- /* @__PURE__ */ c("div", { className: "flex items-start", children: [
400
+ u && typeof u == "object" && u.current && (u.current.indeterminate = s);
401
+ }, [s, u]), /* @__PURE__ */ d("div", { className: g("flex flex-col", c), children: [
402
+ /* @__PURE__ */ d("div", { className: "flex items-start", children: [
403
403
  /* @__PURE__ */ e("div", { className: "flex items-center h-5", children: /* @__PURE__ */ e(
404
404
  "input",
405
405
  {
@@ -414,20 +414,20 @@ const Ze = {
414
414
  // Size styles
415
415
  Ze[a],
416
416
  // State styles
417
- d ? "border-error text-error focus:border-error focus:ring-error" : "border-gray-100 text-primary focus:border-primary focus:ring-primary dark:border-gray-600 dark:bg-secondary-800",
417
+ i ? "border-error text-error focus:border-error focus:ring-error" : "border-gray-100 text-primary focus:border-primary focus:ring-primary dark:border-gray-600 dark:bg-secondary-800",
418
418
  b
419
419
  ),
420
420
  ...y
421
421
  }
422
422
  ) }),
423
- r && /* @__PURE__ */ c("div", { className: "ml-3 flex-1", children: [
423
+ r && /* @__PURE__ */ d("div", { className: "ml-3 flex-1", children: [
424
424
  /* @__PURE__ */ e(
425
425
  "label",
426
426
  {
427
427
  htmlFor: l,
428
428
  className: g(
429
429
  "font-medium cursor-pointer",
430
- d ? "text-error" : "text-secondary-900 dark:text-secondary-100",
430
+ i ? "text-error" : "text-secondary-900 dark:text-secondary-100",
431
431
  Xe[a],
432
432
  h
433
433
  ),
@@ -447,17 +447,17 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
447
447
  onChange: n,
448
448
  placeholder: t = "Select date",
449
449
  disabled: a = !1,
450
- required: o = !1,
451
- size: i = "md",
450
+ required: s = !1,
451
+ size: c = "md",
452
452
  className: h,
453
453
  minDate: b,
454
454
  maxDate: p,
455
455
  format: y = "MM/dd/yyyy"
456
456
  }, u) => {
457
- const [l, d] = _(!1), [f, C] = _(() => r || /* @__PURE__ */ new Date()), N = X(null);
457
+ const [l, i] = V(!1), [f, C] = V(() => r || /* @__PURE__ */ new Date()), N = X(null);
458
458
  G(() => {
459
459
  const z = (v) => {
460
- N.current && !N.current.contains(v.target) && d(!1);
460
+ N.current && !N.current.contains(v.target) && i(!1);
461
461
  };
462
462
  return l && document.addEventListener("mousedown", z), () => {
463
463
  document.removeEventListener("mousedown", z);
@@ -483,13 +483,13 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
483
483
  $.push(new Date(L)), L.setDate(L.getDate() + 1);
484
484
  return $;
485
485
  }, x = (z) => {
486
- z.getMonth() === f.getMonth() && (b && z < b || p && z > p || (n?.(z), d(!1)));
486
+ z.getMonth() === f.getMonth() && (b && z < b || p && z > p || (n?.(z), i(!1)));
487
487
  }, q = () => {
488
488
  C(new Date(f.getFullYear(), f.getMonth() - 1, 1));
489
489
  }, K = () => {
490
490
  C(new Date(f.getFullYear(), f.getMonth() + 1, 1));
491
491
  }, H = () => {
492
- n?.(null), d(!1);
492
+ n?.(null), i(!1);
493
493
  }, F = g(
494
494
  "w-full border border-neutral-100 dark:border-neutral-600 rounded-md transition-colors duration-200",
495
495
  "bg-white dark:bg-neutral-800 text-gray-700 dark:text-gray-300",
@@ -497,10 +497,10 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
497
497
  "focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
498
498
  "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-neutral-50 dark:disabled:bg-neutral-900",
499
499
  {
500
- "px-3 py-2 text-sm": i === "sm",
501
- "px-3 py-2 text-base": i === "md",
502
- "px-4 py-3 text-lg": i === "lg",
503
- "px-4 py-3 text-base": i === "full"
500
+ "px-3 py-2 text-sm": c === "sm",
501
+ "px-3 py-2 text-base": c === "md",
502
+ "px-4 py-3 text-lg": c === "lg",
503
+ "px-4 py-3 text-base": c === "full"
504
504
  },
505
505
  h
506
506
  ), E = B(), J = [
@@ -517,8 +517,8 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
517
517
  "November",
518
518
  "December"
519
519
  ];
520
- return /* @__PURE__ */ c("div", { ref: N, className: "relative", children: [
521
- /* @__PURE__ */ c("div", { className: "relative", children: [
520
+ return /* @__PURE__ */ d("div", { ref: N, className: "relative", children: [
521
+ /* @__PURE__ */ d("div", { className: "relative", children: [
522
522
  /* @__PURE__ */ e(
523
523
  "input",
524
524
  {
@@ -527,9 +527,9 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
527
527
  value: k(r ?? null),
528
528
  placeholder: t,
529
529
  disabled: a,
530
- required: o,
530
+ required: s,
531
531
  readOnly: !0,
532
- onClick: () => !a && d(!l),
532
+ onClick: () => !a && i(!l),
533
533
  className: g(F, "pr-10 cursor-pointer")
534
534
  }
535
535
  ),
@@ -537,15 +537,15 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
537
537
  "button",
538
538
  {
539
539
  type: "button",
540
- onClick: () => !a && d(!l),
540
+ onClick: () => !a && i(!l),
541
541
  disabled: a,
542
542
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-400 hover:text-neutral-600 dark:hover:text-neutral-300",
543
543
  children: /* @__PURE__ */ e(Qe, {})
544
544
  }
545
545
  )
546
546
  ] }),
547
- l && /* @__PURE__ */ c("div", { className: "absolute z-50 mt-1 bg-white dark:bg-neutral-800 border border-neutral-100 dark:border-neutral-600 rounded-md shadow-lg p-4 min-w-[280px]", children: [
548
- /* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
547
+ l && /* @__PURE__ */ d("div", { className: "absolute z-50 mt-1 bg-white dark:bg-neutral-800 border border-neutral-100 dark:border-neutral-600 rounded-md shadow-lg p-4 min-w-[280px]", children: [
548
+ /* @__PURE__ */ d("div", { className: "flex items-center justify-between mb-4", children: [
549
549
  /* @__PURE__ */ e(
550
550
  "button",
551
551
  {
@@ -554,7 +554,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
554
554
  children: /* @__PURE__ */ e(er, {})
555
555
  }
556
556
  ),
557
- /* @__PURE__ */ c("h3", { className: "text-sm font-medium text-neutral-900 dark:text-neutral-100", children: [
557
+ /* @__PURE__ */ d("h3", { className: "text-sm font-medium text-neutral-900 dark:text-neutral-100", children: [
558
558
  J[f.getMonth()],
559
559
  " ",
560
560
  f.getFullYear()
@@ -590,7 +590,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
590
590
  v
591
591
  );
592
592
  }) }),
593
- /* @__PURE__ */ c("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-neutral-200 dark:border-neutral-700", children: [
593
+ /* @__PURE__ */ d("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-neutral-200 dark:border-neutral-700", children: [
594
594
  /* @__PURE__ */ e(
595
595
  "button",
596
596
  {
@@ -602,7 +602,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
602
602
  /* @__PURE__ */ e(
603
603
  "button",
604
604
  {
605
- onClick: () => d(!1),
605
+ onClick: () => i(!1),
606
606
  className: "text-sm text-primary hover:text-primary/80",
607
607
  children: "Close"
608
608
  }
@@ -662,22 +662,22 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
662
662
  helperText: n,
663
663
  error: t,
664
664
  size: a = "md",
665
- fullWidth: o = !1,
666
- startIcon: i = /* @__PURE__ */ e(tr, {}),
665
+ fullWidth: s = !1,
666
+ startIcon: c = /* @__PURE__ */ e(tr, {}),
667
667
  loading: h = !1,
668
668
  containerClassName: b,
669
669
  labelClassName: p,
670
670
  className: y,
671
671
  id: u,
672
672
  options: l,
673
- onRemoteSearch: d,
673
+ onRemoteSearch: i,
674
674
  onSelect: f,
675
675
  debounceTime: C = 500,
676
676
  value: N,
677
677
  onChange: k,
678
678
  ...B
679
679
  }, x) => {
680
- const q = u || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!t, H = X(null), F = X(null), [E, J] = _(N || ""), [z, v] = _(!1), [T, m] = _(!1);
680
+ const q = u || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!t, H = X(null), F = X(null), [E, J] = V(N || ""), [z, v] = V(!1), [T, m] = V(!1);
681
681
  G(() => {
682
682
  N !== void 0 && J(N);
683
683
  }, [N]);
@@ -689,14 +689,14 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
689
689
  );
690
690
  }, [E, l]);
691
691
  G(() => {
692
- if (!d || !E) {
692
+ if (!i || !E) {
693
693
  m(!1);
694
694
  return;
695
695
  }
696
696
  const W = setTimeout(async () => {
697
697
  m(!0);
698
698
  try {
699
- await d(String(E));
699
+ await i(String(E));
700
700
  } catch (S) {
701
701
  console.error("Remote search failed:", S);
702
702
  } finally {
@@ -706,7 +706,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
706
706
  return () => {
707
707
  clearTimeout(W), m(!1);
708
708
  };
709
- }, [E, C, d]), G(() => {
709
+ }, [E, C, i]), G(() => {
710
710
  const W = (S) => {
711
711
  H.current && !H.current.contains(S.target) && v(!1);
712
712
  };
@@ -718,14 +718,14 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
718
718
  }, D = (W) => {
719
719
  J(W.label), v(!1), f && f(W.value);
720
720
  }, P = () => {
721
- (l.length > 0 || d) && v(!0);
721
+ (l.length > 0 || i) && v(!0);
722
722
  }, M = h || T, re = z && ($.length > 0 || M), ne = ie(() => x || F, [x]);
723
- return /* @__PURE__ */ c(
723
+ return /* @__PURE__ */ d(
724
724
  "div",
725
725
  {
726
726
  className: de(
727
727
  "flex flex-col",
728
- o ? "w-full" : "",
728
+ s ? "w-full" : "",
729
729
  b || "",
730
730
  "relative"
731
731
  ),
@@ -743,8 +743,8 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
743
743
  children: r
744
744
  }
745
745
  ),
746
- /* @__PURE__ */ c("div", { className: "relative", children: [
747
- i && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: de("text-gray-400", xe[a]), children: i }) }),
746
+ /* @__PURE__ */ d("div", { className: "relative", children: [
747
+ c && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: de("text-gray-400", xe[a]), children: c }) }),
748
748
  /* @__PURE__ */ e(
749
749
  "input",
750
750
  {
@@ -761,7 +761,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
761
761
  // Size styles
762
762
  nr[a],
763
763
  // Icon padding
764
- i ? "pl-10" : "",
764
+ c ? "pl-10" : "",
765
765
  "pr-10",
766
766
  // Altijd padding rechts voor de dropdown/loading icon
767
767
  // State styles
@@ -773,7 +773,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
773
773
  ),
774
774
  /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: M || h ? (
775
775
  // Loading Spinner
776
- /* @__PURE__ */ c(
776
+ /* @__PURE__ */ d(
777
777
  "svg",
778
778
  {
779
779
  className: de("animate-spin text-blue-500", xe[a]),
@@ -846,7 +846,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
846
846
  children: t || n
847
847
  }
848
848
  ),
849
- d && /* @__PURE__ */ c("p", { className: "mt-2 text-xs text-green-600 dark:text-green-400", children: [
849
+ i && /* @__PURE__ */ d("p", { className: "mt-2 text-xs text-green-600 dark:text-green-400", children: [
850
850
  "Huidige zoekterm (niet-gedebounced): ",
851
851
  String(E)
852
852
  ] })
@@ -867,22 +867,22 @@ const sr = {
867
867
  helperText: n,
868
868
  error: t,
869
869
  size: a = "md",
870
- fullWidth: o = !1,
871
- options: i,
870
+ fullWidth: s = !1,
871
+ options: c,
872
872
  placeholder: h,
873
873
  containerClassName: b,
874
874
  labelClassName: p,
875
875
  className: y,
876
876
  id: u,
877
877
  searchable: l,
878
- multiple: d,
878
+ multiple: i,
879
879
  value: f,
880
880
  onChange: C,
881
881
  allowCreate: N,
882
882
  onCreateOption: k,
883
883
  ...B
884
884
  }, x) => {
885
- const q = u || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!t, [H, F] = se.useState(!1), [E, J] = se.useState(""), z = se.useRef(null), [v, T] = se.useState(i);
885
+ const q = u || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!t, [H, F] = se.useState(!1), [E, J] = se.useState(""), z = se.useRef(null), [v, T] = se.useState(c);
886
886
  se.useImperativeHandle(x, () => z.current), se.useEffect(() => {
887
887
  const S = (I) => {
888
888
  z.current && !z.current.contains(I.target) && F(!1);
@@ -891,57 +891,57 @@ const sr = {
891
891
  }, []);
892
892
  const m = se.useCallback(
893
893
  (S, I) => S.some(
894
- (V) => me(V.value) === me(I) || me(V.label) === me(I)
894
+ (O) => me(O.value) === me(I) || me(O.label) === me(I)
895
895
  ),
896
896
  []
897
897
  ), $ = se.useCallback(
898
898
  (S, I) => {
899
- const V = [...S], A = (Q) => {
899
+ const O = [...S], A = (Q) => {
900
900
  const te = (Q ?? "").trim();
901
- te && (m(V, te) || V.push({ value: te, label: te }));
901
+ te && (m(O, te) || O.push({ value: te, label: te }));
902
902
  };
903
- return Array.isArray(I) ? I.forEach(A) : A(I), V;
903
+ return Array.isArray(I) ? I.forEach(A) : A(I), O;
904
904
  },
905
905
  [m]
906
906
  );
907
907
  se.useEffect(() => {
908
908
  T((S) => {
909
- const I = [...i];
910
- return S.forEach((V) => {
911
- !m(I, V.value) && !m(I, V.label) && I.push(V);
909
+ const I = [...c];
910
+ return S.forEach((O) => {
911
+ !m(I, O.value) && !m(I, O.label) && I.push(O);
912
912
  }), $(I, f);
913
913
  });
914
- }, [i, f, $, m]);
914
+ }, [c, f, $, m]);
915
915
  const L = (S) => {
916
- if (d) {
917
- const I = Array.isArray(f) ? f : [], V = I.includes(S) ? I.filter((A) => A !== S) : [...I, S];
918
- C?.(V);
916
+ if (i) {
917
+ const I = Array.isArray(f) ? f : [], O = I.includes(S) ? I.filter((A) => A !== S) : [...I, S];
918
+ C?.(O);
919
919
  } else
920
920
  C?.(S), F(!1), J("");
921
- }, D = d ? null : v.find((S) => S.value === f), P = d ? v.filter(
921
+ }, D = i ? null : v.find((S) => S.value === f), P = i ? v.filter(
922
922
  (S) => Array.isArray(f) && f.includes(S.value)
923
923
  ) : [], M = l && E ? v.filter(
924
924
  (S) => S.label.toLowerCase().includes(E.toLowerCase())
925
925
  ) : v, re = !!N && !!l && !!E.trim() && !m(v, E), ne = (S) => {
926
926
  const I = S.trim();
927
927
  if (!I) return;
928
- const V = k?.(I) ?? {
928
+ const O = k?.(I) ?? {
929
929
  value: I,
930
930
  label: I
931
931
  };
932
- if (m(v, V.value) || m(v, V.label)) {
933
- L(V.value), J(""), d || F(!1);
932
+ if (m(v, O.value) || m(v, O.label)) {
933
+ L(O.value), J(""), i || F(!1);
934
934
  return;
935
935
  }
936
- T((A) => [...A, V]), L(V.value), J(""), d || F(!1);
937
- }, W = () => d ? P.length > 0 ? P.map((S) => S.label).join(", ") : h || "Select options" : D?.label || h || "Select an option";
938
- return /* @__PURE__ */ c(
936
+ T((A) => [...A, O]), L(O.value), J(""), i || F(!1);
937
+ }, W = () => i ? P.length > 0 ? P.map((S) => S.label).join(", ") : h || "Select options" : D?.label || h || "Select an option";
938
+ return /* @__PURE__ */ d(
939
939
  "div",
940
940
  {
941
941
  ref: z,
942
942
  className: g(
943
943
  "relative flex flex-col",
944
- o && "w-full",
944
+ s && "w-full",
945
945
  b
946
946
  ),
947
947
  ...B,
@@ -959,7 +959,7 @@ const sr = {
959
959
  children: r
960
960
  }
961
961
  ),
962
- /* @__PURE__ */ c("div", { className: "relative", children: [
962
+ /* @__PURE__ */ d("div", { className: "relative", children: [
963
963
  /* @__PURE__ */ e(
964
964
  "button",
965
965
  {
@@ -978,7 +978,7 @@ const sr = {
978
978
  children: /* @__PURE__ */ e("span", { className: "block truncate", children: W() })
979
979
  }
980
980
  ),
981
- H && /* @__PURE__ */ c("div", { className: "absolute z-10 mt-1 w-full rounded-md bg-white dark:bg-secondary-800 shadow-lg border border-neutral dark:border-neutral-700", children: [
981
+ H && /* @__PURE__ */ d("div", { className: "absolute z-10 mt-1 w-full rounded-md bg-white dark:bg-secondary-800 shadow-lg border border-neutral dark:border-neutral-700", children: [
982
982
  l && /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e(
983
983
  "input",
984
984
  {
@@ -995,7 +995,7 @@ const sr = {
995
995
  )
996
996
  }
997
997
  ) }),
998
- re && /* @__PURE__ */ c(
998
+ re && /* @__PURE__ */ d(
999
999
  "div",
1000
1000
  {
1001
1001
  className: g(
@@ -1010,8 +1010,8 @@ const sr = {
1010
1010
  ]
1011
1011
  }
1012
1012
  ),
1013
- /* @__PURE__ */ c("ul", { className: "max-h-60 overflow-auto py-1", children: [
1014
- h && !d && /* @__PURE__ */ e(
1013
+ /* @__PURE__ */ d("ul", { className: "max-h-60 overflow-auto py-1", children: [
1014
+ h && !i && /* @__PURE__ */ e(
1015
1015
  "li",
1016
1016
  {
1017
1017
  className: "px-4 py-2 text-sm text-secondary-500 cursor-pointer hover:bg-gray-100 dark:hover:bg-secondary-700",
@@ -1022,7 +1022,7 @@ const sr = {
1022
1022
  }
1023
1023
  ),
1024
1024
  M.map((S) => {
1025
- const I = d ? Array.isArray(f) && f.includes(S.value) : f === S.value;
1025
+ const I = i ? Array.isArray(f) && f.includes(S.value) : f === S.value;
1026
1026
  return /* @__PURE__ */ e(
1027
1027
  "li",
1028
1028
  {
@@ -1033,8 +1033,8 @@ const sr = {
1033
1033
  S.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-gray-100 dark:hover:bg-secondary-700",
1034
1034
  I && "font-semibold"
1035
1035
  ),
1036
- children: /* @__PURE__ */ c("div", { className: "flex items-center", children: [
1037
- d && /* @__PURE__ */ e(
1036
+ children: /* @__PURE__ */ d("div", { className: "flex items-center", children: [
1037
+ i && /* @__PURE__ */ e(
1038
1038
  "input",
1039
1039
  {
1040
1040
  type: "checkbox",
@@ -1079,17 +1079,17 @@ const or = {
1079
1079
  helperText: n,
1080
1080
  error: t,
1081
1081
  size: a = "md",
1082
- fullWidth: o = !1,
1083
- loading: i = !1,
1082
+ fullWidth: s = !1,
1083
+ loading: c = !1,
1084
1084
  containerClassName: h,
1085
1085
  labelClassName: b,
1086
1086
  className: p,
1087
1087
  id: y,
1088
1088
  rows: u = 4,
1089
1089
  ...l
1090
- }, d) => {
1090
+ }, i) => {
1091
1091
  const f = y || `textarea-${Math.random().toString(36).substr(2, 9)}`, C = !!t;
1092
- return /* @__PURE__ */ c("div", { className: g("flex flex-col", o && "w-full", h), children: [
1092
+ return /* @__PURE__ */ d("div", { className: g("flex flex-col", s && "w-full", h), children: [
1093
1093
  r && /* @__PURE__ */ e(
1094
1094
  "label",
1095
1095
  {
@@ -1102,11 +1102,11 @@ const or = {
1102
1102
  children: r
1103
1103
  }
1104
1104
  ),
1105
- /* @__PURE__ */ c("div", { className: "relative", children: [
1105
+ /* @__PURE__ */ d("div", { className: "relative", children: [
1106
1106
  /* @__PURE__ */ e(
1107
1107
  "textarea",
1108
1108
  {
1109
- ref: d,
1109
+ ref: i,
1110
1110
  id: f,
1111
1111
  rows: u,
1112
1112
  className: g(
@@ -1123,7 +1123,7 @@ const or = {
1123
1123
  ...l
1124
1124
  }
1125
1125
  ),
1126
- i && /* @__PURE__ */ e("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ c(
1126
+ c && /* @__PURE__ */ e("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ d(
1127
1127
  "svg",
1128
1128
  {
1129
1129
  className: "animate-spin h-4 w-4 text-secondary-400",
@@ -1183,18 +1183,18 @@ const cr = {
1183
1183
  helperText: n,
1184
1184
  error: t,
1185
1185
  size: a = "md",
1186
- fullWidth: o = !1,
1187
- startIcon: i,
1186
+ fullWidth: s = !1,
1187
+ startIcon: c,
1188
1188
  endIcon: h,
1189
1189
  loading: b = !1,
1190
1190
  containerClassName: p,
1191
1191
  labelClassName: y,
1192
1192
  className: u,
1193
1193
  id: l,
1194
- ...d
1194
+ ...i
1195
1195
  }, f) => {
1196
1196
  const C = l || `textfield-${Math.random().toString(36).substr(2, 9)}`, N = !!t;
1197
- return /* @__PURE__ */ c("div", { className: g("flex flex-col", o && "w-full", p), children: [
1197
+ return /* @__PURE__ */ d("div", { className: g("flex flex-col", s && "w-full", p), children: [
1198
1198
  r && /* @__PURE__ */ e(
1199
1199
  "label",
1200
1200
  {
@@ -1207,9 +1207,9 @@ const cr = {
1207
1207
  children: r
1208
1208
  }
1209
1209
  ),
1210
- /* @__PURE__ */ c("div", { className: "relative", children: [
1211
- i && // Todo fix inset not showing correctly on different sizes
1212
- /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: g("text-secondary-400", ge[a]), children: i }) }),
1210
+ /* @__PURE__ */ d("div", { className: "relative", children: [
1211
+ c && // Todo fix inset not showing correctly on different sizes
1212
+ /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: g("text-secondary-400", ge[a]), children: c }) }),
1213
1213
  /* @__PURE__ */ e(
1214
1214
  "input",
1215
1215
  {
@@ -1223,16 +1223,16 @@ const cr = {
1223
1223
  // Size styles
1224
1224
  cr[a],
1225
1225
  // Icon padding
1226
- i && "pl-10",
1226
+ c && "pl-10",
1227
1227
  h && "pr-10",
1228
1228
  // State styles
1229
1229
  N ? "border-error text-error focus:border-error focus:ring-error" : "border-gray-100 text-secondary-900 focus:border-primary focus:ring-primary dark:border-gray-600 dark:bg-secondary-800 dark:text-secondary-100",
1230
1230
  u
1231
1231
  ),
1232
- ...d
1232
+ ...i
1233
1233
  }
1234
1234
  ),
1235
- (h || b) && /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: b ? /* @__PURE__ */ c(
1235
+ (h || b) && /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: b ? /* @__PURE__ */ d(
1236
1236
  "svg",
1237
1237
  {
1238
1238
  className: g("animate-spin text-secondary-400", ge[a]),
@@ -1281,8 +1281,8 @@ const oe = ({
1281
1281
  size: n = "md",
1282
1282
  color: t = "current",
1283
1283
  clickable: a = !1,
1284
- onClick: o,
1285
- className: i,
1284
+ onClick: s,
1285
+ className: c,
1286
1286
  "aria-label": h,
1287
1287
  ...b
1288
1288
  }) => {
@@ -1305,16 +1305,16 @@ const oe = ({
1305
1305
  "cursor-pointer hover:opacity-80 transition-opacity duration-200": a,
1306
1306
  "focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary/20 rounded": a
1307
1307
  },
1308
- i
1308
+ c
1309
1309
  ), u = {
1310
1310
  size: p,
1311
1311
  className: y,
1312
- onClick: a ? o : void 0,
1312
+ onClick: a ? s : void 0,
1313
1313
  "aria-label": h,
1314
1314
  role: a ? "button" : void 0,
1315
1315
  tabIndex: a ? 0 : void 0,
1316
1316
  onKeyDown: a ? (l) => {
1317
- (l.key === "Enter" || l.key === " ") && (l.preventDefault(), o?.());
1317
+ (l.key === "Enter" || l.key === " ") && (l.preventDefault(), s?.());
1318
1318
  } : void 0,
1319
1319
  ...b
1320
1320
  };
@@ -1335,23 +1335,23 @@ function ir({
1335
1335
  tableColumns: t = 6,
1336
1336
  tableRows: a = 8
1337
1337
  }) {
1338
- return r ? /* @__PURE__ */ e("main", { className: "flex-1 bg-gray-50 dark:bg-gray-950 p-6", children: /* @__PURE__ */ e("div", { className: "w-full max-w-6xl mx-auto animate-pulse", children: r }) }) : /* @__PURE__ */ e("main", { className: "flex-1 bg-gray-50 dark:bg-gray-950 p-6", children: /* @__PURE__ */ c("div", { className: "w-full mx-auto space-y-6 animate-pulse", children: [
1339
- !n && /* @__PURE__ */ c(Me, { children: [
1338
+ return r ? /* @__PURE__ */ e("main", { className: "flex-1 bg-gray-50 dark:bg-gray-950 p-6", children: /* @__PURE__ */ e("div", { className: "w-full max-w-6xl mx-auto animate-pulse", children: r }) }) : /* @__PURE__ */ e("main", { className: "flex-1 bg-gray-50 dark:bg-gray-950 p-6", children: /* @__PURE__ */ d("div", { className: "w-full mx-auto space-y-6 animate-pulse", children: [
1339
+ !n && /* @__PURE__ */ d(Ee, { children: [
1340
1340
  /* @__PURE__ */ e("div", { className: "h-6 bg-gray-200 dark:bg-gray-700 rounded w-1/4" }),
1341
- /* @__PURE__ */ c("div", { className: "space-y-2", children: [
1341
+ /* @__PURE__ */ d("div", { className: "space-y-2", children: [
1342
1342
  /* @__PURE__ */ e("div", { className: "h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4" }),
1343
1343
  /* @__PURE__ */ e("div", { className: "h-4 bg-gray-200 dark:bg-gray-700 rounded w-1/2" })
1344
1344
  ] })
1345
1345
  ] }),
1346
- n && /* @__PURE__ */ c("div", { className: "rounded-lg overflow-hidden", children: [
1347
- /* @__PURE__ */ e("div", { className: `grid grid-cols-${t} gap-2 bg-gray-100 dark:bg-gray-800 p-3`, children: Array.from({ length: t }).map((o, i) => /* @__PURE__ */ e(
1346
+ n && /* @__PURE__ */ d("div", { className: "rounded-lg overflow-hidden", children: [
1347
+ /* @__PURE__ */ e("div", { className: `grid grid-cols-${t} gap-2 bg-gray-100 dark:bg-gray-800 p-3`, children: Array.from({ length: t }).map((s, c) => /* @__PURE__ */ e(
1348
1348
  "div",
1349
1349
  {
1350
1350
  className: "h-4 bg-gray-300 dark:bg-gray-600 rounded w-2/3"
1351
1351
  },
1352
- `header-${i}`
1352
+ `header-${c}`
1353
1353
  )) }),
1354
- Array.from({ length: a }).map((o, i) => /* @__PURE__ */ e(
1354
+ Array.from({ length: a }).map((s, c) => /* @__PURE__ */ e(
1355
1355
  "div",
1356
1356
  {
1357
1357
  className: `grid grid-cols-${t} gap-2 p-3 border-t border-gray-100 dark:border-gray-800`,
@@ -1360,10 +1360,10 @@ function ir({
1360
1360
  {
1361
1361
  className: "h-4 bg-gray-200 dark:bg-gray-700 rounded w-full"
1362
1362
  },
1363
- `cell-${i}-${b}`
1363
+ `cell-${c}-${b}`
1364
1364
  ))
1365
1365
  },
1366
- `row-${i}`
1366
+ `row-${c}`
1367
1367
  ))
1368
1368
  ] })
1369
1369
  ] }) });
@@ -1373,23 +1373,23 @@ const ur = ({
1373
1373
  options: n,
1374
1374
  value: t,
1375
1375
  onSelect: a,
1376
- placement: o = "bottom-start",
1377
- disabled: i = !1,
1376
+ placement: s = "bottom-start",
1377
+ disabled: c = !1,
1378
1378
  className: h,
1379
1379
  showCheck: b = !0,
1380
1380
  header: p
1381
1381
  }) => {
1382
- const [y, u] = _(!1), [l, d] = _(null), [f, C] = _({ top: 0, left: 0 }), N = X(null), k = X(null), B = X(null), x = X(null);
1382
+ const [y, u] = V(!1), [l, i] = V(null), [f, C] = V({ top: 0, left: 0 }), N = X(null), k = X(null), B = X(null), x = X(null);
1383
1383
  G(() => {
1384
1384
  const v = (T) => {
1385
- N.current && (!N.current.contains(T.target) || B.current && !B.current.contains(T.target)) && (u(!1), d(null), x.current && (clearTimeout(x.current), x.current = null));
1385
+ N.current && (!N.current.contains(T.target) || B.current && !B.current.contains(T.target)) && (u(!1), i(null), x.current && (clearTimeout(x.current), x.current = null));
1386
1386
  };
1387
1387
  return y && document.addEventListener("mousedown", v), () => {
1388
1388
  document.removeEventListener("mousedown", v);
1389
1389
  };
1390
1390
  }, [y]), G(() => {
1391
1391
  const v = (T) => {
1392
- T.key === "Escape" && (u(!1), d(null), x.current && (clearTimeout(x.current), x.current = null));
1392
+ T.key === "Escape" && (u(!1), i(null), x.current && (clearTimeout(x.current), x.current = null));
1393
1393
  };
1394
1394
  return y && document.addEventListener("keydown", v), () => {
1395
1395
  document.removeEventListener("keydown", v);
@@ -1411,31 +1411,31 @@ const ur = ({
1411
1411
  x.current && clearTimeout(x.current);
1412
1412
  }, []);
1413
1413
  const q = (v) => {
1414
- v.stopPropagation(), i || (u(!y), d(null), x.current && (clearTimeout(x.current), x.current = null));
1414
+ v.stopPropagation(), c || (u(!y), i(null), x.current && (clearTimeout(x.current), x.current = null));
1415
1415
  }, K = (v, T, m) => {
1416
- v.stopPropagation(), !T.disabled && !T.divider && (!T.children || T.children.length === 0) && (a?.(T.value, m), u(!1), d(null));
1416
+ v.stopPropagation(), !T.disabled && !T.divider && (!T.children || T.children.length === 0) && (a?.(T.value, m), u(!1), i(null));
1417
1417
  }, H = (v) => {
1418
- x.current && (clearTimeout(x.current), x.current = null), v.children && v.children.length > 0 ? d(v.value) : d(null);
1418
+ x.current && (clearTimeout(x.current), x.current = null), v.children && v.children.length > 0 ? i(v.value) : i(null);
1419
1419
  }, F = (v) => {
1420
1420
  v.children && v.children.length > 0 ? x.current = setTimeout(() => {
1421
- d(null);
1422
- }, 150) : d(null);
1421
+ i(null);
1422
+ }, 150) : i(null);
1423
1423
  }, E = (v, T, m) => {
1424
- v.stopPropagation(), !T.disabled && !T.divider && (a?.(T.value, m), u(!1), d(null));
1424
+ v.stopPropagation(), !T.disabled && !T.divider && (a?.(T.value, m), u(!1), i(null));
1425
1425
  }, J = g(
1426
1426
  "absolute z-50 min-w-[200px] bg-white dark:bg-gray-800 rounded-md shadow-xs border border-gray-100 dark:border-gray-600",
1427
1427
  "max-h-60 overflow-auto",
1428
1428
  {
1429
- "top-full left-0 mt-2": o === "bottom-start",
1430
- "top-full right-0 mt-2": o === "bottom-end",
1431
- "bottom-full left-0 mb-2": o === "top-start",
1432
- "bottom-full right-0 mb-2": o === "top-end"
1429
+ "top-full left-0 mt-2": s === "bottom-start",
1430
+ "top-full right-0 mt-2": s === "bottom-end",
1431
+ "bottom-full left-0 mb-2": s === "top-start",
1432
+ "bottom-full right-0 mb-2": s === "top-end"
1433
1433
  }
1434
1434
  ), z = g(
1435
1435
  "fixed z-[60] min-w-[200px] bg-white dark:bg-gray-800 rounded-md shadow-lg border border-gray-100 dark:border-gray-600",
1436
1436
  "max-h-60 overflow-auto"
1437
1437
  );
1438
- return /* @__PURE__ */ c(
1438
+ return /* @__PURE__ */ d(
1439
1439
  "div",
1440
1440
  {
1441
1441
  ref: N,
@@ -1449,14 +1449,14 @@ const ur = ({
1449
1449
  {
1450
1450
  ref: k,
1451
1451
  onClick: q,
1452
- disabled: i,
1452
+ disabled: c,
1453
1453
  className: g("inline-flex items-center justify-center", {
1454
- "opacity-50 cursor-not-allowed": i
1454
+ "opacity-50 cursor-not-allowed": c
1455
1455
  }),
1456
1456
  children: r
1457
1457
  }
1458
1458
  ),
1459
- y && /* @__PURE__ */ e("div", { className: J, children: /* @__PURE__ */ c("div", { className: "p-2", children: [
1459
+ y && /* @__PURE__ */ e("div", { className: J, children: /* @__PURE__ */ d("div", { className: "p-2", children: [
1460
1460
  p && (typeof p == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider px-3 py-2", children: p }) : p),
1461
1461
  n.map((v, T) => {
1462
1462
  if (v.divider)
@@ -1468,8 +1468,8 @@ const ur = ({
1468
1468
  `divider-${T}`
1469
1469
  );
1470
1470
  const m = v.children && v.children.length > 0, $ = l === v.value;
1471
- return /* @__PURE__ */ c("div", { className: "relative group", children: [
1472
- /* @__PURE__ */ c(
1471
+ return /* @__PURE__ */ d("div", { className: "relative group", children: [
1472
+ /* @__PURE__ */ d(
1473
1473
  "button",
1474
1474
  {
1475
1475
  "data-option-value": v.value,
@@ -1485,14 +1485,14 @@ const ur = ({
1485
1485
  }
1486
1486
  ),
1487
1487
  children: [
1488
- /* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
1488
+ /* @__PURE__ */ d("div", { className: "flex items-center space-x-2 min-w-0", children: [
1489
1489
  v.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: v.icon }),
1490
- /* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
1490
+ /* @__PURE__ */ d("div", { className: "flex flex-col items-start min-w-0", children: [
1491
1491
  /* @__PURE__ */ e("span", { className: "font-base truncate", children: v.label }),
1492
1492
  v.description && /* @__PURE__ */ e("span", { className: "text-xs text-gray-500 dark:text-gray-400", children: v.description })
1493
1493
  ] })
1494
1494
  ] }),
1495
- /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
1495
+ /* @__PURE__ */ d("div", { className: "flex items-center space-x-2", children: [
1496
1496
  b && t === v.value && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-green-600 flex-shrink-0 text-sm font-bold", children: "✓" }),
1497
1497
  m && /* @__PURE__ */ e("span", { className: "text-gray-400 dark:text-gray-500 text-xs", children: "▶" })
1498
1498
  ] })
@@ -1509,11 +1509,11 @@ const ur = ({
1509
1509
  left: `${f.left}px`
1510
1510
  },
1511
1511
  onMouseEnter: () => {
1512
- x.current && (clearTimeout(x.current), x.current = null), d(v.value);
1512
+ x.current && (clearTimeout(x.current), x.current = null), i(v.value);
1513
1513
  },
1514
1514
  onMouseLeave: () => {
1515
1515
  x.current = setTimeout(() => {
1516
- d(null);
1516
+ i(null);
1517
1517
  }, 150);
1518
1518
  },
1519
1519
  children: /* @__PURE__ */ e("div", { className: "p-2", children: v.children.map((L, D) => {
@@ -1528,7 +1528,7 @@ const ur = ({
1528
1528
  const P = typeof t == "object" && t[v.value] && t[v.value].includes(
1529
1529
  L.value
1530
1530
  ) || t === L.value;
1531
- return /* @__PURE__ */ c(
1531
+ return /* @__PURE__ */ d(
1532
1532
  "button",
1533
1533
  {
1534
1534
  onClick: (M) => E(
@@ -1544,9 +1544,9 @@ const ur = ({
1544
1544
  }
1545
1545
  ),
1546
1546
  children: [
1547
- /* @__PURE__ */ c("div", { className: "flex items-center space-x-2 min-w-0", children: [
1547
+ /* @__PURE__ */ d("div", { className: "flex items-center space-x-2 min-w-0", children: [
1548
1548
  L.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: L.icon }),
1549
- /* @__PURE__ */ c("div", { className: "flex flex-col items-start min-w-0", children: [
1549
+ /* @__PURE__ */ d("div", { className: "flex flex-col items-start min-w-0", children: [
1550
1550
  /* @__PURE__ */ e("span", { className: "font-base truncate", children: L.label }),
1551
1551
  L.description && /* @__PURE__ */ e("span", { className: "text-xs text-gray-500 dark:text-gray-400", children: L.description })
1552
1552
  ] })
@@ -1567,7 +1567,7 @@ const ur = ({
1567
1567
  const $ = m.children ? m.children.filter((L) => !L.divider).length : 0;
1568
1568
  return T + 1 + $;
1569
1569
  }, 0);
1570
- return v > 1 && /* @__PURE__ */ e("div", { className: "border-t border-gray-200 dark:border-gray-600 mt-2 pt-2", children: /* @__PURE__ */ c("div", { className: "text-xs text-gray-500 dark:text-gray-400 px-3 py-1", children: [
1570
+ return v > 1 && /* @__PURE__ */ e("div", { className: "border-t border-gray-200 dark:border-gray-600 mt-2 pt-2", children: /* @__PURE__ */ d("div", { className: "text-xs text-gray-500 dark:text-gray-400 px-3 py-1", children: [
1571
1571
  v,
1572
1572
  " options available"
1573
1573
  ] }) });
@@ -1701,7 +1701,7 @@ const ur = ({
1701
1701
  }
1702
1702
  )
1703
1703
  }
1704
- ), $e = () => /* @__PURE__ */ e(
1704
+ ), ze = () => /* @__PURE__ */ e(
1705
1705
  "svg",
1706
1706
  {
1707
1707
  className: "h-4 w-4",
@@ -1720,7 +1720,7 @@ const ur = ({
1720
1720
  }
1721
1721
  ), yr = (r) => {
1722
1722
  const n = (a) => r.multiSelect && Array.isArray(r.value) ? r.value?.includes(a) : r.value === a, t = (a) => {
1723
- r.multiSelect && Array.isArray(r.value) ? r.onChange(r.value.filter((o) => o !== a)) : r.onChange(a);
1723
+ r.multiSelect && Array.isArray(r.value) ? r.onChange(r.value.filter((s) => s !== a)) : r.onChange(a);
1724
1724
  };
1725
1725
  return r.type === "date" ? /* @__PURE__ */ e("div", { className: "flex items-center space-x-1 max-w-[160px]", children: /* @__PURE__ */ e(
1726
1726
  ye,
@@ -1731,15 +1731,15 @@ const ur = ({
1731
1731
  placeholder: r.placeholder || `Select ${r.label.toLowerCase()}`,
1732
1732
  className: "min-w-[160px] btn btn o__secondary"
1733
1733
  }
1734
- ) }) : /* @__PURE__ */ e("div", { className: "flex items-center space-x-1 max-w-[240px]", children: /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ c("details", { className: "group", children: [
1735
- /* @__PURE__ */ c("summary", { className: "flex items-center space-x-2 cursor-pointer hover:bg-white rounded-full px-3 py-2 text-sm btn btn o__secondary", children: [
1734
+ ) }) : /* @__PURE__ */ e("div", { className: "flex items-center space-x-1 max-w-[240px]", children: /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ d("details", { className: "group", children: [
1735
+ /* @__PURE__ */ d("summary", { className: "flex items-center space-x-2 cursor-pointer hover:bg-white rounded-full px-3 py-2 text-sm btn btn o__secondary", children: [
1736
1736
  /* @__PURE__ */ e("span", { children: r.label }),
1737
1737
  /* @__PURE__ */ e("span", { className: "text-gray-800", children: r.multiSelect && Array.isArray(r.value) ? r.value?.map(
1738
- (a) => r.options?.find((o) => o.value === a)?.label
1738
+ (a) => r.options?.find((s) => s.value === a)?.label
1739
1739
  ).join(", ") : r.options?.find((a) => a.value === r.value)?.label }),
1740
- /* @__PURE__ */ e("span", { className: "text-gray-500 text-sm group-open:rotate-180 transition-transform", children: /* @__PURE__ */ e($e, {}) })
1740
+ /* @__PURE__ */ e("span", { className: "text-gray-500 text-sm group-open:rotate-180 transition-transform", children: /* @__PURE__ */ e(ze, {}) })
1741
1741
  ] }),
1742
- /* @__PURE__ */ c("div", { className: "absolute z-10 left-0 mt-1 bg-white border border-gray-100 rounded-lg shadow-sm p-2 w-48", children: [
1742
+ /* @__PURE__ */ d("div", { className: "absolute z-10 left-0 mt-1 bg-white border border-gray-100 rounded-lg shadow-sm p-2 w-48", children: [
1743
1743
  r.options?.map((a) => /* @__PURE__ */ e(
1744
1744
  "button",
1745
1745
  {
@@ -1765,20 +1765,20 @@ const ur = ({
1765
1765
  )
1766
1766
  ] })
1767
1767
  ] }) }) });
1768
- }, Se = ({
1768
+ }, Le = ({
1769
1769
  data: r,
1770
1770
  columns: n,
1771
1771
  loading: t = !1,
1772
1772
  searchable: a = !1,
1773
- searchPlaceholder: o = "Search...",
1774
- filters: i = [],
1773
+ searchPlaceholder: s = "Search...",
1774
+ filters: c = [],
1775
1775
  paginated: h = !1,
1776
1776
  pageSizeOptions: b = [10, 25, 50, 100],
1777
1777
  defaultPageSize: p = 10,
1778
1778
  actions: y = [],
1779
1779
  onRowClick: u,
1780
1780
  selectable: l = !1,
1781
- selectedRows: d = [],
1781
+ selectedRows: i = [],
1782
1782
  onSelectionChange: f,
1783
1783
  getRowKey: C = (H, F) => F,
1784
1784
  emptyContent: N,
@@ -1788,81 +1788,81 @@ const ur = ({
1788
1788
  className: q,
1789
1789
  rowClassName: K
1790
1790
  }) => {
1791
- const [H, F] = _(""), [E, J] = _({
1791
+ const [H, F] = V(""), [E, J] = V({
1792
1792
  column: null,
1793
1793
  direction: null
1794
- }), [z, v] = _({
1794
+ }), [z, v] = V({
1795
1795
  page: 0,
1796
1796
  pageSize: p
1797
1797
  }), T = X(null), m = ie(() => {
1798
- let s = r;
1798
+ let o = r;
1799
1799
  if (a && H.trim()) {
1800
1800
  const w = n.filter(
1801
1801
  (R) => R.searchable !== !1
1802
- ), O = H.toLowerCase();
1803
- s = s.filter((R) => w.some((j) => {
1802
+ ), _ = H.toLowerCase();
1803
+ o = o.filter((R) => w.some((j) => {
1804
1804
  const Y = typeof j.accessor == "function" ? j.accessor(R) : R[j.accessor];
1805
- return String(Y || "").toLowerCase().includes(O);
1805
+ return String(Y || "").toLowerCase().includes(_);
1806
1806
  }));
1807
1807
  }
1808
- return i.forEach((w) => {
1809
- w.value && w.value !== "all" && (s = s.filter((O) => {
1808
+ return c.forEach((w) => {
1809
+ w.value && w.value !== "all" && (o = o.filter((_) => {
1810
1810
  const R = n.find((Y) => Y.id === w.id);
1811
1811
  if (!R) return !0;
1812
- const j = typeof R.accessor == "function" ? R.accessor(O) : O[R.accessor];
1812
+ const j = typeof R.accessor == "function" ? R.accessor(_) : _[R.accessor];
1813
1813
  return String(j || "") === w.value;
1814
1814
  }));
1815
- }), s;
1816
- }, [r, H, n, a, i]), $ = ie(() => {
1815
+ }), o;
1816
+ }, [r, H, n, a, c]), $ = ie(() => {
1817
1817
  if (!E.column || !E.direction) return m;
1818
- const s = n.find((w) => w.id === E.column);
1819
- return s ? [...m].sort((w, O) => {
1820
- const R = typeof s.accessor == "function" ? s.accessor(w) : w[s.accessor], j = typeof s.accessor == "function" ? s.accessor(O) : O[s.accessor];
1818
+ const o = n.find((w) => w.id === E.column);
1819
+ return o ? [...m].sort((w, _) => {
1820
+ const R = typeof o.accessor == "function" ? o.accessor(w) : w[o.accessor], j = typeof o.accessor == "function" ? o.accessor(_) : _[o.accessor];
1821
1821
  let Y = 0;
1822
1822
  return R < j ? Y = -1 : R > j && (Y = 1), E.direction === "desc" ? -Y : Y;
1823
1823
  }) : m;
1824
1824
  }, [m, E, n]), L = ie(() => {
1825
1825
  if (!h) return $;
1826
- const s = z.page * z.pageSize, w = s + z.pageSize;
1827
- return $.slice(s, w);
1826
+ const o = z.page * z.pageSize, w = o + z.pageSize;
1827
+ return $.slice(o, w);
1828
1828
  }, [$, z, h]), D = ae(
1829
- (s) => {
1830
- n.find((O) => O.id === s)?.sortable && J((O) => O.column !== s ? { column: s, direction: "asc" } : O.direction === "asc" ? { column: s, direction: "desc" } : { column: null, direction: null });
1829
+ (o) => {
1830
+ n.find((_) => _.id === o)?.sortable && J((_) => _.column !== o ? { column: o, direction: "asc" } : _.direction === "asc" ? { column: o, direction: "desc" } : { column: null, direction: null });
1831
1831
  },
1832
1832
  [n]
1833
- ), P = ae((s) => {
1834
- v((w) => ({ ...w, page: s }));
1835
- }, []), M = ae((s) => {
1836
- v({ page: 0, pageSize: s });
1833
+ ), P = ae((o) => {
1834
+ v((w) => ({ ...w, page: o }));
1835
+ }, []), M = ae((o) => {
1836
+ v({ page: 0, pageSize: o });
1837
1837
  }, []), re = ae(
1838
- (s, w) => {
1838
+ (o, w) => {
1839
1839
  if (!f) return;
1840
- const O = C(s, 0);
1841
- d.map((R, j) => C(R, j)), f(w ? [...d, s] : d.filter(
1842
- (R, j) => C(d[j], j) !== O
1840
+ const _ = C(o, 0);
1841
+ i.map((R, j) => C(R, j)), f(w ? [...i, o] : i.filter(
1842
+ (R, j) => C(i[j], j) !== _
1843
1843
  ));
1844
1844
  },
1845
- [d, f, C]
1845
+ [i, f, C]
1846
1846
  ), ne = ae(
1847
- (s) => {
1848
- f && f(s ? [...L] : []);
1847
+ (o) => {
1848
+ f && f(o ? [...L] : []);
1849
1849
  },
1850
1850
  [L, f]
1851
1851
  );
1852
1852
  G(() => {
1853
- v((s) => ({ ...s, page: 0 }));
1853
+ v((o) => ({ ...o, page: 0 }));
1854
1854
  }, [H, E]), G(() => {
1855
- v((s) => ({ ...s, page: 0 }));
1856
- }, [i.map((s) => s.value).join(",")]);
1857
- const W = $.length, S = Math.ceil(W / z.pageSize), I = z.page * z.pageSize + 1, V = Math.min(I + z.pageSize - 1, W), A = L.length > 0 && L.every((s) => {
1858
- const w = C(s, 0);
1859
- return d.some(
1860
- (O, R) => C(O, R) === w
1855
+ v((o) => ({ ...o, page: 0 }));
1856
+ }, [c.map((o) => o.value).join(",")]);
1857
+ const W = $.length, S = Math.ceil(W / z.pageSize), I = z.page * z.pageSize + 1, O = Math.min(I + z.pageSize - 1, W), A = L.length > 0 && L.every((o) => {
1858
+ const w = C(o, 0);
1859
+ return i.some(
1860
+ (_, R) => C(_, R) === w
1861
1861
  );
1862
- }), Q = L.some((s) => {
1863
- const w = C(s, 0);
1864
- return d.some(
1865
- (O, R) => C(O, R) === w
1862
+ }), Q = L.some((o) => {
1863
+ const w = C(o, 0);
1864
+ return i.some(
1865
+ (_, R) => C(_, R) === w
1866
1866
  );
1867
1867
  }), te = g(
1868
1868
  "w-full text-sm leading-5 text-[var(--text-default)] border-collapse",
@@ -1873,21 +1873,21 @@ const ur = ({
1873
1873
  "hover:bg-[var(--neutral-container)] dark:hover:bg-[var(--neutral-container-emphasis)]": k,
1874
1874
  "cursor-pointer": u
1875
1875
  });
1876
- return /* @__PURE__ */ c("div", { className: "space-y-4", children: [
1877
- (a || i.length > 0) && /* @__PURE__ */ e("div", { className: "pt-4 pb-2", children: /* @__PURE__ */ c("div", { className: "flex flex-wrap gap-4 items-start", children: [
1878
- i.map((s) => /* @__PURE__ */ e(yr, { ...s }, s.id)),
1876
+ return /* @__PURE__ */ d("div", { className: "space-y-4", children: [
1877
+ (a || c.length > 0) && /* @__PURE__ */ e("div", { className: "pt-4 pb-2", children: /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-4 items-start", children: [
1878
+ c.map((o) => /* @__PURE__ */ e(yr, { ...o }, o.id)),
1879
1879
  /* @__PURE__ */ e("div", { className: "w-full sm:w-auto sm:ml-auto min-w-[200px]", children: /* @__PURE__ */ e(
1880
1880
  ue,
1881
1881
  {
1882
- placeholder: o,
1882
+ placeholder: s,
1883
1883
  value: H,
1884
- onChange: (s) => F(s.target.value),
1884
+ onChange: (o) => F(o.target.value),
1885
1885
  startIcon: /* @__PURE__ */ e(mr, {}),
1886
1886
  className: "max-w-sm"
1887
1887
  }
1888
1888
  ) })
1889
1889
  ] }) }),
1890
- /* @__PURE__ */ c("div", { className: "relative w-full overflow-x-auto min-h-[400px]", children: [
1890
+ /* @__PURE__ */ d("div", { className: "relative w-full overflow-x-auto min-h-[400px]", children: [
1891
1891
  t && /* @__PURE__ */ e("div", { className: "flex items-center justify-center z-10", children: /* @__PURE__ */ e(
1892
1892
  ir,
1893
1893
  {
@@ -1896,21 +1896,21 @@ const ur = ({
1896
1896
  tableColumns: n.length
1897
1897
  }
1898
1898
  ) }),
1899
- /* @__PURE__ */ c("table", { ref: T, className: g(te, "min-w-full"), children: [
1900
- /* @__PURE__ */ e("thead", { className: U, children: /* @__PURE__ */ c("tr", { children: [
1899
+ /* @__PURE__ */ d("table", { ref: T, className: g(te, "min-w-full"), children: [
1900
+ /* @__PURE__ */ e("thead", { className: U, children: /* @__PURE__ */ d("tr", { children: [
1901
1901
  l && /* @__PURE__ */ e("th", { className: g(le, "w-12"), children: /* @__PURE__ */ e(
1902
1902
  "input",
1903
1903
  {
1904
1904
  type: "checkbox",
1905
1905
  checked: A,
1906
- ref: (s) => {
1907
- s && (s.indeterminate = Q && !A);
1906
+ ref: (o) => {
1907
+ o && (o.indeterminate = Q && !A);
1908
1908
  },
1909
- onChange: (s) => ne(s.target.checked),
1909
+ onChange: (o) => ne(o.target.checked),
1910
1910
  className: "rounded border-neutral-300 dark:border-neutral-600"
1911
1911
  }
1912
1912
  ) }),
1913
- !t && n.map((s) => /* @__PURE__ */ e(
1913
+ !t && n.map((o) => /* @__PURE__ */ e(
1914
1914
  "th",
1915
1915
  {
1916
1916
  className: g(
@@ -1918,36 +1918,36 @@ const ur = ({
1918
1918
  "font-semibold text-xs text-[var(--text-muted)] dark:text-[var(--text-muted)] uppercase tracking-wider",
1919
1919
  "group",
1920
1920
  {
1921
- "text-left": s.align === "left" || !s.align,
1922
- "text-center": s.align === "center",
1923
- "text-right": s.align === "right",
1924
- "cursor-pointer select-none": s.sortable,
1925
- "sticky left-0 bg-white dark:bg-neutral-900": s.sticky === "left",
1926
- "sticky right-0 bg-white dark:bg-neutral-900": s.sticky === "right"
1921
+ "text-left": o.align === "left" || !o.align,
1922
+ "text-center": o.align === "center",
1923
+ "text-right": o.align === "right",
1924
+ "cursor-pointer select-none": o.sortable,
1925
+ "sticky left-0 bg-white dark:bg-neutral-900": o.sticky === "left",
1926
+ "sticky right-0 bg-white dark:bg-neutral-900": o.sticky === "right"
1927
1927
  }
1928
1928
  ),
1929
- style: { width: s.width },
1930
- onClick: () => s.sortable && D(s.id),
1931
- children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
1932
- s.headerCell ? s.headerCell() : s.header,
1933
- s.sortable && /* @__PURE__ */ c(
1929
+ style: { width: o.width },
1930
+ onClick: () => o.sortable && D(o.id),
1931
+ children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
1932
+ o.headerCell ? o.headerCell() : o.header,
1933
+ o.sortable && /* @__PURE__ */ d(
1934
1934
  "div",
1935
1935
  {
1936
1936
  className: g(
1937
1937
  "flex flex-col opacity-0 group-hover:opacity-100 transition-opacity",
1938
- E.column === s.id && "opacity-100"
1938
+ E.column === o.id && "opacity-100"
1939
1939
  ),
1940
1940
  children: [
1941
1941
  /* @__PURE__ */ e(
1942
1942
  hr,
1943
1943
  {
1944
- active: E.column === s.id && E.direction === "asc"
1944
+ active: E.column === o.id && E.direction === "asc"
1945
1945
  }
1946
1946
  ),
1947
1947
  /* @__PURE__ */ e(
1948
1948
  fr,
1949
1949
  {
1950
- active: E.column === s.id && E.direction === "desc"
1950
+ active: E.column === o.id && E.direction === "desc"
1951
1951
  }
1952
1952
  )
1953
1953
  ]
@@ -1955,7 +1955,7 @@ const ur = ({
1955
1955
  )
1956
1956
  ] })
1957
1957
  },
1958
- s.id
1958
+ o.id
1959
1959
  )),
1960
1960
  y.length > 0 && /* @__PURE__ */ e("th", { className: g(le, "w-20"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1961
1961
  ] }) }),
@@ -1969,20 +1969,20 @@ const ur = ({
1969
1969
  ),
1970
1970
  children: N || "No data available"
1971
1971
  }
1972
- ) }) : L.map((s, w) => {
1973
- const O = C(s, w), R = d.some(
1974
- (j, Y) => C(j, Y) === O
1972
+ ) }) : L.map((o, w) => {
1973
+ const _ = C(o, w), R = i.some(
1974
+ (j, Y) => C(j, Y) === _
1975
1975
  );
1976
- return /* @__PURE__ */ c(
1976
+ return /* @__PURE__ */ d(
1977
1977
  "tr",
1978
1978
  {
1979
1979
  className: g(
1980
1980
  he,
1981
1981
  { "bg-blue-50 dark:bg-blue-900/20": R },
1982
- K?.(s, w)
1982
+ K?.(o, w)
1983
1983
  ),
1984
1984
  onClick: (j) => {
1985
- j.stopPropagation(), u?.(s, w);
1985
+ j.stopPropagation(), u?.(o, w);
1986
1986
  },
1987
1987
  children: [
1988
1988
  l && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
@@ -1991,13 +1991,13 @@ const ur = ({
1991
1991
  type: "checkbox",
1992
1992
  checked: R,
1993
1993
  onChange: (j) => {
1994
- j.stopPropagation(), re(s, j.target.checked);
1994
+ j.stopPropagation(), re(o, j.target.checked);
1995
1995
  },
1996
1996
  className: "rounded border-neutral-300 dark:border-neutral-600"
1997
1997
  }
1998
1998
  ) }),
1999
1999
  n.map((j) => {
2000
- const Y = typeof j.accessor == "function" ? j.accessor(s) : s[j.accessor];
2000
+ const Y = typeof j.accessor == "function" ? j.accessor(o) : o[j.accessor];
2001
2001
  return /* @__PURE__ */ e(
2002
2002
  "td",
2003
2003
  {
@@ -2008,7 +2008,7 @@ const ur = ({
2008
2008
  "sticky left-0 bg-white dark:bg-neutral-900": j.sticky === "left",
2009
2009
  "sticky right-0 bg-white dark:bg-neutral-900": j.sticky === "right"
2010
2010
  }),
2011
- children: j.cell ? j.cell(Y, s, w) : String(Y || "")
2011
+ children: j.cell ? j.cell(Y, o, w) : String(Y || "")
2012
2012
  },
2013
2013
  j.id
2014
2014
  );
@@ -2016,57 +2016,57 @@ const ur = ({
2016
2016
  y.length > 0 && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
2017
2017
  ur,
2018
2018
  {
2019
- trigger: /* @__PURE__ */ c("div", { className: "inline-flex items-center gap-1 px-2 py-1 text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100", children: [
2019
+ trigger: /* @__PURE__ */ d("div", { className: "inline-flex items-center gap-1 px-2 py-1 text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100", children: [
2020
2020
  /* @__PURE__ */ e("span", { children: "Options" }),
2021
- /* @__PURE__ */ e($e, {})
2021
+ /* @__PURE__ */ e(ze, {})
2022
2022
  ] }),
2023
2023
  options: y.map((j) => ({
2024
2024
  value: j.id,
2025
2025
  label: j.label,
2026
2026
  icon: j.icon,
2027
- disabled: j.disabled?.(s)
2027
+ disabled: j.disabled?.(o)
2028
2028
  })),
2029
2029
  onSelect: (j) => {
2030
2030
  const Y = y.find(
2031
2031
  (fe) => fe.id === j
2032
2032
  );
2033
- Y && Y.onClick(s, w);
2033
+ Y && Y.onClick(o, w);
2034
2034
  },
2035
2035
  placement: "bottom-end"
2036
2036
  }
2037
2037
  ) })
2038
2038
  ]
2039
2039
  },
2040
- O
2040
+ _
2041
2041
  );
2042
2042
  }) })
2043
2043
  ] })
2044
2044
  ] }),
2045
- h && W > 0 && /* @__PURE__ */ c("div", { className: "flex items-center justify-between px-6", children: [
2046
- /* @__PURE__ */ c("div", { className: "flex items-center gap-4", children: [
2047
- /* @__PURE__ */ c("span", { className: "text-sm text-neutral-600 dark:text-neutral-400", children: [
2045
+ h && W > 0 && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-6", children: [
2046
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-4", children: [
2047
+ /* @__PURE__ */ d("span", { className: "text-sm text-neutral-600 dark:text-neutral-400", children: [
2048
2048
  "Showing ",
2049
2049
  I,
2050
2050
  " to ",
2051
- V,
2051
+ O,
2052
2052
  " of ",
2053
2053
  W,
2054
2054
  " results"
2055
2055
  ] }),
2056
- /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
2056
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
2057
2057
  /* @__PURE__ */ e("span", { className: "text-sm text-neutral-600 dark:text-neutral-400", children: "Rows per page:" }),
2058
2058
  /* @__PURE__ */ e(
2059
2059
  "select",
2060
2060
  {
2061
2061
  value: z.pageSize,
2062
- onChange: (s) => M(Number(s.target.value)),
2062
+ onChange: (o) => M(Number(o.target.value)),
2063
2063
  className: "border border-[var(--neutral-border)] text-[var(--text-default)] dark:text-[var(--text-on-neutral)] rounded-md px-2 py-1 text-sm bg-[var(--base-input)] dark:bg-[var(--base-input)] w-16",
2064
- children: b.map((s) => /* @__PURE__ */ e("option", { value: s, children: s }, s))
2064
+ children: b.map((o) => /* @__PURE__ */ e("option", { value: o, children: o }, o))
2065
2065
  }
2066
2066
  )
2067
2067
  ] })
2068
2068
  ] }),
2069
- /* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
2069
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-1", children: [
2070
2070
  /* @__PURE__ */ e(
2071
2071
  ee,
2072
2072
  {
@@ -2089,7 +2089,7 @@ const ur = ({
2089
2089
  children: /* @__PURE__ */ e(pr, {})
2090
2090
  }
2091
2091
  ),
2092
- /* @__PURE__ */ c("span", { className: "px-3 py-1 text-sm text-gray-500 dark:text-gray-400", children: [
2092
+ /* @__PURE__ */ d("span", { className: "px-3 py-1 text-sm text-gray-500 dark:text-gray-400", children: [
2093
2093
  "Page ",
2094
2094
  z.page + 1,
2095
2095
  " of ",
@@ -2120,14 +2120,14 @@ const ur = ({
2120
2120
  ] })
2121
2121
  ] })
2122
2122
  ] });
2123
- }, vr = qe(null), et = ({
2123
+ }, vr = He(null), et = ({
2124
2124
  items: r,
2125
2125
  activeTab: n,
2126
2126
  onTabChange: t,
2127
2127
  className: a
2128
2128
  }) => {
2129
- const [o, i] = _(r[0]?.id || ""), h = n || o, b = (p) => {
2130
- t ? t(p) : i(p);
2129
+ const [s, c] = V(r[0]?.id || ""), h = n || s, b = (p) => {
2130
+ t ? t(p) : c(p);
2131
2131
  };
2132
2132
  return /* @__PURE__ */ e("div", { className: g("border-b border-neutral-200 dark:border-neutral-700", a), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: r.map((p) => /* @__PURE__ */ e(
2133
2133
  "button",
@@ -2142,7 +2142,7 @@ const ur = ({
2142
2142
  "border-transparent text-neutral-300 cursor-not-allowed dark:text-neutral-600": p.disabled
2143
2143
  }
2144
2144
  ),
2145
- children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2145
+ children: /* @__PURE__ */ d("span", { className: "flex items-center gap-2", children: [
2146
2146
  p.label,
2147
2147
  p.badge && /* @__PURE__ */ e("span", { className: g(
2148
2148
  "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
@@ -2157,52 +2157,52 @@ const ur = ({
2157
2157
  defaultTab: n,
2158
2158
  activeTab: t,
2159
2159
  onTabChange: a,
2160
- variant: o = "default",
2161
- size: i = "md",
2160
+ variant: s = "default",
2161
+ size: c = "md",
2162
2162
  className: h
2163
2163
  }) => {
2164
- const [b, p] = _(
2164
+ const [b, p] = V(
2165
2165
  n || t || r[0]?.id || ""
2166
2166
  ), y = t || b, u = (N) => {
2167
2167
  a ? a(N) : p(N);
2168
2168
  }, l = {
2169
2169
  activeTab: y,
2170
2170
  setActiveTab: u
2171
- }, d = r.find((N) => N.id === y), f = g(
2171
+ }, i = r.find((N) => N.id === y), f = g(
2172
2172
  "flex",
2173
2173
  {
2174
- "border-b border-neutral-200 dark:border-neutral-700 px-2": o === "default" || o === "underline",
2175
- "bg-neutral-100 dark:bg-neutral-800 p-1 rounded-lg": o === "pills",
2176
- "space-x-1": o === "pills",
2177
- "space-x-8": o === "default" || o === "underline"
2174
+ "border-b border-neutral-200 dark:border-neutral-700 px-2": s === "default" || s === "underline",
2175
+ "bg-neutral-100 dark:bg-neutral-800 p-1 rounded-lg": s === "pills",
2176
+ "space-x-1": s === "pills",
2177
+ "space-x-8": s === "default" || s === "underline"
2178
2178
  },
2179
2179
  h
2180
2180
  ), C = (N, k) => {
2181
2181
  const B = "transition-colors duration-200 font-medium", x = {
2182
- "text-xs px-2 py-1": i === "sm",
2183
- "text-sm px-3 py-2": i === "md",
2184
- "text-base px-4 py-3": i === "lg"
2182
+ "text-xs px-2 py-1": c === "sm",
2183
+ "text-sm px-3 py-2": c === "md",
2184
+ "text-base px-4 py-3": c === "lg"
2185
2185
  }, q = {
2186
2186
  // Default variant
2187
- "border-b-2 -mb-px": o === "default",
2187
+ "border-b-2 -mb-px": s === "default",
2188
2188
  // Pills variant
2189
- "rounded-md": o === "pills",
2189
+ "rounded-md": s === "pills",
2190
2190
  // Underline variant
2191
- "border-b-2 pb-2": o === "underline"
2191
+ "border-b-2 pb-2": s === "underline"
2192
2192
  }, K = {
2193
2193
  "opacity-50 cursor-not-allowed": N.disabled,
2194
2194
  "cursor-pointer": !N.disabled
2195
2195
  }, H = k ? {
2196
- "border-primary text-primary": o === "default" || o === "underline",
2197
- "bg-white dark:bg-neutral-700 text-neutral-900 dark:text-neutral-100 shadow-sm": o === "pills"
2196
+ "border-primary text-primary": s === "default" || s === "underline",
2197
+ "bg-white dark:bg-neutral-700 text-neutral-900 dark:text-neutral-100 shadow-sm": s === "pills"
2198
2198
  } : {}, F = !k && !N.disabled ? {
2199
- "border-transparent text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": o === "default",
2200
- "text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": o === "pills",
2201
- "border-transparent text-neutral-600 hover:text-neutral-900 hover:border-neutral-300 dark:text-neutral-400 dark:hover:text-neutral-100": o === "underline"
2199
+ "border-transparent text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": s === "default",
2200
+ "text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": s === "pills",
2201
+ "border-transparent text-neutral-600 hover:text-neutral-900 hover:border-neutral-300 dark:text-neutral-400 dark:hover:text-neutral-100": s === "underline"
2202
2202
  } : {};
2203
2203
  return g(B, x, q, K, H, F);
2204
2204
  };
2205
- return /* @__PURE__ */ e(vr.Provider, { value: l, children: /* @__PURE__ */ c("div", { children: [
2205
+ return /* @__PURE__ */ e(vr.Provider, { value: l, children: /* @__PURE__ */ d("div", { children: [
2206
2206
  /* @__PURE__ */ e("div", { className: f, role: "tablist", children: r.map((N) => /* @__PURE__ */ e(
2207
2207
  "button",
2208
2208
  {
@@ -2213,21 +2213,21 @@ const ur = ({
2213
2213
  disabled: N.disabled,
2214
2214
  onClick: () => !N.disabled && u(N.id),
2215
2215
  className: C(N, y === N.id),
2216
- children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2216
+ children: /* @__PURE__ */ d("span", { className: "flex items-center gap-2", children: [
2217
2217
  N.label,
2218
2218
  N.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: N.badge })
2219
2219
  ] })
2220
2220
  },
2221
2221
  N.id
2222
2222
  )) }),
2223
- d?.content && /* @__PURE__ */ e(
2223
+ i?.content && /* @__PURE__ */ e(
2224
2224
  "div",
2225
2225
  {
2226
2226
  role: "tabpanel",
2227
2227
  id: `tabpanel-${y}`,
2228
2228
  "aria-labelledby": `tab-${y}`,
2229
2229
  className: "mt-4",
2230
- children: d.content
2230
+ children: i.content
2231
2231
  }
2232
2232
  )
2233
2233
  ] }) });
@@ -2243,26 +2243,26 @@ function wr({
2243
2243
  onClose: n,
2244
2244
  title: t,
2245
2245
  size: a = "md",
2246
- closeOnBackdropClick: o = !0,
2247
- closeOnEscape: i = !0,
2246
+ closeOnBackdropClick: s = !0,
2247
+ closeOnEscape: c = !0,
2248
2248
  className: h,
2249
2249
  backdropClassName: b,
2250
2250
  children: p,
2251
2251
  footer: y,
2252
2252
  showCloseButton: u = !0
2253
2253
  }) {
2254
- const l = X(null), d = X(null);
2254
+ const l = X(null), i = X(null);
2255
2255
  G(() => {
2256
- if (!r || !i) return;
2256
+ if (!r || !c) return;
2257
2257
  const C = (N) => {
2258
2258
  N.key === "Escape" && n();
2259
2259
  };
2260
2260
  return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
2261
- }, [r, i, n]), G(() => (r ? (d.current = document.activeElement, l.current && l.current.focus(), document.body.style.overflow = "hidden") : (d.current && d.current.focus(), document.body.style.overflow = ""), () => {
2261
+ }, [r, c, n]), G(() => (r ? (i.current = document.activeElement, l.current && l.current.focus(), document.body.style.overflow = "hidden") : (i.current && i.current.focus(), document.body.style.overflow = ""), () => {
2262
2262
  document.body.style.overflow = "";
2263
2263
  }), [r]);
2264
2264
  const f = (C) => {
2265
- o && C.target === C.currentTarget && n();
2265
+ s && C.target === C.currentTarget && n();
2266
2266
  };
2267
2267
  return r ? /* @__PURE__ */ e(
2268
2268
  "div",
@@ -2274,7 +2274,7 @@ function wr({
2274
2274
  b
2275
2275
  ),
2276
2276
  onClick: f,
2277
- children: /* @__PURE__ */ c(
2277
+ children: /* @__PURE__ */ d(
2278
2278
  "div",
2279
2279
  {
2280
2280
  ref: l,
@@ -2290,7 +2290,7 @@ function wr({
2290
2290
  "aria-labelledby": t ? "modal-title" : void 0,
2291
2291
  tabIndex: -1,
2292
2292
  children: [
2293
- (t || u) && /* @__PURE__ */ c("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2293
+ (t || u) && /* @__PURE__ */ d("div", { className: "flex items-center justify-between p-6 pb-0", children: [
2294
2294
  t && /* @__PURE__ */ e(
2295
2295
  "span",
2296
2296
  {
@@ -2322,15 +2322,15 @@ const Z = ({
2322
2322
  size: n = "md",
2323
2323
  weight: t = "normal",
2324
2324
  color: a = "current",
2325
- align: o = "left",
2326
- truncate: i = !1,
2325
+ align: s = "left",
2326
+ truncate: c = !1,
2327
2327
  italic: h = !1,
2328
2328
  underline: b = !1,
2329
2329
  lineHeight: p = "normal",
2330
2330
  as: y,
2331
2331
  className: u,
2332
2332
  children: l,
2333
- ...d
2333
+ ...i
2334
2334
  }) => {
2335
2335
  const f = y || Cr(r), C = g(
2336
2336
  // Base styles
@@ -2373,10 +2373,10 @@ const Z = ({
2373
2373
  },
2374
2374
  // Alignment
2375
2375
  {
2376
- "text-left": o === "left",
2377
- "text-center": o === "center",
2378
- "text-right": o === "right",
2379
- "text-justify": o === "justify"
2376
+ "text-left": s === "left",
2377
+ "text-center": s === "center",
2378
+ "text-right": s === "right",
2379
+ "text-justify": s === "justify"
2380
2380
  },
2381
2381
  // Line height (override variant line heights)
2382
2382
  r === "body" && {
@@ -2388,11 +2388,11 @@ const Z = ({
2388
2388
  {
2389
2389
  italic: h,
2390
2390
  underline: b,
2391
- truncate: i
2391
+ truncate: c
2392
2392
  },
2393
2393
  u
2394
2394
  );
2395
- return /* @__PURE__ */ e(f, { className: C, ...d, children: l });
2395
+ return /* @__PURE__ */ e(f, { className: C, ...i, children: l });
2396
2396
  };
2397
2397
  function Cr(r) {
2398
2398
  return {
@@ -2407,8 +2407,8 @@ const Sr = ({
2407
2407
  onChange: n,
2408
2408
  label: t,
2409
2409
  placeholder: a = "Select or upload a file",
2410
- error: o,
2411
- disabled: i,
2410
+ error: s,
2411
+ disabled: c,
2412
2412
  accept: h,
2413
2413
  onListFiles: b,
2414
2414
  onListMounts: p,
@@ -2416,21 +2416,21 @@ const Sr = ({
2416
2416
  onDownloadFile: u,
2417
2417
  onRegisterFile: l
2418
2418
  }) => {
2419
- const [d, f] = _(!1), [C, N] = _([]), [k, B] = _(null), [x, q] = _("/"), [K, H] = _([]), [F, E] = _(!1), [J, z] = _(""), [v, T] = _(
2419
+ const [i, f] = V(!1), [C, N] = V([]), [k, B] = V(null), [x, q] = V("/"), [K, H] = V([]), [F, E] = V(!1), [J, z] = V(""), [v, T] = V(
2420
2420
  typeof r == "object" ? r : null
2421
- ), [m, $] = _(!1), [L, D] = _(""), P = X(null);
2421
+ ), [m, $] = V(!1), [L, D] = V(""), P = X(null);
2422
2422
  G(() => {
2423
- d && M();
2424
- }, [d]), G(() => {
2425
- d && k && re();
2426
- }, [d, k, x, J]);
2423
+ i && M();
2424
+ }, [i]), G(() => {
2425
+ i && k && re();
2426
+ }, [i, k, x, J]);
2427
2427
  const M = async () => {
2428
2428
  E(!0);
2429
2429
  try {
2430
- const s = await p?.();
2431
- s?.data && N(s.data);
2432
- } catch (s) {
2433
- console.error("Failed to load mounts", s);
2430
+ const o = await p?.();
2431
+ o?.data && N(o.data);
2432
+ } catch (o) {
2433
+ console.error("Failed to load mounts", o);
2434
2434
  } finally {
2435
2435
  E(!1);
2436
2436
  }
@@ -2438,20 +2438,20 @@ const Sr = ({
2438
2438
  if (k) {
2439
2439
  E(!0);
2440
2440
  try {
2441
- const s = await b?.({ mountId: k.id, name: J, path: x });
2442
- s?.data && H(s.data);
2443
- } catch (s) {
2444
- console.error("Failed to load files", s);
2441
+ const o = await b?.({ mountId: k.id, name: J, path: x });
2442
+ o?.data && H(o.data);
2443
+ } catch (o) {
2444
+ console.error("Failed to load files", o);
2445
2445
  } finally {
2446
2446
  E(!1);
2447
2447
  }
2448
2448
  }
2449
- }, ne = async (s) => {
2450
- const w = s.target.files?.[0];
2449
+ }, ne = async (o) => {
2450
+ const w = o.target.files?.[0];
2451
2451
  if (w) {
2452
2452
  E(!0);
2453
2453
  try {
2454
- const O = await w.arrayBuffer(), R = new Uint8Array(O), j = {
2454
+ const _ = await w.arrayBuffer(), R = new Uint8Array(_), j = {
2455
2455
  id: `local-${Date.now()}`,
2456
2456
  name: w.name,
2457
2457
  type: "file",
@@ -2463,19 +2463,19 @@ const Sr = ({
2463
2463
  ownerId: "me"
2464
2464
  };
2465
2465
  T(j), n(j, R), f(!1);
2466
- } catch (O) {
2467
- console.error("Local file selection failed", O);
2466
+ } catch (_) {
2467
+ console.error("Local file selection failed", _);
2468
2468
  } finally {
2469
2469
  E(!1);
2470
2470
  }
2471
2471
  }
2472
- }, W = async (s) => {
2473
- const w = s.target.files?.[0];
2472
+ }, W = async (o) => {
2473
+ const w = o.target.files?.[0];
2474
2474
  if (!(!w || !k)) {
2475
2475
  E(!0);
2476
2476
  try {
2477
- const O = await w.arrayBuffer(), R = await y?.({
2478
- file: new Uint8Array(O),
2477
+ const _ = await w.arrayBuffer(), R = await y?.({
2478
+ file: new Uint8Array(_),
2479
2479
  filename: w.name,
2480
2480
  mimeType: w.type || "application/octet-stream",
2481
2481
  mountId: k.id,
@@ -2483,10 +2483,10 @@ const Sr = ({
2483
2483
  });
2484
2484
  if (R?.data) {
2485
2485
  const j = R.data;
2486
- T(j), n(j, new Uint8Array(O)), f(!1);
2486
+ T(j), n(j, new Uint8Array(_)), f(!1);
2487
2487
  }
2488
- } catch (O) {
2489
- console.error("Upload failed", O);
2488
+ } catch (_) {
2489
+ console.error("Upload failed", _);
2490
2490
  } finally {
2491
2491
  E(!1);
2492
2492
  }
@@ -2495,7 +2495,7 @@ const Sr = ({
2495
2495
  if (!(!L || !k)) {
2496
2496
  E(!0);
2497
2497
  try {
2498
- const s = `${x}${L}/`;
2498
+ const o = `${x}${L}/`;
2499
2499
  l && (await l({
2500
2500
  name: L,
2501
2501
  type: "folder",
@@ -2503,96 +2503,96 @@ const Sr = ({
2503
2503
  mimeType: "application/x-directory",
2504
2504
  size: 0,
2505
2505
  mountId: k.id,
2506
- providerKey: s,
2506
+ providerKey: o,
2507
2507
  ownerId: "me"
2508
2508
  }), await re()), $(!1), D("");
2509
- } catch (s) {
2510
- console.error("Failed to create folder", s);
2509
+ } catch (o) {
2510
+ console.error("Failed to create folder", o);
2511
2511
  } finally {
2512
2512
  E(!1);
2513
2513
  }
2514
2514
  }
2515
- }, I = async (s) => {
2515
+ }, I = async (o) => {
2516
2516
  E(!0);
2517
2517
  try {
2518
- const w = await u?.(s.id);
2519
- T(s), n(s, w), f(!1);
2518
+ const w = await u?.(o.id);
2519
+ T(o), n(o, w), f(!1);
2520
2520
  } catch (w) {
2521
2521
  console.error("Failed to download file", w);
2522
2522
  } finally {
2523
2523
  E(!1);
2524
2524
  }
2525
- }, V = (s) => {
2526
- s.stopPropagation(), T(null), n(null);
2525
+ }, O = (o) => {
2526
+ o.stopPropagation(), T(null), n(null);
2527
2527
  }, A = ie(() => {
2528
- const s = /* @__PURE__ */ new Set(), w = [];
2529
- return K.forEach((O) => {
2530
- if (O.type === "folder") {
2531
- O.path === x && s.add(O.name);
2528
+ const o = /* @__PURE__ */ new Set(), w = [];
2529
+ return K.forEach((_) => {
2530
+ if (_.type === "folder") {
2531
+ _.path === x && o.add(_.name);
2532
2532
  return;
2533
2533
  }
2534
- const R = O.providerKey || O.name, Y = (x ? R.substring(x.length) : R).split("/").filter((fe) => fe !== "");
2535
- Y.length > 1 ? s.add(Y[0]) : Y.length === 1 && w.push(O);
2534
+ const R = _.providerKey || _.name, Y = (x ? R.substring(x.length) : R).split("/").filter((fe) => fe !== "");
2535
+ Y.length > 1 ? o.add(Y[0]) : Y.length === 1 && w.push(_);
2536
2536
  }), {
2537
- folders: Array.from(s).sort(),
2538
- files: w.sort((O, R) => O.name.localeCompare(R.name))
2537
+ folders: Array.from(o).sort(),
2538
+ files: w.sort((_, R) => _.name.localeCompare(R.name))
2539
2539
  };
2540
- }, [K, x]), Q = (s) => {
2541
- q((w) => `${w}${s}/`);
2540
+ }, [K, x]), Q = (o) => {
2541
+ q((w) => `${w}${o}/`);
2542
2542
  }, te = () => {
2543
- const s = x.split("/").filter((w) => w !== "");
2544
- s.pop(), s.length === 0 ? q("/") : q(`${s.join("/")}/`);
2543
+ const o = x.split("/").filter((w) => w !== "");
2544
+ o.pop(), o.length === 0 ? q("/") : q(`${o.join("/")}/`);
2545
2545
  }, U = ie(() => {
2546
- const s = A.folders.map((w) => ({
2546
+ const o = A.folders.map((w) => ({
2547
2547
  id: `folder-${w}`,
2548
2548
  name: w,
2549
2549
  type: "folder"
2550
2550
  }));
2551
2551
  return A.files.forEach((w) => {
2552
- s.push({
2552
+ o.push({
2553
2553
  ...w,
2554
2554
  type: "file"
2555
2555
  });
2556
- }), s;
2556
+ }), o;
2557
2557
  }, [A]), le = [
2558
2558
  {
2559
2559
  id: "name",
2560
2560
  header: "Name",
2561
2561
  accessor: "name",
2562
- cell: (s, w) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
2562
+ cell: (o, w) => /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
2563
2563
  /* @__PURE__ */ e(
2564
2564
  oe,
2565
2565
  {
2566
- icon: w.type === "folder" ? we : pe,
2566
+ icon: w.type === "folder" ? Ce : pe,
2567
2567
  size: "sm",
2568
2568
  color: w.type === "folder" ? "warning" : "secondary"
2569
2569
  }
2570
2570
  ),
2571
- /* @__PURE__ */ e("span", { className: g(w.type === "folder" && "font-medium"), children: s })
2571
+ /* @__PURE__ */ e("span", { className: g(w.type === "folder" && "font-medium"), children: o })
2572
2572
  ] })
2573
2573
  },
2574
2574
  {
2575
2575
  id: "type",
2576
2576
  header: "Type",
2577
- accessor: (s) => s.type === "folder" ? "Folder" : s.mimeType
2577
+ accessor: (o) => o.type === "folder" ? "Folder" : o.mimeType
2578
2578
  },
2579
2579
  {
2580
2580
  id: "size",
2581
2581
  header: "Size",
2582
- accessor: (s) => s.type === "file" ? `${(s.size / 1024).toFixed(1)} KB` : "-"
2582
+ accessor: (o) => o.type === "file" ? `${(o.size / 1024).toFixed(1)} KB` : "-"
2583
2583
  },
2584
2584
  {
2585
2585
  id: "actions",
2586
2586
  header: "",
2587
2587
  accessor: "id",
2588
2588
  align: "right",
2589
- cell: (s, w) => /* @__PURE__ */ e(
2589
+ cell: (o, w) => /* @__PURE__ */ e(
2590
2590
  ee,
2591
2591
  {
2592
2592
  size: "sm",
2593
2593
  variant: "outline",
2594
- onClick: (O) => {
2595
- O.stopPropagation(), w.type === "folder" ? Q(w.name) : I(w);
2594
+ onClick: (_) => {
2595
+ _.stopPropagation(), w.type === "folder" ? Q(w.name) : I(w);
2596
2596
  },
2597
2597
  loading: F && w.type === "file" && v?.id === w.id,
2598
2598
  children: w.type === "folder" ? "Open" : "Select"
@@ -2604,9 +2604,9 @@ const Sr = ({
2604
2604
  id: "name",
2605
2605
  header: "Mount Name",
2606
2606
  accessor: "name",
2607
- cell: (s) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
2608
- /* @__PURE__ */ e(oe, { icon: Ne, size: "sm", color: "primary" }),
2609
- /* @__PURE__ */ e("span", { children: s })
2607
+ cell: (o) => /* @__PURE__ */ d("div", { className: "flex items-center gap-2 font-medium", children: [
2608
+ /* @__PURE__ */ e(oe, { icon: we, size: "sm", color: "primary" }),
2609
+ /* @__PURE__ */ e("span", { children: o })
2610
2610
  ] })
2611
2611
  },
2612
2612
  {
@@ -2614,28 +2614,28 @@ const Sr = ({
2614
2614
  header: "",
2615
2615
  accessor: "id",
2616
2616
  align: "right",
2617
- cell: (s, w) => /* @__PURE__ */ e(ee, { size: "sm", variant: "outline", onClick: () => B(w), children: "Open" })
2617
+ cell: (o, w) => /* @__PURE__ */ e(ee, { size: "sm", variant: "outline", onClick: () => B(w), children: "Open" })
2618
2618
  }
2619
2619
  ];
2620
- return /* @__PURE__ */ c("div", { className: "space-y-1", children: [
2620
+ return /* @__PURE__ */ d("div", { className: "space-y-1", children: [
2621
2621
  t && /* @__PURE__ */ e(Z, { variant: "label", size: "sm", weight: "medium", children: t }),
2622
- /* @__PURE__ */ c(
2622
+ /* @__PURE__ */ d(
2623
2623
  "div",
2624
2624
  {
2625
- onClick: () => !i && f(!0),
2625
+ onClick: () => !c && f(!0),
2626
2626
  className: g(
2627
2627
  "flex items-center gap-3 px-3 py-2 border rounded-lg cursor-pointer transition-colors",
2628
2628
  "hover:border-primary-400 bg-white dark:bg-secondary-800",
2629
- o ? "border-error" : "border-neutral-200 dark:border-neutral-700",
2630
- i && "opacity-50 cursor-not-allowed bg-neutral-50"
2629
+ s ? "border-error" : "border-neutral-200 dark:border-neutral-700",
2630
+ c && "opacity-50 cursor-not-allowed bg-neutral-50"
2631
2631
  ),
2632
2632
  children: [
2633
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: v ? pe : Ne, color: v ? "primary" : "secondary" }) }),
2633
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: v ? pe : we, color: v ? "primary" : "secondary" }) }),
2634
2634
  /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: v ? /* @__PURE__ */ e("span", { className: "text-sm text-neutral-900 dark:text-neutral-100 font-medium", children: v.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-neutral-500", children: a }) }),
2635
- v && !i && /* @__PURE__ */ e(
2635
+ v && !c && /* @__PURE__ */ e(
2636
2636
  "button",
2637
2637
  {
2638
- onClick: V,
2638
+ onClick: O,
2639
2639
  className: "p-1 hover:bg-neutral-100 dark:hover:bg-neutral-700 rounded",
2640
2640
  children: /* @__PURE__ */ e(oe, { icon: Oe, size: "xs" })
2641
2641
  }
@@ -2643,11 +2643,11 @@ const Sr = ({
2643
2643
  ]
2644
2644
  }
2645
2645
  ),
2646
- o && /* @__PURE__ */ e(Z, { variant: "body", size: "xs", className: "text-error", children: o }),
2646
+ s && /* @__PURE__ */ e(Z, { variant: "body", size: "xs", className: "text-error", children: s }),
2647
2647
  /* @__PURE__ */ e(
2648
2648
  wr,
2649
2649
  {
2650
- open: d,
2650
+ open: i,
2651
2651
  onClose: () => {
2652
2652
  f(!1), B(null), q("/"), $(!1);
2653
2653
  },
@@ -2661,8 +2661,8 @@ const Sr = ({
2661
2661
  {
2662
2662
  id: "remote",
2663
2663
  label: "Platform Storage",
2664
- content: /* @__PURE__ */ e("div", { className: "space-y-4", children: k ? /* @__PURE__ */ c(Me, { children: [
2665
- /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2", children: [
2664
+ content: /* @__PURE__ */ e("div", { className: "space-y-4", children: k ? /* @__PURE__ */ d(Ee, { children: [
2665
+ /* @__PURE__ */ d("div", { className: "flex flex-wrap items-center gap-2", children: [
2666
2666
  /* @__PURE__ */ e(
2667
2667
  ee,
2668
2668
  {
@@ -2671,7 +2671,7 @@ const Sr = ({
2671
2671
  onClick: () => {
2672
2672
  x && x !== "/" ? te() : B(null);
2673
2673
  },
2674
- leftIcon: /* @__PURE__ */ e(oe, { icon: Ee, size: "xs" }),
2674
+ leftIcon: /* @__PURE__ */ e(oe, { icon: Ne, size: "xs" }),
2675
2675
  children: x ? "Back" : "Back to Mounts"
2676
2676
  }
2677
2677
  ),
@@ -2681,20 +2681,20 @@ const Sr = ({
2681
2681
  {
2682
2682
  placeholder: "Search...",
2683
2683
  value: J,
2684
- onChange: (s) => z(s.target.value),
2684
+ onChange: (o) => z(o.target.value),
2685
2685
  startIcon: /* @__PURE__ */ e(Ve, { size: 14 }),
2686
2686
  fullWidth: !0,
2687
2687
  size: "sm"
2688
2688
  }
2689
2689
  ) }),
2690
- /* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
2690
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-1", children: [
2691
2691
  /* @__PURE__ */ e(
2692
2692
  ee,
2693
2693
  {
2694
2694
  variant: "outline",
2695
2695
  size: "sm",
2696
2696
  onClick: () => $(!0),
2697
- leftIcon: /* @__PURE__ */ e(oe, { icon: _e, size: "xs" }),
2697
+ leftIcon: /* @__PURE__ */ e(oe, { icon: Fe, size: "xs" }),
2698
2698
  children: "New Folder"
2699
2699
  }
2700
2700
  ),
@@ -2704,7 +2704,7 @@ const Sr = ({
2704
2704
  variant: "primary",
2705
2705
  size: "sm",
2706
2706
  onClick: () => P.current?.click(),
2707
- leftIcon: /* @__PURE__ */ e(oe, { icon: Fe, size: "xs" }),
2707
+ leftIcon: /* @__PURE__ */ e(oe, { icon: We, size: "xs" }),
2708
2708
  loading: F,
2709
2709
  children: "Upload"
2710
2710
  }
@@ -2721,15 +2721,15 @@ const Sr = ({
2721
2721
  )
2722
2722
  ] })
2723
2723
  ] }),
2724
- m && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-neutral-50 dark:bg-neutral-900 rounded-lg border border-neutral-200 dark:border-neutral-700", children: [
2725
- /* @__PURE__ */ e(oe, { icon: we, size: "sm", color: "warning" }),
2724
+ m && /* @__PURE__ */ d("div", { className: "flex items-center gap-2 p-3 bg-neutral-50 dark:bg-neutral-900 rounded-lg border border-neutral-200 dark:border-neutral-700", children: [
2725
+ /* @__PURE__ */ e(oe, { icon: Ce, size: "sm", color: "warning" }),
2726
2726
  /* @__PURE__ */ e(
2727
2727
  ue,
2728
2728
  {
2729
2729
  size: "sm",
2730
2730
  placeholder: "Folder name",
2731
2731
  value: L,
2732
- onChange: (s) => D(s.target.value),
2732
+ onChange: (o) => D(o.target.value),
2733
2733
  autoFocus: !0
2734
2734
  }
2735
2735
  ),
@@ -2737,43 +2737,43 @@ const Sr = ({
2737
2737
  /* @__PURE__ */ e(ee, { size: "sm", variant: "ghost", onClick: () => $(!1), children: "Cancel" })
2738
2738
  ] }),
2739
2739
  /* @__PURE__ */ e("div", { className: "max-h-[400px] overflow-auto rounded-lg border border-neutral-200 dark:border-neutral-700", children: /* @__PURE__ */ e(
2740
- Se,
2740
+ Le,
2741
2741
  {
2742
2742
  data: U,
2743
2743
  columns: le,
2744
2744
  loading: F,
2745
2745
  emptyContent: "This folder is empty",
2746
- onRowClick: (s) => s.type === "folder" ? Q(s.name) : I(s)
2746
+ onRowClick: (o) => o.type === "folder" ? Q(o.name) : I(o)
2747
2747
  }
2748
2748
  ) })
2749
2749
  ] }) : /* @__PURE__ */ e("div", { className: "max-h-[400px] overflow-auto rounded-lg border border-neutral-200 dark:border-neutral-700", children: /* @__PURE__ */ e(
2750
- Se,
2750
+ Le,
2751
2751
  {
2752
2752
  data: C,
2753
2753
  columns: he,
2754
2754
  loading: F,
2755
2755
  emptyContent: "No storage mounts configured",
2756
- onRowClick: (s) => B(s)
2756
+ onRowClick: (o) => B(o)
2757
2757
  }
2758
2758
  ) }) })
2759
2759
  },
2760
2760
  {
2761
2761
  id: "local",
2762
2762
  label: "Local File",
2763
- content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-neutral-200 dark:border-neutral-700 rounded-xl bg-neutral-50 dark:bg-secondary-900/50", children: [
2763
+ content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ d("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-neutral-200 dark:border-neutral-700 rounded-xl bg-neutral-50 dark:bg-secondary-900/50", children: [
2764
2764
  /* @__PURE__ */ e("div", { className: "p-4 bg-primary/10 rounded-full mb-4", children: /* @__PURE__ */ e(oe, { icon: pe, size: "xl", color: "primary" }) }),
2765
2765
  /* @__PURE__ */ e(Z, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
2766
- /* @__PURE__ */ c(Z, { variant: "body", size: "sm", className: "text-neutral-500 mt-1 mb-6 text-center max-w-xs", children: [
2766
+ /* @__PURE__ */ d(Z, { variant: "body", size: "sm", className: "text-neutral-500 mt-1 mb-6 text-center max-w-xs", children: [
2767
2767
  "This file will be used directly in the form and will ",
2768
2768
  /* @__PURE__ */ e("strong", { children: "not" }),
2769
2769
  " be uploaded to platform storage."
2770
2770
  ] }),
2771
- /* @__PURE__ */ c("label", { className: "cursor-pointer", children: [
2772
- /* @__PURE__ */ c("div", { className: g(
2771
+ /* @__PURE__ */ d("label", { className: "cursor-pointer", children: [
2772
+ /* @__PURE__ */ d("div", { className: g(
2773
2773
  "inline-flex items-center justify-center font-medium rounded-lg transition-colors duration-200 px-6 py-3 text-base bg-primary text-white hover:bg-primary-600",
2774
2774
  F && "opacity-50 cursor-wait"
2775
2775
  ), children: [
2776
- F && /* @__PURE__ */ c("svg", { className: "animate-spin h-4 w-4 mr-2", fill: "none", viewBox: "0 0 24 24", children: [
2776
+ F && /* @__PURE__ */ d("svg", { className: "animate-spin h-4 w-4 mr-2", fill: "none", viewBox: "0 0 24 24", children: [
2777
2777
  /* @__PURE__ */ e("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
2778
2778
  /* @__PURE__ */ e("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
2779
2779
  ] }),
@@ -2799,50 +2799,50 @@ const Sr = ({
2799
2799
  )
2800
2800
  ] });
2801
2801
  };
2802
- function Le(r, n) {
2802
+ function Me(r, n) {
2803
2803
  return n.split(".").reduce(
2804
2804
  (t, a) => t && typeof t == "object" && a in t ? t[a] : void 0,
2805
2805
  r
2806
2806
  );
2807
2807
  }
2808
2808
  function Lr(r, n, t) {
2809
- const a = n.split("."), o = Array.isArray(r) ? [...r] : { ...r };
2810
- let i = o;
2809
+ const a = n.split("."), s = Array.isArray(r) ? [...r] : { ...r };
2810
+ let c = s;
2811
2811
  for (let h = 0; h < a.length - 1; h++) {
2812
- const b = a[h], p = i[b];
2813
- i[b] = p && typeof p == "object" ? Array.isArray(p) ? [...p] : { ...p } : {}, i = i[b];
2812
+ const b = a[h], p = c[b];
2813
+ c[b] = p && typeof p == "object" ? Array.isArray(p) ? [...p] : { ...p } : {}, c = c[b];
2814
2814
  }
2815
- return i[a[a.length - 1]] = t, o;
2815
+ return c[a[a.length - 1]] = t, s;
2816
2816
  }
2817
2817
  function Mr(r, n) {
2818
2818
  const t = n.split("."), a = Array.isArray(r) ? [...r] : { ...r };
2819
- let o = a;
2820
- for (let i = 0; i < t.length - 1; i++) {
2821
- const h = t[i];
2822
- if (!o[h] || typeof o[h] != "object") return a;
2823
- o[h] = Array.isArray(o[h]) ? [...o[h]] : { ...o[h] }, o = o[h];
2819
+ let s = a;
2820
+ for (let c = 0; c < t.length - 1; c++) {
2821
+ const h = t[c];
2822
+ if (!s[h] || typeof s[h] != "object") return a;
2823
+ s[h] = Array.isArray(s[h]) ? [...s[h]] : { ...s[h] }, s = s[h];
2824
2824
  }
2825
- return delete o[t[t.length - 1]], a;
2825
+ return delete s[t[t.length - 1]], a;
2826
2826
  }
2827
2827
  const rt = ({
2828
2828
  groups: r,
2829
2829
  data: n,
2830
2830
  onSubmit: t,
2831
2831
  onCancel: a,
2832
- onChange: o,
2833
- transform: i,
2832
+ onChange: s,
2833
+ transform: c,
2834
2834
  validate: h,
2835
2835
  submitButton: b = { label: "Submit", variant: "primary" },
2836
2836
  cancelButton: p = { label: "Cancel", variant: "outline" },
2837
2837
  showButtons: y = !0,
2838
2838
  layout: u = "vertical",
2839
2839
  size: l = "md",
2840
- loading: d = !1,
2840
+ loading: i = !1,
2841
2841
  className: f,
2842
2842
  ref: C,
2843
2843
  sdk: N
2844
2844
  }) => {
2845
- const [k, B] = _(n || {}), [x, q] = _({}), [K, H] = _({});
2845
+ const [k, B] = V(n || {}), [x, q] = V({}), [K, H] = V({});
2846
2846
  G(() => {
2847
2847
  n && B({ ...n });
2848
2848
  }, [n]);
@@ -2867,8 +2867,8 @@ const rt = ({
2867
2867
  if (S.required && (I == null || I === ""))
2868
2868
  W[S.name] = `${S.label} is required`, M = !0;
2869
2869
  else if (S.validator) {
2870
- const V = S.validator(I, re);
2871
- V && (W[S.name] = V, M = !0);
2870
+ const O = S.validator(I, re);
2871
+ O && (W[S.name] = O, M = !0);
2872
2872
  }
2873
2873
  }
2874
2874
  P[ne] = W;
@@ -2891,19 +2891,19 @@ const rt = ({
2891
2891
  q((M) => ({
2892
2892
  ...M,
2893
2893
  [m]: P || ""
2894
- })), o?.(L, m);
2894
+ })), s?.(L, m);
2895
2895
  },
2896
- [k, r, F, o]
2896
+ [k, r, F, s]
2897
2897
  ), J = ae(
2898
2898
  async (m) => {
2899
- if (console.log("handleSubmit"), m.preventDefault(), d) return;
2899
+ if (console.log("handleSubmit"), m.preventDefault(), i) return;
2900
2900
  const $ = {}, L = r.flatMap((P) => P.items);
2901
2901
  for (const P of L) {
2902
2902
  if (P.hidden || P.conditional && !P.conditional(k))
2903
2903
  continue;
2904
2904
  const M = F(
2905
2905
  P.name,
2906
- Le(k, P.name),
2906
+ Me(k, P.name),
2907
2907
  k
2908
2908
  );
2909
2909
  M && ($[P.name] = M);
@@ -2914,13 +2914,13 @@ const rt = ({
2914
2914
  }
2915
2915
  if (q($), console.log("newErrors", $), Object.keys($).some((P) => $[P]))
2916
2916
  return;
2917
- const D = i ? i(k) : k;
2917
+ const D = c ? c(k) : k;
2918
2918
  await t?.(k, D);
2919
2919
  },
2920
- [k, r, F, h, i, t, d]
2920
+ [k, r, F, h, c, t, i]
2921
2921
  ), z = ae(
2922
2922
  (m) => {
2923
- const $ = Le(k, m.name), L = K[m.name] ? x[m.name] : void 0, D = m.disabled || d, P = {
2923
+ const $ = Me(k, m.name), L = K[m.name] ? x[m.name] : void 0, D = m.disabled || i, P = {
2924
2924
  value: $ || "",
2925
2925
  disabled: D,
2926
2926
  required: m.required,
@@ -2984,7 +2984,7 @@ const rt = ({
2984
2984
  }
2985
2985
  );
2986
2986
  case "radio":
2987
- return /* @__PURE__ */ e("div", { className: "space-y-1", children: m.options?.map((M) => /* @__PURE__ */ c("label", { className: "flex items-center gap-2", children: [
2987
+ return /* @__PURE__ */ e("div", { className: "space-y-1", children: m.options?.map((M) => /* @__PURE__ */ d("label", { className: "flex items-center gap-2", children: [
2988
2988
  /* @__PURE__ */ e(
2989
2989
  "input",
2990
2990
  {
@@ -3062,17 +3062,17 @@ const rt = ({
3062
3062
  }, W = (I) => {
3063
3063
  E(
3064
3064
  m.name,
3065
- M.filter((V, A) => A !== I)
3065
+ M.filter((O, A) => A !== I)
3066
3066
  );
3067
- }, S = (I, V, A) => {
3067
+ }, S = (I, O, A) => {
3068
3068
  const Q = [...M];
3069
3069
  Q[I] = {
3070
3070
  ...Q[I],
3071
- [V]: A
3071
+ [O]: A
3072
3072
  }, E(m.name, Q);
3073
3073
  };
3074
- return /* @__PURE__ */ c("div", { className: "space-y-2", children: [
3075
- M.map((I, V) => /* @__PURE__ */ c(
3074
+ return /* @__PURE__ */ d("div", { className: "space-y-2", children: [
3075
+ M.map((I, O) => /* @__PURE__ */ d(
3076
3076
  "div",
3077
3077
  {
3078
3078
  className: "p-4 border rounded-md dark:border-neutral-700 space-y-2 relative",
@@ -3083,19 +3083,19 @@ const rt = ({
3083
3083
  type: "button",
3084
3084
  variant: "ghost",
3085
3085
  size: "sm",
3086
- onClick: () => W(V),
3086
+ onClick: () => W(O),
3087
3087
  disabled: D,
3088
3088
  children: "Remove"
3089
3089
  }
3090
3090
  ) }),
3091
3091
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: m.arrayFields?.map((A) => {
3092
- const Q = re?.[V]?.[A.name];
3093
- return /* @__PURE__ */ c(
3092
+ const Q = re?.[O]?.[A.name];
3093
+ return /* @__PURE__ */ d(
3094
3094
  "div",
3095
3095
  {
3096
3096
  className: "space-y-1",
3097
3097
  children: [
3098
- /* @__PURE__ */ e("label", { className: "block", children: /* @__PURE__ */ c(
3098
+ /* @__PURE__ */ e("label", { className: "block", children: /* @__PURE__ */ d(
3099
3099
  Z,
3100
3100
  {
3101
3101
  variant: "label",
@@ -3127,7 +3127,7 @@ const rt = ({
3127
3127
  {
3128
3128
  ...te,
3129
3129
  onChange: (U) => S(
3130
- V,
3130
+ O,
3131
3131
  A.name,
3132
3132
  U.target.value
3133
3133
  ),
@@ -3143,7 +3143,7 @@ const rt = ({
3143
3143
  {
3144
3144
  ...te,
3145
3145
  onChange: (U) => S(
3146
- V,
3146
+ O,
3147
3147
  A.name,
3148
3148
  U.target.value
3149
3149
  ),
@@ -3158,7 +3158,7 @@ const rt = ({
3158
3158
  {
3159
3159
  ...te,
3160
3160
  onChange: (U) => S(
3161
- V,
3161
+ O,
3162
3162
  A.name,
3163
3163
  U
3164
3164
  ),
@@ -3182,7 +3182,7 @@ const rt = ({
3182
3182
  ...te,
3183
3183
  checked: !!I?.[A.name],
3184
3184
  onChange: (U) => S(
3185
- V,
3185
+ O,
3186
3186
  A.name,
3187
3187
  U.target.checked
3188
3188
  ),
@@ -3190,7 +3190,7 @@ const rt = ({
3190
3190
  }
3191
3191
  );
3192
3192
  case "radio":
3193
- return /* @__PURE__ */ e("div", { className: "space-y-1", children: A.options?.map((U) => /* @__PURE__ */ c(
3193
+ return /* @__PURE__ */ e("div", { className: "space-y-1", children: A.options?.map((U) => /* @__PURE__ */ d(
3194
3194
  "label",
3195
3195
  {
3196
3196
  className: "flex items-center gap-2",
@@ -3199,11 +3199,11 @@ const rt = ({
3199
3199
  "input",
3200
3200
  {
3201
3201
  type: "radio",
3202
- name: `${m.name}.${V}.${A.name}`,
3202
+ name: `${m.name}.${O}.${A.name}`,
3203
3203
  value: U.value,
3204
3204
  checked: I?.[A.name] === U.value,
3205
3205
  onChange: () => S(
3206
- V,
3206
+ O,
3207
3207
  A.name,
3208
3208
  U.value
3209
3209
  ),
@@ -3224,7 +3224,7 @@ const rt = ({
3224
3224
  ...te,
3225
3225
  value: U ? new Date(U) : null,
3226
3226
  onChange: (le) => S(
3227
- V,
3227
+ O,
3228
3228
  A.name,
3229
3229
  le
3230
3230
  ),
@@ -3236,7 +3236,7 @@ const rt = ({
3236
3236
  return A.customComponent?.({
3237
3237
  value: I?.[A.name],
3238
3238
  onChange: (U) => S(
3239
- V,
3239
+ O,
3240
3240
  A.name,
3241
3241
  U
3242
3242
  ),
@@ -3245,7 +3245,7 @@ const rt = ({
3245
3245
  });
3246
3246
  // Add other field types here as needed
3247
3247
  default:
3248
- return /* @__PURE__ */ c("p", { children: [
3248
+ return /* @__PURE__ */ d("p", { children: [
3249
3249
  "Unsupported field type in array:",
3250
3250
  " ",
3251
3251
  A.type
@@ -3268,9 +3268,9 @@ const rt = ({
3268
3268
  }) })
3269
3269
  ]
3270
3270
  },
3271
- V
3271
+ O
3272
3272
  )),
3273
- /* @__PURE__ */ c(
3273
+ /* @__PURE__ */ d(
3274
3274
  ee,
3275
3275
  {
3276
3276
  type: "button",
@@ -3290,7 +3290,7 @@ const rt = ({
3290
3290
  return null;
3291
3291
  }
3292
3292
  },
3293
- [k, K, x, d, l, E]
3293
+ [k, K, x, i, l, E]
3294
3294
  ), v = ae(
3295
3295
  (m) => {
3296
3296
  if (m.conditional && !m.conditional(k))
@@ -3311,12 +3311,12 @@ const rt = ({
3311
3311
  },
3312
3312
  m.className
3313
3313
  );
3314
- return /* @__PURE__ */ c(
3314
+ return /* @__PURE__ */ d(
3315
3315
  "div",
3316
3316
  {
3317
3317
  className: "grid grid-cols-1 md:grid-cols-3 gap-8 p-6 border border-neutral dark:border-neutral-700 rounded-xl",
3318
3318
  children: [
3319
- /* @__PURE__ */ c("div", { className: "md:col-span-1", children: [
3319
+ /* @__PURE__ */ d("div", { className: "md:col-span-1", children: [
3320
3320
  /* @__PURE__ */ e(
3321
3321
  Z,
3322
3322
  {
@@ -3337,7 +3337,7 @@ const rt = ({
3337
3337
  }
3338
3338
  )
3339
3339
  ] }),
3340
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: L, children: $.map((D) => (K[D.name] && x[D.name], /* @__PURE__ */ c(
3340
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: L, children: $.map((D) => (K[D.name] && x[D.name], /* @__PURE__ */ d(
3341
3341
  "div",
3342
3342
  {
3343
3343
  className: g(
@@ -3346,7 +3346,7 @@ const rt = ({
3346
3346
  D.width && typeof D.width == "number" && `col-span-${D.width}`
3347
3347
  ),
3348
3348
  children: [
3349
- D.type !== "custom" && /* @__PURE__ */ e("label", { className: "block", children: /* @__PURE__ */ c(
3349
+ D.type !== "custom" && /* @__PURE__ */ e("label", { className: "block", children: /* @__PURE__ */ d(
3350
3350
  Z,
3351
3351
  {
3352
3352
  variant: "label",
@@ -3379,16 +3379,16 @@ const rt = ({
3379
3379
  },
3380
3380
  f
3381
3381
  );
3382
- return /* @__PURE__ */ c("form", { ref: C, onSubmit: J, className: T, children: [
3382
+ return /* @__PURE__ */ d("form", { ref: C, onSubmit: J, className: T, children: [
3383
3383
  /* @__PURE__ */ e("div", { className: "space-y-8", children: r.map(v) }),
3384
- y && /* @__PURE__ */ c("div", { className: g("flex gap-3 justify-end pt-8"), children: [
3384
+ y && /* @__PURE__ */ d("div", { className: g("flex gap-3 justify-end pt-8"), children: [
3385
3385
  a && /* @__PURE__ */ e(
3386
3386
  ee,
3387
3387
  {
3388
3388
  type: "button",
3389
3389
  variant: p.variant,
3390
3390
  size: p.size || l,
3391
- disabled: p.disabled || d,
3391
+ disabled: p.disabled || i,
3392
3392
  onClick: a,
3393
3393
  className: p.className,
3394
3394
  children: p.label
@@ -3400,8 +3400,8 @@ const rt = ({
3400
3400
  type: "submit",
3401
3401
  variant: b.variant,
3402
3402
  size: b.size || l,
3403
- disabled: b.disabled || d,
3404
- loading: d,
3403
+ disabled: b.disabled || i,
3404
+ loading: i,
3405
3405
  className: b.className,
3406
3406
  children: b.label
3407
3407
  }
@@ -3434,13 +3434,13 @@ function tt({
3434
3434
  size: n = "md",
3435
3435
  dot: t = !1,
3436
3436
  icon: a,
3437
- dismissible: o = !1,
3438
- onDismiss: i,
3437
+ dismissible: s = !1,
3438
+ onDismiss: c,
3439
3439
  className: h,
3440
3440
  children: b,
3441
3441
  ...p
3442
3442
  }) {
3443
- return /* @__PURE__ */ c(
3443
+ return /* @__PURE__ */ d(
3444
3444
  "span",
3445
3445
  {
3446
3446
  className: g(
@@ -3465,10 +3465,10 @@ function tt({
3465
3465
  ),
3466
3466
  a && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", b && "mr-1"), children: a }),
3467
3467
  b,
3468
- o && i && /* @__PURE__ */ e(
3468
+ s && c && /* @__PURE__ */ e(
3469
3469
  "button",
3470
3470
  {
3471
- onClick: i,
3471
+ onClick: c,
3472
3472
  className: "ml-1.5 flex-shrink-0 hover:opacity-70 transition-opacity",
3473
3473
  "aria-label": "Remove badge",
3474
3474
  children: /* @__PURE__ */ e("svg", { className: "h-3 w-3", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
@@ -3508,20 +3508,20 @@ function at({
3508
3508
  variant: n = "primary",
3509
3509
  label: t = "Loading...",
3510
3510
  showLabel: a = !1,
3511
- className: o,
3512
- ...i
3511
+ className: s,
3512
+ ...c
3513
3513
  }) {
3514
- return /* @__PURE__ */ c(
3514
+ return /* @__PURE__ */ d(
3515
3515
  "div",
3516
3516
  {
3517
3517
  className: g(
3518
3518
  "inline-flex items-center",
3519
3519
  a ? "flex-col space-y-2" : "",
3520
- o
3520
+ s
3521
3521
  ),
3522
- ...i,
3522
+ ...c,
3523
3523
  children: [
3524
- /* @__PURE__ */ c(
3524
+ /* @__PURE__ */ d(
3525
3525
  "svg",
3526
3526
  {
3527
3527
  className: g(
@@ -3576,25 +3576,25 @@ const nt = ({
3576
3576
  alt: n,
3577
3577
  size: t = "md",
3578
3578
  aspectRatio: a = "auto",
3579
- radius: o = "md",
3580
- showLoading: i = !0,
3579
+ radius: s = "md",
3580
+ showLoading: c = !0,
3581
3581
  showError: h = !0,
3582
3582
  fallback: b,
3583
3583
  loadingContent: p,
3584
3584
  errorContent: y,
3585
3585
  className: u,
3586
3586
  onLoad: l,
3587
- onError: d,
3587
+ onError: i,
3588
3588
  ...f
3589
3589
  }) => {
3590
- const [C, N] = _(!0), [k, B] = _(!1), [x, q] = _(r), K = (T) => {
3590
+ const [C, N] = V(!0), [k, B] = V(!1), [x, q] = V(r), K = (T) => {
3591
3591
  N(!1), B(!1), l?.(T);
3592
3592
  }, H = (T) => {
3593
3593
  if (N(!1), B(!0), b && x !== b) {
3594
3594
  q(b), B(!1), N(!0);
3595
3595
  return;
3596
3596
  }
3597
- d?.(T);
3597
+ i?.(T);
3598
3598
  }, F = g(
3599
3599
  "relative overflow-hidden bg-neutral-100 dark:bg-neutral-800",
3600
3600
  // Size variants
@@ -3615,12 +3615,12 @@ const nt = ({
3615
3615
  },
3616
3616
  // Border radius variants
3617
3617
  {
3618
- "rounded-none": o === "none",
3619
- "rounded-sm": o === "sm",
3620
- "rounded-md": o === "md",
3621
- "rounded-lg": o === "lg",
3622
- "rounded-xl": o === "xl",
3623
- "rounded-full": o === "full"
3618
+ "rounded-none": s === "none",
3619
+ "rounded-sm": s === "sm",
3620
+ "rounded-md": s === "md",
3621
+ "rounded-lg": s === "lg",
3622
+ "rounded-xl": s === "xl",
3623
+ "rounded-full": s === "full"
3624
3624
  },
3625
3625
  u
3626
3626
  ), E = g(
@@ -3632,7 +3632,7 @@ const nt = ({
3632
3632
  ), J = g(
3633
3633
  "absolute inset-0 flex items-center justify-center",
3634
3634
  "text-neutral-400 dark:text-neutral-500"
3635
- ), z = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-neutral-300 dark:bg-neutral-600 rounded" }) }), v = /* @__PURE__ */ c("div", { className: "text-center", children: [
3635
+ ), z = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-neutral-300 dark:bg-neutral-600 rounded" }) }), v = /* @__PURE__ */ d("div", { className: "text-center", children: [
3636
3636
  /* @__PURE__ */ e(
3637
3637
  "svg",
3638
3638
  {
@@ -3653,7 +3653,7 @@ const nt = ({
3653
3653
  ),
3654
3654
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
3655
3655
  ] });
3656
- return /* @__PURE__ */ c("div", { className: F, children: [
3656
+ return /* @__PURE__ */ d("div", { className: F, children: [
3657
3657
  /* @__PURE__ */ e(
3658
3658
  "img",
3659
3659
  {
@@ -3665,7 +3665,7 @@ const nt = ({
3665
3665
  onError: H
3666
3666
  }
3667
3667
  ),
3668
- C && i && /* @__PURE__ */ e("div", { className: J, children: p || z }),
3668
+ C && c && /* @__PURE__ */ e("div", { className: J, children: p || z }),
3669
3669
  k && h && /* @__PURE__ */ e("div", { className: J, children: y || v })
3670
3670
  ] });
3671
3671
  }, lt = ({
@@ -3673,14 +3673,14 @@ const nt = ({
3673
3673
  subtitle: n,
3674
3674
  actions: t = [],
3675
3675
  children: a,
3676
- className: o,
3677
- backLabel: i = "Back",
3676
+ className: s,
3677
+ backLabel: c = "Back",
3678
3678
  backClassName: h,
3679
3679
  onBack: b,
3680
3680
  editable: p = !1,
3681
3681
  onTitleChange: y
3682
3682
  }) => {
3683
- const [u, l] = _(!1), [d, f] = _(r), C = X(null);
3683
+ const [u, l] = V(!1), [i, f] = V(r), C = X(null);
3684
3684
  G(() => {
3685
3685
  f(r);
3686
3686
  }, [r]), G(() => {
@@ -3689,20 +3689,20 @@ const nt = ({
3689
3689
  const N = () => {
3690
3690
  p && l(!0);
3691
3691
  }, k = () => {
3692
- l(!1), d.trim() !== "" && d !== r && y ? y(d.trim()) : f(r);
3692
+ l(!1), i.trim() !== "" && i !== r && y ? y(i.trim()) : f(r);
3693
3693
  }, B = (x) => {
3694
3694
  x.key === "Enter" ? C.current?.blur() : x.key === "Escape" && (f(r), l(!1));
3695
3695
  };
3696
- return /* @__PURE__ */ c(
3696
+ return /* @__PURE__ */ d(
3697
3697
  "div",
3698
3698
  {
3699
3699
  className: g(
3700
3700
  "p-5 pb-3 border-b border-gray-100 dark:border-gray-700",
3701
- o
3701
+ s
3702
3702
  ),
3703
3703
  children: [
3704
- /* @__PURE__ */ c("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
3705
- /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-neutral-900 dark:text-neutral-100", children: [
3704
+ /* @__PURE__ */ d("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
3705
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2 text-neutral-900 dark:text-neutral-100", children: [
3706
3706
  b && /* @__PURE__ */ e(
3707
3707
  "button",
3708
3708
  {
@@ -3712,7 +3712,7 @@ const nt = ({
3712
3712
  "flex items-center text-sm dark:hover:text-neutral-300 cursor-pointer transition",
3713
3713
  h
3714
3714
  ),
3715
- children: /* @__PURE__ */ e(Ee, { size: 16, color: "currentColor" })
3715
+ children: /* @__PURE__ */ e(Ne, { size: 16, color: "currentColor" })
3716
3716
  }
3717
3717
  ),
3718
3718
  u ? /* @__PURE__ */ e(
@@ -3720,7 +3720,7 @@ const nt = ({
3720
3720
  {
3721
3721
  ref: C,
3722
3722
  type: "text",
3723
- value: d,
3723
+ value: i,
3724
3724
  onChange: (x) => f(x.target.value),
3725
3725
  onBlur: k,
3726
3726
  onKeyDown: B,
@@ -3741,7 +3741,7 @@ const nt = ({
3741
3741
  ] }) }),
3742
3742
  t.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: t.map(
3743
3743
  (x) => x.splitOptions && x.splitOptions.length > 0 ? /* @__PURE__ */ e(
3744
- Ye,
3744
+ $e,
3745
3745
  {
3746
3746
  label: x.label,
3747
3747
  onClick: x.onClick,
@@ -3751,7 +3751,7 @@ const nt = ({
3751
3751
  disabled: x.disabled
3752
3752
  },
3753
3753
  x.id
3754
- ) : /* @__PURE__ */ c(
3754
+ ) : /* @__PURE__ */ d(
3755
3755
  "button",
3756
3756
  {
3757
3757
  type: "button",
@@ -3778,20 +3778,74 @@ const nt = ({
3778
3778
  ]
3779
3779
  }
3780
3780
  );
3781
- };
3781
+ }, st = ({
3782
+ actions: r = [],
3783
+ onBack: n,
3784
+ backLabel: t = "Back",
3785
+ className: a,
3786
+ children: s
3787
+ }) => /* @__PURE__ */ d("div", { className: g("flex items-center gap-2 mb-3", a), children: [
3788
+ n && /* @__PURE__ */ d(
3789
+ "button",
3790
+ {
3791
+ type: "button",
3792
+ onClick: n,
3793
+ className: "flex items-center gap-1 text-sm text-neutral-700 dark:text-neutral-300 hover:text-neutral-900 dark:hover:text-neutral-100 cursor-pointer transition px-2 py-1 rounded",
3794
+ children: [
3795
+ /* @__PURE__ */ e(Ne, { size: 16 }),
3796
+ /* @__PURE__ */ e("span", { children: t })
3797
+ ]
3798
+ }
3799
+ ),
3800
+ s && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: s }),
3801
+ r.length > 0 && /* @__PURE__ */ e("div", { className: g("flex flex-wrap gap-2", !s && "ml-auto"), children: r.map(
3802
+ (c) => c.splitOptions && c.splitOptions.length > 0 ? /* @__PURE__ */ e(
3803
+ $e,
3804
+ {
3805
+ label: c.label,
3806
+ onClick: c.onClick,
3807
+ icon: c.icon,
3808
+ variant: c.variant === "primary" ? "primary" : "secondary",
3809
+ options: c.splitOptions,
3810
+ disabled: c.disabled
3811
+ },
3812
+ c.id
3813
+ ) : /* @__PURE__ */ d(
3814
+ "button",
3815
+ {
3816
+ type: "button",
3817
+ onClick: (h) => {
3818
+ h.stopPropagation(), h.target.blur(), c.onClick();
3819
+ },
3820
+ disabled: c.disabled,
3821
+ className: g("btn", {
3822
+ o__primary: c.variant === "primary",
3823
+ o__secondary: c.variant === "secondary" || c.variant === "outline",
3824
+ o__ghost: c.variant === "ghost",
3825
+ o__destructive: c.variant === "destructive"
3826
+ }),
3827
+ children: [
3828
+ c.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: c.icon }),
3829
+ c.label
3830
+ ]
3831
+ },
3832
+ c.id
3833
+ )
3834
+ ) })
3835
+ ] });
3782
3836
  function Ir(r, n) {
3783
3837
  return n.split(".").reduce(
3784
3838
  (t, a) => t && typeof t == "object" && a in t ? t[a] : void 0,
3785
3839
  r
3786
3840
  );
3787
3841
  }
3788
- const st = ({
3842
+ const ot = ({
3789
3843
  groups: r,
3790
3844
  data: n,
3791
3845
  size: t = "md",
3792
3846
  className: a
3793
3847
  }) => {
3794
- const o = (u) => {
3848
+ const s = (u) => {
3795
3849
  if (!u) return "-";
3796
3850
  try {
3797
3851
  return new Date(u).toLocaleDateString("nl-NL", {
@@ -3802,10 +3856,10 @@ const st = ({
3802
3856
  } catch {
3803
3857
  return String(u);
3804
3858
  }
3805
- }, i = (u) => u ? "Ja" : "Nee", h = (u, l) => {
3859
+ }, c = (u) => u ? "Ja" : "Nee", h = (u, l) => {
3806
3860
  if (!l) return String(u || "-");
3807
- const d = l.find((f) => f.value === u);
3808
- return d ? d.label : String(u || "-");
3861
+ const i = l.find((f) => f.value === u);
3862
+ return i ? i.label : String(u || "-");
3809
3863
  }, b = ae(
3810
3864
  (u) => {
3811
3865
  const l = Ir(n, u.name);
@@ -3819,12 +3873,12 @@ const st = ({
3819
3873
  className: "text-neutral-500 dark:text-neutral-400",
3820
3874
  children: "Geen items"
3821
3875
  }
3822
- ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: f.map((C, N) => /* @__PURE__ */ c(
3876
+ ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: f.map((C, N) => /* @__PURE__ */ d(
3823
3877
  "div",
3824
3878
  {
3825
3879
  className: "p-4 border border-neutral-200 dark:border-neutral-700 rounded-lg space-y-3",
3826
3880
  children: [
3827
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ c(
3881
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ d(
3828
3882
  Z,
3829
3883
  {
3830
3884
  variant: "label",
@@ -3858,10 +3912,10 @@ const st = ({
3858
3912
  );
3859
3913
  break;
3860
3914
  case "checkbox":
3861
- x = i(B);
3915
+ x = c(B);
3862
3916
  break;
3863
3917
  case "date":
3864
- x = o(B);
3918
+ x = s(B);
3865
3919
  break;
3866
3920
  case "custom":
3867
3921
  x = k.customComponent?.({
@@ -3871,7 +3925,7 @@ const st = ({
3871
3925
  default:
3872
3926
  x = String(B || "-");
3873
3927
  }
3874
- return k.format && (x = k.format(B, C)), /* @__PURE__ */ c("div", { className: "space-y-1", children: [
3928
+ return k.format && (x = k.format(B, C)), /* @__PURE__ */ d("div", { className: "space-y-1", children: [
3875
3929
  /* @__PURE__ */ e(
3876
3930
  Z,
3877
3931
  {
@@ -3911,7 +3965,7 @@ const st = ({
3911
3965
  }
3912
3966
  );
3913
3967
  }
3914
- let d = "-";
3968
+ let i = "-";
3915
3969
  switch (u.type) {
3916
3970
  case "text":
3917
3971
  case "email":
@@ -3919,23 +3973,23 @@ const st = ({
3919
3973
  case "number":
3920
3974
  case "tel":
3921
3975
  case "url":
3922
- d = l ? String(l) : "-";
3976
+ i = l ? String(l) : "-";
3923
3977
  break;
3924
3978
  case "textarea":
3925
- d = l ? /* @__PURE__ */ e("div", { className: "whitespace-pre-wrap", children: String(l || "-") }) : "-";
3979
+ i = l ? /* @__PURE__ */ e("div", { className: "whitespace-pre-wrap", children: String(l || "-") }) : "-";
3926
3980
  break;
3927
3981
  case "select":
3928
3982
  case "radio":
3929
- d = h(l, u.options);
3983
+ i = h(l, u.options);
3930
3984
  break;
3931
3985
  case "checkbox":
3932
- d = i(l);
3986
+ i = c(l);
3933
3987
  break;
3934
3988
  case "date":
3935
- d = o(l);
3989
+ i = s(l);
3936
3990
  break;
3937
3991
  default:
3938
- d = l ? String(l) : "-";
3992
+ i = l ? String(l) : "-";
3939
3993
  }
3940
3994
  return /* @__PURE__ */ e(
3941
3995
  Z,
@@ -3943,7 +3997,7 @@ const st = ({
3943
3997
  variant: "body",
3944
3998
  size: "sm",
3945
3999
  className: "text-neutral-900 dark:text-neutral-100",
3946
- children: d
4000
+ children: i
3947
4001
  }
3948
4002
  );
3949
4003
  },
@@ -3954,7 +4008,7 @@ const st = ({
3954
4008
  return null;
3955
4009
  const l = u.items.filter((f) => !(f.hidden || f.conditional && !f.conditional(n)));
3956
4010
  if (l.length === 0) return null;
3957
- const d = g(
4011
+ const i = g(
3958
4012
  "space-y-4",
3959
4013
  {
3960
4014
  "grid gap-4": u.layout === "grid",
@@ -3968,12 +4022,12 @@ const st = ({
3968
4022
  },
3969
4023
  u.className
3970
4024
  );
3971
- return /* @__PURE__ */ c(
4025
+ return /* @__PURE__ */ d(
3972
4026
  "div",
3973
4027
  {
3974
4028
  className: "grid grid-cols-1 md:grid-cols-3 gap-8 p-6 border border-neutral dark:border-neutral-700 rounded-xl",
3975
4029
  children: [
3976
- /* @__PURE__ */ c("div", { className: "md:col-span-1", children: [
4030
+ /* @__PURE__ */ d("div", { className: "md:col-span-1", children: [
3977
4031
  /* @__PURE__ */ e(
3978
4032
  Z,
3979
4033
  {
@@ -3994,7 +4048,7 @@ const st = ({
3994
4048
  }
3995
4049
  )
3996
4050
  ] }),
3997
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: d, children: l.map((f) => /* @__PURE__ */ c(
4051
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: i, children: l.map((f) => /* @__PURE__ */ d(
3998
4052
  "div",
3999
4053
  {
4000
4054
  className: g(
@@ -4034,35 +4088,35 @@ const st = ({
4034
4088
  a
4035
4089
  );
4036
4090
  return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: r.map(p) }) });
4037
- }, ze = ({ item: r, isSelectedHandler: n, onClick: t }) => {
4038
- const [a, o] = _(!1), i = r.children && r.children.length > 0, h = () => {
4039
- i && o(!a);
4091
+ }, De = ({ item: r, isSelectedHandler: n, onClick: t }) => {
4092
+ const [a, s] = V(!1), c = r.children && r.children.length > 0, h = () => {
4093
+ c && s(!a);
4040
4094
  }, b = n ? n(r.path) : !1;
4041
- return /* @__PURE__ */ c("li", { children: [
4042
- /* @__PURE__ */ c(
4095
+ return /* @__PURE__ */ d("li", { children: [
4096
+ /* @__PURE__ */ d(
4043
4097
  "div",
4044
4098
  {
4045
4099
  className: g(
4046
4100
  "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",
4047
4101
  {
4048
- "active-nav-item": b && !i,
4049
- "shadow-lvl-0": b && !i,
4050
- "font-semibold": b || i || r.children !== void 0
4102
+ "active-nav-item": b && !c,
4103
+ "shadow-lvl-0": b && !c,
4104
+ "font-semibold": b || c || r.children !== void 0
4051
4105
  }
4052
4106
  ),
4053
4107
  onClick: () => {
4054
- i ? h() : r.path && t?.(r.path);
4108
+ c ? h() : r.path && t?.(r.path);
4055
4109
  },
4056
4110
  children: [
4057
4111
  r.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: r.icon }),
4058
4112
  /* @__PURE__ */ e("span", { className: "flex-1", children: r.label }),
4059
4113
  r.count !== void 0 && r.count > 0 && /* @__PURE__ */ e("span", { className: "ml-2 mr-1.5", children: r.count }),
4060
- i && /* @__PURE__ */ e("span", { className: `${a ? "collapsed" : ""}`, children: /* @__PURE__ */ e(We, { className: "w-4 h-4 text-gray-300" }) })
4114
+ c && /* @__PURE__ */ e("span", { className: `${a ? "collapsed" : ""}`, children: /* @__PURE__ */ e(Re, { className: "w-4 h-4 text-gray-300" }) })
4061
4115
  ]
4062
4116
  }
4063
4117
  ),
4064
- i && !a && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: r.children?.map((p, y) => /* @__PURE__ */ e(
4065
- ze,
4118
+ c && !a && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: r.children?.map((p, y) => /* @__PURE__ */ e(
4119
+ De,
4066
4120
  {
4067
4121
  item: p,
4068
4122
  isSelectedHandler: n,
@@ -4071,37 +4125,37 @@ const st = ({
4071
4125
  y
4072
4126
  )) })
4073
4127
  ] });
4074
- }, ot = ({
4128
+ }, ct = ({
4075
4129
  title: r,
4076
4130
  actionIcons: n,
4077
4131
  items: t,
4078
4132
  isSelectedHandler: a,
4079
- onClick: o,
4080
- preMenuItemsComponent: i
4081
- }) => /* @__PURE__ */ c("div", { className: "flex flex-col h-screen mb-6", children: [
4082
- /* @__PURE__ */ c("div", { className: "sidebar-menu-header", children: [
4133
+ onClick: s,
4134
+ preMenuItemsComponent: c
4135
+ }) => /* @__PURE__ */ d("div", { className: "flex flex-col h-screen mb-6", children: [
4136
+ /* @__PURE__ */ d("div", { className: "sidebar-menu-header", children: [
4083
4137
  /* @__PURE__ */ e("span", { className: "text-xl font-semibold text-gray-800 mb-2", children: r }),
4084
4138
  /* @__PURE__ */ e("div", { className: "sidebar-menu-actions", children: n?.map((h, b) => /* @__PURE__ */ e("span", { className: "sidebar-menu-action-icon", children: h }, b)) })
4085
4139
  ] }),
4086
- i && /* @__PURE__ */ e("div", { className: "sidebar-menu-pre-items mb-4", children: i }),
4140
+ c && /* @__PURE__ */ e("div", { className: "sidebar-menu-pre-items mb-4", children: c }),
4087
4141
  /* @__PURE__ */ e("ul", { children: t.map(
4088
4142
  (h, b) => !h.path && !h.label && !h.children ? /* @__PURE__ */ e("span", { className: "flex w-full h-4" }, b) : /* @__PURE__ */ e(
4089
- ze,
4143
+ De,
4090
4144
  {
4091
4145
  item: h,
4092
4146
  isSelectedHandler: a,
4093
- onClick: o
4147
+ onClick: s
4094
4148
  },
4095
4149
  b
4096
4150
  )
4097
4151
  ) })
4098
- ] }), ct = ({
4152
+ ] }), dt = ({
4099
4153
  level: r = 1,
4100
4154
  size: n,
4101
4155
  weight: t = "bold",
4102
4156
  color: a = "current",
4103
- align: o = "left",
4104
- truncate: i = !1,
4157
+ align: s = "left",
4158
+ truncate: c = !1,
4105
4159
  className: h,
4106
4160
  children: b,
4107
4161
  ...p
@@ -4141,13 +4195,13 @@ const st = ({
4141
4195
  },
4142
4196
  // Alignment
4143
4197
  {
4144
- "text-left": o === "left",
4145
- "text-center": o === "center",
4146
- "text-right": o === "right"
4198
+ "text-left": s === "left",
4199
+ "text-center": s === "center",
4200
+ "text-right": s === "right"
4147
4201
  },
4148
4202
  // Truncation
4149
4203
  {
4150
- truncate: i
4204
+ truncate: c
4151
4205
  },
4152
4206
  h
4153
4207
  ), l = `h${r}`;
@@ -4163,13 +4217,13 @@ function jr(r) {
4163
4217
  6: "md"
4164
4218
  }[r] || "md";
4165
4219
  }
4166
- const dt = ({
4220
+ const it = ({
4167
4221
  items: r,
4168
4222
  type: n = "unordered",
4169
4223
  variant: t = "default",
4170
4224
  size: a = "md",
4171
- interactive: o = !1,
4172
- className: i,
4225
+ interactive: s = !1,
4226
+ className: c,
4173
4227
  itemClassName: h
4174
4228
  }) => {
4175
4229
  const b = g(
@@ -4192,8 +4246,8 @@ const dt = ({
4192
4246
  "text-base": a === "md",
4193
4247
  "text-lg": a === "lg"
4194
4248
  },
4195
- i
4196
- ), p = (l, d) => g(
4249
+ c
4250
+ ), p = (l, i) => g(
4197
4251
  // Base item styles
4198
4252
  "transition-colors duration-200",
4199
4253
  // Size-based padding
@@ -4203,7 +4257,7 @@ const dt = ({
4203
4257
  "py-3 px-4": a === "lg" && (t === "bordered" || t === "divided")
4204
4258
  },
4205
4259
  // Interactive styles
4206
- o && !l.disabled && {
4260
+ s && !l.disabled && {
4207
4261
  "cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-800": !0,
4208
4262
  "focus:outline-none focus:bg-neutral-100 dark:focus:bg-neutral-700": !0
4209
4263
  },
@@ -4213,57 +4267,57 @@ const dt = ({
4213
4267
  },
4214
4268
  h
4215
4269
  ), y = (l) => {
4216
- o && !l.disabled && l.onClick && l.onClick();
4217
- }, u = (l, d) => {
4218
- o && !d.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), d.onClick?.());
4270
+ s && !l.disabled && l.onClick && l.onClick();
4271
+ }, u = (l, i) => {
4272
+ s && !i.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), i.onClick?.());
4219
4273
  };
4220
- return n === "ordered" ? /* @__PURE__ */ e("ol", { className: b, children: r.map((l, d) => /* @__PURE__ */ e(
4274
+ return n === "ordered" ? /* @__PURE__ */ e("ol", { className: b, children: r.map((l, i) => /* @__PURE__ */ e(
4221
4275
  "li",
4222
4276
  {
4223
4277
  className: p(l),
4224
4278
  onClick: () => y(l),
4225
4279
  onKeyDown: (f) => u(f, l),
4226
- tabIndex: o && !l.disabled ? 0 : void 0,
4227
- role: o ? "button" : void 0,
4280
+ tabIndex: s && !l.disabled ? 0 : void 0,
4281
+ role: s ? "button" : void 0,
4228
4282
  children: l.content
4229
4283
  },
4230
- l.id || d
4231
- )) }) : n === "description" ? /* @__PURE__ */ e("dl", { className: b, children: r.map((l, d) => /* @__PURE__ */ e(
4284
+ l.id || i
4285
+ )) }) : n === "description" ? /* @__PURE__ */ e("dl", { className: b, children: r.map((l, i) => /* @__PURE__ */ e(
4232
4286
  "div",
4233
4287
  {
4234
4288
  className: p(l),
4235
4289
  onClick: () => y(l),
4236
4290
  onKeyDown: (f) => u(f, l),
4237
- tabIndex: o && !l.disabled ? 0 : void 0,
4238
- role: o ? "button" : void 0,
4291
+ tabIndex: s && !l.disabled ? 0 : void 0,
4292
+ role: s ? "button" : void 0,
4239
4293
  children: l.content
4240
4294
  },
4241
- l.id || d
4242
- )) }) : /* @__PURE__ */ e("ul", { className: b, children: r.map((l, d) => /* @__PURE__ */ e(
4295
+ l.id || i
4296
+ )) }) : /* @__PURE__ */ e("ul", { className: b, children: r.map((l, i) => /* @__PURE__ */ e(
4243
4297
  "li",
4244
4298
  {
4245
4299
  className: p(l),
4246
4300
  onClick: () => y(l),
4247
4301
  onKeyDown: (f) => u(f, l),
4248
- tabIndex: o && !l.disabled ? 0 : void 0,
4249
- role: o ? "button" : void 0,
4302
+ tabIndex: s && !l.disabled ? 0 : void 0,
4303
+ role: s ? "button" : void 0,
4250
4304
  children: l.content
4251
4305
  },
4252
- l.id || d
4306
+ l.id || i
4253
4307
  )) });
4254
- }, it = ({
4308
+ }, ut = ({
4255
4309
  commands: r,
4256
4310
  isOpen: n,
4257
4311
  onClose: t,
4258
4312
  labels: a,
4259
- initialCommandPath: o,
4260
- initialActiveIndex: i
4313
+ initialCommandPath: s,
4314
+ initialActiveIndex: c
4261
4315
  }) => {
4262
- const [h, b] = _(""), [p, y] = _(o || []), [u, l] = _(i || 0), d = X(null), f = X(null), N = (p.length ? r.find((k) => k.id === p[0])?.subCommands || [] : r).filter(
4316
+ const [h, b] = V(""), [p, y] = V(s || []), [u, l] = V(c || 0), i = X(null), f = X(null), N = (p.length ? r.find((k) => k.id === p[0])?.subCommands || [] : r).filter(
4263
4317
  (k) => k.label.toLowerCase().includes(h.toLowerCase())
4264
4318
  );
4265
4319
  return G(() => {
4266
- n || (b(""), y(o || []), l(i || 0));
4320
+ n || (b(""), y(s || []), l(c || 0));
4267
4321
  }, [n]), G(() => {
4268
4322
  const k = (B) => {
4269
4323
  if (n) {
@@ -4286,16 +4340,16 @@ const dt = ({
4286
4340
  return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
4287
4341
  }, [n, t, N, u, p]), G(() => {
4288
4342
  const k = (B) => {
4289
- d.current && !d.current.contains(B.target) && t();
4343
+ i.current && !i.current.contains(B.target) && t();
4290
4344
  };
4291
4345
  return n && document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
4292
4346
  }, [n, t]), n ? (G(() => {
4293
4347
  f.current?.querySelector(`[data-index="${u}"]`)?.scrollIntoView({ block: "nearest" });
4294
- }, [u]), /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center shadow-lvl-0", children: /* @__PURE__ */ c(
4348
+ }, [u]), /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center shadow-lvl-0", children: /* @__PURE__ */ d(
4295
4349
  "div",
4296
4350
  {
4297
4351
  className: "flex flex-col w-full max-w-lg max-h-[80vh] p-2 mx-auto rounded-lg shadow-lg bg-white",
4298
- ref: d,
4352
+ ref: i,
4299
4353
  children: [
4300
4354
  /* @__PURE__ */ e(
4301
4355
  "input",
@@ -4307,14 +4361,14 @@ const dt = ({
4307
4361
  className: "w-full px-4 py-2 text-gray-800 border-none border-b border-gray-200 focus:outline-none focus:ring-0 rounded-lg bg-transparent flex-shrink-0"
4308
4362
  }
4309
4363
  ),
4310
- /* @__PURE__ */ c(
4364
+ /* @__PURE__ */ d(
4311
4365
  "div",
4312
4366
  {
4313
4367
  ref: f,
4314
4368
  className: "mt-2 pt-2 text-sm border-t border-gray-200 max-h-[50vh] overflow-y-auto",
4315
4369
  children: [
4316
4370
  N.length === 0 && /* @__PURE__ */ e("div", { className: "text-gray-500 text-center text-sm", children: a?.noCommandsFound || "No commands found" }),
4317
- N.map((k, B) => /* @__PURE__ */ c(
4371
+ N.map((k, B) => /* @__PURE__ */ d(
4318
4372
  "div",
4319
4373
  {
4320
4374
  "data-index": B,
@@ -4326,7 +4380,7 @@ const dt = ({
4326
4380
  children: [
4327
4381
  k.icon && /* @__PURE__ */ e("span", { className: "mr-3", children: k.icon }),
4328
4382
  /* @__PURE__ */ e("span", { className: "flex-grow", children: k.label }),
4329
- k.subCommands && /* @__PURE__ */ e("span", { className: "text-gray-400", children: /* @__PURE__ */ e(Re, { className: "w-4 h-4" }) })
4383
+ k.subCommands && /* @__PURE__ */ e("span", { className: "text-gray-400", children: /* @__PURE__ */ e(qe, { className: "w-4 h-4" }) })
4330
4384
  ]
4331
4385
  },
4332
4386
  k.id
@@ -4334,18 +4388,18 @@ const dt = ({
4334
4388
  ]
4335
4389
  }
4336
4390
  ),
4337
- /* @__PURE__ */ c("div", { className: "flex items-center justify-between pt-2 mt-2 text-xs text-gray-500 border-t border-gray-200", children: [
4338
- /* @__PURE__ */ c("span", { children: [
4391
+ /* @__PURE__ */ d("div", { className: "flex items-center justify-between pt-2 mt-2 text-xs text-gray-500 border-t border-gray-200", children: [
4392
+ /* @__PURE__ */ d("span", { children: [
4339
4393
  /* @__PURE__ */ e("span", { className: "font-bold", children: "↑↓" }),
4340
4394
  " ",
4341
4395
  a?.navigate || "to navigate"
4342
4396
  ] }),
4343
- /* @__PURE__ */ c("span", { children: [
4397
+ /* @__PURE__ */ d("span", { children: [
4344
4398
  /* @__PURE__ */ e("span", { className: "font-bold", children: "↵" }),
4345
4399
  " ",
4346
4400
  a?.select || "to select"
4347
4401
  ] }),
4348
- /* @__PURE__ */ c("span", { children: [
4402
+ /* @__PURE__ */ d("span", { children: [
4349
4403
  /* @__PURE__ */ e("span", { className: "font-bold", children: "Esc" }),
4350
4404
  " ",
4351
4405
  a?.close || "to close"
@@ -4370,7 +4424,7 @@ const dt = ({
4370
4424
  lg: "m-6",
4371
4425
  xl: "m-8",
4372
4426
  "2xl": "m-12"
4373
- }, Or = {
4427
+ }, _r = {
4374
4428
  none: "",
4375
4429
  primary: "bg-primary",
4376
4430
  secondary: "bg-secondary",
@@ -4382,14 +4436,14 @@ const dt = ({
4382
4436
  neutral: "bg-neutral",
4383
4437
  white: "bg-white",
4384
4438
  module: "bg-module"
4385
- }, Vr = {
4439
+ }, Or = {
4386
4440
  none: "rounded-none",
4387
4441
  sm: "rounded-sm",
4388
4442
  md: "rounded-md",
4389
4443
  lg: "rounded-lg",
4390
4444
  xl: "rounded-xl",
4391
4445
  full: "rounded-full"
4392
- }, _r = {
4446
+ }, Vr = {
4393
4447
  none: "shadow-none",
4394
4448
  sm: "shadow-sm shadow-lvl-0",
4395
4449
  md: "shadow-md shadow-lvl-0",
@@ -4411,14 +4465,14 @@ const dt = ({
4411
4465
  info: "border-info",
4412
4466
  neutral: "border-neutral",
4413
4467
  white: "border-white"
4414
- }, De = ce(
4468
+ }, Te = ce(
4415
4469
  ({
4416
4470
  padding: r,
4417
4471
  margin: n,
4418
4472
  background: t,
4419
4473
  radius: a,
4420
- shadow: o,
4421
- border: i,
4474
+ shadow: s,
4475
+ border: c,
4422
4476
  borderColor: h,
4423
4477
  className: b,
4424
4478
  children: p,
@@ -4430,10 +4484,10 @@ const dt = ({
4430
4484
  className: g(
4431
4485
  r && Br[r],
4432
4486
  n && Pr[n],
4433
- t && Or[t],
4434
- a && Vr[a],
4435
- o && _r[o],
4436
- i && Fr[i],
4487
+ t && _r[t],
4488
+ a && Or[a],
4489
+ s && Vr[s],
4490
+ c && Fr[c],
4437
4491
  h && Wr[h],
4438
4492
  b
4439
4493
  ),
@@ -4442,60 +4496,60 @@ const dt = ({
4442
4496
  }
4443
4497
  )
4444
4498
  );
4445
- De.displayName = "Box";
4446
- const ut = ({ children: r, title: n, ...t }) => /* @__PURE__ */ c(De, { background: "module", radius: "xl", shadow: "sm", ...t, children: [
4499
+ Te.displayName = "Box";
4500
+ const mt = ({ children: r, title: n, ...t }) => /* @__PURE__ */ d(Te, { background: "module", radius: "xl", shadow: "sm", ...t, children: [
4447
4501
  n && /* @__PURE__ */ e("span", { className: "text-base font-medium text-gray-800 mb-2", children: n }),
4448
4502
  r
4449
4503
  ] });
4450
- function mt({
4504
+ function ht({
4451
4505
  identifier: r,
4452
4506
  resourceLoader: n,
4453
4507
  framework: t = "react",
4454
4508
  fallback: a,
4455
- componentProps: o,
4456
- className: i
4509
+ componentProps: s,
4510
+ className: c
4457
4511
  }) {
4458
- const h = X(null), [b, p] = _(!0), [y, u] = _(null), l = X(null);
4512
+ const h = X(null), [b, p] = V(!0), [y, u] = V(null), l = X(null);
4459
4513
  return X(null), G(() => {
4460
- let d = !0;
4514
+ let i = !0;
4461
4515
  return (async () => {
4462
4516
  p(!0);
4463
4517
  try {
4464
4518
  const C = await n();
4465
- if (!d) return;
4519
+ if (!i) return;
4466
4520
  const N = C.component || C.default || C;
4467
4521
  u(t === "react" ? () => N : () => C);
4468
4522
  } catch (C) {
4469
4523
  console.error(`[FederatedResource] Load failed: ${r}`, C);
4470
4524
  } finally {
4471
- d && p(!1);
4525
+ i && p(!1);
4472
4526
  }
4473
4527
  })(), () => {
4474
- d = !1;
4528
+ i = !1;
4475
4529
  };
4476
4530
  }, [r, n]), G(() => {
4477
4531
  if (b || !y || t === "react") return;
4478
- const d = h.current;
4479
- if (d) {
4532
+ const i = h.current;
4533
+ if (i) {
4480
4534
  if (t === "svelte") {
4481
- const f = y.default || y, C = new f({ target: d, props: o || {} });
4535
+ const f = y.default || y, C = new f({ target: i, props: s || {} });
4482
4536
  return l.current = C, () => C.$destroy();
4483
4537
  }
4484
4538
  if (y.mount) {
4485
- const f = y.mount({ container: d, props: o || {} });
4539
+ const f = y.mount({ container: i, props: s || {} });
4486
4540
  return () => {
4487
- typeof f == "function" ? f() : y.unmount?.(d);
4541
+ typeof f == "function" ? f() : y.unmount?.(i);
4488
4542
  };
4489
4543
  }
4490
4544
  }
4491
4545
  }, [y, t, b]), G(() => {
4492
- t === "svelte" && l.current && l.current.$set?.(o);
4493
- }, [o, t]), /* @__PURE__ */ c("div", { ref: h, className: i, style: { display: "contents" }, children: [
4546
+ t === "svelte" && l.current && l.current.$set?.(s);
4547
+ }, [s, t]), /* @__PURE__ */ d("div", { ref: h, className: c, style: { display: "contents" }, children: [
4494
4548
  b && a,
4495
- t === "react" && y && /* @__PURE__ */ e(y, { ...o })
4549
+ t === "react" && y && /* @__PURE__ */ e(y, { ...s })
4496
4550
  ] });
4497
4551
  }
4498
- class ht extends He {
4552
+ class ft extends Ue {
4499
4553
  constructor() {
4500
4554
  super(...arguments), this.state = {
4501
4555
  hasError: !1,
@@ -4509,7 +4563,7 @@ class ht extends He {
4509
4563
  console.error(`[ErrorBoundary] Error in ${this.props.name || "Component"}:`, n, t);
4510
4564
  }
4511
4565
  render() {
4512
- return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ c("div", { className: "p-4 m-4 border border-red-200 bg-red-50 rounded-lg", children: [
4566
+ return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ d("div", { className: "p-4 m-4 border border-red-200 bg-red-50 rounded-lg", children: [
4513
4567
  /* @__PURE__ */ e("h2", { className: "text-lg font-semibold text-red-800", children: "Something went wrong" }),
4514
4568
  /* @__PURE__ */ e("p", { className: "text-sm text-red-600 mt-1", children: this.props.name ? `Error in ${this.props.name}` : "The component failed to render." }),
4515
4569
  /* @__PURE__ */ e(
@@ -4525,41 +4579,42 @@ class ht extends He {
4525
4579
  }
4526
4580
  export {
4527
4581
  tt as Badge,
4528
- De as Box,
4582
+ Te as Box,
4529
4583
  ee as Button,
4530
4584
  Xr as ButtonGroup,
4531
- ut as Card,
4585
+ mt as Card,
4532
4586
  be as Checkbox,
4533
- it as CommandPalette,
4587
+ ut as CommandPalette,
4534
4588
  ir as ContentLoading,
4535
4589
  ye as DatePicker,
4536
4590
  ur as Dropdown,
4537
- ht as ErrorBoundary,
4538
- mt as FederatedResource,
4591
+ ft as ErrorBoundary,
4592
+ ht as FederatedResource,
4539
4593
  rt as Form,
4540
- ct as Heading,
4594
+ dt as Heading,
4541
4595
  oe as Icon,
4542
4596
  nt as Image,
4543
4597
  Qr as Link,
4544
- dt as List,
4598
+ it as List,
4545
4599
  Jr as MeetingGrid,
4546
4600
  wr as Modal,
4547
4601
  lt as PageHeader,
4602
+ st as PageToolbar,
4548
4603
  Yr as ParticipantTile,
4549
4604
  lr as SearchableTextField,
4550
4605
  ve as Select,
4551
- ot as SidebarMenu,
4606
+ ct as SidebarMenu,
4552
4607
  at as Spinner,
4553
- Ye as SplitButton,
4608
+ $e as SplitButton,
4554
4609
  Sr as StorageInput,
4555
4610
  et as TabBar,
4556
- Se as Table,
4611
+ Le as Table,
4557
4612
  kr as Tabs,
4558
4613
  Z as Text,
4559
4614
  ke as TextArea,
4560
4615
  ue as TextField,
4561
4616
  Zr as VideoSurface,
4562
- st as View,
4617
+ ot as View,
4563
4618
  g as cn,
4564
4619
  Kr as createSizes,
4565
4620
  Gr as createVariants