@base-framework/ui 1.2.45 → 1.2.47

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,8 +1,8 @@
1
- import { I as E, Span as u, Button as v, OnState as P, Div as o, Legend as ht, Fieldset as ft, H4 as qe, P as k, Label as H, Checkbox as fe, Input as p, Textarea as Ge, UseParent as W, Img as ge, H5 as gt, H2 as X, Form as mt, Header as Z, Footer as me, A as Ke, H3 as be, Nav as xe, Ul as ee, Li as pe, OnStateOpen as ye, On as J, Dialog as bt, Th as Qe, Thead as xt, Tr as pt, Table as we, Time as yt, H1 as wt } from "@base-framework/atoms";
2
- import { Atom as r, Jot as M, Component as S, router as oe, Html as Je, Data as O, Events as j, DateTime as te, NavLink as vt, DataTracker as Xe } from "@base-framework/base";
1
+ import { I as E, Span as u, Button as v, OnState as P, Div as o, Legend as ht, Fieldset as ft, H4 as qe, P as k, Label as H, Checkbox as ge, Input as p, Textarea as Ge, UseParent as V, Img as me, H5 as gt, H2 as Z, Form as mt, Header as ee, Footer as be, A as Ke, H3 as xe, Nav as pe, Ul as te, Li as ye, OnStateOpen as we, On as J, Dialog as bt, Th as Qe, Thead as xt, Tr as pt, Table as ve, Time as yt, H1 as wt } from "@base-framework/atoms";
2
+ import { Atom as i, Jot as M, Component as S, router as X, Html as Je, Data as O, Events as j, DateTime as se, NavLink as vt, DataTracker as Xe } from "@base-framework/base";
3
3
  import { Icons as h } from "./icons.es.js";
4
4
  import { Timer as kt, TableBody as Ct, DataTableBody as St, ScrollableTableBody as $t, List as Dt } from "@base-framework/organisms";
5
- import { F as V } from "./format-DE4rFWuD.js";
5
+ import { F as W } from "./format-DE4rFWuD.js";
6
6
  import { F as It } from "./bside-template-C7AQgQ6H.js";
