@base-framework/ui 1.2.21 → 1.2.23

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 at, Fieldset as ot, H4 as Ee, 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 Ue, H3 as he, Nav as fe, Ul as X, Li as ge, OnStateOpen as me, On as Q, Dialog as ct, Th as Ye, 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 ve, DataTracker as Ve } from "@base-framework/base";
1
+ import { I as V, Span as g, Button as w, OnState as T, Div as o, Legend as rt, Fieldset as it, H4 as Ue, P as k, Label as W, Checkbox as de, Input as p, Textarea as ct, UseParent as _, Img as ue, H5 as dt, H2 as Z, Form as ut, Header as X, Footer as he, A as Ye, H3 as fe, Nav as ge, Ul as ee, Li as me, OnStateOpen as be, On as J, Dialog as ht, Th as Ve, Thead as ft, Tr as gt, Table as xe, Time as mt, H1 as bt } from "@base-framework/atoms";
2
+ import { Atom as r, Jot as M, Component as C, Html as xt, Data as z, Events as j, DateTime as te, NavLink as pt, router as ke, DataTracker as We } from "@base-framework/base";
3
3
  import { Icons as u } from "./icons.es.js";
4
- import { Timer as bt, TableBody as xt, DataTableBody as pt, ScrollableTableBody as yt, List as wt } from "@base-framework/organisms";
4
+ import { Timer as yt, TableBody as wt, DataTableBody as vt, ScrollableTableBody as kt, List as Ct } from "@base-framework/organisms";
5
5
  import { F as U } from "./format-DE4rFWuD.js";
