@base-framework/ui 1.2.43 → 1.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { I as j, Span as u, Button as v, OnState as M, Div as o, Legend as ft, Fieldset as gt, H4 as qe, P as k, Label as E, Checkbox as he, Input as p, Textarea as Ge, UseParent as V, Img as fe, H5 as mt, H2 as J, Form as bt, Header as X, Footer as ge, A as Ke, H3 as me, Nav as be, Ul as Z, Li as xe, OnStateOpen as pe, On as Q, Dialog as xt, Th as Qe, Thead as pt, Tr as yt, Table as ye, Time as wt, H1 as vt } from "@base-framework/atoms";
2
- import { Atom as r, Jot as P, Component as S, Html as Je, Data as z, Events as R, DateTime as ee, NavLink as kt, router as De, DataTracker as Xe } from "@base-framework/base";
1
+ import { I as E, Span as u, Button as v, OnState as P, Div as o, Legend as ht, Fieldset as ft, H4 as qe, P as k, Label as H, Checkbox as fe, Input as p, Textarea as Ge, UseParent as W, Img as ge, H5 as gt, H2 as X, Form as mt, Header as Z, Footer as me, A as Ke, H3 as be, Nav as xe, Ul as ee, Li as pe, OnStateOpen as ye, On as J, Dialog as bt, Th as Qe, Thead as xt, Tr as pt, Table as we, Time as yt, H1 as wt } from "@base-framework/atoms";
2
+ import { Atom as r, Jot as M, Component as S, router as oe, Html as Je, Data as O, Events as j, DateTime as te, NavLink as vt, DataTracker as Xe } from "@base-framework/base";
3
3
  import { Icons as h } from "./icons.es.js";
