@base-framework/ui 1.2.20 → 1.2.22

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,10 +1,10 @@
1
- import { I as Y, Span as g, Button as w, OnState as T, Div as o, Legend as nt, Fieldset as at, H4 as Ee, P as k, Label as V, Checkbox as ce, Input as p, Textarea as ot, UseParent as W, Img as de, H5 as lt, H2 as J, Form as rt, Header as Z, Footer as ue, A as Ue, H3 as he, Nav as fe, Ul as X, Li as ge, OnStateOpen as me, On as Q, Dialog as it, Th as Ye, Thead as ct, Tr as dt, Table as be, Time as ut, H1 as ht } from "@base-framework/atoms";
2
- import { Atom as r, Jot as M, Component as C, Html as ft, Data as z, Events as j, DateTime as ee, NavLink as gt, router as ve, DataTracker as Ve } from "@base-framework/base";
1
+ import { I as Y, Span as g, Button as w, OnState as T, Div as o, Legend as at, Fieldset as ot, H4 as Ue, P as k, Label as V, Checkbox as ce, Input as p, Textarea as lt, UseParent as W, Img as de, H5 as rt, H2 as J, Form as it, Header as Z, Footer as ue, A as Ye, H3 as he, Nav as fe, Ul as X, Li as ge, OnStateOpen as me, On as Q, Dialog as ct, Th as Ve, Thead as dt, Tr as ut, Table as be, Time as ht, H1 as ft } from "@base-framework/atoms";
2
+ import { Atom as r, Jot as M, Component as C, Html as gt, Data as z, Events as j, DateTime as ee, NavLink as mt, router as ke, DataTracker as We } from "@base-framework/base";
3
3
  import { Icons as u } from "./icons.es.js";
4
- import { Timer as mt, TableBody as bt, DataTableBody as xt, ScrollableTableBody as pt, List as yt } from "@base-framework/organisms";
4
+ import { Timer as bt, TableBody as xt, DataTableBody as pt, ScrollableTableBody as yt, List as wt } from "@base-framework/organisms";
5
5
  import { F as U } from "./format-DE4rFWuD.js";
