@opencxh/ui-kit 3.83.0 → 3.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
1
  import { clsx as je } from "clsx";
2
2
  import { jsxs as d, jsx as e, Fragment as $e } from "react/jsx-runtime";
3
- import { VideoOff as _e, User as Be, MicOff as Pe, Mic as Oe, ChevronDown as Ve, FileText as pe, HardDrive as ke, X as We, ArrowLeft as we, Search as ze, FolderPlus as Fe, Upload as Re, Folder as Ce, Pencil as He, ChevronDownIcon as qe, ChevronRight as Ue } from "lucide-react";
3
+ import { VideoOff as _e, User as Pe, MicOff as Be, Mic as Oe, ChevronDown as We, FileText as xe, HardDrive as ke, X as Fe, ArrowLeft as we, Search as Te, FolderPlus as Ve, Upload as Re, Folder as Ce, Pencil as He, ChevronDownIcon as qe, ChevronRight as Ue } from "lucide-react";
4
4
  import se, { useRef as J, useEffect as U, forwardRef as ce, useState as P, useCallback as ae, useMemo as de, createContext as Ge, Component as Ke } from "react";
5
5
  function p(...t) {
6
6
  return je(t);
7
7
  }
8
- function Qt(t) {
8
+ function er(t) {
9
9
  return (a, r) => t[a]?.[r] || "";
10
10
  }
11
- function er(t) {
11
+ function tr(t) {
12
12
  return (a) => t[a] || "";
13
13
  }
14
- function tr({ tiles: t, pinned: a, className: r }) {
14
+ function rr({ tiles: t, pinned: a, className: r }) {
15
15
  if (a)
16
16
  return /* @__PURE__ */ d("div", { className: p("flex flex-col md:flex-row gap-2 h-full", r), children: [
17
17
  /* @__PURE__ */ e("div", { className: "flex-1 min-h-[240px]", children: a }),
18
- t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((l, o) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: l }, o)) })
18
+ t.length > 0 && /* @__PURE__ */ e("div", { className: "flex md:flex-col gap-2 md:w-48 overflow-auto", children: t.map((s, o) => /* @__PURE__ */ e("div", { className: "min-w-[160px] md:min-w-0", children: s }, o)) })
19
19
  ] });
20
20
  const n = t.length <= 1 ? "grid-cols-1" : t.length <= 4 ? "grid-cols-2" : t.length <= 9 ? "grid-cols-3" : "grid-cols-4";
21
- return /* @__PURE__ */ e("div", { className: p("grid gap-2 h-full", n, r), children: t.map((l, o) => /* @__PURE__ */ e("div", { children: l }, o)) });
21
+ return /* @__PURE__ */ e("div", { className: p("grid gap-2 h-full", n, r), children: t.map((s, o) => /* @__PURE__ */ e("div", { children: s }, o)) });
22
22
  }
23
- function rr({
23
+ function nr({
24
24
  name: t,
25
25
  avatarUrl: a,
26
26
  muted: r,
27
27
  speaking: n,
28
- hasVideo: l,
28
+ hasVideo: s,
29
29
  videoSlot: o,
30
30
  className: u
31
31
  }) {
@@ -38,27 +38,27 @@ function rr({
38
38
  u
39
39
  ),
40
40
  children: [
41
- l && o ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: o }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: a ? /* @__PURE__ */ e("img", { src: a, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-gray-700 flex items-center justify-center", children: l ? /* @__PURE__ */ e(_e, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Be, { className: "w-8 h-8" }) }) }),
41
+ s && o ? /* @__PURE__ */ e("div", { className: "absolute inset-0", children: o }) : /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 text-gray-300", children: a ? /* @__PURE__ */ e("img", { src: a, alt: t, className: "w-16 h-16 rounded-full object-cover" }) : /* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-gray-700 flex items-center justify-center", children: s ? /* @__PURE__ */ e(_e, { className: "w-8 h-8" }) : /* @__PURE__ */ e(Pe, { className: "w-8 h-8" }) }) }),
42
42
  /* @__PURE__ */ d("div", { className: "absolute bottom-2 left-2 flex items-center gap-1.5 px-2 py-1 rounded bg-black/50 text-white text-xs", children: [
43
- r ? /* @__PURE__ */ e(Pe, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Oe, { className: "w-3 h-3" }),
43
+ r ? /* @__PURE__ */ e(Be, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Oe, { className: "w-3 h-3" }),
44
44
  /* @__PURE__ */ e("span", { className: "truncate max-w-[140px]", children: t })
45
45
  ] })
46
46
  ]
47
47
  }
48
48
  );
49
49
  }
50
- function nr({ attach: t, active: a = !0, mirrored: r = !1, className: n }) {
51
- const l = J(null);
50
+ function ar({ attach: t, active: a = !0, mirrored: r = !1, className: n }) {
51
+ const s = J(null);
52
52
  return U(() => {
53
- if (!a || !l.current) return;
54
- const o = t(l.current);
53
+ if (!a || !s.current) return;
54
+ const o = t(s.current);
55
55
  return () => {
56
- typeof o == "function" && o(), l.current && (l.current.innerHTML = "");
56
+ typeof o == "function" && o(), s.current && (s.current.innerHTML = "");
57
57
  };
58
58
  }, [t, a]), /* @__PURE__ */ e(
59
59
  "div",
60
60
  {
61
- ref: l,
61
+ ref: s,
62
62
  className: p(
63
63
  "w-full h-full bg-gray-900 overflow-hidden",
64
64
  r && "[&>*]:scale-x-[-1]",
@@ -93,19 +93,19 @@ const Je = {
93
93
  size: a = "md",
94
94
  fullWidth: r = !1,
95
95
  loading: n = !1,
96
- leftIcon: l,
96
+ leftIcon: s,
97
97
  rightIcon: o,
98
98
  iconOnly: u = !1,
99
99
  className: b,
100
100
  children: x,
101
101
  disabled: g,
102
102
  ...f
103
- }, s) => {
103
+ }, l) => {
104
104
  const m = g || n;
105
105
  return /* @__PURE__ */ d(
106
106
  "button",
107
107
  {
108
- ref: s,
108
+ ref: l,
109
109
  type: "button",
110
110
  className: p(
111
111
  // Base styles — radius/focus/colors come from the token-driven `.btn o__*` CSS
@@ -156,22 +156,22 @@ const Je = {
156
156
  ]
157
157
  }
158
158
  ),
159
- !n && l && /* @__PURE__ */ e("span", { className: p("flex-shrink-0", !u && "mr-2"), children: l }),
159
+ !n && s && /* @__PURE__ */ e("span", { className: p("flex-shrink-0", !u && "mr-2"), children: s }),
160
160
  !u && x,
161
161
  !n && o && /* @__PURE__ */ e("span", { className: p("flex-shrink-0", !u && "ml-2"), children: o }),
162
- u && !n && !l && !o && x
162
+ u && !n && !s && !o && x
163
163
  ]
164
164
  }
165
165
  );
166
166
  }
167
167
  );
168
168
  te.displayName = "Button";
