@base-framework/ui 1.2.44 → 1.2.46

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.
@@ -1,5 +1,5 @@
1
- import { I as E, Span as u, Button as v, OnState as M, Div as o, Legend as ht, Fieldset as ft, H4 as qe, P as k, Label as H, Checkbox as fe, Input as p, Textarea as Ge, UseParent as W, Img as ge, H5 as gt, H2 as X, Form as mt, Header as Z, Footer as me, A as Ke, H3 as be, Nav as xe, Ul as ee, Li as pe, OnStateOpen as ye, On as J, Dialog as bt, Th as Qe, Thead as xt, Tr as pt, Table as we, Time as yt, H1 as wt } from "@base-framework/atoms";
2
- import { Atom as r, Jot as P, Component as S, router as oe, Html as Je, Data as z, Events as j, DateTime as te, NavLink as vt, DataTracker as Xe } from "@base-framework/base";
1
+ import { I as E, Span as u, Button as v, OnState as P, Div as o, Legend as ht, Fieldset as ft, H4 as qe, P as k, Label as H, Checkbox as fe, Input as p, Textarea as Ge, UseParent as W, Img as ge, H5 as gt, H2 as X, Form as mt, Header as Z, Footer as me, A as Ke, H3 as be, Nav as xe, Ul as ee, Li as pe, OnStateOpen as ye, On as J, Dialog as bt, Th as Qe, Thead as xt, Tr as pt, Table as we, Time as yt, H1 as wt } from "@base-framework/atoms";
2
+ import { Atom as r, Jot as M, Component as S, router as oe, Html as Je, Data as O, Events as j, DateTime as te, NavLink as vt, DataTracker as Xe } from "@base-framework/base";
3
3
  import { Icons as h } from "./icons.es.js";
4
4
  import { Timer as kt, TableBody as Ct, DataTableBody as St, ScrollableTableBody as $t, List as Dt } from "@base-framework/organisms";
5
5
  import { F as V } from "./format-DE4rFWuD.js";