4
- import { Timer as Ct, TableBody as St, DataTableBody as $t, ScrollableTableBody as Dt, List as It } from "@base-framework/organisms";
5
- import { F as _ } from "./format-DE4rFWuD.js";
6
- import { F as Tt } from "./bside-template-C7AQgQ6H.js";
7
- const Mt = {
4
+ import { Timer as kt, TableBody as Ct, DataTableBody as St, ScrollableTableBody as $t, List as Dt } from "@base-framework/organisms";
5
+ import { F as V } from "./format-DE4rFWuD.js";
6
+ import { F as It } from "./bside-template-C7AQgQ6H.js";
7
+ const Tt = {
8
8
  xs: "w-4 h-4",
9
9
  sm: "w-6 h-6",
10
10
  md: "w-8 h-8",
@@ -12,15 +12,15 @@ const Mt = {
12
12
  xl: "w-12 h-12",
13
13
  "2xl": "w-14 h-14",
14
14
  "3xl": "w-16 h-16"
15
- }, de = r((e, t) => {
16
- const s = Mt[e.size || "sm"];
17
- return j({
15
+ }, ue = r((e, t) => {
16
+ const s = Tt[e.size || "sm"];
17
+ return E({
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
- }), Ie = {
23
+ }), De = {
24
24
  xs: "w-4 h-4",
25
25
  // 16px - matches Icon
26
26
  sm: "w-6 h-6",
@@ -35,7 +35,7 @@ const Mt = {
35
35
  // 56px - matches Icon
36
36
  "3xl": "w-16 h-16"
37
37
  // 64px - matches Icon
38
- }, Te = {
38
+ }, Ie = {
39
39
  xs: "16px",
40
40
  sm: "24px",
41
41
  md: "32px",
@@ -43,13 +43,13 @@ const Mt = {
43
43
  xl: "48px",
44
44
  "2xl": "56px",
45
45
  "3xl": "64px"
46
- }, Me = {
46
+ }, Te = {
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
51
  }, Pe = r((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = Ie[t] || Ie.sm, a = Te[t] || Te.sm, l = Me[s] || Me.outlined;
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = De[t] || De.sm, a = Ie[t] || Ie.sm, l = Te[s] || Te.outlined;
53
53
  return u({
54
54
  ...e,
55
55
  // @ts-ignore
@@ -62,14 +62,14 @@ const Mt = {
62
62
  name: void 0
63
63
  // @ts-ignore
64
64
  }, e.name);
65
- }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? de(e, t) : typeof t == "object" && t.name ? Pe({
65
+ }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ue(e, t) : typeof t == "object" && t.name ? Pe({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
69
  }) : typeof t == "string" ? Pe({
70
70
  ...e,
71
71
  name: t
72
- }) : de(e, t) : null, Da = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Ia = (e) => typeof e == "string" && e.includes("<svg"), Be = {
72
+ }) : ue(e, t) : null, $a = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Da = (e) => typeof e == "string" && e.includes("<svg"), Me = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,11 +150,11 @@ const Mt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Pt = (e) => Be[e] || Be.gray, Bt = (e, t = {}) => {
153
+ }, Pt = (e) => Me[e] || Me.gray, Mt = (e, t = {}) => {
154
154
  const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
155
155
  return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
156
- }, Ta = r((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m = Bt(s, { backgroundColor: l, textColor: i, ringColor: c });
156
+ }, Ia = r((e, t) => {
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m = Mt(s, { backgroundColor: l, textColor: i, ringColor: c });
158
158
  return u({ ...f, class: m }, [
159
159
  n ? x({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
@@ -174,11 +174,11 @@ class Ze extends S {
174
174
  return s ? { data: s } : null;
175
175
  }
176
176
  }
177
- const O = (e) => (
177
+ const N = (e) => (
178
178
  /** @type {VeilComponentConstructor} */
179
- P(e, Ze)
179
+ M(e, Ze)
180
180
  );
181
- class Ma extends Ze {
181
+ class Ta extends Ze {
182
182
  /**
183
183
  * Declare public props and their defaults.
184
184
  */
@@ -212,7 +212,7 @@ class Ma extends Ze {
212
212
  const t = this.size, s = this.icon, n = this.activeIcon || this.icon, a = (() => {
213
213
  if (this.dataKey) {
214
214
  let i = `[[${this.dataKey}]]`;
215
- return this.formatType === "number" ? i = _.number(i, "0") : this.formatType === "money" ? i = _.roundMoney(i) : this.formatType === "date" ? i = _.date(i) : this.formatType === "percent" && (i = _.percentage(i)), u({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, i);
215
+ return this.formatType === "number" ? i = V.number(i, "0") : this.formatType === "money" ? i = V.roundMoney(i) : this.formatType === "date" ? i = V.date(i) : this.formatType === "percent" && (i = V.percentage(i)), u({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, i);
216
216
  }
217
217
  return this.value !== null && this.value !== void 0 ? u({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
218
218
  })(), l = this.fill;
@@ -221,7 +221,7 @@ class Ma extends Ze {
221
221
  // @ts-ignore
222
222
  class: `toggle-btn inline-flex items-center gap-1.5 bg-transparent border-0 p-0 cursor-pointer text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${this.class || ""}`
223
223
  }, [
224
- M(
224
+ P(
225
225
  "active",
226
226
  (i) => x({ size: t, variant: i && l ? "filled" : "outlined" }, i ? n : s)
227
227
  ),
@@ -229,7 +229,7 @@ class Ma extends Ze {
229
229
  ]);
230
230
  }
231
231
  }
232
- const ae = {
232
+ const le = {
233
233
  xs: "w-6 h-6",
234
234
  sm: "w-8 h-8",
235
235
  md: "w-10 h-10",
@@ -268,13 +268,13 @@ class Pa extends S {
268
268
  * @returns {object}
269
269
  */
270
270
  render() {
271
- const t = this.icon, s = this.activeIcon || this.icon, n = ae[this.size] || ae.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", i = "text-foreground", c = this.activeClass || i, f = this.circle ?? !1, m = this.fill;
271
+ const t = this.icon, s = this.activeIcon || this.icon, n = le[this.size] || le.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", i = "text-foreground", c = this.activeClass || i, f = this.circle ?? !1, m = this.fill;
272
272
  return v({
273
273
  click: () => this.handleToggle(),
274
274
  // @ts-ignore
275
275
  class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${l}${f ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
276
276
  }, [
277
- M("active", (w) => [
277
+ P("active", (w) => [
278
278
  x({
279
279
  size: a,
280
280
  variant: w && m ? "filled" : "outlined",
@@ -284,8 +284,8 @@ class Pa extends S {
284
284
  ]);
285
285
  }
286
286
  }
287
- const Ba = r((e, t) => {
288
- const s = e.size || "md", n = ae[s] || ae.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
287
+ const Ma = r((e, t) => {
288
+ const s = e.size || "md", n = le[s] || le.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
289
289
  return v({
290
290
  ...e,
291
291
  // @ts-ignore
@@ -296,34 +296,47 @@ const Ba = r((e, t) => {
296
296
  ...t || []
297
297
  ]);
298
298
  });
299
- let oe = 0;
300
- const ue = /* @__PURE__ */ new Map(), zt = () => {
301
- const e = globalThis.location?.hash || "";
302
- return (e ? e.replace(/^#\/?/, "") : globalThis.location?.pathname || "/").replace(/^\/+/, "").replace(/\/+$/, "");
303
- }, Ot = (e, t) => t ? e === t || e.startsWith(t + "/") : !1;
299
+ let B = globalThis.history?.state?._pos ?? 0;
300
+ const Bt = B, he = /* @__PURE__ */ new Map(), Be = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
301
+ if (!t) return !1;
302
+ const s = Be(e), n = Be(t);
303
+ return s === n || s.startsWith(n + "/");
304
+ };
304
305
  if (typeof globalThis.history?.pushState == "function") {
305
- const e = globalThis.history.pushState;
306
- globalThis.history.pushState = function(...t) {
307
- return oe++, e.apply(this, t);
308
- };
306
+ const e = globalThis.history.pushState, t = globalThis.history.replaceState;
307
+ globalThis.history.pushState = function(s, n, a) {
308
+ B++;
309
+ const l = s !== null && typeof s == "object" ? { ...s, _pos: B } : { _pos: B };
310
+ return e.call(this, l, n, a);
311
+ }, globalThis.history.replaceState = function(s, n, a) {
312
+ const l = globalThis.history.state?._pos ?? B, i = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
313
+ return t.call(this, i, n, a);
314
+ }, globalThis.addEventListener("popstate", (s) => {
315
+ const n = (
316
+ /** @type {any} */
317
+ s.state?._pos
318
+ );
319
+ typeof n == "number" && (B = n);
320
+ });
309
321
  }
310
- const et = (e) => {
311
- const t = e || "", s = zt(), n = ue.get(t);
312
- if (n && Ot(s, n.basePath))
322
+ const Ot = (e) => {
323
+ const t = e || "", s = oe.path || "", n = he.get(t);
324
+ if (n && zt(s, n.basePath))
313
325
  return n;
314
326
  const a = {
315
- pushCount: oe,
327
+ pos: B,
328
+ sourcePath: oe.lastPath || null,
316
329
  basePath: s
317
330
  };
318
- return ue.set(t, a), a;
319
- }, tt = (e) => {
320
- ue.delete(e || "");
321
- }, L = (e) => r((t, s) => v({
331
+ return he.set(t, a), a;
332
+ }, Nt = (e) => {
333
+ he.delete(e || "");
334
+ }, A = (e) => r((t, s) => v({
322
335
  ...e,
323
336
  ...t,
324
337
  // @ts-ignore
325
338
  class: `bttn ${e.class} ${t.class || ""}`
326
- }, s)), we = r(
339
+ }, s)), et = r(
327
340
  (e, t) => v({
328
341
  ...e,
329
342
  // @ts-ignore
@@ -335,40 +348,27 @@ const et = (e) => {
335
348
  // @ts-ignore
336
349
  e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
337
350
  ])
338
- ), ze = (e) => r((t, s) => we({
351
+ ), ze = (e) => r((t, s) => et({
339
352
  ...e,
340
353
  ...t,
341
354
  // @ts-ignore
342
355
  class: `bttn ${e.class} ${t.class || ""}`
343
- }, s)), Nt = (e) => {
344
- const t = et(e.backUrl);
345
- return () => {
346
- tt(e.backUrl);
347
- const n = oe - t.pushCount + 1;
348
- if (e.allowHistory === !0 && t.pushCount > 0) {
349
- globalThis.history.go(-n);
350
- return;
351
- }
352
- e.backUrl && app.navigate(e.backUrl);
353
- };
354
- }, Ft = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Nt(t), we({
355
- ...e,
356
- ...t
357
- }, s))), Lt = (e) => {
358
- const t = et(e.backUrl);
356
+ }, s)), Ft = (e) => {
357
+ const t = Ot(e.backUrl);
359
358
  return () => {
360
- tt(e.backUrl);
361
- const n = oe - t.pushCount + 1;
362
- if (t.pushCount > 0) {
359
+ Nt(e.backUrl);
360
+ const n = B - t.pos + 1;
361
+ if (t.pos > 0 && t.pos > Bt) {
363
362
  globalThis.history.go(-n);
364
363
  return;
365
364
  }
366
- e.backUrl && app.navigate(e.backUrl);
365
+ const a = t.sourcePath || e.backUrl;
366
+ a && app.navigate(a);
367
367
  };
368
- }, At = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Lt(t), we({
368
+ }, Lt = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Ft(t), et({
369
369
  ...e,
370
370
  ...t
371
- }, s))), Rt = r((e, t) => {
371
+ }, s))), At = r((e, t) => {
372
372
  const s = e.size || "md", n = {
373
373
  xs: "w-6 h-6",
374
374
  sm: "w-8 h-8",
@@ -386,41 +386,40 @@ const et = (e) => {
386
386
  ...t || []
387
387
  ]);
388
388
  }), Oe = {
389
- primary: L({ class: "primary" }),
390
- secondary: L({ class: "secondary" }),
391
- destructive: L({ class: "destructive" }),
392
- warning: L({ class: "warning" }),
393
- outline: L({ class: "outline" }),
394
- ghost: L({ class: "ghost" }),
395
- link: L({ class: "link" }),
389
+ primary: A({ class: "primary" }),
390
+ secondary: A({ class: "secondary" }),
391
+ destructive: A({ class: "destructive" }),
392
+ warning: A({ class: "warning" }),
393
+ outline: A({ class: "outline" }),
394
+ ghost: A({ class: "ghost" }),
395
+ link: A({ class: "link" }),
396
396
  icon: ze({ class: "icon" }),
397
397
  withIcon: ze({ class: "with-icon" }),
398
- back: Ft({ class: "with-icon back-button" }),
399
- smartBack: At({ class: "with-icon back-button" }),
400
- circleIcon: Rt
401
- }, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), za = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), jt = r((e, t) => {
398
+ back: Lt({ class: "with-icon back-button" }),
399
+ circleIcon: At
400
+ }, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), Ba = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), Rt = r((e, t) => {
402
401
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
403
402
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
404
403
  ...e,
405
404
  // @ts-ignore
406
405
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
407
406
  }, t);
408
- }), Et = r((e, t) => ft({
407
+ }), jt = r((e, t) => ht({
409
408
  ...e,
410
409
  // @ts-ignore
411
410
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
412
- }, t)), Oa = r((e, t) => {
411
+ }, t)), za = r((e, t) => {
413
412
  const s = e.border === "full" ? "border rounded-md" : "border-t";
414
- return gt({
413
+ return ft({
415
414
  ...e,
416
415
  // @ts-ignore
417
416
  class: `p-6 ${s} ${e.class || ""}`
418
417
  }, [
419
418
  // @ts-ignore
420
- e.legend && Et(e.legend),
419
+ e.legend && jt(e.legend),
421
420
  o({ class: "flex flex-auto flex-col gap-y-6" }, t)
422
421
  ]);
423
- }), Ht = r((e, t) => {
422
+ }), Et = r((e, t) => {
424
423
  const s = e.border === !0 ? "border-t" : "";
425
424
  return o({
426
425
  ...e,
@@ -442,7 +441,7 @@ const et = (e) => {
442
441
  // Controls container: grows to fill remaining space, spacing between items
443
442
  o({ class: "flex flex-col gap-y-4" }, t)
444
443
  ]);
445
- }), Ut = "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", H = "placeholder:text-muted-foreground", ve = `${Ut} ${D} ${$} ${H} ${C}`, Yt = ({ id: e, checked: t, bind: s, required: n }) => he({
444
+ }), Ht = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", _ = "placeholder:text-muted-foreground", ve = `${Ht} ${D} ${$} ${_} ${C}`, _t = ({ id: e, checked: t, bind: s, required: n }) => fe({
446
445
  id: e,
447
446
  cache: "checkbox",
448
447
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -452,15 +451,15 @@ const et = (e) => {
452
451
  required: n,
453
452
  checked: t,
454
453
  bind: s
455
- }), _t = () => u({ class: "absolute text-xs pointer-events-none" }, [
456
- M(
454
+ }), Ut = () => u({ class: "absolute text-xs pointer-events-none" }, [
455
+ P(
457
456
  "checked",
458
- (e) => e ? j({
457
+ (e) => e ? E({
459
458
  class: "w-2 h-2 pointer-events-none",
460
459
  html: h.check
461
460
  }) : null
462
461
  )
463
- ]), Vt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
462
+ ]), Yt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
464
463
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
465
464
  rounded-md border
466
465
  ${$}
@@ -480,13 +479,13 @@ const et = (e) => {
480
479
  tabIndex: 0,
481
480
  click: a
482
481
  }, [
483
- Yt({ bind: t, checked: s, id: e, required: n }),
484
- _t()
485
- ]), Wt = ({ id: e, label: t, clickHandler: s }) => E({
482
+ _t({ bind: t, checked: s, id: e, required: n }),
483
+ Ut()
484
+ ]), Vt = ({ id: e, label: t, clickHandler: s }) => H({
486
485
  class: "text-base cursor-pointer",
487
486
  htmlFor: e,
488
487
  click: s
489
- }, t), qt = P(
488
+ }, t), Wt = M(
490
489
  {
491
490
  /**
492
491
  * This will initialize the state of the checkbox.
@@ -525,7 +524,7 @@ const et = (e) => {
525
524
  render() {
526
525
  const e = this.getId(), t = (s) => this.clickHandler(s);
527
526
  return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
528
- Vt({
527
+ Yt({
529
528
  id: e,
530
529
  // @ts-ignore
531
530
  bind: this.bind,
@@ -537,38 +536,38 @@ const et = (e) => {
537
536
  clickHandler: t
538
537
  }),
539
538
  // @ts-ignore
540
- this.label && Wt({ id: e, label: this.label, clickHandler: t })
539
+ this.label && Vt({ id: e, label: this.label, clickHandler: t })
541
540
  ]);
542
541
  }
543
542
  }
544
- ), Gt = (e) => {
543
+ ), qt = (e) => {
545
544
  if (!e || e.length === 0) return "";
546
545
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
547
546
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
548
- }, Kt = (e) => {
549
- const t = e.target, s = Gt(t.value);
547
+ }, Gt = (e) => {
548
+ const t = e.target, s = qt(t.value);
550
549
  s && (t.value = s);
551
- }, Qt = [
550
+ }, Kt = [
552
551
  "peer w-full h-14 px-3 pt-5 pb-1",
553
552
  "text-base text-foreground",
554
553
  D,
555
554
  $,
556
555
  C,
557
556
  "placeholder-transparent"
558
- ].join(" "), Jt = [
557
+ ].join(" "), Qt = [
559
558
  "peer w-full min-h-[120px] px-3 pt-6 pb-2",
560
559
  "text-base text-foreground",
561
560
  D,
562
561
  $,
563
562
  C,
564
563
  "placeholder-transparent resize-y"
565
- ].join(" "), Xt = [
564
+ ].join(" "), Jt = [
566
565
  "peer w-full h-14 px-3 pt-5 pb-1 pr-10",
567
566
  "text-base text-foreground appearance-none",
568
567
  D,
569
568
  $,
570
569
  C
571
- ].join(" "), Zt = [
570
+ ].join(" "), Xt = [
572
571
  "absolute left-3",
573
572
  "text-foreground-secondary",
574
573
  "transition-all duration-200",
@@ -579,7 +578,7 @@ const et = (e) => {
579
578
  "peer-[:placeholder-shown:not(:focus)]:top-1/2",
580
579
  "peer-[:placeholder-shown:not(:focus)]:-translate-y-1/2",
581
580
  "peer-[:placeholder-shown:not(:focus)]:text-base"
582
- ].join(" "), es = [
581
+ ].join(" "), Zt = [
583
582
  "absolute left-3",
584
583
  "text-foreground-secondary",
585
584
  "transition-all duration-200",
@@ -589,102 +588,102 @@ const et = (e) => {
589
588
  // Placeholder state (empty + not focused)
590
589
  "peer-[:placeholder-shown:not(:focus)]:top-3.5",
591
590
  "peer-[:placeholder-shown:not(:focus)]:text-base"
592
- ].join(" "), ts = [
591
+ ].join(" "), es = [
593
592
  "absolute left-3 top-2",
594
593
  "text-xs text-foreground-secondary",
595
594
  "pointer-events-none select-none"
596
595
  ].join(" ");
597
- let ss = 0;
598
- const ke = (e) => e.id || e.name || `floating-${++ss}`, Ce = (e, t, s, n) => e ? E(
596
+ let ts = 0;
597
+ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ? H(
599
598
  { htmlFor: s, class: n },
600
599
  t ? [u(e), u({ class: "text-destructive ml-0.5" }, "*")] : e
601
- ) : null, ns = () => j({
600
+ ) : null, ss = () => E({
602
601
  class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
603
602
  html: h.chevron.single.down
604
- }), te = r((e) => {
603
+ }), se = r((e) => {
605
604
  const t = ke(e);
606
605
  return o({ class: "relative" }, [
607
606
  p({
608
607
  ...e,
609
608
  id: t,
610
609
  placeholder: " ",
611
- class: `${Qt} ${e.class || ""}`.trim()
610
+ class: `${Kt} ${e.class || ""}`.trim()
612
611
  }),
613
- Ce(e.label, e.required, t, Zt)
612
+ Ce(e.label, e.required, t, Xt)
614
613
  ]);
615
- }), Na = r(
616
- (e) => te({
614
+ }), Oa = r(
615
+ (e) => se({
617
616
  ...e,
618
617
  type: "tel",
619
618
  name: e.name || "Phone",
620
619
  label: e.label || "Phone",
621
620
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
622
- keyup: Kt
621
+ keyup: Gt
623
622
  })
624
- ), Fa = r(
625
- (e) => te({
623
+ ), Na = r(
624
+ (e) => se({
626
625
  ...e,
627
626
  type: "email",
628
627
  name: e.name || "Email",
629
628
  label: e.label || "Email"
630
629
  })
631
- ), La = r(
632
- (e) => te({
630
+ ), Fa = r(
631
+ (e) => se({
633
632
  ...e,
634
633
  type: "password",
635
634
  name: e.name || "Password",
636
635
  label: e.label || "Password"
637
636
  })
638
- ), Aa = r(
639
- (e) => te({
637
+ ), La = r(
638
+ (e) => se({
640
639
  ...e,
641
640
  type: "number"
642
641
  })
643
- ), Ra = r(
644
- (e) => te({
642
+ ), Aa = r(
643
+ (e) => se({
645
644
  ...e,
646
645
  type: "url",
647
646
  name: e.name || "Url",
648
647
  label: e.label || "URL"
649
648
  })
650
- ), ja = r((e) => {
649
+ ), Ra = r((e) => {
651
650
  const t = ke(e);
652
651
  return o({ class: "relative" }, [
653
652
  Ge({
654
653
  ...e,
655
654
  id: t,
656
655
  placeholder: " ",
657
- class: `${Jt} ${e.class || ""}`.trim()
656
+ class: `${Qt} ${e.class || ""}`.trim()
658
657
  }),
659
- Ce(e.label, e.required, t, es)
658
+ Ce(e.label, e.required, t, Zt)
660
659
  ]);
661
- }), Ea = r((e) => {
660
+ }), ja = r((e) => {
662
661
  const t = ke(e), { options: s, onCreated: n, ...a } = e;
663
662
  return o({ class: "relative" }, [
664
663
  {
665
664
  tag: "select",
666
665
  ...a,
667
666
  id: t,
668
- class: `[&>option]:text-foreground [&>option]:bg-background ${Xt} ${a.class || ""}`.trim(),
667
+ class: `[&>option]:text-foreground [&>option]:bg-background ${Jt} ${a.class || ""}`.trim(),
669
668
  onCreated(l) {
670
669
  s && Je.setupSelectOptions(l, s), typeof n == "function" && n(l);
671
670
  }
672
671
  },
673
- ns(),
674
- Ce(e.label, e.required, t, ts)
672
+ ss(),
673
+ Ce(e.label, e.required, t, es)
675
674
  ]);
676
- }), as = (e) => {
675
+ }), ns = (e) => {
677
676
  if (!e || e.length === 0) return "";
678
677
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
679
678
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
680
- }, os = (e) => {
681
- const t = e.target, s = as(t.value);
679
+ }, as = (e) => {
680
+ const t = e.target, s = ns(t.value);
682
681
  s && (t.value = s);
683
- }, N = r((e) => p({
682
+ }, F = r((e) => p({
684
683
  ...e,
685
684
  // @ts-ignore
686
685
  class: `${ve} ${e.class || ""}`.trim()
687
- })), Ha = r((e) => N({
686
+ })), Ea = r((e) => F({
688
687
  ...e,
689
688
  type: "tel",
690
689
  // @ts-ignore
@@ -694,8 +693,8 @@ const ke = (e) => e.id || e.name || `floating-${++ss}`, Ce = (e, t, s, n) => e ?
694
693
  placeholder: "(555) 555-5555",
695
694
  // @ts-ignore
696
695
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
697
- keyup: os
698
- })), Ua = r((e) => N({
696
+ keyup: as
697
+ })), Ha = r((e) => F({
699
698
  ...e,
700
699
  type: "email",
701
700
  // @ts-ignore
@@ -703,77 +702,77 @@ const ke = (e) => e.id || e.name || `floating-${++ss}`, Ce = (e, t, s, n) => e ?
703
702
  // @ts-ignore
704
703
  label: e.label || "Email",
705
704
  placeholder: "Email address"
706
- })), Ya = r((e) => Ge({
705
+ })), _a = r((e) => Ge({
707
706
  ...e,
708
707
  as: "textarea",
709
708
  // @ts-ignore
710
- class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${H} ${C} ${e.class || ""}`.trim()
711
- })), _a = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
709
+ class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${_} ${C} ${e.class || ""}`.trim()
710
+ })), Ua = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
712
711
  p({
713
712
  ...e,
714
713
  type: "radio",
715
714
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
716
715
  }),
717
- e.label && E({ forHTML: e.value, class: "cursor-pointer" }, e.label)
718
- ]), Va = r((e) => p({
716
+ e.label && H({ forHTML: e.value, class: "cursor-pointer" }, e.label)
717
+ ]), Ya = r((e) => p({
719
718
  ...e,
720
719
  type: "date",
721
720
  // @ts-ignore
722
- class: `${D} ${$} ${H} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
723
- })), Wa = r((e) => p({
721
+ class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
722
+ })), Va = r((e) => p({
724
723
  ...e,
725
724
  type: "time",
726
725
  // @ts-ignore
727
- class: `${D} ${$} ${H} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
728
- })), qa = r((e) => p({
726
+ class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
727
+ })), Wa = r((e) => p({
729
728
  ...e,
730
729
  type: "datetime-local",
731
730
  // @ts-ignore
732
- class: `${D} ${$} ${H} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
733
- })), Ga = r((e) => p({
731
+ class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
732
+ })), qa = r((e) => p({
734
733
  ...e,
735
734
  type: "month",
736
735
  // @ts-ignore
737
- class: `${D} ${$} ${H} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
738
- })), Ka = r((e) => p({
736
+ class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
737
+ })), Ga = r((e) => p({
739
738
  ...e,
740
739
  type: "week",
741
740
  // @ts-ignore
742
- class: `${D} ${$} ${H} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
743
- })), Qa = r((e) => N({
741
+ class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
742
+ })), Ka = r((e) => F({
744
743
  ...e,
745
744
  type: "number"
746
- })), Ja = r((e) => N({
745
+ })), Qa = r((e) => F({
747
746
  ...e,
748
747
  type: "password"
749
748
  }));
750
- r((e) => N({
749
+ r((e) => F({
751
750
  ...e,
752
751
  type: "search"
753
752
  }));
754
- const Xa = r((e) => N({
753
+ const Ja = r((e) => F({
755
754
  ...e,
756
755
  type: "url"
757
- })), Za = r((e) => N({
756
+ })), Xa = r((e) => F({
758
757
  ...e,
759
758
  type: "hidden"
760
- })), eo = r((e) => p({
759
+ })), Za = r((e) => p({
761
760
  ...e,
762
761
  type: "color",
763
762
  // @ts-ignore
764
763
  class: `${D} text-foreground p-0 ${C} ${e.class || ""}`.trim()
765
764
  }));
766
- r((e) => he({
765
+ r((e) => fe({
767
766
  ...e,
768
767
  // @ts-ignore
769
768
  class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
770
769
  }));
771
- const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", to = r((e) => p({
770
+ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", eo = r((e) => p({
772
771
  ...e,
773
772
  type: "file",
774
773
  // @ts-ignore
775
- class: `${ve} ${ls} ${e.class || ""}`.trim()
776
- })), so = O(
774
+ class: `${ve} ${os} ${e.class || ""}`.trim()
775
+ })), to = N(
777
776
  {
778
777
  /**
779
778
  * This will create the initial state of the RangeSlider.
@@ -806,7 +805,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
806
805
  return o({ class: "relative w-full h-4 flex items-center" }, [
807
806
  // Track
808
807
  o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
809
- V(({ state: e }) => [
808
+ W(({ state: e }) => [
810
809
  // Filled Track
811
810
  o({
812
811
  class: "absolute h-2 bg-primary rounded-full",
@@ -845,7 +844,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
845
844
  ]);
846
845
  }
847
846
  }
848
- ), no = r((e) => {
847
+ ), so = r((e) => {
849
848
  const { options: t, onCreated: s, ...n } = e;
850
849
  return {
851
850
  tag: "select",
@@ -855,7 +854,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
855
854
  ...n,
856
855
  class: `[&>option]:text-foreground [&>option]:bg-background ${ve} ${n.class || ""}`.trim()
857
856
  };
858
- }), rs = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : fe({
857
+ }), ls = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : ge({
859
858
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
860
859
  src: e,
861
860
  alt: t,
@@ -864,7 +863,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
864
863
  * If there's an error loading the image, hide it.
865
864
  */
866
865
  error: (a) => a.target.style.visibility = "hidden"
867
- })), is = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
866
+ })), rs = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
868
867
  const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
869
868
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
870
869
  <!-- Background Circle -->
@@ -907,20 +906,20 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
907
906
  class: "circle-graph text-inherit",
908
907
  html: i
909
908
  });
910
- }, ao = r((e) => {
909
+ }, no = r((e) => {
911
910
  const t = e.progress || 0, s = e.class || "", n = Ne(t, s);
912
911
  return o({
913
912
  class: "circle-graph-wrap",
914
913
  onSet: [
915
914
  // @ts-ignore
916
915
  e.prop,
917
- (a) => (a = is(a), a ? Ne(a, s) : n)
916
+ (a) => (a = rs(a), a ? Ne(a, s) : n)
918
917
  ]
919
918
  }, [n]);
920
- }), cs = () => V(({ state: e }) => o({
919
+ }), is = () => W(({ state: e }) => o({
921
920
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
922
921
  style: ["width: [[progress]]%;", e]
923
- })), oo = O(
922
+ })), ao = N(
924
923
  {
925
924
  /**
926
925
  * This will render the progress bar component.
@@ -929,7 +928,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
929
928
  */
930
929
  render() {
931
930
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
932
- cs()
931
+ is()
933
932
  ]);
934
933
  },
935
934
  /**
@@ -972,7 +971,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
972
971
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
973
972
  }
974
973
  }
975
- ), lo = r((e = {}) => {
974
+ ), oo = r((e = {}) => {
976
975
  const {
977
976
  class: t = "",
978
977
  background: s = !0,
@@ -993,7 +992,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
993
992
  style: m,
994
993
  "aria-hidden": "true"
995
994
  });
996
- }), ro = r((e = {}) => {
995
+ }), lo = r((e = {}) => {
997
996
  const {
998
997
  class: t = "",
999
998
  background: s = !0,
@@ -1023,8 +1022,8 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1023
1022
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1024
1023
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1025
1024
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1026
- }, ds = (e) => Fe[String(e)] || Fe.top, io = r(({ position: e = "top", content: t }, s) => {
1027
- const n = ds(e);
1025
+ }, cs = (e) => Fe[String(e)] || Fe.top, ro = r(({ position: e = "top", content: t }, s) => {
1026
+ const n = cs(e);
1028
1027
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1029
1028
  ...s,
1030
1029
  // Tooltip box
@@ -1061,32 +1060,32 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1061
1060
  bgColor: "bg-muted/10",
1062
1061
  iconColor: "text-muted-foreground"
1063
1062
  }
1064
- }, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1063
+ }, ds = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1065
1064
  x({ size: "sm" }, e)
1066
- ]), hs = (e) => mt({ class: "font-semibold" }, e), fs = (e) => k({ class: "text-sm text-muted-foreground" }, e), co = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
1065
+ ]), us = (e) => gt({ class: "font-semibold" }, e), hs = (e) => k({ class: "text-sm text-muted-foreground" }, e), io = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
1067
1066
  const { borderColor: a, bgColor: l, iconColor: i } = Le[n] || Le.default;
1068
1067
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1069
1068
  // Icon and content
1070
- s && us(s, i),
1069
+ s && ds(s, i),
1071
1070
  o({ class: "flex flex-col" }, [
1072
- hs(e),
1073
- fs(t)
1071
+ us(e),
1072
+ hs(t)
1074
1073
  ])
1075
1074
  ]);
1076
- }), gs = (e, t) => {
1075
+ }), fs = (e, t) => {
1077
1076
  const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
1078
1077
  let c = s.left + l, f = s.bottom + i;
1079
1078
  const m = globalThis.innerHeight - s.bottom, w = s.top;
1080
1079
  return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), m < n.height && w > m ? f = s.top + i - n.height - a : m < n.height && (f = s.bottom + i - (n.height - m) - a), { x: c, y: f };
1081
1080
  };
1082
- class se extends S {
1081
+ class ne extends S {
1083
1082
  /**
1084
1083
  * This will set up the data.
1085
1084
  *
1086
1085
  * @returns {object}
1087
1086
  */
1088
1087
  setData() {
1089
- const t = this.parent.data || new z();
1088
+ const t = this.parent.data || new O();
1090
1089
  return t.set({
1091
1090
  position: { x: 0, y: 0 }
1092
1091
  }), t;
@@ -1156,7 +1155,7 @@ class se extends S {
1156
1155
  * @returns {void}
1157
1156
  */
1158
1157
  updatePosition() {
1159
- const t = this.button ?? null, s = this.panel, n = gs(t, s);
1158
+ const t = this.button ?? null, s = this.panel, n = fs(t, s);
1160
1159
  this.data.position = n;
1161
1160
  }
1162
1161
  /**
@@ -1208,29 +1207,29 @@ class se extends S {
1208
1207
  this?.panel?.hidePopover();
1209
1208
  }
1210
1209
  }
1211
- const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), bs = r((e, t) => E({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), xs = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ps = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), uo = r((e, t = []) => jt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1210
+ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ms = r((e, t) => H({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), bs = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), xs = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), co = r((e, t = []) => Rt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1212
1211
  // @ts-ignore
1213
- e.title && J({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1212
+ e.title && X({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1214
1213
  // @ts-ignore
1215
1214
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1216
1215
  ...t
1217
- ])), ho = r((e, t = []) => (
1216
+ ])), uo = r((e, t = []) => (
1218
1217
  // @ts-ignore
1219
- Ht({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1218
+ Et({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1220
1219
  o({ class: "flex flex-col gap-y-6" }, t)
1221
1220
  ])
1222
- )), fo = r((e, t = []) => {
1221
+ )), ho = r((e, t = []) => {
1223
1222
  const s = e.border ? "border-t" : "";
1224
1223
  return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1225
- }), ys = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", st = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = st(n.children, t, s)), !n.required) ? n : ys(n) ? {
1224
+ }), ps = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", tt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = tt(n.children, t, s)), !n.required) ? n : ps(n) ? {
1226
1225
  ...n,
1227
1226
  aria: {
1228
1227
  invalid: ["hasError"]
1229
1228
  },
1230
1229
  invalid: s,
1231
1230
  input: t
1232
- } : n), ws = r((e, t) => {
1233
- const a = st(t, (l) => {
1231
+ } : n), ys = r((e, t) => {
1232
+ const a = tt(t, (l) => {
1234
1233
  l.target.checkValidity() && e.setError(null);
1235
1234
  }, (l) => {
1236
1235
  e.setError(l.target.validationMessage);
@@ -1239,7 +1238,7 @@ const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1239
1238
  ...e,
1240
1239
  class: "w-full"
1241
1240
  }, a);
1242
- }), go = O(
1241
+ }), fo = N(
1243
1242
  {
1244
1243
  /**
1245
1244
  * The initial state of the FormField.
@@ -1264,41 +1263,41 @@ const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1264
1263
  this.state.error = l, this.state.hasError = !!l;
1265
1264
  };
1266
1265
  return o({ class: "flex flex-auto gap-y-4" }, [
1267
- ms([
1268
- bs({ htmlFor: t }, s),
1269
- ws({
1266
+ gs([
1267
+ ms({ htmlFor: t }, s),
1268
+ ys({
1270
1269
  id: t,
1271
1270
  name: e,
1272
1271
  value: this.state.value,
1273
1272
  setError: a
1274
1273
  }, this.children),
1275
- n && xs({ id: this.getId("description") }, n),
1276
- o({ onState: ["error", (l) => l && ps(l)] })
1274
+ n && bs({ id: this.getId("description") }, n),
1275
+ o({ onState: ["error", (l) => l && xs(l)] })
1277
1276
  ])
1278
1277
  ]);
1279
1278
  }
1280
1279
  }
1281
- ), vs = (e, t, s = null) => {
1280
+ ), ws = (e, t, s = null) => {
1282
1281
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1283
- }, nt = r(
1282
+ }, st = r(
1284
1283
  (e, t) => (
1285
1284
  // @ts-ignore
1286
- bt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1285
+ mt({ ...e, submit: (s, n) => ws(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1287
1286
  )
1288
- ), mo = r((e, t) => (
1287
+ ), go = r((e, t) => (
1289
1288
  // @ts-ignore
1290
1289
  o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1291
- )), bo = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1290
+ )), mo = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1292
1291
  // @ts-ignore
1293
- e.title && J({ class: "font-semibold" }, e.title),
1292
+ e.title && X({ class: "font-semibold" }, e.title),
1294
1293
  ...t
1295
- ])), xo = (e, t) => o({ class: "flex justify-between" }, [
1294
+ ])), bo = (e, t) => o({ class: "flex justify-between" }, [
1296
1295
  u({ class: "text-muted-foreground" }, e),
1297
1296
  u(t)
1298
- ]), po = (e, t) => o({ class: "flex" }, [
1297
+ ]), xo = (e, t) => o({ class: "flex" }, [
1299
1298
  u({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1300
1299
  u(t)
1301
- ]), ks = r(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => X({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1300
+ ]), vs = r(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => Z({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1302
1301
  /**
1303
1302
  * Back Button (Mobile Only)
1304
1303
  */
@@ -1316,12 +1315,12 @@ const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1316
1315
  ]),
1317
1316
  o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1318
1317
  o({ class: `flex flex-auto flex-col min-w-0 ${l ? "items-center" : ""}` }, [
1319
- J({ class: "text-lg font-semibold m-0 truncate" }, e),
1318
+ X({ class: "text-lg font-semibold m-0 truncate" }, e),
1320
1319
  t && o({ class: "text-sm text-muted-foreground truncate" }, t)
1321
1320
  ]),
1322
1321
  o({ class: "flex flex-none items-center gap-2" }, a)
1323
1322
  ])
1324
- ])), yo = r((e, t) => {
1323
+ ])), po = r((e, t) => {
1325
1324
  const s = e.class?.includes("drawer");
1326
1325
  return o({
1327
1326
  popover: "manual",
@@ -1331,16 +1330,16 @@ const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1331
1330
  l.target === i.panel && (l.preventDefault(), l.stopPropagation(), i.state.open = !1);
1332
1331
  }
1333
1332
  }, [
1334
- nt({
1333
+ st({
1335
1334
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1336
1335
  // @ts-ignore
1337
1336
  submit: (l, i) => e.onSubmit && e.onSubmit(i),
1338
1337
  cache: "modalContent"
1339
1338
  }, [
1340
- ks(e),
1339
+ vs(e),
1341
1340
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1342
1341
  // @ts-ignore
1343
- !e.hideFooter && ge({ 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)
1342
+ !e.hideFooter && me({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
1344
1343
  ])
1345
1344
  ]);
1346
1345
  }), Ae = {
@@ -1369,22 +1368,22 @@ const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1369
1368
  borderColor: "border",
1370
1369
  iconColor: "text-muted-foreground"
1371
1370
  }
1372
- }, Cs = (e) => X({ class: "flex justify-center" }, [
1373
- me({ class: "text-lg font-bold mb-0" }, e)
1374
- ]), Ss = r(({ href: e, class: t }, s) => Ke({
1371
+ }, ks = (e) => Z({ class: "flex justify-center" }, [
1372
+ be({ class: "text-lg font-bold mb-0" }, e)
1373
+ ]), Cs = r(({ href: e, class: t }, s) => Ke({
1375
1374
  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}`,
1376
1375
  href: e,
1377
1376
  animateIn: "pullRightIn",
1378
1377
  animateOut: "pullRight",
1379
1378
  role: "alert"
1380
- }, s)), $s = r(({ close: e, class: t }, s) => o({
1379
+ }, s)), Ss = r(({ close: e, class: t }, s) => o({
1381
1380
  class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1382
1381
  click: () => e(),
1383
1382
  animateIn: "pullRightIn",
1384
1383
  animateOut: "pullRight",
1385
1384
  role: "alert"
1386
1385
  }, s));
1387
- class wo extends S {
1386
+ class yo extends S {
1388
1387
  /**
1389
1388
  * This will declare the props for the compiler.
1390
1389
  *
@@ -1408,10 +1407,10 @@ class wo extends S {
1408
1407
  */
1409
1408
  render() {
1410
1409
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1411
- return a ? Ss({
1410
+ return a ? Cs({
1412
1411
  href: a,
1413
1412
  class: `${t} ${s}`
1414
- }, l) : $s({
1413
+ }, l) : Ss({
1415
1414
  close: this.close.bind(this),
1416
1415
  class: `${t} ${s}`
1417
1416
  }, l);
@@ -1423,7 +1422,7 @@ class wo extends S {
1423
1422
  */
1424
1423
  afterSetup() {
1425
1424
  const t = this.duration;
1426
- t !== "infinite" && (this.timer = new Ct(t, this.close.bind(this)), this.timer.start());
1425
+ t !== "infinite" && (this.timer = new kt(t, this.close.bind(this)), this.timer.start());
1427
1426
  }
1428
1427
  /**
1429
1428
  * This will get the style properties based on the notification type.
@@ -1461,10 +1460,10 @@ class wo extends S {
1461
1460
  ]),
1462
1461
  o({ class: "flex flex-auto flex-col" }, [
1463
1462
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1464
- this.title && Cs(this.title)
1463
+ this.title && ks(this.title)
1465
1464
  ]),
1466
1465
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1467
- (this.primary || this.secondary) && ge({ class: "margin-top-24 flex align-center" }, this.getButtons())
1466
+ (this.primary || this.secondary) && me({ class: "margin-top-24 flex align-center" }, this.getButtons())
1468
1467
  ])
1469
1468
  ]),
1470
1469
  b({
@@ -1485,17 +1484,17 @@ class wo extends S {
1485
1484
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1486
1485
  }
1487
1486
  }
1488
- const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v({
1487
+ const Re = globalThis.matchMedia, re = r(({ value: e, label: t, icon: s }) => v({
1489
1488
  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',
1490
1489
  onState: ["method", { active: e }],
1491
1490
  dataSet: ["method", ["state", e, "active"]],
1492
1491
  click: (n, { state: a }) => {
1493
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ds(e);
1492
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), $s(e);
1494
1493
  }
1495
1494
  }, [
1496
1495
  x({}, s),
1497
1496
  u(t)
1498
- ])), Ds = (e) => {
1497
+ ])), $s = (e) => {
1499
1498
  const t = document.documentElement;
1500
1499
  if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Re && !Re("(prefers-color-scheme: " + e + ")").matches) {
1501
1500
  t.classList.add(e);
@@ -1503,7 +1502,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1503
1502
  }
1504
1503
  const s = e === "light" ? "dark" : "light";
1505
1504
  t.classList.remove(s);
1506
- }, vo = P(
1505
+ }, wo = M(
1507
1506
  {
1508
1507
  /**
1509
1508
  * This will render the component.
@@ -1513,9 +1512,9 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1513
1512
  render() {
1514
1513
  return o({ class: "flex flex-auto flex-col" }, [
1515
1514
  o({ class: "grid grid-cols-3 gap-4" }, [
1516
- le({ label: "System", value: "system", icon: h.adjustments.horizontal }),
1517
- le({ label: "Light", value: "light", icon: h.sun }),
1518
- le({ label: "Dark", value: "dark", icon: h.moon })
1515
+ re({ label: "System", value: "system", icon: h.adjustments.horizontal }),
1516
+ re({ label: "Light", value: "light", icon: h.sun }),
1517
+ re({ label: "Dark", value: "dark", icon: h.moon })
1519
1518
  ])
1520
1519
  ]);
1521
1520
  },
@@ -1530,7 +1529,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1530
1529
  };
1531
1530
  }
1532
1531
  }
1533
- ), ko = O(
1532
+ ), vo = N(
1534
1533
  {
1535
1534
  /**
1536
1535
  * The initial state of the Toggle.
@@ -1564,7 +1563,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1564
1563
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1565
1564
  }
1566
1565
  }, [
1567
- he({
1566
+ fe({
1568
1567
  cache: "checkbox",
1569
1568
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1570
1569
  /**
@@ -1582,12 +1581,12 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1582
1581
  ]);
1583
1582
  }
1584
1583
  }
1585
- ), Is = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : rs({
1584
+ ), Ds = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : ls({
1586
1585
  src: e,
1587
1586
  alt: t,
1588
1587
  class: "rounded-full"
1589
- })), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), at = (e) => !e || e.length < 2 ? e : Ts(e), Ms = (e) => u([e, (t, s) => {
1590
- s.textContent = at(t);
1588
+ })), Is = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), nt = (e) => !e || e.length < 2 ? e : Is(e), Ts = (e) => u([e, (t, s) => {
1589
+ s.textContent = nt(t);
1591
1590
  }]), je = {
1592
1591
  xs: "h-6 w-6",
1593
1592
  sm: "h-8 w-8",
@@ -1608,8 +1607,8 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1608
1607
  "3xl": "text-4xl",
1609
1608
  "4xl": "text-5xl",
1610
1609
  default: "text-base"
1611
- }, Ps = (e) => je[e] || je.default, Bs = (e) => Ee[e] || Ee.default, zs = (e, t = null, s = "md") => {
1612
- const n = at(String(e)), a = Bs(s);
1610
+ }, Ps = (e) => je[e] || je.default, Ms = (e) => Ee[e] || Ee.default, Bs = (e, t = null, s = "md") => {
1611
+ const n = nt(String(e)), a = Ms(s);
1613
1612
  return o(
1614
1613
  {
1615
1614
  class: `
@@ -1619,21 +1618,21 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1619
1618
  `
1620
1619
  },
1621
1620
  [
1622
- t ? Ms(t) : u({ class: "uppercase" }, n)
1621
+ t ? Ts(t) : u({ class: "uppercase" }, n)
1623
1622
  ]
1624
1623
  );
1625
- }, Os = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1624
+ }, zs = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1626
1625
  const l = Ps(a);
1627
1626
  return o(
1628
1627
  {
1629
1628
  class: `relative flex items-center justify-center ${l}`
1630
1629
  },
1631
1630
  [
1632
- Is({ src: e, alt: t }),
1633
- zs(s, n, a)
1631
+ Ds({ src: e, alt: t }),
1632
+ Bs(s, n, a)
1634
1633
  ]
1635
1634
  );
1636
- }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = P(
1635
+ }), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, ko = M(
1637
1636
  {
1638
1637
  /**
1639
1638
  * Get the initial state for the component.
@@ -1653,7 +1652,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1653
1652
  */
1654
1653
  openFileBrowse() {
1655
1654
  const e = this.input;
1656
- e && (e.value = "", R.trigger("click", e));
1655
+ e && (e.value = "", j.trigger("click", e));
1657
1656
  },
1658
1657
  /**
1659
1658
  * Get the URL for the uploaded file.
@@ -1689,13 +1688,13 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1689
1688
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1690
1689
  }
1691
1690
  }, [
1692
- M("loaded", (s) => s === !1 || He(this.src) ? E({
1691
+ P("loaded", (s) => s === !1 || He(this.src) ? H({
1693
1692
  htmlFor: e,
1694
1693
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1695
1694
  }, [
1696
- de(h.upload),
1695
+ ue(h.upload),
1697
1696
  o("Upload Image")
1698
- ]) : fe({
1697
+ ]) : ge({
1699
1698
  // @ts-ignore
1700
1699
  src: this.src,
1701
1700
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1704,7 +1703,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1704
1703
  ]);
1705
1704
  }
1706
1705
  }
1707
- ), So = P(
1706
+ ), Co = M(
1708
1707
  {
1709
1708
  /**
1710
1709
  * Get the initial state for the component.
@@ -1724,7 +1723,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1724
1723
  */
1725
1724
  openFileBrowse() {
1726
1725
  const e = this.input;
1727
- e && (e.value = "", R.trigger("click", e));
1726
+ e && (e.value = "", j.trigger("click", e));
1728
1727
  },
1729
1728
  /**
1730
1729
  * Get the URL for the uploaded file.
@@ -1760,13 +1759,13 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1760
1759
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1761
1760
  }
1762
1761
  }, [
1763
- M(
1762
+ P(
1764
1763
  "loaded",
1765
- (s) => s ? fe({
1764
+ (s) => s ? ge({
1766
1765
  // @ts-ignore
1767
1766
  src: this.src,
1768
1767
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
1769
- }) : E({
1768
+ }) : H({
1770
1769
  htmlFor: e,
1771
1770
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1772
1771
  }, [
@@ -1786,7 +1785,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1786
1785
  this.input = null;
1787
1786
  }
1788
1787
  }
1789
- ), Ns = (e, t) => Ke(
1788
+ ), Os = (e, t) => Ke(
1790
1789
  {
1791
1790
  href: e,
1792
1791
  "aria-current": t === "Breadcrumb" && "page",
@@ -1794,14 +1793,14 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1794
1793
  class: "text-muted-foreground font-medium hover:text-foreground"
1795
1794
  },
1796
1795
  [u(t)]
1797
- ), Fs = () => x({
1796
+ ), Ns = () => x({
1798
1797
  class: "mx-3 text-muted-foreground",
1799
1798
  "aria-hidden": !0,
1800
1799
  size: "xs"
1801
- }, h.chevron.single.right), Ls = (e) => o({ class: "flex items-center" }, [
1802
- e.href ? Ns(e.href, e.label) : u(e.label),
1803
- e.separator && Fs()
1804
- ]), $o = P(
1800
+ }, h.chevron.single.right), Fs = (e) => o({ class: "flex items-center" }, [
1801
+ e.href ? Os(e.href, e.label) : u(e.label),
1802
+ e.separator && Ns()
1803
+ ]), So = M(
1805
1804
  {
1806
1805
  /**
1807
1806
  * Set initial data
@@ -1809,7 +1808,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1809
1808
  * @returns {Data}
1810
1809
  */
1811
1810
  setData() {
1812
- return new z({
1811
+ return new O({
1813
1812
  // @ts-ignore
1814
1813
  items: this.items || []
1815
1814
  });
@@ -1821,7 +1820,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1821
1820
  */
1822
1821
  render() {
1823
1822
  const e = this.data.items.length - 1;
1824
- return be(
1823
+ return xe(
1825
1824
  {
1826
1825
  "aria-label": "Breadcrumb",
1827
1826
  class: "flex items-center gap-x-1 text-sm"
@@ -1830,7 +1829,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1830
1829
  o({
1831
1830
  role: "list",
1832
1831
  class: "flex items-center",
1833
- for: ["items", (t, s) => Ls({
1832
+ for: ["items", (t, s) => Fs({
1834
1833
  href: t.href,
1835
1834
  label: t.label,
1836
1835
  separator: s < e
@@ -1840,7 +1839,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1840
1839
  );
1841
1840
  }
1842
1841
  }
1843
- ), Ue = {
1842
+ ), _e = {
1844
1843
  xs: "h-1 w-1",
1845
1844
  sm: "h-2 w-2",
1846
1845
  md: "h-4 w-4",
@@ -1849,7 +1848,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1849
1848
  "2xl": "h-16 w-16",
1850
1849
  "3xl": "h-24 w-24",
1851
1850
  default: "h-4 w-4"
1852
- }, As = (e) => Ue[e] || Ue.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1851
+ }, Ls = (e) => _e[e] || _e.default, As = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1853
1852
  u({
1854
1853
  class: "block w-full h-full rounded-full transition-colors",
1855
1854
  onSet: ["activeIndex", {
@@ -1860,10 +1859,10 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1860
1859
  n.activeIndex = e, a && a(e);
1861
1860
  }
1862
1861
  })
1863
- ]), js = (e, t) => Array.from({ length: e }, (s, n) => Rs({
1862
+ ]), Rs = (e, t) => Array.from({ length: e }, (s, n) => As({
1864
1863
  index: n,
1865
1864
  size: t
1866
- })), Do = P(
1865
+ })), $o = M(
1867
1866
  {
1868
1867
  /**
1869
1868
  * Defines component data (props).
@@ -1871,7 +1870,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1871
1870
  * @returns {Data}
1872
1871
  */
1873
1872
  setData() {
1874
- return new z({
1873
+ return new O({
1875
1874
  // @ts-ignore
1876
1875
  count: this.count || 4,
1877
1876
  // total dots
@@ -1885,7 +1884,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1885
1884
  * @returns {object}
1886
1885
  */
1887
1886
  render() {
1888
- const e = this.gap || "gap-2", t = As(this.size || "sm"), s = js(this.data.count, t);
1887
+ const e = this.gap || "gap-2", t = Ls(this.size || "sm"), s = Rs(this.data.count, t);
1889
1888
  return o(
1890
1889
  { class: "flex justify-center items-center py-2" },
1891
1890
  [
@@ -1894,7 +1893,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1894
1893
  );
1895
1894
  }
1896
1895
  }
1897
- ), Es = ({ toggleDropdown: e }) => v(
1896
+ ), js = ({ toggleDropdown: e }) => v(
1898
1897
  {
1899
1898
  cache: "button",
1900
1899
  class: "relative z-2 inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border bg-input hover:bg-muted h-10 px-4 py-2 justify-between",
@@ -1904,27 +1903,27 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1904
1903
  u({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1905
1904
  x({ size: "sm" }, h.chevron.upDown)
1906
1905
  ]
1907
- ), Hs = (e, t, s) => xe({
1906
+ ), Es = (e, t, s) => pe({
1908
1907
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1909
1908
  click: () => t(e),
1910
1909
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1911
1910
  }, [
1912
1911
  e.icon && u({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1913
1912
  u({ class: "text-base font-normal" }, e.label)
1914
- ]), Us = (e, t) => o({ class: "w-full border rounded-md" }, [
1915
- Z({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Hs(s, e, t)] })
1916
- ]), Ys = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1917
- M(
1913
+ ]), Hs = (e, t) => o({ class: "w-full border rounded-md" }, [
1914
+ ee({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Es(s, e, t)] })
1915
+ ]), _s = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1916
+ P(
1918
1917
  "open",
1919
- (s, n, a) => s ? new se({
1918
+ (s, n, a) => s ? new ne({
1920
1919
  cache: "dropdown",
1921
1920
  parent: a,
1922
1921
  button: a.button
1923
1922
  }, [
1924
- Us(e, t)
1923
+ Hs(e, t)
1925
1924
  ]) : null
1926
1925
  )
1927
- ]), Io = P(
1926
+ ]), Do = M(
1928
1927
  {
1929
1928
  /**
1930
1929
  * This will set up the data.
@@ -1932,7 +1931,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
1932
1931
  * @returns {Data}
1933
1932
  */
1934
1933
  setData() {
1935
- return new z({
1934
+ return new O({
1936
1935
  // @ts-ignore
1937
1936
  items: this.items || []
1938
1937
  });
@@ -2005,8 +2004,8 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2005
2004
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2006
2005
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2007
2006
  // @ts-ignore
2008
- Es({ toggleDropdown: this.toggleDropdown.bind(this) }),
2009
- Ys({
2007
+ js({ toggleDropdown: this.toggleDropdown.bind(this) }),
2008
+ _s({
2010
2009
  // @ts-ignore
2011
2010
  state: this.state,
2012
2011
  // @ts-ignore
@@ -2026,21 +2025,21 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2026
2025
  ]);
2027
2026
  }
2028
2027
  }
2029
- ), ot = ({ icon: e, click: t, ariaLabel: s }) => b({
2028
+ ), at = ({ icon: e, click: t, ariaLabel: s }) => b({
2030
2029
  variant: "icon",
2031
2030
  class: "flex flex-none",
2032
2031
  click: t,
2033
2032
  icon: e,
2034
2033
  "aria-label": s
2035
- }), _s = ({ click: e }) => ot({
2034
+ }), Us = ({ click: e }) => at({
2036
2035
  icon: h.circleMinus,
2037
2036
  click: e,
2038
2037
  ariaLabel: "Decrement"
2039
- }), Vs = ({ click: e }) => ot({
2038
+ }), Ys = ({ click: e }) => at({
2040
2039
  icon: h.circlePlus,
2041
2040
  click: e,
2042
2041
  ariaLabel: "Increment"
2043
- }), Ws = ({ bind: e, min: t, max: s, readonly: n = !1 }) => V(({ state: a }) => p({
2042
+ }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
2044
2043
  value: ["[[count]]", a],
2045
2044
  bind: e,
2046
2045
  blur: (l, { state: i }) => {
@@ -2053,7 +2052,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2053
2052
  max: s,
2054
2053
  type: "number",
2055
2054
  "aria-label": "Counter"
2056
- })), To = O(
2055
+ })), Io = N(
2057
2056
  {
2058
2057
  /**
2059
2058
  * Initial state for the counter component.
@@ -2076,20 +2075,20 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2076
2075
  render() {
2077
2076
  const e = this.class ?? "";
2078
2077
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2079
- _s({ click: () => this.state.decrement("count") }),
2080
- Ws({
2078
+ Us({ click: () => this.state.decrement("count") }),
2079
+ Vs({
2081
2080
  bind: this.bind,
2082
2081
  readonly: this.readonly,
2083
2082
  min: this.min,
2084
2083
  max: this.max
2085
2084
  }),
2086
- Vs({ click: () => this.state.increment("count") })
2085
+ Ys({ click: () => this.state.increment("count") })
2087
2086
  ]);
2088
2087
  }
2089
2088
  }
2090
- ), qs = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2089
+ ), Ws = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2091
2090
  { class: "grid grid-cols-3 gap-2" },
2092
- ee.monthNames.map(
2091
+ te.monthNames.map(
2093
2092
  (n, a) => b(
2094
2093
  {
2095
2094
  click: (l) => {
@@ -2101,10 +2100,10 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2101
2100
  n.substring(0, 3)
2102
2101
  )
2103
2102
  )
2104
- ), B = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Gs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), A = (e, t, s) => `${e}-${B(t + 1)}-${B(s)}`, Ks = (e) => e ? "bg-accent text-primary" : "", Qs = (e) => e ? "text-muted-foreground opacity-50" : "", Js = (e, t) => e === t, Xs = (e, t) => Js(e, t) ? "bg-primary text-primary-foreground" : "", Zs = (e, t, s, n) => {
2105
- const a = Xs(t, n);
2106
- return a || (e ? Ks(e) : s ? Qs(s) : "text-foreground");
2107
- }, re = (e) => {
2103
+ ), z = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), qs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), R = (e, t, s) => `${e}-${z(t + 1)}-${z(s)}`, Gs = (e) => e ? "bg-accent text-primary" : "", Ks = (e) => e ? "text-muted-foreground opacity-50" : "", Qs = (e, t) => e === t, Js = (e, t) => Qs(e, t) ? "bg-primary text-primary-foreground" : "", Xs = (e, t, s, n) => {
2104
+ const a = Js(t, n);
2105
+ return a || (e ? Gs(e) : s ? Ks(s) : "text-foreground");
2106
+ }, ie = (e) => {
2108
2107
  const {
2109
2108
  day: t,
2110
2109
  currentDate: s,
@@ -2118,7 +2117,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2118
2117
  {
2119
2118
  class: `
2120
2119
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
2121
- ${Zs(a, s, l, n)}
2120
+ ${Xs(a, s, l, n)}
2122
2121
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2123
2122
  disabled:pointer-events-none disabled:opacity-50
2124
2123
  `,
@@ -2129,29 +2128,29 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2129
2128
  },
2130
2129
  t.toString()
2131
2130
  );
2132
- }, ie = (e, t, s, n) => e === n.date && t === n.month && s === n.year, en = (e, t, s, n = !1) => {
2133
- const { year: a, month: l } = e, i = A(a, l, e.date), c = new Date(a, l, 1).getDay(), f = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), w = [], W = l === 0 ? 11 : l - 1, U = l === 0 ? a - 1 : a;
2131
+ }, ce = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Zs = (e, t, s, n = !1) => {
2132
+ const { year: a, month: l } = e, i = R(a, l, e.date), c = new Date(a, l, 1).getDay(), f = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), w = [], q = l === 0 ? 11 : l - 1, U = l === 0 ? a - 1 : a;
2134
2133
  for (let d = c - 1; d >= 0; d--) {
2135
- const y = m - d, I = ie(y, W, U, t), T = new Date(U, W, y) < new Date(t.year, t.month, t.date), F = n && T;
2134
+ const y = m - d, I = ce(y, q, U, t), T = new Date(U, q, y) < new Date(t.year, t.month, t.date), L = n && T;
2136
2135
  w.push(
2137
- re({
2136
+ ie({
2138
2137
  day: y,
2139
2138
  currentDate: i,
2140
- date: A(U, W, y),
2139
+ date: R(U, q, y),
2141
2140
  isToday: I,
2142
2141
  isOutsideMonth: !0,
2143
2142
  select: s,
2144
- disabled: F
2143
+ disabled: L
2145
2144
  })
2146
2145
  );
2147
2146
  }
2148
2147
  for (let d = 1; d <= f; d++) {
2149
- const y = ie(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2148
+ const y = ce(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2150
2149
  w.push(
2151
- re({
2150
+ ie({
2152
2151
  day: d,
2153
2152
  currentDate: i,
2154
- date: A(a, l, d),
2153
+ date: R(a, l, d),
2155
2154
  isToday: y,
2156
2155
  isOutsideMonth: !1,
2157
2156
  select: s,
@@ -2159,14 +2158,14 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2159
2158
  })
2160
2159
  );
2161
2160
  }
2162
- const Y = l === 11 ? 0 : l + 1, ne = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2161
+ const Y = l === 11 ? 0 : l + 1, ae = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2163
2162
  for (let d = 1; d <= g; d++) {
2164
- const y = ie(d, Y, ne, t), I = new Date(ne, Y, d) < new Date(t.year, t.month, t.date), T = n && I;
2163
+ const y = ce(d, Y, ae, t), I = new Date(ae, Y, d) < new Date(t.year, t.month, t.date), T = n && I;
2165
2164
  w.push(
2166
- re({
2165
+ ie({
2167
2166
  day: d,
2168
2167
  currentDate: i,
2169
- date: A(ne, Y, d),
2168
+ date: R(ae, Y, d),
2170
2169
  isToday: y,
2171
2170
  isOutsideMonth: !0,
2172
2171
  select: s,
@@ -2175,7 +2174,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2175
2174
  );
2176
2175
  }
2177
2176
  return w;
2178
- }, Ye = ({ label: e, click: t }) => b(
2177
+ }, Ue = ({ label: e, click: t }) => b(
2179
2178
  {
2180
2179
  class: `
2181
2180
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2188,16 +2187,16 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2188
2187
  variant: "icon",
2189
2188
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2190
2189
  }
2191
- ), tn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2190
+ ), en = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2192
2191
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2193
2192
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2194
- Ye({ label: "Previous", click: n }),
2195
- Ye({ label: "Next", click: s })
2196
- ]), sn = (e) => o(
2193
+ Ue({ label: "Previous", click: n }),
2194
+ Ue({ label: "Next", click: s })
2195
+ ]), tn = (e) => o(
2197
2196
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2198
2197
  e
2199
- ), nn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(sn), an = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2200
- tn({
2198
+ ), sn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(tn), nn = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2199
+ en({
2201
2200
  onMonthClick: e.onMonthClick,
2202
2201
  onYearClick: e.onYearClick,
2203
2202
  next: e.next,
@@ -2208,10 +2207,10 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2208
2207
  onSet: [
2209
2208
  "currentDate",
2210
2209
  () => [
2211
- o({ class: "grid grid-cols-7" }, nn()),
2210
+ o({ class: "grid grid-cols-7" }, sn()),
2212
2211
  o(
2213
2212
  { class: "grid grid-cols-7" },
2214
- en(
2213
+ Zs(
2215
2214
  e.current,
2216
2215
  e.today,
2217
2216
  e.select,
@@ -2221,7 +2220,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2221
2220
  ]
2222
2221
  ]
2223
2222
  })
2224
- ]), on = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2223
+ ]), an = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2225
2224
  const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
2226
2225
  return o(
2227
2226
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2239,7 +2238,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => v(
2239
2238
  )
2240
2239
  );
2241
2240
  };
2242
- class ln extends S {
2241
+ class on extends S {
2243
2242
  /**
2244
2243
  * This will declare the props for the compiler.
2245
2244
  *
@@ -2255,7 +2254,7 @@ class ln extends S {
2255
2254
  * @returns {Date}
2256
2255
  */
2257
2256
  getSelectedDate(t) {
2258
- const s = this.selectedDate ? new Date(Gs(this.selectedDate)) : t;
2257
+ const s = this.selectedDate ? new Date(qs(this.selectedDate)) : t;
2259
2258
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2260
2259
  }
2261
2260
  /**
@@ -2265,7 +2264,7 @@ class ln extends S {
2265
2264
  */
2266
2265
  setData() {
2267
2266
  const t = /* @__PURE__ */ new Date(), s = this.getSelectedDate(t), n = s.getMonth();
2268
- return new z({
2267
+ return new O({
2269
2268
  monthName: this.getMonthName(n),
2270
2269
  currentDate: `${s.getFullYear()}-${n + 1}-${s.getDate()}`,
2271
2270
  current: {
@@ -2298,7 +2297,7 @@ class ln extends S {
2298
2297
  * @returns {string}
2299
2298
  */
2300
2299
  getMonthName(t) {
2301
- return ee.monthNames[t];
2300
+ return te.monthNames[t];
2302
2301
  }
2303
2302
  /**
2304
2303
  * This will go to the previous month.
@@ -2330,7 +2329,7 @@ class ln extends S {
2330
2329
  */
2331
2330
  setCurrentDate(t, s, n = null) {
2332
2331
  const a = this.data;
2333
- a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = B(n)), a.currentDate = `${s}-${B(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2332
+ a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = z(n)), a.currentDate = `${s}-${z(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2334
2333
  }
2335
2334
  /**
2336
2335
  * This will select a date.
@@ -2349,10 +2348,10 @@ class ln extends S {
2349
2348
  */
2350
2349
  render() {
2351
2350
  return o({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2352
- M("view", (t) => {
2351
+ P("view", (t) => {
2353
2352
  switch (t) {
2354
2353
  case "months":
2355
- return qs(
2354
+ return Ws(
2356
2355
  {
2357
2356
  // @ts-ignore
2358
2357
  currentMonth: this.data.current.month,
@@ -2364,7 +2363,7 @@ class ln extends S {
2364
2363
  }
2365
2364
  );
2366
2365
  case "years":
2367
- return on(
2366
+ return an(
2368
2367
  {
2369
2368
  // @ts-ignore
2370
2369
  currentMonth: this.data.current.month,
@@ -2376,7 +2375,7 @@ class ln extends S {
2376
2375
  }
2377
2376
  );
2378
2377
  default:
2379
- return an({
2378
+ return nn({
2380
2379
  // @ts-ignore
2381
2380
  current: this.data.current,
2382
2381
  // @ts-ignore
@@ -2397,57 +2396,57 @@ class ln extends S {
2397
2396
  ]);
2398
2397
  }
2399
2398
  }
2400
- const rn = (e) => {
2399
+ const ln = (e) => {
2401
2400
  let t = "";
2402
2401
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += "/" + e.substring(2, 4), e.length > 4 && (t += "/" + e.substring(4, 8)))), t;
2403
- }, cn = (e) => {
2402
+ }, rn = (e) => {
2404
2403
  if (e.length !== 8)
2405
2404
  return null;
2406
2405
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2407
2406
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2408
- }, dn = ({ bind: e, required: t }) => p({
2407
+ }, cn = ({ bind: e, required: t }) => p({
2409
2408
  cache: "input",
2410
2409
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2411
2410
  bind: e,
2412
2411
  required: t
2413
- }), un = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2412
+ }), dn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2414
2413
  cache: "dateInput",
2415
2414
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2416
2415
  placeholder: e || "mm/dd/yyyy",
2417
2416
  input: t,
2418
2417
  focus: s,
2419
- onState: ["selectedDate", (n) => n ? ee.format("standard", n) : ""]
2420
- }), hn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2418
+ onState: ["selectedDate", (n) => n ? te.format("standard", n) : ""]
2419
+ }), un = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2421
2420
  {
2422
2421
  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"
2423
2422
  },
2424
2423
  [
2425
- dn({ bind: e, required: t }),
2426
- un({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2424
+ cn({ bind: e, required: t }),
2425
+ dn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2427
2426
  v(
2428
2427
  {
2429
2428
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2430
2429
  click: s
2431
2430
  },
2432
2431
  [
2433
- j({ html: h.calendar.days })
2432
+ E({ html: h.calendar.days })
2434
2433
  ]
2435
2434
  )
2436
2435
  ]
2437
- ), fn = ({ handleDateSelect: e, blockPriorDates: t }) => pe(
2438
- (s, n, a) => new se({
2436
+ ), hn = ({ handleDateSelect: e, blockPriorDates: t }) => ye(
2437
+ (s, n, a) => new ne({
2439
2438
  cache: "dropdown",
2440
2439
  parent: a,
2441
2440
  button: a.panel,
2442
2441
  size: "fit"
2443
2442
  }, [
2444
- new ln({
2443
+ new on({
2445
2444
  selectedDate: a.state.selectedDate,
2446
2445
  selectedCallBack: e,
2447
2446
  blockPriorDates: t
2448
2447
  })
2449
2448
  ])
2450
- ), Mo = O(
2449
+ ), To = N(
2451
2450
  {
2452
2451
  /**
2453
2452
  * The initial state of the DatePicker.
@@ -2476,9 +2475,9 @@ const rn = (e) => {
2476
2475
  */
2477
2476
  handleInputChange(e) {
2478
2477
  const s = e.target.value.replace(/\D/g, "");
2479
- e.target.value = rn(s);
2480
- const n = cn(s);
2481
- n && (this.state.selectedDate = n, this.input.value = n, R.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2478
+ e.target.value = ln(s);
2479
+ const n = rn(s);
2480
+ n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2482
2481
  },
2483
2482
  /**
2484
2483
  * Handles input focus - select all text for easy editing.
@@ -2494,7 +2493,7 @@ const rn = (e) => {
2494
2493
  * @param {string} date
2495
2494
  */
2496
2495
  handleDateSelect(e) {
2497
- this.state.selectedDate = e, this.state.open = !1, this.input.value = e, R.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
2496
+ this.state.selectedDate = e, this.state.open = !1, this.input.value = e, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
2498
2497
  },
2499
2498
  /**
2500
2499
  * Toggles the calendar popover.
@@ -2514,7 +2513,7 @@ const rn = (e) => {
2514
2513
  return o(
2515
2514
  { class: "relative w-full max-w-[320px]" },
2516
2515
  [
2517
- hn({
2516
+ un({
2518
2517
  toggleOpen: this.toggleOpen.bind(this),
2519
2518
  bind: this.bind,
2520
2519
  required: this.required,
@@ -2522,7 +2521,7 @@ const rn = (e) => {
2522
2521
  handleInputFocus: this.handleInputFocus.bind(this),
2523
2522
  placeholder: this.placeholder
2524
2523
  }),
2525
- fn({
2524
+ hn({
2526
2525
  handleDateSelect: this.handleDateSelect.bind(this),
2527
2526
  blockPriorDates: this.blockPriorDates || !1
2528
2527
  })
@@ -2530,7 +2529,7 @@ const rn = (e) => {
2530
2529
  );
2531
2530
  }
2532
2531
  }
2533
- ), _e = ({ label: e, click: t }) => b(
2532
+ ), Ye = ({ label: e, click: t }) => b(
2534
2533
  {
2535
2534
  class: `
2536
2535
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2543,15 +2542,15 @@ const rn = (e) => {
2543
2542
  variant: "icon",
2544
2543
  icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2545
2544
  }
2546
- ), gn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2545
+ ), fn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2547
2546
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2548
2547
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2549
- _e({ label: "Previous", click: n }),
2550
- _e({ label: "Next", click: s })
2551
- ]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
2548
+ Ye({ label: "Previous", click: n }),
2549
+ Ye({ label: "Next", click: s })
2550
+ ]), gn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), mn = () => o(
2552
2551
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2553
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
2554
- ), xn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2552
+ ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(gn)
2553
+ ), bn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
2555
2554
  let f = "ghost", m = "";
2556
2555
  return n || a ? (f = "default", m = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (m = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (m += " opacity-50 cursor-not-allowed"), i && (m += " text-muted-foreground opacity-50"), b(
2557
2556
  {
@@ -2564,30 +2563,30 @@ const rn = (e) => {
2564
2563
  },
2565
2564
  e.toString()
2566
2565
  );
2567
- }, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2568
- const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, W = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
2566
+ }, xn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2567
+ const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, q = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
2569
2568
  for (let g = i - 1; g >= 0; g--) {
2570
- const d = W - g, y = A(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), F = I < T, q = s && F, G = a === y, K = l === y, ht = a && l && y > a && y < l;
2569
+ const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), L = I < T, G = s && L, K = a === y, Q = l === y, ut = a && l && y > a && y < l;
2571
2570
  f.push({
2572
2571
  day: d,
2573
2572
  iso: y,
2574
- disabled: q,
2575
- isStart: G,
2576
- isEnd: K,
2577
- isBetween: ht,
2573
+ disabled: G,
2574
+ isStart: K,
2575
+ isEnd: Q,
2576
+ isBetween: ut,
2578
2577
  isOtherMonth: !0,
2579
2578
  click: () => n(y)
2580
2579
  });
2581
2580
  }
2582
2581
  for (let g = 1; g <= c; g++) {
2583
- const d = A(t.year, t.month, g), y = new Date(t.year, t.month, g), I = new Date(e.year, e.month, e.date), T = y < I, F = s && T, q = a === d, G = l === d, K = a && l && d > a && d < l;
2582
+ const d = R(t.year, t.month, g), y = new Date(t.year, t.month, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2584
2583
  f.push({
2585
2584
  day: g,
2586
2585
  iso: d,
2587
- disabled: F,
2588
- isStart: q,
2589
- isEnd: G,
2590
- isBetween: K,
2586
+ disabled: L,
2587
+ isStart: G,
2588
+ isEnd: K,
2589
+ isBetween: Q,
2591
2590
  isOtherMonth: !1,
2592
2591
  click: () => {
2593
2592
  n(d);
@@ -2596,14 +2595,14 @@ const rn = (e) => {
2596
2595
  }
2597
2596
  const $e = (7 - f.length % 7) % 7;
2598
2597
  for (let g = 1; g <= $e; g++) {
2599
- const d = A(Y, U, g), y = new Date(Y, U, g), I = new Date(e.year, e.month, e.date), T = y < I, F = s && T, q = a === d, G = l === d, K = a && l && d > a && d < l;
2598
+ const d = R(Y, U, g), y = new Date(Y, U, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2600
2599
  f.push({
2601
2600
  day: g,
2602
2601
  iso: d,
2603
- disabled: F,
2604
- isStart: q,
2605
- isEnd: G,
2606
- isBetween: K,
2602
+ disabled: L,
2603
+ isStart: G,
2604
+ isEnd: K,
2605
+ isBetween: Q,
2607
2606
  isOtherMonth: !0,
2608
2607
  click: () => n(d)
2609
2608
  });
@@ -2611,7 +2610,7 @@ const rn = (e) => {
2611
2610
  return o(
2612
2611
  { class: "grid grid-cols-7 gap-1" },
2613
2612
  f.map(
2614
- (g, d) => xn({
2613
+ (g, d) => bn({
2615
2614
  day: g.day,
2616
2615
  iso: g.iso,
2617
2616
  disabled: g.disabled,
@@ -2623,8 +2622,8 @@ const rn = (e) => {
2623
2622
  })
2624
2623
  )
2625
2624
  );
2626
- }, yn = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2627
- gn({
2625
+ }, pn = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
2626
+ fn({
2628
2627
  // @ts-ignore
2629
2628
  onMonthClick: e.onMonthClick,
2630
2629
  // @ts-ignore
@@ -2639,8 +2638,8 @@ const rn = (e) => {
2639
2638
  onSet: [
2640
2639
  "currentDate",
2641
2640
  () => [
2642
- bn(),
2643
- pn({
2641
+ mn(),
2642
+ xn({
2644
2643
  // @ts-ignore
2645
2644
  today: e.today,
2646
2645
  // @ts-ignore
@@ -2653,9 +2652,9 @@ const rn = (e) => {
2653
2652
  ]
2654
2653
  ]
2655
2654
  })
2656
- ])), wn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2655
+ ])), yn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2657
2656
  { class: "grid grid-cols-3 gap-2" },
2658
- ee.monthNames.map(
2657
+ te.monthNames.map(
2659
2658
  (n, a) => b(
2660
2659
  {
2661
2660
  click: (l) => {
@@ -2667,25 +2666,25 @@ const rn = (e) => {
2667
2666
  n.substring(0, 3)
2668
2667
  )
2669
2668
  )
2670
- ), vn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2671
- Q("selecting", (l) => b({
2669
+ ), wn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2670
+ J("selecting", (l) => b({
2672
2671
  click: n,
2673
2672
  variant: l === "start" ? "primary" : "outline",
2674
2673
  class: "flex-1"
2675
2674
  }, [
2676
2675
  o({ class: "font-medium" }, Ve("current.start", "Start Date"))
2677
2676
  ])),
2678
- Q("selecting", (l) => b({
2677
+ J("selecting", (l) => b({
2679
2678
  click: a,
2680
2679
  variant: l === "end" ? "primary" : "outline",
2681
2680
  class: "flex-1"
2682
2681
  }, [
2683
2682
  o({ class: "font-medium" }, Ve("current.end", "End Date"))
2684
2683
  ]))
2685
- ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
2684
+ ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : vn(s)], vn = (e) => {
2686
2685
  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"];
2687
2686
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2688
- }, Cn = ({ currentYear: e, onSelect: t }) => {
2687
+ }, kn = ({ currentYear: e, onSelect: t }) => {
2689
2688
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2690
2689
  return o(
2691
2690
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2703,7 +2702,7 @@ const rn = (e) => {
2703
2702
  )
2704
2703
  );
2705
2704
  };
2706
- class Sn extends S {
2705
+ class Cn extends S {
2707
2706
  /**
2708
2707
  * Declare compiler props.
2709
2708
  *
@@ -2719,14 +2718,14 @@ class Sn extends S {
2719
2718
  */
2720
2719
  setData() {
2721
2720
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, n = s.getMonth(), a = s.getFullYear();
2722
- return new z({
2721
+ return new O({
2723
2722
  today: {
2724
2723
  date: t.getDate(),
2725
2724
  month: t.getMonth(),
2726
2725
  year: t.getFullYear()
2727
2726
  },
2728
2727
  monthName: this.getMonthName(n),
2729
- currentData: `${s.getFullYear()}-${B(s.getMonth() + 1)}-${B(s.getDate())}`,
2728
+ currentData: `${s.getFullYear()}-${z(s.getMonth() + 1)}-${z(s.getDate())}`,
2730
2729
  current: {
2731
2730
  date: t.getDate(),
2732
2731
  month: n,
@@ -2744,7 +2743,7 @@ class Sn extends S {
2744
2743
  * @returns {string}
2745
2744
  */
2746
2745
  getMonthName(t) {
2747
- return ee.monthNames[t];
2746
+ return te.monthNames[t];
2748
2747
  }
2749
2748
  /**
2750
2749
  * Initialize component state.
@@ -2790,7 +2789,7 @@ class Sn extends S {
2790
2789
  */
2791
2790
  setCurrent({ month: t, year: s, date: n = null }) {
2792
2791
  const a = this.data.current;
2793
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${B(t + 1)}-${B(a.date)}`;
2792
+ 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}-${z(t + 1)}-${z(a.date)}`;
2794
2793
  }
2795
2794
  /**
2796
2795
  * Render the range calendar.
@@ -2800,7 +2799,7 @@ class Sn extends S {
2800
2799
  render() {
2801
2800
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2802
2801
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2803
- vn({
2802
+ wn({
2804
2803
  start: a,
2805
2804
  end: l,
2806
2805
  selecting: n,
@@ -2811,10 +2810,10 @@ class Sn extends S {
2811
2810
  i.preventDefault(), i.stopPropagation(), this.data.selecting = "end";
2812
2811
  }
2813
2812
  }),
2814
- M("view", (i) => {
2813
+ P("view", (i) => {
2815
2814
  switch (i) {
2816
2815
  case "months":
2817
- return wn(
2816
+ return yn(
2818
2817
  {
2819
2818
  currentMonth: s.month,
2820
2819
  currentYear: s.year,
@@ -2824,7 +2823,7 @@ class Sn extends S {
2824
2823
  }
2825
2824
  );
2826
2825
  case "years":
2827
- return Cn(
2826
+ return kn(
2828
2827
  {
2829
2828
  currentYear: s.year,
2830
2829
  onSelect: (c) => {
@@ -2833,7 +2832,7 @@ class Sn extends S {
2833
2832
  }
2834
2833
  );
2835
2834
  default:
2836
- return yn({
2835
+ return pn({
2837
2836
  // @ts-ignore
2838
2837
  monthName: this.data.monthName,
2839
2838
  year: s.year,
@@ -2861,35 +2860,35 @@ class Sn extends S {
2861
2860
  ]);
2862
2861
  }
2863
2862
  }
2864
- const $n = ({ bind: e, required: t }) => p({
2863
+ const Sn = ({ bind: e, required: t }) => p({
2865
2864
  cache: "input",
2866
2865
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2867
2866
  bind: e,
2868
2867
  required: t
2869
- }), Dn = ({ bind: e, required: t, toggleOpen: s }) => v({
2868
+ }), $n = ({ bind: e, required: t, toggleOpen: s }) => v({
2870
2869
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
2871
2870
  click: s
2872
2871
  }, [
2873
- $n({ bind: e, required: t }),
2874
- V(({ state: n }) => [
2875
- u(_.date(["[[start]]", n], "Start Date")),
2872
+ Sn({ bind: e, required: t }),
2873
+ W(({ state: n }) => [
2874
+ u(V.date(["[[start]]", n], "Start Date")),
2876
2875
  u(" - "),
2877
- u(_.date(["[[end]]", n], "End Date"))
2876
+ u(V.date(["[[end]]", n], "End Date"))
2878
2877
  ]),
2879
- j({ html: h.calendar.days })
2880
- ]), In = ({ handleDateSelect: e, blockPriorDates: t }) => pe((s, n, a) => new se({
2878
+ E({ html: h.calendar.days })
2879
+ ]), Dn = ({ handleDateSelect: e, blockPriorDates: t }) => ye((s, n, a) => new ne({
2881
2880
  cache: "dropdown",
2882
2881
  parent: a,
2883
2882
  button: a.panel,
2884
2883
  size: "xl"
2885
2884
  }, [
2886
- new Sn({
2885
+ new Cn({
2887
2886
  startDate: a.state.start,
2888
2887
  endDate: a.state.end,
2889
2888
  onRangeSelect: e,
2890
2889
  blockPriorDates: t
2891
2890
  })
2892
- ])), Po = O(
2891
+ ])), Po = N(
2893
2892
  {
2894
2893
  /**
2895
2894
  * The initial state of the DateRangePicker.
@@ -2922,15 +2921,15 @@ const $n = ({ bind: e, required: t }) => p({
2922
2921
  */
2923
2922
  render() {
2924
2923
  const e = (s, { state: n }) => n.toggle("open"), t = (s, n) => {
2925
- this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, R.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2924
+ this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2926
2925
  };
2927
2926
  return o({ class: "relative w-full max-w-[320px]" }, [
2928
- Dn({
2927
+ $n({
2929
2928
  toggleOpen: e,
2930
2929
  bind: this.bind,
2931
2930
  required: this.required
2932
2931
  }),
2933
- In({
2932
+ Dn({
2934
2933
  handleDateSelect: t,
2935
2934
  blockPriorDates: this.blockPriorDates || !1
2936
2935
  })
@@ -2938,11 +2937,11 @@ const $n = ({ bind: e, required: t }) => p({
2938
2937
  }
2939
2938
  }
2940
2939
  );
2941
- function Tn(e) {
2940
+ function In(e) {
2942
2941
  let t = "";
2943
2942
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2944
2943
  }
2945
- function Mn(e) {
2944
+ function Tn(e) {
2946
2945
  if (e.length < 4)
2947
2946
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2948
2947
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2964,7 +2963,7 @@ function Pn({ bind: e, required: t }) {
2964
2963
  required: t
2965
2964
  });
2966
2965
  }
2967
- function Bn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2966
+ function Mn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2968
2967
  return p({
2969
2968
  cache: "timeInput",
2970
2969
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
@@ -2974,27 +2973,27 @@ function Bn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2974
2973
  onState: ["selectedTime", (n) => n || ""]
2975
2974
  });
2976
2975
  }
2977
- function zn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2976
+ function Bn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2978
2977
  return o(
2979
2978
  {
2980
2979
  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"
2981
2980
  },
2982
2981
  [
2983
2982
  Pn({ bind: e, required: t }),
2984
- Bn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2983
+ Mn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2985
2984
  v(
2986
2985
  {
2987
2986
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2988
2987
  click: s
2989
2988
  },
2990
2989
  [
2991
- j({ html: h.clock })
2990
+ E({ html: h.clock })
2992
2991
  ]
2993
2992
  )
2994
2993
  ]
2995
2994
  );
2996
2995
  }
2997
- function ce({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
2996
+ function de({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
2998
2997
  return o(
2999
2998
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
3000
2999
  e.map((l) => {
@@ -3008,9 +3007,9 @@ function ce({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
3008
3007
  })
3009
3008
  );
3010
3009
  }
3011
- function On({ handleTimeSelect: e }) {
3012
- return pe(
3013
- (t, s, n) => new se(
3010
+ function zn({ handleTimeSelect: e }) {
3011
+ return ye(
3012
+ (t, s, n) => new ne(
3014
3013
  {
3015
3014
  cache: "dropdown",
3016
3015
  parent: n,
@@ -3025,7 +3024,7 @@ function On({ handleTimeSelect: e }) {
3025
3024
  { class: "grid grid-cols-3 gap-2 p-4 text-center max-h-[220px] min-w-[240px]" },
3026
3025
  [
3027
3026
  // Hours column
3028
- ce({
3027
+ de({
3029
3028
  items: Array.from({ length: 12 }, (a, l) => l + 1),
3030
3029
  handleTimeSelect: e,
3031
3030
  state: n.state,
@@ -3033,7 +3032,7 @@ function On({ handleTimeSelect: e }) {
3033
3032
  pad: !0
3034
3033
  }),
3035
3034
  // Minutes column
3036
- ce({
3035
+ de({
3037
3036
  items: Array.from({ length: 60 }, (a, l) => l),
3038
3037
  handleTimeSelect: e,
3039
3038
  state: n.state,
@@ -3041,7 +3040,7 @@ function On({ handleTimeSelect: e }) {
3041
3040
  pad: !0
3042
3041
  }),
3043
3042
  // AM/PM column
3044
- ce({
3043
+ de({
3045
3044
  items: ["AM", "PM"],
3046
3045
  handleTimeSelect: e,
3047
3046
  state: n.state,
@@ -3068,7 +3067,7 @@ function We(e) {
3068
3067
  meridian: l
3069
3068
  });
3070
3069
  }
3071
- const Bo = O(
3070
+ const Mo = N(
3072
3071
  {
3073
3072
  /**
3074
3073
  * The initial shallow state of the TimePicker.
@@ -3116,14 +3115,14 @@ const Bo = O(
3116
3115
  * @param {Event} e
3117
3116
  */
3118
3117
  handleInputChange(e) {
3119
- let t = e.target.value.replace(/[^\d]/g, ""), s = Tn(t);
3120
- const n = Mn(t);
3118
+ let t = e.target.value.replace(/[^\d]/g, ""), s = In(t);
3119
+ const n = Tn(t);
3121
3120
  n.formattedTime && (s = n.formattedTime, this.state.set({
3122
3121
  hour: n.hour,
3123
3122
  minute: n.minute,
3124
3123
  meridian: n.meridian,
3125
3124
  selectedTime: n.formattedTime
3126
- }), this.input.value = n.formattedTime, R.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3125
+ }), this.input.value = n.formattedTime, j.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3127
3126
  },
3128
3127
  /**
3129
3128
  * Handles input focus - select all text for easy editing.
@@ -3141,7 +3140,7 @@ const Bo = O(
3141
3140
  handleTimeSelect({ hour: e, minute: t, meridian: s }) {
3142
3141
  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) {
3143
3142
  const n = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
3144
- this.state.selectedTime = n, this.state.open = !1, this.input.value = n, R.trigger("change", this.input), typeof this.change == "function" && this.change(n);
3143
+ this.state.selectedTime = n, this.state.open = !1, this.input.value = n, j.trigger("change", this.input), typeof this.change == "function" && this.change(n);
3145
3144
  }
3146
3145
  },
3147
3146
  /**
@@ -3153,7 +3152,7 @@ const Bo = O(
3153
3152
  return o(
3154
3153
  { class: "relative w-full max-w-[320px]" },
3155
3154
  [
3156
- zn({
3155
+ Bn({
3157
3156
  toggleOpen: this.toggleOpen.bind(this),
3158
3157
  bind: this.bind,
3159
3158
  required: this.required,
@@ -3161,18 +3160,18 @@ const Bo = O(
3161
3160
  handleInputFocus: this.handleInputFocus.bind(this),
3162
3161
  placeholder: this.placeholder
3163
3162
  }),
3164
- On({
3163
+ zn({
3165
3164
  handleTimeSelect: this.handleTimeSelect.bind(this)
3166
3165
  })
3167
3166
  ]
3168
3167
  );
3169
3168
  }
3170
3169
  }
3171
- ), Nn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3170
+ ), On = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3172
3171
  x({ size: "lg" }, e)
3173
- ]), Fn = ({ title: e }) => X({ class: "flex flex-auto items-center" }, [
3174
- J({ class: "text-lg font-semibold" }, e)
3175
- ]), zo = r((e, t) => xt(
3172
+ ]), Nn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
3173
+ X({ class: "text-lg font-semibold" }, e)
3174
+ ]), Bo = r((e, t) => bt(
3176
3175
  {
3177
3176
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3178
3177
  rounded-lg flex flex-auto flex-col
@@ -3185,21 +3184,21 @@ const Bo = O(
3185
3184
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3186
3185
  // Icon and content
3187
3186
  // @ts-ignore
3188
- e.icon && Nn(e.icon, e.iconColor),
3187
+ e.icon && On(e.icon, e.iconColor),
3189
3188
  o({ class: "flex flex-auto flex-col gap-4" }, [
3190
3189
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3191
- Fn(e),
3190
+ Nn(e),
3192
3191
  // @ts-ignore
3193
3192
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3194
3193
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3195
3194
  ]),
3196
3195
  // @ts-ignore
3197
- e.buttons && ge({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3196
+ e.buttons && me({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3198
3197
  ])
3199
3198
  ])
3200
3199
  ]
3201
- )), Oo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3202
- nt({ class: "flex flex-auto flex-col" }, [
3200
+ )), zo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3201
+ st({ class: "flex flex-auto flex-col" }, [
3203
3202
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3204
3203
  o({ class: "flex flex-auto items-center justify-center" }, [
3205
3204
  // @ts-ignore
@@ -3208,9 +3207,9 @@ const Bo = O(
3208
3207
  x({ size: "lg" }, e.icon)
3209
3208
  ])
3210
3209
  ]),
3211
- X({ class: "py-4 text-center" }, [
3210
+ Z({ class: "py-4 text-center" }, [
3212
3211
  // @ts-ignore
3213
- J({ class: "text-xl font-bold" }, e.title),
3212
+ X({ class: "text-xl font-bold" }, e.title),
3214
3213
  // @ts-ignore
3215
3214
  k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
3216
3215
  ...t
@@ -3229,12 +3228,12 @@ r(({ value: e, label: t }) => v({
3229
3228
  dataSet: ["performance", ["state", e, "active"]],
3230
3229
  click: (s, { state: n }) => n.performance = e
3231
3230
  }, t));
3232
- const Ln = (e, t) => {
3231
+ const Fn = (e, t) => {
3233
3232
  const s = e.toggleAllSelectedRows();
3234
3233
  t.state.checked = !s;
3235
- }, An = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3236
- V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
3237
- ]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3234
+ }, Ln = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3235
+ W((t) => new Wt({ class: "mr-2", onChange: (s, n) => Fn(t, n) }))
3236
+ ]), An = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3238
3237
  const i = e || "justify-start";
3239
3238
  return Qe({
3240
3239
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
@@ -3242,15 +3241,15 @@ const Ln = (e, t) => {
3242
3241
  }, [
3243
3242
  o({ class: `flex flex-auto w-full items-center ${i}` }, [
3244
3243
  u(n),
3245
- t && j({ class: "ml-2", html: h.arrows.upDown })
3244
+ t && E({ class: "ml-2", html: h.arrows.upDown })
3246
3245
  ])
3247
3246
  ]);
3248
- }, Se = (e) => pt([
3249
- yt({
3247
+ }, Se = (e) => xt([
3248
+ pt({
3250
3249
  class: "text-muted-foreground border-b",
3251
3250
  map: [
3252
3251
  e.headers,
3253
- (t) => t.label === "checkbox" ? An({ toggle: e.toggle }) : Rn({
3252
+ (t) => t.label === "checkbox" ? Ln({ toggle: e.toggle }) : An({
3254
3253
  align: t.align,
3255
3254
  sortable: t.sortable,
3256
3255
  key: t.key,
@@ -3259,7 +3258,7 @@ const Ln = (e, t) => {
3259
3258
  })
3260
3259
  ]
3261
3260
  })
3262
- ]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new St({
3261
+ ]), Rn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new Ct({
3263
3262
  cache: "list",
3264
3263
  key: e,
3265
3264
  items: t,
@@ -3269,7 +3268,7 @@ const Ln = (e, t) => {
3269
3268
  skeleton: l,
3270
3269
  columnCount: i
3271
3270
  });
3272
- class lt extends S {
3271
+ class ot extends S {
3273
3272
  /**
3274
3273
  * Initializes component data.
3275
3274
  *
@@ -3277,7 +3276,7 @@ class lt extends S {
3277
3276
  */
3278
3277
  setData() {
3279
3278
  let t = this.rows && this.rows.length > 0;
3280
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new z({
3279
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new O({
3281
3280
  selectedRows: [],
3282
3281
  // @ts-ignore
3283
3282
  hasItems: t,
@@ -3348,14 +3347,14 @@ class lt extends S {
3348
3347
  render() {
3349
3348
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3350
3349
  return o({ class: "w-full flex flex-auto flex-col" }, [
3351
- Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3350
+ J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3352
3351
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3353
- ye({ class: "w-full" }, [
3352
+ we({ class: "w-full" }, [
3354
3353
  // @ts-ignore
3355
3354
  this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3356
3355
  // @ts-ignore
3357
3356
  this.customHeader ?? null,
3358
- jn({
3357
+ Rn({
3359
3358
  // @ts-ignore
3360
3359
  key: this.key,
3361
3360
  // @ts-ignore
@@ -3434,7 +3433,7 @@ class lt extends S {
3434
3433
  this.data.selectedRows = [];
3435
3434
  }
3436
3435
  }
3437
- const En = (e) => new $t({
3436
+ const jn = (e) => new St({
3438
3437
  cache: "list",
3439
3438
  loadMoreItems: e.loadMoreItems,
3440
3439
  offset: e.offset,
@@ -3447,7 +3446,7 @@ const En = (e) => new $t({
3447
3446
  skeleton: e.skeleton,
3448
3447
  columnCount: e.columnCount
3449
3448
  });
3450
- class Hn extends lt {
3449
+ class En extends ot {
3451
3450
  /**
3452
3451
  * Renders the DataTable component.
3453
3452
  *
@@ -3456,14 +3455,14 @@ class Hn extends lt {
3456
3455
  render() {
3457
3456
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3458
3457
  return o({ class: "w-full flex flex-auto flex-col" }, [
3459
- Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3458
+ J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3460
3459
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3461
- ye({ class: "w-full" }, [
3460
+ we({ class: "w-full" }, [
3462
3461
  // @ts-ignore
3463
3462
  this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3464
3463
  // @ts-ignore
3465
3464
  this.customHeader ?? null,
3466
- En({
3465
+ jn({
3467
3466
  // @ts-ignore
3468
3467
  loadMoreItems: this.loadMoreItems,
3469
3468
  // @ts-ignore
@@ -3499,7 +3498,7 @@ class Hn extends lt {
3499
3498
  this.list.refresh();
3500
3499
  }
3501
3500
  }
3502
- const No = r((e) => new Hn(
3501
+ const Oo = r((e) => new En(
3503
3502
  {
3504
3503
  // @ts-ignore
3505
3504
  cache: e.cache ?? "list",
@@ -3530,7 +3529,7 @@ const No = r((e) => new Hn(
3530
3529
  // @ts-ignore
3531
3530
  skeleton: e.skeleton
3532
3531
  }
3533
- )), Un = (e) => new Dt({
3532
+ )), Hn = (e) => new $t({
3534
3533
  cache: "list",
3535
3534
  scrollContainer: e.scrollContainer,
3536
3535
  loadMoreItems: e.loadMoreItems,
@@ -3544,7 +3543,7 @@ const No = r((e) => new Hn(
3544
3543
  skeleton: e.skeleton,
3545
3544
  columnCount: e.columnCount
3546
3545
  });
3547
- class Yn extends lt {
3546
+ class _n extends ot {
3548
3547
  /**
3549
3548
  * Renders the DataTable component.
3550
3549
  *
@@ -3553,14 +3552,14 @@ class Yn extends lt {
3553
3552
  render() {
3554
3553
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3555
3554
  return o({ class: "w-full flex flex-auto flex-col" }, [
3556
- Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3555
+ J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3557
3556
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3558
- ye({ class: "w-full" }, [
3557
+ we({ class: "w-full" }, [
3559
3558
  // @ts-ignore
3560
3559
  this.headers && Se({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3561
3560
  // @ts-ignore
3562
3561
  this.customHeader ?? null,
3563
- Un({
3562
+ Hn({
3564
3563
  // @ts-ignore
3565
3564
  scrollContainer: this.scrollContainer,
3566
3565
  // @ts-ignore
@@ -3598,7 +3597,7 @@ class Yn extends lt {
3598
3597
  this.list.refresh();
3599
3598
  }
3600
3599
  }
3601
- const Fo = r((e) => new Yn(
3600
+ const No = r((e) => new _n(
3602
3601
  {
3603
3602
  // @ts-ignore
3604
3603
  cache: e.cache ?? "list",
@@ -3631,28 +3630,28 @@ const Fo = r((e) => new Yn(
3631
3630
  // @ts-ignore
3632
3631
  skeleton: e.skeleton
3633
3632
  }
3634
- )), _n = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3633
+ )), Un = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3635
3634
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3636
3635
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3637
- ])), Vn = () => o({ class: "flex items-center gap-x-1.5" }, [
3636
+ ])), Yn = () => o({ class: "flex items-center gap-x-1.5" }, [
3638
3637
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3639
3638
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3640
3639
  ]),
3641
3640
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3642
- ]), Wn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3641
+ ]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3643
3642
  u("Last seen "),
3644
- wt({ datetime: e }, "3h ago")
3645
- ]), qn = (e, t) => e === "online" ? Vn() : Wn(t), Gn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3643
+ yt({ datetime: e }, "3h ago")
3644
+ ]), Wn = (e, t) => e === "online" ? Yn() : Vn(t), qn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3646
3645
  k({ class: "text-sm leading-6 m-0" }, e),
3647
- qn(s, t)
3648
- ])), Kn = (e) => e.split(" ").map((s) => s[0]).join(""), Qn = r((e) => xe({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3646
+ Wn(s, t)
3647
+ ])), Gn = (e) => e.split(" ").map((s) => s[0]).join(""), Kn = r((e) => pe({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3649
3648
  o({ class: "flex min-w-0 gap-x-4" }, [
3650
3649
  // @ts-ignore
3651
- Os({ src: e.image, alt: e.name, fallbackText: Kn(e.name) }),
3650
+ zs({ src: e.image, alt: e.name, fallbackText: Gn(e.name) }),
3652
3651
  // @ts-ignore
3653
- _n({ name: e.name, email: e.email })
3652
+ Un({ name: e.name, email: e.email })
3654
3653
  ]),
3655
- Gn({
3654
+ qn({
3656
3655
  // @ts-ignore
3657
3656
  role: e.role,
3658
3657
  // @ts-ignore
@@ -3660,16 +3659,16 @@ const Fo = r((e) => new Yn(
3660
3659
  // @ts-ignore
3661
3660
  status: e.status
3662
3661
  })
3663
- ])), Lo = r((e) => new It({
3662
+ ])), Fo = r((e) => new Dt({
3664
3663
  cache: "list",
3665
3664
  key: "name",
3666
3665
  // @ts-ignore
3667
3666
  items: e.users,
3668
3667
  role: "list",
3669
3668
  class: "divide-y divide-border",
3670
- rowItem: Qn
3669
+ rowItem: Kn
3671
3670
  }));
3672
- class Jn extends S {
3671
+ class Qn extends S {
3673
3672
  /**
3674
3673
  * This will declare the props for the compiler.
3675
3674
  *
@@ -3730,14 +3729,14 @@ class Jn extends S {
3730
3729
  });
3731
3730
  }
3732
3731
  }
3733
- const Xn = r(({ options: e, click: t }, s) => ({
3732
+ const Jn = r(({ options: e, click: t }, s) => ({
3734
3733
  tag: "li",
3735
3734
  ...{
3736
3735
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3737
3736
  click: t
3738
3737
  },
3739
3738
  children: s
3740
- })), Zn = (e, t = null, s = !1) => [
3739
+ })), Xn = (e, t = null, s = !1) => [
3741
3740
  t && o({
3742
3741
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3743
3742
  onState: ["selected", {
@@ -3746,7 +3745,7 @@ const Xn = r(({ options: e, click: t }, s) => ({
3746
3745
  }, [
3747
3746
  x({ size: "sm" }, t)
3748
3747
  ]),
3749
- E({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3748
+ H({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3750
3749
  s && u(
3751
3750
  {
3752
3751
  class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
@@ -3764,7 +3763,7 @@ const Xn = r(({ options: e, click: t }, s) => ({
3764
3763
  ]
3765
3764
  )
3766
3765
  ];
3767
- class rt extends S {
3766
+ class lt extends S {
3768
3767
  /**
3769
3768
  * This will declare the props for the compiler.
3770
3769
  *
@@ -3781,7 +3780,7 @@ class rt extends S {
3781
3780
  */
3782
3781
  render() {
3783
3782
  const t = !this.options && this.callBack;
3784
- return Xn(
3783
+ return Jn(
3785
3784
  { options: this.options, click: t },
3786
3785
  [
3787
3786
  this.addLink()
@@ -3795,8 +3794,8 @@ class rt extends S {
3795
3794
  * @protected
3796
3795
  */
3797
3796
  addLink() {
3798
- const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
3799
- return this.href ? new kt(
3797
+ const t = this.options && this.options.length > 0, s = this.content || Xn(String(this.label), this.icon, t);
3798
+ return this.href ? new vt(
3800
3799
  {
3801
3800
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3802
3801
  cache: "link",
@@ -3805,7 +3804,7 @@ class rt extends S {
3805
3804
  exact: this.exact || !1
3806
3805
  },
3807
3806
  s
3808
- ) : new Jn({
3807
+ ) : new Qn({
3809
3808
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3810
3809
  cache: "link",
3811
3810
  checkCallBack: this.checkCallBack
@@ -3823,10 +3822,10 @@ class rt extends S {
3823
3822
  this.link.update(t);
3824
3823
  }
3825
3824
  }
3826
- const ea = r(({ map: e }, t) => Z({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3825
+ const Zn = r(({ map: e }, t) => ee({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3827
3826
  qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3828
3827
  ]));
3829
- class ta extends S {
3828
+ class ea extends S {
3830
3829
  /**
3831
3830
  * This will declare the props for the compiler.
3832
3831
  *
@@ -3842,8 +3841,8 @@ class ta extends S {
3842
3841
  */
3843
3842
  render() {
3844
3843
  const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
3845
- return be({ class: `navigation flex flex-auto flex-col ${s}` }, [
3846
- Z({
3844
+ return xe({ class: `navigation flex flex-auto flex-col ${s}` }, [
3845
+ ee({
3847
3846
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3848
3847
  map: t
3849
3848
  }),
@@ -3875,7 +3874,7 @@ class ta extends S {
3875
3874
  */
3876
3875
  addGroup(t) {
3877
3876
  const s = this.mapOptions(t.options);
3878
- return ea({ map: s }, t.group);
3877
+ return Zn({ map: s }, t.group);
3879
3878
  }
3880
3879
  /**
3881
3880
  * This will add a link.
@@ -3884,10 +3883,10 @@ class ta extends S {
3884
3883
  * @returns {object}
3885
3884
  */
3886
3885
  addLink(t) {
3887
- return new rt(t);
3886
+ return new lt(t);
3888
3887
  }
3889
3888
  }
3890
- class it extends ta {
3889
+ class rt extends ea {
3891
3890
  onCreated() {
3892
3891
  this.links = [];
3893
3892
  }
@@ -3898,7 +3897,7 @@ class it extends ta {
3898
3897
  * @returns {object}
3899
3898
  */
3900
3899
  setupSubNav(t) {
3901
- return new aa(
3900
+ return new na(
3902
3901
  {
3903
3902
  parentLink: t,
3904
3903
  options: t.options
@@ -3922,7 +3921,7 @@ class it extends ta {
3922
3921
  * @returns {object}
3923
3922
  */
3924
3923
  addLink(t) {
3925
- const s = new rt(t);
3924
+ const s = new lt(t);
3926
3925
  if (this.links.push(s), !s.options)
3927
3926
  return s;
3928
3927
  const n = this.addSubNav(s);
@@ -3933,11 +3932,11 @@ class it extends ta {
3933
3932
  };
3934
3933
  }
3935
3934
  }
3936
- const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
3935
+ const ta = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), sa = (e, t) => {
3937
3936
  const s = e.link.panel.pathname;
3938
- return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
3937
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : ta(s, t);
3939
3938
  };
3940
- class aa extends it {
3939
+ class na extends rt {
3941
3940
  /**
3942
3941
  * This will declare the props for the compiler.
3943
3942
  *
@@ -3953,8 +3952,8 @@ class aa extends it {
3953
3952
  */
3954
3953
  render() {
3955
3954
  const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
3956
- return be({ class: t, onState: this.onState() }, [
3957
- Z({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3955
+ return xe({ class: t, onState: this.onState() }, [
3956
+ ee({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3958
3957
  ]);
3959
3958
  }
3960
3959
  /**
@@ -3966,7 +3965,7 @@ class aa extends it {
3966
3965
  addWatcher() {
3967
3966
  return {
3968
3967
  watch: {
3969
- value: ["[[path]]", De.data],
3968
+ value: ["[[path]]", oe.data],
3970
3969
  callBack: this.updateLinks.bind(this)
3971
3970
  }
3972
3971
  };
@@ -4007,7 +4006,7 @@ class aa extends it {
4007
4006
  * @returns {void}
4008
4007
  */
4009
4008
  afterSetup() {
4010
- const t = De.data.path;
4009
+ const t = oe.data.path;
4011
4010
  this.updateLinks(t);
4012
4011
  }
4013
4012
  /**
@@ -4019,27 +4018,27 @@ class aa extends it {
4019
4018
  updateLinks(t) {
4020
4019
  let s = !1;
4021
4020
  for (const n of this.links)
4022
- if (n.rendered && (s = na(n, t), s === !0))
4021
+ if (n.rendered && (s = sa(n, t), s === !0))
4023
4022
  break;
4024
4023
  this.parentLink.update(s);
4025
4024
  }
4026
4025
  }
4027
- const oa = (e) => me({ class: "text-lg ml-2" }, e), la = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4026
+ const aa = (e) => be({ class: "text-lg ml-2" }, e), oa = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4028
4027
  b({
4029
4028
  variant: "icon",
4030
4029
  class: "m-2",
4031
4030
  click: (t, { state: s }) => s.toggle("open"),
4032
4031
  icon: h.arrows.left
4033
4032
  }),
4034
- e.title && oa(e.title)
4035
- ]), ra = () => o({
4033
+ e.title && aa(e.title)
4034
+ ]), la = () => o({
4036
4035
  class: `
4037
4036
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4038
4037
  transition-opacity duration-200
4039
4038
  `,
4040
4039
  click: (e, { state: t }) => t.open = !1
4041
4040
  });
4042
- class ia extends S {
4041
+ class ra extends S {
4043
4042
  /**
4044
4043
  * This will declare the props for the compiler.
4045
4044
  *
@@ -4058,7 +4057,7 @@ class ia extends S {
4058
4057
  class: "fixed inset-0 z-50",
4059
4058
  style: "[[typeClass]]"
4060
4059
  }, [
4061
- ra(),
4060
+ la(),
4062
4061
  // Popover Content
4063
4062
  o({
4064
4063
  class: `
@@ -4067,7 +4066,7 @@ class ia extends S {
4067
4066
  dataSet: ["open", ["expanded", !0, "true"]]
4068
4067
  }, [
4069
4068
  o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4070
- la({ title: this.title }),
4069
+ oa({ title: this.title }),
4071
4070
  o({ class: "flex flex-auto flex-col" }, this.children)
4072
4071
  ])
4073
4072
  ])
@@ -4105,31 +4104,31 @@ class ia extends S {
4105
4104
  this.container = app.root;
4106
4105
  }
4107
4106
  }
4108
- const ct = () => b({ class: "m-2", variant: "ghost", addState() {
4107
+ const it = () => b({ class: "m-2", variant: "ghost", addState() {
4109
4108
  return {
4110
4109
  open: !1
4111
4110
  };
4112
4111
  }, click: (e, { state: t }) => t.toggle("open") }, [
4113
4112
  x({}, h.bar.three)
4114
- ]), ca = (e) => me({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4115
- ct(),
4116
- e.title && ca(e.title)
4117
- ]), dt = (e, t) => {
4113
+ ]), ia = (e) => be({ class: "text-lg ml-2" }, e), ca = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4114
+ it(),
4115
+ e.title && ia(e.title)
4116
+ ]), ct = (e, t) => {
4118
4117
  e.forEach((s) => {
4119
4118
  if (s.options) {
4120
- dt(s.options, t);
4119
+ ct(s.options, t);
4121
4120
  return;
4122
4121
  }
4123
4122
  s.callBack = t;
4124
4123
  });
4125
- }, ut = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4126
- M(
4124
+ }, dt = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4125
+ P(
4127
4126
  "open",
4128
4127
  (t) => t ? [
4129
- new ia({ title: e.title }, [
4130
- V(({ state: s }) => {
4128
+ new ra({ title: e.title }, [
4129
+ W(({ state: s }) => {
4131
4130
  const n = (a) => s.open = !1;
4132
- return dt(e.options, n), new it(
4131
+ return ct(e.options, n), new rt(
4133
4132
  {
4134
4133
  options: e.options
4135
4134
  }
@@ -4138,23 +4137,23 @@ const ct = () => b({ class: "m-2", variant: "ghost", addState() {
4138
4137
  ])
4139
4138
  ] : null
4140
4139
  )
4141
- ]), Ao = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4140
+ ]), Lo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4142
4141
  o([
4143
- ct(),
4144
- ut(e)
4142
+ it(),
4143
+ dt(e)
4145
4144
  ])
4146
- ])), Ro = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4145
+ ])), Ao = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4147
4146
  o({ class: "flex flex-auto flex-col w-full" }, [
4148
- da(e),
4149
- ut(e)
4147
+ ca(e),
4148
+ dt(e)
4150
4149
  ])
4151
- ])), jo = r((e) => {
4150
+ ])), Ro = r((e) => {
4152
4151
  const t = e.margin || "m-4 ml-0";
4153
- return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
4152
+ return o({ class: `flex-none ${t}` }, [
4154
4153
  b({ variant: "back", class: "ghost", ...e })
4155
4154
  ]);
4156
4155
  });
4157
- class ua extends S {
4156
+ class da extends S {
4158
4157
  /**
4159
4158
  * This will declare the props for the compiler.
4160
4159
  *
@@ -4255,7 +4254,7 @@ Xe.addType("dockableOverlay", (e) => {
4255
4254
  const t = e.component;
4256
4255
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4257
4256
  });
4258
- class Eo extends ua {
4257
+ class jo extends da {
4259
4258
  /**
4260
4259
  * This will stop presistence.
4261
4260
  *
@@ -4360,7 +4359,7 @@ class Eo extends ua {
4360
4359
  this.state.docked = this.canDock();
4361
4360
  }
4362
4361
  }
4363
- const ha = r(({ index: e, click: t, state: s }, n) => xe({
4362
+ const ua = r(({ index: e, click: t, state: s }, n) => pe({
4364
4363
  class: "p-2 cursor-pointer hover:bg-muted/50",
4365
4364
  onState: [
4366
4365
  [s, "selectedIndex", {
@@ -4369,11 +4368,11 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4369
4368
  }]
4370
4369
  ],
4371
4370
  click: () => t(e)
4372
- }, n)), fa = r(({ selectOption: e, state: t }) => Z({
4371
+ }, n)), ha = r(({ selectOption: e, state: t }) => ee({
4373
4372
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4374
- for: ["filteredOptions", (s, n) => ha({ index: n, click: e, state: t }, s.label)]
4375
- })), ga = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4376
- N({
4373
+ for: ["filteredOptions", (s, n) => ua({ index: n, click: e, state: t }, s.label)]
4374
+ })), fa = r((e) => o({ class: "relative flex flex-auto items-center" }, [
4375
+ F({
4377
4376
  cache: "input",
4378
4377
  // @ts-ignore
4379
4378
  class: e.class ?? "",
@@ -4397,20 +4396,20 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4397
4396
  // @ts-ignore
4398
4397
  x({ size: "sm" }, e.icon)
4399
4398
  ])
4400
- ])), ma = (e) => o({
4399
+ ])), ga = (e) => o({
4401
4400
  class: "relative flex fle-auto flex-col",
4402
4401
  onState: ["open", (t, s, n) => {
4403
4402
  if (t)
4404
- return new se({
4403
+ return new ne({
4405
4404
  cache: "dropdown",
4406
4405
  parent: n,
4407
4406
  button: n.input,
4408
4407
  size: "xl"
4409
4408
  }, [
4410
- fa(e)
4409
+ ha(e)
4411
4410
  ]);
4412
4411
  }]
4413
- }), Ho = P(
4412
+ }), Eo = M(
4414
4413
  {
4415
4414
  /**
4416
4415
  * This will set up the data object.
@@ -4419,7 +4418,7 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4419
4418
  */
4420
4419
  setData() {
4421
4420
  const e = this.options || [];
4422
- return new z({
4421
+ return new O({
4423
4422
  options: e,
4424
4423
  filteredOptions: e
4425
4424
  });
@@ -4507,7 +4506,7 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4507
4506
  */
4508
4507
  render() {
4509
4508
  return o({ class: "relative w-full max-w-md" }, [
4510
- ga({
4509
+ fa({
4511
4510
  // @ts-ignore
4512
4511
  state: this.state,
4513
4512
  // @ts-ignore
@@ -4519,7 +4518,7 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4519
4518
  // @ts-ignore
4520
4519
  handleKeyDown: this.handleKeyDown.bind(this)
4521
4520
  }),
4522
- ma({
4521
+ ga({
4523
4522
  // @ts-ignore
4524
4523
  state: this.state,
4525
4524
  // @ts-ignore
@@ -4530,7 +4529,7 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4530
4529
  ]);
4531
4530
  }
4532
4531
  }
4533
- ), Uo = r((e) => {
4532
+ ), Ho = r((e) => {
4534
4533
  const t = e.icon ?? h.magnifyingGlass.default;
4535
4534
  return o({
4536
4535
  // @ts-ignore
@@ -4566,7 +4565,7 @@ const ha = r(({ index: e, click: t, state: s }, n) => xe({
4566
4565
  })
4567
4566
  ]);
4568
4567
  });
4569
- class ba extends S {
4568
+ class ma extends S {
4570
4569
  /**
4571
4570
  * This will declare the props for the compiler.
4572
4571
  *
@@ -4584,7 +4583,7 @@ class ba extends S {
4584
4583
  return o({ class: `${this.class || ""}` }, this.children);
4585
4584
  }
4586
4585
  }
4587
- class xa extends ba {
4586
+ class ba extends ma {
4588
4587
  /**
4589
4588
  * This will be called every time the route
4590
4589
  * is activated.
@@ -4594,15 +4593,15 @@ class xa extends ba {
4594
4593
  update(t) {
4595
4594
  }
4596
4595
  }
4597
- const pa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4596
+ const xa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4598
4597
  tag: "section",
4599
4598
  ...e,
4600
4599
  children: t
4601
- })), ya = r(({ title: e, description: t }) => X({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4602
- vt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4600
+ })), pa = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4601
+ wt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4603
4602
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4604
4603
  ]));
4605
- class Yo extends xa {
4604
+ class _o extends ba {
4606
4605
  /**
4607
4606
  * This will declare the props for the compiler.
4608
4607
  *
@@ -4617,141 +4616,141 @@ class Yo extends xa {
4617
4616
  * @returns {object}
4618
4617
  */
4619
4618
  render() {
4620
- return pa([
4621
- ya({
4619
+ return xa([
4620
+ pa({
4622
4621
  title: this.title,
4623
4622
  description: this.description
4624
4623
  }),
4625
- Tt(this.children)
4624
+ It(this.children)
4626
4625
  ]);
4627
4626
  }
4628
4627
  }
4629
4628
  export {
4630
- go as $,
4631
- co as A,
4632
- jo as B,
4633
- ln as C,
4634
- lt as D,
4635
- bo as E,
4636
- zo as F,
4637
- Eo as G,
4638
- Do as H,
4639
- No as I,
4640
- Ua as J,
4641
- Oo as K,
4642
- Oa as L,
4643
- to as M,
4644
- Fa as N,
4645
- te as O,
4646
- Aa as P,
4647
- La as Q,
4648
- Ea as R,
4649
- Na as S,
4650
- ja as T,
4651
- Ra as U,
4652
- nt as V,
4653
- uo as W,
4654
- fo as X,
4655
- ho as Y,
4656
- ws as Z,
4657
- xs as _,
4658
- Os as a,
4659
- Qn as a$,
4660
- Ht as a0,
4661
- ms as a1,
4662
- bs as a2,
4663
- ps as a3,
4664
- A as a4,
4665
- Yo as a5,
4666
- Rn as a6,
4667
- Za as a7,
4668
- de as a8,
4669
- rs as a9,
4670
- la as aA,
4671
- oo as aB,
4672
- _a as aC,
4673
- Sn as aD,
4674
- so as aE,
4675
- lo as aF,
4676
- ro as aG,
4677
- Fo as aH,
4678
- Ho as aI,
4679
- ga as aJ,
4680
- no as aK,
4681
- Uo as aL,
4682
- xo as aM,
4683
- aa as aN,
4629
+ fo as $,
4630
+ io as A,
4631
+ Ro as B,
4632
+ on as C,
4633
+ ot as D,
4634
+ mo as E,
4635
+ Bo as F,
4636
+ jo as G,
4637
+ $o as H,
4638
+ Oo as I,
4639
+ Ha as J,
4640
+ zo as K,
4641
+ za as L,
4642
+ eo as M,
4643
+ Na as N,
4644
+ se as O,
4645
+ La as P,
4646
+ Fa as Q,
4647
+ ja as R,
4648
+ Oa as S,
4649
+ Ra as T,
4650
+ Aa as U,
4651
+ st as V,
4652
+ co as W,
4653
+ ho as X,
4654
+ uo as Y,
4655
+ ys as Z,
4656
+ bs as _,
4657
+ zs as a,
4658
+ Kn as a$,
4659
+ Et as a0,
4660
+ gs as a1,
4661
+ ms as a2,
4662
+ xs as a3,
4663
+ R as a4,
4664
+ _o as a5,
4665
+ An as a6,
4666
+ Xa as a7,
4667
+ ue as a8,
4668
+ ls as a9,
4669
+ oa as aA,
4670
+ ao as aB,
4671
+ Ua as aC,
4672
+ Cn as aD,
4673
+ to as aE,
4674
+ oo as aF,
4675
+ lo as aG,
4676
+ No as aH,
4677
+ Eo as aI,
4678
+ fa as aJ,
4679
+ so as aK,
4680
+ Ho as aL,
4681
+ bo as aM,
4682
+ na as aN,
4684
4683
  Se as aO,
4685
- Ha as aP,
4686
- Ya as aQ,
4687
- vo as aR,
4688
- Wa as aS,
4689
- Bo as aT,
4690
- da as aU,
4691
- ko as aV,
4692
- Ma as aW,
4693
- io as aX,
4684
+ Ea as aP,
4685
+ _a as aQ,
4686
+ wo as aR,
4687
+ Va as aS,
4688
+ Mo as aT,
4689
+ ca as aU,
4690
+ vo as aV,
4691
+ Ta as aW,
4692
+ ro as aX,
4694
4693
  x as aY,
4695
- Xa as aZ,
4696
- Lo as a_,
4697
- Co as aa,
4698
- it as ab,
4699
- N as ac,
4700
- Et as ad,
4701
- za as ae,
4702
- So as af,
4703
- rt as ag,
4704
- pa as ah,
4694
+ Ja as aZ,
4695
+ Fo as a_,
4696
+ ko as aa,
4697
+ rt as ab,
4698
+ F as ac,
4699
+ jt as ad,
4700
+ Ba as ae,
4701
+ Co as af,
4702
+ lt as ag,
4703
+ xa as ah,
4705
4704
  Pe as ai,
4706
- _s as aj,
4707
- Ao as ak,
4708
- Ro as al,
4709
- an as am,
4710
- Ga as an,
4711
- ct as ao,
4712
- Jn as ap,
4713
- ta as aq,
4714
- ea as ar,
4715
- ia as as,
4716
- wo as at,
4717
- Qa as au,
4718
- ua as av,
4719
- ba as aw,
4720
- Ja as ax,
4721
- Vs as ay,
4722
- se as az,
4723
- ra as b,
4705
+ Us as aj,
4706
+ Lo as ak,
4707
+ Ao as al,
4708
+ nn as am,
4709
+ qa as an,
4710
+ it as ao,
4711
+ Qn as ap,
4712
+ ea as aq,
4713
+ Zn as ar,
4714
+ ra as as,
4715
+ yo as at,
4716
+ Ka as au,
4717
+ da as av,
4718
+ ma as aw,
4719
+ Qa as ax,
4720
+ Ys as ay,
4721
+ ne as az,
4722
+ la as b,
4724
4723
  Ze as b0,
4725
- O as b1,
4726
- Ka as b2,
4727
- Gs as b3,
4728
- gs as b4,
4729
- Ia as b5,
4730
- Da as b6,
4731
- B as b7,
4732
- yo as b8,
4733
- Ta as c,
4734
- xa as d,
4735
- $o as e,
4724
+ N as b1,
4725
+ Ga as b2,
4726
+ qs as b3,
4727
+ fs as b4,
4728
+ Da as b5,
4729
+ $a as b6,
4730
+ z as b7,
4731
+ po as b8,
4732
+ Ia as c,
4733
+ ba as d,
4734
+ So as e,
4736
4735
  b as f,
4737
- en as g,
4738
- jt as h,
4739
- qt as i,
4740
- An as j,
4741
- Ba as k,
4742
- ao as l,
4736
+ Zs as g,
4737
+ Rt as h,
4738
+ Wt as i,
4739
+ Ln as j,
4740
+ Ma as k,
4741
+ no as l,
4743
4742
  Pa as m,
4744
- eo as n,
4745
- po as o,
4746
- Io as p,
4747
- Ws as q,
4748
- To as r,
4749
- jn as s,
4750
- Va as t,
4751
- Mo as u,
4743
+ Za as n,
4744
+ xo as o,
4745
+ Do as p,
4746
+ Vs as q,
4747
+ Io as r,
4748
+ Rn as s,
4749
+ Ya as t,
4750
+ To as u,
4752
4751
  Po as v,
4753
- qa as w,
4754
- re as x,
4755
- sn as y,
4756
- mo as z
4752
+ Wa as w,
4753
+ ie as x,
4754
+ tn as y,
4755
+ go as z
4757
4756
  };