169
- const ar = ({
169
+ const lr = ({
170
170
  children: t,
171
171
  size: a = "md",
172
172
  orientation: r = "horizontal",
173
173
  attached: n = !0,
174
- className: l
174
+ className: s
175
175
  }) => {
176
176
  const o = p(
177
177
  "inline-flex",
@@ -193,15 +193,15 @@ const ar = ({
193
193
  "gap-2": !n && (a === "sm" || a === "md"),
194
194
  "gap-3": !n && (a === "lg" || a === "xl")
195
195
  },
196
- l
196
+ s
197
197
  );
198
198
  return /* @__PURE__ */ e("div", { className: o, role: "group", children: t });
199
- }, lr = ({
199
+ }, sr = ({
200
200
  variant: t = "default",
201
201
  size: a = "md",
202
202
  color: r = "primary",
203
203
  disabled: n = !1,
204
- external: l = !1,
204
+ external: s = !1,
205
205
  className: o,
206
206
  children: u,
207
207
  href: b,
@@ -209,7 +209,7 @@ const ar = ({
209
209
  rel: g,
210
210
  ...f
211
211
  }) => {
212
- const s = l || b && (b.startsWith("http") || b.startsWith("mailto:")), m = p(
212
+ const l = s || b && (b.startsWith("http") || b.startsWith("mailto:")), m = p(
213
213
  // Base styles
214
214
  "inline-flex items-center gap-1 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",
215
215
  // Size variants
@@ -266,12 +266,12 @@ const ar = ({
266
266
  ), h = {
267
267
  ...f,
268
268
  href: n ? void 0 : b,
269
- target: s ? "_blank" : x,
270
- rel: s ? "noopener noreferrer" : g
269
+ target: l ? "_blank" : x,
270
+ rel: l ? "noopener noreferrer" : g
271
271
  };
272
272
  return /* @__PURE__ */ d("a", { className: m, ...h, children: [
273
273
  u,
274
- s && /* @__PURE__ */ e(
274
+ l && /* @__PURE__ */ e(
275
275
  "svg",
276
276
  {
277
277
  className: "w-3 h-3 ml-1",
@@ -299,23 +299,23 @@ const ar = ({
299
299
  sm: "px-3 py-1.5 text-sm",
300
300
  md: "px-4 py-2 text-sm"
301
301
  };
302
- function Te({
302
+ function ze({
303
303
  label: t,
304
304
  onClick: a,
305
305
  variant: r = "primary",
306
306
  size: n = "md",
307
- icon: l,
307
+ icon: s,
308
308
  options: o,
309
309
  disabled: u = !1
310
310
  }) {
311
311
  const [b, x] = P(!1), g = J(null), f = ae(() => {
312
- x((s) => !s);
312
+ x((l) => !l);
313
313
  }, []);
314
314
  return U(() => {
315
- const s = (m) => {
315
+ const l = (m) => {
316
316
  g.current && !g.current.contains(m.target) && x(!1);
317
317
  };
318
- return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
318
+ return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
319
319
  }, []), /* @__PURE__ */ d("div", { ref: g, className: "relative inline-flex items-center gap-px", children: [
320
320
  /* @__PURE__ */ d(
321
321
  "button",
@@ -332,7 +332,7 @@ function Te({
332
332
  "!rounded-r-none"
333
333
  ),
334
334
  children: [
335
- l && /* @__PURE__ */ e("span", { className: "mr-2 flex-shrink-0", children: l }),
335
+ s && /* @__PURE__ */ e("span", { className: "mr-2 flex-shrink-0", children: s }),
336
336
  t
337
337
  ]
338
338
  }
@@ -351,23 +351,23 @@ function Te({
351
351
  n === "sm" ? "px-1.5 py-1.5" : "px-2 py-2",
352
352
  "!rounded-l-none"
353
353
  ),
354
- children: /* @__PURE__ */ e(Ve, { className: "h-4 w-4" })
354
+ children: /* @__PURE__ */ e(We, { className: "h-4 w-4" })
355
355
  }
356
356
  ),
357
- b && o.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: o.map((s) => /* @__PURE__ */ e(
357
+ b && o.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: o.map((l) => /* @__PURE__ */ e(
358
358
  "button",
359
359
  {
360
360
  type: "button",
361
361
  onClick: () => {
362
- s.onClick(), x(!1);
362
+ l.onClick(), x(!1);
363
363
  },
364
364
  className: p(
365
365
  "w-full text-left px-3 py-2 text-sm hover:bg-gray-50 transition-colors",
366
- s.variant === "destructive" ? "text-red-600 hover:bg-red-50" : "text-gray-700"
366
+ l.variant === "destructive" ? "text-red-600 hover:bg-red-50" : "text-gray-700"
367
367
  ),
368
- children: s.label
368
+ children: l.label
369
369
  },
370
- s.id
370
+ l.id
371
371
  )) })
372
372
  ] });
373
373
  }
@@ -381,29 +381,29 @@ const Qe = {
381
381
  md: "text-sm",
382
382
  lg: "text-base",
383
383
  full: "text-base"
384
- }, ge = ce(
384
+ }, ye = ce(
385
385
  ({
386
386
  label: t,
387
387
  helperText: a,
388
388
  error: r,
389
389
  size: n = "md",
390
- indeterminate: l = !1,
390
+ indeterminate: s = !1,
391
391
  containerClassName: o,
392
392
  labelClassName: u,
393
393
  className: b,
394
394
  id: x,
395
395
  ...g
396
396
  }, f) => {
397
- const s = x || `checkbox-${Math.random().toString(36).substr(2, 9)}`, m = !!r;
397
+ const l = x || `checkbox-${Math.random().toString(36).substr(2, 9)}`, m = !!r;
398
398
  return se.useEffect(() => {
399
- f && typeof f == "object" && f.current && (f.current.indeterminate = l);
400
- }, [l, f]), /* @__PURE__ */ d("div", { className: p("flex flex-col", o), children: [
399
+ f && typeof f == "object" && f.current && (f.current.indeterminate = s);
400
+ }, [s, f]), /* @__PURE__ */ d("div", { className: p("flex flex-col", o), children: [
401
401
  /* @__PURE__ */ d("div", { className: "flex items-start", children: [
402
402
  /* @__PURE__ */ e("div", { className: "flex items-center h-5", children: /* @__PURE__ */ e(
403
403
  "input",
404
404
  {
405
405
  ref: f,
406
- id: s,
406
+ id: l,
407
407
  type: "checkbox",
408
408
  className: p(
409
409
  // Base styles
@@ -426,7 +426,7 @@ const Qe = {
426
426
  /* @__PURE__ */ e(
427
427
  "label",
428
428
  {
429
- htmlFor: s,
429
+ htmlFor: l,
430
430
  className: p(
431
431
  "font-medium cursor-pointer",
432
432
  m ? "text-error" : "text-default",
@@ -443,56 +443,56 @@ const Qe = {
443
443
  ] });
444
444
  }
445
445
  );
446
- ge.displayName = "Checkbox";
447
- const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" }) }), rt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m15 18-6-6 6-6" }) }), nt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m9 18 6-6-6-6" }) }), ye = ce(({
446
+ ye.displayName = "Checkbox";
447
+ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" }) }), rt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m15 18-6-6 6-6" }) }), nt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m9 18 6-6-6-6" }) }), ve = ce(({
448
448
  value: t,
449
449
  onChange: a,
450
450
  placeholder: r = "Select date",
451
451
  disabled: n = !1,
452
- required: l = !1,
452
+ required: s = !1,
453
453
  size: o = "md",
454
454
  className: u,
455
455
  minDate: b,
456
456
  maxDate: x,
457
457
  format: g = "MM/dd/yyyy"
458
458
  }, f) => {
459
- const [s, m] = P(!1), [h, w] = P(() => t || /* @__PURE__ */ new Date()), k = J(null);
459
+ const [l, m] = P(!1), [h, w] = P(() => t || /* @__PURE__ */ new Date()), k = J(null);
460
460
  U(() => {
461
- const T = (V) => {
462
- k.current && !k.current.contains(V.target) && m(!1);
461
+ const z = (W) => {
462
+ k.current && !k.current.contains(W.target) && m(!1);
463
463
  };
464
- return s && document.addEventListener("mousedown", T), () => {
465
- document.removeEventListener("mousedown", T);
464
+ return l && document.addEventListener("mousedown", z), () => {
465
+ document.removeEventListener("mousedown", z);
466
466
  };
467
- }, [s]);
468
- const y = (T) => {
469
- if (!T) return "";
470
- const V = T.getDate().toString().padStart(2, "0"), F = (T.getMonth() + 1).toString().padStart(2, "0"), i = T.getFullYear();
467
+ }, [l]);
468
+ const v = (z) => {
469
+ if (!z) return "";
470
+ const W = z.getDate().toString().padStart(2, "0"), V = (z.getMonth() + 1).toString().padStart(2, "0"), i = z.getFullYear();
471
471
  switch (g) {
472
472
  case "dd/MM/yyyy":
473
- return `${V}/${F}/${i}`;
473
+ return `${W}/${V}/${i}`;
474
474
  case "yyyy-MM-dd":
475
- return `${i}-${F}-${V}`;
475
+ return `${i}-${V}-${W}`;
476
476
  case "MM/dd/yyyy":
477
477
  default:
478
- return `${F}/${V}/${i}`;
478
+ return `${V}/${W}/${i}`;
479
479
  }
480
480
  }, j = () => {
481
- const T = h.getFullYear(), V = h.getMonth(), F = new Date(T, V, 1), i = new Date(F);
482
- i.setDate(i.getDate() - F.getDay());
483
- const v = [], L = new Date(i);
481
+ const z = h.getFullYear(), W = h.getMonth(), V = new Date(z, W, 1), i = new Date(V);
482
+ i.setDate(i.getDate() - V.getDay());
483
+ const y = [], E = new Date(i);
484
484
  for (let S = 0; S < 42; S++)
485
- v.push(new Date(L)), L.setDate(L.getDate() + 1);
486
- return v;
487
- }, N = (T) => {
488
- T.getMonth() === h.getMonth() && (b && T < b || x && T > x || (a?.(T), m(!1)));
485
+ y.push(new Date(E)), E.setDate(E.getDate() + 1);
486
+ return y;
487
+ }, N = (z) => {
488
+ z.getMonth() === h.getMonth() && (b && z < b || x && z > x || (a?.(z), m(!1)));
489
489
  }, q = () => {
490
490
  w(new Date(h.getFullYear(), h.getMonth() - 1, 1));
491
491
  }, B = () => {
492
492
  w(new Date(h.getFullYear(), h.getMonth() + 1, 1));
493
493
  }, G = () => {
494
494
  a?.(null), m(!1);
495
- }, W = p(
495
+ }, F = p(
496
496
  "w-full border border-neutral rounded-md transition-colors duration-200",
497
497
  "bg-module text-default",
498
498
  "placeholder:text-default dark:placeholder:text-muted",
@@ -526,27 +526,27 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
526
526
  {
527
527
  ref: f,
528
528
  type: "text",
529
- value: y(t ?? null),
529
+ value: v(t ?? null),
530
530
  placeholder: r,
531
531
  disabled: n,
532
- required: l,
532
+ required: s,
533
533
  readOnly: !0,
534
- onClick: () => !n && m(!s),
535
- className: p(W, "pr-10 cursor-pointer")
534
+ onClick: () => !n && m(!l),
535
+ className: p(F, "pr-10 cursor-pointer")
536
536
  }
537
537
  ),
538
538
  /* @__PURE__ */ e(
539
539
  "button",
540
540
  {
541
541
  type: "button",
542
- onClick: () => !n && m(!s),
542
+ onClick: () => !n && m(!l),
543
543
  disabled: n,
544
544
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-muted hover:text-muted",
545
545
  children: /* @__PURE__ */ e(tt, {})
546
546
  }
547
547
  )
548
548
  ] }),
549
- s && /* @__PURE__ */ d("div", { className: "absolute z-50 mt-1 bg-module border border-neutral rounded-md shadow-lg p-4 min-w-[280px]", children: [
549
+ l && /* @__PURE__ */ d("div", { className: "absolute z-50 mt-1 bg-module border border-neutral rounded-md shadow-lg p-4 min-w-[280px]", children: [
550
550
  /* @__PURE__ */ d("div", { className: "flex items-center justify-between mb-4", children: [
551
551
  /* @__PURE__ */ e(
552
552
  "button",
@@ -570,26 +570,26 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
570
570
  }
571
571
  )
572
572
  ] }),
573
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((T) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted text-center py-1", children: T }, T)) }),
574
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((T, V) => {
575
- const F = T.getMonth() === h.getMonth(), i = t && T.toDateString() === t.toDateString(), v = T.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = !F || b && T < b || x && T > x;
573
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((z) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted text-center py-1", children: z }, z)) }),
574
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((z, W) => {
575
+ const V = z.getMonth() === h.getMonth(), i = t && z.toDateString() === t.toDateString(), y = z.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), E = !V || b && z < b || x && z > x;
576
576
  return /* @__PURE__ */ e(
577
577
  "button",
578
578
  {
579
- onClick: () => !L && N(T),
580
- disabled: L,
579
+ onClick: () => !E && N(z),
580
+ disabled: E,
581
581
  className: p(
582
582
  "w-8 h-8 text-sm rounded transition-colors duration-200",
583
583
  {
584
- "text-default hover:bg-neutral-container": F && !i && !L,
584
+ "text-default hover:bg-neutral-container": V && !i && !E,
585
585
  "bg-primary text-white": i,
586
- "bg-neutral-container text-default": v && !i,
587
- "text-muted cursor-not-allowed": L
586
+ "bg-neutral-container text-default": y && !i,
587
+ "text-muted cursor-not-allowed": E
588
588
  }
589
589
  ),
590
- children: T.getDate()
590
+ children: z.getDate()
591
591
  },
592
- V
592
+ W
593
593
  );
594
594
  }) }),
595
595
  /* @__PURE__ */ d("div", { className: "flex justify-between items-center mt-4 pt-3 border-t border-neutral", children: [
@@ -653,7 +653,7 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
653
653
  md: "px-3 py-2 text-sm",
654
654
  lg: "px-3 py-2 text-sm",
655
655
  full: "px-3 py-2 text-sm"
656
- }, xe = {
656
+ }, be = {
657
657
  sm: "h-4 w-4",
658
658
  md: "h-5 w-5",
659
659
  lg: "h-6 w-6",
@@ -664,75 +664,75 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
664
664
  helperText: a,
665
665
  error: r,
666
666
  size: n = "md",
667
- fullWidth: l = !1,
667
+ fullWidth: s = !1,
668
668
  startIcon: o = /* @__PURE__ */ e(at, {}),
669
669
  loading: u = !1,
670
670
  containerClassName: b,
671
671
  labelClassName: x,
672
672
  className: g,
673
673
  id: f,
674
- options: s,
674
+ options: l,
675
675
  onRemoteSearch: m,
676
676
  onSelect: h,
677
677
  debounceTime: w = 500,
678
678
  showAllOnOpen: k = !1,
679
- value: y,
679
+ value: v,
680
680
  onChange: j,
681
681
  ...N
682
682
  }, q) => {
683
- const B = f || `searchfield-${Math.random().toString(36).substr(2, 9)}`, G = !!r, W = J(null), I = J(null), [H, T] = P(y || ""), [V, F] = P(!1), [i, v] = P(!1), [L, S] = P(!1);
683
+ const B = f || `searchfield-${Math.random().toString(36).substr(2, 9)}`, G = !!r, F = J(null), I = J(null), [H, z] = P(v || ""), [W, V] = P(!1), [i, y] = P(!1), [E, S] = P(!1);
684
684
  U(() => {
685
- y !== void 0 && T(y);
686
- }, [y]);
687
- const E = de(() => {
688
- if (k && !L || !H) return s;
689
- const z = String(H).toLowerCase();
690
- return s.filter(
691
- (D) => String(D.label).toLowerCase().includes(z)
685
+ v !== void 0 && z(v);
686
+ }, [v]);
687
+ const M = de(() => {
688
+ if (k && !E || !H) return l;
689
+ const T = String(H).toLowerCase();
690
+ return l.filter(
691
+ (D) => String(D.label).toLowerCase().includes(T)
692
692
  );
693
- }, [H, s, k, L]);
693
+ }, [H, l, k, E]);
694
694
  U(() => {
695
695
  if (!m || !H) {
696
- v(!1);
696
+ y(!1);
697
697
  return;
698
698
  }
699
- const z = setTimeout(async () => {
700
- v(!0);
699
+ const T = setTimeout(async () => {
700
+ y(!0);
701
701
  try {
702
702
  await m(String(H));
703
703
  } catch (D) {
704
704
  console.error("Remote search failed:", D);
705
705
  } finally {
706
- v(!1);
706
+ y(!1);
707
707
  }
708
708
  }, w);
709
709
  return () => {
710
- clearTimeout(z), v(!1);
710
+ clearTimeout(T), y(!1);
711
711
  };
712
712
  }, [H, w, m]), U(() => {
713
- const z = (D) => {
714
- W.current && !W.current.contains(D.target) && F(!1);
713
+ const T = (D) => {
714
+ F.current && !F.current.contains(D.target) && V(!1);
715
715
  };
716
- return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
716
+ return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
717
717
  }, []);
718
- const M = (z) => {
719
- const D = z.target.value;
720
- T(D), F(!0), S(!0), j && j(z);
721
- }, Q = (z) => {
722
- T(z.label), F(!1), S(!1), h && h(z.value);
718
+ const L = (T) => {
719
+ const D = T.target.value;
720
+ z(D), V(!0), S(!0), j && j(T);
721
+ }, Q = (T) => {
722
+ z(T.label), V(!1), S(!1), h && h(T.value);
723
723
  }, re = () => {
724
- (s.length > 0 || m) && (F(!0), S(!1));
725
- }, X = u || i, $ = V && (E.length > 0 || X), A = de(() => q || I, [q]);
724
+ (l.length > 0 || m) && (V(!0), S(!1));
725
+ }, X = u || i, $ = W && (M.length > 0 || X), A = de(() => q || I, [q]);
726
726
  return /* @__PURE__ */ d(
727
727
  "div",
728
728
  {
729
729
  className: ie(
730
730
  "flex flex-col",
731
- l ? "w-full" : "",
731
+ s ? "w-full" : "",
732
732
  b || "",
733
733
  "relative"
734
734
  ),
735
- ref: W,
735
+ ref: F,
736
736
  children: [
737
737
  t && /* @__PURE__ */ e(
738
738
  "label",
@@ -747,14 +747,14 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
747
747
  }
748
748
  ),
749
749
  /* @__PURE__ */ d("div", { className: "relative", children: [
750
- o && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: ie("text-muted", xe[n]), children: o }) }),
750
+ o && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: ie("text-muted", be[n]), children: o }) }),
751
751
  /* @__PURE__ */ e(
752
752
  "input",
753
753
  {
754
754
  ref: A,
755
755
  id: B,
756
756
  value: H,
757
- onChange: M,
757
+ onChange: L,
758
758
  onFocus: re,
759
759
  className: ie(
760
760
  // Base styles
@@ -779,7 +779,7 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
779
779
  /* @__PURE__ */ d(
780
780
  "svg",
781
781
  {
782
- className: ie("animate-spin text-link", xe[n]),
782
+ className: ie("animate-spin text-link", be[n]),
783
783
  xmlns: "http://www.w3.org/2000/svg",
784
784
  fill: "none",
785
785
  viewBox: "0 0 24 24",
@@ -813,11 +813,11 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
813
813
  {
814
814
  className: ie(
815
815
  "text-muted cursor-pointer transition-transform",
816
- xe[n],
817
- V ? "rotate-180" : "rotate-0"
816
+ be[n],
817
+ W ? "rotate-180" : "rotate-0"
818
818
  ),
819
819
  onClick: () => {
820
- F((z) => (z || S(!1), !z));
820
+ V((T) => (T || S(!1), !T));
821
821
  }
822
822
  }
823
823
  )
@@ -828,16 +828,16 @@ const tt = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
828
828
  {
829
829
  className: "absolute z-10 mt-1 w-full bg-module border border-neutral rounded-lg shadow-lg max-h-60 overflow-auto top-full",
830
830
  role: "listbox",
831
- children: E.length > 0 ? E.map((z) => /* @__PURE__ */ e(
831
+ children: M.length > 0 ? M.map((T) => /* @__PURE__ */ e(
832
832
  "li",
833
833
  {
834
834
  className: "px-4 py-2 cursor-pointer text-default hover:bg-accent-container hover:text-accent transition-colors",
835
- onClick: () => Q(z),
835
+ onClick: () => Q(T),
836
836
  role: "option",
837
- "aria-selected": H === z.label,
838
- children: z.label
837
+ "aria-selected": H === T.label,
838
+ children: T.label
839
839
  },
840
- z.value
840
+ T.value
841
841
  )) : /* @__PURE__ */ e("li", { className: "px-4 py-2 text-muted", children: X || u ? "Zoeken op afstand..." : "Geen resultaten gevonden." })
842
842
  }
843
843
  ),
@@ -866,87 +866,87 @@ const ct = {
866
866
  md: "px-3 py-2 text-sm",
867
867
  lg: "px-3 py-2 text-sm",
868
868
  full: "px-3 py-2 text-sm"
869
- }, me = (t) => t.trim().toLowerCase(), ve = ce(
869
+ }, me = (t) => t.trim().toLowerCase(), fe = ce(
870
870
  ({
871
871
  label: t,
872
872
  helperText: a,
873
873
  error: r,
874
874
  size: n = "md",
875
- fullWidth: l = !1,
875
+ fullWidth: s = !1,
876
876
  options: o,
877
877
  placeholder: u,
878
878
  containerClassName: b,
879
879
  labelClassName: x,
880
880
  className: g,
881
881
  id: f,
882
- searchable: s,
882
+ searchable: l,
883
883
  multiple: m,
884
884
  value: h,
885
885
  onChange: w,
886
886
  allowCreate: k,
887
- onCreateOption: y,
887
+ onCreateOption: v,
888
888
  ...j
889
889
  }, N) => {
890
- const q = f || `select-${Math.random().toString(36).substr(2, 9)}`, B = !!r, [G, W] = se.useState(!1), [I, H] = se.useState(""), T = se.useRef(null), [V, F] = se.useState(o);
891
- se.useImperativeHandle(N, () => T.current), se.useEffect(() => {
890
+ const q = f || `select-${Math.random().toString(36).substr(2, 9)}`, B = !!r, [G, F] = se.useState(!1), [I, H] = se.useState(""), z = se.useRef(null), [W, V] = se.useState(o);
891
+ se.useImperativeHandle(N, () => z.current), se.useEffect(() => {
892
892
  const $ = (A) => {
893
- T.current && !T.current.contains(A.target) && W(!1);
893
+ z.current && !z.current.contains(A.target) && F(!1);
894
894
  };
895
895
  return document.addEventListener("mousedown", $), () => document.removeEventListener("mousedown", $);
896
896
  }, []);
897
897
  const i = se.useCallback(
898
898
  ($, A) => $.some(
899
- (z) => me(z.value) === me(A) || me(z.label) === me(A)
899
+ (T) => me(T.value) === me(A) || me(T.label) === me(A)
900
900
  ),
901
901
  []
902
- ), v = se.useCallback(
902
+ ), y = se.useCallback(
903
903
  ($, A) => {
904
- const z = [...$], D = (ee) => {
904
+ const T = [...$], D = (ee) => {
905
905
  const ne = (ee ?? "").trim();
906
- ne && (i(z, ne) || z.push({ value: ne, label: ne }));
906
+ ne && (i(T, ne) || T.push({ value: ne, label: ne }));
907
907
  };
908
- return Array.isArray(A) ? A.forEach(D) : D(A), z;
908
+ return Array.isArray(A) ? A.forEach(D) : D(A), T;
909
909
  },
910
910
  [i]
911
911
  );
912
912
  se.useEffect(() => {
913
- F(($) => {
913
+ V(($) => {
914
914
  const A = [...o];
915
- return $.forEach((z) => {
916
- !i(A, z.value) && !i(A, z.label) && A.push(z);
917
- }), v(A, h);
915
+ return $.forEach((T) => {
916
+ !i(A, T.value) && !i(A, T.label) && A.push(T);
917
+ }), y(A, h);
918
918
  });
919
- }, [o, h, v, i]);
920
- const L = ($) => {
919
+ }, [o, h, y, i]);
920
+ const E = ($) => {
921
921
  if (m) {
922
- const A = Array.isArray(h) ? h : [], z = A.includes($) ? A.filter((D) => D !== $) : [...A, $];
923
- w?.(z);
922
+ const A = Array.isArray(h) ? h : [], T = A.includes($) ? A.filter((D) => D !== $) : [...A, $];
923
+ w?.(T);
924
924
  } else
925
- w?.($), W(!1), H("");
926
- }, S = m ? null : V.find(($) => $.value === h), E = m ? V.filter(
925
+ w?.($), F(!1), H("");
926
+ }, S = m ? null : W.find(($) => $.value === h), M = m ? W.filter(
927
927
  ($) => Array.isArray(h) && h.includes($.value)
928
- ) : [], M = s && I ? V.filter(
928
+ ) : [], L = l && I ? W.filter(
929
929
  ($) => $.label.toLowerCase().includes(I.toLowerCase())
930
- ) : V, Q = !!k && !!s && !!I.trim() && !i(V, I), re = ($) => {
930
+ ) : W, Q = !!k && !!l && !!I.trim() && !i(W, I), re = ($) => {
931
931
  const A = $.trim();
932
932
  if (!A) return;
933
- const z = y?.(A) ?? {
933
+ const T = v?.(A) ?? {
934
934
  value: A,
935
935
  label: A
936
936
  };
937
- if (i(V, z.value) || i(V, z.label)) {
938
- L(z.value), H(""), m || W(!1);
937
+ if (i(W, T.value) || i(W, T.label)) {
938
+ E(T.value), H(""), m || F(!1);
939
939
  return;
940
940
  }
941
- F((D) => [...D, z]), L(z.value), H(""), m || W(!1);
942
- }, X = () => m ? E.length > 0 ? E.map(($) => $.label).join(", ") : u || "Select options" : S?.label || u || "Select an option";
941
+ V((D) => [...D, T]), E(T.value), H(""), m || F(!1);
942
+ }, X = () => m ? M.length > 0 ? M.map(($) => $.label).join(", ") : u || "Select options" : S?.label || u || "Select an option";
943
943
  return /* @__PURE__ */ d(
944
944
  "div",
945
945
  {
946
- ref: T,
946
+ ref: z,
947
947
  className: p(
948
948
  "relative flex flex-col",
949
- l && "w-full",
949
+ s && "w-full",
950
950
  b
951
951
  ),
952
952
  ...j,
@@ -955,7 +955,7 @@ const ct = {
955
955
  "label",
956
956
  {
957
957
  htmlFor: q,
958
- onClick: () => W(!G),
958
+ onClick: () => F(!G),
959
959
  className: p(
960
960
  "block text-sm font-medium mb-1",
961
961
  B ? "text-error" : "text-default",
@@ -970,7 +970,7 @@ const ct = {
970
970
  {
971
971
  type: "button",
972
972
  id: q,
973
- onClick: () => W(!G),
973
+ onClick: () => F(!G),
974
974
  className: p(
975
975
  "block w-full rounded-lg border transition-colors duration-200 text-left",
976
976
  "focus:outline-none focus:ring-0 focus:ring-offset-0",
@@ -984,7 +984,7 @@ const ct = {
984
984
  }
985
985
  ),
986
986
  G && /* @__PURE__ */ d("div", { className: "absolute z-10 mt-1 w-full rounded-md bg-module shadow-lg border border-neutral", children: [
987
- s && /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e(
987
+ l && /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e(
988
988
  "input",
989
989
  {
990
990
  type: "text",
@@ -1021,17 +1021,17 @@ const ct = {
1021
1021
  {
1022
1022
  className: "px-4 py-2 text-sm text-muted cursor-pointer hover:bg-neutral-container",
1023
1023
  onClick: () => {
1024
- w?.(""), W(!1);
1024
+ w?.(""), F(!1);
1025
1025
  },
1026
1026
  children: u
1027
1027
  }
1028
1028
  ),
1029
- M.map(($) => {
1029
+ L.map(($) => {
1030
1030
  const A = m ? Array.isArray(h) && h.includes($.value) : h === $.value;
1031
1031
  return /* @__PURE__ */ e(
1032
1032
  "li",
1033
1033
  {
1034
- onClick: () => !$.disabled && L($.value),
1034
+ onClick: () => !$.disabled && E($.value),
1035
1035
  className: p(
1036
1036
  "px-4 py-2 text-sm cursor-pointer",
1037
1037
  "text-default",
@@ -1072,7 +1072,7 @@ const ct = {
1072
1072
  );
1073
1073
  }
1074
1074
  );
1075
- ve.displayName = "Select";
1075
+ fe.displayName = "Select";
1076
1076
  const it = {
1077
1077
  sm: "px-3 py-1.5 text-sm",
1078
1078
  md: "px-3 py-2 text-sm",
@@ -1084,17 +1084,17 @@ const it = {
1084
1084
  helperText: a,
1085
1085
  error: r,
1086
1086
  size: n = "md",
1087
- fullWidth: l = !1,
1087
+ fullWidth: s = !1,
1088
1088
  loading: o = !1,
1089
1089
  containerClassName: u,
1090
1090
  labelClassName: b,
1091
1091
  className: x,
1092
1092
  id: g,
1093
1093
  rows: f = 4,
1094
- ...s
1094
+ ...l
1095
1095
  }, m) => {
1096
1096
  const h = g || `textarea-${Math.random().toString(36).substr(2, 9)}`, w = !!r;
1097
- return /* @__PURE__ */ d("div", { className: p("flex flex-col", l && "w-full", u), children: [
1097
+ return /* @__PURE__ */ d("div", { className: p("flex flex-col", s && "w-full", u), children: [
1098
1098
  t && /* @__PURE__ */ e(
1099
1099
  "label",
1100
1100
  {
@@ -1125,7 +1125,7 @@ const it = {
1125
1125
  w ? "border-error text-error focus:border-error focus:ring-error" : "border-neutral text-default",
1126
1126
  x
1127
1127
  ),
1128
- ...s
1128
+ ...l
1129
1129
  }
1130
1130
  ),
1131
1131
  o && /* @__PURE__ */ e("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ d(
@@ -1177,7 +1177,7 @@ const dt = {
1177
1177
  md: "px-3 py-2 text-sm",
1178
1178
  lg: "px-3 py-2 text-sm",
1179
1179
  full: "px-3 py-2 text-sm"
1180
- }, be = {
1180
+ }, ge = {
1181
1181
  sm: "h-4 w-4",
1182
1182
  md: "h-5 w-5",
1183
1183
  lg: "h-6 w-6",
@@ -1188,18 +1188,18 @@ const dt = {
1188
1188
  helperText: a,
1189
1189
  error: r,
1190
1190
  size: n = "md",
1191
- fullWidth: l = !1,
1191
+ fullWidth: s = !1,
1192
1192
  startIcon: o,
1193
1193
  endIcon: u,
1194
1194
  loading: b = !1,
1195
1195
  containerClassName: x,
1196
1196
  labelClassName: g,
1197
1197
  className: f,
1198
- id: s,
1198
+ id: l,
1199
1199
  ...m
1200
1200
  }, h) => {
1201
- const w = s || `textfield-${Math.random().toString(36).substr(2, 9)}`, k = !!r;
1202
- return /* @__PURE__ */ d("div", { className: p("flex flex-col", l && "w-full", x), children: [
1201
+ const w = l || `textfield-${Math.random().toString(36).substr(2, 9)}`, k = !!r;
1202
+ return /* @__PURE__ */ d("div", { className: p("flex flex-col", s && "w-full", x), children: [
1203
1203
  t && /* @__PURE__ */ e(
1204
1204
  "label",
1205
1205
  {
@@ -1214,7 +1214,7 @@ const dt = {
1214
1214
  ),
1215
1215
  /* @__PURE__ */ d("div", { className: "relative", children: [
1216
1216
  o && // Todo fix inset not showing correctly on different sizes
1217
- /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: p("text-muted", be[n]), children: o }) }),
1217
+ /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: p("text-muted", ge[n]), children: o }) }),
1218
1218
  /* @__PURE__ */ e(
1219
1219
  "input",
1220
1220
  {
@@ -1240,7 +1240,7 @@ const dt = {
1240
1240
  (u || b) && /* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: b ? /* @__PURE__ */ d(
1241
1241
  "svg",
1242
1242
  {
1243
- className: p("animate-spin text-muted", be[n]),
1243
+ className: p("animate-spin text-muted", ge[n]),
1244
1244
  fill: "none",
1245
1245
  viewBox: "0 0 24 24",
1246
1246
  children: [
@@ -1265,7 +1265,7 @@ const dt = {
1265
1265
  )
1266
1266
  ]
1267
1267
  }
1268
- ) : u && /* @__PURE__ */ e("span", { className: p("text-muted", be[n]), children: u }) })
1268
+ ) : u && /* @__PURE__ */ e("span", { className: p("text-muted", ge[n]), children: u }) })
1269
1269
  ] }),
1270
1270
  (r || a) && /* @__PURE__ */ e(
1271
1271
  "p",
@@ -1286,7 +1286,7 @@ const oe = ({
1286
1286
  size: a = "md",
1287
1287
  color: r = "current",
1288
1288
  clickable: n = !1,
1289
- onClick: l,
1289
+ onClick: s,
1290
1290
  className: o,
1291
1291
  "aria-label": u,
1292
1292
  ...b
@@ -1314,12 +1314,12 @@ const oe = ({
1314
1314
  ), f = {
1315
1315
  size: x,
1316
1316
  className: g,
1317
- onClick: n ? l : void 0,
1317
+ onClick: n ? s : void 0,
1318
1318
  "aria-label": u,
1319
1319
  role: n ? "button" : void 0,
1320
1320
  tabIndex: n ? 0 : void 0,
1321
- onKeyDown: n ? (s) => {
1322
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), l?.());
1321
+ onKeyDown: n ? (l) => {
1322
+ (l.key === "Enter" || l.key === " ") && (l.preventDefault(), s?.());
1323
1323
  } : void 0,
1324
1324
  ...b
1325
1325
  };
@@ -1349,14 +1349,14 @@ function mt({
1349
1349
  ] })
1350
1350
  ] }),
1351
1351
  a && /* @__PURE__ */ d("div", { className: "rounded-lg overflow-hidden", children: [
1352
- /* @__PURE__ */ e("div", { className: `grid grid-cols-${r} gap-2 bg-neutral-container p-3`, children: Array.from({ length: r }).map((l, o) => /* @__PURE__ */ e(
1352
+ /* @__PURE__ */ e("div", { className: `grid grid-cols-${r} gap-2 bg-neutral-container p-3`, children: Array.from({ length: r }).map((s, o) => /* @__PURE__ */ e(
1353
1353
  "div",
1354
1354
  {
1355
1355
  className: "h-4 bg-neutral-border-emphasis rounded w-2/3"
1356
1356
  },
1357
1357
  `header-${o}`
1358
1358
  )) }),
1359
- Array.from({ length: n }).map((l, o) => /* @__PURE__ */ e(
1359
+ Array.from({ length: n }).map((s, o) => /* @__PURE__ */ e(
1360
1360
  "div",
1361
1361
  {
1362
1362
  className: `grid grid-cols-${r} gap-2 p-3 border-t border-neutral`,
@@ -1378,68 +1378,68 @@ const ft = ({
1378
1378
  options: a,
1379
1379
  value: r,
1380
1380
  onSelect: n,
1381
- placement: l = "bottom-start",
1381
+ placement: s = "bottom-start",
1382
1382
  disabled: o = !1,
1383
1383
  className: u,
1384
1384
  showCheck: b = !0,
1385
1385
  header: x
1386
1386
  }) => {
1387
- const [g, f] = P(!1), [s, m] = P(null), [h, w] = P({ top: 0, left: 0 }), [k, y] = P({}), j = J(null), N = J(null), q = J(null), B = J(null);
1387
+ const [g, f] = P(!1), [l, m] = P(null), [h, w] = P({ top: 0, left: 0 }), [k, v] = P({}), j = J(null), N = J(null), q = J(null), B = J(null);
1388
1388
  U(() => {
1389
- const i = (v) => {
1390
- j.current && (!j.current.contains(v.target) || q.current && !q.current.contains(v.target)) && (f(!1), m(null), B.current && (clearTimeout(B.current), B.current = null));
1389
+ const i = (y) => {
1390
+ j.current && (!j.current.contains(y.target) || q.current && !q.current.contains(y.target)) && (f(!1), m(null), B.current && (clearTimeout(B.current), B.current = null));
1391
1391
  };
1392
1392
  return g && document.addEventListener("mousedown", i), () => {
1393
1393
  document.removeEventListener("mousedown", i);
1394
1394
  };
1395
1395
  }, [g]), U(() => {
1396
- const i = (v) => {
1397
- v.key === "Escape" && (f(!1), m(null), B.current && (clearTimeout(B.current), B.current = null));
1396
+ const i = (y) => {
1397
+ y.key === "Escape" && (f(!1), m(null), B.current && (clearTimeout(B.current), B.current = null));
1398
1398
  };
1399
1399
  return g && document.addEventListener("keydown", i), () => {
1400
1400
  document.removeEventListener("keydown", i);
1401
1401
  };
1402
1402
  }, [g]), U(() => {
1403
- if (s && j.current) {
1403
+ if (l && j.current) {
1404
1404
  const i = j.current.querySelector(
1405
- `[data-option-value="${s}"]`
1405
+ `[data-option-value="${l}"]`
1406
1406
  );
1407
1407
  if (i) {
1408
- const v = i.getBoundingClientRect();
1408
+ const y = i.getBoundingClientRect();
1409
1409
  w({
1410
- top: v.top,
1411
- left: v.right + 8
1410
+ top: y.top,
1411
+ left: y.right + 8
1412
1412
  });
1413
1413
  }
1414
1414
  }
1415
- }, [s]), U(() => () => {
1415
+ }, [l]), U(() => () => {
1416
1416
  B.current && clearTimeout(B.current);
1417
1417
  }, []);
1418
1418
  const G = (i) => {
1419
1419
  if (i.stopPropagation(), !o) {
1420
1420
  if (!g) {
1421
- const v = N.current?.getBoundingClientRect();
1422
- if (v) {
1421
+ const y = N.current?.getBoundingClientRect();
1422
+ if (y) {
1423
1423
  const S = {};
1424
- l.startsWith("bottom") ? S.top = v.bottom + 6 : S.bottom = window.innerHeight - v.top + 6, l.endsWith("start") ? S.left = v.left : S.right = window.innerWidth - v.right, y(S);
1424
+ s.startsWith("bottom") ? S.top = y.bottom + 6 : S.bottom = window.innerHeight - y.top + 6, s.endsWith("start") ? S.left = y.left : S.right = window.innerWidth - y.right, v(S);
1425
1425
  }
1426
1426
  }
1427
1427
  f(!g), m(null), B.current && (clearTimeout(B.current), B.current = null);
1428
1428
  }
1429
- }, W = (i, v, L) => {
1430
- i.stopPropagation(), !v.disabled && !v.divider && (!v.children || v.children.length === 0) && (n?.(v.value, L), f(!1), m(null));
1429
+ }, F = (i, y, E) => {
1430
+ i.stopPropagation(), !y.disabled && !y.divider && (!y.children || y.children.length === 0) && (n?.(y.value, E), f(!1), m(null));
1431
1431
  }, I = (i) => {
1432
1432
  B.current && (clearTimeout(B.current), B.current = null), i.children && i.children.length > 0 ? m(i.value) : m(null);
1433
1433
  }, H = (i) => {
1434
1434
  i.children && i.children.length > 0 ? B.current = setTimeout(() => {
1435
1435
  m(null);
1436
1436
  }, 150) : m(null);
1437
- }, T = (i, v, L) => {
1438
- i.stopPropagation(), !v.disabled && !v.divider && (n?.(v.value, L), f(!1), m(null));
1439
- }, V = p(
1437
+ }, z = (i, y, E) => {
1438
+ i.stopPropagation(), !y.disabled && !y.divider && (n?.(y.value, E), f(!1), m(null));
1439
+ }, W = p(
1440
1440
  "fixed z-[60] min-w-[200px] bg-module rounded-md shadow-lg border border-neutral",
1441
1441
  "max-h-60 overflow-auto"
1442
- ), F = p(
1442
+ ), V = p(
1443
1443
  "fixed z-[60] min-w-[200px] bg-module rounded-md shadow-lg border border-neutral",
1444
1444
  "max-h-60 overflow-auto"
1445
1445
  );
@@ -1464,24 +1464,24 @@ const ft = ({
1464
1464
  children: t
1465
1465
  }
1466
1466
  ),
1467
- g && /* @__PURE__ */ e("div", { className: V, style: k, children: /* @__PURE__ */ d("div", { className: "p-2", children: [
1467
+ g && /* @__PURE__ */ e("div", { className: W, style: k, children: /* @__PURE__ */ d("div", { className: "p-2", children: [
1468
1468
  x && (typeof x == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted uppercase tracking-wider px-3 py-2", children: x }) : x),
1469
- a.map((i, v) => {
1469
+ a.map((i, y) => {
1470
1470
  if (i.divider)
1471
1471
  return /* @__PURE__ */ e(
1472
1472
  "div",
1473
1473
  {
1474
1474
  className: "border-t border-neutral my-2"
1475
1475
  },
1476
- `divider-${v}`
1476
+ `divider-${y}`
1477
1477
  );
1478
- const L = i.children && i.children.length > 0, S = s === i.value;
1478
+ const E = i.children && i.children.length > 0, S = l === i.value;
1479
1479
  return /* @__PURE__ */ d("div", { className: "relative group", children: [
1480
1480
  /* @__PURE__ */ d(
1481
1481
  "button",
1482
1482
  {
1483
1483
  "data-option-value": i.value,
1484
- onClick: (E) => W(E, i),
1484
+ onClick: (M) => F(M, i),
1485
1485
  onMouseEnter: () => I(i),
1486
1486
  onMouseLeave: () => H(i),
1487
1487
  disabled: i.disabled,
@@ -1489,7 +1489,7 @@ const ft = ({
1489
1489
  "w-full flex items-center justify-between px-3 py-2 text-sm text-default hover:bg-neutral-container rounded-md transition-colors",
1490
1490
  {
1491
1491
  "opacity-50 cursor-not-allowed": i.disabled,
1492
- "bg-neutral-container": S && L
1492
+ "bg-neutral-container": S && E
1493
1493
  }
1494
1494
  ),
1495
1495
  children: [
@@ -1502,16 +1502,16 @@ const ft = ({
1502
1502
  ] }),
1503
1503
  /* @__PURE__ */ d("div", { className: "flex items-center space-x-2", children: [
1504
1504
  b && r === i.value && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-success flex-shrink-0 text-sm font-bold", children: "✓" }),
1505
- L && /* @__PURE__ */ e("span", { className: "text-muted text-xs", children: "▶" })
1505
+ E && /* @__PURE__ */ e("span", { className: "text-muted text-xs", children: "▶" })
1506
1506
  ] })
1507
1507
  ]
1508
1508
  }
1509
1509
  ),
1510
- L && S && /* @__PURE__ */ e(
1510
+ E && S && /* @__PURE__ */ e(
1511
1511
  "div",
1512
1512
  {
1513
1513
  ref: q,
1514
- className: F,
1514
+ className: V,
1515
1515
  style: {
1516
1516
  top: `${h.top}px`,
1517
1517
  left: `${h.left}px`
@@ -1524,45 +1524,45 @@ const ft = ({
1524
1524
  m(null);
1525
1525
  }, 150);
1526
1526
  },
1527
- children: /* @__PURE__ */ e("div", { className: "p-2", children: i.children.map((E, M) => {
1528
- if (E.divider)
1527
+ children: /* @__PURE__ */ e("div", { className: "p-2", children: i.children.map((M, L) => {
1528
+ if (M.divider)
1529
1529
  return /* @__PURE__ */ e(
1530
1530
  "div",
1531
1531
  {
1532
1532
  className: "border-t border-neutral my-2"
1533
1533
  },
1534
- `divider-${M}`
1534
+ `divider-${L}`
1535
1535
  );
1536
1536
  const Q = typeof r == "object" && r[i.value] && r[i.value].includes(
1537
- E.value
1538
- ) || r === E.value;
1537
+ M.value
1538
+ ) || r === M.value;
1539
1539
  return /* @__PURE__ */ d(
1540
1540
  "button",
1541
1541
  {
1542
- onClick: (re) => T(
1542
+ onClick: (re) => z(
1543
1543
  re,
1544
- E,
1544
+ M,
1545
1545
  i.value
1546
1546
  ),
1547
- disabled: E.disabled,
1547
+ disabled: M.disabled,
1548
1548
  className: p(
1549
1549
  "w-full flex items-center justify-between px-3 py-2 text-sm text-default hover:bg-neutral-container rounded-md transition-colors",
1550
1550
  {
1551
- "opacity-50 cursor-not-allowed": E.disabled
1551
+ "opacity-50 cursor-not-allowed": M.disabled
1552
1552
  }
1553
1553
  ),
1554
1554
  children: [
1555
1555
  /* @__PURE__ */ d("div", { className: "flex items-center space-x-2 min-w-0", children: [
1556
- E.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: E.icon }),
1556
+ M.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: M.icon }),
1557
1557
  /* @__PURE__ */ d("div", { className: "flex flex-col items-start min-w-0", children: [
1558
- /* @__PURE__ */ e("span", { className: "font-base truncate", children: E.label }),
1559
- E.description && /* @__PURE__ */ e("span", { className: "text-xs text-muted", children: E.description })
1558
+ /* @__PURE__ */ e("span", { className: "font-base truncate", children: M.label }),
1559
+ M.description && /* @__PURE__ */ e("span", { className: "text-xs text-muted", children: M.description })
1560
1560
  ] })
1561
1561
  ] }),
1562
1562
  b && Q && /* @__PURE__ */ e("span", { className: "h-4 w-4 text-success flex-shrink-0 text-sm font-bold", children: "✓" })
1563
1563
  ]
1564
1564
  },
1565
- E.value
1565
+ M.value
1566
1566
  );
1567
1567
  }) })
1568
1568
  }
@@ -1570,10 +1570,10 @@ const ft = ({
1570
1570
  ] }, i.value);
1571
1571
  }),
1572
1572
  (() => {
1573
- const i = a.reduce((v, L) => {
1574
- if (L.divider) return v;
1575
- const S = L.children ? L.children.filter((E) => !E.divider).length : 0;
1576
- return v + 1 + S;
1573
+ const i = a.reduce((y, E) => {
1574
+ if (E.divider) return y;
1575
+ const S = E.children ? E.children.filter((M) => !M.divider).length : 0;
1576
+ return y + 1 + S;
1577
1577
  }, 0);
1578
1578
  return i > 1 && /* @__PURE__ */ e("div", { className: "border-t border-neutral mt-2 pt-2", children: /* @__PURE__ */ d("div", { className: "text-xs text-muted px-3 py-1", children: [
1579
1579
  i,
@@ -1728,10 +1728,10 @@ const ft = ({
1728
1728
  }
1729
1729
  ), Nt = (t) => {
1730
1730
  const a = (n) => t.multiSelect && Array.isArray(t.value) ? t.value?.includes(n) : t.value === n, r = (n) => {
1731
- t.multiSelect && Array.isArray(t.value) ? t.onChange(t.value.filter((l) => l !== n)) : t.onChange(n);
1731
+ t.multiSelect && Array.isArray(t.value) ? t.onChange(t.value.filter((s) => s !== n)) : t.onChange(n);
1732
1732
  };
1733
1733
  return t.type === "date" ? /* @__PURE__ */ e("div", { className: "flex items-center space-x-1 max-w-[160px]", children: /* @__PURE__ */ e(
1734
- ye,
1734
+ ve,
1735
1735
  {
1736
1736
  size: "sm",
1737
1737
  value: t.value,
@@ -1743,7 +1743,7 @@ const ft = ({
1743
1743
  /* @__PURE__ */ d("summary", { className: "flex items-center space-x-2 cursor-pointer rounded-full px-3 py-2 text-sm btn btn o__secondary", children: [
1744
1744
  /* @__PURE__ */ e("span", { children: t.label }),
1745
1745
  /* @__PURE__ */ e("span", { className: "text-default", children: t.multiSelect && Array.isArray(t.value) ? t.value?.map(
1746
- (n) => t.options?.find((l) => l.value === n)?.label
1746
+ (n) => t.options?.find((s) => s.value === n)?.label
1747
1747
  ).join(", ") : t.options?.find((n) => n.value === t.value)?.label }),
1748
1748
  /* @__PURE__ */ e("span", { className: "text-muted text-sm group-open:rotate-180 transition-transform", children: /* @__PURE__ */ e(De, {}) })
1749
1749
  ] }),
@@ -1778,31 +1778,31 @@ const ft = ({
1778
1778
  columns: a,
1779
1779
  loading: r = !1,
1780
1780
  searchable: n = !1,
1781
- searchPlaceholder: l = "Search...",
1781
+ searchPlaceholder: s = "Search...",
1782
1782
  filters: o = [],
1783
1783
  paginated: u = !1,
1784
1784
  pageSizeOptions: b = [10, 25, 50, 100],
1785
1785
  defaultPageSize: x = 10,
1786
1786
  actions: g = [],
1787
1787
  onRowClick: f,
1788
- selectable: s = !1,
1788
+ selectable: l = !1,
1789
1789
  selectedRows: m = [],
1790
1790
  onSelectionChange: h,
1791
- getRowKey: w = (G, W) => W,
1791
+ getRowKey: w = (G, F) => F,
1792
1792
  emptyContent: k,
1793
- hoverable: y = !0,
1793
+ hoverable: v = !0,
1794
1794
  bordered: j = !1,
1795
1795
  striped: N = !1,
1796
1796
  className: q,
1797
1797
  rowClassName: B
1798
1798
  }) => {
1799
- const [G, W] = P(""), [I, H] = P({
1799
+ const [G, F] = P(""), [I, H] = P({
1800
1800
  column: null,
1801
1801
  direction: null
1802
- }), [T, V] = P({
1802
+ }), [z, W] = P({
1803
1803
  page: 0,
1804
1804
  pageSize: x
1805
- }), F = J(null), i = de(() => {
1805
+ }), V = J(null), i = de(() => {
1806
1806
  let c = t;
1807
1807
  if (n && G.trim()) {
1808
1808
  const C = a.filter(
@@ -1821,7 +1821,7 @@ const ft = ({
1821
1821
  return String(_ || "") === C.value;
1822
1822
  }));
1823
1823
  }), c;
1824
- }, [t, G, a, n, o]), v = de(() => {
1824
+ }, [t, G, a, n, o]), y = de(() => {
1825
1825
  if (!I.column || !I.direction) return i;
1826
1826
  const c = a.find((C) => C.id === I.column);
1827
1827
  return c ? [...i].sort((C, O) => {
@@ -1829,19 +1829,19 @@ const ft = ({
1829
1829
  let Y = 0;
1830
1830
  return R < _ ? Y = -1 : R > _ && (Y = 1), I.direction === "desc" ? -Y : Y;
1831
1831
  }) : i;
1832
- }, [i, I, a]), L = de(() => {
1833
- if (!u) return v;
1834
- const c = T.page * T.pageSize, C = c + T.pageSize;
1835
- return v.slice(c, C);
1836
- }, [v, T, u]), S = ae(
1832
+ }, [i, I, a]), E = de(() => {
1833
+ if (!u) return y;
1834
+ const c = z.page * z.pageSize, C = c + z.pageSize;
1835
+ return y.slice(c, C);
1836
+ }, [y, z, u]), S = ae(
1837
1837
  (c) => {
1838
1838
  a.find((O) => O.id === c)?.sortable && H((O) => O.column !== c ? { column: c, direction: "asc" } : O.direction === "asc" ? { column: c, direction: "desc" } : { column: null, direction: null });
1839
1839
  },
1840
1840
  [a]
1841
- ), E = ae((c) => {
1842
- V((C) => ({ ...C, page: c }));
1843
- }, []), M = ae((c) => {
1844
- V({ page: 0, pageSize: c });
1841
+ ), M = ae((c) => {
1842
+ W((C) => ({ ...C, page: c }));
1843
+ }, []), L = ae((c) => {
1844
+ W({ page: 0, pageSize: c });
1845
1845
  }, []), Q = ae(
1846
1846
  (c, C) => {
1847
1847
  if (!h) return;
@@ -1853,21 +1853,21 @@ const ft = ({
1853
1853
  [m, h, w]
1854
1854
  ), re = ae(
1855
1855
  (c) => {
1856
- h && h(c ? [...L] : []);
1856
+ h && h(c ? [...E] : []);
1857
1857
  },
1858
- [L, h]
1858
+ [E, h]
1859
1859
  );
1860
1860
  U(() => {
1861
- V((c) => ({ ...c, page: 0 }));
1861
+ W((c) => ({ ...c, page: 0 }));
1862
1862
  }, [G, I]), U(() => {
1863
- V((c) => ({ ...c, page: 0 }));
1863
+ W((c) => ({ ...c, page: 0 }));
1864
1864
  }, [o.map((c) => c.value).join(",")]);
1865
- const X = v.length, $ = Math.ceil(X / T.pageSize), A = T.page * T.pageSize + 1, z = Math.min(A + T.pageSize - 1, X), D = L.length > 0 && L.every((c) => {
1865
+ const X = y.length, $ = Math.ceil(X / z.pageSize), A = z.page * z.pageSize + 1, T = Math.min(A + z.pageSize - 1, X), D = E.length > 0 && E.every((c) => {
1866
1866
  const C = w(c, 0);
1867
1867
  return m.some(
1868
1868
  (O, R) => w(O, R) === C
1869
1869
  );
1870
- }), ee = L.some((c) => {
1870
+ }), ee = E.some((c) => {
1871
1871
  const C = w(c, 0);
1872
1872
  return m.some(
1873
1873
  (O, R) => w(O, R) === C
@@ -1877,8 +1877,8 @@ const ft = ({
1877
1877
  q
1878
1878
  ), K = p("bg-[var(--base-module)]"), le = p(
1879
1879
  "text-[var(--text-default)] p-3 border-b border-[var(--neutral-border)]"
1880
- ), fe = p("h-12", {
1881
- "hover:bg-[var(--neutral-container)] dark:hover:bg-[var(--neutral-container-emphasis)]": y,
1880
+ ), he = p("h-12", {
1881
+ "hover:bg-[var(--neutral-container)] dark:hover:bg-[var(--neutral-container-emphasis)]": v,
1882
1882
  "cursor-pointer": f
1883
1883
  });
1884
1884
  return /* @__PURE__ */ d("div", { className: "space-y-4", children: [
@@ -1887,9 +1887,9 @@ const ft = ({
1887
1887
  /* @__PURE__ */ e("div", { className: "w-full sm:w-auto sm:ml-auto min-w-[200px]", children: /* @__PURE__ */ e(
1888
1888
  ue,
1889
1889
  {
1890
- placeholder: l,
1890
+ placeholder: s,
1891
1891
  value: G,
1892
- onChange: (c) => W(c.target.value),
1892
+ onChange: (c) => F(c.target.value),
1893
1893
  startIcon: /* @__PURE__ */ e(ht, {}),
1894
1894
  className: "max-w-sm"
1895
1895
  }
@@ -1904,9 +1904,9 @@ const ft = ({
1904
1904
  tableColumns: a.length
1905
1905
  }
1906
1906
  ) }),
1907
- /* @__PURE__ */ d("table", { ref: F, className: p(ne, "min-w-full"), children: [
1907
+ /* @__PURE__ */ d("table", { ref: V, className: p(ne, "min-w-full"), children: [
1908
1908
  /* @__PURE__ */ e("thead", { className: K, children: /* @__PURE__ */ d("tr", { children: [
1909
- s && /* @__PURE__ */ e("th", { className: p(le, "w-12"), children: /* @__PURE__ */ e(
1909
+ l && /* @__PURE__ */ e("th", { className: p(le, "w-12"), children: /* @__PURE__ */ e(
1910
1910
  "input",
1911
1911
  {
1912
1912
  type: "checkbox",
@@ -1967,17 +1967,17 @@ const ft = ({
1967
1967
  )),
1968
1968
  g.length > 0 && /* @__PURE__ */ e("th", { className: p(le, "w-20"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1969
1969
  ] }) }),
1970
- /* @__PURE__ */ e("tbody", { children: L.length === 0 || r ? !r && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
1970
+ /* @__PURE__ */ e("tbody", { children: E.length === 0 || r ? !r && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
1971
1971
  "td",
1972
1972
  {
1973
- colSpan: a.length + (s ? 1 : 0) + (g.length > 0 ? 1 : 0),
1973
+ colSpan: a.length + (l ? 1 : 0) + (g.length > 0 ? 1 : 0),
1974
1974
  className: p(
1975
1975
  le,
1976
1976
  "text-center py-8 text-muted"
1977
1977
  ),
1978
1978
  children: k || "No data available"
1979
1979
  }
1980
- ) }) : L.map((c, C) => {
1980
+ ) }) : E.map((c, C) => {
1981
1981
  const O = w(c, C), R = m.some(
1982
1982
  (_, Y) => w(_, Y) === O
1983
1983
  );
@@ -1985,7 +1985,7 @@ const ft = ({
1985
1985
  "tr",
1986
1986
  {
1987
1987
  className: p(
1988
- fe,
1988
+ he,
1989
1989
  { "bg-accent-container": R },
1990
1990
  B?.(c, C)
1991
1991
  ),
@@ -1993,7 +1993,7 @@ const ft = ({
1993
1993
  _.stopPropagation(), f?.(c, C);
1994
1994
  },
1995
1995
  children: [
1996
- s && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
1996
+ l && /* @__PURE__ */ e("td", { className: le, children: /* @__PURE__ */ e(
1997
1997
  "input",
1998
1998
  {
1999
1999
  type: "checkbox",
@@ -2036,7 +2036,7 @@ const ft = ({
2036
2036
  })),
2037
2037
  onSelect: (_) => {
2038
2038
  const Y = g.find(
2039
- (he) => he.id === _
2039
+ (pe) => pe.id === _
2040
2040
  );
2041
2041
  Y && Y.onClick(c, C);
2042
2042
  },
@@ -2056,7 +2056,7 @@ const ft = ({
2056
2056
  "Showing ",
2057
2057
  A,
2058
2058
  " to ",
2059
- z,
2059
+ T,
2060
2060
  " of ",
2061
2061
  X,
2062
2062
  " results"
@@ -2066,8 +2066,8 @@ const ft = ({
2066
2066
  /* @__PURE__ */ e(
2067
2067
  "select",
2068
2068
  {
2069
- value: T.pageSize,
2070
- onChange: (c) => M(Number(c.target.value)),
2069
+ value: z.pageSize,
2070
+ onChange: (c) => L(Number(c.target.value)),
2071
2071
  className: "border border-[var(--neutral-border)] text-[var(--text-default)] rounded-md px-2 py-1 text-sm bg-[var(--base-input)] w-16",
2072
2072
  children: b.map((c) => /* @__PURE__ */ e("option", { value: c, children: c }, c))
2073
2073
  }
@@ -2080,8 +2080,8 @@ const ft = ({
2080
2080
  {
2081
2081
  size: "sm",
2082
2082
  variant: "ghost",
2083
- onClick: () => E(0),
2084
- disabled: T.page === 0,
2083
+ onClick: () => M(0),
2084
+ disabled: z.page === 0,
2085
2085
  iconOnly: !0,
2086
2086
  children: /* @__PURE__ */ e(yt, {})
2087
2087
  }
@@ -2091,15 +2091,15 @@ const ft = ({
2091
2091
  {
2092
2092
  size: "sm",
2093
2093
  variant: "ghost",
2094
- onClick: () => E(T.page - 1),
2095
- disabled: T.page === 0,
2094
+ onClick: () => M(z.page - 1),
2095
+ disabled: z.page === 0,
2096
2096
  iconOnly: !0,
2097
2097
  children: /* @__PURE__ */ e(bt, {})
2098
2098
  }
2099
2099
  ),
2100
2100
  /* @__PURE__ */ d("span", { className: "px-3 py-1 text-sm text-muted", children: [
2101
2101
  "Page ",
2102
- T.page + 1,
2102
+ z.page + 1,
2103
2103
  " of ",
2104
2104
  $
2105
2105
  ] }),
@@ -2108,8 +2108,8 @@ const ft = ({
2108
2108
  {
2109
2109
  size: "sm",
2110
2110
  variant: "ghost",
2111
- onClick: () => E(T.page + 1),
2112
- disabled: T.page >= $ - 1,
2111
+ onClick: () => M(z.page + 1),
2112
+ disabled: z.page >= $ - 1,
2113
2113
  iconOnly: !0,
2114
2114
  children: /* @__PURE__ */ e(gt, {})
2115
2115
  }
@@ -2119,8 +2119,8 @@ const ft = ({
2119
2119
  {
2120
2120
  size: "sm",
2121
2121
  variant: "ghost",
2122
- onClick: () => E($ - 1),
2123
- disabled: T.page >= $ - 1,
2122
+ onClick: () => M($ - 1),
2123
+ disabled: z.page >= $ - 1,
2124
2124
  iconOnly: !0,
2125
2125
  children: /* @__PURE__ */ e(vt, {})
2126
2126
  }
@@ -2128,13 +2128,13 @@ const ft = ({
2128
2128
  ] })
2129
2129
  ] })
2130
2130
  ] });
2131
- }, wt = Ge(null), sr = ({
2131
+ }, wt = Ge(null), or = ({
2132
2132
  items: t,
2133
2133
  activeTab: a,
2134
2134
  onTabChange: r,
2135
2135
  className: n
2136
2136
  }) => {
2137
- const [l, o] = P(t[0]?.id || ""), u = a || l, b = (x) => {
2137
+ const [s, o] = P(t[0]?.id || ""), u = a || s, b = (x) => {
2138
2138
  r ? r(x) : o(x);
2139
2139
  };
2140
2140
  return /* @__PURE__ */ e("div", { className: p("border-b border-neutral-200 dark:border-neutral-700", n), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: t.map((x) => /* @__PURE__ */ e(
@@ -2165,7 +2165,7 @@ const ft = ({
2165
2165
  defaultTab: a,
2166
2166
  activeTab: r,
2167
2167
  onTabChange: n,
2168
- variant: l = "default",
2168
+ variant: s = "default",
2169
2169
  size: o = "md",
2170
2170
  className: u
2171
2171
  }) => {
@@ -2173,44 +2173,44 @@ const ft = ({
2173
2173
  a || r || t[0]?.id || ""
2174
2174
  ), g = r || b, f = (k) => {
2175
2175
  n ? n(k) : x(k);
2176
- }, s = {
2176
+ }, l = {
2177
2177
  activeTab: g,
2178
2178
  setActiveTab: f
2179
2179
  }, m = t.find((k) => k.id === g), h = p(
2180
2180
  "flex",
2181
2181
  {
2182
- "border-b border-neutral-200 dark:border-neutral-700 px-2": l === "default" || l === "underline",
2183
- "bg-neutral-100 dark:bg-neutral-800 p-1 rounded-lg": l === "pills",
2184
- "space-x-1": l === "pills",
2185
- "space-x-8": l === "default" || l === "underline"
2182
+ "border-b border-neutral-200 dark:border-neutral-700 px-2": s === "default" || s === "underline",
2183
+ "bg-neutral-100 dark:bg-neutral-800 p-1 rounded-lg": s === "pills",
2184
+ "space-x-1": s === "pills",
2185
+ "space-x-8": s === "default" || s === "underline"
2186
2186
  },
2187
2187
  u
2188
- ), w = (k, y) => {
2188
+ ), w = (k, v) => {
2189
2189
  const j = "transition-colors duration-200 font-medium", N = {
2190
2190
  "text-xs px-2 py-1": o === "sm",
2191
2191
  "text-sm px-3 py-2": o === "md",
2192
2192
  "text-base px-4 py-3": o === "lg"
2193
2193
  }, q = {
2194
2194
  // Default variant
2195
- "border-b-2 -mb-px": l === "default",
2195
+ "border-b-2 -mb-px": s === "default",
2196
2196
  // Pills variant
2197
- "rounded-md": l === "pills",
2197
+ "rounded-md": s === "pills",
2198
2198
  // Underline variant
2199
- "border-b-2 pb-2": l === "underline"
2199
+ "border-b-2 pb-2": s === "underline"
2200
2200
  }, B = {
2201
2201
  "opacity-50 cursor-not-allowed": k.disabled,
2202
2202
  "cursor-pointer": !k.disabled
2203
- }, G = y ? {
2204
- "border-primary text-primary": l === "default" || l === "underline",
2205
- "bg-white dark:bg-neutral-700 text-neutral-900 dark:text-neutral-100 shadow-sm": l === "pills"
2206
- } : {}, W = !y && !k.disabled ? {
2207
- "border-transparent text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": l === "default",
2208
- "text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": l === "pills",
2209
- "border-transparent text-neutral-600 hover:text-neutral-900 hover:border-neutral-300 dark:text-neutral-400 dark:hover:text-neutral-100": l === "underline"
2203
+ }, G = v ? {
2204
+ "border-primary text-primary": s === "default" || s === "underline",
2205
+ "bg-white dark:bg-neutral-700 text-neutral-900 dark:text-neutral-100 shadow-sm": s === "pills"
2206
+ } : {}, F = !v && !k.disabled ? {
2207
+ "border-transparent text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": s === "default",
2208
+ "text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": s === "pills",
2209
+ "border-transparent text-neutral-600 hover:text-neutral-900 hover:border-neutral-300 dark:text-neutral-400 dark:hover:text-neutral-100": s === "underline"
2210
2210
  } : {};
2211
- return p(j, N, q, B, G, W);
2211
+ return p(j, N, q, B, G, F);
2212
2212
  };
2213
- return /* @__PURE__ */ e(wt.Provider, { value: s, children: /* @__PURE__ */ d("div", { children: [
2213
+ return /* @__PURE__ */ e(wt.Provider, { value: l, children: /* @__PURE__ */ d("div", { children: [
2214
2214
  /* @__PURE__ */ e("div", { className: h, role: "tablist", children: t.map((k) => /* @__PURE__ */ e(
2215
2215
  "button",
2216
2216
  {
@@ -2251,7 +2251,7 @@ function St({
2251
2251
  onClose: a,
2252
2252
  title: r,
2253
2253
  size: n = "md",
2254
- closeOnBackdropClick: l = !0,
2254
+ closeOnBackdropClick: s = !0,
2255
2255
  closeOnEscape: o = !0,
2256
2256
  className: u,
2257
2257
  backdropClassName: b,
@@ -2259,18 +2259,18 @@ function St({
2259
2259
  footer: g,
2260
2260
  showCloseButton: f = !0
2261
2261
  }) {
2262
- const s = J(null), m = J(null);
2262
+ const l = J(null), m = J(null);
2263
2263
  U(() => {
2264
2264
  if (!t || !o) return;
2265
2265
  const w = (k) => {
2266
2266
  k.key === "Escape" && a();
2267
2267
  };
2268
2268
  return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
2269
- }, [t, o, a]), U(() => (t ? (m.current = document.activeElement, s.current && s.current.focus(), document.body.style.overflow = "hidden") : (m.current && m.current.focus(), document.body.style.overflow = ""), () => {
2269
+ }, [t, o, a]), U(() => (t ? (m.current = document.activeElement, l.current && l.current.focus(), document.body.style.overflow = "hidden") : (m.current && m.current.focus(), document.body.style.overflow = ""), () => {
2270
2270
  document.body.style.overflow = "";
2271
2271
  }), [t]);
2272
2272
  const h = (w) => {
2273
- l && w.target === w.currentTarget && a();
2273
+ s && w.target === w.currentTarget && a();
2274
2274
  };
2275
2275
  return t ? /* @__PURE__ */ e(
2276
2276
  "div",
@@ -2285,7 +2285,7 @@ function St({
2285
2285
  children: /* @__PURE__ */ d(
2286
2286
  "div",
2287
2287
  {
2288
- ref: s,
2288
+ ref: l,
2289
2289
  className: p(
2290
2290
  "relative w-full bg-module rounded-modal shadow-modal rounded-md",
2291
2291
  // 'animate-scale-in',
@@ -2330,14 +2330,14 @@ const Z = ({
2330
2330
  size: a = "md",
2331
2331
  weight: r = "normal",
2332
2332
  color: n = "current",
2333
- align: l = "left",
2333
+ align: s = "left",
2334
2334
  truncate: o = !1,
2335
2335
  italic: u = !1,
2336
2336
  underline: b = !1,
2337
2337
  lineHeight: x = "normal",
2338
2338
  as: g,
2339
2339
  className: f,
2340
- children: s,
2340
+ children: l,
2341
2341
  ...m
2342
2342
  }) => {
2343
2343
  const h = g || Lt(t), w = p(
@@ -2384,10 +2384,10 @@ const Z = ({
2384
2384
  },
2385
2385
  // Alignment
2386
2386
  {
2387
- "text-left": l === "left",
2388
- "text-center": l === "center",
2389
- "text-right": l === "right",
2390
- "text-justify": l === "justify"
2387
+ "text-left": s === "left",
2388
+ "text-center": s === "center",
2389
+ "text-right": s === "right",
2390
+ "text-justify": s === "justify"
2391
2391
  },
2392
2392
  // Line height (override variant line heights)
2393
2393
  t === "body" && {
@@ -2403,7 +2403,7 @@ const Z = ({
2403
2403
  },
2404
2404
  f
2405
2405
  );
2406
- return /* @__PURE__ */ e(h, { className: w, ...m, children: s });
2406
+ return /* @__PURE__ */ e(h, { className: w, ...m, children: l });
2407
2407
  };
2408
2408
  function Lt(t) {
2409
2409
  return {
@@ -2418,24 +2418,24 @@ const Et = ({
2418
2418
  onChange: a,
2419
2419
  label: r,
2420
2420
  placeholder: n = "Select or upload a file",
2421
- error: l,
2421
+ error: s,
2422
2422
  disabled: o,
2423
2423
  accept: u,
2424
2424
  onListFiles: b,
2425
2425
  onListMounts: x,
2426
2426
  onUploadFile: g,
2427
2427
  onDownloadFile: f,
2428
- onRegisterFile: s
2428
+ onRegisterFile: l
2429
2429
  }) => {
2430
- const [m, h] = P(!1), [w, k] = P([]), [y, j] = P(null), [N, q] = P("/"), [B, G] = P([]), [W, I] = P(!1), [H, T] = P(""), [V, F] = P(
2430
+ const [m, h] = P(!1), [w, k] = P([]), [v, j] = P(null), [N, q] = P("/"), [B, G] = P([]), [F, I] = P(!1), [H, z] = P(""), [W, V] = P(
2431
2431
  typeof t == "object" ? t : null
2432
- ), [i, v] = P(!1), [L, S] = P(""), E = J(null);
2432
+ ), [i, y] = P(!1), [E, S] = P(""), M = J(null);
2433
2433
  U(() => {
2434
- m && M();
2434
+ m && L();
2435
2435
  }, [m]), U(() => {
2436
- m && y && Q();
2437
- }, [m, y, N, H]);
2438
- const M = async () => {
2436
+ m && v && Q();
2437
+ }, [m, v, N, H]);
2438
+ const L = async () => {
2439
2439
  I(!0);
2440
2440
  try {
2441
2441
  const c = await x?.();
@@ -2446,10 +2446,10 @@ const Et = ({
2446
2446
  I(!1);
2447
2447
  }
2448
2448
  }, Q = async () => {
2449
- if (y) {
2449
+ if (v) {
2450
2450
  I(!0);
2451
2451
  try {
2452
- const c = await b?.({ mountId: y.id, name: H, path: N });
2452
+ const c = await b?.({ mountId: v.id, name: H, path: N });
2453
2453
  c?.data && G(c.data);
2454
2454
  } catch (c) {
2455
2455
  console.error("Failed to load files", c);
@@ -2473,7 +2473,7 @@ const Et = ({
2473
2473
  providerKey: C.name,
2474
2474
  ownerId: "me"
2475
2475
  };
2476
- F(_), a(_, R), h(!1);
2476
+ V(_), a(_, R), h(!1);
2477
2477
  } catch (O) {
2478
2478
  console.error("Local file selection failed", O);
2479
2479
  } finally {
@@ -2482,19 +2482,19 @@ const Et = ({
2482
2482
  }
2483
2483
  }, X = async (c) => {
2484
2484
  const C = c.target.files?.[0];
2485
- if (!(!C || !y)) {
2485
+ if (!(!C || !v)) {
2486
2486
  I(!0);
2487
2487
  try {
2488
2488
  const O = await C.arrayBuffer(), R = await g?.({
2489
2489
  file: new Uint8Array(O),
2490
2490
  filename: C.name,
2491
2491
  mimeType: C.type || "application/octet-stream",
2492
- mountId: y.id,
2492
+ mountId: v.id,
2493
2493
  path: N
2494
2494
  });
2495
2495
  if (R?.data) {
2496
2496
  const _ = R.data;
2497
- F(_), a(_, new Uint8Array(O)), h(!1);
2497
+ V(_), a(_, new Uint8Array(O)), h(!1);
2498
2498
  }
2499
2499
  } catch (O) {
2500
2500
  console.error("Upload failed", O);
@@ -2503,20 +2503,20 @@ const Et = ({
2503
2503
  }
2504
2504
  }
2505
2505
  }, $ = async () => {
2506
- if (!(!L || !y)) {
2506
+ if (!(!E || !v)) {
2507
2507
  I(!0);
2508
2508
  try {
2509
- const c = `${N}${L}/`;
2510
- s && (await s({
2511
- name: L,
2509
+ const c = `${N}${E}/`;
2510
+ l && (await l({
2511
+ name: E,
2512
2512
  type: "folder",
2513
2513
  path: N,
2514
2514
  mimeType: "application/x-directory",
2515
2515
  size: 0,
2516
- mountId: y.id,
2516
+ mountId: v.id,
2517
2517
  providerKey: c,
2518
2518
  ownerId: "me"
2519
- }), await Q()), v(!1), S("");
2519
+ }), await Q()), y(!1), S("");
2520
2520
  } catch (c) {
2521
2521
  console.error("Failed to create folder", c);
2522
2522
  } finally {
@@ -2527,14 +2527,14 @@ const Et = ({
2527
2527
  I(!0);
2528
2528
  try {
2529
2529
  const C = await f?.(c.id);
2530
- F(c), a(c, C), h(!1);
2530
+ V(c), a(c, C), h(!1);
2531
2531
  } catch (C) {
2532
2532
  console.error("Failed to download file", C);
2533
2533
  } finally {
2534
2534
  I(!1);
2535
2535
  }
2536
- }, z = (c) => {
2537
- c.stopPropagation(), F(null), a(null);
2536
+ }, T = (c) => {
2537
+ c.stopPropagation(), V(null), a(null);
2538
2538
  }, D = de(() => {
2539
2539
  const c = /* @__PURE__ */ new Set(), C = [];
2540
2540
  return B.forEach((O) => {
@@ -2542,7 +2542,7 @@ const Et = ({
2542
2542
  O.path === N && c.add(O.name);
2543
2543
  return;
2544
2544
  }
2545
- const R = O.providerKey || O.name, Y = (N ? R.substring(N.length) : R).split("/").filter((he) => he !== "");
2545
+ const R = O.providerKey || O.name, Y = (N ? R.substring(N.length) : R).split("/").filter((pe) => pe !== "");
2546
2546
  Y.length > 1 ? c.add(Y[0]) : Y.length === 1 && C.push(O);
2547
2547
  }), {
2548
2548
  folders: Array.from(c).sort(),
@@ -2574,7 +2574,7 @@ const Et = ({
2574
2574
  /* @__PURE__ */ e(
2575
2575
  oe,
2576
2576
  {
2577
- icon: C.type === "folder" ? Ce : pe,
2577
+ icon: C.type === "folder" ? Ce : xe,
2578
2578
  size: "sm",
2579
2579
  color: C.type === "folder" ? "warning" : "secondary"
2580
2580
  }
@@ -2605,12 +2605,12 @@ const Et = ({
2605
2605
  onClick: (O) => {
2606
2606
  O.stopPropagation(), C.type === "folder" ? ee(C.name) : A(C);
2607
2607
  },
2608
- loading: W && C.type === "file" && V?.id === C.id,
2608
+ loading: F && C.type === "file" && W?.id === C.id,
2609
2609
  children: C.type === "folder" ? "Open" : "Select"
2610
2610
  }
2611
2611
  )
2612
2612
  }
2613
- ], fe = [
2613
+ ], he = [
2614
2614
  {
2615
2615
  id: "name",
2616
2616
  header: "Mount Name",
@@ -2637,32 +2637,32 @@ const Et = ({
2637
2637
  className: p(
2638
2638
  "flex items-center gap-3 px-3 py-2 border rounded-lg cursor-pointer transition-colors",
2639
2639
  "hover:border-primary-400 bg-module",
2640
- l ? "border-error" : "border-neutral",
2640
+ s ? "border-error" : "border-neutral",
2641
2641
  o && "opacity-50 cursor-not-allowed bg-module-subtle"
2642
2642
  ),
2643
2643
  children: [
2644
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: V ? pe : ke, color: V ? "primary" : "secondary" }) }),
2645
- /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: V ? /* @__PURE__ */ e("span", { className: "text-sm text-default font-medium", children: V.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-muted", children: n }) }),
2646
- V && !o && /* @__PURE__ */ e(
2644
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: W ? xe : ke, color: W ? "primary" : "secondary" }) }),
2645
+ /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: W ? /* @__PURE__ */ e("span", { className: "text-sm text-default font-medium", children: W.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-muted", children: n }) }),
2646
+ W && !o && /* @__PURE__ */ e(
2647
2647
  "button",
2648
2648
  {
2649
- onClick: z,
2649
+ onClick: T,
2650
2650
  className: "p-1 hover:bg-neutral-container rounded",
2651
- children: /* @__PURE__ */ e(oe, { icon: We, size: "xs" })
2651
+ children: /* @__PURE__ */ e(oe, { icon: Fe, size: "xs" })
2652
2652
  }
2653
2653
  )
2654
2654
  ]
2655
2655
  }
2656
2656
  ),
2657
- l && /* @__PURE__ */ e(Z, { variant: "body", size: "xs", className: "text-error", children: l }),
2657
+ s && /* @__PURE__ */ e(Z, { variant: "body", size: "xs", className: "text-error", children: s }),
2658
2658
  /* @__PURE__ */ e(
2659
2659
  St,
2660
2660
  {
2661
2661
  open: m,
2662
2662
  onClose: () => {
2663
- h(!1), j(null), q("/"), v(!1);
2663
+ h(!1), j(null), q("/"), y(!1);
2664
2664
  },
2665
- title: y ? `Explorer: ${y.name}` : "Select Storage Mount",
2665
+ title: v ? `Explorer: ${v.name}` : "Select Storage Mount",
2666
2666
  size: "lg",
2667
2667
  children: /* @__PURE__ */ e(
2668
2668
  kt,
@@ -2672,7 +2672,7 @@ const Et = ({
2672
2672
  {
2673
2673
  id: "remote",
2674
2674
  label: "Platform Storage",
2675
- content: /* @__PURE__ */ e("div", { className: "space-y-4", children: y ? /* @__PURE__ */ d($e, { children: [
2675
+ content: /* @__PURE__ */ e("div", { className: "space-y-4", children: v ? /* @__PURE__ */ d($e, { children: [
2676
2676
  /* @__PURE__ */ d("div", { className: "flex flex-wrap items-center gap-2", children: [
2677
2677
  /* @__PURE__ */ e(
2678
2678
  te,
@@ -2692,8 +2692,8 @@ const Et = ({
2692
2692
  {
2693
2693
  placeholder: "Search...",
2694
2694
  value: H,
2695
- onChange: (c) => T(c.target.value),
2696
- startIcon: /* @__PURE__ */ e(ze, { size: 14 }),
2695
+ onChange: (c) => z(c.target.value),
2696
+ startIcon: /* @__PURE__ */ e(Te, { size: 14 }),
2697
2697
  fullWidth: !0,
2698
2698
  size: "sm"
2699
2699
  }
@@ -2704,8 +2704,8 @@ const Et = ({
2704
2704
  {
2705
2705
  variant: "outline",
2706
2706
  size: "sm",
2707
- onClick: () => v(!0),
2708
- leftIcon: /* @__PURE__ */ e(oe, { icon: Fe, size: "xs" }),
2707
+ onClick: () => y(!0),
2708
+ leftIcon: /* @__PURE__ */ e(oe, { icon: Ve, size: "xs" }),
2709
2709
  children: "New Folder"
2710
2710
  }
2711
2711
  ),
@@ -2714,9 +2714,9 @@ const Et = ({
2714
2714
  {
2715
2715
  variant: "primary",
2716
2716
  size: "sm",
2717
- onClick: () => E.current?.click(),
2717
+ onClick: () => M.current?.click(),
2718
2718
  leftIcon: /* @__PURE__ */ e(oe, { icon: Re, size: "xs" }),
2719
- loading: W,
2719
+ loading: F,
2720
2720
  children: "Upload"
2721
2721
  }
2722
2722
  ),
@@ -2725,7 +2725,7 @@ const Et = ({
2725
2725
  {
2726
2726
  type: "file",
2727
2727
  className: "hidden",
2728
- ref: E,
2728
+ ref: M,
2729
2729
  onChange: X,
2730
2730
  accept: u
2731
2731
  }
@@ -2739,20 +2739,20 @@ const Et = ({
2739
2739
  {
2740
2740
  size: "sm",
2741
2741
  placeholder: "Folder name",
2742
- value: L,
2742
+ value: E,
2743
2743
  onChange: (c) => S(c.target.value),
2744
2744
  autoFocus: !0
2745
2745
  }
2746
2746
  ),
2747
- /* @__PURE__ */ e(te, { size: "sm", onClick: $, loading: W, children: "Create" }),
2748
- /* @__PURE__ */ e(te, { size: "sm", variant: "ghost", onClick: () => v(!1), children: "Cancel" })
2747
+ /* @__PURE__ */ e(te, { size: "sm", onClick: $, loading: F, children: "Create" }),
2748
+ /* @__PURE__ */ e(te, { size: "sm", variant: "ghost", onClick: () => y(!1), children: "Cancel" })
2749
2749
  ] }),
2750
2750
  /* @__PURE__ */ e("div", { className: "max-h-[400px] overflow-auto rounded-lg border border-neutral", children: /* @__PURE__ */ e(
2751
2751
  Le,
2752
2752
  {
2753
2753
  data: K,
2754
2754
  columns: le,
2755
- loading: W,
2755
+ loading: F,
2756
2756
  emptyContent: "This folder is empty",
2757
2757
  onRowClick: (c) => c.type === "folder" ? ee(c.name) : A(c)
2758
2758
  }
@@ -2761,8 +2761,8 @@ const Et = ({
2761
2761
  Le,
2762
2762
  {
2763
2763
  data: w,
2764
- columns: fe,
2765
- loading: W,
2764
+ columns: he,
2765
+ loading: F,
2766
2766
  emptyContent: "No storage mounts configured",
2767
2767
  onRowClick: (c) => j(c)
2768
2768
  }
@@ -2772,7 +2772,7 @@ const Et = ({
2772
2772
  id: "local",
2773
2773
  label: "Local File",
2774
2774
  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 rounded-xl bg-module-subtle/50", children: [
2775
- /* @__PURE__ */ e("div", { className: "p-4 bg-primary/10 rounded-full mb-4", children: /* @__PURE__ */ e(oe, { icon: pe, size: "xl", color: "primary" }) }),
2775
+ /* @__PURE__ */ e("div", { className: "p-4 bg-primary/10 rounded-full mb-4", children: /* @__PURE__ */ e(oe, { icon: xe, size: "xl", color: "primary" }) }),
2776
2776
  /* @__PURE__ */ e(Z, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
2777
2777
  /* @__PURE__ */ d(Z, { variant: "body", size: "sm", className: "text-muted mt-1 mb-6 text-center max-w-xs", children: [
2778
2778
  "This file will be used directly in the form and will ",
@@ -2782,9 +2782,9 @@ const Et = ({
2782
2782
  /* @__PURE__ */ d("label", { className: "cursor-pointer", children: [
2783
2783
  /* @__PURE__ */ d("div", { className: p(
2784
2784
  "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",
2785
- W && "opacity-50 cursor-wait"
2785
+ F && "opacity-50 cursor-wait"
2786
2786
  ), children: [
2787
- W && /* @__PURE__ */ d("svg", { className: "animate-spin h-4 w-4 mr-2", fill: "none", viewBox: "0 0 24 24", children: [
2787
+ F && /* @__PURE__ */ d("svg", { className: "animate-spin h-4 w-4 mr-2", fill: "none", viewBox: "0 0 24 24", children: [
2788
2788
  /* @__PURE__ */ e("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
2789
2789
  /* @__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" })
2790
2790
  ] }),
@@ -2797,7 +2797,7 @@ const Et = ({
2797
2797
  className: "hidden",
2798
2798
  onChange: re,
2799
2799
  accept: u,
2800
- disabled: W
2800
+ disabled: F
2801
2801
  }
2802
2802
  )
2803
2803
  ] })
@@ -2810,129 +2810,175 @@ const Et = ({
2810
2810
  )
2811
2811
  ] });
2812
2812
  };
2813
+ function Mt({
2814
+ value: t,
2815
+ onChange: a,
2816
+ onListFolders: r,
2817
+ disabled: n,
2818
+ size: s = "md",
2819
+ placeholder: o,
2820
+ templatePlaceholder: u,
2821
+ showTemplate: b = !0
2822
+ }) {
2823
+ const [x, g] = P([]);
2824
+ U(() => {
2825
+ let l = !0;
2826
+ return Promise.resolve(r?.()).then((m) => {
2827
+ l && m && g(m.data ?? []);
2828
+ }).catch(() => {
2829
+ }), () => {
2830
+ l = !1;
2831
+ };
2832
+ }, []);
2833
+ const f = t ?? {};
2834
+ return /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
2835
+ /* @__PURE__ */ e(
2836
+ fe,
2837
+ {
2838
+ size: s,
2839
+ fullWidth: !0,
2840
+ disabled: n,
2841
+ value: f.folderId ?? "",
2842
+ options: x.map((l) => ({ value: l.id, label: l.name })),
2843
+ placeholder: o ?? "Select a folder",
2844
+ onChange: (l) => a?.({ ...f, folderId: l })
2845
+ }
2846
+ ),
2847
+ b && /* @__PURE__ */ e(
2848
+ ue,
2849
+ {
2850
+ size: s,
2851
+ disabled: n,
2852
+ value: f.pathTemplate ?? "",
2853
+ placeholder: u ?? "Sub-path e.g. {yyyy}/{mm}/{dd} (optional)",
2854
+ onChange: (l) => a?.({ ...f, pathTemplate: l.target.value })
2855
+ }
2856
+ )
2857
+ ] });
2858
+ }
2813
2859
  function Ee(t, a) {
2814
2860
  return a.split(".").reduce(
2815
2861
  (r, n) => r && typeof r == "object" && n in r ? r[n] : void 0,
2816
2862
  t
2817
2863
  );
2818
2864
  }
2819
- function Mt(t, a, r) {
2820
- const n = a.split("."), l = Array.isArray(t) ? [...t] : { ...t };
2821
- let o = l;
2865
+ function $t(t, a, r) {
2866
+ const n = a.split("."), s = Array.isArray(t) ? [...t] : { ...t };
2867
+ let o = s;
2822
2868
  for (let u = 0; u < n.length - 1; u++) {
2823
2869
  const b = n[u], x = o[b];
2824
2870
  o[b] = x && typeof x == "object" ? Array.isArray(x) ? [...x] : { ...x } : {}, o = o[b];
2825
2871
  }
2826
- return o[n[n.length - 1]] = r, l;
2872
+ return o[n[n.length - 1]] = r, s;
2827
2873
  }
2828
- function $t(t, a) {
2874
+ function Tt(t, a) {
2829
2875
  const r = a.split("."), n = Array.isArray(t) ? [...t] : { ...t };
2830
- let l = n;
2876
+ let s = n;
2831
2877
  for (let o = 0; o < r.length - 1; o++) {
2832
2878
  const u = r[o];
2833
- if (!l[u] || typeof l[u] != "object") return n;
2834
- l[u] = Array.isArray(l[u]) ? [...l[u]] : { ...l[u] }, l = l[u];
2879
+ if (!s[u] || typeof s[u] != "object") return n;
2880
+ s[u] = Array.isArray(s[u]) ? [...s[u]] : { ...s[u] }, s = s[u];
2835
2881
  }
2836
- return delete l[r[r.length - 1]], n;
2882
+ return delete s[r[r.length - 1]], n;
2837
2883
  }
2838
- const or = ({
2884
+ const cr = ({
2839
2885
  groups: t,
2840
2886
  data: a,
2841
2887
  onSubmit: r,
2842
2888
  onCancel: n,
2843
- onChange: l,
2889
+ onChange: s,
2844
2890
  transform: o,
2845
2891
  validate: u,
2846
2892
  submitButton: b = { label: "Submit", variant: "primary" },
2847
2893
  cancelButton: x = { label: "Cancel", variant: "outline" },
2848
2894
  showButtons: g = !0,
2849
2895
  layout: f = "vertical",
2850
- size: s = "md",
2896
+ size: l = "md",
2851
2897
  loading: m = !1,
2852
2898
  className: h,
2853
2899
  ref: w,
2854
2900
  sdk: k
2855
2901
  }) => {
2856
- const [y, j] = P(a || {}), [N, q] = P({}), [B, G] = P({});
2902
+ const [v, j] = P(a || {}), [N, q] = P({}), [B, G] = P({});
2857
2903
  U(() => {
2858
2904
  a && j({ ...a });
2859
2905
  }, [a]);
2860
- const W = ae(
2861
- (i, v, L) => {
2862
- const S = t.flatMap((E) => E.items).find((E) => E.name === i);
2906
+ const F = ae(
2907
+ (i, y, E) => {
2908
+ const S = t.flatMap((M) => M.items).find((M) => M.name === i);
2863
2909
  if (!S) return null;
2864
- if (S.required && (v == null || v === ""))
2910
+ if (S.required && (y == null || y === ""))
2865
2911
  return `${S.label} is required`;
2866
2912
  if (S.type === "array") {
2867
- if (S.required && (!v || v.length === 0))
2913
+ if (S.required && (!y || y.length === 0))
2868
2914
  return `${S.label} cannot be empty.`;
2869
- if (v && !Array.isArray(v))
2915
+ if (y && !Array.isArray(y))
2870
2916
  return `${S.label} must be an array.`;
2871
- if (Array.isArray(v) && S.arrayFields) {
2872
- const E = [];
2873
- let M = !1;
2874
- if (v.forEach((Q, re) => {
2917
+ if (Array.isArray(y) && S.arrayFields) {
2918
+ const M = [];
2919
+ let L = !1;
2920
+ if (y.forEach((Q, re) => {
2875
2921
  const X = {};
2876
2922
  for (const $ of S.arrayFields) {
2877
2923
  const A = Q?.[$.name];
2878
2924
  if ($.required && (A == null || A === ""))
2879
- X[$.name] = `${$.label} is required`, M = !0;
2925
+ X[$.name] = `${$.label} is required`, L = !0;
2880
2926
  else if ($.validator) {
2881
- const z = $.validator(A, Q);
2882
- z && (X[$.name] = z, M = !0);
2927
+ const T = $.validator(A, Q);
2928
+ T && (X[$.name] = T, L = !0);
2883
2929
  }
2884
2930
  }
2885
- E[re] = X;
2886
- }), M)
2887
- return JSON.stringify(E);
2931
+ M[re] = X;
2932
+ }), L)
2933
+ return JSON.stringify(M);
2888
2934
  }
2889
2935
  }
2890
- return S.validator ? S.validator(v, L) : null;
2936
+ return S.validator ? S.validator(y, E) : null;
2891
2937
  },
2892
2938
  [t]
2893
2939
  ), I = ae(
2894
- (i, v) => {
2895
- let L = Mt(
2896
- y,
2940
+ (i, y) => {
2941
+ let E = $t(
2942
+ v,
2897
2943
  i,
2898
- v
2944
+ y
2899
2945
  );
2900
- t.flatMap((M) => M.items).find((M) => M.name === i)?.removeIfEmpty && (v == null || v === "") && (L = $t(L, i)), j(L), G((M) => ({ ...M, [i]: !0 }));
2901
- const E = W(i, v, L);
2902
- q((M) => ({
2903
- ...M,
2904
- [i]: E || ""
2905
- })), l?.(L, i);
2946
+ t.flatMap((L) => L.items).find((L) => L.name === i)?.removeIfEmpty && (y == null || y === "") && (E = Tt(E, i)), j(E), G((L) => ({ ...L, [i]: !0 }));
2947
+ const M = F(i, y, E);
2948
+ q((L) => ({
2949
+ ...L,
2950
+ [i]: M || ""
2951
+ })), s?.(E, i);
2906
2952
  },
2907
- [y, t, W, l]
2953
+ [v, t, F, s]
2908
2954
  ), H = ae(
2909
2955
  async (i) => {
2910
2956
  if (console.log("handleSubmit"), i.preventDefault(), m) return;
2911
- const v = {}, L = t.flatMap((E) => E.items);
2912
- for (const E of L) {
2913
- if (E.hidden || E.conditional && !E.conditional(y))
2957
+ const y = {}, E = t.flatMap((M) => M.items);
2958
+ for (const M of E) {
2959
+ if (M.hidden || M.conditional && !M.conditional(v))
2914
2960
  continue;
2915
- const M = W(
2916
- E.name,
2917
- Ee(y, E.name),
2918
- y
2961
+ const L = F(
2962
+ M.name,
2963
+ Ee(v, M.name),
2964
+ v
2919
2965
  );
2920
- M && (v[E.name] = M);
2966
+ L && (y[M.name] = L);
2921
2967
  }
2922
2968
  if (u) {
2923
- const E = u(y);
2924
- E && Object.assign(v, E);
2969
+ const M = u(v);
2970
+ M && Object.assign(y, M);
2925
2971
  }
2926
- if (q(v), console.log("newErrors", v), Object.keys(v).some((E) => v[E]))
2972
+ if (q(y), console.log("newErrors", y), Object.keys(y).some((M) => y[M]))
2927
2973
  return;
2928
- const S = o ? o(y) : y;
2929
- await r?.(y, S);
2974
+ const S = o ? o(v) : v;
2975
+ await r?.(v, S);
2930
2976
  },
2931
- [y, t, W, u, o, r, m]
2932
- ), T = ae(
2977
+ [v, t, F, u, o, r, m]
2978
+ ), z = ae(
2933
2979
  (i) => {
2934
- const v = Ee(y, i.name), L = B[i.name] ? N[i.name] : void 0, S = i.disabled || m, E = {
2935
- value: v || "",
2980
+ const y = Ee(v, i.name), E = B[i.name] ? N[i.name] : void 0, S = i.disabled || m, M = {
2981
+ value: y || "",
2936
2982
  disabled: S,
2937
2983
  required: i.required,
2938
2984
  placeholder: i.placeholder,
@@ -2948,142 +2994,157 @@ const or = ({
2948
2994
  return /* @__PURE__ */ e(
2949
2995
  ue,
2950
2996
  {
2951
- ...E,
2952
- onChange: (M) => I(i.name, M.target.value),
2997
+ ...M,
2998
+ onChange: (L) => I(i.name, L.target.value),
2953
2999
  type: i.textType || i.type,
2954
3000
  autoComplete: i.autocomplete,
2955
- error: L,
2956
- size: s
3001
+ error: E,
3002
+ size: l
2957
3003
  }
2958
3004
  );
2959
3005
  case "textarea":
2960
3006
  return /* @__PURE__ */ e(
2961
3007
  Ne,
2962
3008
  {
2963
- ...E,
2964
- onChange: (M) => I(i.name, M.target.value),
3009
+ ...M,
3010
+ onChange: (L) => I(i.name, L.target.value),
2965
3011
  rows: 4,
2966
- error: L,
2967
- size: s
3012
+ error: E,
3013
+ size: l
2968
3014
  }
2969
3015
  );
2970
3016
  case "select":
2971
3017
  return /* @__PURE__ */ e(
2972
- ve,
3018
+ fe,
2973
3019
  {
2974
- ...E,
2975
- onChange: (M) => I(i.name, M),
2976
- options: (i.options || []).map((M) => ({
2977
- ...M,
2978
- value: String(M.value)
3020
+ ...M,
3021
+ onChange: (L) => I(i.name, L),
3022
+ options: (i.options || []).map((L) => ({
3023
+ ...L,
3024
+ value: String(L.value)
2979
3025
  })),
2980
3026
  searchable: i.searchable,
2981
3027
  multiple: i.multiple,
2982
3028
  allowCreate: i.allowCreate,
2983
- error: L,
2984
- size: s
3029
+ error: E,
3030
+ size: l
2985
3031
  }
2986
3032
  );
2987
3033
  case "checkbox":
2988
3034
  return /* @__PURE__ */ e(
2989
- ge,
3035
+ ye,
2990
3036
  {
2991
- ...E,
2992
- checked: !!v,
2993
- onChange: (M) => I(i.name, M.target.checked),
2994
- size: s
3037
+ ...M,
3038
+ checked: !!y,
3039
+ onChange: (L) => I(i.name, L.target.checked),
3040
+ size: l
2995
3041
  }
2996
3042
  );
2997
3043
  case "radio":
2998
- return /* @__PURE__ */ e("div", { className: "space-y-1", children: i.options?.map((M) => /* @__PURE__ */ d("label", { className: "flex items-center gap-2", children: [
3044
+ return /* @__PURE__ */ e("div", { className: "space-y-1", children: i.options?.map((L) => /* @__PURE__ */ d("label", { className: "flex items-center gap-2", children: [
2999
3045
  /* @__PURE__ */ e(
3000
3046
  "input",
3001
3047
  {
3002
3048
  type: "radio",
3003
3049
  name: i.name,
3004
- value: M.value,
3005
- checked: v === M.value,
3006
- onChange: () => I(i.name, M.value),
3007
- disabled: S || M.disabled,
3050
+ value: L.value,
3051
+ checked: y === L.value,
3052
+ onChange: () => I(i.name, L.value),
3053
+ disabled: S || L.disabled,
3008
3054
  className: "rounded-full border-neutral-100 dark:border-neutral-600"
3009
3055
  }
3010
3056
  ),
3011
- /* @__PURE__ */ e(Z, { variant: "label", size: "sm", children: M.label })
3012
- ] }, M.value)) });
3057
+ /* @__PURE__ */ e(Z, { variant: "label", size: "sm", children: L.label })
3058
+ ] }, L.value)) });
3013
3059
  case "date":
3014
3060
  return /* @__PURE__ */ e(
3015
- ye,
3061
+ ve,
3016
3062
  {
3017
- ...E,
3018
- value: v ? new Date(v) : null,
3019
- onChange: (M) => I(i.name, M),
3020
- size: s
3063
+ ...M,
3064
+ value: y ? new Date(y) : null,
3065
+ onChange: (L) => I(i.name, L),
3066
+ size: l
3021
3067
  }
3022
3068
  );
3023
3069
  case "file":
3024
3070
  return /* @__PURE__ */ e(
3025
3071
  Et,
3026
3072
  {
3027
- ...E,
3028
- value: v,
3029
- onChange: (M) => I(i.name, M),
3030
- error: L,
3031
- onListFiles: (M) => k?.http.invoke({
3073
+ ...M,
3074
+ value: y,
3075
+ onChange: (L) => I(i.name, L),
3076
+ error: E,
3077
+ onListFiles: (L) => k?.http.invoke({
3032
3078
  method: "POST",
3033
3079
  action: "storage.file.list",
3034
- body: M
3080
+ body: L
3035
3081
  }),
3036
3082
  onListMounts: () => k?.http.invoke({
3037
3083
  method: "GET",
3038
3084
  action: "storage.mount"
3039
3085
  }),
3040
- onUploadFile: (M) => k?.http.invoke({
3086
+ onUploadFile: (L) => k?.http.invoke({
3041
3087
  method: "POST",
3042
3088
  action: "storage.file.upload",
3043
- body: M
3089
+ body: L
3044
3090
  }),
3045
- onDownloadFile: (M) => k?.http.invoke({
3091
+ onDownloadFile: (L) => k?.http.invoke({
3046
3092
  method: "GET",
3047
- action: `storage.file.${M}.download`
3093
+ action: `storage.file.${L}.download`
3048
3094
  }),
3049
- onRegisterFile: (M) => k?.http.invoke({
3095
+ onRegisterFile: (L) => k?.http.invoke({
3050
3096
  method: "POST",
3051
3097
  action: "storage.file.folder",
3052
- body: M
3098
+ body: L
3053
3099
  })
3054
3100
  }
3055
3101
  );
3102
+ case "folder":
3103
+ return /* @__PURE__ */ e(
3104
+ Mt,
3105
+ {
3106
+ value: y || {},
3107
+ onChange: (L) => I(i.name, L),
3108
+ onListFolders: () => k?.http.invoke({
3109
+ method: "GET",
3110
+ action: "storage.mount"
3111
+ }),
3112
+ disabled: S,
3113
+ size: l,
3114
+ placeholder: i.placeholder
3115
+ }
3116
+ );
3056
3117
  case "custom":
3057
3118
  return i.customComponent?.({
3058
- value: v,
3059
- onChange: (M) => I(i.name, M),
3060
- error: L,
3119
+ value: y,
3120
+ onChange: (L) => I(i.name, L),
3121
+ error: E,
3061
3122
  disabled: S
3062
3123
  });
3063
3124
  case "array": {
3064
- const M = v || [];
3125
+ const L = y || [];
3065
3126
  let Q = [];
3066
- if (typeof L == "string" && L.startsWith("["))
3127
+ if (typeof E == "string" && E.startsWith("["))
3067
3128
  try {
3068
- Q = JSON.parse(L);
3129
+ Q = JSON.parse(E);
3069
3130
  } catch {
3070
3131
  }
3071
3132
  const re = () => {
3072
- I(i.name, [...M, {}]);
3133
+ I(i.name, [...L, {}]);
3073
3134
  }, X = (A) => {
3074
3135
  I(
3075
3136
  i.name,
3076
- M.filter((z, D) => D !== A)
3137
+ L.filter((T, D) => D !== A)
3077
3138
  );
3078
- }, $ = (A, z, D) => {
3079
- const ee = [...M];
3139
+ }, $ = (A, T, D) => {
3140
+ const ee = [...L];
3080
3141
  ee[A] = {
3081
3142
  ...ee[A],
3082
- [z]: D
3143
+ [T]: D
3083
3144
  }, I(i.name, ee);
3084
3145
  };
3085
3146
  return /* @__PURE__ */ d("div", { className: "space-y-2", children: [
3086
- M.map((A, z) => /* @__PURE__ */ d(
3147
+ L.map((A, T) => /* @__PURE__ */ d(
3087
3148
  "div",
3088
3149
  {
3089
3150
  className: "p-4 border rounded-md dark:border-neutral-700 space-y-2 relative",
@@ -3094,13 +3155,13 @@ const or = ({
3094
3155
  type: "button",
3095
3156
  variant: "ghost",
3096
3157
  size: "sm",
3097
- onClick: () => X(z),
3158
+ onClick: () => X(T),
3098
3159
  disabled: S,
3099
3160
  children: "Remove"
3100
3161
  }
3101
3162
  ) }),
3102
3163
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: i.arrayFields?.map((D) => {
3103
- const ee = Q?.[z]?.[D.name];
3164
+ const ee = Q?.[T]?.[D.name];
3104
3165
  return /* @__PURE__ */ d(
3105
3166
  "div",
3106
3167
  {
@@ -3138,14 +3199,14 @@ const or = ({
3138
3199
  {
3139
3200
  ...ne,
3140
3201
  onChange: (K) => $(
3141
- z,
3202
+ T,
3142
3203
  D.name,
3143
3204
  K.target.value
3144
3205
  ),
3145
3206
  type: D.textType || D.type,
3146
3207
  autoComplete: D.autocomplete,
3147
3208
  error: ee,
3148
- size: s
3209
+ size: l
3149
3210
  }
3150
3211
  );
3151
3212
  case "textarea":
@@ -3154,22 +3215,22 @@ const or = ({
3154
3215
  {
3155
3216
  ...ne,
3156
3217
  onChange: (K) => $(
3157
- z,
3218
+ T,
3158
3219
  D.name,
3159
3220
  K.target.value
3160
3221
  ),
3161
3222
  rows: 4,
3162
3223
  error: ee,
3163
- size: s
3224
+ size: l
3164
3225
  }
3165
3226
  );
3166
3227
  case "select":
3167
3228
  return /* @__PURE__ */ e(
3168
- ve,
3229
+ fe,
3169
3230
  {
3170
3231
  ...ne,
3171
3232
  onChange: (K) => $(
3172
- z,
3233
+ T,
3173
3234
  D.name,
3174
3235
  K
3175
3236
  ),
@@ -3183,21 +3244,21 @@ const or = ({
3183
3244
  multiple: D.multiple,
3184
3245
  allowCreate: D.allowCreate,
3185
3246
  error: ee,
3186
- size: s
3247
+ size: l
3187
3248
  }
3188
3249
  );
3189
3250
  case "checkbox":
3190
3251
  return /* @__PURE__ */ e(
3191
- ge,
3252
+ ye,
3192
3253
  {
3193
3254
  ...ne,
3194
3255
  checked: !!A?.[D.name],
3195
3256
  onChange: (K) => $(
3196
- z,
3257
+ T,
3197
3258
  D.name,
3198
3259
  K.target.checked
3199
3260
  ),
3200
- size: s
3261
+ size: l
3201
3262
  }
3202
3263
  );
3203
3264
  case "radio":
@@ -3210,11 +3271,11 @@ const or = ({
3210
3271
  "input",
3211
3272
  {
3212
3273
  type: "radio",
3213
- name: `${i.name}.${z}.${D.name}`,
3274
+ name: `${i.name}.${T}.${D.name}`,
3214
3275
  value: K.value,
3215
3276
  checked: A?.[D.name] === K.value,
3216
3277
  onChange: () => $(
3217
- z,
3278
+ T,
3218
3279
  D.name,
3219
3280
  K.value
3220
3281
  ),
@@ -3230,16 +3291,16 @@ const or = ({
3230
3291
  case "date": {
3231
3292
  const K = A?.[D.name];
3232
3293
  return /* @__PURE__ */ e(
3233
- ye,
3294
+ ve,
3234
3295
  {
3235
3296
  ...ne,
3236
3297
  value: K ? new Date(K) : null,
3237
3298
  onChange: (le) => $(
3238
- z,
3299
+ T,
3239
3300
  D.name,
3240
3301
  le
3241
3302
  ),
3242
- size: s
3303
+ size: l
3243
3304
  }
3244
3305
  );
3245
3306
  }
@@ -3247,7 +3308,7 @@ const or = ({
3247
3308
  return D.customComponent?.({
3248
3309
  value: A?.[D.name],
3249
3310
  onChange: (K) => $(
3250
- z,
3311
+ T,
3251
3312
  D.name,
3252
3313
  K
3253
3314
  ),
@@ -3279,7 +3340,7 @@ const or = ({
3279
3340
  }) })
3280
3341
  ]
3281
3342
  },
3282
- z
3343
+ T
3283
3344
  )),
3284
3345
  /* @__PURE__ */ d(
3285
3346
  te,
@@ -3301,14 +3362,14 @@ const or = ({
3301
3362
  return null;
3302
3363
  }
3303
3364
  },
3304
- [y, B, N, m, s, I]
3305
- ), V = ae(
3365
+ [v, B, N, m, l, I]
3366
+ ), W = ae(
3306
3367
  (i) => {
3307
- if (i.conditional && !i.conditional(y))
3368
+ if (i.conditional && !i.conditional(v))
3308
3369
  return null;
3309
- const v = i.items.filter((S) => !(S.hidden || S.conditional && !S.conditional(y)));
3310
- if (v.length === 0) return null;
3311
- const L = p(
3370
+ const y = i.items.filter((S) => !(S.hidden || S.conditional && !S.conditional(v)));
3371
+ if (y.length === 0) return null;
3372
+ const E = p(
3312
3373
  "space-y-2",
3313
3374
  {
3314
3375
  "grid gap-2": i.layout === "grid",
@@ -3348,7 +3409,7 @@ const or = ({
3348
3409
  }
3349
3410
  )
3350
3411
  ] }),
3351
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: L, children: v.map((S) => (B[S.name] && N[S.name], /* @__PURE__ */ d(
3412
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: E, children: y.map((S) => (B[S.name] && N[S.name], /* @__PURE__ */ d(
3352
3413
  "div",
3353
3414
  {
3354
3415
  className: p(
@@ -3369,7 +3430,7 @@ const or = ({
3369
3430
  ]
3370
3431
  }
3371
3432
  ) }),
3372
- T(S)
3433
+ z(S)
3373
3434
  ]
3374
3435
  },
3375
3436
  S.name
@@ -3379,26 +3440,26 @@ const or = ({
3379
3440
  i.id
3380
3441
  );
3381
3442
  },
3382
- [y, B, N, T]
3383
- ), F = p(
3443
+ [v, B, N, z]
3444
+ ), V = p(
3384
3445
  "space-y-6",
3385
3446
  {
3386
- "max-w-md": s === "sm",
3387
- "max-w-2xl": s === "md",
3388
- "max-w-4xl": s === "lg",
3389
- "max-w-full": s === "full"
3447
+ "max-w-md": l === "sm",
3448
+ "max-w-2xl": l === "md",
3449
+ "max-w-4xl": l === "lg",
3450
+ "max-w-full": l === "full"
3390
3451
  },
3391
3452
  h
3392
3453
  );
3393
- return /* @__PURE__ */ d("form", { ref: w, onSubmit: H, className: F, children: [
3394
- /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(V) }),
3454
+ return /* @__PURE__ */ d("form", { ref: w, onSubmit: H, className: V, children: [
3455
+ /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(W) }),
3395
3456
  g && /* @__PURE__ */ d("div", { className: p("flex gap-3 justify-end pt-8"), children: [
3396
3457
  n && /* @__PURE__ */ e(
3397
3458
  te,
3398
3459
  {
3399
3460
  type: "button",
3400
3461
  variant: x.variant,
3401
- size: x.size || s,
3462
+ size: x.size || l,
3402
3463
  disabled: x.disabled || m,
3403
3464
  onClick: n,
3404
3465
  className: x.className,
@@ -3410,7 +3471,7 @@ const or = ({
3410
3471
  {
3411
3472
  type: "submit",
3412
3473
  variant: b.variant,
3413
- size: b.size || s,
3474
+ size: b.size || l,
3414
3475
  disabled: b.disabled || m,
3415
3476
  loading: m,
3416
3477
  className: b.className,
@@ -3419,12 +3480,12 @@ const or = ({
3419
3480
  )
3420
3481
  ] })
3421
3482
  ] });
3422
- }, cr = ({
3483
+ }, ir = ({
3423
3484
  trigger: t,
3424
3485
  children: a,
3425
3486
  placement: r = "bottom-start",
3426
3487
  className: n,
3427
- disabled: l = !1
3488
+ disabled: s = !1
3428
3489
  }) => {
3429
3490
  const [o, u] = P(!1), [b, x] = P({}), g = J(null), f = J(null);
3430
3491
  U(() => {
@@ -3438,13 +3499,13 @@ const or = ({
3438
3499
  document.removeEventListener("mousedown", h), document.removeEventListener("keydown", w);
3439
3500
  };
3440
3501
  }, [o]);
3441
- const s = (h) => {
3442
- if (h.stopPropagation(), !l) {
3502
+ const l = (h) => {
3503
+ if (h.stopPropagation(), !s) {
3443
3504
  if (!o) {
3444
3505
  const w = f.current?.getBoundingClientRect();
3445
3506
  if (w) {
3446
- const y = {};
3447
- r.startsWith("bottom") ? y.top = w.bottom + 6 : y.bottom = window.innerHeight - w.top + 6, r.endsWith("start") ? y.left = w.left : y.right = window.innerWidth - w.right, x(y);
3507
+ const v = {};
3508
+ r.startsWith("bottom") ? v.top = w.bottom + 6 : v.bottom = window.innerHeight - w.top + 6, r.endsWith("start") ? v.left = w.left : v.right = window.innerWidth - w.right, x(v);
3448
3509
  }
3449
3510
  }
3450
3511
  u((w) => !w);
@@ -3456,9 +3517,9 @@ const or = ({
3456
3517
  {
3457
3518
  ref: f,
3458
3519
  type: "button",
3459
- onClick: s,
3460
- disabled: l,
3461
- className: p("inline-flex items-center", l && "opacity-50 cursor-not-allowed"),
3520
+ onClick: l,
3521
+ disabled: s,
3522
+ className: p("inline-flex items-center", s && "opacity-50 cursor-not-allowed"),
3462
3523
  children: t
3463
3524
  }
3464
3525
  ),
@@ -3482,11 +3543,11 @@ const or = ({
3482
3543
  warning: "bg-notice-container text-on-notice",
3483
3544
  error: "bg-error-container text-error",
3484
3545
  info: "bg-beta-container text-link"
3485
- }, Tt = {
3546
+ }, Dt = {
3486
3547
  sm: "px-2 py-0.5 text-xs",
3487
3548
  md: "px-2.5 py-1 text-sm",
3488
3549
  lg: "px-3 py-1.5 text-base"
3489
- }, Dt = {
3550
+ }, It = {
3490
3551
  default: "bg-neutral-fill",
3491
3552
  primary: "bg-accent-fill",
3492
3553
  secondary: "bg-neutral-fill",
@@ -3495,12 +3556,12 @@ const or = ({
3495
3556
  error: "bg-error-fill",
3496
3557
  info: "bg-beta-fill"
3497
3558
  };
3498
- function ir({
3559
+ function dr({
3499
3560
  variant: t = "default",
3500
3561
  size: a = "md",
3501
3562
  dot: r = !1,
3502
3563
  icon: n,
3503
- dismissible: l = !1,
3564
+ dismissible: s = !1,
3504
3565
  onDismiss: o,
3505
3566
  className: u,
3506
3567
  children: b,
@@ -3515,7 +3576,7 @@ function ir({
3515
3576
  // Variant styles
3516
3577
  zt[t],
3517
3578
  // Size styles
3518
- Tt[a],
3579
+ Dt[a],
3519
3580
  u
3520
3581
  ),
3521
3582
  ...x,
@@ -3525,13 +3586,13 @@ function ir({
3525
3586
  {
3526
3587
  className: p(
3527
3588
  "w-2 h-2 rounded-full mr-1.5",
3528
- Dt[t]
3589
+ It[t]
3529
3590
  )
3530
3591
  }
3531
3592
  ),
3532
3593
  n && /* @__PURE__ */ e("span", { className: p("flex-shrink-0", b && "mr-1"), children: n }),
3533
3594
  b,
3534
- l && o && /* @__PURE__ */ e(
3595
+ s && o && /* @__PURE__ */ e(
3535
3596
  "button",
3536
3597
  {
3537
3598
  onClick: o,
@@ -3551,30 +3612,30 @@ function ir({
3551
3612
  }
3552
3613
  );
3553
3614
  }
3554
- const It = {
3615
+ const At = {
3555
3616
  xs: "h-3 w-3",
3556
3617
  sm: "h-4 w-4",
3557
3618
  md: "h-6 w-6",
3558
3619
  lg: "h-8 w-8",
3559
3620
  xl: "h-12 w-12"
3560
- }, At = {
3621
+ }, jt = {
3561
3622
  primary: "text-primary",
3562
3623
  secondary: "text-secondary-600",
3563
3624
  white: "text-white",
3564
3625
  current: "text-current"
3565
- }, jt = {
3626
+ }, _t = {
3566
3627
  xs: "text-xs",
3567
3628
  sm: "text-sm",
3568
3629
  md: "text-sm",
3569
3630
  lg: "text-base",
3570
3631
  xl: "text-lg"
3571
3632
  };
3572
- function dr({
3633
+ function ur({
3573
3634
  size: t = "md",
3574
3635
  variant: a = "primary",
3575
3636
  label: r = "Loading...",
3576
3637
  showLabel: n = !1,
3577
- className: l,
3638
+ className: s,
3578
3639
  ...o
3579
3640
  }) {
3580
3641
  return /* @__PURE__ */ d(
@@ -3583,7 +3644,7 @@ function dr({
3583
3644
  className: p(
3584
3645
  "inline-flex items-center",
3585
3646
  n ? "flex-col space-y-2" : "",
3586
- l
3647
+ s
3587
3648
  ),
3588
3649
  ...o,
3589
3650
  children: [
@@ -3592,8 +3653,8 @@ function dr({
3592
3653
  {
3593
3654
  className: p(
3594
3655
  "animate-spin",
3595
- It[t],
3596
- At[a]
3656
+ At[t],
3657
+ jt[a]
3597
3658
  ),
3598
3659
  fill: "none",
3599
3660
  viewBox: "0 0 24 24",
@@ -3627,7 +3688,7 @@ function dr({
3627
3688
  {
3628
3689
  className: p(
3629
3690
  "text-secondary-600 dark:text-secondary-400",
3630
- jt[t]
3691
+ _t[t]
3631
3692
  ),
3632
3693
  children: r
3633
3694
  }
@@ -3637,7 +3698,7 @@ function dr({
3637
3698
  }
3638
3699
  );
3639
3700
  }
3640
- const _t = {
3701
+ const Pt = {
3641
3702
  xs: "w-5 h-5 text-[10px]",
3642
3703
  sm: "w-6 h-6 text-xs",
3643
3704
  md: "w-7 h-7 text-[13px]",
@@ -3648,10 +3709,10 @@ function Bt(t) {
3648
3709
  const a = t.trim().split(/[\s@.]+/).filter(Boolean);
3649
3710
  return a.length >= 2 ? (a[0][0] + a[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
3650
3711
  }
3651
- const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3712
+ const Ot = ({ name: t, src: a, size: r = "sm", className: n, title: s }) => {
3652
3713
  const [o, u] = se.useState(!1), b = p(
3653
- "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none bg-neutral-container text-default",
3654
- _t[r],
3714
+ "inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none bg-neutral-border-emphasis text-default",
3715
+ Pt[r],
3655
3716
  n
3656
3717
  );
3657
3718
  return a && !o ? /* @__PURE__ */ e(
@@ -3659,17 +3720,17 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3659
3720
  {
3660
3721
  src: a,
3661
3722
  alt: t ?? "",
3662
- title: l ?? t,
3723
+ title: s ?? t,
3663
3724
  className: p(b, "object-cover"),
3664
3725
  onError: () => u(!0)
3665
3726
  }
3666
- ) : /* @__PURE__ */ e("span", { className: b, title: l ?? t, "aria-label": t, children: Bt(t) });
3667
- }, Me = "shadow-[0_0_0_2px_var(--base-module)]", Ot = "shadow-[0_0_0_2px_var(--base-module),0_0_0_3.5px_var(--accent-border)]", ur = ({ people: t, max: a = 4, size: r = "sm", className: n }) => {
3727
+ ) : /* @__PURE__ */ e("span", { className: b, title: s ?? t, "aria-label": t, children: Bt(t) });
3728
+ }, Me = "shadow-[0_0_0_2px_var(--base-module)]", Wt = "shadow-[0_0_0_2px_var(--base-module),0_0_0_3.5px_var(--accent-border)]", mr = ({ people: t, max: a = 4, size: r = "sm", className: n }) => {
3668
3729
  if (t.length === 0) return null;
3669
- const l = t.slice(0, a), o = t.length - l.length;
3730
+ const s = t.slice(0, a), o = t.length - s.length;
3670
3731
  return /* @__PURE__ */ d("span", { className: p("inline-flex items-center", n), children: [
3671
- l.map((u, b) => /* @__PURE__ */ e(
3672
- Pt,
3732
+ s.map((u, b) => /* @__PURE__ */ e(
3733
+ Ot,
3673
3734
  {
3674
3735
  name: u.name,
3675
3736
  src: u.src,
@@ -3677,7 +3738,7 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3677
3738
  title: u.name ? u.seen === !1 ? `${u.name} — nog niet gelezen` : u.name : void 0,
3678
3739
  className: p(
3679
3740
  b > 0 && "-ml-2",
3680
- u.owner ? Ot : Me,
3741
+ u.owner ? Wt : Me,
3681
3742
  u.seen === !1 && "opacity-40"
3682
3743
  )
3683
3744
  },
@@ -3698,31 +3759,31 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3698
3759
  }
3699
3760
  )
3700
3761
  ] });
3701
- }, mr = ({
3762
+ }, fr = ({
3702
3763
  src: t,
3703
3764
  alt: a,
3704
3765
  size: r = "md",
3705
3766
  aspectRatio: n = "auto",
3706
- radius: l = "md",
3767
+ radius: s = "md",
3707
3768
  showLoading: o = !0,
3708
3769
  showError: u = !0,
3709
3770
  fallback: b,
3710
3771
  loadingContent: x,
3711
3772
  errorContent: g,
3712
3773
  className: f,
3713
- onLoad: s,
3774
+ onLoad: l,
3714
3775
  onError: m,
3715
3776
  ...h
3716
3777
  }) => {
3717
- const [w, k] = P(!0), [y, j] = P(!1), [N, q] = P(t), B = (F) => {
3718
- k(!1), j(!1), s?.(F);
3719
- }, G = (F) => {
3778
+ const [w, k] = P(!0), [v, j] = P(!1), [N, q] = P(t), B = (V) => {
3779
+ k(!1), j(!1), l?.(V);
3780
+ }, G = (V) => {
3720
3781
  if (k(!1), j(!0), b && N !== b) {
3721
3782
  q(b), j(!1), k(!0);
3722
3783
  return;
3723
3784
  }
3724
- m?.(F);
3725
- }, W = p(
3785
+ m?.(V);
3786
+ }, F = p(
3726
3787
  "relative overflow-hidden bg-neutral-100 dark:bg-neutral-800",
3727
3788
  // Size variants
3728
3789
  {
@@ -3742,24 +3803,24 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3742
3803
  },
3743
3804
  // Border radius variants
3744
3805
  {
3745
- "rounded-none": l === "none",
3746
- "rounded-sm": l === "sm",
3747
- "rounded-md": l === "md",
3748
- "rounded-lg": l === "lg",
3749
- "rounded-xl": l === "xl",
3750
- "rounded-full": l === "full"
3806
+ "rounded-none": s === "none",
3807
+ "rounded-sm": s === "sm",
3808
+ "rounded-md": s === "md",
3809
+ "rounded-lg": s === "lg",
3810
+ "rounded-xl": s === "xl",
3811
+ "rounded-full": s === "full"
3751
3812
  },
3752
3813
  f
3753
3814
  ), I = p(
3754
3815
  "w-full h-full object-cover transition-opacity duration-200",
3755
3816
  {
3756
- "opacity-0": w || y,
3757
- "opacity-100": !w && !y
3817
+ "opacity-0": w || v,
3818
+ "opacity-100": !w && !v
3758
3819
  }
3759
3820
  ), H = p(
3760
3821
  "absolute inset-0 flex items-center justify-center",
3761
3822
  "text-neutral-400 dark:text-neutral-500"
3762
- ), T = /* @__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: [
3823
+ ), z = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-neutral-300 dark:bg-neutral-600 rounded" }) }), W = /* @__PURE__ */ d("div", { className: "text-center", children: [
3763
3824
  /* @__PURE__ */ e(
3764
3825
  "svg",
3765
3826
  {
@@ -3780,7 +3841,7 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3780
3841
  ),
3781
3842
  /* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
3782
3843
  ] });
3783
- return /* @__PURE__ */ d("div", { className: W, children: [
3844
+ return /* @__PURE__ */ d("div", { className: F, children: [
3784
3845
  /* @__PURE__ */ e(
3785
3846
  "img",
3786
3847
  {
@@ -3792,40 +3853,40 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3792
3853
  onError: G
3793
3854
  }
3794
3855
  ),
3795
- w && o && /* @__PURE__ */ e("div", { className: H, children: x || T }),
3796
- y && u && /* @__PURE__ */ e("div", { className: H, children: g || V })
3856
+ w && o && /* @__PURE__ */ e("div", { className: H, children: x || z }),
3857
+ v && u && /* @__PURE__ */ e("div", { className: H, children: g || W })
3797
3858
  ] });
3798
- }, fr = ({
3859
+ }, hr = ({
3799
3860
  title: t,
3800
3861
  subtitle: a,
3801
3862
  actions: r = [],
3802
3863
  children: n,
3803
- className: l,
3864
+ className: s,
3804
3865
  backLabel: o = "Back",
3805
3866
  backClassName: u,
3806
3867
  onBack: b,
3807
3868
  editable: x = !1,
3808
3869
  onTitleChange: g
3809
3870
  }) => {
3810
- const [f, s] = P(!1), [m, h] = P(t), w = J(null);
3871
+ const [f, l] = P(!1), [m, h] = P(t), w = J(null);
3811
3872
  U(() => {
3812
3873
  h(t);
3813
3874
  }, [t]), U(() => {
3814
3875
  f && w.current && (w.current.focus(), w.current.select());
3815
3876
  }, [f]);
3816
3877
  const k = () => {
3817
- x && s(!0);
3818
- }, y = () => {
3819
- s(!1), m.trim() !== "" && m !== t && g ? g(m.trim()) : h(t);
3878
+ x && l(!0);
3879
+ }, v = () => {
3880
+ l(!1), m.trim() !== "" && m !== t && g ? g(m.trim()) : h(t);
3820
3881
  }, j = (N) => {
3821
- N.key === "Enter" ? w.current?.blur() : N.key === "Escape" && (h(t), s(!1));
3882
+ N.key === "Enter" ? w.current?.blur() : N.key === "Escape" && (h(t), l(!1));
3822
3883
  };
3823
3884
  return /* @__PURE__ */ d(
3824
3885
  "div",
3825
3886
  {
3826
3887
  className: p(
3827
3888
  "p-5 pb-3 border-b border-neutral",
3828
- l
3889
+ s
3829
3890
  ),
3830
3891
  children: [
3831
3892
  /* @__PURE__ */ d("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
@@ -3849,7 +3910,7 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3849
3910
  type: "text",
3850
3911
  value: m,
3851
3912
  onChange: (N) => h(N.target.value),
3852
- onBlur: y,
3913
+ onBlur: v,
3853
3914
  onKeyDown: j,
3854
3915
  className: "text-1xl font-semibold bg-transparent border-b-1 border-neutral rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0 flex-1"
3855
3916
  }
@@ -3878,7 +3939,7 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3878
3939
  ] }) }),
3879
3940
  r.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: r.map(
3880
3941
  (N) => N.splitOptions && N.splitOptions.length > 0 ? /* @__PURE__ */ e(
3881
- Te,
3942
+ ze,
3882
3943
  {
3883
3944
  label: N.label,
3884
3945
  onClick: N.onClick,
@@ -3915,12 +3976,12 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3915
3976
  ]
3916
3977
  }
3917
3978
  );
3918
- }, hr = ({
3979
+ }, pr = ({
3919
3980
  actions: t = [],
3920
3981
  onBack: a,
3921
3982
  backLabel: r = "Back",
3922
3983
  className: n,
3923
- children: l
3984
+ children: s
3924
3985
  }) => /* @__PURE__ */ d("div", { className: p("flex items-center gap-2 mb-3", n), children: [
3925
3986
  a && /* @__PURE__ */ d(
3926
3987
  "button",
@@ -3934,10 +3995,10 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3934
3995
  ]
3935
3996
  }
3936
3997
  ),
3937
- l && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: l }),
3938
- t.length > 0 && /* @__PURE__ */ e("div", { className: p("flex flex-wrap gap-2", !l && "ml-auto"), children: t.map(
3998
+ s && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: s }),
3999
+ t.length > 0 && /* @__PURE__ */ e("div", { className: p("flex flex-wrap gap-2", !s && "ml-auto"), children: t.map(
3939
4000
  (o) => o.splitOptions && o.splitOptions.length > 0 ? /* @__PURE__ */ e(
3940
- Te,
4001
+ ze,
3941
4002
  {
3942
4003
  label: o.label,
3943
4004
  onClick: o.onClick,
@@ -3970,19 +4031,19 @@ const Pt = ({ name: t, src: a, size: r = "sm", className: n, title: l }) => {
3970
4031
  )
3971
4032
  ) })
3972
4033
  ] });
3973
- function Vt(t, a) {
4034
+ function Ft(t, a) {
3974
4035
  return a.split(".").reduce(
3975
4036
  (r, n) => r && typeof r == "object" && n in r ? r[n] : void 0,
3976
4037
  t
3977
4038
  );
3978
4039
  }
3979
- const pr = ({
4040
+ const xr = ({
3980
4041
  groups: t,
3981
4042
  data: a,
3982
4043
  size: r = "md",
3983
4044
  className: n
3984
4045
  }) => {
3985
- const l = (f) => {
4046
+ const s = (f) => {
3986
4047
  if (!f) return "-";
3987
4048
  try {
3988
4049
  return new Date(f).toLocaleDateString("nl-NL", {
@@ -3993,15 +4054,15 @@ const pr = ({
3993
4054
  } catch {
3994
4055
  return String(f);
3995
4056
  }
3996
- }, o = (f) => f ? "Ja" : "Nee", u = (f, s) => {
3997
- if (!s) return String(f || "-");
3998
- const m = s.find((h) => h.value === f);
4057
+ }, o = (f) => f ? "Ja" : "Nee", u = (f, l) => {
4058
+ if (!l) return String(f || "-");
4059
+ const m = l.find((h) => h.value === f);
3999
4060
  return m ? m.label : String(f || "-");
4000
4061
  }, b = ae(
4001
4062
  (f) => {
4002
- const s = Vt(a, f.name);
4063
+ const l = Ft(a, f.name);
4003
4064
  if (f.type === "array") {
4004
- const h = s;
4065
+ const h = l;
4005
4066
  return !h || h.length === 0 ? /* @__PURE__ */ e(
4006
4067
  Z,
4007
4068
  {
@@ -4029,10 +4090,10 @@ const pr = ({
4029
4090
  ]
4030
4091
  }
4031
4092
  ) }),
4032
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: f.arrayFields?.map((y) => {
4033
- const j = w?.[y.name];
4093
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: f.arrayFields?.map((v) => {
4094
+ const j = w?.[v.name];
4034
4095
  let N = "-";
4035
- switch (y.type) {
4096
+ switch (v.type) {
4036
4097
  case "text":
4037
4098
  case "email":
4038
4099
  case "number":
@@ -4045,31 +4106,31 @@ const pr = ({
4045
4106
  case "radio":
4046
4107
  N = u(
4047
4108
  j,
4048
- y.options
4109
+ v.options
4049
4110
  );
4050
4111
  break;
4051
4112
  case "checkbox":
4052
4113
  N = o(j);
4053
4114
  break;
4054
4115
  case "date":
4055
- N = l(j);
4116
+ N = s(j);
4056
4117
  break;
4057
4118
  case "custom":
4058
- N = y.customComponent?.({
4119
+ N = v.customComponent?.({
4059
4120
  value: j
4060
4121
  });
4061
4122
  break;
4062
4123
  default:
4063
4124
  N = String(j || "-");
4064
4125
  }
4065
- return y.format && (N = y.format(j, w)), /* @__PURE__ */ d("div", { className: "space-y-1", children: [
4126
+ return v.format && (N = v.format(j, w)), /* @__PURE__ */ d("div", { className: "space-y-1", children: [
4066
4127
  /* @__PURE__ */ e(
4067
4128
  Z,
4068
4129
  {
4069
4130
  variant: "label",
4070
4131
  size: "xs",
4071
4132
  className: "text-neutral-600 dark:text-neutral-400",
4072
- children: y.label
4133
+ children: v.label
4073
4134
  }
4074
4135
  ),
4075
4136
  /* @__PURE__ */ e(
@@ -4081,7 +4142,7 @@ const pr = ({
4081
4142
  children: N
4082
4143
  }
4083
4144
  )
4084
- ] }, y.name);
4145
+ ] }, v.name);
4085
4146
  }) })
4086
4147
  ]
4087
4148
  },
@@ -4089,9 +4150,9 @@ const pr = ({
4089
4150
  )) });
4090
4151
  }
4091
4152
  if (f.type === "custom" && f.customComponent)
4092
- return f.customComponent({ value: s });
4153
+ return f.customComponent({ value: l });
4093
4154
  if (f.format) {
4094
- const h = f.format(s, a);
4155
+ const h = f.format(l, a);
4095
4156
  return /* @__PURE__ */ e(
4096
4157
  Z,
4097
4158
  {
@@ -4110,23 +4171,23 @@ const pr = ({
4110
4171
  case "number":
4111
4172
  case "tel":
4112
4173
  case "url":
4113
- m = s ? String(s) : "-";
4174
+ m = l ? String(l) : "-";
4114
4175
  break;
4115
4176
  case "textarea":
4116
- m = s ? /* @__PURE__ */ e("div", { className: "whitespace-pre-wrap", children: String(s || "-") }) : "-";
4177
+ m = l ? /* @__PURE__ */ e("div", { className: "whitespace-pre-wrap", children: String(l || "-") }) : "-";
4117
4178
  break;
4118
4179
  case "select":
4119
4180
  case "radio":
4120
- m = u(s, f.options);
4181
+ m = u(l, f.options);
4121
4182
  break;
4122
4183
  case "checkbox":
4123
- m = o(s);
4184
+ m = o(l);
4124
4185
  break;
4125
4186
  case "date":
4126
- m = l(s);
4187
+ m = s(l);
4127
4188
  break;
4128
4189
  default:
4129
- m = s ? String(s) : "-";
4190
+ m = l ? String(l) : "-";
4130
4191
  }
4131
4192
  return /* @__PURE__ */ e(
4132
4193
  Z,
@@ -4143,8 +4204,8 @@ const pr = ({
4143
4204
  (f) => {
4144
4205
  if (f.conditional && !f.conditional(a))
4145
4206
  return null;
4146
- const s = f.items.filter((h) => !(h.hidden || h.conditional && !h.conditional(a)));
4147
- if (s.length === 0) return null;
4207
+ const l = f.items.filter((h) => !(h.hidden || h.conditional && !h.conditional(a)));
4208
+ if (l.length === 0) return null;
4148
4209
  const m = p(
4149
4210
  "space-y-4",
4150
4211
  {
@@ -4185,7 +4246,7 @@ const pr = ({
4185
4246
  }
4186
4247
  )
4187
4248
  ] }),
4188
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: m, children: s.map((h) => /* @__PURE__ */ d(
4249
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: m, children: l.map((h) => /* @__PURE__ */ d(
4189
4250
  "div",
4190
4251
  {
4191
4252
  className: p(
@@ -4226,8 +4287,8 @@ const pr = ({
4226
4287
  );
4227
4288
  return /* @__PURE__ */ e("div", { className: g, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(x) }) });
4228
4289
  }, Ie = ({ item: t, isSelectedHandler: a, onClick: r, depth: n = 0 }) => {
4229
- const [l, o] = P(t.defaultCollapsed ?? !1), u = t.children && t.children.length > 0, b = u && n === 0, x = () => {
4230
- u && o(!l);
4290
+ const [s, o] = P(t.defaultCollapsed ?? !1), u = t.children && t.children.length > 0, b = u && n === 0, x = () => {
4291
+ u && o(!s);
4231
4292
  }, g = a ? a(t.path) : !1;
4232
4293
  return /* @__PURE__ */ d("li", { children: [
4233
4294
  /* @__PURE__ */ d(
@@ -4248,11 +4309,11 @@ const pr = ({
4248
4309
  t.icon && /* @__PURE__ */ e("span", { className: "mr-2 shrink-0", children: t.icon }),
4249
4310
  /* @__PURE__ */ e("span", { className: "flex-1 min-w-0 truncate", children: t.label }),
4250
4311
  t.count !== void 0 && t.count > 0 && /* @__PURE__ */ e("span", { className: "ml-2 mr-1.5", children: t.count }),
4251
- u && /* @__PURE__ */ e("span", { className: `${l ? "collapsed" : ""}`, children: /* @__PURE__ */ e(qe, { className: "w-4 h-4 text-muted" }) })
4312
+ u && /* @__PURE__ */ e("span", { className: `${s ? "collapsed" : ""}`, children: /* @__PURE__ */ e(qe, { className: "w-4 h-4 text-muted" }) })
4252
4313
  ]
4253
4314
  }
4254
4315
  ),
4255
- u && !l && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: t.children?.map((f, s) => /* @__PURE__ */ e(
4316
+ u && !s && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: t.children?.map((f, l) => /* @__PURE__ */ e(
4256
4317
  Ie,
4257
4318
  {
4258
4319
  item: f,
@@ -4260,15 +4321,15 @@ const pr = ({
4260
4321
  onClick: r,
4261
4322
  depth: n + 1
4262
4323
  },
4263
- s
4324
+ l
4264
4325
  )) })
4265
4326
  ] });
4266
- }, xr = ({
4327
+ }, br = ({
4267
4328
  title: t,
4268
4329
  actionIcons: a,
4269
4330
  items: r,
4270
4331
  isSelectedHandler: n,
4271
- onClick: l,
4332
+ onClick: s,
4272
4333
  preMenuItemsComponent: o
4273
4334
  }) => /* @__PURE__ */ d("div", { className: "flex flex-col h-screen mb-6", children: [
4274
4335
  /* @__PURE__ */ d("div", { className: "sidebar-menu-header", children: [
@@ -4282,23 +4343,23 @@ const pr = ({
4282
4343
  {
4283
4344
  item: u,
4284
4345
  isSelectedHandler: n,
4285
- onClick: l
4346
+ onClick: s
4286
4347
  },
4287
4348
  b
4288
4349
  )
4289
4350
  ) })
4290
- ] }), br = ({
4351
+ ] }), gr = ({
4291
4352
  level: t = 1,
4292
4353
  size: a,
4293
4354
  weight: r = "bold",
4294
4355
  color: n = "current",
4295
- align: l = "left",
4356
+ align: s = "left",
4296
4357
  truncate: o = !1,
4297
4358
  className: u,
4298
4359
  children: b,
4299
4360
  ...x
4300
4361
  }) => {
4301
- const g = a || Wt(t), f = p(
4362
+ const g = a || Vt(t), f = p(
4302
4363
  "font-primary",
4303
4364
  // Size variants
4304
4365
  {
@@ -4333,19 +4394,19 @@ const pr = ({
4333
4394
  },
4334
4395
  // Alignment
4335
4396
  {
4336
- "text-left": l === "left",
4337
- "text-center": l === "center",
4338
- "text-right": l === "right"
4397
+ "text-left": s === "left",
4398
+ "text-center": s === "center",
4399
+ "text-right": s === "right"
4339
4400
  },
4340
4401
  // Truncation
4341
4402
  {
4342
4403
  truncate: o
4343
4404
  },
4344
4405
  u
4345
- ), s = `h${t}`;
4346
- return /* @__PURE__ */ e(s, { className: f, ...x, children: b });
4406
+ ), l = `h${t}`;
4407
+ return /* @__PURE__ */ e(l, { className: f, ...x, children: b });
4347
4408
  };
4348
- function Wt(t) {
4409
+ function Vt(t) {
4349
4410
  return {
4350
4411
  1: "4xl",
4351
4412
  2: "3xl",
@@ -4355,12 +4416,12 @@ function Wt(t) {
4355
4416
  6: "md"
4356
4417
  }[t] || "md";
4357
4418
  }
4358
- const gr = ({
4419
+ const yr = ({
4359
4420
  items: t,
4360
4421
  type: a = "unordered",
4361
4422
  variant: r = "default",
4362
4423
  size: n = "md",
4363
- interactive: l = !1,
4424
+ interactive: s = !1,
4364
4425
  className: o,
4365
4426
  itemClassName: u
4366
4427
  }) => {
@@ -4385,7 +4446,7 @@ const gr = ({
4385
4446
  "text-lg": n === "lg"
4386
4447
  },
4387
4448
  o
4388
- ), x = (s, m) => p(
4449
+ ), x = (l, m) => p(
4389
4450
  // Base item styles
4390
4451
  "transition-colors duration-200",
4391
4452
  // Size-based padding
@@ -4395,92 +4456,92 @@ const gr = ({
4395
4456
  "py-3 px-4": n === "lg" && (r === "bordered" || r === "divided")
4396
4457
  },
4397
4458
  // Interactive styles
4398
- l && !s.disabled && {
4459
+ s && !l.disabled && {
4399
4460
  "cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-800": !0,
4400
4461
  "focus:outline-none focus:bg-neutral-100 dark:focus:bg-neutral-700": !0
4401
4462
  },
4402
4463
  // Disabled styles
4403
- s.disabled && {
4464
+ l.disabled && {
4404
4465
  "opacity-50 cursor-not-allowed": !0
4405
4466
  },
4406
4467
  u
4407
- ), g = (s) => {
4408
- l && !s.disabled && s.onClick && s.onClick();
4409
- }, f = (s, m) => {
4410
- l && !m.disabled && (s.key === "Enter" || s.key === " ") && (s.preventDefault(), m.onClick?.());
4468
+ ), g = (l) => {
4469
+ s && !l.disabled && l.onClick && l.onClick();
4470
+ }, f = (l, m) => {
4471
+ s && !m.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), m.onClick?.());
4411
4472
  };
4412
- return a === "ordered" ? /* @__PURE__ */ e("ol", { className: b, children: t.map((s, m) => /* @__PURE__ */ e(
4473
+ return a === "ordered" ? /* @__PURE__ */ e("ol", { className: b, children: t.map((l, m) => /* @__PURE__ */ e(
4413
4474
  "li",
4414
4475
  {
4415
- className: x(s),
4416
- onClick: () => g(s),
4417
- onKeyDown: (h) => f(h, s),
4418
- tabIndex: l && !s.disabled ? 0 : void 0,
4419
- role: l ? "button" : void 0,
4420
- children: s.content
4476
+ className: x(l),
4477
+ onClick: () => g(l),
4478
+ onKeyDown: (h) => f(h, l),
4479
+ tabIndex: s && !l.disabled ? 0 : void 0,
4480
+ role: s ? "button" : void 0,
4481
+ children: l.content
4421
4482
  },
4422
- s.id || m
4423
- )) }) : a === "description" ? /* @__PURE__ */ e("dl", { className: b, children: t.map((s, m) => /* @__PURE__ */ e(
4483
+ l.id || m
4484
+ )) }) : a === "description" ? /* @__PURE__ */ e("dl", { className: b, children: t.map((l, m) => /* @__PURE__ */ e(
4424
4485
  "div",
4425
4486
  {
4426
- className: x(s),
4427
- onClick: () => g(s),
4428
- onKeyDown: (h) => f(h, s),
4429
- tabIndex: l && !s.disabled ? 0 : void 0,
4430
- role: l ? "button" : void 0,
4431
- children: s.content
4487
+ className: x(l),
4488
+ onClick: () => g(l),
4489
+ onKeyDown: (h) => f(h, l),
4490
+ tabIndex: s && !l.disabled ? 0 : void 0,
4491
+ role: s ? "button" : void 0,
4492
+ children: l.content
4432
4493
  },
4433
- s.id || m
4434
- )) }) : /* @__PURE__ */ e("ul", { className: b, children: t.map((s, m) => /* @__PURE__ */ e(
4494
+ l.id || m
4495
+ )) }) : /* @__PURE__ */ e("ul", { className: b, children: t.map((l, m) => /* @__PURE__ */ e(
4435
4496
  "li",
4436
4497
  {
4437
- className: x(s),
4438
- onClick: () => g(s),
4439
- onKeyDown: (h) => f(h, s),
4440
- tabIndex: l && !s.disabled ? 0 : void 0,
4441
- role: l ? "button" : void 0,
4442
- children: s.content
4498
+ className: x(l),
4499
+ onClick: () => g(l),
4500
+ onKeyDown: (h) => f(h, l),
4501
+ tabIndex: s && !l.disabled ? 0 : void 0,
4502
+ role: s ? "button" : void 0,
4503
+ children: l.content
4443
4504
  },
4444
- s.id || m
4505
+ l.id || m
4445
4506
  )) });
4446
- }, yr = ({
4507
+ }, vr = ({
4447
4508
  commands: t,
4448
4509
  isOpen: a,
4449
4510
  onClose: r,
4450
4511
  labels: n,
4451
- initialCommandPath: l,
4512
+ initialCommandPath: s,
4452
4513
  initialActiveIndex: o
4453
4514
  }) => {
4454
- const [u, b] = P(""), [x, g] = P(l || []), [f, s] = P(o || 0), m = J(null), h = J(null), k = (x.length ? t.find((y) => y.id === x[0])?.subCommands || [] : t).filter(
4455
- (y) => y.label.toLowerCase().includes(u.toLowerCase())
4515
+ const [u, b] = P(""), [x, g] = P(s || []), [f, l] = P(o || 0), m = J(null), h = J(null), k = (x.length ? t.find((v) => v.id === x[0])?.subCommands || [] : t).filter(
4516
+ (v) => v.label.toLowerCase().includes(u.toLowerCase())
4456
4517
  );
4457
4518
  return U(() => {
4458
- a || (b(""), g(l || []), s(o || 0));
4519
+ a || (b(""), g(s || []), l(o || 0));
4459
4520
  }, [a]), U(() => {
4460
- const y = (j) => {
4521
+ const v = (j) => {
4461
4522
  if (a) {
4462
4523
  if (j.key === "Escape")
4463
4524
  r();
4464
4525
  else if (j.key === "ArrowUp")
4465
- s(
4526
+ l(
4466
4527
  (N) => N > 0 ? N - 1 : k.length - 1
4467
4528
  );
4468
4529
  else if (j.key === "ArrowDown")
4469
- s(
4530
+ l(
4470
4531
  (N) => N < k.length - 1 ? N + 1 : 0
4471
4532
  );
4472
4533
  else if (j.key === "Enter") {
4473
4534
  const N = k[f];
4474
- N && (N.subCommands ? (g([...x, N.id]), s(0)) : N.action && (N.action(), r()));
4535
+ N && (N.subCommands ? (g([...x, N.id]), l(0)) : N.action && (N.action(), r()));
4475
4536
  }
4476
4537
  }
4477
4538
  };
4478
- return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
4539
+ return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
4479
4540
  }, [a, r, k, f, x]), U(() => {
4480
- const y = (j) => {
4541
+ const v = (j) => {
4481
4542
  m.current && !m.current.contains(j.target) && r();
4482
4543
  };
4483
- return a && document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
4544
+ return a && document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
4484
4545
  }, [a, r]), U(() => {
4485
4546
  if (!a) return;
4486
4547
  h.current?.querySelector(`[data-index="${f}"]`)?.scrollIntoView({ block: "nearest" });
@@ -4491,7 +4552,7 @@ const gr = ({
4491
4552
  ref: m,
4492
4553
  children: [
4493
4554
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
4494
- /* @__PURE__ */ e(ze, { className: "w-4 h-4 text-muted shrink-0" }),
4555
+ /* @__PURE__ */ e(Te, { className: "w-4 h-4 text-muted shrink-0" }),
4495
4556
  /* @__PURE__ */ e(
4496
4557
  "input",
4497
4558
  {
@@ -4499,7 +4560,7 @@ const gr = ({
4499
4560
  autoFocus: !0,
4500
4561
  placeholder: n?.searchPlaceholder || "Search commands...",
4501
4562
  value: u,
4502
- onChange: (y) => b(y.target.value),
4563
+ onChange: (v) => b(v.target.value),
4503
4564
  className: "w-full py-2 text-default border-0 focus:outline-none focus:ring-0 focus:border-0 focus:shadow-none bg-transparent"
4504
4565
  }
4505
4566
  )
@@ -4511,22 +4572,22 @@ const gr = ({
4511
4572
  className: "mt-2 pt-2 text-sm border-t border-neutral max-h-[50vh] overflow-y-auto",
4512
4573
  children: [
4513
4574
  k.length === 0 && /* @__PURE__ */ e("div", { className: "text-muted text-center text-sm", children: n?.noCommandsFound || "No commands found" }),
4514
- k.map((y, j) => /* @__PURE__ */ d(
4575
+ k.map((v, j) => /* @__PURE__ */ d(
4515
4576
  "div",
4516
4577
  {
4517
4578
  "data-index": j,
4518
4579
  className: `flex items-center p-2 cursor-pointer rounded-md text-default ${j === f ? "bg-neutral-container" : ""}`,
4519
4580
  onClick: () => {
4520
- y.subCommands ? (g([...x, y.id]), s(0)) : y.action && (y.action(), r());
4581
+ v.subCommands ? (g([...x, v.id]), l(0)) : v.action && (v.action(), r());
4521
4582
  },
4522
- onMouseEnter: () => s(j),
4583
+ onMouseEnter: () => l(j),
4523
4584
  children: [
4524
- y.icon && /* @__PURE__ */ e("span", { className: "mr-3", children: y.icon }),
4525
- /* @__PURE__ */ e("span", { className: "flex-grow", children: y.label }),
4526
- y.subCommands && /* @__PURE__ */ e("span", { className: "text-muted", children: /* @__PURE__ */ e(Ue, { className: "w-4 h-4" }) })
4585
+ v.icon && /* @__PURE__ */ e("span", { className: "mr-3", children: v.icon }),
4586
+ /* @__PURE__ */ e("span", { className: "flex-grow", children: v.label }),
4587
+ v.subCommands && /* @__PURE__ */ e("span", { className: "text-muted", children: /* @__PURE__ */ e(Ue, { className: "w-4 h-4" }) })
4527
4588
  ]
4528
4589
  },
4529
- y.id
4590
+ v.id
4530
4591
  ))
4531
4592
  ]
4532
4593
  }
@@ -4548,7 +4609,7 @@ const gr = ({
4548
4609
  ]
4549
4610
  }
4550
4611
  ) }) : null;
4551
- }, Ft = {
4612
+ }, Rt = {
4552
4613
  none: "p-0",
4553
4614
  xs: "p-1",
4554
4615
  sm: "p-2",
@@ -4556,7 +4617,7 @@ const gr = ({
4556
4617
  lg: "p-6",
4557
4618
  xl: "p-8",
4558
4619
  "2xl": "p-12"
4559
- }, Rt = {
4620
+ }, Ht = {
4560
4621
  none: "m-0",
4561
4622
  xs: "m-1",
4562
4623
  sm: "m-2",
@@ -4564,7 +4625,7 @@ const gr = ({
4564
4625
  lg: "m-6",
4565
4626
  xl: "m-8",
4566
4627
  "2xl": "m-12"
4567
- }, Ht = {
4628
+ }, qt = {
4568
4629
  none: "",
4569
4630
  primary: "bg-primary",
4570
4631
  secondary: "bg-secondary",
@@ -4580,26 +4641,26 @@ const gr = ({
4580
4641
  backdrop: "bg-backdrop",
4581
4642
  editor: "bg-editor",
4582
4643
  input: "bg-input"
4583
- }, qt = {
4644
+ }, Ut = {
4584
4645
  none: "rounded-none",
4585
4646
  sm: "rounded-sm",
4586
4647
  md: "rounded-md",
4587
4648
  lg: "rounded-lg",
4588
4649
  xl: "rounded-xl",
4589
4650
  full: "rounded-full"
4590
- }, Ut = {
4651
+ }, Gt = {
4591
4652
  none: "shadow-none",
4592
4653
  sm: "shadow-sm shadow-lvl-0",
4593
4654
  md: "shadow-md shadow-lvl-0",
4594
4655
  lg: "shadow-lg shadow-lvl-0",
4595
4656
  xl: "shadow-xl shadow-lvl-0",
4596
4657
  "2xl": "shadow-2xl shadow-lvl-0"
4597
- }, Gt = {
4658
+ }, Kt = {
4598
4659
  none: "border-0",
4599
4660
  sm: "border",
4600
4661
  md: "border-2",
4601
4662
  lg: "border-4"
4602
- }, Kt = {
4663
+ }, Jt = {
4603
4664
  primary: "border-primary",
4604
4665
  secondary: "border-secondary",
4605
4666
  accent: "border-accent",
@@ -4615,7 +4676,7 @@ const gr = ({
4615
4676
  margin: a,
4616
4677
  background: r,
4617
4678
  radius: n,
4618
- shadow: l,
4679
+ shadow: s,
4619
4680
  border: o,
4620
4681
  borderColor: u,
4621
4682
  className: b,
@@ -4626,13 +4687,13 @@ const gr = ({
4626
4687
  {
4627
4688
  ref: f,
4628
4689
  className: p(
4629
- t && Ft[t],
4630
- a && Rt[a],
4631
- r && Ht[r],
4632
- n && qt[n],
4633
- l && Ut[l],
4634
- o && Gt[o],
4635
- u && Kt[u],
4690
+ t && Rt[t],
4691
+ a && Ht[a],
4692
+ r && qt[r],
4693
+ n && Ut[n],
4694
+ s && Gt[s],
4695
+ o && Kt[o],
4696
+ u && Jt[u],
4636
4697
  b
4637
4698
  ),
4638
4699
  ...g,
@@ -4641,19 +4702,19 @@ const gr = ({
4641
4702
  )
4642
4703
  );
4643
4704
  Ae.displayName = "Box";
4644
- const vr = ({ children: t, title: a, ...r }) => /* @__PURE__ */ d(Ae, { background: "module", radius: "xl", shadow: "sm", ...r, children: [
4705
+ const Nr = ({ children: t, title: a, ...r }) => /* @__PURE__ */ d(Ae, { background: "module", radius: "xl", shadow: "sm", ...r, children: [
4645
4706
  a && /* @__PURE__ */ e("span", { className: "text-base font-medium text-default mb-2", children: a }),
4646
4707
  t
4647
4708
  ] });
4648
- function Nr({
4709
+ function wr({
4649
4710
  identifier: t,
4650
4711
  resourceLoader: a,
4651
4712
  framework: r = "react",
4652
4713
  fallback: n,
4653
- componentProps: l,
4714
+ componentProps: s,
4654
4715
  className: o
4655
4716
  }) {
4656
- const u = J(null), [b, x] = P(!0), [g, f] = P(null), s = J(null);
4717
+ const u = J(null), [b, x] = P(!0), [g, f] = P(null), l = J(null);
4657
4718
  return J(null), U(() => {
4658
4719
  let m = !0;
4659
4720
  return (async () => {
@@ -4676,24 +4737,24 @@ function Nr({
4676
4737
  const m = u.current;
4677
4738
  if (m) {
4678
4739
  if (r === "svelte") {
4679
- const h = g.default || g, w = new h({ target: m, props: l || {} });
4680
- return s.current = w, () => w.$destroy();
4740
+ const h = g.default || g, w = new h({ target: m, props: s || {} });
4741
+ return l.current = w, () => w.$destroy();
4681
4742
  }
4682
4743
  if (g.mount) {
4683
- const h = g.mount({ container: m, props: l || {} });
4744
+ const h = g.mount({ container: m, props: s || {} });
4684
4745
  return () => {
4685
4746
  typeof h == "function" ? h() : g.unmount?.(m);
4686
4747
  };
4687
4748
  }
4688
4749
  }
4689
4750
  }, [g, r, b]), U(() => {
4690
- r === "svelte" && s.current && s.current.$set?.(l);
4691
- }, [l, r]), /* @__PURE__ */ d("div", { ref: u, className: o, style: { display: "contents" }, children: [
4751
+ r === "svelte" && l.current && l.current.$set?.(s);
4752
+ }, [s, r]), /* @__PURE__ */ d("div", { ref: u, className: o, style: { display: "contents" }, children: [
4692
4753
  b && n,
4693
- r === "react" && g && /* @__PURE__ */ e(g, { ...l })
4754
+ r === "react" && g && /* @__PURE__ */ e(g, { ...s })
4694
4755
  ] });
4695
4756
  }
4696
- class wr extends Ke {
4757
+ class kr extends Ke {
4697
4758
  constructor() {
4698
4759
  super(...arguments), this.state = {
4699
4760
  hasError: !1,
@@ -4722,48 +4783,49 @@ class wr extends Ke {
4722
4783
  }
4723
4784
  }
4724
4785
  export {
4725
- Pt as Avatar,
4726
- ur as AvatarStack,
4727
- ir as Badge,
4786
+ Ot as Avatar,
4787
+ mr as AvatarStack,
4788
+ dr as Badge,
4728
4789
  Ae as Box,
4729
4790
  te as Button,
4730
- ar as ButtonGroup,
4731
- vr as Card,
4732
- ge as Checkbox,
4733
- yr as CommandPalette,
4791
+ lr as ButtonGroup,
4792
+ Nr as Card,
4793
+ ye as Checkbox,
4794
+ vr as CommandPalette,
4734
4795
  mt as ContentLoading,
4735
- ye as DatePicker,
4796
+ ve as DatePicker,
4736
4797
  ft as Dropdown,
4737
- wr as ErrorBoundary,
4738
- Nr as FederatedResource,
4739
- or as Form,
4740
- br as Heading,
4798
+ kr as ErrorBoundary,
4799
+ wr as FederatedResource,
4800
+ Mt as FolderSelect,
4801
+ cr as Form,
4802
+ gr as Heading,
4741
4803
  oe as Icon,
4742
- mr as Image,
4743
- lr as Link,
4744
- gr as List,
4745
- tr as MeetingGrid,
4804
+ fr as Image,
4805
+ sr as Link,
4806
+ yr as List,
4807
+ rr as MeetingGrid,
4746
4808
  St as Modal,
4747
- fr as PageHeader,
4748
- hr as PageToolbar,
4749
- rr as ParticipantTile,
4750
- cr as Popover,
4809
+ hr as PageHeader,
4810
+ pr as PageToolbar,
4811
+ nr as ParticipantTile,
4812
+ ir as Popover,
4751
4813
  ot as SearchableTextField,
4752
- ve as Select,
4753
- xr as SidebarMenu,
4754
- dr as Spinner,
4755
- Te as SplitButton,
4814
+ fe as Select,
4815
+ br as SidebarMenu,
4816
+ ur as Spinner,
4817
+ ze as SplitButton,
4756
4818
  Et as StorageInput,
4757
- sr as TabBar,
4819
+ or as TabBar,
4758
4820
  Le as Table,
4759
4821
  kt as Tabs,
4760
4822
  Z as Text,
4761
4823
  Ne as TextArea,
4762
4824
  ue as TextField,
4763
- nr as VideoSurface,
4764
- pr as View,
4825
+ ar as VideoSurface,
4826
+ xr as View,
4765
4827
  p as cn,
4766
- er as createSizes,
4767
- Qt as createVariants
4828
+ tr as createSizes,
4829
+ er as createVariants
4768
4830
  };
4769
4831
  //# sourceMappingURL=index.js.map