@base-framework/ui 1.2.42 → 1.2.44

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