@base-framework/ui 1.2.54 → 1.2.55

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 U, Span as f, Button as v, OnState as M, Div as o, Legend as gt, Fieldset as mt, H4 as Ke, P as k, Label as Y, Checkbox as me, Input as p, Textarea as Qe, UseParent as q, Img as be, H5 as bt, H2 as Z, Form as xt, Header as ee, Footer as xe, A as Je, H3 as pe, Nav as ye, Ul as te, Li as we, OnStateOpen as ve, On as J, Dialog as pt, Th as Xe, Thead as yt, Tr as wt, Table as ke, Time as vt, H1 as kt } from "@base-framework/atoms";
2
- import { Atom as i, router as X, Jot as B, Component as S, Html as Ze, Data as N, Events as H, DateTime as se, NavLink as Ct, DataTracker as et } from "@base-framework/base";
1
+ import { I as U, Span as f, Button as v, OnState as M, Div as l, Legend as mt, Fieldset as bt, H4 as Ke, P as k, Label as Y, Checkbox as me, Input as p, Textarea as Qe, UseParent as G, Img as be, H5 as xt, H2 as Z, Form as pt, Header as ee, Footer as xe, A as Je, H3 as pe, Nav as ye, Ul as te, Li as we, OnStateOpen as ve, On as X, Dialog as yt, Th as Xe, Thead as wt, Tr as vt, Table as ke, Time as kt, H1 as Ct } from "@base-framework/atoms";
2
+ import { Atom as i, router as q, Jot as B, Component as S, Html as Ze, Data as N, Events as H, DateTime as se, NavLink as St, DataTracker as et } from "@base-framework/base";
3
3
  import { Icons as g } from "./icons.es.js";