6
- import { F as vt } from "./bside-template-C7AQgQ6H.js";
7
- const kt = {
6
+ import { F as St } from "./bside-template-C7AQgQ6H.js";
7
+ const $t = {
8
8
  xs: "w-4 h-4",
9
9
  sm: "w-6 h-6",
10
10
  md: "w-8 h-8",
@@ -12,15 +12,15 @@ const kt = {
12
12
  xl: "w-12 h-12",
13
13
  "2xl": "w-14 h-14",
14
14
  "3xl": "w-16 h-16"
15
- }, ie = r((e, t) => {
16
- const s = kt[e.size || "sm"];
17
- return Y({
15
+ }, ce = r((e, t) => {
16
+ const s = $t[e.size || "sm"];
17
+ return V({
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 kt = {
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 kt = {
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 kt = {
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") ? ce(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, ia = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, ca = (e) => typeof e == "string" && e.includes("<svg"), De = {
72
+ }) : ce(e, t) : null, ha = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, fa = (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 kt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Ct = (e) => De[e] || De.gray, St = (e, t = {}) => {
154
- const s = Ct(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
153
+ }, Dt = (e) => Ie[e] || Ie.gray, It = (e, t = {}) => {
154
+ const s = Dt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
155
155
  return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
156
- }, da = r((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...h } = e, m = St(s, { backgroundColor: l, textColor: i, ringColor: c });
156
+ }, ga = r((e, t) => {
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...h } = e, m = It(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 _e 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, _e)
180
180
  );
181
- class ua extends We {
181
+ class ma extends _e {
182
182
  /**
183
183
  * Declare public props and their defaults.
184
184
  */
@@ -229,7 +229,7 @@ class ua extends We {
229
229
  ]);
230
230
  }
231
231
  }
232
- const ne = {
232
+ const ae = {
233
233
  xs: "w-6 h-6",
234
234
  sm: "w-8 h-8",
235
235
  md: "w-10 h-10",
@@ -237,7 +237,7 @@ const ne = {
237
237
  xl: "w-14 h-14",
238
238
  "2xl": "w-16 h-16"
239
239
  };
240
- class ha extends C {
240
+ class ba extends C {
241
241
  /**
242
242
  * Declare public props.
243
243
  */
@@ -268,7 +268,7 @@ class ha extends C {
268
268
  * @returns {object}
269
269
  */
270
270
  render() {
271
- const t = this.icon, s = this.activeIcon || this.icon, n = ne[this.size] || ne.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", i = "text-foreground", c = this.activeClass || i, h = this.circle ?? !1;
271
+ const t = this.icon, s = this.activeIcon || this.icon, n = ae[this.size] || ae.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", i = "text-foreground", c = this.activeClass || i, h = this.circle ?? !1;
272
272
  return w({
273
273
  click: () => this.handleToggle(),
274
274
  // @ts-ignore
@@ -283,8 +283,8 @@ class ha extends C {
283
283
  ]);
284
284
  }
285
285
  }
286
- const fa = r((e, t) => {
287
- const s = e.size || "md", n = ne[s] || ne.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
286
+ const xa = r((e, t) => {
287
+ const s = e.size || "md", n = ae[s] || ae.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
288
288
  return w({
289
289
  ...e,
290
290
  // @ts-ignore
@@ -294,12 +294,43 @@ const fa = r((e, t) => {
294
294
  e.icon ? x({ size: a }, e.icon) : null,
295
295
  ...t || []
296
296
  ]);
297
- }), qe = globalThis.history?.length ?? 0, R = (e) => r((t, s) => w({
297
+ });
298
+ let qe = 0;
299
+ const Y = /* @__PURE__ */ new Map(), Tt = () => {
300
+ const e = globalThis.location?.hash || "";
301
+ return (e ? e.replace(/^#\/?/, "") : globalThis.location?.pathname || "/").replace(/^\/+/, "");
302
+ };
303
+ if (typeof globalThis.history?.pushState == "function") {
304
+ const e = globalThis.history.pushState;
305
+ globalThis.history.pushState = function(...t) {
306
+ qe++;
307
+ const s = String(t[2] || "").replace(/^[#/]+/, "");
308
+ for (const [n, a] of Y)
309
+ a.basePath && s !== a.basePath && !s.startsWith(a.basePath + "/") && Y.delete(n);
310
+ return e.apply(this, t);
311
+ };
312
+ }
313
+ const Ge = (e) => {
314
+ const t = e || "";
315
+ if (Y.has(t))
316
+ return (
317
+ /** @type {{ historyLength: number, pushCount: number, basePath: string }} */
318
+ Y.get(t)
319
+ );
320
+ const s = {
321
+ historyLength: globalThis.history.length,
322
+ pushCount: qe,
323
+ basePath: Tt()
324
+ };
325
+ return Y.set(t, s), s;
326
+ }, Ke = (e) => {
327
+ Y.delete(e || "");
328
+ }, F = (e) => r((t, s) => w({
298
329
  ...e,
299
330
  ...t,
300
331
  // @ts-ignore
301
332
  class: `bttn ${e.class} ${t.class || ""}`
302
- }, s)), xe = r(
333
+ }, s)), pe = r(
303
334
  (e, t) => w({
304
335
  ...e,
305
336
  // @ts-ignore
@@ -311,38 +342,40 @@ const fa = r((e, t) => {
311
342
  // @ts-ignore
312
343
  e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
313
344
  ])
314
- ), Ie = (e) => r((t, s) => xe({
345
+ ), Te = (e) => r((t, s) => pe({
315
346
  ...e,
316
347
  ...t,
317
348
  // @ts-ignore
318
349
  class: `bttn ${e.class} ${t.class || ""}`
319
- }, s)), $t = (e) => {
320
- const t = globalThis.history.length, s = t > qe;
350
+ }, s)), Mt = (e) => {
351
+ const t = Ge(e.backUrl);
321
352
  return () => {
322
- const a = globalThis.history.length - t, l = a + 1;
323
- if (e.allowHistory === !0 && (s || a > 0)) {
324
- globalThis.history.go(-l);
353
+ Ke(e.backUrl);
354
+ const n = globalThis.history.length - t.historyLength + 1;
355
+ if (e.allowHistory === !0 && t.pushCount > 0) {
356
+ globalThis.history.go(-n);
325
357
  return;
326
358
  }
327
359
  e.backUrl && app.navigate(e.backUrl);
328
360
  };
329
- }, Dt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || $t(t), xe({
361
+ }, Pt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || Mt(t), pe({
330
362
  ...e,
331
363
  ...t
332
- }, s))), It = (e) => {
333
- const t = globalThis.history.length, s = t > qe;
364
+ }, s))), Bt = (e) => {
365
+ const t = Ge(e.backUrl);
334
366
  return () => {
335
- const a = globalThis.history.length - t, l = a + 1;
336
- if (s || a > 0) {
337
- globalThis.history.go(-l);
367
+ Ke(e.backUrl);
368
+ const n = globalThis.history.length - t.historyLength + 1;
369
+ if (t.pushCount > 0) {
370
+ globalThis.history.go(-n);
338
371
  return;
339
372
  }
340
373
  e.backUrl && app.navigate(e.backUrl);
341
374
  };
342
- }, Tt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || It(t), xe({
375
+ }, zt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || Bt(t), pe({
343
376
  ...e,
344
377
  ...t
345
- }, s))), Mt = r((e, t) => {
378
+ }, s))), Ot = r((e, t) => {
346
379
  const s = e.size || "md", n = {
347
380
  xs: "w-6 h-6",
348
381
  sm: "w-8 h-8",
@@ -359,42 +392,42 @@ const fa = r((e, t) => {
359
392
  e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
360
393
  ...t || []
361
394
  ]);
362
- }), Te = {
363
- primary: R({ class: "primary" }),
364
- secondary: R({ class: "secondary" }),
365
- destructive: R({ class: "destructive" }),
366
- warning: R({ class: "warning" }),
367
- outline: R({ class: "outline" }),
368
- ghost: R({ class: "ghost" }),
369
- link: R({ class: "link" }),
370
- icon: Ie({ class: "icon" }),
371
- withIcon: Ie({ class: "with-icon" }),
372
- back: Dt({ class: "with-icon back-button" }),
373
- smartBack: Tt({ class: "with-icon back-button" }),
374
- circleIcon: Mt
375
- }, b = r((e, t) => (Te[e.variant] || Te.primary)(e, t)), ga = r((e, t) => b({ ...e, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t)), Bt = r((e, t) => {
395
+ }), Me = {
396
+ primary: F({ class: "primary" }),
397
+ secondary: F({ class: "secondary" }),
398
+ destructive: F({ class: "destructive" }),
399
+ warning: F({ class: "warning" }),
400
+ outline: F({ class: "outline" }),
401
+ ghost: F({ class: "ghost" }),
402
+ link: F({ class: "link" }),
403
+ icon: Te({ class: "icon" }),
404
+ withIcon: Te({ class: "with-icon" }),
405
+ back: Pt({ class: "with-icon back-button" }),
406
+ smartBack: zt({ class: "with-icon back-button" }),
407
+ circleIcon: Ot
408
+ }, b = r((e, t) => (Me[e.variant] || Me.primary)(e, t)), pa = r((e, t) => b({ ...e, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t)), Nt = r((e, t) => {
376
409
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
377
410
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
378
411
  ...e,
379
412
  // @ts-ignore
380
413
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
381
414
  }, t);
382
- }), Pt = r((e, t) => at({
415
+ }), Rt = r((e, t) => rt({
383
416
  ...e,
384
417
  // @ts-ignore
385
418
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
386
- }, t)), ma = r((e, t) => {
419
+ }, t)), ya = r((e, t) => {
387
420
  const s = e.border === "full" ? "border rounded-md" : "border-t";
388
- return ot({
421
+ return it({
389
422
  ...e,
390
423
  // @ts-ignore
391
424
  class: `p-6 ${s} ${e.class || ""}`
392
425
  }, [
393
426
  // @ts-ignore
394
- e.legend && Pt(e.legend),
427
+ e.legend && Rt(e.legend),
395
428
  o({ class: "flex flex-auto flex-col gap-y-6" }, t)
396
429
  ]);
397
- }), zt = r((e, t) => {
430
+ }), Ft = r((e, t) => {
398
431
  const s = e.border === !0 ? "border-t" : "";
399
432
  return o({
400
433
  ...e,
@@ -409,14 +442,14 @@ const fa = r((e, t) => {
409
442
  class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
410
443
  }, [
411
444
  // @ts-ignore
412
- Ee({ class: "text-base" }, e.label),
445
+ Ue({ class: "text-base" }, e.label),
413
446
  // @ts-ignore
414
447
  e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
415
448
  ]),
416
449
  // Controls container: grows to fill remaining space, spacing between items
417
450
  o({ class: "flex flex-col gap-y-4" }, t)
418
451
  ]);
419
- }), 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", pe = `${Ot} ${B} ${I} ${H} ${D}`, Nt = ({ id: e, checked: t, bind: s, required: n }) => ce({
452
+ }), Lt = "flex h-10 w-full px-3 py-2 text-sm", P = "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", A = "placeholder:text-muted-foreground", ye = `${Lt} ${P} ${I} ${A} ${D}`, jt = ({ id: e, checked: t, bind: s, required: n }) => de({
420
453
  id: e,
421
454
  cache: "checkbox",
422
455
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -426,15 +459,15 @@ const fa = r((e, t) => {
426
459
  required: n,
427
460
  checked: t,
428
461
  bind: s
429
- }), Lt = () => g({ class: "absolute text-xs pointer-events-none" }, [
462
+ }), At = () => g({ class: "absolute text-xs pointer-events-none" }, [
430
463
  T(
431
464
  "checked",
432
- (e) => e ? Y({
465
+ (e) => e ? V({
433
466
  class: "w-2 h-2 pointer-events-none",
434
467
  html: u.check
435
468
  }) : null
436
469
  )
437
- ]), Rt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
470
+ ]), Ht = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
438
471
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
439
472
  rounded-md border
440
473
  ${I}
@@ -454,13 +487,13 @@ const fa = r((e, t) => {
454
487
  tabIndex: 0,
455
488
  click: a
456
489
  }, [
457
- Nt({ bind: t, checked: s, id: e, required: n }),
458
- Lt()
459
- ]), Ft = ({ id: e, label: t, clickHandler: s }) => V({
490
+ jt({ bind: t, checked: s, id: e, required: n }),
491
+ At()
492
+ ]), Et = ({ id: e, label: t, clickHandler: s }) => W({
460
493
  class: "text-base cursor-pointer",
461
494
  htmlFor: e,
462
495
  click: s
463
- }, t), jt = M(
496
+ }, t), Ut = M(
464
497
  {
465
498
  /**
466
499
  * This will initialize the state of the checkbox.
@@ -499,7 +532,7 @@ const fa = r((e, t) => {
499
532
  render() {
500
533
  const e = this.getId(), t = (s) => this.clickHandler(s);
501
534
  return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
502
- Rt({
535
+ Ht({
503
536
  id: e,
504
537
  // @ts-ignore
505
538
  bind: this.bind,
@@ -511,22 +544,22 @@ const fa = r((e, t) => {
511
544
  clickHandler: t
512
545
  }),
513
546
  // @ts-ignore
514
- this.label && Ft({ id: e, label: this.label, clickHandler: t })
547
+ this.label && Et({ id: e, label: this.label, clickHandler: t })
515
548
  ]);
516
549
  }
517
550
  }
518
- ), Ht = (e) => {
551
+ ), Yt = (e) => {
519
552
  if (!e || e.length === 0) return "";
520
553
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
521
554
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
522
- }, At = (e) => {
523
- const t = e.target, s = Ht(t.value);
555
+ }, Vt = (e) => {
556
+ const t = e.target, s = Yt(t.value);
524
557
  s && (t.value = s);
525
558
  }, N = r((e) => p({
526
559
  ...e,
527
560
  // @ts-ignore
528
- class: `${pe} ${e.class || ""}`.trim()
529
- })), ba = r((e) => N({
561
+ class: `${ye} ${e.class || ""}`.trim()
562
+ })), wa = r((e) => N({
530
563
  ...e,
531
564
  type: "tel",
532
565
  // @ts-ignore
@@ -536,8 +569,8 @@ const fa = r((e, t) => {
536
569
  placeholder: "(555) 555-5555",
537
570
  // @ts-ignore
538
571
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
539
- keyup: At
540
- })), xa = r((e) => N({
572
+ keyup: Vt
573
+ })), va = r((e) => N({
541
574
  ...e,
542
575
  type: "email",
543
576
  // @ts-ignore
@@ -545,47 +578,47 @@ const fa = r((e, t) => {
545
578
  // @ts-ignore
546
579
  label: e.label || "Email",
547
580
  placeholder: "Email address"
548
- })), pa = r((e) => lt({
581
+ })), ka = r((e) => ct({
549
582
  ...e,
550
583
  as: "textarea",
551
584
  // @ts-ignore
552
- class: `flex w-full h-24 px-3 py-2 text-sm ${B} ${I} ${H} ${D} ${e.class || ""}`.trim()
553
- })), ya = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
585
+ class: `flex w-full h-24 px-3 py-2 text-sm ${P} ${I} ${A} ${D} ${e.class || ""}`.trim()
586
+ })), Ca = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
554
587
  p({
555
588
  ...e,
556
589
  type: "radio",
557
590
  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
591
  }),
559
- e.label && V({ forHTML: e.value, class: "cursor-pointer" }, e.label)
560
- ]), wa = r((e) => p({
592
+ e.label && W({ forHTML: e.value, class: "cursor-pointer" }, e.label)
593
+ ]), Sa = r((e) => p({
561
594
  ...e,
562
595
  type: "date",
563
596
  // @ts-ignore
564
- class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
565
- })), va = r((e) => p({
597
+ class: `${P} ${I} ${A} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
598
+ })), $a = r((e) => p({
566
599
  ...e,
567
600
  type: "time",
568
601
  // @ts-ignore
569
- class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
570
- })), ka = r((e) => p({
602
+ class: `${P} ${I} ${A} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
603
+ })), Da = r((e) => p({
571
604
  ...e,
572
605
  type: "datetime-local",
573
606
  // @ts-ignore
574
- class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
575
- })), Ca = r((e) => p({
607
+ class: `${P} ${I} ${A} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
608
+ })), Ia = r((e) => p({
576
609
  ...e,
577
610
  type: "month",
578
611
  // @ts-ignore
579
- class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
580
- })), Sa = r((e) => p({
612
+ class: `${P} ${I} ${A} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
613
+ })), Ta = r((e) => p({
581
614
  ...e,
582
615
  type: "week",
583
616
  // @ts-ignore
584
- class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
585
- })), $a = r((e) => N({
617
+ class: `${P} ${I} ${A} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
618
+ })), Ma = r((e) => N({
586
619
  ...e,
587
620
  type: "number"
588
- })), Da = r((e) => N({
621
+ })), Pa = r((e) => N({
589
622
  ...e,
590
623
  type: "password"
591
624
  }));
@@ -593,29 +626,29 @@ r((e) => N({
593
626
  ...e,
594
627
  type: "search"
595
628
  }));
596
- const Ia = r((e) => N({
629
+ const Ba = r((e) => N({
597
630
  ...e,
598
631
  type: "url"
599
- })), Ta = r((e) => N({
632
+ })), za = r((e) => N({
600
633
  ...e,
601
634
  type: "hidden"
602
- })), Ma = r((e) => p({
635
+ })), Oa = r((e) => p({
603
636
  ...e,
604
637
  type: "color",
605
638
  // @ts-ignore
606
- class: `${B} text-foreground p-0 ${D} ${e.class || ""}`.trim()
639
+ class: `${P} text-foreground p-0 ${D} ${e.class || ""}`.trim()
607
640
  }));
608
- r((e) => ce({
641
+ r((e) => de({
609
642
  ...e,
610
643
  // @ts-ignore
611
- class: `flex h-4 w-4 text-foreground ${B} ${I} ${D} ${e.class || ""}`.trim()
644
+ class: `flex h-4 w-4 text-foreground ${P} ${I} ${D} ${e.class || ""}`.trim()
612
645
  }));
613
- const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Ba = r((e) => p({
646
+ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Na = r((e) => p({
614
647
  ...e,
615
648
  type: "file",
616
649
  // @ts-ignore
617
- class: `${pe} ${Et} ${e.class || ""}`.trim()
618
- })), Pa = O(
650
+ class: `${ye} ${Wt} ${e.class || ""}`.trim()
651
+ })), Ra = O(
619
652
  {
620
653
  /**
621
654
  * This will create the initial state of the RangeSlider.
@@ -648,7 +681,7 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
648
681
  return o({ class: "relative w-full h-4 flex items-center" }, [
649
682
  // Track
650
683
  o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
651
- W(({ state: e }) => [
684
+ _(({ state: e }) => [
652
685
  // Filled Track
653
686
  o({
654
687
  class: "absolute h-2 bg-primary rounded-full",
@@ -687,15 +720,15 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
687
720
  ]);
688
721
  }
689
722
  }
690
- ), za = r((e) => ({
723
+ ), Fa = r((e) => ({
691
724
  tag: "select",
692
725
  onCreated(t) {
693
- e.options && gt.setupSelectOptions(t, e.options);
726
+ e.options && xt.setupSelectOptions(t, e.options);
694
727
  },
695
728
  ...e,
696
729
  // @ts-ignore
697
- class: `${pe} ${e.class || ""}`.trim()
698
- })), Ut = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : de({
730
+ class: `${ye} ${e.class || ""}`.trim()
731
+ })), _t = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : ue({
699
732
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
700
733
  src: e,
701
734
  alt: t,
@@ -704,7 +737,7 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
704
737
  * If there's an error loading the image, hide it.
705
738
  */
706
739
  error: (a) => a.target.style.visibility = "hidden"
707
- })), Yt = (e) => !e || isNaN(e) ? null : e, Me = (e, t) => {
740
+ })), qt = (e) => !e || isNaN(e) ? null : e, Pe = (e, t) => {
708
741
  const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
709
742
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
710
743
  <!-- Background Circle -->
@@ -747,20 +780,20 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
747
780
  class: "circle-graph text-inherit",
748
781
  html: i
749
782
  });
750
- }, Oa = r((e) => {
751
- const t = e.progress || 0, s = e.class || "", n = Me(t, s);
783
+ }, La = r((e) => {
784
+ const t = e.progress || 0, s = e.class || "", n = Pe(t, s);
752
785
  return o({
753
786
  class: "circle-graph-wrap",
754
787
  onSet: [
755
788
  // @ts-ignore
756
789
  e.prop,
757
- (a) => (a = Yt(a), a ? Me(a, s) : n)
790
+ (a) => (a = qt(a), a ? Pe(a, s) : n)
758
791
  ]
759
792
  }, [n]);
760
- }), Vt = () => W(({ state: e }) => o({
793
+ }), Gt = () => _(({ state: e }) => o({
761
794
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
762
795
  style: ["width: [[progress]]%;", e]
763
- })), Na = O(
796
+ })), ja = O(
764
797
  {
765
798
  /**
766
799
  * This will render the progress bar component.
@@ -769,7 +802,7 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
769
802
  */
770
803
  render() {
771
804
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
772
- Vt()
805
+ Gt()
773
806
  ]);
774
807
  },
775
808
  /**
@@ -812,7 +845,7 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
812
845
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
813
846
  }
814
847
  }
815
- ), La = r((e = {}) => {
848
+ ), Aa = r((e = {}) => {
816
849
  const {
817
850
  class: t = "",
818
851
  background: s = !0,
@@ -833,7 +866,7 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
833
866
  style: m,
834
867
  "aria-hidden": "true"
835
868
  });
836
- }), Ra = r((e = {}) => {
869
+ }), Ha = r((e = {}) => {
837
870
  const {
838
871
  class: t = "",
839
872
  background: s = !0,
@@ -863,8 +896,8 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
863
896
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
864
897
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
865
898
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
866
- }, Wt = (e) => Be[String(e)] || Be.top, Fa = r(({ position: e = "top", content: t }, s) => {
867
- const n = Wt(e);
899
+ }, Kt = (e) => Be[String(e)] || Be.top, Ea = r(({ position: e = "top", content: t }, s) => {
900
+ const n = Kt(e);
868
901
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
869
902
  ...s,
870
903
  // Tooltip box
@@ -875,7 +908,7 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
875
908
  `
876
909
  }, t)
877
910
  ]);
878
- }), Pe = {
911
+ }), ze = {
879
912
  info: {
880
913
  borderColor: "border-blue-500",
881
914
  bgColor: "bg-muted/10",
@@ -901,25 +934,25 @@ const Et = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
901
934
  bgColor: "bg-muted/10",
902
935
  iconColor: "text-muted-foreground"
903
936
  }
904
- }, qt = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
937
+ }, Qt = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
905
938
  x({ size: "sm" }, e)
906
- ]), 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" }) => {
907
- const { borderColor: a, bgColor: l, iconColor: i } = Pe[n] || Pe.default;
939
+ ]), Jt = (e) => dt({ class: "font-semibold" }, e), Zt = (e) => k({ class: "text-sm text-muted-foreground" }, e), Ua = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
940
+ const { borderColor: a, bgColor: l, iconColor: i } = ze[n] || ze.default;
908
941
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
909
942
  // Icon and content
910
- s && qt(s, i),
943
+ s && Qt(s, i),
911
944
  o({ class: "flex flex-col" }, [
912
- Gt(e),
913
- _t(t)
945
+ Jt(e),
946
+ Zt(t)
914
947
  ])
915
948
  ]);
916
- }), Kt = (e, t) => {
949
+ }), Xt = (e, t) => {
917
950
  const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
918
951
  let c = s.left + l, h = s.bottom + i;
919
952
  const m = globalThis.innerHeight - s.bottom, v = s.top;
920
953
  return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), m < n.height && v > m ? h = s.top + i - n.height - a : m < n.height && (h = s.bottom + i - (n.height - m) - a), { x: c, y: h };
921
954
  };
922
- class te extends C {
955
+ class se extends C {
923
956
  /**
924
957
  * This will set up the data.
925
958
  *
@@ -996,7 +1029,7 @@ class te extends C {
996
1029
  * @returns {void}
997
1030
  */
998
1031
  updatePosition() {
999
- const t = this.button ?? null, s = this.panel, n = Kt(t, s);
1032
+ const t = this.button ?? null, s = this.panel, n = Xt(t, s);
1000
1033
  this.data.position = n;
1001
1034
  }
1002
1035
  /**
@@ -1048,29 +1081,29 @@ class te extends C {
1048
1081
  this?.panel?.hidePopover();
1049
1082
  }
1050
1083
  }
1051
- 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" }, [
1084
+ const es = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ts = r((e, t) => W({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ss = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ns = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), Ya = r((e, t = []) => Nt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1052
1085
  // @ts-ignore
1053
- e.title && J({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1086
+ e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1054
1087
  // @ts-ignore
1055
1088
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1056
1089
  ...t
1057
- ])), Aa = r((e, t = []) => (
1090
+ ])), Va = r((e, t = []) => (
1058
1091
  // @ts-ignore
1059
- zt({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1092
+ Ft({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1060
1093
  o({ class: "flex flex-col gap-y-6" }, t)
1061
1094
  ])
1062
- )), Ea = r((e, t = []) => {
1095
+ )), Wa = r((e, t = []) => {
1063
1096
  const s = e.border ? "border-t" : "";
1064
1097
  return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1065
- }), 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) ? {
1098
+ }), as = (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 : as(n) ? {
1066
1099
  ...n,
1067
1100
  aria: {
1068
1101
  invalid: ["hasError"]
1069
1102
  },
1070
1103
  invalid: s,
1071
1104
  input: t
1072
- } : n), ts = r((e, t) => {
1073
- const a = Ge(t, (l) => {
1105
+ } : n), os = r((e, t) => {
1106
+ const a = Qe(t, (l) => {
1074
1107
  l.target.checkValidity() && e.setError(null);
1075
1108
  }, (l) => {
1076
1109
  e.setError(l.target.validationMessage);
@@ -1079,7 +1112,7 @@ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1079
1112
  ...e,
1080
1113
  class: "w-full"
1081
1114
  }, a);
1082
- }), Ua = O(
1115
+ }), _a = O(
1083
1116
  {
1084
1117
  /**
1085
1118
  * The initial state of the FormField.
@@ -1104,41 +1137,41 @@ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1104
1137
  this.state.error = l, this.state.hasError = !!l;
1105
1138
  };
1106
1139
  return o({ class: "flex flex-auto gap-y-4" }, [
1107
- Qt([
1108
- Jt({ htmlFor: t }, s),
1109
- ts({
1140
+ es([
1141
+ ts({ htmlFor: t }, s),
1142
+ os({
1110
1143
  id: t,
1111
1144
  name: e,
1112
1145
  value: this.state.value,
1113
1146
  setError: a
1114
1147
  }, this.children),
1115
- n && Zt({ id: this.getId("description") }, n),
1116
- o({ onState: ["error", (l) => l && Xt(l)] })
1148
+ n && ss({ id: this.getId("description") }, n),
1149
+ o({ onState: ["error", (l) => l && ns(l)] })
1117
1150
  ])
1118
1151
  ]);
1119
1152
  }
1120
1153
  }
1121
- ), ss = (e, t, s = null) => {
1154
+ ), ls = (e, t, s = null) => {
1122
1155
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1123
- }, _e = r(
1156
+ }, Je = r(
1124
1157
  (e, t) => (
1125
1158
  // @ts-ignore
1126
- it({ ...e, submit: (s, n) => ss(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1159
+ ut({ ...e, submit: (s, n) => ls(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1127
1160
  )
1128
- ), Ya = r((e, t) => (
1161
+ ), qa = r((e, t) => (
1129
1162
  // @ts-ignore
1130
1163
  o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1131
- )), Va = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1164
+ )), Ga = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1132
1165
  // @ts-ignore
1133
- e.title && J({ class: "font-semibold" }, e.title),
1166
+ e.title && Z({ class: "font-semibold" }, e.title),
1134
1167
  ...t
1135
- ])), Wa = (e, t) => o({ class: "flex justify-between" }, [
1168
+ ])), Ka = (e, t) => o({ class: "flex justify-between" }, [
1136
1169
  g({ class: "text-muted-foreground" }, e),
1137
1170
  g(t)
1138
- ]), qa = (e, t) => o({ class: "flex" }, [
1171
+ ]), Qa = (e, t) => o({ class: "flex" }, [
1139
1172
  g({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1140
1173
  g(t)
1141
- ]), 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" }, [
1174
+ ]), rs = r(({ title: e, description: t, back: s, icon: n, options: a = [] }) => X({ 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
1175
  /**
1143
1176
  * Back Button (Mobile Only)
1144
1177
  */
@@ -1156,12 +1189,12 @@ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1156
1189
  ]),
1157
1190
  o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1158
1191
  o({ class: "flex flex-auto flex-col min-w-0" }, [
1159
- J({ class: "text-lg font-semibold m-0 truncate" }, e),
1192
+ Z({ class: "text-lg font-semibold m-0 truncate" }, e),
1160
1193
  t && o({ class: "text-sm text-muted-foreground truncate" }, t)
1161
1194
  ]),
1162
1195
  o({ class: "flex flex-none items-center gap-2" }, a)
1163
1196
  ])
1164
- ])), Ga = r((e, t) => {
1197
+ ])), Ja = r((e, t) => {
1165
1198
  const s = e.class?.includes("drawer");
1166
1199
  return o({
1167
1200
  popover: "manual",
@@ -1171,7 +1204,7 @@ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1171
1204
  l.target === i.panel && (l.preventDefault(), l.stopPropagation(), i.state.open = !1);
1172
1205
  }
1173
1206
  }, [
1174
- _e({
1207
+ Je({
1175
1208
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1176
1209
  // @ts-ignore
1177
1210
  submit: (l, i) => e.onSubmit && e.onSubmit(i),
@@ -1179,13 +1212,13 @@ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1179
1212
  // @ts-ignore
1180
1213
  ...e.gestureHandlers
1181
1214
  }, [
1182
- ns(e),
1215
+ rs(e),
1183
1216
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1184
1217
  // @ts-ignore
1185
- !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)
1218
+ !e.hideFooter && he({ 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
1219
  ])
1187
1220
  ]);
1188
- }), ze = {
1221
+ }), Oe = {
1189
1222
  info: {
1190
1223
  bgColor: "bg-muted/10",
1191
1224
  borderColor: "border-blue-500",
@@ -1211,22 +1244,22 @@ const Qt = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1211
1244
  borderColor: "border",
1212
1245
  iconColor: "text-muted-foreground"
1213
1246
  }
1214
- }, as = (e) => Z({ class: "flex justify-center" }, [
1215
- he({ class: "text-lg font-bold mb-0" }, e)
1216
- ]), os = r(({ href: e, class: t }, s) => Ue({
1247
+ }, is = (e) => X({ class: "flex justify-center" }, [
1248
+ fe({ class: "text-lg font-bold mb-0" }, e)
1249
+ ]), cs = r(({ href: e, class: t }, s) => Ye({
1217
1250
  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
1251
  href: e,
1219
1252
  animateIn: "pullRightIn",
1220
1253
  animateOut: "pullRight",
1221
1254
  role: "alert"
1222
- }, s)), ls = r(({ close: e, class: t }, s) => o({
1255
+ }, s)), ds = r(({ close: e, class: t }, s) => o({
1223
1256
  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
1257
  click: () => e(),
1225
1258
  animateIn: "pullRightIn",
1226
1259
  animateOut: "pullRight",
1227
1260
  role: "alert"
1228
1261
  }, s));
1229
- class _a extends C {
1262
+ class Za extends C {
1230
1263
  /**
1231
1264
  * This will declare the props for the compiler.
1232
1265
  *
@@ -1250,10 +1283,10 @@ class _a extends C {
1250
1283
  */
1251
1284
  render() {
1252
1285
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1253
- return a ? os({
1286
+ return a ? cs({
1254
1287
  href: a,
1255
1288
  class: `${t} ${s}`
1256
- }, l) : ls({
1289
+ }, l) : ds({
1257
1290
  close: this.close.bind(this),
1258
1291
  class: `${t} ${s}`
1259
1292
  }, l);
@@ -1265,7 +1298,7 @@ class _a extends C {
1265
1298
  */
1266
1299
  afterSetup() {
1267
1300
  const t = this.duration;
1268
- t !== "infinite" && (this.timer = new bt(t, this.close.bind(this)), this.timer.start());
1301
+ t !== "infinite" && (this.timer = new yt(t, this.close.bind(this)), this.timer.start());
1269
1302
  }
1270
1303
  /**
1271
1304
  * This will get the style properties based on the notification type.
@@ -1274,7 +1307,7 @@ class _a extends C {
1274
1307
  */
1275
1308
  getTypeStyles() {
1276
1309
  const t = this.type || "default";
1277
- return ze[t] || ze.default;
1310
+ return Oe[t] || Oe.default;
1278
1311
  }
1279
1312
  /**
1280
1313
  * This will get the buttons for the notification.
@@ -1303,10 +1336,10 @@ class _a extends C {
1303
1336
  ]),
1304
1337
  o({ class: "flex flex-auto flex-col" }, [
1305
1338
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1306
- this.title && as(this.title)
1339
+ this.title && is(this.title)
1307
1340
  ]),
1308
1341
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1309
- (this.primary || this.secondary) && ue({ class: "margin-top-24 flex align-center" }, this.getButtons())
1342
+ (this.primary || this.secondary) && he({ class: "margin-top-24 flex align-center" }, this.getButtons())
1310
1343
  ])
1311
1344
  ]),
1312
1345
  b({
@@ -1327,25 +1360,25 @@ class _a extends C {
1327
1360
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1328
1361
  }
1329
1362
  }
1330
- const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w({
1363
+ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w({
1331
1364
  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
1365
  onState: ["method", { active: e }],
1333
1366
  dataSet: ["method", ["state", e, "active"]],
1334
1367
  click: (n, { state: a }) => {
1335
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), rs(e);
1368
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), us(e);
1336
1369
  }
1337
1370
  }, [
1338
1371
  x({}, s),
1339
1372
  g(t)
1340
- ])), rs = (e) => {
1373
+ ])), us = (e) => {
1341
1374
  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) {
1375
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Ne && !Ne("(prefers-color-scheme: " + e + ")").matches) {
1343
1376
  t.classList.add(e);
1344
1377
  return;
1345
1378
  }
1346
1379
  const s = e === "light" ? "dark" : "light";
1347
1380
  t.classList.remove(s);
1348
- }, Ka = M(
1381
+ }, Xa = M(
1349
1382
  {
1350
1383
  /**
1351
1384
  * This will render the component.
@@ -1355,9 +1388,9 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1355
1388
  render() {
1356
1389
  return o({ class: "flex flex-auto flex-col" }, [
1357
1390
  o({ class: "grid grid-cols-3 gap-4" }, [
1358
- ae({ label: "System", value: "system", icon: u.adjustments.horizontal }),
1359
- ae({ label: "Light", value: "light", icon: u.sun }),
1360
- ae({ label: "Dark", value: "dark", icon: u.moon })
1391
+ oe({ label: "System", value: "system", icon: u.adjustments.horizontal }),
1392
+ oe({ label: "Light", value: "light", icon: u.sun }),
1393
+ oe({ label: "Dark", value: "dark", icon: u.moon })
1361
1394
  ])
1362
1395
  ]);
1363
1396
  },
@@ -1372,7 +1405,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1372
1405
  };
1373
1406
  }
1374
1407
  }
1375
- ), Qa = O(
1408
+ ), eo = O(
1376
1409
  {
1377
1410
  /**
1378
1411
  * The initial state of the Toggle.
@@ -1406,7 +1439,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1406
1439
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1407
1440
  }
1408
1441
  }, [
1409
- ce({
1442
+ de({
1410
1443
  cache: "checkbox",
1411
1444
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1412
1445
  /**
@@ -1424,13 +1457,13 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1424
1457
  ]);
1425
1458
  }
1426
1459
  }
1427
- ), is = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : Ut({
1460
+ ), hs = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : _t({
1428
1461
  src: e,
1429
1462
  alt: t,
1430
1463
  class: "rounded-full"
1431
- })), 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) => {
1432
- s.textContent = Ke(t);
1433
- }]), Ne = {
1464
+ })), fs = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), Ze = (e) => !e || e.length < 2 ? e : fs(e), gs = (e) => g([e, (t, s) => {
1465
+ s.textContent = Ze(t);
1466
+ }]), Re = {
1434
1467
  xs: "h-6 w-6",
1435
1468
  sm: "h-8 w-8",
1436
1469
  md: "h-12 w-12",
@@ -1440,7 +1473,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1440
1473
  "3xl": "h-48 w-48",
1441
1474
  "4xl": "h-64 w-64",
1442
1475
  default: "h-12 w-12"
1443
- }, Le = {
1476
+ }, Fe = {
1444
1477
  xs: "text-[7px]",
1445
1478
  sm: "text-xs",
1446
1479
  md: "text-base",
@@ -1450,8 +1483,8 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1450
1483
  "3xl": "text-4xl",
1451
1484
  "4xl": "text-5xl",
1452
1485
  default: "text-base"
1453
- }, us = (e) => Ne[e] || Ne.default, hs = (e) => Le[e] || Le.default, fs = (e, t = null, s = "md") => {
1454
- const n = Ke(String(e)), a = hs(s);
1486
+ }, ms = (e) => Re[e] || Re.default, bs = (e) => Fe[e] || Fe.default, xs = (e, t = null, s = "md") => {
1487
+ const n = Ze(String(e)), a = bs(s);
1455
1488
  return o(
1456
1489
  {
1457
1490
  class: `
@@ -1461,21 +1494,21 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1461
1494
  `
1462
1495
  },
1463
1496
  [
1464
- t ? ds(t) : g({ class: "uppercase" }, n)
1497
+ t ? gs(t) : g({ class: "uppercase" }, n)
1465
1498
  ]
1466
1499
  );
1467
- }, gs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1468
- const l = us(a);
1500
+ }, ps = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1501
+ const l = ms(a);
1469
1502
  return o(
1470
1503
  {
1471
1504
  class: `relative flex items-center justify-center ${l}`
1472
1505
  },
1473
1506
  [
1474
- is({ src: e, alt: t }),
1475
- fs(s, n, a)
1507
+ hs({ src: e, alt: t }),
1508
+ xs(s, n, a)
1476
1509
  ]
1477
1510
  );
1478
- }), ms = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1 && e.indexOf("blob:") === -1, Ja = M(
1511
+ }), ys = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1 && e.indexOf("blob:") === -1, to = M(
1479
1512
  {
1480
1513
  /**
1481
1514
  * Get the initial state for the component.
@@ -1531,13 +1564,13 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1531
1564
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1532
1565
  }
1533
1566
  }, [
1534
- T("loaded", (s) => s === !1 || ms(this.src) ? V({
1567
+ T("loaded", (s) => s === !1 || ys(this.src) ? W({
1535
1568
  htmlFor: e,
1536
1569
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1537
1570
  }, [
1538
- ie(u.upload),
1571
+ ce(u.upload),
1539
1572
  o("Upload Image")
1540
- ]) : de({
1573
+ ]) : ue({
1541
1574
  // @ts-ignore
1542
1575
  src: this.src,
1543
1576
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1546,7 +1579,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1546
1579
  ]);
1547
1580
  }
1548
1581
  }
1549
- ), Za = M(
1582
+ ), so = M(
1550
1583
  {
1551
1584
  /**
1552
1585
  * Get the initial state for the component.
@@ -1604,11 +1637,11 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1604
1637
  }, [
1605
1638
  T(
1606
1639
  "loaded",
1607
- (s) => s ? de({
1640
+ (s) => s ? ue({
1608
1641
  // @ts-ignore
1609
1642
  src: this.src,
1610
1643
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
1611
- }) : V({
1644
+ }) : W({
1612
1645
  htmlFor: e,
1613
1646
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1614
1647
  }, [
@@ -1628,7 +1661,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1628
1661
  this.input = null;
1629
1662
  }
1630
1663
  }
1631
- ), bs = (e, t) => Ue(
1664
+ ), ws = (e, t) => Ye(
1632
1665
  {
1633
1666
  href: e,
1634
1667
  "aria-current": t === "Breadcrumb" && "page",
@@ -1636,14 +1669,14 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1636
1669
  class: "text-muted-foreground font-medium hover:text-foreground"
1637
1670
  },
1638
1671
  [g(t)]
1639
- ), xs = () => x({
1672
+ ), vs = () => x({
1640
1673
  class: "mx-3 text-muted-foreground",
1641
1674
  "aria-hidden": !0,
1642
1675
  size: "xs"
1643
- }, u.chevron.single.right), ps = (e) => o({ class: "flex items-center" }, [
1644
- e.href ? bs(e.href, e.label) : g(e.label),
1645
- e.separator && xs()
1646
- ]), Xa = M(
1676
+ }, u.chevron.single.right), ks = (e) => o({ class: "flex items-center" }, [
1677
+ e.href ? ws(e.href, e.label) : g(e.label),
1678
+ e.separator && vs()
1679
+ ]), no = M(
1647
1680
  {
1648
1681
  /**
1649
1682
  * Set initial data
@@ -1663,7 +1696,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1663
1696
  */
1664
1697
  render() {
1665
1698
  const e = this.data.items.length - 1;
1666
- return fe(
1699
+ return ge(
1667
1700
  {
1668
1701
  "aria-label": "Breadcrumb",
1669
1702
  class: "flex items-center gap-x-1 text-sm"
@@ -1672,7 +1705,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1672
1705
  o({
1673
1706
  role: "list",
1674
1707
  class: "flex items-center",
1675
- for: ["items", (t, s) => ps({
1708
+ for: ["items", (t, s) => ks({
1676
1709
  href: t.href,
1677
1710
  label: t.label,
1678
1711
  separator: s < e
@@ -1682,7 +1715,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1682
1715
  );
1683
1716
  }
1684
1717
  }
1685
- ), Re = {
1718
+ ), Le = {
1686
1719
  xs: "h-1 w-1",
1687
1720
  sm: "h-2 w-2",
1688
1721
  md: "h-4 w-4",
@@ -1691,7 +1724,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1691
1724
  "2xl": "h-16 w-16",
1692
1725
  "3xl": "h-24 w-24",
1693
1726
  default: "h-4 w-4"
1694
- }, ys = (e) => Re[e] || Re.default, ws = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1727
+ }, Cs = (e) => Le[e] || Le.default, Ss = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1695
1728
  g({
1696
1729
  class: "block w-full h-full rounded-full transition-colors",
1697
1730
  onSet: ["activeIndex", {
@@ -1702,10 +1735,10 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1702
1735
  n.activeIndex = e, a && a(e);
1703
1736
  }
1704
1737
  })
1705
- ]), vs = (e, t) => Array.from({ length: e }, (s, n) => ws({
1738
+ ]), $s = (e, t) => Array.from({ length: e }, (s, n) => Ss({
1706
1739
  index: n,
1707
1740
  size: t
1708
- })), eo = M(
1741
+ })), ao = M(
1709
1742
  {
1710
1743
  /**
1711
1744
  * Defines component data (props).
@@ -1727,7 +1760,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1727
1760
  * @returns {object}
1728
1761
  */
1729
1762
  render() {
1730
- const e = this.gap || "gap-2", t = ys(this.size || "sm"), s = vs(this.data.count, t);
1763
+ const e = this.gap || "gap-2", t = Cs(this.size || "sm"), s = $s(this.data.count, t);
1731
1764
  return o(
1732
1765
  { class: "flex justify-center items-center py-2" },
1733
1766
  [
@@ -1736,7 +1769,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1736
1769
  );
1737
1770
  }
1738
1771
  }
1739
- ), ks = ({ toggleDropdown: e }) => w(
1772
+ ), Ds = ({ toggleDropdown: e }) => w(
1740
1773
  {
1741
1774
  cache: "button",
1742
1775
  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,27 +1779,27 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1746
1779
  g({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1747
1780
  x({ size: "sm" }, u.chevron.upDown)
1748
1781
  ]
1749
- ), Cs = (e, t, s) => ge({
1782
+ ), Is = (e, t, s) => me({
1750
1783
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1751
1784
  click: () => t(e),
1752
1785
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1753
1786
  }, [
1754
1787
  e.icon && g({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1755
1788
  g({ class: "text-base font-normal" }, e.label)
1756
- ]), Ss = (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) => Cs(s, e, t)] })
1758
- ]), $s = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1789
+ ]), Ts = (e, t) => o({ class: "w-full border rounded-md" }, [
1790
+ ee({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Is(s, e, t)] })
1791
+ ]), Ms = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1759
1792
  T(
1760
1793
  "open",
1761
- (s, n, a) => s ? new te({
1794
+ (s, n, a) => s ? new se({
1762
1795
  cache: "dropdown",
1763
1796
  parent: a,
1764
1797
  button: a.button
1765
1798
  }, [
1766
- Ss(e, t)
1799
+ Ts(e, t)
1767
1800
  ]) : null
1768
1801
  )
1769
- ]), to = M(
1802
+ ]), oo = M(
1770
1803
  {
1771
1804
  /**
1772
1805
  * This will set up the data.
@@ -1847,8 +1880,8 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1847
1880
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
1848
1881
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
1849
1882
  // @ts-ignore
1850
- ks({ toggleDropdown: this.toggleDropdown.bind(this) }),
1851
- $s({
1883
+ Ds({ toggleDropdown: this.toggleDropdown.bind(this) }),
1884
+ Ms({
1852
1885
  // @ts-ignore
1853
1886
  state: this.state,
1854
1887
  // @ts-ignore
@@ -1868,21 +1901,21 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1868
1901
  ]);
1869
1902
  }
1870
1903
  }
1871
- ), Qe = ({ icon: e, click: t, ariaLabel: s }) => b({
1904
+ ), Xe = ({ icon: e, click: t, ariaLabel: s }) => b({
1872
1905
  variant: "icon",
1873
1906
  class: "flex flex-none",
1874
1907
  click: t,
1875
1908
  icon: e,
1876
1909
  "aria-label": s
1877
- }), Ds = ({ click: e }) => Qe({
1910
+ }), Ps = ({ click: e }) => Xe({
1878
1911
  icon: u.circleMinus,
1879
1912
  click: e,
1880
1913
  ariaLabel: "Decrement"
1881
- }), Is = ({ click: e }) => Qe({
1914
+ }), Bs = ({ click: e }) => Xe({
1882
1915
  icon: u.circlePlus,
1883
1916
  click: e,
1884
1917
  ariaLabel: "Increment"
1885
- }), Ts = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
1918
+ }), zs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => _(({ state: a }) => p({
1886
1919
  value: ["[[count]]", a],
1887
1920
  bind: e,
1888
1921
  blur: (l, { state: i }) => {
@@ -1895,7 +1928,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1895
1928
  max: s,
1896
1929
  type: "number",
1897
1930
  "aria-label": "Counter"
1898
- })), so = O(
1931
+ })), lo = O(
1899
1932
  {
1900
1933
  /**
1901
1934
  * Initial state for the counter component.
@@ -1918,20 +1951,20 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1918
1951
  render() {
1919
1952
  const e = this.class ?? "";
1920
1953
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
1921
- Ds({ click: () => this.state.decrement("count") }),
1922
- Ts({
1954
+ Ps({ click: () => this.state.decrement("count") }),
1955
+ zs({
1923
1956
  bind: this.bind,
1924
1957
  readonly: this.readonly,
1925
1958
  min: this.min,
1926
1959
  max: this.max
1927
1960
  }),
1928
- Is({ click: () => this.state.increment("count") })
1961
+ Bs({ click: () => this.state.increment("count") })
1929
1962
  ]);
1930
1963
  }
1931
1964
  }
1932
- ), Ms = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
1965
+ ), Os = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
1933
1966
  { class: "grid grid-cols-3 gap-2" },
1934
- ee.monthNames.map(
1967
+ te.monthNames.map(
1935
1968
  (n, a) => b(
1936
1969
  {
1937
1970
  click: (l) => {
@@ -1943,10 +1976,10 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1943
1976
  n.substring(0, 3)
1944
1977
  )
1945
1978
  )
1946
- ), 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), F = (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" : "", Ls = (e, t, s, n) => {
1947
- const a = Ns(t, n);
1948
- return a || (e ? Ps(e) : s ? zs(s) : "text-foreground");
1949
- }, oe = (e) => {
1979
+ ), B = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Ns = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), L = (e, t, s) => `${e}-${B(t + 1)}-${B(s)}`, Rs = (e) => e ? "bg-accent text-primary" : "", Fs = (e) => e ? "text-muted-foreground opacity-50" : "", Ls = (e, t) => e === t, js = (e, t) => Ls(e, t) ? "bg-primary text-primary-foreground" : "", As = (e, t, s, n) => {
1980
+ const a = js(t, n);
1981
+ return a || (e ? Rs(e) : s ? Fs(s) : "text-foreground");
1982
+ }, le = (e) => {
1950
1983
  const {
1951
1984
  day: t,
1952
1985
  currentDate: s,
@@ -1960,7 +1993,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1960
1993
  {
1961
1994
  class: `
1962
1995
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
1963
- ${Ls(a, s, l, n)}
1996
+ ${As(a, s, l, n)}
1964
1997
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
1965
1998
  disabled:pointer-events-none disabled:opacity-50
1966
1999
  `,
@@ -1971,29 +2004,29 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
1971
2004
  },
1972
2005
  t.toString()
1973
2006
  );
1974
- }, le = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Rs = (e, t, s, n = !1) => {
1975
- const { year: a, month: l } = e, i = F(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;
2007
+ }, re = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Hs = (e, t, s, n = !1) => {
2008
+ 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, H = l === 0 ? a - 1 : a;
1976
2009
  for (let d = c - 1; d >= 0; d--) {
1977
- const y = m - d, S = le(y, q, A, t), $ = new Date(A, q, y) < new Date(t.year, t.month, t.date), L = n && $;
2010
+ const y = m - d, S = re(y, q, H, t), $ = new Date(H, q, y) < new Date(t.year, t.month, t.date), R = n && $;
1978
2011
  v.push(
1979
- oe({
2012
+ le({
1980
2013
  day: y,
1981
2014
  currentDate: i,
1982
- date: F(A, q, y),
2015
+ date: L(H, q, y),
1983
2016
  isToday: S,
1984
2017
  isOutsideMonth: !0,
1985
2018
  select: s,
1986
- disabled: L
2019
+ disabled: R
1987
2020
  })
1988
2021
  );
1989
2022
  }
1990
2023
  for (let d = 1; d <= h; d++) {
1991
- const y = le(d, l, a, t), S = new Date(a, l, d) < new Date(t.year, t.month, t.date), $ = n && S;
2024
+ const y = re(d, l, a, t), S = new Date(a, l, d) < new Date(t.year, t.month, t.date), $ = n && S;
1992
2025
  v.push(
1993
- oe({
2026
+ le({
1994
2027
  day: d,
1995
2028
  currentDate: i,
1996
- date: F(a, l, d),
2029
+ date: L(a, l, d),
1997
2030
  isToday: y,
1998
2031
  isOutsideMonth: !1,
1999
2032
  select: s,
@@ -2001,14 +2034,14 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2001
2034
  })
2002
2035
  );
2003
2036
  }
2004
- const E = l === 11 ? 0 : l + 1, se = l === 11 ? a + 1 : a, f = (7 - v.length % 7) % 7;
2037
+ const E = l === 11 ? 0 : l + 1, ne = l === 11 ? a + 1 : a, f = (7 - v.length % 7) % 7;
2005
2038
  for (let d = 1; d <= f; d++) {
2006
- const y = le(d, E, se, t), S = new Date(se, E, d) < new Date(t.year, t.month, t.date), $ = n && S;
2039
+ const y = re(d, E, ne, t), S = new Date(ne, E, d) < new Date(t.year, t.month, t.date), $ = n && S;
2007
2040
  v.push(
2008
- oe({
2041
+ le({
2009
2042
  day: d,
2010
2043
  currentDate: i,
2011
- date: F(se, E, d),
2044
+ date: L(ne, E, d),
2012
2045
  isToday: y,
2013
2046
  isOutsideMonth: !0,
2014
2047
  select: s,
@@ -2017,7 +2050,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2017
2050
  );
2018
2051
  }
2019
2052
  return v;
2020
- }, Fe = ({ label: e, click: t }) => b(
2053
+ }, je = ({ label: e, click: t }) => b(
2021
2054
  {
2022
2055
  class: `
2023
2056
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2030,16 +2063,16 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2030
2063
  variant: "icon",
2031
2064
  icon: e === "Previous" ? u.chevron.single.left : u.chevron.single.right
2032
2065
  }
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" }, [
2066
+ ), Es = ({ 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
2067
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2035
2068
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2036
- Fe({ label: "Previous", click: n }),
2037
- Fe({ label: "Next", click: s })
2038
- ]), js = (e) => o(
2069
+ je({ label: "Previous", click: n }),
2070
+ je({ label: "Next", click: s })
2071
+ ]), Us = (e) => o(
2039
2072
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2040
2073
  e
2041
- ), 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" }, [
2042
- Fs({
2074
+ ), Ys = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Us), Vs = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2075
+ Es({
2043
2076
  onMonthClick: e.onMonthClick,
2044
2077
  onYearClick: e.onYearClick,
2045
2078
  next: e.next,
@@ -2050,10 +2083,10 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2050
2083
  onSet: [
2051
2084
  "currentDate",
2052
2085
  () => [
2053
- o({ class: "grid grid-cols-7" }, Hs()),
2086
+ o({ class: "grid grid-cols-7" }, Ys()),
2054
2087
  o(
2055
2088
  { class: "grid grid-cols-7" },
2056
- Rs(
2089
+ Hs(
2057
2090
  e.current,
2058
2091
  e.today,
2059
2092
  e.select,
@@ -2063,7 +2096,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2063
2096
  ]
2064
2097
  ]
2065
2098
  })
2066
- ]), Es = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2099
+ ]), Ws = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2067
2100
  const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
2068
2101
  return o(
2069
2102
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2081,7 +2114,7 @@ const Oe = globalThis.matchMedia, ae = r(({ value: e, label: t, icon: s }) => w(
2081
2114
  )
2082
2115
  );
2083
2116
  };
2084
- class Us extends C {
2117
+ class _s extends C {
2085
2118
  /**
2086
2119
  * This will declare the props for the compiler.
2087
2120
  *
@@ -2097,7 +2130,7 @@ class Us extends C {
2097
2130
  * @returns {Date}
2098
2131
  */
2099
2132
  getSelectedDate(t) {
2100
- const s = this.selectedDate ? new Date(Bs(this.selectedDate)) : t;
2133
+ const s = this.selectedDate ? new Date(Ns(this.selectedDate)) : t;
2101
2134
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2102
2135
  }
2103
2136
  /**
@@ -2140,7 +2173,7 @@ class Us extends C {
2140
2173
  * @returns {string}
2141
2174
  */
2142
2175
  getMonthName(t) {
2143
- return ee.monthNames[t];
2176
+ return te.monthNames[t];
2144
2177
  }
2145
2178
  /**
2146
2179
  * This will go to the previous month.
@@ -2172,7 +2205,7 @@ class Us extends C {
2172
2205
  */
2173
2206
  setCurrentDate(t, s, n = null) {
2174
2207
  const a = this.data;
2175
- a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = P(n)), a.currentDate = `${s}-${P(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2208
+ a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = B(n)), a.currentDate = `${s}-${B(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2176
2209
  }
2177
2210
  /**
2178
2211
  * This will select a date.
@@ -2194,7 +2227,7 @@ class Us extends C {
2194
2227
  T("view", (t) => {
2195
2228
  switch (t) {
2196
2229
  case "months":
2197
- return Ms(
2230
+ return Os(
2198
2231
  {
2199
2232
  // @ts-ignore
2200
2233
  currentMonth: this.data.current.month,
@@ -2206,7 +2239,7 @@ class Us extends C {
2206
2239
  }
2207
2240
  );
2208
2241
  case "years":
2209
- return Es(
2242
+ return Ws(
2210
2243
  {
2211
2244
  // @ts-ignore
2212
2245
  currentMonth: this.data.current.month,
@@ -2218,7 +2251,7 @@ class Us extends C {
2218
2251
  }
2219
2252
  );
2220
2253
  default:
2221
- return As({
2254
+ return Vs({
2222
2255
  // @ts-ignore
2223
2256
  current: this.data.current,
2224
2257
  // @ts-ignore
@@ -2239,57 +2272,57 @@ class Us extends C {
2239
2272
  ]);
2240
2273
  }
2241
2274
  }
2242
- const Ys = (e) => {
2275
+ const qs = (e) => {
2243
2276
  let t = "";
2244
2277
  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
- }, Vs = (e) => {
2278
+ }, Gs = (e) => {
2246
2279
  if (e.length !== 8)
2247
2280
  return null;
2248
2281
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2249
2282
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2250
- }, Ws = ({ bind: e, required: t }) => p({
2283
+ }, Ks = ({ bind: e, required: t }) => p({
2251
2284
  cache: "input",
2252
2285
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2253
2286
  bind: e,
2254
2287
  required: t
2255
- }), qs = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2288
+ }), Qs = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2256
2289
  cache: "dateInput",
2257
2290
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2258
2291
  placeholder: e || "mm/dd/yyyy",
2259
2292
  input: t,
2260
2293
  focus: s,
2261
- onState: ["selectedDate", (n) => n ? ee.format("standard", n) : ""]
2262
- }), Gs = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2294
+ onState: ["selectedDate", (n) => n ? te.format("standard", n) : ""]
2295
+ }), Js = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2263
2296
  {
2264
2297
  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
2298
  },
2266
2299
  [
2267
- Ws({ bind: e, required: t }),
2268
- qs({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2300
+ Ks({ bind: e, required: t }),
2301
+ Qs({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2269
2302
  w(
2270
2303
  {
2271
2304
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2272
2305
  click: s
2273
2306
  },
2274
2307
  [
2275
- Y({ html: u.calendar.days })
2308
+ V({ html: u.calendar.days })
2276
2309
  ]
2277
2310
  )
2278
2311
  ]
2279
- ), _s = ({ handleDateSelect: e, blockPriorDates: t }) => me(
2280
- (s, n, a) => new te({
2312
+ ), Zs = ({ handleDateSelect: e, blockPriorDates: t }) => be(
2313
+ (s, n, a) => new se({
2281
2314
  cache: "dropdown",
2282
2315
  parent: a,
2283
2316
  button: a.panel,
2284
2317
  size: "fit"
2285
2318
  }, [
2286
- new Us({
2319
+ new _s({
2287
2320
  selectedDate: a.state.selectedDate,
2288
2321
  selectedCallBack: e,
2289
2322
  blockPriorDates: t
2290
2323
  })
2291
2324
  ])
2292
- ), no = O(
2325
+ ), ro = O(
2293
2326
  {
2294
2327
  /**
2295
2328
  * The initial state of the DatePicker.
@@ -2318,8 +2351,8 @@ const Ys = (e) => {
2318
2351
  */
2319
2352
  handleInputChange(e) {
2320
2353
  const s = e.target.value.replace(/\D/g, "");
2321
- e.target.value = Ys(s);
2322
- const n = Vs(s);
2354
+ e.target.value = qs(s);
2355
+ const n = Gs(s);
2323
2356
  n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2324
2357
  },
2325
2358
  /**
@@ -2356,7 +2389,7 @@ const Ys = (e) => {
2356
2389
  return o(
2357
2390
  { class: "relative w-full max-w-[320px]" },
2358
2391
  [
2359
- Gs({
2392
+ Js({
2360
2393
  toggleOpen: this.toggleOpen.bind(this),
2361
2394
  bind: this.bind,
2362
2395
  required: this.required,
@@ -2364,7 +2397,7 @@ const Ys = (e) => {
2364
2397
  handleInputFocus: this.handleInputFocus.bind(this),
2365
2398
  placeholder: this.placeholder
2366
2399
  }),
2367
- _s({
2400
+ Zs({
2368
2401
  handleDateSelect: this.handleDateSelect.bind(this),
2369
2402
  blockPriorDates: this.blockPriorDates || !1
2370
2403
  })
@@ -2372,7 +2405,7 @@ const Ys = (e) => {
2372
2405
  );
2373
2406
  }
2374
2407
  }
2375
- ), je = ({ label: e, click: t }) => b(
2408
+ ), Ae = ({ label: e, click: t }) => b(
2376
2409
  {
2377
2410
  class: `
2378
2411
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2385,15 +2418,15 @@ const Ys = (e) => {
2385
2418
  variant: "icon",
2386
2419
  icon: e === "Previous" ? u.chevron.single.left : u.chevron.single.right
2387
2420
  }
2388
- ), 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" }, [
2421
+ ), Xs = ({ 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
2422
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2390
2423
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2391
- je({ label: "Previous", click: n }),
2392
- je({ label: "Next", click: s })
2393
- ]), Qs = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), Js = () => o(
2424
+ Ae({ label: "Previous", click: n }),
2425
+ Ae({ label: "Next", click: s })
2426
+ ]), en = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), tn = () => o(
2394
2427
  { 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(Qs)
2396
- ), Zs = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2428
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(en)
2429
+ ), sn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2397
2430
  let h = "ghost", m = "";
2398
2431
  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
2432
  {
@@ -2406,46 +2439,46 @@ const Ys = (e) => {
2406
2439
  },
2407
2440
  e.toString()
2408
2441
  );
2409
- }, Xs = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2410
- 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;
2442
+ }, nn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2443
+ 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(), H = t.month === 11 ? 0 : t.month + 1, E = t.month === 11 ? t.year + 1 : t.year;
2411
2444
  for (let f = i - 1; f >= 0; f--) {
2412
- const d = q - f, y = F(v, m, d), S = new Date(v, m, d), $ = new Date(e.year, e.month, e.date), L = S < $, G = s && L, _ = a === y, K = l === y, nt = a && l && y > a && y < l;
2445
+ 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, K = a === y, Q = l === y, lt = a && l && y > a && y < l;
2413
2446
  h.push({
2414
2447
  day: d,
2415
2448
  iso: y,
2416
2449
  disabled: G,
2417
- isStart: _,
2418
- isEnd: K,
2419
- isBetween: nt,
2450
+ isStart: K,
2451
+ isEnd: Q,
2452
+ isBetween: lt,
2420
2453
  isOtherMonth: !0,
2421
2454
  click: () => n(y)
2422
2455
  });
2423
2456
  }
2424
2457
  for (let f = 1; f <= c; f++) {
2425
- const d = F(t.year, t.month, f), y = new Date(t.year, t.month, f), S = new Date(e.year, e.month, e.date), $ = y < S, L = s && $, G = a === d, _ = l === d, K = a && l && d > a && d < l;
2458
+ const d = L(t.year, t.month, f), y = new Date(t.year, t.month, f), S = new Date(e.year, e.month, e.date), $ = y < S, R = s && $, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2426
2459
  h.push({
2427
2460
  day: f,
2428
2461
  iso: d,
2429
- disabled: L,
2462
+ disabled: R,
2430
2463
  isStart: G,
2431
- isEnd: _,
2432
- isBetween: K,
2464
+ isEnd: K,
2465
+ isBetween: Q,
2433
2466
  isOtherMonth: !1,
2434
2467
  click: () => {
2435
2468
  n(d);
2436
2469
  }
2437
2470
  });
2438
2471
  }
2439
- const we = (7 - h.length % 7) % 7;
2440
- for (let f = 1; f <= we; f++) {
2441
- const d = F(E, A, f), y = new Date(E, A, f), S = new Date(e.year, e.month, e.date), $ = y < S, L = s && $, G = a === d, _ = l === d, K = a && l && d > a && d < l;
2472
+ const ve = (7 - h.length % 7) % 7;
2473
+ for (let f = 1; f <= ve; f++) {
2474
+ const d = L(E, H, f), y = new Date(E, H, f), S = new Date(e.year, e.month, e.date), $ = y < S, R = s && $, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2442
2475
  h.push({
2443
2476
  day: f,
2444
2477
  iso: d,
2445
- disabled: L,
2478
+ disabled: R,
2446
2479
  isStart: G,
2447
- isEnd: _,
2448
- isBetween: K,
2480
+ isEnd: K,
2481
+ isBetween: Q,
2449
2482
  isOtherMonth: !0,
2450
2483
  click: () => n(d)
2451
2484
  });
@@ -2453,7 +2486,7 @@ const Ys = (e) => {
2453
2486
  return o(
2454
2487
  { class: "grid grid-cols-7 gap-1" },
2455
2488
  h.map(
2456
- (f, d) => Zs({
2489
+ (f, d) => sn({
2457
2490
  day: f.day,
2458
2491
  iso: f.iso,
2459
2492
  disabled: f.disabled,
@@ -2465,8 +2498,8 @@ const Ys = (e) => {
2465
2498
  })
2466
2499
  )
2467
2500
  );
2468
- }, en = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2469
- Ks({
2501
+ }, an = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2502
+ Xs({
2470
2503
  // @ts-ignore
2471
2504
  onMonthClick: e.onMonthClick,
2472
2505
  // @ts-ignore
@@ -2481,8 +2514,8 @@ const Ys = (e) => {
2481
2514
  onSet: [
2482
2515
  "currentDate",
2483
2516
  () => [
2484
- Js(),
2485
- Xs({
2517
+ tn(),
2518
+ nn({
2486
2519
  // @ts-ignore
2487
2520
  today: e.today,
2488
2521
  // @ts-ignore
@@ -2495,9 +2528,9 @@ const Ys = (e) => {
2495
2528
  ]
2496
2529
  ]
2497
2530
  })
2498
- ])), tn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2531
+ ])), on = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2499
2532
  { class: "grid grid-cols-3 gap-2" },
2500
- ee.monthNames.map(
2533
+ te.monthNames.map(
2501
2534
  (n, a) => b(
2502
2535
  {
2503
2536
  click: (l) => {
@@ -2509,25 +2542,25 @@ const Ys = (e) => {
2509
2542
  n.substring(0, 3)
2510
2543
  )
2511
2544
  )
2512
- ), sn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2513
- Q("selecting", (l) => b({
2545
+ ), ln = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2546
+ J("selecting", (l) => b({
2514
2547
  click: n,
2515
2548
  variant: l === "start" ? "primary" : "outline",
2516
2549
  class: "flex-1"
2517
2550
  }, [
2518
2551
  o({ class: "font-medium" }, He("current.start", "Start Date"))
2519
2552
  ])),
2520
- Q("selecting", (l) => b({
2553
+ J("selecting", (l) => b({
2521
2554
  click: a,
2522
2555
  variant: l === "end" ? "primary" : "outline",
2523
2556
  class: "flex-1"
2524
2557
  }, [
2525
2558
  o({ class: "font-medium" }, He("current.end", "End Date"))
2526
2559
  ]))
2527
- ]), He = (e, t) => [`[[${e}]]`, (s) => s == null ? t : nn(s)], nn = (e) => {
2560
+ ]), He = (e, t) => [`[[${e}]]`, (s) => s == null ? t : rn(s)], rn = (e) => {
2528
2561
  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
2562
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2530
- }, an = ({ currentYear: e, onSelect: t }) => {
2563
+ }, cn = ({ currentYear: e, onSelect: t }) => {
2531
2564
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2532
2565
  return o(
2533
2566
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2545,7 +2578,7 @@ const Ys = (e) => {
2545
2578
  )
2546
2579
  );
2547
2580
  };
2548
- class on extends C {
2581
+ class dn extends C {
2549
2582
  /**
2550
2583
  * Declare compiler props.
2551
2584
  *
@@ -2568,7 +2601,7 @@ class on extends C {
2568
2601
  year: t.getFullYear()
2569
2602
  },
2570
2603
  monthName: this.getMonthName(n),
2571
- currentData: `${s.getFullYear()}-${P(s.getMonth() + 1)}-${P(s.getDate())}`,
2604
+ currentData: `${s.getFullYear()}-${B(s.getMonth() + 1)}-${B(s.getDate())}`,
2572
2605
  current: {
2573
2606
  date: t.getDate(),
2574
2607
  month: n,
@@ -2586,7 +2619,7 @@ class on extends C {
2586
2619
  * @returns {string}
2587
2620
  */
2588
2621
  getMonthName(t) {
2589
- return ee.monthNames[t];
2622
+ return te.monthNames[t];
2590
2623
  }
2591
2624
  /**
2592
2625
  * Initialize component state.
@@ -2632,7 +2665,7 @@ class on extends C {
2632
2665
  */
2633
2666
  setCurrent({ month: t, year: s, date: n = null }) {
2634
2667
  const a = this.data.current;
2635
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${P(t + 1)}-${P(a.date)}`;
2668
+ a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${B(t + 1)}-${B(a.date)}`;
2636
2669
  }
2637
2670
  /**
2638
2671
  * Render the range calendar.
@@ -2642,7 +2675,7 @@ class on extends C {
2642
2675
  render() {
2643
2676
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2644
2677
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2645
- sn({
2678
+ ln({
2646
2679
  start: a,
2647
2680
  end: l,
2648
2681
  selecting: n,
@@ -2656,7 +2689,7 @@ class on extends C {
2656
2689
  T("view", (i) => {
2657
2690
  switch (i) {
2658
2691
  case "months":
2659
- return tn(
2692
+ return on(
2660
2693
  {
2661
2694
  currentMonth: s.month,
2662
2695
  currentYear: s.year,
@@ -2666,7 +2699,7 @@ class on extends C {
2666
2699
  }
2667
2700
  );
2668
2701
  case "years":
2669
- return an(
2702
+ return cn(
2670
2703
  {
2671
2704
  currentYear: s.year,
2672
2705
  onSelect: (c) => {
@@ -2675,7 +2708,7 @@ class on extends C {
2675
2708
  }
2676
2709
  );
2677
2710
  default:
2678
- return en({
2711
+ return an({
2679
2712
  // @ts-ignore
2680
2713
  monthName: this.data.monthName,
2681
2714
  year: s.year,
@@ -2703,35 +2736,35 @@ class on extends C {
2703
2736
  ]);
2704
2737
  }
2705
2738
  }
2706
- const ln = ({ bind: e, required: t }) => p({
2739
+ const un = ({ bind: e, required: t }) => p({
2707
2740
  cache: "input",
2708
2741
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2709
2742
  bind: e,
2710
2743
  required: t
2711
- }), rn = ({ bind: e, required: t, toggleOpen: s }) => w({
2744
+ }), hn = ({ bind: e, required: t, toggleOpen: s }) => w({
2712
2745
  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
2746
  click: s
2714
2747
  }, [
2715
- ln({ bind: e, required: t }),
2716
- W(({ state: n }) => [
2748
+ un({ bind: e, required: t }),
2749
+ _(({ state: n }) => [
2717
2750
  g(U.date(["[[start]]", n], "Start Date")),
2718
2751
  g(" - "),
2719
2752
  g(U.date(["[[end]]", n], "End Date"))
2720
2753
  ]),
2721
- Y({ html: u.calendar.days })
2722
- ]), cn = ({ handleDateSelect: e, blockPriorDates: t }) => me((s, n, a) => new te({
2754
+ V({ html: u.calendar.days })
2755
+ ]), fn = ({ handleDateSelect: e, blockPriorDates: t }) => be((s, n, a) => new se({
2723
2756
  cache: "dropdown",
2724
2757
  parent: a,
2725
2758
  button: a.panel,
2726
2759
  size: "xl"
2727
2760
  }, [
2728
- new on({
2761
+ new dn({
2729
2762
  startDate: a.state.start,
2730
2763
  endDate: a.state.end,
2731
2764
  onRangeSelect: e,
2732
2765
  blockPriorDates: t
2733
2766
  })
2734
- ])), ao = O(
2767
+ ])), io = O(
2735
2768
  {
2736
2769
  /**
2737
2770
  * The initial state of the DateRangePicker.
@@ -2767,12 +2800,12 @@ const ln = ({ bind: e, required: t }) => p({
2767
2800
  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
2801
  };
2769
2802
  return o({ class: "relative w-full max-w-[320px]" }, [
2770
- rn({
2803
+ hn({
2771
2804
  toggleOpen: e,
2772
2805
  bind: this.bind,
2773
2806
  required: this.required
2774
2807
  }),
2775
- cn({
2808
+ fn({
2776
2809
  handleDateSelect: t,
2777
2810
  blockPriorDates: this.blockPriorDates || !1
2778
2811
  })
@@ -2780,11 +2813,11 @@ const ln = ({ bind: e, required: t }) => p({
2780
2813
  }
2781
2814
  }
2782
2815
  );
2783
- function dn(e) {
2816
+ function gn(e) {
2784
2817
  let t = "";
2785
2818
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2786
2819
  }
2787
- function un(e) {
2820
+ function mn(e) {
2788
2821
  if (e.length < 4)
2789
2822
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2790
2823
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2798,7 +2831,7 @@ function un(e) {
2798
2831
  meridian: a
2799
2832
  };
2800
2833
  }
2801
- function hn({ bind: e, required: t }) {
2834
+ function bn({ bind: e, required: t }) {
2802
2835
  return p({
2803
2836
  cache: "input",
2804
2837
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -2806,7 +2839,7 @@ function hn({ bind: e, required: t }) {
2806
2839
  required: t
2807
2840
  });
2808
2841
  }
2809
- function fn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2842
+ function xn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2810
2843
  return p({
2811
2844
  cache: "timeInput",
2812
2845
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
@@ -2816,27 +2849,27 @@ function fn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2816
2849
  onState: ["selectedTime", (n) => n || ""]
2817
2850
  });
2818
2851
  }
2819
- function gn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2852
+ function pn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2820
2853
  return o(
2821
2854
  {
2822
2855
  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
2856
  },
2824
2857
  [
2825
- hn({ bind: e, required: t }),
2826
- fn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2858
+ bn({ bind: e, required: t }),
2859
+ xn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2827
2860
  w(
2828
2861
  {
2829
2862
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2830
2863
  click: s
2831
2864
  },
2832
2865
  [
2833
- Y({ html: u.clock })
2866
+ V({ html: u.clock })
2834
2867
  ]
2835
2868
  )
2836
2869
  ]
2837
2870
  );
2838
2871
  }
2839
- function re({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
2872
+ function ie({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
2840
2873
  return o(
2841
2874
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
2842
2875
  e.map((l) => {
@@ -2850,9 +2883,9 @@ function re({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
2850
2883
  })
2851
2884
  );
2852
2885
  }
2853
- function mn({ handleTimeSelect: e }) {
2854
- return me(
2855
- (t, s, n) => new te(
2886
+ function yn({ handleTimeSelect: e }) {
2887
+ return be(
2888
+ (t, s, n) => new se(
2856
2889
  {
2857
2890
  cache: "dropdown",
2858
2891
  parent: n,
@@ -2867,7 +2900,7 @@ function mn({ handleTimeSelect: e }) {
2867
2900
  { class: "grid grid-cols-3 gap-2 p-4 text-center max-h-[220px] min-w-[240px]" },
2868
2901
  [
2869
2902
  // Hours column
2870
- re({
2903
+ ie({
2871
2904
  items: Array.from({ length: 12 }, (a, l) => l + 1),
2872
2905
  handleTimeSelect: e,
2873
2906
  state: n.state,
@@ -2875,7 +2908,7 @@ function mn({ handleTimeSelect: e }) {
2875
2908
  pad: !0
2876
2909
  }),
2877
2910
  // Minutes column
2878
- re({
2911
+ ie({
2879
2912
  items: Array.from({ length: 60 }, (a, l) => l),
2880
2913
  handleTimeSelect: e,
2881
2914
  state: n.state,
@@ -2883,7 +2916,7 @@ function mn({ handleTimeSelect: e }) {
2883
2916
  pad: !0
2884
2917
  }),
2885
2918
  // AM/PM column
2886
- re({
2919
+ ie({
2887
2920
  items: ["AM", "PM"],
2888
2921
  handleTimeSelect: e,
2889
2922
  state: n.state,
@@ -2897,7 +2930,7 @@ function mn({ handleTimeSelect: e }) {
2897
2930
  )
2898
2931
  );
2899
2932
  }
2900
- function Ae(e) {
2933
+ function Ee(e) {
2901
2934
  if (!e)
2902
2935
  return { hour: null, minute: null, meridian: null };
2903
2936
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
@@ -2910,7 +2943,7 @@ function Ae(e) {
2910
2943
  meridian: l
2911
2944
  });
2912
2945
  }
2913
- const oo = O(
2946
+ const co = O(
2914
2947
  {
2915
2948
  /**
2916
2949
  * The initial shallow state of the TimePicker.
@@ -2918,7 +2951,7 @@ const oo = O(
2918
2951
  * @member {object} state
2919
2952
  */
2920
2953
  state() {
2921
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ae(e);
2954
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ee(e);
2922
2955
  return {
2923
2956
  selectedTime: e,
2924
2957
  open: !1,
@@ -2934,7 +2967,7 @@ const oo = O(
2934
2967
  */
2935
2968
  after() {
2936
2969
  if (this.input.value) {
2937
- const { hour: e, minute: t, meridian: s } = Ae(this.input.value);
2970
+ const { hour: e, minute: t, meridian: s } = Ee(this.input.value);
2938
2971
  this.state.set({
2939
2972
  hour: e,
2940
2973
  minute: t,
@@ -2958,8 +2991,8 @@ const oo = O(
2958
2991
  * @param {Event} e
2959
2992
  */
2960
2993
  handleInputChange(e) {
2961
- let t = e.target.value.replace(/[^\d]/g, ""), s = dn(t);
2962
- const n = un(t);
2994
+ let t = e.target.value.replace(/[^\d]/g, ""), s = gn(t);
2995
+ const n = mn(t);
2963
2996
  n.formattedTime && (s = n.formattedTime, this.state.set({
2964
2997
  hour: n.hour,
2965
2998
  minute: n.minute,
@@ -2995,7 +3028,7 @@ const oo = O(
2995
3028
  return o(
2996
3029
  { class: "relative w-full max-w-[320px]" },
2997
3030
  [
2998
- gn({
3031
+ pn({
2999
3032
  toggleOpen: this.toggleOpen.bind(this),
3000
3033
  bind: this.bind,
3001
3034
  required: this.required,
@@ -3003,18 +3036,18 @@ const oo = O(
3003
3036
  handleInputFocus: this.handleInputFocus.bind(this),
3004
3037
  placeholder: this.placeholder
3005
3038
  }),
3006
- mn({
3039
+ yn({
3007
3040
  handleTimeSelect: this.handleTimeSelect.bind(this)
3008
3041
  })
3009
3042
  ]
3010
3043
  );
3011
3044
  }
3012
3045
  }
3013
- ), bn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3046
+ ), wn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3014
3047
  x({ size: "lg" }, e)
3015
- ]), xn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3016
- J({ class: "text-lg font-semibold" }, e)
3017
- ]), lo = r((e, t) => ct(
3048
+ ]), vn = ({ title: e }) => X({ class: "flex flex-auto items-center" }, [
3049
+ Z({ class: "text-lg font-semibold" }, e)
3050
+ ]), uo = r((e, t) => ht(
3018
3051
  {
3019
3052
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3020
3053
  rounded-lg flex flex-auto flex-col
@@ -3027,21 +3060,21 @@ const oo = O(
3027
3060
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3028
3061
  // Icon and content
3029
3062
  // @ts-ignore
3030
- e.icon && bn(e.icon, e.iconColor),
3063
+ e.icon && wn(e.icon, e.iconColor),
3031
3064
  o({ class: "flex flex-auto flex-col gap-4" }, [
3032
3065
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3033
- xn(e),
3066
+ vn(e),
3034
3067
  // @ts-ignore
3035
3068
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3036
3069
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3037
3070
  ]),
3038
3071
  // @ts-ignore
3039
- e.buttons && ue({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3072
+ e.buttons && he({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3040
3073
  ])
3041
3074
  ])
3042
3075
  ]
3043
- )), ro = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3044
- _e({ class: "flex flex-auto flex-col" }, [
3076
+ )), ho = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3077
+ Je({ class: "flex flex-auto flex-col" }, [
3045
3078
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3046
3079
  o({ class: "flex flex-auto items-center justify-center" }, [
3047
3080
  // @ts-ignore
@@ -3050,9 +3083,9 @@ const oo = O(
3050
3083
  x({ size: "lg" }, e.icon)
3051
3084
  ])
3052
3085
  ]),
3053
- Z({ class: "py-4 text-center" }, [
3086
+ X({ class: "py-4 text-center" }, [
3054
3087
  // @ts-ignore
3055
- J({ class: "text-xl font-bold" }, e.title),
3088
+ Z({ class: "text-xl font-bold" }, e.title),
3056
3089
  // @ts-ignore
3057
3090
  k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
3058
3091
  ...t
@@ -3071,28 +3104,28 @@ r(({ value: e, label: t }) => w({
3071
3104
  dataSet: ["performance", ["state", e, "active"]],
3072
3105
  click: (s, { state: n }) => n.performance = e
3073
3106
  }, t));
3074
- const pn = (e, t) => {
3107
+ const kn = (e, t) => {
3075
3108
  const s = e.toggleAllSelectedRows();
3076
3109
  t.state.checked = !s;
3077
- }, yn = (e) => Ye({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3078
- W((t) => new jt({ class: "mr-2", onChange: (s, n) => pn(t, n) }))
3079
- ]), wn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3110
+ }, Cn = (e) => Ve({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3111
+ _((t) => new Ut({ class: "mr-2", onChange: (s, n) => kn(t, n) }))
3112
+ ]), Sn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3080
3113
  const i = e || "justify-start";
3081
- return Ye({
3114
+ return Ve({
3082
3115
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3083
3116
  click: t && (() => a(s))
3084
3117
  }, [
3085
3118
  o({ class: `flex flex-auto w-full items-center ${i}` }, [
3086
3119
  g(n),
3087
- t && Y({ class: "ml-2", html: u.arrows.upDown })
3120
+ t && V({ class: "ml-2", html: u.arrows.upDown })
3088
3121
  ])
3089
3122
  ]);
3090
- }, ye = (e) => dt([
3091
- ut({
3123
+ }, we = (e) => ft([
3124
+ gt({
3092
3125
  class: "text-muted-foreground border-b",
3093
3126
  map: [
3094
3127
  e.headers,
3095
- (t) => t.label === "checkbox" ? yn({ toggle: e.toggle }) : wn({
3128
+ (t) => t.label === "checkbox" ? Cn({ toggle: e.toggle }) : Sn({
3096
3129
  align: t.align,
3097
3130
  sortable: t.sortable,
3098
3131
  key: t.key,
@@ -3101,7 +3134,7 @@ const pn = (e, t) => {
3101
3134
  })
3102
3135
  ]
3103
3136
  })
3104
- ]), vn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new xt({
3137
+ ]), $n = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new wt({
3105
3138
  cache: "list",
3106
3139
  key: e,
3107
3140
  items: t,
@@ -3111,7 +3144,7 @@ const pn = (e, t) => {
3111
3144
  skeleton: l,
3112
3145
  columnCount: i
3113
3146
  });
3114
- class Je extends C {
3147
+ class et extends C {
3115
3148
  /**
3116
3149
  * Initializes component data.
3117
3150
  *
@@ -3190,14 +3223,14 @@ class Je extends C {
3190
3223
  render() {
3191
3224
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3192
3225
  return o({ class: "w-full flex flex-auto flex-col" }, [
3193
- Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3226
+ J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3194
3227
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3195
- be({ class: "w-full" }, [
3228
+ xe({ class: "w-full" }, [
3196
3229
  // @ts-ignore
3197
- this.headers && ye({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3230
+ this.headers && we({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3198
3231
  // @ts-ignore
3199
3232
  this.customHeader ?? null,
3200
- vn({
3233
+ $n({
3201
3234
  // @ts-ignore
3202
3235
  key: this.key,
3203
3236
  // @ts-ignore
@@ -3276,7 +3309,7 @@ class Je extends C {
3276
3309
  this.data.selectedRows = [];
3277
3310
  }
3278
3311
  }
3279
- const kn = (e) => new pt({
3312
+ const Dn = (e) => new vt({
3280
3313
  cache: "list",
3281
3314
  loadMoreItems: e.loadMoreItems,
3282
3315
  offset: e.offset,
@@ -3289,7 +3322,7 @@ const kn = (e) => new pt({
3289
3322
  skeleton: e.skeleton,
3290
3323
  columnCount: e.columnCount
3291
3324
  });
3292
- class Cn extends Je {
3325
+ class In extends et {
3293
3326
  /**
3294
3327
  * Renders the DataTable component.
3295
3328
  *
@@ -3298,14 +3331,14 @@ class Cn extends Je {
3298
3331
  render() {
3299
3332
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3300
3333
  return o({ class: "w-full flex flex-auto flex-col" }, [
3301
- Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3334
+ J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3302
3335
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3303
- be({ class: "w-full" }, [
3336
+ xe({ class: "w-full" }, [
3304
3337
  // @ts-ignore
3305
- this.headers && ye({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3338
+ this.headers && we({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3306
3339
  // @ts-ignore
3307
3340
  this.customHeader ?? null,
3308
- kn({
3341
+ Dn({
3309
3342
  // @ts-ignore
3310
3343
  loadMoreItems: this.loadMoreItems,
3311
3344
  // @ts-ignore
@@ -3341,7 +3374,7 @@ class Cn extends Je {
3341
3374
  this.list.refresh();
3342
3375
  }
3343
3376
  }
3344
- const io = r((e) => new Cn(
3377
+ const fo = r((e) => new In(
3345
3378
  {
3346
3379
  // @ts-ignore
3347
3380
  cache: e.cache ?? "list",
@@ -3372,7 +3405,7 @@ const io = r((e) => new Cn(
3372
3405
  // @ts-ignore
3373
3406
  skeleton: e.skeleton
3374
3407
  }
3375
- )), Sn = (e) => new yt({
3408
+ )), Tn = (e) => new kt({
3376
3409
  cache: "list",
3377
3410
  scrollContainer: e.scrollContainer,
3378
3411
  loadMoreItems: e.loadMoreItems,
@@ -3386,7 +3419,7 @@ const io = r((e) => new Cn(
3386
3419
  skeleton: e.skeleton,
3387
3420
  columnCount: e.columnCount
3388
3421
  });
3389
- class $n extends Je {
3422
+ class Mn extends et {
3390
3423
  /**
3391
3424
  * Renders the DataTable component.
3392
3425
  *
@@ -3395,14 +3428,14 @@ class $n extends Je {
3395
3428
  render() {
3396
3429
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3397
3430
  return o({ class: "w-full flex flex-auto flex-col" }, [
3398
- Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3431
+ J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3399
3432
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3400
- be({ class: "w-full" }, [
3433
+ xe({ class: "w-full" }, [
3401
3434
  // @ts-ignore
3402
- this.headers && ye({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3435
+ this.headers && we({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3403
3436
  // @ts-ignore
3404
3437
  this.customHeader ?? null,
3405
- Sn({
3438
+ Tn({
3406
3439
  // @ts-ignore
3407
3440
  scrollContainer: this.scrollContainer,
3408
3441
  // @ts-ignore
@@ -3440,7 +3473,7 @@ class $n extends Je {
3440
3473
  this.list.refresh();
3441
3474
  }
3442
3475
  }
3443
- const co = r((e) => new $n(
3476
+ const go = r((e) => new Mn(
3444
3477
  {
3445
3478
  // @ts-ignore
3446
3479
  cache: e.cache ?? "list",
@@ -3473,28 +3506,28 @@ const co = r((e) => new $n(
3473
3506
  // @ts-ignore
3474
3507
  skeleton: e.skeleton
3475
3508
  }
3476
- )), Dn = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3509
+ )), Pn = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3477
3510
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3478
3511
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3479
- ])), In = () => o({ class: "flex items-center gap-x-1.5" }, [
3512
+ ])), Bn = () => o({ class: "flex items-center gap-x-1.5" }, [
3480
3513
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3481
3514
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3482
3515
  ]),
3483
3516
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3484
- ]), Tn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3517
+ ]), zn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3485
3518
  g("Last seen "),
3486
- ht({ datetime: e }, "3h ago")
3487
- ]), 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" }, [
3519
+ mt({ datetime: e }, "3h ago")
3520
+ ]), On = (e, t) => e === "online" ? Bn() : zn(t), Nn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3488
3521
  k({ class: "text-sm leading-6 m-0" }, e),
3489
- Mn(s, t)
3490
- ])), 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" }, [
3522
+ On(s, t)
3523
+ ])), Rn = (e) => e.split(" ").map((s) => s[0]).join(""), Fn = r((e) => me({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3491
3524
  o({ class: "flex min-w-0 gap-x-4" }, [
3492
3525
  // @ts-ignore
3493
- gs({ src: e.image, alt: e.name, fallbackText: Pn(e.name) }),
3526
+ ps({ src: e.image, alt: e.name, fallbackText: Rn(e.name) }),
3494
3527
  // @ts-ignore
3495
- Dn({ name: e.name, email: e.email })
3528
+ Pn({ name: e.name, email: e.email })
3496
3529
  ]),
3497
- Bn({
3530
+ Nn({
3498
3531
  // @ts-ignore
3499
3532
  role: e.role,
3500
3533
  // @ts-ignore
@@ -3502,16 +3535,16 @@ const co = r((e) => new $n(
3502
3535
  // @ts-ignore
3503
3536
  status: e.status
3504
3537
  })
3505
- ])), uo = r((e) => new wt({
3538
+ ])), mo = r((e) => new Ct({
3506
3539
  cache: "list",
3507
3540
  key: "name",
3508
3541
  // @ts-ignore
3509
3542
  items: e.users,
3510
3543
  role: "list",
3511
3544
  class: "divide-y divide-border",
3512
- rowItem: zn
3545
+ rowItem: Fn
3513
3546
  }));
3514
- class On extends C {
3547
+ class Ln extends C {
3515
3548
  /**
3516
3549
  * This will declare the props for the compiler.
3517
3550
  *
@@ -3572,14 +3605,14 @@ class On extends C {
3572
3605
  });
3573
3606
  }
3574
3607
  }
3575
- const Nn = r(({ options: e, click: t }, s) => ({
3608
+ const jn = r(({ options: e, click: t }, s) => ({
3576
3609
  tag: "li",
3577
3610
  ...{
3578
3611
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3579
3612
  click: t
3580
3613
  },
3581
3614
  children: s
3582
- })), Ln = (e, t = null, s = !1) => [
3615
+ })), An = (e, t = null, s = !1) => [
3583
3616
  t && o({
3584
3617
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3585
3618
  onState: ["selected", {
@@ -3588,7 +3621,7 @@ const Nn = r(({ options: e, click: t }, s) => ({
3588
3621
  }, [
3589
3622
  x({ size: "sm" }, t)
3590
3623
  ]),
3591
- V({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3624
+ W({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3592
3625
  s && g(
3593
3626
  {
3594
3627
  class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
@@ -3606,7 +3639,7 @@ const Nn = r(({ options: e, click: t }, s) => ({
3606
3639
  ]
3607
3640
  )
3608
3641
  ];
3609
- class Ze extends C {
3642
+ class tt extends C {
3610
3643
  /**
3611
3644
  * This will declare the props for the compiler.
3612
3645
  *
@@ -3623,7 +3656,7 @@ class Ze extends C {
3623
3656
  */
3624
3657
  render() {
3625
3658
  const t = !this.options && this.callBack;
3626
- return Nn(
3659
+ return jn(
3627
3660
  { options: this.options, click: t },
3628
3661
  [
3629
3662
  this.addLink()
@@ -3637,8 +3670,8 @@ class Ze extends C {
3637
3670
  * @protected
3638
3671
  */
3639
3672
  addLink() {
3640
- const t = this.options && this.options.length > 0, s = this.content || Ln(String(this.label), this.icon, t);
3641
- return this.href ? new mt(
3673
+ const t = this.options && this.options.length > 0, s = this.content || An(String(this.label), this.icon, t);
3674
+ return this.href ? new pt(
3642
3675
  {
3643
3676
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3644
3677
  cache: "link",
@@ -3647,7 +3680,7 @@ class Ze extends C {
3647
3680
  exact: this.exact || !1
3648
3681
  },
3649
3682
  s
3650
- ) : new On({
3683
+ ) : new Ln({
3651
3684
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3652
3685
  cache: "link",
3653
3686
  checkCallBack: this.checkCallBack
@@ -3665,10 +3698,10 @@ class Ze extends C {
3665
3698
  this.link.update(t);
3666
3699
  }
3667
3700
  }
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)
3701
+ const Hn = r(({ map: e }, t) => ee({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3702
+ Ue({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3670
3703
  ]));
3671
- class Fn extends C {
3704
+ class En extends C {
3672
3705
  /**
3673
3706
  * This will declare the props for the compiler.
3674
3707
  *
@@ -3684,8 +3717,8 @@ class Fn extends C {
3684
3717
  */
3685
3718
  render() {
3686
3719
  const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
3687
- return fe({ class: `navigation flex flex-auto flex-col ${s}` }, [
3688
- X({
3720
+ return ge({ class: `navigation flex flex-auto flex-col ${s}` }, [
3721
+ ee({
3689
3722
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3690
3723
  map: t
3691
3724
  }),
@@ -3717,7 +3750,7 @@ class Fn extends C {
3717
3750
  */
3718
3751
  addGroup(t) {
3719
3752
  const s = this.mapOptions(t.options);
3720
- return Rn({ map: s }, t.group);
3753
+ return Hn({ map: s }, t.group);
3721
3754
  }
3722
3755
  /**
3723
3756
  * This will add a link.
@@ -3726,10 +3759,10 @@ class Fn extends C {
3726
3759
  * @returns {object}
3727
3760
  */
3728
3761
  addLink(t) {
3729
- return new Ze(t);
3762
+ return new tt(t);
3730
3763
  }
3731
3764
  }
3732
- class Xe extends Fn {
3765
+ class st extends En {
3733
3766
  onCreated() {
3734
3767
  this.links = [];
3735
3768
  }
@@ -3740,7 +3773,7 @@ class Xe extends Fn {
3740
3773
  * @returns {object}
3741
3774
  */
3742
3775
  setupSubNav(t) {
3743
- return new An(
3776
+ return new Vn(
3744
3777
  {
3745
3778
  parentLink: t,
3746
3779
  options: t.options
@@ -3764,7 +3797,7 @@ class Xe extends Fn {
3764
3797
  * @returns {object}
3765
3798
  */
3766
3799
  addLink(t) {
3767
- const s = new Ze(t);
3800
+ const s = new tt(t);
3768
3801
  if (this.links.push(s), !s.options)
3769
3802
  return s;
3770
3803
  const n = this.addSubNav(s);
@@ -3775,11 +3808,11 @@ class Xe extends Fn {
3775
3808
  };
3776
3809
  }
3777
3810
  }
3778
- const jn = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), Hn = (e, t) => {
3811
+ const Un = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), Yn = (e, t) => {
3779
3812
  const s = e.link.panel.pathname;
3780
- return !s && e.isSelected() ? !0 : e.exact ? t === s : jn(s, t);
3813
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : Un(s, t);
3781
3814
  };
3782
- class An extends Xe {
3815
+ class Vn extends st {
3783
3816
  /**
3784
3817
  * This will declare the props for the compiler.
3785
3818
  *
@@ -3795,8 +3828,8 @@ class An extends Xe {
3795
3828
  */
3796
3829
  render() {
3797
3830
  const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
3798
- return fe({ class: t, onState: this.onState() }, [
3799
- X({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3831
+ return ge({ class: t, onState: this.onState() }, [
3832
+ ee({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3800
3833
  ]);
3801
3834
  }
3802
3835
  /**
@@ -3808,7 +3841,7 @@ class An extends Xe {
3808
3841
  addWatcher() {
3809
3842
  return {
3810
3843
  watch: {
3811
- value: ["[[path]]", ve.data],
3844
+ value: ["[[path]]", ke.data],
3812
3845
  callBack: this.updateLinks.bind(this)
3813
3846
  }
3814
3847
  };
@@ -3849,7 +3882,7 @@ class An extends Xe {
3849
3882
  * @returns {void}
3850
3883
  */
3851
3884
  afterSetup() {
3852
- const t = ve.data.path;
3885
+ const t = ke.data.path;
3853
3886
  this.updateLinks(t);
3854
3887
  }
3855
3888
  /**
@@ -3861,27 +3894,27 @@ class An extends Xe {
3861
3894
  updateLinks(t) {
3862
3895
  let s = !1;
3863
3896
  for (const n of this.links)
3864
- if (n.rendered && (s = Hn(n, t), s === !0))
3897
+ if (n.rendered && (s = Yn(n, t), s === !0))
3865
3898
  break;
3866
3899
  this.parentLink.update(s);
3867
3900
  }
3868
3901
  }
3869
- 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" }, [
3902
+ const Wn = (e) => fe({ class: "text-lg ml-2" }, e), _n = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
3870
3903
  b({
3871
3904
  variant: "icon",
3872
3905
  class: "m-2",
3873
3906
  click: (t, { state: s }) => s.toggle("open"),
3874
3907
  icon: u.arrows.left
3875
3908
  }),
3876
- e.title && En(e.title)
3877
- ]), Yn = () => o({
3909
+ e.title && Wn(e.title)
3910
+ ]), qn = () => o({
3878
3911
  class: `
3879
3912
  absolute inset-0 bg-black/40 z-[-1] fadeIn
3880
3913
  transition-opacity duration-200
3881
3914
  `,
3882
3915
  click: (e, { state: t }) => t.open = !1
3883
3916
  });
3884
- class Vn extends C {
3917
+ class Gn extends C {
3885
3918
  /**
3886
3919
  * This will declare the props for the compiler.
3887
3920
  *
@@ -3900,7 +3933,7 @@ class Vn extends C {
3900
3933
  class: "fixed inset-0 z-50",
3901
3934
  style: "[[typeClass]]"
3902
3935
  }, [
3903
- Yn(),
3936
+ qn(),
3904
3937
  // Popover Content
3905
3938
  o({
3906
3939
  class: `
@@ -3909,7 +3942,7 @@ class Vn extends C {
3909
3942
  dataSet: ["open", ["expanded", !0, "true"]]
3910
3943
  }, [
3911
3944
  o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
3912
- Un({ title: this.title }),
3945
+ _n({ title: this.title }),
3913
3946
  o({ class: "flex flex-auto flex-col" }, this.children)
3914
3947
  ])
3915
3948
  ])
@@ -3947,31 +3980,31 @@ class Vn extends C {
3947
3980
  this.container = app.root;
3948
3981
  }
3949
3982
  }
3950
- const et = () => b({ class: "m-2", variant: "ghost", addState() {
3983
+ const nt = () => b({ class: "m-2", variant: "ghost", addState() {
3951
3984
  return {
3952
3985
  open: !1
3953
3986
  };
3954
3987
  }, click: (e, { state: t }) => t.toggle("open") }, [
3955
3988
  x({}, u.bar.three)
3956
- ]), Wn = (e) => he({ class: "text-lg ml-2" }, e), qn = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
3957
- et(),
3958
- e.title && Wn(e.title)
3959
- ]), tt = (e, t) => {
3989
+ ]), Kn = (e) => fe({ class: "text-lg ml-2" }, e), Qn = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
3990
+ nt(),
3991
+ e.title && Kn(e.title)
3992
+ ]), at = (e, t) => {
3960
3993
  e.forEach((s) => {
3961
3994
  if (s.options) {
3962
- tt(s.options, t);
3995
+ at(s.options, t);
3963
3996
  return;
3964
3997
  }
3965
3998
  s.callBack = t;
3966
3999
  });
3967
- }, st = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4000
+ }, ot = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
3968
4001
  T(
3969
4002
  "open",
3970
4003
  (t) => t ? [
3971
- new Vn({ title: e.title }, [
3972
- W(({ state: s }) => {
4004
+ new Gn({ title: e.title }, [
4005
+ _(({ state: s }) => {
3973
4006
  const n = (a) => s.open = !1;
3974
- return tt(e.options, n), new Xe(
4007
+ return at(e.options, n), new st(
3975
4008
  {
3976
4009
  options: e.options
3977
4010
  }
@@ -3980,23 +4013,23 @@ const et = () => b({ class: "m-2", variant: "ghost", addState() {
3980
4013
  ])
3981
4014
  ] : null
3982
4015
  )
3983
- ]), ho = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4016
+ ]), bo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
3984
4017
  o([
3985
- et(),
3986
- st(e)
4018
+ nt(),
4019
+ ot(e)
3987
4020
  ])
3988
- ])), fo = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4021
+ ])), xo = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
3989
4022
  o({ class: "flex flex-auto flex-col w-full" }, [
3990
- qn(e),
3991
- st(e)
4023
+ Qn(e),
4024
+ ot(e)
3992
4025
  ])
3993
- ])), go = r((e) => {
4026
+ ])), po = r((e) => {
3994
4027
  const t = e.margin || "m-4 ml-0";
3995
4028
  return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
3996
4029
  b({ variant: "back", class: "ghost", ...e })
3997
4030
  ]);
3998
4031
  });
3999
- class Gn extends C {
4032
+ class Jn extends C {
4000
4033
  /**
4001
4034
  * This will declare the props for the compiler.
4002
4035
  *
@@ -4091,13 +4124,13 @@ class Gn extends C {
4091
4124
  return this.children;
4092
4125
  }
4093
4126
  }
4094
- Ve.addType("dockableOverlay", (e) => {
4127
+ We.addType("dockableOverlay", (e) => {
4095
4128
  if (!e)
4096
4129
  return;
4097
4130
  const t = e.component;
4098
4131
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4099
4132
  });
4100
- class mo extends Gn {
4133
+ class yo extends Jn {
4101
4134
  /**
4102
4135
  * This will stop presistence.
4103
4136
  *
@@ -4167,7 +4200,7 @@ class mo extends Gn {
4167
4200
  * @returns {void}
4168
4201
  */
4169
4202
  afterSetup() {
4170
- Ve.add(
4203
+ We.add(
4171
4204
  this.container,
4172
4205
  "dockableOverlay",
4173
4206
  {
@@ -4202,7 +4235,7 @@ class mo extends Gn {
4202
4235
  this.state.docked = this.canDock();
4203
4236
  }
4204
4237
  }
4205
- const _n = r(({ index: e, click: t, state: s }, n) => ge({
4238
+ const Zn = r(({ index: e, click: t, state: s }, n) => me({
4206
4239
  class: "p-2 cursor-pointer hover:bg-muted/50",
4207
4240
  onState: [
4208
4241
  [s, "selectedIndex", {
@@ -4211,10 +4244,10 @@ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4211
4244
  }]
4212
4245
  ],
4213
4246
  click: () => t(e)
4214
- }, n)), Kn = r(({ selectOption: e, state: t }) => X({
4247
+ }, n)), Xn = r(({ selectOption: e, state: t }) => ee({
4215
4248
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4216
- for: ["filteredOptions", (s, n) => _n({ index: n, click: e, state: t }, s.label)]
4217
- })), Qn = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4249
+ for: ["filteredOptions", (s, n) => Zn({ index: n, click: e, state: t }, s.label)]
4250
+ })), ea = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4218
4251
  N({
4219
4252
  cache: "input",
4220
4253
  // @ts-ignore
@@ -4239,20 +4272,20 @@ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4239
4272
  // @ts-ignore
4240
4273
  x({ size: "sm" }, e.icon)
4241
4274
  ])
4242
- ])), Jn = (e) => o({
4275
+ ])), ta = (e) => o({
4243
4276
  class: "relative flex fle-auto flex-col",
4244
4277
  onState: ["open", (t, s, n) => {
4245
4278
  if (t)
4246
- return new te({
4279
+ return new se({
4247
4280
  cache: "dropdown",
4248
4281
  parent: n,
4249
4282
  button: n.input,
4250
4283
  size: "xl"
4251
4284
  }, [
4252
- Kn(e)
4285
+ Xn(e)
4253
4286
  ]);
4254
4287
  }]
4255
- }), bo = M(
4288
+ }), wo = M(
4256
4289
  {
4257
4290
  /**
4258
4291
  * This will set up the data object.
@@ -4349,7 +4382,7 @@ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4349
4382
  */
4350
4383
  render() {
4351
4384
  return o({ class: "relative w-full max-w-md" }, [
4352
- Qn({
4385
+ ea({
4353
4386
  // @ts-ignore
4354
4387
  state: this.state,
4355
4388
  // @ts-ignore
@@ -4361,7 +4394,7 @@ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4361
4394
  // @ts-ignore
4362
4395
  handleKeyDown: this.handleKeyDown.bind(this)
4363
4396
  }),
4364
- Jn({
4397
+ ta({
4365
4398
  // @ts-ignore
4366
4399
  state: this.state,
4367
4400
  // @ts-ignore
@@ -4372,7 +4405,7 @@ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4372
4405
  ]);
4373
4406
  }
4374
4407
  }
4375
- ), xo = r((e) => {
4408
+ ), vo = r((e) => {
4376
4409
  const t = e.icon ?? u.magnifyingGlass.default;
4377
4410
  return o({
4378
4411
  // @ts-ignore
@@ -4408,7 +4441,7 @@ const _n = r(({ index: e, click: t, state: s }, n) => ge({
4408
4441
  })
4409
4442
  ]);
4410
4443
  });
4411
- class Zn extends C {
4444
+ class sa extends C {
4412
4445
  /**
4413
4446
  * This will declare the props for the compiler.
4414
4447
  *
@@ -4426,7 +4459,7 @@ class Zn extends C {
4426
4459
  return o({ class: `${this.class || ""}` }, this.children);
4427
4460
  }
4428
4461
  }
4429
- class Xn extends Zn {
4462
+ class na extends sa {
4430
4463
  /**
4431
4464
  * This will be called every time the route
4432
4465
  * is activated.
@@ -4436,15 +4469,15 @@ class Xn extends Zn {
4436
4469
  update(t) {
4437
4470
  }
4438
4471
  }
4439
- const ea = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4472
+ const aa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4440
4473
  tag: "section",
4441
4474
  ...e,
4442
4475
  children: t
4443
- })), ta = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4444
- ft({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4476
+ })), oa = r(({ title: e, description: t }) => X({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4477
+ bt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4445
4478
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4446
4479
  ]));
4447
- class po extends Xn {
4480
+ class ko extends na {
4448
4481
  /**
4449
4482
  * This will declare the props for the compiler.
4450
4483
  *
@@ -4459,133 +4492,133 @@ class po extends Xn {
4459
4492
  * @returns {object}
4460
4493
  */
4461
4494
  render() {
4462
- return ea([
4463
- ta({
4495
+ return aa([
4496
+ oa({
4464
4497
  title: this.title,
4465
4498
  description: this.description
4466
4499
  }),
4467
- vt(this.children)
4500
+ St(this.children)
4468
4501
  ]);
4469
4502
  }
4470
4503
  }
4471
4504
  export {
4472
- Ta as $,
4473
- ja as A,
4474
- go as B,
4475
- Us as C,
4476
- Je as D,
4477
- Va as E,
4478
- lo as F,
4479
- mo as G,
4480
- eo as H,
4481
- io as I,
4482
- xa as J,
4483
- ro as K,
4484
- ma as L,
4485
- Ba as M,
4486
- _e as N,
4487
- Ha as O,
4488
- Ea as P,
4489
- Aa as Q,
4490
- ts as R,
4491
- Zt as S,
4492
- Ua as T,
4493
- zt as U,
4494
- Qt as V,
4495
- Jt as W,
4496
- Xt as X,
4497
- F as Y,
4498
- po as Z,
4499
- wn as _,
4500
- gs as a,
4501
- P as a$,
4502
- ie as a0,
4503
- Ut as a1,
4504
- Ja as a2,
4505
- Xe as a3,
4505
+ za as $,
4506
+ Ua as A,
4507
+ po as B,
4508
+ _s as C,
4509
+ et as D,
4510
+ Ga as E,
4511
+ uo as F,
4512
+ yo as G,
4513
+ ao as H,
4514
+ fo as I,
4515
+ va as J,
4516
+ ho as K,
4517
+ ya as L,
4518
+ Na as M,
4519
+ Je as N,
4520
+ Ya as O,
4521
+ Wa as P,
4522
+ Va as Q,
4523
+ os as R,
4524
+ ss as S,
4525
+ _a as T,
4526
+ Ft as U,
4527
+ es as V,
4528
+ ts as W,
4529
+ ns as X,
4530
+ L as Y,
4531
+ ko as Z,
4532
+ Sn as _,
4533
+ ps as a,
4534
+ B as a$,
4535
+ ce as a0,
4536
+ _t as a1,
4537
+ to as a2,
4538
+ st as a3,
4506
4539
  N as a4,
4507
- Pt as a5,
4508
- ga as a6,
4509
- Za as a7,
4510
- Ze as a8,
4511
- ea as a9,
4512
- bo as aA,
4513
- Qn as aB,
4514
- za as aC,
4515
- xo as aD,
4516
- Wa as aE,
4517
- An as aF,
4518
- ye as aG,
4519
- ba as aH,
4520
- pa as aI,
4521
- Ka as aJ,
4522
- va as aK,
4523
- oo as aL,
4524
- qn as aM,
4525
- Qa as aN,
4526
- ua as aO,
4527
- Fa as aP,
4540
+ Rt as a5,
4541
+ pa as a6,
4542
+ so as a7,
4543
+ tt as a8,
4544
+ aa as a9,
4545
+ wo as aA,
4546
+ ea as aB,
4547
+ Fa as aC,
4548
+ vo as aD,
4549
+ Ka as aE,
4550
+ Vn as aF,
4551
+ we as aG,
4552
+ wa as aH,
4553
+ ka as aI,
4554
+ Xa as aJ,
4555
+ $a as aK,
4556
+ co as aL,
4557
+ Qn as aM,
4558
+ eo as aN,
4559
+ ma as aO,
4560
+ Ea as aP,
4528
4561
  x as aQ,
4529
- Ia as aR,
4530
- uo as aS,
4531
- zn as aT,
4532
- We as aU,
4562
+ Ba as aR,
4563
+ mo as aS,
4564
+ Fn as aT,
4565
+ _e as aU,
4533
4566
  O as aV,
4534
- Sa as aW,
4535
- Bs as aX,
4536
- Kt as aY,
4537
- ca as aZ,
4538
- ia as a_,
4539
- $e as aa,
4540
- Ds as ab,
4541
- ho as ac,
4542
- fo as ad,
4543
- As as ae,
4544
- Ca as af,
4545
- et as ag,
4546
- On as ah,
4547
- Fn as ai,
4548
- Rn as aj,
4549
- Vn as ak,
4550
- _a as al,
4551
- $a as am,
4552
- Gn as an,
4553
- Zn as ao,
4554
- Da as ap,
4555
- Is as aq,
4556
- te as ar,
4557
- Un as as,
4558
- Na as at,
4559
- ya as au,
4560
- on as av,
4561
- Pa as aw,
4562
- La as ax,
4563
- Ra as ay,
4564
- co as az,
4565
- Yn as b,
4566
- Ga as b0,
4567
- da as c,
4568
- Xn as d,
4569
- Xa as e,
4567
+ Ta as aW,
4568
+ Ns as aX,
4569
+ Xt as aY,
4570
+ fa as aZ,
4571
+ ha as a_,
4572
+ De as aa,
4573
+ Ps as ab,
4574
+ bo as ac,
4575
+ xo as ad,
4576
+ Vs as ae,
4577
+ Ia as af,
4578
+ nt as ag,
4579
+ Ln as ah,
4580
+ En as ai,
4581
+ Hn as aj,
4582
+ Gn as ak,
4583
+ Za as al,
4584
+ Ma as am,
4585
+ Jn as an,
4586
+ sa as ao,
4587
+ Pa as ap,
4588
+ Bs as aq,
4589
+ se as ar,
4590
+ _n as as,
4591
+ ja as at,
4592
+ Ca as au,
4593
+ dn as av,
4594
+ Ra as aw,
4595
+ Aa as ax,
4596
+ Ha as ay,
4597
+ go as az,
4598
+ qn as b,
4599
+ Ja as b0,
4600
+ ga as c,
4601
+ na as d,
4602
+ no as e,
4570
4603
  b as f,
4571
- Rs as g,
4572
- Bt as h,
4573
- jt as i,
4574
- yn as j,
4575
- fa as k,
4576
- Oa as l,
4577
- ha as m,
4578
- Ma as n,
4579
- qa as o,
4580
- to as p,
4581
- Ts as q,
4582
- so as r,
4583
- vn as s,
4584
- wa as t,
4585
- no as u,
4586
- ao as v,
4587
- ka as w,
4588
- oe as x,
4589
- js as y,
4590
- Ya as z
4604
+ Hs as g,
4605
+ Nt as h,
4606
+ Ut as i,
4607
+ Cn as j,
4608
+ xa as k,
4609
+ La as l,
4610
+ ba as m,
4611
+ Oa as n,
4612
+ Qa as o,
4613
+ oo as p,
4614
+ zs as q,
4615
+ lo as r,
4616
+ $n as s,
4617
+ Sa as t,
4618
+ ro as u,
4619
+ io as v,
4620
+ Da as w,
4621
+ le as x,
4622
+ Us as y,
4623
+ qa as z
4591
4624
  };