@@ -48,7 +48,7 @@ const Tt = {
48
48
  filled: "material-symbols-filled",
49
49
  rounded: "material-symbols-rounded",
50
50
  sharp: "material-symbols-sharp"
51
- }, Me = r((e) => {
51
+ }, Pe = r((e) => {
52
52
  const t = e.size || "sm", s = e.variant || "outlined", n = De[t] || De.sm, a = Ie[t] || Ie.sm, l = Te[s] || Te.outlined;
53
53
  return u({
54
54
  ...e,
@@ -62,14 +62,14 @@ const Tt = {
62
62
  name: void 0
63
63
  // @ts-ignore
64
64
  }, e.name);
65
- }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ue(e, t) : typeof t == "object" && t.name ? Me({
65
+ }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ue(e, t) : typeof t == "object" && t.name ? Pe({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
- }) : typeof t == "string" ? Me({
69
+ }) : typeof t == "string" ? Pe({
70
70
  ...e,
71
71
  name: t
72
- }) : ue(e, t) : null, Sa = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, $a = (e) => typeof e == "string" && e.includes("<svg"), Pe = {
72
+ }) : ue(e, t) : null, $a = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Da = (e) => typeof e == "string" && e.includes("<svg"), Me = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,11 +150,11 @@ const Tt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Mt = (e) => Pe[e] || Pe.gray, Pt = (e, t = {}) => {
154
- const s = Mt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
153
+ }, Pt = (e) => Me[e] || Me.gray, Mt = (e, t = {}) => {
154
+ const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
155
155
  return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
156
- }, Da = r((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m = Pt(s, { backgroundColor: l, textColor: i, ringColor: c });
156
+ }, Ia = r((e, t) => {
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m = Mt(s, { backgroundColor: l, textColor: i, ringColor: c });
158
158
  return u({ ...f, class: m }, [
159
159
  n ? x({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
@@ -174,11 +174,11 @@ class Ze extends S {
174
174
  return s ? { data: s } : null;
175
175
  }
176
176
  }
177
- const O = (e) => (
177
+ const N = (e) => (
178
178
  /** @type {VeilComponentConstructor} */
179
- P(e, Ze)
179
+ M(e, Ze)
180
180
  );
181
- class Ia extends Ze {
181
+ class Ta extends Ze {
182
182
  /**
183
183
  * Declare public props and their defaults.
184
184
  */
@@ -221,7 +221,7 @@ class Ia extends Ze {
221
221
  // @ts-ignore
222
222
  class: `toggle-btn inline-flex items-center gap-1.5 bg-transparent border-0 p-0 cursor-pointer text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${this.class || ""}`
223
223
  }, [
224
- M(
224
+ P(
225
225
  "active",
226
226
  (i) => x({ size: t, variant: i && l ? "filled" : "outlined" }, i ? n : s)
227
227
  ),
@@ -237,7 +237,7 @@ const le = {
237
237
  xl: "w-14 h-14",
238
238
  "2xl": "w-16 h-16"
239
239
  };
240
- class Ta extends S {
240
+ class Pa extends S {
241
241
  /**
242
242
  * Declare public props.
243
243
  */
@@ -274,7 +274,7 @@ class Ta extends S {
274
274
  // @ts-ignore
275
275
  class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${l}${f ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
276
276
  }, [
277
- M("active", (w) => [
277
+ P("active", (w) => [
278
278
  x({
279
279
  size: a,
280
280
  variant: w && m ? "filled" : "outlined",
@@ -296,8 +296,8 @@ const Ma = r((e, t) => {
296
296
  ...t || []
297
297
  ]);
298
298
  });
299
- let A = globalThis.history?.state?._pos ?? 0;
300
- const he = /* @__PURE__ */ new Map(), Be = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), Bt = (e, t) => {
299
+ let B = globalThis.history?.state?._pos ?? 0;
300
+ const Bt = B, he = /* @__PURE__ */ new Map(), Be = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
301
301
  if (!t) return !1;
302
302
  const s = Be(e), n = Be(t);
303
303
  return s === n || s.startsWith(n + "/");
@@ -305,33 +305,33 @@ const he = /* @__PURE__ */ new Map(), Be = (e) => (e || "").replace(/^\/+/, "").
305
305
  if (typeof globalThis.history?.pushState == "function") {
306
306
  const e = globalThis.history.pushState, t = globalThis.history.replaceState;
307
307
  globalThis.history.pushState = function(s, n, a) {
308
- A++;
309
- const l = s !== null && typeof s == "object" ? { ...s, _pos: A } : { _pos: A };
308
+ B++;
309
+ const l = s !== null && typeof s == "object" ? { ...s, _pos: B } : { _pos: B };
310
310
  return e.call(this, l, n, a);
311
311
  }, globalThis.history.replaceState = function(s, n, a) {
312
- const l = globalThis.history.state?._pos ?? A, i = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
312
+ const l = globalThis.history.state?._pos ?? B, i = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
313
313
  return t.call(this, i, n, a);
314
314
  }, globalThis.addEventListener("popstate", (s) => {
315
315
  const n = (
316
316
  /** @type {any} */
317
317
  s.state?._pos
318
318
  );
319
- typeof n == "number" && (A = n);
319
+ typeof n == "number" && (B = n);
320
320
  });
321
321
  }
322
- const zt = (e) => {
322
+ const Ot = (e) => {
323
323
  const t = e || "", s = oe.path || "", n = he.get(t);
324
- if (n && Bt(s, n.basePath))
324
+ if (n && zt(s, n.basePath))
325
325
  return n;
326
326
  const a = {
327
- pos: A,
327
+ pos: B,
328
328
  sourcePath: oe.lastPath || null,
329
329
  basePath: s
330
330
  };
331
331
  return he.set(t, a), a;
332
- }, Ot = (e) => {
332
+ }, Nt = (e) => {
333
333
  he.delete(e || "");
334
- }, L = (e) => r((t, s) => v({
334
+ }, A = (e) => r((t, s) => v({
335
335
  ...e,
336
336
  ...t,
337
337
  // @ts-ignore
@@ -353,22 +353,22 @@ const zt = (e) => {
353
353
  ...t,
354
354
  // @ts-ignore
355
355
  class: `bttn ${e.class} ${t.class || ""}`
356
- }, s)), Nt = (e) => {
357
- const t = zt(e.backUrl);
356
+ }, s)), Ft = (e) => {
357
+ const t = Ot(e.backUrl);
358
358
  return () => {
359
- Ot(e.backUrl);
360
- const n = A - t.pos + 1;
361
- if (t.pos > 0) {
359
+ Nt(e.backUrl);
360
+ const n = B - t.pos + 1;
361
+ if (t.pos > Bt) {
362
362
  globalThis.history.go(-n);
363
363
  return;
364
364
  }
365
365
  const a = t.sourcePath || e.backUrl;
366
366
  a && app.navigate(a);
367
367
  };
368
- }, Ft = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Nt(t), et({
368
+ }, Lt = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Ft(t), et({
369
369
  ...e,
370
370
  ...t
371
- }, s))), Lt = r((e, t) => {
371
+ }, s))), At = r((e, t) => {
372
372
  const s = e.size || "md", n = {
373
373
  xs: "w-6 h-6",
374
374
  sm: "w-8 h-8",
@@ -386,29 +386,29 @@ const zt = (e) => {
386
386
  ...t || []
387
387
  ]);
388
388
  }), Oe = {
389
- primary: L({ class: "primary" }),
390
- secondary: L({ class: "secondary" }),
391
- destructive: L({ class: "destructive" }),
392
- warning: L({ class: "warning" }),
393
- outline: L({ class: "outline" }),
394
- ghost: L({ class: "ghost" }),
395
- link: L({ class: "link" }),
389
+ primary: A({ class: "primary" }),
390
+ secondary: A({ class: "secondary" }),
391
+ destructive: A({ class: "destructive" }),
392
+ warning: A({ class: "warning" }),
393
+ outline: A({ class: "outline" }),
394
+ ghost: A({ class: "ghost" }),
395
+ link: A({ class: "link" }),
396
396
  icon: ze({ class: "icon" }),
397
397
  withIcon: ze({ class: "with-icon" }),
398
- back: Ft({ class: "with-icon back-button" }),
399
- circleIcon: Lt
400
- }, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), Pa = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), At = r((e, t) => {
398
+ back: Lt({ class: "with-icon back-button" }),
399
+ circleIcon: At
400
+ }, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), Ba = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), Rt = r((e, t) => {
401
401
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
402
402
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
403
403
  ...e,
404
404
  // @ts-ignore
405
405
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
406
406
  }, t);
407
- }), Rt = r((e, t) => ht({
407
+ }), jt = r((e, t) => ht({
408
408
  ...e,
409
409
  // @ts-ignore
410
410
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
411
- }, t)), Ba = r((e, t) => {
411
+ }, t)), za = r((e, t) => {
412
412
  const s = e.border === "full" ? "border rounded-md" : "border-t";
413
413
  return ft({
414
414
  ...e,
@@ -416,10 +416,10 @@ const zt = (e) => {
416
416
  class: `p-6 ${s} ${e.class || ""}`
417
417
  }, [
418
418
  // @ts-ignore
419
- e.legend && Rt(e.legend),
419
+ e.legend && jt(e.legend),
420
420
  o({ class: "flex flex-auto flex-col gap-y-6" }, t)
421
421
  ]);
422
- }), jt = r((e, t) => {
422
+ }), Et = r((e, t) => {
423
423
  const s = e.border === !0 ? "border-t" : "";
424
424
  return o({
425
425
  ...e,
@@ -441,7 +441,7 @@ const zt = (e) => {
441
441
  // Controls container: grows to fill remaining space, spacing between items
442
442
  o({ class: "flex flex-col gap-y-4" }, t)
443
443
  ]);
444
- }), Et = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", _ = "placeholder:text-muted-foreground", ve = `${Et} ${D} ${$} ${_} ${C}`, Ht = ({ id: e, checked: t, bind: s, required: n }) => fe({
444
+ }), Ht = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", _ = "placeholder:text-muted-foreground", ve = `${Ht} ${D} ${$} ${_} ${C}`, _t = ({ id: e, checked: t, bind: s, required: n }) => fe({
445
445
  id: e,
446
446
  cache: "checkbox",
447
447
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -451,15 +451,15 @@ const zt = (e) => {
451
451
  required: n,
452
452
  checked: t,
453
453
  bind: s
454
- }), _t = () => u({ class: "absolute text-xs pointer-events-none" }, [
455
- M(
454
+ }), Ut = () => u({ class: "absolute text-xs pointer-events-none" }, [
455
+ P(
456
456
  "checked",
457
457
  (e) => e ? E({
458
458
  class: "w-2 h-2 pointer-events-none",
459
459
  html: h.check
460
460
  }) : null
461
461
  )
462
- ]), Ut = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
462
+ ]), Yt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
463
463
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
464
464
  rounded-md border
465
465
  ${$}
@@ -479,13 +479,13 @@ const zt = (e) => {
479
479
  tabIndex: 0,
480
480
  click: a
481
481
  }, [
482
- Ht({ bind: t, checked: s, id: e, required: n }),
483
- _t()
484
- ]), Yt = ({ id: e, label: t, clickHandler: s }) => H({
482
+ _t({ bind: t, checked: s, id: e, required: n }),
483
+ Ut()
484
+ ]), Vt = ({ id: e, label: t, clickHandler: s }) => H({
485
485
  class: "text-base cursor-pointer",
486
486
  htmlFor: e,
487
487
  click: s
488
- }, t), Vt = P(
488
+ }, t), Wt = M(
489
489
  {
490
490
  /**
491
491
  * This will initialize the state of the checkbox.
@@ -524,7 +524,7 @@ const zt = (e) => {
524
524
  render() {
525
525
  const e = this.getId(), t = (s) => this.clickHandler(s);
526
526
  return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
527
- Ut({
527
+ Yt({
528
528
  id: e,
529
529
  // @ts-ignore
530
530
  bind: this.bind,
@@ -536,38 +536,38 @@ const zt = (e) => {
536
536
  clickHandler: t
537
537
  }),
538
538
  // @ts-ignore
539
- this.label && Yt({ id: e, label: this.label, clickHandler: t })
539
+ this.label && Vt({ id: e, label: this.label, clickHandler: t })
540
540
  ]);
541
541
  }
542
542
  }
543
- ), Wt = (e) => {
543
+ ), qt = (e) => {
544
544
  if (!e || e.length === 0) return "";
545
545
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
546
546
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
547
- }, qt = (e) => {
548
- const t = e.target, s = Wt(t.value);
547
+ }, Gt = (e) => {
548
+ const t = e.target, s = qt(t.value);
549
549
  s && (t.value = s);
550
- }, Gt = [
550
+ }, Kt = [
551
551
  "peer w-full h-14 px-3 pt-5 pb-1",
552
552
  "text-base text-foreground",
553
553
  D,
554
554
  $,
555
555
  C,
556
556
  "placeholder-transparent"
557
- ].join(" "), Kt = [
557
+ ].join(" "), Qt = [
558
558
  "peer w-full min-h-[120px] px-3 pt-6 pb-2",
559
559
  "text-base text-foreground",
560
560
  D,
561
561
  $,
562
562
  C,
563
563
  "placeholder-transparent resize-y"
564
- ].join(" "), Qt = [
564
+ ].join(" "), Jt = [
565
565
  "peer w-full h-14 px-3 pt-5 pb-1 pr-10",
566
566
  "text-base text-foreground appearance-none",
567
567
  D,
568
568
  $,
569
569
  C
570
- ].join(" "), Jt = [
570
+ ].join(" "), Xt = [
571
571
  "absolute left-3",
572
572
  "text-foreground-secondary",
573
573
  "transition-all duration-200",
@@ -578,7 +578,7 @@ const zt = (e) => {
578
578
  "peer-[:placeholder-shown:not(:focus)]:top-1/2",
579
579
  "peer-[:placeholder-shown:not(:focus)]:-translate-y-1/2",
580
580
  "peer-[:placeholder-shown:not(:focus)]:text-base"
581
- ].join(" "), Xt = [
581
+ ].join(" "), Zt = [
582
582
  "absolute left-3",
583
583
  "text-foreground-secondary",
584
584
  "transition-all duration-200",
@@ -588,16 +588,16 @@ const zt = (e) => {
588
588
  // Placeholder state (empty + not focused)
589
589
  "peer-[:placeholder-shown:not(:focus)]:top-3.5",
590
590
  "peer-[:placeholder-shown:not(:focus)]:text-base"
591
- ].join(" "), Zt = [
591
+ ].join(" "), es = [
592
592
  "absolute left-3 top-2",
593
593
  "text-xs text-foreground-secondary",
594
594
  "pointer-events-none select-none"
595
595
  ].join(" ");
596
- let es = 0;
597
- const ke = (e) => e.id || e.name || `floating-${++es}`, Ce = (e, t, s, n) => e ? H(
596
+ let ts = 0;
597
+ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ? H(
598
598
  { htmlFor: s, class: n },
599
599
  t ? [u(e), u({ class: "text-destructive ml-0.5" }, "*")] : e
600
- ) : null, ts = () => E({
600
+ ) : null, ss = () => E({
601
601
  class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
602
602
  html: h.chevron.single.down
603
603
  }), se = r((e) => {
@@ -607,83 +607,83 @@ const ke = (e) => e.id || e.name || `floating-${++es}`, Ce = (e, t, s, n) => e ?
607
607
  ...e,
608
608
  id: t,
609
609
  placeholder: " ",
610
- class: `${Gt} ${e.class || ""}`.trim()
610
+ class: `${Kt} ${e.class || ""}`.trim()
611
611
  }),
612
- Ce(e.label, e.required, t, Jt)
612
+ Ce(e.label, e.required, t, Xt)
613
613
  ]);
614
- }), za = r(
614
+ }), Oa = r(
615
615
  (e) => se({
616
616
  ...e,
617
617
  type: "tel",
618
618
  name: e.name || "Phone",
619
619
  label: e.label || "Phone",
620
620
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
621
- keyup: qt
621
+ keyup: Gt
622
622
  })
623
- ), Oa = r(
623
+ ), Na = r(
624
624
  (e) => se({
625
625
  ...e,
626
626
  type: "email",
627
627
  name: e.name || "Email",
628
628
  label: e.label || "Email"
629
629
  })
630
- ), Na = r(
630
+ ), Fa = r(
631
631
  (e) => se({
632
632
  ...e,
633
633
  type: "password",
634
634
  name: e.name || "Password",
635
635
  label: e.label || "Password"
636
636
  })
637
- ), Fa = r(
637
+ ), La = r(
638
638
  (e) => se({
639
639
  ...e,
640
640
  type: "number"
641
641
  })
642
- ), La = r(
642
+ ), Aa = r(
643
643
  (e) => se({
644
644
  ...e,
645
645
  type: "url",
646
646
  name: e.name || "Url",
647
647
  label: e.label || "URL"
648
648
  })
649
- ), Aa = r((e) => {
649
+ ), Ra = r((e) => {
650
650
  const t = ke(e);
651
651
  return o({ class: "relative" }, [
652
652
  Ge({
653
653
  ...e,
654
654
  id: t,
655
655
  placeholder: " ",
656
- class: `${Kt} ${e.class || ""}`.trim()
656
+ class: `${Qt} ${e.class || ""}`.trim()
657
657
  }),
658
- Ce(e.label, e.required, t, Xt)
658
+ Ce(e.label, e.required, t, Zt)
659
659
  ]);
660
- }), Ra = r((e) => {
660
+ }), ja = r((e) => {
661
661
  const t = ke(e), { options: s, onCreated: n, ...a } = e;
662
662
  return o({ class: "relative" }, [
663
663
  {
664
664
  tag: "select",
665
665
  ...a,
666
666
  id: t,
667
- class: `[&>option]:text-foreground [&>option]:bg-background ${Qt} ${a.class || ""}`.trim(),
667
+ class: `[&>option]:text-foreground [&>option]:bg-background ${Jt} ${a.class || ""}`.trim(),
668
668
  onCreated(l) {
669
669
  s && Je.setupSelectOptions(l, s), typeof n == "function" && n(l);
670
670
  }
671
671
  },
672
- ts(),
673
- Ce(e.label, e.required, t, Zt)
672
+ ss(),
673
+ Ce(e.label, e.required, t, es)
674
674
  ]);
675
- }), ss = (e) => {
675
+ }), ns = (e) => {
676
676
  if (!e || e.length === 0) return "";
677
677
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
678
678
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
679
- }, ns = (e) => {
680
- const t = e.target, s = ss(t.value);
679
+ }, as = (e) => {
680
+ const t = e.target, s = ns(t.value);
681
681
  s && (t.value = s);
682
- }, N = r((e) => p({
682
+ }, F = r((e) => p({
683
683
  ...e,
684
684
  // @ts-ignore
685
685
  class: `${ve} ${e.class || ""}`.trim()
686
- })), ja = r((e) => N({
686
+ })), Ea = r((e) => F({
687
687
  ...e,
688
688
  type: "tel",
689
689
  // @ts-ignore
@@ -693,8 +693,8 @@ const ke = (e) => e.id || e.name || `floating-${++es}`, Ce = (e, t, s, n) => e ?
693
693
  placeholder: "(555) 555-5555",
694
694
  // @ts-ignore
695
695
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
696
- keyup: ns
697
- })), Ea = r((e) => N({
696
+ keyup: as
697
+ })), Ha = r((e) => F({
698
698
  ...e,
699
699
  type: "email",
700
700
  // @ts-ignore
@@ -702,61 +702,61 @@ const ke = (e) => e.id || e.name || `floating-${++es}`, Ce = (e, t, s, n) => e ?
702
702
  // @ts-ignore
703
703
  label: e.label || "Email",
704
704
  placeholder: "Email address"
705
- })), Ha = r((e) => Ge({
705
+ })), _a = r((e) => Ge({
706
706
  ...e,
707
707
  as: "textarea",
708
708
  // @ts-ignore
709
709
  class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${_} ${C} ${e.class || ""}`.trim()
710
- })), _a = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
710
+ })), Ua = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
711
711
  p({
712
712
  ...e,
713
713
  type: "radio",
714
714
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
715
715
  }),
716
716
  e.label && H({ forHTML: e.value, class: "cursor-pointer" }, e.label)
717
- ]), Ua = r((e) => p({
717
+ ]), Ya = r((e) => p({
718
718
  ...e,
719
719
  type: "date",
720
720
  // @ts-ignore
721
721
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
722
- })), Ya = r((e) => p({
722
+ })), Va = r((e) => p({
723
723
  ...e,
724
724
  type: "time",
725
725
  // @ts-ignore
726
726
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
727
- })), Va = r((e) => p({
727
+ })), Wa = r((e) => p({
728
728
  ...e,
729
729
  type: "datetime-local",
730
730
  // @ts-ignore
731
731
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
732
- })), Wa = r((e) => p({
732
+ })), qa = r((e) => p({
733
733
  ...e,
734
734
  type: "month",
735
735
  // @ts-ignore
736
736
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
737
- })), qa = r((e) => p({
737
+ })), Ga = r((e) => p({
738
738
  ...e,
739
739
  type: "week",
740
740
  // @ts-ignore
741
741
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
742
- })), Ga = r((e) => N({
742
+ })), Ka = r((e) => F({
743
743
  ...e,
744
744
  type: "number"
745
- })), Ka = r((e) => N({
745
+ })), Qa = r((e) => F({
746
746
  ...e,
747
747
  type: "password"
748
748
  }));
749
- r((e) => N({
749
+ r((e) => F({
750
750
  ...e,
751
751
  type: "search"
752
752
  }));
753
- const Qa = r((e) => N({
753
+ const Ja = r((e) => F({
754
754
  ...e,
755
755
  type: "url"
756
- })), Ja = r((e) => N({
756
+ })), Xa = r((e) => F({
757
757
  ...e,
758
758
  type: "hidden"
759
- })), Xa = r((e) => p({
759
+ })), Za = r((e) => p({
760
760
  ...e,
761
761
  type: "color",
762
762
  // @ts-ignore
@@ -767,12 +767,12 @@ r((e) => fe({
767
767
  // @ts-ignore
768
768
  class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
769
769
  }));
770
- const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Za = r((e) => p({
770
+ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", eo = r((e) => p({
771
771
  ...e,
772
772
  type: "file",
773
773
  // @ts-ignore
774
- class: `${ve} ${as} ${e.class || ""}`.trim()
775
- })), eo = O(
774
+ class: `${ve} ${os} ${e.class || ""}`.trim()
775
+ })), to = N(
776
776
  {
777
777
  /**
778
778
  * This will create the initial state of the RangeSlider.
@@ -844,7 +844,7 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
844
844
  ]);
845
845
  }
846
846
  }
847
- ), to = r((e) => {
847
+ ), so = r((e) => {
848
848
  const { options: t, onCreated: s, ...n } = e;
849
849
  return {
850
850
  tag: "select",
@@ -854,7 +854,7 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
854
854
  ...n,
855
855
  class: `[&>option]:text-foreground [&>option]:bg-background ${ve} ${n.class || ""}`.trim()
856
856
  };
857
- }), os = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : ge({
857
+ }), ls = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : ge({
858
858
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
859
859
  src: e,
860
860
  alt: t,
@@ -863,7 +863,7 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
863
863
  * If there's an error loading the image, hide it.
864
864
  */
865
865
  error: (a) => a.target.style.visibility = "hidden"
866
- })), ls = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
866
+ })), rs = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
867
867
  const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
868
868
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
869
869
  <!-- Background Circle -->
@@ -906,20 +906,20 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
906
906
  class: "circle-graph text-inherit",
907
907
  html: i
908
908
  });
909
- }, so = r((e) => {
909
+ }, no = r((e) => {
910
910
  const t = e.progress || 0, s = e.class || "", n = Ne(t, s);
911
911
  return o({
912
912
  class: "circle-graph-wrap",
913
913
  onSet: [
914
914
  // @ts-ignore
915
915
  e.prop,
916
- (a) => (a = ls(a), a ? Ne(a, s) : n)
916
+ (a) => (a = rs(a), a ? Ne(a, s) : n)
917
917
  ]
918
918
  }, [n]);
919
- }), rs = () => W(({ state: e }) => o({
919
+ }), is = () => W(({ state: e }) => o({
920
920
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
921
921
  style: ["width: [[progress]]%;", e]
922
- })), no = O(
922
+ })), ao = N(
923
923
  {
924
924
  /**
925
925
  * This will render the progress bar component.
@@ -928,7 +928,7 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
928
928
  */
929
929
  render() {
930
930
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
931
- rs()
931
+ is()
932
932
  ]);
933
933
  },
934
934
  /**
@@ -971,7 +971,7 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
971
971
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
972
972
  }
973
973
  }
974
- ), ao = r((e = {}) => {
974
+ ), oo = r((e = {}) => {
975
975
  const {
976
976
  class: t = "",
977
977
  background: s = !0,
@@ -992,7 +992,7 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
992
992
  style: m,
993
993
  "aria-hidden": "true"
994
994
  });
995
- }), oo = r((e = {}) => {
995
+ }), lo = r((e = {}) => {
996
996
  const {
997
997
  class: t = "",
998
998
  background: s = !0,
@@ -1022,8 +1022,8 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1022
1022
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1023
1023
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1024
1024
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1025
- }, is = (e) => Fe[String(e)] || Fe.top, lo = r(({ position: e = "top", content: t }, s) => {
1026
- const n = is(e);
1025
+ }, cs = (e) => Fe[String(e)] || Fe.top, ro = r(({ position: e = "top", content: t }, s) => {
1026
+ const n = cs(e);
1027
1027
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1028
1028
  ...s,
1029
1029
  // Tooltip box
@@ -1060,19 +1060,19 @@ const as = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1060
1060
  bgColor: "bg-muted/10",
1061
1061
  iconColor: "text-muted-foreground"
1062
1062
  }
1063
- }, cs = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1063
+ }, ds = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1064
1064
  x({ size: "sm" }, e)
1065
- ]), ds = (e) => gt({ class: "font-semibold" }, e), us = (e) => k({ class: "text-sm text-muted-foreground" }, e), ro = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
1065
+ ]), us = (e) => gt({ class: "font-semibold" }, e), hs = (e) => k({ class: "text-sm text-muted-foreground" }, e), io = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
1066
1066
  const { borderColor: a, bgColor: l, iconColor: i } = Le[n] || Le.default;
1067
1067
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1068
1068
  // Icon and content
1069
- s && cs(s, i),
1069
+ s && ds(s, i),
1070
1070
  o({ class: "flex flex-col" }, [
1071
- ds(e),
1072
- us(t)
1071
+ us(e),
1072
+ hs(t)
1073
1073
  ])
1074
1074
  ]);
1075
- }), hs = (e, t) => {
1075
+ }), fs = (e, t) => {
1076
1076
  const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
1077
1077
  let c = s.left + l, f = s.bottom + i;
1078
1078
  const m = globalThis.innerHeight - s.bottom, w = s.top;
@@ -1085,7 +1085,7 @@ class ne extends S {
1085
1085
  * @returns {object}
1086
1086
  */
1087
1087
  setData() {
1088
- const t = this.parent.data || new z();
1088
+ const t = this.parent.data || new O();
1089
1089
  return t.set({
1090
1090
  position: { x: 0, y: 0 }
1091
1091
  }), t;
@@ -1155,7 +1155,7 @@ class ne extends S {
1155
1155
  * @returns {void}
1156
1156
  */
1157
1157
  updatePosition() {
1158
- const t = this.button ?? null, s = this.panel, n = hs(t, s);
1158
+ const t = this.button ?? null, s = this.panel, n = fs(t, s);
1159
1159
  this.data.position = n;
1160
1160
  }
1161
1161
  /**
@@ -1207,28 +1207,28 @@ class ne extends S {
1207
1207
  this?.panel?.hidePopover();
1208
1208
  }
1209
1209
  }
1210
- const fs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), gs = r((e, t) => H({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ms = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), bs = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), io = r((e, t = []) => At({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1210
+ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ms = r((e, t) => H({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), bs = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), xs = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), co = r((e, t = []) => Rt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1211
1211
  // @ts-ignore
1212
1212
  e.title && X({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1213
1213
  // @ts-ignore
1214
1214
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1215
1215
  ...t
1216
- ])), co = r((e, t = []) => (
1216
+ ])), uo = r((e, t = []) => (
1217
1217
  // @ts-ignore
1218
- jt({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1218
+ Et({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1219
1219
  o({ class: "flex flex-col gap-y-6" }, t)
1220
1220
  ])
1221
- )), uo = r((e, t = []) => {
1221
+ )), ho = r((e, t = []) => {
1222
1222
  const s = e.border ? "border-t" : "";
1223
1223
  return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1224
- }), xs = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", tt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = tt(n.children, t, s)), !n.required) ? n : xs(n) ? {
1224
+ }), ps = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", tt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = tt(n.children, t, s)), !n.required) ? n : ps(n) ? {
1225
1225
  ...n,
1226
1226
  aria: {
1227
1227
  invalid: ["hasError"]
1228
1228
  },
1229
1229
  invalid: s,
1230
1230
  input: t
1231
- } : n), ps = r((e, t) => {
1231
+ } : n), ys = r((e, t) => {
1232
1232
  const a = tt(t, (l) => {
1233
1233
  l.target.checkValidity() && e.setError(null);
1234
1234
  }, (l) => {
@@ -1238,7 +1238,7 @@ const fs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1238
1238
  ...e,
1239
1239
  class: "w-full"
1240
1240
  }, a);
1241
- }), ho = O(
1241
+ }), fo = N(
1242
1242
  {
1243
1243
  /**
1244
1244
  * The initial state of the FormField.
@@ -1263,41 +1263,41 @@ const fs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1263
1263
  this.state.error = l, this.state.hasError = !!l;
1264
1264
  };
1265
1265
  return o({ class: "flex flex-auto gap-y-4" }, [
1266
- fs([
1267
- gs({ htmlFor: t }, s),
1268
- ps({
1266
+ gs([
1267
+ ms({ htmlFor: t }, s),
1268
+ ys({
1269
1269
  id: t,
1270
1270
  name: e,
1271
1271
  value: this.state.value,
1272
1272
  setError: a
1273
1273
  }, this.children),
1274
- n && ms({ id: this.getId("description") }, n),
1275
- o({ onState: ["error", (l) => l && bs(l)] })
1274
+ n && bs({ id: this.getId("description") }, n),
1275
+ o({ onState: ["error", (l) => l && xs(l)] })
1276
1276
  ])
1277
1277
  ]);
1278
1278
  }
1279
1279
  }
1280
- ), ys = (e, t, s = null) => {
1280
+ ), ws = (e, t, s = null) => {
1281
1281
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1282
1282
  }, st = r(
1283
1283
  (e, t) => (
1284
1284
  // @ts-ignore
1285
- mt({ ...e, submit: (s, n) => ys(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1285
+ mt({ ...e, submit: (s, n) => ws(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1286
1286
  )
1287
- ), fo = r((e, t) => (
1287
+ ), go = r((e, t) => (
1288
1288
  // @ts-ignore
1289
1289
  o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1290
- )), go = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1290
+ )), mo = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1291
1291
  // @ts-ignore
1292
1292
  e.title && X({ class: "font-semibold" }, e.title),
1293
1293
  ...t
1294
- ])), mo = (e, t) => o({ class: "flex justify-between" }, [
1294
+ ])), bo = (e, t) => o({ class: "flex justify-between" }, [
1295
1295
  u({ class: "text-muted-foreground" }, e),
1296
1296
  u(t)
1297
- ]), bo = (e, t) => o({ class: "flex" }, [
1297
+ ]), xo = (e, t) => o({ class: "flex" }, [
1298
1298
  u({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1299
1299
  u(t)
1300
- ]), ws = r(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => Z({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1300
+ ]), vs = r(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => Z({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1301
1301
  /**
1302
1302
  * Back Button (Mobile Only)
1303
1303
  */
@@ -1320,7 +1320,7 @@ const fs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1320
1320
  ]),
1321
1321
  o({ class: "flex flex-none items-center gap-2" }, a)
1322
1322
  ])
1323
- ])), xo = r((e, t) => {
1323
+ ])), po = r((e, t) => {
1324
1324
  const s = e.class?.includes("drawer");
1325
1325
  return o({
1326
1326
  popover: "manual",
@@ -1336,7 +1336,7 @@ const fs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1336
1336
  submit: (l, i) => e.onSubmit && e.onSubmit(i),
1337
1337
  cache: "modalContent"
1338
1338
  }, [
1339
- ws(e),
1339
+ vs(e),
1340
1340
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1341
1341
  // @ts-ignore
1342
1342
  !e.hideFooter && me({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
@@ -1368,22 +1368,22 @@ const fs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1368
1368
  borderColor: "border",
1369
1369
  iconColor: "text-muted-foreground"
1370
1370
  }
1371
- }, vs = (e) => Z({ class: "flex justify-center" }, [
1371
+ }, ks = (e) => Z({ class: "flex justify-center" }, [
1372
1372
  be({ class: "text-lg font-bold mb-0" }, e)
1373
- ]), ks = r(({ href: e, class: t }, s) => Ke({
1373
+ ]), Cs = r(({ href: e, class: t }, s) => Ke({
1374
1374
  class: `bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1375
1375
  href: e,
1376
1376
  animateIn: "pullRightIn",
1377
1377
  animateOut: "pullRight",
1378
1378
  role: "alert"
1379
- }, s)), Cs = r(({ close: e, class: t }, s) => o({
1379
+ }, s)), Ss = r(({ close: e, class: t }, s) => o({
1380
1380
  class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1381
1381
  click: () => e(),
1382
1382
  animateIn: "pullRightIn",
1383
1383
  animateOut: "pullRight",
1384
1384
  role: "alert"
1385
1385
  }, s));
1386
- class po extends S {
1386
+ class yo extends S {
1387
1387
  /**
1388
1388
  * This will declare the props for the compiler.
1389
1389
  *
@@ -1407,10 +1407,10 @@ class po extends S {
1407
1407
  */
1408
1408
  render() {
1409
1409
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1410
- return a ? ks({
1410
+ return a ? Cs({
1411
1411
  href: a,
1412
1412
  class: `${t} ${s}`
1413
- }, l) : Cs({
1413
+ }, l) : Ss({
1414
1414
  close: this.close.bind(this),
1415
1415
  class: `${t} ${s}`
1416
1416
  }, l);
@@ -1460,7 +1460,7 @@ class po extends S {
1460
1460
  ]),
1461
1461
  o({ class: "flex flex-auto flex-col" }, [
1462
1462
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1463
- this.title && vs(this.title)
1463
+ this.title && ks(this.title)
1464
1464
  ]),
1465
1465
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1466
1466
  (this.primary || this.secondary) && me({ class: "margin-top-24 flex align-center" }, this.getButtons())
@@ -1489,12 +1489,12 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1489
1489
  onState: ["method", { active: e }],
1490
1490
  dataSet: ["method", ["state", e, "active"]],
1491
1491
  click: (n, { state: a }) => {
1492
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ss(e);
1492
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), $s(e);
1493
1493
  }
1494
1494
  }, [
1495
1495
  x({}, s),
1496
1496
  u(t)
1497
- ])), Ss = (e) => {
1497
+ ])), $s = (e) => {
1498
1498
  const t = document.documentElement;
1499
1499
  if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Re && !Re("(prefers-color-scheme: " + e + ")").matches) {
1500
1500
  t.classList.add(e);
@@ -1502,7 +1502,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1502
1502
  }
1503
1503
  const s = e === "light" ? "dark" : "light";
1504
1504
  t.classList.remove(s);
1505
- }, yo = P(
1505
+ }, wo = M(
1506
1506
  {
1507
1507
  /**
1508
1508
  * This will render the component.
@@ -1529,7 +1529,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1529
1529
  };
1530
1530
  }
1531
1531
  }
1532
- ), wo = O(
1532
+ ), vo = N(
1533
1533
  {
1534
1534
  /**
1535
1535
  * The initial state of the Toggle.
@@ -1581,11 +1581,11 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1581
1581
  ]);
1582
1582
  }
1583
1583
  }
1584
- ), $s = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : os({
1584
+ ), Ds = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : ls({
1585
1585
  src: e,
1586
1586
  alt: t,
1587
1587
  class: "rounded-full"
1588
- })), Ds = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), nt = (e) => !e || e.length < 2 ? e : Ds(e), Is = (e) => u([e, (t, s) => {
1588
+ })), Is = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), nt = (e) => !e || e.length < 2 ? e : Is(e), Ts = (e) => u([e, (t, s) => {
1589
1589
  s.textContent = nt(t);
1590
1590
  }]), je = {
1591
1591
  xs: "h-6 w-6",
@@ -1607,7 +1607,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1607
1607
  "3xl": "text-4xl",
1608
1608
  "4xl": "text-5xl",
1609
1609
  default: "text-base"
1610
- }, Ts = (e) => je[e] || je.default, Ms = (e) => Ee[e] || Ee.default, Ps = (e, t = null, s = "md") => {
1610
+ }, Ps = (e) => je[e] || je.default, Ms = (e) => Ee[e] || Ee.default, Bs = (e, t = null, s = "md") => {
1611
1611
  const n = nt(String(e)), a = Ms(s);
1612
1612
  return o(
1613
1613
  {
@@ -1618,21 +1618,21 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1618
1618
  `
1619
1619
  },
1620
1620
  [
1621
- t ? Is(t) : u({ class: "uppercase" }, n)
1621
+ t ? Ts(t) : u({ class: "uppercase" }, n)
1622
1622
  ]
1623
1623
  );
1624
- }, Bs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1625
- const l = Ts(a);
1624
+ }, zs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1625
+ const l = Ps(a);
1626
1626
  return o(
1627
1627
  {
1628
1628
  class: `relative flex items-center justify-center ${l}`
1629
1629
  },
1630
1630
  [
1631
- $s({ src: e, alt: t }),
1632
- Ps(s, n, a)
1631
+ Ds({ src: e, alt: t }),
1632
+ Bs(s, n, a)
1633
1633
  ]
1634
1634
  );
1635
- }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, vo = P(
1635
+ }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, ko = M(
1636
1636
  {
1637
1637
  /**
1638
1638
  * Get the initial state for the component.
@@ -1688,7 +1688,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1688
1688
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1689
1689
  }
1690
1690
  }, [
1691
- M("loaded", (s) => s === !1 || He(this.src) ? H({
1691
+ P("loaded", (s) => s === !1 || He(this.src) ? H({
1692
1692
  htmlFor: e,
1693
1693
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1694
1694
  }, [
@@ -1703,7 +1703,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1703
1703
  ]);
1704
1704
  }
1705
1705
  }
1706
- ), ko = P(
1706
+ ), Co = M(
1707
1707
  {
1708
1708
  /**
1709
1709
  * Get the initial state for the component.
@@ -1759,7 +1759,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1759
1759
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1760
1760
  }
1761
1761
  }, [
1762
- M(
1762
+ P(
1763
1763
  "loaded",
1764
1764
  (s) => s ? ge({
1765
1765
  // @ts-ignore
@@ -1785,7 +1785,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1785
1785
  this.input = null;
1786
1786
  }
1787
1787
  }
1788
- ), zs = (e, t) => Ke(
1788
+ ), Os = (e, t) => Ke(
1789
1789
  {
1790
1790
  href: e,
1791
1791
  "aria-current": t === "Breadcrumb" && "page",
@@ -1793,14 +1793,14 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1793
1793
  class: "text-muted-foreground font-medium hover:text-foreground"
1794
1794
  },
1795
1795
  [u(t)]
1796
- ), Os = () => x({
1796
+ ), Ns = () => x({
1797
1797
  class: "mx-3 text-muted-foreground",
1798
1798
  "aria-hidden": !0,
1799
1799
  size: "xs"
1800
- }, h.chevron.single.right), Ns = (e) => o({ class: "flex items-center" }, [
1801
- e.href ? zs(e.href, e.label) : u(e.label),
1802
- e.separator && Os()
1803
- ]), Co = P(
1800
+ }, h.chevron.single.right), Fs = (e) => o({ class: "flex items-center" }, [
1801
+ e.href ? Os(e.href, e.label) : u(e.label),
1802
+ e.separator && Ns()
1803
+ ]), So = M(
1804
1804
  {
1805
1805
  /**
1806
1806
  * Set initial data
@@ -1808,7 +1808,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1808
1808
  * @returns {Data}
1809
1809
  */
1810
1810
  setData() {
1811
- return new z({
1811
+ return new O({
1812
1812
  // @ts-ignore
1813
1813
  items: this.items || []
1814
1814
  });
@@ -1829,7 +1829,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1829
1829
  o({
1830
1830
  role: "list",
1831
1831
  class: "flex items-center",
1832
- for: ["items", (t, s) => Ns({
1832
+ for: ["items", (t, s) => Fs({
1833
1833
  href: t.href,
1834
1834
  label: t.label,
1835
1835
  separator: s < e
@@ -1848,7 +1848,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1848
1848
  "2xl": "h-16 w-16",
1849
1849
  "3xl": "h-24 w-24",
1850
1850
  default: "h-4 w-4"
1851
- }, Fs = (e) => _e[e] || _e.default, Ls = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1851
+ }, Ls = (e) => _e[e] || _e.default, As = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1852
1852
  u({
1853
1853
  class: "block w-full h-full rounded-full transition-colors",
1854
1854
  onSet: ["activeIndex", {
@@ -1859,10 +1859,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1859
1859
  n.activeIndex = e, a && a(e);
1860
1860
  }
1861
1861
  })
1862
- ]), As = (e, t) => Array.from({ length: e }, (s, n) => Ls({
1862
+ ]), Rs = (e, t) => Array.from({ length: e }, (s, n) => As({
1863
1863
  index: n,
1864
1864
  size: t
1865
- })), So = P(
1865
+ })), $o = M(
1866
1866
  {
1867
1867
  /**
1868
1868
  * Defines component data (props).
@@ -1870,7 +1870,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1870
1870
  * @returns {Data}
1871
1871
  */
1872
1872
  setData() {
1873
- return new z({
1873
+ return new O({
1874
1874
  // @ts-ignore
1875
1875
  count: this.count || 4,
1876
1876
  // total dots
@@ -1884,7 +1884,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1884
1884
  * @returns {object}
1885
1885
  */
1886
1886
  render() {
1887
- const e = this.gap || "gap-2", t = Fs(this.size || "sm"), s = As(this.data.count, t);
1887
+ const e = this.gap || "gap-2", t = Ls(this.size || "sm"), s = Rs(this.data.count, t);
1888
1888
  return o(
1889
1889
  { class: "flex justify-center items-center py-2" },
1890
1890
  [
@@ -1893,7 +1893,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1893
1893
  );
1894
1894
  }
1895
1895
  }
1896
- ), Rs = ({ toggleDropdown: e }) => v(
1896
+ ), js = ({ toggleDropdown: e }) => v(
1897
1897
  {
1898
1898
  cache: "button",
1899
1899
  class: "relative z-2 inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border bg-input hover:bg-muted h-10 px-4 py-2 justify-between",
@@ -1903,27 +1903,27 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1903
1903
  u({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1904
1904
  x({ size: "sm" }, h.chevron.upDown)
1905
1905
  ]
1906
- ), js = (e, t, s) => pe({
1906
+ ), Es = (e, t, s) => pe({
1907
1907
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1908
1908
  click: () => t(e),
1909
1909
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1910
1910
  }, [
1911
1911
  e.icon && u({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1912
1912
  u({ class: "text-base font-normal" }, e.label)
1913
- ]), Es = (e, t) => o({ class: "w-full border rounded-md" }, [
1914
- ee({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => js(s, e, t)] })
1915
- ]), Hs = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1916
- M(
1913
+ ]), Hs = (e, t) => o({ class: "w-full border rounded-md" }, [
1914
+ ee({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Es(s, e, t)] })
1915
+ ]), _s = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1916
+ P(
1917
1917
  "open",
1918
1918
  (s, n, a) => s ? new ne({
1919
1919
  cache: "dropdown",
1920
1920
  parent: a,
1921
1921
  button: a.button
1922
1922
  }, [
1923
- Es(e, t)
1923
+ Hs(e, t)
1924
1924
  ]) : null
1925
1925
  )
1926
- ]), $o = P(
1926
+ ]), Do = M(
1927
1927
  {
1928
1928
  /**
1929
1929
  * This will set up the data.
@@ -1931,7 +1931,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1931
1931
  * @returns {Data}
1932
1932
  */
1933
1933
  setData() {
1934
- return new z({
1934
+ return new O({
1935
1935
  // @ts-ignore
1936
1936
  items: this.items || []
1937
1937
  });
@@ -2004,8 +2004,8 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2004
2004
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2005
2005
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2006
2006
  // @ts-ignore
2007
- Rs({ toggleDropdown: this.toggleDropdown.bind(this) }),
2008
- Hs({
2007
+ js({ toggleDropdown: this.toggleDropdown.bind(this) }),
2008
+ _s({
2009
2009
  // @ts-ignore
2010
2010
  state: this.state,
2011
2011
  // @ts-ignore
@@ -2031,15 +2031,15 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2031
2031
  click: t,
2032
2032
  icon: e,
2033
2033
  "aria-label": s
2034
- }), _s = ({ click: e }) => at({
2034
+ }), Us = ({ click: e }) => at({
2035
2035
  icon: h.circleMinus,
2036
2036
  click: e,
2037
2037
  ariaLabel: "Decrement"
2038
- }), Us = ({ click: e }) => at({
2038
+ }), Ys = ({ click: e }) => at({
2039
2039
  icon: h.circlePlus,
2040
2040
  click: e,
2041
2041
  ariaLabel: "Increment"
2042
- }), Ys = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
2042
+ }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
2043
2043
  value: ["[[count]]", a],
2044
2044
  bind: e,
2045
2045
  blur: (l, { state: i }) => {
@@ -2052,7 +2052,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2052
2052
  max: s,
2053
2053
  type: "number",
2054
2054
  "aria-label": "Counter"
2055
- })), Do = O(
2055
+ })), Io = N(
2056
2056
  {
2057
2057
  /**
2058
2058
  * Initial state for the counter component.
@@ -2075,18 +2075,18 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2075
2075
  render() {
2076
2076
  const e = this.class ?? "";
2077
2077
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2078
- _s({ click: () => this.state.decrement("count") }),
2079
- Ys({
2078
+ Us({ click: () => this.state.decrement("count") }),
2079
+ Vs({
2080
2080
  bind: this.bind,
2081
2081
  readonly: this.readonly,
2082
2082
  min: this.min,
2083
2083
  max: this.max
2084
2084
  }),
2085
- Us({ click: () => this.state.increment("count") })
2085
+ Ys({ click: () => this.state.increment("count") })
2086
2086
  ]);
2087
2087
  }
2088
2088
  }
2089
- ), Vs = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2089
+ ), Ws = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2090
2090
  { class: "grid grid-cols-3 gap-2" },
2091
2091
  te.monthNames.map(
2092
2092
  (n, a) => b(
@@ -2100,9 +2100,9 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2100
2100
  n.substring(0, 3)
2101
2101
  )
2102
2102
  )
2103
- ), B = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Ws = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), R = (e, t, s) => `${e}-${B(t + 1)}-${B(s)}`, qs = (e) => e ? "bg-accent text-primary" : "", Gs = (e) => e ? "text-muted-foreground opacity-50" : "", Ks = (e, t) => e === t, Qs = (e, t) => Ks(e, t) ? "bg-primary text-primary-foreground" : "", Js = (e, t, s, n) => {
2104
- const a = Qs(t, n);
2105
- return a || (e ? qs(e) : s ? Gs(s) : "text-foreground");
2103
+ ), z = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), qs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), R = (e, t, s) => `${e}-${z(t + 1)}-${z(s)}`, Gs = (e) => e ? "bg-accent text-primary" : "", Ks = (e) => e ? "text-muted-foreground opacity-50" : "", Qs = (e, t) => e === t, Js = (e, t) => Qs(e, t) ? "bg-primary text-primary-foreground" : "", Xs = (e, t, s, n) => {
2104
+ const a = Js(t, n);
2105
+ return a || (e ? Gs(e) : s ? Ks(s) : "text-foreground");
2106
2106
  }, ie = (e) => {
2107
2107
  const {
2108
2108
  day: t,
@@ -2117,7 +2117,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2117
2117
  {
2118
2118
  class: `
2119
2119
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
2120
- ${Js(a, s, l, n)}
2120
+ ${Xs(a, s, l, n)}
2121
2121
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2122
2122
  disabled:pointer-events-none disabled:opacity-50
2123
2123
  `,
@@ -2128,10 +2128,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2128
2128
  },
2129
2129
  t.toString()
2130
2130
  );
2131
- }, ce = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Xs = (e, t, s, n = !1) => {
2131
+ }, ce = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Zs = (e, t, s, n = !1) => {
2132
2132
  const { year: a, month: l } = e, i = R(a, l, e.date), c = new Date(a, l, 1).getDay(), f = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), w = [], q = l === 0 ? 11 : l - 1, U = l === 0 ? a - 1 : a;
2133
2133
  for (let d = c - 1; d >= 0; d--) {
2134
- const y = m - d, I = ce(y, q, U, t), T = new Date(U, q, y) < new Date(t.year, t.month, t.date), F = n && T;
2134
+ const y = m - d, I = ce(y, q, U, t), T = new Date(U, q, y) < new Date(t.year, t.month, t.date), L = n && T;
2135
2135
  w.push(
2136
2136
  ie({
2137
2137
  day: y,
@@ -2140,7 +2140,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2140
2140
  isToday: I,
2141
2141
  isOutsideMonth: !0,
2142
2142
  select: s,
2143
- disabled: F
2143
+ disabled: L
2144
2144
  })
2145
2145
  );
2146
2146
  }
@@ -2187,16 +2187,16 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2187
2187
  variant: "icon",
2188
2188
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2189
2189
  }
2190
- ), Zs = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2190
+ ), en = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2191
2191
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2192
2192
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2193
2193
  Ue({ label: "Previous", click: n }),
2194
2194
  Ue({ label: "Next", click: s })
2195
- ]), en = (e) => o(
2195
+ ]), tn = (e) => o(
2196
2196
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2197
2197
  e
2198
- ), tn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(en), sn = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2199
- Zs({
2198
+ ), sn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(tn), nn = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2199
+ en({
2200
2200
  onMonthClick: e.onMonthClick,
2201
2201
  onYearClick: e.onYearClick,
2202
2202
  next: e.next,
@@ -2207,10 +2207,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2207
2207
  onSet: [
2208
2208
  "currentDate",
2209
2209
  () => [
2210
- o({ class: "grid grid-cols-7" }, tn()),
2210
+ o({ class: "grid grid-cols-7" }, sn()),
2211
2211
  o(
2212
2212
  { class: "grid grid-cols-7" },
2213
- Xs(
2213
+ Zs(
2214
2214
  e.current,
2215
2215
  e.today,
2216
2216
  e.select,
@@ -2220,7 +2220,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2220
2220
  ]
2221
2221
  ]
2222
2222
  })
2223
- ]), nn = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2223
+ ]), an = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2224
2224
  const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
2225
2225
  return o(
2226
2226
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2238,7 +2238,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2238
2238
  )
2239
2239
  );
2240
2240
  };
2241
- class an extends S {
2241
+ class on extends S {
2242
2242
  /**
2243
2243
  * This will declare the props for the compiler.
2244
2244
  *
@@ -2254,7 +2254,7 @@ class an extends S {
2254
2254
  * @returns {Date}
2255
2255
  */
2256
2256
  getSelectedDate(t) {
2257
- const s = this.selectedDate ? new Date(Ws(this.selectedDate)) : t;
2257
+ const s = this.selectedDate ? new Date(qs(this.selectedDate)) : t;
2258
2258
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2259
2259
  }
2260
2260
  /**
@@ -2264,7 +2264,7 @@ class an extends S {
2264
2264
  */
2265
2265
  setData() {
2266
2266
  const t = /* @__PURE__ */ new Date(), s = this.getSelectedDate(t), n = s.getMonth();
2267
- return new z({
2267
+ return new O({
2268
2268
  monthName: this.getMonthName(n),
2269
2269
  currentDate: `${s.getFullYear()}-${n + 1}-${s.getDate()}`,
2270
2270
  current: {
@@ -2329,7 +2329,7 @@ class an extends S {
2329
2329
  */
2330
2330
  setCurrentDate(t, s, n = null) {
2331
2331
  const a = this.data;
2332
- a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = B(n)), a.currentDate = `${s}-${B(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2332
+ a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = z(n)), a.currentDate = `${s}-${z(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2333
2333
  }
2334
2334
  /**
2335
2335
  * This will select a date.
@@ -2348,10 +2348,10 @@ class an extends S {
2348
2348
  */
2349
2349
  render() {
2350
2350
  return o({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2351
- M("view", (t) => {
2351
+ P("view", (t) => {
2352
2352
  switch (t) {
2353
2353
  case "months":
2354
- return Vs(
2354
+ return Ws(
2355
2355
  {
2356
2356
  // @ts-ignore
2357
2357
  currentMonth: this.data.current.month,
@@ -2363,7 +2363,7 @@ class an extends S {
2363
2363
  }
2364
2364
  );
2365
2365
  case "years":
2366
- return nn(
2366
+ return an(
2367
2367
  {
2368
2368
  // @ts-ignore
2369
2369
  currentMonth: this.data.current.month,
@@ -2375,7 +2375,7 @@ class an extends S {
2375
2375
  }
2376
2376
  );
2377
2377
  default:
2378
- return sn({
2378
+ return nn({
2379
2379
  // @ts-ignore
2380
2380
  current: this.data.current,
2381
2381
  // @ts-ignore
@@ -2396,33 +2396,33 @@ class an extends S {
2396
2396
  ]);
2397
2397
  }
2398
2398
  }
2399
- const on = (e) => {
2399
+ const ln = (e) => {
2400
2400
  let t = "";
2401
2401
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += "/" + e.substring(2, 4), e.length > 4 && (t += "/" + e.substring(4, 8)))), t;
2402
- }, ln = (e) => {
2402
+ }, rn = (e) => {
2403
2403
  if (e.length !== 8)
2404
2404
  return null;
2405
2405
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2406
2406
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2407
- }, rn = ({ bind: e, required: t }) => p({
2407
+ }, cn = ({ bind: e, required: t }) => p({
2408
2408
  cache: "input",
2409
2409
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2410
2410
  bind: e,
2411
2411
  required: t
2412
- }), cn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2412
+ }), dn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2413
2413
  cache: "dateInput",
2414
2414
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2415
2415
  placeholder: e || "mm/dd/yyyy",
2416
2416
  input: t,
2417
2417
  focus: s,
2418
2418
  onState: ["selectedDate", (n) => n ? te.format("standard", n) : ""]
2419
- }), dn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2419
+ }), un = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2420
2420
  {
2421
2421
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
2422
2422
  },
2423
2423
  [
2424
- rn({ bind: e, required: t }),
2425
- cn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2424
+ cn({ bind: e, required: t }),
2425
+ dn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2426
2426
  v(
2427
2427
  {
2428
2428
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2433,20 +2433,20 @@ const on = (e) => {
2433
2433
  ]
2434
2434
  )
2435
2435
  ]
2436
- ), un = ({ handleDateSelect: e, blockPriorDates: t }) => ye(
2436
+ ), hn = ({ handleDateSelect: e, blockPriorDates: t }) => ye(
2437
2437
  (s, n, a) => new ne({
2438
2438
  cache: "dropdown",
2439
2439
  parent: a,
2440
2440
  button: a.panel,
2441
2441
  size: "fit"
2442
2442
  }, [
2443
- new an({
2443
+ new on({
2444
2444
  selectedDate: a.state.selectedDate,
2445
2445
  selectedCallBack: e,
2446
2446
  blockPriorDates: t
2447
2447
  })
2448
2448
  ])
2449
- ), Io = O(
2449
+ ), To = N(
2450
2450
  {
2451
2451
  /**
2452
2452
  * The initial state of the DatePicker.
@@ -2475,8 +2475,8 @@ const on = (e) => {
2475
2475
  */
2476
2476
  handleInputChange(e) {
2477
2477
  const s = e.target.value.replace(/\D/g, "");
2478
- e.target.value = on(s);
2479
- const n = ln(s);
2478
+ e.target.value = ln(s);
2479
+ const n = rn(s);
2480
2480
  n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2481
2481
  },
2482
2482
  /**
@@ -2513,7 +2513,7 @@ const on = (e) => {
2513
2513
  return o(
2514
2514
  { class: "relative w-full max-w-[320px]" },
2515
2515
  [
2516
- dn({
2516
+ un({
2517
2517
  toggleOpen: this.toggleOpen.bind(this),
2518
2518
  bind: this.bind,
2519
2519
  required: this.required,
@@ -2521,7 +2521,7 @@ const on = (e) => {
2521
2521
  handleInputFocus: this.handleInputFocus.bind(this),
2522
2522
  placeholder: this.placeholder
2523
2523
  }),
2524
- un({
2524
+ hn({
2525
2525
  handleDateSelect: this.handleDateSelect.bind(this),
2526
2526
  blockPriorDates: this.blockPriorDates || !1
2527
2527
  })
@@ -2542,15 +2542,15 @@ const on = (e) => {
2542
2542
  variant: "icon",
2543
2543
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2544
2544
  }
2545
- ), hn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2545
+ ), fn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2546
2546
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2547
2547
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2548
2548
  Ye({ label: "Previous", click: n }),
2549
2549
  Ye({ label: "Next", click: s })
2550
- ]), fn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), gn = () => o(
2550
+ ]), gn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), mn = () => o(
2551
2551
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2552
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(fn)
2553
- ), mn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2552
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(gn)
2553
+ ), bn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2554
2554
  let f = "ghost", m = "";
2555
2555
  return n || a ? (f = "default", m = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (m = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (m += " opacity-50 cursor-not-allowed"), i && (m += " text-muted-foreground opacity-50"), b(
2556
2556
  {
@@ -2563,10 +2563,10 @@ const on = (e) => {
2563
2563
  },
2564
2564
  e.toString()
2565
2565
  );
2566
- }, bn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2566
+ }, xn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2567
2567
  const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, q = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
2568
2568
  for (let g = i - 1; g >= 0; g--) {
2569
- const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), F = I < T, G = s && F, K = a === y, Q = l === y, ut = a && l && y > a && y < l;
2569
+ const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), L = I < T, G = s && L, K = a === y, Q = l === y, ut = a && l && y > a && y < l;
2570
2570
  f.push({
2571
2571
  day: d,
2572
2572
  iso: y,
@@ -2579,11 +2579,11 @@ const on = (e) => {
2579
2579
  });
2580
2580
  }
2581
2581
  for (let g = 1; g <= c; g++) {
2582
- const d = R(t.year, t.month, g), y = new Date(t.year, t.month, g), I = new Date(e.year, e.month, e.date), T = y < I, F = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2582
+ const d = R(t.year, t.month, g), y = new Date(t.year, t.month, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2583
2583
  f.push({
2584
2584
  day: g,
2585
2585
  iso: d,
2586
- disabled: F,
2586
+ disabled: L,
2587
2587
  isStart: G,
2588
2588
  isEnd: K,
2589
2589
  isBetween: Q,
@@ -2595,11 +2595,11 @@ const on = (e) => {
2595
2595
  }
2596
2596
  const $e = (7 - f.length % 7) % 7;
2597
2597
  for (let g = 1; g <= $e; g++) {
2598
- const d = R(Y, U, g), y = new Date(Y, U, g), I = new Date(e.year, e.month, e.date), T = y < I, F = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2598
+ const d = R(Y, U, g), y = new Date(Y, U, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2599
2599
  f.push({
2600
2600
  day: g,
2601
2601
  iso: d,
2602
- disabled: F,
2602
+ disabled: L,
2603
2603
  isStart: G,
2604
2604
  isEnd: K,
2605
2605
  isBetween: Q,
@@ -2610,7 +2610,7 @@ const on = (e) => {
2610
2610
  return o(
2611
2611
  { class: "grid grid-cols-7 gap-1" },
2612
2612
  f.map(
2613
- (g, d) => mn({
2613
+ (g, d) => bn({
2614
2614
  day: g.day,
2615
2615
  iso: g.iso,
2616
2616
  disabled: g.disabled,
@@ -2622,8 +2622,8 @@ const on = (e) => {
2622
2622
  })
2623
2623
  )
2624
2624
  );
2625
- }, xn = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2626
- hn({
2625
+ }, pn = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2626
+ fn({
2627
2627
  // @ts-ignore
2628
2628
  onMonthClick: e.onMonthClick,
2629
2629
  // @ts-ignore
@@ -2638,8 +2638,8 @@ const on = (e) => {
2638
2638
  onSet: [
2639
2639
  "currentDate",
2640
2640
  () => [
2641
- gn(),
2642
- bn({
2641
+ mn(),
2642
+ xn({
2643
2643
  // @ts-ignore
2644
2644
  today: e.today,
2645
2645
  // @ts-ignore
@@ -2652,7 +2652,7 @@ const on = (e) => {
2652
2652
  ]
2653
2653
  ]
2654
2654
  })
2655
- ])), pn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2655
+ ])), yn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2656
2656
  { class: "grid grid-cols-3 gap-2" },
2657
2657
  te.monthNames.map(
2658
2658
  (n, a) => b(
@@ -2666,7 +2666,7 @@ const on = (e) => {
2666
2666
  n.substring(0, 3)
2667
2667
  )
2668
2668
  )
2669
- ), yn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2669
+ ), wn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2670
2670
  J("selecting", (l) => b({
2671
2671
  click: n,
2672
2672
  variant: l === "start" ? "primary" : "outline",
@@ -2681,10 +2681,10 @@ const on = (e) => {
2681
2681
  }, [
2682
2682
  o({ class: "font-medium" }, Ve("current.end", "End Date"))
2683
2683
  ]))
2684
- ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : wn(s)], wn = (e) => {
2684
+ ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : vn(s)], vn = (e) => {
2685
2685
  const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
2686
2686
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2687
- }, vn = ({ currentYear: e, onSelect: t }) => {
2687
+ }, kn = ({ currentYear: e, onSelect: t }) => {
2688
2688
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2689
2689
  return o(
2690
2690
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2702,7 +2702,7 @@ const on = (e) => {
2702
2702
  )
2703
2703
  );
2704
2704
  };
2705
- class kn extends S {
2705
+ class Cn extends S {
2706
2706
  /**
2707
2707
  * Declare compiler props.
2708
2708
  *
@@ -2718,14 +2718,14 @@ class kn extends S {
2718
2718
  */
2719
2719
  setData() {
2720
2720
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, n = s.getMonth(), a = s.getFullYear();
2721
- return new z({
2721
+ return new O({
2722
2722
  today: {
2723
2723
  date: t.getDate(),
2724
2724
  month: t.getMonth(),
2725
2725
  year: t.getFullYear()
2726
2726
  },
2727
2727
  monthName: this.getMonthName(n),
2728
- currentData: `${s.getFullYear()}-${B(s.getMonth() + 1)}-${B(s.getDate())}`,
2728
+ currentData: `${s.getFullYear()}-${z(s.getMonth() + 1)}-${z(s.getDate())}`,
2729
2729
  current: {
2730
2730
  date: t.getDate(),
2731
2731
  month: n,
@@ -2789,7 +2789,7 @@ class kn extends S {
2789
2789
  */
2790
2790
  setCurrent({ month: t, year: s, date: n = null }) {
2791
2791
  const a = this.data.current;
2792
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${B(t + 1)}-${B(a.date)}`;
2792
+ a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${z(t + 1)}-${z(a.date)}`;
2793
2793
  }
2794
2794
  /**
2795
2795
  * Render the range calendar.
@@ -2799,7 +2799,7 @@ class kn extends S {
2799
2799
  render() {
2800
2800
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2801
2801
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2802
- yn({
2802
+ wn({
2803
2803
  start: a,
2804
2804
  end: l,
2805
2805
  selecting: n,
@@ -2810,10 +2810,10 @@ class kn extends S {
2810
2810
  i.preventDefault(), i.stopPropagation(), this.data.selecting = "end";
2811
2811
  }
2812
2812
  }),
2813
- M("view", (i) => {
2813
+ P("view", (i) => {
2814
2814
  switch (i) {
2815
2815
  case "months":
2816
- return pn(
2816
+ return yn(
2817
2817
  {
2818
2818
  currentMonth: s.month,
2819
2819
  currentYear: s.year,
@@ -2823,7 +2823,7 @@ class kn extends S {
2823
2823
  }
2824
2824
  );
2825
2825
  case "years":
2826
- return vn(
2826
+ return kn(
2827
2827
  {
2828
2828
  currentYear: s.year,
2829
2829
  onSelect: (c) => {
@@ -2832,7 +2832,7 @@ class kn extends S {
2832
2832
  }
2833
2833
  );
2834
2834
  default:
2835
- return xn({
2835
+ return pn({
2836
2836
  // @ts-ignore
2837
2837
  monthName: this.data.monthName,
2838
2838
  year: s.year,
@@ -2860,35 +2860,35 @@ class kn extends S {
2860
2860
  ]);
2861
2861
  }
2862
2862
  }
2863
- const Cn = ({ bind: e, required: t }) => p({
2863
+ const Sn = ({ bind: e, required: t }) => p({
2864
2864
  cache: "input",
2865
2865
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2866
2866
  bind: e,
2867
2867
  required: t
2868
- }), Sn = ({ bind: e, required: t, toggleOpen: s }) => v({
2868
+ }), $n = ({ bind: e, required: t, toggleOpen: s }) => v({
2869
2869
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
2870
2870
  click: s
2871
2871
  }, [
2872
- Cn({ bind: e, required: t }),
2872
+ Sn({ bind: e, required: t }),
2873
2873
  W(({ state: n }) => [
2874
2874
  u(V.date(["[[start]]", n], "Start Date")),
2875
2875
  u(" - "),
2876
2876
  u(V.date(["[[end]]", n], "End Date"))
2877
2877
  ]),
2878
2878
  E({ html: h.calendar.days })
2879
- ]), $n = ({ handleDateSelect: e, blockPriorDates: t }) => ye((s, n, a) => new ne({
2879
+ ]), Dn = ({ handleDateSelect: e, blockPriorDates: t }) => ye((s, n, a) => new ne({
2880
2880
  cache: "dropdown",
2881
2881
  parent: a,
2882
2882
  button: a.panel,
2883
2883
  size: "xl"
2884
2884
  }, [
2885
- new kn({
2885
+ new Cn({
2886
2886
  startDate: a.state.start,
2887
2887
  endDate: a.state.end,
2888
2888
  onRangeSelect: e,
2889
2889
  blockPriorDates: t
2890
2890
  })
2891
- ])), To = O(
2891
+ ])), Po = N(
2892
2892
  {
2893
2893
  /**
2894
2894
  * The initial state of the DateRangePicker.
@@ -2924,12 +2924,12 @@ const Cn = ({ bind: e, required: t }) => p({
2924
2924
  this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2925
2925
  };
2926
2926
  return o({ class: "relative w-full max-w-[320px]" }, [
2927
- Sn({
2927
+ $n({
2928
2928
  toggleOpen: e,
2929
2929
  bind: this.bind,
2930
2930
  required: this.required
2931
2931
  }),
2932
- $n({
2932
+ Dn({
2933
2933
  handleDateSelect: t,
2934
2934
  blockPriorDates: this.blockPriorDates || !1
2935
2935
  })
@@ -2937,11 +2937,11 @@ const Cn = ({ bind: e, required: t }) => p({
2937
2937
  }
2938
2938
  }
2939
2939
  );
2940
- function Dn(e) {
2940
+ function In(e) {
2941
2941
  let t = "";
2942
2942
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2943
2943
  }
2944
- function In(e) {
2944
+ function Tn(e) {
2945
2945
  if (e.length < 4)
2946
2946
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2947
2947
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2955,7 +2955,7 @@ function In(e) {
2955
2955
  meridian: a
2956
2956
  };
2957
2957
  }
2958
- function Tn({ bind: e, required: t }) {
2958
+ function Pn({ bind: e, required: t }) {
2959
2959
  return p({
2960
2960
  cache: "input",
2961
2961
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -2973,13 +2973,13 @@ function Mn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2973
2973
  onState: ["selectedTime", (n) => n || ""]
2974
2974
  });
2975
2975
  }
2976
- function Pn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2976
+ function Bn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2977
2977
  return o(
2978
2978
  {
2979
2979
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
2980
2980
  },
2981
2981
  [
2982
- Tn({ bind: e, required: t }),
2982
+ Pn({ bind: e, required: t }),
2983
2983
  Mn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2984
2984
  v(
2985
2985
  {
@@ -3007,7 +3007,7 @@ function de({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
3007
3007
  })
3008
3008
  );
3009
3009
  }
3010
- function Bn({ handleTimeSelect: e }) {
3010
+ function zn({ handleTimeSelect: e }) {
3011
3011
  return ye(
3012
3012
  (t, s, n) => new ne(
3013
3013
  {
@@ -3067,7 +3067,7 @@ function We(e) {
3067
3067
  meridian: l
3068
3068
  });
3069
3069
  }
3070
- const Mo = O(
3070
+ const Mo = N(
3071
3071
  {
3072
3072
  /**
3073
3073
  * The initial shallow state of the TimePicker.
@@ -3115,8 +3115,8 @@ const Mo = O(
3115
3115
  * @param {Event} e
3116
3116
  */
3117
3117
  handleInputChange(e) {
3118
- let t = e.target.value.replace(/[^\d]/g, ""), s = Dn(t);
3119
- const n = In(t);
3118
+ let t = e.target.value.replace(/[^\d]/g, ""), s = In(t);
3119
+ const n = Tn(t);
3120
3120
  n.formattedTime && (s = n.formattedTime, this.state.set({
3121
3121
  hour: n.hour,
3122
3122
  minute: n.minute,
@@ -3152,7 +3152,7 @@ const Mo = O(
3152
3152
  return o(
3153
3153
  { class: "relative w-full max-w-[320px]" },
3154
3154
  [
3155
- Pn({
3155
+ Bn({
3156
3156
  toggleOpen: this.toggleOpen.bind(this),
3157
3157
  bind: this.bind,
3158
3158
  required: this.required,
@@ -3160,18 +3160,18 @@ const Mo = O(
3160
3160
  handleInputFocus: this.handleInputFocus.bind(this),
3161
3161
  placeholder: this.placeholder
3162
3162
  }),
3163
- Bn({
3163
+ zn({
3164
3164
  handleTimeSelect: this.handleTimeSelect.bind(this)
3165
3165
  })
3166
3166
  ]
3167
3167
  );
3168
3168
  }
3169
3169
  }
3170
- ), zn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3170
+ ), On = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3171
3171
  x({ size: "lg" }, e)
3172
- ]), On = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3172
+ ]), Nn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3173
3173
  X({ class: "text-lg font-semibold" }, e)
3174
- ]), Po = r((e, t) => bt(
3174
+ ]), Bo = r((e, t) => bt(
3175
3175
  {
3176
3176
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3177
3177
  rounded-lg flex flex-auto flex-col
@@ -3184,10 +3184,10 @@ const Mo = O(
3184
3184
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3185
3185
  // Icon and content
3186
3186
  // @ts-ignore
3187
- e.icon && zn(e.icon, e.iconColor),
3187
+ e.icon && On(e.icon, e.iconColor),
3188
3188
  o({ class: "flex flex-auto flex-col gap-4" }, [
3189
3189
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3190
- On(e),
3190
+ Nn(e),
3191
3191
  // @ts-ignore
3192
3192
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3193
3193
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
@@ -3197,7 +3197,7 @@ const Mo = O(
3197
3197
  ])
3198
3198
  ])
3199
3199
  ]
3200
- )), Bo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3200
+ )), zo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3201
3201
  st({ class: "flex flex-auto flex-col" }, [
3202
3202
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3203
3203
  o({ class: "flex flex-auto items-center justify-center" }, [
@@ -3228,12 +3228,12 @@ r(({ value: e, label: t }) => v({
3228
3228
  dataSet: ["performance", ["state", e, "active"]],
3229
3229
  click: (s, { state: n }) => n.performance = e
3230
3230
  }, t));
3231
- const Nn = (e, t) => {
3231
+ const Fn = (e, t) => {
3232
3232
  const s = e.toggleAllSelectedRows();
3233
3233
  t.state.checked = !s;
3234
- }, Fn = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3235
- W((t) => new Vt({ class: "mr-2", onChange: (s, n) => Nn(t, n) }))
3236
- ]), Ln = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3234
+ }, Ln = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3235
+ W((t) => new Wt({ class: "mr-2", onChange: (s, n) => Fn(t, n) }))
3236
+ ]), An = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3237
3237
  const i = e || "justify-start";
3238
3238
  return Qe({
3239
3239
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
@@ -3249,7 +3249,7 @@ const Nn = (e, t) => {
3249
3249
  class: "text-muted-foreground border-b",
3250
3250
  map: [
3251
3251
  e.headers,
3252
- (t) => t.label === "checkbox" ? Fn({ toggle: e.toggle }) : Ln({
3252
+ (t) => t.label === "checkbox" ? Ln({ toggle: e.toggle }) : An({
3253
3253
  align: t.align,
3254
3254
  sortable: t.sortable,
3255
3255
  key: t.key,
@@ -3258,7 +3258,7 @@ const Nn = (e, t) => {
3258
3258
  })
3259
3259
  ]
3260
3260
  })
3261
- ]), An = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new Ct({
3261
+ ]), Rn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new Ct({
3262
3262
  cache: "list",
3263
3263
  key: e,
3264
3264
  items: t,
@@ -3276,7 +3276,7 @@ class ot extends S {
3276
3276
  */
3277
3277
  setData() {
3278
3278
  let t = this.rows && this.rows.length > 0;
3279
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new z({
3279
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new O({
3280
3280
  selectedRows: [],
3281
3281
  // @ts-ignore
3282
3282
  hasItems: t,
@@ -3354,7 +3354,7 @@ class ot extends S {
3354
3354
  this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3355
3355
  // @ts-ignore
3356
3356
  this.customHeader ?? null,
3357
- An({
3357
+ Rn({
3358
3358
  // @ts-ignore
3359
3359
  key: this.key,
3360
3360
  // @ts-ignore
@@ -3433,7 +3433,7 @@ class ot extends S {
3433
3433
  this.data.selectedRows = [];
3434
3434
  }
3435
3435
  }
3436
- const Rn = (e) => new St({
3436
+ const jn = (e) => new St({
3437
3437
  cache: "list",
3438
3438
  loadMoreItems: e.loadMoreItems,
3439
3439
  offset: e.offset,
@@ -3446,7 +3446,7 @@ const Rn = (e) => new St({
3446
3446
  skeleton: e.skeleton,
3447
3447
  columnCount: e.columnCount
3448
3448
  });
3449
- class jn extends ot {
3449
+ class En extends ot {
3450
3450
  /**
3451
3451
  * Renders the DataTable component.
3452
3452
  *
@@ -3462,7 +3462,7 @@ class jn extends ot {
3462
3462
  this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3463
3463
  // @ts-ignore
3464
3464
  this.customHeader ?? null,
3465
- Rn({
3465
+ jn({
3466
3466
  // @ts-ignore
3467
3467
  loadMoreItems: this.loadMoreItems,
3468
3468
  // @ts-ignore
@@ -3498,7 +3498,7 @@ class jn extends ot {
3498
3498
  this.list.refresh();
3499
3499
  }
3500
3500
  }
3501
- const zo = r((e) => new jn(
3501
+ const Oo = r((e) => new En(
3502
3502
  {
3503
3503
  // @ts-ignore
3504
3504
  cache: e.cache ?? "list",
@@ -3529,7 +3529,7 @@ const zo = r((e) => new jn(
3529
3529
  // @ts-ignore
3530
3530
  skeleton: e.skeleton
3531
3531
  }
3532
- )), En = (e) => new $t({
3532
+ )), Hn = (e) => new $t({
3533
3533
  cache: "list",
3534
3534
  scrollContainer: e.scrollContainer,
3535
3535
  loadMoreItems: e.loadMoreItems,
@@ -3543,7 +3543,7 @@ const zo = r((e) => new jn(
3543
3543
  skeleton: e.skeleton,
3544
3544
  columnCount: e.columnCount
3545
3545
  });
3546
- class Hn extends ot {
3546
+ class _n extends ot {
3547
3547
  /**
3548
3548
  * Renders the DataTable component.
3549
3549
  *
@@ -3559,7 +3559,7 @@ class Hn extends ot {
3559
3559
  this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3560
3560
  // @ts-ignore
3561
3561
  this.customHeader ?? null,
3562
- En({
3562
+ Hn({
3563
3563
  // @ts-ignore
3564
3564
  scrollContainer: this.scrollContainer,
3565
3565
  // @ts-ignore
@@ -3597,7 +3597,7 @@ class Hn extends ot {
3597
3597
  this.list.refresh();
3598
3598
  }
3599
3599
  }
3600
- const Oo = r((e) => new Hn(
3600
+ const No = r((e) => new _n(
3601
3601
  {
3602
3602
  // @ts-ignore
3603
3603
  cache: e.cache ?? "list",
@@ -3630,28 +3630,28 @@ const Oo = r((e) => new Hn(
3630
3630
  // @ts-ignore
3631
3631
  skeleton: e.skeleton
3632
3632
  }
3633
- )), _n = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3633
+ )), Un = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3634
3634
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3635
3635
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3636
- ])), Un = () => o({ class: "flex items-center gap-x-1.5" }, [
3636
+ ])), Yn = () => o({ class: "flex items-center gap-x-1.5" }, [
3637
3637
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3638
3638
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3639
3639
  ]),
3640
3640
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3641
- ]), Yn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3641
+ ]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3642
3642
  u("Last seen "),
3643
3643
  yt({ datetime: e }, "3h ago")
3644
- ]), Vn = (e, t) => e === "online" ? Un() : Yn(t), Wn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3644
+ ]), Wn = (e, t) => e === "online" ? Yn() : Vn(t), qn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3645
3645
  k({ class: "text-sm leading-6 m-0" }, e),
3646
- Vn(s, t)
3647
- ])), qn = (e) => e.split(" ").map((s) => s[0]).join(""), Gn = r((e) => pe({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3646
+ Wn(s, t)
3647
+ ])), Gn = (e) => e.split(" ").map((s) => s[0]).join(""), Kn = r((e) => pe({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3648
3648
  o({ class: "flex min-w-0 gap-x-4" }, [
3649
3649
  // @ts-ignore
3650
- Bs({ src: e.image, alt: e.name, fallbackText: qn(e.name) }),
3650
+ zs({ src: e.image, alt: e.name, fallbackText: Gn(e.name) }),
3651
3651
  // @ts-ignore
3652
- _n({ name: e.name, email: e.email })
3652
+ Un({ name: e.name, email: e.email })
3653
3653
  ]),
3654
- Wn({
3654
+ qn({
3655
3655
  // @ts-ignore
3656
3656
  role: e.role,
3657
3657
  // @ts-ignore
@@ -3659,16 +3659,16 @@ const Oo = r((e) => new Hn(
3659
3659
  // @ts-ignore
3660
3660
  status: e.status
3661
3661
  })
3662
- ])), No = r((e) => new Dt({
3662
+ ])), Fo = r((e) => new Dt({
3663
3663
  cache: "list",
3664
3664
  key: "name",
3665
3665
  // @ts-ignore
3666
3666
  items: e.users,
3667
3667
  role: "list",
3668
3668
  class: "divide-y divide-border",
3669
- rowItem: Gn
3669
+ rowItem: Kn
3670
3670
  }));
3671
- class Kn extends S {
3671
+ class Qn extends S {
3672
3672
  /**
3673
3673
  * This will declare the props for the compiler.
3674
3674
  *
@@ -3729,14 +3729,14 @@ class Kn extends S {
3729
3729
  });
3730
3730
  }
3731
3731
  }
3732
- const Qn = r(({ options: e, click: t }, s) => ({
3732
+ const Jn = r(({ options: e, click: t }, s) => ({
3733
3733
  tag: "li",
3734
3734
  ...{
3735
3735
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3736
3736
  click: t
3737
3737
  },
3738
3738
  children: s
3739
- })), Jn = (e, t = null, s = !1) => [
3739
+ })), Xn = (e, t = null, s = !1) => [
3740
3740
  t && o({
3741
3741
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3742
3742
  onState: ["selected", {
@@ -3780,7 +3780,7 @@ class lt extends S {
3780
3780
  */
3781
3781
  render() {
3782
3782
  const t = !this.options && this.callBack;
3783
- return Qn(
3783
+ return Jn(
3784
3784
  { options: this.options, click: t },
3785
3785
  [
3786
3786
  this.addLink()
@@ -3794,7 +3794,7 @@ class lt extends S {
3794
3794
  * @protected
3795
3795
  */
3796
3796
  addLink() {
3797
- const t = this.options && this.options.length > 0, s = this.content || Jn(String(this.label), this.icon, t);
3797
+ const t = this.options && this.options.length > 0, s = this.content || Xn(String(this.label), this.icon, t);
3798
3798
  return this.href ? new vt(
3799
3799
  {
3800
3800
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
@@ -3804,7 +3804,7 @@ class lt extends S {
3804
3804
  exact: this.exact || !1
3805
3805
  },
3806
3806
  s
3807
- ) : new Kn({
3807
+ ) : new Qn({
3808
3808
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3809
3809
  cache: "link",
3810
3810
  checkCallBack: this.checkCallBack
@@ -3822,10 +3822,10 @@ class lt extends S {
3822
3822
  this.link.update(t);
3823
3823
  }
3824
3824
  }
3825
- const Xn = r(({ map: e }, t) => ee({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3825
+ const Zn = r(({ map: e }, t) => ee({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3826
3826
  qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3827
3827
  ]));
3828
- class Zn extends S {
3828
+ class ea extends S {
3829
3829
  /**
3830
3830
  * This will declare the props for the compiler.
3831
3831
  *
@@ -3874,7 +3874,7 @@ class Zn extends S {
3874
3874
  */
3875
3875
  addGroup(t) {
3876
3876
  const s = this.mapOptions(t.options);
3877
- return Xn({ map: s }, t.group);
3877
+ return Zn({ map: s }, t.group);
3878
3878
  }
3879
3879
  /**
3880
3880
  * This will add a link.
@@ -3886,7 +3886,7 @@ class Zn extends S {
3886
3886
  return new lt(t);
3887
3887
  }
3888
3888
  }
3889
- class rt extends Zn {
3889
+ class rt extends ea {
3890
3890
  onCreated() {
3891
3891
  this.links = [];
3892
3892
  }
@@ -3897,7 +3897,7 @@ class rt extends Zn {
3897
3897
  * @returns {object}
3898
3898
  */
3899
3899
  setupSubNav(t) {
3900
- return new sa(
3900
+ return new na(
3901
3901
  {
3902
3902
  parentLink: t,
3903
3903
  options: t.options
@@ -3932,11 +3932,11 @@ class rt extends Zn {
3932
3932
  };
3933
3933
  }
3934
3934
  }
3935
- const ea = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), ta = (e, t) => {
3935
+ const ta = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), sa = (e, t) => {
3936
3936
  const s = e.link.panel.pathname;
3937
- return !s && e.isSelected() ? !0 : e.exact ? t === s : ea(s, t);
3937
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : ta(s, t);
3938
3938
  };
3939
- class sa extends rt {
3939
+ class na extends rt {
3940
3940
  /**
3941
3941
  * This will declare the props for the compiler.
3942
3942
  *
@@ -4018,27 +4018,27 @@ class sa extends rt {
4018
4018
  updateLinks(t) {
4019
4019
  let s = !1;
4020
4020
  for (const n of this.links)
4021
- if (n.rendered && (s = ta(n, t), s === !0))
4021
+ if (n.rendered && (s = sa(n, t), s === !0))
4022
4022
  break;
4023
4023
  this.parentLink.update(s);
4024
4024
  }
4025
4025
  }
4026
- const na = (e) => be({ class: "text-lg ml-2" }, e), aa = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4026
+ const aa = (e) => be({ class: "text-lg ml-2" }, e), oa = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4027
4027
  b({
4028
4028
  variant: "icon",
4029
4029
  class: "m-2",
4030
4030
  click: (t, { state: s }) => s.toggle("open"),
4031
4031
  icon: h.arrows.left
4032
4032
  }),
4033
- e.title && na(e.title)
4034
- ]), oa = () => o({
4033
+ e.title && aa(e.title)
4034
+ ]), la = () => o({
4035
4035
  class: `
4036
4036
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4037
4037
  transition-opacity duration-200
4038
4038
  `,
4039
4039
  click: (e, { state: t }) => t.open = !1
4040
4040
  });
4041
- class la extends S {
4041
+ class ra extends S {
4042
4042
  /**
4043
4043
  * This will declare the props for the compiler.
4044
4044
  *
@@ -4057,7 +4057,7 @@ class la extends S {
4057
4057
  class: "fixed inset-0 z-50",
4058
4058
  style: "[[typeClass]]"
4059
4059
  }, [
4060
- oa(),
4060
+ la(),
4061
4061
  // Popover Content
4062
4062
  o({
4063
4063
  class: `
@@ -4066,7 +4066,7 @@ class la extends S {
4066
4066
  dataSet: ["open", ["expanded", !0, "true"]]
4067
4067
  }, [
4068
4068
  o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4069
- aa({ title: this.title }),
4069
+ oa({ title: this.title }),
4070
4070
  o({ class: "flex flex-auto flex-col" }, this.children)
4071
4071
  ])
4072
4072
  ])
@@ -4110,9 +4110,9 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4110
4110
  };
4111
4111
  }, click: (e, { state: t }) => t.toggle("open") }, [
4112
4112
  x({}, h.bar.three)
4113
- ]), ra = (e) => be({ class: "text-lg ml-2" }, e), ia = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4113
+ ]), ia = (e) => be({ class: "text-lg ml-2" }, e), ca = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4114
4114
  it(),
4115
- e.title && ra(e.title)
4115
+ e.title && ia(e.title)
4116
4116
  ]), ct = (e, t) => {
4117
4117
  e.forEach((s) => {
4118
4118
  if (s.options) {
@@ -4122,10 +4122,10 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4122
4122
  s.callBack = t;
4123
4123
  });
4124
4124
  }, dt = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4125
- M(
4125
+ P(
4126
4126
  "open",
4127
4127
  (t) => t ? [
4128
- new la({ title: e.title }, [
4128
+ new ra({ title: e.title }, [
4129
4129
  W(({ state: s }) => {
4130
4130
  const n = (a) => s.open = !1;
4131
4131
  return ct(e.options, n), new rt(
@@ -4137,23 +4137,23 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4137
4137
  ])
4138
4138
  ] : null
4139
4139
  )
4140
- ]), Fo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4140
+ ]), Lo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4141
4141
  o([
4142
4142
  it(),
4143
4143
  dt(e)
4144
4144
  ])
4145
- ])), Lo = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4145
+ ])), Ao = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4146
4146
  o({ class: "flex flex-auto flex-col w-full" }, [
4147
- ia(e),
4147
+ ca(e),
4148
4148
  dt(e)
4149
4149
  ])
4150
- ])), Ao = r((e) => {
4150
+ ])), Ro = r((e) => {
4151
4151
  const t = e.margin || "m-4 ml-0";
4152
4152
  return o({ class: `flex-none ${t}` }, [
4153
4153
  b({ variant: "back", class: "ghost", ...e })
4154
4154
  ]);
4155
4155
  });
4156
- class ca extends S {
4156
+ class da extends S {
4157
4157
  /**
4158
4158
  * This will declare the props for the compiler.
4159
4159
  *
@@ -4254,7 +4254,7 @@ Xe.addType("dockableOverlay", (e) => {
4254
4254
  const t = e.component;
4255
4255
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4256
4256
  });
4257
- class Ro extends ca {
4257
+ class jo extends da {
4258
4258
  /**
4259
4259
  * This will stop presistence.
4260
4260
  *
@@ -4359,7 +4359,7 @@ class Ro extends ca {
4359
4359
  this.state.docked = this.canDock();
4360
4360
  }
4361
4361
  }
4362
- const da = r(({ index: e, click: t, state: s }, n) => pe({
4362
+ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4363
4363
  class: "p-2 cursor-pointer hover:bg-muted/50",
4364
4364
  onState: [
4365
4365
  [s, "selectedIndex", {
@@ -4368,11 +4368,11 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4368
4368
  }]
4369
4369
  ],
4370
4370
  click: () => t(e)
4371
- }, n)), ua = r(({ selectOption: e, state: t }) => ee({
4371
+ }, n)), ha = r(({ selectOption: e, state: t }) => ee({
4372
4372
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4373
- for: ["filteredOptions", (s, n) => da({ index: n, click: e, state: t }, s.label)]
4374
- })), ha = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4375
- N({
4373
+ for: ["filteredOptions", (s, n) => ua({ index: n, click: e, state: t }, s.label)]
4374
+ })), fa = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4375
+ F({
4376
4376
  cache: "input",
4377
4377
  // @ts-ignore
4378
4378
  class: e.class ?? "",
@@ -4396,7 +4396,7 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4396
4396
  // @ts-ignore
4397
4397
  x({ size: "sm" }, e.icon)
4398
4398
  ])
4399
- ])), fa = (e) => o({
4399
+ ])), ga = (e) => o({
4400
4400
  class: "relative flex fle-auto flex-col",
4401
4401
  onState: ["open", (t, s, n) => {
4402
4402
  if (t)
@@ -4406,10 +4406,10 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4406
4406
  button: n.input,
4407
4407
  size: "xl"
4408
4408
  }, [
4409
- ua(e)
4409
+ ha(e)
4410
4410
  ]);
4411
4411
  }]
4412
- }), jo = P(
4412
+ }), Eo = M(
4413
4413
  {
4414
4414
  /**
4415
4415
  * This will set up the data object.
@@ -4418,7 +4418,7 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4418
4418
  */
4419
4419
  setData() {
4420
4420
  const e = this.options || [];
4421
- return new z({
4421
+ return new O({
4422
4422
  options: e,
4423
4423
  filteredOptions: e
4424
4424
  });
@@ -4506,7 +4506,7 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4506
4506
  */
4507
4507
  render() {
4508
4508
  return o({ class: "relative w-full max-w-md" }, [
4509
- ha({
4509
+ fa({
4510
4510
  // @ts-ignore
4511
4511
  state: this.state,
4512
4512
  // @ts-ignore
@@ -4518,7 +4518,7 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4518
4518
  // @ts-ignore
4519
4519
  handleKeyDown: this.handleKeyDown.bind(this)
4520
4520
  }),
4521
- fa({
4521
+ ga({
4522
4522
  // @ts-ignore
4523
4523
  state: this.state,
4524
4524
  // @ts-ignore
@@ -4529,7 +4529,7 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4529
4529
  ]);
4530
4530
  }
4531
4531
  }
4532
- ), Eo = r((e) => {
4532
+ ), Ho = r((e) => {
4533
4533
  const t = e.icon ?? h.magnifyingGlass.default;
4534
4534
  return o({
4535
4535
  // @ts-ignore
@@ -4565,7 +4565,7 @@ const da = r(({ index: e, click: t, state: s }, n) => pe({
4565
4565
  })
4566
4566
  ]);
4567
4567
  });
4568
- class ga extends S {
4568
+ class ma extends S {
4569
4569
  /**
4570
4570
  * This will declare the props for the compiler.
4571
4571
  *
@@ -4583,7 +4583,7 @@ class ga extends S {
4583
4583
  return o({ class: `${this.class || ""}` }, this.children);
4584
4584
  }
4585
4585
  }
4586
- class ma extends ga {
4586
+ class ba extends ma {
4587
4587
  /**
4588
4588
  * This will be called every time the route
4589
4589
  * is activated.
@@ -4593,15 +4593,15 @@ class ma extends ga {
4593
4593
  update(t) {
4594
4594
  }
4595
4595
  }
4596
- const ba = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4596
+ const xa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4597
4597
  tag: "section",
4598
4598
  ...e,
4599
4599
  children: t
4600
- })), xa = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4600
+ })), pa = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4601
4601
  wt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4602
4602
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4603
4603
  ]));
4604
- class Ho extends ma {
4604
+ class _o extends ba {
4605
4605
  /**
4606
4606
  * This will declare the props for the compiler.
4607
4607
  *
@@ -4616,8 +4616,8 @@ class Ho extends ma {
4616
4616
  * @returns {object}
4617
4617
  */
4618
4618
  render() {
4619
- return ba([
4620
- xa({
4619
+ return xa([
4620
+ pa({
4621
4621
  title: this.title,
4622
4622
  description: this.description
4623
4623
  }),
@@ -4626,131 +4626,131 @@ class Ho extends ma {
4626
4626
  }
4627
4627
  }
4628
4628
  export {
4629
- ho as $,
4630
- ro as A,
4631
- Ao as B,
4632
- an as C,
4629
+ fo as $,
4630
+ io as A,
4631
+ Ro as B,
4632
+ on as C,
4633
4633
  ot as D,
4634
- go as E,
4635
- Po as F,
4636
- Ro as G,
4637
- So as H,
4638
- zo as I,
4639
- Ea as J,
4640
- Bo as K,
4641
- Ba as L,
4642
- Za as M,
4643
- Oa as N,
4634
+ mo as E,
4635
+ Bo as F,
4636
+ jo as G,
4637
+ $o as H,
4638
+ Oo as I,
4639
+ Ha as J,
4640
+ zo as K,
4641
+ za as L,
4642
+ eo as M,
4643
+ Na as N,
4644
4644
  se as O,
4645
- Fa as P,
4646
- Na as Q,
4647
- Ra as R,
4648
- za as S,
4649
- Aa as T,
4650
- La as U,
4645
+ La as P,
4646
+ Fa as Q,
4647
+ ja as R,
4648
+ Oa as S,
4649
+ Ra as T,
4650
+ Aa as U,
4651
4651
  st as V,
4652
- io as W,
4653
- uo as X,
4654
- co as Y,
4655
- ps as Z,
4656
- ms as _,
4657
- Bs as a,
4658
- Gn as a$,
4659
- jt as a0,
4660
- fs as a1,
4661
- gs as a2,
4662
- bs as a3,
4652
+ co as W,
4653
+ ho as X,
4654
+ uo as Y,
4655
+ ys as Z,
4656
+ bs as _,
4657
+ zs as a,
4658
+ Kn as a$,
4659
+ Et as a0,
4660
+ gs as a1,
4661
+ ms as a2,
4662
+ xs as a3,
4663
4663
  R as a4,
4664
- Ho as a5,
4665
- Ln as a6,
4666
- Ja as a7,
4664
+ _o as a5,
4665
+ An as a6,
4666
+ Xa as a7,
4667
4667
  ue as a8,
4668
- os as a9,
4669
- aa as aA,
4670
- no as aB,
4671
- _a as aC,
4672
- kn as aD,
4673
- eo as aE,
4674
- ao as aF,
4675
- oo as aG,
4676
- Oo as aH,
4677
- jo as aI,
4678
- ha as aJ,
4679
- to as aK,
4680
- Eo as aL,
4681
- mo as aM,
4682
- sa as aN,
4668
+ ls as a9,
4669
+ oa as aA,
4670
+ ao as aB,
4671
+ Ua as aC,
4672
+ Cn as aD,
4673
+ to as aE,
4674
+ oo as aF,
4675
+ lo as aG,
4676
+ No as aH,
4677
+ Eo as aI,
4678
+ fa as aJ,
4679
+ so as aK,
4680
+ Ho as aL,
4681
+ bo as aM,
4682
+ na as aN,
4683
4683
  Se as aO,
4684
- ja as aP,
4685
- Ha as aQ,
4686
- yo as aR,
4687
- Ya as aS,
4684
+ Ea as aP,
4685
+ _a as aQ,
4686
+ wo as aR,
4687
+ Va as aS,
4688
4688
  Mo as aT,
4689
- ia as aU,
4690
- wo as aV,
4691
- Ia as aW,
4692
- lo as aX,
4689
+ ca as aU,
4690
+ vo as aV,
4691
+ Ta as aW,
4692
+ ro as aX,
4693
4693
  x as aY,
4694
- Qa as aZ,
4695
- No as a_,
4696
- vo as aa,
4694
+ Ja as aZ,
4695
+ Fo as a_,
4696
+ ko as aa,
4697
4697
  rt as ab,
4698
- N as ac,
4699
- Rt as ad,
4700
- Pa as ae,
4701
- ko as af,
4698
+ F as ac,
4699
+ jt as ad,
4700
+ Ba as ae,
4701
+ Co as af,
4702
4702
  lt as ag,
4703
- ba as ah,
4704
- Me as ai,
4705
- _s as aj,
4706
- Fo as ak,
4707
- Lo as al,
4708
- sn as am,
4709
- Wa as an,
4703
+ xa as ah,
4704
+ Pe as ai,
4705
+ Us as aj,
4706
+ Lo as ak,
4707
+ Ao as al,
4708
+ nn as am,
4709
+ qa as an,
4710
4710
  it as ao,
4711
- Kn as ap,
4712
- Zn as aq,
4713
- Xn as ar,
4714
- la as as,
4715
- po as at,
4716
- Ga as au,
4717
- ca as av,
4718
- ga as aw,
4719
- Ka as ax,
4720
- Us as ay,
4711
+ Qn as ap,
4712
+ ea as aq,
4713
+ Zn as ar,
4714
+ ra as as,
4715
+ yo as at,
4716
+ Ka as au,
4717
+ da as av,
4718
+ ma as aw,
4719
+ Qa as ax,
4720
+ Ys as ay,
4721
4721
  ne as az,
4722
- oa as b,
4722
+ la as b,
4723
4723
  Ze as b0,
4724
- O as b1,
4725
- qa as b2,
4726
- Ws as b3,
4727
- hs as b4,
4728
- $a as b5,
4729
- Sa as b6,
4730
- B as b7,
4731
- xo as b8,
4732
- Da as c,
4733
- ma as d,
4734
- Co as e,
4724
+ N as b1,
4725
+ Ga as b2,
4726
+ qs as b3,
4727
+ fs as b4,
4728
+ Da as b5,
4729
+ $a as b6,
4730
+ z as b7,
4731
+ po as b8,
4732
+ Ia as c,
4733
+ ba as d,
4734
+ So as e,
4735
4735
  b as f,
4736
- Xs as g,
4737
- At as h,
4738
- Vt as i,
4739
- Fn as j,
4736
+ Zs as g,
4737
+ Rt as h,
4738
+ Wt as i,
4739
+ Ln as j,
4740
4740
  Ma as k,
4741
- so as l,
4742
- Ta as m,
4743
- Xa as n,
4744
- bo as o,
4745
- $o as p,
4746
- Ys as q,
4747
- Do as r,
4748
- An as s,
4749
- Ua as t,
4750
- Io as u,
4751
- To as v,
4752
- Va as w,
4741
+ no as l,
4742
+ Pa as m,
4743
+ Za as n,
4744
+ xo as o,
4745
+ Do as p,
4746
+ Vs as q,
4747
+ Io as r,
4748
+ Rn as s,
4749
+ Ya as t,
4750
+ To as u,
4751
+ Po as v,
4752
+ Wa as w,
4753
4753
  ie as x,
4754
- en as y,
4755
- fo as z
4754
+ tn as y,
4755
+ go as z
4756
4756
  };