4
- import { Timer as St, TableBody as $t, DataTableBody as Dt, ScrollableTableBody as It, List as Tt } from "@base-framework/organisms";
5
- import { F as V } from "./format-DE4rFWuD.js";
6
- import { F as Pt } from "./bside-template-C7AQgQ6H.js";
7
- const Mt = {
4
+ import { Timer as $t, TableBody as Dt, DataTableBody as It, ScrollableTableBody as Tt, List as Pt } from "@base-framework/organisms";
5
+ import { F as W } from "./format-DE4rFWuD.js";
6
+ import { F as Mt } from "./bside-template-C7AQgQ6H.js";
7
+ const Bt = {
8
8
  xs: "w-4 h-4",
9
9
  sm: "w-6 h-6",
10
10
  md: "w-8 h-8",
@@ -12,8 +12,8 @@ const Mt = {
12
12
  xl: "w-12 h-12",
13
13
  "2xl": "w-14 h-14",
14
14
  "3xl": "w-16 h-16"
15
- }, fe = i((e, t) => {
16
- const s = Mt[e.size || "sm"];
15
+ }, ge = i((e, t) => {
16
+ const s = Bt[e.size || "sm"];
17
17
  return U({
18
18
  ...e,
19
19
  // @ts-ignore
@@ -49,11 +49,11 @@ const Mt = {
49
49
  rounded: "material-symbols-rounded",
50
50
  sharp: "material-symbols-sharp"
51
51
  }, Be = i((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = Te[t] || Te.sm, a = Pe[t] || Pe.sm, l = Me[s] || Me.outlined;
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = Te[t] || Te.sm, a = Pe[t] || Pe.sm, o = Me[s] || Me.outlined;
53
53
  return f({
54
54
  ...e,
55
55
  // @ts-ignore
56
- class: `inline-flex items-center justify-center ${l} ${n} ${e.class || ""}`,
56
+ class: `inline-flex items-center justify-center ${o} ${n} ${e.class || ""}`,
57
57
  // @ts-ignore
58
58
  style: `font-size: ${a}; ${e.style || ""}`,
59
59
  // Remove props that shouldn't be passed to the DOM element
@@ -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") ? fe(e, t) : typeof t == "object" && t.name ? Be({
65
+ }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ge(e, t) : typeof t == "object" && t.name ? Be({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
69
  }) : typeof t == "string" ? Be({
70
70
  ...e,
71
71
  name: t
72
- }) : fe(e, t) : null, Ta = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Pa = (e) => typeof e == "string" && e.includes("<svg"), ze = {
72
+ }) : ge(e, t) : null, Ta = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Pa = (e) => typeof e == "string" && e.includes("<svg"), ze = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,30 +150,30 @@ const Mt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Bt = (e) => ze[e] || ze.gray, zt = (e, t = {}) => {
154
- const s = Bt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
155
- return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
153
+ }, zt = (e) => ze[e] || ze.gray, Ot = (e, t = {}) => {
154
+ const s = zt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, o = t.ringColor ?? s.ringColor;
155
+ return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${o}`;
156
156
  }, Ma = i((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: r, ringColor: c, ...u } = e, h = zt(s, { backgroundColor: l, textColor: r, ringColor: c });
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: o, textColor: r, ringColor: c, ...u } = e, h = Ot(s, { backgroundColor: o, textColor: r, ringColor: c });
158
158
  return f({ ...u, class: h }, [
159
159
  n ? x({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
161
161
  ]);
162
162
  });
163
163
  let z = globalThis.history?.state?._pos ?? 0;
164
- const ge = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), Ot = (e, t) => {
164
+ const le = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), tt = (e, t) => {
165
165
  if (!t) return !1;
166
- const s = le(e), n = le(t);
166
+ const s = re(e), n = re(t);
167
167
  return s === n || s.startsWith(n + "/");
168
168
  }, Nt = (e, t) => {
169
- const s = le(e);
169
+ const s = re(e);
170
170
  if (!t) return s;
171
- const n = le(t);
171
+ const n = re(t);
172
172
  if (!s.startsWith(n)) return s;
173
173
  const a = s.substring(n.length);
174
174
  if (!a || a === "/") return s;
175
- const l = a.startsWith("/") ? a.substring(1) : a, r = l.indexOf("/");
176
- return r < 0 ? s : n + "/" + l.substring(0, r);
175
+ const o = a.startsWith("/") ? a.substring(1) : a, r = o.indexOf("/");
176
+ return r < 0 ? s : n + "/" + o.substring(0, r);
177
177
  }, Ft = () => {
178
178
  try {
179
179
  return /** @type {any} */ globalThis.performance?.getEntriesByType?.("navigation")?.[0]?.type === "reload";
@@ -185,10 +185,10 @@ if (typeof globalThis.history?.pushState == "function") {
185
185
  const e = globalThis.history.pushState, t = globalThis.history.replaceState;
186
186
  globalThis.history.pushState = function(s, n, a) {
187
187
  z++;
188
- const l = s !== null && typeof s == "object" ? { ...s, _pos: z } : { _pos: z };
189
- return e.call(this, l, n, a);
188
+ const o = s !== null && typeof s == "object" ? { ...s, _pos: z } : { _pos: z };
189
+ return e.call(this, o, n, a);
190
190
  }, globalThis.history.replaceState = function(s, n, a) {
191
- const l = globalThis.history.state?._pos ?? z, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
191
+ const o = globalThis.history.state?._pos ?? z, r = s !== null && typeof s == "object" ? { ...s, _pos: o } : { _pos: o };
192
192
  return t.call(this, r, n, a);
193
193
  }, globalThis.addEventListener("popstate", (s) => {
194
194
  const n = (
@@ -216,31 +216,36 @@ const Oe = (e) => {
216
216
  } catch {
217
217
  }
218
218
  }, Lt = (e) => {
219
- const t = globalThis.history?.state || {}, s = X.path || "", n = Nt(s, e), l = typeof t._entryKey == "string" && t._entryKey ? t._entryKey : `${e || ""}|${n}|${z}`, r = ge.get(l);
220
- if (r && Ot(s, r.basePath))
219
+ const t = globalThis.history?.state || {}, s = q.path || "", n = Nt(s, e), o = typeof t._entryKey == "string" && t._entryKey ? t._entryKey : `${e || ""}|${n}|${z}`, r = le.get(o);
220
+ if (r && tt(s, r.basePath))
221
221
  return Oe(r), r;
222
- const c = t._entryPos, u = t._entrySourcePath, h = t._entryBasePath, y = typeof c == "number" ? c : z, R = typeof u == "string" || u === null ? u : X.lastPath || null, P = {
223
- key: l,
222
+ const c = t._entryPos, u = t._entrySourcePath, h = t._entryBasePath, y = typeof c == "number" ? c : z, R = typeof u == "string" || u === null ? u : q.lastPath || null, P = {
223
+ key: o,
224
224
  pos: y,
225
225
  sourcePath: R,
226
226
  basePath: typeof h == "string" && h ? h : n
227
227
  };
228
- return Oe(P), ge.set(l, P), P;
228
+ return Oe(P), le.set(o, P), P;
229
229
  }, Rt = (e) => {
230
- ge.delete(e || "");
230
+ const t = globalThis.history?.state?._entryKey;
231
+ typeof t == "string" && t && le.delete(t), e && le.delete(e);
231
232
  }, At = (e) => {
232
233
  const t = Ft(), s = Lt(e.backUrl);
233
234
  return () => {
234
235
  Rt(e.backUrl);
235
- const n = z - s.pos + 1;
236
+ const n = z - s.pos + 1, a = s.sourcePath, o = typeof a == "string" && a.length > 0 && !tt(a, s.basePath);
236
237
  if (!t && s.pos > 0) {
237
238
  globalThis.history.go(-n);
238
239
  return;
239
240
  }
240
- e.backUrl && X.navigate(e.backUrl);
241
+ if (o) {
242
+ q.navigate(a);
243
+ return;
244
+ }
245
+ e.backUrl && q.navigate(e.backUrl);
241
246
  };
242
247
  };
243
- class tt extends S {
248
+ class st extends S {
244
249
  /**
245
250
  * This will set the component context.
246
251
  *
@@ -256,9 +261,9 @@ class tt extends S {
256
261
  }
257
262
  const F = (e) => (
258
263
  /** @type {VeilComponentConstructor} */
259
- B(e, tt)
264
+ B(e, st)
260
265
  );
261
- class Ba extends tt {
266
+ class Ba extends st {
262
267
  /**
263
268
  * Declare public props and their defaults.
264
269
  */
@@ -292,10 +297,10 @@ class Ba extends tt {
292
297
  const t = this.size, s = this.icon, n = this.activeIcon || this.icon, a = (() => {
293
298
  if (this.dataKey) {
294
299
  let r = `[[${this.dataKey}]]`;
295
- return this.formatType === "number" ? r = V.number(r, "0") : this.formatType === "money" ? r = V.roundMoney(r) : this.formatType === "date" ? r = V.date(r) : this.formatType === "percent" && (r = V.percentage(r)), f({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
300
+ return this.formatType === "number" ? r = W.number(r, "0") : this.formatType === "money" ? r = W.roundMoney(r) : this.formatType === "date" ? r = W.date(r) : this.formatType === "percent" && (r = W.percentage(r)), f({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
296
301
  }
297
302
  return this.value !== null && this.value !== void 0 ? f({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
298
- })(), l = this.fill;
303
+ })(), o = this.fill;
299
304
  return v({
300
305
  click: () => this.handleToggle(),
301
306
  // @ts-ignore
@@ -303,13 +308,13 @@ class Ba extends tt {
303
308
  }, [
304
309
  M(
305
310
  "active",
306
- (r) => x({ size: t, variant: r && l ? "filled" : "outlined" }, r ? n : s)
311
+ (r) => x({ size: t, variant: r && o ? "filled" : "outlined" }, r ? n : s)
307
312
  ),
308
313
  a
309
314
  ]);
310
315
  }
311
316
  }
312
- const re = {
317
+ const ie = {
313
318
  xs: "w-6 h-6",
314
319
  sm: "w-8 h-8",
315
320
  md: "w-10 h-10",
@@ -348,11 +353,11 @@ class za extends S {
348
353
  * @returns {object}
349
354
  */
350
355
  render() {
351
- const t = this.icon, s = this.activeIcon || this.icon, n = re[this.size] || re.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, u = this.circle ?? !1, h = this.fill;
356
+ const t = this.icon, s = this.activeIcon || this.icon, n = ie[this.size] || ie.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", o = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, u = this.circle ?? !1, h = this.fill;
352
357
  return v({
353
358
  click: () => this.handleToggle(),
354
359
  // @ts-ignore
355
- 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}${u ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
360
+ class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${o}${u ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
356
361
  }, [
357
362
  M("active", (y) => [
358
363
  x({
@@ -365,7 +370,7 @@ class za extends S {
365
370
  }
366
371
  }
367
372
  const Oa = i((e, t) => {
368
- const s = e.size || "md", n = re[s] || re.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
373
+ const s = e.size || "md", n = ie[s] || ie.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
369
374
  return v({
370
375
  ...e,
371
376
  // @ts-ignore
@@ -380,7 +385,7 @@ const Oa = i((e, t) => {
380
385
  ...t,
381
386
  // @ts-ignore
382
387
  class: `bttn ${e.class} ${t.class || ""}`
383
- }, s)), st = i(
388
+ }, s)), nt = i(
384
389
  (e, t) => v({
385
390
  ...e,
386
391
  // @ts-ignore
@@ -392,12 +397,12 @@ const Oa = i((e, t) => {
392
397
  // @ts-ignore
393
398
  e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
394
399
  ])
395
- ), Ne = (e) => i((t, s) => st({
400
+ ), Ne = (e) => i((t, s) => nt({
396
401
  ...e,
397
402
  ...t,
398
403
  // @ts-ignore
399
404
  class: `bttn ${e.class} ${t.class || ""}`
400
- }, s)), jt = (e) => i((t, s) => (t.icon = t.icon || g.arrows.left, t.click = t.click || At(t), st({
405
+ }, s)), jt = (e) => i((t, s) => (t.icon = t.icon || g.arrows.left, t.click = t.click || At(t), nt({
401
406
  ...e,
402
407
  ...t
403
408
  }, s))), Et = i((e, t) => {
@@ -431,35 +436,35 @@ const Oa = i((e, t) => {
431
436
  circleIcon: Et
432
437
  }, b = i((e, t) => (Fe[e.variant] || Fe.primary)(e, t)), Na = i((e, t) => b({ ...e, variant: "withIcon", icon: g.loading, animation: "animate-spin" }, t)), _t = i((e, t) => {
433
438
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
434
- return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
439
+ return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), l({
435
440
  ...e,
436
441
  // @ts-ignore
437
442
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
438
443
  }, t);
439
- }), Ht = i((e, t) => gt({
444
+ }), Ht = i((e, t) => mt({
440
445
  ...e,
441
446
  // @ts-ignore
442
447
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
443
448
  }, t)), Fa = i((e, t) => {
444
449
  const s = e.border === "full" ? "border rounded-md" : "border-t";
445
- return mt({
450
+ return bt({
446
451
  ...e,
447
452
  // @ts-ignore
448
453
  class: `p-6 ${s} ${e.class || ""}`
449
454
  }, [
450
455
  // @ts-ignore
451
456
  e.legend && Ht(e.legend),
452
- o({ class: "flex flex-auto flex-col gap-y-6" }, t)
457
+ l({ class: "flex flex-auto flex-col gap-y-6" }, t)
453
458
  ]);
454
459
  }), Ut = i((e, t) => {
455
460
  const s = e.border === !0 ? "border-t" : "";
456
- return o({
461
+ return l({
457
462
  ...e,
458
463
  // @ts-ignore
459
464
  class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr_2fr] sm:gap-x-6 pt-8 ${s} ${e.class || ""}`
460
465
  }, [
461
466
  // @ts-ignore
462
- e.label && o({
467
+ e.label && l({
463
468
  // @ts-ignore
464
469
  ...e.labelProps,
465
470
  // @ts-ignore
@@ -471,9 +476,9 @@ const Oa = i((e, t) => {
471
476
  e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
472
477
  ]),
473
478
  // Controls container: grows to fill remaining space, spacing between items
474
- o({ class: "flex flex-col gap-y-4" }, t)
479
+ l({ class: "flex flex-col gap-y-4" }, t)
475
480
  ]);
476
- }), Yt = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", W = "placeholder:text-muted-foreground", Ce = `${Yt} ${D} ${$} ${W} ${C}`, Wt = ({ id: e, checked: t, bind: s, required: n }) => me({
481
+ }), Yt = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", V = "placeholder:text-muted-foreground", Ce = `${Yt} ${D} ${$} ${V} ${C}`, Vt = ({ id: e, checked: t, bind: s, required: n }) => me({
477
482
  id: e,
478
483
  cache: "checkbox",
479
484
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -483,7 +488,7 @@ const Oa = i((e, t) => {
483
488
  required: n,
484
489
  checked: t,
485
490
  bind: s
486
- }), Vt = () => f({ class: "absolute text-xs pointer-events-none" }, [
491
+ }), Wt = () => f({ class: "absolute text-xs pointer-events-none" }, [
487
492
  M(
488
493
  "checked",
489
494
  (e) => e ? U({
@@ -491,7 +496,7 @@ const Oa = i((e, t) => {
491
496
  html: g.check
492
497
  }) : null
493
498
  )
494
- ]), qt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
499
+ ]), qt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => l({
495
500
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
496
501
  rounded-md border
497
502
  ${$}
@@ -511,8 +516,8 @@ const Oa = i((e, t) => {
511
516
  tabIndex: 0,
512
517
  click: a
513
518
  }, [
514
- Wt({ bind: t, checked: s, id: e, required: n }),
515
- Vt()
519
+ Vt({ bind: t, checked: s, id: e, required: n }),
520
+ Wt()
516
521
  ]), Gt = ({ id: e, label: t, clickHandler: s }) => Y({
517
522
  class: "text-base cursor-pointer",
518
523
  htmlFor: e,
@@ -555,7 +560,7 @@ const Oa = i((e, t) => {
555
560
  */
556
561
  render() {
557
562
  const e = this.getId(), t = (s) => this.clickHandler(s);
558
- return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
563
+ return l({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
559
564
  qt({
560
565
  id: e,
561
566
  // @ts-ignore
@@ -634,7 +639,7 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
634
639
  html: g.chevron.single.down
635
640
  }), ne = i((e) => {
636
641
  const t = Se(e);
637
- return o({ class: "relative" }, [
642
+ return l({ class: "relative" }, [
638
643
  p({
639
644
  ...e,
640
645
  id: t,
@@ -680,7 +685,7 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
680
685
  })
681
686
  ), _a = i((e) => {
682
687
  const t = Se(e);
683
- return o({ class: "relative" }, [
688
+ return l({ class: "relative" }, [
684
689
  Qe({
685
690
  ...e,
686
691
  id: t,
@@ -691,14 +696,14 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
691
696
  ]);
692
697
  }), Ha = i((e) => {
693
698
  const t = Se(e), { options: s, onCreated: n, ...a } = e;
694
- return o({ class: "relative" }, [
699
+ return l({ class: "relative" }, [
695
700
  {
696
701
  tag: "select",
697
702
  ...a,
698
703
  id: t,
699
704
  class: `[&>option]:text-foreground [&>option]:bg-background ${es} ${a.class || ""}`.trim(),
700
- onCreated(l) {
701
- s && Ze.setupSelectOptions(l, s), typeof n == "function" && n(l);
705
+ onCreated(o) {
706
+ s && Ze.setupSelectOptions(o, s), typeof n == "function" && n(o);
702
707
  }
703
708
  },
704
709
  os(),
@@ -734,12 +739,12 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
734
739
  // @ts-ignore
735
740
  label: e.label || "Email",
736
741
  placeholder: "Email address"
737
- })), Wa = i((e) => Qe({
742
+ })), Va = i((e) => Qe({
738
743
  ...e,
739
744
  as: "textarea",
740
745
  // @ts-ignore
741
- class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${W} ${C} ${e.class || ""}`.trim()
742
- })), Va = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
746
+ class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${V} ${C} ${e.class || ""}`.trim()
747
+ })), Wa = (e = {}) => l({ class: "flex items-center gap-x-2" }, [
743
748
  p({
744
749
  ...e,
745
750
  type: "radio",
@@ -750,27 +755,27 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
750
755
  ...e,
751
756
  type: "date",
752
757
  // @ts-ignore
753
- class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
758
+ class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
754
759
  })), Ga = i((e) => p({
755
760
  ...e,
756
761
  type: "time",
757
762
  // @ts-ignore
758
- class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
763
+ class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
759
764
  })), Ka = i((e) => p({
760
765
  ...e,
761
766
  type: "datetime-local",
762
767
  // @ts-ignore
763
- class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
768
+ class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
764
769
  })), Qa = i((e) => p({
765
770
  ...e,
766
771
  type: "month",
767
772
  // @ts-ignore
768
- class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
773
+ class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
769
774
  })), Ja = i((e) => p({
770
775
  ...e,
771
776
  type: "week",
772
777
  // @ts-ignore
773
- class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
778
+ class: `${D} ${$} ${V} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
774
779
  })), Xa = i((e) => L({
775
780
  ...e,
776
781
  type: "number"
@@ -834,17 +839,17 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
834
839
  * @returns {object}
835
840
  */
836
841
  render() {
837
- return o({ class: "relative w-full h-4 flex items-center" }, [
842
+ return l({ class: "relative w-full h-4 flex items-center" }, [
838
843
  // Track
839
- o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
840
- q(({ state: e }) => [
844
+ l({ class: "absolute h-2 w-full rounded-full bg-muted" }),
845
+ G(({ state: e }) => [
841
846
  // Filled Track
842
- o({
847
+ l({
843
848
  class: "absolute h-2 bg-primary rounded-full",
844
849
  style: ["width: [[filledPercentage]]%", e]
845
850
  }),
846
851
  // Thumb
847
- o({
852
+ l({
848
853
  class: `
849
854
  absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
850
855
  ring-offset-background transition-colors focus-visible:outline-none
@@ -886,12 +891,12 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
886
891
  ...n,
887
892
  class: `[&>option]:text-foreground [&>option]:bg-background ${Ce} ${n.class || ""}`.trim()
888
893
  };
889
- }), cs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: l = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : be({
894
+ }), cs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: o = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : be({
890
895
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
891
896
  src: e,
892
897
  alt: t,
893
898
  loading: a,
894
- decoding: l,
899
+ decoding: o,
895
900
  fetchPriority: r,
896
901
  load: (c) => c.target.style.visibility = "visible",
897
902
  /**
@@ -899,7 +904,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
899
904
  */
900
905
  error: (c) => c.target.style.visibility = "hidden"
901
906
  })), ds = (e) => !e || isNaN(e) ? null : e, Le = (e, t) => {
902
- const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
907
+ const s = e, n = 16, a = 2 * Math.PI * n, o = s / 100 * a, r = `
903
908
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
904
909
  <!-- Background Circle -->
905
910
  <circle
@@ -922,7 +927,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
922
927
  stroke-width="4"
923
928
  class="stroke-primary"
924
929
  stroke-dasharray="${a}"
925
- stroke-dashoffset="${a - l}"
930
+ stroke-dashoffset="${a - o}"
926
931
  stroke-linecap="round"
927
932
  class="${t}"
928
933
  />
@@ -937,13 +942,13 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
937
942
  </text>
938
943
  </svg>
939
944
  `;
940
- return o({
945
+ return l({
941
946
  class: "circle-graph text-inherit",
942
947
  html: r
943
948
  });
944
949
  }, lo = i((e) => {
945
950
  const t = e.progress || 0, s = e.class || "", n = Le(t, s);
946
- return o({
951
+ return l({
947
952
  class: "circle-graph-wrap",
948
953
  onSet: [
949
954
  // @ts-ignore
@@ -951,7 +956,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
951
956
  (a) => (a = ds(a), a ? Le(a, s) : n)
952
957
  ]
953
958
  }, [n]);
954
- }), us = () => q(({ state: e }) => o({
959
+ }), us = () => G(({ state: e }) => l({
955
960
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
956
961
  style: ["width: [[progress]]%;", e]
957
962
  })), ro = F(
@@ -962,7 +967,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
962
967
  * @returns {object}
963
968
  */
964
969
  render() {
965
- return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
970
+ return l({ class: "relative w-full h-4 rounded-full bg-muted" }, [
966
971
  us()
967
972
  ]);
968
973
  },
@@ -1012,17 +1017,17 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1012
1017
  background: s = !0,
1013
1018
  blur: n = !0,
1014
1019
  backgroundClass: a = "bg-background/95",
1015
- blurClass: l = "backdrop-blur",
1020
+ blurClass: o = "backdrop-blur",
1016
1021
  zIndexClass: r = "z-9999",
1017
1022
  style: c = ""
1018
1023
  } = e, u = [
1019
1024
  "sticky bottom-0 left-0 right-0 w-full",
1020
1025
  r,
1021
1026
  s ? a : "",
1022
- n ? l : "",
1027
+ n ? o : "",
1023
1028
  t
1024
1029
  ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1025
- return o({
1030
+ return l({
1026
1031
  class: u,
1027
1032
  style: h,
1028
1033
  "aria-hidden": "true"
@@ -1033,17 +1038,17 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1033
1038
  background: s = !0,
1034
1039
  blur: n = !0,
1035
1040
  backgroundClass: a = "bg-background/95",
1036
- blurClass: l = "backdrop-blur",
1041
+ blurClass: o = "backdrop-blur",
1037
1042
  zIndexClass: r = "z-9999",
1038
1043
  style: c = ""
1039
1044
  } = e, u = [
1040
1045
  "fixed top-0 left-0 right-0 w-full",
1041
1046
  r,
1042
1047
  s ? a : "",
1043
- n ? l : "",
1048
+ n ? o : "",
1044
1049
  t
1045
1050
  ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1046
- return o({
1051
+ return l({
1047
1052
  class: u,
1048
1053
  style: h,
1049
1054
  "aria-hidden": "true"
@@ -1059,7 +1064,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1059
1064
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1060
1065
  }, hs = (e) => Re[String(e)] || Re.top, uo = i(({ position: e = "top", content: t }, s) => {
1061
1066
  const n = hs(e);
1062
- return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1067
+ return Array.isArray(s) === !1 && (s = [s]), l({ class: "relative group inline-block" }, [
1063
1068
  ...s,
1064
1069
  // Tooltip box
1065
1070
  f({
@@ -1095,21 +1100,21 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1095
1100
  bgColor: "bg-muted/10",
1096
1101
  iconColor: "text-muted-foreground"
1097
1102
  }
1098
- }, fs = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1103
+ }, fs = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1099
1104
  x({ size: "sm" }, e)
1100
- ]), gs = (e) => bt({ class: "font-semibold" }, e), ms = (e) => k({ class: "text-sm text-muted-foreground" }, e), ho = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
1101
- const { borderColor: a, bgColor: l, iconColor: r } = Ae[n] || Ae.default;
1102
- return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1105
+ ]), gs = (e) => xt({ class: "font-semibold" }, e), ms = (e) => k({ class: "text-sm text-muted-foreground" }, e), ho = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
1106
+ const { borderColor: a, bgColor: o, iconColor: r } = Ae[n] || Ae.default;
1107
+ return l({ class: `flex items-start p-4 border rounded-lg ${o} ${a}` }, [
1103
1108
  // Icon and content
1104
1109
  s && fs(s, r),
1105
- o({ class: "flex flex-col" }, [
1110
+ l({ class: "flex flex-col" }, [
1106
1111
  gs(e),
1107
1112
  ms(t)
1108
1113
  ])
1109
1114
  ]);
1110
1115
  }), bs = (e, t) => {
1111
- const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, r = globalThis.scrollY;
1112
- let c = s.left + l, u = s.bottom + r;
1116
+ const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, o = globalThis.scrollX, r = globalThis.scrollY;
1117
+ let c = s.left + o, u = s.bottom + r;
1113
1118
  const h = globalThis.innerHeight - s.bottom, y = s.top;
1114
1119
  return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), h < n.height && y > h ? u = s.top + r - n.height - a : h < n.height && (u = s.bottom + r - (n.height - h) - a), { x: c, y: u };
1115
1120
  };
@@ -1161,7 +1166,7 @@ class ae extends S {
1161
1166
  */
1162
1167
  render() {
1163
1168
  const t = this.getSize();
1164
- return o({
1169
+ return l({
1165
1170
  class: `absolute inset-auto fadeIn mt-2 rounded-md p-0 shadow-lg bg-popover min-h-12 backdrop:bg-transparent text-inherit r z-30 ${t}`,
1166
1171
  popover: "manual",
1167
1172
  toggle: (s, { state: n }) => s.newState === "closed" ? n.open = !1 : null,
@@ -1242,7 +1247,7 @@ class ae extends S {
1242
1247
  this?.panel?.hidePopover();
1243
1248
  }
1244
1249
  }
1245
- const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ps = i((e, t) => Y({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ys = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ws = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), fo = i((e, t = []) => _t({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1250
+ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ps = i((e, t) => Y({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ys = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ws = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), fo = i((e, t = []) => _t({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1246
1251
  // @ts-ignore
1247
1252
  e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1248
1253
  // @ts-ignore
@@ -1251,12 +1256,12 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1251
1256
  ])), go = i((e, t = []) => (
1252
1257
  // @ts-ignore
1253
1258
  Ut({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1254
- o({ class: "flex flex-col gap-y-6" }, t)
1259
+ l({ class: "flex flex-col gap-y-6" }, t)
1255
1260
  ])
1256
1261
  )), mo = i((e, t = []) => {
1257
1262
  const s = e.border ? "border-t" : "";
1258
- return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1259
- }), vs = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", nt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = nt(n.children, t, s)), !n.required) ? n : vs(n) ? {
1263
+ return l({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1264
+ }), vs = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", at = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = at(n.children, t, s)), !n.required) ? n : vs(n) ? {
1260
1265
  ...n,
1261
1266
  aria: {
1262
1267
  invalid: ["hasError"]
@@ -1264,12 +1269,12 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1264
1269
  invalid: s,
1265
1270
  input: t
1266
1271
  } : n), ks = i((e, t) => {
1267
- const a = nt(t, (l) => {
1268
- l.target.checkValidity() && e.setError(null);
1269
- }, (l) => {
1270
- e.setError(l.target.validationMessage);
1272
+ const a = at(t, (o) => {
1273
+ o.target.checkValidity() && e.setError(null);
1274
+ }, (o) => {
1275
+ e.setError(o.target.validationMessage);
1271
1276
  });
1272
- return o({
1277
+ return l({
1273
1278
  ...e,
1274
1279
  class: "w-full"
1275
1280
  }, a);
@@ -1294,10 +1299,10 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1294
1299
  * @returns {object}
1295
1300
  */
1296
1301
  render() {
1297
- const e = this.name, t = this.getId(`${e}`), { label: s, description: n } = this, a = (l) => {
1298
- this.state.error = l, this.state.hasError = !!l;
1302
+ const e = this.name, t = this.getId(`${e}`), { label: s, description: n } = this, a = (o) => {
1303
+ this.state.error = o, this.state.hasError = !!o;
1299
1304
  };
1300
- return o({ class: "flex flex-auto gap-y-4" }, [
1305
+ return l({ class: "flex flex-auto gap-y-4" }, [
1301
1306
  xs([
1302
1307
  ps({ htmlFor: t }, s),
1303
1308
  ks({
@@ -1307,32 +1312,32 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1307
1312
  setError: a
1308
1313
  }, this.children),
1309
1314
  n && ys({ id: this.getId("description") }, n),
1310
- o({ onState: ["error", (l) => l && ws(l)] })
1315
+ l({ onState: ["error", (o) => o && ws(o)] })
1311
1316
  ])
1312
1317
  ]);
1313
1318
  }
1314
1319
  }
1315
1320
  ), Cs = (e, t, s = null) => {
1316
1321
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1317
- }, at = i(
1322
+ }, ot = i(
1318
1323
  (e, t) => (
1319
1324
  // @ts-ignore
1320
- xt({ ...e, submit: (s, n) => Cs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1325
+ pt({ ...e, submit: (s, n) => Cs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1321
1326
  )
1322
1327
  ), xo = i((e, t) => (
1323
1328
  // @ts-ignore
1324
- o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1325
- )), po = i((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1329
+ l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1330
+ )), po = i((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
1326
1331
  // @ts-ignore
1327
1332
  e.title && Z({ class: "font-semibold" }, e.title),
1328
1333
  ...t
1329
- ])), yo = (e, t) => o({ class: "flex justify-between" }, [
1334
+ ])), yo = (e, t) => l({ class: "flex justify-between" }, [
1330
1335
  f({ class: "text-muted-foreground" }, e),
1331
1336
  f(t)
1332
- ]), wo = (e, t) => o({ class: "flex" }, [
1337
+ ]), wo = (e, t) => l({ class: "flex" }, [
1333
1338
  f({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1334
1339
  f(t)
1335
- ]), Ss = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => ee({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1340
+ ]), Ss = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: o = !1 }) => ee({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1336
1341
  /**
1337
1342
  * Back Button (Mobile Only)
1338
1343
  */
@@ -1345,34 +1350,34 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1345
1350
  /**
1346
1351
  * Icon Container
1347
1352
  */
1348
- n && o({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [
1353
+ n && l({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [
1349
1354
  x({ size: "md" }, n)
1350
1355
  ]),
1351
- o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1352
- o({ class: `flex flex-auto flex-col min-w-0 ${l ? "items-center" : ""}` }, [
1356
+ l({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1357
+ l({ class: `flex flex-auto flex-col min-w-0 ${o ? "items-center" : ""}` }, [
1353
1358
  Z({ class: "text-lg font-semibold m-0 truncate" }, e),
1354
- t && o({ class: "text-sm text-muted-foreground truncate" }, t)
1359
+ t && l({ class: "text-sm text-muted-foreground truncate" }, t)
1355
1360
  ]),
1356
- o({ class: "flex flex-none items-center gap-2" }, a)
1361
+ l({ class: "flex flex-none items-center gap-2" }, a)
1357
1362
  ])
1358
1363
  ])), vo = i((e, t) => {
1359
1364
  const s = e.class?.includes("drawer");
1360
- return o({
1365
+ return l({
1361
1366
  popover: "manual",
1362
1367
  // @ts-ignore
1363
1368
  class: `modal ${s ? "" : "m-auto top-0 right-0 bottom-0 left-0"} ${s ? "" : "h-full max-h-screen"} fixed z-20 grid w-full gap-2 lg:border bg-background text-foreground shadow-xl wrap-break-words p-0 overflow-y-auto overscroll-y-contain ${e.class}`,
1364
- click: (l, r) => {
1365
- l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
1369
+ click: (o, r) => {
1370
+ o.target === r.panel && (o.preventDefault(), o.stopPropagation(), r.state.open = !1);
1366
1371
  }
1367
1372
  }, [
1368
- at({
1373
+ ot({
1369
1374
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1370
1375
  // @ts-ignore
1371
- submit: (l, r) => e.onSubmit && e.onSubmit(r),
1376
+ submit: (o, r) => e.onSubmit && e.onSubmit(r),
1372
1377
  cache: "modalContent"
1373
1378
  }, [
1374
1379
  Ss(e),
1375
- o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1380
+ l({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1376
1381
  // @ts-ignore
1377
1382
  !e.hideFooter && xe({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
1378
1383
  ])
@@ -1411,7 +1416,7 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1411
1416
  animateIn: "pullRightIn",
1412
1417
  animateOut: "pullRight",
1413
1418
  role: "alert"
1414
- }, s)), Is = i(({ close: e, class: t }, s) => o({
1419
+ }, s)), Is = i(({ close: e, class: t }, s) => l({
1415
1420
  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}`,
1416
1421
  click: () => e(),
1417
1422
  animateIn: "pullRightIn",
@@ -1441,14 +1446,14 @@ class ko extends S {
1441
1446
  * @returns {object}
1442
1447
  */
1443
1448
  render() {
1444
- const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1449
+ const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, o = this.getChildren(n);
1445
1450
  return a ? Ds({
1446
1451
  href: a,
1447
1452
  class: `${t} ${s}`
1448
- }, l) : Is({
1453
+ }, o) : Is({
1449
1454
  close: this.close.bind(this),
1450
1455
  class: `${t} ${s}`
1451
- }, l);
1456
+ }, o);
1452
1457
  }
1453
1458
  /**
1454
1459
  * This will be called after the component is set up.
@@ -1457,7 +1462,7 @@ class ko extends S {
1457
1462
  */
1458
1463
  afterSetup() {
1459
1464
  const t = this.duration;
1460
- t !== "infinite" && (this.timer = new St(t, this.close.bind(this)), this.timer.start());
1465
+ t !== "infinite" && (this.timer = new $t(t, this.close.bind(this)), this.timer.start());
1461
1466
  }
1462
1467
  /**
1463
1468
  * This will get the style properties based on the notification type.
@@ -1475,7 +1480,7 @@ class ko extends S {
1475
1480
  */
1476
1481
  getButtons() {
1477
1482
  return [
1478
- o({ class: "flex flex-row mt-6 gap-2" }, [
1483
+ l({ class: "flex flex-row mt-6 gap-2" }, [
1479
1484
  this.secondary && b({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
1480
1485
  this.primary && b({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
1481
1486
  ])
@@ -1489,12 +1494,12 @@ class ko extends S {
1489
1494
  */
1490
1495
  getChildren(t) {
1491
1496
  return [
1492
- o({ class: "flex items-start" }, [
1493
- this.icon && o({ class: `mr-4 ${t}` }, [
1497
+ l({ class: "flex items-start" }, [
1498
+ this.icon && l({ class: `mr-4 ${t}` }, [
1494
1499
  x({ size: "md" }, this.icon)
1495
1500
  ]),
1496
- o({ class: "flex flex-auto flex-col" }, [
1497
- o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1501
+ l({ class: "flex flex-auto flex-col" }, [
1502
+ l({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1498
1503
  this.title && $s(this.title)
1499
1504
  ]),
1500
1505
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
@@ -1519,7 +1524,7 @@ class ko extends S {
1519
1524
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1520
1525
  }
1521
1526
  }
1522
- const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
1527
+ const Ee = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v({
1523
1528
  class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
1524
1529
  onState: ["method", { active: e }],
1525
1530
  dataSet: ["method", ["state", e, "active"]],
@@ -1545,11 +1550,11 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1545
1550
  * @returns {object}
1546
1551
  */
1547
1552
  render() {
1548
- return o({ class: "flex flex-auto flex-col" }, [
1549
- o({ class: "grid grid-cols-3 gap-4" }, [
1550
- ie({ label: "System", value: "system", icon: g.adjustments.horizontal }),
1551
- ie({ label: "Light", value: "light", icon: g.sun }),
1552
- ie({ label: "Dark", value: "dark", icon: g.moon })
1553
+ return l({ class: "flex flex-auto flex-col" }, [
1554
+ l({ class: "grid grid-cols-3 gap-4" }, [
1555
+ ce({ label: "System", value: "system", icon: g.adjustments.horizontal }),
1556
+ ce({ label: "Light", value: "light", icon: g.sun }),
1557
+ ce({ label: "Dark", value: "dark", icon: g.moon })
1553
1558
  ])
1554
1559
  ]);
1555
1560
  },
@@ -1620,8 +1625,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1620
1625
  src: e,
1621
1626
  alt: t,
1622
1627
  class: "rounded-full"
1623
- })), Ms = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), ot = (e) => !e || e.length < 2 ? e : Ms(e), Bs = (e) => f([e, (t, s) => {
1624
- s.textContent = ot(t);
1628
+ })), Ms = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), lt = (e) => !e || e.length < 2 ? e : Ms(e), Bs = (e) => f([e, (t, s) => {
1629
+ s.textContent = lt(t);
1625
1630
  }]), _e = {
1626
1631
  xs: "h-6 w-6",
1627
1632
  sm: "h-8 w-8",
@@ -1643,8 +1648,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1643
1648
  "4xl": "text-5xl",
1644
1649
  default: "text-base"
1645
1650
  }, zs = (e) => _e[e] || _e.default, Os = (e) => He[e] || He.default, Ns = (e, t = null, s = "md") => {
1646
- const n = ot(String(e)), a = Os(s);
1647
- return o(
1651
+ const n = lt(String(e)), a = Os(s);
1652
+ return l(
1648
1653
  {
1649
1654
  class: `
1650
1655
  flex items-center justify-center w-full h-full rounded-full
@@ -1657,10 +1662,10 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1657
1662
  ]
1658
1663
  );
1659
1664
  }, Fs = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1660
- const l = zs(a);
1661
- return o(
1665
+ const o = zs(a);
1666
+ return l(
1662
1667
  {
1663
- class: `relative flex items-center justify-center ${l}`
1668
+ class: `relative flex items-center justify-center ${o}`
1664
1669
  },
1665
1670
  [
1666
1671
  Ps({ src: e, alt: t }),
@@ -1705,7 +1710,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1705
1710
  */
1706
1711
  render() {
1707
1712
  const e = "image-upload", t = this.onChange || null;
1708
- return o({ class: "flex-none items-center" }, [
1713
+ return l({ class: "flex-none items-center" }, [
1709
1714
  p({
1710
1715
  id: e,
1711
1716
  cache: "input",
@@ -1717,7 +1722,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1717
1722
  n && t && (this.state.loaded = !1, t(n, this.parent), this.src = this.getFileUrl(n), this.state.loaded = !0);
1718
1723
  }
1719
1724
  }),
1720
- o({
1725
+ l({
1721
1726
  class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
1722
1727
  click: (s) => {
1723
1728
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
@@ -1727,8 +1732,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1727
1732
  htmlFor: e,
1728
1733
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1729
1734
  }, [
1730
- fe(g.upload),
1731
- o("Upload Image")
1735
+ ge(g.upload),
1736
+ l("Upload Image")
1732
1737
  ]) : be({
1733
1738
  // @ts-ignore
1734
1739
  src: this.src,
@@ -1776,7 +1781,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1776
1781
  */
1777
1782
  render() {
1778
1783
  const e = "logo-upload", t = this.onChange || null;
1779
- return o({ class: "flex-none items-center" }, [
1784
+ return l({ class: "flex-none items-center" }, [
1780
1785
  p({
1781
1786
  id: e,
1782
1787
  cache: "input",
@@ -1788,7 +1793,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1788
1793
  n && t && (this.state.loaded = !1, t(n, this.parent), this.src = this.getFileUrl(n), this.state.loaded = !0);
1789
1794
  }
1790
1795
  }),
1791
- o({
1796
+ l({
1792
1797
  class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
1793
1798
  click: (s) => {
1794
1799
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
@@ -1805,7 +1810,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1805
1810
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1806
1811
  }, [
1807
1812
  x({}, g.upload),
1808
- o("Upload logo")
1813
+ l("Upload logo")
1809
1814
  ])
1810
1815
  )
1811
1816
  ])
@@ -1832,7 +1837,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1832
1837
  class: "mx-3 text-muted-foreground",
1833
1838
  "aria-hidden": !0,
1834
1839
  size: "xs"
1835
- }, g.chevron.single.right), As = (e) => o({ class: "flex items-center" }, [
1840
+ }, g.chevron.single.right), As = (e) => l({ class: "flex items-center" }, [
1836
1841
  e.href ? Ls(e.href, e.label) : f(e.label),
1837
1842
  e.separator && Rs()
1838
1843
  ]), Io = B(
@@ -1861,7 +1866,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1861
1866
  class: "flex items-center gap-x-1 text-sm"
1862
1867
  },
1863
1868
  [
1864
- o({
1869
+ l({
1865
1870
  role: "list",
1866
1871
  class: "flex items-center",
1867
1872
  for: ["items", (t, s) => As({
@@ -1883,7 +1888,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1883
1888
  "2xl": "h-16 w-16",
1884
1889
  "3xl": "h-24 w-24",
1885
1890
  default: "h-4 w-4"
1886
- }, js = (e) => Ye[e] || Ye.default, Es = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1891
+ }, js = (e) => Ye[e] || Ye.default, Es = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1887
1892
  f({
1888
1893
  class: "block w-full h-full rounded-full transition-colors",
1889
1894
  onSet: ["activeIndex", {
@@ -1920,10 +1925,10 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1920
1925
  */
1921
1926
  render() {
1922
1927
  const e = this.gap || "gap-2", t = js(this.size || "sm"), s = _s(this.data.count, t);
1923
- return o(
1928
+ return l(
1924
1929
  { class: "flex justify-center items-center py-2" },
1925
1930
  [
1926
- o({ class: `flex ${e}` }, s)
1931
+ l({ class: `flex ${e}` }, s)
1927
1932
  ]
1928
1933
  );
1929
1934
  }
@@ -1945,9 +1950,9 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1945
1950
  }, [
1946
1951
  e.icon && f({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1947
1952
  f({ class: "text-base font-normal" }, e.label)
1948
- ]), Ys = (e, t) => o({ class: "w-full border rounded-md" }, [
1953
+ ]), Ys = (e, t) => l({ class: "w-full border rounded-md" }, [
1949
1954
  te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Us(s, e, t)] })
1950
- ]), Ws = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1955
+ ]), Vs = ({ onSelect: e, state: t }) => l({ class: "flex flex-auto flex-col" }, [
1951
1956
  M(
1952
1957
  "open",
1953
1958
  (s, n, a) => s ? new ae({
@@ -2037,10 +2042,10 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2037
2042
  */
2038
2043
  render() {
2039
2044
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2040
- return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2045
+ return l({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2041
2046
  // @ts-ignore
2042
2047
  Hs({ toggleDropdown: this.toggleDropdown.bind(this) }),
2043
- Ws({
2048
+ Vs({
2044
2049
  // @ts-ignore
2045
2050
  state: this.state,
2046
2051
  // @ts-ignore
@@ -2060,25 +2065,25 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2060
2065
  ]);
2061
2066
  }
2062
2067
  }
2063
- ), lt = ({ icon: e, click: t, ariaLabel: s }) => b({
2068
+ ), rt = ({ icon: e, click: t, ariaLabel: s }) => b({
2064
2069
  variant: "icon",
2065
2070
  class: "flex flex-none",
2066
2071
  click: t,
2067
2072
  icon: e,
2068
2073
  "aria-label": s
2069
- }), Vs = ({ click: e }) => lt({
2074
+ }), Ws = ({ click: e }) => rt({
2070
2075
  icon: g.circleMinus,
2071
2076
  click: e,
2072
2077
  ariaLabel: "Decrement"
2073
- }), qs = ({ click: e }) => lt({
2078
+ }), qs = ({ click: e }) => rt({
2074
2079
  icon: g.circlePlus,
2075
2080
  click: e,
2076
2081
  ariaLabel: "Increment"
2077
- }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => q(({ state: a }) => p({
2082
+ }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => G(({ state: a }) => p({
2078
2083
  value: ["[[count]]", a],
2079
2084
  bind: e,
2080
- blur: (l, { state: r }) => {
2081
- let c = parseInt(l.target.value, 10);
2085
+ blur: (o, { state: r }) => {
2086
+ let c = parseInt(o.target.value, 10);
2082
2087
  isNaN(c) && (c = t ?? 0), t !== void 0 && (c = Math.max(c, t)), s !== void 0 && (c = Math.min(c, s)), r.count = c;
2083
2088
  },
2084
2089
  class: "flex flex-auto text-lg font-medium bg-input text-center border min-w-0",
@@ -2109,8 +2114,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2109
2114
  */
2110
2115
  render() {
2111
2116
  const e = this.class ?? "";
2112
- return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2113
- Vs({ click: () => this.state.decrement("count") }),
2117
+ return l({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2118
+ Ws({ click: () => this.state.decrement("count") }),
2114
2119
  Gs({
2115
2120
  bind: this.bind,
2116
2121
  readonly: this.readonly,
@@ -2121,13 +2126,13 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2121
2126
  ]);
2122
2127
  }
2123
2128
  }
2124
- ), Ks = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2129
+ ), Ks = ({ currentMonth: e, currentYear: t, onSelect: s }) => l(
2125
2130
  { class: "grid grid-cols-3 gap-2" },
2126
2131
  se.monthNames.map(
2127
2132
  (n, a) => b(
2128
2133
  {
2129
- click: (l) => {
2130
- l.preventDefault(), l.stopPropagation(), s(a);
2134
+ click: (o) => {
2135
+ o.preventDefault(), o.stopPropagation(), s(a);
2131
2136
  },
2132
2137
  variant: e === a ? "primary" : "ghost",
2133
2138
  "aria-label": `Select ${n} ${t}`
@@ -2138,13 +2143,13 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2138
2143
  ), O = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Qs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), _ = (e, t, s) => `${e}-${O(t + 1)}-${O(s)}`, Js = (e) => e ? "bg-accent text-primary" : "", Xs = (e) => e ? "text-muted-foreground opacity-50" : "", Zs = (e, t) => e === t, en = (e, t) => Zs(e, t) ? "bg-primary text-primary-foreground" : "", tn = (e, t, s, n) => {
2139
2144
  const a = en(t, n);
2140
2145
  return a || (e ? Js(e) : s ? Xs(s) : "text-foreground");
2141
- }, ce = (e) => {
2146
+ }, de = (e) => {
2142
2147
  const {
2143
2148
  day: t,
2144
2149
  currentDate: s,
2145
2150
  date: n,
2146
2151
  isToday: a,
2147
- isOutsideMonth: l,
2152
+ isOutsideMonth: o,
2148
2153
  select: r,
2149
2154
  disabled: c
2150
2155
  } = e;
@@ -2152,7 +2157,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2152
2157
  {
2153
2158
  class: `
2154
2159
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
2155
- ${tn(a, s, l, n)}
2160
+ ${tn(a, s, o, n)}
2156
2161
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2157
2162
  disabled:pointer-events-none disabled:opacity-50
2158
2163
  `,
@@ -2163,12 +2168,12 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2163
2168
  },
2164
2169
  t.toString()
2165
2170
  );
2166
- }, de = (e, t, s, n) => e === n.date && t === n.month && s === n.year, sn = (e, t, s, n = !1) => {
2167
- const { year: a, month: l } = e, r = _(a, l, e.date), c = new Date(a, l, 1).getDay(), u = new Date(a, l + 1, 0).getDate(), h = new Date(a, l, 0).getDate(), y = [], R = l === 0 ? 11 : l - 1, A = l === 0 ? a - 1 : a;
2171
+ }, ue = (e, t, s, n) => e === n.date && t === n.month && s === n.year, sn = (e, t, s, n = !1) => {
2172
+ const { year: a, month: o } = e, r = _(a, o, e.date), c = new Date(a, o, 1).getDay(), u = new Date(a, o + 1, 0).getDate(), h = new Date(a, o, 0).getDate(), y = [], R = o === 0 ? 11 : o - 1, A = o === 0 ? a - 1 : a;
2168
2173
  for (let d = c - 1; d >= 0; d--) {
2169
- const w = h - d, I = de(w, R, A, t), T = new Date(A, R, w) < new Date(t.year, t.month, t.date), j = n && T;
2174
+ const w = h - d, I = ue(w, R, A, t), T = new Date(A, R, w) < new Date(t.year, t.month, t.date), j = n && T;
2170
2175
  y.push(
2171
- ce({
2176
+ de({
2172
2177
  day: w,
2173
2178
  currentDate: r,
2174
2179
  date: _(A, R, w),
@@ -2180,12 +2185,12 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2180
2185
  );
2181
2186
  }
2182
2187
  for (let d = 1; d <= u; d++) {
2183
- const w = de(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2188
+ const w = ue(d, o, a, t), I = new Date(a, o, d) < new Date(t.year, t.month, t.date), T = n && I;
2184
2189
  y.push(
2185
- ce({
2190
+ de({
2186
2191
  day: d,
2187
2192
  currentDate: r,
2188
- date: _(a, l, d),
2193
+ date: _(a, o, d),
2189
2194
  isToday: w,
2190
2195
  isOutsideMonth: !1,
2191
2196
  select: s,
@@ -2193,11 +2198,11 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2193
2198
  })
2194
2199
  );
2195
2200
  }
2196
- const P = l === 11 ? 0 : l + 1, oe = l === 11 ? a + 1 : a, m = (7 - y.length % 7) % 7;
2201
+ const P = o === 11 ? 0 : o + 1, oe = o === 11 ? a + 1 : a, m = (7 - y.length % 7) % 7;
2197
2202
  for (let d = 1; d <= m; d++) {
2198
- const w = de(d, P, oe, t), I = new Date(oe, P, d) < new Date(t.year, t.month, t.date), T = n && I;
2203
+ const w = ue(d, P, oe, t), I = new Date(oe, P, d) < new Date(t.year, t.month, t.date), T = n && I;
2199
2204
  y.push(
2200
- ce({
2205
+ de({
2201
2206
  day: d,
2202
2207
  currentDate: r,
2203
2208
  date: _(oe, P, d),
@@ -2209,7 +2214,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2209
2214
  );
2210
2215
  }
2211
2216
  return y;
2212
- }, We = ({ label: e, click: t }) => b(
2217
+ }, Ve = ({ label: e, click: t }) => b(
2213
2218
  {
2214
2219
  class: `
2215
2220
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2222,28 +2227,28 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2222
2227
  variant: "icon",
2223
2228
  icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2224
2229
  }
2225
- ), nn = ({ 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" }, [
2230
+ ), nn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => l({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2226
2231
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2227
2232
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2228
- We({ label: "Previous", click: n }),
2229
- We({ label: "Next", click: s })
2230
- ]), an = (e) => o(
2233
+ Ve({ label: "Previous", click: n }),
2234
+ Ve({ label: "Next", click: s })
2235
+ ]), an = (e) => l(
2231
2236
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2232
2237
  e
2233
- ), on = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(an), ln = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2238
+ ), on = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(an), ln = (e) => l({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2234
2239
  nn({
2235
2240
  onMonthClick: e.onMonthClick,
2236
2241
  onYearClick: e.onYearClick,
2237
2242
  next: e.next,
2238
2243
  previous: e.previous
2239
2244
  }),
2240
- o({
2245
+ l({
2241
2246
  class: "flex flex-auto flex-col w-full",
2242
2247
  onSet: [
2243
2248
  "currentDate",
2244
2249
  () => [
2245
- o({ class: "grid grid-cols-7" }, on()),
2246
- o(
2250
+ l({ class: "grid grid-cols-7" }, on()),
2251
+ l(
2247
2252
  { class: "grid grid-cols-7" },
2248
2253
  sn(
2249
2254
  e.current,
@@ -2256,19 +2261,19 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2256
2261
  ]
2257
2262
  })
2258
2263
  ]), rn = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2259
- const n = t - 50, a = Array.from({ length: 101 }, (l, r) => n + r);
2260
- return o(
2264
+ const n = t - 50, a = Array.from({ length: 101 }, (o, r) => n + r);
2265
+ return l(
2261
2266
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2262
2267
  a.map(
2263
- (l) => b(
2268
+ (o) => b(
2264
2269
  {
2265
2270
  click: (r) => {
2266
- r.preventDefault(), r.stopPropagation(), s(l);
2271
+ r.preventDefault(), r.stopPropagation(), s(o);
2267
2272
  },
2268
- variant: l === t ? "primary" : "ghost",
2269
- "aria-label": `Select ${l}`
2273
+ variant: o === t ? "primary" : "ghost",
2274
+ "aria-label": `Select ${o}`
2270
2275
  },
2271
- l.toString()
2276
+ o.toString()
2272
2277
  )
2273
2278
  )
2274
2279
  );
@@ -2382,7 +2387,7 @@ class cn extends S {
2382
2387
  * @returns {object}
2383
2388
  */
2384
2389
  render() {
2385
- return o({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2390
+ return l({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2386
2391
  M("view", (t) => {
2387
2392
  switch (t) {
2388
2393
  case "months":
@@ -2451,13 +2456,13 @@ const dn = (e) => {
2451
2456
  input: t,
2452
2457
  focus: s,
2453
2458
  onState: ["selectedDate", (n) => n ? se.format("standard", n) : ""]
2454
- }), gn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2459
+ }), gn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: o }) => l(
2455
2460
  {
2456
2461
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
2457
2462
  },
2458
2463
  [
2459
2464
  hn({ bind: e, required: t }),
2460
- fn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2465
+ fn({ placeholder: o, handleInputChange: n, handleInputFocus: a }),
2461
2466
  v(
2462
2467
  {
2463
2468
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -2545,7 +2550,7 @@ const dn = (e) => {
2545
2550
  * @returns {object}
2546
2551
  */
2547
2552
  render() {
2548
- return o(
2553
+ return l(
2549
2554
  { class: "relative w-full max-w-[320px]" },
2550
2555
  [
2551
2556
  gn({
@@ -2564,7 +2569,7 @@ const dn = (e) => {
2564
2569
  );
2565
2570
  }
2566
2571
  }
2567
- ), Ve = ({ label: e, click: t }) => b(
2572
+ ), We = ({ label: e, click: t }) => b(
2568
2573
  {
2569
2574
  class: `
2570
2575
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2577,17 +2582,17 @@ const dn = (e) => {
2577
2582
  variant: "icon",
2578
2583
  icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2579
2584
  }
2580
- ), bn = ({ 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" }, [
2585
+ ), bn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => l({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2581
2586
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2582
2587
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2583
- Ve({ label: "Previous", click: n }),
2584
- Ve({ label: "Next", click: s })
2585
- ]), xn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), pn = () => o(
2588
+ We({ label: "Previous", click: n }),
2589
+ We({ label: "Next", click: s })
2590
+ ]), xn = (e) => l({ class: "h-9 flex items-center justify-center font-medium" }, e), pn = () => l(
2586
2591
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2587
2592
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(xn)
2588
- ), yn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: r, click: c }) => {
2593
+ ), yn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: o, isOtherMonth: r, click: c }) => {
2589
2594
  let u = "ghost", h = "";
2590
- return n || a ? (u = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), r && (h += " text-muted-foreground opacity-50"), b(
2595
+ return n || a ? (u = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : o && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), r && (h += " text-muted-foreground opacity-50"), b(
2591
2596
  {
2592
2597
  class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
2593
2598
  variant: u,
@@ -2599,29 +2604,29 @@ const dn = (e) => {
2599
2604
  e.toString()
2600
2605
  );
2601
2606
  }, wn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2602
- const { start: a, end: l } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), u = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, R = new Date(y, h + 1, 0).getDate(), A = t.month === 11 ? 0 : t.month + 1, P = t.month === 11 ? t.year + 1 : t.year;
2607
+ const { start: a, end: o } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), u = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, R = new Date(y, h + 1, 0).getDate(), A = t.month === 11 ? 0 : t.month + 1, P = t.month === 11 ? t.year + 1 : t.year;
2603
2608
  for (let m = r - 1; m >= 0; m--) {
2604
- const d = R - m, w = _(y, h, d), I = new Date(y, h, d), T = new Date(e.year, e.month, e.date), j = I < T, G = s && j, K = a === w, Q = l === w, ft = a && l && w > a && w < l;
2609
+ const d = R - m, w = _(y, h, d), I = new Date(y, h, d), T = new Date(e.year, e.month, e.date), j = I < T, K = s && j, Q = a === w, J = o === w, gt = a && o && w > a && w < o;
2605
2610
  u.push({
2606
2611
  day: d,
2607
2612
  iso: w,
2608
- disabled: G,
2609
- isStart: K,
2610
- isEnd: Q,
2611
- isBetween: ft,
2613
+ disabled: K,
2614
+ isStart: Q,
2615
+ isEnd: J,
2616
+ isBetween: gt,
2612
2617
  isOtherMonth: !0,
2613
2618
  click: () => n(w)
2614
2619
  });
2615
2620
  }
2616
2621
  for (let m = 1; m <= c; m++) {
2617
- const d = _(t.year, t.month, m), w = new Date(t.year, t.month, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2622
+ const d = _(t.year, t.month, m), w = new Date(t.year, t.month, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, K = a === d, Q = o === d, J = a && o && d > a && d < o;
2618
2623
  u.push({
2619
2624
  day: m,
2620
2625
  iso: d,
2621
2626
  disabled: j,
2622
- isStart: G,
2623
- isEnd: K,
2624
- isBetween: Q,
2627
+ isStart: K,
2628
+ isEnd: Q,
2629
+ isBetween: J,
2625
2630
  isOtherMonth: !1,
2626
2631
  click: () => {
2627
2632
  n(d);
@@ -2630,19 +2635,19 @@ const dn = (e) => {
2630
2635
  }
2631
2636
  const Ie = (7 - u.length % 7) % 7;
2632
2637
  for (let m = 1; m <= Ie; m++) {
2633
- const d = _(P, A, m), w = new Date(P, A, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2638
+ const d = _(P, A, m), w = new Date(P, A, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, K = a === d, Q = o === d, J = a && o && d > a && d < o;
2634
2639
  u.push({
2635
2640
  day: m,
2636
2641
  iso: d,
2637
2642
  disabled: j,
2638
- isStart: G,
2639
- isEnd: K,
2640
- isBetween: Q,
2643
+ isStart: K,
2644
+ isEnd: Q,
2645
+ isBetween: J,
2641
2646
  isOtherMonth: !0,
2642
2647
  click: () => n(d)
2643
2648
  });
2644
2649
  }
2645
- return o(
2650
+ return l(
2646
2651
  { class: "grid grid-cols-7 gap-1" },
2647
2652
  u.map(
2648
2653
  (m, d) => yn({
@@ -2657,7 +2662,7 @@ const dn = (e) => {
2657
2662
  })
2658
2663
  )
2659
2664
  );
2660
- }, vn = i((e, t) => o({ class: "flex flex-auto flex-col" }, [
2665
+ }, vn = i((e, t) => l({ class: "flex flex-auto flex-col" }, [
2661
2666
  bn({
2662
2667
  // @ts-ignore
2663
2668
  onMonthClick: e.onMonthClick,
@@ -2668,7 +2673,7 @@ const dn = (e) => {
2668
2673
  // @ts-ignore
2669
2674
  previous: e.previous
2670
2675
  }),
2671
- o({
2676
+ l({
2672
2677
  class: "flex flex-auto flex-col w-full",
2673
2678
  onSet: [
2674
2679
  "currentDate",
@@ -2687,13 +2692,13 @@ const dn = (e) => {
2687
2692
  ]
2688
2693
  ]
2689
2694
  })
2690
- ])), kn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2695
+ ])), kn = ({ currentMonth: e, currentYear: t, onSelect: s }) => l(
2691
2696
  { class: "grid grid-cols-3 gap-2" },
2692
2697
  se.monthNames.map(
2693
2698
  (n, a) => b(
2694
2699
  {
2695
- click: (l) => {
2696
- l.preventDefault(), l.stopPropagation(), s(a);
2700
+ click: (o) => {
2701
+ o.preventDefault(), o.stopPropagation(), s(a);
2697
2702
  },
2698
2703
  variant: e === a ? "primary" : "ghost",
2699
2704
  "aria-label": `Select ${n} ${t}`
@@ -2701,33 +2706,33 @@ const dn = (e) => {
2701
2706
  n.substring(0, 3)
2702
2707
  )
2703
2708
  )
2704
- ), Cn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2705
- J("selecting", (l) => b({
2709
+ ), Cn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => l({ class: "flex gap-x-2 mb-4" }, [
2710
+ X("selecting", (o) => b({
2706
2711
  click: n,
2707
- variant: l === "start" ? "primary" : "outline",
2712
+ variant: o === "start" ? "primary" : "outline",
2708
2713
  class: "flex-1"
2709
2714
  }, [
2710
- o({ class: "font-medium" }, qe("current.start", "Start Date"))
2715
+ l({ class: "font-medium" }, qe("current.start", "Start Date"))
2711
2716
  ])),
2712
- J("selecting", (l) => b({
2717
+ X("selecting", (o) => b({
2713
2718
  click: a,
2714
- variant: l === "end" ? "primary" : "outline",
2719
+ variant: o === "end" ? "primary" : "outline",
2715
2720
  class: "flex-1"
2716
2721
  }, [
2717
- o({ class: "font-medium" }, qe("current.end", "End Date"))
2722
+ l({ class: "font-medium" }, qe("current.end", "End Date"))
2718
2723
  ]))
2719
2724
  ]), qe = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Sn(s)], Sn = (e) => {
2720
2725
  const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
2721
2726
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2722
2727
  }, $n = ({ currentYear: e, onSelect: t }) => {
2723
- const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2724
- return o(
2728
+ const s = e - 50, n = Array.from({ length: 101 }, (a, o) => s + o);
2729
+ return l(
2725
2730
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2726
2731
  n.map(
2727
2732
  (a) => b(
2728
2733
  {
2729
- click: (l) => {
2730
- l.preventDefault(), l.stopPropagation(), t(a);
2734
+ click: (o) => {
2735
+ o.preventDefault(), o.stopPropagation(), t(a);
2731
2736
  },
2732
2737
  variant: a === e ? "primary" : "ghost",
2733
2738
  "aria-label": `Select ${a}`
@@ -2832,11 +2837,11 @@ class Dn extends S {
2832
2837
  * @returns {object}
2833
2838
  */
2834
2839
  render() {
2835
- const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2836
- return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2840
+ const { today: t, current: s, selecting: n } = this.data, { start: a, end: o } = s;
2841
+ return l({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2837
2842
  Cn({
2838
2843
  start: a,
2839
- end: l,
2844
+ end: o,
2840
2845
  selecting: n,
2841
2846
  onSelectStart: (r) => {
2842
2847
  r.preventDefault(), r.stopPropagation(), this.data.selecting = "start";
@@ -2905,10 +2910,10 @@ const In = ({ bind: e, required: t }) => p({
2905
2910
  click: s
2906
2911
  }, [
2907
2912
  In({ bind: e, required: t }),
2908
- q(({ state: n }) => [
2909
- f(V.date(["[[start]]", n], "Start Date")),
2913
+ G(({ state: n }) => [
2914
+ f(W.date(["[[start]]", n], "Start Date")),
2910
2915
  f(" - "),
2911
- f(V.date(["[[end]]", n], "End Date"))
2916
+ f(W.date(["[[end]]", n], "End Date"))
2912
2917
  ]),
2913
2918
  U({ html: g.calendar.days })
2914
2919
  ]), Pn = ({ handleDateSelect: e, blockPriorDates: t }) => ve((s, n, a) => new ae({
@@ -2958,7 +2963,7 @@ const In = ({ bind: e, required: t }) => p({
2958
2963
  const e = (s, { state: n }) => n.toggle("open"), t = (s, n) => {
2959
2964
  this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2960
2965
  };
2961
- return o({ class: "relative w-full max-w-[320px]" }, [
2966
+ return l({ class: "relative w-full max-w-[320px]" }, [
2962
2967
  Tn({
2963
2968
  toggleOpen: e,
2964
2969
  bind: this.bind,
@@ -3008,14 +3013,14 @@ function On({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
3008
3013
  onState: ["selectedTime", (n) => n || ""]
3009
3014
  });
3010
3015
  }
3011
- function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
3012
- return o(
3016
+ function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: o }) {
3017
+ return l(
3013
3018
  {
3014
3019
  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"
3015
3020
  },
3016
3021
  [
3017
3022
  zn({ bind: e, required: t }),
3018
- On({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
3023
+ On({ placeholder: o, handleInputChange: n, handleInputFocus: a }),
3019
3024
  v(
3020
3025
  {
3021
3026
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
@@ -3028,11 +3033,11 @@ function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleI
3028
3033
  ]
3029
3034
  );
3030
3035
  }
3031
- function ue({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
3032
- return o(
3036
+ function he({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
3037
+ return l(
3033
3038
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
3034
- e.map((l) => {
3035
- let r = a ? l.toString().padStart(2, "0") : l.toString();
3039
+ e.map((o) => {
3040
+ let r = a ? o.toString().padStart(2, "0") : o.toString();
3036
3041
  return v({
3037
3042
  text: r,
3038
3043
  class: "hover:bg-muted/50 rounded-md pr-2 py-1",
@@ -3052,30 +3057,30 @@ function Fn({ handleTimeSelect: e }) {
3052
3057
  size: "fit"
3053
3058
  },
3054
3059
  [
3055
- o(
3060
+ l(
3056
3061
  { class: "flex flex-auto flex-col border rounded-md shadow-md" },
3057
3062
  [
3058
- o(
3063
+ l(
3059
3064
  { class: "grid grid-cols-3 gap-2 p-4 text-center max-h-[220px] min-w-[240px]" },
3060
3065
  [
3061
3066
  // Hours column
3062
- ue({
3063
- items: Array.from({ length: 12 }, (a, l) => l + 1),
3067
+ he({
3068
+ items: Array.from({ length: 12 }, (a, o) => o + 1),
3064
3069
  handleTimeSelect: e,
3065
3070
  state: n.state,
3066
3071
  stateValue: "hour",
3067
3072
  pad: !0
3068
3073
  }),
3069
3074
  // Minutes column
3070
- ue({
3071
- items: Array.from({ length: 60 }, (a, l) => l),
3075
+ he({
3076
+ items: Array.from({ length: 60 }, (a, o) => o),
3072
3077
  handleTimeSelect: e,
3073
3078
  state: n.state,
3074
3079
  stateValue: "minute",
3075
3080
  pad: !0
3076
3081
  }),
3077
3082
  // AM/PM column
3078
- ue({
3083
+ he({
3079
3084
  items: ["AM", "PM"],
3080
3085
  handleTimeSelect: e,
3081
3086
  state: n.state,
@@ -3095,11 +3100,11 @@ function Ge(e) {
3095
3100
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
3096
3101
  if (!s)
3097
3102
  return { hour: null, minute: null, meridian: null };
3098
- let [, n, a, , l] = s, r = parseInt(n, 10), c = parseInt(a, 10);
3099
- return r < 0 || r > 23 || c < 0 || c > 59 ? { hour: null, minute: null, meridian: null } : (l ? (l = l.toUpperCase(), l === "PM" && r < 12 ? r += 12 : l === "AM" && r === 12 && (r = 12)) : r === 0 ? (l = "AM", r = 12) : r < 12 ? l = "AM" : r === 12 ? l = "PM" : (l = "PM", r -= 12), {
3103
+ let [, n, a, , o] = s, r = parseInt(n, 10), c = parseInt(a, 10);
3104
+ return r < 0 || r > 23 || c < 0 || c > 59 ? { hour: null, minute: null, meridian: null } : (o ? (o = o.toUpperCase(), o === "PM" && r < 12 ? r += 12 : o === "AM" && r === 12 && (r = 12)) : r === 0 ? (o = "AM", r = 12) : r < 12 ? o = "AM" : r === 12 ? o = "PM" : (o = "PM", r -= 12), {
3100
3105
  hour: r.toString().padStart(2, "0"),
3101
3106
  minute: c.toString().padStart(2, "0"),
3102
- meridian: l
3107
+ meridian: o
3103
3108
  });
3104
3109
  }
3105
3110
  const Oo = F(
@@ -3184,7 +3189,7 @@ const Oo = F(
3184
3189
  * @returns {object}
3185
3190
  */
3186
3191
  render() {
3187
- return o(
3192
+ return l(
3188
3193
  { class: "relative w-full max-w-[320px]" },
3189
3194
  [
3190
3195
  Nn({
@@ -3202,11 +3207,11 @@ const Oo = F(
3202
3207
  );
3203
3208
  }
3204
3209
  }
3205
- ), Ln = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3210
+ ), Ln = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3206
3211
  x({ size: "lg" }, e)
3207
3212
  ]), Rn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3208
3213
  Z({ class: "text-lg font-semibold" }, e)
3209
- ]), No = i((e, t) => pt(
3214
+ ]), No = i((e, t) => yt(
3210
3215
  {
3211
3216
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3212
3217
  rounded-lg flex flex-auto flex-col
@@ -3216,28 +3221,28 @@ const Oo = F(
3216
3221
  aria: { expanded: ["open"] }
3217
3222
  },
3218
3223
  [
3219
- o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3224
+ l({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3220
3225
  // Icon and content
3221
3226
  // @ts-ignore
3222
3227
  e.icon && Ln(e.icon, e.iconColor),
3223
- o({ class: "flex flex-auto flex-col gap-4" }, [
3224
- o({ class: "flex flex-auto flex-col gap-y-2" }, [
3228
+ l({ class: "flex flex-auto flex-col gap-4" }, [
3229
+ l({ class: "flex flex-auto flex-col gap-y-2" }, [
3225
3230
  Rn(e),
3226
3231
  // @ts-ignore
3227
3232
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3228
- o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3233
+ l({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3229
3234
  ]),
3230
3235
  // @ts-ignore
3231
3236
  e.buttons && xe({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3232
3237
  ])
3233
3238
  ])
3234
3239
  ]
3235
- )), Fo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3236
- at({ class: "flex flex-auto flex-col" }, [
3237
- o({ class: "flex flex-auto flex-col gap-y-4" }, [
3238
- o({ class: "flex flex-auto items-center justify-center" }, [
3240
+ )), Fo = i((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
3241
+ ot({ class: "flex flex-auto flex-col" }, [
3242
+ l({ class: "flex flex-auto flex-col gap-y-4" }, [
3243
+ l({ class: "flex flex-auto items-center justify-center" }, [
3239
3244
  // @ts-ignore
3240
- e.icon && o({ class: "w-16 h-16 mb-2 text-primary" }, [
3245
+ e.icon && l({ class: "w-16 h-16 mb-2 text-primary" }, [
3241
3246
  // @ts-ignore
3242
3247
  x({ size: "lg" }, e.icon)
3243
3248
  ])
@@ -3267,20 +3272,20 @@ const An = (e, t) => {
3267
3272
  const s = e.toggleAllSelectedRows();
3268
3273
  t.state.checked = !s;
3269
3274
  }, jn = (e) => Xe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3270
- q((t) => new Kt({ class: "mr-2", onChange: (s, n) => An(t, n) }))
3271
- ]), En = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3275
+ G((t) => new Kt({ class: "mr-2", onChange: (s, n) => An(t, n) }))
3276
+ ]), En = ({ align: e, sortable: t, key: s, label: n, sort: a, class: o }) => {
3272
3277
  const r = e || "justify-start";
3273
3278
  return Xe({
3274
- class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3279
+ class: `cursor-pointer py-3 px-4 text-base ${o || ""}`,
3275
3280
  click: t && (() => a(s))
3276
3281
  }, [
3277
- o({ class: `flex flex-auto w-full items-center ${r}` }, [
3282
+ l({ class: `flex flex-auto w-full items-center ${r}` }, [
3278
3283
  f(n),
3279
3284
  t && U({ class: "ml-2", html: g.arrows.upDown })
3280
3285
  ])
3281
3286
  ]);
3282
- }, De = (e) => yt([
3283
- wt({
3287
+ }, De = (e) => wt([
3288
+ vt({
3284
3289
  class: "text-muted-foreground border-b",
3285
3290
  map: [
3286
3291
  e.headers,
@@ -3293,17 +3298,17 @@ const An = (e, t) => {
3293
3298
  })
3294
3299
  ]
3295
3300
  })
3296
- ]), _n = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new $t({
3301
+ ]), _n = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: o, columnCount: r }) => new Dt({
3297
3302
  cache: "list",
3298
3303
  key: e,
3299
3304
  items: t,
3300
3305
  rowItem: (c) => n(c, s),
3301
3306
  class: "divide-y divide-border",
3302
3307
  emptyState: a,
3303
- skeleton: l,
3308
+ skeleton: o,
3304
3309
  columnCount: r
3305
3310
  });
3306
- class rt extends S {
3311
+ class it extends S {
3307
3312
  /**
3308
3313
  * Initializes component data.
3309
3314
  *
@@ -3363,7 +3368,7 @@ class rt extends S {
3363
3368
  selectRow(t) {
3364
3369
  const s = t.selected ?? !1;
3365
3370
  t.selected = !s;
3366
- const n = this.data.get("selectedRows"), a = t.selected ? [...n, t] : n.filter((l) => l !== t);
3371
+ const n = this.data.get("selectedRows"), a = t.selected ? [...n, t] : n.filter((o) => o !== t);
3367
3372
  this.data.selectedRows = a, this.updateSelected();
3368
3373
  }
3369
3374
  /**
@@ -3381,9 +3386,9 @@ class rt extends S {
3381
3386
  */
3382
3387
  render() {
3383
3388
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3384
- return o({ class: "w-full flex flex-auto flex-col" }, [
3385
- J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3386
- o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3389
+ return l({ class: "w-full flex flex-auto flex-col" }, [
3390
+ X("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3391
+ l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3387
3392
  ke({ class: "w-full" }, [
3388
3393
  // @ts-ignore
3389
3394
  this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
@@ -3468,7 +3473,7 @@ class rt extends S {
3468
3473
  this.data.selectedRows = [];
3469
3474
  }
3470
3475
  }
3471
- const Hn = (e) => new Dt({
3476
+ const Hn = (e) => new It({
3472
3477
  cache: "list",
3473
3478
  loadMoreItems: e.loadMoreItems,
3474
3479
  offset: e.offset,
@@ -3482,7 +3487,7 @@ const Hn = (e) => new Dt({
3482
3487
  skeleton: e.skeleton,
3483
3488
  columnCount: e.columnCount
3484
3489
  });
3485
- class Un extends rt {
3490
+ class Un extends it {
3486
3491
  /**
3487
3492
  * Renders the DataTable component.
3488
3493
  *
@@ -3490,9 +3495,9 @@ class Un extends rt {
3490
3495
  */
3491
3496
  render() {
3492
3497
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3493
- return o({ class: "w-full flex flex-auto flex-col" }, [
3494
- J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3495
- o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3498
+ return l({ class: "w-full flex flex-auto flex-col" }, [
3499
+ X("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3500
+ l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3496
3501
  ke({ class: "w-full" }, [
3497
3502
  // @ts-ignore
3498
3503
  this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
@@ -3569,7 +3574,7 @@ const Lo = i((e) => new Un(
3569
3574
  // @ts-ignore
3570
3575
  skeleton: e.skeleton
3571
3576
  }
3572
- )), Yn = (e) => new It({
3577
+ )), Yn = (e) => new Tt({
3573
3578
  cache: "list",
3574
3579
  scrollContainer: e.scrollContainer,
3575
3580
  loadMoreItems: e.loadMoreItems,
@@ -3584,7 +3589,7 @@ const Lo = i((e) => new Un(
3584
3589
  skeleton: e.skeleton,
3585
3590
  columnCount: e.columnCount
3586
3591
  });
3587
- class Wn extends rt {
3592
+ class Vn extends it {
3588
3593
  /**
3589
3594
  * Renders the DataTable component.
3590
3595
  *
@@ -3592,9 +3597,9 @@ class Wn extends rt {
3592
3597
  */
3593
3598
  render() {
3594
3599
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3595
- return o({ class: "w-full flex flex-auto flex-col" }, [
3596
- J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3597
- o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3600
+ return l({ class: "w-full flex flex-auto flex-col" }, [
3601
+ X("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3602
+ l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3598
3603
  ke({ class: "w-full" }, [
3599
3604
  // @ts-ignore
3600
3605
  this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
@@ -3640,7 +3645,7 @@ class Wn extends rt {
3640
3645
  this.list.refresh();
3641
3646
  }
3642
3647
  }
3643
- const Ro = i((e) => new Wn(
3648
+ const Ro = i((e) => new Vn(
3644
3649
  {
3645
3650
  // @ts-ignore
3646
3651
  cache: e.cache ?? "list",
@@ -3675,26 +3680,26 @@ const Ro = i((e) => new Wn(
3675
3680
  // @ts-ignore
3676
3681
  skeleton: e.skeleton
3677
3682
  }
3678
- )), Vn = i(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3683
+ )), Wn = i(({ name: e, email: t }) => l({ class: "min-w-0 flex-auto" }, [
3679
3684
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3680
3685
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3681
- ])), qn = () => o({ class: "flex items-center gap-x-1.5" }, [
3682
- o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3683
- o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3686
+ ])), qn = () => l({ class: "flex items-center gap-x-1.5" }, [
3687
+ l({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3688
+ l({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3684
3689
  ]),
3685
3690
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3686
3691
  ]), Gn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3687
3692
  f("Last seen "),
3688
- vt({ datetime: e }, "3h ago")
3689
- ]), Kn = (e, t) => e === "online" ? qn() : Gn(t), Qn = i(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3693
+ kt({ datetime: e }, "3h ago")
3694
+ ]), Kn = (e, t) => e === "online" ? qn() : Gn(t), Qn = i(({ role: e, lastSeen: t, status: s }) => l({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3690
3695
  k({ class: "text-sm leading-6 m-0" }, e),
3691
3696
  Kn(s, t)
3692
3697
  ])), Jn = (e) => e.split(" ").map((s) => s[0]).join(""), Xn = i((e) => we({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3693
- o({ class: "flex min-w-0 gap-x-4" }, [
3698
+ l({ class: "flex min-w-0 gap-x-4" }, [
3694
3699
  // @ts-ignore
3695
3700
  Fs({ src: e.image, alt: e.name, fallbackText: Jn(e.name) }),
3696
3701
  // @ts-ignore
3697
- Vn({ name: e.name, email: e.email })
3702
+ Wn({ name: e.name, email: e.email })
3698
3703
  ]),
3699
3704
  Qn({
3700
3705
  // @ts-ignore
@@ -3704,7 +3709,7 @@ const Ro = i((e) => new Wn(
3704
3709
  // @ts-ignore
3705
3710
  status: e.status
3706
3711
  })
3707
- ])), Ao = i((e) => new Tt({
3712
+ ])), Ao = i((e) => new Pt({
3708
3713
  cache: "list",
3709
3714
  key: "name",
3710
3715
  // @ts-ignore
@@ -3782,7 +3787,7 @@ const ea = i(({ options: e, click: t }, s) => ({
3782
3787
  },
3783
3788
  children: s
3784
3789
  })), ta = (e, t = null, s = !1) => [
3785
- t && o({
3790
+ t && l({
3786
3791
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3787
3792
  onState: ["selected", {
3788
3793
  selected: !0
@@ -3808,7 +3813,7 @@ const ea = i(({ options: e, click: t }, s) => ({
3808
3813
  ]
3809
3814
  )
3810
3815
  ];
3811
- class it extends S {
3816
+ class ct extends S {
3812
3817
  /**
3813
3818
  * This will declare the props for the compiler.
3814
3819
  *
@@ -3840,7 +3845,7 @@ class it extends S {
3840
3845
  */
3841
3846
  addLink() {
3842
3847
  const t = this.options && this.options.length > 0, s = this.content || ta(String(this.label), this.icon, t);
3843
- return this.href ? new Ct(
3848
+ return this.href ? new St(
3844
3849
  {
3845
3850
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3846
3851
  cache: "link",
@@ -3928,10 +3933,10 @@ class na extends S {
3928
3933
  * @returns {object}
3929
3934
  */
3930
3935
  addLink(t) {
3931
- return new it(t);
3936
+ return new ct(t);
3932
3937
  }
3933
3938
  }
3934
- class ct extends na {
3939
+ class dt extends na {
3935
3940
  onCreated() {
3936
3941
  this.links = [];
3937
3942
  }
@@ -3966,7 +3971,7 @@ class ct extends na {
3966
3971
  * @returns {object}
3967
3972
  */
3968
3973
  addLink(t) {
3969
- const s = new it(t);
3974
+ const s = new ct(t);
3970
3975
  if (this.links.push(s), !s.options)
3971
3976
  return s;
3972
3977
  const n = this.addSubNav(s);
@@ -3977,11 +3982,11 @@ class ct extends na {
3977
3982
  };
3978
3983
  }
3979
3984
  }
3980
- const he = /* @__PURE__ */ new Map(), aa = (e, t) => (he.has(e) || he.set(e, new RegExp(`${e}($|/|\\.).*`)), he.get(e).test(t)), oa = (e, t) => {
3985
+ const fe = /* @__PURE__ */ new Map(), aa = (e, t) => (fe.has(e) || fe.set(e, new RegExp(`${e}($|/|\\.).*`)), fe.get(e).test(t)), oa = (e, t) => {
3981
3986
  const s = e.link.panel.pathname;
3982
3987
  return !s && e.isSelected() ? !0 : e.exact ? t === s : aa(s, t);
3983
3988
  };
3984
- class la extends ct {
3989
+ class la extends dt {
3985
3990
  /**
3986
3991
  * This will declare the props for the compiler.
3987
3992
  *
@@ -4010,7 +4015,7 @@ class la extends ct {
4010
4015
  addWatcher() {
4011
4016
  return {
4012
4017
  watch: {
4013
- value: ["[[path]]", X.data],
4018
+ value: ["[[path]]", q.data],
4014
4019
  callBack: this.updateLinks.bind(this)
4015
4020
  }
4016
4021
  };
@@ -4051,7 +4056,7 @@ class la extends ct {
4051
4056
  * @returns {void}
4052
4057
  */
4053
4058
  afterSetup() {
4054
- const t = X.data.path;
4059
+ const t = q.data.path;
4055
4060
  this.updateLinks(t);
4056
4061
  }
4057
4062
  /**
@@ -4068,7 +4073,7 @@ class la extends ct {
4068
4073
  this.parentLink.update(s);
4069
4074
  }
4070
4075
  }
4071
- const ra = (e) => pe({ class: "text-lg ml-2" }, e), ia = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4076
+ const ra = (e) => pe({ class: "text-lg ml-2" }, e), ia = (e) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4072
4077
  b({
4073
4078
  variant: "icon",
4074
4079
  class: "m-2",
@@ -4076,7 +4081,7 @@ const ra = (e) => pe({ class: "text-lg ml-2" }, e), ia = (e) => o({ class: "stic
4076
4081
  icon: g.arrows.left
4077
4082
  }),
4078
4083
  e.title && ra(e.title)
4079
- ]), ca = () => o({
4084
+ ]), ca = () => l({
4080
4085
  class: `
4081
4086
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4082
4087
  transition-opacity duration-200
@@ -4098,21 +4103,21 @@ class da extends S {
4098
4103
  * @returns {object}
4099
4104
  */
4100
4105
  render() {
4101
- return o({
4106
+ return l({
4102
4107
  class: "fixed inset-0 z-50",
4103
4108
  style: "[[typeClass]]"
4104
4109
  }, [
4105
4110
  ca(),
4106
4111
  // Popover Content
4107
- o({
4112
+ l({
4108
4113
  class: `
4109
4114
  absolute popIn w-auto p-0 bg-popover m-auto shadow-lg rounded-md top-0 bottom-0 left-2 right-2 max-h-[85vh] text-inherit block
4110
4115
  `,
4111
4116
  dataSet: ["open", ["expanded", !0, "true"]]
4112
4117
  }, [
4113
- o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4118
+ l({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4114
4119
  ia({ title: this.title }),
4115
- o({ class: "flex flex-auto flex-col" }, this.children)
4120
+ l({ class: "flex flex-auto flex-col" }, this.children)
4116
4121
  ])
4117
4122
  ])
4118
4123
  ]);
@@ -4149,23 +4154,23 @@ class da extends S {
4149
4154
  this.container = app.root;
4150
4155
  }
4151
4156
  }
4152
- const dt = () => b({ class: "m-2", variant: "ghost", addState() {
4157
+ const ut = () => b({ class: "m-2", variant: "ghost", addState() {
4153
4158
  return {
4154
4159
  open: !1
4155
4160
  };
4156
4161
  }, click: (e, { state: t }) => t.toggle("open") }, [
4157
4162
  x({}, g.bar.three)
4158
- ]), ua = (e) => pe({ class: "text-lg ml-2" }, e), ha = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4159
- dt(),
4163
+ ]), ua = (e) => pe({ class: "text-lg ml-2" }, e), ha = (e) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4164
+ ut(),
4160
4165
  e.title && ua(e.title)
4161
- ]), ut = (e, t) => e.map((s) => s.options ? { ...s, options: ut(s.options, t) } : { ...s, callBack: t }), ht = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4166
+ ]), ht = (e, t) => e.map((s) => s.options ? { ...s, options: ht(s.options, t) } : { ...s, callBack: t }), ft = (e) => l({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4162
4167
  M(
4163
4168
  "open",
4164
4169
  (t) => t ? [
4165
4170
  new da({ title: e.title }, [
4166
- q(({ state: s }) => {
4167
- const n = (l) => s.open = !1, a = ut(e.options, n);
4168
- return new ct(
4171
+ G(({ state: s }) => {
4172
+ const n = (o) => s.open = !1, a = ht(e.options, n);
4173
+ return new dt(
4169
4174
  {
4170
4175
  options: a
4171
4176
  }
@@ -4174,19 +4179,19 @@ const dt = () => b({ class: "m-2", variant: "ghost", addState() {
4174
4179
  ])
4175
4180
  ] : null
4176
4181
  )
4177
- ]), jo = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4178
- o([
4179
- dt(),
4180
- ht(e)
4182
+ ]), jo = i((e) => l({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4183
+ l([
4184
+ ut(),
4185
+ ft(e)
4181
4186
  ])
4182
- ])), Eo = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4183
- o({ class: "flex flex-auto flex-col w-full" }, [
4187
+ ])), Eo = i((e) => l({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4188
+ l({ class: "flex flex-auto flex-col w-full" }, [
4184
4189
  ha(e),
4185
- ht(e)
4190
+ ft(e)
4186
4191
  ])
4187
4192
  ])), _o = i((e) => {
4188
4193
  const t = e.margin || "m-4 ml-0";
4189
- return o({ class: `flex-none ${t}` }, [
4194
+ return l({ class: `flex-none ${t}` }, [
4190
4195
  b({ variant: "back", class: "ghost", ...e })
4191
4196
  ]);
4192
4197
  });
@@ -4205,7 +4210,7 @@ class fa extends S {
4205
4210
  * @returns {object}
4206
4211
  */
4207
4212
  render() {
4208
- return o(
4213
+ return l(
4209
4214
  {
4210
4215
  class: this.getClassName(),
4211
4216
  // @ts-ignore
@@ -4274,7 +4279,7 @@ class fa extends S {
4274
4279
  * @returns {object}
4275
4280
  */
4276
4281
  addBody() {
4277
- return o({ class: "body fadeIn flex flex-auto flex-col bg-background" }, this.getContents());
4282
+ return l({ class: "body fadeIn flex flex-auto flex-col bg-background" }, this.getContents());
4278
4283
  }
4279
4284
  /**
4280
4285
  * This will get the body contents.
@@ -4307,7 +4312,7 @@ class Ho extends fa {
4307
4312
  */
4308
4313
  render() {
4309
4314
  const t = this.container;
4310
- return o(
4315
+ return l(
4311
4316
  {
4312
4317
  // @ts-ignore
4313
4318
  animateIn: this.animateIn ?? null,
@@ -4408,7 +4413,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4408
4413
  }, n)), ma = i(({ selectOption: e, state: t }) => te({
4409
4414
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4410
4415
  for: ["filteredOptions", (s, n) => ga({ index: n, click: e, state: t }, s.label)]
4411
- })), ba = i((e) => o({ class: "relative flex flex-auto items-center" }, [
4416
+ })), ba = i((e) => l({ class: "relative flex flex-auto items-center" }, [
4412
4417
  L({
4413
4418
  cache: "input",
4414
4419
  // @ts-ignore
@@ -4429,11 +4434,11 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4429
4434
  ]
4430
4435
  }),
4431
4436
  // @ts-ignore
4432
- e.icon && o({ class: "absolute flex right-0 mr-2" }, [
4437
+ e.icon && l({ class: "absolute flex right-0 mr-2" }, [
4433
4438
  // @ts-ignore
4434
4439
  x({ size: "sm" }, e.icon)
4435
4440
  ])
4436
- ])), xa = (e) => o({
4441
+ ])), xa = (e) => l({
4437
4442
  class: "relative flex fle-auto flex-col",
4438
4443
  onState: ["open", (t, s, n) => {
4439
4444
  if (t)
@@ -4542,7 +4547,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4542
4547
  * @returns {object} - The rendered component.
4543
4548
  */
4544
4549
  render() {
4545
- return o({ class: "relative w-full max-w-md" }, [
4550
+ return l({ class: "relative w-full max-w-md" }, [
4546
4551
  ba({
4547
4552
  // @ts-ignore
4548
4553
  state: this.state,
@@ -4568,11 +4573,11 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4568
4573
  }
4569
4574
  ), Yo = i((e) => {
4570
4575
  const t = e.icon ?? g.magnifyingGlass.default;
4571
- return o({
4576
+ return l({
4572
4577
  // @ts-ignore
4573
4578
  class: `relative flex items-center w-full rounded-xl bg-muted/30 focus-within:ring-2 focus-within:ring-ring transition-all ${e.containerClass || ""}`
4574
4579
  }, [
4575
- o({ class: "absolute left-4 flex items-center pointer-events-none text-muted-foreground" }, [
4580
+ l({ class: "absolute left-4 flex items-center pointer-events-none text-muted-foreground" }, [
4576
4581
  x({ size: "sm" }, t)
4577
4582
  ]),
4578
4583
  p({
@@ -4617,7 +4622,7 @@ class pa extends S {
4617
4622
  * @returns {object}
4618
4623
  */
4619
4624
  render() {
4620
- return o({ class: `${this.class || ""}` }, this.children);
4625
+ return l({ class: `${this.class || ""}` }, this.children);
4621
4626
  }
4622
4627
  }
4623
4628
  class ya extends pa {
@@ -4635,10 +4640,10 @@ const wa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto f
4635
4640
  ...e,
4636
4641
  children: t
4637
4642
  })), va = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4638
- kt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4643
+ Ct({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4639
4644
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4640
4645
  ]));
4641
- class Wo extends ya {
4646
+ class Vo extends ya {
4642
4647
  /**
4643
4648
  * This will declare the props for the compiler.
4644
4649
  *
@@ -4658,7 +4663,7 @@ class Wo extends ya {
4658
4663
  title: this.title,
4659
4664
  description: this.description
4660
4665
  }),
4661
- Pt(this.children)
4666
+ Mt(this.children)
4662
4667
  ]);
4663
4668
  }
4664
4669
  }
@@ -4667,7 +4672,7 @@ export {
4667
4672
  ho as A,
4668
4673
  _o as B,
4669
4674
  cn as C,
4670
- rt as D,
4675
+ it as D,
4671
4676
  po as E,
4672
4677
  No as F,
4673
4678
  Ho as G,
@@ -4685,7 +4690,7 @@ export {
4685
4690
  La as S,
4686
4691
  _a as T,
4687
4692
  Ea as U,
4688
- at as V,
4693
+ ot as V,
4689
4694
  fo as W,
4690
4695
  mo as X,
4691
4696
  go as Y,
@@ -4698,14 +4703,14 @@ export {
4698
4703
  ps as a2,
4699
4704
  ws as a3,
4700
4705
  _ as a4,
4701
- Wo as a5,
4706
+ Vo as a5,
4702
4707
  En as a6,
4703
4708
  to as a7,
4704
- fe as a8,
4709
+ ge as a8,
4705
4710
  cs as a9,
4706
4711
  ia as aA,
4707
4712
  ro as aB,
4708
- Va as aC,
4713
+ Wa as aC,
4709
4714
  Dn as aD,
4710
4715
  ao as aE,
4711
4716
  io as aF,
@@ -4719,7 +4724,7 @@ export {
4719
4724
  la as aN,
4720
4725
  De as aO,
4721
4726
  Ua as aP,
4722
- Wa as aQ,
4727
+ Va as aQ,
4723
4728
  Co as aR,
4724
4729
  Ga as aS,
4725
4730
  Oo as aT,
@@ -4731,20 +4736,20 @@ export {
4731
4736
  eo as aZ,
4732
4737
  Ao as a_,
4733
4738
  $o as aa,
4734
- ct as ab,
4739
+ dt as ab,
4735
4740
  L as ac,
4736
4741
  Ht as ad,
4737
4742
  Na as ae,
4738
4743
  Do as af,
4739
- it as ag,
4744
+ ct as ag,
4740
4745
  wa as ah,
4741
4746
  Be as ai,
4742
- Vs as aj,
4747
+ Ws as aj,
4743
4748
  jo as ak,
4744
4749
  Eo as al,
4745
4750
  ln as am,
4746
4751
  Qa as an,
4747
- dt as ao,
4752
+ ut as ao,
4748
4753
  Zn as ap,
4749
4754
  na as aq,
4750
4755
  sa as ar,
@@ -4757,7 +4762,7 @@ export {
4757
4762
  qs as ay,
4758
4763
  ae as az,
4759
4764
  ca as b,
4760
- tt as b0,
4765
+ st as b0,
4761
4766
  F as b1,
4762
4767
  Ja as b2,
4763
4768
  Qs as b3,
@@ -4787,7 +4792,7 @@ export {
4787
4792
  Bo as u,
4788
4793
  zo as v,
4789
4794
  Ka as w,
4790
- ce as x,
4795
+ de as x,
4791
4796
  an as y,
4792
4797
  xo as z
4793
4798
  };