@base-framework/ui 1.2.46 → 1.2.49

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 M, 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 P, 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
+ }, Me = {
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
+ }, Pe = i((e) => {
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = Ie[t] || Ie.sm, a = Te[t] || Te.sm, l = Me[s] || Me.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 ? Pe({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
69
  }) : typeof t == "string" ? Pe({
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 = {}) => {
154
- const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
153
+ }, Mt = (e) => Be[e] || Be.gray, Pt = (e, t = {}) => {
154
+ const s = Mt(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 = Pt(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 || []
@@ -176,9 +176,9 @@ class Ze extends S {
176
176
  }
177
177
  const N = (e) => (
178
178
  /** @type {VeilComponentConstructor} */
179
- M(e, Ze)
179
+ P(e, Ze)
180
180
  );
181
- class Ta extends Ze {
181
+ class Ma 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;
@@ -221,9 +221,9 @@ class Ta extends Ze {
221
221
  // @ts-ignore
222
222
  class: `toggle-btn inline-flex items-center gap-1.5 bg-transparent border-0 p-0 cursor-pointer text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${this.class || ""}`
223
223
  }, [
224
- P(
224
+ M(
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
  ]);
@@ -268,23 +268,23 @@ 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
275
275
  class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${l}${f ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
276
276
  }, [
277
- P("active", (w) => [
277
+ M("active", (w) => [
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
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,15 +460,15 @@ 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" }, [
455
- P(
463
+ }), Yt = () => u({ class: "absolute text-xs pointer-events-none" }, [
464
+ M(
456
465
  "checked",
457
466
  (e) => e ? E({
458
467
  class: "w-2 h-2 pointer-events-none",
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 = P(
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,19 +861,22 @@ 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, loading: a = "lazy", decoding: l = "async", fetchPriority: r = "auto" }) => !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,
861
- load: (a) => a.target.style.visibility = "visible",
870
+ loading: a,
871
+ decoding: l,
872
+ fetchPriority: r,
873
+ load: (c) => c.target.style.visibility = "visible",
862
874
  /**
863
875
  * If there's an error loading the image, hide it.
864
876
  */
865
- 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 = `
877
+ error: (c) => c.target.style.visibility = "hidden"
878
+ })), is = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
879
+ const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
868
880
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
869
881
  <!-- Background Circle -->
870
882
  <circle
@@ -904,22 +916,22 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
904
916
  `;
905
917
  return o({
906
918
  class: "circle-graph text-inherit",
907
- html: i
919
+ html: r
908
920
  });
909
- }, no = r((e) => {
921
+ }, ao = i((e) => {
910
922
  const t = e.progress || 0, s = e.class || "", n = Ne(t, s);
911
923
  return o({
912
924
  class: "circle-graph-wrap",
913
925
  onSet: [
914
926
  // @ts-ignore
915
927
  e.prop,
916
- (a) => (a = rs(a), a ? Ne(a, s) : n)
928
+ (a) => (a = is(a), a ? Ne(a, s) : n)
917
929
  ]
918
930
  }, [n]);
919
- }), is = () => W(({ state: e }) => o({
931
+ }), cs = () => V(({ state: e }) => o({
920
932
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
921
933
  style: ["width: [[progress]]%;", e]
922
- })), ao = N(
934
+ })), oo = N(
923
935
  {
924
936
  /**
925
937
  * This will render the progress bar component.
@@ -928,7 +940,7 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
928
940
  */
929
941
  render() {
930
942
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
931
- is()
943
+ cs()
932
944
  ]);
933
945
  },
934
946
  /**
@@ -971,18 +983,18 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
971
983
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
972
984
  }
973
985
  }
974
- ), oo = r((e = {}) => {
986
+ ), lo = i((e = {}) => {
975
987
  const {
976
988
  class: t = "",
977
989
  background: s = !0,
978
990
  blur: n = !0,
979
991
  backgroundClass: a = "bg-background/95",
980
992
  blurClass: l = "backdrop-blur",
981
- zIndexClass: i = "z-9999",
993
+ zIndexClass: r = "z-9999",
982
994
  style: c = ""
983
995
  } = e, f = [
984
996
  "sticky bottom-0 left-0 right-0 w-full",
985
- i,
997
+ r,
986
998
  s ? a : "",
987
999
  n ? l : "",
988
1000
  t
@@ -992,18 +1004,18 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
992
1004
  style: m,
993
1005
  "aria-hidden": "true"
994
1006
  });
995
- }), lo = r((e = {}) => {
1007
+ }), ro = i((e = {}) => {
996
1008
  const {
997
1009
  class: t = "",
998
1010
  background: s = !0,
999
1011
  blur: n = !0,
1000
1012
  backgroundClass: a = "bg-background/95",
1001
1013
  blurClass: l = "backdrop-blur",
1002
- zIndexClass: i = "z-9999",
1014
+ zIndexClass: r = "z-9999",
1003
1015
  style: c = ""
1004
1016
  } = e, f = [
1005
1017
  "fixed top-0 left-0 right-0 w-full",
1006
- i,
1018
+ r,
1007
1019
  s ? a : "",
1008
1020
  n ? l : "",
1009
1021
  t
@@ -1022,8 +1034,8 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1022
1034
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1023
1035
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1024
1036
  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);
1037
+ }, ds = (e) => Fe[String(e)] || Fe.top, io = i(({ position: e = "top", content: t }, s) => {
1038
+ const n = ds(e);
1027
1039
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1028
1040
  ...s,
1029
1041
  // Tooltip box
@@ -1060,25 +1072,25 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1060
1072
  bgColor: "bg-muted/10",
1061
1073
  iconColor: "text-muted-foreground"
1062
1074
  }
1063
- }, ds = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1075
+ }, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1064
1076
  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;
1077
+ ]), 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" }) => {
1078
+ const { borderColor: a, bgColor: l, iconColor: r } = Le[n] || Le.default;
1067
1079
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1068
1080
  // Icon and content
1069
- s && ds(s, i),
1081
+ s && us(s, r),
1070
1082
  o({ class: "flex flex-col" }, [
1071
- us(e),
1072
- hs(t)
1083
+ hs(e),
1084
+ fs(t)
1073
1085
  ])
1074
1086
  ]);
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;
1087
+ }), gs = (e, t) => {
1088
+ const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, r = globalThis.scrollY;
1089
+ let c = s.left + l, f = s.bottom + r;
1078
1090
  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 };
1091
+ 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
1092
  };
1081
- class ne extends S {
1093
+ class ae extends S {
1082
1094
  /**
1083
1095
  * This will set up the data.
1084
1096
  *
@@ -1155,7 +1167,7 @@ class ne extends S {
1155
1167
  * @returns {void}
1156
1168
  */
1157
1169
  updatePosition() {
1158
- const t = this.button ?? null, s = this.panel, n = fs(t, s);
1170
+ const t = this.button ?? null, s = this.panel, n = gs(t, s);
1159
1171
  this.data.position = n;
1160
1172
  }
1161
1173
  /**
@@ -1207,28 +1219,28 @@ class ne extends S {
1207
1219
  this?.panel?.hidePopover();
1208
1220
  }
1209
1221
  }
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" }, [
1222
+ 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
1223
  // @ts-ignore
1212
- e.title && X({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1224
+ e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1213
1225
  // @ts-ignore
1214
1226
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1215
1227
  ...t
1216
- ])), uo = r((e, t = []) => (
1228
+ ])), ho = i((e, t = []) => (
1217
1229
  // @ts-ignore
1218
- Et({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1230
+ Ht({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1219
1231
  o({ class: "flex flex-col gap-y-6" }, t)
1220
1232
  ])
1221
- )), ho = r((e, t = []) => {
1233
+ )), fo = i((e, t = []) => {
1222
1234
  const s = e.border ? "border-t" : "";
1223
1235
  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) ? {
1236
+ }), 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
1237
  ...n,
1226
1238
  aria: {
1227
1239
  invalid: ["hasError"]
1228
1240
  },
1229
1241
  invalid: s,
1230
1242
  input: t
1231
- } : n), ys = r((e, t) => {
1243
+ } : n), ws = i((e, t) => {
1232
1244
  const a = tt(t, (l) => {
1233
1245
  l.target.checkValidity() && e.setError(null);
1234
1246
  }, (l) => {
@@ -1238,7 +1250,7 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1238
1250
  ...e,
1239
1251
  class: "w-full"
1240
1252
  }, a);
1241
- }), fo = N(
1253
+ }), go = N(
1242
1254
  {
1243
1255
  /**
1244
1256
  * The initial state of the FormField.
@@ -1263,41 +1275,41 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1263
1275
  this.state.error = l, this.state.hasError = !!l;
1264
1276
  };
1265
1277
  return o({ class: "flex flex-auto gap-y-4" }, [
1266
- gs([
1267
- ms({ htmlFor: t }, s),
1268
- ys({
1278
+ ms([
1279
+ bs({ htmlFor: t }, s),
1280
+ ws({
1269
1281
  id: t,
1270
1282
  name: e,
1271
1283
  value: this.state.value,
1272
1284
  setError: a
1273
1285
  }, this.children),
1274
- n && bs({ id: this.getId("description") }, n),
1275
- o({ onState: ["error", (l) => l && xs(l)] })
1286
+ n && xs({ id: this.getId("description") }, n),
1287
+ o({ onState: ["error", (l) => l && ps(l)] })
1276
1288
  ])
1277
1289
  ]);
1278
1290
  }
1279
1291
  }
1280
- ), ws = (e, t, s = null) => {
1292
+ ), vs = (e, t, s = null) => {
1281
1293
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1282
- }, st = r(
1294
+ }, st = i(
1283
1295
  (e, t) => (
1284
1296
  // @ts-ignore
1285
- mt({ ...e, submit: (s, n) => ws(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1297
+ mt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1286
1298
  )
1287
- ), go = r((e, t) => (
1299
+ ), mo = i((e, t) => (
1288
1300
  // @ts-ignore
1289
1301
  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" }, [
1302
+ )), bo = i((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1291
1303
  // @ts-ignore
1292
- e.title && X({ class: "font-semibold" }, e.title),
1304
+ e.title && Z({ class: "font-semibold" }, e.title),
1293
1305
  ...t
1294
- ])), bo = (e, t) => o({ class: "flex justify-between" }, [
1306
+ ])), xo = (e, t) => o({ class: "flex justify-between" }, [
1295
1307
  u({ class: "text-muted-foreground" }, e),
1296
1308
  u(t)
1297
- ]), xo = (e, t) => o({ class: "flex" }, [
1309
+ ]), po = (e, t) => o({ class: "flex" }, [
1298
1310
  u({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1299
1311
  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" }, [
1312
+ ]), 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
1313
  /**
1302
1314
  * Back Button (Mobile Only)
1303
1315
  */
@@ -1305,7 +1317,7 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1305
1317
  variant: "icon",
1306
1318
  icon: h.arrows.left,
1307
1319
  class: "mr-2 p-0 flex sm:hidden",
1308
- click: (i, c) => c.close()
1320
+ click: (r, c) => c.close()
1309
1321
  }),
1310
1322
  /**
1311
1323
  * Icon Container
@@ -1315,31 +1327,31 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1315
1327
  ]),
1316
1328
  o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1317
1329
  o({ class: `flex flex-auto flex-col min-w-0 ${l ? "items-center" : ""}` }, [
1318
- X({ class: "text-lg font-semibold m-0 truncate" }, e),
1330
+ Z({ class: "text-lg font-semibold m-0 truncate" }, e),
1319
1331
  t && o({ class: "text-sm text-muted-foreground truncate" }, t)
1320
1332
  ]),
1321
1333
  o({ class: "flex flex-none items-center gap-2" }, a)
1322
1334
  ])
1323
- ])), po = r((e, t) => {
1335
+ ])), yo = i((e, t) => {
1324
1336
  const s = e.class?.includes("drawer");
1325
1337
  return o({
1326
1338
  popover: "manual",
1327
1339
  // @ts-ignore
1328
1340
  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);
1341
+ click: (l, r) => {
1342
+ l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
1331
1343
  }
1332
1344
  }, [
1333
1345
  st({
1334
1346
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1335
1347
  // @ts-ignore
1336
- submit: (l, i) => e.onSubmit && e.onSubmit(i),
1348
+ submit: (l, r) => e.onSubmit && e.onSubmit(r),
1337
1349
  cache: "modalContent"
1338
1350
  }, [
1339
- vs(e),
1351
+ ks(e),
1340
1352
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1341
1353
  // @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)
1354
+ !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
1355
  ])
1344
1356
  ]);
1345
1357
  }), Ae = {
@@ -1368,22 +1380,22 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1368
1380
  borderColor: "border",
1369
1381
  iconColor: "text-muted-foreground"
1370
1382
  }
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({
1383
+ }, Cs = (e) => ee({ class: "flex justify-center" }, [
1384
+ xe({ class: "text-lg font-bold mb-0" }, e)
1385
+ ]), Ss = i(({ href: e, class: t }, s) => Ke({
1374
1386
  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
1387
  href: e,
1376
1388
  animateIn: "pullRightIn",
1377
1389
  animateOut: "pullRight",
1378
1390
  role: "alert"
1379
- }, s)), Ss = r(({ close: e, class: t }, s) => o({
1391
+ }, s)), $s = i(({ close: e, class: t }, s) => o({
1380
1392
  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
1393
  click: () => e(),
1382
1394
  animateIn: "pullRightIn",
1383
1395
  animateOut: "pullRight",
1384
1396
  role: "alert"
1385
1397
  }, s));
1386
- class yo extends S {
1398
+ class wo extends S {
1387
1399
  /**
1388
1400
  * This will declare the props for the compiler.
1389
1401
  *
@@ -1407,10 +1419,10 @@ class yo extends S {
1407
1419
  */
1408
1420
  render() {
1409
1421
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1410
- return a ? Cs({
1422
+ return a ? Ss({
1411
1423
  href: a,
1412
1424
  class: `${t} ${s}`
1413
- }, l) : Ss({
1425
+ }, l) : $s({
1414
1426
  close: this.close.bind(this),
1415
1427
  class: `${t} ${s}`
1416
1428
  }, l);
@@ -1460,10 +1472,10 @@ class yo extends S {
1460
1472
  ]),
1461
1473
  o({ class: "flex flex-auto flex-col" }, [
1462
1474
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1463
- this.title && ks(this.title)
1475
+ this.title && Cs(this.title)
1464
1476
  ]),
1465
1477
  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())
1478
+ (this.primary || this.secondary) && be({ class: "margin-top-24 flex align-center" }, this.getButtons())
1467
1479
  ])
1468
1480
  ]),
1469
1481
  b({
@@ -1484,17 +1496,17 @@ class yo extends S {
1484
1496
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1485
1497
  }
1486
1498
  }
1487
- const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v({
1499
+ const Re = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
1488
1500
  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
1501
  onState: ["method", { active: e }],
1490
1502
  dataSet: ["method", ["state", e, "active"]],
1491
1503
  click: (n, { state: a }) => {
1492
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), $s(e);
1504
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ds(e);
1493
1505
  }
1494
1506
  }, [
1495
1507
  x({}, s),
1496
1508
  u(t)
1497
- ])), $s = (e) => {
1509
+ ])), Ds = (e) => {
1498
1510
  const t = document.documentElement;
1499
1511
  if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Re && !Re("(prefers-color-scheme: " + e + ")").matches) {
1500
1512
  t.classList.add(e);
@@ -1502,7 +1514,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1502
1514
  }
1503
1515
  const s = e === "light" ? "dark" : "light";
1504
1516
  t.classList.remove(s);
1505
- }, wo = M(
1517
+ }, vo = P(
1506
1518
  {
1507
1519
  /**
1508
1520
  * This will render the component.
@@ -1512,9 +1524,9 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1512
1524
  render() {
1513
1525
  return o({ class: "flex flex-auto flex-col" }, [
1514
1526
  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 })
1527
+ ie({ label: "System", value: "system", icon: h.adjustments.horizontal }),
1528
+ ie({ label: "Light", value: "light", icon: h.sun }),
1529
+ ie({ label: "Dark", value: "dark", icon: h.moon })
1518
1530
  ])
1519
1531
  ]);
1520
1532
  },
@@ -1529,7 +1541,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1529
1541
  };
1530
1542
  }
1531
1543
  }
1532
- ), vo = N(
1544
+ ), ko = N(
1533
1545
  {
1534
1546
  /**
1535
1547
  * The initial state of the Toggle.
@@ -1563,7 +1575,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1563
1575
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1564
1576
  }
1565
1577
  }, [
1566
- fe({
1578
+ ge({
1567
1579
  cache: "checkbox",
1568
1580
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1569
1581
  /**
@@ -1581,11 +1593,11 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1581
1593
  ]);
1582
1594
  }
1583
1595
  }
1584
- ), Ds = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : ls({
1596
+ ), Is = i(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : rs({
1585
1597
  src: e,
1586
1598
  alt: t,
1587
1599
  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) => {
1600
+ })), 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), Ms = (e) => u([e, (t, s) => {
1589
1601
  s.textContent = nt(t);
1590
1602
  }]), je = {
1591
1603
  xs: "h-6 w-6",
@@ -1607,8 +1619,8 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1607
1619
  "3xl": "text-4xl",
1608
1620
  "4xl": "text-5xl",
1609
1621
  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);
1622
+ }, Ps = (e) => je[e] || je.default, Bs = (e) => Ee[e] || Ee.default, zs = (e, t = null, s = "md") => {
1623
+ const n = nt(String(e)), a = Bs(s);
1612
1624
  return o(
1613
1625
  {
1614
1626
  class: `
@@ -1618,21 +1630,21 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1618
1630
  `
1619
1631
  },
1620
1632
  [
1621
- t ? Ts(t) : u({ class: "uppercase" }, n)
1633
+ t ? Ms(t) : u({ class: "uppercase" }, n)
1622
1634
  ]
1623
1635
  );
1624
- }, zs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1636
+ }, Os = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1625
1637
  const l = Ps(a);
1626
1638
  return o(
1627
1639
  {
1628
1640
  class: `relative flex items-center justify-center ${l}`
1629
1641
  },
1630
1642
  [
1631
- Ds({ src: e, alt: t }),
1632
- Bs(s, n, a)
1643
+ Is({ src: e, alt: t }),
1644
+ zs(s, n, a)
1633
1645
  ]
1634
1646
  );
1635
- }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, ko = M(
1647
+ }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = P(
1636
1648
  {
1637
1649
  /**
1638
1650
  * Get the initial state for the component.
@@ -1688,13 +1700,13 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1688
1700
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1689
1701
  }
1690
1702
  }, [
1691
- P("loaded", (s) => s === !1 || He(this.src) ? H({
1703
+ M("loaded", (s) => s === !1 || He(this.src) ? H({
1692
1704
  htmlFor: e,
1693
1705
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1694
1706
  }, [
1695
- ue(h.upload),
1707
+ he(h.upload),
1696
1708
  o("Upload Image")
1697
- ]) : ge({
1709
+ ]) : me({
1698
1710
  // @ts-ignore
1699
1711
  src: this.src,
1700
1712
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1703,7 +1715,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1703
1715
  ]);
1704
1716
  }
1705
1717
  }
1706
- ), Co = M(
1718
+ ), So = P(
1707
1719
  {
1708
1720
  /**
1709
1721
  * Get the initial state for the component.
@@ -1759,9 +1771,9 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1759
1771
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1760
1772
  }
1761
1773
  }, [
1762
- P(
1774
+ M(
1763
1775
  "loaded",
1764
- (s) => s ? ge({
1776
+ (s) => s ? me({
1765
1777
  // @ts-ignore
1766
1778
  src: this.src,
1767
1779
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1785,7 +1797,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1785
1797
  this.input = null;
1786
1798
  }
1787
1799
  }
1788
- ), Os = (e, t) => Ke(
1800
+ ), Ns = (e, t) => Ke(
1789
1801
  {
1790
1802
  href: e,
1791
1803
  "aria-current": t === "Breadcrumb" && "page",
@@ -1793,14 +1805,14 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1793
1805
  class: "text-muted-foreground font-medium hover:text-foreground"
1794
1806
  },
1795
1807
  [u(t)]
1796
- ), Ns = () => x({
1808
+ ), Fs = () => x({
1797
1809
  class: "mx-3 text-muted-foreground",
1798
1810
  "aria-hidden": !0,
1799
1811
  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(
1812
+ }, h.chevron.single.right), Ls = (e) => o({ class: "flex items-center" }, [
1813
+ e.href ? Ns(e.href, e.label) : u(e.label),
1814
+ e.separator && Fs()
1815
+ ]), $o = P(
1804
1816
  {
1805
1817
  /**
1806
1818
  * Set initial data
@@ -1820,7 +1832,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1820
1832
  */
1821
1833
  render() {
1822
1834
  const e = this.data.items.length - 1;
1823
- return xe(
1835
+ return pe(
1824
1836
  {
1825
1837
  "aria-label": "Breadcrumb",
1826
1838
  class: "flex items-center gap-x-1 text-sm"
@@ -1829,7 +1841,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1829
1841
  o({
1830
1842
  role: "list",
1831
1843
  class: "flex items-center",
1832
- for: ["items", (t, s) => Fs({
1844
+ for: ["items", (t, s) => Ls({
1833
1845
  href: t.href,
1834
1846
  label: t.label,
1835
1847
  separator: s < e
@@ -1848,7 +1860,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1848
1860
  "2xl": "h-16 w-16",
1849
1861
  "3xl": "h-24 w-24",
1850
1862
  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` }, [
1863
+ }, As = (e) => _e[e] || _e.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1852
1864
  u({
1853
1865
  class: "block w-full h-full rounded-full transition-colors",
1854
1866
  onSet: ["activeIndex", {
@@ -1859,10 +1871,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1859
1871
  n.activeIndex = e, a && a(e);
1860
1872
  }
1861
1873
  })
1862
- ]), Rs = (e, t) => Array.from({ length: e }, (s, n) => As({
1874
+ ]), js = (e, t) => Array.from({ length: e }, (s, n) => Rs({
1863
1875
  index: n,
1864
1876
  size: t
1865
- })), $o = M(
1877
+ })), Do = P(
1866
1878
  {
1867
1879
  /**
1868
1880
  * Defines component data (props).
@@ -1884,7 +1896,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1884
1896
  * @returns {object}
1885
1897
  */
1886
1898
  render() {
1887
- const e = this.gap || "gap-2", t = Ls(this.size || "sm"), s = Rs(this.data.count, t);
1899
+ const e = this.gap || "gap-2", t = As(this.size || "sm"), s = js(this.data.count, t);
1888
1900
  return o(
1889
1901
  { class: "flex justify-center items-center py-2" },
1890
1902
  [
@@ -1893,7 +1905,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1893
1905
  );
1894
1906
  }
1895
1907
  }
1896
- ), js = ({ toggleDropdown: e }) => v(
1908
+ ), Es = ({ toggleDropdown: e }) => v(
1897
1909
  {
1898
1910
  cache: "button",
1899
1911
  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 +1915,27 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
1903
1915
  u({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1904
1916
  x({ size: "sm" }, h.chevron.upDown)
1905
1917
  ]
1906
- ), Es = (e, t, s) => pe({
1918
+ ), Hs = (e, t, s) => ye({
1907
1919
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1908
1920
  click: () => t(e),
1909
1921
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1910
1922
  }, [
1911
1923
  e.icon && u({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1912
1924
  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" }, [
1916
- P(
1925
+ ]), _s = (e, t) => o({ class: "w-full border rounded-md" }, [
1926
+ te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Hs(s, e, t)] })
1927
+ ]), Us = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1928
+ M(
1917
1929
  "open",
1918
- (s, n, a) => s ? new ne({
1930
+ (s, n, a) => s ? new ae({
1919
1931
  cache: "dropdown",
1920
1932
  parent: a,
1921
1933
  button: a.button
1922
1934
  }, [
1923
- Hs(e, t)
1935
+ _s(e, t)
1924
1936
  ]) : null
1925
1937
  )
1926
- ]), Do = M(
1938
+ ]), Io = P(
1927
1939
  {
1928
1940
  /**
1929
1941
  * This will set up the data.
@@ -2004,8 +2016,8 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2004
2016
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2005
2017
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2006
2018
  // @ts-ignore
2007
- js({ toggleDropdown: this.toggleDropdown.bind(this) }),
2008
- _s({
2019
+ Es({ toggleDropdown: this.toggleDropdown.bind(this) }),
2020
+ Us({
2009
2021
  // @ts-ignore
2010
2022
  state: this.state,
2011
2023
  // @ts-ignore
@@ -2031,20 +2043,20 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2031
2043
  click: t,
2032
2044
  icon: e,
2033
2045
  "aria-label": s
2034
- }), Us = ({ click: e }) => at({
2046
+ }), Ys = ({ click: e }) => at({
2035
2047
  icon: h.circleMinus,
2036
2048
  click: e,
2037
2049
  ariaLabel: "Decrement"
2038
- }), Ys = ({ click: e }) => at({
2050
+ }), Ws = ({ click: e }) => at({
2039
2051
  icon: h.circlePlus,
2040
2052
  click: e,
2041
2053
  ariaLabel: "Increment"
2042
- }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
2054
+ }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => V(({ state: a }) => p({
2043
2055
  value: ["[[count]]", a],
2044
2056
  bind: e,
2045
- blur: (l, { state: i }) => {
2057
+ blur: (l, { state: r }) => {
2046
2058
  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;
2059
+ 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
2060
  },
2049
2061
  class: "flex flex-auto text-lg font-medium bg-input text-center border min-w-0",
2050
2062
  readonly: n,
@@ -2052,7 +2064,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2052
2064
  max: s,
2053
2065
  type: "number",
2054
2066
  "aria-label": "Counter"
2055
- })), Io = N(
2067
+ })), To = N(
2056
2068
  {
2057
2069
  /**
2058
2070
  * Initial state for the counter component.
@@ -2075,20 +2087,20 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2075
2087
  render() {
2076
2088
  const e = this.class ?? "";
2077
2089
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2078
- Us({ click: () => this.state.decrement("count") }),
2090
+ Ys({ click: () => this.state.decrement("count") }),
2079
2091
  Vs({
2080
2092
  bind: this.bind,
2081
2093
  readonly: this.readonly,
2082
2094
  min: this.min,
2083
2095
  max: this.max
2084
2096
  }),
2085
- Ys({ click: () => this.state.increment("count") })
2097
+ Ws({ click: () => this.state.increment("count") })
2086
2098
  ]);
2087
2099
  }
2088
2100
  }
2089
- ), Ws = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2101
+ ), qs = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2090
2102
  { class: "grid grid-cols-3 gap-2" },
2091
- te.monthNames.map(
2103
+ se.monthNames.map(
2092
2104
  (n, a) => b(
2093
2105
  {
2094
2106
  click: (l) => {
@@ -2100,42 +2112,42 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2100
2112
  n.substring(0, 3)
2101
2113
  )
2102
2114
  )
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) => {
2115
+ ), 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) => {
2116
+ const a = Xs(t, n);
2117
+ return a || (e ? Ks(e) : s ? Qs(s) : "text-foreground");
2118
+ }, ce = (e) => {
2107
2119
  const {
2108
2120
  day: t,
2109
2121
  currentDate: s,
2110
2122
  date: n,
2111
2123
  isToday: a,
2112
2124
  isOutsideMonth: l,
2113
- select: i,
2125
+ select: r,
2114
2126
  disabled: c
2115
2127
  } = e;
2116
2128
  return v(
2117
2129
  {
2118
2130
  class: `
2119
2131
  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)}
2132
+ ${Zs(a, s, l, n)}
2121
2133
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2122
2134
  disabled:pointer-events-none disabled:opacity-50
2123
2135
  `,
2124
2136
  disabled: c || t === null,
2125
2137
  "aria-label": t ? `Day ${t}` : null,
2126
2138
  // Only call select if it's not disabled.
2127
- click: () => !c && i(n)
2139
+ click: () => !c && r(n)
2128
2140
  },
2129
2141
  t.toString()
2130
2142
  );
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;
2143
+ }, de = (e, t, s, n) => e === n.date && t === n.month && s === n.year, en = (e, t, s, n = !1) => {
2144
+ 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
2145
  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;
2146
+ 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
2147
  w.push(
2136
- ie({
2148
+ ce({
2137
2149
  day: y,
2138
- currentDate: i,
2150
+ currentDate: r,
2139
2151
  date: R(U, q, y),
2140
2152
  isToday: I,
2141
2153
  isOutsideMonth: !0,
@@ -2145,11 +2157,11 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2145
2157
  );
2146
2158
  }
2147
2159
  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;
2160
+ 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
2161
  w.push(
2150
- ie({
2162
+ ce({
2151
2163
  day: d,
2152
- currentDate: i,
2164
+ currentDate: r,
2153
2165
  date: R(a, l, d),
2154
2166
  isToday: y,
2155
2167
  isOutsideMonth: !1,
@@ -2158,14 +2170,14 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2158
2170
  })
2159
2171
  );
2160
2172
  }
2161
- const Y = l === 11 ? 0 : l + 1, ae = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2173
+ const Y = l === 11 ? 0 : l + 1, oe = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2162
2174
  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;
2175
+ 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
2176
  w.push(
2165
- ie({
2177
+ ce({
2166
2178
  day: d,
2167
- currentDate: i,
2168
- date: R(ae, Y, d),
2179
+ currentDate: r,
2180
+ date: R(oe, Y, d),
2169
2181
  isToday: y,
2170
2182
  isOutsideMonth: !0,
2171
2183
  select: s,
@@ -2187,16 +2199,16 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2187
2199
  variant: "icon",
2188
2200
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2189
2201
  }
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" }, [
2202
+ ), 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
2203
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2192
2204
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2193
2205
  Ue({ label: "Previous", click: n }),
2194
2206
  Ue({ label: "Next", click: s })
2195
- ]), tn = (e) => o(
2207
+ ]), sn = (e) => o(
2196
2208
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2197
2209
  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({
2210
+ ), 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" }, [
2211
+ tn({
2200
2212
  onMonthClick: e.onMonthClick,
2201
2213
  onYearClick: e.onYearClick,
2202
2214
  next: e.next,
@@ -2207,10 +2219,10 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2207
2219
  onSet: [
2208
2220
  "currentDate",
2209
2221
  () => [
2210
- o({ class: "grid grid-cols-7" }, sn()),
2222
+ o({ class: "grid grid-cols-7" }, nn()),
2211
2223
  o(
2212
2224
  { class: "grid grid-cols-7" },
2213
- Zs(
2225
+ en(
2214
2226
  e.current,
2215
2227
  e.today,
2216
2228
  e.select,
@@ -2220,15 +2232,15 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2220
2232
  ]
2221
2233
  ]
2222
2234
  })
2223
- ]), an = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2224
- const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
2235
+ ]), on = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2236
+ const n = t - 50, a = Array.from({ length: 101 }, (l, r) => n + r);
2225
2237
  return o(
2226
2238
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2227
2239
  a.map(
2228
2240
  (l) => b(
2229
2241
  {
2230
- click: (i) => {
2231
- i.preventDefault(), i.stopPropagation(), s(l);
2242
+ click: (r) => {
2243
+ r.preventDefault(), r.stopPropagation(), s(l);
2232
2244
  },
2233
2245
  variant: l === t ? "primary" : "ghost",
2234
2246
  "aria-label": `Select ${l}`
@@ -2238,7 +2250,7 @@ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v(
2238
2250
  )
2239
2251
  );
2240
2252
  };
2241
- class on extends S {
2253
+ class ln extends S {
2242
2254
  /**
2243
2255
  * This will declare the props for the compiler.
2244
2256
  *
@@ -2254,7 +2266,7 @@ class on extends S {
2254
2266
  * @returns {Date}
2255
2267
  */
2256
2268
  getSelectedDate(t) {
2257
- const s = this.selectedDate ? new Date(qs(this.selectedDate)) : t;
2269
+ const s = this.selectedDate ? new Date(Gs(this.selectedDate)) : t;
2258
2270
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2259
2271
  }
2260
2272
  /**
@@ -2297,7 +2309,7 @@ class on extends S {
2297
2309
  * @returns {string}
2298
2310
  */
2299
2311
  getMonthName(t) {
2300
- return te.monthNames[t];
2312
+ return se.monthNames[t];
2301
2313
  }
2302
2314
  /**
2303
2315
  * This will go to the previous month.
@@ -2348,10 +2360,10 @@ class on extends S {
2348
2360
  */
2349
2361
  render() {
2350
2362
  return o({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2351
- P("view", (t) => {
2363
+ M("view", (t) => {
2352
2364
  switch (t) {
2353
2365
  case "months":
2354
- return Ws(
2366
+ return qs(
2355
2367
  {
2356
2368
  // @ts-ignore
2357
2369
  currentMonth: this.data.current.month,
@@ -2363,7 +2375,7 @@ class on extends S {
2363
2375
  }
2364
2376
  );
2365
2377
  case "years":
2366
- return an(
2378
+ return on(
2367
2379
  {
2368
2380
  // @ts-ignore
2369
2381
  currentMonth: this.data.current.month,
@@ -2375,7 +2387,7 @@ class on extends S {
2375
2387
  }
2376
2388
  );
2377
2389
  default:
2378
- return nn({
2390
+ return an({
2379
2391
  // @ts-ignore
2380
2392
  current: this.data.current,
2381
2393
  // @ts-ignore
@@ -2396,33 +2408,33 @@ class on extends S {
2396
2408
  ]);
2397
2409
  }
2398
2410
  }
2399
- const ln = (e) => {
2411
+ const rn = (e) => {
2400
2412
  let t = "";
2401
2413
  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) => {
2414
+ }, cn = (e) => {
2403
2415
  if (e.length !== 8)
2404
2416
  return null;
2405
2417
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2406
2418
  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({
2419
+ }, dn = ({ bind: e, required: t }) => p({
2408
2420
  cache: "input",
2409
2421
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2410
2422
  bind: e,
2411
2423
  required: t
2412
- }), dn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2424
+ }), un = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2413
2425
  cache: "dateInput",
2414
2426
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2415
2427
  placeholder: e || "mm/dd/yyyy",
2416
2428
  input: t,
2417
2429
  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(
2430
+ onState: ["selectedDate", (n) => n ? se.format("standard", n) : ""]
2431
+ }), hn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2420
2432
  {
2421
2433
  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
2434
  },
2423
2435
  [
2424
- cn({ bind: e, required: t }),
2425
- dn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2436
+ dn({ bind: e, required: t }),
2437
+ un({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2426
2438
  v(
2427
2439
  {
2428
2440
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2433,20 +2445,20 @@ const ln = (e) => {
2433
2445
  ]
2434
2446
  )
2435
2447
  ]
2436
- ), hn = ({ handleDateSelect: e, blockPriorDates: t }) => ye(
2437
- (s, n, a) => new ne({
2448
+ ), fn = ({ handleDateSelect: e, blockPriorDates: t }) => we(
2449
+ (s, n, a) => new ae({
2438
2450
  cache: "dropdown",
2439
2451
  parent: a,
2440
2452
  button: a.panel,
2441
2453
  size: "fit"
2442
2454
  }, [
2443
- new on({
2455
+ new ln({
2444
2456
  selectedDate: a.state.selectedDate,
2445
2457
  selectedCallBack: e,
2446
2458
  blockPriorDates: t
2447
2459
  })
2448
2460
  ])
2449
- ), To = N(
2461
+ ), Mo = N(
2450
2462
  {
2451
2463
  /**
2452
2464
  * The initial state of the DatePicker.
@@ -2475,8 +2487,8 @@ const ln = (e) => {
2475
2487
  */
2476
2488
  handleInputChange(e) {
2477
2489
  const s = e.target.value.replace(/\D/g, "");
2478
- e.target.value = ln(s);
2479
- const n = rn(s);
2490
+ e.target.value = rn(s);
2491
+ const n = cn(s);
2480
2492
  n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2481
2493
  },
2482
2494
  /**
@@ -2513,7 +2525,7 @@ const ln = (e) => {
2513
2525
  return o(
2514
2526
  { class: "relative w-full max-w-[320px]" },
2515
2527
  [
2516
- un({
2528
+ hn({
2517
2529
  toggleOpen: this.toggleOpen.bind(this),
2518
2530
  bind: this.bind,
2519
2531
  required: this.required,
@@ -2521,7 +2533,7 @@ const ln = (e) => {
2521
2533
  handleInputFocus: this.handleInputFocus.bind(this),
2522
2534
  placeholder: this.placeholder
2523
2535
  }),
2524
- hn({
2536
+ fn({
2525
2537
  handleDateSelect: this.handleDateSelect.bind(this),
2526
2538
  blockPriorDates: this.blockPriorDates || !1
2527
2539
  })
@@ -2542,17 +2554,17 @@ const ln = (e) => {
2542
2554
  variant: "icon",
2543
2555
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2544
2556
  }
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" }, [
2557
+ ), 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
2558
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2547
2559
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2548
2560
  Ye({ label: "Previous", click: n }),
2549
2561
  Ye({ label: "Next", click: s })
2550
- ]), gn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), mn = () => o(
2562
+ ]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
2551
2563
  { 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 }) => {
2564
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
2565
+ ), xn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: r, click: c }) => {
2554
2566
  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(
2567
+ 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
2568
  {
2557
2569
  class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${m}`,
2558
2570
  variant: f,
@@ -2563,9 +2575,9 @@ const ln = (e) => {
2563
2575
  },
2564
2576
  e.toString()
2565
2577
  );
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--) {
2578
+ }, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2579
+ 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;
2580
+ for (let g = r - 1; g >= 0; g--) {
2569
2581
  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
2582
  f.push({
2571
2583
  day: d,
@@ -2593,8 +2605,8 @@ const ln = (e) => {
2593
2605
  }
2594
2606
  });
2595
2607
  }
2596
- const $e = (7 - f.length % 7) % 7;
2597
- for (let g = 1; g <= $e; g++) {
2608
+ const De = (7 - f.length % 7) % 7;
2609
+ for (let g = 1; g <= De; g++) {
2598
2610
  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
2611
  f.push({
2600
2612
  day: g,
@@ -2610,7 +2622,7 @@ const ln = (e) => {
2610
2622
  return o(
2611
2623
  { class: "grid grid-cols-7 gap-1" },
2612
2624
  f.map(
2613
- (g, d) => bn({
2625
+ (g, d) => xn({
2614
2626
  day: g.day,
2615
2627
  iso: g.iso,
2616
2628
  disabled: g.disabled,
@@ -2622,8 +2634,8 @@ const ln = (e) => {
2622
2634
  })
2623
2635
  )
2624
2636
  );
2625
- }, pn = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2626
- fn({
2637
+ }, yn = i((e, t) => o({ class: "flex flex-auto flex-col" }, [
2638
+ gn({
2627
2639
  // @ts-ignore
2628
2640
  onMonthClick: e.onMonthClick,
2629
2641
  // @ts-ignore
@@ -2638,8 +2650,8 @@ const ln = (e) => {
2638
2650
  onSet: [
2639
2651
  "currentDate",
2640
2652
  () => [
2641
- mn(),
2642
- xn({
2653
+ bn(),
2654
+ pn({
2643
2655
  // @ts-ignore
2644
2656
  today: e.today,
2645
2657
  // @ts-ignore
@@ -2652,9 +2664,9 @@ const ln = (e) => {
2652
2664
  ]
2653
2665
  ]
2654
2666
  })
2655
- ])), yn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2667
+ ])), wn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2656
2668
  { class: "grid grid-cols-3 gap-2" },
2657
- te.monthNames.map(
2669
+ se.monthNames.map(
2658
2670
  (n, a) => b(
2659
2671
  {
2660
2672
  click: (l) => {
@@ -2666,25 +2678,25 @@ const ln = (e) => {
2666
2678
  n.substring(0, 3)
2667
2679
  )
2668
2680
  )
2669
- ), wn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2681
+ ), vn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2670
2682
  J("selecting", (l) => b({
2671
2683
  click: n,
2672
2684
  variant: l === "start" ? "primary" : "outline",
2673
2685
  class: "flex-1"
2674
2686
  }, [
2675
- o({ class: "font-medium" }, Ve("current.start", "Start Date"))
2687
+ o({ class: "font-medium" }, We("current.start", "Start Date"))
2676
2688
  ])),
2677
2689
  J("selecting", (l) => b({
2678
2690
  click: a,
2679
2691
  variant: l === "end" ? "primary" : "outline",
2680
2692
  class: "flex-1"
2681
2693
  }, [
2682
- o({ class: "font-medium" }, Ve("current.end", "End Date"))
2694
+ o({ class: "font-medium" }, We("current.end", "End Date"))
2683
2695
  ]))
2684
- ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : vn(s)], vn = (e) => {
2696
+ ]), We = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
2685
2697
  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
2698
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2687
- }, kn = ({ currentYear: e, onSelect: t }) => {
2699
+ }, Cn = ({ currentYear: e, onSelect: t }) => {
2688
2700
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2689
2701
  return o(
2690
2702
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2702,7 +2714,7 @@ const ln = (e) => {
2702
2714
  )
2703
2715
  );
2704
2716
  };
2705
- class Cn extends S {
2717
+ class Sn extends S {
2706
2718
  /**
2707
2719
  * Declare compiler props.
2708
2720
  *
@@ -2743,7 +2755,7 @@ class Cn extends S {
2743
2755
  * @returns {string}
2744
2756
  */
2745
2757
  getMonthName(t) {
2746
- return te.monthNames[t];
2758
+ return se.monthNames[t];
2747
2759
  }
2748
2760
  /**
2749
2761
  * Initialize component state.
@@ -2799,21 +2811,21 @@ class Cn extends S {
2799
2811
  render() {
2800
2812
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2801
2813
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2802
- wn({
2814
+ vn({
2803
2815
  start: a,
2804
2816
  end: l,
2805
2817
  selecting: n,
2806
- onSelectStart: (i) => {
2807
- i.preventDefault(), i.stopPropagation(), this.data.selecting = "start";
2818
+ onSelectStart: (r) => {
2819
+ r.preventDefault(), r.stopPropagation(), this.data.selecting = "start";
2808
2820
  },
2809
- onSelectEnd: (i) => {
2810
- i.preventDefault(), i.stopPropagation(), this.data.selecting = "end";
2821
+ onSelectEnd: (r) => {
2822
+ r.preventDefault(), r.stopPropagation(), this.data.selecting = "end";
2811
2823
  }
2812
2824
  }),
2813
- P("view", (i) => {
2814
- switch (i) {
2825
+ M("view", (r) => {
2826
+ switch (r) {
2815
2827
  case "months":
2816
- return yn(
2828
+ return wn(
2817
2829
  {
2818
2830
  currentMonth: s.month,
2819
2831
  currentYear: s.year,
@@ -2823,7 +2835,7 @@ class Cn extends S {
2823
2835
  }
2824
2836
  );
2825
2837
  case "years":
2826
- return kn(
2838
+ return Cn(
2827
2839
  {
2828
2840
  currentYear: s.year,
2829
2841
  onSelect: (c) => {
@@ -2832,7 +2844,7 @@ class Cn extends S {
2832
2844
  }
2833
2845
  );
2834
2846
  default:
2835
- return pn({
2847
+ return yn({
2836
2848
  // @ts-ignore
2837
2849
  monthName: this.data.monthName,
2838
2850
  year: s.year,
@@ -2860,29 +2872,29 @@ class Cn extends S {
2860
2872
  ]);
2861
2873
  }
2862
2874
  }
2863
- const Sn = ({ bind: e, required: t }) => p({
2875
+ const $n = ({ bind: e, required: t }) => p({
2864
2876
  cache: "input",
2865
2877
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2866
2878
  bind: e,
2867
2879
  required: t
2868
- }), $n = ({ bind: e, required: t, toggleOpen: s }) => v({
2880
+ }), Dn = ({ bind: e, required: t, toggleOpen: s }) => v({
2869
2881
  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
2882
  click: s
2871
2883
  }, [
2872
- Sn({ bind: e, required: t }),
2873
- W(({ state: n }) => [
2874
- u(V.date(["[[start]]", n], "Start Date")),
2884
+ $n({ bind: e, required: t }),
2885
+ V(({ state: n }) => [
2886
+ u(W.date(["[[start]]", n], "Start Date")),
2875
2887
  u(" - "),
2876
- u(V.date(["[[end]]", n], "End Date"))
2888
+ u(W.date(["[[end]]", n], "End Date"))
2877
2889
  ]),
2878
2890
  E({ html: h.calendar.days })
2879
- ]), Dn = ({ handleDateSelect: e, blockPriorDates: t }) => ye((s, n, a) => new ne({
2891
+ ]), In = ({ handleDateSelect: e, blockPriorDates: t }) => we((s, n, a) => new ae({
2880
2892
  cache: "dropdown",
2881
2893
  parent: a,
2882
2894
  button: a.panel,
2883
2895
  size: "xl"
2884
2896
  }, [
2885
- new Cn({
2897
+ new Sn({
2886
2898
  startDate: a.state.start,
2887
2899
  endDate: a.state.end,
2888
2900
  onRangeSelect: e,
@@ -2924,12 +2936,12 @@ const Sn = ({ bind: e, required: t }) => p({
2924
2936
  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
2937
  };
2926
2938
  return o({ class: "relative w-full max-w-[320px]" }, [
2927
- $n({
2939
+ Dn({
2928
2940
  toggleOpen: e,
2929
2941
  bind: this.bind,
2930
2942
  required: this.required
2931
2943
  }),
2932
- Dn({
2944
+ In({
2933
2945
  handleDateSelect: t,
2934
2946
  blockPriorDates: this.blockPriorDates || !1
2935
2947
  })
@@ -2937,11 +2949,11 @@ const Sn = ({ bind: e, required: t }) => p({
2937
2949
  }
2938
2950
  }
2939
2951
  );
2940
- function In(e) {
2952
+ function Tn(e) {
2941
2953
  let t = "";
2942
2954
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2943
2955
  }
2944
- function Tn(e) {
2956
+ function Mn(e) {
2945
2957
  if (e.length < 4)
2946
2958
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2947
2959
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2963,7 +2975,7 @@ function Pn({ bind: e, required: t }) {
2963
2975
  required: t
2964
2976
  });
2965
2977
  }
2966
- function Mn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2978
+ function Bn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2967
2979
  return p({
2968
2980
  cache: "timeInput",
2969
2981
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
@@ -2973,14 +2985,14 @@ function Mn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2973
2985
  onState: ["selectedTime", (n) => n || ""]
2974
2986
  });
2975
2987
  }
2976
- function Bn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2988
+ function zn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2977
2989
  return o(
2978
2990
  {
2979
2991
  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
2992
  },
2981
2993
  [
2982
2994
  Pn({ bind: e, required: t }),
2983
- Mn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2995
+ Bn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2984
2996
  v(
2985
2997
  {
2986
2998
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2993,23 +3005,23 @@ function Bn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleI
2993
3005
  ]
2994
3006
  );
2995
3007
  }
2996
- function de({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
3008
+ function ue({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
2997
3009
  return o(
2998
3010
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
2999
3011
  e.map((l) => {
3000
- let i = a ? l.toString().padStart(2, "0") : l.toString();
3012
+ let r = a ? l.toString().padStart(2, "0") : l.toString();
3001
3013
  return v({
3002
- text: i,
3014
+ text: r,
3003
3015
  class: "hover:bg-muted/50 rounded-md pr-2 py-1",
3004
- click: () => t({ [n]: i }),
3005
- onState: [s, n, { "bg-muted": i }]
3016
+ click: () => t({ [n]: r }),
3017
+ onState: [s, n, { "bg-muted": r }]
3006
3018
  });
3007
3019
  })
3008
3020
  );
3009
3021
  }
3010
- function zn({ handleTimeSelect: e }) {
3011
- return ye(
3012
- (t, s, n) => new ne(
3022
+ function On({ handleTimeSelect: e }) {
3023
+ return we(
3024
+ (t, s, n) => new ae(
3013
3025
  {
3014
3026
  cache: "dropdown",
3015
3027
  parent: n,
@@ -3024,7 +3036,7 @@ function zn({ handleTimeSelect: e }) {
3024
3036
  { class: "grid grid-cols-3 gap-2 p-4 text-center max-h-[220px] min-w-[240px]" },
3025
3037
  [
3026
3038
  // Hours column
3027
- de({
3039
+ ue({
3028
3040
  items: Array.from({ length: 12 }, (a, l) => l + 1),
3029
3041
  handleTimeSelect: e,
3030
3042
  state: n.state,
@@ -3032,7 +3044,7 @@ function zn({ handleTimeSelect: e }) {
3032
3044
  pad: !0
3033
3045
  }),
3034
3046
  // Minutes column
3035
- de({
3047
+ ue({
3036
3048
  items: Array.from({ length: 60 }, (a, l) => l),
3037
3049
  handleTimeSelect: e,
3038
3050
  state: n.state,
@@ -3040,7 +3052,7 @@ function zn({ handleTimeSelect: e }) {
3040
3052
  pad: !0
3041
3053
  }),
3042
3054
  // AM/PM column
3043
- de({
3055
+ ue({
3044
3056
  items: ["AM", "PM"],
3045
3057
  handleTimeSelect: e,
3046
3058
  state: n.state,
@@ -3054,20 +3066,20 @@ function zn({ handleTimeSelect: e }) {
3054
3066
  )
3055
3067
  );
3056
3068
  }
3057
- function We(e) {
3069
+ function Ve(e) {
3058
3070
  if (!e)
3059
3071
  return { hour: null, minute: null, meridian: null };
3060
3072
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
3061
3073
  if (!s)
3062
3074
  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"),
3075
+ let [, n, a, , l] = s, r = parseInt(n, 10), c = parseInt(a, 10);
3076
+ 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), {
3077
+ hour: r.toString().padStart(2, "0"),
3066
3078
  minute: c.toString().padStart(2, "0"),
3067
3079
  meridian: l
3068
3080
  });
3069
3081
  }
3070
- const Mo = N(
3082
+ const Bo = N(
3071
3083
  {
3072
3084
  /**
3073
3085
  * The initial shallow state of the TimePicker.
@@ -3075,7 +3087,7 @@ const Mo = N(
3075
3087
  * @member {object} state
3076
3088
  */
3077
3089
  state() {
3078
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = We(e);
3090
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ve(e);
3079
3091
  return {
3080
3092
  selectedTime: e,
3081
3093
  open: !1,
@@ -3091,7 +3103,7 @@ const Mo = N(
3091
3103
  */
3092
3104
  after() {
3093
3105
  if (this.input.value) {
3094
- const { hour: e, minute: t, meridian: s } = We(this.input.value);
3106
+ const { hour: e, minute: t, meridian: s } = Ve(this.input.value);
3095
3107
  this.state.set({
3096
3108
  hour: e,
3097
3109
  minute: t,
@@ -3115,8 +3127,8 @@ const Mo = N(
3115
3127
  * @param {Event} e
3116
3128
  */
3117
3129
  handleInputChange(e) {
3118
- let t = e.target.value.replace(/[^\d]/g, ""), s = In(t);
3119
- const n = Tn(t);
3130
+ let t = e.target.value.replace(/[^\d]/g, ""), s = Tn(t);
3131
+ const n = Mn(t);
3120
3132
  n.formattedTime && (s = n.formattedTime, this.state.set({
3121
3133
  hour: n.hour,
3122
3134
  minute: n.minute,
@@ -3152,7 +3164,7 @@ const Mo = N(
3152
3164
  return o(
3153
3165
  { class: "relative w-full max-w-[320px]" },
3154
3166
  [
3155
- Bn({
3167
+ zn({
3156
3168
  toggleOpen: this.toggleOpen.bind(this),
3157
3169
  bind: this.bind,
3158
3170
  required: this.required,
@@ -3160,18 +3172,18 @@ const Mo = N(
3160
3172
  handleInputFocus: this.handleInputFocus.bind(this),
3161
3173
  placeholder: this.placeholder
3162
3174
  }),
3163
- zn({
3175
+ On({
3164
3176
  handleTimeSelect: this.handleTimeSelect.bind(this)
3165
3177
  })
3166
3178
  ]
3167
3179
  );
3168
3180
  }
3169
3181
  }
3170
- ), On = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3182
+ ), Nn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3171
3183
  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(
3184
+ ]), Fn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3185
+ Z({ class: "text-lg font-semibold" }, e)
3186
+ ]), zo = i((e, t) => bt(
3175
3187
  {
3176
3188
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3177
3189
  rounded-lg flex flex-auto flex-col
@@ -3184,20 +3196,20 @@ const Mo = N(
3184
3196
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3185
3197
  // Icon and content
3186
3198
  // @ts-ignore
3187
- e.icon && On(e.icon, e.iconColor),
3199
+ e.icon && Nn(e.icon, e.iconColor),
3188
3200
  o({ class: "flex flex-auto flex-col gap-4" }, [
3189
3201
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3190
- Nn(e),
3202
+ Fn(e),
3191
3203
  // @ts-ignore
3192
3204
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3193
3205
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3194
3206
  ]),
3195
3207
  // @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)
3208
+ 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
3209
  ])
3198
3210
  ])
3199
3211
  ]
3200
- )), zo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3212
+ )), Oo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3201
3213
  st({ class: "flex flex-auto flex-col" }, [
3202
3214
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3203
3215
  o({ class: "flex flex-auto items-center justify-center" }, [
@@ -3207,9 +3219,9 @@ const Mo = N(
3207
3219
  x({ size: "lg" }, e.icon)
3208
3220
  ])
3209
3221
  ]),
3210
- Z({ class: "py-4 text-center" }, [
3222
+ ee({ class: "py-4 text-center" }, [
3211
3223
  // @ts-ignore
3212
- X({ class: "text-xl font-bold" }, e.title),
3224
+ Z({ class: "text-xl font-bold" }, e.title),
3213
3225
  // @ts-ignore
3214
3226
  k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
3215
3227
  ...t
@@ -3217,39 +3229,39 @@ const Mo = N(
3217
3229
  ])
3218
3230
  ])
3219
3231
  ]));
3220
- r((e, t) => ({
3232
+ i((e, t) => ({
3221
3233
  class: "flex items-center px-4 py-2",
3222
3234
  ...e,
3223
3235
  children: t
3224
3236
  }));
3225
- r(({ value: e, label: t }) => v({
3237
+ i(({ value: e, label: t }) => v({
3226
3238
  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
3239
  onState: ["performance", { active: e }],
3228
3240
  dataSet: ["performance", ["state", e, "active"]],
3229
3241
  click: (s, { state: n }) => n.performance = e
3230
3242
  }, t));
3231
- const Fn = (e, t) => {
3243
+ const Ln = (e, t) => {
3232
3244
  const s = e.toggleAllSelectedRows();
3233
3245
  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";
3246
+ }, An = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3247
+ V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
3248
+ ]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3249
+ const r = e || "justify-start";
3238
3250
  return Qe({
3239
3251
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3240
3252
  click: t && (() => a(s))
3241
3253
  }, [
3242
- o({ class: `flex flex-auto w-full items-center ${i}` }, [
3254
+ o({ class: `flex flex-auto w-full items-center ${r}` }, [
3243
3255
  u(n),
3244
3256
  t && E({ class: "ml-2", html: h.arrows.upDown })
3245
3257
  ])
3246
3258
  ]);
3247
- }, Se = (e) => xt([
3259
+ }, $e = (e) => xt([
3248
3260
  pt({
3249
3261
  class: "text-muted-foreground border-b",
3250
3262
  map: [
3251
3263
  e.headers,
3252
- (t) => t.label === "checkbox" ? Ln({ toggle: e.toggle }) : An({
3264
+ (t) => t.label === "checkbox" ? An({ toggle: e.toggle }) : Rn({
3253
3265
  align: t.align,
3254
3266
  sortable: t.sortable,
3255
3267
  key: t.key,
@@ -3258,7 +3270,7 @@ const Fn = (e, t) => {
3258
3270
  })
3259
3271
  ]
3260
3272
  })
3261
- ]), Rn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new Ct({
3273
+ ]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new Ct({
3262
3274
  cache: "list",
3263
3275
  key: e,
3264
3276
  items: t,
@@ -3266,7 +3278,7 @@ const Fn = (e, t) => {
3266
3278
  class: "divide-y divide-border",
3267
3279
  emptyState: a,
3268
3280
  skeleton: l,
3269
- columnCount: i
3281
+ columnCount: r
3270
3282
  });
3271
3283
  class ot extends S {
3272
3284
  /**
@@ -3349,12 +3361,12 @@ class ot extends S {
3349
3361
  return o({ class: "w-full flex flex-auto flex-col" }, [
3350
3362
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3351
3363
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3352
- we({ class: "w-full" }, [
3364
+ ve({ class: "w-full" }, [
3353
3365
  // @ts-ignore
3354
- this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3366
+ this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3355
3367
  // @ts-ignore
3356
3368
  this.customHeader ?? null,
3357
- Rn({
3369
+ jn({
3358
3370
  // @ts-ignore
3359
3371
  key: this.key,
3360
3372
  // @ts-ignore
@@ -3433,20 +3445,21 @@ class ot extends S {
3433
3445
  this.data.selectedRows = [];
3434
3446
  }
3435
3447
  }
3436
- const jn = (e) => new St({
3448
+ const En = (e) => new St({
3437
3449
  cache: "list",
3438
3450
  loadMoreItems: e.loadMoreItems,
3439
3451
  offset: e.offset,
3440
3452
  limit: e.limit,
3441
3453
  key: e.key,
3442
3454
  tableData: e.tableData,
3455
+ xhrMethod: e.xhrMethod,
3443
3456
  items: e.items,
3444
3457
  rowItem: (t) => e.rowItem(t, e.selectRow),
3445
3458
  class: "divide-y divide-border",
3446
3459
  skeleton: e.skeleton,
3447
3460
  columnCount: e.columnCount
3448
3461
  });
3449
- class En extends ot {
3462
+ class Hn extends ot {
3450
3463
  /**
3451
3464
  * Renders the DataTable component.
3452
3465
  *
@@ -3457,12 +3470,12 @@ class En extends ot {
3457
3470
  return o({ class: "w-full flex flex-auto flex-col" }, [
3458
3471
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3459
3472
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3460
- we({ class: "w-full" }, [
3473
+ ve({ class: "w-full" }, [
3461
3474
  // @ts-ignore
3462
- this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3475
+ this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3463
3476
  // @ts-ignore
3464
3477
  this.customHeader ?? null,
3465
- jn({
3478
+ En({
3466
3479
  // @ts-ignore
3467
3480
  loadMoreItems: this.loadMoreItems,
3468
3481
  // @ts-ignore
@@ -3474,6 +3487,8 @@ class En extends ot {
3474
3487
  // @ts-ignore
3475
3488
  tableData: this.tableData,
3476
3489
  // @ts-ignore
3490
+ xhrMethod: this.xhrMethod,
3491
+ // @ts-ignore
3477
3492
  key: this.key,
3478
3493
  // @ts-ignore
3479
3494
  items: this.rows,
@@ -3498,7 +3513,7 @@ class En extends ot {
3498
3513
  this.list.refresh();
3499
3514
  }
3500
3515
  }
3501
- const Oo = r((e) => new En(
3516
+ const No = i((e) => new Hn(
3502
3517
  {
3503
3518
  // @ts-ignore
3504
3519
  cache: e.cache ?? "list",
@@ -3525,11 +3540,13 @@ const Oo = r((e) => new En(
3525
3540
  // @ts-ignore
3526
3541
  border: e.border,
3527
3542
  // @ts-ignore
3543
+ xhrMethod: e.xhrMethod,
3544
+ // @ts-ignore
3528
3545
  emptyState: e.emptyState,
3529
3546
  // @ts-ignore
3530
3547
  skeleton: e.skeleton
3531
3548
  }
3532
- )), Hn = (e) => new $t({
3549
+ )), _n = (e) => new $t({
3533
3550
  cache: "list",
3534
3551
  scrollContainer: e.scrollContainer,
3535
3552
  loadMoreItems: e.loadMoreItems,
@@ -3537,13 +3554,14 @@ const Oo = r((e) => new En(
3537
3554
  limit: e.limit,
3538
3555
  key: e.key,
3539
3556
  tableData: e.tableData,
3557
+ xhrMethod: e.xhrMethod,
3540
3558
  items: e.items,
3541
3559
  rowItem: (t) => e.rowItem(t, e.selectRow),
3542
3560
  class: "divide-y divide-border",
3543
3561
  skeleton: e.skeleton,
3544
3562
  columnCount: e.columnCount
3545
3563
  });
3546
- class _n extends ot {
3564
+ class Un extends ot {
3547
3565
  /**
3548
3566
  * Renders the DataTable component.
3549
3567
  *
@@ -3554,12 +3572,12 @@ class _n extends ot {
3554
3572
  return o({ class: "w-full flex flex-auto flex-col" }, [
3555
3573
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3556
3574
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3557
- we({ class: "w-full" }, [
3575
+ ve({ class: "w-full" }, [
3558
3576
  // @ts-ignore
3559
- this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3577
+ this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3560
3578
  // @ts-ignore
3561
3579
  this.customHeader ?? null,
3562
- Hn({
3580
+ _n({
3563
3581
  // @ts-ignore
3564
3582
  scrollContainer: this.scrollContainer,
3565
3583
  // @ts-ignore
@@ -3573,6 +3591,8 @@ class _n extends ot {
3573
3591
  // @ts-ignore
3574
3592
  tableData: this.tableData,
3575
3593
  // @ts-ignore
3594
+ xhrMethod: this.xhrMethod,
3595
+ // @ts-ignore
3576
3596
  key: this.key,
3577
3597
  // @ts-ignore
3578
3598
  items: this.rows,
@@ -3597,7 +3617,7 @@ class _n extends ot {
3597
3617
  this.list.refresh();
3598
3618
  }
3599
3619
  }
3600
- const No = r((e) => new _n(
3620
+ const Fo = i((e) => new Un(
3601
3621
  {
3602
3622
  // @ts-ignore
3603
3623
  cache: e.cache ?? "list",
@@ -3626,14 +3646,16 @@ const No = r((e) => new _n(
3626
3646
  // @ts-ignore
3627
3647
  border: e.border,
3628
3648
  // @ts-ignore
3649
+ xhrMethod: e.xhrMethod,
3650
+ // @ts-ignore
3629
3651
  emptyState: e.emptyState,
3630
3652
  // @ts-ignore
3631
3653
  skeleton: e.skeleton
3632
3654
  }
3633
- )), Un = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3655
+ )), Yn = i(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3634
3656
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3635
3657
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3636
- ])), Yn = () => o({ class: "flex items-center gap-x-1.5" }, [
3658
+ ])), Wn = () => o({ class: "flex items-center gap-x-1.5" }, [
3637
3659
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3638
3660
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3639
3661
  ]),
@@ -3641,17 +3663,17 @@ const No = r((e) => new _n(
3641
3663
  ]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3642
3664
  u("Last seen "),
3643
3665
  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" }, [
3666
+ ]), 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
3667
  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" }, [
3668
+ qn(s, t)
3669
+ ])), 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
3670
  o({ class: "flex min-w-0 gap-x-4" }, [
3649
3671
  // @ts-ignore
3650
- zs({ src: e.image, alt: e.name, fallbackText: Gn(e.name) }),
3672
+ Os({ src: e.image, alt: e.name, fallbackText: Kn(e.name) }),
3651
3673
  // @ts-ignore
3652
- Un({ name: e.name, email: e.email })
3674
+ Yn({ name: e.name, email: e.email })
3653
3675
  ]),
3654
- qn({
3676
+ Gn({
3655
3677
  // @ts-ignore
3656
3678
  role: e.role,
3657
3679
  // @ts-ignore
@@ -3659,16 +3681,16 @@ const No = r((e) => new _n(
3659
3681
  // @ts-ignore
3660
3682
  status: e.status
3661
3683
  })
3662
- ])), Fo = r((e) => new Dt({
3684
+ ])), Lo = i((e) => new Dt({
3663
3685
  cache: "list",
3664
3686
  key: "name",
3665
3687
  // @ts-ignore
3666
3688
  items: e.users,
3667
3689
  role: "list",
3668
3690
  class: "divide-y divide-border",
3669
- rowItem: Kn
3691
+ rowItem: Qn
3670
3692
  }));
3671
- class Qn extends S {
3693
+ class Jn extends S {
3672
3694
  /**
3673
3695
  * This will declare the props for the compiler.
3674
3696
  *
@@ -3729,14 +3751,14 @@ class Qn extends S {
3729
3751
  });
3730
3752
  }
3731
3753
  }
3732
- const Jn = r(({ options: e, click: t }, s) => ({
3754
+ const Xn = i(({ options: e, click: t }, s) => ({
3733
3755
  tag: "li",
3734
3756
  ...{
3735
3757
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3736
3758
  click: t
3737
3759
  },
3738
3760
  children: s
3739
- })), Xn = (e, t = null, s = !1) => [
3761
+ })), Zn = (e, t = null, s = !1) => [
3740
3762
  t && o({
3741
3763
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3742
3764
  onState: ["selected", {
@@ -3780,7 +3802,7 @@ class lt extends S {
3780
3802
  */
3781
3803
  render() {
3782
3804
  const t = !this.options && this.callBack;
3783
- return Jn(
3805
+ return Xn(
3784
3806
  { options: this.options, click: t },
3785
3807
  [
3786
3808
  this.addLink()
@@ -3794,7 +3816,7 @@ class lt extends S {
3794
3816
  * @protected
3795
3817
  */
3796
3818
  addLink() {
3797
- const t = this.options && this.options.length > 0, s = this.content || Xn(String(this.label), this.icon, t);
3819
+ const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
3798
3820
  return this.href ? new vt(
3799
3821
  {
3800
3822
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
@@ -3804,7 +3826,7 @@ class lt extends S {
3804
3826
  exact: this.exact || !1
3805
3827
  },
3806
3828
  s
3807
- ) : new Qn({
3829
+ ) : new Jn({
3808
3830
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3809
3831
  cache: "link",
3810
3832
  checkCallBack: this.checkCallBack
@@ -3822,10 +3844,10 @@ class lt extends S {
3822
3844
  this.link.update(t);
3823
3845
  }
3824
3846
  }
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 }, [
3847
+ 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
3848
  qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3827
3849
  ]));
3828
- class ea extends S {
3850
+ class ta extends S {
3829
3851
  /**
3830
3852
  * This will declare the props for the compiler.
3831
3853
  *
@@ -3841,8 +3863,8 @@ class ea extends S {
3841
3863
  */
3842
3864
  render() {
3843
3865
  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({
3866
+ return pe({ class: `navigation flex flex-auto flex-col ${s}` }, [
3867
+ te({
3846
3868
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3847
3869
  map: t
3848
3870
  }),
@@ -3874,7 +3896,7 @@ class ea extends S {
3874
3896
  */
3875
3897
  addGroup(t) {
3876
3898
  const s = this.mapOptions(t.options);
3877
- return Zn({ map: s }, t.group);
3899
+ return ea({ map: s }, t.group);
3878
3900
  }
3879
3901
  /**
3880
3902
  * This will add a link.
@@ -3886,7 +3908,7 @@ class ea extends S {
3886
3908
  return new lt(t);
3887
3909
  }
3888
3910
  }
3889
- class rt extends ea {
3911
+ class rt extends ta {
3890
3912
  onCreated() {
3891
3913
  this.links = [];
3892
3914
  }
@@ -3897,7 +3919,7 @@ class rt extends ea {
3897
3919
  * @returns {object}
3898
3920
  */
3899
3921
  setupSubNav(t) {
3900
- return new na(
3922
+ return new aa(
3901
3923
  {
3902
3924
  parentLink: t,
3903
3925
  options: t.options
@@ -3932,11 +3954,11 @@ class rt extends ea {
3932
3954
  };
3933
3955
  }
3934
3956
  }
3935
- const ta = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), sa = (e, t) => {
3957
+ const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
3936
3958
  const s = e.link.panel.pathname;
3937
- return !s && e.isSelected() ? !0 : e.exact ? t === s : ta(s, t);
3959
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
3938
3960
  };
3939
- class na extends rt {
3961
+ class aa extends rt {
3940
3962
  /**
3941
3963
  * This will declare the props for the compiler.
3942
3964
  *
@@ -3952,8 +3974,8 @@ class na extends rt {
3952
3974
  */
3953
3975
  render() {
3954
3976
  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()])
3977
+ return pe({ class: t, onState: this.onState() }, [
3978
+ te({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3957
3979
  ]);
3958
3980
  }
3959
3981
  /**
@@ -3965,7 +3987,7 @@ class na extends rt {
3965
3987
  addWatcher() {
3966
3988
  return {
3967
3989
  watch: {
3968
- value: ["[[path]]", oe.data],
3990
+ value: ["[[path]]", X.data],
3969
3991
  callBack: this.updateLinks.bind(this)
3970
3992
  }
3971
3993
  };
@@ -4006,7 +4028,7 @@ class na extends rt {
4006
4028
  * @returns {void}
4007
4029
  */
4008
4030
  afterSetup() {
4009
- const t = oe.data.path;
4031
+ const t = X.data.path;
4010
4032
  this.updateLinks(t);
4011
4033
  }
4012
4034
  /**
@@ -4018,27 +4040,27 @@ class na extends rt {
4018
4040
  updateLinks(t) {
4019
4041
  let s = !1;
4020
4042
  for (const n of this.links)
4021
- if (n.rendered && (s = sa(n, t), s === !0))
4043
+ if (n.rendered && (s = na(n, t), s === !0))
4022
4044
  break;
4023
4045
  this.parentLink.update(s);
4024
4046
  }
4025
4047
  }
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" }, [
4048
+ 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
4049
  b({
4028
4050
  variant: "icon",
4029
4051
  class: "m-2",
4030
4052
  click: (t, { state: s }) => s.toggle("open"),
4031
4053
  icon: h.arrows.left
4032
4054
  }),
4033
- e.title && aa(e.title)
4034
- ]), la = () => o({
4055
+ e.title && oa(e.title)
4056
+ ]), ra = () => o({
4035
4057
  class: `
4036
4058
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4037
4059
  transition-opacity duration-200
4038
4060
  `,
4039
4061
  click: (e, { state: t }) => t.open = !1
4040
4062
  });
4041
- class ra extends S {
4063
+ class ia extends S {
4042
4064
  /**
4043
4065
  * This will declare the props for the compiler.
4044
4066
  *
@@ -4057,7 +4079,7 @@ class ra extends S {
4057
4079
  class: "fixed inset-0 z-50",
4058
4080
  style: "[[typeClass]]"
4059
4081
  }, [
4060
- la(),
4082
+ ra(),
4061
4083
  // Popover Content
4062
4084
  o({
4063
4085
  class: `
@@ -4066,7 +4088,7 @@ class ra extends S {
4066
4088
  dataSet: ["open", ["expanded", !0, "true"]]
4067
4089
  }, [
4068
4090
  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 }),
4091
+ la({ title: this.title }),
4070
4092
  o({ class: "flex flex-auto flex-col" }, this.children)
4071
4093
  ])
4072
4094
  ])
@@ -4110,9 +4132,9 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4110
4132
  };
4111
4133
  }, click: (e, { state: t }) => t.toggle("open") }, [
4112
4134
  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" }, [
4135
+ ]), ca = (e) => xe({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4114
4136
  it(),
4115
- e.title && ia(e.title)
4137
+ e.title && ca(e.title)
4116
4138
  ]), ct = (e, t) => {
4117
4139
  e.forEach((s) => {
4118
4140
  if (s.options) {
@@ -4122,11 +4144,11 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4122
4144
  s.callBack = t;
4123
4145
  });
4124
4146
  }, dt = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4125
- P(
4147
+ M(
4126
4148
  "open",
4127
4149
  (t) => t ? [
4128
- new ra({ title: e.title }, [
4129
- W(({ state: s }) => {
4150
+ new ia({ title: e.title }, [
4151
+ V(({ state: s }) => {
4130
4152
  const n = (a) => s.open = !1;
4131
4153
  return ct(e.options, n), new rt(
4132
4154
  {
@@ -4137,23 +4159,23 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4137
4159
  ])
4138
4160
  ] : null
4139
4161
  )
4140
- ]), Lo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4162
+ ]), Ao = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4141
4163
  o([
4142
4164
  it(),
4143
4165
  dt(e)
4144
4166
  ])
4145
- ])), Ao = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4167
+ ])), Ro = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4146
4168
  o({ class: "flex flex-auto flex-col w-full" }, [
4147
- ca(e),
4169
+ da(e),
4148
4170
  dt(e)
4149
4171
  ])
4150
- ])), Ro = r((e) => {
4172
+ ])), jo = i((e) => {
4151
4173
  const t = e.margin || "m-4 ml-0";
4152
4174
  return o({ class: `flex-none ${t}` }, [
4153
4175
  b({ variant: "back", class: "ghost", ...e })
4154
4176
  ]);
4155
4177
  });
4156
- class da extends S {
4178
+ class ua extends S {
4157
4179
  /**
4158
4180
  * This will declare the props for the compiler.
4159
4181
  *
@@ -4254,7 +4276,7 @@ Xe.addType("dockableOverlay", (e) => {
4254
4276
  const t = e.component;
4255
4277
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4256
4278
  });
4257
- class jo extends da {
4279
+ class Eo extends ua {
4258
4280
  /**
4259
4281
  * This will stop presistence.
4260
4282
  *
@@ -4359,7 +4381,7 @@ class jo extends da {
4359
4381
  this.state.docked = this.canDock();
4360
4382
  }
4361
4383
  }
4362
- const ua = r(({ index: e, click: t, state: s }, n) => pe({
4384
+ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4363
4385
  class: "p-2 cursor-pointer hover:bg-muted/50",
4364
4386
  onState: [
4365
4387
  [s, "selectedIndex", {
@@ -4368,10 +4390,10 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4368
4390
  }]
4369
4391
  ],
4370
4392
  click: () => t(e)
4371
- }, n)), ha = r(({ selectOption: e, state: t }) => ee({
4393
+ }, n)), fa = i(({ selectOption: e, state: t }) => te({
4372
4394
  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" }, [
4395
+ for: ["filteredOptions", (s, n) => ha({ index: n, click: e, state: t }, s.label)]
4396
+ })), ga = i((e) => o({ class: "relative flex flex-auto items-center" }, [
4375
4397
  F({
4376
4398
  cache: "input",
4377
4399
  // @ts-ignore
@@ -4396,20 +4418,20 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4396
4418
  // @ts-ignore
4397
4419
  x({ size: "sm" }, e.icon)
4398
4420
  ])
4399
- ])), ga = (e) => o({
4421
+ ])), ma = (e) => o({
4400
4422
  class: "relative flex fle-auto flex-col",
4401
4423
  onState: ["open", (t, s, n) => {
4402
4424
  if (t)
4403
- return new ne({
4425
+ return new ae({
4404
4426
  cache: "dropdown",
4405
4427
  parent: n,
4406
4428
  button: n.input,
4407
4429
  size: "xl"
4408
4430
  }, [
4409
- ha(e)
4431
+ fa(e)
4410
4432
  ]);
4411
4433
  }]
4412
- }), Eo = M(
4434
+ }), Ho = P(
4413
4435
  {
4414
4436
  /**
4415
4437
  * This will set up the data object.
@@ -4506,7 +4528,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4506
4528
  */
4507
4529
  render() {
4508
4530
  return o({ class: "relative w-full max-w-md" }, [
4509
- fa({
4531
+ ga({
4510
4532
  // @ts-ignore
4511
4533
  state: this.state,
4512
4534
  // @ts-ignore
@@ -4518,7 +4540,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4518
4540
  // @ts-ignore
4519
4541
  handleKeyDown: this.handleKeyDown.bind(this)
4520
4542
  }),
4521
- ga({
4543
+ ma({
4522
4544
  // @ts-ignore
4523
4545
  state: this.state,
4524
4546
  // @ts-ignore
@@ -4529,7 +4551,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4529
4551
  ]);
4530
4552
  }
4531
4553
  }
4532
- ), Ho = r((e) => {
4554
+ ), _o = i((e) => {
4533
4555
  const t = e.icon ?? h.magnifyingGlass.default;
4534
4556
  return o({
4535
4557
  // @ts-ignore
@@ -4565,7 +4587,7 @@ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4565
4587
  })
4566
4588
  ]);
4567
4589
  });
4568
- class ma extends S {
4590
+ class ba extends S {
4569
4591
  /**
4570
4592
  * This will declare the props for the compiler.
4571
4593
  *
@@ -4583,7 +4605,7 @@ class ma extends S {
4583
4605
  return o({ class: `${this.class || ""}` }, this.children);
4584
4606
  }
4585
4607
  }
4586
- class ba extends ma {
4608
+ class xa extends ba {
4587
4609
  /**
4588
4610
  * This will be called every time the route
4589
4611
  * is activated.
@@ -4593,15 +4615,15 @@ class ba extends ma {
4593
4615
  update(t) {
4594
4616
  }
4595
4617
  }
4596
- const xa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4618
+ const pa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4597
4619
  tag: "section",
4598
4620
  ...e,
4599
4621
  children: t
4600
- })), pa = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4622
+ })), ya = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4601
4623
  wt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4602
4624
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4603
4625
  ]));
4604
- class _o extends ba {
4626
+ class Uo extends xa {
4605
4627
  /**
4606
4628
  * This will declare the props for the compiler.
4607
4629
  *
@@ -4616,8 +4638,8 @@ class _o extends ba {
4616
4638
  * @returns {object}
4617
4639
  */
4618
4640
  render() {
4619
- return xa([
4620
- pa({
4641
+ return pa([
4642
+ ya({
4621
4643
  title: this.title,
4622
4644
  description: this.description
4623
4645
  }),
@@ -4626,131 +4648,131 @@ class _o extends ba {
4626
4648
  }
4627
4649
  }
4628
4650
  export {
4629
- fo as $,
4630
- io as A,
4631
- Ro as B,
4632
- on as C,
4651
+ go as $,
4652
+ co as A,
4653
+ jo as B,
4654
+ ln as C,
4633
4655
  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,
4656
+ bo as E,
4657
+ zo as F,
4658
+ Eo as G,
4659
+ Do as H,
4660
+ No as I,
4661
+ _a as J,
4662
+ Oo as K,
4663
+ Oa as L,
4664
+ to as M,
4665
+ Fa as N,
4666
+ ne as O,
4667
+ Aa as P,
4668
+ La as Q,
4669
+ Ea as R,
4670
+ Na as S,
4671
+ ja as T,
4672
+ Ra as U,
4651
4673
  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,
4674
+ uo as W,
4675
+ fo as X,
4676
+ ho as Y,
4677
+ ws as Z,
4678
+ xs as _,
4679
+ Os as a,
4680
+ Qn as a$,
4681
+ Ht as a0,
4682
+ ms as a1,
4683
+ bs as a2,
4684
+ ps as a3,
4663
4685
  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,
4686
+ Uo as a5,
4687
+ Rn as a6,
4688
+ Za as a7,
4689
+ he as a8,
4690
+ rs as a9,
4691
+ la as aA,
4692
+ oo as aB,
4693
+ Ya as aC,
4694
+ Sn as aD,
4695
+ so as aE,
4696
+ lo as aF,
4697
+ ro as aG,
4698
+ Fo as aH,
4699
+ Ho as aI,
4700
+ ga as aJ,
4701
+ no as aK,
4702
+ _o as aL,
4703
+ xo as aM,
4704
+ aa as aN,
4705
+ $e as aO,
4706
+ Ha as aP,
4707
+ Ua as aQ,
4708
+ vo as aR,
4687
4709
  Va as aS,
4688
- Mo as aT,
4689
- ca as aU,
4690
- vo as aV,
4691
- Ta as aW,
4692
- ro as aX,
4710
+ Bo as aT,
4711
+ da as aU,
4712
+ ko as aV,
4713
+ Ma as aW,
4714
+ io as aX,
4693
4715
  x as aY,
4694
- Ja as aZ,
4695
- Fo as a_,
4696
- ko as aa,
4716
+ Xa as aZ,
4717
+ Lo as a_,
4718
+ Co as aa,
4697
4719
  rt as ab,
4698
4720
  F as ac,
4699
- jt as ad,
4700
- Ba as ae,
4701
- Co as af,
4721
+ Et as ad,
4722
+ za as ae,
4723
+ So as af,
4702
4724
  lt as ag,
4703
- xa as ah,
4725
+ pa as ah,
4704
4726
  Pe as ai,
4705
- Us as aj,
4706
- Lo as ak,
4707
- Ao as al,
4708
- nn as am,
4709
- qa as an,
4727
+ Ys as aj,
4728
+ Ao as ak,
4729
+ Ro as al,
4730
+ an as am,
4731
+ Ga as an,
4710
4732
  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,
4733
+ Jn as ap,
4734
+ ta as aq,
4735
+ ea as ar,
4736
+ ia as as,
4737
+ wo as at,
4738
+ Qa as au,
4739
+ ua as av,
4740
+ ba as aw,
4741
+ Ja as ax,
4742
+ Ws as ay,
4743
+ ae as az,
4744
+ ra as b,
4723
4745
  Ze as b0,
4724
4746
  N as b1,
4725
- Ga as b2,
4726
- qs as b3,
4727
- fs as b4,
4728
- Da as b5,
4729
- $a as b6,
4747
+ Ka as b2,
4748
+ Gs as b3,
4749
+ gs as b4,
4750
+ Ia as b5,
4751
+ Da as b6,
4730
4752
  z as b7,
4731
- po as b8,
4732
- Ia as c,
4733
- ba as d,
4734
- So as e,
4753
+ yo as b8,
4754
+ Ta as c,
4755
+ xa as d,
4756
+ $o as e,
4735
4757
  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,
4758
+ en as g,
4759
+ jt as h,
4760
+ qt as i,
4761
+ An as j,
4762
+ Ba as k,
4763
+ ao as l,
4742
4764
  Pa as m,
4743
- Za as n,
4744
- xo as o,
4745
- Do as p,
4765
+ eo as n,
4766
+ po as o,
4767
+ Io as p,
4746
4768
  Vs as q,
4747
- Io as r,
4748
- Rn as s,
4749
- Ya as t,
4750
- To as u,
4769
+ To as r,
4770
+ jn as s,
4771
+ Wa as t,
4772
+ Mo as u,
4751
4773
  Po as v,
4752
- Wa as w,
4753
- ie as x,
4754
- tn as y,
4755
- go as z
4774
+ qa as w,
4775
+ ce as x,
4776
+ sn as y,
4777
+ mo as z
4756
4778
  };