6
- import { F as wt } from "./bside-template-C7AQgQ6H.js";
7
- const vt = {
6
+ import { F as vt } from "./bside-template-C7AQgQ6H.js";
7
+ const kt = {
8
8
  xs: "w-4 h-4",
9
9
  sm: "w-6 h-6",
10
10
  md: "w-8 h-8",
@@ -13,14 +13,14 @@ const vt = {
13
13
  "2xl": "w-14 h-14",
14
14
  "3xl": "w-16 h-16"
15
15
  }, ie = r((e, t) => {
16
- const s = vt[e.size || "sm"];
16
+ const s = kt[e.size || "sm"];
17
17
  return Y({
18
18
  ...e,
19
19
  // @ts-ignore
20
20
  class: `stroke-current icon-size ${s} ${e.class || ""}`,
21
21
  html: t[0]?.textContent
22
22
  });
23
- }), ke = {
23
+ }), Ce = {
24
24
  xs: "w-4 h-4",
25
25
  // 16px - matches Icon
26
26
  sm: "w-6 h-6",
@@ -35,7 +35,7 @@ const vt = {
35
35
  // 56px - matches Icon
36
36
  "3xl": "w-16 h-16"
37
37
  // 64px - matches Icon
38
- }, Ce = {
38
+ }, Se = {
39
39
  xs: "16px",
40
40
  sm: "24px",
41
41
  md: "32px",
@@ -43,13 +43,13 @@ const vt = {
43
43
  xl: "48px",
44
44
  "2xl": "56px",
45
45
  "3xl": "64px"
46
- }, Se = {
46
+ }, $e = {
47
47
  outlined: "material-symbols-outlined",
48
48
  filled: "material-symbols-filled",
49
49
  rounded: "material-symbols-rounded",
50
50
  sharp: "material-symbols-sharp"
51
- }, $e = r((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = ke[t] || ke.sm, a = Ce[t] || Ce.sm, l = Se[s] || Se.outlined;
51
+ }, De = r((e) => {
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = Ce[t] || Ce.sm, a = Se[t] || Se.sm, l = $e[s] || $e.outlined;
53
53
  return g({
54
54
  ...e,
55
55
  // @ts-ignore
@@ -62,14 +62,14 @@ const vt = {
62
62
  name: void 0
63
63
  // @ts-ignore
64
64
  }, e.name);
65
- }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ie(e, t) : typeof t == "object" && t.name ? $e({
65
+ }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ie(e, t) : typeof t == "object" && t.name ? De({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
- }) : typeof t == "string" ? $e({
69
+ }) : typeof t == "string" ? De({
70
70
  ...e,
71
71
  name: t
72
- }) : ie(e, t) : null, ra = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, ia = (e) => typeof e == "string" && e.includes("<svg"), De = {
72
+ }) : ie(e, t) : null, ia = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, ca = (e) => typeof e == "string" && e.includes("<svg"), Ie = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,17 +150,17 @@ const vt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, kt = (e) => De[e] || De.gray, Ct = (e, t = {}) => {
154
- const s = kt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
153
+ }, Ct = (e) => Ie[e] || Ie.gray, St = (e, t = {}) => {
154
+ const s = Ct(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
- }, ca = r((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...h } = e, m = Ct(s, { backgroundColor: l, textColor: i, ringColor: c });
156
+ }, da = r((e, t) => {
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...h } = e, m = St(s, { backgroundColor: l, textColor: i, ringColor: c });
158
158
  return g({ ...h, class: m }, [
159
159
  n ? x({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
161
161
  ]);
162
162
  });
163
- class We extends C {
163
+ class qe extends C {
164
164
  /**
165
165
  * This will set the component context.
166
166
  *
@@ -176,9 +176,9 @@ class We extends C {
176
176
  }
177
177
  const O = (e) => (
178
178
  /** @type {VeilComponentConstructor} */
179
- M(e, We)
179
+ M(e, qe)
180
180
  );
181
- class da extends We {
181
+ class ua extends qe {
182
182
  /**
183
183
  * Declare public props and their defaults.
184
184
  */
@@ -237,7 +237,7 @@ const ne = {
237
237
  xl: "w-14 h-14",
238
238
  "2xl": "w-16 h-16"
239
239
  };
240
- class ua extends C {
240
+ class ha extends C {
241
241
  /**
242
242
  * Declare public props.
243
243
  */
@@ -283,7 +283,7 @@ class ua extends C {
283
283
  ]);
284
284
  }
285
285
  }
286
- const ha = r((e, t) => {
286
+ const fa = r((e, t) => {
287
287
  const s = e.size || "md", n = ne[s] || ne.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
288
288
  return w({
289
289
  ...e,
@@ -294,12 +294,20 @@ const ha = r((e, t) => {
294
294
  e.icon ? x({ size: a }, e.icon) : null,
295
295
  ...t || []
296
296
  ]);
297
- }), F = (e) => r((t, s) => w({
297
+ });
298
+ let xe = 0;
299
+ if (typeof globalThis.history?.pushState == "function") {
300
+ const e = globalThis.history.pushState;
301
+ globalThis.history.pushState = function(...t) {
302
+ return xe++, e.apply(this, t);
303
+ };
304
+ }
305
+ const F = (e) => r((t, s) => w({
298
306
  ...e,
299
307
  ...t,
300
308
  // @ts-ignore
301
309
  class: `bttn ${e.class} ${t.class || ""}`
302
- }, s)), xe = r(
310
+ }, s)), pe = r(
303
311
  (e, t) => w({
304
312
  ...e,
305
313
  // @ts-ignore
@@ -311,38 +319,38 @@ const ha = r((e, t) => {
311
319
  // @ts-ignore
312
320
  e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
313
321
  ])
314
- ), Ie = (e) => r((t, s) => xe({
322
+ ), Te = (e) => r((t, s) => pe({
315
323
  ...e,
316
324
  ...t,
317
325
  // @ts-ignore
318
326
  class: `bttn ${e.class} ${t.class || ""}`
319
- }, s)), St = (e) => {
320
- const t = globalThis.history.length, s = globalThis.document?.referrer !== "";
327
+ }, s)), $t = (e) => {
328
+ const t = globalThis.history.length;
321
329
  return () => {
322
- const a = globalThis.history.length - t, l = a + 1;
323
- if (e.allowHistory === !0 && (t > 1 && s || a > 0)) {
324
- globalThis.history.go(-l);
330
+ const n = globalThis.history.length - t, a = n + 1;
331
+ if (e.allowHistory === !0 && (n > 0 || xe > 0)) {
332
+ globalThis.history.go(-a);
325
333
  return;
326
334
  }
327
335
  e.backUrl && app.navigate(e.backUrl);
328
336
  };
329
- }, $t = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || St(t), xe({
337
+ }, Dt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || $t(t), pe({
330
338
  ...e,
331
339
  ...t
332
- }, s))), Dt = (e) => {
333
- const t = globalThis.history.length, s = globalThis.document?.referrer !== "";
340
+ }, s))), It = (e) => {
341
+ const t = globalThis.history.length;
334
342
  return () => {
335
- const a = globalThis.history.length - t, l = a + 1;
336
- if (t > 1 && s || a > 0) {
337
- globalThis.history.go(-l);
343
+ const n = globalThis.history.length - t, a = n + 1;
344
+ if (n > 0 || xe > 0) {
345
+ globalThis.history.go(-a);
338
346
  return;
339
347
  }
340
348
  e.backUrl && app.navigate(e.backUrl);
341
349
  };
342
- }, It = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || Dt(t), xe({
350
+ }, Tt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || It(t), pe({
343
351
  ...e,
344
352
  ...t
345
- }, s))), Tt = r((e, t) => {
353
+ }, s))), Mt = r((e, t) => {
346
354
  const s = e.size || "md", n = {
347
355
  xs: "w-6 h-6",
348
356
  sm: "w-8 h-8",
@@ -359,7 +367,7 @@ const ha = r((e, t) => {
359
367
  e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
360
368
  ...t || []
361
369
  ]);
362
- }), Te = {
370
+ }), Me = {
363
371
  primary: F({ class: "primary" }),
364
372
  secondary: F({ class: "secondary" }),
365
373
  destructive: F({ class: "destructive" }),
@@ -367,34 +375,34 @@ const ha = r((e, t) => {
367
375
  outline: F({ class: "outline" }),
368
376
  ghost: F({ class: "ghost" }),
369
377
  link: F({ class: "link" }),
370
- icon: Ie({ class: "icon" }),
371
- withIcon: Ie({ class: "with-icon" }),
372
- back: $t({ class: "with-icon back-button" }),
373
- smartBack: It({ class: "with-icon back-button" }),
374
- circleIcon: Tt
375
- }, b = r((e, t) => (Te[e.variant] || Te.primary)(e, t)), fa = r((e, t) => b({ ...e, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t)), Mt = r((e, t) => {
378
+ icon: Te({ class: "icon" }),
379
+ withIcon: Te({ class: "with-icon" }),
380
+ back: Dt({ class: "with-icon back-button" }),
381
+ smartBack: Tt({ class: "with-icon back-button" }),
382
+ circleIcon: Mt
383
+ }, b = r((e, t) => (Me[e.variant] || Me.primary)(e, t)), ga = r((e, t) => b({ ...e, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t)), Bt = r((e, t) => {
376
384
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
377
385
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
378
386
  ...e,
379
387
  // @ts-ignore
380
388
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
381
389
  }, t);
382
- }), Bt = r((e, t) => nt({
390
+ }), Pt = r((e, t) => at({
383
391
  ...e,
384
392
  // @ts-ignore
385
393
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
386
- }, t)), ga = r((e, t) => {
394
+ }, t)), ma = r((e, t) => {
387
395
  const s = e.border === "full" ? "border rounded-md" : "border-t";
388
- return at({
396
+ return ot({
389
397
  ...e,
390
398
  // @ts-ignore
391
399
  class: `p-6 ${s} ${e.class || ""}`
392
400
  }, [
393
401
  // @ts-ignore
394
- e.legend && Bt(e.legend),
402
+ e.legend && Pt(e.legend),
395
403
  o({ class: "flex flex-auto flex-col gap-y-6" }, t)
396
404
  ]);
397
- }), Pt = r((e, t) => {
405
+ }), zt = r((e, t) => {
398
406
  const s = e.border === !0 ? "border-t" : "";
399
407
  return o({
400
408
  ...e,
@@ -409,14 +417,14 @@ const ha = r((e, t) => {
409
417
  class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
410
418
  }, [
411
419
  // @ts-ignore
412
- Ee({ class: "text-base" }, e.label),
420
+ Ue({ class: "text-base" }, e.label),
413
421
  // @ts-ignore
414
422
  e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
415
423
  ]),
416
424
  // Controls container: grows to fill remaining space, spacing between items
417
425
  o({ class: "flex flex-col gap-y-4" }, t)
418
426
  ]);
419
- }), zt = "flex h-10 w-full px-3 py-2 text-sm", B = "rounded-md border border-border bg-input", I = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", D = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", H = "placeholder:text-muted-foreground", pe = `${zt} ${B} ${I} ${H} ${D}`, Ot = ({ id: e, checked: t, bind: s, required: n }) => ce({
427
+ }), Ot = "flex h-10 w-full px-3 py-2 text-sm", B = "rounded-md border border-border bg-input", I = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", D = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", H = "placeholder:text-muted-foreground", ye = `${Ot} ${B} ${I} ${H} ${D}`, Nt = ({ id: e, checked: t, bind: s, required: n }) => ce({
420
428
  id: e,
421
429
  cache: "checkbox",
422
430
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -426,7 +434,7 @@ const ha = r((e, t) => {
426
434
  required: n,
427
435
  checked: t,
428
436
  bind: s
429
- }), Nt = () => g({ class: "absolute text-xs pointer-events-none" }, [
437
+ }), Rt = () => g({ class: "absolute text-xs pointer-events-none" }, [
430
438
  T(
431
439
  "checked",
432
440
  (e) => e ? Y({
@@ -434,7 +442,7 @@ const ha = r((e, t) => {
434
442
  html: u.check
435
443
  }) : null
436
444
  )
437
- ]), Rt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
445
+ ]), Ft = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
438
446
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
439
447
  rounded-md border
440
448
  ${I}
@@ -454,13 +462,13 @@ const ha = r((e, t) => {
454
462
  tabIndex: 0,
455
463
  click: a
456
464
  }, [
457
- Ot({ bind: t, checked: s, id: e, required: n }),
458
- Nt()
459
- ]), Ft = ({ id: e, label: t, clickHandler: s }) => V({
465
+ Nt({ bind: t, checked: s, id: e, required: n }),
466
+ Rt()
467
+ ]), Lt = ({ id: e, label: t, clickHandler: s }) => V({
460
468
  class: "text-base cursor-pointer",
461
469
  htmlFor: e,
462
470
  click: s
463
- }, t), Lt = M(
471
+ }, t), jt = M(
464
472
  {
465
473
  /**
466
474
  * This will initialize the state of the checkbox.
@@ -499,7 +507,7 @@ const ha = r((e, t) => {
499
507
  render() {
500
508
  const e = this.getId(), t = (s) => this.clickHandler(s);
501
509
  return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
502
- Rt({
510
+ Ft({
503
511
  id: e,
504
512
  // @ts-ignore
505
513
  bind: this.bind,
@@ -511,22 +519,22 @@ const ha = r((e, t) => {
511
519
  clickHandler: t
512
520
  }),
513
521
  // @ts-ignore
514
- this.label && Ft({ id: e, label: this.label, clickHandler: t })
522
+ this.label && Lt({ id: e, label: this.label, clickHandler: t })
515
523
  ]);
516
524
  }
517
525
  }
518
- ), jt = (e) => {
526
+ ), Ht = (e) => {
519
527
  if (!e || e.length === 0) return "";
520
528
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
521
529
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
522
- }, Ht = (e) => {
523
- const t = e.target, s = jt(t.value);
530
+ }, At = (e) => {
531
+ const t = e.target, s = Ht(t.value);
524
532
  s && (t.value = s);
525
533
  }, N = r((e) => p({
526
534
  ...e,
527
535
  // @ts-ignore
528
- class: `${pe} ${e.class || ""}`.trim()
529
- })), ma = r((e) => N({
536
+ class: `${ye} ${e.class || ""}`.trim()
537
+ })), ba = r((e) => N({
530
538
  ...e,
531
539
  type: "tel",
532
540
  // @ts-ignore
@@ -536,8 +544,8 @@ const ha = r((e, t) => {
536
544
  placeholder: "(555) 555-5555",
537
545
  // @ts-ignore
538
546
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
539
- keyup: Ht
540
- })), ba = r((e) => N({
547
+ keyup: At
548
+ })), xa = r((e) => N({
541
549
  ...e,
542
550
  type: "email",
543
551
  // @ts-ignore
@@ -545,47 +553,47 @@ const ha = r((e, t) => {
545
553
  // @ts-ignore
546
554
  label: e.label || "Email",
547
555
  placeholder: "Email address"
548
- })), xa = r((e) => ot({
556
+ })), pa = r((e) => lt({
549
557
  ...e,
550
558
  as: "textarea",
551
559
  // @ts-ignore
552
560
  class: `flex w-full h-24 px-3 py-2 text-sm ${B} ${I} ${H} ${D} ${e.class || ""}`.trim()
553
- })), pa = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
561
+ })), ya = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
554
562
  p({
555
563
  ...e,
556
564
  type: "radio",
557
565
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
558
566
  }),
559
567
  e.label && V({ forHTML: e.value, class: "cursor-pointer" }, e.label)
560
- ]), ya = r((e) => p({
568
+ ]), wa = r((e) => p({
561
569
  ...e,
562
570
  type: "date",
563
571
  // @ts-ignore
564
572
  class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
565
- })), wa = r((e) => p({
573
+ })), va = r((e) => p({
566
574
  ...e,
567
575
  type: "time",
568
576
  // @ts-ignore
569
577
  class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
570
- })), va = r((e) => p({
578
+ })), ka = r((e) => p({
571
579
  ...e,
572
580
  type: "datetime-local",
573
581
  // @ts-ignore
574
582
  class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
575
- })), ka = r((e) => p({
583
+ })), Ca = r((e) => p({
576
584
  ...e,
577
585
  type: "month",
578
586
  // @ts-ignore
579
587
  class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
580
- })), Ca = r((e) => p({
588
+ })), Sa = r((e) => p({
581
589
  ...e,
582
590
  type: "week",
583
591
  // @ts-ignore
584
592
  class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
585
- })), Sa = r((e) => N({
593
+ })), $a = r((e) => N({
586
594
  ...e,
587
595
  type: "number"
588
- })), $a = r((e) => N({
596
+ })), Da = r((e) => N({
589
597
  ...e,
590
598
  type: "password"
591
599
  }));
@@ -593,13 +601,13 @@ r((e) => N({
593
601
  ...e,
594
602
  type: "search"
595
603
  }));
596
- const Da = r((e) => N({
604
+ const Ia = r((e) => N({
597
605
  ...e,
598
606
  type: "url"
599
- })), Ia = r((e) => N({
607
+ })), Ta = r((e) => N({
600
608
  ...e,
601
609
  type: "hidden"
602
- })), Ta = r((e) => p({
610
+ })), Ma = r((e) => p({
603
611
  ...e,
604
612
  type: "color",
605
613
  // @ts-ignore
@@ -610,12 +618,12 @@ r((e) => ce({
610
618
  // @ts-ignore
611
619
  class: `flex h-4 w-4 text-foreground ${B} ${I} ${D} ${e.class || ""}`.trim()
612
620
  }));
613
- const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Ma = r((e) => p({
621
+ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Ba = r((e) => p({
614
622
  ...e,
615
623
  type: "file",
616
624
  // @ts-ignore
617
- class: `${pe} ${At} ${e.class || ""}`.trim()
618
- })), Ba = O(
625
+ class: `${ye} ${Et} ${e.class || ""}`.trim()
626
+ })), Pa = O(
619
627
  {
620
628
  /**
621
629
  * This will create the initial state of the RangeSlider.
@@ -687,15 +695,15 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
687
695
  ]);
688
696
  }
689
697
  }
690
- ), Pa = r((e) => ({
698
+ ), za = r((e) => ({
691
699
  tag: "select",
692
700
  onCreated(t) {
693
- e.options && ft.setupSelectOptions(t, e.options);
701
+ e.options && gt.setupSelectOptions(t, e.options);
694
702
  },
695
703
  ...e,
696
704
  // @ts-ignore
697
- class: `${pe} ${e.class || ""}`.trim()
698
- })), Et = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : de({
705
+ class: `${ye} ${e.class || ""}`.trim()
706
+ })), Ut = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : de({
699
707
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
700
708
  src: e,
701
709
  alt: t,
@@ -704,7 +712,7 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
704
712
  * If there's an error loading the image, hide it.
705
713
  */
706
714
  error: (a) => a.target.style.visibility = "hidden"
707
- })), Ut = (e) => !e || isNaN(e) ? null : e, Me = (e, t) => {
715
+ })), Yt = (e) => !e || isNaN(e) ? null : e, Be = (e, t) => {
708
716
  const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
709
717
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
710
718
  <!-- Background Circle -->
@@ -747,20 +755,20 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
747
755
  class: "circle-graph text-inherit",
748
756
  html: i
749
757
  });
750
- }, za = r((e) => {
751
- const t = e.progress || 0, s = e.class || "", n = Me(t, s);
758
+ }, Oa = r((e) => {
759
+ const t = e.progress || 0, s = e.class || "", n = Be(t, s);
752
760
  return o({
753
761
  class: "circle-graph-wrap",
754
762
  onSet: [
755
763
  // @ts-ignore
756
764
  e.prop,
757
- (a) => (a = Ut(a), a ? Me(a, s) : n)
765
+ (a) => (a = Yt(a), a ? Be(a, s) : n)
758
766
  ]
759
767
  }, [n]);
760
- }), Yt = () => W(({ state: e }) => o({
768
+ }), Vt = () => W(({ state: e }) => o({
761
769
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
762
770
  style: ["width: [[progress]]%;", e]
763
- })), Oa = O(
771
+ })), Na = O(
764
772
  {
765
773
  /**
766
774
  * This will render the progress bar component.
@@ -769,7 +777,7 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
769
777
  */
770
778
  render() {
771
779
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
772
- Yt()
780
+ Vt()
773
781
  ]);
774
782
  },
775
783
  /**
@@ -812,7 +820,7 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
812
820
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
813
821
  }
814
822
  }
815
- ), Na = r((e = {}) => {
823
+ ), Ra = r((e = {}) => {
816
824
  const {
817
825
  class: t = "",
818
826
  background: s = !0,
@@ -833,7 +841,7 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
833
841
  style: m,
834
842
  "aria-hidden": "true"
835
843
  });
836
- }), Ra = r((e = {}) => {
844
+ }), Fa = r((e = {}) => {
837
845
  const {
838
846
  class: t = "",
839
847
  background: s = !0,
@@ -854,7 +862,7 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
854
862
  style: m,
855
863
  "aria-hidden": "true"
856
864
  });
857
- }), Be = {
865
+ }), Pe = {
858
866
  top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
859
867
  "top-right": "bottom-full left-full transform -translate-x-1 mb-2",
860
868
  "top-left": "bottom-full right-full transform translate-x-1 mb-2",
@@ -863,8 +871,8 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
863
871
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
864
872
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
865
873
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
866
- }, Vt = (e) => Be[String(e)] || Be.top, Fa = r(({ position: e = "top", content: t }, s) => {
867
- const n = Vt(e);
874
+ }, Wt = (e) => Pe[String(e)] || Pe.top, La = r(({ position: e = "top", content: t }, s) => {
875
+ const n = Wt(e);
868
876
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
869
877
  ...s,
870
878
  // Tooltip box
@@ -875,7 +883,7 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
875
883
  `
876
884
  }, t)
877
885
  ]);
878
- }), Pe = {
886
+ }), ze = {
879
887
  info: {
880
888
  borderColor: "border-blue-500",
881
889
  bgColor: "bg-muted/10",
@@ -901,19 +909,19 @@ const At = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
901
909
  bgColor: "bg-muted/10",
902
910
  iconColor: "text-muted-foreground"
903
911
  }
904
- }, Wt = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
912
+ }, qt = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
905
913
  x({ size: "sm" }, e)
906
- ]), qt = (e) => lt({ class: "font-semibold" }, e), Gt = (e) => k({ class: "text-sm text-muted-foreground" }, e), La = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
907
- const { borderColor: a, bgColor: l, iconColor: i } = Pe[n] || Pe.default;
914
+ ]), Gt = (e) => rt({ class: "font-semibold" }, e), _t = (e) => k({ class: "text-sm text-muted-foreground" }, e), ja = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
915
+ const { borderColor: a, bgColor: l, iconColor: i } = ze[n] || ze.default;
908
916
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
909
917
  // Icon and content
910
- s && Wt(s, i),
918
+ s && qt(s, i),
911
919
  o({ class: "flex flex-col" }, [
912
- qt(e),
913
- Gt(t)
920
+ Gt(e),
921
+ _t(t)
914
922
  ])
915
923
  ]);
916
- }), _t = (e, t) => {
924
+ }), Kt = (e, t) => {
917
925
  const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
918
926
  let c = s.left + l, h = s.bottom + i;
919
927
  const m = globalThis.innerHeight - s.bottom, v = s.top;
@@ -996,7 +1004,7 @@ class te extends C {
996
1004
  * @returns {void}
997
1005
  */
998
1006
  updatePosition() {
999
- const t = this.button ?? null, s = this.panel, n = _t(t, s);
1007
+ const t = this.button ?? null, s = this.panel, n = Kt(t, s);
1000
1008
  this.data.position = n;
1001
1009
  }
1002
1010
  /**
@@ -1048,29 +1056,29 @@ class te extends C {
1048
1056
  this?.panel?.hidePopover();
1049
1057
  }
1050
1058
  }
1051
- const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Qt = r((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Jt = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Zt = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), ja = r((e, t = []) => Mt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1059
+ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Jt = r((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Zt = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Xt = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), Ha = r((e, t = []) => Bt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1052
1060
  // @ts-ignore
1053
1061
  e.title && J({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1054
1062
  // @ts-ignore
1055
1063
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1056
1064
  ...t
1057
- ])), Ha = r((e, t = []) => (
1065
+ ])), Aa = r((e, t = []) => (
1058
1066
  // @ts-ignore
1059
- Pt({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1067
+ zt({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1060
1068
  o({ class: "flex flex-col gap-y-6" }, t)
1061
1069
  ])
1062
- )), Aa = r((e, t = []) => {
1070
+ )), Ea = r((e, t = []) => {
1063
1071
  const s = e.border ? "border-t" : "";
1064
1072
  return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1065
- }), Xt = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", qe = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = qe(n.children, t, s)), !n.required) ? n : Xt(n) ? {
1073
+ }), es = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", Ge = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = Ge(n.children, t, s)), !n.required) ? n : es(n) ? {
1066
1074
  ...n,
1067
1075
  aria: {
1068
1076
  invalid: ["hasError"]
1069
1077
  },
1070
1078
  invalid: s,
1071
1079
  input: t
1072
- } : n), es = r((e, t) => {
1073
- const a = qe(t, (l) => {
1080
+ } : n), ts = r((e, t) => {
1081
+ const a = Ge(t, (l) => {
1074
1082
  l.target.checkValidity() && e.setError(null);
1075
1083
  }, (l) => {
1076
1084
  e.setError(l.target.validationMessage);
@@ -1079,7 +1087,7 @@ const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1079
1087
  ...e,
1080
1088
  class: "w-full"
1081
1089
  }, a);
1082
- }), Ea = O(
1090
+ }), Ua = O(
1083
1091
  {
1084
1092
  /**
1085
1093
  * The initial state of the FormField.
@@ -1104,41 +1112,41 @@ const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1104
1112
  this.state.error = l, this.state.hasError = !!l;
1105
1113
  };
1106
1114
  return o({ class: "flex flex-auto gap-y-4" }, [
1107
- Kt([
1108
- Qt({ htmlFor: t }, s),
1109
- es({
1115
+ Qt([
1116
+ Jt({ htmlFor: t }, s),
1117
+ ts({
1110
1118
  id: t,
1111
1119
  name: e,
1112
1120
  value: this.state.value,
1113
1121
  setError: a
1114
1122
  }, this.children),
1115
- n && Jt({ id: this.getId("description") }, n),
1116
- o({ onState: ["error", (l) => l && Zt(l)] })
1123
+ n && Zt({ id: this.getId("description") }, n),
1124
+ o({ onState: ["error", (l) => l && Xt(l)] })
1117
1125
  ])
1118
1126
  ]);
1119
1127
  }
1120
1128
  }
1121
- ), ts = (e, t, s = null) => {
1129
+ ), ss = (e, t, s = null) => {
1122
1130
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1123
- }, Ge = r(
1131
+ }, _e = r(
1124
1132
  (e, t) => (
1125
1133
  // @ts-ignore
1126
- rt({ ...e, submit: (s, n) => ts(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1134
+ it({ ...e, submit: (s, n) => ss(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1127
1135
  )
1128
- ), Ua = r((e, t) => (
1136
+ ), Ya = r((e, t) => (
1129
1137
  // @ts-ignore
1130
1138
  o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1131
- )), Ya = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1139
+ )), Va = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1132
1140
  // @ts-ignore
1133
1141
  e.title && J({ class: "font-semibold" }, e.title),
1134
1142
  ...t
1135
- ])), Va = (e, t) => o({ class: "flex justify-between" }, [
1143
+ ])), Wa = (e, t) => o({ class: "flex justify-between" }, [
1136
1144
  g({ class: "text-muted-foreground" }, e),
1137
1145
  g(t)
1138
- ]), Wa = (e, t) => o({ class: "flex" }, [
1146
+ ]), qa = (e, t) => o({ class: "flex" }, [
1139
1147
  g({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1140
1148
  g(t)
1141
- ]), ss = r(({ title: e, description: t, back: s, icon: n, options: a = [] }) => 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" }, [
1149
+ ]), ns = r(({ title: e, description: t, back: s, icon: n, options: a = [] }) => 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" }, [
1142
1150
  /**
1143
1151
  * Back Button (Mobile Only)
1144
1152
  */
@@ -1161,7 +1169,7 @@ const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1161
1169
  ]),
1162
1170
  o({ class: "flex flex-none items-center gap-2" }, a)
1163
1171
  ])
1164
- ])), qa = r((e, t) => {
1172
+ ])), Ga = r((e, t) => {
1165
1173
  const s = e.class?.includes("drawer");
1166
1174
  return o({
1167
1175
  popover: "manual",
@@ -1171,7 +1179,7 @@ const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1171
1179
  l.target === i.panel && (l.preventDefault(), l.stopPropagation(), i.state.open = !1);
1172
1180
  }
1173
1181
  }, [
1174
- Ge({
1182
+ _e({
1175
1183
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1176
1184
  // @ts-ignore
1177
1185
  submit: (l, i) => e.onSubmit && e.onSubmit(i),
@@ -1179,13 +1187,13 @@ const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1179
1187
  // @ts-ignore
1180
1188
  ...e.gestureHandlers
1181
1189
  }, [
1182
- ss(e),
1190
+ ns(e),
1183
1191
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1184
1192
  // @ts-ignore
1185
1193
  !e.hideFooter && ue({ 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)
1186
1194
  ])
1187
1195
  ]);
1188
- }), ze = {
1196
+ }), Oe = {
1189
1197
  info: {
1190
1198
  bgColor: "bg-muted/10",
1191
1199
  borderColor: "border-blue-500",
@@ -1211,22 +1219,22 @@ const Kt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1211
1219
  borderColor: "border",
1212
1220
  iconColor: "text-muted-foreground"
1213
1221
  }
1214
- }, ns = (e) => Z({ class: "flex justify-center" }, [
1222
+ }, as = (e) => Z({ class: "flex justify-center" }, [
1215
1223
  he({ class: "text-lg font-bold mb-0" }, e)
1216
- ]), as = r(({ href: e, class: t }, s) => Ue({
1224
+ ]), os = r(({ href: e, class: t }, s) => Ye({
1217
1225
  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}`,
1218
1226
  href: e,
1219
1227
  animateIn: "pullRightIn",
1220
1228
  animateOut: "pullRight",
1221
1229
  role: "alert"
1222
- }, s)), os = r(({ close: e, class: t }, s) => o({
1230
+ }, s)), ls = r(({ close: e, class: t }, s) => o({
1223
1231
  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}`,
1224
1232
  click: () => e(),
1225
1233
  animateIn: "pullRightIn",
1226
1234
  animateOut: "pullRight",
1227
1235
  role: "alert"
1228
1236
  }, s));
1229
- class Ga extends C {
1237
+ class _a extends C {
1230
1238
  /**
1231
1239
  * This will declare the props for the compiler.
1232
1240
  *
@@ -1250,10 +1258,10 @@ class Ga extends C {
1250
1258
  */
1251
1259
  render() {
1252
1260
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1253
- return a ? as({
1261
+ return a ? os({
1254
1262
  href: a,
1255
1263
  class: `${t} ${s}`
1256
- }, l) : os({
1264
+ }, l) : ls({
1257
1265
  close: this.close.bind(this),
1258
1266
  class: `${t} ${s}`
1259
1267
  }, l);
@@ -1265,7 +1273,7 @@ class Ga extends C {
1265
1273
  */
1266
1274
  afterSetup() {
1267
1275
  const t = this.duration;
1268
- t !== "infinite" && (this.timer = new mt(t, this.close.bind(this)), this.timer.start());
1276
+ t !== "infinite" && (this.timer = new bt(t, this.close.bind(this)), this.timer.start());
1269
1277
  }
1270
1278
  /**
1271
1279
  * This will get the style properties based on the notification type.
@@ -1274,7 +1282,7 @@ class Ga extends C {
1274
1282
  */
1275
1283
  getTypeStyles() {
1276
1284
  const t = this.type || "default";
1277
- return ze[t] || ze.default;
1285
+ return Oe[t] || Oe.default;
1278
1286
  }
1279
1287
  /**
1280
1288
  * This will get the buttons for the notification.
@@ -1303,7 +1311,7 @@ class Ga extends C {
1303
1311
  ]),
1304
1312
  o({ class: "flex flex-auto flex-col" }, [
1305
1313
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1306
- this.title && ns(this.title)
1314
+ this.title && as(this.title)
1307
1315
  ]),
1308
1316
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1309
1317
  (this.primary || this.secondary) && ue({ class: "margin-top-24 flex align-center" }, this.getButtons())
@@ -1327,25 +1335,25 @@ class Ga extends C {
1327
1335
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1328
1336
  }
1329
1337
  }
1330
- const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w({
1338
+ const Ne = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w({
1331
1339
  class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
1332
1340
  onState: ["method", { active: e }],
1333
1341
  dataSet: ["method", ["state", e, "active"]],
1334
1342
  click: (n, { state: a }) => {
1335
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), ls(e);
1343
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), rs(e);
1336
1344
  }
1337
1345
  }, [
1338
1346
  x({}, s),
1339
1347
  g(t)
1340
- ])), ls = (e) => {
1348
+ ])), rs = (e) => {
1341
1349
  const t = document.documentElement;
1342
- if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Oe && !Oe("(prefers-color-scheme: " + e + ")").matches) {
1350
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Ne && !Ne("(prefers-color-scheme: " + e + ")").matches) {
1343
1351
  t.classList.add(e);
1344
1352
  return;
1345
1353
  }
1346
1354
  const s = e === "light" ? "dark" : "light";
1347
1355
  t.classList.remove(s);
1348
- }, _a = M(
1356
+ }, Ka = M(
1349
1357
  {
1350
1358
  /**
1351
1359
  * This will render the component.
@@ -1372,7 +1380,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1372
1380
  };
1373
1381
  }
1374
1382
  }
1375
- ), Ka = O(
1383
+ ), Qa = O(
1376
1384
  {
1377
1385
  /**
1378
1386
  * The initial state of the Toggle.
@@ -1424,13 +1432,13 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1424
1432
  ]);
1425
1433
  }
1426
1434
  }
1427
- ), rs = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : Et({
1435
+ ), is = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : Ut({
1428
1436
  src: e,
1429
1437
  alt: t,
1430
1438
  class: "rounded-full"
1431
- })), is = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), _e = (e) => !e || e.length < 2 ? e : is(e), cs = (e) => g([e, (t, s) => {
1432
- s.textContent = _e(t);
1433
- }]), Ne = {
1439
+ })), cs = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), Ke = (e) => !e || e.length < 2 ? e : cs(e), ds = (e) => g([e, (t, s) => {
1440
+ s.textContent = Ke(t);
1441
+ }]), Re = {
1434
1442
  xs: "h-6 w-6",
1435
1443
  sm: "h-8 w-8",
1436
1444
  md: "h-12 w-12",
@@ -1440,7 +1448,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1440
1448
  "3xl": "h-48 w-48",
1441
1449
  "4xl": "h-64 w-64",
1442
1450
  default: "h-12 w-12"
1443
- }, Re = {
1451
+ }, Fe = {
1444
1452
  xs: "text-[7px]",
1445
1453
  sm: "text-xs",
1446
1454
  md: "text-base",
@@ -1450,8 +1458,8 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1450
1458
  "3xl": "text-4xl",
1451
1459
  "4xl": "text-5xl",
1452
1460
  default: "text-base"
1453
- }, ds = (e) => Ne[e] || Ne.default, us = (e) => Re[e] || Re.default, hs = (e, t = null, s = "md") => {
1454
- const n = _e(String(e)), a = us(s);
1461
+ }, us = (e) => Re[e] || Re.default, hs = (e) => Fe[e] || Fe.default, fs = (e, t = null, s = "md") => {
1462
+ const n = Ke(String(e)), a = hs(s);
1455
1463
  return o(
1456
1464
  {
1457
1465
  class: `
@@ -1461,21 +1469,21 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1461
1469
  `
1462
1470
  },
1463
1471
  [
1464
- t ? cs(t) : g({ class: "uppercase" }, n)
1472
+ t ? ds(t) : g({ class: "uppercase" }, n)
1465
1473
  ]
1466
1474
  );
1467
- }, fs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1468
- const l = ds(a);
1475
+ }, gs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1476
+ const l = us(a);
1469
1477
  return o(
1470
1478
  {
1471
1479
  class: `relative flex items-center justify-center ${l}`
1472
1480
  },
1473
1481
  [
1474
- rs({ src: e, alt: t }),
1475
- hs(s, n, a)
1482
+ is({ src: e, alt: t }),
1483
+ fs(s, n, a)
1476
1484
  ]
1477
1485
  );
1478
- }), gs = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1 && e.indexOf("blob:") === -1, Qa = M(
1486
+ }), ms = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1 && e.indexOf("blob:") === -1, Ja = M(
1479
1487
  {
1480
1488
  /**
1481
1489
  * Get the initial state for the component.
@@ -1531,7 +1539,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1531
1539
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1532
1540
  }
1533
1541
  }, [
1534
- T("loaded", (s) => s === !1 || gs(this.src) ? V({
1542
+ T("loaded", (s) => s === !1 || ms(this.src) ? V({
1535
1543
  htmlFor: e,
1536
1544
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1537
1545
  }, [
@@ -1546,7 +1554,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1546
1554
  ]);
1547
1555
  }
1548
1556
  }
1549
- ), Ja = M(
1557
+ ), Za = M(
1550
1558
  {
1551
1559
  /**
1552
1560
  * Get the initial state for the component.
@@ -1628,7 +1636,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1628
1636
  this.input = null;
1629
1637
  }
1630
1638
  }
1631
- ), ms = (e, t) => Ue(
1639
+ ), bs = (e, t) => Ye(
1632
1640
  {
1633
1641
  href: e,
1634
1642
  "aria-current": t === "Breadcrumb" && "page",
@@ -1636,14 +1644,14 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1636
1644
  class: "text-muted-foreground font-medium hover:text-foreground"
1637
1645
  },
1638
1646
  [g(t)]
1639
- ), bs = () => x({
1647
+ ), xs = () => x({
1640
1648
  class: "mx-3 text-muted-foreground",
1641
1649
  "aria-hidden": !0,
1642
1650
  size: "xs"
1643
- }, u.chevron.single.right), xs = (e) => o({ class: "flex items-center" }, [
1644
- e.href ? ms(e.href, e.label) : g(e.label),
1645
- e.separator && bs()
1646
- ]), Za = M(
1651
+ }, u.chevron.single.right), ps = (e) => o({ class: "flex items-center" }, [
1652
+ e.href ? bs(e.href, e.label) : g(e.label),
1653
+ e.separator && xs()
1654
+ ]), Xa = M(
1647
1655
  {
1648
1656
  /**
1649
1657
  * Set initial data
@@ -1672,7 +1680,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1672
1680
  o({
1673
1681
  role: "list",
1674
1682
  class: "flex items-center",
1675
- for: ["items", (t, s) => xs({
1683
+ for: ["items", (t, s) => ps({
1676
1684
  href: t.href,
1677
1685
  label: t.label,
1678
1686
  separator: s < e
@@ -1682,7 +1690,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1682
1690
  );
1683
1691
  }
1684
1692
  }
1685
- ), Fe = {
1693
+ ), Le = {
1686
1694
  xs: "h-1 w-1",
1687
1695
  sm: "h-2 w-2",
1688
1696
  md: "h-4 w-4",
@@ -1691,7 +1699,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1691
1699
  "2xl": "h-16 w-16",
1692
1700
  "3xl": "h-24 w-24",
1693
1701
  default: "h-4 w-4"
1694
- }, ps = (e) => Fe[e] || Fe.default, ys = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1702
+ }, ys = (e) => Le[e] || Le.default, ws = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1695
1703
  g({
1696
1704
  class: "block w-full h-full rounded-full transition-colors",
1697
1705
  onSet: ["activeIndex", {
@@ -1702,10 +1710,10 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1702
1710
  n.activeIndex = e, a && a(e);
1703
1711
  }
1704
1712
  })
1705
- ]), ws = (e, t) => Array.from({ length: e }, (s, n) => ys({
1713
+ ]), vs = (e, t) => Array.from({ length: e }, (s, n) => ws({
1706
1714
  index: n,
1707
1715
  size: t
1708
- })), Xa = M(
1716
+ })), eo = M(
1709
1717
  {
1710
1718
  /**
1711
1719
  * Defines component data (props).
@@ -1727,7 +1735,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1727
1735
  * @returns {object}
1728
1736
  */
1729
1737
  render() {
1730
- const e = this.gap || "gap-2", t = ps(this.size || "sm"), s = ws(this.data.count, t);
1738
+ const e = this.gap || "gap-2", t = ys(this.size || "sm"), s = vs(this.data.count, t);
1731
1739
  return o(
1732
1740
  { class: "flex justify-center items-center py-2" },
1733
1741
  [
@@ -1736,7 +1744,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1736
1744
  );
1737
1745
  }
1738
1746
  }
1739
- ), vs = ({ toggleDropdown: e }) => w(
1747
+ ), ks = ({ toggleDropdown: e }) => w(
1740
1748
  {
1741
1749
  cache: "button",
1742
1750
  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",
@@ -1746,16 +1754,16 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1746
1754
  g({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1747
1755
  x({ size: "sm" }, u.chevron.upDown)
1748
1756
  ]
1749
- ), ks = (e, t, s) => ge({
1757
+ ), Cs = (e, t, s) => ge({
1750
1758
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1751
1759
  click: () => t(e),
1752
1760
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1753
1761
  }, [
1754
1762
  e.icon && g({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1755
1763
  g({ class: "text-base font-normal" }, e.label)
1756
- ]), Cs = (e, t) => o({ class: "w-full border rounded-md" }, [
1757
- X({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => ks(s, e, t)] })
1758
- ]), Ss = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1764
+ ]), Ss = (e, t) => o({ class: "w-full border rounded-md" }, [
1765
+ X({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Cs(s, e, t)] })
1766
+ ]), $s = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1759
1767
  T(
1760
1768
  "open",
1761
1769
  (s, n, a) => s ? new te({
@@ -1763,10 +1771,10 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1763
1771
  parent: a,
1764
1772
  button: a.button
1765
1773
  }, [
1766
- Cs(e, t)
1774
+ Ss(e, t)
1767
1775
  ]) : null
1768
1776
  )
1769
- ]), eo = M(
1777
+ ]), to = M(
1770
1778
  {
1771
1779
  /**
1772
1780
  * This will set up the data.
@@ -1847,8 +1855,8 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1847
1855
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
1848
1856
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
1849
1857
  // @ts-ignore
1850
- vs({ toggleDropdown: this.toggleDropdown.bind(this) }),
1851
- Ss({
1858
+ ks({ toggleDropdown: this.toggleDropdown.bind(this) }),
1859
+ $s({
1852
1860
  // @ts-ignore
1853
1861
  state: this.state,
1854
1862
  // @ts-ignore
@@ -1868,21 +1876,21 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1868
1876
  ]);
1869
1877
  }
1870
1878
  }
1871
- ), Ke = ({ icon: e, click: t, ariaLabel: s }) => b({
1879
+ ), Qe = ({ icon: e, click: t, ariaLabel: s }) => b({
1872
1880
  variant: "icon",
1873
1881
  class: "flex flex-none",
1874
1882
  click: t,
1875
1883
  icon: e,
1876
1884
  "aria-label": s
1877
- }), $s = ({ click: e }) => Ke({
1885
+ }), Ds = ({ click: e }) => Qe({
1878
1886
  icon: u.circleMinus,
1879
1887
  click: e,
1880
1888
  ariaLabel: "Decrement"
1881
- }), Ds = ({ click: e }) => Ke({
1889
+ }), Is = ({ click: e }) => Qe({
1882
1890
  icon: u.circlePlus,
1883
1891
  click: e,
1884
1892
  ariaLabel: "Increment"
1885
- }), Is = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
1893
+ }), Ts = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
1886
1894
  value: ["[[count]]", a],
1887
1895
  bind: e,
1888
1896
  blur: (l, { state: i }) => {
@@ -1895,7 +1903,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1895
1903
  max: s,
1896
1904
  type: "number",
1897
1905
  "aria-label": "Counter"
1898
- })), to = O(
1906
+ })), so = O(
1899
1907
  {
1900
1908
  /**
1901
1909
  * Initial state for the counter component.
@@ -1918,18 +1926,18 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1918
1926
  render() {
1919
1927
  const e = this.class ?? "";
1920
1928
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
1921
- $s({ click: () => this.state.decrement("count") }),
1922
- Is({
1929
+ Ds({ click: () => this.state.decrement("count") }),
1930
+ Ts({
1923
1931
  bind: this.bind,
1924
1932
  readonly: this.readonly,
1925
1933
  min: this.min,
1926
1934
  max: this.max
1927
1935
  }),
1928
- Ds({ click: () => this.state.increment("count") })
1936
+ Is({ click: () => this.state.increment("count") })
1929
1937
  ]);
1930
1938
  }
1931
1939
  }
1932
- ), Ts = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
1940
+ ), Ms = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
1933
1941
  { class: "grid grid-cols-3 gap-2" },
1934
1942
  ee.monthNames.map(
1935
1943
  (n, a) => b(
@@ -1943,9 +1951,9 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1943
1951
  n.substring(0, 3)
1944
1952
  )
1945
1953
  )
1946
- ), P = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Ms = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), L = (e, t, s) => `${e}-${P(t + 1)}-${P(s)}`, Bs = (e) => e ? "bg-accent text-primary" : "", Ps = (e) => e ? "text-muted-foreground opacity-50" : "", zs = (e, t) => e === t, Os = (e, t) => zs(e, t) ? "bg-primary text-primary-foreground" : "", Ns = (e, t, s, n) => {
1947
- const a = Os(t, n);
1948
- return a || (e ? Bs(e) : s ? Ps(s) : "text-foreground");
1954
+ ), P = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Bs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), L = (e, t, s) => `${e}-${P(t + 1)}-${P(s)}`, Ps = (e) => e ? "bg-accent text-primary" : "", zs = (e) => e ? "text-muted-foreground opacity-50" : "", Os = (e, t) => e === t, Ns = (e, t) => Os(e, t) ? "bg-primary text-primary-foreground" : "", Rs = (e, t, s, n) => {
1955
+ const a = Ns(t, n);
1956
+ return a || (e ? Ps(e) : s ? zs(s) : "text-foreground");
1949
1957
  }, oe = (e) => {
1950
1958
  const {
1951
1959
  day: t,
@@ -1960,7 +1968,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1960
1968
  {
1961
1969
  class: `
1962
1970
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
1963
- ${Ns(a, s, l, n)}
1971
+ ${Rs(a, s, l, n)}
1964
1972
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
1965
1973
  disabled:pointer-events-none disabled:opacity-50
1966
1974
  `,
@@ -1971,7 +1979,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1971
1979
  },
1972
1980
  t.toString()
1973
1981
  );
1974
- }, le = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Rs = (e, t, s, n = !1) => {
1982
+ }, le = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Fs = (e, t, s, n = !1) => {
1975
1983
  const { year: a, month: l } = e, i = L(a, l, e.date), c = new Date(a, l, 1).getDay(), h = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), v = [], q = l === 0 ? 11 : l - 1, A = l === 0 ? a - 1 : a;
1976
1984
  for (let d = c - 1; d >= 0; d--) {
1977
1985
  const y = m - d, S = le(y, q, A, t), $ = new Date(A, q, y) < new Date(t.year, t.month, t.date), R = n && $;
@@ -2017,7 +2025,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2017
2025
  );
2018
2026
  }
2019
2027
  return v;
2020
- }, Le = ({ label: e, click: t }) => b(
2028
+ }, je = ({ label: e, click: t }) => b(
2021
2029
  {
2022
2030
  class: `
2023
2031
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2030,16 +2038,16 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2030
2038
  variant: "icon",
2031
2039
  icon: e === "Previous" ? u.chevron.single.left : u.chevron.single.right
2032
2040
  }
2033
- ), Fs = ({ 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" }, [
2041
+ ), Ls = ({ 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" }, [
2034
2042
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2035
2043
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2036
- Le({ label: "Previous", click: n }),
2037
- Le({ label: "Next", click: s })
2038
- ]), Ls = (e) => o(
2044
+ je({ label: "Previous", click: n }),
2045
+ je({ label: "Next", click: s })
2046
+ ]), js = (e) => o(
2039
2047
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2040
2048
  e
2041
- ), js = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Ls), Hs = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2042
- Fs({
2049
+ ), Hs = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(js), As = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2050
+ Ls({
2043
2051
  onMonthClick: e.onMonthClick,
2044
2052
  onYearClick: e.onYearClick,
2045
2053
  next: e.next,
@@ -2050,10 +2058,10 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2050
2058
  onSet: [
2051
2059
  "currentDate",
2052
2060
  () => [
2053
- o({ class: "grid grid-cols-7" }, js()),
2061
+ o({ class: "grid grid-cols-7" }, Hs()),
2054
2062
  o(
2055
2063
  { class: "grid grid-cols-7" },
2056
- Rs(
2064
+ Fs(
2057
2065
  e.current,
2058
2066
  e.today,
2059
2067
  e.select,
@@ -2063,7 +2071,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2063
2071
  ]
2064
2072
  ]
2065
2073
  })
2066
- ]), As = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2074
+ ]), Es = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2067
2075
  const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
2068
2076
  return o(
2069
2077
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2081,7 +2089,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2081
2089
  )
2082
2090
  );
2083
2091
  };
2084
- class Es extends C {
2092
+ class Us extends C {
2085
2093
  /**
2086
2094
  * This will declare the props for the compiler.
2087
2095
  *
@@ -2097,7 +2105,7 @@ class Es extends C {
2097
2105
  * @returns {Date}
2098
2106
  */
2099
2107
  getSelectedDate(t) {
2100
- const s = this.selectedDate ? new Date(Ms(this.selectedDate)) : t;
2108
+ const s = this.selectedDate ? new Date(Bs(this.selectedDate)) : t;
2101
2109
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2102
2110
  }
2103
2111
  /**
@@ -2194,7 +2202,7 @@ class Es extends C {
2194
2202
  T("view", (t) => {
2195
2203
  switch (t) {
2196
2204
  case "months":
2197
- return Ts(
2205
+ return Ms(
2198
2206
  {
2199
2207
  // @ts-ignore
2200
2208
  currentMonth: this.data.current.month,
@@ -2206,7 +2214,7 @@ class Es extends C {
2206
2214
  }
2207
2215
  );
2208
2216
  case "years":
2209
- return As(
2217
+ return Es(
2210
2218
  {
2211
2219
  // @ts-ignore
2212
2220
  currentMonth: this.data.current.month,
@@ -2218,7 +2226,7 @@ class Es extends C {
2218
2226
  }
2219
2227
  );
2220
2228
  default:
2221
- return Hs({
2229
+ return As({
2222
2230
  // @ts-ignore
2223
2231
  current: this.data.current,
2224
2232
  // @ts-ignore
@@ -2239,33 +2247,33 @@ class Es extends C {
2239
2247
  ]);
2240
2248
  }
2241
2249
  }
2242
- const Us = (e) => {
2250
+ const Ys = (e) => {
2243
2251
  let t = "";
2244
2252
  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;
2245
- }, Ys = (e) => {
2253
+ }, Vs = (e) => {
2246
2254
  if (e.length !== 8)
2247
2255
  return null;
2248
2256
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2249
2257
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2250
- }, Vs = ({ bind: e, required: t }) => p({
2258
+ }, Ws = ({ bind: e, required: t }) => p({
2251
2259
  cache: "input",
2252
2260
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2253
2261
  bind: e,
2254
2262
  required: t
2255
- }), Ws = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2263
+ }), qs = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2256
2264
  cache: "dateInput",
2257
2265
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2258
2266
  placeholder: e || "mm/dd/yyyy",
2259
2267
  input: t,
2260
2268
  focus: s,
2261
2269
  onState: ["selectedDate", (n) => n ? ee.format("standard", n) : ""]
2262
- }), qs = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2270
+ }), Gs = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2263
2271
  {
2264
2272
  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"
2265
2273
  },
2266
2274
  [
2267
- Vs({ bind: e, required: t }),
2268
- Ws({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2275
+ Ws({ bind: e, required: t }),
2276
+ qs({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2269
2277
  w(
2270
2278
  {
2271
2279
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2276,20 +2284,20 @@ const Us = (e) => {
2276
2284
  ]
2277
2285
  )
2278
2286
  ]
2279
- ), Gs = ({ handleDateSelect: e, blockPriorDates: t }) => me(
2287
+ ), _s = ({ handleDateSelect: e, blockPriorDates: t }) => me(
2280
2288
  (s, n, a) => new te({
2281
2289
  cache: "dropdown",
2282
2290
  parent: a,
2283
2291
  button: a.panel,
2284
2292
  size: "fit"
2285
2293
  }, [
2286
- new Es({
2294
+ new Us({
2287
2295
  selectedDate: a.state.selectedDate,
2288
2296
  selectedCallBack: e,
2289
2297
  blockPriorDates: t
2290
2298
  })
2291
2299
  ])
2292
- ), so = O(
2300
+ ), no = O(
2293
2301
  {
2294
2302
  /**
2295
2303
  * The initial state of the DatePicker.
@@ -2318,8 +2326,8 @@ const Us = (e) => {
2318
2326
  */
2319
2327
  handleInputChange(e) {
2320
2328
  const s = e.target.value.replace(/\D/g, "");
2321
- e.target.value = Us(s);
2322
- const n = Ys(s);
2329
+ e.target.value = Ys(s);
2330
+ const n = Vs(s);
2323
2331
  n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2324
2332
  },
2325
2333
  /**
@@ -2356,7 +2364,7 @@ const Us = (e) => {
2356
2364
  return o(
2357
2365
  { class: "relative w-full max-w-[320px]" },
2358
2366
  [
2359
- qs({
2367
+ Gs({
2360
2368
  toggleOpen: this.toggleOpen.bind(this),
2361
2369
  bind: this.bind,
2362
2370
  required: this.required,
@@ -2364,7 +2372,7 @@ const Us = (e) => {
2364
2372
  handleInputFocus: this.handleInputFocus.bind(this),
2365
2373
  placeholder: this.placeholder
2366
2374
  }),
2367
- Gs({
2375
+ _s({
2368
2376
  handleDateSelect: this.handleDateSelect.bind(this),
2369
2377
  blockPriorDates: this.blockPriorDates || !1
2370
2378
  })
@@ -2372,7 +2380,7 @@ const Us = (e) => {
2372
2380
  );
2373
2381
  }
2374
2382
  }
2375
- ), je = ({ label: e, click: t }) => b(
2383
+ ), He = ({ label: e, click: t }) => b(
2376
2384
  {
2377
2385
  class: `
2378
2386
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2385,15 +2393,15 @@ const Us = (e) => {
2385
2393
  variant: "icon",
2386
2394
  icon: e === "Previous" ? u.chevron.single.left : u.chevron.single.right
2387
2395
  }
2388
- ), _s = ({ 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" }, [
2396
+ ), Ks = ({ 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" }, [
2389
2397
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2390
2398
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2391
- je({ label: "Previous", click: n }),
2392
- je({ label: "Next", click: s })
2393
- ]), Ks = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Qs = () => o(
2399
+ He({ label: "Previous", click: n }),
2400
+ He({ label: "Next", click: s })
2401
+ ]), Qs = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Js = () => o(
2394
2402
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2395
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Ks)
2396
- ), Js = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2403
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Qs)
2404
+ ), Zs = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2397
2405
  let h = "ghost", m = "";
2398
2406
  return n || a ? (h = "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(
2399
2407
  {
@@ -2406,17 +2414,17 @@ const Us = (e) => {
2406
2414
  },
2407
2415
  e.toString()
2408
2416
  );
2409
- }, Zs = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2417
+ }, Xs = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2410
2418
  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(), h = [], m = t.month === 0 ? 11 : t.month - 1, v = t.month === 0 ? t.year - 1 : t.year, q = new Date(v, m + 1, 0).getDate(), A = t.month === 11 ? 0 : t.month + 1, E = t.month === 11 ? t.year + 1 : t.year;
2411
2419
  for (let f = i - 1; f >= 0; f--) {
2412
- const d = q - f, y = L(v, m, d), S = new Date(v, m, d), $ = new Date(e.year, e.month, e.date), R = S < $, G = s && R, _ = a === y, K = l === y, st = a && l && y > a && y < l;
2420
+ const d = q - f, y = L(v, m, d), S = new Date(v, m, d), $ = new Date(e.year, e.month, e.date), R = S < $, G = s && R, _ = a === y, K = l === y, nt = a && l && y > a && y < l;
2413
2421
  h.push({
2414
2422
  day: d,
2415
2423
  iso: y,
2416
2424
  disabled: G,
2417
2425
  isStart: _,
2418
2426
  isEnd: K,
2419
- isBetween: st,
2427
+ isBetween: nt,
2420
2428
  isOtherMonth: !0,
2421
2429
  click: () => n(y)
2422
2430
  });
@@ -2436,8 +2444,8 @@ const Us = (e) => {
2436
2444
  }
2437
2445
  });
2438
2446
  }
2439
- const we = (7 - h.length % 7) % 7;
2440
- for (let f = 1; f <= we; f++) {
2447
+ const ve = (7 - h.length % 7) % 7;
2448
+ for (let f = 1; f <= ve; f++) {
2441
2449
  const d = L(E, A, f), y = new Date(E, A, f), S = new Date(e.year, e.month, e.date), $ = y < S, R = s && $, G = a === d, _ = l === d, K = a && l && d > a && d < l;
2442
2450
  h.push({
2443
2451
  day: f,
@@ -2453,7 +2461,7 @@ const Us = (e) => {
2453
2461
  return o(
2454
2462
  { class: "grid grid-cols-7 gap-1" },
2455
2463
  h.map(
2456
- (f, d) => Js({
2464
+ (f, d) => Zs({
2457
2465
  day: f.day,
2458
2466
  iso: f.iso,
2459
2467
  disabled: f.disabled,
@@ -2465,8 +2473,8 @@ const Us = (e) => {
2465
2473
  })
2466
2474
  )
2467
2475
  );
2468
- }, Xs = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2469
- _s({
2476
+ }, en = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2477
+ Ks({
2470
2478
  // @ts-ignore
2471
2479
  onMonthClick: e.onMonthClick,
2472
2480
  // @ts-ignore
@@ -2481,8 +2489,8 @@ const Us = (e) => {
2481
2489
  onSet: [
2482
2490
  "currentDate",
2483
2491
  () => [
2484
- Qs(),
2485
- Zs({
2492
+ Js(),
2493
+ Xs({
2486
2494
  // @ts-ignore
2487
2495
  today: e.today,
2488
2496
  // @ts-ignore
@@ -2495,7 +2503,7 @@ const Us = (e) => {
2495
2503
  ]
2496
2504
  ]
2497
2505
  })
2498
- ])), en = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2506
+ ])), tn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2499
2507
  { class: "grid grid-cols-3 gap-2" },
2500
2508
  ee.monthNames.map(
2501
2509
  (n, a) => b(
@@ -2509,25 +2517,25 @@ const Us = (e) => {
2509
2517
  n.substring(0, 3)
2510
2518
  )
2511
2519
  )
2512
- ), tn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2520
+ ), sn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2513
2521
  Q("selecting", (l) => b({
2514
2522
  click: n,
2515
2523
  variant: l === "start" ? "primary" : "outline",
2516
2524
  class: "flex-1"
2517
2525
  }, [
2518
- o({ class: "font-medium" }, He("current.start", "Start Date"))
2526
+ o({ class: "font-medium" }, Ae("current.start", "Start Date"))
2519
2527
  ])),
2520
2528
  Q("selecting", (l) => b({
2521
2529
  click: a,
2522
2530
  variant: l === "end" ? "primary" : "outline",
2523
2531
  class: "flex-1"
2524
2532
  }, [
2525
- o({ class: "font-medium" }, He("current.end", "End Date"))
2533
+ o({ class: "font-medium" }, Ae("current.end", "End Date"))
2526
2534
  ]))
2527
- ]), He = (e, t) => [`[[${e}]]`, (s) => s == null ? t : sn(s)], sn = (e) => {
2535
+ ]), Ae = (e, t) => [`[[${e}]]`, (s) => s == null ? t : nn(s)], nn = (e) => {
2528
2536
  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"];
2529
2537
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2530
- }, nn = ({ currentYear: e, onSelect: t }) => {
2538
+ }, an = ({ currentYear: e, onSelect: t }) => {
2531
2539
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2532
2540
  return o(
2533
2541
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2545,7 +2553,7 @@ const Us = (e) => {
2545
2553
  )
2546
2554
  );
2547
2555
  };
2548
- class an extends C {
2556
+ class on extends C {
2549
2557
  /**
2550
2558
  * Declare compiler props.
2551
2559
  *
@@ -2642,7 +2650,7 @@ class an extends C {
2642
2650
  render() {
2643
2651
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2644
2652
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2645
- tn({
2653
+ sn({
2646
2654
  start: a,
2647
2655
  end: l,
2648
2656
  selecting: n,
@@ -2656,7 +2664,7 @@ class an extends C {
2656
2664
  T("view", (i) => {
2657
2665
  switch (i) {
2658
2666
  case "months":
2659
- return en(
2667
+ return tn(
2660
2668
  {
2661
2669
  currentMonth: s.month,
2662
2670
  currentYear: s.year,
@@ -2666,7 +2674,7 @@ class an extends C {
2666
2674
  }
2667
2675
  );
2668
2676
  case "years":
2669
- return nn(
2677
+ return an(
2670
2678
  {
2671
2679
  currentYear: s.year,
2672
2680
  onSelect: (c) => {
@@ -2675,7 +2683,7 @@ class an extends C {
2675
2683
  }
2676
2684
  );
2677
2685
  default:
2678
- return Xs({
2686
+ return en({
2679
2687
  // @ts-ignore
2680
2688
  monthName: this.data.monthName,
2681
2689
  year: s.year,
@@ -2703,35 +2711,35 @@ class an extends C {
2703
2711
  ]);
2704
2712
  }
2705
2713
  }
2706
- const on = ({ bind: e, required: t }) => p({
2714
+ const ln = ({ bind: e, required: t }) => p({
2707
2715
  cache: "input",
2708
2716
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2709
2717
  bind: e,
2710
2718
  required: t
2711
- }), ln = ({ bind: e, required: t, toggleOpen: s }) => w({
2719
+ }), rn = ({ bind: e, required: t, toggleOpen: s }) => w({
2712
2720
  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",
2713
2721
  click: s
2714
2722
  }, [
2715
- on({ bind: e, required: t }),
2723
+ ln({ bind: e, required: t }),
2716
2724
  W(({ state: n }) => [
2717
2725
  g(U.date(["[[start]]", n], "Start Date")),
2718
2726
  g(" - "),
2719
2727
  g(U.date(["[[end]]", n], "End Date"))
2720
2728
  ]),
2721
2729
  Y({ html: u.calendar.days })
2722
- ]), rn = ({ handleDateSelect: e, blockPriorDates: t }) => me((s, n, a) => new te({
2730
+ ]), cn = ({ handleDateSelect: e, blockPriorDates: t }) => me((s, n, a) => new te({
2723
2731
  cache: "dropdown",
2724
2732
  parent: a,
2725
2733
  button: a.panel,
2726
2734
  size: "xl"
2727
2735
  }, [
2728
- new an({
2736
+ new on({
2729
2737
  startDate: a.state.start,
2730
2738
  endDate: a.state.end,
2731
2739
  onRangeSelect: e,
2732
2740
  blockPriorDates: t
2733
2741
  })
2734
- ])), no = O(
2742
+ ])), ao = O(
2735
2743
  {
2736
2744
  /**
2737
2745
  * The initial state of the DateRangePicker.
@@ -2767,12 +2775,12 @@ const on = ({ bind: e, required: t }) => p({
2767
2775
  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);
2768
2776
  };
2769
2777
  return o({ class: "relative w-full max-w-[320px]" }, [
2770
- ln({
2778
+ rn({
2771
2779
  toggleOpen: e,
2772
2780
  bind: this.bind,
2773
2781
  required: this.required
2774
2782
  }),
2775
- rn({
2783
+ cn({
2776
2784
  handleDateSelect: t,
2777
2785
  blockPriorDates: this.blockPriorDates || !1
2778
2786
  })
@@ -2780,11 +2788,11 @@ const on = ({ bind: e, required: t }) => p({
2780
2788
  }
2781
2789
  }
2782
2790
  );
2783
- function cn(e) {
2791
+ function dn(e) {
2784
2792
  let t = "";
2785
2793
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2786
2794
  }
2787
- function dn(e) {
2795
+ function un(e) {
2788
2796
  if (e.length < 4)
2789
2797
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2790
2798
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2798,7 +2806,7 @@ function dn(e) {
2798
2806
  meridian: a
2799
2807
  };
2800
2808
  }
2801
- function un({ bind: e, required: t }) {
2809
+ function hn({ bind: e, required: t }) {
2802
2810
  return p({
2803
2811
  cache: "input",
2804
2812
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -2806,7 +2814,7 @@ function un({ bind: e, required: t }) {
2806
2814
  required: t
2807
2815
  });
2808
2816
  }
2809
- function hn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2817
+ function fn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2810
2818
  return p({
2811
2819
  cache: "timeInput",
2812
2820
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
@@ -2816,14 +2824,14 @@ function hn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2816
2824
  onState: ["selectedTime", (n) => n || ""]
2817
2825
  });
2818
2826
  }
2819
- function fn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2827
+ function gn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2820
2828
  return o(
2821
2829
  {
2822
2830
  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"
2823
2831
  },
2824
2832
  [
2825
- un({ bind: e, required: t }),
2826
- hn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2833
+ hn({ bind: e, required: t }),
2834
+ fn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2827
2835
  w(
2828
2836
  {
2829
2837
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2850,7 +2858,7 @@ function re({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
2850
2858
  })
2851
2859
  );
2852
2860
  }
2853
- function gn({ handleTimeSelect: e }) {
2861
+ function mn({ handleTimeSelect: e }) {
2854
2862
  return me(
2855
2863
  (t, s, n) => new te(
2856
2864
  {
@@ -2897,7 +2905,7 @@ function gn({ handleTimeSelect: e }) {
2897
2905
  )
2898
2906
  );
2899
2907
  }
2900
- function Ae(e) {
2908
+ function Ee(e) {
2901
2909
  if (!e)
2902
2910
  return { hour: null, minute: null, meridian: null };
2903
2911
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
@@ -2910,7 +2918,7 @@ function Ae(e) {
2910
2918
  meridian: l
2911
2919
  });
2912
2920
  }
2913
- const ao = O(
2921
+ const oo = O(
2914
2922
  {
2915
2923
  /**
2916
2924
  * The initial shallow state of the TimePicker.
@@ -2918,7 +2926,7 @@ const ao = O(
2918
2926
  * @member {object} state
2919
2927
  */
2920
2928
  state() {
2921
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ae(e);
2929
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ee(e);
2922
2930
  return {
2923
2931
  selectedTime: e,
2924
2932
  open: !1,
@@ -2934,7 +2942,7 @@ const ao = O(
2934
2942
  */
2935
2943
  after() {
2936
2944
  if (this.input.value) {
2937
- const { hour: e, minute: t, meridian: s } = Ae(this.input.value);
2945
+ const { hour: e, minute: t, meridian: s } = Ee(this.input.value);
2938
2946
  this.state.set({
2939
2947
  hour: e,
2940
2948
  minute: t,
@@ -2958,8 +2966,8 @@ const ao = O(
2958
2966
  * @param {Event} e
2959
2967
  */
2960
2968
  handleInputChange(e) {
2961
- let t = e.target.value.replace(/[^\d]/g, ""), s = cn(t);
2962
- const n = dn(t);
2969
+ let t = e.target.value.replace(/[^\d]/g, ""), s = dn(t);
2970
+ const n = un(t);
2963
2971
  n.formattedTime && (s = n.formattedTime, this.state.set({
2964
2972
  hour: n.hour,
2965
2973
  minute: n.minute,
@@ -2995,7 +3003,7 @@ const ao = O(
2995
3003
  return o(
2996
3004
  { class: "relative w-full max-w-[320px]" },
2997
3005
  [
2998
- fn({
3006
+ gn({
2999
3007
  toggleOpen: this.toggleOpen.bind(this),
3000
3008
  bind: this.bind,
3001
3009
  required: this.required,
@@ -3003,18 +3011,18 @@ const ao = O(
3003
3011
  handleInputFocus: this.handleInputFocus.bind(this),
3004
3012
  placeholder: this.placeholder
3005
3013
  }),
3006
- gn({
3014
+ mn({
3007
3015
  handleTimeSelect: this.handleTimeSelect.bind(this)
3008
3016
  })
3009
3017
  ]
3010
3018
  );
3011
3019
  }
3012
3020
  }
3013
- ), mn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3021
+ ), bn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3014
3022
  x({ size: "lg" }, e)
3015
- ]), bn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3023
+ ]), xn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3016
3024
  J({ class: "text-lg font-semibold" }, e)
3017
- ]), oo = r((e, t) => it(
3025
+ ]), lo = r((e, t) => ct(
3018
3026
  {
3019
3027
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3020
3028
  rounded-lg flex flex-auto flex-col
@@ -3027,10 +3035,10 @@ const ao = O(
3027
3035
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3028
3036
  // Icon and content
3029
3037
  // @ts-ignore
3030
- e.icon && mn(e.icon, e.iconColor),
3038
+ e.icon && bn(e.icon, e.iconColor),
3031
3039
  o({ class: "flex flex-auto flex-col gap-4" }, [
3032
3040
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3033
- bn(e),
3041
+ xn(e),
3034
3042
  // @ts-ignore
3035
3043
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3036
3044
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
@@ -3040,8 +3048,8 @@ const ao = O(
3040
3048
  ])
3041
3049
  ])
3042
3050
  ]
3043
- )), lo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3044
- Ge({ class: "flex flex-auto flex-col" }, [
3051
+ )), ro = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3052
+ _e({ class: "flex flex-auto flex-col" }, [
3045
3053
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3046
3054
  o({ class: "flex flex-auto items-center justify-center" }, [
3047
3055
  // @ts-ignore
@@ -3071,14 +3079,14 @@ r(({ value: e, label: t }) => w({
3071
3079
  dataSet: ["performance", ["state", e, "active"]],
3072
3080
  click: (s, { state: n }) => n.performance = e
3073
3081
  }, t));
3074
- const xn = (e, t) => {
3082
+ const pn = (e, t) => {
3075
3083
  const s = e.toggleAllSelectedRows();
3076
3084
  t.state.checked = !s;
3077
- }, pn = (e) => Ye({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3078
- W((t) => new Lt({ class: "mr-2", onChange: (s, n) => xn(t, n) }))
3079
- ]), yn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3085
+ }, yn = (e) => Ve({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3086
+ W((t) => new jt({ class: "mr-2", onChange: (s, n) => pn(t, n) }))
3087
+ ]), wn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3080
3088
  const i = e || "justify-start";
3081
- return Ye({
3089
+ return Ve({
3082
3090
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3083
3091
  click: t && (() => a(s))
3084
3092
  }, [
@@ -3087,12 +3095,12 @@ const xn = (e, t) => {
3087
3095
  t && Y({ class: "ml-2", html: u.arrows.upDown })
3088
3096
  ])
3089
3097
  ]);
3090
- }, ye = (e) => ct([
3091
- dt({
3098
+ }, we = (e) => dt([
3099
+ ut({
3092
3100
  class: "text-muted-foreground border-b",
3093
3101
  map: [
3094
3102
  e.headers,
3095
- (t) => t.label === "checkbox" ? pn({ toggle: e.toggle }) : yn({
3103
+ (t) => t.label === "checkbox" ? yn({ toggle: e.toggle }) : wn({
3096
3104
  align: t.align,
3097
3105
  sortable: t.sortable,
3098
3106
  key: t.key,
@@ -3101,7 +3109,7 @@ const xn = (e, t) => {
3101
3109
  })
3102
3110
  ]
3103
3111
  })
3104
- ]), wn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new bt({
3112
+ ]), vn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new xt({
3105
3113
  cache: "list",
3106
3114
  key: e,
3107
3115
  items: t,
@@ -3111,7 +3119,7 @@ const xn = (e, t) => {
3111
3119
  skeleton: l,
3112
3120
  columnCount: i
3113
3121
  });
3114
- class Qe extends C {
3122
+ class Je extends C {
3115
3123
  /**
3116
3124
  * Initializes component data.
3117
3125
  *
@@ -3194,10 +3202,10 @@ class Qe extends C {
3194
3202
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3195
3203
  be({ class: "w-full" }, [
3196
3204
  // @ts-ignore
3197
- this.headers && ye({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3205
+ this.headers && we({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3198
3206
  // @ts-ignore
3199
3207
  this.customHeader ?? null,
3200
- wn({
3208
+ vn({
3201
3209
  // @ts-ignore
3202
3210
  key: this.key,
3203
3211
  // @ts-ignore
@@ -3276,7 +3284,7 @@ class Qe extends C {
3276
3284
  this.data.selectedRows = [];
3277
3285
  }
3278
3286
  }
3279
- const vn = (e) => new xt({
3287
+ const kn = (e) => new pt({
3280
3288
  cache: "list",
3281
3289
  loadMoreItems: e.loadMoreItems,
3282
3290
  offset: e.offset,
@@ -3289,7 +3297,7 @@ const vn = (e) => new xt({
3289
3297
  skeleton: e.skeleton,
3290
3298
  columnCount: e.columnCount
3291
3299
  });
3292
- class kn extends Qe {
3300
+ class Cn extends Je {
3293
3301
  /**
3294
3302
  * Renders the DataTable component.
3295
3303
  *
@@ -3302,10 +3310,10 @@ class kn extends Qe {
3302
3310
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3303
3311
  be({ class: "w-full" }, [
3304
3312
  // @ts-ignore
3305
- this.headers && ye({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3313
+ this.headers && we({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3306
3314
  // @ts-ignore
3307
3315
  this.customHeader ?? null,
3308
- vn({
3316
+ kn({
3309
3317
  // @ts-ignore
3310
3318
  loadMoreItems: this.loadMoreItems,
3311
3319
  // @ts-ignore
@@ -3341,7 +3349,7 @@ class kn extends Qe {
3341
3349
  this.list.refresh();
3342
3350
  }
3343
3351
  }
3344
- const ro = r((e) => new kn(
3352
+ const io = r((e) => new Cn(
3345
3353
  {
3346
3354
  // @ts-ignore
3347
3355
  cache: e.cache ?? "list",
@@ -3372,7 +3380,7 @@ const ro = r((e) => new kn(
3372
3380
  // @ts-ignore
3373
3381
  skeleton: e.skeleton
3374
3382
  }
3375
- )), Cn = (e) => new pt({
3383
+ )), Sn = (e) => new yt({
3376
3384
  cache: "list",
3377
3385
  scrollContainer: e.scrollContainer,
3378
3386
  loadMoreItems: e.loadMoreItems,
@@ -3386,7 +3394,7 @@ const ro = r((e) => new kn(
3386
3394
  skeleton: e.skeleton,
3387
3395
  columnCount: e.columnCount
3388
3396
  });
3389
- class Sn extends Qe {
3397
+ class $n extends Je {
3390
3398
  /**
3391
3399
  * Renders the DataTable component.
3392
3400
  *
@@ -3399,10 +3407,10 @@ class Sn extends Qe {
3399
3407
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3400
3408
  be({ class: "w-full" }, [
3401
3409
  // @ts-ignore
3402
- this.headers && ye({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3410
+ this.headers && we({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3403
3411
  // @ts-ignore
3404
3412
  this.customHeader ?? null,
3405
- Cn({
3413
+ Sn({
3406
3414
  // @ts-ignore
3407
3415
  scrollContainer: this.scrollContainer,
3408
3416
  // @ts-ignore
@@ -3440,7 +3448,7 @@ class Sn extends Qe {
3440
3448
  this.list.refresh();
3441
3449
  }
3442
3450
  }
3443
- const io = r((e) => new Sn(
3451
+ const co = r((e) => new $n(
3444
3452
  {
3445
3453
  // @ts-ignore
3446
3454
  cache: e.cache ?? "list",
@@ -3473,28 +3481,28 @@ const io = r((e) => new Sn(
3473
3481
  // @ts-ignore
3474
3482
  skeleton: e.skeleton
3475
3483
  }
3476
- )), $n = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3484
+ )), Dn = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3477
3485
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3478
3486
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3479
- ])), Dn = () => o({ class: "flex items-center gap-x-1.5" }, [
3487
+ ])), In = () => o({ class: "flex items-center gap-x-1.5" }, [
3480
3488
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3481
3489
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3482
3490
  ]),
3483
3491
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3484
- ]), In = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3492
+ ]), Tn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3485
3493
  g("Last seen "),
3486
- ut({ datetime: e }, "3h ago")
3487
- ]), Tn = (e, t) => e === "online" ? Dn() : In(t), Mn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3494
+ ht({ datetime: e }, "3h ago")
3495
+ ]), Mn = (e, t) => e === "online" ? In() : Tn(t), Bn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3488
3496
  k({ class: "text-sm leading-6 m-0" }, e),
3489
- Tn(s, t)
3490
- ])), Bn = (e) => e.split(" ").map((s) => s[0]).join(""), Pn = r((e) => ge({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3497
+ Mn(s, t)
3498
+ ])), Pn = (e) => e.split(" ").map((s) => s[0]).join(""), zn = r((e) => ge({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3491
3499
  o({ class: "flex min-w-0 gap-x-4" }, [
3492
3500
  // @ts-ignore
3493
- fs({ src: e.image, alt: e.name, fallbackText: Bn(e.name) }),
3501
+ gs({ src: e.image, alt: e.name, fallbackText: Pn(e.name) }),
3494
3502
  // @ts-ignore
3495
- $n({ name: e.name, email: e.email })
3503
+ Dn({ name: e.name, email: e.email })
3496
3504
  ]),
3497
- Mn({
3505
+ Bn({
3498
3506
  // @ts-ignore
3499
3507
  role: e.role,
3500
3508
  // @ts-ignore
@@ -3502,16 +3510,16 @@ const io = r((e) => new Sn(
3502
3510
  // @ts-ignore
3503
3511
  status: e.status
3504
3512
  })
3505
- ])), co = r((e) => new yt({
3513
+ ])), uo = r((e) => new wt({
3506
3514
  cache: "list",
3507
3515
  key: "name",
3508
3516
  // @ts-ignore
3509
3517
  items: e.users,
3510
3518
  role: "list",
3511
3519
  class: "divide-y divide-border",
3512
- rowItem: Pn
3520
+ rowItem: zn
3513
3521
  }));
3514
- class zn extends C {
3522
+ class On extends C {
3515
3523
  /**
3516
3524
  * This will declare the props for the compiler.
3517
3525
  *
@@ -3572,14 +3580,14 @@ class zn extends C {
3572
3580
  });
3573
3581
  }
3574
3582
  }
3575
- const On = r(({ options: e, click: t }, s) => ({
3583
+ const Nn = r(({ options: e, click: t }, s) => ({
3576
3584
  tag: "li",
3577
3585
  ...{
3578
3586
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3579
3587
  click: t
3580
3588
  },
3581
3589
  children: s
3582
- })), Nn = (e, t = null, s = !1) => [
3590
+ })), Rn = (e, t = null, s = !1) => [
3583
3591
  t && o({
3584
3592
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3585
3593
  onState: ["selected", {
@@ -3606,7 +3614,7 @@ const On = r(({ options: e, click: t }, s) => ({
3606
3614
  ]
3607
3615
  )
3608
3616
  ];
3609
- class Je extends C {
3617
+ class Ze extends C {
3610
3618
  /**
3611
3619
  * This will declare the props for the compiler.
3612
3620
  *
@@ -3623,7 +3631,7 @@ class Je extends C {
3623
3631
  */
3624
3632
  render() {
3625
3633
  const t = !this.options && this.callBack;
3626
- return On(
3634
+ return Nn(
3627
3635
  { options: this.options, click: t },
3628
3636
  [
3629
3637
  this.addLink()
@@ -3637,8 +3645,8 @@ class Je extends C {
3637
3645
  * @protected
3638
3646
  */
3639
3647
  addLink() {
3640
- const t = this.options && this.options.length > 0, s = this.content || Nn(String(this.label), this.icon, t);
3641
- return this.href ? new gt(
3648
+ const t = this.options && this.options.length > 0, s = this.content || Rn(String(this.label), this.icon, t);
3649
+ return this.href ? new mt(
3642
3650
  {
3643
3651
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3644
3652
  cache: "link",
@@ -3647,7 +3655,7 @@ class Je extends C {
3647
3655
  exact: this.exact || !1
3648
3656
  },
3649
3657
  s
3650
- ) : new zn({
3658
+ ) : new On({
3651
3659
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3652
3660
  cache: "link",
3653
3661
  checkCallBack: this.checkCallBack
@@ -3665,10 +3673,10 @@ class Je extends C {
3665
3673
  this.link.update(t);
3666
3674
  }
3667
3675
  }
3668
- const Rn = r(({ map: e }, t) => X({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3669
- Ee({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3676
+ const Fn = r(({ map: e }, t) => X({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3677
+ Ue({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3670
3678
  ]));
3671
- class Fn extends C {
3679
+ class Ln extends C {
3672
3680
  /**
3673
3681
  * This will declare the props for the compiler.
3674
3682
  *
@@ -3717,7 +3725,7 @@ class Fn extends C {
3717
3725
  */
3718
3726
  addGroup(t) {
3719
3727
  const s = this.mapOptions(t.options);
3720
- return Rn({ map: s }, t.group);
3728
+ return Fn({ map: s }, t.group);
3721
3729
  }
3722
3730
  /**
3723
3731
  * This will add a link.
@@ -3726,10 +3734,10 @@ class Fn extends C {
3726
3734
  * @returns {object}
3727
3735
  */
3728
3736
  addLink(t) {
3729
- return new Je(t);
3737
+ return new Ze(t);
3730
3738
  }
3731
3739
  }
3732
- class Ze extends Fn {
3740
+ class Xe extends Ln {
3733
3741
  onCreated() {
3734
3742
  this.links = [];
3735
3743
  }
@@ -3740,7 +3748,7 @@ class Ze extends Fn {
3740
3748
  * @returns {object}
3741
3749
  */
3742
3750
  setupSubNav(t) {
3743
- return new Hn(
3751
+ return new An(
3744
3752
  {
3745
3753
  parentLink: t,
3746
3754
  options: t.options
@@ -3764,7 +3772,7 @@ class Ze extends Fn {
3764
3772
  * @returns {object}
3765
3773
  */
3766
3774
  addLink(t) {
3767
- const s = new Je(t);
3775
+ const s = new Ze(t);
3768
3776
  if (this.links.push(s), !s.options)
3769
3777
  return s;
3770
3778
  const n = this.addSubNav(s);
@@ -3775,11 +3783,11 @@ class Ze extends Fn {
3775
3783
  };
3776
3784
  }
3777
3785
  }
3778
- const Ln = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), jn = (e, t) => {
3786
+ const jn = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), Hn = (e, t) => {
3779
3787
  const s = e.link.panel.pathname;
3780
- return !s && e.isSelected() ? !0 : e.exact ? t === s : Ln(s, t);
3788
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : jn(s, t);
3781
3789
  };
3782
- class Hn extends Ze {
3790
+ class An extends Xe {
3783
3791
  /**
3784
3792
  * This will declare the props for the compiler.
3785
3793
  *
@@ -3808,7 +3816,7 @@ class Hn extends Ze {
3808
3816
  addWatcher() {
3809
3817
  return {
3810
3818
  watch: {
3811
- value: ["[[path]]", ve.data],
3819
+ value: ["[[path]]", ke.data],
3812
3820
  callBack: this.updateLinks.bind(this)
3813
3821
  }
3814
3822
  };
@@ -3849,7 +3857,7 @@ class Hn extends Ze {
3849
3857
  * @returns {void}
3850
3858
  */
3851
3859
  afterSetup() {
3852
- const t = ve.data.path;
3860
+ const t = ke.data.path;
3853
3861
  this.updateLinks(t);
3854
3862
  }
3855
3863
  /**
@@ -3861,27 +3869,27 @@ class Hn extends Ze {
3861
3869
  updateLinks(t) {
3862
3870
  let s = !1;
3863
3871
  for (const n of this.links)
3864
- if (n.rendered && (s = jn(n, t), s === !0))
3872
+ if (n.rendered && (s = Hn(n, t), s === !0))
3865
3873
  break;
3866
3874
  this.parentLink.update(s);
3867
3875
  }
3868
3876
  }
3869
- const An = (e) => he({ class: "text-lg ml-2" }, e), En = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
3877
+ const En = (e) => he({ class: "text-lg ml-2" }, e), Un = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
3870
3878
  b({
3871
3879
  variant: "icon",
3872
3880
  class: "m-2",
3873
3881
  click: (t, { state: s }) => s.toggle("open"),
3874
3882
  icon: u.arrows.left
3875
3883
  }),
3876
- e.title && An(e.title)
3877
- ]), Un = () => o({
3884
+ e.title && En(e.title)
3885
+ ]), Yn = () => o({
3878
3886
  class: `
3879
3887
  absolute inset-0 bg-black/40 z-[-1] fadeIn
3880
3888
  transition-opacity duration-200
3881
3889
  `,
3882
3890
  click: (e, { state: t }) => t.open = !1
3883
3891
  });
3884
- class Yn extends C {
3892
+ class Vn extends C {
3885
3893
  /**
3886
3894
  * This will declare the props for the compiler.
3887
3895
  *
@@ -3900,7 +3908,7 @@ class Yn extends C {
3900
3908
  class: "fixed inset-0 z-50",
3901
3909
  style: "[[typeClass]]"
3902
3910
  }, [
3903
- Un(),
3911
+ Yn(),
3904
3912
  // Popover Content
3905
3913
  o({
3906
3914
  class: `
@@ -3909,7 +3917,7 @@ class Yn extends C {
3909
3917
  dataSet: ["open", ["expanded", !0, "true"]]
3910
3918
  }, [
3911
3919
  o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
3912
- En({ title: this.title }),
3920
+ Un({ title: this.title }),
3913
3921
  o({ class: "flex flex-auto flex-col" }, this.children)
3914
3922
  ])
3915
3923
  ])
@@ -3947,31 +3955,31 @@ class Yn extends C {
3947
3955
  this.container = app.root;
3948
3956
  }
3949
3957
  }
3950
- const Xe = () => b({ class: "m-2", variant: "ghost", addState() {
3958
+ const et = () => b({ class: "m-2", variant: "ghost", addState() {
3951
3959
  return {
3952
3960
  open: !1
3953
3961
  };
3954
3962
  }, click: (e, { state: t }) => t.toggle("open") }, [
3955
3963
  x({}, u.bar.three)
3956
- ]), Vn = (e) => he({ class: "text-lg ml-2" }, e), Wn = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
3957
- Xe(),
3958
- e.title && Vn(e.title)
3959
- ]), et = (e, t) => {
3964
+ ]), Wn = (e) => he({ class: "text-lg ml-2" }, e), qn = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
3965
+ et(),
3966
+ e.title && Wn(e.title)
3967
+ ]), tt = (e, t) => {
3960
3968
  e.forEach((s) => {
3961
3969
  if (s.options) {
3962
- et(s.options, t);
3970
+ tt(s.options, t);
3963
3971
  return;
3964
3972
  }
3965
3973
  s.callBack = t;
3966
3974
  });
3967
- }, tt = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
3975
+ }, st = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
3968
3976
  T(
3969
3977
  "open",
3970
3978
  (t) => t ? [
3971
- new Yn({ title: e.title }, [
3979
+ new Vn({ title: e.title }, [
3972
3980
  W(({ state: s }) => {
3973
3981
  const n = (a) => s.open = !1;
3974
- return et(e.options, n), new Ze(
3982
+ return tt(e.options, n), new Xe(
3975
3983
  {
3976
3984
  options: e.options
3977
3985
  }
@@ -3980,23 +3988,23 @@ const Xe = () => b({ class: "m-2", variant: "ghost", addState() {
3980
3988
  ])
3981
3989
  ] : null
3982
3990
  )
3983
- ]), uo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
3991
+ ]), ho = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
3984
3992
  o([
3985
- Xe(),
3986
- tt(e)
3993
+ et(),
3994
+ st(e)
3987
3995
  ])
3988
- ])), ho = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
3996
+ ])), fo = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
3989
3997
  o({ class: "flex flex-auto flex-col w-full" }, [
3990
- Wn(e),
3991
- tt(e)
3998
+ qn(e),
3999
+ st(e)
3992
4000
  ])
3993
- ])), fo = r((e) => {
4001
+ ])), go = r((e) => {
3994
4002
  const t = e.margin || "m-4 ml-0";
3995
4003
  return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
3996
4004
  b({ variant: "back", class: "ghost", ...e })
3997
4005
  ]);
3998
4006
  });
3999
- class qn extends C {
4007
+ class Gn extends C {
4000
4008
  /**
4001
4009
  * This will declare the props for the compiler.
4002
4010
  *
@@ -4091,13 +4099,13 @@ class qn extends C {
4091
4099
  return this.children;
4092
4100
  }
4093
4101
  }
4094
- Ve.addType("dockableOverlay", (e) => {
4102
+ We.addType("dockableOverlay", (e) => {
4095
4103
  if (!e)
4096
4104
  return;
4097
4105
  const t = e.component;
4098
4106
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4099
4107
  });
4100
- class go extends qn {
4108
+ class mo extends Gn {
4101
4109
  /**
4102
4110
  * This will stop presistence.
4103
4111
  *
@@ -4167,7 +4175,7 @@ class go extends qn {
4167
4175
  * @returns {void}
4168
4176
  */
4169
4177
  afterSetup() {
4170
- Ve.add(
4178
+ We.add(
4171
4179
  this.container,
4172
4180
  "dockableOverlay",
4173
4181
  {
@@ -4202,7 +4210,7 @@ class go extends qn {
4202
4210
  this.state.docked = this.canDock();
4203
4211
  }
4204
4212
  }
4205
- const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4213
+ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4206
4214
  class: "p-2 cursor-pointer hover:bg-muted/50",
4207
4215
  onState: [
4208
4216
  [s, "selectedIndex", {
@@ -4211,10 +4219,10 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4211
4219
  }]
4212
4220
  ],
4213
4221
  click: () => t(e)
4214
- }, n)), _n = r(({ selectOption: e, state: t }) => X({
4222
+ }, n)), Kn = r(({ selectOption: e, state: t }) => X({
4215
4223
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4216
- for: ["filteredOptions", (s, n) => Gn({ index: n, click: e, state: t }, s.label)]
4217
- })), Kn = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4224
+ for: ["filteredOptions", (s, n) => _n({ index: n, click: e, state: t }, s.label)]
4225
+ })), Qn = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4218
4226
  N({
4219
4227
  cache: "input",
4220
4228
  // @ts-ignore
@@ -4239,7 +4247,7 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4239
4247
  // @ts-ignore
4240
4248
  x({ size: "sm" }, e.icon)
4241
4249
  ])
4242
- ])), Qn = (e) => o({
4250
+ ])), Jn = (e) => o({
4243
4251
  class: "relative flex fle-auto flex-col",
4244
4252
  onState: ["open", (t, s, n) => {
4245
4253
  if (t)
@@ -4249,10 +4257,10 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4249
4257
  button: n.input,
4250
4258
  size: "xl"
4251
4259
  }, [
4252
- _n(e)
4260
+ Kn(e)
4253
4261
  ]);
4254
4262
  }]
4255
- }), mo = M(
4263
+ }), bo = M(
4256
4264
  {
4257
4265
  /**
4258
4266
  * This will set up the data object.
@@ -4349,7 +4357,7 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4349
4357
  */
4350
4358
  render() {
4351
4359
  return o({ class: "relative w-full max-w-md" }, [
4352
- Kn({
4360
+ Qn({
4353
4361
  // @ts-ignore
4354
4362
  state: this.state,
4355
4363
  // @ts-ignore
@@ -4361,7 +4369,7 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4361
4369
  // @ts-ignore
4362
4370
  handleKeyDown: this.handleKeyDown.bind(this)
4363
4371
  }),
4364
- Qn({
4372
+ Jn({
4365
4373
  // @ts-ignore
4366
4374
  state: this.state,
4367
4375
  // @ts-ignore
@@ -4372,7 +4380,7 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4372
4380
  ]);
4373
4381
  }
4374
4382
  }
4375
- ), bo = r((e) => {
4383
+ ), xo = r((e) => {
4376
4384
  const t = e.icon ?? u.magnifyingGlass.default;
4377
4385
  return o({
4378
4386
  // @ts-ignore
@@ -4408,7 +4416,7 @@ const Gn = r(({ index: e, click: t, state: s }, n) => ge({
4408
4416
  })
4409
4417
  ]);
4410
4418
  });
4411
- class Jn extends C {
4419
+ class Zn extends C {
4412
4420
  /**
4413
4421
  * This will declare the props for the compiler.
4414
4422
  *
@@ -4426,7 +4434,7 @@ class Jn extends C {
4426
4434
  return o({ class: `${this.class || ""}` }, this.children);
4427
4435
  }
4428
4436
  }
4429
- class Zn extends Jn {
4437
+ class Xn extends Zn {
4430
4438
  /**
4431
4439
  * This will be called every time the route
4432
4440
  * is activated.
@@ -4436,15 +4444,15 @@ class Zn extends Jn {
4436
4444
  update(t) {
4437
4445
  }
4438
4446
  }
4439
- const Xn = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4447
+ const ea = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4440
4448
  tag: "section",
4441
4449
  ...e,
4442
4450
  children: t
4443
- })), ea = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4444
- ht({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4451
+ })), ta = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4452
+ ft({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4445
4453
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4446
4454
  ]));
4447
- class xo extends Zn {
4455
+ class po extends Xn {
4448
4456
  /**
4449
4457
  * This will declare the props for the compiler.
4450
4458
  *
@@ -4459,133 +4467,133 @@ class xo extends Zn {
4459
4467
  * @returns {object}
4460
4468
  */
4461
4469
  render() {
4462
- return Xn([
4463
- ea({
4470
+ return ea([
4471
+ ta({
4464
4472
  title: this.title,
4465
4473
  description: this.description
4466
4474
  }),
4467
- wt(this.children)
4475
+ vt(this.children)
4468
4476
  ]);
4469
4477
  }
4470
4478
  }
4471
4479
  export {
4472
- Ia as $,
4473
- La as A,
4474
- fo as B,
4475
- Es as C,
4476
- Qe as D,
4477
- Ya as E,
4478
- oo as F,
4479
- go as G,
4480
- Xa as H,
4481
- ro as I,
4482
- ba as J,
4483
- lo as K,
4484
- ga as L,
4485
- Ma as M,
4486
- Ge as N,
4487
- ja as O,
4488
- Aa as P,
4489
- Ha as Q,
4490
- es as R,
4491
- Jt as S,
4492
- Ea as T,
4493
- Pt as U,
4494
- Kt as V,
4495
- Qt as W,
4496
- Zt as X,
4480
+ Ta as $,
4481
+ ja as A,
4482
+ go as B,
4483
+ Us as C,
4484
+ Je as D,
4485
+ Va as E,
4486
+ lo as F,
4487
+ mo as G,
4488
+ eo as H,
4489
+ io as I,
4490
+ xa as J,
4491
+ ro as K,
4492
+ ma as L,
4493
+ Ba as M,
4494
+ _e as N,
4495
+ Ha as O,
4496
+ Ea as P,
4497
+ Aa as Q,
4498
+ ts as R,
4499
+ Zt as S,
4500
+ Ua as T,
4501
+ zt as U,
4502
+ Qt as V,
4503
+ Jt as W,
4504
+ Xt as X,
4497
4505
  L as Y,
4498
- xo as Z,
4499
- yn as _,
4500
- fs as a,
4506
+ po as Z,
4507
+ wn as _,
4508
+ gs as a,
4501
4509
  P as a$,
4502
4510
  ie as a0,
4503
- Et as a1,
4504
- Qa as a2,
4505
- Ze as a3,
4511
+ Ut as a1,
4512
+ Ja as a2,
4513
+ Xe as a3,
4506
4514
  N as a4,
4507
- Bt as a5,
4508
- fa as a6,
4509
- Ja as a7,
4510
- Je as a8,
4511
- Xn as a9,
4512
- mo as aA,
4513
- Kn as aB,
4514
- Pa as aC,
4515
- bo as aD,
4516
- Va as aE,
4517
- Hn as aF,
4518
- ye as aG,
4519
- ma as aH,
4520
- xa as aI,
4521
- _a as aJ,
4522
- wa as aK,
4523
- ao as aL,
4524
- Wn as aM,
4525
- Ka as aN,
4526
- da as aO,
4527
- Fa as aP,
4515
+ Pt as a5,
4516
+ ga as a6,
4517
+ Za as a7,
4518
+ Ze as a8,
4519
+ ea as a9,
4520
+ bo as aA,
4521
+ Qn as aB,
4522
+ za as aC,
4523
+ xo as aD,
4524
+ Wa as aE,
4525
+ An as aF,
4526
+ we as aG,
4527
+ ba as aH,
4528
+ pa as aI,
4529
+ Ka as aJ,
4530
+ va as aK,
4531
+ oo as aL,
4532
+ qn as aM,
4533
+ Qa as aN,
4534
+ ua as aO,
4535
+ La as aP,
4528
4536
  x as aQ,
4529
- Da as aR,
4530
- co as aS,
4531
- Pn as aT,
4532
- We as aU,
4537
+ Ia as aR,
4538
+ uo as aS,
4539
+ zn as aT,
4540
+ qe as aU,
4533
4541
  O as aV,
4534
- Ca as aW,
4535
- Ms as aX,
4536
- _t as aY,
4537
- ia as aZ,
4538
- ra as a_,
4539
- $e as aa,
4540
- $s as ab,
4541
- uo as ac,
4542
- ho as ad,
4543
- Hs as ae,
4544
- ka as af,
4545
- Xe as ag,
4546
- zn as ah,
4547
- Fn as ai,
4548
- Rn as aj,
4549
- Yn as ak,
4550
- Ga as al,
4551
- Sa as am,
4552
- qn as an,
4553
- Jn as ao,
4554
- $a as ap,
4555
- Ds as aq,
4542
+ Sa as aW,
4543
+ Bs as aX,
4544
+ Kt as aY,
4545
+ ca as aZ,
4546
+ ia as a_,
4547
+ De as aa,
4548
+ Ds as ab,
4549
+ ho as ac,
4550
+ fo as ad,
4551
+ As as ae,
4552
+ Ca as af,
4553
+ et as ag,
4554
+ On as ah,
4555
+ Ln as ai,
4556
+ Fn as aj,
4557
+ Vn as ak,
4558
+ _a as al,
4559
+ $a as am,
4560
+ Gn as an,
4561
+ Zn as ao,
4562
+ Da as ap,
4563
+ Is as aq,
4556
4564
  te as ar,
4557
- En as as,
4558
- Oa as at,
4559
- pa as au,
4560
- an as av,
4561
- Ba as aw,
4562
- Na as ax,
4563
- Ra as ay,
4564
- io as az,
4565
- Un as b,
4566
- qa as b0,
4567
- ca as c,
4568
- Zn as d,
4569
- Za as e,
4565
+ Un as as,
4566
+ Na as at,
4567
+ ya as au,
4568
+ on as av,
4569
+ Pa as aw,
4570
+ Ra as ax,
4571
+ Fa as ay,
4572
+ co as az,
4573
+ Yn as b,
4574
+ Ga as b0,
4575
+ da as c,
4576
+ Xn as d,
4577
+ Xa as e,
4570
4578
  b as f,
4571
- Rs as g,
4572
- Mt as h,
4573
- Lt as i,
4574
- pn as j,
4575
- ha as k,
4576
- za as l,
4577
- ua as m,
4578
- Ta as n,
4579
- Wa as o,
4580
- eo as p,
4581
- Is as q,
4582
- to as r,
4583
- wn as s,
4584
- ya as t,
4585
- so as u,
4586
- no as v,
4587
- va as w,
4579
+ Fs as g,
4580
+ Bt as h,
4581
+ jt as i,
4582
+ yn as j,
4583
+ fa as k,
4584
+ Oa as l,
4585
+ ha as m,
4586
+ Ma as n,
4587
+ qa as o,
4588
+ to as p,
4589
+ Ts as q,
4590
+ so as r,
4591
+ vn as s,
4592
+ wa as t,
4593
+ no as u,
4594
+ ao as v,
4595
+ ka as w,
4588
4596
  oe as x,
4589
- Ls as y,
4590
- Ua as z
4597
+ js as y,
4598
+ Ya as z
4591
4599
  };