@base-framework/ui 1.2.55 → 1.2.57

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 U, Span as f, Button as v, OnState as M, Div as l, Legend as mt, Fieldset as bt, H4 as Ke, P as k, Label as Y, Checkbox as me, Input as p, Textarea as Qe, UseParent as G, Img as be, H5 as xt, H2 as Z, Form as pt, Header as ee, Footer as xe, A as Je, H3 as pe, Nav as ye, Ul as te, Li as we, OnStateOpen as ve, On as X, Dialog as yt, Th as Xe, Thead as wt, Tr as vt, Table as ke, Time as kt, H1 as Ct } from "@base-framework/atoms";
2
- import { Atom as i, router as q, Jot as B, Component as S, Html as Ze, Data as N, Events as H, DateTime as se, NavLink as St, DataTracker as et } from "@base-framework/base";
1
+ import { I as Y, Span as h, Button as v, OnState as P, Div as l, Legend as mt, Fieldset as bt, H4 as Qe, P as k, Label as V, Checkbox as be, Input as y, Textarea as Je, UseParent as K, Img as xe, H5 as xt, H2 as ee, Form as pt, Header as te, Footer as pe, A as Xe, H3 as ye, Nav as we, Ul as se, Li as ve, OnStateOpen as ke, On as Z, Dialog as yt, Th as Ze, Thead as wt, Tr as vt, Table as Ce, Time as kt, H1 as Ct } from "@base-framework/atoms";
2
+ import { Atom as i, router as G, Jot as M, Component as S, Html as et, Data as F, Events as U, DateTime as ne, NavLink as St, DataTracker as tt } from "@base-framework/base";
3
3
  import { Icons as g } from "./icons.es.js";
4
4
  import { Timer as $t, TableBody as Dt, DataTableBody as It, ScrollableTableBody as Tt, List as Pt } from "@base-framework/organisms";
5
- import { F as W } from "./format-DE4rFWuD.js";
5
+ import { F as q } from "./format-DE4rFWuD.js";
6
6
  import { F as Mt } from "./bside-template-C7AQgQ6H.js";