7
7
  const Tt = {
8
8
  xs: "w-4 h-4",
@@ -12,7 +12,7 @@ const Tt = {
12
12
  xl: "w-12 h-12",
13
13
  "2xl": "w-14 h-14",
14
14
  "3xl": "w-16 h-16"
15
- }, ue = r((e, t) => {
15
+ }, he = i((e, t) => {
16
16
  const s = Tt[e.size || "sm"];
17
17
  return E({
18
18
  ...e,
@@ -20,7 +20,7 @@ const Tt = {
20
20
  class: `stroke-current icon-size ${s} ${e.class || ""}`,
21
21
  html: t[0]?.textContent
22
22
  });
23
- }), De = {
23
+ }), Ie = {
24
24
  xs: "w-4 h-4",
25
25
  // 16px - matches Icon
26
26
  sm: "w-6 h-6",
@@ -35,7 +35,7 @@ const Tt = {
35
35
  // 56px - matches Icon
36
36
  "3xl": "w-16 h-16"
37
37
  // 64px - matches Icon
38
- }, Ie = {
38
+ }, Te = {
39
39
  xs: "16px",
40
40
  sm: "24px",
41
41
  md: "32px",
@@ -43,13 +43,13 @@ const Tt = {
43
43
  xl: "48px",
44
44
  "2xl": "56px",
45
45
  "3xl": "64px"
46
- }, Te = {
46
+ }, Pe = {
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
- }, Pe = r((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = De[t] || De.sm, a = Ie[t] || Ie.sm, l = Te[s] || Te.outlined;
51
+ }, Me = i((e) => {
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = Ie[t] || Ie.sm, a = Te[t] || Te.sm, l = Pe[s] || Pe.outlined;
53
53
  return u({
54
54
  ...e,
55
55
  // @ts-ignore
@@ -62,14 +62,14 @@ const Tt = {
62
62
  name: void 0
63
63
  // @ts-ignore
64
64
  }, e.name);
65
- }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ue(e, t) : typeof t == "object" && t.name ? Pe({
65
+ }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? he(e, t) : typeof t == "object" && t.name ? Me({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
- }) : typeof t == "string" ? Pe({
69
+ }) : typeof t == "string" ? Me({
70
70
  ...e,
71
71
  name: t
72
- }) : ue(e, t) : null, $a = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Da = (e) => typeof e == "string" && e.includes("<svg"), Me = {
72
+ }) : he(e, t) : null, Da = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Ia = (e) => typeof e == "string" && e.includes("<svg"), Be = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,11 +150,11 @@ const Tt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Pt = (e) => Me[e] || Me.gray, Mt = (e, t = {}) => {
153
+ }, Pt = (e) => Be[e] || Be.gray, Mt = (e, t = {}) => {
154
154
  const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
155
155
  return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
156
- }, Ia = r((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m = Mt(s, { backgroundColor: l, textColor: i, ringColor: c });
156
+ }, Ta = i((e, t) => {
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: r, ringColor: c, ...f } = e, m = Mt(s, { backgroundColor: l, textColor: r, ringColor: c });
158
158
  return u({ ...f, class: m }, [
159
159
  n ? x({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
@@ -178,7 +178,7 @@ const N = (e) => (
178
178
  /** @type {VeilComponentConstructor} */
179
179
  M(e, Ze)
180
180
  );
181
- class Ta extends Ze {
181
+ class Pa extends Ze {
182
182
  /**
183
183
  * Declare public props and their defaults.
184
184
  */
@@ -211,8 +211,8 @@ class Ta extends Ze {
211
211
  render() {
212
212
  const t = this.size, s = this.icon, n = this.activeIcon || this.icon, a = (() => {
213
213
  if (this.dataKey) {
214
- let i = `[[${this.dataKey}]]`;
215
- return this.formatType === "number" ? i = V.number(i, "0") : this.formatType === "money" ? i = V.roundMoney(i) : this.formatType === "date" ? i = V.date(i) : this.formatType === "percent" && (i = V.percentage(i)), u({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, i);
214
+ let r = `[[${this.dataKey}]]`;
215
+ return this.formatType === "number" ? r = W.number(r, "0") : this.formatType === "money" ? r = W.roundMoney(r) : this.formatType === "date" ? r = W.date(r) : this.formatType === "percent" && (r = W.percentage(r)), u({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
216
216
  }
217
217
  return this.value !== null && this.value !== void 0 ? u({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
218
218
  })(), l = this.fill;
@@ -223,7 +223,7 @@ class Ta extends Ze {
223
223
  }, [
224
224
  P(
225
225
  "active",
226
- (i) => x({ size: t, variant: i && l ? "filled" : "outlined" }, i ? n : s)
226
+ (r) => x({ size: t, variant: r && l ? "filled" : "outlined" }, r ? n : s)
227
227
  ),
228
228
  a
229
229
  ]);
@@ -237,7 +237,7 @@ const le = {
237
237
  xl: "w-14 h-14",
238
238
  "2xl": "w-16 h-16"
239
239
  };
240
- class Pa extends S {
240
+ class Ma extends S {
241
241
  /**
242
242
  * Declare public props.
243
243
  */
@@ -268,7 +268,7 @@ class Pa extends S {
268
268
  * @returns {object}
269
269
  */
270
270
  render() {
271
- const t = this.icon, s = this.activeIcon || this.icon, n = le[this.size] || le.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, f = this.circle ?? !1, m = this.fill;
271
+ const t = this.icon, s = this.activeIcon || this.icon, n = le[this.size] || le.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, f = this.circle ?? !1, m = this.fill;
272
272
  return v({
273
273
  click: () => this.handleToggle(),
274
274
  // @ts-ignore
@@ -278,13 +278,13 @@ class Pa extends S {
278
278
  x({
279
279
  size: a,
280
280
  variant: w && m ? "filled" : "outlined",
281
- class: `transition-colors ${w ? c : i}`
281
+ class: `transition-colors ${w ? c : r}`
282
282
  }, w ? s : t)
283
283
  ])
284
284
  ]);
285
285
  }
286
286
  }
287
- const Ma = r((e, t) => {
287
+ const Ba = i((e, t) => {
288
288
  const s = e.size || "md", n = le[s] || le.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
289
289
  return v({
290
290
  ...e,
@@ -297,10 +297,19 @@ const Ma = r((e, t) => {
297
297
  ]);
298
298
  });
299
299
  let B = globalThis.history?.state?._pos ?? 0;
300
- const Bt = B, he = /* @__PURE__ */ new Map(), Be = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
300
+ const Bt = B, fe = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
301
301
  if (!t) return !1;
302
- const s = Be(e), n = Be(t);
302
+ const s = re(e), n = re(t);
303
303
  return s === n || s.startsWith(n + "/");
304
+ }, Ot = (e, t) => {
305
+ const s = re(e);
306
+ if (!t) return s;
307
+ const n = re(t);
308
+ if (!s.startsWith(n)) return s;
309
+ const a = s.substring(n.length);
310
+ if (!a || a === "/") return s;
311
+ const l = a.startsWith("/") ? a.substring(1) : a, r = l.indexOf("/");
312
+ return r < 0 ? s : n + "/" + l.substring(0, r);
304
313
  };
305
314
  if (typeof globalThis.history?.pushState == "function") {
306
315
  const e = globalThis.history.pushState, t = globalThis.history.replaceState;
@@ -309,8 +318,8 @@ if (typeof globalThis.history?.pushState == "function") {
309
318
  const l = s !== null && typeof s == "object" ? { ...s, _pos: B } : { _pos: B };
310
319
  return e.call(this, l, n, a);
311
320
  }, globalThis.history.replaceState = function(s, n, a) {
312
- const l = globalThis.history.state?._pos ?? B, i = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
313
- return t.call(this, i, n, a);
321
+ const l = globalThis.history.state?._pos ?? B, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
322
+ return t.call(this, r, n, a);
314
323
  }, globalThis.addEventListener("popstate", (s) => {
315
324
  const n = (
316
325
  /** @type {any} */
@@ -319,24 +328,24 @@ if (typeof globalThis.history?.pushState == "function") {
319
328
  typeof n == "number" && (B = n);
320
329
  });
321
330
  }
322
- const Ot = (e) => {
323
- const t = e || "", s = oe.path || "", n = he.get(t);
331
+ const Nt = (e) => {
332
+ const t = e || "", s = X.path || "", n = fe.get(t);
324
333
  if (n && zt(s, n.basePath))
325
334
  return n;
326
335
  const a = {
327
336
  pos: B,
328
- sourcePath: oe.lastPath || null,
329
- basePath: s
337
+ sourcePath: X.lastPath || null,
338
+ basePath: Ot(s, e)
330
339
  };
331
- return he.set(t, a), a;
332
- }, Nt = (e) => {
333
- he.delete(e || "");
334
- }, A = (e) => r((t, s) => v({
340
+ return fe.set(t, a), a;
341
+ }, Ft = (e) => {
342
+ fe.delete(e || "");
343
+ }, A = (e) => i((t, s) => v({
335
344
  ...e,
336
345
  ...t,
337
346
  // @ts-ignore
338
347
  class: `bttn ${e.class} ${t.class || ""}`
339
- }, s)), et = r(
348
+ }, s)), et = i(
340
349
  (e, t) => v({
341
350
  ...e,
342
351
  // @ts-ignore
@@ -348,27 +357,27 @@ const Ot = (e) => {
348
357
  // @ts-ignore
349
358
  e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
350
359
  ])
351
- ), ze = (e) => r((t, s) => et({
360
+ ), ze = (e) => i((t, s) => et({
352
361
  ...e,
353
362
  ...t,
354
363
  // @ts-ignore
355
364
  class: `bttn ${e.class} ${t.class || ""}`
356
- }, s)), Ft = (e) => {
357
- const t = Ot(e.backUrl);
365
+ }, s)), Lt = (e) => {
366
+ const t = Nt(e.backUrl);
358
367
  return () => {
359
- Nt(e.backUrl);
368
+ Ft(e.backUrl);
360
369
  const n = B - t.pos + 1;
361
- if (t.pos > 0 && t.pos > Bt) {
370
+ if (t.pos > Bt) {
362
371
  globalThis.history.go(-n);
363
372
  return;
364
373
  }
365
- const a = t.sourcePath || e.backUrl;
366
- a && app.navigate(a);
374
+ const a = e.backUrl;
375
+ a && X.navigate(a);
367
376
  };
368
- }, Lt = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Ft(t), et({
377
+ }, At = (e) => i((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Lt(t), et({
369
378
  ...e,
370
379
  ...t
371
- }, s))), At = r((e, t) => {
380
+ }, s))), Rt = i((e, t) => {
372
381
  const s = e.size || "md", n = {
373
382
  xs: "w-6 h-6",
374
383
  sm: "w-8 h-8",
@@ -395,20 +404,20 @@ const Ot = (e) => {
395
404
  link: A({ class: "link" }),
396
405
  icon: ze({ class: "icon" }),
397
406
  withIcon: ze({ class: "with-icon" }),
398
- back: Lt({ class: "with-icon back-button" }),
399
- circleIcon: At
400
- }, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), Ba = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), Rt = r((e, t) => {
407
+ back: At({ class: "with-icon back-button" }),
408
+ circleIcon: Rt
409
+ }, b = i((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), za = i((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), jt = i((e, t) => {
401
410
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
402
411
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
403
412
  ...e,
404
413
  // @ts-ignore
405
414
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
406
415
  }, t);
407
- }), jt = r((e, t) => ht({
416
+ }), Et = i((e, t) => ht({
408
417
  ...e,
409
418
  // @ts-ignore
410
419
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
411
- }, t)), za = r((e, t) => {
420
+ }, t)), Oa = i((e, t) => {
412
421
  const s = e.border === "full" ? "border rounded-md" : "border-t";
413
422
  return ft({
414
423
  ...e,
@@ -416,10 +425,10 @@ const Ot = (e) => {
416
425
  class: `p-6 ${s} ${e.class || ""}`
417
426
  }, [
418
427
  // @ts-ignore
419
- e.legend && jt(e.legend),
428
+ e.legend && Et(e.legend),
420
429
  o({ class: "flex flex-auto flex-col gap-y-6" }, t)
421
430
  ]);
422
- }), Et = r((e, t) => {
431
+ }), Ht = i((e, t) => {
423
432
  const s = e.border === !0 ? "border-t" : "";
424
433
  return o({
425
434
  ...e,
@@ -441,7 +450,7 @@ const Ot = (e) => {
441
450
  // Controls container: grows to fill remaining space, spacing between items
442
451
  o({ class: "flex flex-col gap-y-4" }, t)
443
452
  ]);
444
- }), Ht = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", _ = "placeholder:text-muted-foreground", ve = `${Ht} ${D} ${$} ${_} ${C}`, _t = ({ id: e, checked: t, bind: s, required: n }) => fe({
453
+ }), _t = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", _ = "placeholder:text-muted-foreground", ke = `${_t} ${D} ${$} ${_} ${C}`, Ut = ({ id: e, checked: t, bind: s, required: n }) => ge({
445
454
  id: e,
446
455
  cache: "checkbox",
447
456
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -451,7 +460,7 @@ const Ot = (e) => {
451
460
  required: n,
452
461
  checked: t,
453
462
  bind: s
454
- }), Ut = () => u({ class: "absolute text-xs pointer-events-none" }, [
463
+ }), Yt = () => u({ class: "absolute text-xs pointer-events-none" }, [
455
464
  P(
456
465
  "checked",
457
466
  (e) => e ? E({
@@ -459,7 +468,7 @@ const Ot = (e) => {
459
468
  html: h.check
460
469
  }) : null
461
470
  )
462
- ]), Yt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
471
+ ]), Wt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
463
472
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
464
473
  rounded-md border
465
474
  ${$}
@@ -479,13 +488,13 @@ const Ot = (e) => {
479
488
  tabIndex: 0,
480
489
  click: a
481
490
  }, [
482
- _t({ bind: t, checked: s, id: e, required: n }),
483
- Ut()
491
+ Ut({ bind: t, checked: s, id: e, required: n }),
492
+ Yt()
484
493
  ]), Vt = ({ id: e, label: t, clickHandler: s }) => H({
485
494
  class: "text-base cursor-pointer",
486
495
  htmlFor: e,
487
496
  click: s
488
- }, t), Wt = M(
497
+ }, t), qt = M(
489
498
  {
490
499
  /**
491
500
  * This will initialize the state of the checkbox.
@@ -524,7 +533,7 @@ const Ot = (e) => {
524
533
  render() {
525
534
  const e = this.getId(), t = (s) => this.clickHandler(s);
526
535
  return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
527
- Yt({
536
+ Wt({
528
537
  id: e,
529
538
  // @ts-ignore
530
539
  bind: this.bind,
@@ -540,34 +549,34 @@ const Ot = (e) => {
540
549
  ]);
541
550
  }
542
551
  }
543
- ), qt = (e) => {
552
+ ), Gt = (e) => {
544
553
  if (!e || e.length === 0) return "";
545
554
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
546
555
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
547
- }, Gt = (e) => {
548
- const t = e.target, s = qt(t.value);
556
+ }, Kt = (e) => {
557
+ const t = e.target, s = Gt(t.value);
549
558
  s && (t.value = s);
550
- }, Kt = [
559
+ }, Qt = [
551
560
  "peer w-full h-14 px-3 pt-5 pb-1",
552
561
  "text-base text-foreground",
553
562
  D,
554
563
  $,
555
564
  C,
556
565
  "placeholder-transparent"
557
- ].join(" "), Qt = [
566
+ ].join(" "), Jt = [
558
567
  "peer w-full min-h-[120px] px-3 pt-6 pb-2",
559
568
  "text-base text-foreground",
560
569
  D,
561
570
  $,
562
571
  C,
563
572
  "placeholder-transparent resize-y"
564
- ].join(" "), Jt = [
573
+ ].join(" "), Xt = [
565
574
  "peer w-full h-14 px-3 pt-5 pb-1 pr-10",
566
575
  "text-base text-foreground appearance-none",
567
576
  D,
568
577
  $,
569
578
  C
570
- ].join(" "), Xt = [
579
+ ].join(" "), Zt = [
571
580
  "absolute left-3",
572
581
  "text-foreground-secondary",
573
582
  "transition-all duration-200",
@@ -578,7 +587,7 @@ const Ot = (e) => {
578
587
  "peer-[:placeholder-shown:not(:focus)]:top-1/2",
579
588
  "peer-[:placeholder-shown:not(:focus)]:-translate-y-1/2",
580
589
  "peer-[:placeholder-shown:not(:focus)]:text-base"
581
- ].join(" "), Zt = [
590
+ ].join(" "), es = [
582
591
  "absolute left-3",
583
592
  "text-foreground-secondary",
584
593
  "transition-all duration-200",
@@ -588,102 +597,102 @@ const Ot = (e) => {
588
597
  // Placeholder state (empty + not focused)
589
598
  "peer-[:placeholder-shown:not(:focus)]:top-3.5",
590
599
  "peer-[:placeholder-shown:not(:focus)]:text-base"
591
- ].join(" "), es = [
600
+ ].join(" "), ts = [
592
601
  "absolute left-3 top-2",
593
602
  "text-xs text-foreground-secondary",
594
603
  "pointer-events-none select-none"
595
604
  ].join(" ");
596
- let ts = 0;
597
- const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ? H(
605
+ let ss = 0;
606
+ const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ? H(
598
607
  { htmlFor: s, class: n },
599
608
  t ? [u(e), u({ class: "text-destructive ml-0.5" }, "*")] : e
600
- ) : null, ss = () => E({
609
+ ) : null, ns = () => E({
601
610
  class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
602
611
  html: h.chevron.single.down
603
- }), se = r((e) => {
604
- const t = ke(e);
612
+ }), ne = i((e) => {
613
+ const t = Ce(e);
605
614
  return o({ class: "relative" }, [
606
615
  p({
607
616
  ...e,
608
617
  id: t,
609
618
  placeholder: " ",
610
- class: `${Kt} ${e.class || ""}`.trim()
619
+ class: `${Qt} ${e.class || ""}`.trim()
611
620
  }),
612
- Ce(e.label, e.required, t, Xt)
621
+ Se(e.label, e.required, t, Zt)
613
622
  ]);
614
- }), Oa = r(
615
- (e) => se({
623
+ }), Na = i(
624
+ (e) => ne({
616
625
  ...e,
617
626
  type: "tel",
618
627
  name: e.name || "Phone",
619
628
  label: e.label || "Phone",
620
629
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
621
- keyup: Gt
630
+ keyup: Kt
622
631
  })
623
- ), Na = r(
624
- (e) => se({
632
+ ), Fa = i(
633
+ (e) => ne({
625
634
  ...e,
626
635
  type: "email",
627
636
  name: e.name || "Email",
628
637
  label: e.label || "Email"
629
638
  })
630
- ), Fa = r(
631
- (e) => se({
639
+ ), La = i(
640
+ (e) => ne({
632
641
  ...e,
633
642
  type: "password",
634
643
  name: e.name || "Password",
635
644
  label: e.label || "Password"
636
645
  })
637
- ), La = r(
638
- (e) => se({
646
+ ), Aa = i(
647
+ (e) => ne({
639
648
  ...e,
640
649
  type: "number"
641
650
  })
642
- ), Aa = r(
643
- (e) => se({
651
+ ), Ra = i(
652
+ (e) => ne({
644
653
  ...e,
645
654
  type: "url",
646
655
  name: e.name || "Url",
647
656
  label: e.label || "URL"
648
657
  })
649
- ), Ra = r((e) => {
650
- const t = ke(e);
658
+ ), ja = i((e) => {
659
+ const t = Ce(e);
651
660
  return o({ class: "relative" }, [
652
661
  Ge({
653
662
  ...e,
654
663
  id: t,
655
664
  placeholder: " ",
656
- class: `${Qt} ${e.class || ""}`.trim()
665
+ class: `${Jt} ${e.class || ""}`.trim()
657
666
  }),
658
- Ce(e.label, e.required, t, Zt)
667
+ Se(e.label, e.required, t, es)
659
668
  ]);
660
- }), ja = r((e) => {
661
- const t = ke(e), { options: s, onCreated: n, ...a } = e;
669
+ }), Ea = i((e) => {
670
+ const t = Ce(e), { options: s, onCreated: n, ...a } = e;
662
671
  return o({ class: "relative" }, [
663
672
  {
664
673
  tag: "select",
665
674
  ...a,
666
675
  id: t,
667
- class: `[&>option]:text-foreground [&>option]:bg-background ${Jt} ${a.class || ""}`.trim(),
676
+ class: `[&>option]:text-foreground [&>option]:bg-background ${Xt} ${a.class || ""}`.trim(),
668
677
  onCreated(l) {
669
678
  s && Je.setupSelectOptions(l, s), typeof n == "function" && n(l);
670
679
  }
671
680
  },
672
- ss(),
673
- Ce(e.label, e.required, t, es)
681
+ ns(),
682
+ Se(e.label, e.required, t, ts)
674
683
  ]);
675
- }), ns = (e) => {
684
+ }), as = (e) => {
676
685
  if (!e || e.length === 0) return "";
677
686
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
678
687
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
679
- }, as = (e) => {
680
- const t = e.target, s = ns(t.value);
688
+ }, os = (e) => {
689
+ const t = e.target, s = as(t.value);
681
690
  s && (t.value = s);
682
- }, F = r((e) => p({
691
+ }, F = i((e) => p({
683
692
  ...e,
684
693
  // @ts-ignore
685
- class: `${ve} ${e.class || ""}`.trim()
686
- })), Ea = r((e) => F({
694
+ class: `${ke} ${e.class || ""}`.trim()
695
+ })), Ha = i((e) => F({
687
696
  ...e,
688
697
  type: "tel",
689
698
  // @ts-ignore
@@ -693,8 +702,8 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
693
702
  placeholder: "(555) 555-5555",
694
703
  // @ts-ignore
695
704
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
696
- keyup: as
697
- })), Ha = r((e) => F({
705
+ keyup: os
706
+ })), _a = i((e) => F({
698
707
  ...e,
699
708
  type: "email",
700
709
  // @ts-ignore
@@ -702,77 +711,77 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
702
711
  // @ts-ignore
703
712
  label: e.label || "Email",
704
713
  placeholder: "Email address"
705
- })), _a = r((e) => Ge({
714
+ })), Ua = i((e) => Ge({
706
715
  ...e,
707
716
  as: "textarea",
708
717
  // @ts-ignore
709
718
  class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${_} ${C} ${e.class || ""}`.trim()
710
- })), Ua = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
719
+ })), Ya = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
711
720
  p({
712
721
  ...e,
713
722
  type: "radio",
714
723
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
715
724
  }),
716
725
  e.label && H({ forHTML: e.value, class: "cursor-pointer" }, e.label)
717
- ]), Ya = r((e) => p({
726
+ ]), Wa = i((e) => p({
718
727
  ...e,
719
728
  type: "date",
720
729
  // @ts-ignore
721
730
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
722
- })), Va = r((e) => p({
731
+ })), Va = i((e) => p({
723
732
  ...e,
724
733
  type: "time",
725
734
  // @ts-ignore
726
735
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
727
- })), Wa = r((e) => p({
736
+ })), qa = i((e) => p({
728
737
  ...e,
729
738
  type: "datetime-local",
730
739
  // @ts-ignore
731
740
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
732
- })), qa = r((e) => p({
741
+ })), Ga = i((e) => p({
733
742
  ...e,
734
743
  type: "month",
735
744
  // @ts-ignore
736
745
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
737
- })), Ga = r((e) => p({
746
+ })), Ka = i((e) => p({
738
747
  ...e,
739
748
  type: "week",
740
749
  // @ts-ignore
741
750
  class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
742
- })), Ka = r((e) => F({
751
+ })), Qa = i((e) => F({
743
752
  ...e,
744
753
  type: "number"
745
- })), Qa = r((e) => F({
754
+ })), Ja = i((e) => F({
746
755
  ...e,
747
756
  type: "password"
748
757
  }));
749
- r((e) => F({
758
+ i((e) => F({
750
759
  ...e,
751
760
  type: "search"
752
761
  }));
753
- const Ja = r((e) => F({
762
+ const Xa = i((e) => F({
754
763
  ...e,
755
764
  type: "url"
756
- })), Xa = r((e) => F({
765
+ })), Za = i((e) => F({
757
766
  ...e,
758
767
  type: "hidden"
759
- })), Za = r((e) => p({
768
+ })), eo = i((e) => p({
760
769
  ...e,
761
770
  type: "color",
762
771
  // @ts-ignore
763
772
  class: `${D} text-foreground p-0 ${C} ${e.class || ""}`.trim()
764
773
  }));
765
- r((e) => fe({
774
+ i((e) => ge({
766
775
  ...e,
767
776
  // @ts-ignore
768
777
  class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
769
778
  }));
770
- const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", eo = r((e) => p({
779
+ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", to = i((e) => p({
771
780
  ...e,
772
781
  type: "file",
773
782
  // @ts-ignore
774
- class: `${ve} ${os} ${e.class || ""}`.trim()
775
- })), to = N(
783
+ class: `${ke} ${ls} ${e.class || ""}`.trim()
784
+ })), so = N(
776
785
  {
777
786
  /**
778
787
  * This will create the initial state of the RangeSlider.
@@ -805,7 +814,7 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
805
814
  return o({ class: "relative w-full h-4 flex items-center" }, [
806
815
  // Track
807
816
  o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
808
- W(({ state: e }) => [
817
+ V(({ state: e }) => [
809
818
  // Filled Track
810
819
  o({
811
820
  class: "absolute h-2 bg-primary rounded-full",
@@ -844,7 +853,7 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
844
853
  ]);
845
854
  }
846
855
  }
847
- ), so = r((e) => {
856
+ ), no = i((e) => {
848
857
  const { options: t, onCreated: s, ...n } = e;
849
858
  return {
850
859
  tag: "select",
@@ -852,9 +861,9 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
852
861
  t && Je.setupSelectOptions(a, t), s && s(a);
853
862
  },
854
863
  ...n,
855
- class: `[&>option]:text-foreground [&>option]:bg-background ${ve} ${n.class || ""}`.trim()
864
+ class: `[&>option]:text-foreground [&>option]:bg-background ${ke} ${n.class || ""}`.trim()
856
865
  };
857
- }), ls = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : ge({
866
+ }), rs = i(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : me({
858
867
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
859
868
  src: e,
860
869
  alt: t,
@@ -863,8 +872,8 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
863
872
  * If there's an error loading the image, hide it.
864
873
  */
865
874
  error: (a) => a.target.style.visibility = "hidden"
866
- })), rs = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
867
- const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
875
+ })), is = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
876
+ const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
868
877
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
869
878
  <!-- Background Circle -->
870
879
  <circle
@@ -904,22 +913,22 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
904
913
  `;
905
914
  return o({
906
915
  class: "circle-graph text-inherit",
907
- html: i
916
+ html: r
908
917
  });
909
- }, no = r((e) => {
918
+ }, ao = i((e) => {
910
919
  const t = e.progress || 0, s = e.class || "", n = Ne(t, s);
911
920
  return o({
912
921
  class: "circle-graph-wrap",
913
922
  onSet: [
914
923
  // @ts-ignore
915
924
  e.prop,
916
- (a) => (a = rs(a), a ? Ne(a, s) : n)
925
+ (a) => (a = is(a), a ? Ne(a, s) : n)
917
926
  ]
918
927
  }, [n]);
919
- }), is = () => W(({ state: e }) => o({
928
+ }), cs = () => V(({ state: e }) => o({
920
929
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
921
930
  style: ["width: [[progress]]%;", e]
922
- })), ao = N(
931
+ })), oo = N(
923
932
  {
924
933
  /**
925
934
  * This will render the progress bar component.
@@ -928,7 +937,7 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
928
937
  */
929
938
  render() {
930
939
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
931
- is()
940
+ cs()
932
941
  ]);
933
942
  },
934
943
  /**
@@ -971,18 +980,18 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
971
980
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
972
981
  }
973
982
  }
974
- ), oo = r((e = {}) => {
983
+ ), lo = i((e = {}) => {
975
984
  const {
976
985
  class: t = "",
977
986
  background: s = !0,
978
987
  blur: n = !0,
979
988
  backgroundClass: a = "bg-background/95",
980
989
  blurClass: l = "backdrop-blur",
981
- zIndexClass: i = "z-9999",
990
+ zIndexClass: r = "z-9999",
982
991
  style: c = ""
983
992
  } = e, f = [
984
993
  "sticky bottom-0 left-0 right-0 w-full",
985
- i,
994
+ r,
986
995
  s ? a : "",
987
996
  n ? l : "",
988
997
  t
@@ -992,18 +1001,18 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
992
1001
  style: m,
993
1002
  "aria-hidden": "true"
994
1003
  });
995
- }), lo = r((e = {}) => {
1004
+ }), ro = i((e = {}) => {
996
1005
  const {
997
1006
  class: t = "",
998
1007
  background: s = !0,
999
1008
  blur: n = !0,
1000
1009
  backgroundClass: a = "bg-background/95",
1001
1010
  blurClass: l = "backdrop-blur",
1002
- zIndexClass: i = "z-9999",
1011
+ zIndexClass: r = "z-9999",
1003
1012
  style: c = ""
1004
1013
  } = e, f = [
1005
1014
  "fixed top-0 left-0 right-0 w-full",
1006
- i,
1015
+ r,
1007
1016
  s ? a : "",
1008
1017
  n ? l : "",
1009
1018
  t
@@ -1022,8 +1031,8 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1022
1031
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1023
1032
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1024
1033
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1025
- }, cs = (e) => Fe[String(e)] || Fe.top, ro = r(({ position: e = "top", content: t }, s) => {
1026
- const n = cs(e);
1034
+ }, ds = (e) => Fe[String(e)] || Fe.top, io = i(({ position: e = "top", content: t }, s) => {
1035
+ const n = ds(e);
1027
1036
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1028
1037
  ...s,
1029
1038
  // Tooltip box
@@ -1060,25 +1069,25 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1060
1069
  bgColor: "bg-muted/10",
1061
1070
  iconColor: "text-muted-foreground"
1062
1071
  }
1063
- }, ds = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1072
+ }, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1064
1073
  x({ size: "sm" }, e)
1065
- ]), us = (e) => gt({ class: "font-semibold" }, e), hs = (e) => k({ class: "text-sm text-muted-foreground" }, e), io = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
1066
- const { borderColor: a, bgColor: l, iconColor: i } = Le[n] || Le.default;
1074
+ ]), hs = (e) => gt({ class: "font-semibold" }, e), fs = (e) => k({ class: "text-sm text-muted-foreground" }, e), co = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
1075
+ const { borderColor: a, bgColor: l, iconColor: r } = Le[n] || Le.default;
1067
1076
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1068
1077
  // Icon and content
1069
- s && ds(s, i),
1078
+ s && us(s, r),
1070
1079
  o({ class: "flex flex-col" }, [
1071
- us(e),
1072
- hs(t)
1080
+ hs(e),
1081
+ fs(t)
1073
1082
  ])
1074
1083
  ]);
1075
- }), fs = (e, t) => {
1076
- const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
1077
- let c = s.left + l, f = s.bottom + i;
1084
+ }), gs = (e, t) => {
1085
+ const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, r = globalThis.scrollY;
1086
+ let c = s.left + l, f = s.bottom + r;
1078
1087
  const m = globalThis.innerHeight - s.bottom, w = s.top;
1079
- return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), m < n.height && w > m ? f = s.top + i - n.height - a : m < n.height && (f = s.bottom + i - (n.height - m) - a), { x: c, y: f };
1088
+ return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), m < n.height && w > m ? f = s.top + r - n.height - a : m < n.height && (f = s.bottom + r - (n.height - m) - a), { x: c, y: f };
1080
1089
  };
1081
- class ne extends S {
1090
+ class ae extends S {
1082
1091
  /**
1083
1092
  * This will set up the data.
1084
1093
  *
@@ -1155,7 +1164,7 @@ class ne extends S {
1155
1164
  * @returns {void}
1156
1165
  */
1157
1166
  updatePosition() {
1158
- const t = this.button ?? null, s = this.panel, n = fs(t, s);
1167
+ const t = this.button ?? null, s = this.panel, n = gs(t, s);
1159
1168
  this.data.position = n;
1160
1169
  }
1161
1170
  /**
@@ -1207,28 +1216,28 @@ class ne extends S {
1207
1216
  this?.panel?.hidePopover();
1208
1217
  }
1209
1218
  }
1210
- const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ms = r((e, t) => H({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), bs = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), xs = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), co = r((e, t = []) => Rt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1219
+ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), bs = i((e, t) => H({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), xs = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ps = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), uo = i((e, t = []) => jt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1211
1220
  // @ts-ignore
1212
- e.title && X({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1221
+ e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1213
1222
  // @ts-ignore
1214
1223
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1215
1224
  ...t
1216
- ])), uo = r((e, t = []) => (
1225
+ ])), ho = i((e, t = []) => (
1217
1226
  // @ts-ignore
1218
- Et({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1227
+ Ht({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1219
1228
  o({ class: "flex flex-col gap-y-6" }, t)
1220
1229
  ])
1221
- )), ho = r((e, t = []) => {
1230
+ )), fo = i((e, t = []) => {
1222
1231
  const s = e.border ? "border-t" : "";
1223
1232
  return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1224
- }), ps = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", tt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = tt(n.children, t, s)), !n.required) ? n : ps(n) ? {
1233
+ }), ys = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", tt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = tt(n.children, t, s)), !n.required) ? n : ys(n) ? {
1225
1234
  ...n,
1226
1235
  aria: {
1227
1236
  invalid: ["hasError"]
1228
1237
  },
1229
1238
  invalid: s,
1230
1239
  input: t
1231
- } : n), ys = r((e, t) => {
1240
+ } : n), ws = i((e, t) => {
1232
1241
  const a = tt(t, (l) => {
1233
1242
  l.target.checkValidity() && e.setError(null);
1234
1243
  }, (l) => {
@@ -1238,7 +1247,7 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1238
1247
  ...e,
1239
1248
  class: "w-full"
1240
1249
  }, a);
1241
- }), fo = N(
1250
+ }), go = N(
1242
1251
  {
1243
1252
  /**
1244
1253
  * The initial state of the FormField.
@@ -1263,41 +1272,41 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1263
1272
  this.state.error = l, this.state.hasError = !!l;
1264
1273
  };
1265
1274
  return o({ class: "flex flex-auto gap-y-4" }, [
1266
- gs([
1267
- ms({ htmlFor: t }, s),
1268
- ys({
1275
+ ms([
1276
+ bs({ htmlFor: t }, s),
1277
+ ws({
1269
1278
  id: t,
1270
1279
  name: e,
1271
1280
  value: this.state.value,
1272
1281
  setError: a
1273
1282
  }, this.children),
1274
- n && bs({ id: this.getId("description") }, n),
1275
- o({ onState: ["error", (l) => l && xs(l)] })
1283
+ n && xs({ id: this.getId("description") }, n),
1284
+ o({ onState: ["error", (l) => l && ps(l)] })
1276
1285
  ])
1277
1286
  ]);
1278
1287
  }
1279
1288
  }
1280
- ), ws = (e, t, s = null) => {
1289
+ ), vs = (e, t, s = null) => {
1281
1290
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1282
- }, st = r(
1291
+ }, st = i(
1283
1292
  (e, t) => (
1284
1293
  // @ts-ignore
1285
- mt({ ...e, submit: (s, n) => ws(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1294
+ mt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1286
1295
  )
1287
- ), go = r((e, t) => (
1296
+ ), mo = i((e, t) => (
1288
1297
  // @ts-ignore
1289
1298
  o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1290
- )), mo = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1299
+ )), bo = i((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1291
1300
  // @ts-ignore
1292
- e.title && X({ class: "font-semibold" }, e.title),
1301
+ e.title && Z({ class: "font-semibold" }, e.title),
1293
1302
  ...t
1294
- ])), bo = (e, t) => o({ class: "flex justify-between" }, [
1303
+ ])), xo = (e, t) => o({ class: "flex justify-between" }, [
1295
1304
  u({ class: "text-muted-foreground" }, e),
1296
1305
  u(t)
1297
- ]), xo = (e, t) => o({ class: "flex" }, [
1306
+ ]), po = (e, t) => o({ class: "flex" }, [
1298
1307
  u({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1299
1308
  u(t)
1300
- ]), vs = r(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => Z({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1309
+ ]), ks = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => ee({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1301
1310
  /**
1302
1311
  * Back Button (Mobile Only)
1303
1312
  */
@@ -1305,7 +1314,7 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1305
1314
  variant: "icon",
1306
1315
  icon: h.arrows.left,
1307
1316
  class: "mr-2 p-0 flex sm:hidden",
1308
- click: (i, c) => c.close()
1317
+ click: (r, c) => c.close()
1309
1318
  }),
1310
1319
  /**
1311
1320
  * Icon Container
@@ -1315,31 +1324,31 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1315
1324
  ]),
1316
1325
  o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1317
1326
  o({ class: `flex flex-auto flex-col min-w-0 ${l ? "items-center" : ""}` }, [
1318
- X({ class: "text-lg font-semibold m-0 truncate" }, e),
1327
+ Z({ class: "text-lg font-semibold m-0 truncate" }, e),
1319
1328
  t && o({ class: "text-sm text-muted-foreground truncate" }, t)
1320
1329
  ]),
1321
1330
  o({ class: "flex flex-none items-center gap-2" }, a)
1322
1331
  ])
1323
- ])), po = r((e, t) => {
1332
+ ])), yo = i((e, t) => {
1324
1333
  const s = e.class?.includes("drawer");
1325
1334
  return o({
1326
1335
  popover: "manual",
1327
1336
  // @ts-ignore
1328
1337
  class: `modal ${s ? "" : "m-auto top-0 right-0 bottom-0 left-0"} ${s ? "" : "h-full max-h-screen"} fixed z-20 grid w-full gap-2 lg:border bg-background text-foreground shadow-xl wrap-break-words p-0 overflow-y-auto overscroll-y-contain ${e.class}`,
1329
- click: (l, i) => {
1330
- l.target === i.panel && (l.preventDefault(), l.stopPropagation(), i.state.open = !1);
1338
+ click: (l, r) => {
1339
+ l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
1331
1340
  }
1332
1341
  }, [
1333
1342
  st({
1334
1343
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1335
1344
  // @ts-ignore
1336
- submit: (l, i) => e.onSubmit && e.onSubmit(i),
1345
+ submit: (l, r) => e.onSubmit && e.onSubmit(r),
1337
1346
  cache: "modalContent"
1338
1347
  }, [
1339
- vs(e),
1348
+ ks(e),
1340
1349
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1341
1350
  // @ts-ignore
1342
- !e.hideFooter && me({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
1351
+ !e.hideFooter && be({ 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)
1343
1352
  ])
1344
1353
  ]);
1345
1354
  }), Ae = {
@@ -1368,22 +1377,22 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1368
1377
  borderColor: "border",
1369
1378
  iconColor: "text-muted-foreground"
1370
1379
  }
1371
- }, ks = (e) => Z({ class: "flex justify-center" }, [
1372
- be({ class: "text-lg font-bold mb-0" }, e)
1373
- ]), Cs = r(({ href: e, class: t }, s) => Ke({
1380
+ }, Cs = (e) => ee({ class: "flex justify-center" }, [
1381
+ xe({ class: "text-lg font-bold mb-0" }, e)
1382
+ ]), Ss = i(({ href: e, class: t }, s) => Ke({
1374
1383
  class: `bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1375
1384
  href: e,
1376
1385
  animateIn: "pullRightIn",
1377
1386
  animateOut: "pullRight",
1378
1387
  role: "alert"
1379
- }, s)), Ss = r(({ close: e, class: t }, s) => o({
1388
+ }, s)), $s = i(({ close: e, class: t }, s) => o({
1380
1389
  class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1381
1390
  click: () => e(),
1382
1391
  animateIn: "pullRightIn",
1383
1392
  animateOut: "pullRight",
1384
1393
  role: "alert"
1385
1394
  }, s));
1386
- class yo extends S {
1395
+ class wo extends S {
1387
1396
  /**
1388
1397
  * This will declare the props for the compiler.
1389
1398
  *
@@ -1407,10 +1416,10 @@ class yo extends S {
1407
1416
  */
1408
1417
  render() {
1409
1418
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1410
- return a ? Cs({
1419
+ return a ? Ss({
1411
1420
  href: a,
1412
1421
  class: `${t} ${s}`
1413
- }, l) : Ss({
1422
+ }, l) : $s({
1414
1423
  close: this.close.bind(this),
1415
1424
  class: `${t} ${s}`
1416
1425
  }, l);
@@ -1460,10 +1469,10 @@ class yo extends S {
1460
1469
  ]),
1461
1470
  o({ class: "flex flex-auto flex-col" }, [
1462
1471
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1463
- this.title && ks(this.title)
1472
+ this.title && Cs(this.title)
1464
1473
  ]),
1465
1474
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1466
- (this.primary || this.secondary) && me({ class: "margin-top-24 flex align-center" }, this.getButtons())
1475
+ (this.primary || this.secondary) && be({ class: "margin-top-24 flex align-center" }, this.getButtons())
1467
1476
  ])
1468
1477
  ]),
1469
1478
  b({
@@ -1484,17 +1493,17 @@ class yo extends S {
1484
1493
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1485
1494
  }
1486
1495
  }
1487
- const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v({
1496
+ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
1488
1497
  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',
1489
1498
  onState: ["method", { active: e }],
1490
1499
  dataSet: ["method", ["state", e, "active"]],
1491
1500
  click: (n, { state: a }) => {
1492
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), $s(e);
1501
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ds(e);
1493
1502
  }
1494
1503
  }, [
1495
1504
  x({}, s),
1496
1505
  u(t)
1497
- ])), $s = (e) => {
1506
+ ])), Ds = (e) => {
1498
1507
  const t = document.documentElement;
1499
1508
  if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Re && !Re("(prefers-color-scheme: " + e + ")").matches) {
1500
1509
  t.classList.add(e);
@@ -1502,7 +1511,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1502
1511
  }
1503
1512
  const s = e === "light" ? "dark" : "light";
1504
1513
  t.classList.remove(s);
1505
- }, wo = M(
1514
+ }, vo = M(
1506
1515
  {
1507
1516
  /**
1508
1517
  * This will render the component.
@@ -1512,9 +1521,9 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1512
1521
  render() {
1513
1522
  return o({ class: "flex flex-auto flex-col" }, [
1514
1523
  o({ class: "grid grid-cols-3 gap-4" }, [
1515
- re({ label: "System", value: "system", icon: h.adjustments.horizontal }),
1516
- re({ label: "Light", value: "light", icon: h.sun }),
1517
- re({ label: "Dark", value: "dark", icon: h.moon })
1524
+ ie({ label: "System", value: "system", icon: h.adjustments.horizontal }),
1525
+ ie({ label: "Light", value: "light", icon: h.sun }),
1526
+ ie({ label: "Dark", value: "dark", icon: h.moon })
1518
1527
  ])
1519
1528
  ]);
1520
1529
  },
@@ -1529,7 +1538,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1529
1538
  };
1530
1539
  }
1531
1540
  }
1532
- ), vo = N(
1541
+ ), ko = N(
1533
1542
  {
1534
1543
  /**
1535
1544
  * The initial state of the Toggle.
@@ -1563,7 +1572,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1563
1572
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1564
1573
  }
1565
1574
  }, [
1566
- fe({
1575
+ ge({
1567
1576
  cache: "checkbox",
1568
1577
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1569
1578
  /**
@@ -1581,11 +1590,11 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1581
1590
  ]);
1582
1591
  }
1583
1592
  }
1584
- ), Ds = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : ls({
1593
+ ), Is = i(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : rs({
1585
1594
  src: e,
1586
1595
  alt: t,
1587
1596
  class: "rounded-full"
1588
- })), Is = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), nt = (e) => !e || e.length < 2 ? e : Is(e), Ts = (e) => u([e, (t, s) => {
1597
+ })), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), nt = (e) => !e || e.length < 2 ? e : Ts(e), Ps = (e) => u([e, (t, s) => {
1589
1598
  s.textContent = nt(t);
1590
1599
  }]), je = {
1591
1600
  xs: "h-6 w-6",
@@ -1607,8 +1616,8 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1607
1616
  "3xl": "text-4xl",
1608
1617
  "4xl": "text-5xl",
1609
1618
  default: "text-base"
1610
- }, Ps = (e) => je[e] || je.default, Ms = (e) => Ee[e] || Ee.default, Bs = (e, t = null, s = "md") => {
1611
- const n = nt(String(e)), a = Ms(s);
1619
+ }, Ms = (e) => je[e] || je.default, Bs = (e) => Ee[e] || Ee.default, zs = (e, t = null, s = "md") => {
1620
+ const n = nt(String(e)), a = Bs(s);
1612
1621
  return o(
1613
1622
  {
1614
1623
  class: `
@@ -1618,21 +1627,21 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1618
1627
  `
1619
1628
  },
1620
1629
  [
1621
- t ? Ts(t) : u({ class: "uppercase" }, n)
1630
+ t ? Ps(t) : u({ class: "uppercase" }, n)
1622
1631
  ]
1623
1632
  );
1624
- }, zs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1625
- const l = Ps(a);
1633
+ }, Os = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1634
+ const l = Ms(a);
1626
1635
  return o(
1627
1636
  {
1628
1637
  class: `relative flex items-center justify-center ${l}`
1629
1638
  },
1630
1639
  [
1631
- Ds({ src: e, alt: t }),
1632
- Bs(s, n, a)
1640
+ Is({ src: e, alt: t }),
1641
+ zs(s, n, a)
1633
1642
  ]
1634
1643
  );
1635
- }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, ko = M(
1644
+ }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = M(
1636
1645
  {
1637
1646
  /**
1638
1647
  * Get the initial state for the component.
@@ -1692,9 +1701,9 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1692
1701
  htmlFor: e,
1693
1702
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1694
1703
  }, [
1695
- ue(h.upload),
1704
+ he(h.upload),
1696
1705
  o("Upload Image")
1697
- ]) : ge({
1706
+ ]) : me({
1698
1707
  // @ts-ignore
1699
1708
  src: this.src,
1700
1709
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1703,7 +1712,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1703
1712
  ]);
1704
1713
  }
1705
1714
  }
1706
- ), Co = M(
1715
+ ), So = M(
1707
1716
  {
1708
1717
  /**
1709
1718
  * Get the initial state for the component.
@@ -1761,7 +1770,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1761
1770
  }, [
1762
1771
  P(
1763
1772
  "loaded",
1764
- (s) => s ? ge({
1773
+ (s) => s ? me({
1765
1774
  // @ts-ignore
1766
1775
  src: this.src,
1767
1776
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1785,7 +1794,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1785
1794
  this.input = null;
1786
1795
  }
1787
1796
  }
1788
- ), Os = (e, t) => Ke(
1797
+ ), Ns = (e, t) => Ke(
1789
1798
  {
1790
1799
  href: e,
1791
1800
  "aria-current": t === "Breadcrumb" && "page",
@@ -1793,14 +1802,14 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1793
1802
  class: "text-muted-foreground font-medium hover:text-foreground"
1794
1803
  },
1795
1804
  [u(t)]
1796
- ), Ns = () => x({
1805
+ ), Fs = () => x({
1797
1806
  class: "mx-3 text-muted-foreground",
1798
1807
  "aria-hidden": !0,
1799
1808
  size: "xs"
1800
- }, h.chevron.single.right), Fs = (e) => o({ class: "flex items-center" }, [
1801
- e.href ? Os(e.href, e.label) : u(e.label),
1802
- e.separator && Ns()
1803
- ]), So = M(
1809
+ }, h.chevron.single.right), Ls = (e) => o({ class: "flex items-center" }, [
1810
+ e.href ? Ns(e.href, e.label) : u(e.label),
1811
+ e.separator && Fs()
1812
+ ]), $o = M(
1804
1813
  {
1805
1814
  /**
1806
1815
  * Set initial data
@@ -1820,7 +1829,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1820
1829
  */
1821
1830
  render() {
1822
1831
  const e = this.data.items.length - 1;
1823
- return xe(
1832
+ return pe(
1824
1833
  {
1825
1834
  "aria-label": "Breadcrumb",
1826
1835
  class: "flex items-center gap-x-1 text-sm"
@@ -1829,7 +1838,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1829
1838
  o({
1830
1839
  role: "list",
1831
1840
  class: "flex items-center",
1832
- for: ["items", (t, s) => Fs({
1841
+ for: ["items", (t, s) => Ls({
1833
1842
  href: t.href,
1834
1843
  label: t.label,
1835
1844
  separator: s < e
@@ -1848,7 +1857,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1848
1857
  "2xl": "h-16 w-16",
1849
1858
  "3xl": "h-24 w-24",
1850
1859
  default: "h-4 w-4"
1851
- }, Ls = (e) => _e[e] || _e.default, As = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1860
+ }, As = (e) => _e[e] || _e.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1852
1861
  u({
1853
1862
  class: "block w-full h-full rounded-full transition-colors",
1854
1863
  onSet: ["activeIndex", {
@@ -1859,10 +1868,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1859
1868
  n.activeIndex = e, a && a(e);
1860
1869
  }
1861
1870
  })
1862
- ]), Rs = (e, t) => Array.from({ length: e }, (s, n) => As({
1871
+ ]), js = (e, t) => Array.from({ length: e }, (s, n) => Rs({
1863
1872
  index: n,
1864
1873
  size: t
1865
- })), $o = M(
1874
+ })), Do = M(
1866
1875
  {
1867
1876
  /**
1868
1877
  * Defines component data (props).
@@ -1884,7 +1893,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1884
1893
  * @returns {object}
1885
1894
  */
1886
1895
  render() {
1887
- const e = this.gap || "gap-2", t = Ls(this.size || "sm"), s = Rs(this.data.count, t);
1896
+ const e = this.gap || "gap-2", t = As(this.size || "sm"), s = js(this.data.count, t);
1888
1897
  return o(
1889
1898
  { class: "flex justify-center items-center py-2" },
1890
1899
  [
@@ -1893,7 +1902,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1893
1902
  );
1894
1903
  }
1895
1904
  }
1896
- ), js = ({ toggleDropdown: e }) => v(
1905
+ ), Es = ({ toggleDropdown: e }) => v(
1897
1906
  {
1898
1907
  cache: "button",
1899
1908
  class: "relative z-2 inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border bg-input hover:bg-muted h-10 px-4 py-2 justify-between",
@@ -1903,27 +1912,27 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1903
1912
  u({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1904
1913
  x({ size: "sm" }, h.chevron.upDown)
1905
1914
  ]
1906
- ), Es = (e, t, s) => pe({
1915
+ ), Hs = (e, t, s) => ye({
1907
1916
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1908
1917
  click: () => t(e),
1909
1918
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1910
1919
  }, [
1911
1920
  e.icon && u({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1912
1921
  u({ class: "text-base font-normal" }, e.label)
1913
- ]), Hs = (e, t) => o({ class: "w-full border rounded-md" }, [
1914
- ee({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Es(s, e, t)] })
1915
- ]), _s = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1922
+ ]), _s = (e, t) => o({ class: "w-full border rounded-md" }, [
1923
+ te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Hs(s, e, t)] })
1924
+ ]), Us = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1916
1925
  P(
1917
1926
  "open",
1918
- (s, n, a) => s ? new ne({
1927
+ (s, n, a) => s ? new ae({
1919
1928
  cache: "dropdown",
1920
1929
  parent: a,
1921
1930
  button: a.button
1922
1931
  }, [
1923
- Hs(e, t)
1932
+ _s(e, t)
1924
1933
  ]) : null
1925
1934
  )
1926
- ]), Do = M(
1935
+ ]), Io = M(
1927
1936
  {
1928
1937
  /**
1929
1938
  * This will set up the data.
@@ -2004,8 +2013,8 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2004
2013
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2005
2014
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2006
2015
  // @ts-ignore
2007
- js({ toggleDropdown: this.toggleDropdown.bind(this) }),
2008
- _s({
2016
+ Es({ toggleDropdown: this.toggleDropdown.bind(this) }),
2017
+ Us({
2009
2018
  // @ts-ignore
2010
2019
  state: this.state,
2011
2020
  // @ts-ignore
@@ -2031,20 +2040,20 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2031
2040
  click: t,
2032
2041
  icon: e,
2033
2042
  "aria-label": s
2034
- }), Us = ({ click: e }) => at({
2043
+ }), Ys = ({ click: e }) => at({
2035
2044
  icon: h.circleMinus,
2036
2045
  click: e,
2037
2046
  ariaLabel: "Decrement"
2038
- }), Ys = ({ click: e }) => at({
2047
+ }), Ws = ({ click: e }) => at({
2039
2048
  icon: h.circlePlus,
2040
2049
  click: e,
2041
2050
  ariaLabel: "Increment"
2042
- }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
2051
+ }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => V(({ state: a }) => p({
2043
2052
  value: ["[[count]]", a],
2044
2053
  bind: e,
2045
- blur: (l, { state: i }) => {
2054
+ blur: (l, { state: r }) => {
2046
2055
  let c = parseInt(l.target.value, 10);
2047
- isNaN(c) && (c = t ?? 0), t !== void 0 && (c = Math.max(c, t)), s !== void 0 && (c = Math.min(c, s)), i.count = c;
2056
+ isNaN(c) && (c = t ?? 0), t !== void 0 && (c = Math.max(c, t)), s !== void 0 && (c = Math.min(c, s)), r.count = c;
2048
2057
  },
2049
2058
  class: "flex flex-auto text-lg font-medium bg-input text-center border min-w-0",
2050
2059
  readonly: n,
@@ -2052,7 +2061,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2052
2061
  max: s,
2053
2062
  type: "number",
2054
2063
  "aria-label": "Counter"
2055
- })), Io = N(
2064
+ })), To = N(
2056
2065
  {
2057
2066
  /**
2058
2067
  * Initial state for the counter component.
@@ -2075,20 +2084,20 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2075
2084
  render() {
2076
2085
  const e = this.class ?? "";
2077
2086
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2078
- Us({ click: () => this.state.decrement("count") }),
2087
+ Ys({ click: () => this.state.decrement("count") }),
2079
2088
  Vs({
2080
2089
  bind: this.bind,
2081
2090
  readonly: this.readonly,
2082
2091
  min: this.min,
2083
2092
  max: this.max
2084
2093
  }),
2085
- Ys({ click: () => this.state.increment("count") })
2094
+ Ws({ click: () => this.state.increment("count") })
2086
2095
  ]);
2087
2096
  }
2088
2097
  }
2089
- ), Ws = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2098
+ ), qs = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2090
2099
  { class: "grid grid-cols-3 gap-2" },
2091
- te.monthNames.map(
2100
+ se.monthNames.map(
2092
2101
  (n, a) => b(
2093
2102
  {
2094
2103
  click: (l) => {
@@ -2100,42 +2109,42 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2100
2109
  n.substring(0, 3)
2101
2110
  )
2102
2111
  )
2103
- ), z = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), qs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), R = (e, t, s) => `${e}-${z(t + 1)}-${z(s)}`, Gs = (e) => e ? "bg-accent text-primary" : "", Ks = (e) => e ? "text-muted-foreground opacity-50" : "", Qs = (e, t) => e === t, Js = (e, t) => Qs(e, t) ? "bg-primary text-primary-foreground" : "", Xs = (e, t, s, n) => {
2104
- const a = Js(t, n);
2105
- return a || (e ? Gs(e) : s ? Ks(s) : "text-foreground");
2106
- }, ie = (e) => {
2112
+ ), z = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Gs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), R = (e, t, s) => `${e}-${z(t + 1)}-${z(s)}`, Ks = (e) => e ? "bg-accent text-primary" : "", Qs = (e) => e ? "text-muted-foreground opacity-50" : "", Js = (e, t) => e === t, Xs = (e, t) => Js(e, t) ? "bg-primary text-primary-foreground" : "", Zs = (e, t, s, n) => {
2113
+ const a = Xs(t, n);
2114
+ return a || (e ? Ks(e) : s ? Qs(s) : "text-foreground");
2115
+ }, ce = (e) => {
2107
2116
  const {
2108
2117
  day: t,
2109
2118
  currentDate: s,
2110
2119
  date: n,
2111
2120
  isToday: a,
2112
2121
  isOutsideMonth: l,
2113
- select: i,
2122
+ select: r,
2114
2123
  disabled: c
2115
2124
  } = e;
2116
2125
  return v(
2117
2126
  {
2118
2127
  class: `
2119
2128
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
2120
- ${Xs(a, s, l, n)}
2129
+ ${Zs(a, s, l, n)}
2121
2130
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2122
2131
  disabled:pointer-events-none disabled:opacity-50
2123
2132
  `,
2124
2133
  disabled: c || t === null,
2125
2134
  "aria-label": t ? `Day ${t}` : null,
2126
2135
  // Only call select if it's not disabled.
2127
- click: () => !c && i(n)
2136
+ click: () => !c && r(n)
2128
2137
  },
2129
2138
  t.toString()
2130
2139
  );
2131
- }, ce = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Zs = (e, t, s, n = !1) => {
2132
- const { year: a, month: l } = e, i = R(a, l, e.date), c = new Date(a, l, 1).getDay(), f = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), w = [], q = l === 0 ? 11 : l - 1, U = l === 0 ? a - 1 : a;
2140
+ }, de = (e, t, s, n) => e === n.date && t === n.month && s === n.year, en = (e, t, s, n = !1) => {
2141
+ const { year: a, month: l } = e, r = R(a, l, e.date), c = new Date(a, l, 1).getDay(), f = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), w = [], q = l === 0 ? 11 : l - 1, U = l === 0 ? a - 1 : a;
2133
2142
  for (let d = c - 1; d >= 0; d--) {
2134
- const y = m - d, I = ce(y, q, U, t), T = new Date(U, q, y) < new Date(t.year, t.month, t.date), L = n && T;
2143
+ const y = m - d, I = de(y, q, U, t), T = new Date(U, q, y) < new Date(t.year, t.month, t.date), L = n && T;
2135
2144
  w.push(
2136
- ie({
2145
+ ce({
2137
2146
  day: y,
2138
- currentDate: i,
2147
+ currentDate: r,
2139
2148
  date: R(U, q, y),
2140
2149
  isToday: I,
2141
2150
  isOutsideMonth: !0,
@@ -2145,11 +2154,11 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2145
2154
  );
2146
2155
  }
2147
2156
  for (let d = 1; d <= f; d++) {
2148
- const y = ce(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2157
+ const y = de(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2149
2158
  w.push(
2150
- ie({
2159
+ ce({
2151
2160
  day: d,
2152
- currentDate: i,
2161
+ currentDate: r,
2153
2162
  date: R(a, l, d),
2154
2163
  isToday: y,
2155
2164
  isOutsideMonth: !1,
@@ -2158,14 +2167,14 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2158
2167
  })
2159
2168
  );
2160
2169
  }
2161
- const Y = l === 11 ? 0 : l + 1, ae = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2170
+ const Y = l === 11 ? 0 : l + 1, oe = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2162
2171
  for (let d = 1; d <= g; d++) {
2163
- const y = ce(d, Y, ae, t), I = new Date(ae, Y, d) < new Date(t.year, t.month, t.date), T = n && I;
2172
+ const y = de(d, Y, oe, t), I = new Date(oe, Y, d) < new Date(t.year, t.month, t.date), T = n && I;
2164
2173
  w.push(
2165
- ie({
2174
+ ce({
2166
2175
  day: d,
2167
- currentDate: i,
2168
- date: R(ae, Y, d),
2176
+ currentDate: r,
2177
+ date: R(oe, Y, d),
2169
2178
  isToday: y,
2170
2179
  isOutsideMonth: !0,
2171
2180
  select: s,
@@ -2187,16 +2196,16 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2187
2196
  variant: "icon",
2188
2197
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2189
2198
  }
2190
- ), en = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2199
+ ), tn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2191
2200
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2192
2201
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2193
2202
  Ue({ label: "Previous", click: n }),
2194
2203
  Ue({ label: "Next", click: s })
2195
- ]), tn = (e) => o(
2204
+ ]), sn = (e) => o(
2196
2205
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2197
2206
  e
2198
- ), sn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(tn), nn = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2199
- en({
2207
+ ), nn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(sn), an = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2208
+ tn({
2200
2209
  onMonthClick: e.onMonthClick,
2201
2210
  onYearClick: e.onYearClick,
2202
2211
  next: e.next,
@@ -2207,10 +2216,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2207
2216
  onSet: [
2208
2217
  "currentDate",
2209
2218
  () => [
2210
- o({ class: "grid grid-cols-7" }, sn()),
2219
+ o({ class: "grid grid-cols-7" }, nn()),
2211
2220
  o(
2212
2221
  { class: "grid grid-cols-7" },
2213
- Zs(
2222
+ en(
2214
2223
  e.current,
2215
2224
  e.today,
2216
2225
  e.select,
@@ -2220,15 +2229,15 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2220
2229
  ]
2221
2230
  ]
2222
2231
  })
2223
- ]), an = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2224
- const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
2232
+ ]), on = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2233
+ const n = t - 50, a = Array.from({ length: 101 }, (l, r) => n + r);
2225
2234
  return o(
2226
2235
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2227
2236
  a.map(
2228
2237
  (l) => b(
2229
2238
  {
2230
- click: (i) => {
2231
- i.preventDefault(), i.stopPropagation(), s(l);
2239
+ click: (r) => {
2240
+ r.preventDefault(), r.stopPropagation(), s(l);
2232
2241
  },
2233
2242
  variant: l === t ? "primary" : "ghost",
2234
2243
  "aria-label": `Select ${l}`
@@ -2238,7 +2247,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2238
2247
  )
2239
2248
  );
2240
2249
  };
2241
- class on extends S {
2250
+ class ln extends S {
2242
2251
  /**
2243
2252
  * This will declare the props for the compiler.
2244
2253
  *
@@ -2254,7 +2263,7 @@ class on extends S {
2254
2263
  * @returns {Date}
2255
2264
  */
2256
2265
  getSelectedDate(t) {
2257
- const s = this.selectedDate ? new Date(qs(this.selectedDate)) : t;
2266
+ const s = this.selectedDate ? new Date(Gs(this.selectedDate)) : t;
2258
2267
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2259
2268
  }
2260
2269
  /**
@@ -2297,7 +2306,7 @@ class on extends S {
2297
2306
  * @returns {string}
2298
2307
  */
2299
2308
  getMonthName(t) {
2300
- return te.monthNames[t];
2309
+ return se.monthNames[t];
2301
2310
  }
2302
2311
  /**
2303
2312
  * This will go to the previous month.
@@ -2351,7 +2360,7 @@ class on extends S {
2351
2360
  P("view", (t) => {
2352
2361
  switch (t) {
2353
2362
  case "months":
2354
- return Ws(
2363
+ return qs(
2355
2364
  {
2356
2365
  // @ts-ignore
2357
2366
  currentMonth: this.data.current.month,
@@ -2363,7 +2372,7 @@ class on extends S {
2363
2372
  }
2364
2373
  );
2365
2374
  case "years":
2366
- return an(
2375
+ return on(
2367
2376
  {
2368
2377
  // @ts-ignore
2369
2378
  currentMonth: this.data.current.month,
@@ -2375,7 +2384,7 @@ class on extends S {
2375
2384
  }
2376
2385
  );
2377
2386
  default:
2378
- return nn({
2387
+ return an({
2379
2388
  // @ts-ignore
2380
2389
  current: this.data.current,
2381
2390
  // @ts-ignore
@@ -2396,33 +2405,33 @@ class on extends S {
2396
2405
  ]);
2397
2406
  }
2398
2407
  }
2399
- const ln = (e) => {
2408
+ const rn = (e) => {
2400
2409
  let t = "";
2401
2410
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += "/" + e.substring(2, 4), e.length > 4 && (t += "/" + e.substring(4, 8)))), t;
2402
- }, rn = (e) => {
2411
+ }, cn = (e) => {
2403
2412
  if (e.length !== 8)
2404
2413
  return null;
2405
2414
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2406
2415
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2407
- }, cn = ({ bind: e, required: t }) => p({
2416
+ }, dn = ({ bind: e, required: t }) => p({
2408
2417
  cache: "input",
2409
2418
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2410
2419
  bind: e,
2411
2420
  required: t
2412
- }), dn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2421
+ }), un = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2413
2422
  cache: "dateInput",
2414
2423
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2415
2424
  placeholder: e || "mm/dd/yyyy",
2416
2425
  input: t,
2417
2426
  focus: s,
2418
- onState: ["selectedDate", (n) => n ? te.format("standard", n) : ""]
2419
- }), un = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2427
+ onState: ["selectedDate", (n) => n ? se.format("standard", n) : ""]
2428
+ }), hn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2420
2429
  {
2421
2430
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
2422
2431
  },
2423
2432
  [
2424
- cn({ bind: e, required: t }),
2425
- dn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2433
+ dn({ bind: e, required: t }),
2434
+ un({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2426
2435
  v(
2427
2436
  {
2428
2437
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2433,20 +2442,20 @@ const ln = (e) => {
2433
2442
  ]
2434
2443
  )
2435
2444
  ]
2436
- ), hn = ({ handleDateSelect: e, blockPriorDates: t }) => ye(
2437
- (s, n, a) => new ne({
2445
+ ), fn = ({ handleDateSelect: e, blockPriorDates: t }) => we(
2446
+ (s, n, a) => new ae({
2438
2447
  cache: "dropdown",
2439
2448
  parent: a,
2440
2449
  button: a.panel,
2441
2450
  size: "fit"
2442
2451
  }, [
2443
- new on({
2452
+ new ln({
2444
2453
  selectedDate: a.state.selectedDate,
2445
2454
  selectedCallBack: e,
2446
2455
  blockPriorDates: t
2447
2456
  })
2448
2457
  ])
2449
- ), To = N(
2458
+ ), Po = N(
2450
2459
  {
2451
2460
  /**
2452
2461
  * The initial state of the DatePicker.
@@ -2475,8 +2484,8 @@ const ln = (e) => {
2475
2484
  */
2476
2485
  handleInputChange(e) {
2477
2486
  const s = e.target.value.replace(/\D/g, "");
2478
- e.target.value = ln(s);
2479
- const n = rn(s);
2487
+ e.target.value = rn(s);
2488
+ const n = cn(s);
2480
2489
  n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2481
2490
  },
2482
2491
  /**
@@ -2513,7 +2522,7 @@ const ln = (e) => {
2513
2522
  return o(
2514
2523
  { class: "relative w-full max-w-[320px]" },
2515
2524
  [
2516
- un({
2525
+ hn({
2517
2526
  toggleOpen: this.toggleOpen.bind(this),
2518
2527
  bind: this.bind,
2519
2528
  required: this.required,
@@ -2521,7 +2530,7 @@ const ln = (e) => {
2521
2530
  handleInputFocus: this.handleInputFocus.bind(this),
2522
2531
  placeholder: this.placeholder
2523
2532
  }),
2524
- hn({
2533
+ fn({
2525
2534
  handleDateSelect: this.handleDateSelect.bind(this),
2526
2535
  blockPriorDates: this.blockPriorDates || !1
2527
2536
  })
@@ -2542,17 +2551,17 @@ const ln = (e) => {
2542
2551
  variant: "icon",
2543
2552
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2544
2553
  }
2545
- ), fn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2554
+ ), gn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2546
2555
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2547
2556
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2548
2557
  Ye({ label: "Previous", click: n }),
2549
2558
  Ye({ label: "Next", click: s })
2550
- ]), gn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), mn = () => o(
2559
+ ]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
2551
2560
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2552
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(gn)
2553
- ), bn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2561
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
2562
+ ), xn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: r, click: c }) => {
2554
2563
  let f = "ghost", m = "";
2555
- return n || a ? (f = "default", m = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (m = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (m += " opacity-50 cursor-not-allowed"), i && (m += " text-muted-foreground opacity-50"), b(
2564
+ return n || a ? (f = "default", m = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (m = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (m += " opacity-50 cursor-not-allowed"), r && (m += " text-muted-foreground opacity-50"), b(
2556
2565
  {
2557
2566
  class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${m}`,
2558
2567
  variant: f,
@@ -2563,9 +2572,9 @@ const ln = (e) => {
2563
2572
  },
2564
2573
  e.toString()
2565
2574
  );
2566
- }, xn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2567
- const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, q = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
2568
- for (let g = i - 1; g >= 0; g--) {
2575
+ }, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2576
+ const { start: a, end: l } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, q = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
2577
+ for (let g = r - 1; g >= 0; g--) {
2569
2578
  const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), L = I < T, G = s && L, K = a === y, Q = l === y, ut = a && l && y > a && y < l;
2570
2579
  f.push({
2571
2580
  day: d,
@@ -2593,8 +2602,8 @@ const ln = (e) => {
2593
2602
  }
2594
2603
  });
2595
2604
  }
2596
- const $e = (7 - f.length % 7) % 7;
2597
- for (let g = 1; g <= $e; g++) {
2605
+ const De = (7 - f.length % 7) % 7;
2606
+ for (let g = 1; g <= De; g++) {
2598
2607
  const d = R(Y, U, g), y = new Date(Y, U, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2599
2608
  f.push({
2600
2609
  day: g,
@@ -2610,7 +2619,7 @@ const ln = (e) => {
2610
2619
  return o(
2611
2620
  { class: "grid grid-cols-7 gap-1" },
2612
2621
  f.map(
2613
- (g, d) => bn({
2622
+ (g, d) => xn({
2614
2623
  day: g.day,
2615
2624
  iso: g.iso,
2616
2625
  disabled: g.disabled,
@@ -2622,8 +2631,8 @@ const ln = (e) => {
2622
2631
  })
2623
2632
  )
2624
2633
  );
2625
- }, pn = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2626
- fn({
2634
+ }, yn = i((e, t) => o({ class: "flex flex-auto flex-col" }, [
2635
+ gn({
2627
2636
  // @ts-ignore
2628
2637
  onMonthClick: e.onMonthClick,
2629
2638
  // @ts-ignore
@@ -2638,8 +2647,8 @@ const ln = (e) => {
2638
2647
  onSet: [
2639
2648
  "currentDate",
2640
2649
  () => [
2641
- mn(),
2642
- xn({
2650
+ bn(),
2651
+ pn({
2643
2652
  // @ts-ignore
2644
2653
  today: e.today,
2645
2654
  // @ts-ignore
@@ -2652,9 +2661,9 @@ const ln = (e) => {
2652
2661
  ]
2653
2662
  ]
2654
2663
  })
2655
- ])), yn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2664
+ ])), wn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2656
2665
  { class: "grid grid-cols-3 gap-2" },
2657
- te.monthNames.map(
2666
+ se.monthNames.map(
2658
2667
  (n, a) => b(
2659
2668
  {
2660
2669
  click: (l) => {
@@ -2666,25 +2675,25 @@ const ln = (e) => {
2666
2675
  n.substring(0, 3)
2667
2676
  )
2668
2677
  )
2669
- ), wn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2678
+ ), vn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2670
2679
  J("selecting", (l) => b({
2671
2680
  click: n,
2672
2681
  variant: l === "start" ? "primary" : "outline",
2673
2682
  class: "flex-1"
2674
2683
  }, [
2675
- o({ class: "font-medium" }, Ve("current.start", "Start Date"))
2684
+ o({ class: "font-medium" }, We("current.start", "Start Date"))
2676
2685
  ])),
2677
2686
  J("selecting", (l) => b({
2678
2687
  click: a,
2679
2688
  variant: l === "end" ? "primary" : "outline",
2680
2689
  class: "flex-1"
2681
2690
  }, [
2682
- o({ class: "font-medium" }, Ve("current.end", "End Date"))
2691
+ o({ class: "font-medium" }, We("current.end", "End Date"))
2683
2692
  ]))
2684
- ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : vn(s)], vn = (e) => {
2693
+ ]), We = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
2685
2694
  const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
2686
2695
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2687
- }, kn = ({ currentYear: e, onSelect: t }) => {
2696
+ }, Cn = ({ currentYear: e, onSelect: t }) => {
2688
2697
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2689
2698
  return o(
2690
2699
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2702,7 +2711,7 @@ const ln = (e) => {
2702
2711
  )
2703
2712
  );
2704
2713
  };
2705
- class Cn extends S {
2714
+ class Sn extends S {
2706
2715
  /**
2707
2716
  * Declare compiler props.
2708
2717
  *
@@ -2743,7 +2752,7 @@ class Cn extends S {
2743
2752
  * @returns {string}
2744
2753
  */
2745
2754
  getMonthName(t) {
2746
- return te.monthNames[t];
2755
+ return se.monthNames[t];
2747
2756
  }
2748
2757
  /**
2749
2758
  * Initialize component state.
@@ -2799,21 +2808,21 @@ class Cn extends S {
2799
2808
  render() {
2800
2809
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2801
2810
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2802
- wn({
2811
+ vn({
2803
2812
  start: a,
2804
2813
  end: l,
2805
2814
  selecting: n,
2806
- onSelectStart: (i) => {
2807
- i.preventDefault(), i.stopPropagation(), this.data.selecting = "start";
2815
+ onSelectStart: (r) => {
2816
+ r.preventDefault(), r.stopPropagation(), this.data.selecting = "start";
2808
2817
  },
2809
- onSelectEnd: (i) => {
2810
- i.preventDefault(), i.stopPropagation(), this.data.selecting = "end";
2818
+ onSelectEnd: (r) => {
2819
+ r.preventDefault(), r.stopPropagation(), this.data.selecting = "end";
2811
2820
  }
2812
2821
  }),
2813
- P("view", (i) => {
2814
- switch (i) {
2822
+ P("view", (r) => {
2823
+ switch (r) {
2815
2824
  case "months":
2816
- return yn(
2825
+ return wn(
2817
2826
  {
2818
2827
  currentMonth: s.month,
2819
2828
  currentYear: s.year,
@@ -2823,7 +2832,7 @@ class Cn extends S {
2823
2832
  }
2824
2833
  );
2825
2834
  case "years":
2826
- return kn(
2835
+ return Cn(
2827
2836
  {
2828
2837
  currentYear: s.year,
2829
2838
  onSelect: (c) => {
@@ -2832,7 +2841,7 @@ class Cn extends S {
2832
2841
  }
2833
2842
  );
2834
2843
  default:
2835
- return pn({
2844
+ return yn({
2836
2845
  // @ts-ignore
2837
2846
  monthName: this.data.monthName,
2838
2847
  year: s.year,
@@ -2860,35 +2869,35 @@ class Cn extends S {
2860
2869
  ]);
2861
2870
  }
2862
2871
  }
2863
- const Sn = ({ bind: e, required: t }) => p({
2872
+ const $n = ({ bind: e, required: t }) => p({
2864
2873
  cache: "input",
2865
2874
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2866
2875
  bind: e,
2867
2876
  required: t
2868
- }), $n = ({ bind: e, required: t, toggleOpen: s }) => v({
2877
+ }), Dn = ({ bind: e, required: t, toggleOpen: s }) => v({
2869
2878
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
2870
2879
  click: s
2871
2880
  }, [
2872
- Sn({ bind: e, required: t }),
2873
- W(({ state: n }) => [
2874
- u(V.date(["[[start]]", n], "Start Date")),
2881
+ $n({ bind: e, required: t }),
2882
+ V(({ state: n }) => [
2883
+ u(W.date(["[[start]]", n], "Start Date")),
2875
2884
  u(" - "),
2876
- u(V.date(["[[end]]", n], "End Date"))
2885
+ u(W.date(["[[end]]", n], "End Date"))
2877
2886
  ]),
2878
2887
  E({ html: h.calendar.days })
2879
- ]), Dn = ({ handleDateSelect: e, blockPriorDates: t }) => ye((s, n, a) => new ne({
2888
+ ]), In = ({ handleDateSelect: e, blockPriorDates: t }) => we((s, n, a) => new ae({
2880
2889
  cache: "dropdown",
2881
2890
  parent: a,
2882
2891
  button: a.panel,
2883
2892
  size: "xl"
2884
2893
  }, [
2885
- new Cn({
2894
+ new Sn({
2886
2895
  startDate: a.state.start,
2887
2896
  endDate: a.state.end,
2888
2897
  onRangeSelect: e,
2889
2898
  blockPriorDates: t
2890
2899
  })
2891
- ])), Po = N(
2900
+ ])), Mo = N(
2892
2901
  {
2893
2902
  /**
2894
2903
  * The initial state of the DateRangePicker.
@@ -2924,12 +2933,12 @@ const Sn = ({ bind: e, required: t }) => p({
2924
2933
  this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2925
2934
  };
2926
2935
  return o({ class: "relative w-full max-w-[320px]" }, [
2927
- $n({
2936
+ Dn({
2928
2937
  toggleOpen: e,
2929
2938
  bind: this.bind,
2930
2939
  required: this.required
2931
2940
  }),
2932
- Dn({
2941
+ In({
2933
2942
  handleDateSelect: t,
2934
2943
  blockPriorDates: this.blockPriorDates || !1
2935
2944
  })
@@ -2937,11 +2946,11 @@ const Sn = ({ bind: e, required: t }) => p({
2937
2946
  }
2938
2947
  }
2939
2948
  );
2940
- function In(e) {
2949
+ function Tn(e) {
2941
2950
  let t = "";
2942
2951
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2943
2952
  }
2944
- function Tn(e) {
2953
+ function Pn(e) {
2945
2954
  if (e.length < 4)
2946
2955
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2947
2956
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2955,7 +2964,7 @@ function Tn(e) {
2955
2964
  meridian: a
2956
2965
  };
2957
2966
  }
2958
- function Pn({ bind: e, required: t }) {
2967
+ function Mn({ bind: e, required: t }) {
2959
2968
  return p({
2960
2969
  cache: "input",
2961
2970
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -2963,7 +2972,7 @@ function Pn({ bind: e, required: t }) {
2963
2972
  required: t
2964
2973
  });
2965
2974
  }
2966
- function Mn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2975
+ function Bn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2967
2976
  return p({
2968
2977
  cache: "timeInput",
2969
2978
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
@@ -2973,14 +2982,14 @@ function Mn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2973
2982
  onState: ["selectedTime", (n) => n || ""]
2974
2983
  });
2975
2984
  }
2976
- function Bn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2985
+ function zn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2977
2986
  return o(
2978
2987
  {
2979
2988
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
2980
2989
  },
2981
2990
  [
2982
- Pn({ bind: e, required: t }),
2983
- Mn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2991
+ Mn({ bind: e, required: t }),
2992
+ Bn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2984
2993
  v(
2985
2994
  {
2986
2995
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2993,23 +3002,23 @@ function Bn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleI
2993
3002
  ]
2994
3003
  );
2995
3004
  }
2996
- function de({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
3005
+ function ue({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
2997
3006
  return o(
2998
3007
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
2999
3008
  e.map((l) => {
3000
- let i = a ? l.toString().padStart(2, "0") : l.toString();
3009
+ let r = a ? l.toString().padStart(2, "0") : l.toString();
3001
3010
  return v({
3002
- text: i,
3011
+ text: r,
3003
3012
  class: "hover:bg-muted/50 rounded-md pr-2 py-1",
3004
- click: () => t({ [n]: i }),
3005
- onState: [s, n, { "bg-muted": i }]
3013
+ click: () => t({ [n]: r }),
3014
+ onState: [s, n, { "bg-muted": r }]
3006
3015
  });
3007
3016
  })
3008
3017
  );
3009
3018
  }
3010
- function zn({ handleTimeSelect: e }) {
3011
- return ye(
3012
- (t, s, n) => new ne(
3019
+ function On({ handleTimeSelect: e }) {
3020
+ return we(
3021
+ (t, s, n) => new ae(
3013
3022
  {
3014
3023
  cache: "dropdown",
3015
3024
  parent: n,
@@ -3024,7 +3033,7 @@ function zn({ handleTimeSelect: e }) {
3024
3033
  { class: "grid grid-cols-3 gap-2 p-4 text-center max-h-[220px] min-w-[240px]" },
3025
3034
  [
3026
3035
  // Hours column
3027
- de({
3036
+ ue({
3028
3037
  items: Array.from({ length: 12 }, (a, l) => l + 1),
3029
3038
  handleTimeSelect: e,
3030
3039
  state: n.state,
@@ -3032,7 +3041,7 @@ function zn({ handleTimeSelect: e }) {
3032
3041
  pad: !0
3033
3042
  }),
3034
3043
  // Minutes column
3035
- de({
3044
+ ue({
3036
3045
  items: Array.from({ length: 60 }, (a, l) => l),
3037
3046
  handleTimeSelect: e,
3038
3047
  state: n.state,
@@ -3040,7 +3049,7 @@ function zn({ handleTimeSelect: e }) {
3040
3049
  pad: !0
3041
3050
  }),
3042
3051
  // AM/PM column
3043
- de({
3052
+ ue({
3044
3053
  items: ["AM", "PM"],
3045
3054
  handleTimeSelect: e,
3046
3055
  state: n.state,
@@ -3054,20 +3063,20 @@ function zn({ handleTimeSelect: e }) {
3054
3063
  )
3055
3064
  );
3056
3065
  }
3057
- function We(e) {
3066
+ function Ve(e) {
3058
3067
  if (!e)
3059
3068
  return { hour: null, minute: null, meridian: null };
3060
3069
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
3061
3070
  if (!s)
3062
3071
  return { hour: null, minute: null, meridian: null };
3063
- let [, n, a, , l] = s, i = parseInt(n, 10), c = parseInt(a, 10);
3064
- return i < 0 || i > 23 || c < 0 || c > 59 ? { hour: null, minute: null, meridian: null } : (l ? (l = l.toUpperCase(), l === "PM" && i < 12 ? i += 12 : l === "AM" && i === 12 && (i = 12)) : i === 0 ? (l = "AM", i = 12) : i < 12 ? l = "AM" : i === 12 ? l = "PM" : (l = "PM", i -= 12), {
3065
- hour: i.toString().padStart(2, "0"),
3072
+ let [, n, a, , l] = s, r = parseInt(n, 10), c = parseInt(a, 10);
3073
+ return r < 0 || r > 23 || c < 0 || c > 59 ? { hour: null, minute: null, meridian: null } : (l ? (l = l.toUpperCase(), l === "PM" && r < 12 ? r += 12 : l === "AM" && r === 12 && (r = 12)) : r === 0 ? (l = "AM", r = 12) : r < 12 ? l = "AM" : r === 12 ? l = "PM" : (l = "PM", r -= 12), {
3074
+ hour: r.toString().padStart(2, "0"),
3066
3075
  minute: c.toString().padStart(2, "0"),
3067
3076
  meridian: l
3068
3077
  });
3069
3078
  }
3070
- const Mo = N(
3079
+ const Bo = N(
3071
3080
  {
3072
3081
  /**
3073
3082
  * The initial shallow state of the TimePicker.
@@ -3075,7 +3084,7 @@ const Mo = N(
3075
3084
  * @member {object} state
3076
3085
  */
3077
3086
  state() {
3078
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = We(e);
3087
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ve(e);
3079
3088
  return {
3080
3089
  selectedTime: e,
3081
3090
  open: !1,
@@ -3091,7 +3100,7 @@ const Mo = N(
3091
3100
  */
3092
3101
  after() {
3093
3102
  if (this.input.value) {
3094
- const { hour: e, minute: t, meridian: s } = We(this.input.value);
3103
+ const { hour: e, minute: t, meridian: s } = Ve(this.input.value);
3095
3104
  this.state.set({
3096
3105
  hour: e,
3097
3106
  minute: t,
@@ -3115,8 +3124,8 @@ const Mo = N(
3115
3124
  * @param {Event} e
3116
3125
  */
3117
3126
  handleInputChange(e) {
3118
- let t = e.target.value.replace(/[^\d]/g, ""), s = In(t);
3119
- const n = Tn(t);
3127
+ let t = e.target.value.replace(/[^\d]/g, ""), s = Tn(t);
3128
+ const n = Pn(t);
3120
3129
  n.formattedTime && (s = n.formattedTime, this.state.set({
3121
3130
  hour: n.hour,
3122
3131
  minute: n.minute,
@@ -3152,7 +3161,7 @@ const Mo = N(
3152
3161
  return o(
3153
3162
  { class: "relative w-full max-w-[320px]" },
3154
3163
  [
3155
- Bn({
3164
+ zn({
3156
3165
  toggleOpen: this.toggleOpen.bind(this),
3157
3166
  bind: this.bind,
3158
3167
  required: this.required,
@@ -3160,18 +3169,18 @@ const Mo = N(
3160
3169
  handleInputFocus: this.handleInputFocus.bind(this),
3161
3170
  placeholder: this.placeholder
3162
3171
  }),
3163
- zn({
3172
+ On({
3164
3173
  handleTimeSelect: this.handleTimeSelect.bind(this)
3165
3174
  })
3166
3175
  ]
3167
3176
  );
3168
3177
  }
3169
3178
  }
3170
- ), On = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3179
+ ), Nn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3171
3180
  x({ size: "lg" }, e)
3172
- ]), Nn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3173
- X({ class: "text-lg font-semibold" }, e)
3174
- ]), Bo = r((e, t) => bt(
3181
+ ]), Fn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3182
+ Z({ class: "text-lg font-semibold" }, e)
3183
+ ]), zo = i((e, t) => bt(
3175
3184
  {
3176
3185
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3177
3186
  rounded-lg flex flex-auto flex-col
@@ -3184,20 +3193,20 @@ const Mo = N(
3184
3193
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3185
3194
  // Icon and content
3186
3195
  // @ts-ignore
3187
- e.icon && On(e.icon, e.iconColor),
3196
+ e.icon && Nn(e.icon, e.iconColor),
3188
3197
  o({ class: "flex flex-auto flex-col gap-4" }, [
3189
3198
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3190
- Nn(e),
3199
+ Fn(e),
3191
3200
  // @ts-ignore
3192
3201
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3193
3202
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3194
3203
  ]),
3195
3204
  // @ts-ignore
3196
- e.buttons && me({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3205
+ e.buttons && be({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3197
3206
  ])
3198
3207
  ])
3199
3208
  ]
3200
- )), zo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3209
+ )), Oo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3201
3210
  st({ class: "flex flex-auto flex-col" }, [
3202
3211
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3203
3212
  o({ class: "flex flex-auto items-center justify-center" }, [
@@ -3207,9 +3216,9 @@ const Mo = N(
3207
3216
  x({ size: "lg" }, e.icon)
3208
3217
  ])
3209
3218
  ]),
3210
- Z({ class: "py-4 text-center" }, [
3219
+ ee({ class: "py-4 text-center" }, [
3211
3220
  // @ts-ignore
3212
- X({ class: "text-xl font-bold" }, e.title),
3221
+ Z({ class: "text-xl font-bold" }, e.title),
3213
3222
  // @ts-ignore
3214
3223
  k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
3215
3224
  ...t
@@ -3217,39 +3226,39 @@ const Mo = N(
3217
3226
  ])
3218
3227
  ])
3219
3228
  ]));
3220
- r((e, t) => ({
3229
+ i((e, t) => ({
3221
3230
  class: "flex items-center px-4 py-2",
3222
3231
  ...e,
3223
3232
  children: t
3224
3233
  }));
3225
- r(({ value: e, label: t }) => v({
3234
+ i(({ value: e, label: t }) => v({
3226
3235
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-md px-8 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
3227
3236
  onState: ["performance", { active: e }],
3228
3237
  dataSet: ["performance", ["state", e, "active"]],
3229
3238
  click: (s, { state: n }) => n.performance = e
3230
3239
  }, t));
3231
- const Fn = (e, t) => {
3240
+ const Ln = (e, t) => {
3232
3241
  const s = e.toggleAllSelectedRows();
3233
3242
  t.state.checked = !s;
3234
- }, Ln = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3235
- W((t) => new Wt({ class: "mr-2", onChange: (s, n) => Fn(t, n) }))
3236
- ]), An = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3237
- const i = e || "justify-start";
3243
+ }, An = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3244
+ V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
3245
+ ]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3246
+ const r = e || "justify-start";
3238
3247
  return Qe({
3239
3248
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3240
3249
  click: t && (() => a(s))
3241
3250
  }, [
3242
- o({ class: `flex flex-auto w-full items-center ${i}` }, [
3251
+ o({ class: `flex flex-auto w-full items-center ${r}` }, [
3243
3252
  u(n),
3244
3253
  t && E({ class: "ml-2", html: h.arrows.upDown })
3245
3254
  ])
3246
3255
  ]);
3247
- }, Se = (e) => xt([
3256
+ }, $e = (e) => xt([
3248
3257
  pt({
3249
3258
  class: "text-muted-foreground border-b",
3250
3259
  map: [
3251
3260
  e.headers,
3252
- (t) => t.label === "checkbox" ? Ln({ toggle: e.toggle }) : An({
3261
+ (t) => t.label === "checkbox" ? An({ toggle: e.toggle }) : Rn({
3253
3262
  align: t.align,
3254
3263
  sortable: t.sortable,
3255
3264
  key: t.key,
@@ -3258,7 +3267,7 @@ const Fn = (e, t) => {
3258
3267
  })
3259
3268
  ]
3260
3269
  })
3261
- ]), Rn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new Ct({
3270
+ ]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new Ct({
3262
3271
  cache: "list",
3263
3272
  key: e,
3264
3273
  items: t,
@@ -3266,7 +3275,7 @@ const Fn = (e, t) => {
3266
3275
  class: "divide-y divide-border",
3267
3276
  emptyState: a,
3268
3277
  skeleton: l,
3269
- columnCount: i
3278
+ columnCount: r
3270
3279
  });
3271
3280
  class ot extends S {
3272
3281
  /**
@@ -3349,12 +3358,12 @@ class ot extends S {
3349
3358
  return o({ class: "w-full flex flex-auto flex-col" }, [
3350
3359
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3351
3360
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3352
- we({ class: "w-full" }, [
3361
+ ve({ class: "w-full" }, [
3353
3362
  // @ts-ignore
3354
- this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3363
+ this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3355
3364
  // @ts-ignore
3356
3365
  this.customHeader ?? null,
3357
- Rn({
3366
+ jn({
3358
3367
  // @ts-ignore
3359
3368
  key: this.key,
3360
3369
  // @ts-ignore
@@ -3433,7 +3442,7 @@ class ot extends S {
3433
3442
  this.data.selectedRows = [];
3434
3443
  }
3435
3444
  }
3436
- const jn = (e) => new St({
3445
+ const En = (e) => new St({
3437
3446
  cache: "list",
3438
3447
  loadMoreItems: e.loadMoreItems,
3439
3448
  offset: e.offset,
@@ -3446,7 +3455,7 @@ const jn = (e) => new St({
3446
3455
  skeleton: e.skeleton,
3447
3456
  columnCount: e.columnCount
3448
3457
  });
3449
- class En extends ot {
3458
+ class Hn extends ot {
3450
3459
  /**
3451
3460
  * Renders the DataTable component.
3452
3461
  *
@@ -3457,12 +3466,12 @@ class En extends ot {
3457
3466
  return o({ class: "w-full flex flex-auto flex-col" }, [
3458
3467
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3459
3468
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3460
- we({ class: "w-full" }, [
3469
+ ve({ class: "w-full" }, [
3461
3470
  // @ts-ignore
3462
- this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3471
+ this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3463
3472
  // @ts-ignore
3464
3473
  this.customHeader ?? null,
3465
- jn({
3474
+ En({
3466
3475
  // @ts-ignore
3467
3476
  loadMoreItems: this.loadMoreItems,
3468
3477
  // @ts-ignore
@@ -3498,7 +3507,7 @@ class En extends ot {
3498
3507
  this.list.refresh();
3499
3508
  }
3500
3509
  }
3501
- const Oo = r((e) => new En(
3510
+ const No = i((e) => new Hn(
3502
3511
  {
3503
3512
  // @ts-ignore
3504
3513
  cache: e.cache ?? "list",
@@ -3529,7 +3538,7 @@ const Oo = r((e) => new En(
3529
3538
  // @ts-ignore
3530
3539
  skeleton: e.skeleton
3531
3540
  }
3532
- )), Hn = (e) => new $t({
3541
+ )), _n = (e) => new $t({
3533
3542
  cache: "list",
3534
3543
  scrollContainer: e.scrollContainer,
3535
3544
  loadMoreItems: e.loadMoreItems,
@@ -3543,7 +3552,7 @@ const Oo = r((e) => new En(
3543
3552
  skeleton: e.skeleton,
3544
3553
  columnCount: e.columnCount
3545
3554
  });
3546
- class _n extends ot {
3555
+ class Un extends ot {
3547
3556
  /**
3548
3557
  * Renders the DataTable component.
3549
3558
  *
@@ -3554,12 +3563,12 @@ class _n extends ot {
3554
3563
  return o({ class: "w-full flex flex-auto flex-col" }, [
3555
3564
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3556
3565
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3557
- we({ class: "w-full" }, [
3566
+ ve({ class: "w-full" }, [
3558
3567
  // @ts-ignore
3559
- this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3568
+ this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3560
3569
  // @ts-ignore
3561
3570
  this.customHeader ?? null,
3562
- Hn({
3571
+ _n({
3563
3572
  // @ts-ignore
3564
3573
  scrollContainer: this.scrollContainer,
3565
3574
  // @ts-ignore
@@ -3597,7 +3606,7 @@ class _n extends ot {
3597
3606
  this.list.refresh();
3598
3607
  }
3599
3608
  }
3600
- const No = r((e) => new _n(
3609
+ const Fo = i((e) => new Un(
3601
3610
  {
3602
3611
  // @ts-ignore
3603
3612
  cache: e.cache ?? "list",
@@ -3630,10 +3639,10 @@ const No = r((e) => new _n(
3630
3639
  // @ts-ignore
3631
3640
  skeleton: e.skeleton
3632
3641
  }
3633
- )), Un = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3642
+ )), Yn = i(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3634
3643
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3635
3644
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3636
- ])), Yn = () => o({ class: "flex items-center gap-x-1.5" }, [
3645
+ ])), Wn = () => o({ class: "flex items-center gap-x-1.5" }, [
3637
3646
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3638
3647
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3639
3648
  ]),
@@ -3641,17 +3650,17 @@ const No = r((e) => new _n(
3641
3650
  ]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3642
3651
  u("Last seen "),
3643
3652
  yt({ datetime: e }, "3h ago")
3644
- ]), Wn = (e, t) => e === "online" ? Yn() : Vn(t), qn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3653
+ ]), qn = (e, t) => e === "online" ? Wn() : Vn(t), Gn = i(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3645
3654
  k({ class: "text-sm leading-6 m-0" }, e),
3646
- Wn(s, t)
3647
- ])), Gn = (e) => e.split(" ").map((s) => s[0]).join(""), Kn = r((e) => pe({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3655
+ qn(s, t)
3656
+ ])), Kn = (e) => e.split(" ").map((s) => s[0]).join(""), Qn = i((e) => ye({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3648
3657
  o({ class: "flex min-w-0 gap-x-4" }, [
3649
3658
  // @ts-ignore
3650
- zs({ src: e.image, alt: e.name, fallbackText: Gn(e.name) }),
3659
+ Os({ src: e.image, alt: e.name, fallbackText: Kn(e.name) }),
3651
3660
  // @ts-ignore
3652
- Un({ name: e.name, email: e.email })
3661
+ Yn({ name: e.name, email: e.email })
3653
3662
  ]),
3654
- qn({
3663
+ Gn({
3655
3664
  // @ts-ignore
3656
3665
  role: e.role,
3657
3666
  // @ts-ignore
@@ -3659,16 +3668,16 @@ const No = r((e) => new _n(
3659
3668
  // @ts-ignore
3660
3669
  status: e.status
3661
3670
  })
3662
- ])), Fo = r((e) => new Dt({
3671
+ ])), Lo = i((e) => new Dt({
3663
3672
  cache: "list",
3664
3673
  key: "name",
3665
3674
  // @ts-ignore
3666
3675
  items: e.users,
3667
3676
  role: "list",
3668
3677
  class: "divide-y divide-border",
3669
- rowItem: Kn
3678
+ rowItem: Qn
3670
3679
  }));
3671
- class Qn extends S {
3680
+ class Jn extends S {
3672
3681
  /**
3673
3682
  * This will declare the props for the compiler.
3674
3683
  *
@@ -3729,14 +3738,14 @@ class Qn extends S {
3729
3738
  });
3730
3739
  }
3731
3740
  }
3732
- const Jn = r(({ options: e, click: t }, s) => ({
3741
+ const Xn = i(({ options: e, click: t }, s) => ({
3733
3742
  tag: "li",
3734
3743
  ...{
3735
3744
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3736
3745
  click: t
3737
3746
  },
3738
3747
  children: s
3739
- })), Xn = (e, t = null, s = !1) => [
3748
+ })), Zn = (e, t = null, s = !1) => [
3740
3749
  t && o({
3741
3750
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3742
3751
  onState: ["selected", {
@@ -3780,7 +3789,7 @@ class lt extends S {
3780
3789
  */
3781
3790
  render() {
3782
3791
  const t = !this.options && this.callBack;
3783
- return Jn(
3792
+ return Xn(
3784
3793
  { options: this.options, click: t },
3785
3794
  [
3786
3795
  this.addLink()
@@ -3794,7 +3803,7 @@ class lt extends S {
3794
3803
  * @protected
3795
3804
  */
3796
3805
  addLink() {
3797
- const t = this.options && this.options.length > 0, s = this.content || Xn(String(this.label), this.icon, t);
3806
+ const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
3798
3807
  return this.href ? new vt(
3799
3808
  {
3800
3809
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
@@ -3804,7 +3813,7 @@ class lt extends S {
3804
3813
  exact: this.exact || !1
3805
3814
  },
3806
3815
  s
3807
- ) : new Qn({
3816
+ ) : new Jn({
3808
3817
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3809
3818
  cache: "link",
3810
3819
  checkCallBack: this.checkCallBack
@@ -3822,10 +3831,10 @@ class lt extends S {
3822
3831
  this.link.update(t);
3823
3832
  }
3824
3833
  }
3825
- const Zn = r(({ map: e }, t) => ee({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3834
+ const ea = i(({ map: e }, t) => te({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3826
3835
  qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3827
3836
  ]));
3828
- class ea extends S {
3837
+ class ta extends S {
3829
3838
  /**
3830
3839
  * This will declare the props for the compiler.
3831
3840
  *
@@ -3841,8 +3850,8 @@ class ea extends S {
3841
3850
  */
3842
3851
  render() {
3843
3852
  const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
3844
- return xe({ class: `navigation flex flex-auto flex-col ${s}` }, [
3845
- ee({
3853
+ return pe({ class: `navigation flex flex-auto flex-col ${s}` }, [
3854
+ te({
3846
3855
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3847
3856
  map: t
3848
3857
  }),
@@ -3874,7 +3883,7 @@ class ea extends S {
3874
3883
  */
3875
3884
  addGroup(t) {
3876
3885
  const s = this.mapOptions(t.options);
3877
- return Zn({ map: s }, t.group);
3886
+ return ea({ map: s }, t.group);
3878
3887
  }
3879
3888
  /**
3880
3889
  * This will add a link.
@@ -3886,7 +3895,7 @@ class ea extends S {
3886
3895
  return new lt(t);
3887
3896
  }
3888
3897
  }
3889
- class rt extends ea {
3898
+ class rt extends ta {
3890
3899
  onCreated() {
3891
3900
  this.links = [];
3892
3901
  }
@@ -3897,7 +3906,7 @@ class rt extends ea {
3897
3906
  * @returns {object}
3898
3907
  */
3899
3908
  setupSubNav(t) {
3900
- return new na(
3909
+ return new aa(
3901
3910
  {
3902
3911
  parentLink: t,
3903
3912
  options: t.options
@@ -3932,11 +3941,11 @@ class rt extends ea {
3932
3941
  };
3933
3942
  }
3934
3943
  }
3935
- const ta = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), sa = (e, t) => {
3944
+ const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
3936
3945
  const s = e.link.panel.pathname;
3937
- return !s && e.isSelected() ? !0 : e.exact ? t === s : ta(s, t);
3946
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
3938
3947
  };
3939
- class na extends rt {
3948
+ class aa extends rt {
3940
3949
  /**
3941
3950
  * This will declare the props for the compiler.
3942
3951
  *
@@ -3952,8 +3961,8 @@ class na extends rt {
3952
3961
  */
3953
3962
  render() {
3954
3963
  const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
3955
- return xe({ class: t, onState: this.onState() }, [
3956
- ee({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3964
+ return pe({ class: t, onState: this.onState() }, [
3965
+ te({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3957
3966
  ]);
3958
3967
  }
3959
3968
  /**
@@ -3965,7 +3974,7 @@ class na extends rt {
3965
3974
  addWatcher() {
3966
3975
  return {
3967
3976
  watch: {
3968
- value: ["[[path]]", oe.data],
3977
+ value: ["[[path]]", X.data],
3969
3978
  callBack: this.updateLinks.bind(this)
3970
3979
  }
3971
3980
  };
@@ -4006,7 +4015,7 @@ class na extends rt {
4006
4015
  * @returns {void}
4007
4016
  */
4008
4017
  afterSetup() {
4009
- const t = oe.data.path;
4018
+ const t = X.data.path;
4010
4019
  this.updateLinks(t);
4011
4020
  }
4012
4021
  /**
@@ -4018,27 +4027,27 @@ class na extends rt {
4018
4027
  updateLinks(t) {
4019
4028
  let s = !1;
4020
4029
  for (const n of this.links)
4021
- if (n.rendered && (s = sa(n, t), s === !0))
4030
+ if (n.rendered && (s = na(n, t), s === !0))
4022
4031
  break;
4023
4032
  this.parentLink.update(s);
4024
4033
  }
4025
4034
  }
4026
- const aa = (e) => be({ class: "text-lg ml-2" }, e), oa = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4035
+ const oa = (e) => xe({ class: "text-lg ml-2" }, e), la = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4027
4036
  b({
4028
4037
  variant: "icon",
4029
4038
  class: "m-2",
4030
4039
  click: (t, { state: s }) => s.toggle("open"),
4031
4040
  icon: h.arrows.left
4032
4041
  }),
4033
- e.title && aa(e.title)
4034
- ]), la = () => o({
4042
+ e.title && oa(e.title)
4043
+ ]), ra = () => o({
4035
4044
  class: `
4036
4045
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4037
4046
  transition-opacity duration-200
4038
4047
  `,
4039
4048
  click: (e, { state: t }) => t.open = !1
4040
4049
  });
4041
- class ra extends S {
4050
+ class ia extends S {
4042
4051
  /**
4043
4052
  * This will declare the props for the compiler.
4044
4053
  *
@@ -4057,7 +4066,7 @@ class ra extends S {
4057
4066
  class: "fixed inset-0 z-50",
4058
4067
  style: "[[typeClass]]"
4059
4068
  }, [
4060
- la(),
4069
+ ra(),
4061
4070
  // Popover Content
4062
4071
  o({
4063
4072
  class: `
@@ -4066,7 +4075,7 @@ class ra extends S {
4066
4075
  dataSet: ["open", ["expanded", !0, "true"]]
4067
4076
  }, [
4068
4077
  o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4069
- oa({ title: this.title }),
4078
+ la({ title: this.title }),
4070
4079
  o({ class: "flex flex-auto flex-col" }, this.children)
4071
4080
  ])
4072
4081
  ])
@@ -4110,9 +4119,9 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4110
4119
  };
4111
4120
  }, click: (e, { state: t }) => t.toggle("open") }, [
4112
4121
  x({}, h.bar.three)
4113
- ]), ia = (e) => be({ class: "text-lg ml-2" }, e), ca = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4122
+ ]), ca = (e) => xe({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4114
4123
  it(),
4115
- e.title && ia(e.title)
4124
+ e.title && ca(e.title)
4116
4125
  ]), ct = (e, t) => {
4117
4126
  e.forEach((s) => {
4118
4127
  if (s.options) {
@@ -4125,8 +4134,8 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4125
4134
  P(
4126
4135
  "open",
4127
4136
  (t) => t ? [
4128
- new ra({ title: e.title }, [
4129
- W(({ state: s }) => {
4137
+ new ia({ title: e.title }, [
4138
+ V(({ state: s }) => {
4130
4139
  const n = (a) => s.open = !1;
4131
4140
  return ct(e.options, n), new rt(
4132
4141
  {
@@ -4137,23 +4146,23 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4137
4146
  ])
4138
4147
  ] : null
4139
4148
  )
4140
- ]), Lo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4149
+ ]), Ao = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4141
4150
  o([
4142
4151
  it(),
4143
4152
  dt(e)
4144
4153
  ])
4145
- ])), Ao = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4154
+ ])), Ro = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4146
4155
  o({ class: "flex flex-auto flex-col w-full" }, [
4147
- ca(e),
4156
+ da(e),
4148
4157
  dt(e)
4149
4158
  ])
4150
- ])), Ro = r((e) => {
4159
+ ])), jo = i((e) => {
4151
4160
  const t = e.margin || "m-4 ml-0";
4152
4161
  return o({ class: `flex-none ${t}` }, [
4153
4162
  b({ variant: "back", class: "ghost", ...e })
4154
4163
  ]);
4155
4164
  });
4156
- class da extends S {
4165
+ class ua extends S {
4157
4166
  /**
4158
4167
  * This will declare the props for the compiler.
4159
4168
  *
@@ -4254,7 +4263,7 @@ Xe.addType("dockableOverlay", (e) => {
4254
4263
  const t = e.component;
4255
4264
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4256
4265
  });
4257
- class jo extends da {
4266
+ class Eo extends ua {
4258
4267
  /**
4259
4268
  * This will stop presistence.
4260
4269
  *
@@ -4359,7 +4368,7 @@ class jo extends da {
4359
4368
  this.state.docked = this.canDock();
4360
4369
  }
4361
4370
  }
4362
- const ua = r(({ index: e, click: t, state: s }, n) => pe({
4371
+ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4363
4372
  class: "p-2 cursor-pointer hover:bg-muted/50",
4364
4373
  onState: [
4365
4374
  [s, "selectedIndex", {
@@ -4368,10 +4377,10 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4368
4377
  }]
4369
4378
  ],
4370
4379
  click: () => t(e)
4371
- }, n)), ha = r(({ selectOption: e, state: t }) => ee({
4380
+ }, n)), fa = i(({ selectOption: e, state: t }) => te({
4372
4381
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4373
- for: ["filteredOptions", (s, n) => ua({ index: n, click: e, state: t }, s.label)]
4374
- })), fa = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4382
+ for: ["filteredOptions", (s, n) => ha({ index: n, click: e, state: t }, s.label)]
4383
+ })), ga = i((e) => o({ class: "relative flex flex-auto items-center" }, [
4375
4384
  F({
4376
4385
  cache: "input",
4377
4386
  // @ts-ignore
@@ -4396,20 +4405,20 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4396
4405
  // @ts-ignore
4397
4406
  x({ size: "sm" }, e.icon)
4398
4407
  ])
4399
- ])), ga = (e) => o({
4408
+ ])), ma = (e) => o({
4400
4409
  class: "relative flex fle-auto flex-col",
4401
4410
  onState: ["open", (t, s, n) => {
4402
4411
  if (t)
4403
- return new ne({
4412
+ return new ae({
4404
4413
  cache: "dropdown",
4405
4414
  parent: n,
4406
4415
  button: n.input,
4407
4416
  size: "xl"
4408
4417
  }, [
4409
- ha(e)
4418
+ fa(e)
4410
4419
  ]);
4411
4420
  }]
4412
- }), Eo = M(
4421
+ }), Ho = M(
4413
4422
  {
4414
4423
  /**
4415
4424
  * This will set up the data object.
@@ -4506,7 +4515,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4506
4515
  */
4507
4516
  render() {
4508
4517
  return o({ class: "relative w-full max-w-md" }, [
4509
- fa({
4518
+ ga({
4510
4519
  // @ts-ignore
4511
4520
  state: this.state,
4512
4521
  // @ts-ignore
@@ -4518,7 +4527,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4518
4527
  // @ts-ignore
4519
4528
  handleKeyDown: this.handleKeyDown.bind(this)
4520
4529
  }),
4521
- ga({
4530
+ ma({
4522
4531
  // @ts-ignore
4523
4532
  state: this.state,
4524
4533
  // @ts-ignore
@@ -4529,7 +4538,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4529
4538
  ]);
4530
4539
  }
4531
4540
  }
4532
- ), Ho = r((e) => {
4541
+ ), _o = i((e) => {
4533
4542
  const t = e.icon ?? h.magnifyingGlass.default;
4534
4543
  return o({
4535
4544
  // @ts-ignore
@@ -4565,7 +4574,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4565
4574
  })
4566
4575
  ]);
4567
4576
  });
4568
- class ma extends S {
4577
+ class ba extends S {
4569
4578
  /**
4570
4579
  * This will declare the props for the compiler.
4571
4580
  *
@@ -4583,7 +4592,7 @@ class ma extends S {
4583
4592
  return o({ class: `${this.class || ""}` }, this.children);
4584
4593
  }
4585
4594
  }
4586
- class ba extends ma {
4595
+ class xa extends ba {
4587
4596
  /**
4588
4597
  * This will be called every time the route
4589
4598
  * is activated.
@@ -4593,15 +4602,15 @@ class ba extends ma {
4593
4602
  update(t) {
4594
4603
  }
4595
4604
  }
4596
- const xa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4605
+ const pa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4597
4606
  tag: "section",
4598
4607
  ...e,
4599
4608
  children: t
4600
- })), pa = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4609
+ })), ya = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4601
4610
  wt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4602
4611
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4603
4612
  ]));
4604
- class _o extends ba {
4613
+ class Uo extends xa {
4605
4614
  /**
4606
4615
  * This will declare the props for the compiler.
4607
4616
  *
@@ -4616,8 +4625,8 @@ class _o extends ba {
4616
4625
  * @returns {object}
4617
4626
  */
4618
4627
  render() {
4619
- return xa([
4620
- pa({
4628
+ return pa([
4629
+ ya({
4621
4630
  title: this.title,
4622
4631
  description: this.description
4623
4632
  }),
@@ -4626,131 +4635,131 @@ class _o extends ba {
4626
4635
  }
4627
4636
  }
4628
4637
  export {
4629
- fo as $,
4630
- io as A,
4631
- Ro as B,
4632
- on as C,
4638
+ go as $,
4639
+ co as A,
4640
+ jo as B,
4641
+ ln as C,
4633
4642
  ot as D,
4634
- mo as E,
4635
- Bo as F,
4636
- jo as G,
4637
- $o as H,
4638
- Oo as I,
4639
- Ha as J,
4640
- zo as K,
4641
- za as L,
4642
- eo as M,
4643
- Na as N,
4644
- se as O,
4645
- La as P,
4646
- Fa as Q,
4647
- ja as R,
4648
- Oa as S,
4649
- Ra as T,
4650
- Aa as U,
4643
+ bo as E,
4644
+ zo as F,
4645
+ Eo as G,
4646
+ Do as H,
4647
+ No as I,
4648
+ _a as J,
4649
+ Oo as K,
4650
+ Oa as L,
4651
+ to as M,
4652
+ Fa as N,
4653
+ ne as O,
4654
+ Aa as P,
4655
+ La as Q,
4656
+ Ea as R,
4657
+ Na as S,
4658
+ ja as T,
4659
+ Ra as U,
4651
4660
  st as V,
4652
- co as W,
4653
- ho as X,
4654
- uo as Y,
4655
- ys as Z,
4656
- bs as _,
4657
- zs as a,
4658
- Kn as a$,
4659
- Et as a0,
4660
- gs as a1,
4661
- ms as a2,
4662
- xs as a3,
4661
+ uo as W,
4662
+ fo as X,
4663
+ ho as Y,
4664
+ ws as Z,
4665
+ xs as _,
4666
+ Os as a,
4667
+ Qn as a$,
4668
+ Ht as a0,
4669
+ ms as a1,
4670
+ bs as a2,
4671
+ ps as a3,
4663
4672
  R as a4,
4664
- _o as a5,
4665
- An as a6,
4666
- Xa as a7,
4667
- ue as a8,
4668
- ls as a9,
4669
- oa as aA,
4670
- ao as aB,
4671
- Ua as aC,
4672
- Cn as aD,
4673
- to as aE,
4674
- oo as aF,
4675
- lo as aG,
4676
- No as aH,
4677
- Eo as aI,
4678
- fa as aJ,
4679
- so as aK,
4680
- Ho as aL,
4681
- bo as aM,
4682
- na as aN,
4683
- Se as aO,
4684
- Ea as aP,
4685
- _a as aQ,
4686
- wo as aR,
4673
+ Uo as a5,
4674
+ Rn as a6,
4675
+ Za as a7,
4676
+ he as a8,
4677
+ rs as a9,
4678
+ la as aA,
4679
+ oo as aB,
4680
+ Ya as aC,
4681
+ Sn as aD,
4682
+ so as aE,
4683
+ lo as aF,
4684
+ ro as aG,
4685
+ Fo as aH,
4686
+ Ho as aI,
4687
+ ga as aJ,
4688
+ no as aK,
4689
+ _o as aL,
4690
+ xo as aM,
4691
+ aa as aN,
4692
+ $e as aO,
4693
+ Ha as aP,
4694
+ Ua as aQ,
4695
+ vo as aR,
4687
4696
  Va as aS,
4688
- Mo as aT,
4689
- ca as aU,
4690
- vo as aV,
4691
- Ta as aW,
4692
- ro as aX,
4697
+ Bo as aT,
4698
+ da as aU,
4699
+ ko as aV,
4700
+ Pa as aW,
4701
+ io as aX,
4693
4702
  x as aY,
4694
- Ja as aZ,
4695
- Fo as a_,
4696
- ko as aa,
4703
+ Xa as aZ,
4704
+ Lo as a_,
4705
+ Co as aa,
4697
4706
  rt as ab,
4698
4707
  F as ac,
4699
- jt as ad,
4700
- Ba as ae,
4701
- Co as af,
4708
+ Et as ad,
4709
+ za as ae,
4710
+ So as af,
4702
4711
  lt as ag,
4703
- xa as ah,
4704
- Pe as ai,
4705
- Us as aj,
4706
- Lo as ak,
4707
- Ao as al,
4708
- nn as am,
4709
- qa as an,
4712
+ pa as ah,
4713
+ Me as ai,
4714
+ Ys as aj,
4715
+ Ao as ak,
4716
+ Ro as al,
4717
+ an as am,
4718
+ Ga as an,
4710
4719
  it as ao,
4711
- Qn as ap,
4712
- ea as aq,
4713
- Zn as ar,
4714
- ra as as,
4715
- yo as at,
4716
- Ka as au,
4717
- da as av,
4718
- ma as aw,
4719
- Qa as ax,
4720
- Ys as ay,
4721
- ne as az,
4722
- la as b,
4720
+ Jn as ap,
4721
+ ta as aq,
4722
+ ea as ar,
4723
+ ia as as,
4724
+ wo as at,
4725
+ Qa as au,
4726
+ ua as av,
4727
+ ba as aw,
4728
+ Ja as ax,
4729
+ Ws as ay,
4730
+ ae as az,
4731
+ ra as b,
4723
4732
  Ze as b0,
4724
4733
  N as b1,
4725
- Ga as b2,
4726
- qs as b3,
4727
- fs as b4,
4728
- Da as b5,
4729
- $a as b6,
4734
+ Ka as b2,
4735
+ Gs as b3,
4736
+ gs as b4,
4737
+ Ia as b5,
4738
+ Da as b6,
4730
4739
  z as b7,
4731
- po as b8,
4732
- Ia as c,
4733
- ba as d,
4734
- So as e,
4740
+ yo as b8,
4741
+ Ta as c,
4742
+ xa as d,
4743
+ $o as e,
4735
4744
  b as f,
4736
- Zs as g,
4737
- Rt as h,
4738
- Wt as i,
4739
- Ln as j,
4740
- Ma as k,
4741
- no as l,
4742
- Pa as m,
4743
- Za as n,
4744
- xo as o,
4745
- Do as p,
4745
+ en as g,
4746
+ jt as h,
4747
+ qt as i,
4748
+ An as j,
4749
+ Ba as k,
4750
+ ao as l,
4751
+ Ma as m,
4752
+ eo as n,
4753
+ po as o,
4754
+ Io as p,
4746
4755
  Vs as q,
4747
- Io as r,
4748
- Rn as s,
4749
- Ya as t,
4750
- To as u,
4751
- Po as v,
4752
- Wa as w,
4753
- ie as x,
4754
- tn as y,
4755
- go as z
4756
+ To as r,
4757
+ jn as s,
4758
+ Wa as t,
4759
+ Po as u,
4760
+ Mo as v,
4761
+ qa as w,
4762
+ ce as x,
4763
+ sn as y,
4764
+ mo as z
4756
4765
  };