7
7
  const Bt = {
8
8
  xs: "w-4 h-4",
@@ -14,13 +14,13 @@ const Bt = {
14
14
  "3xl": "w-16 h-16"
15
15
  }, ge = i((e, t) => {
16
16
  const s = Bt[e.size || "sm"];
17
- return U({
17
+ return Y({
18
18
  ...e,
19
19
  // @ts-ignore
20
20
  class: `stroke-current icon-size ${s} ${e.class || ""}`,
21
21
  html: t[0]?.textContent
22
22
  });
23
- }), Te = {
23
+ }), Pe = {
24
24
  xs: "w-4 h-4",
25
25
  // 16px - matches Icon
26
26
  sm: "w-6 h-6",
@@ -35,7 +35,7 @@ const Bt = {
35
35
  // 56px - matches Icon
36
36
  "3xl": "w-16 h-16"
37
37
  // 64px - matches Icon
38
- }, Pe = {
38
+ }, Me = {
39
39
  xs: "16px",
40
40
  sm: "24px",
41
41
  md: "32px",
@@ -43,14 +43,14 @@ const Bt = {
43
43
  xl: "48px",
44
44
  "2xl": "56px",
45
45
  "3xl": "64px"
46
- }, Me = {
46
+ }, Be = {
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
- }, Be = i((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = Te[t] || Te.sm, a = Pe[t] || Pe.sm, o = Me[s] || Me.outlined;
53
- return f({
51
+ }, ze = i((e) => {
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = Pe[t] || Pe.sm, a = Me[t] || Me.sm, o = Be[s] || Be.outlined;
53
+ return h({
54
54
  ...e,
55
55
  // @ts-ignore
56
56
  class: `inline-flex items-center justify-center ${o} ${n} ${e.class || ""}`,
@@ -62,14 +62,14 @@ const Bt = {
62
62
  name: void 0
63
63
  // @ts-ignore
64
64
  }, e.name);
65
- }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ge(e, t) : typeof t == "object" && t.name ? Be({
65
+ }), p = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ge(e, t) : typeof t == "object" && t.name ? ze({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
- }) : typeof t == "string" ? Be({
69
+ }) : typeof t == "string" ? ze({
70
70
  ...e,
71
71
  name: t
72
- }) : ge(e, t) : null, Ta = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Pa = (e) => typeof e == "string" && e.includes("<svg"), ze = {
72
+ }) : ge(e, t) : null, Ta = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Pa = (e) => typeof e == "string" && e.includes("<svg"), Oe = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,18 +150,18 @@ const Bt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, zt = (e) => ze[e] || ze.gray, Ot = (e, t = {}) => {
153
+ }, zt = (e) => Oe[e] || Oe.gray, Ot = (e, t = {}) => {
154
154
  const s = zt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, o = 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} ${o}`;
156
156
  }, Ma = i((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: o, textColor: r, ringColor: c, ...u } = e, h = Ot(s, { backgroundColor: o, textColor: r, ringColor: c });
158
- return f({ ...u, class: h }, [
159
- n ? x({ size: a, class: "mr-1" }, n) : null,
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: o, textColor: r, ringColor: c, ...u } = e, f = Ot(s, { backgroundColor: o, textColor: r, ringColor: c });
158
+ return h({ ...u, class: f }, [
159
+ n ? p({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
161
161
  ]);
162
162
  });
163
- let z = globalThis.history?.state?._pos ?? 0;
164
- const le = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), tt = (e, t) => {
163
+ let O = globalThis.history?.state?._pos ?? 0;
164
+ const le = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), me = (e, t) => {
165
165
  if (!t) return !1;
166
166
  const s = re(e), n = re(t);
167
167
  return s === n || s.startsWith(n + "/");
@@ -184,21 +184,21 @@ const le = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").
184
184
  if (typeof globalThis.history?.pushState == "function") {
185
185
  const e = globalThis.history.pushState, t = globalThis.history.replaceState;
186
186
  globalThis.history.pushState = function(s, n, a) {
187
- z++;
188
- const o = s !== null && typeof s == "object" ? { ...s, _pos: z } : { _pos: z };
187
+ O++;
188
+ const o = s !== null && typeof s == "object" ? { ...s, _pos: O } : { _pos: O };
189
189
  return e.call(this, o, n, a);
190
190
  }, globalThis.history.replaceState = function(s, n, a) {
191
- const o = globalThis.history.state?._pos ?? z, r = s !== null && typeof s == "object" ? { ...s, _pos: o } : { _pos: o };
191
+ const o = globalThis.history.state?._pos ?? O, r = s !== null && typeof s == "object" ? { ...s, _pos: o } : { _pos: o };
192
192
  return t.call(this, r, n, a);
193
193
  }, globalThis.addEventListener("popstate", (s) => {
194
194
  const n = (
195
195
  /** @type {any} */
196
196
  s.state?._pos
197
197
  );
198
- typeof n == "number" && (z = n);
198
+ typeof n == "number" && (O = n);
199
199
  });
200
200
  }
201
- const Oe = (e) => {
201
+ const Ne = (e) => {
202
202
  const t = globalThis.history?.state || {};
203
203
  if (!(t._entryKey === e.key && t._entryPos === e.pos && t._entrySourcePath === e.sourcePath && t._entryBasePath === e.basePath))
204
204
  try {
@@ -216,16 +216,16 @@ const Oe = (e) => {
216
216
  } catch {
217
217
  }
218
218
  }, Lt = (e) => {
219
- const t = globalThis.history?.state || {}, s = q.path || "", n = Nt(s, e), o = typeof t._entryKey == "string" && t._entryKey ? t._entryKey : `${e || ""}|${n}|${z}`, r = le.get(o);
220
- if (r && tt(s, r.basePath))
221
- return Oe(r), r;
222
- const c = t._entryPos, u = t._entrySourcePath, h = t._entryBasePath, y = typeof c == "number" ? c : z, R = typeof u == "string" || u === null ? u : q.lastPath || null, P = {
223
- key: o,
224
- pos: y,
225
- sourcePath: R,
226
- basePath: typeof h == "string" && h ? h : n
219
+ const t = globalThis.history?.state || {}, s = G.path || "", n = Nt(s, e), a = t._entryBasePath, o = typeof a == "string" && a.length > 0 && me(s, a), c = o && typeof t._entryKey == "string" && t._entryKey ? t._entryKey : `${e || ""}|${n}|${O}`, u = le.get(c);
220
+ if (u && me(s, u.basePath))
221
+ return Ne(u), u;
222
+ const f = o ? t._entryPos : void 0, b = o ? t._entrySourcePath : void 0, A = typeof f == "number" ? f : O, B = typeof b == "string" || b === null ? b : G.lastPath || null, z = {
223
+ key: c,
224
+ pos: A,
225
+ sourcePath: B,
226
+ basePath: o && typeof a == "string" && a ? a : n
227
227
  };
228
- return Oe(P), le.set(o, P), P;
228
+ return Ne(z), le.set(c, z), z;
229
229
  }, Rt = (e) => {
230
230
  const t = globalThis.history?.state?._entryKey;
231
231
  typeof t == "string" && t && le.delete(t), e && le.delete(e);
@@ -233,16 +233,16 @@ const Oe = (e) => {
233
233
  const t = Ft(), s = Lt(e.backUrl);
234
234
  return () => {
235
235
  Rt(e.backUrl);
236
- const n = z - s.pos + 1, a = s.sourcePath, o = typeof a == "string" && a.length > 0 && !tt(a, s.basePath);
236
+ const n = O - s.pos + 1, a = s.sourcePath, o = typeof a == "string" && a.length > 0 && !me(a, s.basePath);
237
237
  if (!t && s.pos > 0) {
238
238
  globalThis.history.go(-n);
239
239
  return;
240
240
  }
241
241
  if (o) {
242
- q.navigate(a);
242
+ G.navigate(a);
243
243
  return;
244
244
  }
245
- e.backUrl && q.navigate(e.backUrl);
245
+ e.backUrl && G.navigate(e.backUrl);
246
246
  };
247
247
  };
248
248
  class st extends S {
@@ -259,9 +259,9 @@ class st extends S {
259
259
  return s ? { data: s } : null;
260
260
  }
261
261
  }
262
- const F = (e) => (
262
+ const L = (e) => (
263
263
  /** @type {VeilComponentConstructor} */
264
- B(e, st)
264
+ M(e, st)
265
265
  );
266
266
  class Ba extends st {
267
267
  /**
@@ -297,18 +297,18 @@ class Ba extends st {
297
297
  const t = this.size, s = this.icon, n = this.activeIcon || this.icon, a = (() => {
298
298
  if (this.dataKey) {
299
299
  let r = `[[${this.dataKey}]]`;
300
- 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)), f({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
300
+ return this.formatType === "number" ? r = q.number(r, "0") : this.formatType === "money" ? r = q.roundMoney(r) : this.formatType === "date" ? r = q.date(r) : this.formatType === "percent" && (r = q.percentage(r)), h({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
301
301
  }
302
- return this.value !== null && this.value !== void 0 ? f({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
302
+ return this.value !== null && this.value !== void 0 ? h({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
303
303
  })(), o = this.fill;
304
304
  return v({
305
305
  click: () => this.handleToggle(),
306
306
  // @ts-ignore
307
307
  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 || ""}`
308
308
  }, [
309
- M(
309
+ P(
310
310
  "active",
311
- (r) => x({ size: t, variant: r && o ? "filled" : "outlined" }, r ? n : s)
311
+ (r) => p({ size: t, variant: r && o ? "filled" : "outlined" }, r ? n : s)
312
312
  ),
313
313
  a
314
314
  ]);
@@ -353,18 +353,18 @@ class za extends S {
353
353
  * @returns {object}
354
354
  */
355
355
  render() {
356
- const t = this.icon, s = this.activeIcon || this.icon, n = ie[this.size] || ie.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", o = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, u = this.circle ?? !1, h = this.fill;
356
+ const t = this.icon, s = this.activeIcon || this.icon, n = ie[this.size] || ie.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", o = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, u = this.circle ?? !1, f = this.fill;
357
357
  return v({
358
358
  click: () => this.handleToggle(),
359
359
  // @ts-ignore
360
360
  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} ${o}${u ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
361
361
  }, [
362
- M("active", (y) => [
363
- x({
362
+ P("active", (b) => [
363
+ p({
364
364
  size: a,
365
- variant: y && h ? "filled" : "outlined",
366
- class: `transition-colors ${y ? c : r}`
367
- }, y ? s : t)
365
+ variant: b && f ? "filled" : "outlined",
366
+ class: `transition-colors ${b ? c : r}`
367
+ }, b ? s : t)
368
368
  ])
369
369
  ]);
370
370
  }
@@ -377,10 +377,10 @@ const Oa = i((e, t) => {
377
377
  class: `circle-btn inline-flex items-center justify-center rounded-full border-0 bg-background/40 backdrop-blur-sm text-foreground cursor-pointer transition-colors hover:bg-background/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${e.class || ""}`
378
378
  }, [
379
379
  // @ts-ignore
380
- e.icon ? x({ size: a }, e.icon) : null,
380
+ e.icon ? p({ size: a }, e.icon) : null,
381
381
  ...t || []
382
382
  ]);
383
- }), E = (e) => i((t, s) => v({
383
+ }), _ = (e) => i((t, s) => v({
384
384
  ...e,
385
385
  ...t,
386
386
  // @ts-ignore
@@ -392,12 +392,12 @@ const Oa = i((e, t) => {
392
392
  class: e.class
393
393
  }, [
394
394
  // @ts-ignore
395
- e.icon && e.position !== "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null,
395
+ e.icon && e.position !== "right" ? p({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null,
396
396
  ...t || [],
397
397
  // @ts-ignore
398
- e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
398
+ e.icon && e.position === "right" ? p({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
399
399
  ])
400
- ), Ne = (e) => i((t, s) => nt({
400
+ ), Fe = (e) => i((t, s) => nt({
401
401
  ...e,
402
402
  ...t,
403
403
  // @ts-ignore
@@ -419,22 +419,22 @@ const Oa = i((e, t) => {
419
419
  class: `circle-icon-btn inline-flex items-center justify-center rounded-full ${a} text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-background transition-colors disabled:pointer-events-none disabled:opacity-50 cursor-pointer ${n[s] || n.md} ${e.class || ""}`
420
420
  }, [
421
421
  // @ts-ignore
422
- e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
422
+ e.icon ? p({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
423
423
  ...t || []
424
424
  ]);
425
- }), Fe = {
426
- primary: E({ class: "primary" }),
427
- secondary: E({ class: "secondary" }),
428
- destructive: E({ class: "destructive" }),
429
- warning: E({ class: "warning" }),
430
- outline: E({ class: "outline" }),
431
- ghost: E({ class: "ghost" }),
432
- link: E({ class: "link" }),
433
- icon: Ne({ class: "icon" }),
434
- withIcon: Ne({ class: "with-icon" }),
425
+ }), Le = {
426
+ primary: _({ class: "primary" }),
427
+ secondary: _({ class: "secondary" }),
428
+ destructive: _({ class: "destructive" }),
429
+ warning: _({ class: "warning" }),
430
+ outline: _({ class: "outline" }),
431
+ ghost: _({ class: "ghost" }),
432
+ link: _({ class: "link" }),
433
+ icon: Fe({ class: "icon" }),
434
+ withIcon: Fe({ class: "with-icon" }),
435
435
  back: jt({ class: "with-icon back-button" }),
436
436
  circleIcon: Et
437
- }, b = i((e, t) => (Fe[e.variant] || Fe.primary)(e, t)), Na = i((e, t) => b({ ...e, variant: "withIcon", icon: g.loading, animation: "animate-spin" }, t)), _t = i((e, t) => {
437
+ }, x = i((e, t) => (Le[e.variant] || Le.primary)(e, t)), Na = i((e, t) => x({ ...e, variant: "withIcon", icon: g.loading, animation: "animate-spin" }, t)), _t = i((e, t) => {
438
438
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
439
439
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), l({
440
440
  ...e,
@@ -471,14 +471,14 @@ const Oa = i((e, t) => {
471
471
  class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
472
472
  }, [
473
473
  // @ts-ignore
474
- Ke({ class: "text-base" }, e.label),
474
+ Qe({ class: "text-base" }, e.label),
475
475
  // @ts-ignore
476
476
  e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
477
477
  ]),
478
478
  // Controls container: grows to fill remaining space, spacing between items
479
479
  l({ class: "flex flex-col gap-y-4" }, t)
480
480
  ]);
481
- }), Yt = "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", V = "placeholder:text-muted-foreground", Ce = `${Yt} ${D} ${$} ${V} ${C}`, Vt = ({ id: e, checked: t, bind: s, required: n }) => me({
481
+ }), Yt = "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", W = "placeholder:text-muted-foreground", Se = `${Yt} ${D} ${$} ${W} ${C}`, Vt = ({ id: e, checked: t, bind: s, required: n }) => be({
482
482
  id: e,
483
483
  cache: "checkbox",
484
484
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -488,10 +488,10 @@ const Oa = i((e, t) => {
488
488
  required: n,
489
489
  checked: t,
490
490
  bind: s
491
- }), Wt = () => f({ class: "absolute text-xs pointer-events-none" }, [
492
- M(
491
+ }), Wt = () => h({ class: "absolute text-xs pointer-events-none" }, [
492
+ P(
493
493
  "checked",
494
- (e) => e ? U({
494
+ (e) => e ? Y({
495
495
  class: "w-2 h-2 pointer-events-none",
496
496
  html: g.check
497
497
  }) : null
@@ -518,11 +518,11 @@ const Oa = i((e, t) => {
518
518
  }, [
519
519
  Vt({ bind: t, checked: s, id: e, required: n }),
520
520
  Wt()
521
- ]), Gt = ({ id: e, label: t, clickHandler: s }) => Y({
521
+ ]), Gt = ({ id: e, label: t, clickHandler: s }) => V({
522
522
  class: "text-base cursor-pointer",
523
523
  htmlFor: e,
524
524
  click: s
525
- }, t), Kt = B(
525
+ }, t), Kt = M(
526
526
  {
527
527
  /**
528
528
  * This will initialize the state of the checkbox.
@@ -631,25 +631,25 @@ const Oa = i((e, t) => {
631
631
  "pointer-events-none select-none"
632
632
  ].join(" ");
633
633
  let as = 0;
634
- const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ? Y(
634
+ const $e = (e) => e.id || e.name || `floating-${++as}`, De = (e, t, s, n) => e ? V(
635
635
  { htmlFor: s, class: n },
636
- t ? [f(e), f({ class: "text-destructive ml-0.5" }, "*")] : e
637
- ) : null, os = () => U({
636
+ t ? [h(e), h({ class: "text-destructive ml-0.5" }, "*")] : e
637
+ ) : null, os = () => Y({
638
638
  class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
639
639
  html: g.chevron.single.down
640
- }), ne = i((e) => {
641
- const t = Se(e);
640
+ }), ae = i((e) => {
641
+ const t = $e(e);
642
642
  return l({ class: "relative" }, [
643
- p({
643
+ y({
644
644
  ...e,
645
645
  id: t,
646
646
  placeholder: " ",
647
647
  class: `${Xt} ${e.class || ""}`.trim()
648
648
  }),
649
- $e(e.label, e.required, t, ts)
649
+ De(e.label, e.required, t, ts)
650
650
  ]);
651
651
  }), La = i(
652
- (e) => ne({
652
+ (e) => ae({
653
653
  ...e,
654
654
  type: "tel",
655
655
  name: e.name || "Phone",
@@ -658,44 +658,44 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
658
658
  keyup: Jt
659
659
  })
660
660
  ), Ra = i(
661
- (e) => ne({
661
+ (e) => ae({
662
662
  ...e,
663
663
  type: "email",
664
664
  name: e.name || "Email",
665
665
  label: e.label || "Email"
666
666
  })
667
667
  ), Aa = i(
668
- (e) => ne({
668
+ (e) => ae({
669
669
  ...e,
670
670
  type: "password",
671
671
  name: e.name || "Password",
672
672
  label: e.label || "Password"
673
673
  })
674
674
  ), ja = i(
675
- (e) => ne({
675
+ (e) => ae({
676
676
  ...e,
677
677
  type: "number"
678
678
  })
679
679
  ), Ea = i(
680
- (e) => ne({
680
+ (e) => ae({
681
681
  ...e,
682
682
  type: "url",
683
683
  name: e.name || "Url",
684
684
  label: e.label || "URL"
685
685
  })
686
686
  ), _a = i((e) => {
687
- const t = Se(e);
687
+ const t = $e(e);
688
688
  return l({ class: "relative" }, [
689
- Qe({
689
+ Je({
690
690
  ...e,
691
691
  id: t,
692
692
  placeholder: " ",
693
693
  class: `${Zt} ${e.class || ""}`.trim()
694
694
  }),
695
- $e(e.label, e.required, t, ss)
695
+ De(e.label, e.required, t, ss)
696
696
  ]);
697
697
  }), Ha = i((e) => {
698
- const t = Se(e), { options: s, onCreated: n, ...a } = e;
698
+ const t = $e(e), { options: s, onCreated: n, ...a } = e;
699
699
  return l({ class: "relative" }, [
700
700
  {
701
701
  tag: "select",
@@ -703,11 +703,11 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
703
703
  id: t,
704
704
  class: `[&>option]:text-foreground [&>option]:bg-background ${es} ${a.class || ""}`.trim(),
705
705
  onCreated(o) {
706
- s && Ze.setupSelectOptions(o, s), typeof n == "function" && n(o);
706
+ s && et.setupSelectOptions(o, s), typeof n == "function" && n(o);
707
707
  }
708
708
  },
709
709
  os(),
710
- $e(e.label, e.required, t, ns)
710
+ De(e.label, e.required, t, ns)
711
711
  ]);
712
712
  }), ls = (e) => {
713
713
  if (!e || e.length === 0) return "";
@@ -716,11 +716,11 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
716
716
  }, rs = (e) => {
717
717
  const t = e.target, s = ls(t.value);
718
718
  s && (t.value = s);
719
- }, L = i((e) => p({
719
+ }, R = i((e) => y({
720
720
  ...e,
721
721
  // @ts-ignore
722
- class: `${Ce} ${e.class || ""}`.trim()
723
- })), Ua = i((e) => L({
722
+ class: `${Se} ${e.class || ""}`.trim()
723
+ })), Ua = i((e) => R({
724
724
  ...e,
725
725
  type: "tel",
726
726
  // @ts-ignore
@@ -731,7 +731,7 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
731
731
  // @ts-ignore
732
732
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
733
733
  keyup: rs
734
- })), Ya = i((e) => L({
734
+ })), Ya = i((e) => R({
735
735
  ...e,
736
736
  type: "email",
737
737
  // @ts-ignore
@@ -739,77 +739,77 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
739
739
  // @ts-ignore
740
740
  label: e.label || "Email",
741
741
  placeholder: "Email address"
742
- })), Va = i((e) => Qe({
742
+ })), Va = i((e) => Je({
743
743
  ...e,
744
744
  as: "textarea",
745
745
  // @ts-ignore
746
- class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${V} ${C} ${e.class || ""}`.trim()
746
+ class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${W} ${C} ${e.class || ""}`.trim()
747
747
  })), Wa = (e = {}) => l({ class: "flex items-center gap-x-2" }, [
748
- p({
748
+ y({
749
749
  ...e,
750
750
  type: "radio",
751
751
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
752
752
  }),
753
- e.label && Y({ forHTML: e.value, class: "cursor-pointer" }, e.label)
754
- ]), qa = i((e) => p({
753
+ e.label && V({ forHTML: e.value, class: "cursor-pointer" }, e.label)
754
+ ]), qa = i((e) => y({
755
755
  ...e,
756
756
  type: "date",
757
757
  // @ts-ignore
758
- class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
759
- })), Ga = i((e) => p({
758
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
759
+ })), Ga = i((e) => y({
760
760
  ...e,
761
761
  type: "time",
762
762
  // @ts-ignore
763
- class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
764
- })), Ka = i((e) => p({
763
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
764
+ })), Ka = i((e) => y({
765
765
  ...e,
766
766
  type: "datetime-local",
767
767
  // @ts-ignore
768
- class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
769
- })), Qa = i((e) => p({
768
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
769
+ })), Qa = i((e) => y({
770
770
  ...e,
771
771
  type: "month",
772
772
  // @ts-ignore
773
- class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
774
- })), Ja = i((e) => p({
773
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
774
+ })), Ja = i((e) => y({
775
775
  ...e,
776
776
  type: "week",
777
777
  // @ts-ignore
778
- class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
779
- })), Xa = i((e) => L({
778
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
779
+ })), Xa = i((e) => R({
780
780
  ...e,
781
781
  type: "number"
782
- })), Za = i((e) => L({
782
+ })), Za = i((e) => R({
783
783
  ...e,
784
784
  type: "password"
785
785
  }));
786
- i((e) => L({
786
+ i((e) => R({
787
787
  ...e,
788
788
  type: "search"
789
789
  }));
790
- const eo = i((e) => L({
790
+ const eo = i((e) => R({
791
791
  ...e,
792
792
  type: "url"
793
- })), to = i((e) => L({
793
+ })), to = i((e) => R({
794
794
  ...e,
795
795
  type: "hidden"
796
- })), so = i((e) => p({
796
+ })), so = i((e) => y({
797
797
  ...e,
798
798
  type: "color",
799
799
  // @ts-ignore
800
800
  class: `${D} text-foreground p-0 ${C} ${e.class || ""}`.trim()
801
801
  }));
802
- i((e) => me({
802
+ i((e) => be({
803
803
  ...e,
804
804
  // @ts-ignore
805
805
  class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
806
806
  }));
807
- const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", no = i((e) => p({
807
+ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", no = i((e) => y({
808
808
  ...e,
809
809
  type: "file",
810
810
  // @ts-ignore
811
- class: `${Ce} ${is} ${e.class || ""}`.trim()
812
- })), ao = F(
811
+ class: `${Se} ${is} ${e.class || ""}`.trim()
812
+ })), ao = L(
813
813
  {
814
814
  /**
815
815
  * This will create the initial state of the RangeSlider.
@@ -842,7 +842,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
842
842
  return l({ class: "relative w-full h-4 flex items-center" }, [
843
843
  // Track
844
844
  l({ class: "absolute h-2 w-full rounded-full bg-muted" }),
845
- G(({ state: e }) => [
845
+ K(({ state: e }) => [
846
846
  // Filled Track
847
847
  l({
848
848
  class: "absolute h-2 bg-primary rounded-full",
@@ -859,7 +859,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
859
859
  style: ["left: [[filledPercentage]]%", e]
860
860
  }),
861
861
  // Hidden Range Input
862
- p({
862
+ y({
863
863
  type: "range",
864
864
  min: ["[[min]]", e],
865
865
  max: ["[[max]]", e],
@@ -886,12 +886,12 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
886
886
  return {
887
887
  tag: "select",
888
888
  onCreated(a) {
889
- t && Ze.setupSelectOptions(a, t), s && s(a);
889
+ t && et.setupSelectOptions(a, t), s && s(a);
890
890
  },
891
891
  ...n,
892
- class: `[&>option]:text-foreground [&>option]:bg-background ${Ce} ${n.class || ""}`.trim()
892
+ class: `[&>option]:text-foreground [&>option]:bg-background ${Se} ${n.class || ""}`.trim()
893
893
  };
894
- }), cs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: o = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : be({
894
+ }), cs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: o = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : xe({
895
895
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
896
896
  src: e,
897
897
  alt: t,
@@ -903,7 +903,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
903
903
  * If there's an error loading the image, hide it.
904
904
  */
905
905
  error: (c) => c.target.style.visibility = "hidden"
906
- })), ds = (e) => !e || isNaN(e) ? null : e, Le = (e, t) => {
906
+ })), ds = (e) => !e || isNaN(e) ? null : e, Re = (e, t) => {
907
907
  const s = e, n = 16, a = 2 * Math.PI * n, o = s / 100 * a, r = `
908
908
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
909
909
  <!-- Background Circle -->
@@ -947,19 +947,19 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
947
947
  html: r
948
948
  });
949
949
  }, lo = i((e) => {
950
- const t = e.progress || 0, s = e.class || "", n = Le(t, s);
950
+ const t = e.progress || 0, s = e.class || "", n = Re(t, s);
951
951
  return l({
952
952
  class: "circle-graph-wrap",
953
953
  onSet: [
954
954
  // @ts-ignore
955
955
  e.prop,
956
- (a) => (a = ds(a), a ? Le(a, s) : n)
956
+ (a) => (a = ds(a), a ? Re(a, s) : n)
957
957
  ]
958
958
  }, [n]);
959
- }), us = () => G(({ state: e }) => l({
959
+ }), us = () => K(({ state: e }) => l({
960
960
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
961
961
  style: ["width: [[progress]]%;", e]
962
- })), ro = F(
962
+ })), ro = L(
963
963
  {
964
964
  /**
965
965
  * This will render the progress bar component.
@@ -1026,10 +1026,10 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1026
1026
  s ? a : "",
1027
1027
  n ? o : "",
1028
1028
  t
1029
- ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1029
+ ].filter(Boolean).join(" "), f = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1030
1030
  return l({
1031
1031
  class: u,
1032
- style: h,
1032
+ style: f,
1033
1033
  "aria-hidden": "true"
1034
1034
  });
1035
1035
  }), co = i((e = {}) => {
@@ -1047,13 +1047,13 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1047
1047
  s ? a : "",
1048
1048
  n ? o : "",
1049
1049
  t
1050
- ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1050
+ ].filter(Boolean).join(" "), f = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1051
1051
  return l({
1052
1052
  class: u,
1053
- style: h,
1053
+ style: f,
1054
1054
  "aria-hidden": "true"
1055
1055
  });
1056
- }), Re = {
1056
+ }), Ae = {
1057
1057
  top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
1058
1058
  "top-right": "bottom-full left-full transform -translate-x-1 mb-2",
1059
1059
  "top-left": "bottom-full right-full transform translate-x-1 mb-2",
@@ -1062,19 +1062,19 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1062
1062
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1063
1063
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1064
1064
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1065
- }, hs = (e) => Re[String(e)] || Re.top, uo = i(({ position: e = "top", content: t }, s) => {
1065
+ }, hs = (e) => Ae[String(e)] || Ae.top, uo = i(({ position: e = "top", content: t }, s) => {
1066
1066
  const n = hs(e);
1067
1067
  return Array.isArray(s) === !1 && (s = [s]), l({ class: "relative group inline-block" }, [
1068
1068
  ...s,
1069
1069
  // Tooltip box
1070
- f({
1070
+ h({
1071
1071
  class: `
1072
1072
  absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
1073
1073
  group-hover:opacity-100 transition-opacity duration-200 ${n} pointer-events-none
1074
1074
  `
1075
1075
  }, t)
1076
1076
  ]);
1077
- }), Ae = {
1077
+ }), je = {
1078
1078
  info: {
1079
1079
  borderColor: "border-blue-500",
1080
1080
  bgColor: "bg-muted/10",
@@ -1101,9 +1101,9 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1101
1101
  iconColor: "text-muted-foreground"
1102
1102
  }
1103
1103
  }, fs = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1104
- x({ size: "sm" }, e)
1104
+ p({ size: "sm" }, e)
1105
1105
  ]), gs = (e) => xt({ class: "font-semibold" }, e), ms = (e) => k({ class: "text-sm text-muted-foreground" }, e), ho = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
1106
- const { borderColor: a, bgColor: o, iconColor: r } = Ae[n] || Ae.default;
1106
+ const { borderColor: a, bgColor: o, iconColor: r } = je[n] || je.default;
1107
1107
  return l({ class: `flex items-start p-4 border rounded-lg ${o} ${a}` }, [
1108
1108
  // Icon and content
1109
1109
  s && fs(s, r),
@@ -1115,17 +1115,17 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1115
1115
  }), bs = (e, t) => {
1116
1116
  const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, o = globalThis.scrollX, r = globalThis.scrollY;
1117
1117
  let c = s.left + o, u = s.bottom + r;
1118
- const h = globalThis.innerHeight - s.bottom, y = s.top;
1119
- return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), h < n.height && y > h ? u = s.top + r - n.height - a : h < n.height && (u = s.bottom + r - (n.height - h) - a), { x: c, y: u };
1118
+ const f = globalThis.innerHeight - s.bottom, b = s.top;
1119
+ return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), f < n.height && b > f ? u = s.top + r - n.height - a : f < n.height && (u = s.bottom + r - (n.height - f) - a), { x: c, y: u };
1120
1120
  };
1121
- class ae extends S {
1121
+ class oe extends S {
1122
1122
  /**
1123
1123
  * This will set up the data.
1124
1124
  *
1125
1125
  * @returns {object}
1126
1126
  */
1127
1127
  setData() {
1128
- const t = this.parent.data || new N();
1128
+ const t = this.parent.data || new F();
1129
1129
  return t.set({
1130
1130
  position: { x: 0, y: 0 }
1131
1131
  }), t;
@@ -1247,9 +1247,9 @@ class ae extends S {
1247
1247
  this?.panel?.hidePopover();
1248
1248
  }
1249
1249
  }
1250
- const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ps = i((e, t) => Y({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ys = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ws = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), fo = i((e, t = []) => _t({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1250
+ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ps = i((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ys = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ws = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), fo = i((e, t = []) => _t({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1251
1251
  // @ts-ignore
1252
- e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1252
+ e.title && ee({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1253
1253
  // @ts-ignore
1254
1254
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1255
1255
  ...t
@@ -1278,7 +1278,7 @@ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1278
1278
  ...e,
1279
1279
  class: "w-full"
1280
1280
  }, a);
1281
- }), bo = F(
1281
+ }), bo = L(
1282
1282
  {
1283
1283
  /**
1284
1284
  * The initial state of the FormField.
@@ -1329,19 +1329,19 @@ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1329
1329
  l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1330
1330
  )), po = i((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
1331
1331
  // @ts-ignore
1332
- e.title && Z({ class: "font-semibold" }, e.title),
1332
+ e.title && ee({ class: "font-semibold" }, e.title),
1333
1333
  ...t
1334
1334
  ])), yo = (e, t) => l({ class: "flex justify-between" }, [
1335
- f({ class: "text-muted-foreground" }, e),
1336
- f(t)
1335
+ h({ class: "text-muted-foreground" }, e),
1336
+ h(t)
1337
1337
  ]), wo = (e, t) => l({ class: "flex" }, [
1338
- f({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1339
- f(t)
1340
- ]), Ss = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: o = !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" }, [
1338
+ h({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1339
+ h(t)
1340
+ ]), Ss = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: o = !1 }) => te({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1341
1341
  /**
1342
1342
  * Back Button (Mobile Only)
1343
1343
  */
1344
- s && b({
1344
+ s && x({
1345
1345
  variant: "icon",
1346
1346
  icon: g.arrows.left,
1347
1347
  class: "mr-2 p-0 flex sm:hidden",
@@ -1351,11 +1351,11 @@ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1351
1351
  * Icon Container
1352
1352
  */
1353
1353
  n && l({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [
1354
- x({ size: "md" }, n)
1354
+ p({ size: "md" }, n)
1355
1355
  ]),
1356
1356
  l({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1357
1357
  l({ class: `flex flex-auto flex-col min-w-0 ${o ? "items-center" : ""}` }, [
1358
- Z({ class: "text-lg font-semibold m-0 truncate" }, e),
1358
+ ee({ class: "text-lg font-semibold m-0 truncate" }, e),
1359
1359
  t && l({ class: "text-sm text-muted-foreground truncate" }, t)
1360
1360
  ]),
1361
1361
  l({ class: "flex flex-none items-center gap-2" }, a)
@@ -1379,10 +1379,10 @@ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1379
1379
  Ss(e),
1380
1380
  l({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1381
1381
  // @ts-ignore
1382
- !e.hideFooter && xe({ 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)
1382
+ !e.hideFooter && pe({ 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)
1383
1383
  ])
1384
1384
  ]);
1385
- }), je = {
1385
+ }), Ee = {
1386
1386
  info: {
1387
1387
  bgColor: "bg-muted/10",
1388
1388
  borderColor: "border-blue-500",
@@ -1408,9 +1408,9 @@ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1408
1408
  borderColor: "border",
1409
1409
  iconColor: "text-muted-foreground"
1410
1410
  }
1411
- }, $s = (e) => ee({ class: "flex justify-center" }, [
1412
- pe({ class: "text-lg font-bold mb-0" }, e)
1413
- ]), Ds = i(({ href: e, class: t }, s) => Je({
1411
+ }, $s = (e) => te({ class: "flex justify-center" }, [
1412
+ ye({ class: "text-lg font-bold mb-0" }, e)
1413
+ ]), Ds = i(({ href: e, class: t }, s) => Xe({
1414
1414
  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}`,
1415
1415
  href: e,
1416
1416
  animateIn: "pullRightIn",
@@ -1471,7 +1471,7 @@ class ko extends S {
1471
1471
  */
1472
1472
  getTypeStyles() {
1473
1473
  const t = this.type || "default";
1474
- return je[t] || je.default;
1474
+ return Ee[t] || Ee.default;
1475
1475
  }
1476
1476
  /**
1477
1477
  * This will get the buttons for the notification.
@@ -1481,8 +1481,8 @@ class ko extends S {
1481
1481
  getButtons() {
1482
1482
  return [
1483
1483
  l({ class: "flex flex-row mt-6 gap-2" }, [
1484
- this.secondary && b({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
1485
- this.primary && b({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
1484
+ this.secondary && x({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
1485
+ this.primary && x({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
1486
1486
  ])
1487
1487
  ];
1488
1488
  }
@@ -1496,17 +1496,17 @@ class ko extends S {
1496
1496
  return [
1497
1497
  l({ class: "flex items-start" }, [
1498
1498
  this.icon && l({ class: `mr-4 ${t}` }, [
1499
- x({ size: "md" }, this.icon)
1499
+ p({ size: "md" }, this.icon)
1500
1500
  ]),
1501
1501
  l({ class: "flex flex-auto flex-col" }, [
1502
1502
  l({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1503
1503
  this.title && $s(this.title)
1504
1504
  ]),
1505
1505
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1506
- (this.primary || this.secondary) && xe({ class: "margin-top-24 flex align-center" }, this.getButtons())
1506
+ (this.primary || this.secondary) && pe({ class: "margin-top-24 flex align-center" }, this.getButtons())
1507
1507
  ])
1508
1508
  ]),
1509
- b({
1509
+ x({
1510
1510
  class: "absolute top-[12px] right-[12px]",
1511
1511
  variant: "icon",
1512
1512
  icon: g.x,
@@ -1524,7 +1524,7 @@ class ko extends S {
1524
1524
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1525
1525
  }
1526
1526
  }
1527
- const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v({
1527
+ const _e = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v({
1528
1528
  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',
1529
1529
  onState: ["method", { active: e }],
1530
1530
  dataSet: ["method", ["state", e, "active"]],
@@ -1532,17 +1532,17 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1532
1532
  a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ts(e);
1533
1533
  }
1534
1534
  }, [
1535
- x({}, s),
1536
- f(t)
1535
+ p({}, s),
1536
+ h(t)
1537
1537
  ])), Ts = (e) => {
1538
1538
  const t = document.documentElement;
1539
- if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Ee && !Ee("(prefers-color-scheme: " + e + ")").matches) {
1539
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), _e && !_e("(prefers-color-scheme: " + e + ")").matches) {
1540
1540
  t.classList.add(e);
1541
1541
  return;
1542
1542
  }
1543
1543
  const s = e === "light" ? "dark" : "light";
1544
1544
  t.classList.remove(s);
1545
- }, Co = B(
1545
+ }, Co = M(
1546
1546
  {
1547
1547
  /**
1548
1548
  * This will render the component.
@@ -1569,7 +1569,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1569
1569
  };
1570
1570
  }
1571
1571
  }
1572
- ), So = F(
1572
+ ), So = L(
1573
1573
  {
1574
1574
  /**
1575
1575
  * The initial state of the Toggle.
@@ -1603,7 +1603,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1603
1603
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1604
1604
  }
1605
1605
  }, [
1606
- me({
1606
+ be({
1607
1607
  cache: "checkbox",
1608
1608
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1609
1609
  /**
@@ -1614,7 +1614,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1614
1614
  bind: this.bind,
1615
1615
  required: this.required
1616
1616
  }),
1617
- f({
1617
+ h({
1618
1618
  class: "absolute h-5 w-5 bg-background rounded-full shadow-md transform transition-transform",
1619
1619
  onState: ["active", { "translate-x-[22px]": !0, "translate-x-[2px]": !1 }]
1620
1620
  })
@@ -1625,9 +1625,9 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1625
1625
  src: e,
1626
1626
  alt: t,
1627
1627
  class: "rounded-full"
1628
- })), Ms = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), lt = (e) => !e || e.length < 2 ? e : Ms(e), Bs = (e) => f([e, (t, s) => {
1628
+ })), Ms = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), lt = (e) => !e || e.length < 2 ? e : Ms(e), Bs = (e) => h([e, (t, s) => {
1629
1629
  s.textContent = lt(t);
1630
- }]), _e = {
1630
+ }]), He = {
1631
1631
  xs: "h-6 w-6",
1632
1632
  sm: "h-8 w-8",
1633
1633
  md: "h-12 w-12",
@@ -1637,7 +1637,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1637
1637
  "3xl": "h-48 w-48",
1638
1638
  "4xl": "h-64 w-64",
1639
1639
  default: "h-12 w-12"
1640
- }, He = {
1640
+ }, Ue = {
1641
1641
  xs: "text-[7px]",
1642
1642
  sm: "text-xs",
1643
1643
  md: "text-base",
@@ -1647,7 +1647,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1647
1647
  "3xl": "text-4xl",
1648
1648
  "4xl": "text-5xl",
1649
1649
  default: "text-base"
1650
- }, zs = (e) => _e[e] || _e.default, Os = (e) => He[e] || He.default, Ns = (e, t = null, s = "md") => {
1650
+ }, zs = (e) => He[e] || He.default, Os = (e) => Ue[e] || Ue.default, Ns = (e, t = null, s = "md") => {
1651
1651
  const n = lt(String(e)), a = Os(s);
1652
1652
  return l(
1653
1653
  {
@@ -1658,7 +1658,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1658
1658
  `
1659
1659
  },
1660
1660
  [
1661
- t ? Bs(t) : f({ class: "uppercase" }, n)
1661
+ t ? Bs(t) : h({ class: "uppercase" }, n)
1662
1662
  ]
1663
1663
  );
1664
1664
  }, Fs = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
@@ -1672,7 +1672,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1672
1672
  Ns(s, n, a)
1673
1673
  ]
1674
1674
  );
1675
- }), Ue = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, $o = B(
1675
+ }), Ye = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, $o = M(
1676
1676
  {
1677
1677
  /**
1678
1678
  * Get the initial state for the component.
@@ -1682,7 +1682,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1682
1682
  state() {
1683
1683
  return {
1684
1684
  // @ts-ignore
1685
- loaded: !!this.src && !Ue(this.src)
1685
+ loaded: !!this.src && !Ye(this.src)
1686
1686
  };
1687
1687
  },
1688
1688
  /**
@@ -1692,7 +1692,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1692
1692
  */
1693
1693
  openFileBrowse() {
1694
1694
  const e = this.input;
1695
- e && (e.value = "", H.trigger("click", e));
1695
+ e && (e.value = "", U.trigger("click", e));
1696
1696
  },
1697
1697
  /**
1698
1698
  * Get the URL for the uploaded file.
@@ -1711,7 +1711,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1711
1711
  render() {
1712
1712
  const e = "image-upload", t = this.onChange || null;
1713
1713
  return l({ class: "flex-none items-center" }, [
1714
- p({
1714
+ y({
1715
1715
  id: e,
1716
1716
  cache: "input",
1717
1717
  type: "file",
@@ -1728,13 +1728,13 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1728
1728
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1729
1729
  }
1730
1730
  }, [
1731
- M("loaded", (s) => s === !1 || Ue(this.src) ? Y({
1731
+ P("loaded", (s) => s === !1 || Ye(this.src) ? V({
1732
1732
  htmlFor: e,
1733
1733
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1734
1734
  }, [
1735
1735
  ge(g.upload),
1736
1736
  l("Upload Image")
1737
- ]) : be({
1737
+ ]) : xe({
1738
1738
  // @ts-ignore
1739
1739
  src: this.src,
1740
1740
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1743,7 +1743,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1743
1743
  ]);
1744
1744
  }
1745
1745
  }
1746
- ), Do = B(
1746
+ ), Do = M(
1747
1747
  {
1748
1748
  /**
1749
1749
  * Get the initial state for the component.
@@ -1763,7 +1763,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1763
1763
  */
1764
1764
  openFileBrowse() {
1765
1765
  const e = this.input;
1766
- e && (e.value = "", H.trigger("click", e));
1766
+ e && (e.value = "", U.trigger("click", e));
1767
1767
  },
1768
1768
  /**
1769
1769
  * Get the URL for the uploaded file.
@@ -1782,7 +1782,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1782
1782
  render() {
1783
1783
  const e = "logo-upload", t = this.onChange || null;
1784
1784
  return l({ class: "flex-none items-center" }, [
1785
- p({
1785
+ y({
1786
1786
  id: e,
1787
1787
  cache: "input",
1788
1788
  type: "file",
@@ -1799,17 +1799,17 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1799
1799
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1800
1800
  }
1801
1801
  }, [
1802
- M(
1802
+ P(
1803
1803
  "loaded",
1804
- (s) => s ? be({
1804
+ (s) => s ? xe({
1805
1805
  // @ts-ignore
1806
1806
  src: this.src,
1807
1807
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
1808
- }) : Y({
1808
+ }) : V({
1809
1809
  htmlFor: e,
1810
1810
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1811
1811
  }, [
1812
- x({}, g.upload),
1812
+ p({}, g.upload),
1813
1813
  l("Upload logo")
1814
1814
  ])
1815
1815
  )
@@ -1825,22 +1825,22 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1825
1825
  this.input = null;
1826
1826
  }
1827
1827
  }
1828
- ), Ls = (e, t) => Je(
1828
+ ), Ls = (e, t) => Xe(
1829
1829
  {
1830
1830
  href: e,
1831
1831
  "aria-current": t === "Breadcrumb" && "page",
1832
1832
  // Only set aria-current on the last item
1833
1833
  class: "text-muted-foreground font-medium hover:text-foreground"
1834
1834
  },
1835
- [f(t)]
1836
- ), Rs = () => x({
1835
+ [h(t)]
1836
+ ), Rs = () => p({
1837
1837
  class: "mx-3 text-muted-foreground",
1838
1838
  "aria-hidden": !0,
1839
1839
  size: "xs"
1840
1840
  }, g.chevron.single.right), As = (e) => l({ class: "flex items-center" }, [
1841
- e.href ? Ls(e.href, e.label) : f(e.label),
1841
+ e.href ? Ls(e.href, e.label) : h(e.label),
1842
1842
  e.separator && Rs()
1843
- ]), Io = B(
1843
+ ]), Io = M(
1844
1844
  {
1845
1845
  /**
1846
1846
  * Set initial data
@@ -1848,7 +1848,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1848
1848
  * @returns {Data}
1849
1849
  */
1850
1850
  setData() {
1851
- return new N({
1851
+ return new F({
1852
1852
  // @ts-ignore
1853
1853
  items: this.items || []
1854
1854
  });
@@ -1860,7 +1860,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1860
1860
  */
1861
1861
  render() {
1862
1862
  const e = this.data.items.length - 1;
1863
- return ye(
1863
+ return we(
1864
1864
  {
1865
1865
  "aria-label": "Breadcrumb",
1866
1866
  class: "flex items-center gap-x-1 text-sm"
@@ -1879,7 +1879,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1879
1879
  );
1880
1880
  }
1881
1881
  }
1882
- ), Ye = {
1882
+ ), Ve = {
1883
1883
  xs: "h-1 w-1",
1884
1884
  sm: "h-2 w-2",
1885
1885
  md: "h-4 w-4",
@@ -1888,8 +1888,8 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1888
1888
  "2xl": "h-16 w-16",
1889
1889
  "3xl": "h-24 w-24",
1890
1890
  default: "h-4 w-4"
1891
- }, js = (e) => Ye[e] || Ye.default, Es = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1892
- f({
1891
+ }, js = (e) => Ve[e] || Ve.default, Es = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1892
+ h({
1893
1893
  class: "block w-full h-full rounded-full transition-colors",
1894
1894
  onSet: ["activeIndex", {
1895
1895
  "bg-primary": e,
@@ -1902,7 +1902,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1902
1902
  ]), _s = (e, t) => Array.from({ length: e }, (s, n) => Es({
1903
1903
  index: n,
1904
1904
  size: t
1905
- })), To = B(
1905
+ })), To = M(
1906
1906
  {
1907
1907
  /**
1908
1908
  * Defines component data (props).
@@ -1910,7 +1910,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1910
1910
  * @returns {Data}
1911
1911
  */
1912
1912
  setData() {
1913
- return new N({
1913
+ return new F({
1914
1914
  // @ts-ignore
1915
1915
  count: this.count || 4,
1916
1916
  // total dots
@@ -1940,22 +1940,22 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1940
1940
  click: e
1941
1941
  },
1942
1942
  [
1943
- f({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1944
- x({ size: "sm" }, g.chevron.upDown)
1943
+ h({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1944
+ p({ size: "sm" }, g.chevron.upDown)
1945
1945
  ]
1946
- ), Us = (e, t, s) => we({
1946
+ ), Us = (e, t, s) => ve({
1947
1947
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1948
1948
  click: () => t(e),
1949
1949
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1950
1950
  }, [
1951
- e.icon && f({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1952
- f({ class: "text-base font-normal" }, e.label)
1951
+ e.icon && h({ class: "mr-2 flex items-baseline" }, [p({ size: "xs" }, e.icon)]),
1952
+ h({ class: "text-base font-normal" }, e.label)
1953
1953
  ]), Ys = (e, t) => l({ class: "w-full border rounded-md" }, [
1954
- te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Us(s, e, t)] })
1954
+ se({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Us(s, e, t)] })
1955
1955
  ]), Vs = ({ onSelect: e, state: t }) => l({ class: "flex flex-auto flex-col" }, [
1956
- M(
1956
+ P(
1957
1957
  "open",
1958
- (s, n, a) => s ? new ae({
1958
+ (s, n, a) => s ? new oe({
1959
1959
  cache: "dropdown",
1960
1960
  parent: a,
1961
1961
  button: a.button
@@ -1963,7 +1963,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1963
1963
  Ys(e, t)
1964
1964
  ]) : null
1965
1965
  )
1966
- ]), Po = B(
1966
+ ]), Po = M(
1967
1967
  {
1968
1968
  /**
1969
1969
  * This will set up the data.
@@ -1971,7 +1971,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
1971
1971
  * @returns {Data}
1972
1972
  */
1973
1973
  setData() {
1974
- return new N({
1974
+ return new F({
1975
1975
  // @ts-ignore
1976
1976
  items: this.items || []
1977
1977
  });
@@ -2053,7 +2053,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2053
2053
  }),
2054
2054
  // Hidden required input for form validation
2055
2055
  // @ts-ignore
2056
- this.required && p({
2056
+ this.required && y({
2057
2057
  class: "opacity-0 absolute top-0 left-0 z-1",
2058
2058
  type: "text",
2059
2059
  // @ts-ignore
@@ -2065,7 +2065,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2065
2065
  ]);
2066
2066
  }
2067
2067
  }
2068
- ), rt = ({ icon: e, click: t, ariaLabel: s }) => b({
2068
+ ), rt = ({ icon: e, click: t, ariaLabel: s }) => x({
2069
2069
  variant: "icon",
2070
2070
  class: "flex flex-none",
2071
2071
  click: t,
@@ -2079,7 +2079,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2079
2079
  icon: g.circlePlus,
2080
2080
  click: e,
2081
2081
  ariaLabel: "Increment"
2082
- }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => G(({ state: a }) => p({
2082
+ }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => K(({ state: a }) => y({
2083
2083
  value: ["[[count]]", a],
2084
2084
  bind: e,
2085
2085
  blur: (o, { state: r }) => {
@@ -2092,7 +2092,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2092
2092
  max: s,
2093
2093
  type: "number",
2094
2094
  "aria-label": "Counter"
2095
- })), Mo = F(
2095
+ })), Mo = L(
2096
2096
  {
2097
2097
  /**
2098
2098
  * Initial state for the counter component.
@@ -2128,8 +2128,8 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2128
2128
  }
2129
2129
  ), Ks = ({ currentMonth: e, currentYear: t, onSelect: s }) => l(
2130
2130
  { class: "grid grid-cols-3 gap-2" },
2131
- se.monthNames.map(
2132
- (n, a) => b(
2131
+ ne.monthNames.map(
2132
+ (n, a) => x(
2133
2133
  {
2134
2134
  click: (o) => {
2135
2135
  o.preventDefault(), o.stopPropagation(), s(a);
@@ -2140,7 +2140,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2140
2140
  n.substring(0, 3)
2141
2141
  )
2142
2142
  )
2143
- ), O = (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), _ = (e, t, s) => `${e}-${O(t + 1)}-${O(s)}`, Js = (e) => e ? "bg-accent text-primary" : "", Xs = (e) => e ? "text-muted-foreground opacity-50" : "", Zs = (e, t) => e === t, en = (e, t) => Zs(e, t) ? "bg-primary text-primary-foreground" : "", tn = (e, t, s, n) => {
2143
+ ), N = (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), H = (e, t, s) => `${e}-${N(t + 1)}-${N(s)}`, Js = (e) => e ? "bg-accent text-primary" : "", Xs = (e) => e ? "text-muted-foreground opacity-50" : "", Zs = (e, t) => e === t, en = (e, t) => Zs(e, t) ? "bg-primary text-primary-foreground" : "", tn = (e, t, s, n) => {
2144
2144
  const a = en(t, n);
2145
2145
  return a || (e ? Js(e) : s ? Xs(s) : "text-foreground");
2146
2146
  }, de = (e) => {
@@ -2169,28 +2169,28 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2169
2169
  t.toString()
2170
2170
  );
2171
2171
  }, ue = (e, t, s, n) => e === n.date && t === n.month && s === n.year, sn = (e, t, s, n = !1) => {
2172
- const { year: a, month: o } = e, r = _(a, o, e.date), c = new Date(a, o, 1).getDay(), u = new Date(a, o + 1, 0).getDate(), h = new Date(a, o, 0).getDate(), y = [], R = o === 0 ? 11 : o - 1, A = o === 0 ? a - 1 : a;
2172
+ const { year: a, month: o } = e, r = H(a, o, e.date), c = new Date(a, o, 1).getDay(), u = new Date(a, o + 1, 0).getDate(), f = new Date(a, o, 0).getDate(), b = [], A = o === 0 ? 11 : o - 1, B = o === 0 ? a - 1 : a;
2173
2173
  for (let d = c - 1; d >= 0; d--) {
2174
- const w = h - d, I = ue(w, R, A, t), T = new Date(A, R, w) < new Date(t.year, t.month, t.date), j = n && T;
2175
- y.push(
2174
+ const w = f - d, I = ue(w, A, B, t), T = new Date(B, A, w) < new Date(t.year, t.month, t.date), E = n && T;
2175
+ b.push(
2176
2176
  de({
2177
2177
  day: w,
2178
2178
  currentDate: r,
2179
- date: _(A, R, w),
2179
+ date: H(B, A, w),
2180
2180
  isToday: I,
2181
2181
  isOutsideMonth: !0,
2182
2182
  select: s,
2183
- disabled: j
2183
+ disabled: E
2184
2184
  })
2185
2185
  );
2186
2186
  }
2187
2187
  for (let d = 1; d <= u; d++) {
2188
2188
  const w = ue(d, o, a, t), I = new Date(a, o, d) < new Date(t.year, t.month, t.date), T = n && I;
2189
- y.push(
2189
+ b.push(
2190
2190
  de({
2191
2191
  day: d,
2192
2192
  currentDate: r,
2193
- date: _(a, o, d),
2193
+ date: H(a, o, d),
2194
2194
  isToday: w,
2195
2195
  isOutsideMonth: !1,
2196
2196
  select: s,
@@ -2198,14 +2198,14 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2198
2198
  })
2199
2199
  );
2200
2200
  }
2201
- const P = o === 11 ? 0 : o + 1, oe = o === 11 ? a + 1 : a, m = (7 - y.length % 7) % 7;
2201
+ const j = o === 11 ? 0 : o + 1, z = o === 11 ? a + 1 : a, m = (7 - b.length % 7) % 7;
2202
2202
  for (let d = 1; d <= m; d++) {
2203
- const w = ue(d, P, oe, t), I = new Date(oe, P, d) < new Date(t.year, t.month, t.date), T = n && I;
2204
- y.push(
2203
+ const w = ue(d, j, z, t), I = new Date(z, j, d) < new Date(t.year, t.month, t.date), T = n && I;
2204
+ b.push(
2205
2205
  de({
2206
2206
  day: d,
2207
2207
  currentDate: r,
2208
- date: _(oe, P, d),
2208
+ date: H(z, j, d),
2209
2209
  isToday: w,
2210
2210
  isOutsideMonth: !0,
2211
2211
  select: s,
@@ -2213,8 +2213,8 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2213
2213
  })
2214
2214
  );
2215
2215
  }
2216
- return y;
2217
- }, Ve = ({ label: e, click: t }) => b(
2216
+ return b;
2217
+ }, We = ({ label: e, click: t }) => x(
2218
2218
  {
2219
2219
  class: `
2220
2220
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2228,10 +2228,10 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2228
2228
  icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2229
2229
  }
2230
2230
  ), nn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => l({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2231
- b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2232
- b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2233
- Ve({ label: "Previous", click: n }),
2234
- Ve({ label: "Next", click: s })
2231
+ x({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2232
+ x({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2233
+ We({ label: "Previous", click: n }),
2234
+ We({ label: "Next", click: s })
2235
2235
  ]), an = (e) => l(
2236
2236
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2237
2237
  e
@@ -2265,7 +2265,7 @@ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v(
2265
2265
  return l(
2266
2266
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2267
2267
  a.map(
2268
- (o) => b(
2268
+ (o) => x(
2269
2269
  {
2270
2270
  click: (r) => {
2271
2271
  r.preventDefault(), r.stopPropagation(), s(o);
@@ -2304,7 +2304,7 @@ class cn extends S {
2304
2304
  */
2305
2305
  setData() {
2306
2306
  const t = /* @__PURE__ */ new Date(), s = this.getSelectedDate(t), n = s.getMonth();
2307
- return new N({
2307
+ return new F({
2308
2308
  monthName: this.getMonthName(n),
2309
2309
  currentDate: `${s.getFullYear()}-${n + 1}-${s.getDate()}`,
2310
2310
  current: {
@@ -2337,7 +2337,7 @@ class cn extends S {
2337
2337
  * @returns {string}
2338
2338
  */
2339
2339
  getMonthName(t) {
2340
- return se.monthNames[t];
2340
+ return ne.monthNames[t];
2341
2341
  }
2342
2342
  /**
2343
2343
  * This will go to the previous month.
@@ -2369,7 +2369,7 @@ class cn extends S {
2369
2369
  */
2370
2370
  setCurrentDate(t, s, n = null) {
2371
2371
  const a = this.data;
2372
- a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = O(n)), a.currentDate = `${s}-${O(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2372
+ a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = N(n)), a.currentDate = `${s}-${N(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2373
2373
  }
2374
2374
  /**
2375
2375
  * This will select a date.
@@ -2388,7 +2388,7 @@ class cn extends S {
2388
2388
  */
2389
2389
  render() {
2390
2390
  return l({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2391
- M("view", (t) => {
2391
+ P("view", (t) => {
2392
2392
  switch (t) {
2393
2393
  case "months":
2394
2394
  return Ks(
@@ -2444,18 +2444,18 @@ const dn = (e) => {
2444
2444
  return null;
2445
2445
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2446
2446
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2447
- }, hn = ({ bind: e, required: t }) => p({
2447
+ }, hn = ({ bind: e, required: t }) => y({
2448
2448
  cache: "input",
2449
2449
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2450
2450
  bind: e,
2451
2451
  required: t
2452
- }), fn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2452
+ }), fn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => y({
2453
2453
  cache: "dateInput",
2454
2454
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2455
2455
  placeholder: e || "mm/dd/yyyy",
2456
2456
  input: t,
2457
2457
  focus: s,
2458
- onState: ["selectedDate", (n) => n ? se.format("standard", n) : ""]
2458
+ onState: ["selectedDate", (n) => n ? ne.format("standard", n) : ""]
2459
2459
  }), gn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: o }) => l(
2460
2460
  {
2461
2461
  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"
@@ -2469,12 +2469,12 @@ const dn = (e) => {
2469
2469
  click: s
2470
2470
  },
2471
2471
  [
2472
- U({ html: g.calendar.days })
2472
+ Y({ html: g.calendar.days })
2473
2473
  ]
2474
2474
  )
2475
2475
  ]
2476
- ), mn = ({ handleDateSelect: e, blockPriorDates: t }) => ve(
2477
- (s, n, a) => new ae({
2476
+ ), mn = ({ handleDateSelect: e, blockPriorDates: t }) => ke(
2477
+ (s, n, a) => new oe({
2478
2478
  cache: "dropdown",
2479
2479
  parent: a,
2480
2480
  button: a.panel,
@@ -2486,7 +2486,7 @@ const dn = (e) => {
2486
2486
  blockPriorDates: t
2487
2487
  })
2488
2488
  ])
2489
- ), Bo = F(
2489
+ ), Bo = L(
2490
2490
  {
2491
2491
  /**
2492
2492
  * The initial state of the DatePicker.
@@ -2517,7 +2517,7 @@ const dn = (e) => {
2517
2517
  const s = e.target.value.replace(/\D/g, "");
2518
2518
  e.target.value = dn(s);
2519
2519
  const n = un(s);
2520
- n && (this.state.selectedDate = n, this.input.value = n, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2520
+ n && (this.state.selectedDate = n, this.input.value = n, U.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2521
2521
  },
2522
2522
  /**
2523
2523
  * Handles input focus - select all text for easy editing.
@@ -2533,7 +2533,7 @@ const dn = (e) => {
2533
2533
  * @param {string} date
2534
2534
  */
2535
2535
  handleDateSelect(e) {
2536
- this.state.selectedDate = e, this.state.open = !1, this.input.value = e, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
2536
+ this.state.selectedDate = e, this.state.open = !1, this.input.value = e, U.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
2537
2537
  },
2538
2538
  /**
2539
2539
  * Toggles the calendar popover.
@@ -2569,7 +2569,7 @@ const dn = (e) => {
2569
2569
  );
2570
2570
  }
2571
2571
  }
2572
- ), We = ({ label: e, click: t }) => b(
2572
+ ), qe = ({ label: e, click: t }) => x(
2573
2573
  {
2574
2574
  class: `
2575
2575
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2583,66 +2583,66 @@ const dn = (e) => {
2583
2583
  icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2584
2584
  }
2585
2585
  ), bn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => l({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2586
- b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2587
- b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2588
- We({ label: "Previous", click: n }),
2589
- We({ label: "Next", click: s })
2586
+ x({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2587
+ x({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2588
+ qe({ label: "Previous", click: n }),
2589
+ qe({ label: "Next", click: s })
2590
2590
  ]), xn = (e) => l({ class: "h-9 flex items-center justify-center font-medium" }, e), pn = () => l(
2591
2591
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2592
2592
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(xn)
2593
2593
  ), yn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: o, isOtherMonth: r, click: c }) => {
2594
- let u = "ghost", h = "";
2595
- return n || a ? (u = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : o && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), r && (h += " text-muted-foreground opacity-50"), b(
2594
+ let u = "ghost", f = "";
2595
+ return n || a ? (u = "default", f = "bg-primary text-primary-foreground hover:bg-primary/90") : o && (f = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (f += " opacity-50 cursor-not-allowed"), r && (f += " text-muted-foreground opacity-50"), x(
2596
2596
  {
2597
- class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
2597
+ class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${f}`,
2598
2598
  variant: u,
2599
2599
  disabled: s,
2600
- click: (y) => {
2601
- y.preventDefault(), y.stopPropagation(), s || c();
2600
+ click: (b) => {
2601
+ b.preventDefault(), b.stopPropagation(), s || c();
2602
2602
  }
2603
2603
  },
2604
2604
  e.toString()
2605
2605
  );
2606
2606
  }, wn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2607
- const { start: a, end: o } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), u = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, R = new Date(y, h + 1, 0).getDate(), A = t.month === 11 ? 0 : t.month + 1, P = t.month === 11 ? t.year + 1 : t.year;
2607
+ const { start: a, end: o } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), u = [], f = t.month === 0 ? 11 : t.month - 1, b = t.month === 0 ? t.year - 1 : t.year, A = new Date(b, f + 1, 0).getDate(), B = t.month === 11 ? 0 : t.month + 1, j = t.month === 11 ? t.year + 1 : t.year;
2608
2608
  for (let m = r - 1; m >= 0; m--) {
2609
- const d = R - m, w = _(y, h, d), I = new Date(y, h, d), T = new Date(e.year, e.month, e.date), j = I < T, K = s && j, Q = a === w, J = o === w, gt = a && o && w > a && w < o;
2609
+ const d = A - m, w = H(b, f, d), I = new Date(b, f, d), T = new Date(e.year, e.month, e.date), E = I < T, Q = s && E, J = a === w, X = o === w, gt = a && o && w > a && w < o;
2610
2610
  u.push({
2611
2611
  day: d,
2612
2612
  iso: w,
2613
- disabled: K,
2614
- isStart: Q,
2615
- isEnd: J,
2613
+ disabled: Q,
2614
+ isStart: J,
2615
+ isEnd: X,
2616
2616
  isBetween: gt,
2617
2617
  isOtherMonth: !0,
2618
2618
  click: () => n(w)
2619
2619
  });
2620
2620
  }
2621
2621
  for (let m = 1; m <= c; m++) {
2622
- const d = _(t.year, t.month, m), w = new Date(t.year, t.month, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, K = a === d, Q = o === d, J = a && o && d > a && d < o;
2622
+ const d = H(t.year, t.month, m), w = new Date(t.year, t.month, m), I = new Date(e.year, e.month, e.date), T = w < I, E = s && T, Q = a === d, J = o === d, X = a && o && d > a && d < o;
2623
2623
  u.push({
2624
2624
  day: m,
2625
2625
  iso: d,
2626
- disabled: j,
2627
- isStart: K,
2628
- isEnd: Q,
2629
- isBetween: J,
2626
+ disabled: E,
2627
+ isStart: Q,
2628
+ isEnd: J,
2629
+ isBetween: X,
2630
2630
  isOtherMonth: !1,
2631
2631
  click: () => {
2632
2632
  n(d);
2633
2633
  }
2634
2634
  });
2635
2635
  }
2636
- const Ie = (7 - u.length % 7) % 7;
2637
- for (let m = 1; m <= Ie; m++) {
2638
- const d = _(P, A, m), w = new Date(P, A, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, K = a === d, Q = o === d, J = a && o && d > a && d < o;
2636
+ const Te = (7 - u.length % 7) % 7;
2637
+ for (let m = 1; m <= Te; m++) {
2638
+ const d = H(j, B, m), w = new Date(j, B, m), I = new Date(e.year, e.month, e.date), T = w < I, E = s && T, Q = a === d, J = o === d, X = a && o && d > a && d < o;
2639
2639
  u.push({
2640
2640
  day: m,
2641
2641
  iso: d,
2642
- disabled: j,
2643
- isStart: K,
2644
- isEnd: Q,
2645
- isBetween: J,
2642
+ disabled: E,
2643
+ isStart: Q,
2644
+ isEnd: J,
2645
+ isBetween: X,
2646
2646
  isOtherMonth: !0,
2647
2647
  click: () => n(d)
2648
2648
  });
@@ -2694,8 +2694,8 @@ const dn = (e) => {
2694
2694
  })
2695
2695
  ])), kn = ({ currentMonth: e, currentYear: t, onSelect: s }) => l(
2696
2696
  { class: "grid grid-cols-3 gap-2" },
2697
- se.monthNames.map(
2698
- (n, a) => b(
2697
+ ne.monthNames.map(
2698
+ (n, a) => x(
2699
2699
  {
2700
2700
  click: (o) => {
2701
2701
  o.preventDefault(), o.stopPropagation(), s(a);
@@ -2707,21 +2707,21 @@ const dn = (e) => {
2707
2707
  )
2708
2708
  )
2709
2709
  ), Cn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => l({ class: "flex gap-x-2 mb-4" }, [
2710
- X("selecting", (o) => b({
2710
+ Z("selecting", (o) => x({
2711
2711
  click: n,
2712
2712
  variant: o === "start" ? "primary" : "outline",
2713
2713
  class: "flex-1"
2714
2714
  }, [
2715
- l({ class: "font-medium" }, qe("current.start", "Start Date"))
2715
+ l({ class: "font-medium" }, Ge("current.start", "Start Date"))
2716
2716
  ])),
2717
- X("selecting", (o) => b({
2717
+ Z("selecting", (o) => x({
2718
2718
  click: a,
2719
2719
  variant: o === "end" ? "primary" : "outline",
2720
2720
  class: "flex-1"
2721
2721
  }, [
2722
- l({ class: "font-medium" }, qe("current.end", "End Date"))
2722
+ l({ class: "font-medium" }, Ge("current.end", "End Date"))
2723
2723
  ]))
2724
- ]), qe = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Sn(s)], Sn = (e) => {
2724
+ ]), Ge = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Sn(s)], Sn = (e) => {
2725
2725
  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"];
2726
2726
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2727
2727
  }, $n = ({ currentYear: e, onSelect: t }) => {
@@ -2729,7 +2729,7 @@ const dn = (e) => {
2729
2729
  return l(
2730
2730
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2731
2731
  n.map(
2732
- (a) => b(
2732
+ (a) => x(
2733
2733
  {
2734
2734
  click: (o) => {
2735
2735
  o.preventDefault(), o.stopPropagation(), t(a);
@@ -2758,14 +2758,14 @@ class Dn extends S {
2758
2758
  */
2759
2759
  setData() {
2760
2760
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, n = s.getMonth(), a = s.getFullYear();
2761
- return new N({
2761
+ return new F({
2762
2762
  today: {
2763
2763
  date: t.getDate(),
2764
2764
  month: t.getMonth(),
2765
2765
  year: t.getFullYear()
2766
2766
  },
2767
2767
  monthName: this.getMonthName(n),
2768
- currentData: `${s.getFullYear()}-${O(s.getMonth() + 1)}-${O(s.getDate())}`,
2768
+ currentData: `${s.getFullYear()}-${N(s.getMonth() + 1)}-${N(s.getDate())}`,
2769
2769
  current: {
2770
2770
  date: t.getDate(),
2771
2771
  month: n,
@@ -2783,7 +2783,7 @@ class Dn extends S {
2783
2783
  * @returns {string}
2784
2784
  */
2785
2785
  getMonthName(t) {
2786
- return se.monthNames[t];
2786
+ return ne.monthNames[t];
2787
2787
  }
2788
2788
  /**
2789
2789
  * Initialize component state.
@@ -2829,7 +2829,7 @@ class Dn extends S {
2829
2829
  */
2830
2830
  setCurrent({ month: t, year: s, date: n = null }) {
2831
2831
  const a = this.data.current;
2832
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${O(t + 1)}-${O(a.date)}`;
2832
+ a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${N(t + 1)}-${N(a.date)}`;
2833
2833
  }
2834
2834
  /**
2835
2835
  * Render the range calendar.
@@ -2850,7 +2850,7 @@ class Dn extends S {
2850
2850
  r.preventDefault(), r.stopPropagation(), this.data.selecting = "end";
2851
2851
  }
2852
2852
  }),
2853
- M("view", (r) => {
2853
+ P("view", (r) => {
2854
2854
  switch (r) {
2855
2855
  case "months":
2856
2856
  return kn(
@@ -2900,7 +2900,7 @@ class Dn extends S {
2900
2900
  ]);
2901
2901
  }
2902
2902
  }
2903
- const In = ({ bind: e, required: t }) => p({
2903
+ const In = ({ bind: e, required: t }) => y({
2904
2904
  cache: "input",
2905
2905
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2906
2906
  bind: e,
@@ -2910,13 +2910,13 @@ const In = ({ bind: e, required: t }) => p({
2910
2910
  click: s
2911
2911
  }, [
2912
2912
  In({ bind: e, required: t }),
2913
- G(({ state: n }) => [
2914
- f(W.date(["[[start]]", n], "Start Date")),
2915
- f(" - "),
2916
- f(W.date(["[[end]]", n], "End Date"))
2913
+ K(({ state: n }) => [
2914
+ h(q.date(["[[start]]", n], "Start Date")),
2915
+ h(" - "),
2916
+ h(q.date(["[[end]]", n], "End Date"))
2917
2917
  ]),
2918
- U({ html: g.calendar.days })
2919
- ]), Pn = ({ handleDateSelect: e, blockPriorDates: t }) => ve((s, n, a) => new ae({
2918
+ Y({ html: g.calendar.days })
2919
+ ]), Pn = ({ handleDateSelect: e, blockPriorDates: t }) => ke((s, n, a) => new oe({
2920
2920
  cache: "dropdown",
2921
2921
  parent: a,
2922
2922
  button: a.panel,
@@ -2928,7 +2928,7 @@ const In = ({ bind: e, required: t }) => p({
2928
2928
  onRangeSelect: e,
2929
2929
  blockPriorDates: t
2930
2930
  })
2931
- ])), zo = F(
2931
+ ])), zo = L(
2932
2932
  {
2933
2933
  /**
2934
2934
  * The initial state of the DateRangePicker.
@@ -2961,7 +2961,7 @@ const In = ({ bind: e, required: t }) => p({
2961
2961
  */
2962
2962
  render() {
2963
2963
  const e = (s, { state: n }) => n.toggle("open"), t = (s, n) => {
2964
- this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2964
+ this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, U.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2965
2965
  };
2966
2966
  return l({ class: "relative w-full max-w-[320px]" }, [
2967
2967
  Tn({
@@ -2996,7 +2996,7 @@ function Bn(e) {
2996
2996
  };
2997
2997
  }
2998
2998
  function zn({ bind: e, required: t }) {
2999
- return p({
2999
+ return y({
3000
3000
  cache: "input",
3001
3001
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
3002
3002
  bind: e,
@@ -3004,7 +3004,7 @@ function zn({ bind: e, required: t }) {
3004
3004
  });
3005
3005
  }
3006
3006
  function On({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
3007
- return p({
3007
+ return y({
3008
3008
  cache: "timeInput",
3009
3009
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
3010
3010
  placeholder: e || "hh:mm AM/PM",
@@ -3027,7 +3027,7 @@ function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleI
3027
3027
  click: s
3028
3028
  },
3029
3029
  [
3030
- U({ html: g.clock })
3030
+ Y({ html: g.clock })
3031
3031
  ]
3032
3032
  )
3033
3033
  ]
@@ -3048,8 +3048,8 @@ function he({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
3048
3048
  );
3049
3049
  }
3050
3050
  function Fn({ handleTimeSelect: e }) {
3051
- return ve(
3052
- (t, s, n) => new ae(
3051
+ return ke(
3052
+ (t, s, n) => new oe(
3053
3053
  {
3054
3054
  cache: "dropdown",
3055
3055
  parent: n,
@@ -3094,7 +3094,7 @@ function Fn({ handleTimeSelect: e }) {
3094
3094
  )
3095
3095
  );
3096
3096
  }
3097
- function Ge(e) {
3097
+ function Ke(e) {
3098
3098
  if (!e)
3099
3099
  return { hour: null, minute: null, meridian: null };
3100
3100
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
@@ -3107,7 +3107,7 @@ function Ge(e) {
3107
3107
  meridian: o
3108
3108
  });
3109
3109
  }
3110
- const Oo = F(
3110
+ const Oo = L(
3111
3111
  {
3112
3112
  /**
3113
3113
  * The initial shallow state of the TimePicker.
@@ -3115,7 +3115,7 @@ const Oo = F(
3115
3115
  * @member {object} state
3116
3116
  */
3117
3117
  state() {
3118
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ge(e);
3118
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ke(e);
3119
3119
  return {
3120
3120
  selectedTime: e,
3121
3121
  open: !1,
@@ -3131,7 +3131,7 @@ const Oo = F(
3131
3131
  */
3132
3132
  after() {
3133
3133
  if (this.input.value) {
3134
- const { hour: e, minute: t, meridian: s } = Ge(this.input.value);
3134
+ const { hour: e, minute: t, meridian: s } = Ke(this.input.value);
3135
3135
  this.state.set({
3136
3136
  hour: e,
3137
3137
  minute: t,
@@ -3162,7 +3162,7 @@ const Oo = F(
3162
3162
  minute: n.minute,
3163
3163
  meridian: n.meridian,
3164
3164
  selectedTime: n.formattedTime
3165
- }), this.input.value = n.formattedTime, H.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3165
+ }), this.input.value = n.formattedTime, U.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3166
3166
  },
3167
3167
  /**
3168
3168
  * Handles input focus - select all text for easy editing.
@@ -3180,7 +3180,7 @@ const Oo = F(
3180
3180
  handleTimeSelect({ hour: e, minute: t, meridian: s }) {
3181
3181
  if (e && (this.state.hour = e), t && (this.state.minute = t), s && (this.state.meridian = s), this.state.hour && this.state.minute && this.state.meridian) {
3182
3182
  const n = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
3183
- this.state.selectedTime = n, this.state.open = !1, this.input.value = n, H.trigger("change", this.input), typeof this.change == "function" && this.change(n);
3183
+ this.state.selectedTime = n, this.state.open = !1, this.input.value = n, U.trigger("change", this.input), typeof this.change == "function" && this.change(n);
3184
3184
  }
3185
3185
  },
3186
3186
  /**
@@ -3208,9 +3208,9 @@ const Oo = F(
3208
3208
  }
3209
3209
  }
3210
3210
  ), Ln = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3211
- x({ size: "lg" }, e)
3212
- ]), Rn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3213
- Z({ class: "text-lg font-semibold" }, e)
3211
+ p({ size: "lg" }, e)
3212
+ ]), Rn = ({ title: e }) => te({ class: "flex flex-auto items-center" }, [
3213
+ ee({ class: "text-lg font-semibold" }, e)
3214
3214
  ]), No = i((e, t) => yt(
3215
3215
  {
3216
3216
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
@@ -3233,7 +3233,7 @@ const Oo = F(
3233
3233
  l({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3234
3234
  ]),
3235
3235
  // @ts-ignore
3236
- e.buttons && xe({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3236
+ e.buttons && pe({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3237
3237
  ])
3238
3238
  ])
3239
3239
  ]
@@ -3244,12 +3244,12 @@ const Oo = F(
3244
3244
  // @ts-ignore
3245
3245
  e.icon && l({ class: "w-16 h-16 mb-2 text-primary" }, [
3246
3246
  // @ts-ignore
3247
- x({ size: "lg" }, e.icon)
3247
+ p({ size: "lg" }, e.icon)
3248
3248
  ])
3249
3249
  ]),
3250
- ee({ class: "py-4 text-center" }, [
3250
+ te({ class: "py-4 text-center" }, [
3251
3251
  // @ts-ignore
3252
- Z({ class: "text-xl font-bold" }, e.title),
3252
+ ee({ class: "text-xl font-bold" }, e.title),
3253
3253
  // @ts-ignore
3254
3254
  k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
3255
3255
  ...t
@@ -3271,20 +3271,20 @@ i(({ value: e, label: t }) => v({
3271
3271
  const An = (e, t) => {
3272
3272
  const s = e.toggleAllSelectedRows();
3273
3273
  t.state.checked = !s;
3274
- }, jn = (e) => Xe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3275
- G((t) => new Kt({ class: "mr-2", onChange: (s, n) => An(t, n) }))
3274
+ }, jn = (e) => Ze({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3275
+ K((t) => new Kt({ class: "mr-2", onChange: (s, n) => An(t, n) }))
3276
3276
  ]), En = ({ align: e, sortable: t, key: s, label: n, sort: a, class: o }) => {
3277
3277
  const r = e || "justify-start";
3278
- return Xe({
3278
+ return Ze({
3279
3279
  class: `cursor-pointer py-3 px-4 text-base ${o || ""}`,
3280
3280
  click: t && (() => a(s))
3281
3281
  }, [
3282
3282
  l({ class: `flex flex-auto w-full items-center ${r}` }, [
3283
- f(n),
3284
- t && U({ class: "ml-2", html: g.arrows.upDown })
3283
+ h(n),
3284
+ t && Y({ class: "ml-2", html: g.arrows.upDown })
3285
3285
  ])
3286
3286
  ]);
3287
- }, De = (e) => wt([
3287
+ }, Ie = (e) => wt([
3288
3288
  vt({
3289
3289
  class: "text-muted-foreground border-b",
3290
3290
  map: [
@@ -3316,7 +3316,7 @@ class it extends S {
3316
3316
  */
3317
3317
  setData() {
3318
3318
  let t = this.rows && this.rows.length > 0;
3319
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new N({
3319
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new F({
3320
3320
  selectedRows: [],
3321
3321
  // @ts-ignore
3322
3322
  hasItems: t,
@@ -3387,11 +3387,11 @@ class it extends S {
3387
3387
  render() {
3388
3388
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3389
3389
  return l({ class: "w-full flex flex-auto flex-col" }, [
3390
- X("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3390
+ Z("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3391
3391
  l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3392
- ke({ class: "w-full" }, [
3392
+ Ce({ class: "w-full" }, [
3393
3393
  // @ts-ignore
3394
- this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3394
+ this.headers && Ie({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3395
3395
  // @ts-ignore
3396
3396
  this.customHeader ?? null,
3397
3397
  _n({
@@ -3496,11 +3496,11 @@ class Un extends it {
3496
3496
  render() {
3497
3497
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3498
3498
  return l({ class: "w-full flex flex-auto flex-col" }, [
3499
- X("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3499
+ Z("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3500
3500
  l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3501
- ke({ class: "w-full" }, [
3501
+ Ce({ class: "w-full" }, [
3502
3502
  // @ts-ignore
3503
- this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3503
+ this.headers && Ie({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3504
3504
  // @ts-ignore
3505
3505
  this.customHeader ?? null,
3506
3506
  Hn({
@@ -3598,11 +3598,11 @@ class Vn extends it {
3598
3598
  render() {
3599
3599
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3600
3600
  return l({ class: "w-full flex flex-auto flex-col" }, [
3601
- X("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3601
+ Z("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3602
3602
  l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3603
- ke({ class: "w-full" }, [
3603
+ Ce({ class: "w-full" }, [
3604
3604
  // @ts-ignore
3605
- this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3605
+ this.headers && Ie({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3606
3606
  // @ts-ignore
3607
3607
  this.customHeader ?? null,
3608
3608
  Yn({
@@ -3689,12 +3689,12 @@ const Ro = i((e) => new Vn(
3689
3689
  ]),
3690
3690
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3691
3691
  ]), Gn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3692
- f("Last seen "),
3692
+ h("Last seen "),
3693
3693
  kt({ datetime: e }, "3h ago")
3694
3694
  ]), Kn = (e, t) => e === "online" ? qn() : Gn(t), Qn = i(({ role: e, lastSeen: t, status: s }) => l({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3695
3695
  k({ class: "text-sm leading-6 m-0" }, e),
3696
3696
  Kn(s, t)
3697
- ])), Jn = (e) => e.split(" ").map((s) => s[0]).join(""), Xn = i((e) => we({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3697
+ ])), Jn = (e) => e.split(" ").map((s) => s[0]).join(""), Xn = i((e) => ve({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3698
3698
  l({ class: "flex min-w-0 gap-x-4" }, [
3699
3699
  // @ts-ignore
3700
3700
  Fs({ src: e.image, alt: e.name, fallbackText: Jn(e.name) }),
@@ -3793,10 +3793,10 @@ const ea = i(({ options: e, click: t }, s) => ({
3793
3793
  selected: !0
3794
3794
  }]
3795
3795
  }, [
3796
- x({ size: "sm" }, t)
3796
+ p({ size: "sm" }, t)
3797
3797
  ]),
3798
- Y({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3799
- s && f(
3798
+ V({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3799
+ s && h(
3800
3800
  {
3801
3801
  class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
3802
3802
  onState: [
@@ -3809,7 +3809,7 @@ const ea = i(({ options: e, click: t }, s) => ({
3809
3809
  ]
3810
3810
  },
3811
3811
  [
3812
- x({ size: "xs" }, g.chevron.single.down)
3812
+ p({ size: "xs" }, g.chevron.single.down)
3813
3813
  ]
3814
3814
  )
3815
3815
  ];
@@ -3872,8 +3872,8 @@ class ct extends S {
3872
3872
  this.link.update(t);
3873
3873
  }
3874
3874
  }
3875
- const sa = i(({ map: e }, t) => te({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3876
- Ke({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3875
+ const sa = i(({ map: e }, t) => se({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3876
+ Qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3877
3877
  ]));
3878
3878
  class na extends S {
3879
3879
  /**
@@ -3891,8 +3891,8 @@ class na extends S {
3891
3891
  */
3892
3892
  render() {
3893
3893
  const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
3894
- return ye({ class: `navigation flex flex-auto flex-col ${s}` }, [
3895
- te({
3894
+ return we({ class: `navigation flex flex-auto flex-col ${s}` }, [
3895
+ se({
3896
3896
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3897
3897
  map: t
3898
3898
  }),
@@ -4002,8 +4002,8 @@ class la extends dt {
4002
4002
  */
4003
4003
  render() {
4004
4004
  const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
4005
- return ye({ class: t, onState: this.onState() }, [
4006
- te({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
4005
+ return we({ class: t, onState: this.onState() }, [
4006
+ se({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
4007
4007
  ]);
4008
4008
  }
4009
4009
  /**
@@ -4015,7 +4015,7 @@ class la extends dt {
4015
4015
  addWatcher() {
4016
4016
  return {
4017
4017
  watch: {
4018
- value: ["[[path]]", q.data],
4018
+ value: ["[[path]]", G.data],
4019
4019
  callBack: this.updateLinks.bind(this)
4020
4020
  }
4021
4021
  };
@@ -4056,7 +4056,7 @@ class la extends dt {
4056
4056
  * @returns {void}
4057
4057
  */
4058
4058
  afterSetup() {
4059
- const t = q.data.path;
4059
+ const t = G.data.path;
4060
4060
  this.updateLinks(t);
4061
4061
  }
4062
4062
  /**
@@ -4073,8 +4073,8 @@ class la extends dt {
4073
4073
  this.parentLink.update(s);
4074
4074
  }
4075
4075
  }
4076
- const ra = (e) => pe({ class: "text-lg ml-2" }, e), ia = (e) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4077
- b({
4076
+ const ra = (e) => ye({ class: "text-lg ml-2" }, e), ia = (e) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4077
+ x({
4078
4078
  variant: "icon",
4079
4079
  class: "m-2",
4080
4080
  click: (t, { state: s }) => s.toggle("open"),
@@ -4154,21 +4154,21 @@ class da extends S {
4154
4154
  this.container = app.root;
4155
4155
  }
4156
4156
  }
4157
- const ut = () => b({ class: "m-2", variant: "ghost", addState() {
4157
+ const ut = () => x({ class: "m-2", variant: "ghost", addState() {
4158
4158
  return {
4159
4159
  open: !1
4160
4160
  };
4161
4161
  }, click: (e, { state: t }) => t.toggle("open") }, [
4162
- x({}, g.bar.three)
4163
- ]), ua = (e) => pe({ class: "text-lg ml-2" }, e), ha = (e) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4162
+ p({}, g.bar.three)
4163
+ ]), ua = (e) => ye({ class: "text-lg ml-2" }, e), ha = (e) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4164
4164
  ut(),
4165
4165
  e.title && ua(e.title)
4166
4166
  ]), ht = (e, t) => e.map((s) => s.options ? { ...s, options: ht(s.options, t) } : { ...s, callBack: t }), ft = (e) => l({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4167
- M(
4167
+ P(
4168
4168
  "open",
4169
4169
  (t) => t ? [
4170
4170
  new da({ title: e.title }, [
4171
- G(({ state: s }) => {
4171
+ K(({ state: s }) => {
4172
4172
  const n = (o) => s.open = !1, a = ht(e.options, n);
4173
4173
  return new dt(
4174
4174
  {
@@ -4192,7 +4192,7 @@ const ut = () => b({ class: "m-2", variant: "ghost", addState() {
4192
4192
  ])), _o = i((e) => {
4193
4193
  const t = e.margin || "m-4 ml-0";
4194
4194
  return l({ class: `flex-none ${t}` }, [
4195
- b({ variant: "back", class: "ghost", ...e })
4195
+ x({ variant: "back", class: "ghost", ...e })
4196
4196
  ]);
4197
4197
  });
4198
4198
  class fa extends S {
@@ -4290,7 +4290,7 @@ class fa extends S {
4290
4290
  return this.children;
4291
4291
  }
4292
4292
  }
4293
- et.addType("dockableOverlay", (e) => {
4293
+ tt.addType("dockableOverlay", (e) => {
4294
4294
  if (!e)
4295
4295
  return;
4296
4296
  const t = e.component;
@@ -4298,12 +4298,20 @@ et.addType("dockableOverlay", (e) => {
4298
4298
  });
4299
4299
  class Ho extends fa {
4300
4300
  /**
4301
- * This will stop presistence.
4301
+ * This will declare the props for the component.
4302
+ *
4303
+ * @returns {void}
4304
+ */
4305
+ declareProps() {
4306
+ super.declareProps(), this.animateIn = null, this.animateOut = null, this.maxSize = 1024;
4307
+ }
4308
+ /**
4309
+ * This will set the dock size threshold from the maxSize prop.
4302
4310
  *
4303
4311
  * @returns {void}
4304
4312
  */
4305
4313
  onCreated() {
4306
- this.dockSize = this.maxSize || 1024;
4314
+ this.dockSize = this.maxSize;
4307
4315
  }
4308
4316
  /**
4309
4317
  * This will render the component.
@@ -4314,16 +4322,14 @@ class Ho extends fa {
4314
4322
  const t = this.container;
4315
4323
  return l(
4316
4324
  {
4317
- // @ts-ignore
4318
4325
  animateIn: this.animateIn ?? null,
4319
- // @ts-ignore
4320
4326
  animateOut: this.animateOut ?? null,
4321
4327
  onState: [
4322
4328
  ["loading", {
4323
4329
  loading: !0
4324
4330
  }],
4325
4331
  ["docked", (s, n) => {
4326
- s ? (n.className = this.getDockedClassName(), t.appendChild(n)) : (n.className = this.getClassName(), app.root.appendChild(n));
4332
+ s ? (n.className = this.getDockedClassName(), t.appendChild(n)) : (n.className = this.getClassName(), globalThis.app.root.appendChild(n));
4327
4333
  }]
4328
4334
  ]
4329
4335
  },
@@ -4338,12 +4344,12 @@ class Ho extends fa {
4338
4344
  * @returns {string}
4339
4345
  */
4340
4346
  getDockedClassName() {
4341
- return "flex flex-auto flex-col bg-background flex will-change-contents " + (this.class || "");
4347
+ return `flex flex-auto flex-col bg-background will-change-contents ${this.class || ""}`.trim();
4342
4348
  }
4343
4349
  /**
4344
- * This will setup and render the component.
4350
+ * This will set up and render the component inside the given container.
4345
4351
  *
4346
- * @param {object} container
4352
+ * @param {HTMLElement} container
4347
4353
  * @returns {void}
4348
4354
  */
4349
4355
  setup(t) {
@@ -4361,18 +4367,13 @@ class Ho extends fa {
4361
4367
  };
4362
4368
  }
4363
4369
  /**
4364
- * This will check the dock size.
4370
+ * This will register this overlay with the data tracker and
4371
+ * perform an initial dock-state check.
4365
4372
  *
4366
4373
  * @returns {void}
4367
4374
  */
4368
4375
  afterSetup() {
4369
- et.add(
4370
- this.container,
4371
- "dockableOverlay",
4372
- {
4373
- component: this
4374
- }
4375
- ), this.onResize();
4376
+ tt.add(this.container, "dockableOverlay", { component: this }), this.onResize();
4376
4377
  }
4377
4378
  /**
4378
4379
  * This will setup the overlay events.
@@ -4385,7 +4386,7 @@ class Ho extends fa {
4385
4386
  ];
4386
4387
  }
4387
4388
  /**
4388
- * This will check if the overlay can dock.
4389
+ * This will check if the viewport is wide enough to dock the overlay.
4389
4390
  *
4390
4391
  * @returns {boolean}
4391
4392
  */
@@ -4393,7 +4394,7 @@ class Ho extends fa {
4393
4394
  return globalThis.innerWidth >= this.dockSize;
4394
4395
  }
4395
4396
  /**
4396
- * This will handle the overlay resize.
4397
+ * This will update the docked state when the viewport is resized.
4397
4398
  *
4398
4399
  * @returns {void}
4399
4400
  */
@@ -4401,7 +4402,7 @@ class Ho extends fa {
4401
4402
  this.state.docked = this.canDock();
4402
4403
  }
4403
4404
  }
4404
- const ga = i(({ index: e, click: t, state: s }, n) => we({
4405
+ const ga = i(({ index: e, click: t, state: s }, n) => ve({
4405
4406
  class: "p-2 cursor-pointer hover:bg-muted/50",
4406
4407
  onState: [
4407
4408
  [s, "selectedIndex", {
@@ -4410,11 +4411,11 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4410
4411
  }]
4411
4412
  ],
4412
4413
  click: () => t(e)
4413
- }, n)), ma = i(({ selectOption: e, state: t }) => te({
4414
+ }, n)), ma = i(({ selectOption: e, state: t }) => se({
4414
4415
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4415
4416
  for: ["filteredOptions", (s, n) => ga({ index: n, click: e, state: t }, s.label)]
4416
4417
  })), ba = i((e) => l({ class: "relative flex flex-auto items-center" }, [
4417
- L({
4418
+ R({
4418
4419
  cache: "input",
4419
4420
  // @ts-ignore
4420
4421
  class: e.class ?? "",
@@ -4436,13 +4437,13 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4436
4437
  // @ts-ignore
4437
4438
  e.icon && l({ class: "absolute flex right-0 mr-2" }, [
4438
4439
  // @ts-ignore
4439
- x({ size: "sm" }, e.icon)
4440
+ p({ size: "sm" }, e.icon)
4440
4441
  ])
4441
4442
  ])), xa = (e) => l({
4442
4443
  class: "relative flex fle-auto flex-col",
4443
4444
  onState: ["open", (t, s, n) => {
4444
4445
  if (t)
4445
- return new ae({
4446
+ return new oe({
4446
4447
  cache: "dropdown",
4447
4448
  parent: n,
4448
4449
  button: n.input,
@@ -4451,7 +4452,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4451
4452
  ma(e)
4452
4453
  ]);
4453
4454
  }]
4454
- }), Uo = B(
4455
+ }), Uo = M(
4455
4456
  {
4456
4457
  /**
4457
4458
  * This will set up the data object.
@@ -4460,7 +4461,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4460
4461
  */
4461
4462
  setData() {
4462
4463
  const e = this.options || [];
4463
- return new N({
4464
+ return new F({
4464
4465
  options: e,
4465
4466
  filteredOptions: e
4466
4467
  });
@@ -4578,9 +4579,9 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4578
4579
  class: `relative flex items-center w-full rounded-xl bg-muted/30 focus-within:ring-2 focus-within:ring-ring transition-all ${e.containerClass || ""}`
4579
4580
  }, [
4580
4581
  l({ class: "absolute left-4 flex items-center pointer-events-none text-muted-foreground" }, [
4581
- x({ size: "sm" }, t)
4582
+ p({ size: "sm" }, t)
4582
4583
  ]),
4583
- p({
4584
+ y({
4584
4585
  type: "text",
4585
4586
  // @ts-ignore
4586
4587
  cache: e.cache ?? "input",
@@ -4639,7 +4640,7 @@ const wa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto f
4639
4640
  tag: "section",
4640
4641
  ...e,
4641
4642
  children: t
4642
- })), va = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4643
+ })), va = i(({ title: e, description: t }) => te({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4643
4644
  Ct({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4644
4645
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4645
4646
  ]));
@@ -4683,7 +4684,7 @@ export {
4683
4684
  Fa as L,
4684
4685
  no as M,
4685
4686
  Ra as N,
4686
- ne as O,
4687
+ ae as O,
4687
4688
  ja as P,
4688
4689
  Aa as Q,
4689
4690
  Ha as R,
@@ -4702,7 +4703,7 @@ export {
4702
4703
  xs as a1,
4703
4704
  ps as a2,
4704
4705
  ws as a3,
4705
- _ as a4,
4706
+ H as a4,
4706
4707
  Vo as a5,
4707
4708
  En as a6,
4708
4709
  to as a7,
@@ -4722,7 +4723,7 @@ export {
4722
4723
  Yo as aL,
4723
4724
  yo as aM,
4724
4725
  la as aN,
4725
- De as aO,
4726
+ Ie as aO,
4726
4727
  Ua as aP,
4727
4728
  Va as aQ,
4728
4729
  Co as aR,
@@ -4732,18 +4733,18 @@ export {
4732
4733
  So as aV,
4733
4734
  Ba as aW,
4734
4735
  uo as aX,
4735
- x as aY,
4736
+ p as aY,
4736
4737
  eo as aZ,
4737
4738
  Ao as a_,
4738
4739
  $o as aa,
4739
4740
  dt as ab,
4740
- L as ac,
4741
+ R as ac,
4741
4742
  Ht as ad,
4742
4743
  Na as ae,
4743
4744
  Do as af,
4744
4745
  ct as ag,
4745
4746
  wa as ah,
4746
- Be as ai,
4747
+ ze as ai,
4747
4748
  Ws as aj,
4748
4749
  jo as ak,
4749
4750
  Eo as al,
@@ -4760,21 +4761,21 @@ export {
4760
4761
  pa as aw,
4761
4762
  Za as ax,
4762
4763
  qs as ay,
4763
- ae as az,
4764
+ oe as az,
4764
4765
  ca as b,
4765
4766
  st as b0,
4766
- F as b1,
4767
+ L as b1,
4767
4768
  Ja as b2,
4768
4769
  Qs as b3,
4769
4770
  bs as b4,
4770
4771
  Pa as b5,
4771
4772
  Ta as b6,
4772
- O as b7,
4773
+ N as b7,
4773
4774
  vo as b8,
4774
4775
  Ma as c,
4775
4776
  ya as d,
4776
4777
  Io as e,
4777
- b as f,
4778
+ x as f,
4778
4779
  sn as g,
4779
4780
  _t as h,
4780
4781
  Kt as i,